/* Harold Halibut Guide: All Water tube-map theme.
   Warm kraft paper, deep-sea teal, rust and mustard accents, hard print-shop shadows.
   Navigation is a tube line, the home page is a PDA to-do list, answers are stamped memos. */

/* ===== tokens ===== */
:root {
  --paper: #f3ead6;
  --paper-2: #e9dcbd;
  --card: #fbf7ea;
  --cream: #fff9e8;
  --ink: #1c2a2c;
  --muted: #5d6458;
  --rule: #cdbf9d;
  --teal: #16616a;
  --teal-deep: #0d3d44;
  --teal-night: #0a2f35;
  --teal-mist: #cfe3df;
  --rust: #c9532a;
  --rust-ink: #a2401d;
  --mustard: #e2a42a;
  --link: #0f5963;
  --wrap: 1240px;
  --font-head: Rockwell, "Rockwell Nova", "Roboto Slab", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(circle at 20% 0%, rgb(255 249 232 / 0.7), transparent 55%);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--rust) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--rust); color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1rem; }
.aw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aw-skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.6rem 1rem; background: var(--mustard); color: var(--ink); font-weight: 700; }
.aw-skip:focus { left: 0; }
.aw-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 1.4rem; padding-right: 1.4rem; }
.aw-narrow { max-width: 54rem; }
.aw-main { flex: 1; }
.aw-kicker { display: inline-flex; align-items: center; gap: 0.65rem; margin: 0 0 0.9rem; font: 600 0.76rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-ink); }
.aw-kicker::before { content: ""; width: 2rem; height: 4px; border-radius: 2px; background: var(--rust); }
.aw-title { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.aw-lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.aw-h2 { display: flex; align-items: center; gap: 0.9rem; font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-bottom: 1.4rem; }
.aw-h2::after { content: ""; flex: 1; height: 2px; background: var(--rule); }
.aw-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; font: 500 0.8rem/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); }
.aw-block { padding-top: clamp(2.4rem, 4.5vw, 3.6rem); }
.aw-page { padding-top: 1.6rem; padding-bottom: 4.5rem; }
.aw-sechead { margin: 1.4rem 0 2rem; }

/* ===== top bar and the tube line ===== */
.aw-top { position: sticky; top: 0; z-index: 30; background: var(--teal-deep); color: var(--cream); border-bottom: 4px solid var(--mustard); }
.aw-top-in { max-width: var(--wrap); margin: 0 auto; padding: 0.55rem 1.4rem; display: flex; align-items: center; gap: 1.6rem; }
.aw-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--cream); text-decoration: none; font: 700 1.12rem/1 var(--font-head); white-space: nowrap; }
.aw-brand:hover { color: #fff; }
.aw-roundel { flex: none; width: 2.5rem; height: 2.5rem; }
.aw-line { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; padding: 0.35rem 0; }
.aw-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: var(--rust); }
.aw-stop { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 1.4rem; padding: 0.32rem 0.7rem 0.32rem 0.45rem; background: var(--teal-deep); color: var(--teal-mist); text-decoration: none; font-weight: 600; font-size: 0.93rem; white-space: nowrap; }
.aw-stop::before { content: ""; flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 3px solid var(--cream); background: var(--teal-deep); }
.aw-stop:hover { color: #fff; }
.aw-stop[aria-current] { color: #fff; }
.aw-stop[aria-current]::before { background: var(--mustard); }
.aw-search { position: relative; flex: 0 1 13rem; }
.aw-search[hidden] { display: none; }
.aw-search input { width: 100%; padding: 0.55rem 0.9rem; border: 2px solid var(--teal-night); border-radius: 999px; background: var(--cream); color: var(--ink); font: inherit; font-size: 0.93rem; }
.aw-search input::placeholder { color: var(--muted); }
.aw-search input:focus { outline: 3px solid var(--mustard); outline-offset: 1px; }
.aw-results { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(26rem, 92vw); max-height: 70vh; overflow: auto; background: var(--card); border: 2px solid var(--ink); border-radius: 0.7rem; box-shadow: 6px 6px 0 var(--teal-night); padding: 0.35rem; z-index: 40; color: var(--ink); }
.aw-results[hidden] { display: none; }
.aw-results a { display: block; padding: 0.55rem 0.7rem; border-radius: 0.4rem; color: var(--ink); text-decoration: none; }
.aw-results a:hover, .aw-results a[data-active] { background: var(--paper-2); }
.aw-r-title { display: block; font-weight: 700; line-height: 1.3; }
.aw-r-meta { display: block; font: 500 0.74rem/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); }
.aw-r-note { margin: 0; padding: 0.7rem; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 1120px) {
  .aw-top-in { flex-wrap: wrap; gap: 0.45rem 1rem; }
  .aw-search { order: 2; flex: 1 1 12rem; }
  .aw-line { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; }
  .aw-line::-webkit-scrollbar { display: none; }
  .aw-results { left: 0; right: auto; }
}
@media (max-width: 720px) {
  .aw-top { position: relative; }
  .aw-line { flex-wrap: wrap; overflow: visible; gap: 0.1rem 0.2rem; padding: 0 0 0.3rem; }
  .aw-line::before { display: none; }
  .aw-stop { margin-right: 0; padding-right: 0.55rem; }
}

/* ===== hero ===== */
.aw-hero { position: relative; overflow: hidden; padding: clamp(2.4rem, 5.5vw, 4.4rem) 0 clamp(5rem, 9vw, 7.5rem); border-bottom: 3px solid var(--ink); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.aw-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(80px, 11vw, 140px); color: var(--teal); opacity: 0.2; pointer-events: none; }
.aw-hero-grid { position: relative; z-index: 1; display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 980px) { .aw-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(21rem, 0.88fr); gap: 3.6rem; } }
.aw-hero-title { font-size: clamp(2.5rem, 5.8vw, 4.3rem); line-height: 1.03; letter-spacing: -0.015em; margin-bottom: 1.1rem; }
.aw-hero-lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--ink); opacity: 0.82; max-width: 36rem; margin-bottom: 1.6rem; }
.aw-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.aw-btn { display: inline-flex; align-items: center; padding: 0.72rem 1.25rem; border: 2px solid var(--ink); border-radius: 0.6rem; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.aw-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.aw-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.aw-btn-main { background: var(--mustard); }
.aw-stamp { display: inline-block; margin: 0; padding: 0.35rem 0.75rem; border: 2px solid var(--rust-ink); border-radius: 0.3rem; color: var(--rust-ink); font: 700 0.72rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-2.5deg); }

