/*
 * Grand Park Law Group — Practice Publication Hub
 * Styles for practice-area insights hubs and individual articles.
 */

/* ============================================
   HUB HERO
   ============================================ */
.pub-hero {
    background: var(--primary-dark);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,169,98,0.06) 0%, transparent 65%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 60L60 0M-10 10L10-10M50 70L70 50' stroke='rgba(201,169,98,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    border-bottom: 1px solid rgba(201,169,98,0.1);
    padding: calc(var(--header-height) + 5rem) var(--space-lg) 4rem;
}

.pub-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}

.pub-hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.pub-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.5;
}

.pub-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 300;
    color: var(--off-white);
    line-height: 1.1;
    margin: 0 0 1.4rem;
}

.pub-hero-title em {
    font-style: italic;
    color: var(--accent-gold);
    font-weight: 300;
}

.pub-hero-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(250,249,246,0.62);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 0 2.2rem;
}

.pub-hero-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pub-hero-link {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(250,249,246,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.pub-hero-link:hover {
    color: var(--accent-gold);
}

.pub-hero-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-gold);
    border: 1px solid rgba(201,169,98,0.4);
    padding: 0.6em 1.4em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pub-hero-cta:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

/* ============================================
   FILTER BAR
   ============================================ */
.pub-filter-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 80;
    background: rgba(26,25,21,0.97);
    border-bottom: 1px solid rgba(201,169,98,0.08);
    backdrop-filter: blur(12px);
}

.pub-filter-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.pub-filter-inner::-webkit-scrollbar {
    display: none;
}

.pub-filter-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250,249,246,0.45);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.pub-filter-btn:hover {
    color: rgba(250,249,246,0.8);
}

.pub-filter-btn.is-active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* ============================================
   ARTICLE GRID
   ============================================ */
.pub-grid-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 3.5rem var(--space-lg) 5rem;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5px;
    background: rgba(201,169,98,0.07);
    border: 1px solid rgba(201,169,98,0.07);
}

.pub-card {
    background: var(--primary-dark);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background 0.22s;
    position: relative;
}

.pub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 30% 30%, rgba(201,169,98,0.035) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.pub-card:hover {
    background: rgba(30,29,25,1);
}

.pub-card:hover::before {
    opacity: 1;
}

.pub-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pub-card-tag {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.8;
}

.pub-card-quarter {
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: rgba(250,249,246,0.3);
}

.pub-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
}

.pub-card-title a {
    color: var(--off-white);
    text-decoration: none;
    transition: color 0.2s;
}

.pub-card-title a:hover {
    color: var(--accent-gold);
}

.pub-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(250,249,246,0.52);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.pub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201,169,98,0.07);
}

.pub-card-author {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: rgba(250,249,246,0.35);
    letter-spacing: 0.04em;
}

.pub-card-read {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--accent-gold);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pub-card-read:hover {
    opacity: 1;
}

.pub-empty {
    padding: 4rem 0;
    text-align: center;
    color: rgba(250,249,246,0.35);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* ============================================
   SUBSCRIBE CTA
   ============================================ */
.pub-subscribe {
    background: var(--primary-charcoal);
    background-image: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(201,169,98,0.04) 0%, transparent 70%);
    border-top: 1px solid rgba(201,169,98,0.1);
    padding: 5rem var(--space-lg);
    text-align: center;
}

.pub-subscribe-inner {
    max-width: 600px;
    margin: 0 auto;
}

.pub-subscribe-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.pub-subscribe-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 300;
    color: var(--off-white);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.pub-subscribe-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(250,249,246,0.5);
    line-height: 1.75;
    margin: 0 0 2rem;
}

.pub-subscribe-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--accent-gold);
    padding: 0.85em 2.2em;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.pub-subscribe-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.pub-article-hero {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(201,169,98,0.1);
    padding: calc(var(--header-height) + 4rem) var(--space-lg) 3.5rem;
}

.pub-article-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}

