/* Broad Notion — shared stylesheet
   Palette: plum, stone, warm grey. No external resources other than Google Fonts. */

:root {
  --plum: #5b2a4e;
  --plum-deep: #3d1a33;
  --plum-tint: #f3ebf0;
  --stone: #f6f2ed;
  --stone-edge: #e4dcd2;
  --warm-grey: #5f5751;
  --ink: #221d1b;
  --paper: #fffdfa;
  --shadow-soft: 0 2px 10px rgba(52, 36, 46, 0.07);
  --shadow-lift: 0 6px 22px rgba(52, 36, 46, 0.10);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 14px;
  --measure: 700px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--plum-deep);
  line-height: 1.22;
  margin: 2.2rem 0 0.7rem;
}

h1 { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 2.65rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.85rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.33rem); }
h4 { font-size: 1.05rem; font-family: "DM Sans", Arial, sans-serif; font-weight: 700; }

p, ul, ol, dl, table { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum-deep);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

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

.site-header {
  background: var(--stone);
  border-bottom: 1px solid var(--stone-edge);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.brand {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.3rem;
  color: var(--plum-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand .mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: var(--plum);
  color: var(--stone);
  font-size: 0.78rem;
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.main-nav { margin-left: auto; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.nav-list > li { margin: 0; position: relative; }

.nav-toggle {
  font: inherit;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  color: var(--plum-deep);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-toggle:hover { background: #fff; border-color: var(--stone-edge); }
.nav-toggle[aria-expanded="true"] { background: #fff; border-color: var(--stone-edge); }
.nav-toggle .chev { font-size: 0.7rem; line-height: 1; }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  z-index: 40;
}
.nav-menu[hidden] { display: none; }
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.97rem;
}
.nav-menu a:hover { background: var(--plum-tint); color: var(--plum-deep); }

@media (max-width: 640px) {
  .main-nav { margin-left: 0; width: 100%; }
  .nav-list { width: 100%; }
  .nav-menu { position: static; min-width: 0; box-shadow: none; margin-top: 0.3rem; }
}

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

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 16px 3rem;
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 300px);
  gap: 2.6rem;
  align-items: start;
}
.layout.single { grid-template-columns: minmax(0, 820px); justify-content: start; }

.content { min-width: 0; }

.rail {
  position: sticky;
  top: 1.5rem;
  background: var(--stone);
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}
.rail h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.rail ol { padding-left: 1.1rem; margin: 0; }
.rail li { margin-bottom: 0.5rem; line-height: 1.45; }
.rail a { text-decoration: none; }
.rail a:hover { text-decoration: underline; }

.rail-toggle { display: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .rail {
    position: static;
    order: -1;
    padding: 0;
    overflow: hidden;
  }
  .rail h2 { display: none; }
  .rail-toggle {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    background: transparent;
    border: 0;
    color: var(--plum-deep);
    padding: 0.9rem 1.1rem;
    cursor: pointer;
  }
  .rail-toggle .chev { float: right; font-size: 0.75rem; }
  .rail-list-wrap { padding: 0 1.1rem 1rem; }
  .rail-list-wrap[hidden] { display: none; }
}

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

.hero {
  background: var(--stone);
  border-bottom: 1px solid var(--stone-edge);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.4rem 16px 2.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 240px; }
}
.hero .lede { font-size: 1.12rem; max-width: 640px; }

.key-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.6rem;
  max-width: 660px;
}
.key-points li { margin: 0; }
.key-points a {
  display: block;
  background: #fff;
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  text-decoration: none;
  color: var(--plum-deep);
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.key-points a:hover { border-color: var(--plum); }
.key-points .sub {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--warm-grey);
  margin-top: 0.15rem;
}

.hero-art svg { width: 100%; height: auto; display: block; }

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

.disclosure {
  background: #fff;
  border: 1px solid var(--plum);
  border-left-width: 5px;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.6rem 0 0;
  max-width: 660px;
  box-shadow: var(--shadow-soft);
}
.disclosure h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 0.45rem;
  font-weight: 700;
}
.disclosure p:last-child { margin-bottom: 0; }

.link-note {
  font-size: 0.92rem;
  color: var(--warm-grey);
  border-left: 3px solid var(--stone-edge);
  padding-left: 0.85rem;
  margin: 0.6rem 0 1.2rem;
}

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

.quick-answer {
  background: var(--plum-tint);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.25rem;
  margin: 0 0 1.3rem;
  box-shadow: var(--shadow-soft);
}
.quick-answer h3, .quick-answer h4 { margin-top: 0; }
.quick-answer p:last-child { margin-bottom: 0; }

.callout {
  background: #fff;
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}
.callout h3, .callout h4 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

.watch-out {
  background: var(--stone);
  border: 1px dashed var(--plum);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.watch-out h3, .watch-out h4 { margin-top: 0; }
.watch-out p:last-child, .watch-out ul:last-child { margin-bottom: 0; }

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

ol.procedure { counter-reset: step; list-style: none; padding-left: 0; }
ol.procedure > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.9rem;
}
ol.procedure > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--plum);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.related {
  background: var(--stone);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
}
.related h2, .related h3 { margin-top: 0; }
.related ul { margin-bottom: 0; }

.question-index { display: grid; gap: 1.1rem; }
.question-index .group {
  background: #fff;
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.question-index .group h3 { margin-top: 0; }
.question-index .group ul { margin-bottom: 0; }

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin: 1.3rem 0 1.6rem;
}
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.96rem; margin: 0; }
caption {
  text-align: left;
  padding: 0.85rem 1rem 0.2rem;
  color: var(--warm-grey);
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--stone-edge);
}
thead th { background: var(--stone); color: var(--plum-deep); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

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

.accordion { display: grid; gap: 0.6rem; margin: 1.3rem 0 1.6rem; }
.acc-item {
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 500;
  color: var(--plum-deep);
  background: transparent;
  border: 0;
  padding: 0.9rem 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.acc-trigger:hover { background: var(--plum-tint); }
.acc-trigger .chev { font-size: 0.75rem; color: var(--plum); }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { padding: 0 1.05rem 1rem; }
.acc-panel[hidden] { display: none; }
.acc-panel p:last-child { margin-bottom: 0; }

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

.site-footer {
  background: var(--plum-deep);
  color: #f2e9ee;
  margin-top: 2rem;
  padding: 2.4rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: #f0d9e7; }
.site-footer a:hover { color: #fff; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
.publisher-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  line-height: 1.6;
}
.publisher-card .site-name {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.2rem;
  color: #fff;
  display: block;
  margin-bottom: 0.35rem;
}
.publisher-card p { margin: 0 0 0.3rem; }
.publisher-card p:last-child { margin-bottom: 0; }

.footer-links { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.1rem; }
.footer-links li { margin: 0; }
.footer-links li + li::before { content: "·"; margin: 0 0.5rem; color: rgba(255,255,255,0.5); }
.trademark-note { color: #e3d2dc; margin-bottom: 0.9rem; }
.reviewed { color: #e3d2dc; margin: 0; }

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

.page-intro { font-size: 1.1rem; color: var(--warm-grey); }
.section-sep { border: 0; border-top: 1px solid var(--stone-edge); margin: 2.4rem 0; }
.legal-list { display: grid; gap: 1rem; }
.legal-list .item {
  border: 1px solid var(--stone-edge);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.legal-list .item h2 { margin-top: 0; font-size: 1.25rem; }
.legal-list .item p:last-child { margin-bottom: 0; }
.effective { font-weight: 700; color: var(--plum-deep); }
.contact-block { font-size: 1.05rem; }
