/* ============================================================
   Oz Citizenship Test — blog pages
   Shared by everything under /blog/. Tokens match index.html so
   the blog and the landing page read as one site in both themes.
   ============================================================ */

:root {
  --paper:      #F5EFE3;
  --paper-2:    #FBF7F0;
  --card:       #FFFFFF;
  --ink:        #14203A;
  --ink-2:      #1A2B4A;
  --muted:      #5C6880;
  --line:       #E2DACB;
  --brand:      #1A2B4A;
  --accent:     #2563EB;
  --accent-ink: #1D4FD8;
  --gold:       #A8760A;
  --red:        #C8102E;

  --shadow-sm: 0 1px 2px rgba(20,32,58,.06), 0 2px 6px rgba(20,32,58,.05);
  --shadow-md: 0 2px 6px rgba(20,32,58,.05), 0 12px 28px -12px rgba(20,32,58,.22);
  --shadow-xl: 0 40px 90px -40px rgba(20,32,58,.55), 0 12px 30px -14px rgba(20,32,58,.28);

  --maxw: 1140px;
  --read: 720px;
  --pad: clamp(16px, 5vw, 40px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #10192B;
    --paper-2:   #14203A;
    --card:      #182543;
    --ink:       #F2F5FA;
    --ink-2:     #E7EDF7;
    --muted:     #9AA8C2;
    --line:      #27354F;
    --brand:     #F2F5FA;
    --accent:    #6E9BFF;
    --accent-ink:#8FB4FF;
    --gold:      #E2B33C;
    --red:       #FF6B7D;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 12px 28px -14px rgba(0,0,0,.7);
    --shadow-xl: 0 40px 90px -40px rgba(0,0,0,.9), 0 12px 30px -14px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink);
  line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
h1, h2, h3 { color: var(--brand); letter-spacing: -.028em; font-weight: 800; margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 999; font-weight: 600; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}
.hdr-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--brand); font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); }
@media (max-width: 760px) { .nav { display: none; } .hdr .btn { margin-left: auto; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: .95rem; padding: 11px 20px; border-radius: 999px;
  text-decoration: none; white-space: nowrap; background: var(--ink-2); color: #fff; box-shadow: var(--shadow-md);
}
@media (prefers-color-scheme: dark) { .btn { background: #F2F5FA; color: #10192B; } }

/* ---------- Blog index ---------- */
.blog-hero { padding-block: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 44px); }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.06; max-width: 760px; }
.blog-hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 18px 0 0; }

.featured {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 2.5vw, 26px); box-shadow: var(--shadow-md);
  margin-bottom: clamp(36px, 5vw, 56px);
}
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.featured video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 16 / 9; }
.featured h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.featured p { color: var(--muted); margin: 12px 0 18px; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; padding-bottom: clamp(56px, 8vw, 96px); }
.post-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.post-card img { width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.post-card h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .post-card:hover { transform: none; } }

/* ---------- Article ---------- */
.article { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.article > * { max-width: var(--read); margin-inline: auto; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; }
.meta { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.standfirst { font-size: 1.2rem; color: var(--muted); margin-top: 22px; line-height: 1.6; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; margin-top: 46px; margin-bottom: 4px; }
.article p { margin: 16px auto 0; }
.article ul, .article ol { margin: 16px auto 0; padding-left: 1.3em; }
.article li + li { margin-top: 8px; }
.article strong { color: var(--brand); }

figure { margin: 34px auto 0; }
figure img, figure video { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--card); }
figure video { background: #000; aspect-ratio: 16 / 9; }
figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; text-align: center; }
.article > figure.wide { max-width: 1000px; }

/* side-by-side figures: tall 9:16 / 4:5 art next to each other */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; align-items: start; }
.pair figure { margin-top: 0; }
.article > .pair { max-width: 900px; margin-top: 34px; }
.article > .trio { max-width: 1000px; margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; align-items: start; }
.trio figure { margin-top: 0; }

.ad-frame { display: grid; justify-items: center; gap: 10px; }
.ad-frame iframe { border: 0; border-radius: 16px; box-shadow: var(--shadow-xl); background: #F4EFE4; pointer-events: none; max-width: 100%; }

.callout {
  margin-top: 34px; padding: 18px 22px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line);
  font-size: .95rem; color: var(--muted);
}
.callout strong { color: var(--brand); }