.pub-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(250,249,246,0.35);
    margin-bottom: 2rem;
}

.pub-article-breadcrumb a {
    color: rgba(250,249,246,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.pub-article-breadcrumb a:hover {
    color: var(--accent-gold);
}

.pub-article-breadcrumb span {
    opacity: 0.4;
}

.pub-article-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
}

.pub-article-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--off-white);
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

.pub-article-byline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(250,249,246,0.42);
    flex-wrap: wrap;
}

.pub-article-byline strong {
    color: rgba(250,249,246,0.65);
}

/* ============================================
   ARTICLE IMAGE
   ============================================ */
.pub-article-image {
    border-radius: 0;
}

/* ============================================
   ARTICLE TABLE OF CONTENTS
   ============================================ */
.article-toc {
    max-width: 780px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-left: 3px solid var(--accent-gold);
}
.article-toc-title {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.article-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}
.article-toc li {
    counter-increment: toc;
    margin-bottom: 0.4rem;
}
.article-toc li::before {
    content: counter(toc, upper-roman) ".";
    display: inline-block;
    width: 2.5rem;
    font-size: 0.72rem;
    color: rgba(201, 169, 98, 0.5);
    font-weight: 500;
}
.article-toc a {
    font-size: 0.88rem;
    color: rgba(250,249,246,0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}
.article-toc a:hover {
    color: var(--accent-gold);
}

/* ============================================
   ARTICLE BODY
   ============================================ */
.pub-article-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 3.5rem var(--space-lg) 5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.82;
    color: rgba(250,249,246,0.72);
}

.pub-article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
    font-weight: 400;
    color: var(--off-white);
    margin: 3rem 0 1rem;
    line-height: 1.2;
}

.pub-article-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(250,249,246,0.88);
    margin: 2rem 0 0.75rem;
    font-style: italic;
}

.pub-article-body p {
    margin: 0 0 1.4em;
}

.pub-article-body a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pub-article-body strong {
    font-weight: 500;
    color: rgba(250,249,246,0.88);
}

.pub-article-body blockquote {
    border-left: 2px solid var(--accent-gold);
    margin: 2.5rem 0;
    padding: 1.2rem 1.8rem;
    background: rgba(201,169,98,0.04);
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-style: italic;
    color: rgba(250,249,246,0.78);
    line-height: 1.55;
}

.pub-article-body ul,
.pub-article-body ol {
    padding-left: 1.5em;
    margin: 0 0 1.4em;
}

.pub-article-body li {
    margin-bottom: 0.5em;
}

.pub-article-body hr {
    border: none;
    border-top: 1px solid rgba(201,169,98,0.12);
    margin: 2.5rem 0;
}

/* Key takeaway box */
.pub-takeaway {
    background: rgba(201,169,98,0.05);
    border: 1px solid rgba(201,169,98,0.15);
    padding: 1.5rem 1.8rem;
    margin: 2.5rem 0;
}

.pub-takeaway-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.pub-takeaway ul {
    margin: 0;
    padding-left: 1.2em;
}

.pub-takeaway li {
    font-size: 0.9rem;
    color: rgba(250,249,246,0.7);
    margin-bottom: 0.4em;
}

/* Citation footnote */
.pub-citation {
    font-size: 0.78rem;
    color: rgba(250,249,246,0.38);
    font-style: italic;
    margin: -0.8em 0 1.2em;
}

/* Article CTA banner */
.pub-article-cta {
    background: var(--primary-charcoal);
    border: 1px solid rgba(201,169,98,0.15);
    padding: 2rem 2rem;
    margin: 3rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pub-article-cta-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--off-white);
    margin: 0;
}

.pub-article-cta-text em {
    font-style: italic;
    color: var(--accent-gold);
}

.pub-article-cta-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--accent-gold);
    padding: 0.75em 1.8em;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.pub-article-cta-btn:hover {
    opacity: 0.85;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.pub-related {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-lg) 5rem;
}

