/* ADU Crew Ghost theme
   Palette: pale yellow #fdffa6, charcoal #232629, cream #fffdf7, white.
   Fonts: Libre Franklin (headlines, UI), Work Sans (body). */

:root {
    --yellow: #fdffa6;
    --charcoal: #232629;
    --cream: #fffdf7;
    --white: #ffffff;
    --black: #111111;
    --footer: #1a1a1a;
    --line: #e4e2d8;
    --muted: #5d6166;
    --radius: 22px;
    --shadow: 9px 9px 0 var(--charcoal);
    --wrap: 1240px;
    --head: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--charcoal);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }

.site-main { display: block; }

/* ---------- Highlighter underline (signature detail) ---------- */
.hl {
    background-image: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 94%, transparent 94%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 .06em;
}

/* ---------- Buttons (hard offset shadow) ---------- */
.btn {
    --btn-shadow: var(--charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.15rem 2.6rem;
    font-family: var(--head);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid currentColor;
    border-radius: 0;
    box-shadow: 10px 10px 0 var(--btn-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(5px, 5px); box-shadow: 5px 5px 0 var(--btn-shadow); }
.btn-chevron { flex: none; }
.btn--yellow { background: var(--yellow); color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); --btn-shadow: var(--yellow); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--charcoal); padding: 1.4rem 1.25rem 1.6rem; }
.header-inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; position: relative; }
.site-logo img { width: 118px; height: auto; }

.site-nav { max-width: 100%; }
.nav-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2.6rem;
    padding: 1.05rem 3.1rem;
    background: rgba(255, 255, 255, .07);
    border-radius: 26px;
}
.nav-item a {
    display: block;
    font-family: var(--head);
    font-weight: 500;
    font-size: .78rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding: .2rem 0;
    transition: color .15s;
}
.nav-item a:hover, .nav-item.is-current a { color: var(--yellow); }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); width: 46px; height: 42px; padding: 0; position: absolute; right: 0; top: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); margin: 5px auto; }

.home-template .site-header,
.paged .site-header { }
.home-template .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; }

/* ---------- Blog home hero ---------- */
.blog-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--charcoal); }
.blog-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 62% 40%; }
.blog-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,16,18,.78) 0%, rgba(14,16,18,.45) 48%, rgba(14,16,18,.18) 100%), linear-gradient(0deg, rgba(14,16,18,.6) 0%, rgba(14,16,18,0) 45%); }
.blog-hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 14rem 1.5rem 5rem; }
.eyebrow { font-family: var(--head); font-weight: 400; font-size: clamp(.95rem, 1.7vw, 1.4rem); letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1.1rem; display: block; text-decoration: none; }
.hero-title { font-family: var(--head); font-weight: 800; font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: .96; letter-spacing: -.055em; max-width: 14.5em; }
.blog-hero .hl { background: none; color: var(--yellow); padding: 0; }
.hero-sub { max-width: 40rem; margin-top: 1.8rem; font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.55; color: rgba(255,255,255,.95); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2.4rem 3rem; margin-top: 2.6rem; }
.hero-link { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--head); font-weight: 500; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); text-decoration: none; }
.hero-link:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Inner page heads ---------- */
.page-head { text-align: center; padding: 4.5rem 1.5rem 1rem; max-width: 56rem; margin: 0 auto; }
.page-head .eyebrow { color: var(--charcoal); background: none; }
.page-title { font-family: var(--head); font-weight: 800; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.page-lede { margin-top: 1.1rem; font-size: 1.2rem; color: var(--muted); }
.page-head--error { padding-bottom: 5rem; }
.page-head--error .btn { margin-top: 2.5rem; }

/* ---------- Feed / cards ---------- */
.feed { max-width: var(--wrap); margin: 0 auto; padding: 5rem 1.5rem 5.5rem; }
.feed-head { text-align: center; margin-bottom: 3.8rem; }
.section-title { font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.05; letter-spacing: -.045em; }
.section-sub { margin-top: .8rem; font-size: 1.15rem; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 2.8rem; }

.card { display: flex; flex-direction: column; }
.card-media { display: block; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--charcoal); aspect-ratio: 3 / 2; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover .card-media { transform: translate(4px, 4px); box-shadow: 5px 5px 0 var(--charcoal); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--yellow); }
.card-fallback img { width: 46%; height: auto; object-fit: contain; }
.card-body { padding-top: 2rem; }
.card-tag { display: inline-block; font-family: var(--head); font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; background: var(--yellow); padding: .25rem .6rem; margin-bottom: .9rem; }
.card-title { font-family: var(--head); font-weight: 700; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.035em; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 6px; text-underline-offset: 4px; }
.card-excerpt { margin-top: .8rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.card-meta { margin-top: 1.1rem; display: flex; gap: .6rem; font-family: var(--head); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 4.5rem; font-family: var(--head); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.pagination a { text-decoration: none; border: 1px solid var(--charcoal); padding: .8rem 1.4rem; box-shadow: 5px 5px 0 var(--charcoal); background: var(--yellow); }
.pagination a:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--charcoal); }
.pagination .page-number { color: var(--muted); }

