/* Lookup tool (apps/parse/lookup) and the area code directory (also on
   area-codes/index.html). Built on site.css tokens: same palette, laid out like
   the parseapp.net lookup (centered hero, one card, map). */

/* ---------- hero ---------- */
.lk-hero { padding: 40px 0 64px; text-align: center; }
.lk-hero .crumbs { justify-content: center; margin-bottom: 26px; }
.lk-hero h1 { max-width: 920px; margin: 20px auto 18px; font-size: clamp(36px, 5.6vw, 66px); }
.lk-hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, #4A6810 0%, #6B9216 55%, #4A6810 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lk-hero .lede { max-width: 660px; margin: 0 auto; font-size: 18px; color: var(--ink-mute); }
.lk-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.lk-checks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 550; color: var(--ink);
}
.lk-checks svg { width: 15px; height: 15px; color: var(--pea-deep); flex: none; }

/* ---------- the tool card ---------- */
.lk-card {
  max-width: 980px; margin: 40px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15, 31, 15, .04), 0 24px 48px -24px rgba(15, 31, 15, .18);
  padding: 22px 26px 28px;
}
.lk-switch { display: flex; justify-content: center; }
.lk-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; }
.lk-tabs button {
  font: inherit; font-size: 14.5px; font-weight: 600; border: 0; background: none; color: var(--ink-mute);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s;
}
.lk-tabs button:hover { color: var(--ink); }
.lk-tabs button[aria-selected="true"], .lk-tabs button[aria-pressed="true"] {
  background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 31, 15, .08), 0 0 0 1px var(--line-soft);
}
.lk-tabs.sub { margin-top: 12px; }
.lk-tabs.sub button { font-size: 13.5px; padding: 7px 16px; }
.lk-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; background: var(--pea); color: var(--ink); padding: 1px 6px; border-radius: 5px; }
.lk-tabs button:focus-visible { outline: 2px solid var(--pea-deep); outline-offset: 2px; }

/* map */
.lk-map { max-width: 780px; margin: 18px auto 0; }
.lk-map svg { display: block; width: 100%; height: auto; }
.lk-map path {
  fill: #E4E3D8; stroke: var(--card); stroke-width: 1.4; stroke-linejoin: round;
  cursor: pointer; transition: fill .15s; outline: none;
}
.lk-map path:hover, .lk-map path:focus-visible { fill: #CBE39A; }
.lk-map path.on { fill: var(--pea); }
.lk-map path.on:hover { fill: #B2E043; }
.lk-map-hint { text-align: center; font-size: 13px; color: var(--ink-mute); min-height: 21px; margin: 6px 0 0; }

/* single lookup */
.lk-form { display: flex; gap: 10px; max-width: 580px; margin: 14px auto 0; }
.lk-form .field { flex: 1; height: 48px; font-size: 16px; }
.lk-form .btn { height: 48px; padding: 0 22px; }
.lk-result { max-width: 580px; margin: 16px auto 0; }
.lk-result:empty { display: none; }
.lk-result .err { color: var(--err); text-align: center; margin: 0; }
.lk-result .meta { color: var(--ink-mute); font-size: 14.5px; }
.lk-hit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
}
.lk-hit.split { grid-template-columns: 1fr; }
.lk-hit .greet { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--pea-text); }
.lk-hit .time { font-size: 48px; font-weight: 650; color: var(--ink); letter-spacing: -0.04em; line-height: 1.05; margin: 4px 0; font-variant-numeric: tabular-nums; }
.lk-hit .where { font-size: 14.5px; color: var(--ink-soft); }
.lk-hit.split .where { font-size: 17px; color: var(--ink); margin: 6px 0 4px; }
.lk-facts { display: grid; gap: 8px; margin: 0; min-width: 190px; }
.lk-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 11px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 9px; }
.lk-facts dt { font-size: 12.5px; color: var(--ink-mute); }
.lk-facts dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; }
.lk-facts dd.muted { color: var(--ink-mute); font-weight: 500; }
.lk-note { margin: 10px 2px 0; text-align: center; }
.lk-limit { display: block; margin-top: 6px; }

