/* Dark navy surfaces for the lookup, confirm, and map pages, per the
   TMK Report Home, Hawaii TMK Lookup, and TMK Parcel Confirm designs. */
:root {
  --navy: #123a52; --navy-deep: #0f2c3d; --line: #2f5c76; --sel: #164a67;
  --cream: #f4efe6; --cream-2: #eee7d8; --text: #dce6ea; --muted: #8fa5b5;
  --muted-2: #a9bccb; --dim: #7a8fa0; --accent: #7fbfcb; --teal: #1a7f8e;
  --serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "Inter", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--navy); color: var(--cream-2); font-family: var(--sans);
       font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--cream); text-decoration: underline; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: var(--dim); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 680px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { min-height: 64px; display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--cream); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
header.site nav { display: flex; gap: 22px; align-items: center; margin-left: auto; font-size: 14px; flex-wrap: wrap; }
header.site nav a { color: var(--muted-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px;
       border: none; border-radius: 2px; background: var(--cream); color: var(--navy); font-weight: 600;
       font-size: 14.5px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent); color: var(--navy); text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--navy); }
.btn.block { width: 100%; }
.btn.tall { height: 52px; font-size: 15.5px; }
.field { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); background: var(--navy);
         color: var(--cream); border-radius: 2px; font-size: 15px; }
.field.mono { font-family: var(--mono); letter-spacing: .03em; }
.field:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--accent); margin-bottom: 6px; }
.kicker.dim { color: var(--dim); text-transform: uppercase; font-size: 11px; }
h1.hero { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 54px); line-height: 1.06;
          letter-spacing: -.015em; margin: 0 0 20px; max-width: 800px; color: var(--cream); text-wrap: balance; }
h1.small { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 3vw, 26px); letter-spacing: -.01em; margin: 0; color: var(--cream); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.8vw, 31px); letter-spacing: -.01em; margin: 0 0 12px; color: var(--cream); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 15.5px; color: var(--cream); margin: 0 0 10px; }
p.lede { margin: 0 0 8px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--text); max-width: 660px; }
p.sub { margin: 0 0 30px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 620px; }
p { color: var(--text); }
section.band { padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 4vw, 48px); }
section.band + section.band { border-top: 1px solid var(--line); }

