/* 4IR Pty Ltd — site styles. System fonts only; no external resources.
   Light/dark follows the OS via prefers-color-scheme (no toggle, no JS). */
:root {
  color-scheme: light dark;
  /* ---- light palette ---- */
  --bg: #ffffff;              /* page background */
  --bg-soft: #f4f7fa;         /* alternate section background */
  --surface: #ffffff;         /* cards, case notes, credentials, steps */
  --text: #1c2833;            /* body text */
  --heading: #0b1f33;         /* headings, strong labels */
  --muted: #4a5a6a;           /* secondary text */
  --border: #dde3ea;          /* hairlines */
  --accent: #0f766e;          /* links and accent text (AA on bg and bg-soft) */
  --accent-strong: #2bb3a3;   /* button fill, accent bars */
  --on-accent: #0b1f33;       /* text on accent-strong */
  --focus: #0f766e;           /* focus ring on light surfaces */
  --focus-on-dark: #5eead4;   /* focus ring inside dark bands */
  --header-bg: #ffffff;
  --header-border: #dde3ea;
  --nav-hover: #f4f7fa;
  --hero-from: #0b1f33;
  --hero-to: #12304d;
  --hero-text: #e8eef4;
  --hero-lead: #d3dde7;
  --hero-heading: #ffffff;
  --band-bg: #0b1f33;         /* credential panel, CTA */
  --band-border: transparent;
  --footer-bg: #07172a;
  --footer-text: #b9c6d3;
  --footer-link: #e8eef4;
  --card-shadow: none;
  --chip-bg: #ffffff;
  --chip-text: #0b1f33;
  --chip-border: #dde3ea;
  --dot-bg: #ffffff;          /* timeline dots */
  --btn-dark-bg: #0b1f33;
  --btn-dark-text: #ffffff;
  --btn-dark-hover: #0f766e;
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* ---- dark palette: deep navy/charcoal, off-white text, brighter teal ---- */
    --bg: #0d1726;
    --bg-soft: #101c2e;
    --surface: #15243a;
    --text: #e6edf3;
    --heading: #f2f6fa;
    --muted: #a9b7c6;
    --border: #26384f;
    --accent: #4fd1c1;
    --accent-strong: #2bb3a3;
    --on-accent: #06121f;
    --focus: #5eead4;
    --focus-on-dark: #5eead4;
    --header-bg: #0b1422;
    --header-border: #1d2c41;
    --nav-hover: #15243a;
    --hero-from: #10243b;
    --hero-to: #163252;
    --hero-text: #e6edf3;
    --hero-lead: #c9d5e1;
    --hero-heading: #ffffff;
    --band-bg: #122136;
    --band-border: #26384f;
    --footer-bg: #08111d;
    --footer-text: #a9b7c6;
    --footer-link: #e6edf3;
    --card-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 6px 18px rgba(0,0,0,.25);
    --chip-bg: #15243a;
    --chip-text: #e6edf3;
    --chip-border: #2c4059;
    --dot-bg: #0d1726;
    --btn-dark-bg: #2bb3a3;
    --btn-dark-text: #06121f;
    --btn-dark-hover: #5eead4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;   /* footer sits at the bottom on short pages */
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .cta, .panel, .site-footer { --focus: var(--focus-on-dark); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--btn-dark-bg); color: var(--btn-dark-text); padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; color: var(--btn-dark-text); }

