/* Liquidator.guru: manila-tag ledger. Own design (SPEC 7): Bodoni Moda display, Barlow text, Barlow Condensed figures. */
@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --manila: #EFE6D2; --manila-2: #E5D8BC; --card: #FBF7EE; --ink: #16130F; --ink-2: #4A4339; --rule: #C9B994;
  --red: #C8331C; --red-ink: #A3260F; --green: #0F5A44; --green-tint: #DCE9DF; --neg: #A3260F;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--manila); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--manila); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--cond); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; }
.neg { color: var(--neg); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: 780px; }

/* type */
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 .9rem; }
.eyebrow--light { color: #F2B8A8; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 6.2vw, 5.1rem); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 1.2rem; font-optical-sizing: auto; }
.display em { font-style: italic; color: var(--red); }
.display--m { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; }
.display--s { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.15; margin-bottom: .8rem; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 40em; margin: 0 0 1.5rem; }
.fine { font-size: .9rem; color: var(--ink-2); }
.fine--light { color: #CFC5B3; max-width: 60em; }
.more { margin-top: 2rem; font-weight: 600; }
.prose p { max-width: 40em; }
.prose h2 { margin-top: 2.2rem; }

/* buttons: notched-tag shapes */
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; }
.cut { --notch: 12px; display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem .85rem 1.9rem; font: 600 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%); }
.cut--red { background: var(--red); color: #fff; }
.cut--red:hover { background: var(--red-ink); color: #fff; }
.cut--ink { background: var(--ink); color: var(--manila); }
.cut--ink:hover { background: #3a332a; color: #fff; }
.cut--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: none; padding-left: 1.3rem; }
.cut--line:hover { background: var(--ink); color: var(--manila); }
.linkbtn { background: none; border: 0; padding: .2rem 0; font: 600 .9rem var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linkbtn--x { color: var(--ink-2); }
.linkbtn--x:hover { color: var(--red-ink); }

/* header */
.top { background: var(--manila); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.top__in { max-width: var(--wrap); margin: 0 auto; padding: .9rem clamp(1.1rem, 4vw, 2.5rem); display: flex; align-items: center; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.tagmark { width: 40px; height: 24px; color: var(--ink); flex: none; }
.tagmark--lg { width: 56px; height: 34px; vertical-align: middle; }
.logo__word { font: 600 1.55rem/1 var(--serif); letter-spacing: -.01em; }
.logo__tld { font: 700 1.05rem/1 var(--cond); color: var(--red); letter-spacing: .04em; margin-left: 1px; }
.top__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top__nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.top__nav a[aria-current="page"], .top__nav a:hover { border-bottom-color: var(--red); color: var(--ink); }
.top__cta { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem .55rem .8rem; font: 700 .95rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--red-ink); border: 1.5px solid var(--red); border-radius: 0 3px 3px 0; transform: rotate(-1.5deg); background: var(--card); }
.top__cta:hover { background: var(--red); color: #fff; }
.top__hole { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.drawer { display: none; margin-left: auto; position: relative; }
.drawer summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; font-weight: 600; padding: .5rem .2rem; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer__lines, .drawer__lines::before, .drawer__lines::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.drawer__lines::before, .drawer__lines::after { content: ""; position: absolute; left: 0; }
.drawer__lines::before { top: -6px; } .drawer__lines::after { top: 6px; }
.drawer nav { position: absolute; right: 0; top: calc(100% + .6rem); background: var(--card); border: 1px solid var(--rule); box-shadow: 0 12px 30px rgba(22,19,15,.16); display: flex; flex-direction: column; min-width: 14rem; padding: .4rem 0; }
.drawer nav a { padding: .75rem 1.2rem; text-decoration: none; font-weight: 600; }
.drawer nav a[aria-current="page"] { color: var(--red-ink); }

/* sections */
.sheet { padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--rule); }
.sheet--top { padding-top: clamp(2.2rem, 5vw, 4rem); }
.sheet--ink { background: var(--ink); color: var(--manila); border-bottom: 0; }
.sheet--ink .display { color: #FBF7EE; }
.sheet--tag { background: var(--manila-2); }
.sec-head { max-width: 50rem; margin-bottom: 2.4rem; }

/* hero: a full-width headline, then the worked example as a rail of hanging tags (string length = money) */
.hero { padding: clamp(2rem, 4.5vw, 3.6rem) 0 0; border-bottom: 1px solid var(--rule); overflow: hidden; }
.docket { display: flex; flex-wrap: wrap; margin: 0 0 clamp(1.4rem, 3vw, 2.4rem); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); font: 700 .8rem/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.docket span { padding: .6rem 1.4rem .55rem 0; margin-right: 1.4rem; border-right: 1px solid var(--rule); }
.docket span:last-child { border-right: 0; }
.display--xl { font-size: clamp(2.6rem, 7.6vw, 6.6rem); line-height: .98; max-width: 17ch; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero__row .lede { margin: 0; }
.hero__act .btns { margin-top: 0; }
.hero__act .fine { margin: 0; }
.rail { margin: 0; background: var(--manila-2); border-top: 1px solid var(--rule); padding: 1.6rem 0 2.6rem; }
.rail__cap { font-size: .92rem; color: var(--ink-2); max-width: var(--wrap); }
.rail__cap strong { color: var(--ink); font-weight: 600; }
.rail__tags { list-style: none; margin: 1.4rem auto 0; padding: 0 clamp(1.1rem, 4vw, 2.5rem); max-width: var(--wrap); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .7rem; position: relative; align-items: start; }
.rail__tags::before { content: ""; position: absolute; left: clamp(1.1rem, 4vw, 2.5rem); right: clamp(1.1rem, 4vw, 2.5rem); top: 0; height: 3px; background: var(--ink); border-radius: 2px; }
.rtag { display: flex; flex-direction: column; align-items: center; --len: 1rem; }
.rtag__str { width: 1.5px; height: var(--len); background: var(--ink-2); }
.rtag__card { position: relative; width: 100%; background: var(--card); padding: 1.4rem .6rem .8rem; text-align: center; clip-path: polygon(50% 0, 100% 14px, 100% 100%, 0 100%, 0 14px); box-shadow: 0 1px 0 var(--rule); }
.rtag__card::before { content: ""; position: absolute; left: 50%; top: 9px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--manila-2); box-shadow: inset 0 0 0 1.5px var(--rule); }
.rtag__name { display: block; font: 700 .78rem/1.15 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.rtag__amt { display: block; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.1; margin-top: .35rem; }
.rtag__note { display: block; font-size: .78rem; color: var(--ink-2); margin-top: .2rem; }
.rtag--mix .rtag__card { background: var(--red); color: #fff; }
.rtag--mix .rtag__name, .rtag--mix .rtag__note { color: #FBE3DB; }
.rtag--mix .rtag__card::before { background: var(--manila-2); box-shadow: none; }
.rtag--mix .rtag__amt { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.rtag.s0 { --len: 1rem; } .rtag.s1 { --len: 1.8rem; } .rtag.s2 { --len: 2.6rem; } .rtag.s3 { --len: 3.4rem; } .rtag.s4 { --len: 4.2rem; } .rtag.s5 { --len: 5rem; }
.rtag.s6 { --len: 5.8rem; } .rtag.s7 { --len: 6.6rem; } .rtag.s8 { --len: 7.4rem; } .rtag.s9 { --len: 8.2rem; } .rtag.s10 { --len: 9rem; }

/* routes list */
.routes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.routes__row { display: grid; grid-template-columns: 4rem minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.routes__n { font-size: 1.5rem; color: var(--red); }
.routes__row h3 { font: 500 1.35rem/1.2 var(--serif); margin: 0; }
.routes__row p { margin: 0; color: var(--ink-2); }

/* ledger tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
.ledger { width: 100%; border-collapse: collapse; font-size: .98rem; }
.ledger th, .ledger td { text-align: left; padding: .7rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger thead th { font: 600 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ledger .r { text-align: right; }
.ledger td.num, .ledger td .num { font-size: 1.08rem; }
.ledger tfoot th, .ledger tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; }
.ledger .qty { color: var(--ink-2); font-size: .86rem; white-space: nowrap; }
.ledger .it { min-width: 13rem; }
.ledger td.is-best { box-shadow: inset 0 0 0 2px var(--green); }
.ledger td.is-pick { background: var(--green-tint); color: var(--green); }
.ledger td.is-pick.neg { color: var(--neg); }
.ledger .empty { text-align: center; color: var(--ink-2); padding: 2rem; }
.ledger--dark th, .ledger--dark td { border-color: #3d372e; }
.ledger--dark thead th { color: #CFC5B3; border-bottom-color: var(--manila); }
.ledger--dark tfoot th, .ledger--dark tfoot td { border-top-color: var(--manila); }
.ledger--dark .qty { color: #CFC5B3; }
.ledger--dark .neg { color: #F59B85; }
.ledger--lots td.blank { min-width: 14rem; border-bottom: 1px solid var(--ink-2); }
.chip { display: inline-block; font: 700 .82rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .55rem .3rem .8rem; background: var(--manila-2); color: var(--ink);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); }
.chip--auction { background: #F2D3C9; } .chip--buyout { background: #E4DDF0; } .chip--consign { background: #DCE6F2; } .chip--online { background: var(--green-tint); }
.chip--scrap { background: #DAD6CF; } .chip--donate { background: #F3E6B8; } .chip--haul { background: #EBC9C3; }
.ledger--dark .chip { color: var(--ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.step { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.step__n { font: italic 500 3rem/1 var(--serif); color: var(--red); }
.step h3 { font: 600 1.25rem/1.25 var(--sans); margin: .8rem 0 .5rem; }
.step p { margin: 0; color: var(--ink-2); }

/* price tags */
.tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; align-items: start; }
.tag { position: relative; background: var(--card); padding: 2rem 1.8rem 1.6rem 2.6rem; clip-path: polygon(1.6rem 0, 100% 0, 100% 100%, 1.6rem 100%, 0 calc(100% - 1.6rem), 0 1.6rem); }
.tag::after { content: ""; position: absolute; left: .9rem; top: 1.6rem; width: 12px; height: 12px; border-radius: 50%; background: var(--manila-2); box-shadow: inset 0 0 0 2px var(--rule); }
.tag--red { background: var(--red); color: #fff; }
.tag--red .ticks li::before { background: #fff; }
.tag--red::after { background: var(--manila-2); box-shadow: inset 0 0 0 2px #E58A78; }
.tag__stamp { position: absolute; right: .9rem; top: .9rem; margin: 0; font: 700 .72rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); background: var(--card); border: 1.5px solid var(--red); padding: .3rem .5rem .25rem; transform: rotate(3deg); }
.tag__name { font: 600 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .6rem; }
.tag__price { margin: 0; font-size: 1rem; }
.tag__price .num { font-size: 3.2rem; line-height: 1; margin-right: .2rem; }
.tag__alt { margin: .3rem 0 0; }
.tag__alt .num { font-size: 1.4rem; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li { position: relative; padding-left: 1.3rem; margin: .45rem 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 2px; background: var(--red); }
.note { margin-top: 1.8rem; max-width: 52rem; }
.faq { margin-top: 3.5rem; max-width: 52rem; }
.faq dt { font-weight: 600; margin-top: 1.2rem; }
.faq dd { margin: .3rem 0 0; color: var(--ink-2); }

.scope { border-left: 4px solid var(--red); padding-left: clamp(1.1rem, 3vw, 2rem); }
.scope p { color: var(--ink-2); margin: 0; }

/* forms */
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; }
.field input, .field select, .pick select { font: 400 1.05rem var(--sans); padding: .7rem .8rem; border: 1.5px solid #8C7D62; background: var(--card); color: var(--ink); border-radius: 0; min-width: 0; width: 100%; }
.field input:focus, .pick select:focus { border-color: var(--ink); }
.quick__item { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.errors { border-left: 4px solid var(--red); background: #F6DCD3; padding: .8rem 1.1rem; margin: 0 0 1.4rem; }
.errors p { margin: .2rem 0; }
.fold { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .8rem 0; margin: 1rem 0; }
.fold summary { cursor: pointer; font-weight: 600; }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.2rem 1.6rem; margin-top: 1.2rem; }
.rates__group { border: 0; border-top: 2px solid var(--ink); margin: 0; padding: .8rem 0 0; min-width: 0; }
.rates__group legend { font: 500 1.15rem/1.2 var(--serif); padding: 0 .4rem 0 0; }
.field--rate { flex-direction: row; align-items: center; justify-content: space-between; gap: .8rem; font-weight: 400; margin: .45rem 0; }
.field--rate > span:first-child { flex: 1; }
.unit { position: relative; display: inline-flex; align-items: center; flex: none; width: 7.5rem; }
.unit input { width: 100%; padding: .45rem .6rem; font-size: 1rem; border: 1.5px solid #8C7D62; background: var(--card); }
.unit--cents::before { content: "$"; position: absolute; left: .55rem; color: var(--ink-2); }
.unit--cents input { padding-left: 1.3rem; }
.unit--pct::after { content: "%"; position: absolute; right: .55rem; color: var(--ink-2); }
.unit--days::after { content: "days"; position: absolute; right: .55rem; color: var(--ink-2); font-size: .85rem; }
.unit--tenths::after { content: "h"; position: absolute; right: .55rem; color: var(--ink-2); }

/* quick result bars */
.result { margin-top: 2.5rem; background: var(--card); padding: clamp(1.4rem, 3vw, 2.4rem); border-top: 6px solid var(--red); }
.bars { list-style: none; margin: 1.2rem 0; padding: 0; }
.bars__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 7.5rem; gap: 1rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--manila-2); }
.bars__row.is-best .bars__name { font-weight: 800; color: var(--green); }
.bars__track { height: 14px; background: var(--manila-2); }
.bars__fill { display: block; height: 100%; width: 0; background: var(--ink-2); }
.bars__row.is-best .bars__fill { background: var(--green); }
.bars__fill.is-neg { background: var(--red); }
.bars__val { text-align: right; font-size: 1.15rem; }

/* ledger page */
.lp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.lp-head .display { margin-bottom: .5rem; }
.lp-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
code.link { font: 600 .92rem var(--cond); background: var(--card); padding: .15rem .4rem; word-break: break-all; }
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin-bottom: 2rem; }
.totals__cell { padding: 1rem 1.2rem; border-right: 1px solid var(--rule); }
.totals__cell:last-child { border-right: 0; }
.totals__cell p { margin: 0; }
.totals__cell p:first-child { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.totals__cell .num { font-size: 2.3rem; line-height: 1.1; }
.totals__cell.is-best .num { color: var(--green); }
.pick { display: flex; gap: .4rem; align-items: center; }
.pick select { padding: .35rem .4rem; font-size: .92rem; width: auto; }
.additem, .ratesform, .when { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.when__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; }
.when__list li { background: var(--card); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; border-left: 4px solid var(--green); }
.when__d { font-size: .95rem; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
.when__list .num:not(.when__d) { font-size: 1.6rem; }
.when__run { font-size: .85rem; color: var(--ink-2); }
.start { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.startform { margin-top: 1.5rem; }
.minitag { background: var(--card); padding: 1.8rem 1.6rem 1.4rem 2.4rem; clip-path: polygon(1.4rem 0, 100% 0, 100% 100%, 1.4rem 100%, 0 calc(100% - 1.4rem), 0 1.4rem); border-left: 0; }
.minitag__head { font: 500 1.3rem/1.2 var(--serif); margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 1rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.toc a { font-weight: 600; text-decoration: none; }
.route { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.route__n { font-size: 2.6rem; line-height: 1; color: var(--red); margin: 0; }
.route__body p { max-width: 44em; color: var(--ink-2); }
.route .eyebrow { margin-top: 1.4rem; }
.msg { text-align: left; }

/* footer */
.foot { background: var(--ink); color: #D9D0BF; padding: 3.5rem 0 0; }
.foot a { color: #FBF7EE; }
.foot a:hover { color: #F59B85; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem) 2.5rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; }
.foot__word { font: 600 1.8rem/1 var(--serif); color: #FBF7EE; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.foot__word span { font: 700 1.2rem var(--cond); color: #F07A61; }
.foot .tagmark { color: #FBF7EE; }
.foot__scope { font-size: .92rem; max-width: 36rem; margin: 0; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.foot__cols h2 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #A79C88; margin: 0 0 .8rem; }
.foot__cols a { display: block; text-decoration: none; padding: .25rem 0; }
.foot__base { border-top: 1.5px dashed #4a4339; max-width: none; padding: 1.1rem clamp(1.1rem, 4vw, 2.5rem); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.foot__base p { margin: 0; }
.foot__powered { font-weight: 600; }

/* responsive */
@media (max-width: 1020px) {
  .top__nav { display: none; }
  .drawer { display: block; }
  .top__cta { margin-left: auto; }
  .drawer { margin-left: 0; }
}
@media (max-width: 860px) {
  .hero__row, .start { grid-template-columns: minmax(0, 1fr); }
  .rail__tags { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.6rem; }
  .rail__tags::before { display: none; }
  .rtag.s0, .rtag.s1, .rtag.s2, .rtag.s3, .rtag.s4, .rtag.s5, .rtag.s6, .rtag.s7, .rtag.s8, .rtag.s9, .rtag.s10 { --len: 1rem; }
  .rtag { border-top: 3px solid var(--ink); }
  .tags, .steps { grid-template-columns: minmax(0, 1fr); }
  .routes__row { grid-template-columns: 3rem minmax(0, 1fr); }
  .routes__row p { grid-column: 2; }
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .totals__cell:nth-child(2) { border-right: 0; }
  .totals__cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .quick__item { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick__item .field--wide { grid-column: 1 / -1; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .top__in { gap: .8rem; }
  .logo__word { font-size: 1.3rem; }
  .tagmark { width: 32px; }
  .top__cta { padding: .5rem .7rem .5rem .6rem; font-size: .82rem; }
  .rail__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docket span { padding-right: .8rem; margin-right: .8rem; }
  .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .top__cta { transform: none; letter-spacing: .06em; }
  .top__in { gap: .6rem; }
  .quick__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .quick__item .field--wide { grid-column: 1 / -1; }
  .bars__row { grid-template-columns: 6.2rem minmax(0, 1fr) 5.6rem; gap: .6rem; }
  .route { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .totals__cell .num { font-size: 1.8rem; }
  .field--rate { font-size: .88rem; }
}
@media print {
  .top, .foot, .noprint, .js-print { display: none !important; }
  body { background: #fff; }
  .sheet { border: 0; padding: 0; }
  .ledger th, .ledger td { padding: .35rem .4rem; }
}
/* ledger page: wider sheet, tighter cells (v1.0.0 local QA) */
.scroll { position: relative; }
.ledgerpage .wrap { max-width: 1400px; }
.ledgerpage .ledger th, .ledgerpage .ledger td { padding: .6rem .45rem; }
.ledgerpage .ledger td.num, .ledgerpage .ledger td .num { font-size: 1.02rem; }
.ledgerpage .pick select { max-width: 9.5rem; }
.scroll:focus:not(:focus-visible) { outline: 0; }
.top__cta { white-space: nowrap; }
@media (max-width: 520px) { .drawer__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .drawer summary { padding: .6rem .3rem; } }
/* routes page: ownership check + safety notes (v1.0.1, review TB-3/TB-4) */
.owncheck { background: var(--card); border-left: 6px solid var(--red); padding: 1.3rem 1.5rem 1.1rem; margin: 0 0 2.4rem; max-width: 52rem; }
.owncheck p { margin: 0; color: var(--ink-2); }
.safety { background: var(--manila-2); border-left: 3px solid var(--ink); padding: .8rem 1rem; font-size: .96rem; }

/* ---------- v1.1.0: AdEngine banner (adengine.us) ----------
   One labelled slot between the main content and the footer, on home, the quick check's blank form, the seven routes,
   pricing and about only (the controllers opt in). The label and the reserved height are on the <ins>, so when tag.js (or
   ae-size.js) hides a slot it cannot fill, the label and the space go with it. 110px = 16px label + 4px gap + 90px banner;
   270px on phones (300x250). The footer has no top margin, so all the spacing is margin on the <ins>: 40px above, 56px
   below (32/40px on phones). Label in the site's eyebrow caps, --ink-2 (7.5:1 on manila). display stays in this file and is
   never !important: tag.js hides a slot with style.display='none'. */
.ae-slot { padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 40px auto 56px; text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font: 600 11px/16px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.ae-slot ins.adengine a { display: inline-block; vertical-align: top; }
.ae-slot:has(> ins.adengine[style*="none"]) { display: none; }
@media (max-width: 767px) { .ae-slot ins.adengine { max-width: 300px; min-height: 270px; margin: 32px auto 40px; } }
@media print { .ae-slot { display: none; } }
