:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18211f;
  background: #f4f7f5;
  font-synthesis: none;
  --ink: #18211f;
  --muted: #62706c;
  --line: #d7dfdc;
  --surface: #ffffff;
  --teal: #087e73;
  --teal-dark: #075f58;
  --green: #218c5b;
  --blue: #2873b8;
  --yellow: #9a7410;
  --red: #bd3d3d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #f4f7f5;
}

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

.guide-topbar {
  min-height: 62px;
  padding: 10px max(18px, calc((100vw - 980px) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.guide-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--teal-dark);
  border-radius: 7px;
  font-size: 17px;
}

.guide-topbar nav {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.guide-topbar nav a {
  color: #42524d;
  font-weight: 700;
  text-decoration: none;
}

.guide-topbar nav a[aria-current="page"] {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-intro {
  color: #f6fffc;
  background: #163d37;
  border-bottom: 5px solid #dcab4f;
}

.guide-intro-inner,
.guide-content {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
}

.guide-intro-inner {
  padding: 34px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 36px;
}

.guide-kicker {
  margin: 0 0 8px;
  color: #a9c8c1;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: 0;
}

.guide-lead {
  max-width: 640px;
  margin: 13px 0 0;
  color: #c9ded9;
  font-size: 14px;
  line-height: 1.65;
}

.guide-cta {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #102c27;
  background: #f3c667;
  border: 1px solid #f6d384;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.guide-cta:hover { background: #f7d486; }

.guide-scan {
  display: grid;
  gap: 8px;
}

.guide-scan label {
  font-size: 12px;
  font-weight: 700;
}

.guide-scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

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

.guide-scan-row.triple button { grid-column: 1 / -1; }

.guide-scan input,
.guide-scan button {
  min-height: 48px;
  border-radius: 7px;
  font: inherit;
  letter-spacing: 0;
}

.guide-scan input {
  min-width: 0;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid transparent;
  outline: 0;
}

.guide-scan input:focus { border-color: #78c9ba; }

.guide-scan button {
  padding: 0 16px;
  color: #102c27;
  background: #f3c667;
  border: 1px solid #f6d384;
  font-weight: 800;
  cursor: pointer;
}

.guide-content {
  padding: 34px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 44px;
  align-items: start;
}

article { min-width: 0; }

article h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

article h2:first-child { margin-top: 0; }

article h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

article p,
article li {
  color: #3f4f4a;
  font-size: 14px;
  line-height: 1.75;
}

article ul,
article ol { padding-left: 22px; }

article li + li { margin-top: 7px; }

.help-facts {
  margin: 16px 0 30px;
  border-top: 1px solid var(--line);
}

.help-facts > div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.help-facts dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.help-facts dd {
  min-width: 0;
  margin: 0;
  color: #3f4f4a;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

code {
  padding: 2px 5px;
  color: #163d37;
  background: #e8f0ed;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
  max-width: 100%;
  margin: 14px 0;
  padding: 15px;
  overflow: auto;
  color: #dce9e6;
  background: #20332f;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

.guide-note {
  margin: 18px 0;
  padding: 12px 0 12px 15px;
  border-left: 4px solid var(--blue);
}

.guide-note.warning { border-left-color: var(--yellow); }
.guide-note.danger { border-left-color: var(--red); }
.guide-note p { margin: 0; }

.guide-aside {
  padding: 17px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.guide-aside strong {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
}

.guide-aside a {
  display: block;
  padding: 8px 0;
  color: #41514c;
  border-top: 1px solid #e6ece9;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.guide-aside a:hover { color: var(--teal-dark); }

.sources {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-footer {
  min-height: 58px;
  padding: 16px max(18px, calc((100vw - 980px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  background: #e8eeeb;
  border-top: 1px solid #d2dcd8;
  font-size: 11px;
}

.directory-footer { align-items: center; }

.directory-badge {
  width: 210px;
  height: 40px;
  flex: 0 0 auto;
  display: block;
}

.directory-badge img {
  width: 210px;
  height: 40px;
  display: block;
}

@media (max-width: 720px) {
  .guide-topbar nav { gap: 10px; }
  .guide-topbar nav a[aria-current="page"] { display: none; }

  .guide-intro-inner,
  .guide-content {
    grid-template-columns: 1fr;
  }

  .guide-intro-inner { gap: 24px; }

  h1 { font-size: 31px; }

  .guide-content { gap: 28px; }

  .guide-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 420px) {
  .guide-scan-row,
  .guide-scan-row.triple { grid-template-columns: 1fr; }
  .guide-scan button { width: 100%; }
  .guide-cta { width: 100%; }
  .help-facts > div { grid-template-columns: 1fr; gap: 5px; }
}
