/* AUSBUSINESS — design sample
   Brand cues kept from the 2015 site: the yellow logo block and the orange-red accent. */

:root {
  --paper: #fbfaf6;
  --paper-2: #f3f0e7;
  --card: #ffffff;
  --ink: #1d1b16;
  --ink-2: #4a463d;
  --muted: #7a756a;
  --line: #e6e1d4;
  --brand: #ffca00;          /* logo yellow */
  --brand-ink: #1d1b16;
  --accent: #d9360b;         /* the old #f33e0f, darkened slightly for readable links */
  --accent-soft: #fdebe3;
  --frame: #efeadd;          /* tinted panel behind small archive images */
  --shadow: 0 1px 2px rgba(29, 27, 22, .06), 0 8px 24px rgba(29, 27, 22, .06);

  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15140f;
    --paper-2: #1d1b15;
    --card: #1f1d17;
    --ink: #f2efe6;
    --ink-2: #cfcabd;
    --muted: #9b9586;
    --line: #34312a;
    --accent: #ff7a4d;
    --accent-soft: #3a2117;
    --frame: #2a2720;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-head);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 10; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo {
  display: inline-flex; align-items: stretch; font-weight: 800; letter-spacing: .02em; font-size: 19px; line-height: 1;
  border: 2px solid var(--ink); border-radius: 8px; overflow: hidden;   /* one outline around the whole logo */
  flex-shrink: 0;
}
.logo .mark { background: var(--brand); color: var(--brand-ink); padding: 7px 8px 6px 10px; }
.logo .rest { padding: 7px 10px 6px 8px; }

.nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current] { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- shared bits */
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.meta { font-size: 14px; color: var(--muted); }
.meta .dot { margin: 0 .45em; }

.frame { background: var(--frame); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.section-head h2 { font-size: 26px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.section-head a { font-size: 15px; font-weight: 600; color: var(--accent); }
.section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- home: intro */
.intro { padding: 56px 0 28px; }
.intro h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.025em;
  margin: 0 0 14px; max-width: 16ch; font-weight: 800;
}
.intro h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand) 62%); padding: 0 .08em; }
.intro p { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 52ch; }

/* ---------------------------------------------------------------- home: featured */
.featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 28px; margin: 28px 0 56px; box-shadow: var(--shadow);
}
.featured .frame { aspect-ratio: 6 / 5; }
.featured h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 14px; }
.featured h2 a:hover { color: var(--accent); }
.featured p { font-family: var(--font-text); font-size: 19px; color: var(--ink-2); margin: 0 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
}
.btn:hover { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.chips a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-weight: 500; background: var(--card); color: var(--ink-2);
}
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips .count { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; margin: 0 0 64px; }
.card { display: flex; flex-direction: column; }
.card .frame { aspect-ratio: 6 / 5; margin-bottom: 16px; transition: transform .2s ease; }
.card:hover .frame { transform: translateY(-3px); }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin: 8px 0 8px; }
.card:hover h3 { color: var(--accent); }
.card p { font-family: var(--font-text); font-size: 16.5px; color: var(--ink-2); margin: 0 0 10px; }
.card .meta { margin-top: auto; }

/* ---------------------------------------------------------------- archive list */
.archive {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  border-top: 2px solid var(--ink); padding-top: 32px; margin-bottom: 64px;
}
.archive aside h2 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.archive aside p { color: var(--ink-2); margin: 0; font-size: 16px; }
.archive aside .stat { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 22px 0 4px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 16px 0; align-items: baseline; }
.list .t { font-size: 19px; font-weight: 600; line-height: 1.3; }
.list a:hover .t { color: var(--accent); }
.list .meta { white-space: nowrap; }

