/* mauschu.net — "Drawn to scale"
   One family (Archivo) in three widths, colours named after blocks, square corners,
   a darker edge under anything you can press. Dark is the default theme. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth.woff2) format("woff2-variations"), url(fonts/archivo-latin-ext-wdth.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth.woff2) format("woff2-variations"), url(fonts/archivo-latin-wdth.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens -- */
:root {
  color-scheme: light;
  --ground: #E3E4DF;       /* Calcite */
  --panel: #F8F9F7;        /* Snow */
  --panel-edge: #CDCEC8;
  --field: #FFFFFF;
  --ink: #17131D;          /* Obsidian */
  --ink-2: #3E3F3A;        /* Tuff, dark */
  --label: #5B5C56;        /* Tuff */
  --stone: #CDCEC8;        /* Smooth stone */
  --stone-hi: #D8D9D3;
  --stone-edge: #A3A49D;
  --rule: #CDCEC8;
  --rule-panel: #DCDDD7;
  --outline: #B6B7B1;
  --grid: #D2D3CD;
  --limit: #9C9D97;
  --bar: #9C9D97;
  --red: #B01905;          /* Redstone */
  --red-edge: #7A1103;
  --red-hi: #C2200A;
  --red-text: #B01905;
  --on-ink: #F8F9F7;
  --hover: #F0F1EC;
  --footer: #17131D;
  --footer-ink: #E3E4DF;
  --footer-ink-2: #B6B7B1;
  --dc: #5865F2;
  --dc-edge: #3C45A5;
  --dc-hi: #4F5BE0;
  --icon-filter: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #17131D;       /* Obsidian */
  --panel: #2D2733;        /* Blackstone */
  --panel-edge: #100D14;   /* Coal */
  --field: #100D14;
  --ink: #E3E4DF;          /* Calcite */
  --ink-2: #C9CAC4;        /* Diorite */
  --label: #A9AAA3;
  --stone: #3B3542;        /* Deepslate */
  --stone-hi: #463F4E;
  --stone-edge: #26212C;
  --rule: #3B3542;
  --rule-panel: #4A4352;
  --outline: #5A5363;
  --grid: #3B3542;
  --limit: #6E6878;
  --bar: #6E6878;
  --red: #CC2A0E;
  --red-edge: #8A1806;
  --red-hi: #DA3A1C;
  --red-text: #E8492F;
  --on-ink: #17131D;
  --hover: #221C27;
  --footer: #100D14;
  --footer-ink: #E3E4DF;
  --footer-ink-2: #B6B7B1;
  --icon-filter: drop-shadow(1px 0 0 #6E6878) drop-shadow(-1px 0 0 #6E6878) drop-shadow(0 1px 0 #6E6878) drop-shadow(0 -1px 0 #6E6878);
}

/* -------------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.x { font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; }
.c { font-stretch: 75%; font-weight: 600; }
.tn { font-variant-numeric: tabular-nums; }
.pix { image-rendering: pixelated; }
img.pix, .nav img, .tabbar img, .chip img, .mat img, .ico img { filter: var(--icon-filter); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--panel); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

.h1 { font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; font-size: 64px; line-height: 68px; }
.h1.big { font-size: 80px; line-height: 82px; }
.h2 { font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; font-size: 40px; line-height: 44px; }
.h3 { font-weight: 700; font-size: 22px; line-height: 28px; }
.lead { font-size: 19px; line-height: 30px; color: var(--ink-2); max-width: 62ch; }
.lead.l { font-size: 21px; line-height: 32px; }
.muted { color: var(--label); }
.body2 { color: var(--ink-2); }
.small { font-size: 15px; line-height: 22px; color: var(--label); }
.label { font-stretch: 75%; font-weight: 600; font-size: 14px; line-height: 16px; color: var(--label); }
section.s { padding-top: 112px; }

/* ------------------------------------------------------------------ header -- */
.top { height: 88px; display: flex; align-items: center; gap: 40px; }
.word { font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; font-size: 26px; line-height: 26px; text-decoration: none; }
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--ink); }
.nav img { width: 24px; height: 24px; image-rendering: pixelated; }
.top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-btn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; background: var(--stone); box-shadow: inset 0 -4px 0 var(--stone-edge); cursor: pointer; }
.theme-btn:hover { background: var(--stone-hi); }
.theme-btn img { width: 24px; height: 24px; image-rendering: pixelated; filter: var(--icon-filter); }

