/* Minimal, elegant, and mobile-first styles shared by all pages */
:root{
  --bg: #0b0c0f;          /* near-black for strong contrast */
  --surface: #12151a;     /* card/nav background */
  --muted: #8b95a7;       /* secondary text */
  --text: #e9eef7;        /* primary text */
  --brand: #7acb6a;       /* garden green */
  --brand-2: #a6e3a1;     /* lighter accent */
  --ring: #2f4430;        /* focus ring */
  --maxw: 78rem;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin:0;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #102015 0%, transparent 60%) , var(--bg);
}

img, svg { max-width: 100%; height: auto; display: block; }

.container{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px);
}

.header{
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.2) blur(10px);
  background: linear-gradient(180deg, rgba(18,21,26,.85), rgba(18,21,26,.6));
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 50;
}

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .2px;
}
.brand svg { width: 26px; height: 26px; }

.navlinks{
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.navlinks a{
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.navlinks a:hover{ border-color: rgba(122,203,106,.5); box-shadow: inset 0 0 0 1px rgba(122,203,106,.4); }

.hero{
  padding-top: clamp(22px, 6vw, 64px);
  padding-bottom: clamp(18px, 4vw, 40px);
}
.kicker{
  display: inline-flex; gap: 10px; align-items: center;
  font-size: .86rem; color: var(--muted); letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.03);
}
.title{
  margin: 14px 0 8px 0;
  font-size: clamp(1.8rem, 2.8rem, 4.2vw);
  line-height: 1.2;
}
.subtitle{ color: var(--muted); max-width: 65ch; }

.badges{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px;}
.badges .chip{
  font-size:.8rem; color:#cfe9cf; background: #18311d; border: 1px solid #2c5534;
  padding:6px 10px; border-radius:999px;
}

.grid{
  display: grid;
  gap: clamp(14px, 2.2vw, 24px);
}
.grid.cols-2{ grid-template-columns: 1fr; }
@media (min-width: 860px){ .grid.cols-2{ grid-template-columns: 1.2fr .8fr; } }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card .cover{
  background: linear-gradient(135deg, #16351f, #0e2215);
  padding: clamp(14px, 2.4vw, 20px);
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cover svg{ width: 38px; height: 38px; }

.card .content{ padding: clamp(14px, 2.4vw, 24px); }

.hsection{
  margin: clamp(18px, 4vw, 44px) 0;
}
h2{
  font-size: clamp(1.2rem, 1.6rem, 2rem);
  margin: 0 0 12px 0;
}
h3{ margin: 18px 0 8px 0; font-size: 1.05rem; }
p{ margin: 0 0 12px 0; }
ul, ol{ margin: 0 0 14px 24px; }
.lead{ font-size: 1.05rem; color: #dde7dd; }

.tool-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: clamp(12px, 2vw, 18px);
}
.tool{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px;
  display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start;
}
.tool svg{ width: 42px; height: 42px; }
.tool h4{ margin: 0 0 6px 0; font-size: 1rem; }
.tool p{ margin: 0; color: var(--muted); }

.callout{
  border-left: 4px solid var(--brand);
  background: linear-gradient(90deg, rgba(122,203,106,.12), transparent 55%);
  padding: 12px 14px; border-radius: 10px;
}

.figure{
  display: grid; gap: 10px;
}
.figure .imgwrap{
  border: 1px solid rgba(255,255,255,.08);
  background: #0e1912;
  border-radius: 12px;
  overflow: hidden;
}
.figure figcaption{ color: var(--muted); font-size: .92rem; }

.kbd{
  display:inline-block; padding:2px 8px; border:1px solid rgba(255,255,255,.2);
  border-bottom-width:2px; border-radius:6px; font-size:.85rem; background:rgba(255,255,255,.06)
}

.footer{
  margin-top: clamp(28px, 5vw, 60px);
  border-top: 1px dashed rgba(255,255,255,.12);
  color: var(--muted);
  padding: 18px 0 44px 0;
  display: grid; gap: 8px;
}

/* Simple table styling for policies/terms */
.table{
  width:100%; border-collapse: collapse; margin: 8px 0 18px 0;
}
.table th, .table td{
  border:1px solid rgba(255,255,255,.08);
  padding:10px 12px; text-align:left;
}
.table th{ background: rgba(255,255,255,.04); }

/* Skip link for a11y */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 12px; top: 12px; width:auto; height:auto; padding:8px 10px; border-radius:8px;
  background: #142718; color:#dff3df; outline: 2px solid var(--brand);
}

/* Anchored headings */
.anchor{
  color: var(--muted); text-decoration: none; margin-left: 6px; opacity:.7;
}
.anchor:hover{ color: var(--brand-2); opacity:1; }

/* Code/inline */
code{ background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; }

/* Responsive helpers */
.stack{
  display: grid; gap: clamp(10px, 2vw, 16px);
}
.columns-3{
  display:grid; gap:12px; grid-template-columns: 1fr;
}
@media (min-width: 980px){ .columns-3{ grid-template-columns: repeat(3,1fr); } }

/* Tiny badge list inside cards */
.metas{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px;}
.meta{ font-size:.78rem; color:#cce6cc; padding:4px 8px; border:1px solid #284f2f; border-radius: 999px; background:#142718; }

/* Footnotes */
.footnotes{ font-size:.92rem; color: var(--muted); }
.footnotes li{ margin-bottom:6px; }
