/* BanglaKnight: BLP-2027 Shared Task 1. Light red theme. */

:root {
  color-scheme: light;
  --bg: #FFF6F6;
  --bg-tint: #FFEBEB;
  --surface: #FFFFFF;
  --ink: #3B1218;
  --ink-soft: #6E3A41;
  --muted: #9C6C72;
  --line: #F5D2D4;
  --primary: #E0474F;
  --primary-deep: #B8323A;
  --primary-ink: #FFFFFF;
  --primary-soft: #FFE0E1;

  --safe: #1F8F5A;   --safe-soft: #DDF3E7;
  --off: #B07A00;    --off-soft: #FFF1C9;
  --harm: #D2601A;   --harm-soft: #FFE4D2;
  --sev: #9F1239;    --sev-soft: #FBD9E2;

  --radius: 20px;
  --shadow: 0 12px 32px -14px rgba(150, 30, 40, .35);
  --font-head: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
  --font-body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-deep); }
img { display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 246, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand-name span { color: var(--primary); }
.brand-sub { font-size: .75rem; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 6px 11px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary-deep); }
.nav-links .nav-cta { background: var(--primary); color: var(--primary-ink); margin-left: 6px; }
.nav-links .nav-cta:hover { background: var(--primary-deep); color: var(--primary-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: 72px 0 28px; overflow: hidden; isolation: isolate; }
.hero-photo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 246, 246, .97) 0%, rgba(255, 246, 246, .88) 36%, rgba(255, 235, 235, .3) 68%, rgba(255, 235, 235, .1) 100%),
    linear-gradient(180deg, rgba(255, 246, 246, 0) 55%, var(--bg) 100%),
    url("../img/sf-golden-gate.jpg") center 35% / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: var(--primary); }
.hero-sub { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--ink-soft); margin: 4px 0 18px; }
.lead { color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }

/* Demo card */
.demo {
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 26px;
  padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.demo-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.demo-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.demo-tabs { display: inline-flex; background: var(--bg-tint); border-radius: 999px; padding: 4px; gap: 2px; align-self: flex-start; flex-wrap: wrap; }
.tab {
  border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.tab.active { background: var(--surface); color: var(--primary-deep); box-shadow: 0 2px 8px -2px rgba(150, 30, 40, .3); }
.bubble-row { display: flex; gap: 10px; align-items: flex-start; }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: var(--primary-soft); color: var(--primary-deep);
}
.bubble {
  margin: 0; background: var(--bg-tint); border-radius: 4px 18px 18px 18px; padding: 14px 18px;
  font-size: 1.15rem; min-height: 3.2em; transition: opacity .25s;
}
.bubble.fade { opacity: 0; }
.verdict { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.verdict-label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-soft); margin-bottom: 12px; }
.chip { font-size: .85rem; padding: 2px 12px; border-radius: 999px; font-weight: 700; }
.chip-safe { background: var(--safe-soft); color: var(--safe); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg {
  text-align: center; font-size: .78rem; font-weight: 600; padding: 7px 4px; border-radius: 10px;
  background: var(--bg-tint); color: var(--muted);
}
.seg.on.seg-safe { background: var(--safe); color: #fff; }
.demo-foot { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }

/* Stats + notice */
.stats {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stats span { font-size: .92rem; color: var(--ink-soft); }
.notice {
  display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 0;
  background: var(--primary-soft); border-radius: var(--radius); padding: 16px 20px; color: var(--ink);
}
.notice p { margin: 0; }
.notice-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: Georgia, serif; font-style: italic;
}

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); }
.kicker {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 6px;
}
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 18px; letter-spacing: -.01em; }
.section-lead { color: var(--ink-soft); max-width: 46em; }
.note-small { color: var(--muted); font-size: .95rem; margin-top: 16px; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.level {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative; overflow: hidden;
}
.level::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c); }
.level-id {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--c-soft); color: var(--c); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.level h3 { font-size: 1.4rem; margin: 12px 0 6px; color: var(--c); }
.level p { font-size: .95rem; color: var(--ink-soft); }
.level .level-cat { margin: 0; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.level-safe { --c: var(--safe); --c-soft: var(--safe-soft); }
.level-off  { --c: var(--off);  --c-soft: var(--off-soft); }
.level-harm { --c: var(--harm); --c-soft: var(--harm-soft); }
.level-sev  { --c: var(--sev);  --c-soft: var(--sev-soft); }

/* Forms */
.forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.form-card { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.form-card p { margin: 10px 0 0; font-size: 1.15rem; }
.form-tag { font-size: .8rem; font-weight: 700; color: var(--primary-deep); background: var(--primary-soft); padding: 3px 12px; border-radius: 999px; }

/* Data */
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.data-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.data-card h3 { font-size: 1.3rem; color: var(--primary-deep); margin-bottom: 8px; }
.data-card p { margin: 0; color: var(--ink-soft); }

/* Evaluation */
.eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.eval-card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.eval-card h3 { font-size: 1.4rem; color: var(--primary-deep); margin-bottom: 8px; }
.eval-card p { margin: 0; color: var(--ink-soft); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.t-step {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-deep); font-weight: 700;
}
.timeline h3 { font-size: 1.05rem; margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }

/* San Francisco band */
.sf-band {
  position: relative; padding: 120px 0 56px; color: #fff;
  background:
    linear-gradient(180deg, rgba(120, 20, 30, .05) 0%, rgba(110, 18, 28, .55) 55%, rgba(90, 14, 22, .82) 100%),
    url("../img/sf-painted-ladies.jpg") center 60% / cover no-repeat;
}
.sf-kicker { font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; margin-bottom: 4px; opacity: .9; }
.sf-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(60, 0, 10, .4); }
.sf-band p { max-width: 38em; margin: 0; font-size: 1.05rem; text-shadow: 0 1px 6px rgba(60, 0, 10, .5); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.step-n {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.soon { align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--bg-tint); padding: 3px 12px; border-radius: 999px; }
.soon-link { color: var(--primary-deep); background: var(--primary-soft); text-decoration: none; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 10px; }
.person { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.initials {
  flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #F26D6D, #C7323B); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
}
.person h3 { font-size: 1.15rem; }
.person h3 a { color: var(--ink); text-decoration: none; }
.person h3 a:hover { color: var(--primary-deep); }
.person p { margin: 0; color: var(--muted); font-size: .92rem; }
.person-tba { border-style: dashed; background: transparent; }
.person-tba .initials { background: var(--bg-tint); color: var(--muted); }
.contact { margin-top: 32px; background: var(--primary-soft); border-radius: var(--radius); padding: 22px 24px; }
.contact h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact p { margin: 0; color: var(--ink-soft); }

/* Footer with the skyline behind */
.footer {
  padding: 72px 0 28px; color: var(--ink);
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(255, 235, 235, .92) 35%, rgba(255, 224, 225, .88) 100%),
    url("../img/sf-skyline.jpg") center 40% / cover no-repeat;
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; max-width: 640px; }
.footer p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.credits { margin-top: 28px !important; font-size: .78rem !important; color: var(--muted) !important; }
.credits a { color: inherit; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo {
    background:
      linear-gradient(180deg, rgba(255, 246, 246, .9) 0%, rgba(255, 246, 246, .82) 50%, var(--bg) 100%),
      url("../img/sf-golden-gate.jpg") center 35% / cover no-repeat;
  }
  .levels, .steps { grid-template-columns: repeat(2, 1fr); }
  .timeline, .data-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .forms-grid { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .io { flex-direction: column; align-items: stretch; }
  .io-arrow { transform: rotate(90deg); align-self: center; }
  .splits th:nth-child(4), .splits td:nth-child(4) { display: none; }
  .page-head { padding: 40px 0 32px; }
  .hero { padding-top: 40px; }
  .levels, .steps, .forms, .eval-grid, .timeline, .data-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .sf-band { padding: 96px 0 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bubble { transition: none; }
}

/* ---------- Multi-page components ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 860px; }
.big { font-size: 1.2rem; color: var(--ink); }
.section h2 + .big { margin-top: -6px; }
.narrow h2:not(:first-child) { margin-top: 44px; }

/* Home facts */
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }

/* Important dates card (home) */
.dates-card {
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-top: 4px solid var(--primary);
  border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow);
}
.dc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dc-head h2 { font-size: 1.2rem; }
.dc-tag { font-size: .72rem; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); }
.dc-list { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.dc-list::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.dc-list li { position: relative; padding: 4px 0 6px; display: flex; flex-direction: column; line-height: 1.3; }
.dc-list li::before {
  content: ""; position: absolute; left: -21px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid #E9B7BA;
}
.dc-date { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .75rem; color: var(--primary-deep); }
.dc-title { font-size: .92rem; font-weight: 500; color: var(--ink); }
.dc-list li.is-past { opacity: .5; }
.dc-list li.is-past::before { background: var(--primary); border-color: var(--primary); }
.dc-list li.is-next::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.dc-list li.is-next .dc-title { font-weight: 700; }
.dc-list li.is-next .dc-title::after {
  content: "next"; margin-left: 6px; font-size: .68rem; font-weight: 700; color: var(--primary-deep);
  border: 1px solid var(--primary); border-radius: 5px; padding: 0 5px; vertical-align: 1px;
}
.dc-countdown { margin: 12px 0 0; background: var(--primary-soft); border-radius: 10px; padding: 8px 12px; font-size: .9rem; color: var(--ink); }
.dc-countdown strong { color: var(--primary-deep); }
.dc-note { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }

/* Step cards that are links */
.step-link { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.step-link:hover { transform: translateY(-3px); border-color: var(--primary); }
.go { font-weight: 700; color: var(--primary-deep); font-size: .92rem; }

/* Page header for inner pages */
.page-head {
  padding: 56px 0 40px; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 246, 246, .97) 0%, rgba(255, 246, 246, .9) 45%, rgba(255, 235, 235, .55) 100%),
    var(--photo) center 40% / cover no-repeat;
}
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-deep); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
.page-desc { margin: 6px 0 0; color: var(--ink-soft); font-size: 1.1rem; }

