/* Pioneer Point - single stylesheet. No external resources, no web fonts. */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --tint: #f2ece1;
  --ink: #1e1c18;
  --muted: #514b43;
  --line: #ddd3c4;
  --line-strong: #c3b6a2;
  --accent: #993c1e;
  --accent-dark: #742c15;
  --deep: #2c4038;
  --deep-tint: #e6ece8;
  --radius: 4px;
  --step: 1.25rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--deep); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--deep);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--deep); margin-right: auto;
}
.mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 700;
  letter-spacing: .01em; color: var(--deep);
}
.brand-tag { font-size: .78rem; color: var(--muted); }

.menu-btn {
  display: none;
  font: inherit; font-size: .95rem;
  background: var(--tint); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px 14px; cursor: pointer;
}

.nav-list, .sub { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a, .sub-toggle {
  display: block; padding: 8px 11px;
  font-size: .95rem; text-decoration: none; color: var(--ink);
  border-radius: var(--radius); border: 1px solid transparent;
  background: none; font-family: inherit; cursor: pointer;
}
.nav-list a:hover, .sub-toggle:hover { background: var(--tint); color: var(--accent-dark); }
.nav-list a[aria-current="page"] {
  color: var(--accent-dark); border-color: var(--line-strong); background: var(--tint);
}
.sub-toggle.is-active { color: var(--accent-dark); }
.caret {
  display: inline-block; margin-left: 6px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; vertical-align: middle;
}
.sub {
  position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 250px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(30, 28, 24, .12);
  padding: 6px;
}
.sub a { padding: 9px 10px; }

/* ---------- layout ---------- */

.layout { padding-top: 34px; padding-bottom: 50px; }
.layout.has-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 42px; }
.content { min-width: 0; }
.side { font-size: .93rem; }
.side .side-inner {
  position: sticky; top: 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--deep);
  background: var(--surface); padding: 16px 18px; border-radius: var(--radius);
}
.side h2, .side .side-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; color: var(--muted); font-family: var(--sans); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li + li { margin-top: 7px; }
.side a { text-decoration: none; }
.side a:hover { text-decoration: underline; }
.side .side-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

/* ---------- typography ---------- */

h1, h2, h3, h4 { font-family: var(--serif); color: var(--deep); line-height: 1.22; }
h1 { font-size: 2.3rem; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; margin: 2.2rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.2rem; margin: 1.7rem 0 .4rem; }
h4 { font-size: 1.02rem; margin: 1.3rem 0 .3rem; }
p, li { max-width: 74ch; }
.lede { font-size: 1.12rem; color: var(--muted); }
.content ul, .content ol { padding-left: 1.3em; }
.content li + li { margin-top: .35em; }

/* ---------- blocks ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 1.6rem 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--deep);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 1.6rem;
}
.hero-card h1 { margin-top: 0; }
.hero-meta { margin: 0; font-size: .88rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.disclosure-box {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: #fdf3ee;
  padding: 20px 24px;
  margin: 1.8rem 0;
}
.disclosure-box h2 { margin-top: 0; border: 0; color: var(--accent-dark); font-size: 1.25rem; }
.disclosure-box p { margin-bottom: .7em; }
.disclosure-box p:last-child { margin-bottom: 0; }

.aff-note {
  font-size: .95rem; color: var(--muted);
  border-left: 3px solid var(--accent); padding-left: 12px; margin: .7rem 0 1.4rem;
}

.method-box {
  border: 1px dashed var(--line-strong); background: var(--tint);
  border-radius: var(--radius); padding: 20px 24px; margin: 1.6rem 0;
}
.method-box h2, .method-box h3 { margin-top: 0; border: 0; }

.watch-panel {
  border: 1px solid var(--line-strong); border-left: 6px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 20px 24px; margin: 1.6rem 0;
}
.watch-panel h2, .watch-panel h3 { margin-top: 0; border: 0; }

.quick {
  background: var(--deep-tint); border: 1px solid #bfd0c8;
  border-radius: var(--radius); padding: 18px 22px; margin: 1.5rem 0;
}
.quick h2, .quick h3 { margin-top: 0; border: 0; font-size: 1.1rem; }
.quick p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--accent-dark);
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary { background: var(--surface); color: var(--accent-dark); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--tint); color: var(--accent-dark); }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; background: var(--surface); }
caption { text-align: left; padding: 12px 14px; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); font-family: var(--serif); font-size: 1rem; color: var(--deep); }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- lists ---------- */

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: .55em;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border: 2px solid var(--deep); border-radius: 2px;
}

dl.defs { margin: 1.3rem 0; }
dl.defs dt { font-weight: 700; color: var(--deep); margin-top: 1em; font-family: var(--serif); font-size: 1.05rem; }
dl.defs dd { margin: .25em 0 0; padding-left: 0; max-width: 74ch; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; margin: 1.4rem 0; }
.cols .card { margin: 0; }

.page-index { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.page-index li { margin: 0; }
.page-index a { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; text-decoration: none; }
.page-index a:hover { text-decoration: underline; }
.page-index p { margin: .3em 0 0; font-size: .94rem; color: var(--muted); }

/* ---------- accordion ---------- */

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 1.4rem 0; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; font: inherit; font-family: var(--serif);
  font-size: 1.06rem; font-weight: 700; color: var(--deep);
  background: none; border: 0; padding: 15px 18px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-q:hover { background: var(--tint); }
.faq-q .sign { flex: none; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq-a { padding: 0 18px 16px; }
.faq-a > :first-child { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--deep); color: #e9ece9;
  border-top: 5px solid var(--accent);
  padding: 34px 0 40px; margin-top: 30px; font-size: .94rem;
}
.site-footer a { color: #f3ddd2; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 .3em; max-width: 78ch; }
.pub-block { margin-bottom: 16px; }
.pub-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: #fff; }
.foot-nav { margin: 14px 0; padding: 12px 0; border-top: 1px solid #47594f; border-bottom: 1px solid #47594f; }
.trademark { color: #cfd6d1; margin-top: 12px; }
.reviewed { color: #cfd6d1; margin-top: 10px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .layout.has-side { grid-template-columns: 1fr; gap: 26px; }
  .side .side-inner { position: static; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.35rem; }
  .menu-btn { display: block; }
  .nav-holder { display: none; width: 100%; }
  .nav-holder.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
  .nav-list a, .sub-toggle { padding: 11px 8px; width: 100%; text-align: left; }
  .sub { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; margin-left: 10px; padding: 0 0 0 6px; }
  .hero-card, .card, .disclosure-box, .method-box, .watch-panel { padding: 18px; }
}

@media print {
  .site-header, .side, .menu-btn { display: none; }
  body { background: #fff; }
}