.cta-box {
  margin-top: 48px; padding: clamp(22px, 4vw, 34px); border-radius: 24px; text-align: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.cta-box img { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; box-shadow: var(--shadow-sm); }
.cta-box h2 { margin: 0; font-size: 1.5rem; }
.cta-box p { color: var(--muted); margin: 10px auto 22px; max-width: 460px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--ink-2); color: #fff; text-decoration: none; box-shadow: var(--shadow-md); min-width: 196px;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store .t { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.store .t small { font-size: .66rem; opacity: .74; letter-spacing: .04em; text-transform: uppercase; }
.store .t strong { font-size: 1.05rem; font-weight: 600; color: inherit; }
.apple-glyph { fill: #fff; }
@media (prefers-color-scheme: dark) { .store { background: #F2F5FA; color: #10192B; } .store .apple-glyph { fill: #10192B; } }

.more-posts { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.more-posts h2 { margin-top: 0; font-size: 1.2rem; }
.more-posts ul { list-style: none; padding: 0; display: grid; gap: 10px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px 8px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot-cols h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-cols a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.foot-cols a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-langs { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.foot-in { border-top: 1px solid var(--line); margin-top: 28px; padding-block: 24px 40px; color: var(--muted); font-size: .82rem; }
.foot-in p { max-width: 780px; margin: 0; line-height: 1.6; }

/* ---------- Shared bits for guides, languages and the practice test ---------- */
picture { display: block; }
.post-card picture img { width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.article > figure.narrow { max-width: 460px; }
.blog-hero .crumbs { margin-bottom: 18px; }
.muted { color: var(--muted); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 30px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.facts strong { display: block; font-size: 1.7rem; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .9rem; }

.faq { margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.faq details p { color: var(--muted); }

.article h3 { font-size: 1.15rem; margin-top: 30px; }
.article h2[id] { scroll-margin-top: 80px; }

/* Long-form guide: hero art, then sections that alternate their picture left/right */
.article > .hero-art { max-width: 1000px; margin-top: 30px; }
.hero-art img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-xl); border: 0; }

.article { counter-reset: sec; }
.article > .split {
  max-width: 1000px; margin-top: clamp(48px, 7vw, 76px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 52px); align-items: center;
}
.split.art-left { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.split.art-left .split-art { order: -1; }
.split-text > h2 { margin-top: 0; }
.split-text > h2::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  display: block; font-size: .8rem; letter-spacing: .16em; color: var(--gold); margin-bottom: 8px;
}
.split-text > p:first-of-type { margin-top: 14px; }
.split-art { margin: 0; position: relative; }
.split-art::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 28px;
  border: 2px dashed color-mix(in srgb, var(--gold) 55%, transparent); z-index: 0;
}
.split.art-left .split-art::before { inset: 14px 14px -14px -14px; }
.split-art img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 28px; border: 0; box-shadow: var(--shadow-md); transition: transform .3s ease; }
.split:hover .split-art img { transform: rotate(-1deg) scale(1.015); }
.split.art-left:hover .split-art img { transform: rotate(1deg) scale(1.015); }
.split .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
@media (max-width: 760px) {
  .article > .split, .split.art-left { grid-template-columns: 1fr; }
  .split .split-art, .split.art-left .split-art { order: -1; max-width: 380px; width: 100%; justify-self: center; }
  .split-art::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .split:hover .split-art img { transform: none; } }

.toc { margin-top: 30px; padding: 18px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.toc strong { color: var(--brand); font-size: .95rem; }
.toc ol { margin: 10px 0 0; padding-left: 1.3em; columns: 2 260px; column-gap: 28px; }
.toc li { margin: 0 0 6px; font-size: .95rem; break-inside: avoid; }

.examples li { margin-top: 16px; }
.examples details { margin-top: 6px; font-size: .95rem; color: var(--muted); }
.examples summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.tips li { margin-top: 12px; }

.plan { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plan th, .plan td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.plan th { background: var(--paper-2); color: var(--brand); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.plan tr:last-child td { border-bottom: 0; }
.plan td:first-child { font-weight: 700; color: var(--brand); }
@media (max-width: 600px) { .plan th:nth-child(3), .plan td:nth-child(3) { display: none; } }
.vq li { margin-top: 14px; }

/* language pages */
.native-title { font-size: 1.3rem; color: var(--gold); font-weight: 600; margin-top: 10px; }
.native-box { margin-top: 26px; padding: 18px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 1.05rem; }
.native-box p:first-child { margin-top: 0; }
.chapters { list-style: none; padding: 0; display: grid; gap: 10px; }
.chapters li { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.chapters li span:first-child { font-weight: 600; color: var(--brand); }
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 600px) { .bi, .chapters li { grid-template-columns: 1fr; } }
.bi .bi-q { margin: 0; font-weight: 600; color: var(--brand); }
.bi .bi-a { margin: 6px 0 0; color: var(--muted); }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: 30px; }
.lang-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow-sm); }
.lang-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.lang-card .ln { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.lang-card .le { color: var(--muted); font-size: .9rem; }

/* practice test */
.quiz ol { list-style: none; padding: 0; counter-reset: none; }
.pq { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pq.ok { border-color: #15803D; box-shadow: 0 0 0 2px color-mix(in srgb, #15803D 30%, transparent); }
.pq.bad { border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 30%, transparent); }
.pq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pq legend { padding: 0; display: block; width: 100%; }
.pq .qn { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pq .vtag { font-size: .72rem; font-weight: 700; color: var(--gold); margin-left: 8px; text-transform: uppercase; letter-spacing: .08em; }
.pq .qt { display: block; font-weight: 700; color: var(--brand); font-size: 1.08rem; margin: 6px 0 10px; }
.pq label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.pq label:hover { background: var(--paper-2); }
.pq input { margin-top: 6px; accent-color: var(--accent); }
.pq details { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.pq summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.quiz-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.quiz-bar .btn { cursor: pointer; border: 0; }
.quiz-bar .btn-ghost { border: 1px solid var(--line); }
.result { margin-top: 20px; padding: 16px 20px; border-radius: 14px; font-size: 1.02rem; }
.result.pass { background: color-mix(in srgb, #15803D 14%, var(--card)); border: 1px solid #15803D; }
.result.fail { background: color-mix(in srgb, var(--red) 12%, var(--card)); border: 1px solid var(--red); }
