/* =============================================================================
   Quarterly Planning Meeting Guide — document styles
   Built on the Ninety.io Marketing Design System tokens (colors_and_type.css).
   Print-ready US Letter portrait; also renders as a web page.
   ========================================================================== */

:root {
  --sheet-w: 8.5in;
  --sheet-pad-x: 0.7in;
  --sheet-pad-y: 0.7in;
  --doc-fs: 14.5px;
}

* { box-sizing: border-box; }

html { font-size: 100%; background: #e6e8ee; }

body {
  margin: 0;
  font-family: var(--font-body-family);
  color: var(--color-brand-black);
  background: #e6e8ee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Paper sheets ---------- */
.doc {
  max-width: var(--sheet-w);
  margin: 40px auto;
  background: var(--color-white);
  box-shadow: 0 20px 60px rgba(38, 38, 38, 0.18);
}

.sheet {
  width: 100%;
  background: var(--color-white);
  position: relative;
}
.sheet + .sheet { break-before: page; }

.sheet__body {
  padding: var(--sheet-pad-y) var(--sheet-pad-x) 0.55in;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--color-brand-black);
  color: var(--color-white);
  padding: 30px var(--sheet-pad-x) 34px;
  position: relative;
  overflow: hidden;
}
.masthead__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.masthead__logo { height: 30px; width: auto; display: block; }
.masthead__kicker {
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.masthead__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FD0E6;
  margin-bottom: 12px;
}
.masthead h1 {
  color: var(--color-white);
  font-size: 33px;
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 92%;
}
.masthead__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 84%;
}
/* faint brand-blue geometric accent in masthead */
.masthead__accent {
  position: absolute;
  right: -70px;
  top: -60px;
  width: 240px;
  height: 240px;
  border: 34px solid var(--color-brand-blue);
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
}

/* meta strip below masthead */
.metabar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--color-brand-stone);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
}
.metabar__item {
  flex: 1 1 0;
  min-width: 130px;
  padding: 12px 16px;
  border-right: 1px solid var(--color-brand-stone);
}
.metabar__item:last-child { border-right: none; }
.metabar__label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-grey);
  margin-bottom: 3px;
}
.metabar__value {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--color-brand-black);
}

/* ---------- Section eyebrow / lead ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin-bottom: 8px;
}
.block-title {
  font-size: 21px;
  font-weight: var(--fw-bold);
  color: var(--color-brand-black);
  margin: 0 0 6px;
}
.block-lead {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-brand-grey);
  margin: 0 0 22px;
  max-width: 62ch;
}

/* ---------- Agenda at-a-glance ---------- */
.glance {
  border: 1px solid var(--color-brand-stone);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 34px;
}
.glance__row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--color-brand-mist);
}
.glance__row:last-child { border-bottom: none; }
.glance__row--total {
  background: var(--color-brand-ice);
  border-top: 1px solid var(--color-brand-stone);
}
.glance__num {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--color-brand-slate);
  text-align: center;
}
.glance__name {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-brand-black);
}
.glance__row--total .glance__name { font-weight: var(--fw-bold); }
.glance__time {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-brand-blue);
  font-variant-numeric: tabular-nums;
}
.glance__row--total .glance__time { color: var(--color-brand-black); }
.glance__note {
  margin: 0;
  padding: 11px 18px 13px;
  background: var(--color-brand-ice);
  border-top: 1px solid var(--color-brand-stone);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-brand-grey);
}
.glance__note strong { color: var(--color-brand-black); font-weight: var(--fw-semibold); }

/* ---------- Timeline of sections ---------- */
.timeline { position: relative; }

.tl-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  position: relative;
  padding-bottom: 26px;
  break-inside: avoid;
}
.tl-item:last-child { padding-bottom: 0; }

/* the rail */
.tl-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-node {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-brand-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  z-index: 1;
}
.tl-line {
  position: absolute;
  top: 44px;
  bottom: -26px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--color-brand-stone);
}
.tl-item:last-child .tl-line { display: none; }
.tl-dur {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--color-brand-blue);
  line-height: 1.25;
  z-index: 1;
  background: var(--color-white);
  padding: 2px 0;
}
.tl-dur span {
  display: block;
  font-size: 9.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-slate);
}

.tl-content { padding-top: 1px; }
.tl-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.tl-title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-brand-black);
  margin: 0;
}
.tl-purpose {
  font-size: 13.5px;
  font-weight: var(--fw-medium);
  font-style: italic;
  color: var(--color-brand-grey);
  margin: 0 0 12px;
}
.tl-lead {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-brand-black);
  margin: 0 0 10px;
}
.tl-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-brand-grey);
  margin: 0 0 14px;
}
.tl-note strong { color: var(--color-brand-black); font-weight: var(--fw-semibold); }