/* Header */
.site-header { border-bottom: 1px solid var(--header-border); background: var(--header-bg); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; gap: .6rem; }
.brand .brand-wordmark { width: 72px; height: 36px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .45rem .8rem; border-radius: 6px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: var(--nav-hover); color: var(--heading); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--heading); background: var(--nav-hover); box-shadow: inset 0 -2px 0 var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: var(--hero-text);
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--band-border);
}
.hero h1 { color: var(--hero-heading); max-width: 20ch; }
.hero .lead { font-size: 1.2rem; max-width: 62ch; color: var(--hero-lead); }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-strong); margin-bottom: 1rem;
}
.page-hero { padding: 3.5rem 0 3rem; }
.page-hero h1 { max-width: 28ch; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .8rem 1.3rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { background: #ffffff; color: #0b1f33; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #ffffff; }
.btn-ghost:hover { border-color: #ffffff; color: #ffffff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-text); }
.btn-dark:hover { background: var(--btn-dark-hover); color: var(--btn-dark-text); }

/* Sections */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-intro { max-width: 70ch; color: var(--muted); margin-bottom: 2rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; border-top: 4px solid var(--accent-strong); box-shadow: var(--card-shadow);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1rem; margin: .5rem 0 0; color: var(--muted); }
.card li { margin-bottom: .3rem; }
.card .tag { font-size: .85rem; color: var(--muted); }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.pill-list li {
  background: var(--chip-bg); border: 1px solid var(--chip-border); border-radius: 999px;
  padding: .35rem .9rem; font-size: .95rem; font-weight: 500; color: var(--chip-text);
}

.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; } }

.panel {
  background: var(--band-bg); color: var(--hero-text); border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid var(--band-border);
}
.panel h2, .panel h3 { color: var(--hero-heading); }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: .45rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { position: relative; padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-weight: 800; color: var(--accent); font-size: 1.1rem; margin-bottom: .35rem;
}
.steps strong { display: block; color: var(--heading); margin-bottom: .25rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--border); }
.timeline > li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.timeline > li::before {
  content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px;
  border-radius: 50%; background: var(--dot-bg); border: 3px solid var(--accent-strong);
}
.timeline h3 { margin-bottom: .2rem; }
.timeline .role { color: var(--muted); font-weight: 500; margin-bottom: .5rem; }
.timeline ul { margin: 0; padding-left: 1.1rem; }

.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cred-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: var(--card-shadow); }
.cred-list strong { display: block; color: var(--heading); font-size: 1.05rem; }
.cred-list span { color: var(--muted); font-size: .95rem; }

.cta { background: var(--band-bg); color: var(--hero-text); padding: 3.5rem 0;
  border-top: 1px solid var(--band-border); }
.cta h2 { color: var(--hero-heading); }
.cta p { max-width: 60ch; color: var(--hero-lead); }

