/* Regalis Pro bonus site: one shared stylesheet for the hub, both document pages and the
   Paycheck Test page (which only uses the gate, top line and footer rules below).
   ONE navy across the site: #0A2A5E. Hub look = approved Direction A, document look = approved
   Direction B (gold accent #F6C453). Fonts: Montserrat (headings) and Inter (body) from Google Fonts. */

:root {
  --navy: #0A2A5E;
  --blue: #188BF6;
  --gold: #F6C453;
  --ink: #13213A;
  --ink2: #2B3A55;
  --muted: #5B6B85;
  --line: #DCE3EE;
  --line2: #B9C4D6;
  --pale: #C9D3E3;
  --pale2: #E6ECF5;
  --bg-hub: #F4F6FA;
  --bg-doc: #EEF1F6;
  --green: #2E9D6E;
  --red: #C84F4F;
  --head: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ================= Access-code gate (every page) ================= */
html.locked #page { visibility: hidden; }
html.unlocked #pw-gate { display: none; }

#pw-gate, #pw-gate * { box-sizing: border-box; }
#pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A2A5E;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow-y: auto;
  transition: opacity 0.4s ease;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
#pw-gate.unlock { opacity: 0; pointer-events: none; }

#pw-gate .pw-card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: #fff;
}
#pw-gate .pw-logo {
  width: 190px;
  height: auto;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  box-sizing: content-box;
}
#pw-gate .pw-eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9D3E3;
}
#pw-gate .pw-title {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
}
#pw-gate form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
}
#pw-gate label {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
#pw-gate label span { font-size: 13px; color: #C9D3E3; }
#pw-gate input {
  height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
  color: #13213A;
  background: #fff;
  width: 100%;
}
#pw-gate input:focus-visible { outline: 3px solid #F6C453; outline-offset: 2px; }
#pw-gate button {
  height: 50px;
  align-self: flex-end;
  border: 0;
  border-radius: 8px;
  padding: 0 26px;
  background: #188BF6;
  color: #fff;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
#pw-gate button:hover { background: #0F78DA; }
#pw-gate button:focus-visible { outline: 3px solid #F6C453; outline-offset: 2px; }
#pw-gate .pw-error {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  color: #FFB4B4;
}
#pw-gate.shake form { animation: pw-shake 0.4s ease; }
@keyframes pw-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@media (max-width: 480px) {
  #pw-gate button { width: 100%; }
  #pw-gate .pw-title { font-size: 30px; }
}

/* ================= Top line and footer (Paycheck Test page, also reused) ================= */
.topline {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.topline a { color: #0A2A5E; text-decoration: none; }
.topline a:hover { color: #188BF6; }

.foot {
  text-align: center;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #5B6B85;
  line-height: 1.6;
  padding: 8px 20px 48px;
}
.foot p { margin: 0; }

/* ================= Shared page base ================= */
.pg { margin: 0; color: var(--ink); font-family: var(--body); }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg a { color: var(--navy); }
.pg a:hover { color: var(--blue); }
.pg img { max-width: 100%; }
.pg #page { display: flex; flex-direction: column; min-height: 100vh; }
.pg:focus-visible, .pg a:focus-visible, .pg button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ================= Hub (approved Direction A) ================= */
body.hub { background: var(--bg-hub); }

.hub-head {
  background: var(--navy);
  color: #fff;
  padding: 56px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.hub-head .logo {
  width: 190px;
  height: auto;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  box-sizing: content-box;
}
.hub-eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pale);
}
.hub-head h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.05;
  max-width: 760px;
}
.hub-head p {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pale2);
}

.hub-wrap {
  max-width: 1120px;
  width: 100%;
  margin: -36px auto 0;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1 0 auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card3 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card3 .num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--blue);
}
.card3 h2 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  color: var(--navy);
}
.card3 p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink2);
}
.card3 .acts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-main {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
}
.btn-main:hover { background: #12397D; }
.btn-line {
  display: block;
  text-align: center;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--line2);
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  font-size: 14px;
}
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.card3 .hint { font-size: 13px; color: var(--muted); text-align: center; }

