
:root {
  /* City of Oak Ridge palette (oakridgetn.gov) */
  --teal: #137d79;        /* City primary teal */
  --teal-dark: #0f6360;   /* hover / focus (7:1 on white) */
  --slate: #324a52;       /* City dark slate bands */
  --orange: #f79b2e;      /* City heading underline - decorative only */
  --gold: #f7bc2d;        /* City footer stripe - decorative only */
  --lime: #b5d65a;        /* logo-leaf green, lightened for text on slate */

  /* names used by the page markup */
  --navy: var(--teal);
  --navy-dark: var(--teal-dark);
  --accent: var(--orange);
  --ink: #2b3a3f;
  --muted: #5b6b70;
  --line: #dde5ea;
  --soft: #f5f8fc;
  --ok: #0f6360;
  --ok-bg: #e6f2f1;
  --due: #9a4a00;
  --due-bg: #fff4e6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font: 15px/1.5 "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
}
a { color: var(--navy); }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }

.site-header {
  background: #fff;
  color: var(--slate);
  border-top: 6px solid #222;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 20px; }
.site-header .logo { display: inline-block; line-height: 0; }
.site-header .logo img { height: 52px; width: auto; }
.site-header .site-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--slate); padding-left: 14px; border-left: 2px solid var(--orange);
}
@media (max-width: 480px) { .site-header .logo img { height: 40px; } .site-header .site-title { font-size: .95rem; } }

/* Page footer - matches the City site's gold stripe + teal bar */
.site-footer { margin-top: 28px; border-top: 4px solid var(--gold); background: var(--teal); color: #fff; font-size: .88rem; }
.site-footer .wrap { padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: none; }

/* Page title - serif with orange rule, like City page headings */
.page-title { margin: 0 0 14px; padding-bottom: 8px; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.9rem; color: var(--slate); border-bottom: 2px solid var(--orange); }

.wrap { max-width: 920px; margin: 0 auto; }
main.wrap { padding: 20px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 7px 16px; border-radius: 999px; border: 2px solid var(--navy);
  background: #fff; color: var(--navy); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer;
}
.btn:hover { background: var(--navy); color: #fff; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; margin-bottom: 16px;
}
.card h2 {
  margin: 0 0 12px; padding-bottom: 6px; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--teal);
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 120px 2px no-repeat;
}

.owner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.owner h1 { margin: 0; font-size: 1.45rem; color: var(--navy); }
.owner .addr { color: var(--muted); margin-top: 2px; }
.ids { display: flex; gap: 10px; }
.id-chip { background: var(--soft); border-radius: 8px; padding: 8px 14px; text-align: center; min-width: 96px; }
.id-chip span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.id-chip strong { font-size: 1.15rem; color: var(--navy); }

.facts { display: flex; flex-wrap: wrap; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--soft); }
.facts div { flex: 1 1 105px; padding: 8px 12px; background: #fff; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 .card { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th[scope="row"] { font: inherit; text-transform: none; letter-spacing: 0; color: inherit; font-weight: 400; }
tr.total th[scope="row"] { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

.balance {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-radius: 10px; padding: 18px 22px; margin: 16px 0;
  background: var(--ok-bg); border: 1px solid #b5d9d6; color: var(--ok);
}
.balance.due { background: var(--due-bg); border-color: var(--gold); color: var(--due); }
.balance .label { font-weight: 600; font-size: 1.05rem; }
.balance .label small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.balance .pay { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.balance .fee { font-size: .8rem; color: var(--muted); }
.balance .btn-pay { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; padding: 9px 22px; }
.balance .btn-pay:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.balance .amount { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-extra { margin: -6px 0 16px; padding: 12px 16px; border-radius: 8px; background: var(--due-bg); color: var(--due); }

.balance-extra a { color: var(--due); font-weight: 600; }
.notice { border-left: 4px solid var(--accent); }
.notice p { margin: 0 0 .6em; }
.county { border-left: 4px solid var(--due); background: var(--due-bg); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 8px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .85rem; }
tr.current td { background: var(--ok-bg); font-weight: 600; }
tr.current td a { color: var(--teal-dark); }
.empty { color: var(--muted); font-style: italic; }

.footnote { color: var(--muted); font-size: .88rem; }
.footnote p { margin: 0 0 .6em; }

@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
  .ids { width: 100%; }
  .id-chip { flex: 1; }
  .hide-sm { display: none; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header { border-top: 0; border-bottom: 2px solid #000; box-shadow: none; }
  .site-footer { display: none; }
  .toolbar, .section-head a, .no-print, .balance .pay { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  .card { border: 1px solid #999; border-radius: 0; break-inside: avoid; }
  .balance, .balance.due { background: #fff; color: #000; border: 2px solid #000; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 10px; top: 10px; outline: 3px solid var(--slate); }

/* ---------- Search page ---------- */
.intro { margin: 0 0 16px; color: var(--muted); }
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.search-grid .card { margin-bottom: 0; display: flex; flex-direction: column; }
.search-grid form { display: flex; flex-direction: column; flex: 1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; color: var(--slate); }
.hint { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.fields { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; flex: 1 1 90px; }
.field.wide { flex: 3 1 160px; }
.field.narrow { flex: 0 1 72px; }
.field label { font-size: .82rem; font-weight: 600; margin-bottom: 3px; }
.field input {
  font: inherit; padding: 8px 10px; border: 1px solid #8a90a0; border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus { outline: 3px solid var(--slate); outline-offset: 1px; border-color: var(--teal); }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .92rem; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--navy); }
.form-actions { margin-top: auto; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; padding: 9px 20px; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; background: var(--due-bg); border: 1px solid var(--gold); color: var(--due); }

/* ---------- Results page ---------- */
.results-summary { margin: 0 0 12px; color: var(--muted); }
.results-summary strong { color: var(--ink); }
th a { color: var(--navy); text-decoration: none; }
th a:hover { text-decoration: underline; }
th a .arrow { font-size: .7rem; }
td.owner a { font-weight: 600; }

@media (max-width: 680px) {
  .search-grid { grid-template-columns: 1fr; }
}