/* ----------------------------------------------------------------- buttons -- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 17px; line-height: 20px; padding: 15px 22px 17px; border: 0; cursor: pointer; text-decoration: none; position: relative; }
.btn img { width: 24px; height: 24px; image-rendering: pixelated; }
.btn-red { background: var(--red); color: #FFFFFF; box-shadow: inset 0 -4px 0 var(--red-edge); }
.btn-red:hover { background: var(--red-hi); color: #FFFFFF; }
.btn-stone { background: var(--stone); color: var(--ink); box-shadow: inset 0 -4px 0 var(--stone-edge); }
.btn-stone:hover { background: var(--stone-hi); color: var(--ink); }
.btn-dc { background: var(--dc); color: #FFFFFF; box-shadow: inset 0 -4px 0 var(--dc-edge); }
.btn-dc:hover { background: var(--dc-hi); color: #FFFFFF; }
.btn:active { transform: translateY(2px); }
.btn-red:active { box-shadow: inset 0 -2px 0 var(--red-edge); }
.btn-stone:active { box-shadow: inset 0 -2px 0 var(--stone-edge); }
.btn-dc:active { box-shadow: inset 0 -2px 0 var(--dc-edge); }
.btn.sm { font-size: 16px; padding: 12px 18px 14px; }
.btn .n { font-weight: 500; }
.btn[disabled] { opacity: .55; cursor: default; }
.lnk { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.textbtn { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }

.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; line-height: 18px; padding: 8px 14px 9px; border: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--outline); cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-current] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip img { width: 24px; height: 24px; image-rendering: pixelated; margin: -3px 0 -3px -4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; font-stretch: 75%; font-weight: 700; font-size: 13px; line-height: 16px; padding: 3px 7px 4px; background: var(--ink); color: var(--on-ink); }

.panel { background: var(--panel); box-shadow: inset 0 -4px 0 var(--panel-edge); }

/* ------------------------------------------------------------------ fields -- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span:first-child, .field > label:first-child { font-weight: 600; font-size: 15px; }
.box { display: flex; align-items: center; background: var(--field); box-shadow: inset 0 -3px 0 var(--ink); padding: 0 12px; height: 52px; }
.box b { color: var(--label); font-size: 18px; margin-right: 6px; }
.box input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--ink); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; padding: 0; outline: none; }
.box:focus-within { outline: 3px solid var(--red-text); outline-offset: 3px; }
.step { width: 44px; height: 44px; font-weight: 800; font-size: 22px; border: 0; background: var(--stone); color: var(--ink); cursor: pointer; box-shadow: inset 0 -3px 0 var(--stone-edge); flex: none; }
.step:hover { background: var(--stone-hi); }
.select { font-weight: 700; font-size: 17px; border: 0; background: var(--stone); color: var(--ink); padding: 0 14px; box-shadow: inset 0 -3px 0 var(--stone-edge); height: 52px; }
.bigfield { display: flex; align-items: baseline; gap: 6px; box-shadow: inset 0 -3px 0 var(--ink); padding: 4px 0 8px; }
.bigfield span { font-stretch: 125%; font-weight: 800; color: var(--label); }
.bigfield input { font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; border: 0; background: transparent; color: var(--ink); width: 100%; min-width: 0; padding: 0; outline: none; }
.bigfield:focus-within { outline: 3px solid var(--red-text); outline-offset: 4px; }

/* ---------------------------------------------------------- key numbers -- */
.kvs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kv { box-shadow: inset 0 3px 0 var(--ink); padding-top: 12px; }
.kv dt { font-stretch: 75%; font-weight: 600; font-size: 14px; line-height: 16px; color: var(--label); }
.kv dd { margin: 6px 0 0; font-weight: 800; font-size: 24px; line-height: 28px; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- drawings -- */
.plans { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px 40px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--ink); padding: 12px; margin: -12px; min-width: 150px; }
.plan:hover { background: var(--hover); color: var(--ink); }
.plan img { display: block; max-width: none; }
.plan .cap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 70px; }
.plan .pn { font-weight: 700; font-size: 16px; line-height: 20px; }
.plan .pv { font-size: 15px; line-height: 18px; color: var(--label); font-variant-numeric: tabular-nums; }
.plan .tag { margin-top: 2px; }
.scalebar { display: flex; align-items: center; gap: 10px; }
.scalebar .bar { display: flex; box-shadow: 0 0 0 2px var(--ink); }
.scalebar .bar i { width: 14px; height: 8px; background: var(--ink); }
.scalebar .bar i:nth-child(2n) { background: var(--panel); }