.pager { display: flex; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; background: var(--card);
}
.pager a:hover { border-color: var(--ink); }
.pager [aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted); }
.pager .next { margin-left: auto; padding: 0 18px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #d9d5ca; padding: 56px 0 28px; margin-top: 24px; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0d0c09; } }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo { border-color: #f2efe6; }
.site-footer .logo .rest { color: #f2efe6; }
.site-footer p { margin: 16px 0 0; max-width: 38ch; font-size: 15.5px; color: #b9b4a7; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8d887b; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.site-footer li { margin: 0 0 8px; font-size: 15.5px; }
.site-footer a:hover { color: var(--brand); }
.site-footer .base { border-top: 1px solid #39362e; margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #8d887b; }

/* ---------------------------------------------------------------- post page */
.crumbs { font-size: 14.5px; color: var(--muted); padding: 32px 0 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 .5em; }

.post-head { max-width: 820px; margin: 0 auto; padding: 28px 0 32px; text-align: center; }
.post-head h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -.025em; margin: 14px 0 18px; font-weight: 800; }
.post-head .dek { font-family: var(--font-text); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--ink-2); margin: 0 auto 22px; max-width: 40ch; }
.byline { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.byline strong { color: var(--ink); font-weight: 600; }

.post-figure { max-width: 960px; margin: 0 auto 48px; }
.post-figure .frame {
  aspect-ratio: 16 / 7; padding: 28px;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 55%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    var(--frame);
}
.post-figure .frame img { width: auto; height: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); }
.post-figure figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }

.prose { max-width: 680px; margin: 0 auto; font-family: var(--font-text); font-size: 20px; line-height: 1.7; color: var(--ink); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child::first-letter {
  float: left; font-family: var(--font-head); font-weight: 800; font-size: 3.6em; line-height: .85;
  padding: .08em .1em 0 0; color: var(--accent);
}
.prose h2 { font-family: var(--font-head); font-size: 30px; line-height: 1.2; letter-spacing: -.015em; margin: 1.8em 0 0; }
.prose h3 { font-family: var(--font-head); font-size: 23px; line-height: 1.3; margin: 1.5em 0 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1.1em 0 0; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote {
  margin: 1.8em 0 0; padding: 0 0 0 24px; border-left: 4px solid var(--brand);
  font-size: 1.2em; line-height: 1.5; font-style: italic; color: var(--ink-2);
}
.prose blockquote cite { display: block; font-style: normal; font-family: var(--font-head); font-size: 15px; color: var(--muted); margin-top: 10px; }
.callout {
  font-family: var(--font-head); font-size: 17px; line-height: 1.6;
  background: var(--accent-soft); border-radius: var(--radius); padding: 22px 26px; margin-top: 1.8em !important;
}
.callout h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.callout ul { margin: 0; padding-left: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-head); font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

.post-foot { max-width: 680px; margin: 48px auto 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.tags a { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tags a:hover { background: var(--ink); color: var(--paper); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.prevnext a { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prevnext a:hover { border-color: var(--ink); }
.prevnext small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.prevnext strong { font-size: 17px; line-height: 1.3; display: block; }
.prevnext .next { text-align: right; }

.related { margin: 72px 0 40px; padding-top: 40px; border-top: 2px solid var(--ink); }
.related .grid { margin-bottom: 24px; }

/* ---------------------------------------------------------------- ad slots
   Reserved space for AdSense units. Each slot keeps a fixed minimum height so the
   page doesn't jump when the ad loads. Paste the ad unit code inside .ad-slot__unit
   and delete the placeholder text. */
.ad-slot { margin: 0 auto 56px; text-align: center; font-family: var(--font-head); }
.ad-slot__label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.ad-slot__unit {
  display: grid; place-items: center; margin: 0 auto;
  border: 1.5px dashed var(--line); border-radius: 10px; background: var(--paper-2);
  color: var(--muted); font-size: 13px;
}
.ad-slot__unit:has(ins) { border: 0; background: none; }   /* real ad in place: drop the placeholder look */
.ad-slot--wide .ad-slot__unit { max-width: 728px; min-height: 90px; }
.ad-slot--box .ad-slot__unit { max-width: 300px; min-height: 250px; }
.ad-slot--article { margin: 2em 0 0 !important; }
.ad-slot--article .ad-slot__unit { min-height: 280px; }

/* guide pages: end-of-article Multiplex and the desktop sticky sidebar */
.ad-slot--multiplex { margin: 8px 0 36px; }
.ad-slot--multiplex .ad-slot__unit { min-height: 320px; max-width: none; }
.guide-rail { display: none; }
@media (min-width: 1200px) {
  .guide-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
  .guide-rail { display: block; position: sticky; top: 92px; }
  .ad-slot--rail { margin: 0; display: flex; flex-direction: column; }
  .ad-slot--rail .ad-slot__label { order: 1; margin: 8px 0 0; } /* label under the ad, so the ad top lines up with the hero */
  .ad-slot--rail .ad-slot__unit { width: 300px; min-height: 600px; }
}

/* in-feed ad that sits in the card grid */
.card--ad { justify-content: flex-start; margin: 0; }
.card--ad .ad-slot__unit { width: 100%; flex: 1; min-height: 360px; max-width: none; }

.archive aside .ad-slot { margin: 32px 0 0; text-align: left; }

/* ---------------------------------------------------------------- hero images and guide cards */
/* hero sits at the top of the main column, text width, level with the sidebar ad */
.post-hero { max-width: 680px; margin: 0 auto 44px; }
.post-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--frame); }
.post-hero figcaption { font-size: 12.5px; color: var(--muted); text-align: right; margin-top: 6px; font-family: var(--font-head); }
.card--guide .frame { aspect-ratio: 16 / 9; }
.card--guide .frame img { width: 100%; height: 100%; object-fit: cover; }
.drafts-index .grid { margin-bottom: 24px; }
@media (max-width: 720px) { .post-hero { margin: 0 -16px 32px; } .post-hero img { border-radius: 0; } }

/* ---------------------------------------------------------------- guide components */
.draft-banner {
  background: var(--accent); color: #fff; text-align: center; font: 700 12.5px/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px;
}
.infobox {
  font-family: var(--font-head); font-size: 15.5px; line-height: 1.55;
  border: 1.5px solid var(--line); border-left: 5px solid var(--ink); border-radius: 10px;
  padding: 14px 18px; background: var(--card); color: var(--ink-2);
}
.infobox strong { color: var(--ink); }
.inshort {
  font-family: var(--font-head); background: var(--paper-2); border-radius: var(--radius);
  padding: 20px 24px; font-size: 17px; line-height: 1.55;
}
.prose .inshort h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.inshort ul { margin: 0; padding-left: 1.2em; }
.inshort li { margin: .3em 0; }
.ai-box {
  font-family: var(--font-head); font-size: 17px; line-height: 1.6;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--radius);
  padding: 22px 24px; margin-top: 2em !important; background: var(--card);
}
.ai-box__label { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ai-box > * + * { margin-top: .8em; }
.ai-box ul { padding-left: 1.2em; }
.ai-box p:last-child em { color: var(--muted); }
.download {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 22px 24px;
  font-family: var(--font-head); margin-top: 2em !important;
}
.download__label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.download h3 { margin: 4px 0 6px; font-size: 21px; }
.download p { margin: 0; font-size: 15.5px; color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 46ch; }
.download__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.download .btn { margin: 0; background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.download .btn--ghost { background: transparent; color: var(--paper); border: 1.5px solid var(--paper); }
.download .btn:hover { background: #fff; color: var(--ink); }
.prose a.pending, .related-guides a.pending { text-decoration-style: dotted; cursor: help; }
.related-guides h2, .sources h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.related-guides ul { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-guides a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; line-height: 1.35; }
.related-guides a:hover { border-color: var(--ink); }
.related-guides small { display: block; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.sources { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 40px; }
.sources ol { padding-left: 1.2em; margin: 0 0 12px; }
.sources li { margin: 4px 0; }
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sources span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 720px) { .related-guides ul { grid-template-columns: 1fr; } }
.drafts-index h2.drafts-section { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 28px 0 12px; }
.drafts-index h2.drafts-section span { color: var(--muted); font-weight: 500; }
.drafts-index ul { margin-bottom: 8px; }

.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { position: relative; padding-left: 34px; }
.prose ul.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 18px; height: 18px;
  border: 2px solid var(--ink-2); border-radius: 5px; background: var(--card);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.cta-row .btn { margin-top: 0; }
.cta-row--end { justify-content: flex-start; margin-top: 2em !important; font-family: var(--font-head); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.prose .btn { text-decoration: none; }
.prose .btn:not(.btn--outline) { color: var(--paper); }
@media (max-width: 720px) { .cta-row { justify-content: flex-start; } .cta-row .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------------------------------------------------------------- forms */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.enquiry {
  font-family: var(--font-head); margin-top: 2.4em !important; scroll-margin-top: 90px;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 28px; box-shadow: var(--shadow);
}
.prose .enquiry h2 { margin-top: 0; }
.enquiry__intro { font-size: 15px; color: var(--muted); margin: 6px 0 20px !important; }
.form { display: grid; gap: 18px; font-size: 16px; }
.form [hidden], .form[hidden], .form__done[hidden] { display: none !important; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .form legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent); }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: var(--accent); }
.hint { margin: 0 !important; font-size: 13.5px; color: var(--muted); }
.error { margin: 0 !important; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.form__type { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form__type legend { margin-bottom: 8px; padding: 0; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.choice strong { display: block; font-size: 15px; }
.choice small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice input:checked + span { border-color: var(--ink); background: color-mix(in srgb, var(--brand) 22%, var(--paper)); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check .error { grid-column: 2; }
.check a { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__actions .btn { margin: 0; border: 0; cursor: pointer; font: 600 16px/1 var(--font-head); padding: 14px 24px; }
.form__actions .btn:disabled { opacity: .6; cursor: progress; }
.form__status { margin: 0 !important; font-size: 15px; font-weight: 600; color: var(--accent); }
.form__done { font-family: var(--font-head); }
.form__done h3 { margin: 0 0 6px; font-size: 22px; }
.form__copy { white-space: pre-wrap; font: 14px/1.5 var(--font-head); background: var(--paper-2); border-radius: 10px; padding: 14px 16px; color: var(--ink-2); }
@media (max-width: 720px) {
  .enquiry { padding: 18px; }
  .form__grid, .form__type { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- legal pages */
.toc { background: var(--paper-2); border-radius: var(--radius); padding: 20px 24px; font-family: var(--font-head); font-size: 16px; }
.toc h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; columns: 2; column-gap: 24px; }
.toc li { margin: 0 0 4px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--accent); }
.legal > p:first-child::first-letter { all: unset; }
.legal h2 { scroll-margin-top: 90px; }

.linklike {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose .linklike { color: var(--accent); }
.site-footer .linklike { text-decoration: none; text-align: left; }
.site-footer .linklike:hover { color: var(--brand); }
.site-footer [aria-current] { color: var(--brand); }

/* ---------------------------------------------------------------- privacy choices notice */
.consent {
  position: fixed; z-index: 50; left: 50%; bottom: 20px;
  width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  transform: translate(-50%, 0); animation: consent-in .25s ease both;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-top: 4px solid var(--brand); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(29, 27, 22, .22); padding: 20px 22px;
  font-family: var(--font-head);
}
.consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.consent__title { font-size: 17px; margin: 0 0 4px; letter-spacing: -.005em; }
.consent__text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.consent__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.consent__prefs { margin-top: 14px; border-top: 1px solid var(--line); }
.consent__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); cursor: default;
}
label.consent__row { cursor: pointer; }
.consent__row strong { display: block; font-size: 15px; }
.consent__row span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.consent__row .consent__always { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.consent__note { font-size: 13.5px; color: var(--ink-2); background: var(--paper-2); border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; }
.consent__switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0; cursor: pointer;
  width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative;
  transition: background .15s ease;
}
.consent__switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease;
}
.consent__switch:checked { background: var(--accent); }
.consent__switch:checked::after { transform: translateX(20px); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent__btn {
  font: 600 14.5px/1 var(--font-head); padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); white-space: nowrap;
}
.consent__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.consent__btn--ghost { background: transparent; color: var(--ink); }
.consent__btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.consent__btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .consent, .consent__switch, .consent__switch::after { animation: none; transition: none; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .archive { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-header .wrap { height: auto; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 8px; }
  .nav { margin: 0 -16px; padding: 0 16px 4px; width: calc(100% + 32px); }
  .intro { padding: 36px 0 16px; }
  .intro p { font-size: 17px; }
  .featured { grid-template-columns: 1fr; gap: 20px; padding: 16px; margin-bottom: 40px; }
  .featured p { font-size: 17px; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .list a { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .post-head { text-align: left; padding-top: 16px; }
  .post-figure .frame { aspect-ratio: 4 / 3; padding: 16px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 25px; }
  .prevnext { grid-template-columns: 1fr; }
  .ad-slot { margin-bottom: 40px; }
  .ad-slot--wide .ad-slot__unit { min-height: 100px; }
  .ad-slot--article .ad-slot__unit { min-height: 250px; }
  .card--ad .ad-slot__unit { min-height: 280px; }
  .archive aside .ad-slot { text-align: center; }
  .consent { bottom: 12px; padding: 18px; gap: 14px; }
  .consent__btn { flex: 1 1 40%; }
  .consent__btn--ghost { order: 3; flex-basis: 100%; }
  .toc ol { columns: 1; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; margin-bottom: 12px; background: var(--card); }
  .legal td { border: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .legal td:last-child { border-bottom: 0; }
  .legal td::before {
    content: attr(data-label); display: block; font-size: 12px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
  .pager .next { margin-left: 0; }
}

/* ---------------------------------------------------------------- live site: home and topic pages */
.featured--guide .frame { aspect-ratio: 16 / 9; overflow: hidden; }
.featured--guide .frame img { width: 100%; height: 100%; object-fit: cover; }
.card--guide p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.topic-block .grid { margin-bottom: 56px; }
.intro--section { padding: 24px 0 36px; }
.intro--section h1 { max-width: none; margin-top: 10px; }
.archive .list .meta { color: var(--muted); }
.post-hero figcaption a { color: inherit; text-decoration: none; }
.post-hero figcaption a:hover { text-decoration: underline; }