/* step list */
.steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-brand-black);
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-brand-ice);
  border: 1px solid var(--color-brand-stone);
  color: var(--color-brand-blue);
  font-size: 10px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
/* plain bullet variant (for unordered prompt lists) */
.bullets {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.bullets > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  font-size: 13.5px;
  line-height: 1.5;
}
.bullets > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-blue);
}
.steps strong, .bullets strong { font-weight: var(--fw-semibold); }

/* ---------- "In Ninety" callout ---------- */
.ninety-tip {
  display: flex;
  gap: 12px;
  background: rgba(47, 139, 170, 0.09);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.ninety-tip__badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--color-brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ninety-tip__badge img { width: 17px; height: auto; display: block; }
.ninety-tip__body { flex: 1; }
.ninety-tip__label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin-bottom: 2px;
}
.ninety-tip__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-brand-black);
  margin: 0;
}

/* ---------- Facilitator callout (dark) ---------- */
.facil {
  margin-top: 34px;
  background: var(--color-brand-black);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.facil__label {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FD0E6;
  margin-bottom: 8px;
}
.facil h3 { color: var(--color-white); font-size: 18px; margin: 0 0 10px; }
.facil p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.facil strong { color: var(--color-white); font-weight: var(--fw-semibold); }

/* =========================================================================
   PAGE 2 — Leadership prep
   ========================================================================== */

.prep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
/* two-column assignment: participant cards | facilitator cards.
   One grid so all six boxes share equal row heights; text sits at the top. */
.assign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-auto-rows: 1fr;
  column-gap: 30px;
  row-gap: 14px;
  align-items: stretch;
  margin-bottom: 34px;
}
.assign-col__head {
  display: block;
  align-self: end;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand-stone);
}
.assign-grid .prep-card {
  margin: 0;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
}
/* facilitator column — visually distinct from participant prep */
.assign-col__head--facil {
  color: var(--color-brand-black);
  border-bottom-color: var(--color-brand-black);
}
.assign-grid .prep-card--facil {
  background: var(--color-brand-ice);
  border-color: var(--color-brand-slate);
}
.assign-grid .prep-card--facil .prep-card__num {
  background: var(--color-brand-black);
  border-color: var(--color-brand-black);
  color: var(--color-white);
}

/* "What to be thinking about" — shared full-width band */
.think {
  background: var(--color-brand-ice);
  border: 1px solid var(--color-brand-stone);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 34px;
  break-inside: avoid;
}
.think__head { margin-bottom: 16px; }
.think__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-brand-blue);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  margin-bottom: 10px;
}
.think__head h3 {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-brand-black);
  margin: 0 0 4px;
}
.think__head p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-brand-grey);
  margin: 0;
}
.think__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 28px;
  align-items: start;
}
.think__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.think__list > li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: var(--fw-medium);
  color: var(--color-brand-black);
}
.think__list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-blue);
}
.prep-card {
  border: 1px solid var(--color-brand-stone);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: var(--color-white);
  break-inside: avoid;
}
.prep-card__num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-ice);
  border: 1px solid var(--color-brand-stone);
  color: var(--color-brand-blue);
  font-size: 13px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.prep-card h4 {
  font-size: 15px;
  font-weight: var(--fw-bold);
  margin: 0 0 5px;
  color: var(--color-brand-black);
}
.prep-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-brand-grey);
  margin: 0;
}

/* tool mapping list */
.toolmap {
  border: 1px solid var(--color-brand-stone);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.toolmap__row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--color-brand-mist);
  align-items: baseline;
}
.toolmap__row:last-child { border-bottom: none; }
.toolmap__tool {
  font-size: 13.5px;
  font-weight: var(--fw-bold);
  color: var(--color-brand-blue);
}
.toolmap__do {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-brand-black);
}