.pub-related-title {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250,249,246,0.35);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201,169,98,0.08);
}

.pub-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pub-related-item a {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    text-decoration: none;
    color: rgba(250,249,246,0.6);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.pub-related-item a:hover {
    color: var(--accent-gold);
}

.pub-related-item-tag {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.65;
    flex-shrink: 0;
}

/* ============================================
   FEATURED ARTICLE CAROUSEL
   ============================================ */
.pub-featured {
    background: var(--primary-charcoal);
    border-bottom: 1px solid rgba(201,169,98,0.08);
    position: relative;
}

.pub-featured-viewport {
    overflow: hidden;
}

.pub-featured-track {
    position: relative;
    min-height: 240px;
}

.pub-featured-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(1.5rem);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.pub-featured-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.pub-featured-track--single .pub-featured-slide {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pub-featured-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 3rem var(--space-lg);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.2rem 4rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.pub-featured-eyebrow {
    grid-column: 1 / -1;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: -0.4rem;
}

.pub-featured-eyebrow::before {
    content: '';
    display: inline-block;
    width: 1.4rem;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.5;
}

.pub-featured-content {
    min-width: 0;
}

.pub-featured-tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.75;
    margin-bottom: 0.6rem;
    display: block;
}

.pub-featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-weight: 400;
    color: var(--off-white);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.pub-featured-excerpt {
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 300;
    color: rgba(250,249,246,0.5);
    line-height: 1.72;
    margin: 0 0 1.2rem;
    max-width: 560px;
}

.pub-featured-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201,169,98,0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.pub-featured-cta:hover {
    border-color: var(--accent-gold);
}

.pub-featured-num {
    font-family: var(--font-display);
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 300;
    color: rgba(201,169,98,0.055);
    line-height: 1;
    letter-spacing: -0.02em;
    user-select: none;
    flex-shrink: 0;
    padding-bottom: 1rem;
}

.pub-featured-controls {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: 0.25rem var(--space-lg) 1.25rem;
}

.pub-featured-btn {
    background: none;
    border: 1px solid rgba(201,169,98,0.18);
    color: rgba(250,249,246,0.38);
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 0.82rem;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-featured-btn:hover {
    color: var(--accent-gold);
    border-color: rgba(201,169,98,0.4);
}

.pub-featured-dots {
    display: flex;
    gap: 0.45rem;
}

.pub-featured-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(201,169,98,0.2);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.pub-featured-dot.is-active {
    background: var(--accent-gold);
    transform: scale(1.35);
}

/* Featured Media */
.article-featured-media {
    margin: 0 0 2.5rem 0;
    position: relative;
    border: 1px solid rgba(201, 169, 98, 0.15);
    background: var(--primary-dark);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.article-featured-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.article-featured-media:hover .article-featured-image {
    transform: scale(1.02);
}
.article-featured-caption {
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(26, 25, 21, 0.95);
    border-top: 1px solid rgba(201, 169, 98, 0.1);
    font-style: italic;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-featured-caption::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
}


/* ============================================
   INTERACTIVE ARTICLE COMPONENTS
   ============================================ */
.art-component {
    margin: 2.8rem 0;
    padding: 1.6rem 1.8rem;
    background: rgba(201,169,98,0.025);
    border: 1px solid rgba(201,169,98,0.1);
    border-top: 2px solid rgba(201,169,98,0.28);
}

.art-component-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.65;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.art-component-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(201,169,98,0.12);
}

/* MICRA cap schedule bars */
.cap-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cap-row {
    display: grid;
    grid-template-columns: 3.8rem 1fr;
    gap: 0.5rem;
    align-items: center;
}

.cap-row-year {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: rgba(250,249,246,0.4);
    text-align: right;
    letter-spacing: 0.04em;
}

.cap-row-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cap-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cap-bar {
    height: 8px;
    border-radius: 1px;
    min-width: 2px;
    width: 0;
    transition: width 1.1s cubic-bezier(0.22,0.61,0.36,1);
}

.cap-bar--a {
    background: linear-gradient(90deg, rgba(201,169,98,0.9), rgba(201,169,98,0.45));
}

.cap-bar--b {
    background: linear-gradient(90deg, rgba(201,169,98,0.4), rgba(201,169,98,0.18));
}

.cap-bar-lbl {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: rgba(250,249,246,0.42);
    white-space: nowrap;
}

.cap-bar-lbl--current {
    color: rgba(201,169,98,0.85);
    font-weight: 500;
}

.cap-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201,169,98,0.08);
    font-size: 0.68rem;
    color: rgba(250,249,246,0.4);
    flex-wrap: wrap;
}

