/* ================================================================
   PORTABLE TEXT — pt-* classes
   Used by the <PortableText> component across all public pages.
   Colors and font-size are intentionally NOT set on pt-p so each
   page context (sv-desc, sd-body, nd-body, etc.) controls those.
   ================================================================ */

/* ====== PARAGRAPH =============================================== */

.pt-p {
    color: var(--color-brand-black);
    margin-bottom: 20px;
}

.pt-p:last-child {
    margin-bottom: 0;
}

/* ====== HEADINGS ================================================ */

.pt-h1,
.pt-h2,
.pt-h3,
.pt-h4 {
    color: inherit;
    line-height: 1.2;
}

.pt-h1:first-child,
.pt-h2:first-child,
.pt-h3:first-child,
.pt-h4:first-child {
    margin-top: 0;
}

.pt-h1 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.02em;
    margin: 40px 0 16px;
}

.pt-h2 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -0.01em;
    margin: 36px 0 14px;
}

.pt-h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 10px;
}

.pt-h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 8px;
}

/* ====== BLOCKQUOTE ============================================== */

.pt-blockquote {
    border-left: 3px solid var(--color-brand-yellow);
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    color: var(--color-brand-black);
    font-style: italic;
}

/* ====== LISTS =================================================== */

.pt-ul,
.pt-ol {
    margin: 0 0 20px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-ul:last-child,
.pt-ol:last-child {
    margin-bottom: 0;
}

.pt-ol {
    padding-left: 1.4em;
    list-style: decimal;
}

.pt-li {
    line-height: 1.65;
}

.pt-ul .pt-li {
    list-style: none;
    padding-left: 18px;
    position: relative;
}

.pt-ul .pt-li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-brand-yellow);
    flex-shrink: 0;
}

/* ====== INLINE CODE ============================================= */

.pt-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875em;
    background: var(--color-stone-100);
    border: 1px solid var(--color-stone-200);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* ====== LINKS =================================================== */

.pt-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--color-stone-400);
    transition: text-decoration-color 0.15s;
}

.pt-link:hover {
    text-decoration-color: currentColor;
}

/* ====== BOLD / ITALIC =========================================== */
/* MudBlazor's CSS reset overrides browser defaults for strong/em,
   so these must be declared explicitly per element context.        */

.pt-p strong,
.pt-li strong,
.pt-h1 strong,
.pt-h2 strong,
.pt-h3 strong,
.pt-h4 strong,
.pt-blockquote strong {
    font-weight: 700;
}

.pt-p em,
.pt-li em,
.pt-h1 em,
.pt-h2 em,
.pt-h3 em,
.pt-h4 em,
.pt-blockquote em {
    font-style: italic;
}