.fig { margin: 0; position: relative; }
.dimbox { position: relative; display: inline-block; }
.dimbox img { display: block; }
.dimh { position: absolute; height: 14px; box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink); }
.dimh::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); }
.dimv { position: absolute; width: 14px; box-shadow: inset 0 2px 0 var(--ink), inset 0 -2px 0 var(--ink); }
.dimv::before { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; background: var(--ink); }
.dl { position: absolute; background: var(--ground); padding: 0 8px; font-stretch: 75%; font-weight: 700; font-size: 15px; line-height: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl.v { transform: translate(50%, -50%) rotate(90deg); }
.figcap { margin-top: 14px; font-stretch: 75%; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--label); }

/* --------------------------------------------------------------- footer -- */
.foot { margin-top: 128px; background: var(--footer); color: var(--footer-ink); }
.foot a { color: var(--footer-ink); }
.foot a:hover { color: #FFFFFF; }
.foot-grid { padding-top: 56px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot .fine { padding-top: 16px; padding-bottom: 32px; font-size: 13px; line-height: 18px; color: var(--footer-ink-2); }
.foot .word { color: var(--footer-ink); }

/* ---------------------------------------------------------- phone tab bar -- */
.tabbar { display: none; }

/* ----------------------------------------------------------------- tables -- */
.tbl { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tbl th { font-stretch: 75%; font-weight: 600; font-size: 14px; line-height: 16px; color: var(--label); text-align: left; padding: 0 12px 12px 0; vertical-align: bottom; white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { font-size: 16px; line-height: 20px; padding: 0 12px 0 0; height: 66px; box-shadow: inset 0 2px 0 var(--rule); }
.tbl tbody tr:last-child td { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.tbl tr.on td { background: var(--hover); }
.tbl .sortbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.tbl .sortbtn[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tbl input[type=checkbox], .mat input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.thumb { display: block; width: 72px; height: 48px; object-fit: contain; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* -------------------------------------------------------------- home bits -- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; padding-top: 48px; }
.planner-mini { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 18px; }
.planner-mini .bigfield span, .planner-mini .bigfield input { font-size: 34px; line-height: 40px; }
.steps-mini { margin: 0; padding: 14px 0 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 20px; box-shadow: inset 0 2px 0 var(--rule-panel); font-variant-numeric: tabular-nums; }
.steps-mini li { display: flex; gap: 12px; }
.steps-mini .when { width: 64px; flex: none; font-stretch: 75%; font-weight: 600; color: var(--label); }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.tool { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; text-decoration: none; }
.tool:hover { color: var(--ink); }
.tool img { width: 48px; height: 48px; image-rendering: pixelated; }
.tool .t { font-weight: 700; font-size: 20px; line-height: 26px; }
.tool .d { font-size: 16px; line-height: 24px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tool .go { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; margin-top: auto; }
.tool:hover .go { color: var(--red-text); }
.community { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.video { aspect-ratio: 16 / 9; background: var(--stone); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; position: relative; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { width: 88px; height: 88px; border: 0; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video .play:hover { background: var(--red); color: #FFFFFF; }
.video p { font-size: 14px; line-height: 20px; color: var(--ink-2); text-align: center; max-width: 40ch; }

/* ------------------------------------------------------------- farm page -- */
.crumbs { list-style: none; margin: 0; padding: 28px 0 0; display: flex; gap: 10px; font-size: 15px; line-height: 20px; color: var(--label); flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.farmhead { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; padding-top: 28px; }
.titlerow { display: flex; align-items: center; gap: 22px; }
.titlerow img { width: 72px; height: 72px; image-rendering: pixelated; flex: none; }
.buy { position: sticky; top: 24px; padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 20px; }
.buy .price { font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; font-size: 60px; line-height: 64px; font-variant-numeric: tabular-nums; }
.buy .three { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 0; box-shadow: inset 0 2px 0 var(--rule-panel), inset 0 -2px 0 var(--rule-panel); font-variant-numeric: tabular-nums; }
.buy .three dt { font-stretch: 75%; font-weight: 600; font-size: 14px; color: var(--label); }
.buy .three dd { margin: 4px 0 0; font-weight: 800; font-size: 20px; line-height: 24px; }
.specs { margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; font-variant-numeric: tabular-nums; }
.specs div { box-shadow: inset 0 3px 0 var(--ink); padding-top: 14px; }
.specs dt { font-stretch: 75%; font-weight: 600; font-size: 14px; color: var(--label); }
.specs dd { margin: 6px 0 0; font-weight: 700; font-size: 20px; line-height: 26px; }
.viewstage { margin-top: 18px; }
.m3d { position: relative; height: 480px; background: var(--panel); box-shadow: inset 0 -4px 0 var(--panel-edge); touch-action: none; }
.m3d canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.m3d .note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--label); font-size: 16px; }
.m3dtools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.layersec { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-top: 28px; }
.sec { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: transparent; border: 0; padding: 6px; cursor: pointer; color: var(--ink); flex: none; }
.sec img { height: 56px; width: auto; max-width: 140px; display: block; }
.sec span { font-stretch: 75%; font-weight: 600; font-size: 14px; line-height: 16px; font-variant-numeric: tabular-nums; }
.sec[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--ink); background: var(--panel); }
.sec:hover { background: var(--hover); }
.layerwrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 28px; align-items: start; }
.counts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 22px; font-variant-numeric: tabular-nums; }
.counts li { display: flex; align-items: center; gap: 12px; }
.counts img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; filter: var(--icon-filter); }
.counts span { flex: 1; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 76px; }
.bars button { flex: 1; max-width: 26px; min-width: 4px; background: var(--bar); border: 0; padding: 0; cursor: pointer; }
.bars button[aria-pressed="true"] { background: var(--ink); }
.bars button:hover { background: var(--ink-2); }
.mat { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.mat th { font-stretch: 75%; font-weight: 600; font-size: 14px; line-height: 16px; color: var(--label); text-align: left; padding: 0 14px 12px 0; }
.mat td { font-size: 17px; line-height: 22px; padding: 0 14px 0 0; height: 56px; box-shadow: inset 0 2px 0 var(--rule); }
.mat tbody tr:last-child td { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.mat td.r, .mat th.r { text-align: right; }
.mat img { width: 32px; height: 32px; image-rendering: pixelated; vertical-align: middle; margin-right: 14px; }
.mat .noicon { display: inline-block; width: 32px; height: 32px; vertical-align: middle; margin-right: 14px; box-shadow: inset 0 0 0 2px var(--outline); }
.mat tr.got td { color: var(--label); }
.mat tr.got td:first-child { text-decoration: line-through; text-decoration-thickness: 2px; }
.gets { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.gets li { display: flex; gap: 16px; align-items: flex-start; }
.gets img { width: 40px; height: 40px; image-rendering: pixelated; flex: none; }
.gets b { display: block; font-size: 17px; line-height: 22px; }
.gets span { color: var(--ink-2); font-size: 16px; line-height: 24px; }
details.q { box-shadow: inset 0 2px 0 var(--rule); }
details.q:last-of-type { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
details.q summary { cursor: pointer; font-weight: 700; font-size: 19px; line-height: 26px; padding: 20px 0; list-style-position: inside; }
details.q p { margin: 0 0 22px; font-size: 17px; line-height: 27px; color: var(--ink-2); max-width: 68ch; }
.econ-note { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--label); }

/* ------------------------------------------------------------- farms page -- */
.cmpgrid { display: grid; grid-template-columns: 238px repeat(var(--n, 2), minmax(0, 1fr)); gap: 0 24px; align-items: end; }
.cmp { border-collapse: collapse; width: 100%; table-layout: fixed; font-variant-numeric: tabular-nums; margin-top: 24px; }
.cmp th { text-align: left; font-weight: 600; font-size: 16px; color: var(--ink-2); padding: 0 12px 0 0; height: 52px; box-shadow: inset 0 2px 0 var(--rule); width: 238px; }
.cmp td { font-size: 16px; line-height: 20px; padding: 0 12px 0 24px; height: 52px; box-shadow: inset 0 2px 0 var(--rule); }
.cmp tr:last-child th, .cmp tr:last-child td { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.cmp td b { font-weight: 800; }
.cmp .tag { margin-left: 8px; vertical-align: 2px; }

/* ----------------------------------------------------- planner + prices -- */
.planform { padding: 26px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px 28px; align-items: end; }
.planform .bigfield span, .planform .bigfield input { font-size: 44px; line-height: 50px; }
.psteps { list-style: none; margin: 0; padding: 0; }
.psteps li { display: grid; grid-template-columns: 52px 100px minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 76px; box-shadow: inset 0 2px 0 var(--rule); padding: 8px 0; font-variant-numeric: tabular-nums; }
.psteps li:last-child { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.psteps .num { font-stretch: 125%; font-weight: 800; font-size: 32px; line-height: 36px; }
.psteps .pic { display: flex; justify-content: center; }
.psteps .pic img { max-height: 56px; max-width: 96px; width: auto; height: auto; }
.psteps .nm { font-weight: 700; font-size: 18px; line-height: 22px; text-decoration: none; }
.psteps .when { font-size: 15px; color: var(--label); }
.psteps .inc { text-align: right; font-size: 15px; color: var(--label); }
.psteps .inc b { display: block; font-size: 18px; line-height: 22px; color: var(--ink); }
.stepchart { position: relative; height: 300px; margin-top: 16px; }
.stepchart .gl { position: absolute; left: 44px; right: 0; height: 2px; background: var(--grid); }
.stepchart .gl span { position: absolute; left: -44px; top: -8px; font-stretch: 75%; font-weight: 600; font-size: 12px; color: var(--label); width: 38px; text-align: right; }
.stepchart .area { position: absolute; left: 44px; right: 0; top: 0; bottom: 0; display: flex; align-items: flex-end; }
.stepchart .seg { height: 0; background: var(--ink); position: relative; border-right: 2px solid var(--ground); }
.stepchart .seg span { position: absolute; bottom: 100%; right: 4px; margin-bottom: 6px; font-stretch: 75%; font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--ink); }
.stepchart .ax { position: absolute; left: 44px; right: 0; bottom: -22px; height: 18px; }
.stepchart .ax span { position: absolute; transform: translateX(-50%); font-stretch: 75%; font-weight: 600; font-size: 12px; color: var(--label); white-space: nowrap; }
.goods { list-style: none; margin: 0; padding: 0; }
.goods li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 128px; gap: 16px; align-items: center; padding: 10px 0; box-shadow: inset 0 2px 0 var(--rule); }
.goods li:last-child { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.goods img { width: 40px; height: 40px; image-rendering: pixelated; filter: var(--icon-filter); }
.goods b { display: block; font-size: 17px; line-height: 20px; }
.goods small { display: block; font-size: 14px; line-height: 18px; color: var(--label); }
.goods .box { height: 48px; }
.goods .box input { font-size: 20px; text-align: right; }
.flows { list-style: none; margin: 0; padding: 0; }
.flows li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 18px 0; box-shadow: inset 0 2px 0 var(--rule); }
.flows li:last-child { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.flows .head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.flows .head a { font-weight: 700; font-size: 18px; text-decoration: none; }
.flows .head span { font-size: 15px; color: var(--label); font-variant-numeric: tabular-nums; }
.flows .head span b { font-size: 18px; color: var(--ink); }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.flow .it { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--panel); }
.flow .it img { width: 24px; height: 24px; image-rendering: pixelated; }
.flow .arr { width: 22px; height: 14px; flex: none; }
.own { list-style: none; margin: 0; padding: 0; }
.own li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; grid-template-areas: "pic name val n"; gap: 4px 16px; align-items: center; padding: 8px 0; box-shadow: inset 0 2px 0 var(--rule); font-variant-numeric: tabular-nums; }
.own li > img { grid-area: pic; }
.own li > a { grid-area: name; }
.own .v { grid-area: val; }
.own .n { grid-area: n; }
.own li:last-child { box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.own .n { display: flex; align-items: center; gap: 6px; }
.own .n output { width: 36px; text-align: center; font-weight: 800; font-size: 20px; }
.own .step { width: 40px; height: 40px; font-size: 20px; }
.own .v { text-align: right; font-size: 15px; color: var(--label); min-width: 96px; }
.own li.has .v { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- spawners -- */
.spform { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 20px; }
.best { padding: 24px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; }
.curve text { font-family: "Archivo", system-ui, sans-serif; }
.curve .grid { stroke: var(--grid); stroke-width: 2; }
.curve .base { stroke: var(--ink); stroke-width: 2; }
.curve .limit { stroke: var(--limit); stroke-width: 2; stroke-dasharray: 6 6; }
.curve .ax { fill: var(--label); font-size: 13px; font-weight: 600; }
.curve .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.curve .lab { fill: var(--ink); font-size: 14px; font-weight: 700; }
.curve .m-one { fill: var(--ground); stroke: var(--ink); stroke-width: 3; }
.curve .m-you { fill: var(--ink); }
.curve .m-best { fill: var(--red-text); }
.sp-legend { display: none; list-style: none; margin: 16px 0 0; padding: 0; flex-direction: column; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-legend li { display: flex; align-items: center; gap: 10px; }
.sp-legend i { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--ink); }
.sp-legend i.lg-one { background: var(--ground); box-shadow: inset 0 0 0 3px var(--ink); }
.sp-legend i.lg-best { background: var(--red-text); }

/* ------------------------------------------------------------------ rhythm -- */
.rr { position: relative; height: 420px; background: var(--panel); box-shadow: inset 0 -4px 0 var(--panel-edge); user-select: none; touch-action: manipulation; cursor: pointer; }
.rr canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rr .ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: color-mix(in srgb, var(--panel) 82%, transparent); }
.rr .ov.is-hidden { display: none; }
.rr .flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: var(--ink); }
.rr .flash.on { opacity: .08; }
.rr .flash.bad { background: var(--red); }
.rr .flash.on.bad { opacity: .22; }

/* ------------------------------------------------------------------ toast -- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--on-ink); padding: 12px 18px; font-weight: 700; font-size: 15px; z-index: 40; transition: transform .2s ease; }
.toast.on { transform: translate(-50%, 0); }


/* ------------------------------------------------------------ page grids -- */
.g { display: grid; gap: 56px; align-items: start; }
.g-planner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.g-prices { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.g-sp { grid-template-columns: 380px minmax(0, 1fr); }
.g-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.kvs.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flead { font-size: 23px; line-height: 34px; color: var(--ink-2); max-width: 34em; }
.mat .bn { display: flex; align-items: center; gap: 14px; }
.mat .bn img, .mat .bn .noicon { margin-right: 0; flex: none; }

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav a { font-size: 15px; }
  .top-end .btn-dc .lbl-long { display: none; }
}
@media (max-width: 1080px) {
  .hero, .farmhead { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .h1.big { font-size: 64px; line-height: 68px; }
}
@media (max-width: 900px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { height: 60px; gap: 12px; }
  .word { font-size: 22px; line-height: 22px; }
  .nav { display: none; }
  .theme-btn { width: 40px; height: 40px; }
  .top-end .btn-dc { padding: 9px 12px 11px; font-size: 15px; }
  .top-end .btn-dc .lbl-long { display: none; }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--panel); box-shadow: inset 0 2px 0 var(--outline); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-decoration: none; font-weight: 600; font-size: 12px; line-height: 14px; color: var(--ink-2); }
  .tabbar a[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 3px 0 var(--ink); }
  .tabbar img { width: 24px; height: 24px; image-rendering: pixelated; }
  .h1, .h1.big { font-size: 40px; line-height: 42px; }
  .h2 { font-size: 28px; line-height: 32px; }
  .lead, .lead.l { font-size: 17px; line-height: 26px; }
  section.s { padding-top: 72px; }
  .hero, .farmhead, .community, .layerwrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { padding-top: 14px; }
  .planner-mini { padding: 16px 16px 20px; gap: 12px; }
  .planner-mini .bigfield span, .planner-mini .bigfield input { font-size: 30px; line-height: 36px; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .plans { gap: 36px 28px; }
  .titlerow { gap: 12px; }
  .titlerow img { width: 40px; height: 40px; }
  .buy { position: static; padding: 20px 18px 22px; }
  .buy .price { font-size: 40px; line-height: 44px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .kvs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .foot { margin-top: 88px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; }
  .m3d { height: 360px; }
  .planform { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 20px; }
  .planform .bigfield span, .planform .bigfield input { font-size: 34px; line-height: 40px; }
  .psteps li { grid-template-columns: 34px 72px minmax(0, 1fr); }
  .psteps .inc { grid-column: 3; text-align: left; }
  .psteps .num { font-size: 24px; }
  .goods li { grid-template-columns: 32px minmax(0, 1fr) 112px; gap: 12px; }
  .goods img { width: 32px; height: 32px; }
  .flows li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .own li { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "pic name n" "pic val n"; }
  .own .v { text-align: left; min-width: 0; }
  .curve .lab, .curve .axt { display: none; }
  .curve .ax { font-size: 20px; }
  .sp-legend { display: flex !important; }
  .best { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 22px; }
  .cmpgrid { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
  .cmpgrid > .lbl { display: none; }
  .cmp th { width: 120px; }
  .cmp td { padding-left: 12px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .stepchart { height: 220px; }
  .rr { height: 320px; }
  .g, .g-planner, .g-prices, .g-sp, .g-2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .kvs.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flead { font-size: 18px; line-height: 28px; }
  .mat td { font-size: 16px; }
  .mat .bn { gap: 10px; }
  .fig { padding-right: 40px !important; }
}
@media (max-width: 560px) {
  .tbl .hide-s, .mat .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .tabbar, .foot, .buy .btn, .theme-btn { display: none !important; }
  body { padding: 0; }
}
