/* RoundUp — shared styles for the launch plan and the how-to guides.
   Layered on top of _shared.css (brand tokens, the nav and the Friendship
   Bracelet pieces — hero card, pinned sheets, beads — live there). Every page that
   uses this is also meant to be printable: a center should be able to hit
   Cmd-P and hand the result to a teacher, so the print rules at the bottom
   are part of the design, not an afterthought. */

/* NAV — stripped, same treatment as the legal/docs pages; its sheet, beads
   and back link are drawn by _shared.css. */
nav.guide-nav .row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 16px; }

/* PAGE SHELL */
/* Top and bottom only: the sides are .wrap's gutter (820px of text plus it). */
.guide { padding-top: 40px; padding-bottom: 96px; max-width: 916px; margin: 0 auto; }
.guide .eyebrow {
  display: block; color: var(--bk-hero-sub); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 4px;
  padding: 0; border: 0; border-radius: 0; background: none;
}
.guide h1.page-h { font-size: 48px; line-height: 1.08; margin: 0 0 8px; letter-spacing: -0.02em; }
@media (max-width: 760px) { .guide h1.page-h { font-size: 34px; } }
.guide .lede { font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0 0 8px; }
.guide .meta { color: var(--muted); font-size: 14px; margin: 16px 0 32px; }

/* The guide's opening: the cream hero card with its drawing. */
.guide .bk-hero { margin: 0 0 36px; }
.guide .bk-hero__text { padding: 30px 8px 26px 32px; gap: 0; }
.guide .bk-hero .meta { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.guide .bk-hero__art { flex-basis: 220px; width: 220px; align-self: flex-end; margin-right: 8px; }
@media (max-width: 640px) {
  .guide .bk-hero__text { padding: 24px 20px 4px; }
  .guide .bk-hero__art { width: 180px; flex-basis: auto; margin: 0 12px 4px auto; }
}
.guide h2 { font-size: 26px; font-weight: 600; margin: 48px 0 12px; letter-spacing: -0.01em; }
.guide h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.guide h4 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.guide p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.guide ul, .guide ol { padding-left: 22px; margin: 0 0 14px; }
.guide li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.guide a { color: var(--bk-link); }
.guide strong { font-weight: 600; }

/* CONTENTS BOX */
.toc {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 20px 26px; margin: 0 0 40px; box-shadow: var(--shadow-sm);
}
.toc h2 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.toc ol { padding-left: 20px; margin: 0; }
.toc li { font-size: 15px; margin-bottom: 5px; }

/* CARDS — used for plan pickers and guide indexes */
.card-grid { display: grid; gap: 18px; margin: 24px 0 8px; }
@media (min-width: 780px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: box-shadow .14s ease, border-color .14s ease, transform .14s ease; }
a.card:hover { box-shadow: 5px 5px 0 var(--bk-pin); border-color: var(--ink); transform: translateY(-2px); }
.card .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }
.card .who { font-size: 13px; color: var(--muted); margin-top: auto; }
.card .arrow { color: var(--bk-link); font-weight: 600; font-size: 14px; margin-top: auto; }

/* TIMELINE — the week-by-week spine of a launch plan */
.phase {
  border: 1px solid var(--hairline); border-radius: 16px; background: var(--card);
  padding: 24px 26px; margin: 0 0 18px; box-shadow: var(--shadow-sm);
}
.phase .phase-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.phase .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.phase h3 { margin: 0; font-size: 20px; }
.phase .when { font-size: 13px; color: var(--muted); font-weight: 500; }
.phase .goal { font-size: 15px; color: var(--muted); margin: 8px 0 14px; }
.phase h4 { margin: 16px 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* CHECKLISTS — squares you can actually tick with a pen once printed */
ul.check { list-style: none; padding-left: 0; margin: 0 0 8px; }
ul.check li {
  position: relative; padding-left: 30px; font-size: 15px; line-height: 1.65; margin-bottom: 9px;
}
ul.check li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border: 1.5px solid var(--lavender); border-radius: 4px;
  background: transparent;
}
ul.check li .owner {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 8px; margin-left: 6px;
  vertical-align: 1px; white-space: nowrap;
}

/* NUMBERED STEPS — the "in 5 easy steps" pattern from a paper packet */
ol.big-steps { list-style: none; padding-left: 0; counter-reset: bigstep; margin: 0; }
ol.big-steps > li {
  counter-increment: bigstep; position: relative; padding-left: 58px; margin: 0 0 28px;
}
ol.big-steps > li::before {
  content: counter(bigstep);
  position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--bk-cta); color: #fff;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
ol.big-steps > li > h3 { margin: 4px 0 6px; font-size: 19px; }
ol.big-steps > li p { margin: 0 0 10px; }

/* CALLOUTS */
.note, .tip, .warn {
  border-radius: 12px; padding: 16px 20px; margin: 0 0 18px;
  border: 1px solid var(--hairline); background: var(--card);
}
.note { border-left: 4px solid var(--lavender); }
.tip  { border-left: 4px solid var(--teal); }
.warn { border-left: 4px solid var(--rose); }
.note p:last-child, .tip p:last-child, .warn p:last-child { margin-bottom: 0; }
.note .label, .tip .label, .warn .label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}

/* FILL-IN BOX — the login-details panel a launch captain writes on */
.fill-in {
  border: 1.5px dashed var(--lavender); border-radius: 14px; background: var(--card);
  padding: 20px 24px; margin: 0 0 22px;
}
.fill-in .label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.fill-in .field { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.fill-in .field:last-child { margin-bottom: 0; }
.fill-in .field .k { font-size: 14px; font-weight: 600; min-width: 130px; }
.fill-in .field .line { flex: 1; border-bottom: 1px solid var(--hairline); height: 20px; }

/* TABLES */
.guide table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.guide table th, .guide table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top;
}
.guide table th { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* NEXT / PREV FOOTER LINKS */
.next-up {
  border-top: 1px solid var(--hairline); margin-top: 56px; padding-top: 24px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.next-up a { font-size: 15px; font-weight: 600; }

/* PRINT / SAVE-AS-PDF BUTTON */
.print-btn, .guide a.print-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 0 20px; font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.print-btn:hover, .guide a.print-btn:hover { background: var(--paper-primary-wash); }

footer.guide-footer {
  border-top: 1px solid var(--hairline); padding: 24px 0; color: var(--muted); font-size: 13px;
}
footer.guide-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer.guide-footer a { color: var(--muted); text-decoration: none; font-weight: 500; }
footer.guide-footer a:hover { color: var(--bk-link); }
footer.guide-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }

/* PRINT — a guide printed on paper is the packet a teacher gets on day one */
@media print {
  nav.guide-nav, .print-btn, .next-up, footer.guide-footer { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; max-width: none; }
  .guide { padding: 0; max-width: none; }
  .guide h1.page-h { font-size: 30px; }
  .guide h2 { font-size: 19px; margin-top: 24px; }
  .guide p, .guide li { font-size: 12pt; line-height: 1.5; }
  .phase, .card, .note, .tip, .warn, .fill-in, .toc { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .guide .bk-hero { display: block; background: none; border: 0; box-shadow: none; margin: 0 0 16px; }
  .guide .bk-hero__text { padding: 0; }
  .bk-hero__art, nav .logo::after { display: none !important; }
  .guide h1.page-h { text-shadow: none; }
  ol.big-steps > li { break-inside: avoid; page-break-inside: avoid; }
  .guide h2, .guide h3 { break-after: avoid; page-break-after: avoid; }
  a { color: inherit; text-decoration: underline; }
  .toc { break-after: page; page-break-after: always; }
}