.tonight {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.tonight .t-main { flex: 1 1 420px; min-width: 0; }
.tonight .t-head {
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.tonight p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.tonight .t-side { font-size: 13px; color: var(--muted); }

body.hub .foot { padding-top: 6px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hub-head { padding: 40px 20px 56px; }
  .hub-head h1 { font-size: 34px; }
  .hub-head p { font-size: 16px; }
  .hub-wrap { margin-top: -28px; }
  .card3 { padding: 22px; }
  .tonight { padding: 20px; }
}

/* ================= Document pages (approved Direction B, one navy) ================= */
body.doc { background: var(--bg-doc); }

.dh {
  background: var(--navy);
  color: #fff;
  padding: 22px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dh-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dh-back {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pale) !important;
  font-size: 14px;
  font-weight: 600;
}
.dh-back:hover { color: #fff !important; }
.dh-back img {
  width: 130px;
  height: auto;
  background: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  box-sizing: content-box;
}
.dh-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dh-count { font-size: 13px; color: var(--pale); }
.btn-gold {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 13px;
}
.btn-gold:hover { background: #FFD470; }
.dh-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.dh-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 640px; }
.dh-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.dh h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
}
.dh-open { margin: 0; font-size: 16px; color: var(--pale); max-width: 560px; line-height: 1.5; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--pale) !important;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
}
.pill:hover { border-color: #fff; color: #fff !important; }
.pill.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
}

.dm {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  flex: 1 0 auto;
}
.dnote {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}
.phase, .block { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }
.ph { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ph h2 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: var(--navy);
}
.ph-n { font-size: 14px; color: var(--muted); }

/* the checkbox item card */
.item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  scroll-margin-top: 16px;
}
.chk {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 2px 0 0;
  border: 2px solid var(--navy);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.chk::after {
  content: "";
  width: 15px;
  height: 8px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.chk:checked { background: var(--navy); }
.chk:checked::after { opacity: 1; }
.item.done .ititle { color: var(--muted); }

.ibody { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 auto; }
.ititle {
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
}
.why { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.how {
  background: var(--bg-doc);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.how-l {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.how ol {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.how ol ol { margin-top: 6px; }
.how .cont { margin: 0; font-size: 15px; line-height: 1.55; }
.say {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 14px 16px;
}
.say-l {
  font-family: var(--head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.say p { margin: 0; font-size: 15px; line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink2); }
.meta span { min-width: 0; }

/* source tags that point to the Sources list */
.src {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: var(--muted) !important;
  background: rgba(10, 42, 94, 0.07);
  border-radius: 999px;
  padding: 3px 7px;
  margin: 0 0 0 2px;
  text-decoration: none;
  vertical-align: 1px;
}
.src:hover { background: rgba(10, 42, 94, 0.15); color: var(--navy) !important; }
.how .src { background: rgba(255, 255, 255, 0.85); }

/* appendices */
.apx {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 16px;
}
.apx h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
}
.apx p, .apx li { font-size: 15px; line-height: 1.55; color: var(--ink2); }
.apx p { margin: 0; }
.apx .sub {
  font-family: var(--head);
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  margin-top: 4px;
}
.apx ol, .apx ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.memo {
  border-left: 4px solid var(--gold);
  background: rgba(246, 196, 83, 0.16);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.tw table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tw th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 12px;
  vertical-align: bottom;
}
.tw td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink2); line-height: 1.45; }
.tw td:first-child { font-weight: 600; color: var(--navy); }
.tw tbody tr:nth-child(even) td { background: #F7F9FC; }
.tw td.blank { height: 38px; }

/* sources */
.srcs { background: #fff; border-radius: 12px; padding: 22px; scroll-margin-top: 16px; }
.srcs h2 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
}
.srcs > p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.srcs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.srcs li {
  font-size: 13px;
  line-height: 1.45;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  align-items: baseline;
  scroll-margin-top: 16px;
}
.srcs li:target { background: rgba(246, 196, 83, 0.3); }
.srcs .stag {
  flex: 0 0 150px;
  font-weight: 600;
  color: var(--navy);
}
.srcs a { overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.srcs .snote { font-size: 12px; color: var(--muted); flex: 1 1 100%; }
.srcs li.plain .snote { font-size: 13px; }

/* the close */
.close {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 24px 26px;
  scroll-margin-top: 16px;
}
.close h2 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 22px;
  color: var(--gold);
}
.close p { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: var(--pale2); }
.close p:last-child { margin-bottom: 0; }

/* ten questions */
.q {
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  scroll-margin-top: 16px;
}
.qn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--head);
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-content: center;
}
.qbody { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1 1 auto; }
.qt {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
}
.qp {
  background: var(--bg-doc);
  border-radius: 10px;
  border-left: 4px solid var(--line2);
  padding: 12px 16px;
}
.qp.hear { border-left-color: var(--green); }
.qp.worry { border-left-color: var(--red); }
.ql {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.qp p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); }

.walk {
  background: #FFF4F2;
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 22px 24px;
  scroll-margin-top: 16px;
}
.walk h2 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: #8B1F1F;
}
.walk ul { list-style: none; margin: 0; padding: 0; }
.walk li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink2);
  padding: 10px 0;
  border-top: 1px solid rgba(200, 79, 79, 0.35);
}
.walk li:first-child { border-top: 0; padding-top: 0; }
.walk li strong { color: #8B1F1F; }

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 6px 18px rgba(10, 42, 94, 0.25);
  z-index: 50;
}
.totop.show { opacity: 1; pointer-events: auto; }

