/* Register of Debtors and Restrictions — State Bailiff Service */
:root {
  --spruce: #0E3B33; --spruce-2: #17514A; --lichen: #DCE8E1; --mist: #F3F6F4; --ink: #17211E; --muted: #5C6B66; --line: #D5DFDA;
  --writ: #B4372B; --writ-50: #FBEAE7; --clear: #1B7A4E; --clear-50: #E2F2E9; --brass: #C9A257;
  --sans: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--mist); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--spruce-2); }
.w { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; letter-spacing: -.01em; }
.up { text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

/* Header and hero share the spruce band */
.rh { background: var(--spruce); color: #fff; }
.rh-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand .mark { width: 42px; height: 42px; color: #0A2E28; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.14); border-radius: 11px; }
.brand > span { display: grid; line-height: 1.25; }
.brand b { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand > span > span { font-size: 13px; color: #A9C3B8; }
.rnav { display: flex; gap: 22px; align-items: center; }
.rnav a { color: #D8E6DF; text-decoration: none; font-size: 15px; font-weight: 500; }
.rnav a:hover, .rnav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brass); }
.rnav .lang { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

.hero { background: var(--spruce); color: #fff; padding: 34px 0 40px; }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.hero .lead { margin: 14px 0 28px; font-size: 18px; color: #BFD6CC; max-width: 52ch; }
.hero-sm { padding: 22px 0 28px; }

/* The search drawer: an index of what to check, and the form */
.drawer { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(0,0,0,.55); }
.idx { display: grid; align-content: start; background: var(--lichen); padding: 10px 0 10px 10px; gap: 2px; }
.idx a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px 0 0 14px; color: var(--spruce); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.idx a:hover { background: rgba(255,255,255,.5); }
.idx a.on { background: #fff; font-weight: 600; }
.i { width: 22px; height: 22px; flex: none; }
.qform { padding: 26px 28px; display: grid; gap: 14px; align-content: start; }
.f { display: grid; gap: 6px; }
.f > span { font-size: 14px; font-weight: 500; color: var(--muted); }
.f input { height: 52px; border: 0; border-radius: 14px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); padding: 0 16px; font: inherit; font-size: 17px; color: var(--ink); width: 100%; }
.f input.mono { font-family: var(--mono); font-size: 17px; }
.f input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--spruce-2); background: #fff; }
.f-row { display: flex; gap: 12px; align-items: end; }
.f-row .f-wide { flex: 1; }
.f-three { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.or { padding-bottom: 14px; color: var(--muted); font-size: 14px; }
.go { justify-self: start; height: 52px; padding: 0 30px; border: 0; border-radius: 14px; background: var(--spruce); color: #fff; font: 600 17px var(--sans); cursor: pointer; }
.go:hover { background: var(--spruce-2); }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 0; }
.tally > div { padding: 2px 18px; box-shadow: inset 1px 0 0 rgba(220,232,225,.22); }
.tally > div:first-child { padding-left: 0; box-shadow: none; }
.tally dt { font-size: 13.5px; color: #A9C3B8; }
.tally dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Guide */
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 56px; }
.guide h2 { font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.guide p { margin: 0 0 12px; color: #3A4743; }
.lnk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.lnk .i { width: 17px; height: 17px; }

/* Results */
.res { padding-top: 28px; padding-bottom: 56px; display: grid; gap: 16px; }
.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 24px; border-radius: 20px; }
.verdict .i { width: 34px; height: 34px; }
.verdict b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.verdict span { color: #3A4743; }
.verdict time { font-size: 13px; color: var(--muted); text-align: right; }
.verdict.is-clear { background: var(--clear-50); }
.verdict.is-clear .i { color: var(--clear); }
.verdict.is-found { background: var(--writ-50); }
.verdict.is-found .i { color: var(--writ); }
.qerr { margin: 0; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rec { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.rec-h { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.rec-h h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.rec-id { color: var(--muted); font-size: 14.5px; }
.rec-sum { text-align: right; display: grid; }
.rec-sum span { font-size: 13px; color: var(--muted); }
.rec-sum b { font-size: 24px; font-weight: 600; color: var(--writ); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rlist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.rlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--mist); }
.rlist li > .i { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: #fff; color: var(--spruce); }
.rlist li.r-travel_ban > .i { color: var(--writ); }
.rlist li div { display: grid; }
.rlist li div span { font-size: 14px; color: var(--muted); }
.rlist li > .mono { font-size: 13px; color: var(--muted); }
.tw { overflow-x: auto; margin-top: 16px; }
.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; font-weight: 500; font-size: 13.5px; color: var(--muted); padding: 8px 10px; box-shadow: inset 0 -1px 0 var(--line); }
.t td { padding: 12px 10px; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.t td span { display: block; color: var(--muted); font-size: 14px; }
.t .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t a.mono { font-weight: 500; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; background: var(--spruce); color: #fff; }
.cta b { display: block; font-size: 18px; font-weight: 600; }
.cta span { color: #BFD6CC; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 14px; background: #fff; color: var(--spruce); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--lichen); }
.aside-note { margin: 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 16px 0 0; }
.kv dt { font-size: 13.5px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 500; }
.kv dd.neg { color: var(--writ); font-weight: 600; }
.plate { padding: 6px 12px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--ink); font-weight: 600; white-space: nowrap; }

/* A record page: a sheet with a stamp */
.doc { padding-top: 28px; padding-bottom: 56px; display: grid; gap: 16px; }
.back { justify-self: start; font-weight: 500; text-decoration: none; }
.back::before { content: '‹ '; }
.sheet { background: #fff; border-radius: 22px; padding: 28px 30px 30px; box-shadow: inset 0 0 0 1px var(--line); }
.sh { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 18px; box-shadow: inset 0 -1px 0 var(--line); }
.kicker { color: var(--muted); font-size: 15px; }
.sh h1 { margin: 4px 0 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.stamp { flex: none; padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; transform: rotate(-3deg); box-shadow: inset 0 0 0 2.5px currentColor; }
.stamp.on { color: var(--writ); }
.stamp.off { color: var(--clear); }
.kv2 { margin-top: 20px; }
.sheet h2 { font-size: 18px; font-weight: 600; margin: 26px 0 0; }
.subj { margin: 18px 0 0; font-size: 19px; font-weight: 500; }
.steps { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; position: relative; }
.steps::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps li { position: relative; display: grid; padding-bottom: 14px; }
.steps li::before { content: ''; position: absolute; left: -18px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--spruce); box-shadow: 0 0 0 3px #fff; }
.steps time { font-size: 13px; color: var(--muted); }
.prose { max-width: 760px; }
.prose h1 { font-size: 40px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.prose .lead { font-size: 19px; color: #3A4743; }
.prose h2 { font-size: 21px; font-weight: 600; margin: 24px 0 6px; }
.prose li { margin-bottom: 6px; }

.rf { background: #0A2E28; color: #A9C3B8; padding: 34px 0 40px; font-size: 14.5px; }
.rf-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; }
.rf p { margin: 0; max-width: 70ch; }
.rf nav { display: flex; gap: 18px; }
.rf nav a { color: #DCE8E1; }
.rf .copy { grid-column: 1 / -1; color: #7F9A90; font-size: 13px; }

@media (max-width: 900px) {
  .w { padding: 0 18px; }
  .rh-in { min-height: 64px; }
  .brand > span > span { display: none; }
  .rnav { gap: 14px; }
  .rnav a:not(.lang):not([href="/about"]) { display: none; }
  .hero { padding: 18px 0 26px; }
  .hero .lead { font-size: 16.5px; margin-bottom: 20px; }
  .drawer { grid-template-columns: 1fr; border-radius: 20px; }
  .idx { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding: 8px 8px 0; scrollbar-width: none; }
  .idx::-webkit-scrollbar { display: none; }
  .idx a { border-radius: 12px 12px 0 0; padding: 11px 14px; font-size: 14.5px; }
  .qform { padding: 18px; }
  .f-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .or { padding: 0; }
  .f-three { grid-template-columns: 1fr 1fr; }
  .f-three .f:last-child { grid-column: 1 / -1; }
  .go { justify-self: stretch; }
  .tally { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .tally > div:nth-child(3) { padding-left: 0; box-shadow: none; }
  .guide { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .verdict { grid-template-columns: auto minmax(0, 1fr); padding: 16px 18px; }
  .verdict time { grid-column: 1 / -1; text-align: left; }
  .verdict b { font-size: 18.5px; }
  .rec, .sheet { padding: 18px; }
  .rec-h { flex-direction: column; }
  .rec-sum { text-align: left; }
  .rlist li { grid-template-columns: auto minmax(0, 1fr); }
  .rlist li > .mono { grid-column: 2; }
  .t thead { display: none; }
  .t, .t tbody, .t tr, .t td { display: block; }
  .t tr { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); }
  .t td { padding: 2px 0; box-shadow: none; }
  .t .n { text-align: left; font-weight: 600; color: var(--writ); }
  .cta { flex-direction: column; align-items: stretch; }
  .kv { grid-template-columns: 1fr; }
  .sh { flex-direction: column; }
  .rf-in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rnav a[href="/about"] { display: none; }
  .brand b { font-size: 17px; white-space: nowrap; }
  .tally dd { font-size: 18px; white-space: nowrap; }
}
