/* Shared styles for all Know, Say, Do guides. */
:root {
  --cobalt: #2c6ef2;
  --cobalt-deep: #1b4ab8;
  --sky: #8fc0fa;
  --sky-pale: #e7f0fe;
  --sun: #f2e85c;
  --sun-pale: #fbf8cc;
  --midnight: #221c46;
  --ink: #3a3556;
  --muted: #6d6a85;
  --mist: #f3f6fc;
  --line: #e4e9f3;
  --display: "Poppins", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --shadow: 0 2px 4px rgba(34, 28, 70, 0.05), 0 8px 20px rgba(34, 28, 70, 0.09);
  --shadow-sm:
    0 1px 2px rgba(34, 28, 70, 0.06), 0 5px 14px rgba(34, 28, 70, 0.06);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cobalt);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--midnight);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
a {
  color: var(--cobalt-deep);
}
#app {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
:focus-visible {
  outline: 3px solid var(--midnight);
  outline-offset: 3px;
  border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------------- hero ---------------- */
header.hero {
  padding: 24px 0 26px;
  color: #fff;
}
.pill {
  display: inline-block;
  background: var(--sun);
  color: var(--midnight);
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 15px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.pill i {
  font-style: italic;
}
.hero h1 {
  color: var(--sun);
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.hero .sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(17px, 3.2vw, 25px);
  line-height: 1.28;
  max-width: 22ch;
}
.hero .lede {
  font-size: clamp(13.5px, 2.2vw, 15.5px);
  opacity: 0.9;
  margin-top: 12px;
  line-height: 1.5;
  max-width: 46ch;
}
.hero-img {
  margin-top: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 30, 80, 0.28);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.03);
}

/* ---------------- board ---------------- */
.board {
  background: var(--mist);
  border-radius: 26px 26px 0 0;
  padding: 20px 0 28px;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.call {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  background: var(--midnight);
  color: #fff;
  border-radius: 15px;
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
}
.call .ci {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sun);
  color: var(--midnight);
  display: grid;
  place-items: center;
  flex: 0 0 38px;
}
.call b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
}
.call span {
  display: block;
  font-size: 12.5px;
  opacity: 0.78;
}
.mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 15px;
  padding: 13px 17px;
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
}
.mini svg {
  color: var(--cobalt);
}
.panels {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

/* ---------------- panel ---------------- */
.panel {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-width: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sun);
  border-radius: 18px 0 0 18px;
  padding: 8px;
  overflow: hidden;
  box-shadow: inset -30px 0 18px -8px rgba(0, 0, 0, 0.15);
  margin-right: -18px;
}
.panel-h .mark {
  width: auto;
  height: 100px;
  flex: 0 0 80px;
  display: block;
  object-fit: cover;
  object-position: center;
  margin-right: 18px;
}
.panel-b {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 8px;
  background: #fff;
  border-radius: 18px;
  box-shadow: none;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.panel-b::-webkit-scrollbar {
  display: none;
}

.row {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-bottom: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.row:last-child {
  border-bottom: 0;
}
.row-h {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
}
.row-h b {
  flex: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--midnight);
}
.row-b ul {
  margin: 0;
  padding: 0 18px 16px 18px;
  list-style: none;
}
.row-b {
  flex: 1;
}
.row-b li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.row-b li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.pic {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: var(--sun-pale);
  color: #8a7c14;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.row-b .tx {
  flex: 1;
  min-width: 0;
}
.item-h {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px 0;
  text-align: left;
}
.row-b .tx b {
  display: block;
  flex: 1;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14.6px;
  color: var(--midnight);
}
.item-caret {
  flex: 0 0 auto;
  color: #a9b4cc;
  transition:
    transform 0.22s,
    color 0.22s;
}
.item.open .item-caret {
  color: var(--cobalt);
  transform: rotate(180deg);
}
.item-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s ease;
}
.item.open .item-detail {
  grid-template-rows: 1fr;
}
.item-detail-inner {
  overflow: hidden;
}
.row-b .tx p {
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.row-b .tx a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--sky);
}
.row-b .tx .script {
  display: block;
  margin-top: 7px;
  padding: 8px 11px;
  background: var(--sky-pale);
  border-radius: 10px 10px 10px 3px;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 13.6px;
  line-height: 1.4;
  color: var(--cobalt-deep);
  quotes: "\201C" "\201D";
}
.row-b .tx .script::before {
  content: open-quote;
}
.row-b .tx .script::after {
  content: close-quote;
}