@media (max-width: 640px) {
  .dh { padding: 18px 16px 22px; }
  .dh h1 { font-size: 32px; line-height: 1.05; }
  .dh-open { font-size: 15px; }
  .dh-back img { width: 112px; }
  .dm { padding: 24px 16px 16px; gap: 28px; }
  .ph h2 { font-size: 24px; }
  .item { padding: 16px 14px; gap: 12px; }
  .chk { width: 28px; height: 28px; }
  .ititle { font-size: 18px; }
  .how { padding: 12px 12px; }
  .apx { padding: 18px 14px; }
  .apx h3 { font-size: 19px; }
  .srcs { padding: 18px 14px; }
  .srcs .stag { flex: 1 1 100%; }
  .close { padding: 20px 18px; }
  .q { padding: 16px 14px; gap: 10px; flex-direction: column; }
  .qn { width: 34px; height: 34px; font-size: 16px; }
  .qt { font-size: 18px; }
  .walk { padding: 18px 16px; }
}

/* ================= Print: one clean Letter or A4 flow ================= */
@page { margin: 0.6in; }
@media print {
  #pw-gate, .btn-gold, .pills, .dh-count, .dh-back span, .totop, .foot, .topline { display: none !important; }
  html, body.doc { background: #fff !important; }
  body.doc { color: #000; font-size: 11pt; }
  .pg #page { display: block; min-height: 0; }

  .dh {
    background: #fff;
    color: var(--navy);
    padding: 0 0 12px;
    gap: 8px;
    border-bottom: 3px solid var(--navy);
  }
  .dh-top { margin-bottom: 4px; }
  .dh-back img { width: 120px; padding: 0; }
  .dh-eyebrow { color: var(--muted); }
  .dh h1 { font-size: 26pt; color: var(--navy); }
  .dh-open { color: #333; max-width: none; font-size: 11pt; }
  .dh-main { display: block; }

  .dm { max-width: none; padding: 14px 0 0; gap: 16px; display: block; }
  .dm > * { margin-bottom: 16px; }
  .dnote { text-align: left; }
  .phase, .block { display: block; }
  .phase { break-before: page; }
  .phase:first-of-type { break-before: auto; }
  .ph { margin-bottom: 10px; break-after: avoid; }
  .ph h2 { font-size: 20pt; }

  .item, .q, .apx, .srcs, .close, .walk {
    background: #fff !important;
    border: 1px solid var(--line2);
    border-radius: 8px;
    box-shadow: none;
  }
  .item { display: block; position: relative; padding: 10px 12px 10px 44px; margin-bottom: 10px; break-inside: auto; }
  .item .chk { position: absolute; left: 12px; top: 12px; margin: 0; }
  .ibody { display: block; }
  .ibody > * { margin: 0 0 8px; }
  .ibody > *:last-child { margin-bottom: 0; }
  .ititle, .ibody > .why, .how-l { break-after: avoid; }
  .how { display: block; }
  .how > * { margin: 0 0 8px; }
  .how > *:last-child { margin-bottom: 0; }
  .how-l { margin-bottom: 4px !important; }
  .how ol { display: block; padding-left: 20px; margin: 0 0 8px; }
  .how ol:last-child { margin-bottom: 0; }
  .how li { margin-bottom: 3px; }
  .how li li { break-inside: avoid; }
  .meta { break-inside: avoid; }
  p, li { orphans: 2; widows: 2; }
  .q { display: block; position: relative; padding: 10px 12px 10px 54px; margin-bottom: 10px; break-inside: avoid; }
  .qn { position: absolute; left: 12px; top: 12px; }
  .qbody { display: block; }
  .qbody > * { margin: 0 0 8px; }
  .qbody > *:last-child { margin-bottom: 0; }
  .qp { break-inside: avoid; }
  .srcs li { display: flex; flex-wrap: wrap; gap: 0 10px; padding: 2px 0; font-size: 8.5pt; }
  .srcs .stag { flex: 0 0 140px; }
  .srcs a { flex: 1 1 280px; font-size: 8.5pt; }
  .srcs .snote { font-size: 8pt; }
  .apx { padding: 12px; margin-bottom: 12px; display: block; }
  .apx > * { margin-bottom: 8px; }
  .apx h3 { break-after: avoid; }
  .srcs { break-inside: auto; padding: 12px; }
  .close { color: var(--navy); border: 2px solid var(--navy); padding: 14px; break-inside: avoid; }
  .close h2 { color: var(--navy); }
  .close p { color: #222; }
  .walk { border: 2px solid var(--red); break-inside: avoid; padding: 14px; }

  .chk { width: 18px; height: 18px; border-width: 2px; border-radius: 4px; margin-top: 3px; }
  .chk::after { width: 9px; height: 5px; border-width: 2px; }
  .chk:checked { background: #fff !important; }
  .chk:checked::after { border-color: var(--navy); opacity: 1; }
  .ititle, .qt { font-size: 13pt; color: var(--navy); }
  .why, .how ol, .how .cont, .say p, .meta, .apx p, .apx li, .qp p { font-size: 10.5pt; }
  .how { background: #fff; border: 1px solid var(--line2); padding: 8px 10px; }
  .say { background: #fff; color: #000; border: 1px solid var(--navy); border-left: 4px solid var(--navy); break-inside: avoid; }
  .say-l { color: var(--navy); }
  .memo { background: #fff; color: #000; border-left: 4px solid var(--gold); }
  .qp { background: #fff; border: 1px solid var(--line2); border-left-width: 4px; }
  .qn { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
  .walk li { break-inside: avoid; }
  .src { background: none; border: 1px solid var(--line2); color: var(--muted) !important; }
  .tw { overflow: visible; break-inside: avoid; }
  .tw table { min-width: 0 !important; width: 100%; table-layout: auto; font-size: 9pt; }
  .tw th { background: #fff; color: var(--navy); border-bottom: 2px solid var(--navy); font-size: 8pt; }
  .tw td { border-top: 1px solid var(--line2); }
  .tw tbody tr:nth-child(even) td { background: #fff; }
  .tw tr { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none; }
  .srcs a { text-decoration: underline; }
}
