/* ---------------------------------------------------------------------------
 * Article library — editorial directory + reading experience.
 *
 * The stage selector reproduces the brand mockups (glossy black panel, beveled
 * gold border, gold display type) in CSS rather than as exported images: the
 * stage descriptions are indexable copy on the one page whose job is attracting
 * organic traffic, so they must stay real text.
 * ------------------------------------------------------------------------- */

:root {
    --art-gold-1: #f7e3a8;
    --art-gold-2: #c8963e;
    --art-gold-3: #8a5f1e;
    --art-ink: #23201c;
    --art-line: #ece6dc;
    --art-black: #0b0b0b;
}

/* ------------------------------------------------------------------ heading */

.art-hero { padding: 4.5rem 0 2.75rem; background: var(--bwbs-hero-bg, linear-gradient(180deg, #faf6f0 0%, #ffffff 100%)); }
.art-hero h1 { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.art-lede { color: var(--bwbs-muted); font-size: 1.15rem; line-height: 1.6; max-width: 44rem; margin: 0 auto; }

.art-eyebrow {
    font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    font-weight: 700; color: var(--art-gold-2);
}

/* ---------------------------------------------------------- stage selector */

.art-stages { background: var(--art-black); padding: 3.25rem 0; }

.art-stage {
    display: flex; flex-direction: column; height: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 18px;
    text-decoration: none;
    border: 2px solid transparent;
    background:
        linear-gradient(158deg, #1c1c1c 0%, #0d0d0d 55%, #151515 100%) padding-box,
        linear-gradient(135deg, var(--art-gold-1) 0%, var(--art-gold-2) 42%, var(--art-gold-3) 68%, var(--art-gold-1) 100%) border-box;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow .2s ease, transform .2s ease;
}
.art-stage:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,.6), 0 0 22px rgba(200,150,62,.28); }
.art-stage.is-active { box-shadow: 0 0 0 1px rgba(247,227,168,.4), 0 0 30px rgba(200,150,62,.45), 0 10px 30px rgba(0,0,0,.6); }

.art-stage-icon {
    width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center;
    margin-bottom: 1.1rem;
    border: 2px solid transparent;
    background:
        radial-gradient(circle at 32% 26%, #262626 0%, #0a0a0a 72%) padding-box,
        linear-gradient(140deg, var(--art-gold-1), var(--art-gold-2) 55%, var(--art-gold-3)) border-box;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 14px rgba(0,0,0,.6);
}
.art-stage-icon svg { width: 30px; height: 30px; display: block; }

.art-stage-title {
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 1.3rem; margin-bottom: 0.6rem;
    color: var(--art-gold-2);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .art-stage-title {
        background: linear-gradient(180deg, var(--art-gold-1) 0%, var(--art-gold-2) 58%, var(--art-gold-3) 100%);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.art-stage-blurb { color: #ddd6cb; font-size: 0.94rem; line-height: 1.6; flex: 1; margin: 0; }
.art-stage-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.art-stage-count { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8d857a; }

.art-chevron {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; flex: 0 0 auto;
    border: 2px solid transparent;
    background:
        linear-gradient(160deg, #191919, #0a0a0a) padding-box,
        linear-gradient(140deg, var(--art-gold-1), var(--art-gold-2) 60%, var(--art-gold-3)) border-box;
    color: var(--art-gold-1);
}
.art-chevron svg { width: 14px; height: 14px; }

/* Standing library intro. The band is dark in both panel variants, so this
   sits on the same muted light treatment as the rest of the band's text. */
.art-stages-intro {
    margin: 1rem auto 0; max-width: 44rem;
    text-align: center; color: rgba(255,255,255,.72);
    font-size: 1.02rem; line-height: 1.6;
}
.art-stages-intro-plain { margin-bottom: 2rem; }

/* ------------------------------------------- stage selector: image variant */
/* Used when ArticleService::STAGE_PANEL_STYLE === 'image'. The artwork already
   carries the border, icon and copy, so this only handles layout and state. */

.art-stages-brand { text-align: center; margin-bottom: 2rem; }
.art-stages-brand img { width: 100%; max-width: 320px; height: auto; }

.art-stage-figure {
    display: block; position: relative;
    border-radius: 14px; overflow: hidden;
    text-decoration: none;
    outline: 2px solid transparent; outline-offset: 3px;
    transition: transform .2s ease, outline-color .2s ease, box-shadow .2s ease;
}
.art-stage-figure img { display: block; width: 100%; height: auto; }
.art-stage-figure:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,.6), 0 0 22px rgba(200,150,62,.3); }
.art-stage-figure:focus-visible { outline-color: var(--art-gold-1); }
.art-stage-figure.is-active { outline-color: var(--art-gold-2); box-shadow: 0 0 30px rgba(200,150,62,.45); }

/* Article count sits over the artwork rather than duplicating its copy. */
.art-stage-figure .art-stage-count {
    position: absolute; right: .85rem; bottom: .7rem;
    padding: .2rem .6rem; border-radius: 999px;
    background: rgba(0,0,0,.62); color: var(--art-gold-1);
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ------------------------------------------------------------ featured slot */

.art-featured {
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    border: 1px solid var(--art-line); border-radius: 20px; overflow: hidden;
    background: #fff; text-decoration: none; color: inherit;
    box-shadow: 0 2px 4px rgba(17,17,17,.03);
    transition: box-shadow .2s ease, transform .2s ease;
}
.art-featured:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(17,17,17,.1); color: inherit; }
.art-featured-body { padding: 2.75rem; display: flex; flex-direction: column; justify-content: center; }
.art-featured-title { font-weight: 800; letter-spacing: -0.015em; font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.25; margin: 0.75rem 0 1rem; }
.art-featured-excerpt { color: var(--bwbs-muted); font-size: 1.02rem; line-height: 1.65; margin-bottom: 1.5rem; }

.art-featured-visual {
    position: relative; min-height: 340px;
    background: linear-gradient(150deg, #1a1a1a 0%, #000 70%);
    display: grid; place-items: center; padding: 2rem; overflow: hidden;
}
/* Brightest point sits below the frame and fades upward, so the clipped edge
   never shows as a hard band. */
.art-featured-visual::after {
    content: ""; position: absolute; left: -25%; right: -25%; bottom: -55%;
    height: 105%; pointer-events: none;
    background: radial-gradient(ellipse at 50% 100%,
        rgba(200,150,62,.42) 0%, rgba(200,150,62,.16) 38%, rgba(200,150,62,0) 68%);
}
.art-featured-visual img { max-width: 100%; max-height: 300px; height: auto; object-fit: contain; position: relative; z-index: 1; }
.art-featured-mark { position: relative; z-index: 1; text-align: center; }
.art-featured-mark .art-stage-icon { margin: 0 auto 1rem; width: 78px; height: 78px; }
.art-featured-mark .art-stage-icon svg { width: 38px; height: 38px; }
.art-featured-mark span { display: block; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--art-gold-1); }

@media (max-width: 900px) {
    .art-featured { grid-template-columns: 1fr; }
    .art-featured-visual { order: -1; min-height: 190px; }
    .art-featured-body { padding: 1.75rem; }
}

/* The navbar is sticky, so an #art-library anchor jump (the no-JS path) would
   otherwise land with the heading tucked underneath it. */
#art-library { scroll-margin-top: 5rem; }

/* ----------------------------------------------------------------- the grid */

.art-card {
    display: flex; flex-direction: column; height: 100%;
    padding: 1.6rem 1.5rem 1.35rem;
    background: #fff; border: 1px solid var(--art-line); border-radius: 14px;
    text-decoration: none; color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.art-card:hover { color: inherit; transform: translateY(-3px); border-color: var(--art-gold-2); box-shadow: 0 12px 32px rgba(17,17,17,.08); }
.art-card-stage { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--art-gold-2); }
.art-card-title { font-weight: 700; font-size: 1.14rem; line-height: 1.35; letter-spacing: -0.01em; margin: 0.55rem 0 0.7rem; }
.art-card-excerpt { color: var(--bwbs-muted); font-size: 0.94rem; line-height: 1.6; margin: 0; flex: 1; }
.art-card-more { margin-top: 1.1rem; font-weight: 600; font-size: 0.9rem; color: var(--art-ink); }
.art-card:hover .art-card-more { color: var(--art-gold-3); }

.art-empty { border: 1px dashed var(--art-line); border-radius: 14px; padding: 3rem 1.5rem; text-align: center; color: var(--bwbs-muted); }

/* ------------------------------------------------------------ article page */

.art-measure { max-width: 44rem; }               /* ~68ch */

.art-article-head { padding: 3.5rem 0 1.5rem; }
.art-article-title { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.18; margin: 0.85rem 0 0.75rem; }
.art-article-meta { color: var(--bwbs-muted); font-size: 0.88rem; }

.art-body { font-size: 1.125rem; line-height: 1.75; color: var(--art-ink); }
.art-body > *:first-child { margin-top: 0; }
.art-body p { margin: 0 0 1.35em; }
.art-body h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.01em; margin: 2.4rem 0 0.9rem; }
.art-body h3 { font-weight: 700; font-size: 1.26rem; margin: 2rem 0 0.7rem; }
.art-body h4 { font-weight: 700; font-size: 1.08rem; margin: 1.7rem 0 0.6rem; }
.art-body ul, .art-body ol { margin: 0 0 1.35em; padding-left: 1.35rem; }
.art-body li { margin-bottom: 0.55em; }
.art-body blockquote { margin: 1.9rem 0; padding: 0.2rem 0 0.2rem 1.3rem; border-left: 3px solid var(--art-gold-2); color: #4a453e; font-style: italic; }
.art-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.6rem 0; }
.art-body a { color: var(--art-gold-3); text-underline-offset: 2px; }
.art-body hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--art-line); }

/* ------------------------------------------------------------------- the CTA */

.art-cta { background: var(--art-black); color: #f1ece4; border-radius: 18px; padding: 2.75rem; margin: 3.5rem 0 1rem; }
.art-cta h2 { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 1rem; color: var(--art-gold-2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .art-cta h2 {
        background: linear-gradient(180deg, var(--art-gold-1) 0%, var(--art-gold-2) 60%, var(--art-gold-3) 100%);
        -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    }
}
.art-cta p { color: #cfc7ba; line-height: 1.7; margin-bottom: 1.1rem; }
.art-cta p:last-of-type { margin-bottom: 1.75rem; }
.art-cta .btn-gold {
    background: linear-gradient(180deg, var(--art-gold-1), var(--art-gold-2) 55%, var(--art-gold-3));
    border: 0; color: #1a1206; font-weight: 700; padding: 0.8rem 1.65rem; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(200,150,62,.32);
}
.art-cta .btn-gold:hover { color: #1a1206; filter: brightness(1.06); }

@media (max-width: 600px) { .art-cta { padding: 1.85rem; } }

/* --------------------------------------------------------- closing invitation */

.art-invite { border-top: 1px solid var(--art-line); margin-top: 3.5rem; padding: 2.75rem 0 1rem; text-align: center; }
.art-invite h3 { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }
.art-invite p { color: var(--bwbs-muted); margin-bottom: 1rem; }
