/* Protective Shield — single stylesheet. No third-party CSS, no trackers. */

:root {
  --paper: #f3f1ea;
  --panel: #fffdf7;
  --sand: #e7e1d3;
  --ink: #15191d;
  --body: #2b333a;
  --muted: #4c565f;
  --line: #c8c1b2;
  --line-soft: #ded7c8;
  --teal: #0b5c60;
  --teal-dark: #063f42;
  --plum: #5b3566;
  --radius: 2px;
  --shell: 1140px;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.4375rem;
  --step-3: 1.75rem;
  --step-4: 2.125rem;
  --gap: 1.6rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Karla", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.68;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: "Bitter", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 2.2rem 0 0.7rem;
  font-weight: 700;
}

h1 { font-size: var(--step-4); margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, table { margin: 0 0 1.1rem; }
li { margin-bottom: 0.45rem; }

a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--plum); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 2px;
}

strong { color: var(--ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--panel);
  border-bottom: 3px solid var(--ink);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid var(--teal);
  display: grid;
  place-items: center;
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  display: block;
  font-family: "Karla", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: var(--panel);
  border: 2px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.mainnav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.mainnav li { margin: 0; position: relative; }

.mainnav a, .mainnav .nav-group-btn {
  display: block;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  color: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.mainnav a:hover, .mainnav .nav-group-btn:hover { color: var(--teal-dark); border-color: var(--line); }
.mainnav a[aria-current="page"] { color: var(--teal-dark); border-bottom-color: var(--teal); }

.nav-group-btn::after { content: " ▾"; font-size: 0.8em; }

.nav-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 290px;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.4rem;
  z-index: 30;
}

.nav-panel ul { display: block; }
.nav-panel a { font-weight: 400; font-size: 0.93rem; }
.nav-panel a span { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Layout ---------- */

main { display: block; }

.page { padding: 2.2rem 0 1rem; }

.with-rail {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.6rem;
  align-items: start;
}

.rail {
  position: sticky;
  top: 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem 1.05rem;
  font-size: 0.92rem;
}

.rail .rail-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  font-family: "Karla", system-ui, sans-serif;
  color: var(--muted);
}

.rail ol, .rail ul { margin: 0 0 1rem; padding-left: 1.05rem; }
.rail li { margin-bottom: 0.3rem; line-height: 1.4; }
.rail p { font-size: 0.88rem; color: var(--muted); }
.rail dt { font-weight: 700; color: var(--ink); margin-top: 0.6rem; }
.rail dd { margin: 0; font-size: 0.87rem; color: var(--muted); }

.prose { max-width: 70ch; }
.prose > h2 { border-top: 1px solid var(--line-soft); padding-top: 1.5rem; }

/* ---------- Hero ---------- */

.hero {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
}

.hero .eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.hero h1 { max-width: 22ch; }
.hero .lede { font-size: var(--step-1); max-width: 62ch; color: var(--body); }

.keypoints {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.keypoints li {
  background: var(--panel);
  margin: 0;
  padding: 0.95rem 1.05rem;
}

.keypoints b {
  display: block;
  font-family: "Bitter", Georgia, serif;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.keypoints span { font-size: 0.92rem; color: var(--muted); }

/* ---------- Panels ---------- */

.disclosure-box {
  border: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.25rem 1.35rem;
  margin: 2rem 0;
}

.disclosure-box h2 {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
  color: var(--teal-dark);
}

.disclosure-box p:last-child { margin-bottom: 0; }

.callout {
  border-left: 5px solid var(--plum);
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.1rem 1.2rem;
  margin: 1.6rem 0;
}

.callout h3, .callout h2 { margin-top: 0; font-size: var(--step-1); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.watch {
  border: 2px dashed var(--line);
  background: var(--sand);
  padding: 1.1rem 1.25rem;
  margin: 1.8rem 0;
  border-radius: var(--radius);
}

.watch h2, .watch h3 { margin-top: 0; }
.watch ul:last-child, .watch p:last-child { margin-bottom: 0; }

.method {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  padding: 1.15rem 1.25rem;
  margin: 1.8rem 0;
}

.method h2, .method h3 { margin-top: 0; }
.method p:last-child { margin-bottom: 0; }

.quick {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  margin: 0 0 1.6rem;
  font-size: 1.02rem;
}

.quick b { font-family: "Bitter", Georgia, serif; }
.quick p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0 2rem;
  padding: 0;
  list-style: none;
}

.cards li { margin: 0; }

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  height: 100%;
}

.card .step-no {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 700;
}

.card h3 { margin: 0.3rem 0 0.45rem; font-size: var(--step-1); }
.card p { font-size: 0.95rem; margin-bottom: 0.6rem; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; border: 1px solid var(--line); }

table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--panel); margin: 0; }

