:root {
  --navy: #0b2545;
  --navy-light: #143c6b;
  --accent: #176b87;
  --green: #1b7f4b;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --border: #dbe3ed;
  --text: #1b2b3d;
  --muted: #5c6e82;
  --shadow: 0 12px 32px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.35; }

.brand-county { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }

.brand-dept { font-size: 0.85rem; color: #c3d4e8; }

.header-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6e6f5;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  padding: 56px 0 32px;
}

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

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--navy);
}

.lede {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 11px 20px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 107, 135, 0.35);
  outline-offset: 2px;
}

.btn-primary { background: var(--navy-light); color: #fff; }
.btn-primary:hover { background: var(--navy); }

.btn-ghost { background: #fff; color: var(--navy-light); border-color: var(--border); }
.btn-ghost:hover { background: #f6f9fc; border-color: #b9c8d9; }

.copy-hint { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f4ed;
  color: var(--green);
  margin-bottom: 6px;
}

.hero-card-icon svg { width: 28px; height: 28px; }
.hero-card strong { color: var(--navy); font-size: 1rem; }
.hero-card span { color: var(--muted); font-size: 0.84rem; }

.verify-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.verify-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-row { display: flex; gap: 12px; flex-wrap: wrap; }

.input-row input {
  flex: 1 1 280px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.input-row input::placeholder { color: #93a2b3; }

.verify-message { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.verify-message.error { color: #a4262c; font-weight: 600; }
.verify-message.success { color: var(--green); font-weight: 600; }

.result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 56px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.result-head h2 { margin: 0; font-size: 1.45rem; color: var(--navy); }
.result-head h2 span { color: var(--accent); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #e8f4ed;
  color: var(--green);
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.detail {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f6;
}

.detail dt { color: var(--muted); font-size: 0.86rem; }
.detail dd { margin: 0; font-weight: 600; color: var(--navy); }

.notice {
  background: #f0f6fb;
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 26px 0;
  font-size: 0.92rem;
  color: #34506c;
}

.info-block { margin: 28px 0; }
.info-block h3, .document-head h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.08rem; }

.conditions { margin: 0; padding-left: 24px; color: #34485e; }
.conditions li { padding: 5px 0 5px 6px; }
.conditions li::marker { color: var(--accent); font-weight: 700; }

.copies { margin: 0; padding-left: 22px; color: #34485e; }
.copies li { padding: 3px 0; }

.document-section { border-top: 1px solid var(--border); padding-top: 26px; margin-top: 32px; }

.document-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.document-head h3 { margin-bottom: 2px; }
.document-head p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pdf-shell {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #e9eef4;
}

.pdf-frame { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; }
.pdf-fallback { margin: 10px 0 0; font-size: 0.86rem; color: var(--muted); }

.site-footer { background: var(--navy); color: #cfdcea; padding: 36px 0 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 5px; padding: 3px; }
.footer-brand strong { display: block; color: #fff; }
.footer-brand span { display: block; font-size: 0.86rem; }

.site-footer address { font-style: normal; font-size: 0.88rem; line-height: 1.8; }
.site-footer address a { color: #a9d6e5; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 16px;
  font-size: 0.8rem;
  color: #a9bdd2;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .hero-card { align-items: flex-start; text-align: left; }
  .details-grid { grid-template-columns: 1fr; }
  .header-tag { display: none; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 80px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-county { font-size: 0.95rem; }
  .brand-dept { font-size: 0.76rem; }
  .result { padding: 20px; }
  .detail { grid-template-columns: 1fr; gap: 2px; }
  .input-row .btn { width: 100%; }
  .pdf-frame { height: 60vh; min-height: 420px; }
}

@media print {
  body { background: #fff; }
  .site-header, .hero, .verify-bar, .doc-actions, .site-footer, .pdf-shell, .pdf-fallback { display: none !important; }
  .result { box-shadow: none; border: 0; padding: 0; }
  .container { width: 100%; }
}