.contact-card { max-width: 640px; }
.contact-email { font-size: 1.35rem; font-weight: 700; word-break: break-all; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.dl dt { font-weight: 600; color: var(--heading); }
.dl dd { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2.5rem 0; font-size: .95rem;
  border-top: 1px solid var(--band-border); }
.site-footer a { color: var(--footer-link); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer .legal strong { color: var(--footer-link); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer .footer-mark { width: 56px; height: 28px; margin-bottom: .5rem; }

.notfound { padding: 6rem 0; text-align: left; }
.notfound .code { font-size: 4rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 1rem; }

.h3 { font-size: 1.2rem; margin: 0 0 .5rem; }

/* Header logo slot */
.brand-mark:empty { display: none; }
.brand-mark { display: inline-flex; }
.brand .brand-logo { width: auto; height: 60px; }
.brand picture { display: inline-flex; }

/* About: headshot slot */
.hero-with-photo { display: flex; gap: 2.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-with-photo > div:first-child { flex: 1 1 420px; }
.headshot-wrap { display: block; flex: 0 0 auto; }
.headshot { width: 176px; height: 176px; border-radius: 16px; object-fit: cover; flex: 0 0 auto;
  border: 3px solid var(--accent-strong); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.headshot-monogram { display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: #ffffff; font-size: 3.5rem; font-weight: 800; letter-spacing: .02em; }

/* Work: case notes */
.case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem;
  border-left: 4px solid var(--accent-strong); box-shadow: var(--card-shadow); }
.case + .case { margin-top: 1.5rem; }
.case .sector { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.case dl { display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; margin: 1rem 0 0; }
@media (min-width: 800px) { .case dl { grid-template-columns: 9rem 1fr; } }
.case dt { font-weight: 700; color: var(--heading); }
.case dd { margin: 0 0 .75rem; color: var(--text); }

/* Approach and privacy: long-form text */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.essay-nav { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.essay-nav a { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--chip-border); background: var(--chip-bg);
  border-radius: 999px; text-decoration: none; font-weight: 500; }
.small { font-size: .9rem; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding: 3.25rem 0 3rem; }
  .section { padding: 3rem 0; }
  .site-header .container { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .site-header .container { gap: .6rem; }
  .site-nav { width: 100%; }
  /* 8 items: tidy 4 x 2 grid on phones (no JS) */
  .site-nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; }
  .site-nav a { padding: .45rem .1rem; font-size: .9rem; text-align: center; }
  .headshot { width: 120px; height: 120px; }
  .headshot-monogram { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .cta, .skip-link { display: none; } body { color: #000; background: #fff; } }

/* Blog (unlisted "paper explained" posts): readable article column */
.post-col { max-width: calc(68ch + 3rem); }
.post-hero h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.post-meta { color: var(--hero-lead); font-size: .95rem; margin: 0; }
.post-author { font-weight: 600; color: var(--hero-heading); }
.post-date-placeholder { font-style: italic; }
.post-body { font-size: 1.125rem; line-height: 1.72; }
.post-body > * { max-width: 68ch; }
.post-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 2.75rem 0 .9rem; scroll-margin-top: 1rem; }
.post-body h3 { margin: 2rem 0 .6rem; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.15rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin-bottom: .55rem; padding-left: .2rem; }
.post-body li::marker { color: var(--accent); font-weight: 700; }
.post-body strong { color: var(--heading); }
.post-body .paper-cite { font-size: 1rem; color: var(--muted); border-left: 4px solid var(--accent-strong);
  padding: .2rem 0 .2rem 1rem; margin-bottom: 2rem; }
.post-body blockquote { margin: 1.5rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--accent-strong);
  background: var(--bg-soft); color: var(--text); border-radius: 0 var(--radius) var(--radius) 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .9em;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 4px; padding: .1em .35em; }
.post-body pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; overflow-x: auto; line-height: 1.5; }
.post-body pre code { background: none; border: 0; padding: 0; font-size: .9rem; }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.post-figure { margin: 2rem 0 2.25rem; max-width: 68ch; }
.post-figure-link { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem; box-shadow: var(--card-shadow); }
.post-figure img { border-radius: 6px; width: 100%; }
.post-figure figcaption { font-size: .95rem; color: var(--muted); margin-top: .75rem; line-height: 1.55; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  border-left: 4px solid var(--accent-strong); box-shadow: var(--card-shadow); }
.post-card .post-meta { color: var(--muted); margin-bottom: .6rem; }
.post-card p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .post-body { font-size: 1.0625rem; } .post-figure-link { padding: .4rem; } }

/* Packages / insurers drafts (unlisted) */
.pkg + .pkg { margin-top: 1.5rem; }
.pkg h3 { font-size: 1.4rem; margin-bottom: .25rem; }
.pkg dd ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.pkg dd li { margin-bottom: .25rem; }
.prose .steps { margin: 0 0 2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--card-shadow); margin: 0 0 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table caption { text-align: left; font-weight: 700; color: var(--heading); padding: .85rem 1rem .25rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .7rem 1rem; border-top: 1px solid var(--border); }
.data-table thead th { border-top: 0; background: var(--bg-soft); color: var(--heading); font-size: .85rem;
  letter-spacing: .04em; text-transform: uppercase; }
.data-table tbody th { color: var(--heading); font-weight: 600; }
.data-table td { color: var(--text); }
.sample-banner { border: 2px dashed var(--accent); border-radius: var(--radius); padding: .8rem 1.1rem; color: var(--heading);
  background: var(--surface); margin-bottom: 1.5rem; }
.grid-2x2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2x2 { grid-template-columns: repeat(2, 1fr); } }
/* Tables stack into labelled rows on small screens (labels come from data-label; CSS only) */
@media (max-width: 640px) {
  .data-table caption { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { border-top: 1px solid var(--border); padding: .5rem 0; }
  .data-table tbody tr:first-child { border-top: 0; }
  .data-table th, .data-table td { border-top: 0; padding: .3rem 1rem; }
  .data-table [data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
}
.grid + .small { margin-top: 1.25rem; }

/* Blog post footer (author line + back link) */
.post-footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; }
@media (max-width: 340px) { .site-nav a { font-size: .84rem; } }

/* ---- Cyberzen Dojo (blog corner): scoped to .koan. Calm, ink-wash, 4IR navy/teal. ---- */
.koan { --ink: #0b1f33; --wash: rgba(15,118,110,.07); --wash-strong: rgba(15,118,110,.13); --rule: rgba(11,31,51,.18); }
@media (prefers-color-scheme: dark) { .koan { --ink: #e8eef4; --wash: rgba(94,234,212,.06); --wash-strong: rgba(94,234,212,.11); --rule: rgba(232,238,244,.2); } }
.post-dek { font-style: italic; }
.koan > * { max-width: none; }
.koan section > *, .koan-intro > * { max-width: 65ch; margin-left: auto; margin-right: auto; }
.koan section { margin: 0 auto; }
.koan h2 { text-align: center; font-weight: 600; letter-spacing: .01em; margin: 3.5rem auto .35rem; }
.koan .koan-asi { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; margin-bottom: 1.6rem; }
.koan .koan-haiku { border: 0; background: none; text-align: center; margin: 1.75rem auto 2.5rem; padding: 1.6rem 1rem;
  font-family: Georgia, "Iowan Old Style", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 1.15em; line-height: 1.95;
  color: var(--ink); position: relative;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, var(--wash-strong), transparent 72%); }
.koan .koan-haiku::before, .koan .koan-haiku::after { content: ""; display: block; width: 3.5rem; height: 1px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent); }
.koan .koan-haiku::before { margin-bottom: 1.1rem; } .koan .koan-haiku::after { margin-top: 1.1rem; }
.koan .koan-haiku p { margin: 0; }
.koan .koan-dialogue { padding-left: 1rem; border-left: 2px solid var(--rule); }
.koan .koan-scroll { font-family: Georgia, "Iowan Old Style", serif; color: var(--ink); background: var(--wash);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .9rem 1.25rem; text-align: center; }
.koan .koan-teaching { background: var(--wash-strong); border-left: 4px solid var(--accent-strong); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; margin-top: 2rem; }
.koan .koan-practice { font-size: .95em; color: var(--muted); padding-left: 1.25rem; }
.koan .koan-banner { text-align: center; letter-spacing: .06em; padding: .8rem 1rem; border: 1px dashed var(--rule); }
.koan hr.koan-ornament { border: 0; height: 1.5rem; margin: 3rem auto; max-width: 12rem; text-align: center; overflow: visible;
  background: linear-gradient(90deg, transparent, var(--rule), transparent) center / 100% 1px no-repeat; }
.koan hr.koan-ornament::after { content: "\25CB"; display: inline-block; padding: 0 .75rem; background: var(--bg); color: var(--accent);
  position: relative; top: -.05rem; font-size: 1.1rem; }
.koan .koan-eleventh, .koan .koan-palace { max-width: 72ch; padding: 1rem 1.5rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--rule); margin-top: 1rem; }
.koan .koan-eleventh { background: linear-gradient(180deg, var(--wash-strong), transparent 60%); }
.koan .koan-palace { background: var(--bg-soft); }
.koan .koan-eleventh h2, .koan .koan-palace h2 { margin-top: 1.5rem; }
.koan .koan-maxim { text-align: center; font-family: Georgia, "Iowan Old Style", serif; font-size: 1.2em; margin: 2rem auto; }
.koan .koan-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.koan-palace-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.koan-palace-table th, .koan-palace-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.koan-palace-table th { color: var(--heading); font-weight: 600; }
.koan .koan-disclaimer { max-width: 65ch; margin: 2.5rem auto 0; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: .8rem; line-height: 1.55; color: var(--muted); }
.koan .koan-disclaimer p { margin-bottom: .5rem; }
.koan .post-footer { max-width: 65ch; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .koan .koan-eleventh, .koan .koan-palace { padding: .5rem .9rem 1.5rem; } .koan .koan-haiku { font-size: 1.05em; } }
