:root {
  --navy: #0B2D4D;
  --cyan: #1C8FCE;
  --blue: #0B5FAF;
  --bright: #1EA5E8;
  --surface: #F3F7FA;
  --ink: #0B2D4D;
  --muted: #5A6F82;
  --line: rgba(11, 45, 77, 0.12);
  --font-head: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
img { display: block; max-width: 100%; }
a { color: var(--cyan); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 30;
  border-radius: 8px;
}
.skip:focus { top: 8px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.accent {
  height: 4px;
  background: linear-gradient(90deg, #E12129 0%, #1C8FCE 32%, #4CB747 68%, #FCD704 100%);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.check { color: var(--navy); }
.now { color: var(--blue); }
.help-mark {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(28, 143, 206, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
}
.app-link {
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.app-link:hover { color: var(--cyan); }

.hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 72px;
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}
.tagline {
  margin: 12px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}
.welcome {
  margin: 8px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
}

.finder {
  position: relative;
  margin-top: -36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(7, 31, 54, 0.1);
}
.search {
  display: flex;
  gap: 8px;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--navy);
  background: #fff;
}
.search button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--cyan);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 16px;
  cursor: pointer;
}
.button-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
}
.chip.is-on {
  background: var(--swatch, var(--navy));
  border-color: transparent;
  color: #fff;
}
.category-note {
  margin: 12px 0 0;
  color: var(--muted);
}

main { padding: 28px 0 64px; }
.section-label {
  margin: 8px 0 12px;
  color: rgba(11, 45, 77, 0.55);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 45, 77, 0.04);
}
.card:hover {
  border-color: rgba(28, 143, 206, 0.45);
  box-shadow: 0 8px 24px rgba(11, 45, 77, 0.08);
}
.card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.card p, .summary, .muted, .message p { color: var(--muted); }
.card p { margin: 0; }
.pills, .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #E7F3FA;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
}
.pill-blog { background: rgba(76, 183, 71, 0.14); }
.pill-cat {
  background: #fff;
  border: 1px solid var(--swatch, var(--cyan));
  color: var(--navy);
}
.empty, .message {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 20px;
}
.empty h2, .message h1 { margin: 0 0 8px; }
.article { max-width: 980px; }
.article h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.back { margin: 0 0 12px; }
.meta { margin: 0 0 12px; color: var(--muted); }
.summary { margin: 0 0 20px; max-width: 760px; }
.guide-frame, .scribe-frame {
  width: 100%;
  min-height: 70vh;
  height: 900px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.scribe-frame { margin-top: 12px; }
.content {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 22px 22px;
}
.content h1, .content h2, .content h3 { margin: 1.4em 0 0.4em; }
.content p { margin: 0 0 1em; }
.content ul, .content ol { padding-left: 1.3em; }
.content img { height: auto; border-radius: 8px; }
.content pre {
  overflow: auto;
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
}
.related { margin-top: 36px; }
.related h2 { font-size: 1.1rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 8px 0; }
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer p { margin: 0; }
.footer a { color: var(--navy); text-decoration: none; font-weight: 700; }
.footer a:hover { color: var(--cyan); }

@media (max-width: 640px) {
  .search { flex-direction: column; }
  .help-mark { display: none; }
  .hero { padding-top: 28px; }
}