/* ---------------- footer ---------------- */
.band {
  position: relative;
  line-height: 0;
  font-size: 0;
  margin-bottom: -1px;
  background: var(--mist);
}
.band .banner-image {
  display: block;
  width: 100%;
  height: auto;
  background: var(--mist);
}
.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 54ch;
  margin: 22px auto 0;
  padding: 0 8px;
}

/* ---------------- sheet ---------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 45, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(102%);
  width: 100%;
  max-width: 480px;
  z-index: 90;
  background: var(--mist);
  border-radius: 24px 24px 0 0;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  transition:
    transform 0.26s cubic-bezier(0.22, 0.8, 0.3, 1),
    visibility 0s linear 0.26s;
  box-shadow: 0 -10px 40px rgba(20, 16, 45, 0.28);
}
.sheet.on {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  transition:
    transform 0.26s cubic-bezier(0.22, 0.8, 0.3, 1),
    visibility 0s;
}
.sh-h {
  padding: 8px 18px 12px;
  position: relative;
}
.grab {
  width: 38px;
  height: 4px;
  border-radius: 20px;
  background: #c9d1e2;
  margin: 0 auto 12px;
}
.sh-h h2 {
  font-size: 19px;
}
.sh-h p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.sh-h .x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.sh-b {
  overflow-y: auto;
  padding: 0 14px calc(env(safe-area-inset-bottom) + 18px);
}
.elist {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.eitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.eitem:last-child {
  border-bottom: 0;
}
.eitem .eic {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--sun-pale);
  color: #8a7c14;
}
.eitem.red .eic {
  background: #fce9e9;
  color: #d93a3a;
}
.eitem b {
  display: block;
  font-family: var(--display);
  font-size: 14.5px;
  color: var(--midnight);
}
.eitem small {
  display: block;
  font-size: 12.4px;
  color: var(--muted);
}
.note {
  margin-top: 10px;
  background: var(--sky-pale);
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.note svg {
  flex: 0 0 auto;
  color: var(--cobalt-deep);
  margin-top: 1px;
}

/* ---------------- guide index ---------------- */
.index-page {
  min-height: 100vh;
  background: var(--cobalt);
}
.guide-index {
  max-width: 980px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.index-hero {
  padding: 0 4px 28px;
  color: #fff;
}
.index-hero h1 {
  color: var(--sun);
  font-size: clamp(34px, 8vw, 58px);
  text-transform: uppercase;
}
.index-hero p {
  max-width: 54ch;
  margin-top: 10px;
  font-size: clamp(16px, 2.4vw, 19px);
}
.index-board {
  padding: 22px;
  background: var(--mist);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(11, 30, 80, 0.28);
}
.guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.guide-link {
  min-height: 178px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.guide-link:hover {
  transform: translateY(-3px);
  border-color: var(--sky);
  box-shadow: var(--shadow);
}
.guide-link h2 {
  font-size: 22px;
}
.guide-link p {
  margin-top: 9px;
  color: var(--muted);
}
.guide-link .open-label {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--cobalt-deep);
}

/* ---------------- breakpoints ---------------- */
@media (min-width: 700px) {
  .wrap {
    padding: 0 32px;
  }
  header.hero {
    padding: 36px 0 34px;
  }
  .board {
    border-radius: 34px 34px 0 0;
    padding: 28px 0 36px;
  }
  .row-h {
    min-height: 76px;
    padding: 17px 22px;
  }
  .panel-b {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    scroll-snap-type: none;
  }
  .row-b ul {
    padding: 0 22px 20px 22px;
  }
  .band {
    height: 156px;
  }
}
@media (min-width: 700px) and (max-width: 999px) {
  .hero-in,
  .board .wrap {
    max-width: 780px;
  }
  .hero-img {
    max-width: 720px;
    padding: 6px;
  }
  .hero-img img {
    height: 440px;
  }
}
@media (min-width: 1000px) {
  .panels {
    gap: 24px;
  }
  .band {
    height: 200px;
  }
  header.hero {
    padding: 46px 0 40px;
  }
  .hero-in {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 40px;
    align-items: center;
  }
  .hero-img {
    margin-top: 0;
    padding: 6px;
  }
  .hero-img img {
    height: 470px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: #fff;
  }
  .bar,
  .scrim,
  .sheet,
  .hero-img {
    display: none !important;
  }
  .band {
    height: 120px;
  }
  .hero,
  .hero h1,
  .hero .sub,
  .hero .lede {
    color: #000;
  }
  .board {
    background: #fff;
    padding-top: 0;
  }
  .item-detail {
    grid-template-rows: 1fr !important;
  }
  .item-caret {
    display: none;
  }
  .panel-b {
    box-shadow: none;
    border: 1px solid #bbb;
  }
  .panel {
    box-shadow: none;
  }
  .panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
