/* Coastal Bend Wind Zone — single-page tool styles.
 * NPC brand-aligned (emerald accents, dark base, brushed-metal vibe) but
 * standalone so it doesn't depend on npclocal's design system. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0f1a;
  color: #e5e7eb;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle storm-curl grid background */
.bg-grid {
  background-image:
    radial-gradient(ellipse at top, rgba(56, 189, 248, 0.06), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none'><g stroke='%2338bdf8' stroke-opacity='0.07' stroke-width='0.7' fill='none'><circle cx='40' cy='40' r='18'/><circle cx='40' cy='40' r='28'/><circle cx='120' cy='120' r='18'/><circle cx='120' cy='120' r='28'/></g></svg>");
}

a { color: #34d399; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

/* Top bar */
.topbar {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(7,13,26,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem; flex-wrap: wrap; gap: 0.5rem;
}
.brand { margin: 0; font-weight: 800; letter-spacing: 0.01em; }
.brand-mark { font-size: 1.4em; margin-right: 0.35rem; }
.topbar-note { margin: 0; font-size: 0.82rem; color: #9ca3af; }

/* Hero */
.hero { padding: 3rem 1.25rem 2rem; }
.hero h1 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.4rem);
  line-height: 1.15; margin: 0 0 0.75rem; color: #fff; letter-spacing: -0.01em;
}
.lede { color: #d1d5db; max-width: 60ch; }

/* Form */
form#lookup {
  margin-top: 1.5rem; padding: 1.25rem;
  border: 1px solid rgba(52, 211, 153, 0.18);
  background: rgba(16, 185, 129, 0.04);
  border-radius: 10px;
}
form#lookup label {
  display: block; font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: #34d399; margin-bottom: 0.4rem;
}
form#lookup input[type=text] {
  width: 100%; padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35); color: #fff;
  border-radius: 8px; font-size: 1rem;
}
form#lookup input[type=text]:focus {
  outline: none; border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
form#lookup button {
  margin-top: 0.85rem;
  background: #10b981; color: #04201a; border: none;
  padding: 0.85rem 1.1rem; border-radius: 8px; font-weight: 800;
  font-size: 1rem; cursor: pointer; transition: background 100ms;
}
form#lookup button:hover { background: #34d399; }
form#lookup button:disabled { opacity: 0.6; cursor: progress; }
form#lookup .hint {
  margin: 0.85rem 0 0; font-size: 0.85rem; color: #9ca3af;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
form#lookup select {
  background: rgba(0,0,0,0.35); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.45rem 0.6rem; border-radius: 6px; font-size: 0.85rem;
}

/* Result card */
.result { margin-top: 1.5rem; }
.result-card {
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.05);
  border-radius: 12px; padding: 1.5rem;
}
.result-card.in-twia {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.07);
}
.result-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: rgba(56, 189, 248, 0.18); color: #7dd3fc; margin-bottom: 0.5rem;
}
.result-card.in-twia .result-tag {
  background: rgba(245, 158, 11, 0.2); color: #fcd34d;
}
.result-card h2 {
  margin: 0 0 0.25rem; color: #fff;
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.7rem);
}
.result-card .place { color: #d1d5db; margin: 0 0 1.25rem; }

.spec-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0.85rem; margin-bottom: 1.25rem;
}
@media (min-width: 540px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.spec {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25); border-radius: 8px;
}
.spec-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: #9ca3af; margin: 0 0 0.25rem; }
.spec-value { font-size: 1.5rem; font-weight: 800; color: #fff;
  margin: 0; font-variant-numeric: tabular-nums; }
.spec-value-sm { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }

.implications {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.implications h3 {
  margin: 0 0 0.5rem; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: #34d399;
}
.implications ul { margin: 0; padding-left: 1.15rem; color: #e5e7eb; }
.implications li { margin-bottom: 0.4rem; }

.next-steps {
  margin-top: 1.25rem; padding: 1rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
}
.next-steps h3 {
  margin: 0 0 0.4rem; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: #34d399;
}
.next-steps p { margin: 0; }
.next-steps a { font-weight: 700; }

.result-error {
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.06);
  border-radius: 10px; padding: 1rem 1.25rem;
}
.result-error h2 {
  margin: 0 0 0.3rem; color: #fca5a5; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.result-error p { margin: 0; color: #fecaca; font-size: 0.92rem; }

.result.loading::before {
  content: "Looking up…";
  display: block; padding: 1rem; color: #9ca3af;
  text-align: center; font-style: italic;
}

/* Info sections */
.info { padding: 2.5rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.05); }
.info h2 { margin: 0 0 1rem; color: #fff; }
.defs { margin: 0; }
.defs dt { font-weight: 700; color: #34d399; margin-top: 1rem; }
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: 0.25rem 0 0 0; color: #d1d5db; }
.sources { padding-left: 1.2rem; color: #d1d5db; }
.sources li { margin-bottom: 0.5rem; }
.disclaimer p { color: #9ca3af; font-size: 0.9rem; max-width: 70ch; }

/* Footer */
.footer { padding: 2rem 1.25rem 3rem; border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2rem; }
.footer-inner p { margin: 0; color: #9ca3af; font-size: 0.85rem; }
.footer-sub { margin-top: 0.4rem !important; }

/* Subtle keyboard focus */
:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.6);
  outline-offset: 2px; border-radius: 4px;
}
