/* content.css - guide, FAQ and free-tool pages.
   Self-contained: brand tokens below are the only per-site values. */
:root {
  color-scheme: light;
  --brand: #c8102e;
  --brand-deep: #9c0c23;
  --accent: #f5b638;
  --navy: #0a1220;
  --paper: #f5f7fa;
  --card: #ffffff;
  --ink: #101c2b;
  --muted: #54687e;
  --faint: #7a90a5;
  --line: #dbe4ee;
  --good: #16a34a;
  --warn: #b45309;
  --bad: #c0223b;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 820px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --- skip link: keyboard users should not tab the nav on every page ----- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; text-decoration: none;
}
.skip:focus { left: 0; }

/* --- header ------------------------------------------------------------- */
header.top {
  background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
header.top .bar {
  display: flex; align-items: center; gap: 18px; min-height: 62px;
  flex-wrap: wrap;
}
header.top a { color: #fff; text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
  letter-spacing: -.01em; font-size: 17px; margin-right: auto; }
.logo .mark { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--accent)); }
.logo b { font-weight: 800; color: var(--accent); }
nav.links { display: flex; gap: 16px; flex-wrap: wrap; }
nav.links a { font-size: 14.5px; color: rgba(255,255,255,.82); padding: 4px 0;
  border-bottom: 2px solid transparent; }
nav.links a:hover, nav.links a:focus-visible { color: #fff; border-bottom-color: var(--accent); }
nav.links a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--navy) !important; font-weight: 700;
  font-size: 14px; padding: 8px 14px; border-radius: 9px; white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.07); }

/* --- breadcrumb --------------------------------------------------------- */
.crumb { font-size: 13.5px; color: var(--muted); padding: 16px 0 0; }
.crumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.crumb a:hover { color: var(--brand); }

/* --- typography --------------------------------------------------------- */
main { padding-bottom: 56px; }
h1 {
  font-size: clamp(28px, 5.2vw, 40px); line-height: 1.14; letter-spacing: -.022em;
  margin: 18px 0 12px; color: var(--navy); font-weight: 800;
}
.lede { font-size: clamp(17px, 2.4vw, 19.5px); color: var(--muted); margin: 0 0 8px; }
h2 {
  font-size: clamp(21px, 3.4vw, 26px); line-height: 1.25; letter-spacing: -.014em;
  margin: 44px 0 12px; color: var(--navy); font-weight: 750;
  scroll-margin-top: 84px;
}
h3 {
  font-size: clamp(17px, 2.5vw, 19px); line-height: 1.32; margin: 28px 0 8px;
  color: var(--navy); font-weight: 700; scroll-margin-top: 84px;
}
p { margin: 0 0 15px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 9px; }
strong, b { font-weight: 700; color: var(--ink); }
a { color: var(--brand-deep); }
code { font-family: var(--mono); font-size: .9em; background: #eef2f7;
  padding: 1px 5px; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.updated { font-size: 13.5px; color: var(--faint); margin: 0 0 26px; }

/* --- callouts ----------------------------------------------------------- */
.callout {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius);
  padding: 16px 18px; margin: 22px 0;
}
.callout.warn { border-left-color: var(--warn); }
.callout.good { border-left-color: var(--good); }
.callout p:last-child { margin-bottom: 0; }
.callout .t { font-weight: 750; color: var(--navy); margin: 0 0 6px;
  font-size: 15.5px; letter-spacing: .01em; }

/* --- tables ------------------------------------------------------------- */
.tablewrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
th { background: #eef2f7; font-weight: 700; color: var(--navy); font-size: 14px;
  white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* --- numbered steps ----------------------------------------------------- */
ol.steps { list-style: none; padding: 0; counter-reset: st; margin: 22px 0; }
ol.steps > li {
  counter-increment: st; position: relative; padding: 0 0 0 46px; margin: 0 0 20px;
}
ol.steps > li::before {
  content: counter(st); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 750; font-size: 15px;
  display: grid; place-items: center;
}
ol.steps > li .t { font-weight: 700; color: var(--navy); display: block; margin-bottom: 3px; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { margin: 24px 0; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin: 0 0 10px; padding: 0;
}
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
  font-size: 16.5px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px;
  line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 18px 15px; }
.faq .a p:last-child { margin-bottom: 0; }

/* --- the free tool ------------------------------------------------------ */
.tool {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 24px 0;
}
.tool fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.tool legend { font-weight: 750; color: var(--navy); font-size: 16px;
  padding: 0; margin: 0 0 4px; }
.tool .hint { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.tool label { display: block; margin: 0 0 8px; font-size: 15.5px; }
.tool .opts { display: flex; gap: 10px; flex-wrap: wrap; }
.tool .opts label {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px;
  background: var(--paper); cursor: pointer; margin: 0; font-size: 15px;
}
.tool .opts label:has(input:checked) {
  border-color: var(--brand); background: #eaf2fd; font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.tool input[type="text"], .tool input[type="date"], .tool input[type="time"],
.tool input[type="number"], .tool textarea, .tool select {
  font: inherit; font-size: 16px; width: 100%; max-width: 340px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
.tool textarea { max-width: none; min-height: 110px; resize: vertical; }
.tool button {
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 22px;
}
.tool button:hover { background: var(--brand-deep); }
.tool button.sec { background: transparent; color: var(--brand-deep);
  border: 1px solid var(--line); }
.tool .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.result { margin: 22px 0 0; }
.result[hidden] { display: none !important; }
.verdict {
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px;
  border: 1px solid var(--line); background: var(--paper);
  border-left: 4px solid var(--faint);
}
.verdict.hit { border-left-color: var(--bad); background: #fdf1f3; }
.verdict.warn { border-left-color: var(--warn); background: #fdf6ec; }
.verdict.clear { border-left-color: var(--good); background: #eefaf1; }
.verdict .v { font-weight: 800; letter-spacing: .02em; font-size: 13px;
  text-transform: uppercase; margin: 0 0 5px; }
.verdict.hit .v { color: var(--bad); }
.verdict.warn .v { color: var(--warn); }
.verdict.clear .v { color: var(--good); }
.verdict h3 { margin: 0 0 6px; font-size: 18px; }
.verdict p:last-child { margin-bottom: 0; }
.privnote { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* --- related / CTA ------------------------------------------------------ */
.related { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 40px 0 0; }
.related h2 { margin: 0 0 10px; font-size: 19px; }
.related ul { margin: 0; padding-left: 20px; }
.cta {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 24px; margin: 34px 0 0;
}
.cta h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.cta p { color: rgba(255,255,255,.85); }
.cta a.btn {
  display: inline-block; background: var(--accent); color: var(--navy);
  font-weight: 750; text-decoration: none; padding: 12px 22px;
  border-radius: 10px; margin-top: 6px;
}
.cta a.btn:hover { filter: brightness(1.07); }

/* --- footer ------------------------------------------------------------- */
footer.site {
  background: var(--navy); color: rgba(255,255,255,.7); margin-top: 56px;
  padding: 34px 0; font-size: 13.5px; line-height: 1.6;
}
footer.site a { color: rgba(255,255,255,.9); text-decoration: underline;
  text-underline-offset: 2px; }
footer.site p { margin: 0 0 12px; }
footer.site .logo { color: #fff; margin-bottom: 14px; }

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  header.top .bar { min-height: 56px; padding: 8px 0; }
  nav.links { gap: 13px; width: 100%; order: 3; }
  nav.links a { font-size: 14px; }
  .logo { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
