/* System fonts only. No external resources. */
:root {
  color-scheme: dark;
  /* dark is the default for everybody; light only when the visitor picks it (data-theme="light", set by /js/pref.js and the toggle in /js/app.js) */
  --bg: #050806;
  --bg2: #0a100c;
  --fg: #d4f5de;
  --mut: #7ea58b;
  --line: #15251b;
  --acc: #3dff7a;
  --acc-fg: #03100a;
  --grid: rgba(61, 255, 122, .05);
  --win: #020403;
  --win-fg: #d4f5de;
  --win-acc: #3dff7a;
  --win-dim: #4d7a5e;
  --warn: #ff6b5e;
  --red: #e0342f;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f4;
  --bg2: #ffffff;
  --fg: #0c1410;
  --mut: #4f5b54;
  --line: #d3dad4;
  --acc: #08783a;
  --acc-fg: #ffffff;
  --grid: rgba(12, 20, 16, .045);
  --win: #0a0f0c;
  --win-fg: #cfe6d6;
  --win-acc: #3dff7a;
  --win-dim: #5d7a68;
  --warn: #c0392b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--fg); background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.acc { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--acc); color: var(--acc-fg); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .top { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.brand { font-family: var(--mono); font-weight: 700; text-decoration: none; white-space: nowrap; }
.links { display: flex; align-items: center; gap: 6px; margin-left: auto; font-family: var(--mono); font-size: 14px; }
.links a { text-decoration: none; color: var(--fg); padding: 8px 12px; border-radius: 4px; }
.links a:hover { color: var(--acc); }
.links a[aria-current="true"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--red); }
.links a.lang { color: var(--acc); font-weight: 600; margin-left: 6px; border-left: 1px solid var(--line); border-radius: 0 4px 4px 0; }
.actions { display: flex; align-items: center; gap: 10px; }
.toggle { font: inherit; font-family: var(--mono); font-size: 13px; font-weight: 600; background: none; color: var(--fg); border: 1px solid var(--fg); padding: 6px 10px; cursor: pointer; white-space: nowrap; border-radius: 4px; }
.toggle:hover { color: var(--acc); border-color: var(--acc); }
.toggle[hidden] { display: none; }
.menu-btn { display: none; position: relative; width: 36px; height: 28px; padding: 0; }
.bars, .bars::before, .bars::after { position: absolute; left: 9px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.bars { top: 13px; width: 12px; background: var(--acc); }
.bars::before, .bars::after { content: ""; width: 18px; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; width: 14px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; opacity: 1; transform: rotate(45deg); width: 18px; background: var(--fg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); width: 18px; background: var(--red); }

/* buttons */
.btn { display: inline-block; background: var(--acc); color: var(--acc-fg); font-family: var(--mono); font-weight: 700; text-decoration: none; padding: 14px 28px; border-radius: 4px; border: 1px solid var(--acc); transition: transform .15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--fg); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 20px 48px; font-size: 20px; }
/* subscribe buttons switched off while no payment link exists (tools/set_payment_link.sh --none): same shape, no link, no hover */
.btn.is-off, .more.is-off { opacity: .45; cursor: not-allowed; user-select: none; }
.btn.is-off:hover { transform: none; box-shadow: none; }
.more.is-off { color: var(--fg); }
.more.is-off:hover { text-decoration: none; }
.ghost { font-family: var(--mono); text-decoration: none; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.ghost:hover { border-color: var(--acc); color: var(--acc); }

/* type */
.tag { font-family: var(--mono); font-size: 13px; color: var(--acc); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
.tag::before { content: "// "; color: var(--red); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 8.4vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--mut); max-width: 46ch; margin: 22px 0 0; line-height: 1.5; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rot { font-size: clamp(2rem, 9.6vw, 4.2rem); }
.rot-on { min-height: 3.15em; }
.rot-line.cur-line { color: var(--acc); animation: blink 1.1s steps(1) infinite; }
.rot-live { display: block; contain: layout style; }
.rot-line { display: block; white-space: nowrap; }
.rot-line.acc { color: var(--acc); }
.rot-rnd { color: var(--acc); opacity: .7; }
.rot-line.acc .rot-rnd { opacity: .6; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(48px, 9vw, 110px); }
.cta { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 36px; }

/* terminal window */
.win { background: var(--win); color: var(--win-fg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 8px 8px 0 var(--line); }
.win-bar { display: flex; justify-content: space-between; padding: 10px 16px; font-family: var(--mono); font-size: 12px; color: var(--win-dim); border-bottom: 1px solid rgba(255,255,255,.08); }
.live { color: var(--win-acc); }
.live::before { content: "\25CF  "; }
.win-body { margin: 0; padding: 20px; font-family: var(--mono); font-size: clamp(12px, 2.9vw, 14.5px); line-height: 1.85; overflow-x: auto; }
.win-body .d { color: var(--win-dim); }
.win-body .ok { color: var(--win-acc); }
.win-body .err { color: #ff5a4f; }
.win-body a { text-decoration: none; }
.win-body .acc { color: var(--win-acc); }
.pf { color: #e0342f; }
.pp { color: #3fe07a; }
.pe { color: #e0342f; font-weight: 700; }
.pdir { color: #5c9dff; font-weight: 700; }
.pu { color: #e8eee9; }
.pa { color: #ffd23f; }
.ph { color: #4fd8ff; }
.pd { color: #ffd23f; font-weight: 700; }
.cur { display: inline-block; width: .6em; height: 1.1em; background: var(--win-acc); vertical-align: text-bottom; margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
.l { display: block; opacity: 0; animation: line .01s forwards; }
.l1 { animation-delay: .3s; } .l2 { animation-delay: .9s; } .l3 { animation-delay: 1.4s; }
.l4 { animation-delay: 1.9s; } .l5 { animation-delay: 2.4s; } .l6 { animation-delay: 3s; }
@keyframes line { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
.win-wide { max-width: 560px; margin-top: 36px; }

.cur-logo { background: var(--acc); width: .55em; height: 1em; margin-left: 4px; vertical-align: -2px; }
.motto { text-align: center; }
.big { font-size: clamp(3rem, 10vw, 7rem); line-height: 1.02; margin: 0; }
.mantra { font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--acc); margin: 26px 0 0; }

/* strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.strip-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; font-family: var(--mono); font-size: 13px; color: var(--mut); }
.strip-in b { color: var(--acc); }

/* sections */
.sec { padding-top: clamp(64px, 10vw, 130px); }
.sec-head { margin-bottom: 40px; max-width: 800px; }
.final { text-align: center; padding-bottom: clamp(72px, 12vw, 150px); }
.final .lead { margin-left: auto; margin-right: auto; }
.final .btn { margin-top: 32px; }

/* tabs and modules */

/* paths */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.col { background: var(--bg2); border: 1px solid var(--line); border-top: 2px solid var(--acc); padding: 32px; }
.col p { color: var(--mut); margin: 12px 0 0; }
.col .subt { font-family: var(--mono); font-size: 14px; color: var(--acc); margin-top: 6px; }
.list { list-style: none; padding: 0; margin: 24px 0 0; font-size: 1.05rem; }
.list li { padding: 14px 0 14px 28px; border-top: 1px solid var(--line); position: relative; }
.list li::before { content: ">"; position: absolute; left: 0; font-family: var(--mono); color: var(--acc); }
.loop.three { grid-template-columns: repeat(3, 1fr); }
.loop.three li { border-right: 1px solid var(--line); }
.loop.three li:last-child { border-right: none; }
.rules.two, .rules { grid-template-columns: repeat(2, 1fr); }

/* lab figure */
.fig { margin: 0; background: var(--bg2); border: 1px solid var(--line); padding: 16px; }
.fig svg { display: block; width: 100%; height: auto; }
.svg-tall { display: none !important; }
.s-box { fill: none; stroke: var(--acc); stroke-width: 2; }
.s-vm { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.s-hot { stroke: var(--warn); }
.s-def { stroke: var(--acc); }
.s-out { fill: none; stroke: var(--mut); stroke-width: 1.5; stroke-dasharray: 6 6; }
.s-line { fill: none; stroke: var(--mut); stroke-width: 1.5; }
.s-cut { fill: none; stroke: var(--warn); stroke-width: 2; stroke-dasharray: 4 6; }
.s-cap { fill: var(--acc); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; }
.s-t { fill: var(--fg); font-family: var(--mono); font-size: 17px; font-weight: 700; }
.s-sub { fill: var(--mut); font-family: var(--mono); font-size: 12.5px; }
.s-t2 { fill: var(--fg); font-family: var(--mono); font-size: 15px; font-weight: 700; }
.s-sub3 { fill: var(--mut); font-family: var(--mono); font-size: 12px; }
.s-sub2 { fill: var(--mut); font-family: var(--mono); font-size: 14px; }
.ic { fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-hot { stroke: var(--warn); }
.ic-ok { stroke: var(--acc); }
.ic-mut { stroke: var(--mut); }
.ic-fill { fill: var(--fg); }
.ic-fill-hot { fill: var(--warn); }
.ic-fill-ok { fill: var(--acc); }
.s-flow { stroke: var(--acc); stroke-dasharray: 5 7; }
.s-flow-hot { stroke: var(--warn); stroke-dasharray: 5 7; }
.s-x { fill: var(--warn); font-family: var(--mono); font-size: 22px; font-weight: 700; }

/* loop */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--bg2); }
.loop li { padding: 24px 20px 28px; border-right: 1px solid var(--line); }
.loop li:last-child { border-right: none; }
.loop p { margin: 8px 0 0; color: var(--mut); font-size: 15px; }
.k { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 18px; font-family: var(--mono); font-weight: 700; background: var(--acc); color: var(--acc-fg); border-radius: 4px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.rules p { margin: 0; padding-left: 16px; border-left: 2px solid var(--acc); color: var(--mut); }
.rules b { display: block; color: var(--fg); font-family: var(--mono); }


.nf { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.nf .win { width: 100%; max-width: 520px; }

/* footer */
.foot { position: relative; margin-top: clamp(40px, 8vw, 80px); background: var(--bg2); border-top: 1px solid var(--line); color: var(--fg); font-family: var(--mono); font-size: 15px; font-weight: 500; }
.foot .brand { color: var(--fg); font-size: 16px; line-height: 1.2; display: inline-block; }
:root[data-theme="light"] .foot { background: var(--bg); }
.foot::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 3px; background: var(--red); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(28px, 5vw, 44px); }
.foot-col p { margin: 12px 0 0; font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.55; max-width: 36ch; color: var(--fg); }
.foot-col h4 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: lowercase; color: var(--acc); }
.foot-col h4::before { content: "// "; color: var(--red); }
/* one row inside the same .wrap container as the rest of the footer: the contact line starts at the container's left edge, the legal links sit at the right edge
   (like "back to top" below); when the row is too narrow the links wrap to a second line that also starts at the left edge */
.foot-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; padding-bottom: 18px; font-size: 14px; }
.foot-contact { margin: 0; }
.foot-contact a { color: var(--acc); text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-legal a { color: var(--fg); text-decoration: none; }
.foot-legal a:hover { color: var(--acc); text-decoration: underline; }
.foot-more { margin: 10px 0 0; }
.foot-more a { color: var(--acc); text-decoration: none; font-weight: 700; }
.foot-more a:hover { text-decoration: underline; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 26px; font-size: 14px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 48px) 1px no-repeat; }
.foot-prompt { color: var(--fg); }
.foot-prompt .pf { color: var(--red); }
.foot-prompt .pd { color: #b07d00; font-weight: 700; }
.cur-foot { width: .55em; height: 1em; margin-left: 6px; vertical-align: -2px; background: var(--acc); }
.up { text-decoration: none; color: var(--fg); padding: 6px 0; font-weight: 600; }
.up:hover { color: var(--acc); }

/* intro */
.intro { display: none; }
.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; padding: 0 18px; background: repeating-linear-gradient(rgba(61,255,122,.035) 0 1px, transparent 1px 3px), #030504; animation: intro-out .5s ease 3.6s forwards; cursor: pointer; }
.intro-on.intro-done .intro { display: none; }
.intro-box { width: min(560px, 100%); }
.intro-term { margin: 0; font-family: var(--mono); font-size: clamp(12px, 3.3vw, 15px); line-height: 1.9; color: #d6e8dc; white-space: pre-wrap; }
.intro .ok { color: #3dff7a; }
.intro .warn { color: #ff4d45; }
.i { display: block; opacity: 0; animation: line .01s forwards; }
.i1 { animation-delay: .2s; } .i2 { animation-delay: .6s; } .i3 { animation-delay: 1.1s; } .i4 { animation-delay: 1.5s; }
.i5 { animation-delay: 1.9s; } .i6 { animation-delay: 2.3s; } .i7 { animation-delay: 2.7s; }
.intro-bar { height: 3px; margin-top: 20px; background: #12201a; overflow: hidden; }
.intro-bar span { display: block; width: 0; height: 100%; background: #3dff7a; box-shadow: 0 0 10px #3dff7a; animation: fill 2.8s linear .2s forwards; }
.intro-ok { margin: 22px 0 0; font-family: var(--mono); font-weight: 700; font-size: clamp(20px, 6vw, 30px); letter-spacing: .18em; color: #3dff7a; text-shadow: 0 0 14px rgba(61,255,122,.55); opacity: 0; animation: line .01s 3s forwards; }
.intro-skip { margin: 26px 0 0; font-family: var(--mono); font-size: 12px; color: #5d7a68; }
.intro-on:not(.intro-done) .l { animation: none; opacity: 0; }
@keyframes fill { to { width: 100%; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* members area + public blog list */
button.btn { font-size: inherit; cursor: pointer; line-height: inherit; }
button.btn.btn-sm { font-size: 14px; }
button.btn.btn-lg { font-size: 20px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover { box-shadow: 3px 3px 0 var(--acc); }
.inline { display: inline; margin: 0; }
.muted { color: var(--mut); }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app > .pagebody { flex: 1 0 auto; width: 100%; }
.pagebody { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 8vw, 100px); }
.page-head { margin-bottom: 8px; }
.page-head h1, .auth h1, .post h1 { font-size: clamp(2.2rem, 6.4vw, 3.8rem); }
.page-head .lead { max-width: 60ch; }
.chip { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1.5; padding: 1px 12px; border: 1px solid var(--acc); color: var(--acc); border-radius: 999px; }
.chip-warn { border-color: var(--red); color: var(--red); }
.block-sm { margin-top: clamp(40px, 7vw, 72px); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 20px; }
.h-sm { font-size: 1.5rem; letter-spacing: -0.02em; }
.more { font-family: var(--mono); text-decoration: none; color: var(--acc); font-weight: 600; }
.more:hover { text-decoration: underline; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.row-head + .card-grid { margin-top: 0; }
.card { display: block; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-top: 2px solid var(--acc); padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.card h3 { font-size: 1.3rem; margin-top: 14px; line-height: 1.2; }
.card p { margin: 10px 0 0; color: var(--mut); font-size: 15.5px; line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--mono); font-size: 13px; color: var(--mut); }
.cat { color: var(--acc); font-weight: 600; }
.cat::before { content: "#"; opacity: .6; }
.badge { color: var(--red); border: 1px dashed var(--red); padding: 0 7px; }
.crumb { font-family: var(--mono); font-size: 14px; margin: 0 0 28px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; color: var(--acc); padding: 8px 0; display: inline-block; }
.crumb a:hover { text-decoration-thickness: 2px; }
.crumb-end { margin: 48px 0 0; }
.post { max-width: 760px; margin: 0 auto; }
.post .meta { margin-bottom: 16px; }
.prose { margin-top: 36px; font-size: 1.08rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 2em 0 .6em; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; font-family: var(--mono); color: var(--acc); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; padding: .1em .4em; }
.prose pre { background: var(--win); color: var(--win-fg); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; overflow-x: auto; margin: 0 0 1.4em; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: .9rem; color: inherit; }
/* Command box: the home-page terminal window with a copy button (built by /js/app.js). The prompt is decoration and is never selected or copied. */
.cmd { margin: 0 0 1.6em; box-shadow: 4px 4px 0 var(--line); }
.cmd .win-bar { align-items: center; padding: 4px 6px 4px 16px; }
.prose .cmd pre.win-body { margin: 0; border: 0; border-radius: 0; background: none; padding: 14px 18px 16px; line-height: 1.7; }
.cmd-line { display: block; }
.cmd-line, .cmd-ps { user-select: none; -webkit-user-select: none; }
.cmd-code { white-space: pre; color: var(--win-fg); }
.cmd-copy { font-family: var(--mono); font-size: 12px; font-weight: 600; min-height: 44px; min-width: 44px; padding: 0 14px; background: none; color: var(--win-acc); border: 1px solid var(--win-dim); border-radius: 4px; cursor: pointer; }
.cmd-copy:hover, .cmd-copy:focus-visible { border-color: var(--win-acc); }
.cmd-copy.is-done { background: var(--win-acc); border-color: var(--win-acc); color: #020403; }
.cmd-ghost { position: fixed; left: -9999px; top: 0; opacity: 0; }
/* Research pieces are long, so the headings carry the structure: sections get a rule and a // marker, sub-sections a bar */
.lesson-research h2 { margin: 2.6em 0 .8em; padding-top: 1em; border-top: 2px solid var(--line); font-family: var(--mono); font-size: 1.45rem; }
.lesson-research h2::before { content: "// "; color: var(--acc); }
.lesson-research h3 { font-size: 1.12rem; margin: 1.8em 0 .7em; padding: 6px 0 6px 14px; border-left: 4px solid var(--acc); background: var(--bg2); }
.lesson-research .lx-project h2, .lesson-research .lx-note h2 { margin-top: 0; padding-top: 0; border-top: 0; font-family: inherit; }
.lesson-research .lx-project h2::before, .lesson-research .lx-note h2::before { content: none; }
.lesson-research ul { list-style: none; padding-left: 0; }
.lesson-research ul > li { position: relative; padding-left: 1.4em; margin: .55em 0; }
.lesson-research ul > li::before { content: "\203A"; position: absolute; left: 0; color: var(--acc); font-family: var(--mono); font-weight: 700; }
.prose blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 20px; border-left: 3px solid var(--acc); color: var(--mut); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Members dashboard: today's lesson card, then the three paths as large cards */
.today { margin-top: clamp(28px, 5vw, 44px); background: var(--bg2); border: 2px solid var(--acc); border-radius: 6px; padding: clamp(20px, 4vw, 32px); }
.today .meta { margin: 0 0 12px; }
.today h2 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; margin: 0 0 10px; }
.today p { max-width: 65ch; }
.today .btn-lg { display: block; text-align: center; margin-top: 18px; padding: 20px 24px; }
@media (min-width: 640px) { .today .btn-lg { display: inline-block; padding: 20px 48px; } }
.h-sm + .pillars { margin-top: 20px; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pillar { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--acc); padding: 24px; min-height: 44px; transition: transform .15s ease, box-shadow .15s ease; }
a.pillar:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.pillar h3 { font-size: 1.5rem; line-height: 1.15; margin: 0; }
.pillar .meta { margin: 0; }
.pillar-latest { margin: 0; line-height: 1.45; }
.pillar .more { margin-top: auto; padding-top: 6px; }
.pillar-soon { border-top-color: var(--line); border-style: dashed; opacity: .8; }
.pillar-research { margin-top: 16px; border: 2px dashed var(--mut); }      /* Research is a type, not a fifth path: full width, dashed, muted frame */
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pathbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; font-family: var(--mono); font-size: 14px; }
.pathbar a { text-decoration: none; color: var(--fg); padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; }
.pathbar a:hover { color: var(--acc); }
.pathbar a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--red); }

/* Lesson page: readable width, goal card, numbered steps, project, done, note, pager */
.lesson { max-width: 65ch; }
.lesson > h2 { font-size: 1.35rem; margin: 2em 0 .8em; }
.lx-goal { background: var(--bg2); border: 1px solid var(--acc); border-left-width: 6px; padding: 20px 22px; margin: 0 0 1.6em; }
.lx-goal p { margin: 0 0 .7em; }
.lx-goal p:last-child { margin-bottom: 0; }
.lx-goal p:first-child { font-size: 1.2rem; line-height: 1.5; }
.prose .lx-steps { list-style: none; counter-reset: lx; margin: 0 0 1.6em; padding: 0; display: grid; gap: 12px; }
.prose .lx-steps > li { counter-increment: lx; position: relative; margin: 0; padding: 18px 18px 18px 78px; min-height: 76px; background: var(--bg2); border: 1px solid var(--line); line-height: 1.55; }
.prose .lx-steps > li::before { content: counter(lx); position: absolute; left: 16px; top: 14px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--acc); color: var(--acc-fg); font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.lx-project { border: 2px solid var(--acc); border-radius: 6px; padding: 20px 22px; margin: 2em 0 1.2em; background: var(--bg2); }
.lx-project h2 { font-size: 1.3rem; margin: 0 0 .6em; }
.lx-project > :last-child { margin-bottom: 0; }
.lx-done { position: relative; border: 1px dashed var(--acc); padding: 16px 20px 16px 64px; margin: 0 0 1.2em; }
.lx-done::before { content: ""; position: absolute; left: 20px; top: 50%; width: 11px; height: 20px; margin-top: -15px; border: solid var(--acc); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.lx-done p { margin: 0; }
.lx-note { border-left: 6px solid var(--warn); background: var(--bg2); padding: 16px 20px; margin: 0 0 1.2em; }
.lx-note > :last-child { margin-bottom: 0; }
.lx-note h2 { font-size: 1.15rem; margin: 0 0 .5em; color: var(--warn); }
.lx-note p { margin: 0 0 .8em; }
.lx-next { margin: 1.6em 0 0; padding-top: 1em; border-top: 1px solid var(--line); color: var(--mut); font-family: var(--mono); }
.pager { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 40px 0 0; max-width: 65ch; }
.pager a { display: block; padding: 16px 18px; min-height: 44px; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; line-height: 1.4; }
.pager a:hover { border-color: var(--acc); }
.pager span { display: block; font-family: var(--mono); font-size: 13px; color: var(--acc); margin-bottom: 4px; }
.pg-next { text-align: right; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } .pager a:only-child.pg-next { grid-column: 2; } }
@media (max-width: 420px) { .lx-steps > li { padding-left: 64px; } .prose .lx-steps > li::before { width: 38px; height: 38px; font-size: 1.25rem; left: 12px; } }
.panel { background: var(--bg2); border: 1px solid var(--line); border-top: 2px solid var(--acc); padding: clamp(22px, 4vw, 36px); max-width: 620px; margin-top: 28px; }
.facts { margin: 0 0 28px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.auth { max-width: 520px; margin: 0 auto; padding: clamp(24px, 6vw, 72px) 0; }
.auth .lead { margin-top: 18px; }
.stack { display: grid; gap: 14px; margin-top: 30px; }
.stack label { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.stack input[type="email"], .stack input[type="text"], .stack select, .stack textarea { width: 100%; font: inherit; font-size: 17px; color: var(--fg); background: var(--bg2); border: 1px solid var(--fg); border-radius: 4px; padding: 14px 16px; }
.stack input[type="email"]:focus, .stack input[type="text"]:focus, .stack select:focus, .stack textarea:focus { outline: 2px solid var(--acc); outline-offset: 2px; border-color: var(--acc); }
.stack .btn { justify-self: start; }
.notice { margin: 26px 0 0; padding: 14px 18px; background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--acc); }
.notice-warn { border-left-color: var(--red); }
.notice + .muted, .notice + .stack { margin-top: 18px; }
.rows { list-style: none; margin: 32px 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 120px 150px 1fr 24px; gap: 8px 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows time { font-family: var(--mono); font-size: 14px; color: var(--mut); }
.rows .ttl { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.lock { width: 18px; height: 18px; color: var(--mut); }
.lock * { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nf-win { max-width: 560px; margin-top: 32px; }
.nf-win .win-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.gate { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* responsive */
@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .cols .col:nth-child(3) { grid-column: 1 / -1; }      /* three paths on a tablet: the third one gets the full row */
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .loop { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .js .menu-btn { display: inline-block; }
  .js .links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 18px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .top.open .links { display: flex; }
  .js .links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .js .links a.lang { border-left: none; margin-left: 0; border-radius: 0; }
  .js .links a:last-child { border-bottom: none; }
  .links { order: 3; width: 100%; flex-wrap: wrap; margin: 0 0 8px; gap: 0; font-size: 13px; }
  .links a { padding: 8px 5px; }
  .links a.lang { margin-left: 0; border-left: none; }
  .bar { flex-wrap: wrap; }
  .js .bar { flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr 24px; }
  .rows li time, .rows li .cat, .rows li .ttl { grid-column: 1; }
  .rows li .lock { grid-column: 2; grid-row: 1 / span 3; justify-self: end; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
  .loop, .loop.three { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .loop li { border-right: none; border-bottom: 1px solid var(--line); }
  .loop li:last-child { border-bottom: none; }
  .rules, .rules.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svg-wide { display: none !important; }
  .svg-tall { display: block !important; max-width: 380px; margin: 0 auto; }
  .fig { padding: 12px; }
  .strip-in { display: grid; grid-template-columns: 1fr 1fr; font-size: 12px; gap: 8px 16px; }
}
@media (max-width: 480px) {
  #theme-toggle { font-size: 0; padding: 4px 8px; }
  #theme-toggle::before { content: "\25D0"; font-size: 14px; line-height: 1; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .bar { min-height: 56px; gap: 8px; }
  .foot-bar { background-size: calc(100% - 36px) 1px; }
  .nav { gap: 8px; }
  .brand { font-size: 14px; }
  .toggle { font-size: 12px; padding: 4px 8px; }
  .btn-sm { padding: 7px 14px; font-size: 13px; }
  .win-body { padding: 16px; font-size: 12px; }
}
@media (max-width: 360px) {
  .brand { font-size: 12.5px; }
  .cur-logo { margin-left: 2px; }
  .toggle { padding: 4px 6px; }
  .btn-sm { padding: 6px 11px; }
  .win-body { font-size: 11px; padding: 14px; }
}
@media (max-width: 340px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .bar { gap: 6px; }
  .nav { gap: 6px; }
  .brand { font-size: 11.5px; }
  .btn-sm { padding: 6px 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cur { animation: none; }
  .rot-line.cur-line { animation: none; }
  .l { animation: none; opacity: 1; }
  .intro { display: none !important; }
  .btn { transition: none; }
}

/* Consulting: public page (static), request form, booking pages. Same colours, fonts and terminal look as the rest of the site. No script is needed. */
.cs-hero { display: grid; gap: 28px; align-items: center; }
.cs-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.cs-flow { background: var(--win); color: var(--win-fg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 6px 6px 0 var(--line); }
.cs-flow-bar { padding: 9px 16px; font-family: var(--mono); font-size: 13px; color: var(--win-dim); border-bottom: 1px solid var(--line); }
.cs-flow ol { list-style: none; margin: 0; padding: 18px 18px 22px; display: grid; gap: 14px; font-family: var(--mono); font-size: 14px; line-height: 1.5; }
.cs-flow .pf { color: var(--win-dim); }
.cs-flow .pd { color: var(--win-acc); }
.cs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.cs-nav a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; }
.cs-nav a:hover, .cs-nav a:focus-visible { border-color: var(--acc); color: var(--acc); }
.cs-sec { margin-top: clamp(40px, 7vw, 80px); scroll-margin-top: 24px; }
.cs-sec > h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 22px; }
.cs-sec > h2::before { content: "// "; color: var(--red); font-family: var(--mono); }
.cs-tiles { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: tile; }
.cs-tiles li { counter-increment: tile; background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--acc); padding: 22px; line-height: 1.5; }
.cs-tiles li::before { content: "0" counter(tile); display: block; margin-bottom: 10px; font-family: var(--mono); font-weight: 700; color: var(--acc); }
.cs-tiles + .notice { margin-top: 22px; }
.cs-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cs-card { display: flex; flex-direction: column; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--acc); padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.cs-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.cs-card-top { display: flex; justify-content: space-between; align-items: center; }
.cs-card h3 { margin: 0; font-size: 1.4rem; line-height: 1.2; }
.cs-card h3::before { content: "$ "; color: var(--acc); font-family: var(--mono); }
.cs-card p { margin: 0; line-height: 1.5; }
.cs-card .cs-price { color: var(--fg); }
.cs-card .cs-price strong { display: block; font-family: var(--mono); font-size: 1.9rem; line-height: 1.2; color: var(--acc); }
.cs-card .cs-desc { color: var(--mut); }
.cs-card .btn { margin-top: auto; text-align: center; }
.cs-note { margin-top: 18px; }
.cs-steps { margin: 0; padding: 0; list-style: none; counter-reset: cs; display: grid; gap: 16px; }
.cs-steps li { counter-increment: cs; position: relative; background: var(--bg2); border: 1px solid var(--line); padding: 62px 22px 22px; }
.cs-steps li::before { content: counter(cs); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--acc); color: var(--acc-fg); font-family: var(--mono); font-weight: 700; border-radius: 4px; }
.cs-steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.cs-steps p { margin: 0; color: var(--mut); line-height: 1.5; }
.cs-rules { display: grid; gap: 20px; }
.cs-auth h3 { margin: 0 0 12px; font-size: 1.15rem; }
.cs-auth .notice { margin: 0; }
.cs-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; align-content: start; }
.cs-checks li { position: relative; padding: 14px 16px 14px 46px; background: var(--bg2); border: 1px solid var(--line); line-height: 1.45; }
.cs-checks li::before { content: "✓"; position: absolute; left: 16px; top: 13px; font-family: var(--mono); font-weight: 700; color: var(--acc); }
.cs-faqs { display: grid; gap: 12px; max-width: 820px; }
.cs-faq { background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--acc); padding: 0 20px; margin: 0; max-width: 820px; }
.cs-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after { content: "+"; font-family: var(--mono); color: var(--acc); }
.cs-faq[open] summary::after { content: "–"; }
.cs-faq summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.cs-faq p { margin: 0 0 18px; color: var(--mut); line-height: 1.55; }
.cs-report { padding-bottom: 20px; }
.cs-report h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.cs-report h4 { margin: 20px 0 6px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); }
.cs-report p, .cs-report li { color: var(--fg); line-height: 1.5; }
.cs-report ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.cs-meta { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--mut); font-size: 15px; }
.cs-final { text-align: center; }
.cs-final-box { background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--acc); box-shadow: 8px 8px 0 var(--line); padding: clamp(28px, 6vw, 56px) 20px; }
.cs-final-box h2 { margin: 0 0 10px; }
.cs-final-box p { margin: 0 auto 22px; max-width: 46ch; }
.cs-final-box p:last-child { margin-bottom: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.stack textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.stack select { appearance: auto; }
.stack .check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-family: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--fg); }
.stack .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--acc); }
.stack .check a { color: var(--acc); }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.cs-soon { margin: auto 0 0; font-family: var(--mono); font-size: 13px; }
.cs-sub { margin: 18px 0 6px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; box-sizing: border-box; text-align: center; }

/* booking: steps, panels, free times, summary, ticket */
.cs-book { max-width: 1112px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0; }
.cs-book.cs-narrow { max-width: 620px; }
.cs-book h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.cs-bookhead .lead { max-width: 56ch; }
.cs-stepbar { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; font-family: var(--mono); font-size: 13px; }
.cs-stepbar li { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--mut); }
.cs-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; flex: none; }
.cs-stepbar .is-on { color: var(--fg); border-color: var(--acc); }
.cs-stepbar .is-on .cs-n { background: var(--acc); color: var(--acc-fg); border-color: var(--acc); }
.cs-stepbar .is-done { color: var(--acc); }
.cs-bookgrid { display: grid; gap: 24px; margin-top: 28px; align-items: start; }
.cs-bookmain { display: grid; gap: 22px; min-width: 0; }
.cs-panel { display: grid; gap: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 3vw, 30px); }
.cs-panel-h { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 1.2rem; line-height: 1.2; }
.cs-panel-h .cs-n { color: var(--acc); }
.cs-tz { margin: -4px 0 4px; }
.cs-days { display: grid; gap: 4px; }
.cs-day { display: block; min-width: 0; margin: 0; padding: 14px 0 6px; border: 0; border-top: 1px solid var(--line); background: none; }
.cs-day::after { content: ""; display: table; clear: both; }
.cs-day legend { float: left; width: 100%; padding: 0 0 10px; font-weight: 700; }
.cs-slots { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.stack .cs-slot { position: relative; display: inline-block; cursor: pointer; font-family: var(--mono); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--fg); }
.cs-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cs-slot span { display: inline-block; min-height: 44px; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); transition: border-color .12s ease; }
.cs-slot:hover span { border-color: var(--acc); }
.cs-slot input:checked + span { background: var(--acc); color: var(--acc-fg); border-color: var(--acc); font-weight: 700; }
.cs-slot input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.cs-summary { display: grid; gap: 14px; background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--acc); box-shadow: 6px 6px 0 var(--line); padding: 22px; }
.cs-summary .muted { margin: 0; font-size: 14px; line-height: 1.5; }
.cs-summary .cs-facts { margin: 0; }
.cs-alt { margin: 0; text-align: center; font-size: 14px; }
.cs-alt a { color: var(--mut); }
.cs-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 24px 0; }
.cs-facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); padding-top: 3px; }
.cs-facts dd { margin: 0; }
.cs-facts strong { font-family: var(--mono); color: var(--acc); }
.cs-ticket { margin: 26px 0; background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--acc); box-shadow: 6px 6px 0 var(--line); }
.cs-ticket-top { display: grid; gap: 4px; padding: 18px 22px; border-bottom: 1px dashed var(--line); }
.cs-ticket-k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.cs-ticket code { font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 700; letter-spacing: .12em; color: var(--acc); word-break: break-all; }
.cs-ticket .cs-facts { margin: 0; padding: 16px 22px 20px; }
.cs-done { text-align: center; padding: 8px 0 0; }
.cs-done-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 26px auto 18px; border: 2px solid var(--acc); border-radius: 50%; font-size: 32px; color: var(--acc); }
.cs-narrow .cs-stepbar { justify-content: center; }
.cs-narrow .tag, .cs-narrow h1, .cs-narrow .lead, .cs-narrow > .muted, .cs-narrow > .notice { text-align: center; }
.cs-narrow .lead { margin-left: auto; margin-right: auto; }

@media (min-width: 700px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-tiles { grid-template-columns: repeat(3, 1fr); }
  .cs-steps { grid-template-columns: repeat(3, 1fr); }
  .cs-card .btn { align-self: flex-start; }
  .cs-day legend { width: 150px; padding-top: 11px; }
  .cs-slots { clear: none; margin-left: 160px; }
}
@media (min-width: 900px) {
  .cs-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
  .cs-rules { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 980px) {
  .cs-bookgrid { grid-template-columns: minmax(0, 1fr) 320px; }
  .cs-summary { position: sticky; top: 24px; }
}
@media (min-width: 1020px) { .cs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .cs-nav { flex-wrap: nowrap; overflow-x: auto; }
  .cs-nav a { white-space: nowrap; }
  .cs-cta .btn { flex: 1 1 100%; text-align: center; }
  .cs-card .btn { width: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) { .cs-card, .cs-slot span { transition: none; } .cs-card:hover { transform: none; } }