/* ---------- Article ---------- */
.article-head { padding: 4.5rem 1.5rem 2.5rem; text-align: center; }
.article-head-inner { max-width: 54rem; margin: 0 auto; }
.eyebrow--link { color: var(--charcoal); background: var(--yellow); display: inline-block; padding: .25rem .7rem; font-size: .78rem; font-weight: 600; letter-spacing: .22em; }
.article-title { font-family: var(--head); font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.05em; }
.article-lede { margin: 1.6rem auto 0; max-width: 42rem; font-size: 1.3rem; line-height: 1.55; color: var(--muted); }
.article-meta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; font-family: var(--head); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.article-feature { max-width: 1100px; margin: 1rem auto 0; padding: 0 1.5rem; }
.article-feature img { width: 100%; border-radius: var(--radius); box-shadow: 12px 12px 0 var(--charcoal); }
.article-feature figcaption { margin-top: 1.6rem; text-align: center; font-size: .9rem; color: var(--muted); }
.article-body { padding: 4rem 1.5rem 5rem; }

.gh-content { max-width: 44rem; margin: 0 auto; font-size: 1.14rem; line-height: 1.78; }
.gh-content > * + * { margin-top: 1.5rem; }
.gh-content h2 { font-family: var(--head); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.045em; margin-top: 3.4rem; scroll-margin-top: 2rem; }
.gh-content h3 { font-family: var(--head); font-weight: 700; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.03em; margin-top: 2.4rem; }
.gh-content h2 strong, .gh-content h3 strong, .gh-content h2 em { font-style: normal; font-weight: inherit; background-image: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 94%, transparent 94%); }
.gh-content p strong { font-weight: 600; }
.gh-content a { text-decoration: none; font-weight: 500; background-image: linear-gradient(transparent 62%, var(--yellow) 62%); transition: background-size .2s; }
.gh-content a:hover { background-image: linear-gradient(var(--yellow), var(--yellow)); }
.gh-content ul, .gh-content ol { padding-left: 1.5rem; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: .55rem; }
.gh-content li::marker { color: var(--charcoal); font-weight: 700; }
.gh-content blockquote { border-left: 6px solid var(--yellow); background: #fff; padding: 1.3rem 1.6rem; font-family: var(--head); font-size: 1.25rem; line-height: 1.45; letter-spacing: -.01em; }
.gh-content hr { border: 0; border-top: 1px solid var(--charcoal); margin: 3rem 0; }
.gh-content img { border-radius: 14px; }
.gh-content figure figcaption { margin-top: .8rem; font-size: .9rem; color: var(--muted); text-align: center; }
.gh-content code { background: #f1efe3; padding: .1em .4em; border-radius: 4px; font-size: .92em; }
.gh-content pre { background: var(--charcoal); color: var(--cream); padding: 1.3rem; border-radius: 12px; overflow-x: auto; }
.gh-content pre code { background: none; padding: 0; }

.gh-content table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; background: #fff; border: 1px solid var(--charcoal); }
.gh-content thead th { background: var(--charcoal); color: var(--yellow); font-family: var(--head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-align: left; padding: .9rem 1rem; white-space: nowrap; }
.gh-content td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.gh-content tbody tr:nth-child(even) td { background: #faf9ef; }

/* Koenig editor widths (required by Ghost) */
.kg-width-wide { position: relative; width: min(1100px, 92vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }

/* Key-fact callout: <div class="answer-box"> or Ghost callout card */
.answer-box, .kg-callout-card { background: var(--yellow); border: 1px solid var(--charcoal); border-radius: 14px; padding: 1.4rem 1.6rem; box-shadow: 7px 7px 0 var(--charcoal); font-size: 1.12rem; }

/* FAQ accordion (built by main.js from the FAQ heading) */
.faq { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 6px 24px rgba(35,38,41,.06); margin-top: 1.6rem; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 1.6rem; font-family: var(--head); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--charcoal); border-bottom: 2.5px solid var(--charcoal); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item[open] summary { background: #fcfcf0; }
.faq-answer { padding: .4rem 1.6rem 1.5rem; font-size: 1.05rem; line-height: 1.7; }
.faq-answer > * + * { margin-top: 1rem; }

/* Closing call-to-action inside an article */
.article-cta { max-width: 44rem; margin: 4rem auto 0; background: var(--charcoal); color: var(--white); padding: 2.6rem 2.4rem 3.2rem; border-radius: var(--radius); }
.article-cta-kicker { font-family: var(--head); font-weight: 800; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.045em; color: var(--yellow); }
.article-cta-text { margin: .9rem 0 2.2rem; font-size: 1.1rem; color: rgba(255,255,255,.9); }
.article-cta .btn--yellow { border-color: var(--yellow); --btn-shadow: var(--white); }

.feed--related { border-top: 1px solid var(--line); padding-top: 4.5rem; }

/* ---------- Closing yellow band ---------- */
.cta-band { background: var(--yellow); text-align: center; padding: 5.2rem 1.5rem 5rem; }
.cta-inner { max-width: 62rem; margin: 0 auto; }
.cta-title { font-family: var(--body); font-weight: 500; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.045em; }
.cta-title .hl { font-weight: 700; background-image: linear-gradient(transparent 62%, var(--cream) 62%, var(--cream) 98%, transparent 98%); }
.cta-sub { margin: .6rem 0 2.6rem; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.cta-note { margin-top: 2.2rem; font-style: italic; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--white); }
.footer-main { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.25fr 1.25fr 1.35fr; gap: 3rem; padding: 4.6rem 2.5rem 4.4rem; }
.footer-brand img { width: 230px; height: auto; }
.social { display: flex; gap: 1.6rem; margin-top: 1.5rem; padding-left: .3rem; }
.social a { color: var(--yellow); display: inline-flex; }
.social a:hover { color: var(--white); }
.footer-col h3 { font-family: var(--head); font-weight: 600; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.045em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1.4rem; }
.footer-col p, .footer-col li { font-size: .86rem; letter-spacing: .13em; line-height: 2; color: rgba(255,255,255,.92); }
.footer-col p + p { margin-top: .9rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--yellow); }
.licences li { position: relative; padding-left: 2.3rem; line-height: 1.7; margin-bottom: .55rem; }
.licences li::before { content: ""; position: absolute; left: .3rem; top: .55em; width: 7px; height: 12px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(40deg); }

.footer-legal { background: var(--black); text-align: center; padding: 2.6rem 1.5rem 2.8rem; }
.copyright { font-family: var(--head); font-weight: 400; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 4.2rem; margin: 1.4rem 0 1.6rem; }
.legal-links a { font-size: .86rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); text-decoration: none; }
.legal-links a:hover { color: var(--yellow); }
.disclaimer { max-width: 62rem; margin: .2rem auto 0; font-style: italic; font-size: .8rem; letter-spacing: .06em; color: var(--yellow); opacity: .92; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .nav-list { gap: .25rem 1.7rem; padding: 1rem 1.8rem; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .gh-content table { display: block; overflow-x: auto; }
    .site-header { padding: 1rem 1rem 1.2rem; }
    .header-inner { align-items: flex-start; flex-direction: row; justify-content: space-between; }
    .site-logo img { width: 92px; }
    .nav-toggle { display: block; position: static; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + .8rem); z-index: 30; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: .4rem; border-radius: 14px; background: rgba(26,28,30,.97); padding: 1.2rem 1.4rem; }
    .blog-hero { min-height: 82vh; }
    .blog-hero-inner { padding: 10rem 1.25rem 3.5rem; }
    .card-grid { grid-template-columns: 1fr; gap: 3.4rem; }
    .btn { padding: 1.05rem 1.6rem; letter-spacing: .14em; box-shadow: 7px 7px 0 var(--btn-shadow); }
    .feed { padding: 3.5rem 1.25rem 4rem; }
    .article-head { padding-top: 3rem; }
    .footer-main { grid-template-columns: 1fr; padding: 3.4rem 1.5rem; gap: 2.4rem; }
    .legal-links { gap: .6rem 1.8rem; }
    .article-cta { padding: 2rem 1.4rem 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
