/* Dr. Piggy Bank - restoration stylesheet.
   Palette and type roles recovered from the site's own Wix theme record. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFCFC;
  color: #333232;
  font: 17px/1.62 "Segoe UI", Tahoma, Verdana, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: #49696C; }
a:focus-visible, button:focus-visible { outline: 2px solid #49696C; outline-offset: 2px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: #FFFFFF; color: #333232;
  padding: 8px 12px; z-index: 5;
}
.skip:focus { left: 8px; top: 8px; }

.canvas { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* --- mandatory archive disclosure ------------------------------------- */
.archive-note {
  background: #F4F8F8;
  border-top: 3px solid #C8DEE0;
  border-bottom: 1px solid #C8DEE0;
  margin: 0 0 24px;
  padding: 12px 0;
}
.archive-note p {
  margin: 0 auto;
  max-width: 1116px;
  padding: 0 32px;
  font-size: 14px;
  line-height: 1.5;
  color: #333232;
}
.archive-note a { font-weight: 600; }
.archive-colophon {
  border-top: 1px solid #DDD7D7;
  padding: 24px 0 48px;
  font-size: 14px;
  line-height: 1.55;
  color: #555050;
}
.archive-colophon p { margin: 0 0 12px; max-width: 78ch; }
.archive-colophon p:last-child { margin-bottom: 0; }