/* bulk */
#pane-bulk .lk-switch { margin-bottom: 16px; }
.lk-bulk { min-height: 200px; }
#pane-bulk .check-inline { font-size: 13.5px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }
.lk-table { max-height: 520px; overflow: auto; }
.lk-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.lk-table thead th {
  position: sticky; top: 0; z-index: 1; background: var(--bg-soft); text-align: left;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.lk-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.lk-table tbody tr:nth-child(even) td { background: #FCFCF8; }
.lk-table tbody tr:hover td { background: var(--bg-tint); }
.lk-table tbody tr:last-child td { border-bottom: 0; }
.lk-table td strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.lk-table .bad td { color: var(--err); }

.lk-foot { margin: 22px auto 0; max-width: 640px; font-size: 14px; color: var(--ink-mute); }

@media (max-width: 720px) {
  .lk-hero { padding: 28px 0 48px; }
  .lk-card { padding: 16px 14px 20px; border-radius: 18px; margin-top: 28px; }
  .lk-tabs button { padding: 8px 14px; }
  .lk-hit { grid-template-columns: 1fr; }
  .lk-hit .time { font-size: 40px; }
  .lk-form .btn { padding: 0 16px; }
}

/* ---------- area code directory ---------- */
.ac-dir { margin-top: 28px; }
.ac-dir-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ac-filter { position: relative; flex: 1 1 320px; max-width: 460px; }
.ac-filter svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }
.ac-filter input {
  width: 100%; height: 44px; padding: 0 14px 0 40px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.ac-filter input:focus { outline: none; border-color: var(--pea-deep); box-shadow: 0 0 0 3px rgba(163, 214, 47, .3); }
.ac-count { font-size: 13.5px; color: var(--ink-mute); }
.st-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; }
.st-jump a {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-decoration: none; text-align: center;
  min-width: 40px; padding: 5px 8px; color: var(--ink-soft); background: var(--card);
  border: 1px solid var(--line); border-radius: 7px; transition: background .15s, border-color .15s;
}
.st-jump a:hover { background: var(--bg-tint); border-color: #CFE3A6; color: var(--ink); }
.st-grid { columns: 2 360px; column-gap: 14px; }
.st-card {
  break-inside: avoid; display: block; margin: 0 0 14px; padding: 16px 18px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  scroll-margin-top: 96px; transition: border-color .2s, box-shadow .2s;
}
.st-card:target { border-color: var(--pea-deep); box-shadow: 0 0 0 3px rgba(163, 214, 47, .3); }
.st-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.st-card h2, .st-card h3 { font-size: 18px; letter-spacing: -0.02em; }
.st-abbr { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 7px 0 13px; font-size: 12.5px; color: var(--ink-mute); }
.zone-pill { background: var(--bg-tint); color: var(--pea-text); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 12px; }
.st-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.st-codes a {
  display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 7px 10px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 8px; transition: background .15s, border-color .15s;
}
.st-codes a:hover { background: var(--bg-tint); border-color: #CFE3A6; }
.st-codes a b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.st-codes a span { font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-codes a[hidden], .st-card[hidden] { display: none; }
.ac-empty { margin: 8px 0 0; color: var(--ink-mute); }

/* weather, under the local time */
.lk-wx { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.lk-wx-t { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lk-wx-c { font-size: 15px; color: var(--ink-soft); }
.lk-wx .lk-limit { display: inline; margin: 0; }

/* how it works + FAQ + Add Parse, one section at the bottom */
.lk-cta { margin-top: 26px; padding: 18px 20px; background: var(--bg-tint); border: 1px solid #D5E7AE; border-radius: var(--r-lg); }
.lk-cta p { color: var(--ink-soft); }
.lk-cta b { color: var(--ink); }
.lk-cta .cta-row { margin-top: 14px; }
