
  :root {
    --off-white: #FAF7F2;
    --white: #FFFFFF;
    --navy: #2B5482;
    --charcoal: #1A1A1A;
    --border: #E4DFD4;
    --gold: #C9922A;
    --light-blue: #6399BB;
    --tan: #AC9D83;
    --burgundy: #984B47;
    --orange: #EB8B3D;
    --sys-blue: #6399BB;
    --sys-tan: #AC9D83;
    --sys-burgundy: #984B47;
    --sys-navy: #2B5482;
    --sys-orange: #EB8B3D;
    --sys-gold: #C9922A;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--charcoal);
    margin: 0;
    padding: 0;
  }

  /* ===== Sticky header / nav ===== */
  .sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 247, 242, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
  }
  .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .nav-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    flex-shrink: 0;
  }
  .nav-title em { color: var(--gold); font-style: italic; }
  .nav-cal-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  .nav-cal-link:hover { border-color: var(--gold); color: var(--gold); }
  .chips {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 4px 0;
    flex: 1;
  }
  .chips::-webkit-scrollbar { height: 4px; }
  .chips::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  .chip {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    color: var(--charcoal);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
  }
  .chip:hover { transform: translateY(-2px); border-color: var(--gold); }
  .chip.sys-blue { border-left-color: var(--sys-blue); }
  .chip.sys-tan { border-left-color: var(--sys-tan); }
  .chip.sys-burgundy { border-left-color: var(--sys-burgundy); }
  .chip.sys-navy { border-left-color: var(--sys-navy); }
  .chip.sys-orange { border-left-color: var(--sys-orange); }
  .chip.sys-gold { border-left-color: var(--sys-gold); }
  .chip.chip-exam { background: var(--navy); color: var(--gold); border-color: var(--navy); border-left-color: var(--gold); }
  .chip.chip-review { background: var(--off-white); color: var(--gold); border: 2px solid var(--gold); }

  /* ===== Page ===== */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 96px;
  }

  /* ===== Hero ===== */
  .hero {
    text-align: center;
    margin-bottom: 64px;
  }
  .brand-logo {
    display: inline-block;
    margin-bottom: 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .brand-logo img {
    display: block;
    width: 72px;
    height: auto;
  }
  .brand-logo:hover {
    transform: translateY(-1px);
    opacity: 0.85;
  }
  .hero .eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 14px;
  }
  .hero .eyebrow a,
  .footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
  }
  .hero .eyebrow a:hover,
  .footer a:hover {
    border-bottom-color: var(--gold);
    opacity: 0.85;
  }
  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(40px, 5.5vw, 64px);
    line-height: 1.05;
    color: var(--navy);
    margin: 0 0 14px;
  }
  .hero h1 em { font-style: italic; color: var(--gold); }
  .hero .subtitle {
    font-size: 17px;
    color: var(--charcoal);
    opacity: 0.75;
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.5;
  }

  /* ===== Day section ===== */
  .day-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 10px;
    padding: 36px 40px;
    margin-bottom: 28px;
    scroll-margin-top: 80px;
    position: relative;
    transition: box-shadow 0.4s ease;
  }
  .day-section.sys-blue { border-left-color: var(--sys-blue); }
  .day-section.sys-tan { border-left-color: var(--sys-tan); }
  .day-section.sys-burgundy { border-left-color: var(--sys-burgundy); }
  .day-section.sys-navy { border-left-color: var(--sys-navy); }
  .day-section.sys-orange { border-left-color: var(--sys-orange); }
  .day-section.sys-gold { border-left-color: var(--sys-gold); }

  .day-section.target-pulse {
    box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(201, 146, 42, 0.15);
    animation: targetPulse 1.8s ease-out;
  }
  @keyframes targetPulse {
    0%   { box-shadow: 0 0 0 0 rgba(201, 146, 42, 0.6); }
    40%  { box-shadow: 0 0 0 12px rgba(201, 146, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 146, 42, 0); }
  }

  .back-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    display: inline-block;
    margin-bottom: 18px;
  }
  .back-link:hover { opacity: 1; color: var(--gold); }

  .day-header {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* BIG DAY label */
  .big-day {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1;
    color: var(--gold);
    letter-spacing: -0.01em;
    margin: 0;
  }
  .big-day .of {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.55;
    margin-left: 10px;
    vertical-align: middle;
  }

  .date-pill {
    display: inline-block;
    align-self: flex-start;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.7;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    margin-top: 4px;
  }

  .day-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 36px);
    color: var(--navy);
    margin: 14px 0 4px;
    line-height: 1.15;
  }
  .lesson {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--charcoal);
    margin: 0;
    opacity: 0.9;
  }
  .lesson-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.6;
    margin-right: 10px;
    background: var(--off-white);
    padding: 3px 8px;
    border-radius: 3px;
  }
  .lesson em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    color: var(--gold);
    font-size: 19px;
  }

  /* ===== Medical content columns ===== */
  .content-grid {
    display: grid;
    gap: 28px 40px;
    margin-top: 22px;
  }
  .content-grid.cols-1 { grid-template-columns: 1fr; }
  .content-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .content-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

  .topics {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Category header (checkable) */
  .topics li.hd {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 16px 0 8px 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: default;
  }
  .topics li.hd:first-child {
    border-top: none;
    padding-top: 4px;
    margin-top: 0;
  }

  /* Sub-item (plain bulleted reference) */
  .topics li.sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.5;
    padding: 3px 0 3px 28px;
    position: relative;
    opacity: 0.85;
  }
  .topics li.sub::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--navy);
    opacity: 0.35;
  }

  /* Per-category checkbox */
  .topic-check {
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    margin-top: 1px;
  }
  .topic-check:hover {
    border-color: var(--gold);
    background: rgba(201, 146, 42, 0.08);
  }
  .topic-check:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  .topics li.hd.checked .topic-check {
    background: var(--gold);
    border-color: var(--gold);
  }
  .topics li.hd.checked .topic-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .topic-label {
    flex: 1;
    transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
    cursor: pointer;
  }
  .topics li.hd.checked .topic-label {
    opacity: 0.5;
    text-decoration: line-through;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 1.5px;
  }

  /* ===== Per-day progress ===== */
  .day-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
    padding: 14px 18px;
    background: var(--off-white);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--navy);
  }
  .day-progress-track {
    flex: 1;
    height: 6px;
    background: var(--white);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
  }
  .day-progress-fill {
    position: absolute;
    inset: 0 100% 0 0;
    background: var(--gold);
    border-radius: 3px;
    transition: right 0.5s ease;
  }
  .day-progress-count {
    flex-shrink: 0;
    opacity: 0.75;
  }
  .day-progress-clear {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--navy);
    opacity: 0.5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 8px;
  }
  .day-progress-clear:hover { opacity: 1; color: var(--gold); }
  .day-progress.complete { background: rgba(201, 146, 42, 0.12); color: var(--gold); }
  .day-progress.complete .day-progress-fill { background: var(--gold); }

  /* ===== Special blocks ===== */
  .special {
    padding: 32px;
    border-radius: 8px;
    margin-top: 18px;
    text-align: center;
  }
  .special.exam-block { background: var(--navy); color: var(--white); }
  .special.review-block { background: var(--off-white); border: 2px solid var(--gold); }
  .special .badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
  }
  .special h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 14px;
    color: var(--gold);
  }
  .special.review-block h3 { color: var(--navy); }
  .special p {
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 15px;
    opacity: 0.9;
  }

  /* ===== Footer ===== */
  .footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.5;
  }

  @media print {
    .sticky-nav { display: none; }
    body { background: var(--white); }
    .day-section { break-inside: avoid; box-shadow: none; }
    .day-progress, .day-progress-clear { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .day-section.target-pulse { animation: none; }
  }
  @media (max-width: 720px) {
    .container { padding: 32px 16px 64px; }
    .day-section { padding: 24px 20px; }
    .content-grid.cols-2,
    .content-grid.cols-3 { grid-template-columns: 1fr; }
    .nav-title { font-size: 14px; }
    .nav-cal-link { font-size: 10px; padding: 6px 10px; }
    .big-day { font-size: 38px; }
  }