/* the PDA to-do panel */
.aw-pda { background: var(--card); border: 2px solid var(--ink); border-radius: 1.1rem; box-shadow: 8px 8px 0 var(--teal); overflow: hidden; transform: rotate(0.5deg); }
.aw-pda-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1.05rem; background: var(--ink); color: var(--cream); }
.aw-pda-bar h2 { flex: 1; margin: 0; font: 600 0.78rem/1 var(--font-mono); letter-spacing: 0.15em; text-transform: uppercase; }
.aw-pda-tag { padding: 0.22rem 0.45rem; border: 1px solid var(--mustard); border-radius: 0.3rem; color: var(--mustard); font: 700 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; }
.aw-todo { list-style: none; margin: 0; padding: 0.3rem 0; }
.aw-todo li + li { border-top: 1px dashed var(--rule); }
.aw-todo a { display: flex; gap: 0.9rem; padding: 0.85rem 1.05rem; color: var(--ink); text-decoration: none; }
.aw-todo a:hover { background: var(--paper); }
.aw-tick { position: relative; flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; border: 2px solid var(--ink); border-radius: 0.28rem; background: var(--cream); }
.aw-todo a:hover .aw-tick::after { content: ""; position: absolute; left: 0.28rem; top: -0.2rem; width: 0.4rem; height: 0.8rem; border: solid var(--rust); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.aw-todo-main { display: block; min-width: 0; }
.aw-todo-title { display: block; font: 700 1.03rem/1.3 var(--font-head); }
.aw-todo-text { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* ===== home: the lines ===== */
.aw-lines { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr)); }
.aw-lineblock { --c: var(--teal); --on: var(--cream); display: flex; flex-direction: column; padding: 1.3rem 1.35rem 1.1rem; background: var(--card); border: 2px solid var(--ink); border-radius: 0.9rem; box-shadow: 5px 5px 0 var(--c); }
.aw-lineblock:nth-child(3n + 2) { --c: var(--rust); }
.aw-lineblock:nth-child(3n + 3) { --c: var(--mustard); --on: var(--ink); }
.aw-lineblock-head { display: flex; gap: 0.95rem; align-items: flex-start; }
.aw-count { flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 3px solid var(--ink); border-radius: 50%; background: var(--c); color: var(--on); font: 700 1.15rem/1 var(--font-head); }
.aw-lineblock-title { font-size: 1.3rem; margin-bottom: 0.3rem; }
.aw-lineblock-title a { color: var(--ink); text-decoration: none; }
.aw-lineblock-title a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; }
.aw-lineblock-text { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.aw-stops { list-style: none; margin: 1.15rem 0 0.9rem 1.2rem; padding: 0 0 0 1.5rem; border-left: 5px solid var(--c); }
.aw-stops li { position: relative; padding: 0.3rem 0; }
.aw-stops li::before { content: ""; position: absolute; left: calc(-1.5rem - 2.5px - 0.45rem); top: 0.62rem; width: 0.9rem; height: 0.9rem; border: 3px solid var(--ink); border-radius: 50%; background: var(--card); }
.aw-stops a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; line-height: 1.35; display: inline-block; }
.aw-stops a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; }
.aw-all { margin-top: auto; align-self: flex-start; font: 700 0.78rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 0.4rem 0; border-bottom: 3px solid var(--c); }
.aw-all:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ===== cards ===== */
.aw-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
.aw-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 2px solid var(--ink); border-radius: 0.8rem; color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--rule); transition: transform 0.14s, box-shadow 0.14s; }
.aw-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--teal); color: var(--ink); }
.aw-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.aw-card-body { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; padding: 1rem 1.1rem 1.05rem; }
.aw-card-title { font: 700 1.08rem/1.28 var(--font-head); }
.aw-card-text { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.aw-card-meta { margin-top: auto; padding-top: 0.5rem; font: 500 0.72rem/1.2 var(--font-mono); letter-spacing: 0.05em; color: var(--muted); }
[data-item][hidden], [data-group][hidden] { display: none; }
.aw-filter { margin: 0 0 1.8rem; }
.aw-filter input { width: 100%; max-width: 24rem; padding: 0.6rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); font: inherit; }
.aw-filter input[hidden] { display: none; }
.aw-group { margin-bottom: 2.4rem; }
.aw-intro { margin-bottom: 2rem; }
.aw-home-prose { padding-bottom: 3rem; }
.aw-home-prose .aw-prose { max-width: 46rem; }

