/* ─────────────────────────────────────────────────────────────
   Shared section system — used on /adventure-calls, /bitterwind, /dolven.
   Same rhythm as the home, LOVE X LOVE and creators pages:
   small label → title → content → primary button + secondary link.
   Each page sets its own accent with --sec-accent / --sec-accent-ink.
   ───────────────────────────────────────────────────────────── */

:root {
    --sec-accent: var(--color-grey-dark);
    --sec-accent-ink: var(--color-white);
    --sec-line: rgba(var(--rgb-grey-dark), 0.12);
}

html.dolven         { --sec-accent: #5a1a14; --sec-accent-ink: #f3d27a; }
html.bitterwind     { --sec-accent: #0f4c5c; --sec-accent-ink: #e8f6f3; }
html.adventure-calls { --sec-accent: #b8360e; --sec-accent-ink: #ffffff; }

/* Section rhythm */
.product-body > .sec {
    padding-top: 2.2em;
    border-top: 1px solid var(--sec-line);
}

.sec-eyebrow {
    font-family: var(--font-family);
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sec-accent);
}

.sec-eyebrow + h2,
.sec-eyebrow + h3 { --spacing: 0.2em; }

.sec h4,
.sec-h4 {
    font-family: var(--font-family);
    font-size: 0.62em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Primary button + secondary link, side by side */
.sec-cta-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em 1.1em;
}

.sec-cta-pair .cta-button {
    display: inline-block;
    margin: 0;
    padding: 0.55em 1.2em;
    border: 2px solid var(--sec-accent);
    border-radius: 0.3em;
    background: var(--sec-accent);
    color: var(--sec-accent-ink);
    font-family: var(--font-family);
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}

.sec-cta-pair .cta-button:hover,
.sec-cta-pair .cta-button:focus-visible {
    background: transparent;
    color: var(--sec-accent);
    text-decoration: none;
}

.sec-cta-sub {
    font-family: var(--font-family);
    font-size: 0.62em;
    font-weight: 700;
    color: var(--sec-accent);
}

/* Left-aligned link list */
.sec-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55em;
    margin: 1em 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-family);
    font-size: 0.62em;
}

.sec-links a { color: var(--sec-accent); font-weight: 700; }

.sec a:focus-visible,
.product-header a:focus-visible {
    outline: 3px solid var(--sec-accent);
    outline-offset: 3px;
}

/* Tag pills: static row, or overlaid bottom-left on an image */
.sec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sec-tags li {
    padding: 0.35em 0.8em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: var(--sec-accent);
    color: var(--sec-accent-ink);
    font-family: var(--font-family);
    font-size: 0.45em;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.sec-art {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.3em;
    box-shadow: 0 0 0 1px rgba(var(--rgb-black), 0.05), 0 0.8em 2.4em -1.4em rgba(var(--rgb-black), 0.45);
}

.sec-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

.sec-art .sec-tags {
    position: absolute;
    left: 0.6em;
    right: 0.6em;
    bottom: 0.6em;
    pointer-events: none;
}

.sec-art .sec-tags li { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }

/* Two-column facts panel */
.sec-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2em;
    padding: 1em 1.1em;
    background: rgba(var(--rgb-white), 0.75);
    border: 1px solid var(--sec-line);
    border-radius: 0.5em;
}

@media (min-width: 40em) {
    .sec-panel { grid-template-columns: 1fr 1fr; }
}

.sec-panel ul,
.sec-panel p,
.sec-panel dl {
    font-size: 0.68em;
    line-height: 1.5;
}

.sec-panel ul {
    margin: 0.5em 0 0;
    padding-left: 1.1em;
}

.sec-panel li + li { margin-top: 0.35em; }

.sec-panel dl { margin: 0.5em 0 0; }
.sec-panel dt { font-family: var(--font-family); font-weight: 700; margin-top: 0.5em; }
.sec-panel dt:first-child { margin-top: 0; }
.sec-panel dd { margin: 0; }

/* Reviews (Royal Road stars / Steam recommended) */
.sec-review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8em;
}

@media (min-width: 40em) {
    .sec-review-grid { grid-template-columns: 1fr 1fr; }
}

.sec-review {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    margin: 0;
    padding: 0.9em 1em 1em;
    background: var(--color-white);
    border: 1px solid var(--sec-line);
    border-left: 3px solid var(--sec-accent);
    border-radius: 0 0.4em 0.4em 0;
}

.sec-stars {
    font-size: 0.6em;
    letter-spacing: 0.12em;
    color: #d98a00;
}

.sec-rec {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    align-self: flex-start;
    padding: 0.25em 0.7em;
    border-radius: 999px;
    background: var(--sec-accent);
    color: var(--sec-accent-ink);
    font-family: var(--font-family);
    font-size: 0.45em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sec-rec svg { width: 1.2em; height: 1.2em; fill: currentColor; }

.sec-review-title {
    font-family: var(--font-family);
    font-size: 0.62em;
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-grey-dark);
}

.sec-review blockquote { margin: 0; padding: 0; border: 0; }

.sec-review blockquote p {
    font-family: var(--font-family-serif);
    font-size: 0.78em;
    font-style: italic;
    line-height: 1.45;
}

.sec-review blockquote p::before { content: "\201C"; }
.sec-review blockquote p::after  { content: "\201D"; }

.sec-review figcaption {
    margin-top: auto;
    font-family: var(--font-family);
    font-size: 0.52em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-grey);
}

/* Plain unbulleted list (issue contents, etc.) */
.sec-plain {
    margin: 0.6em 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.7em;
    line-height: 1.5;
}

.sec-plain li + li { margin-top: 0.35em; }

/* Quiet in-section status line ("In development", etc.) */
.sec-status {
    display: inline-block;
    padding: 0.25em 0.7em;
    border: 1px dashed var(--sec-accent);
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: 0.5em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sec-accent);
}

/* Breathing room between grouped blocks */
.sec-cta-pair + .sec-tags,
.sec-art + .sec-cta-pair,
.sec-panel + .sec-cta-pair { margin-top: 1.1em; }

.sec-status { margin: 0.5em 0 0.3em; }

.sec :is(p, ul, dl, blockquote, .sec-panel) + h4 { margin-top: 1.5em; }
.sec-panel :is(ul, dl, p) + h4 { margin-top: 1.3em; }

@media (prefers-reduced-motion: reduce) {
    .sec-cta-pair .cta-button { transition: none; }
}
