/* Rug Census — shared styles. Mobile first. Paper, ink and thin rules; the rug render is the only texture. */
@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/Bricolage.ttf) format("truetype"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/Fraunces.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/IBMPlexMono-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/IBMPlexMono-Medium.ttf); font-weight: 500; font-display: swap; }
:root {
  --terra: #B24A22; --terra-d: #973c1a; --paper: #F4EBD3; --paper-2: #EFE4C8; --ink: #3A2A1F; --mustard: #E9A82B; --teal: #3F8F86;
  --ink-2: rgba(58, 42, 31, .68); --rule: 1.5px solid var(--ink); --hair: 1px solid rgba(58, 42, 31, .22);
  --pad: 18px; --max: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--paper); color: var(--ink); }
body { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: "Plex Mono", ui-monospace, monospace; }
.serif { font-family: "Fraunces", Georgia, serif; font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

/* nav */
.nav { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 var(--pad); max-width: var(--max); margin: 0 auto; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: "Fraunces", serif; font-weight: 600; font-size: 21px; letter-spacing: -.01em; font-variation-settings: "opsz" 24; }
.links { display: none; gap: 30px; font-size: 16px; }
.links a { text-decoration: none; }
.links a:hover, .links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.menu-btn { width: 42px; height: 40px; border: var(--rule); border-radius: 4px; background: none; cursor: pointer; display: grid; place-items: center; }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
.drawer { display: none; border-top: var(--rule); border-bottom: var(--rule); margin: 0 var(--pad); }
.drawer.open { display: block; }
.drawer a { display: flex; justify-content: space-between; padding: 14px 2px; text-decoration: none; font-size: 18px; border-bottom: var(--hair); }
.drawer a:last-child { border-bottom: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; background: var(--terra); color: #FBF3E6; font-size: 18px; font-weight: 500; border-radius: 4px; border: 1.5px solid var(--terra); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--terra-d); border-color: var(--terra-d); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-small { height: 40px; padding: 0 14px; font-size: 15px; }
.btn[disabled], .btn.off { opacity: .45; pointer-events: none; }

/* page heads + sections */
.page-head { padding: 28px 0 22px; border-bottom: var(--rule); }
.page-head h1 { font-family: "Fraunces", serif; font-weight: 600; font-size: 40px; line-height: 1.06; letter-spacing: -.012em; font-variation-settings: "opsz" 72, "SOFT" 30; }
.page-head p { margin-top: 10px; max-width: 40em; color: var(--ink-2); }
.kicker { font-family: "Plex Mono", monospace; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.sec { padding: 44px 0; border-top: var(--rule); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-h h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; font-variation-settings: "opsz" 48, "SOFT" 30; }
.note { border-left: 3px solid var(--terra); padding: 10px 14px; background: var(--paper-2); font-size: 15px; }

/* footer */
.foot { border-top: var(--rule); margin-top: 40px; padding: 26px 0 40px; font-size: 14px; }
.foot-grid { display: grid; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot small { color: var(--ink-2); font-size: 13px; display: block; max-width: 60em; }

/* tables */
table { border-collapse: collapse; width: 100%; }
.num { font-family: "Plex Mono", monospace; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.logo-s { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: #fff8ea; border: var(--hair); flex: none; }
.mono-mark { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--paper); font: 500 10px "Plex Mono", monospace; flex: none; letter-spacing: -.02em; }
.tag { font: 500 11.5px "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; }
.tag.local { color: var(--terra); }

/* case card (map + ledger) */
.case { font-size: 15px; }
.case-top { display: flex; gap: 14px; align-items: center; }
.case-top .logo-l { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #fff8ea; border: var(--hair); }
.case-top .mono-mark { width: 56px; height: 56px; font-size: 14px; }
.case h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 25px; line-height: 1.1; font-variation-settings: "opsz" 48; }
.case .lbl { font: 500 14px "Plex Mono", monospace; color: var(--terra); margin-top: 3px; }
.case dl { display: grid; grid-template-columns: auto 1fr; margin: 18px 0 14px; border-top: var(--rule); }
.case dt, .case dd { padding: 8px 0; border-bottom: var(--hair); }
.case dt { font: 400 13px "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding-right: 18px; }
.case dd { font-family: "Plex Mono", monospace; font-size: 14px; }
.case dd.loss { font-size: 20px; font-weight: 500; }
.case .measure { font-size: 13px; color: var(--ink-2); margin: -6px 0 12px; }
.case p { margin: 10px 0; }
.case .legal { font-size: 14px; color: var(--ink-2); }
.case h4 { font: 500 12.5px "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 6px; }
.case ol { padding-left: 20px; font-size: 14px; }
.case ol li { margin: 4px 0; word-break: break-word; }
.case .fix { margin-top: 16px; font-size: 13px; color: var(--ink-2); }

@media (min-width: 900px) {
  :root { --pad: 44px; }
  body { font-size: 17px; }
  .nav { height: 84px; gap: 34px; }
  .brand img { width: 44px; height: 44px; }
  .brand b { font-size: 24px; }
  .links { display: flex; }
  .menu-btn, .drawer, .drawer.open { display: none; }
  .btn-small { height: 46px; font-size: 17px; padding: 0 20px; }
  .page-head { padding: 44px 0 30px; }
  .page-head h1 { font-size: 60px; }
  .sec { padding: 64px 0; }
  .sec-h h2 { font-size: 40px; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.nav .lg { display: none; }
.brand b { white-space: nowrap; }
@media (min-width: 440px) { .nav .lg { display: inline; } }
.case .unc { font-size: 13.5px; border-left: 3px solid var(--mustard); padding: 6px 10px; background: var(--paper-2); }
.case .dn { display: block; font-size: 12px; color: var(--ink-2); }
.case .measure b { font-weight: 500; color: var(--ink); }
.tag.disp { color: var(--terra); vertical-align: middle; }
.tag.fail { color: var(--ink-2, #6b5a4c); vertical-align: middle; }
.case .measure.basis { margin-top: 10px; }

.case .tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.case .tags:empty { display: none; }
.case .ca-line { overflow-wrap: anywhere; word-break: break-all;  word-break: break-all; font-size: 12px; }
.case { overflow-wrap: anywhere; min-width: 0; } tr.detail td { max-width: 100vw; }