/* time-table list (recent updates) */
.aw-timetable { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); border-radius: 0.8rem; overflow: hidden; background: var(--card); }
.aw-timetable li + li { border-top: 1px solid var(--rule); }
.aw-timetable-row { display: grid; gap: 0.4rem 1.4rem; padding: 0.95rem 1.2rem; color: var(--ink); text-decoration: none; }
@media (min-width: 640px) { .aw-timetable-row { grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; } }
.aw-timetable-row:hover { background: var(--paper); }
.aw-timetable-row:hover .aw-card-title { text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 2px; }
.aw-timetable-when { font: 600 0.8rem/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--rust-ink); }
.aw-timetable-main { display: flex; flex-direction: column; gap: 0.2rem; }

/* ===== breadcrumbs ===== */
.aw-crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem 0.55rem; align-items: center; font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.03em; color: var(--muted); }
.aw-crumbs a { color: var(--muted); text-decoration-color: var(--rule); text-decoration-thickness: 1px; }
.aw-crumbs a:hover { color: var(--ink); }

/* ===== article ===== */
.aw-article { display: grid; gap: 2.6rem; padding-top: 1.6rem; padding-bottom: 4.5rem; }
@media (min-width: 1100px) { .aw-article { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3.6rem; } }
.aw-article-main { min-width: 0; }
.aw-articlehead { margin: 1.4rem 0 1.7rem; }
.aw-figure { margin: 0 0 1.8rem; }
.aw-figure img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 0.7rem; box-shadow: 6px 6px 0 var(--rule); background: var(--paper-2); }
.aw-memo { position: relative; margin: 0 0 1.9rem; padding: 1.55rem 1.35rem 1.15rem; background: var(--cream); border: 2px solid var(--ink); border-radius: 0.6rem; box-shadow: 6px 6px 0 var(--mustard); }
.aw-memo-label { position: absolute; top: -0.85rem; left: 1rem; margin: 0 !important; padding: 0.38rem 0.65rem; border-radius: 0.3rem; background: var(--ink); color: var(--mustard); font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.15em; text-transform: uppercase; }
.aw-memo p:last-child { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.aw-spoiler { display: flex; gap: 0.9rem; align-items: flex-start; margin: 0 0 1.6rem; padding: 0.8rem 1rem; border: 2px dashed var(--rust); border-radius: 0.6rem; background: #f7e4d2; }
.aw-spoiler-tag { flex: none; margin-top: 0.08rem; padding: 0.36rem 0.55rem; border-radius: 0.25rem; background: var(--rust-ink); color: #fff; font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.aw-spoiler p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.aw-side { min-width: 0; }
.aw-side > * { margin-bottom: 1.5rem; }
@media (min-width: 1100px) { .aw-side { position: sticky; top: 5.2rem; align-self: start; max-height: calc(100vh - 6.2rem); overflow: auto; padding: 0.3rem 0.5rem 0.5rem 0; } }
.aw-side-title { margin: 0 0 0.7rem; font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-ink); }
.aw-id { position: relative; padding: 1.7rem 1.15rem 1rem; background: var(--card); border: 2px solid var(--ink); border-radius: 0.9rem; box-shadow: 5px 5px 0 var(--rule); }
.aw-id::before { content: ""; position: absolute; top: 0.6rem; left: 50%; width: 2.8rem; height: 0.55rem; margin-left: -1.4rem; border: 2px solid var(--ink); border-radius: 1rem; background: var(--paper); }
.aw-id dl { margin: 0; }
.aw-id dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--rule); font-size: 0.9rem; }
.aw-id dl > div:last-child { border-bottom: 0; }
.aw-id dt { color: var(--muted); }
.aw-id dd { margin: 0; text-align: right; font-weight: 700; }
.aw-toc[hidden] { display: none; }
.aw-toc ol { list-style: none; margin: 0 0 0 0.45rem; padding: 0 0 0 0.25rem; border-left: 4px solid var(--teal); }
.aw-toc a { position: relative; display: block; padding: 0.28rem 0 0.28rem 1.15rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
.aw-toc a::before { content: ""; position: absolute; left: calc(-0.25rem - 2px - 0.4rem); top: 0.5rem; width: 0.8rem; height: 0.8rem; border: 3px solid var(--teal); border-radius: 50%; background: var(--paper); }
.aw-toc a:hover { color: var(--ink); }
.aw-toc a[data-active] { color: var(--ink); font-weight: 700; }
.aw-toc a[data-active]::before { background: var(--rust); border-color: var(--ink); }
.aw-toc .aw-toc-sub a { padding-left: 2rem; font-size: 0.85rem; }
.aw-toc .aw-toc-sub a::before { left: calc(-0.25rem - 2px - 0.4rem); width: 0.8rem; height: 0.8rem; border-width: 2px; }
.aw-faq { margin-top: 3rem; }
.aw-faq details { border: 2px solid var(--ink); border-radius: 0.6rem; background: var(--card); margin-bottom: 0.7rem; }
.aw-faq summary { cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.aw-faq summary::-webkit-details-marker { display: none; }
.aw-faq summary::after { content: "+"; flex: none; font: 700 1.3rem/1 var(--font-mono); color: var(--rust-ink); }
.aw-faq details[open] summary::after { content: "\2212"; }
.aw-faq details[open] summary { border-bottom: 1px dashed var(--rule); }
.aw-faq details p { margin: 0; padding: 0.85rem 1.1rem 1rem; color: var(--ink); opacity: 0.85; }
.aw-related { margin-top: 3.2rem; }

/* ===== prose (Markdown body) ===== */
.aw-prose { overflow-wrap: anywhere; }
.aw-prose > :first-child { margin-top: 0; }
.aw-prose > p, .aw-prose > ul, .aw-prose > ol, .aw-prose > blockquote { max-width: 47rem; }
.aw-prose h2 { display: flex; gap: 0.6rem; align-items: baseline; font-size: clamp(1.4rem, 2.5vw, 1.7rem); margin: 2.8rem 0 0.9rem; scroll-margin-top: 5.5rem; }
.aw-prose h2::before { content: ""; flex: none; width: 0.62em; height: 0.62em; border: 3px solid var(--ink); border-radius: 50%; background: var(--mustard); transform: translateY(0.02em); }
.aw-prose h3 { font-size: 1.2rem; margin: 2rem 0 0.6rem; padding-left: 0.8rem; border-left: 5px solid var(--teal); scroll-margin-top: 5.5rem; }
.aw-prose h4 { font-size: 1.02rem; margin: 1.5rem 0 0.5rem; font-family: var(--font-body); }
.aw-prose ul, .aw-prose ol { padding-left: 1.5rem; margin: 0 0 1.15rem; }
.aw-prose li { margin-bottom: 0.35rem; }
.aw-prose li::marker { color: var(--rust); font-weight: 700; }
.aw-prose blockquote { margin: 1.4rem 0; padding: 0.5rem 1.2rem; border-left: 5px solid var(--teal); background: var(--card); border-radius: 0 0.6rem 0.6rem 0; color: var(--ink); }
.aw-prose code { padding: 0.12em 0.4em; border-radius: 4px; background: var(--paper-2); font: 0.88em var(--font-mono); }
.aw-prose pre { overflow: auto; padding: 1rem; border: 2px solid var(--ink); border-radius: 0.6rem; background: var(--card); }
.aw-prose pre code { padding: 0; background: none; }
.aw-prose img { display: block; margin: 1.5rem 0 0.6rem; border: 2px solid var(--ink); border-radius: 0.6rem; box-shadow: 5px 5px 0 var(--rule); background: var(--paper-2); }
.aw-prose img + em { display: block; margin-bottom: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.aw-prose hr { border: 0; border-top: 2px dashed var(--rule); margin: 2.2rem 0; }
.aw-prose strong { font-weight: 700; }
.aw-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.93rem; }
.aw-prose th { padding: 0.65rem 0.85rem; text-align: left; background: var(--ink); color: var(--cream); font: 600 0.7rem/1.25 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.aw-prose td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); background: var(--cream); }
.aw-prose tbody tr:nth-child(even) td { background: #f6efdb; }
.aw-prose tbody tr:hover td { background: #efe3c4; }
.aw-prose tbody tr:last-child td { border-bottom: 0; }
.aw-scroll { overflow-x: auto; margin: 1.5rem 0; border: 2px solid var(--ink); border-radius: 0.6rem; box-shadow: 5px 5px 0 var(--rule); background: var(--cream); }
.aw-scroll table { margin: 0; min-width: 32rem; }
.aw-legal { font-size: 1rem; }

/* tick-off lists (task list items in Markdown) */
.aw-prose ul.aw-tasks { list-style: none; padding: 0.4rem 0 0.4rem 0; margin: 0 0 1.4rem; border: 2px solid var(--ink); border-radius: 0.7rem; background: var(--card); box-shadow: 5px 5px 0 var(--rule); max-width: 47rem; }
.aw-prose ul.aw-tasks li { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; padding: 0.55rem 1rem; border-top: 1px dashed var(--rule); }
.aw-prose ul.aw-tasks li:first-child { border-top: 0; }
.aw-prose ul.aw-tasks li.aw-done { color: var(--muted); }
.aw-prose ul.aw-tasks li.aw-done > span { text-decoration: line-through; text-decoration-color: var(--rust); }
.aw-prose input.aw-cb { appearance: none; -webkit-appearance: none; flex: none; width: 1.25rem; height: 1.25rem; margin: 0.22rem 0 0; border: 2px solid var(--ink); border-radius: 0.28rem; background: var(--cream); cursor: pointer; position: relative; }
.aw-prose input.aw-cb:checked { background: var(--teal); }
.aw-prose input.aw-cb:checked::after { content: ""; position: absolute; left: 0.3rem; top: 0; width: 0.38rem; height: 0.75rem; border: solid var(--cream); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.aw-progress { margin: 0 0 0.5rem; font: 600 0.74rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust-ink); }

/* ===== footer ===== */
.aw-foot { margin-top: 3rem; background: var(--teal-deep); color: var(--teal-mist); border-top: 4px solid var(--mustard); }
.aw-foot-in { max-width: var(--wrap); margin: 0 auto; padding: 2.6rem 1.4rem 2rem; display: grid; gap: 2rem; }
@media (min-width: 800px) { .aw-foot-in { grid-template-columns: 1.5fr 1fr 1fr; } .aw-foot-copy { grid-column: 1 / -1; } }
.aw-foot-name { margin: 0 0 0.6rem; font: 700 1.3rem/1.2 var(--font-head); color: var(--cream); }
.aw-foot-note { margin: 0; max-width: 30rem; font-size: 0.88rem; line-height: 1.55; }
.aw-foot-col { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.aw-foot-head { margin: 0 0 0.35rem; font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mustard); }
.aw-foot-col a { color: var(--teal-mist); text-decoration: none; font-size: 0.95rem; }
.aw-foot-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; }
.aw-foot-copy { margin: 0; padding-top: 1.2rem; border-top: 1px dashed rgb(207 227 223 / 0.35); font: 500 0.76rem/1.4 var(--font-mono); letter-spacing: 0.04em; }
.aw-404 { padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