/* Three input paths */
.paths { display: flex; flex-wrap: wrap; border: 1px solid var(--line); }
.path { flex: 1 1 280px; min-width: 0; background: var(--navy-deep); padding: 24px 22px; display: flex;
        flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path:last-child { border-right: none; }
.path .name { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--cream); margin-bottom: 8px; }
.path p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.path form { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.path .mapchip { height: 46px; border: 1px solid var(--line); background: var(--navy);
  background-image: repeating-linear-gradient(0deg, rgba(127,191,203,.16) 0 1px, transparent 1px 12px),
                    repeating-linear-gradient(90deg, rgba(127,191,203,.16) 0 1px, transparent 1px 12px);
  display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.path .mapchip span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts-line { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 22px; font-size: 13.5px; color: var(--dim); }

/* Confirm */
.card { border: 1px solid var(--line); background: var(--navy-deep); border-radius: 3px; padding: 20px; margin-bottom: 14px; }
.card .schematic { position: relative; border: 1px solid var(--line); background: var(--navy); margin-bottom: 16px; overflow: hidden; }
.card .schematic svg { display: block; width: 100%; height: auto; }
.card .schematic .tag { position: absolute; left: 8px; bottom: 8px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--dim); background: var(--navy); padding: 2px 5px; }
.kv { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.kv .k { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.kv .v { font-size: 14.5px; color: var(--cream); }
.kv .v.mono { font-family: var(--mono); }
.again { text-align: center; margin-top: 12px; font-size: 13.5px; }
.again a { color: var(--muted); }
.notice { border: 1px solid var(--accent); background: var(--sel); border-radius: 2px; padding: 11px 14px;
          font-size: 13.5px; line-height: 1.5; color: #eaf3f6; margin-bottom: 14px; }
.notice.quiet { border-color: var(--line); background: var(--navy); color: #c8d3db; }
.candidates { display: flex; flex-wrap: wrap; gap: 16px; }
.candidates .schematic { flex: 1 1 260px; min-width: 0; }
.candidates .list { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cand { display: block; border: 1px solid var(--line); border-radius: 2px; padding: 9px 12px; font-family: var(--mono);
        font-size: 12.5px; color: var(--muted-2); }
.cand:hover { border-color: var(--accent); text-decoration: none; color: var(--cream); }
.cand.selected { border-color: var(--accent); background: var(--sel); color: var(--cream); }
.cand small { display: block; font-family: var(--sans); font-size: 12px; color: var(--dim); margin-top: 2px; }
.split { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split > div { flex: 1 1 200px; min-width: 0; background: var(--navy); padding: 14px 16px; }
.split .h { font-size: 13.5px; font-weight: 600; color: var(--cream); margin-bottom: 8px; }
.hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }

/* Map page */
.maphead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; }
#map { height: min(72vh, 760px); min-height: 420px; border: 1px solid var(--line); background: #0b2230; }
.leaflet-container { font-family: var(--sans); }
.mapfoot { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 12px 0 28px; }
.mapfoot b { color: var(--cream); font-weight: 500; }
.pick { position: absolute; z-index: 1000; right: 12px; top: 12px; width: min(320px, calc(100% - 24px));
        background: var(--navy-deep); border: 1px solid var(--accent); border-radius: 3px; padding: 14px 16px; }
.pick .v { font-family: var(--mono); font-size: 15px; color: var(--cream); }
.pick .s { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.pick .btn { height: 42px; font-size: 14px; }
.zoomnote { position: absolute; z-index: 1000; left: 50%; bottom: 14px; transform: translateX(-50%);
            background: rgba(15,44,61,.92); border: 1px solid var(--line); padding: 7px 12px; font-size: 13px; color: var(--text); border-radius: 2px; }

/* Content pages */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid3 > div { background: var(--navy-deep); padding: 18px 20px; }
.grid3 b { display: block; font-size: 15.5px; color: var(--cream); margin-bottom: 5px; font-weight: 600; }
.grid3 span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.plain th { text-align: left; padding: 0 16px 12px 0; font-size: 12.5px; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--accent); }
table.plain td { padding: 14px 16px 14px 0; border-bottom: 1px solid rgba(35,72,96,.55); color: var(--muted-2); line-height: 1.5; vertical-align: top; }
table.plain td:first-child { font-weight: 600; color: var(--cream); }
table.plain td.mono { font-family: var(--mono); font-size: 13px; color: var(--text); }
.steps-list { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.steps-list div { display: flex; gap: 12px; }
.steps-list .n { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.steps-list strong { font-weight: 600; color: var(--cream); }
.tmkbreak { border: 1px solid var(--line); background: var(--navy-deep); padding: clamp(20px, 3vw, 30px); margin-bottom: 20px; }
.tmkbreak .big { font-family: var(--mono); font-size: clamp(22px, 4vw, 34px); letter-spacing: .04em; color: var(--cream); margin-bottom: 22px; word-break: break-word; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.parts > div { background: var(--navy); padding: 16px 18px; }
.parts .d { font-family: var(--mono); font-size: 19px; color: var(--accent); margin-bottom: 7px; }
.parts .t { font-weight: 600; font-size: 14.5px; color: var(--cream); margin-bottom: 5px; }
.parts .e { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pill { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); border-radius: 2px; }
.pill.live { border-color: var(--accent); color: var(--accent); }
.warnbox { border: 1px solid #a87413; background: rgba(168,116,19,.12); padding: 12px 14px; font-size: 13.5px; color: var(--cream-2); margin-bottom: 20px; border-radius: 2px; }
.warnbox b { color: #e6b95a; font-weight: 600; }
.prose-dark p { font-size: 16px; line-height: 1.65; color: var(--text); max-width: 700px; }
.prose-dark h2 { font-size: 22px; margin: 28px 0 10px; }
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
form.stack label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
form.stack textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: var(--navy); color: var(--cream); border-radius: 2px; min-height: 140px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.fcard { border: 1px solid var(--line); background: var(--navy-deep); padding: 18px; border-radius: 3px; }
.fcard h3 { font-size: 17px; margin: 6px 0 4px; }
.fcard .who { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.fcard .kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13.5px; }
.fcard .kvs span:first-child { color: var(--dim); }
.fcard .kvs span:last-child { color: var(--cream); }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; }
footer.site .wrap { padding: 28px clamp(16px, 4vw, 32px); display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; font-size: 13.5px; color: var(--dim); }
footer.site nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 640px) { footer.site nav { margin-left: 0; } header.site nav { margin-left: 0; } }