caption {
  text-align: left;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}

th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  font-size: 0.95rem;
}

thead th { background: var(--sand); color: var(--ink); border-bottom: 2px solid var(--line); }
tbody th { font-weight: 700; color: var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* ---------- Lists ---------- */

.checklist { list-style: none; padding: 0; }
.checklist li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.65rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
}

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li {
  counter-increment: s;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
}
.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: var(--radius);
}

dl.terms dt { font-weight: 700; color: var(--ink); font-family: "Bitter", Georgia, serif; margin-top: 1rem; }
dl.terms dd { margin: 0.2rem 0 0; }

.proscons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}

.proscons > div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
}

.proscons h3 { margin-top: 0; font-size: var(--step-1); }
.proscons ul { margin-bottom: 0; padding-left: 1.15rem; }

/* ---------- Affiliate link ---------- */

.aff {
  display: inline-block;
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal-dark);
}

.aff:hover { background: var(--teal-dark); color: #ffffff; }

.aff-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
  max-width: 62ch;
}

.aff-block {
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  background: var(--panel);
  padding: 1.15rem 1.25rem;
  margin: 1.8rem 0;
  border-radius: var(--radius);
}

.aff-block h3, .aff-block h2 { margin-top: 0; }

/* ---------- Accordion ---------- */

.accordion { border: 1px solid var(--line); border-radius: var(--radius); margin: 1.4rem 0 1.8rem; background: var(--panel); }

.accordion h3 { margin: 0; border-top: 1px solid var(--line-soft); }
.accordion h3:first-of-type { border-top: 0; }

.acc-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.95rem 2.6rem 0.95rem 1.1rem;
  cursor: pointer;
  position: relative;
}

.acc-btn::after {
  content: "+";
  position: absolute;
  right: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--teal-dark);
}

.acc-btn[aria-expanded="true"]::after { content: "–"; }

.acc-panel { padding: 0 1.1rem 0.4rem; }
.acc-panel p:last-child { margin-bottom: 1rem; }

/* ---------- Figures ---------- */

figure { margin: 1.6rem 0; }
figure svg { display: block; width: 100%; height: auto; max-width: 560px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; max-width: 60ch; }

/* ---------- Resource list ---------- */

.resources { list-style: none; padding: 0; }
.resources li { border-bottom: 1px solid var(--line-soft); padding-bottom: 0.7rem; margin-bottom: 0.7rem; }
.resources li:last-child { border-bottom: 0; }
.resources b { display: block; font-family: "Bitter", Georgia, serif; }

/* ---------- Footer ---------- */

.sitefoot {
  background: var(--panel);
  border-top: 3px solid var(--ink);
  margin-top: 3rem;
  padding: 2rem 0 2.4rem;
  font-size: 0.93rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2rem;
}

.publisher address { font-style: normal; line-height: 1.75; }
.publisher .pub-name { font-family: "Bitter", Georgia, serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); display: block; }
.publisher .pub-company { font-weight: 700; color: var(--ink); display: block; }

.foot-links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.foot-links li { margin: 0; }

.trademark { color: var(--muted); max-width: 66ch; }
.reviewed { color: var(--muted); font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .with-rail { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .rail { position: static; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
}

@media (max-width: 760px) {
  :root { --step-4: 1.8rem; --step-3: 1.5rem; --step-2: 1.28rem; }
  .nav-toggle { display: block; }
  .mainnav { display: none; width: 100%; }
  .mainnav.is-open { display: block; }
  .mainnav ul { display: block; }
  .mainnav li { border-top: 1px solid var(--line-soft); }
  .nav-panel { position: static; min-width: 0; border: 0; border-top: 1px solid var(--line-soft); padding-left: 0.8rem; }
  .keypoints { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
