:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6b7a;
  --line: #d7dde5;
  --paper: #f5f7fa;
  --panel: #ffffff;
  --accent: #0b6f6a;
  --accent-dark: #084f4b;
  --warm: #f0b84f;
  --soft: #e9f3f1;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(11, 111, 106, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(240, 184, 79, 0.18) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(11, 111, 106, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(23, 32, 42, 0.06), transparent 28%),
    var(--paper);
  background-size: 22px 22px, 28px 28px, auto, auto, auto;
  color: var(--ink);
}

a {
  color: var(--accent-dark);
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.site-header nav,
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header nav a,
.footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.footer a:hover {
  color: var(--accent-dark);
}

.hero-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding: 36px 0 56px;
}

.lookup-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(25, 40, 60, 0.08);
  padding: clamp(24px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.lookup-form {
  margin-top: 34px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

input,
button {
  min-height: 52px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #b9c3cf;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(11, 111, 106, 0.14);
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.hint,
.message {
  color: var(--muted);
  font-size: 0.94rem;
}

.message[data-type="success"] {
  color: var(--accent-dark);
}

.message[data-type="error"] {
  color: var(--danger);
}

.result {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.result-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.result-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(240, 184, 79, 0.2);
  color: #6c4a06;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: capitalize;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.result-grid div {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ad-rail {
  display: grid;
  gap: 16px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px dashed #9ca8b6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  text-align: center;
}

.ad-slot span,
.ad-slot strong {
  display: block;
}

.ad-slot strong {
  color: var(--ink);
}

.ad-slot.small {
  min-height: 120px;
}

.trust-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
}

.trust-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.trust-panel li + li {
  margin-top: 10px;
}

.trust-panel li span,
.info-grid h3 span {
  margin-right: 6px;
}

.content-band {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 54px 0;
}

.muted-band {
  background: var(--soft);
}

.section-heading,
.info-grid,
.guide-grid,
.faq-list {
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
}

.info-grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.guide-grid a {
  display: flex;
  align-items: center;
  min-height: 74px;
  border: 1px solid rgba(11, 111, 106, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 850;
  padding: 14px 16px;
  text-decoration: none;
}

.guide-grid a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px 18px;
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.document {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  line-height: 1.65;
}

.document h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.document li {
  margin: 8px 0;
}

.article-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.article-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.document h2 {
  margin-top: 32px;
}

@media (max-width: 860px) {
  .hero-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ad-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
  }

  .hero-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .input-row,
  .result-grid,
  .ad-rail,
  .info-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    display: grid;
  }
}
