/* Crisp Phase — shared stylesheet
   Palette: burgundy, linen, charcoal. No third-party CSS beyond the Google Fonts link. */

:root {
  --burgundy: #6d1f33;
  --burgundy-dark: #52162527;
  --burgundy-deep: #4f1624;
  --linen: #f7f1e8;
  --linen-deep: #efe6d9;
  --charcoal: #26262a;
  --charcoal-soft: #44444c;
  --paper: #ffffff;
  --rule: #ded3c4;
  --shadow: 0 2px 10px rgba(38, 38, 42, 0.07), 0 10px 28px rgba(38, 38, 42, 0.05);
  --shadow-soft: 0 1px 4px rgba(38, 38, 42, 0.06);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 14px;
  --measure: 700px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--charcoal);
  font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--burgundy-deep);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; margin-top: 2.2rem; }
h3 { font-size: 1.18rem; margin-top: 1.8rem; color: var(--charcoal); }
h4 { font-size: 1.02rem; margin-top: 1.4rem; color: var(--charcoal); }

p, li { color: var(--charcoal); }
p { margin: 0 0 1.05em; }

a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--burgundy-deep); }

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

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--burgundy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Header and navigation ---------- */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 40;
}

.masthead-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--burgundy-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--burgundy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-family: "Figtree", Arial, sans-serif;
  font-weight: 700;
}

.brand .tag {
  display: block;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 600;
}

.mainnav { margin-left: auto; }

.mainnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.navgroup { position: relative; }

.navgroup > button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--linen-deep);
  color: var(--charcoal);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navgroup > button:hover { background: var(--linen); }

.navgroup > button .chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: rotate(45deg) translate(-2px, -2px);
}

.navgroup > button[aria-expanded="true"] .chev {
  transform: rotate(225deg) translate(-1px, -1px);
}

.navpanel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 290px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 50;
}

.navgroup > button[aria-expanded="true"] + .navpanel { display: block; }

.navpanel li { margin: 0; }

.navpanel a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.navpanel a:hover,
.navpanel a:focus { background: var(--linen-deep); color: var(--burgundy-deep); }

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

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 320px);
  gap: 40px;
  align-items: start;
  padding: 34px 0 60px;
}

main { min-width: 0; }

.rail {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.rail h2 {
  margin: 0 0 0.6em;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "Figtree", Arial, sans-serif;
  color: var(--charcoal-soft);
}

.rail ol, .rail ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.94rem;
}

.rail li { margin-bottom: 0.55em; }

.rail-toggle { display: none; }

@media (max-width: 900px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .rail { order: -1; }
  .rail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-weight: 600;
    background: var(--linen-deep);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    color: var(--charcoal);
    margin-bottom: 10px;
  }
  .rail-list[hidden] { display: none; }
}

@media (min-width: 901px) {
  .rail { position: sticky; top: 22px; }
}

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

.hero {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-top: 30px;
}

.hero .kicker {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--burgundy);
  margin: 0 0 10px;
}

.hero h1 { margin-bottom: 0.45em; }

.hero-lead { font-size: 1.07rem; max-width: 64ch; }

.asked {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.asked a {
  display: block;
  height: 100%;
  background: var(--linen-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  text-decoration: none;
  color: var(--burgundy-deep);
  font-weight: 600;
  font-size: 0.97rem;
  box-shadow: var(--shadow-soft);
}

.asked a:hover { background: var(--paper); }

.hero-art { margin: 24px 0 0; }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* ---------- Disclosure ---------- */

.disclosure {
  margin: 22px 0 0;
  background: #fdf7ef;
  border: 1px solid var(--burgundy);
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 1rem;
}

.disclosure p { margin: 0 0 0.7em; }
.disclosure p:last-child { margin-bottom: 0; }
.disclosure strong { color: var(--burgundy-deep); }

.aff-note {
  display: block;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin-top: 4px;
}

.aff-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  box-shadow: var(--shadow-soft);
  margin: 0 0 1.2em;
}

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

article section { margin-bottom: 8px; }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
  margin: 1.4em 0;
}

.quickanswer {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--burgundy);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: 0 0 1.2em;
  box-shadow: var(--shadow-soft);
}

.quickanswer p:last-child { margin-bottom: 0; }
.quickanswer .label {
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 5px;
}

.callout {
  background: var(--linen-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 1.4em 0;
}

.callout h3, .callout h4 { margin-top: 0; }

.watch {
  background: #fff8f2;
  border: 1px dashed var(--burgundy);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 1.4em 0;
}

.watch h3 { margin-top: 0; color: var(--burgundy-deep); }

.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 0.6em; }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.6em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--burgundy);
  border-radius: 4px;
}

.related {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  margin: 2em 0 0;
}
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { margin: 0; padding-left: 1.2em; }
.related li { margin-bottom: 0.5em; }

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

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  margin: 1.4em 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  padding: 14px 16px 6px;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
}

thead th {
  background: var(--linen-deep);
  color: var(--burgundy-deep);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

tbody tr:last-child td { border-bottom: 0; }

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

.accordion { margin: 1.3em 0; }

.acc-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
  overflow: hidden;
}

.acc-item > h3 { margin: 0; font-size: 1rem; }

.acc-trigger {
  font: inherit;
  font-weight: 600;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.acc-trigger .sign {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  line-height: 1;
}

.acc-panel { padding: 0 16px 14px; }
.acc-panel[hidden] { display: none; }
.acc-panel p:last-child { margin-bottom: 0; }

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

.sitefooter {
  background: var(--charcoal);
  color: #ece6dd;
  margin-top: 20px;
  padding: 36px 0 44px;
}

.sitefooter a { color: #f3d9df; }

.footgrid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

@media (max-width: 760px) {
  .footgrid { grid-template-columns: minmax(0, 1fr); }
}

.publisher {
  background: #32323a;
  border: 1px solid #4b4b55;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.publisher h2 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Figtree", Arial, sans-serif;
  margin: 0 0 10px;
}

.publisher p { margin: 0 0 4px; color: #ece6dd; font-size: 0.93rem; }
.publisher .sitename { font-weight: 700; font-size: 1rem; color: #fff; }

.footlinks { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.footlinks li::after { content: "·"; margin-left: 10px; color: #8d8d99; }
.footlinks li:last-child::after { content: ""; margin: 0; }
.footlinks a { font-size: 0.94rem; }

.trademark { font-size: 0.89rem; color: #d6d0c7; margin: 0 0 12px; }
.reviewed { font-size: 0.89rem; color: #d6d0c7; margin: 0; }

/* ---------- Misc ---------- */

.pagemeta { font-size: 0.9rem; color: var(--charcoal-soft); margin-bottom: 1.4em; }

.breadcrumb { font-size: 0.88rem; margin: 18px 0 0; color: var(--charcoal-soft); }
.breadcrumb a { color: var(--burgundy); }

.qblock { scroll-margin-top: 20px; }

.legalnav { list-style: none; padding: 0; margin: 0; }
.legalnav li { margin-bottom: 1.2em; }

ol.lettered { list-style: lower-alpha; }

dl.terms dt { font-weight: 700; margin-top: 1em; color: var(--burgundy-deep); }
dl.terms dd { margin: 0.2em 0 0; }