/* ---------- Email block ---------- */
.email {
  border: 1px solid var(--color-brand-slate);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.email__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--color-brand-mist);
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-brand-stone);
}
.email__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand-slate); }
.email__barlabel {
  margin-left: 8px;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--color-brand-grey);
}
.email__copy {
  margin-left: auto;
  border: 1px solid var(--color-brand-slate);
  background: var(--color-white);
  color: var(--color-brand-blue);
  font-family: var(--font-body-family);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-fast) ease;
}
.email__copy:hover { background: var(--color-brand-blue); color: var(--color-white); border-color: var(--color-brand-blue); }
.email__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--color-brand-mist);
  font-size: 13px;
}
.email__head div { margin-bottom: 3px; }
.email__head .k { color: var(--color-brand-grey); font-weight: var(--fw-semibold); }
.email__body {
  padding: 18px 22px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-brand-black);
}
.email__body p { margin: 0 0 11px; }
.email__body ol, .email__body ul { margin: 0 0 11px; padding-left: 20px; }
.email__body li { margin-bottom: 5px; }
.email__agenda {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.email__agenda li {
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  color: var(--color-brand-black);
  background: var(--color-brand-ice);
  border: 1px solid var(--color-brand-stone);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  margin: 0 !important;
}
.email__placeholder { color: var(--color-brand-blue); font-weight: var(--fw-semibold); }

/* prep standard questions */
.standard {
  background: var(--color-brand-ice);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 8px;
}
.standard__q {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-brand-stone);
}
.standard__q:last-child { border-bottom: none; }
.standard__q span {
  flex-shrink: 0;
  color: var(--color-brand-blue);
  font-weight: var(--fw-bold);
  font-size: 17px;
  line-height: 1.4;
}
.standard__q p {
  margin: 0;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--color-brand-black);
  line-height: 1.4;
}

/* generic two-col helper */
.cols2 { columns: 2; column-gap: 28px; }
.cols2 .bullets > li { break-inside: avoid; }

/* ---------- Footer / CTA ---------- */
.cta {
  margin-top: 36px;
  background: var(--color-brand-blue);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--color-white);
  break-inside: avoid;
}
.cta__text h3 { color: var(--color-white); font-size: 19px; margin: 0 0 5px; }
.cta__text p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.cta__btn {
  flex-shrink: 0;
  display: inline-block;
  background: var(--color-white);
  color: var(--color-brand-blue);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--color-white);
  transition: all var(--t-fast) ease;
  white-space: nowrap;
}
.cta__btn:hover { background: transparent; color: var(--color-white); }

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--color-brand-stone);
}
.colophon img { height: 20px; width: auto; }
.colophon__note {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--color-brand-grey);
  margin: 0;
  max-width: 70ch;
}
.pagetag { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-brand-slate); white-space: nowrap; }

/* ---------- Screen-only hint ---------- */
.screen-hint {
  max-width: var(--sheet-w);
  margin: 0 auto;
  padding: 16px 4px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-brand-grey);
  font-size: 12.5px;
}
.screen-hint button {
  font-family: var(--font-body-family);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand-black);
  background: var(--color-white);
  border: 1px solid var(--color-brand-slate);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  cursor: pointer;
}
.screen-hint button:hover { background: var(--color-brand-black); color: var(--color-white); border-color: var(--color-brand-black); }

/* ---------- Print ---------- */
@page { size: letter portrait; margin: 0; }

@media print {
  html, body { background: var(--color-white); }
  .doc { margin: 0; box-shadow: none; max-width: none; width: 100%; }
  .screen-hint { display: none !important; }
  .sheet + .sheet { break-before: page; }
  .email__copy { display: none; }
  .cta, .facil, .ninety-tip, .standard, .glance, .prep-card, .email { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .masthead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .doc { margin: 0; }
  :root { --sheet-pad-x: 22px; --sheet-pad-y: 26px; }
  .prep-grid { grid-template-columns: 1fr; }
  .assign-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .assign-grid > :nth-child(1) { order: 1; }
  .assign-grid > :nth-child(3) { order: 2; }
  .assign-grid > :nth-child(5) { order: 3; }
  .assign-grid > :nth-child(7) { order: 4; }
  .assign-grid > :nth-child(2) { order: 5; margin-top: 12px; }
  .assign-grid > :nth-child(4) { order: 6; }
  .assign-grid > :nth-child(6) { order: 7; }
  .assign-grid > :nth-child(8) { order: 8; }
  .think__list { grid-template-columns: 1fr; }
  .think__cols { grid-template-columns: 1fr; gap: 9px; }
  .assign-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cols2 { columns: 1; }
  .masthead h1 { font-size: 27px; max-width: 100%; }
  .tl-item { grid-template-columns: 74px 1fr; gap: 16px; }
}

/* =========================================================================
   Tweak-driven modifiers (set by the Tweaks panel)
   ========================================================================== */
body.mast-blue .masthead { background: var(--color-brand-blue); }
body.mast-blue .masthead__eyebrow { color: rgba(255, 255, 255, 0.92); }
body.mast-blue .masthead__accent { border-color: #ffffff; opacity: 0.22; }
body.no-ring .masthead__accent { display: none; }
body.nodes-accent .tl-node { background: var(--color-brand-blue); }