.cap-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.cap-swatch {
    width: 16px;
    height: 6px;
    border-radius: 1px;
}

/* Decision flowchart */
.dtree {
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.dtree-step {
    position: relative;
}

.dtree-node {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(201,169,98,0.1);
    background: rgba(45,42,36,0.6);
    color: rgba(250,249,246,0.78);
}

.dtree-node--q {
    border-left: 2px solid rgba(201,169,98,0.5);
    font-weight: 400;
    color: var(--off-white);
}

.dtree-branch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-left: 1px solid rgba(201,169,98,0.08);
    border-right: 1px solid rgba(201,169,98,0.08);
}

.dtree-path {
    padding: 0.6rem 0.8rem 0;
    border-right: 1px solid rgba(201,169,98,0.06);
}

.dtree-path:last-child {
    border-right: none;
}

.dtree-path-label {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.55;
    margin-bottom: 0.35rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(201,169,98,0.08);
}

.dtree-outcome {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    margin-top: 0;
}

.dtree-outcome--win {
    background: rgba(201,169,98,0.08);
    border: 1px solid rgba(201,169,98,0.22);
    color: rgba(201,169,98,0.9);
    border-top: none;
}

.dtree-outcome--lose {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: rgba(250,249,246,0.35);
    border-top: none;
}

.dtree-conn {
    width: 1px;
    height: 0.75rem;
    background: rgba(201,169,98,0.15);
    margin: 0 auto;
}

/* Interactive checklist */
.ichk-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ichk-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: rgba(45,42,36,0.4);
    border: 1px solid rgba(201,169,98,0.06);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    font-size: 0.86rem;
    color: rgba(250,249,246,0.68);
    user-select: none;
    line-height: 1.55;
}

.ichk-item:hover {
    background: rgba(201,169,98,0.04);
    border-color: rgba(201,169,98,0.12);
}

.ichk-item.is-chk {
    background: rgba(201,169,98,0.07);
    border-color: rgba(201,169,98,0.2);
    color: rgba(250,249,246,0.88);
}

.ichk-box {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid rgba(201,169,98,0.28);
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: background 0.18s, border-color 0.18s;
    box-sizing: border-box;
}

.ichk-item.is-chk .ichk-box {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.ichk-item.is-chk .ichk-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: 2px solid var(--primary-dark);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.ichk-prog-bar {
    height: 2px;
    background: rgba(201,169,98,0.1);
    margin-top: 0.9rem;
    position: relative;
}

.ichk-prog-fill {
    height: 100%;
    background: var(--accent-gold);
    transition: width 0.28s ease;
}

.ichk-prog-lbl {
    font-size: 0.68rem;
    color: rgba(250,249,246,0.32);
    margin-top: 0.4rem;
    font-family: var(--font-body);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pub-hero {
        padding: calc(var(--header-height) + 3rem) var(--space-md) 3rem;
    }

    .pub-grid {
        grid-template-columns: 1fr;
    }

    .pub-article-hero {
        padding: calc(var(--header-height) + 2.5rem) var(--space-md) 2.5rem;
    }

    .pub-article-body {
        padding: 2.5rem var(--space-md) 3.5rem;
    }

    .pub-article-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pub-related {
        padding: 0 var(--space-md) 3.5rem;
    }
}