/* --- identity header --------------------------------------------------- */
.masthead {
  display: flex; align-items: center; gap: 16px;
  min-height: 84px; padding: 12px 0;
  border-bottom: 1px solid #DDD7D7;
}
.masthead img { width: 56px; height: 56px; flex: 0 0 auto; }
.wordmark {
  font: 700 30px/1.1 Georgia, "Times New Roman", serif;
  color: #333232; text-decoration: none; display: block;
}
.tagline { font-size: 13px; color: #787676; margin: 4px 0 0; }
.masthead-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.masthead-links a {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #49696C;
}
.masthead-links a:hover { text-decoration: underline; }

/* --- anchor index ------------------------------------------------------ */
.anchor-index { padding: 16px 0; border-bottom: 1px solid #DDD7D7; }
.anchor-index ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
}
.anchor-index li { display: flex; align-items: center; }
.anchor-index li + li::before {
  content: ""; display: inline-block; width: 1px; height: 12px;
  background: #C8DEE0; margin: 0 16px;
}
.anchor-index a {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #333232; padding: 4px 0;
}
.anchor-index a:hover, .anchor-index a[aria-current] { color: #49696C; text-decoration: underline; }

/* --- opening stage ----------------------------------------------------- */
.stage-block { position: relative; margin: 32px 0 48px; }
.stage {
  height: 400px; overflow: hidden; background: #FFFFFF;
  border: 1px solid #DDD7D7; padding: 16px 40px 16px 0;
}
.stage img {
  width: 100%; height: 100%; object-fit: contain;
  object-position: right center; display: block;
}
.panel-wrap { margin: -110px 0 0; padding-left: 24px; position: relative; }
.crescent {
  position: absolute; left: 0; bottom: -18px; width: 96px; height: 96px;
  background: #C8DEE0; border-radius: 96px 0 0 0;
}
.panel {
  position: relative; background: #FFFFFF; border: 1px solid #DDD7D7;
  max-width: 520px; padding: 32px;
}
.panel h1 { font: 700 46px/1.12 Georgia, "Times New Roman", serif; margin: 0 0 12px; }
.panel .lede { font-size: 17px; margin: 0 0 20px; max-width: 40ch; }
.panel .route {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #49696C; text-decoration: none; border-bottom: 1px solid #C8DEE0;
  padding-bottom: 2px;
}

/* --- chapters ---------------------------------------------------------- */
.chapter { padding: 0 0 40px; }
.chapter + .chapter { border-top: 1px solid #DDD7D7; padding-top: 40px; }
.chapter > h2 { font: 700 26px/1.25 Georgia, "Times New Roman", serif; margin: 0 0 20px; }
.measure { max-width: 68ch; }
.pull-line {
  font: italic 15px/1.6 Georgia, "Times New Roman", serif;
  color: #555050; border-left: 3px solid #C8DEE0; padding-left: 16px;
  margin: 24px 0 0; max-width: 72ch;
}

/* recovered outlines keep the source's own nesting */
.recovered ul { margin: 0 0 16px; padding-left: 24px; }
.recovered ul ul { padding-left: 20px; margin-top: 8px; }
.recovered li { margin: 0 0 8px; }
.recovered p { margin: 0 0 8px; }
.recovered em { font-style: normal; text-decoration: underline; }
/* the source occasionally nested a list inside an otherwise empty list item;
   keep its hierarchy but drop the orphan bullet */
.recovered li:has(> ul:first-child) { list-style: none; margin-left: -8px; }

/* --- curriculum ledger ------------------------------------------------- */
.ledger { margin: 0; padding: 0; list-style: none; }
.guide-row {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0 20px 20px; border-bottom: 1px solid #DDD7D7;
  position: relative;
}
.guide-row::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px;
  width: 10px; background: #C8DEE0;
}
.guide-row .num {
  font-size: 13px; letter-spacing: .12em; color: #787676; padding-top: 6px;
  flex: 0 0 32px;
}
.guide-row .body { flex: 1 1 auto; }
.guide-row h3 { font: 700 20px/1.3 Georgia, "Times New Roman", serif; margin: 0 0 6px; }
.guide-row h3 a { color: #333232; text-decoration: none; }
.guide-row h3 a:hover { color: #49696C; text-decoration: underline; }
.guide-row p { margin: 0; color: #555050; max-width: 72ch; }
.guide-row figure { margin: 12px 0 0; }
.guide-row figure img { border: 1px solid #DDD7D7; background: #FFFFFF; }

/* --- contact chapter --------------------------------------------------- */
.contact-grid { display: flex; gap: 48px; flex-wrap: wrap; }
.contact-grid > div { flex: 1 1 320px; }
.contact-grid h3 { font: 700 18px/1.3 Georgia, "Times New Roman", serif; margin: 0 0 8px; }
.contact-grid p { margin: 0 0 12px; max-width: 60ch; }
.survey-address { font-size: 15px; color: #555050; word-break: break-all; }

/* --- footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid #C8DEE0; padding-top: 20px; }
.footer-line {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline;
  font-size: 14px; color: #555050; padding-bottom: 20px;
}
.footer-line .name { font: 700 16px/1.2 Georgia, "Times New Roman", serif; color: #333232; }

/* --- inner page plate -------------------------------------------------- */
.page-plate { padding: 40px 0 24px 20px; position: relative; margin-bottom: 32px; }
.page-plate::before {
  content: ""; position: absolute; left: 0; top: 40px; bottom: 24px;
  width: 10px; background: #C8DEE0;
}
.page-plate .eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: #787676; margin: 0 0 10px;
}
.page-plate h1 { font: 700 38px/1.16 Georgia, "Times New Roman", serif; margin: 0 0 16px; }
.page-plate::after {
  content: ""; display: block; height: 1px; background: #C8DEE0;
}
.figure-scroll { overflow-x: auto; margin: 24px 0 8px; }
figure.evidence { margin: 24px 0; }
figure.evidence figcaption {
  font: italic 14px/1.5 Georgia, "Times New Roman", serif; color: #555050; margin-top: 8px;
}
.page-nav {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between;
  border-top: 1px solid #DDD7D7; padding: 24px 0 40px; font-size: 14px;
}
.page-nav a { text-decoration: none; }
.page-nav a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .guide-row { flex-wrap: wrap; }
  .guide-row .num { flex: 0 0 auto; padding-top: 0; }
  .guide-row .body { flex: 1 1 100%; }
}

@media (max-width: 760px) {
  .canvas { padding: 0 20px; }
  .archive-note p { padding: 0 20px; }
  .masthead-links { display: none; }
  .masthead { min-height: 0; }
  .wordmark { font-size: 22px; }
  .stage { height: 220px; }
  .stage img { object-fit: contain; }
  .panel-wrap { margin: 0; padding-left: 0; }
  .panel { max-width: none; border-top: 6px solid #C8DEE0; padding: 24px 20px; }
  .crescent { display: none; }
  .panel h1 { font-size: 30px; }
  .chapter > h2 { font-size: 21px; }
  .page-plate h1 { font-size: 27px; }
  body { font-size: 16px; }
  .measure { max-width: 40ch; }
  .contact-grid { gap: 28px; }
}

@media (max-width: 420px) {
  .anchor-index li + li::before { margin: 0 10px; }
  .recovered ul { padding-left: 14px; }
  .recovered ul ul { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
