/* Kidside - Common Ground brand (src: kidside repo BRAND.md) */
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/LibreCaslonText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/LibreCaslonText-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --teal: #2E6E63;
  --amber: #D98E32;
  --paper: #F5F4EF;
  --sage: #B9C6BE;
  --clay: #B79164;
  --ink: #1F2823;
  --muted: #4a554f;
  --card: #ffffff;
  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: #1f4f47; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; color: var(--ink); }
h1 { font-size: 2.1rem; margin: 0 0 .5rem; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

header.site { padding: 18px 0; border-bottom: 1px solid var(--sage); background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.brand img { width: 34px; height: auto; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--teal); }
nav.top a { margin-left: 16px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
nav.top a:first-child { margin-left: 0; }
nav.top a:hover { color: var(--teal); }

.hero { padding: 56px 0 40px; text-align: center; }
.hero img.mark { width: 120px; margin-bottom: 18px; }
.hero h1 { font-size: 2.5rem; }
.tagline { font-weight: 600; letter-spacing: .12em; color: var(--amber); font-size: .85rem; margin-bottom: 1.2rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.6rem; }
.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 10px; font-weight: 600; }
.btn:hover { background: #245a51; color: #fff; }
.btn.ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.note { font-size: .92rem; color: var(--muted); margin-top: .8rem; }

section.band { padding: 36px 0; }
section.band.alt { background: #fff; border-top: 1px solid #e6e4dc; border-bottom: 1px solid #e6e4dc; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid #e6e4dc; border-radius: 14px; padding: 20px; }
section.alt .card { background: var(--paper); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }

.doc { padding: 36px 0 48px; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; background: #fff; }
.doc th, .doc td { text-align: left; vertical-align: top; border: 1px solid #ddd9cf; padding: 8px 10px; }
.doc th { background: #eceae2; }
.tablewrap { overflow-x: auto; }
.callout { background: #fff; border-left: 4px solid var(--amber); padding: 14px 16px; border-radius: 6px; margin: 0 0 1.2rem; }
details { background: #fff; border: 1px solid #e6e4dc; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .7rem 0 0; }

footer.site { border-top: 1px solid var(--sage); padding: 26px 0 36px; font-size: .92rem; color: var(--muted); }
footer.site nav a { margin-right: 16px; display: inline-block; margin-bottom: 6px; }

@media (min-width: 720px) {
  h1 { font-size: 2.5rem; }
  .hero { padding: 80px 0 56px; }
  .hero h1 { font-size: 3.1rem; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}