/* Task: input -> output */
.io { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; }
.io-box { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.io-box p { margin: 6px 0 0; color: var(--ink-soft); }
.io-tag { font-size: .78rem; font-weight: 700; color: var(--primary-deep); background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; }
.io-arrow { font-size: 1.6rem; color: var(--primary); font-weight: 700; }

/* Tables */
.splits, .dates-table, .lb-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 8px; }
.splits th, .splits td, .dates-table th, .dates-table td, .lb-table th, .lb-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.splits thead th, .dates-table thead th, .lb-table thead th { background: var(--bg-tint); font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.splits tr:last-child td, .dates-table tr:last-child td, .lb-table tr:last-child td { border-bottom: 0; }
.dt-date { white-space: nowrap; font-weight: 600; color: var(--primary-deep); }
.dt-status { width: 1%; white-space: nowrap; }
.dates-table tr.is-past td { color: var(--muted); }
.dates-table tr.is-past .dt-date { color: var(--muted); }
.dates-table tr.is-next { background: var(--primary-soft); }
.dates-table tr.is-next td:first-child { font-weight: 700; }
.next-badge, .done-badge { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.next-badge { background: var(--primary); color: #fff; }
.done-badge { background: var(--bg-tint); color: var(--muted); }
.lb-empty { text-align: center !important; color: var(--muted); padding: 28px 16px !important; }

/* Data page */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.forms-grid p { color: var(--ink-soft); }
.plain { padding-left: 20px; color: var(--ink-soft); }
.plain li { margin-bottom: 4px; }
.demo-gloss { margin: 8px 0 0 46px; font-size: .88rem; color: var(--muted); font-style: italic; }
.badge { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-size: .8rem; font-weight: 700; background: var(--primary); color: #fff; border-radius: 999px; padding: 2px 12px; margin-left: 8px; letter-spacing: 0; }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.kit-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kit-icon { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .78rem; font-weight: 700; color: var(--primary-deep); background: var(--primary-soft); border-radius: 8px; padding: 4px 10px; margin-bottom: 12px; }
.kit-item h3 { font-size: 1.15rem; margin-bottom: 6px; word-break: break-word; }
.kit-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Placeholders and callouts */
.placeholder { background: var(--surface); border: 1.5px dashed #EBB4B7; border-radius: var(--radius); padding: 18px 20px; }
.placeholder p { margin: 0; color: var(--ink-soft); }
.lb-table { margin-top: 16px; }
.callout { display: flex; gap: 14px; align-items: center; background: var(--primary-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.callout p { margin: 0; }
.callout-warn { margin: 32px 0 0; background: #FFF4E5; border: 1px solid #F3C98B; }

/* Numbered how-to lists */
.howto { list-style: none; padding: 0; margin: 0; position: relative; }
.howto::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.howto li { position: relative; display: flex; gap: 18px; padding: 0 0 22px; }
.h-n {
  flex: none; position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.howto h3 { font-size: 1.2rem; margin: 6px 0 4px; }
.howto p { margin: 0 0 4px; color: var(--ink-soft); }
.howto .when { font-size: .88rem; font-weight: 600; color: var(--primary-deep); }

/* Previous / next links at the bottom of each page */
.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 56px; }
.pager a {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; min-width: 180px;
}
.pager a:hover { border-color: var(--primary); color: var(--primary-deep); }
.pager a span { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.pager .pg-next { text-align: right; margin-left: auto; }
.pager .pg-next::after { content: " →"; }
.pager .pg-prev::before { content: "← "; }

/* Icons beside tab names and page titles */
.ico { width: 17px; height: 17px; flex: none; }
.nav-links a .ico { color: var(--primary); }
.nav-links a.active .ico, .nav-links a:hover .ico { color: var(--primary-deep); }
.ico-h1 { width: .8em; height: .8em; margin-right: 12px; vertical-align: -0.06em; color: var(--primary); stroke-width: 2.2; }

/* Home: task section */
.sub-h { font-size: 1.3rem; margin: 32px 0 8px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .steps-3 { grid-template-columns: 1fr; } }
.narrow .kicker + h2 { margin-top: 0; }

/* Phase blocks inside the dates card */
.dc-group { border-radius: 12px; padding: 9px 10px 4px 10px; margin-bottom: 8px; border: 1px solid transparent; }
.dc-group-dev { background: #FFF0F0; border-color: #F6C3C6; }
.dc-group-eval { background: #FFE2E3; border-color: #EC9BA0; }
.dc-group-after { background: transparent; border: 1px dashed var(--line); }
.dc-phase-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--font-body); }
.dc-pill { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--primary); border-radius: 999px; padding: 3px 11px; }
.dc-group-eval .dc-pill { background: var(--primary-deep); }
.dc-group-after .dc-pill { background: var(--bg-tint); color: var(--muted); }
.dc-span { font-size: .85rem; font-weight: 700; color: var(--primary-deep); white-space: nowrap; }
.dc-group .dc-list::before { background: rgba(224, 71, 79, .25); }
.dc-group-after .dc-list::before { background: var(--line); }

/* Development vs evaluation phase cards */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; border-top: 6px solid var(--c); }
.phase-dev { --c: #F08C8F; }
.phase-eval { --c: var(--primary-deep); }
.phase-tag { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.phase h3 { font-size: 1.45rem; }
.phase-when { margin: 2px 0 12px; font-weight: 700; color: var(--primary-deep); }
.phase dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.phase dt { font-weight: 700; font-size: .85rem; color: var(--muted); padding-top: 2px; }
.phase dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.phase-group { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--primary-deep); text-transform: uppercase; letter-spacing: .05em; margin: 28px 0 14px; }
@media (max-width: 760px) { .phases { grid-template-columns: 1fr; } }
