/* ============================================================
   SilvaStone course framework — shared styles
   Design system common to all classroom-design modules.
   Requires the Fraunces / Inter / IBM Plex Mono fonts and the
   Tabler icon webfont to be linked in each module's <head>.
   ============================================================ */
  :root{
    --bark:#1C2B34;
    --bark-soft:#2E3F4C;
    --moss:#6A8C9E;
    --moss-light:#9BBAC8;
    --oat:#F5F3F0;
    --oat-deep:#E6E3DE;
    --rust:#C8A870;
    --mist:#6A8C9E;
    --mist-soft:#E4EDF2;
    --ink:#1C2B34;
    --paper-line: rgba(28,43,52,0.10);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--oat);
    color:var(--ink);
    font-family:'Inter',sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  .eyebrow{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    letter-spacing:0.12em;
    text-transform:uppercase;
    font-weight:500;
  }
  h1,h2,h3{
    font-family:'Fraunces',serif;
    font-weight:600;
    margin:0;
    line-height:1.05;
  }
  p{line-height:1.65; margin:0 0 16px;}
  a{color:inherit;}
  :focus-visible{outline:3px solid var(--moss); outline-offset:3px;}

  /* ---------- SITE HEADER ---------- */
  .site-header{
    background:var(--oat);
    border-bottom:1px solid var(--paper-line);
    padding:12px 6vw;
    display:flex;
    align-items:center;
  }
  .site-logo{height:34px; display:block; width:auto;}

  /* ---------- FOOTER LOGO ---------- */
  .foot-logo-wrap{
    margin-top:28px;
    padding-top:20px;
    border-top:1px solid rgba(245,243,240,0.14);
  }
  .foot-logo{
    height:26px; display:block; width:auto;
    filter:brightness(0) invert(1);
    opacity:0.65;
  }

  /* ---------- HERO ---------- */
  .hero{
    background:
      radial-gradient(circle at 18% 12%, rgba(106,140,158,0.25), transparent 45%),
      var(--bark);
    color:var(--oat);
    padding:56px 6vw 64px;
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:48px;
    align-items:center;
  }
  .hero-eyebrow{color:var(--moss-light);}
  .hero h1{
    font-size:clamp(34px,4.6vw,58px);
    margin:14px 0 18px;
    max-width:11ch;
  }
  .hero h1 em{font-style:italic; color:var(--moss-light);}
  .hero-sub{
    font-size:17px;
    color:#B0C4CE;
    max-width:46ch;
    margin-bottom:24px;
  }
  .meta-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }
  .meta-pill{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    border:1px solid rgba(245,243,240,0.28);
    border-radius:100px;
    padding:7px 14px;
    color:#D5E5EC;
    display:flex;
    align-items:center;
    gap:7px;
  }
  .hero-photo-wrap{
    position:relative;
  }
  .hero-photo-placeholder{
    width:100%;
    aspect-ratio:4/3;
    border:8px solid var(--oat);
    border-bottom-width:34px;
    box-shadow:0 20px 40px -10px rgba(0,0,0,0.5);
    background:
      radial-gradient(circle at 30% 40%, rgba(106,140,158,0.35), transparent 55%),
      linear-gradient(150deg, var(--bark-soft) 0%, var(--moss) 100%);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    border-radius:2px;
  }
  .hero-photo-placeholder .ph-icon{font-size:36px; opacity:.6;}
  .hero-photo-placeholder .ph-label{
    font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    letter-spacing:0.1em;
    color:rgba(245,243,240,0.55);
    text-align:center;
    max-width:18ch;
    line-height:1.6;
  }

  /* ---------- PATH NAV ---------- */
  .pathnav{
    background:rgba(245,243,240,0.96);
    padding:12px 6vw 4px;
    text-align:center;
    border-bottom:1px solid var(--paper-line);
    position:sticky; top:0; z-index:50;
    backdrop-filter: blur(6px);
  }
  .pathnav-label{color:var(--bark); opacity:0.55; margin-bottom:10px;}
  .stones{
    position:relative;
    height:114px;
    max-width:640px;
    margin:0 auto 6px;
  }
  .stones > svg{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;}
  .stone{
    position:absolute;
    width:52px; height:52px;
    transform:translate(-50%,-50%);
    background:var(--oat-deep);
    border:1px solid var(--paper-line);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:1px;
    cursor:pointer;
    font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    color:var(--bark);
    transition:transform .25s ease, background .25s ease, box-shadow .25s ease;
  }
  .stone i.ti{font-size:15px; display:block; line-height:1;}
  .stone:nth-child(2){left:10%; top:68.4%;}
  .stone:nth-child(3){left:30%; top:36.8%;}
  .stone:nth-child(4){left:50%; top:68.4%;}
  .stone:nth-child(5){left:70%; top:36.8%;}
  .stone:nth-child(6){left:90%; top:68.4%;}
  .stone:hover{transform:translate(-50%,-50%) translateY(-3px);}
  .stone.completed{background:#82AABB; border-color:var(--moss); color:var(--oat);}
  .stone.active{
    background:var(--moss);
    color:var(--oat);
    box-shadow:0 6px 12px -4px rgba(106,140,158,0.55);
    transform:translate(-50%,-50%) translateY(-4px) scale(1.05);
  }
  .footprint{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    color:var(--rust);
    letter-spacing:0.06em;
    margin-bottom:4px;
  }

  /* ---------- PANELS ---------- */
  .panel{display:none; animation:fadeIn .35s ease;}
  .panel.show{display:block;}
  @keyframes fadeIn{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);}}

  .section{
    padding:56px 6vw 64px;
  }
  .section-inner{max-width:880px; margin:0 auto;}
  .section .eyebrow{color:var(--moss); margin-bottom:10px;}
  .section h2{font-size:clamp(26px,3vw,36px); margin-bottom:22px; max-width:18ch;}

  .bg-oat{background:var(--oat);}
  .bg-oat-deep{background:var(--oat-deep);}
  .bg-bark{background:var(--bark); color:var(--oat);}
  .bg-bark .eyebrow{color:var(--moss-light);}
  .bg-bark h2{color:var(--oat);}

  .lede{font-size:18px; max-width:62ch;}

  .pullquote{
    font-family:'Fraunces',serif;
    font-style:italic;
    font-size:clamp(22px,2.6vw,30px);
    color:var(--moss);
    border-left:3px solid var(--moss);
    padding:4px 0 4px 24px;
    margin:32px 0;
    max-width:38ch;
  }

  .principles{
    list-style:none; padding:0; margin:28px 0 6px;
    display:grid; grid-template-columns:1fr 1fr; gap:14px;
    counter-reset:principles-counter;
  }
  .principles li{
    background:var(--oat-deep);
    border:1px solid var(--paper-line);
    border-radius:10px;
    padding:30px 18px 16px;
    font-size:14px;
    position:relative;
    counter-increment:principles-counter;
  }
  .principles li::before{
    content:counter(principles-counter) ".";
    position:absolute;
    top:10px; left:18px;
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    font-weight:500;
    color:var(--moss);
    letter-spacing:0.04em;
  }
  .principles li b{
    display:block;
    font-family:'Fraunces',serif;
    font-size:16px;
    margin-bottom:4px;
    font-weight:600;
  }
  .refs{
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    color:var(--bark);
    opacity:0.6;
    margin-top:28px;
    line-height:1.8;
  }
  /* Subtle reference footer, sits above a pathway's reflection questions.
     Uses inherited colour so it reads correctly on light and dark panels. */
  .pathway-refs{
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    letter-spacing:0.04em;
    line-height:1.7;
    margin:44px 0 0;
    padding-top:16px;
    border-top:1px solid;
    opacity:0.55;
  }
  .pathway-refs b{font-weight:600;}

  /* diagram */
  .loop-wrap{display:flex; justify-content:center; margin:14px 0 40px;}

  /* gallery */
  .gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:8px;
  }
  .gcard{
    background:var(--oat);
    border:1px solid var(--paper-line);
    border-radius:4px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(28,43,52,0.18);
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .gcard:hover{transform:translateY(-5px); box-shadow:0 16px 28px -12px rgba(28,43,52,0.20);}
  .gcard-ph{
    width:100%; height:160px;
    background:linear-gradient(135deg, var(--oat-deep) 0%, #BDD0D8 100%);
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    gap:6px;
  }
  .gcard-ph .ph-num{
    font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    color:var(--moss);
    letter-spacing:.1em;
  }
  .gcard-ph .ph-desc{
    font-size:12px;
    color:var(--bark);
    opacity:.5;
    text-align:center;
    padding:0 14px;
    line-height:1.5;
  }
  .gcap{padding:14px 16px 18px;}
  .gcap p{font-size:13.5px; font-style:italic; margin:0; color:var(--bark);}

  /* media production note */
  .media-note{
    border:1px dashed rgba(106,140,158,0.40);
    border-radius:10px;
    padding:16px 20px;
    margin-bottom:20px;
    max-width:520px;
    background:rgba(106,140,158,0.05);
  }
  .media-note .mn-label{
    font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    letter-spacing:.1em;
    color:var(--rust);
    text-transform:uppercase;
    margin-bottom:8px;
    display:block;
  }
  .media-note p{font-size:13px; color:#8A7D70; margin:0; line-height:1.65;}
  .media-note p + p{margin-top:10px;}
  .yt-embed{max-width:640px; margin:0 auto 20px; border-radius:8px; overflow:hidden;}
  .yt-ratio{position:relative; padding-bottom:56.25%; height:0; overflow:hidden;}
  .yt-ratio iframe{position:absolute; top:0; left:0; width:100%; height:100%; border:0; display:block;}

  /* observe activity (listen panel) */
  .observe-fig{margin:28px 0 0;}
  .observe-img{width:100%; border-radius:8px; display:block; box-shadow:0 6px 18px rgba(28,43,52,0.18);}
  /* Mild unsharp mask (#imgSharpen, injected by common.js) for the larger focus
     images, which are only lightly downscaled. Gallery FIG thumbnails do NOT use
     this: they are served as pre-sized thumb-*.png files (see the thumbnail
     convention in CLAUDE.md), so they render crisp on their own and the lightbox
     opens the full-resolution original via each image's data-full attribute. */
  .observe-img{ filter:url(#imgSharpen) contrast(1.03); }
  .observe-caption{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--oat); opacity:0.55; margin-top:10px; line-height:1.6;}
  .observe-intro{font-size:15px; line-height:1.75; color:var(--oat); margin:28px 0 16px;}
  .observe-prompts{margin:0 0 28px; padding-left:0; list-style:none; counter-reset:obs;}
  .observe-prompts li{counter-increment:obs; position:relative; padding:11px 0 11px 34px; border-bottom:1px solid rgba(245,243,240,0.10); font-size:14.5px; line-height:1.65; color:var(--oat);}
  .observe-prompts li:last-child{border-bottom:none; padding-bottom:4px;}
  .observe-prompts li::before{content:counter(obs); position:absolute; left:0; top:13px; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; color:var(--rust); letter-spacing:0.05em;}
  .pullquote cite{display:block; font-family:'IBM Plex Mono',monospace; font-style:normal; font-size:12px; margin-top:12px; opacity:0.75; letter-spacing:0.04em;}
  /* observe activity — overrides for light-background panels */
  .bg-oat-deep .observe-caption{color:var(--ink); opacity:0.5;}
  .bg-oat-deep .observe-intro{color:var(--ink);}
  .bg-oat-deep .observe-prompts li{color:var(--ink); border-bottom-color:var(--paper-line);}

  /* listen panel */
  .player{
    background:var(--bark-soft);
    border:1px solid rgba(245,243,240,0.16);
    border-radius:14px;
    padding:22px 26px;
    display:flex;
    flex-direction:column;
    gap:14px;
    max-width:560px;
    margin-bottom:10px;
  }
  .np-row{display:flex; align-items:center; gap:18px;}
  .np-progress-row{display:flex; align-items:center; gap:10px;}
  .np-time{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--moss-light); min-width:34px; white-space:nowrap;}
  .np-time-right{text-align:right;}
  .np-track{
    flex:1; position:relative; cursor:pointer;
    height:4px; background:rgba(245,243,240,0.15); border-radius:4px;
  }
  .np-track::after{content:''; position:absolute; top:-10px; bottom:-10px; left:0; right:0;}
  .np-fill{height:100%; width:0%; background:var(--moss); border-radius:4px; pointer-events:none;}
  .np-thumb{
    position:absolute; top:50%; left:0%;
    transform:translate(-50%,-50%);
    width:12px; height:12px; background:var(--oat); border-radius:50%;
    pointer-events:none; opacity:0; transition:opacity 0.15s;
  }
  .np-track:hover .np-thumb, .np-track.active .np-thumb{opacity:1;}
  .np-vol-row{display:flex; align-items:center; gap:10px;}
  .np-vol-label{font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:0.08em; color:var(--moss-light);}
  .np-vol-slider{
    -webkit-appearance:none; appearance:none;
    width:88px; height:3px; background:rgba(245,243,240,0.18); border-radius:3px;
    outline:none; cursor:pointer;
  }
  .np-vol-slider::-webkit-slider-thumb{-webkit-appearance:none; width:12px; height:12px; background:var(--moss-light); border-radius:50%; cursor:pointer;}
  .np-vol-slider::-moz-range-thumb{width:12px; height:12px; background:var(--moss-light); border-radius:50%; border:none; cursor:pointer;}
  .playbtn{
    width:46px; height:46px; border-radius:50%;
    background:var(--moss); color:var(--oat);
    border:none; display:flex; align-items:center; justify-content:center;
    font-size:16px; cursor:pointer; flex-shrink:0;
  }
  .player-meta .t1{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--moss-light); margin-bottom:4px;}
  .player-meta .t2{font-size:14px; color:#B0C4CE;}
  .waveform{display:flex; align-items:flex-end; gap:2px; height:22px; margin-left:auto;}
  .waveform i{width:3px; background:var(--moss-light); border-radius:2px; opacity:.8;}

  .vcard{max-width:440px; margin-bottom:14px;}
  .vposter{
    position:relative;
    aspect-ratio:16/9;
    border-radius:12px;
    background:
      radial-gradient(circle at 75% 18%, rgba(106,140,158,0.25), transparent 55%),
      linear-gradient(135deg, var(--moss) 0%, var(--bark-soft) 100%);
    border:1px solid rgba(245,243,240,0.18);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .vposter::after{
    content:"YOUR VIDEO HERE";
    position:absolute; bottom:13px; left:16px;
    font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:.1em;
    color:rgba(245,243,240,0.55);
  }
  .vplay{
    width:54px; height:54px; border-radius:50%;
    background:rgba(245,243,240,0.94); color:var(--bark);
    border:none; font-size:17px; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 18px -6px rgba(0,0,0,0.4);
  }
  .vbadge{
    position:absolute; top:13px; right:15px;
    font-family:'IBM Plex Mono',monospace; font-size:11px;
    background:rgba(28,43,52,0.55); color:var(--oat);
    padding:3px 10px; border-radius:100px;
  }
  .shotlist{
    border:1px solid rgba(245,243,240,0.18); border-radius:10px;
    padding:16px 18px; margin:18px 0 30px; max-width:520px;
  }
  .shotlist .row{display:flex; gap:12px; font-size:12.5px; padding:7px 0; border-bottom:1px dashed rgba(245,243,240,0.14);}
  .shotlist .row:last-child{border-bottom:none;}
  .shotlist .tc{font-family:'IBM Plex Mono',monospace; color:var(--moss-light); flex-shrink:0; width:78px;}
  .shotlist .desc{color:#C0D4DE;}

  .script-toggle{
    background:none; border:1px solid rgba(245,243,240,0.30); color:var(--oat);
    font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.04em;
    padding:9px 16px; border-radius:100px; cursor:pointer; margin-bottom:18px;
  }
  .script{
    max-width:62ch; display:none; color:#D5E5EC; font-size:15.5px; line-height:1.8;
  }
  .script.show{display:block;}
  .script .q{color:var(--moss-light); font-style:italic;}

  /* try panel */
  .try-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:34px;}
  .steplist{list-style:none; padding:0; margin:0; counter-reset:step;}
  .steplist > li{
    counter-increment:step;
    padding:14px 0 14px 38px;
    position:relative;
    border-bottom:1px solid var(--paper-line);
    font-size:14.5px;
  }
  .steplist > li:last-child{border-bottom:none;}
  .step-sub{list-style:disc; padding-left:18px; margin:6px 0 8px; font-size:13.5px; color:inherit;}
  .step-sub li{padding:2px 0; border:none;}
  .steplist > li::before{
    content:counter(step);
    position:absolute; left:0; top:13px;
    width:24px; height:24px; border-radius:50%;
    background:var(--moss); color:var(--oat);
    font-family:'IBM Plex Mono',monospace; font-size:11px;
    display:flex; align-items:center; justify-content:center;
  }
  .steplist b{display:block; font-family:'Fraunces',serif; font-size:15.5px; font-weight:600; margin-bottom:2px;}

  .download-btn{
    display:inline-flex; align-items:center; gap:8px;
    background:var(--moss); color:var(--oat);
    font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.04em;
    padding:11px 20px; border-radius:100px;
    text-decoration:none; margin-top:16px;
    transition:background .2s;
  }
  .download-btn:hover{background:var(--moss-light); color:var(--bark);}
  .btn-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px;}
  .btn-row .download-btn{margin-top:0;}
  .view-btn{background:transparent; color:var(--moss); border:1.5px solid var(--moss);}
  .view-btn:hover{background:var(--moss); color:var(--oat);}

  /* ---------- BOOK COVERS ---------- */
  .book-shelf{display:flex; gap:32px; margin:36px 0; flex-wrap:wrap; align-items:flex-start;}
  .book-fig{flex:0 0 auto; width:150px; text-align:center; margin:0;}
  .book-fig img{width:100%; height:auto; border-radius:4px; box-shadow:0 6px 18px rgba(28,43,52,0.18); display:block;}
  .book-fig figcaption{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ink); opacity:.7; margin-top:10px; line-height:1.5;}
  .book-fig figcaption b{display:block; color:var(--ink); opacity:1;}
  .book-fig--solo{width:180px;}
  .book-shelf--uniform{display:grid; grid-template-columns:repeat(3,1fr); gap:32px;}
  .book-shelf--uniform .book-fig{width:auto; display:flex; flex-direction:column; align-items:center;}
  .book-shelf--uniform .book-fig img{height:200px; width:auto; object-fit:contain;}
  /* Hover-enlarge: hovering a cover OR its title/caption scales the cover up
     smoothly, keeps proportions (transform:scale), and lifts it above siblings. */
  .book-fig{position:relative;}
  .book-fig img{transition:transform .3s ease, box-shadow .3s ease;}
  .book-fig:hover{z-index:5;}
  .book-fig:hover img{transform:scale(1.14); box-shadow:0 18px 36px rgba(28,43,52,0.32); cursor:pointer;}
  /* Book captions stay readable when a shelf sits on a dark panel. */
  .bg-bark .book-fig figcaption, .bg-bark .book-fig figcaption b{color:var(--oat);}

  .reflectbox textarea{
    width:100%; min-height:90px; resize:vertical;
    border:1px solid var(--paper-line); border-radius:8px;
    background:var(--oat); padding:12px 14px;
    font-family:'Inter',sans-serif; font-size:13.5px;
    margin-top:8px;
  }
  .obs-section{padding:16px 0; border-top:1px solid var(--paper-line);}
  .obs-section:first-of-type{border-top:none; padding-top:12px;}
  .obs-section-heading{font-family:'Fraunces',serif; font-size:15px; font-weight:600; color:var(--ink); margin:0 0 8px;}
  .obs-instruction{font-size:13.5px; line-height:1.7; color:var(--ink); margin:0 0 10px;}
  .obs-list{margin:0 0 10px; padding-left:20px; list-style:disc; font-size:13.5px; color:var(--ink); line-height:1.65;}
  .obs-list li{padding:3px 0;}
  .obs-examples{margin:8px 0 12px; padding:10px 14px; background:rgba(28,43,52,0.04); border-radius:6px; font-size:13px; color:var(--ink); line-height:1.8;}
  .obs-examples p{margin:0; font-style:italic;}
  .obs-note{margin-top:12px;}
  .obs-note-label{font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; letter-spacing:0.06em; color:var(--moss); text-transform:uppercase; margin:0 0 3px;}
  .obs-note-prompt{font-size:12.5px; color:var(--ink); opacity:0.65; margin:0;}
  .checklist{list-style:none; padding:0; margin:18px 0 0; display:flex; flex-direction:column; gap:8px;}
  .checklist label{display:flex; gap:10px; align-items:center; font-size:14px; cursor:pointer;}
  .checklist input{accent-color:var(--moss); width:16px; height:16px;}
  .resource-heading{font-family:'Fraunces',serif; font-size:14px; font-weight:600; margin:14px 0 5px; color:var(--ink);}
  .resource-list{margin:0 0 4px; padding-left:18px; list-style:disc; font-size:13px; line-height:1.65;}
  .resource-list li{padding:2px 0;}
  .resource-note{font-size:12px; font-style:italic; color:var(--ink); opacity:0.7; margin:6px 0 10px; padding-left:10px; border-left:2px solid var(--moss);}
  .card{
    background:var(--oat-deep); border:1px solid var(--paper-line);
    border-radius:12px; padding:22px 24px;
  }

  /* ---------- CLASSROOM MANAGEMENT (fixed feature) ---------- */
  .cm-fixed-badge{
    font-family:'IBM Plex Mono',monospace; font-size:9.5px; letter-spacing:.06em;
    background:rgba(200,168,112,0.12); color:var(--rust);
    padding:3px 9px; border-radius:100px; margin-left:8px; text-transform:none;
    vertical-align:middle; display:inline-block;
  }
  .cm-banner{
    display:flex; align-items:center; gap:14px;
    background:#EDE0C8; border:1px solid var(--rust);
    border-radius:10px; padding:14px 18px; margin:22px 0 30px; max-width:62ch;
  }
  .cm-banner-ic{font-size:20px; flex-shrink:0;}
  .cm-banner p{margin:0; font-size:14px; font-weight:600; color:var(--bark);}
  .cm-steps3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:28px;}
  .cm-step{background:var(--oat); border:1px solid var(--paper-line); border-radius:12px; padding:18px 18px 20px;}
  .cm-num{
    display:inline-flex; align-items:center; justify-content:center;
    width:26px; height:26px; border-radius:50%; background:var(--rust); color:var(--oat);
    font-family:'IBM Plex Mono',monospace; font-size:12px; margin-bottom:10px;
  }
  .cm-step b{display:block; font-family:'Fraunces',serif; font-size:15px; margin-bottom:4px; font-weight:600;}
  .cm-step p{font-size:13px; margin:0; opacity:.8;}
  .cm-example-qs{margin:4px 0 18px; padding-left:0; list-style:none; font-size:14px; line-height:1.85; color:var(--ink);}
  .cm-example-qs li{position:relative; padding:3px 0 3px 20px;}
  .cm-example-qs li::before{content:"–"; position:absolute; left:0; color:var(--moss); font-style:normal; font-weight:600;}
  .cm-quick-check{margin:28px 0; padding:20px 24px; background:var(--oat); border-radius:10px; border-left:4px solid var(--moss);}
  .cm-qc-heading{font-family:'Fraunces',serif; font-size:17px; font-weight:600; color:var(--ink); margin:0 0 12px;}
  .cm-quick-check ol{margin:0; padding-left:22px; list-style:decimal; font-size:14px; line-height:1.75; color:var(--ink);}
  .cm-quick-check li{padding:4px 0;}
  .cm-qc-figure{margin:20px 0 0; text-align:center;}
  .cm-qc-figure img{max-width:100%; border-radius:8px; box-shadow:0 6px 18px rgba(28,43,52,0.18);}
  .cm-qc-figure figcaption{margin-top:8px; font-size:13px; font-weight:600; color:var(--bark);}
  @media (max-width:760px){ .cm-steps3{grid-template-columns:1fr;} }

  /* quiz */
  .quiz-band{background:var(--mist-soft);}
  .quiz-band .eyebrow{color:var(--mist);}
  .bg-oat .quiz-band h2, .bg-oat-deep .quiz-band h2, .bg-bark .quiz-band h2{color:var(--ink);}
  .bg-bark .quiz-band{color:var(--ink);}
  .qcard{
    background:var(--oat); border:1px solid var(--paper-line);
    border-radius:12px; padding:24px 26px; margin-bottom:18px;
    transition:border-color .2s;
  }
  .qcard.needs-retry{border-color:rgba(160,57,43,0.45);}
  .qcard.done{border-color:var(--moss);}
  .qcard p.qtext{font-weight:600; margin-bottom:14px; font-size:15px;}
  .opts{display:flex; flex-direction:column; gap:8px;}
  .opt{
    text-align:left; border:1px solid var(--paper-line); background:var(--oat);
    border-radius:8px; padding:10px 14px; font-family:'Inter',sans-serif; font-size:13.5px;
    cursor:pointer; transition:background .2s;
  }
  .opt:hover:not(:disabled){background:var(--oat-deep);}
  .opt.correct{background:#DDE9EF; border-color:var(--moss); font-weight:600;}
  .opt.wrong{background:#F1D9D2; border-color:#A0392B;}
  .opt:disabled{cursor:default;}
  .opt:disabled:not(.correct):not(.wrong){opacity:0.55;}
  .qfeedback{font-size:13px; margin-top:10px; font-style:italic; min-height:18px; color:var(--ink);}
  .q-retry{
    display:none; margin-top:10px;
    font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.06em; font-weight:500;
    background:transparent; border:1px solid var(--rust); color:var(--rust);
    padding:7px 18px; border-radius:100px; cursor:pointer; transition:background .15s, color .15s;
  }
  .q-retry:hover{background:var(--rust); color:var(--oat);}
  .q-retry.show{display:inline-block;}

  /* footer */
  .foot{background:var(--bark); color:var(--oat); padding:40px 6vw 46px;}
  .foot-inner{max-width:880px; margin:0 auto;}
  .progress-track{display:flex; gap:6px; margin:18px 0 22px;}
  .progress-track .seg{flex:1; height:5px; border-radius:3px; background:rgba(245,243,240,0.18);}
  .progress-track .seg.done{background:var(--moss-light);}
  .progress-track .seg.now{background:var(--rust);}
  .next-line{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:#8AAABB;}
  .next-title{font-family:'Fraunces',serif; font-size:20px; margin-top:6px;}
  .progress-indicators{display:flex; gap:0; margin-top:4px;}
  .progress-indicator{flex:1; padding-right:24px;}
  .progress-indicator + .progress-indicator{padding-right:0; padding-left:24px; border-left:1px solid rgba(245,243,240,0.14);}
  .progress-indicator .next-title{margin-bottom:0;}
  a.progress-indicator{text-decoration:none; color:inherit; cursor:pointer; transition:opacity .2s;}
  a.progress-indicator:hover .next-title{color:var(--moss-light); text-decoration:underline;}

  @media (max-width:760px){
    .hero{grid-template-columns:1fr; padding:40px 6vw 44px;}
    .principles{grid-template-columns:1fr;}
    .gallery{grid-template-columns:1fr 1fr;}
    .try-grid{grid-template-columns:1fr;}
    /* Books: fit covers to the available width instead of a fixed height */
    .book-shelf{gap:16px; justify-content:center;}
    .book-shelf--uniform{gap:16px;}
    .book-shelf--uniform .book-fig img{height:auto; width:100%;}
    .book-fig{width:130px; max-width:42vw;}
  }
  @media (max-width:560px){
    .stones{display:flex; height:auto; justify-content:center; align-items:center;}
    .stones > svg{display:none;}
    .stone{position:static; width:50px; height:50px; transform:none; flex:1; max-width:80px; margin:0 2px;}
    .stone i.ti{font-size:14px;}
    .stone:hover{transform:translateY(-4px);}
    .stone.active{transform:translateY(-6px) scale(1.05);}
    .stone.completed{transform:none;}
    .progress-indicators{flex-direction:column; gap:0;}
    .progress-indicator{padding-right:0; padding-bottom:16px;}
    .progress-indicator + .progress-indicator{padding-left:0; border-left:none; border-top:1px solid rgba(245,243,240,0.14); padding-top:16px;}
  }

  /* ---------- PERSISTENT ARTICLE BAR (every module) ---------- */
  body{padding-bottom:72px;}
  .article-bar{
    position:fixed; left:0; right:0; bottom:0; z-index:200;
    background:var(--bark);
    border-top:1px solid rgba(245,243,240,0.14);
    padding:12px 6vw;
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    box-shadow:0 -10px 24px -12px rgba(0,0,0,0.4);
  }
  .article-bar-text{display:flex; flex-direction:column; gap:2px; min-width:0;}
  .article-bar-eyebrow{font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:0.1em; color:var(--moss-light); text-transform:uppercase;}
  .article-bar-title{
    font-size:13px; color:var(--oat); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .article-bar-title b{font-weight:600;}
  .article-bar-btn{
    flex-shrink:0;
    background:var(--moss); color:var(--oat);
    border:none; font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:0.03em;
    padding:10px 16px; border-radius:100px; cursor:pointer;
    display:inline-flex; align-items:center; gap:7px;
    transition:background .2s;
  }
  .article-bar-btn:hover{background:var(--moss-light); color:var(--bark);}

  .article-modal-overlay{
    display:none;
    position:fixed; inset:0; z-index:300;
    background:rgba(28,43,52,0.62);
    align-items:flex-end; justify-content:center;
    padding:0;
  }
  .article-modal-overlay.show{display:flex;}
  .article-modal{
    background:var(--oat);
    width:100%; max-width:760px;
    max-height:88vh;
    border-radius:18px 18px 0 0;
    display:flex; flex-direction:column;
    overflow:hidden;
    animation:slideUp .3s ease;
  }
  @keyframes slideUp{from{transform:translateY(24px); opacity:0;} to{transform:translateY(0); opacity:1;}}
  .article-modal-head{
    padding:22px 28px 16px;
    border-bottom:1px solid var(--paper-line);
    display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
    flex-shrink:0;
  }
  .article-modal-head .tag{
    font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--rust);
    letter-spacing:0.08em; text-transform:uppercase; margin-bottom:6px; display:block;
  }
  .article-modal-head h3{font-size:21px;}
  .article-modal-close{
    background:var(--oat-deep); border:1px solid var(--paper-line);
    width:34px; height:34px; border-radius:50%; cursor:pointer;
    font-size:15px; flex-shrink:0; color:var(--bark);
  }
  .article-modal-body{
    overflow-y:auto; padding:26px 28px 40px;
  }
  .article-modal-body p{font-size:15px; line-height:1.8; margin-bottom:18px; color:var(--ink); max-width:64ch;}
  .article-modal-body p:last-child{margin-bottom:0;}
  .article-modal-end{
    font-family:'IBM Plex Mono',monospace; font-size:11px; opacity:0.45;
    margin-top:22px; letter-spacing:0.08em;
  }
