/* Year book, on screen only. The structure and every print rule stay in site.css
   ("Year book"); nothing here applies to the printed or saved PDF copy.
   Builds on theme.css: the wash behind a white sheet, cards with 20px corners,
   the gradient kept for the cover rule and the step numbers. */

@media screen {
  .yb-desk { background: var(--wash), #fff; }
  .yb-wrap { padding-block: 32px clamp(56px, 7vw, 96px); }
  .yb-toolbar { margin-bottom: 24px; }
  .yb { border-radius: 24px; box-shadow: var(--card-shadow-hover); }

  /* Cover */
  .yb-cover { padding-bottom: clamp(40px, 5vw, 64px); }
  .yb-cover-kicker { display: table; margin: 0 auto 16px; padding: 6px 14px; border-radius: var(--pill); background: var(--blue-50); color: var(--blue-700); font-size: .74rem; letter-spacing: .1em; }
  .yb-cover-motto { color: var(--muted); font-weight: 600; }
  .yb-cover-rule { width: 96px; margin: 24px auto; background: var(--grad); }

  /* Contents */
  .yb-contents { margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 32px); border-radius: var(--card-radius); background: var(--grad-soft); }
  .yb-contents h2 { margin-bottom: 16px; }
  .yb-contents a { padding: 10px 2px; border-bottom: 1px solid var(--line); }

  /* Sections: the number becomes the small pill the rest of the site uses. */
  .yb-section { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(40px, 5vw, 64px); }
  .yb-head { margin-bottom: 32px; }
  .yb-head::before { display: inline-block; margin-bottom: 16px; padding: 4px 14px; border-radius: var(--pill); background: var(--blue-50); color: var(--blue-700); font-size: .78rem; letter-spacing: .1em; }
  .yb-head h2 { letter-spacing: -.025em; }

  /* Cards */
  .yb-grid, .yb-steps { gap: 16px; }
  .yb-item { padding: 24px; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
  .yb-item h3 { margin-bottom: 8px; }
  .yb-statement { background: var(--grad-soft); box-shadow: none; }
  .yb-feature { gap: 16px; }
  .yb-subhead { margin: 40px 0 8px; }
  .yb-values li { padding: 16px 0; }
  .yb-project-media img { border-radius: 12px; }
  .yb-step-num { background: linear-gradient(95deg, var(--blue-600), var(--green-600)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
  .yb-steps li:nth-child(even) .yb-step-num { color: transparent; }
  .yb-note { margin-top: 24px; padding: 16px 24px; border: 1px solid var(--blue-100); border-radius: 16px; }
  .yb-table-wrap { border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
  .yb-table th, .yb-table td { padding: 16px; }
  .yb-contact li { padding: 16px 0; }

  /* Closing call to action, under the sheet. */
  .yb-after { margin-top: 32px; }
}

@media screen and (max-width: 680px) {
  .yb-table th, .yb-table td { padding: 0; }
}

@media screen and (forced-colors: active) {
  .yb-step-num, .yb-steps li:nth-child(even) .yb-step-num { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
