@font-face {
  font-family: 'Gandom';
  src: url('/static/fonts/gandom/Gandom-FD.woff2') format('woff2'),
       url('/static/fonts/gandom/Gandom-FD.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --ink:#18122a;
  --muted:#6b6578;
  --paper:#fffdf7;
  --rule:#c5d9ee;
  --margin-red:#e45b6a;
  --purple:#6d53d4;
  --orange:#f07a2e;
  --yellow:#ffe56a;
  --green:#3ea978;
  --blue:#4f8ee8;
  --pink:#f08ab8;
  --red:#e95d69;
  --lh:32px;
  --hand:'Gandom','Vazirmatn',Tahoma,sans-serif;
  --latin:'Patrick Hand','Kalam','Caveat',cursive;
  --mark-yellow:rgba(255,241,168,.55);
  --mark-green:rgba(205,236,210,.52);
  --mark-blue:rgba(198,223,255,.52);
  --mark-peach:rgba(255,224,205,.52);
  --mark-lav:rgba(225,215,255,.48);
  --mark-mint:rgba(210,245,228,.5);
  --hatch-ink:rgba(109,83,212,.09);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
.hn-page{
  margin:0;
  direction:rtl;
  color:var(--ink);
  font-family:var(--hand);
  font-size:19px;
  line-height:var(--lh);
  background:
    radial-gradient(ellipse at 50% 0%,#f3ead6,transparent 55%),
    linear-gradient(180deg,#e6d7b8,#d2c19a 40%,#cbb58a);
  background-color:#d4c4a0;
}
img{max-width:100%}
a{color:inherit;text-decoration:none}
::selection{background:#ffe581}
.ltr{direction:ltr;display:inline-block}

.read-progress{
  position:fixed;z-index:9999;top:0;right:0;left:0;height:6px;background:rgba(255,255,255,.35);
}
.read-progress-bar{
  width:0;height:100%;
  background:linear-gradient(90deg,var(--orange),var(--pink),var(--purple));
  transition:width .08s linear;
}

.notebook-margin{display:none}

.desk{
  width:min(1680px,calc(100% - 20px));
  margin:16px auto 48px;
  position:relative;
}
.notebook{
  position:relative;
  background-color:var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 78px), var(--margin-red) calc(100% - 78px), var(--margin-red) calc(100% - 76px), transparent calc(100% - 76px)),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
  background-attachment:local;
  border-radius:4px 18px 16px 4px;
  box-shadow:
    0 1px 0 #fff inset,
    14px 18px 0 rgba(90,70,40,.08),
    0 28px 60px rgba(70,50,20,.22);
  overflow:visible;
}
.notebook:before{
  content:"";
  position:absolute;inset:0;pointer-events:none;z-index:0;
  opacity:.07;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.punch-col{
  position:absolute;right:18px;top:18px;bottom:18px;width:28px;
  display:flex;flex-direction:column;justify-content:space-around;align-items:center;
  z-index:3;pointer-events:none;
}
.punch-col i{
  width:18px;height:18px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#efe6d4 0 35%,#c4b286 70%);
  box-shadow:inset 0 2px 3px rgba(0,0,0,.28), 0 0 0 3px #d7c39a, 2px 1px 0 #8a7350;
}

.site-shell{
  position:relative;z-index:1;
  width:100%;
  margin:0;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
  padding:14px 12px 28px;
}
.notes-column{min-width:0;width:100%;max-width:100%}

.hero-note,.lesson-note{
  position:relative;
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
  padding:8px 4px 28px 4px;
  margin:0 0 8px;
  overflow:visible;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.hero-note:after,.lesson-note:after{content:"";display:table;clear:both}
.hero-note{
  min-height:auto;
  padding:16px 8px 20px;
}
.lesson-note{
  /* mobile-first: no left sticker gutter — desktop adds it below */
  padding:12px 8px 28px;
}
@media (min-width: 861px){
  .site-shell{
    grid-template-columns:minmax(0,1fr) 300px;
    padding:22px 64px 48px 18px;
  }
  .lesson-note{
    padding:12px 8px 36px 96px;
  }
}

.washi{
  position:absolute;top:-6px;left:18%;
  width:120px;height:18px;
  background:repeating-linear-gradient(90deg,#f7c9de 0 8px,#fde8f1 8px 16px);
  opacity:.85;transform:rotate(-3deg);
  border-radius:2px;
  box-shadow:0 2px 0 rgba(0,0,0,.05);
  pointer-events:none;
}
.washi.blue{left:auto;right:22%;background:repeating-linear-gradient(90deg,#c9e4ff 0 8px,#eaf5ff 8px 16px);transform:rotate(2deg)}
.washi.green{background:repeating-linear-gradient(90deg,#cfeedd 0 8px,#e9f9f0 8px 16px)}

.hero-note .badge{
  display:inline-block;
  font-family:var(--hand);
  background:#fff3dc;
  border:2px solid var(--orange);
  border-radius:40% 60% 45% 55% / 50% 40% 60% 50%;
  color:#a84e14;
  padding:4px 16px;
  box-shadow:3px 3px 0 #ffe0c3;
  transform:rotate(-2deg);
}
.hero-note h1{
  font-family:var(--hand);
  font-size:clamp(40px,5.4vw,68px);
  font-weight:700;
  line-height:1.35;
  margin:18px 0 6px;
  color:#242033;
  text-align:center;
}
.hero-note h1 em{
  color:var(--purple);
  font-style:normal;
  position:relative;
}
.hero-note h1 em:after{
  content:"";
  position:absolute;right:-8px;left:-8px;bottom:4px;height:16px;
  background:rgba(255,216,82,.72);
  z-index:-1;
  transform:rotate(-2deg);
  border-radius:50% 32% 55% 38%;
}
.hero-title-lines{
  display:flex;flex-direction:column;align-items:center;gap:3px;margin:0 auto 10px;width:min(420px,80%);
}
.hero-title-lines b{
  display:block;height:7px;width:100%;border-radius:40%;
}
.hero-title-lines b:first-child{background:#f3b14a;transform:rotate(-1.2deg)}
.hero-title-lines b:last-child{background:#8b74e4;width:86%;transform:rotate(1.4deg)}
.hero-note .sub{
  font-size:20px;
  max-width:none;
  margin:8px 0 14px;
  text-align:justify;
  color:#565c6b;
}

.cover-flow,.logo-row,.cover-note{display:none!important}

.kicker{
  display:inline-block;
  color:var(--purple);
  font-family:var(--hand);
  font-size:16px;
  font-weight:700;
  background:#f1edff;
  border:2px dashed #baaaf0;
  padding:1px 12px;
  border-radius:40% 60% 50% 50% / 50% 40% 60% 50%;
  transform:rotate(-1.4deg);
  margin-bottom:8px;
}
h1.sec,h2,h3,h4{font-family:var(--hand);font-weight:700}
h1.sec{
  font-size:34px;
  line-height:calc(var(--lh)*1.6);
  margin:4px 0 12px;
}
h2{
  display:inline;
  font-size:28px;
  line-height:1.55;
  color:#27243c;
  padding:0 2px;
  background:none;
  box-shadow:inset 0 -.42em 0 rgba(255,213,75,.78);
}
h2:after{display:none!important}
.lesson-note:nth-of-type(3n) h2{box-shadow:inset 0 -.42em 0 rgba(196,176,255,.7)}
.lesson-note:nth-of-type(3n+1) h2{box-shadow:inset 0 -.42em 0 rgba(255,176,120,.7)}
.lesson-note:nth-of-type(3n+2) h2{box-shadow:inset 0 -.42em 0 rgba(150,220,190,.65)}
h3{
  display:table;
  color:var(--orange);
  font-size:22px;
  line-height:var(--lh);
  margin:24px 0 8px;
  position:relative;
}
h3:after{
  content:"";
  height:4px;width:78%;position:absolute;right:0;bottom:-1px;
  background:currentColor;
  transform:rotate(-1.4deg);
  border-radius:40%;
  opacity:.55;
}
h4{font-size:18px}

p{
  font-size:19px;
  line-height:var(--lh);
  text-align:justify;
  margin:0 0 var(--lh);
}
strong{
  color:#17152a;
  font-weight:700;
  background:linear-gradient(transparent 62%,rgba(255,225,111,.55) 62%);
}

.lead,.callout,.term,.quote{
  --pad:#fff59a;
  position:relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0 14px, rgba(255,255,255,0) 26px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(90,70,20,.06) 27px 28px),
    var(--pad);
  border:none;
  border-radius:2px 2px 3px 2px;
  padding:26px 20px 22px;
  margin:22px 8px 28px;
  box-shadow:
    1px 1px 0 rgba(255,255,255,.7) inset,
    2px 3px 0 rgba(0,0,0,.04),
    4px 10px 18px rgba(80,55,20,.16);
  transform:rotate(-1.3deg);
  overflow:visible;
}
.lead:after,.callout:after,.term:after,.quote:after{
  content:"";
  position:absolute;
  top:0;left:0;
  width:0;height:0;
  border-style:solid;
  border-width:0 0 22px 22px;
  border-color:transparent transparent transparent rgba(0,0,0,.10);
  filter:drop-shadow(1px 1px 0 rgba(0,0,0,.05));
}
.lead:before,.callout:before,.term:before{
  content:"";
  position:absolute;
  top:-11px;left:18%;
  width:92px;height:22px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, rgba(255,255,255,.08) 6px 12px),
    linear-gradient(#f3d27a,#e7c15c);
  opacity:.88;
  transform:rotate(-4deg);
  border-radius:2px;
  box-shadow:0 2px 0 rgba(0,0,0,.06);
}

.lead{ --pad:#fff176; transform:rotate(-.8deg); }
.callout{ --pad:#d7ecff; transform:rotate(.7deg); }
.callout.orange{ --pad:#ffd7b0; }
.callout.green{ --pad:#d8f5e4; }
.callout.purple{ --pad:#e7dcff; }
.callout.red{ --pad:#ffd4d8; }
.term{
  --pad:#fffdf4;
  transform:rotate(-.5deg);
  margin:20px 4px 24px;
}
.term:nth-of-type(even){transform:rotate(1deg)}
.term .name{
  font-family:var(--latin),var(--hand);
  color:var(--purple);
  font-size:22px;
  margin-bottom:4px;
}
.term .simple,.term .example{font-size:17px;line-height:var(--lh)}
.term .example{
  border-top:2px dashed #e2ddf3;
  padding-top:8px;margin-top:8px;color:#626979;
}

.sticker{
  display:inline-flex;align-items:center;gap:4px;
  font-family:var(--hand);
  background:#fff;
  border:none;
  border-radius:3px;
  padding:1px 10px 2px;
  transform:rotate(-3deg);
  margin-left:8px;
  box-shadow:1px 2px 0 rgba(0,0,0,.08);
}

.quote{
  --pad:#ffe082;
  font-family:var(--hand);
  font-size:22px;
  text-align:center;
  color:#5c4308;
  transform:rotate(-1.1deg);
  clip-path:polygon(
    2% 6px, 18px 0, 42px 10px, 72px 0, 110px 8px, 150px 0, 86% 7px, 100% 0,
    100% calc(100% - 10px), 92% 100%, 78% calc(100% - 8px), 60% 100%, 40% calc(100% - 9px), 22% 100%, 8% calc(100% - 7px), 0 100%
  );
}
.quote:before{display:none}

.diagram{
  background:rgba(255,255,255,.55);
  border:2.5px dashed #aaa0d7;
  border-radius:22px 16px 24px 18px / 18px 24px 14px 20px;
  padding:18px 14px 16px;
  margin:22px 0;
  position:relative;
}
.diagram:before{
  content:"نقشه‌ی ذهنی";
  position:absolute;top:-14px;right:22px;
  background:#ebe5ff;color:#5f4ec0;
  font-family:var(--hand);
  padding:2px 12px;border-radius:10px;
  transform:rotate(1.4deg);
  border:1.5px solid #c6b8f2;
}
.diagram-title{font-family:var(--hand);font-size:16px;color:#5f6472;margin:4px 0 14px;text-align:center}
.flow{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  align-items:stretch;
  justify-content:center;
  direction:ltr;
  width:100%;
  margin:0 0 10px;
}
.box{
  flex:1 1 0;
  min-width:0;
  background:white;border:2.5px solid #9e9aa9;
  border-radius:16px 12px 18px 14px;
  padding:10px 8px;
  font-weight:700;
  font-size:13.5px;
  line-height:1.35;
  text-align:center;
  box-shadow:3px 4px 0 rgba(30,30,60,.06);
}
.box:nth-of-type(even){transform:rotate(.4deg)}
.box.orange{background:#fff0dc;border-color:#ed9b5c;color:#a95013}
.box.purple{background:#efeaff;border-color:#a994ec;color:#523ebc}
.box.blue{background:#eaf4ff;border-color:#86b2eb;color:#285e9d}
.box.green{background:#eaf9f2;border-color:#82c9a6;color:#126d53}
.box.dark{background:#f1f2f5;border-color:#a9adb7;color:#404651}
.box.red{background:#fff0f0;border-color:#e9a2a2;color:#9f3f3f}
.arrow{
  flex:0 0 22px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;color:#6c5bc9;font-family:var(--latin);
  transform:none;
}

.code{
  direction:ltr;text-align:left;white-space:pre-wrap;
  background:#2b2738;color:#f8f3ff;
  border:3px solid #403959;
  border-radius:18px 12px 20px 14px;
  padding:18px 22px;margin:24px 0;
  font-family:Consolas,'Courier New',monospace;
  line-height:1.75;font-size:14px;
  box-shadow:6px 7px 0 #eee8ff;
  position:relative;
}
.code:before{
  content:"code";
  position:absolute;top:-12px;left:16px;
  font-family:var(--latin);
  background:#ffe56a;color:#3b2d10;
  padding:0 10px;border-radius:8px;
  transform:rotate(-3deg);
  font-size:15px;
}

.source-figure{
  background:#fff;
  border:none;
  border-radius:3px;
  padding:12px 12px 36px;
  box-shadow:4px 10px 18px rgba(60,40,20,.16);
  position:relative;
  transform:rotate(-1.2deg);
}
.source-figure:before{
  content:"";
  position:absolute;left:10px;top:-22px;width:38px;height:48px;
  background:url("/static/imgs/hand-note/stickers/paperclip.svg") center/contain no-repeat;
  transform:rotate(-18deg);
  opacity:1;
  z-index:2;
}
.source-figure .cap{font-family:var(--hand);font-size:15px;color:#636b79;margin-top:8px}
.source-figure .look{
  margin-top:8px;padding:8px 12px;
  background:#f7f4ff;border-radius:12px;color:#574c99;
}

.cols2,.cols3{display:grid;gap:14px}
.cols2{grid-template-columns:repeat(2,1fr)}
.cols3{grid-template-columns:repeat(3,1fr)}
.card{
  background:rgba(255,255,255,.78);
  border:2.5px solid #c8c2dc;
  border-radius:18px 12px 22px 14px / 16px 20px 12px 18px;
  padding:14px;
}
.card:nth-child(2){transform:rotate(.7deg)}
.card:nth-child(3){transform:rotate(-.7deg)}

.brand-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;direction:ltr;margin:20px 0;
}
.logo-row,.cover-flow,.cover-note{
  /* must stay hidden — huge base64 logos blow mobile width if grid wins */
  display:none!important;
}
.brand,.logo-box{
  height:72px!important;width:auto!important;max-width:100%;
  background:#fff;border:2.5px solid #ddd7ea!important;
  border-radius:16px 22px 14px 20px!important;
  display:flex!important;align-items:center;justify-content:center;
  padding:12px!important;
  min-width:0;
  box-sizing:border-box;
}
.brand img,.logo-box img{max-height:42px!important;max-width:100%!important;width:auto!important;height:auto!important}

.timeline{position:relative;padding-right:28px;margin:20px 0}
.timeline:before{
  content:"";position:absolute;right:7px;top:8px;bottom:8px;
  width:4px;background:var(--purple);border-radius:10px;transform:rotate(.4deg);
}
.step{
  position:relative;
  background:rgba(255,255,255,.75);
  border:2.5px solid #d9d3e8;
  border-radius:16px 12px 20px 14px;
  padding:10px 16px;margin:10px 0;
}
.step:before{
  content:"";position:absolute;right:-30px;top:16px;
  width:12px;height:12px;border:3px solid white;
  background:var(--orange);border-radius:50%;
  box-shadow:0 0 0 2px var(--orange);
}

.glossary{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.gitem{
  background:rgba(255,255,255,.7);
  border:2.5px dashed #c6bedf;
  border-radius:16px 12px 20px 14px;
  padding:12px 16px;
}
.gitem b{
  display:block;color:var(--purple);
  direction:ltr;text-align:left;
  font-family:var(--latin),Consolas,monospace;
  font-size:16px;
}
.gitem span{font-size:16px;line-height:1.8}

.key-strip{
  display:flex;flex-wrap:wrap;gap:6px 16px;
  justify-content:center;align-items:center;
  margin:8px 0 14px;padding:4px 0;
}
.key-strip span{
  display:inline-flex;align-items:center;gap:5px;
  font-size:15px;line-height:1.3;
}
.key-strip img{width:26px;height:26px;flex:0 0 26px}
.key-strip i{font-style:normal;color:#6b6578;font-size:12px}
.key-strip b{font-weight:800}

.hl,.lesson-note strong,p strong{
  color:#1e1830;
  font-weight:700;
  background:linear-gradient(transparent 34%,var(--mark-yellow) 34%,var(--mark-yellow) 88%,transparent 88%);
  padding:0 .12em;
  box-decoration-break:clone;-webkit-box-decoration-break:clone;
}
.ul{
  color:#1e1830;
  font-weight:700;
  box-shadow:inset 0 -.32em 0 rgba(140,200,230,.5);
  padding:0 .1em;
}
.circ{
  border:2px solid rgba(228,120,130,.75);
  border-radius:42% 58% 48% 52%;
  padding:.02em .42em .06em;
  display:inline;
  white-space:nowrap;
  background:rgba(255,230,232,.35);
}
.hatch{
  color:#1e1830;
  font-weight:700;
  background-image:
    repeating-linear-gradient(-48deg, transparent 0 3px, var(--hatch-ink) 3px 6px),
    linear-gradient(transparent 34%,var(--mark-lav) 34%,var(--mark-lav) 86%,transparent 86%);
  padding:0 .14em;
  box-decoration-break:clone;-webkit-box-decoration-break:clone;
}
.quote.hatch{
  color:#4a3820;
  font-weight:700;
  background:
    repeating-linear-gradient(-48deg, transparent 0 4px, var(--hatch-ink) 4px 8px),
    var(--mark-yellow);
}
.box-ink{
  border:2px solid rgba(240,150,90,.65);
  border-radius:14px 20px 12px 18px / 16px 12px 20px 14px;
  padding:.05em .4em .08em;
  box-decoration-break:clone;-webkit-box-decoration-break:clone;
  background:var(--mark-peach);
}
.wave{
  text-decoration:underline;
  text-decoration-color:rgba(130,110,200,.75);
  text-decoration-thickness:2.5px;
  text-underline-offset:4px;
  text-decoration-skip-ink:none;
}

.chapter-map{
  margin:6px 0 20px;
  padding:0 2px 4px;
  background:transparent;
  border:none;
  box-shadow:none;
}
.map-scribble{
  display:inline-block;
  margin:0 0 10px;
  padding:2px 10px 4px;
  font-family:var(--hand);
  font-size:17px;
  color:#4a4258;
  font-weight:700;
  transform:rotate(-1.2deg);
  text-decoration:underline wavy #e45b6a;
  text-underline-offset:5px;
  text-decoration-skip-ink:none;
}
ol.toc{
  list-style:none;padding:0;margin:12px 0 8px;
  display:grid;gap:10px;
}
ol.toc li{padding:0;border:none;font-size:16px;margin:0}
ol.toc li:before{content:none;display:none}
ol.toc a{
  display:grid;
  grid-template-columns:2.6em minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:52px;
  padding:12px 14px;
  margin:0;
  background:rgba(255,255,255,.88);
  border:2px dashed #d5cfe8;
  border-radius:14px 16px 12px 15px;
  color:var(--ink);
  line-height:1.55;
  text-decoration:none !important;
  box-shadow:2px 3px 0 rgba(90,70,140,.05);
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor:pointer;
}
ol.toc a:hover,ol.toc a:focus-visible{
  border-color:#b9a8ef;
  background:rgba(255,253,247,.98);
  outline:none;
  transform:translateY(-1px);
}
ol.toc a:active{
  transform:translateY(1px);
  box-shadow:1px 1px 0 rgba(90,70,140,.05);
}
ol.toc a.active{
  border-color:#6f63c7;
  background:rgba(239,234,255,.55);
  box-shadow:inset 0 0 0 1px rgba(111,99,199,.12);
}
ol.toc a.active .toc-title{
  background-image:
    repeating-linear-gradient(-48deg, transparent 0 3px, var(--hatch-ink) 3px 6px),
    linear-gradient(transparent 34%,var(--mark-green) 34%,var(--mark-green) 88%,transparent 88%);
}
ol.toc b,ol.toc .toc-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2.2em;height:2.2em;margin:0;
  background:#efeaff;
  border:1.5px solid #c6b8f2;
  border-radius:50%;
  color:#6f63c7;
  font-family:var(--hand);
  font-size:14px;
  font-weight:800;
  transform:rotate(-6deg);
  text-align:center;
  line-height:1;
  flex:0 0 auto;
}
ol.toc .toc-title{
  min-width:0;
  font-size:15.5px;
  line-height:1.55;
  padding:0 2px;
  color:#18122a;
  font-weight:700;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
ol.toc li:nth-child(5n+1) .toc-title{
  background:linear-gradient(transparent 34%,var(--mark-yellow) 34%,var(--mark-yellow) 88%,transparent 88%);
}
ol.toc li:nth-child(5n+2) .toc-title{
  background:linear-gradient(transparent 34%,var(--mark-green) 34%,var(--mark-green) 88%,transparent 88%);
}
ol.toc li:nth-child(5n+3) .toc-title{
  background:linear-gradient(transparent 34%,var(--mark-blue) 34%,var(--mark-blue) 88%,transparent 88%);
}
ol.toc li:nth-child(5n+4) .toc-title{
  background:linear-gradient(transparent 34%,var(--mark-peach) 34%,var(--mark-peach) 88%,transparent 88%);
}
ol.toc li:nth-child(5n) .toc-title{
  background-image:
    repeating-linear-gradient(-48deg, transparent 0 3px, var(--hatch-ink) 3px 6px),
    linear-gradient(transparent 34%,var(--mark-lav) 34%,var(--mark-lav) 88%,transparent 88%);
}
ol.toc a:hover .toc-title,ol.toc a:focus-visible .toc-title{
  text-decoration:none;
}
ol.toc .toc-go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;height:28px;
  border-radius:50%;
  background:rgba(111,99,199,.1);
  color:#6f63c7;
  font-size:14px;
  font-weight:800;
}

@media(max-width:700px){
  .key-strip{gap:8px 12px;justify-content:flex-start}
  .key-strip span{font-size:14px}
  .key-strip i{display:none}
  .map-scribble{font-size:15px;margin-bottom:8px}
  ol.toc{gap:12px;margin:14px 0 10px}
  ol.toc a{
    min-height:56px;
    padding:14px 14px;
    grid-template-columns:2.4em minmax(0,1fr) auto;
    border-radius:16px;
  }
  ol.toc .toc-title{font-size:15px;line-height:1.6}
  ol.toc b,ol.toc .toc-num{width:2.4em;height:2.4em;font-size:15px}
}

.check{list-style:none;padding:0;display:grid;gap:8px}
.check li{
  position:relative;
  background:transparent;
  border-bottom:2px dashed #e0c869;
  padding:6px 42px 6px 12px;
}
.check li:before{
  content:"✓";
  position:absolute;right:2px;top:6px;
  width:26px;height:26px;border:2.5px solid var(--green);
  color:var(--green);
  border-radius:42% 58% 48% 52%;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
}

.study-toc{
  position:sticky;top:16px;
  max-height:calc(100vh - 28px);
  overflow:auto;
  background:
    repeating-linear-gradient(-48deg, transparent 0 3px, rgba(255,241,168,.22) 3px 6px),
    #fffef5;
  border:2px dashed #e8ddb0;
  border-radius:6px 14px 8px 12px;
  padding:14px 10px 16px;
  box-shadow:3px 5px 0 rgba(160,130,30,.06);
  transform:rotate(1.2deg);
  align-self:start;
}
.study-toc:before{
  content:"";
  position:absolute;top:-10px;left:50%;transform:translateX(-50%) rotate(-8deg);
  width:28px;height:28px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,#ff8a8a,#d94a4a);
  box-shadow:0 3px 0 rgba(0,0,0,.12);
}
.toc-sticker{
  display:inline-block;
  font-family:var(--hand);
  font-size:22px;
  background:transparent;
  border:none;
  padding:10px 8px 8px;
  transform:rotate(1deg);
  margin-bottom:6px;
}
.toc-links a{
  display:flex;gap:10px;align-items:center;
  padding:12px 10px;
  margin-bottom:6px;
  border:2px dashed #e6dfc8;
  border-radius:12px;
  background:rgba(255,255,255,.75);
  font-size:14px;line-height:1.5;color:#55596a;
  text-decoration:none !important;
  min-height:48px;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.toc-links a:hover,.toc-links a.active{
  color:#5a4898;
  font-weight:700;
  border-color:#c6b8f2;
  background:linear-gradient(transparent 38%,var(--mark-green) 38%,var(--mark-green) 92%,transparent 92%);
}
.toc-links a:nth-child(5n+1):hover,.toc-links a:nth-child(5n+1).active{
  background:linear-gradient(transparent 38%,var(--mark-yellow) 38%,var(--mark-yellow) 92%,transparent 92%);
}
.toc-links a:nth-child(5n+2):hover,.toc-links a:nth-child(5n+2).active{
  background:linear-gradient(transparent 38%,var(--mark-green) 38%,var(--mark-green) 92%,transparent 92%);
}
.toc-links a:nth-child(5n+3):hover,.toc-links a:nth-child(5n+3).active{
  background:linear-gradient(transparent 38%,var(--mark-blue) 38%,var(--mark-blue) 92%,transparent 92%);
}
.toc-links a:nth-child(5n+4):hover,.toc-links a:nth-child(5n+4).active{
  background:linear-gradient(transparent 38%,var(--mark-peach) 38%,var(--mark-peach) 92%,transparent 92%);
}
.toc-links a:nth-child(5n):hover,.toc-links a:nth-child(5n).active{
  background:linear-gradient(transparent 38%,var(--mark-lav) 38%,var(--mark-lav) 92%,transparent 92%);
}
.toc-num{
  direction:ltr;min-width:24px;height:24px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#efeaff;color:#604ac2;font-size:11px;font-weight:800;
  font-family:var(--latin);
}

.def-dash{
  display:flex;gap:14px;align-items:flex-start;
  border:2.5px dashed #9b88e0;
  border-radius:28px 22px 30px 20px / 24px 30px 18px 26px;
  padding:14px 18px;
  background:rgba(247,244,255,.55);
  margin:8px 0 18px;
  max-width:none;
}
.def-dash .ico{width:54px;height:54px;flex:0 0 54px}
.def-dash p{margin:0;font-size:18px;line-height:1.7}

.concept-board{
  margin:12px auto 8px;
  min-height:460px;
  position:relative;
  border:2.5px dashed #c7bde2;
  border-radius:32px 20px 34px 22px / 24px 32px 18px 28px;
  background:
    radial-gradient(circle at 18% 18%,rgba(255,230,141,.42),transparent 18%),
    radial-gradient(circle at 80% 20%,rgba(231,211,255,.48),transparent 20%),
    radial-gradient(circle at 80% 82%,rgba(189,238,213,.42),transparent 18%),
    rgba(255,255,255,.35);
  overflow:visible;
}
.notebook-center{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-48%) rotate(-2deg);
  width:250px;height:214px;
  background:#fff;
  border:3px solid #3b354c;
  border-radius:8px 18px 16px 8px;
  box-shadow:9px 12px 0 rgba(112,90,160,.11);
  z-index:2;
}
.notebook-page{
  height:100%;padding:26px 22px 18px 40px;
  background:repeating-linear-gradient(180deg,#fff 0 27px,#dce9f4 27px 28px);
  border-radius:inherit;
  text-align:center;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
}
.notebook-page strong{
  font-family:var(--hand);
  font-size:30px;line-height:1.15;color:#44369a;background:none;
}
.notebook-page em{font-style:normal;color:#666;font-size:14px;margin-top:6px}
.tiny-label{font-family:var(--latin);font-size:12px;color:#ef7623;margin-bottom:8px}
.hand-underline{display:block;width:130px;height:8px;border-bottom:5px solid var(--yellow);transform:rotate(-2deg);border-radius:40%}
.rings{position:absolute;right:-9px;top:16px;bottom:16px;display:flex;flex-direction:column;justify-content:space-around;z-index:2}
.rings i{display:block;width:26px;height:8px;border:3px solid #3b354c;border-right:0;border-radius:10px 0 0 10px}

.concept-chip{
  position:absolute;
  min-width:148px;
  background:white;
  border:2.5px solid #a99fc7;
  border-radius:50% 42% 47% 43%;
  padding:10px 12px;
  text-align:center;
  box-shadow:4px 5px 0 rgba(70,57,104,.07);
  z-index:3;
}
.concept-chip b{display:block;background:none;font-family:var(--latin),var(--hand);font-size:20px}
.concept-chip small{display:block;color:#747989;font-size:12px}
.chip-icon{display:block;width:36px;height:36px;margin:0 auto 2px}
.chip-llm{top:30px;right:56px;background:#fff3dd;transform:rotate(-3deg)}
.chip-attn{top:28px;left:56px;background:#f2edff;transform:rotate(3deg)}
.chip-gpt{bottom:86px;right:40px;background:#eaf8ff;transform:rotate(1.5deg)}
.chip-tools{bottom:86px;left:40px;background:#ecfaef;transform:rotate(-1.5deg)}
.chip-context{bottom:14px;left:50%;transform:translateX(-50%) rotate(1deg);background:#fff0f5}

.arrows{position:absolute;inset:0;width:100%;height:100%;z-index:1;color:#7864c6}
.arrows path{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-dasharray:7 7;marker-end:url(#arrowHead)}
.doodle{position:absolute;z-index:2}
.doodle-a{top:10px;left:46%;width:34px;transform:rotate(18deg)}
.doodle-b{right:14px;top:44%;width:42px;color:#6b58c8}
.doodle-c{left:14px;bottom:44%;width:36px}

.apps-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:14px 0 8px;
}
.app-ico{
  text-align:center;
  padding:12px 8px 10px;
  background:#fffdf8;
  border:2.5px solid #cbbfe8;
  border-radius:18px 14px 20px 16px;
  box-shadow:3px 4px 0 rgba(80,60,120,.08);
}
.app-ico svg,.app-ico img{width:48px;height:48px;margin:0 auto 6px;display:block;object-fit:contain;filter:drop-shadow(1px 2px 0 rgba(0,0,0,.12))}
.app-ico b{display:block;font-size:15px;font-weight:800;color:#3b3550}
.app-ico small{display:block;font-size:12px;color:#747989;line-height:1.4}
.app-ico svg,.app-ico img{width:56px;height:56px;margin:0 auto 4px;display:block;object-fit:contain;filter:drop-shadow(1px 2px 0 rgba(0,0,0,.12))}
.app-ico b{display:block;font-size:14px;font-weight:700;color:#3b3550}
.app-ico small{display:block;font-size:12px;color:#747989}

.star-foot{
  display:flex;gap:12px;align-items:center;
  border:2.5px dashed #e0b84a;
  border-radius:40px;
  padding:10px 16px;
  background:rgba(255,246,180,.45);
  margin:16px 0 8px;
  transform:rotate(-.3deg);
}
.star-foot svg{width:34px;height:34px;flex:0 0 34px}
.star-foot p{margin:0;font-size:17px}

.floating-sticker{
  position:absolute;left:6px;top:18px;
  --pad:#fff59a;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0 10px, transparent 18px),
    var(--pad);
  border:none;
  padding:10px 8px 8px;
  border-radius:2px;
  font-family:var(--hand);
  font-size:13px;
  transform:rotate(-7deg);
  box-shadow:3px 7px 14px rgba(80,50,10,.16);
  z-index:3;
  width:108px;
  max-width:108px;
  line-height:1.35;
  pointer-events:none;
}
.floating-sticker:after{
  content:"";
  position:absolute;top:0;left:0;
  border-style:solid;border-width:0 0 16px 16px;
  border-color:transparent transparent transparent rgba(0,0,0,.1);
}
.lesson-note:nth-of-type(even) .floating-sticker{ --pad:#ffc1d8; top:auto;bottom:28px; }
.lesson-note:nth-of-type(3n) .floating-sticker{ --pad:#c8f2dc; }
.lesson-note:nth-of-type(4n) .floating-sticker{ --pad:#cfe4ff; }

.margin-note{
  position:absolute;
  left:8px;top:46%;
  width:104px;
  color:#7f65d4;
  font-family:var(--hand);
  font-size:13px;
  line-height:1.35;
  transform:rotate(-8deg);
  text-align:center;
  z-index:3;
  pointer-events:none;
}
.margin-note:before{
  content:"";
  display:block;width:28px;height:28px;margin:0 auto 4px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20l2-8 11-11 6 6-11 11-8 2z' fill='black'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20l2-8 11-11 6 6-11 11-8 2z' fill='black'/></svg>") center/contain no-repeat;
}
.margin-doodle{
  position:absolute;
  left:36px;bottom:16px;
  width:40px;height:40px;
  transform:rotate(-12deg);
  z-index:2;
  pointer-events:none;
  opacity:.95;
}
.lesson-note:nth-of-type(odd) .margin-doodle{top:auto;bottom:18px;transform:rotate(8deg)}

.hand-checks{
  list-style:none;padding:0;margin:8px auto 0;max-width:720px;
  display:grid;gap:4px;
}
.hand-checks li{
  position:relative;
  padding:2px 36px 2px 8px;
  font-size:17px;
}
.hand-checks li:before{
  content:"✓";
  position:absolute;right:0;top:2px;
  width:24px;height:24px;
  border:2.5px solid var(--green);
  color:var(--green);
  border-radius:46% 54% 48% 52%;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:14px;
}

.source{font-size:14px;color:#7a7488;border-top:2px dashed #ddd4c4;padding-top:16px;margin-top:24px}

.polaroid-row{
  display:flex;flex-wrap:wrap;gap:18px;justify-content:center;
  margin:18px 0 10px;
}
.polaroid{
  width:178px;
  background:#fff;
  padding:10px 10px 34px;
  box-shadow:3px 8px 16px rgba(40,30,10,.18);
  transform:rotate(-3deg);
  position:relative;
  z-index:2;
}
.polaroid:nth-child(2){transform:rotate(2.5deg);margin-top:12px}
.polaroid:nth-child(3){transform:rotate(-1.4deg)}
.polaroid:nth-child(4){transform:rotate(3.2deg);margin-top:8px}
.polaroid img{
  width:100%;height:118px;object-fit:cover;display:block;
  background:#eee;
  filter:saturate(1.05) contrast(1.05);
}
.polaroid figcaption{
  text-align:center;margin-top:8px;font-size:14px;color:#5a4a32;
}
.polaroid .tape{
  position:absolute;top:-12px;left:50%;transform:translateX(-50%) rotate(-6deg);
  width:78px;height:20px;
  background:linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,240,180,.55), rgba(255,255,255,.15));
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}

.deco-sticker{
  position:absolute;
  left:8px;
  right:auto;
  width:48px;height:48px;
  object-fit:contain;
  filter:drop-shadow(2px 4px 0 rgba(0,0,0,.16));
  pointer-events:none;
  z-index:2;
}
.deco-sticker.s0{left:10px;top:78px;width:52px;transform:rotate(-12deg)}
.deco-sticker.s1{left:28px;bottom:16px;top:auto;width:44px;transform:rotate(14deg)}
.deco-sticker.s2{left:6px;top:58%;bottom:auto;width:46px;transform:rotate(8deg)}
.deco-sticker.s3{left:32px;top:12px;width:42px;transform:rotate(-18deg)}
.deco-sticker.s4{left:14px;bottom:52px;top:auto;width:50px;transform:rotate(12deg)}
.deco-sticker.s5{left:22px;top:38%;width:46px;transform:rotate(-8deg)}
.deco-sticker.mini{width:34px;height:34px;left:72px}

.lesson-note:has(.floating-sticker) .deco-sticker.s3,
.lesson-note:has(.floating-sticker) .deco-sticker.s0{
  top:auto;bottom:64px;
}

.scrap{
  --pad:#fff59a;
  display:block;
  position:absolute;
  left:8px;right:auto;top:auto;bottom:18px;
  width:104px;
  margin:0;
  padding:10px 8px 8px;
  font-size:13px;
  line-height:1.35;
  text-align:center;
  z-index:3;
  transform:rotate(-8deg);
  background:var(--pad);
  box-shadow:3px 6px 12px rgba(80,50,10,.14);
  border-radius:2px;
  pointer-events:none;
}
.scrap.pink{ --pad:#ffc2d6; left:8px;right:auto;top:auto;bottom:18px;transform:rotate(7deg)}
.scrap.mint{ --pad:#c9f3dc; left:8px;right:auto;bottom:18px;transform:rotate(-4deg)}
.scrap.sky{ --pad:#cfe6ff; left:8px;right:auto; }

.lesson-note:has(.floating-sticker) .scrap{
  bottom:auto;top:52%;
}
.lesson-note:nth-of-type(even):has(.floating-sticker) .scrap{
  top:18px;bottom:auto;
}

.lesson-note > figure.polaroid{
  float:none !important;
  display:block;
  width:160px;
  margin:10px 0 18px auto !important;
  clear:both;
}

.lesson-note > p,
.lesson-note > h1,
.lesson-note > h2,
.lesson-note > h3,
.lesson-note > h4,
.lesson-note > .kicker,
.lesson-note > .lead,
.lesson-note > .callout,
.lesson-note > .term,
.lesson-note > .quote,
.lesson-note > .diagram,
.lesson-note > .source-figure,
.lesson-note > .cols2,
.lesson-note > .cols3,
.lesson-note > .glossary,
.lesson-note > .check,
.lesson-note > ol,
.lesson-note > ul{
  position:relative;
  z-index:5;
}

.washi{z-index:1}

@media(max-width:860px){
  .site-shell{
    grid-template-columns:1fr !important;
    padding:12px 10px 28px !important;
    gap:0 !important;
  }
  .study-toc{display:none !important}
  .lesson-note{
    padding:12px 6px 24px !important;
    padding-left:6px !important;
    padding-right:6px !important;
  }
  .floating-sticker,
  .margin-note,
  .margin-doodle,
  .scrap,
  .washi,
  .deco-sticker{
    display:none !important;
  }
}
@media(max-width:700px){
  .hn-page{font-size:17px;background:#d4c4a0;overflow-x:hidden}
  .desk{width:100%;max-width:100%;margin:0 0 24px;padding:0}
  .notebook{
    border-radius:0;
    box-shadow:none;
    background-image:repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
  }
  .punch-col{display:none}
  .site-shell{width:100%;max-width:100%;padding:10px 12px 24px !important}
  .hero-note,.lesson-note{padding:14px 4px 20px !important;border-radius:0}
  .lesson-note{padding:14px 4px 22px !important}
  .lesson-note > figure.polaroid{margin:12px auto !important;float:none}
  .hero-note h1{font-size:28px}
  .hero-note .sub{font-size:16px}
  h1.sec{font-size:24px}
  h2{font-size:21px}
  h3{font-size:18px}
  p{font-size:16.5px}
  .cols2,.cols3,.glossary{grid-template-columns:1fr}
  .brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .logo-row,.cover-flow,.cover-note{display:none!important}
  .def-dash{margin:8px 0 16px;padding:12px 12px;gap:10px;width:100%;box-sizing:border-box}
  .def-dash .ico{width:44px;height:44px;flex:0 0 44px}
  .def-dash p{font-size:16px}
  .callout,.lead,.term,.quote{margin:16px 0 20px;padding:20px 14px 18px}
  .apps-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .source-figure{overflow:auto;max-width:100%}
  .source-figure img{max-width:100%;height:auto}
  .flow{flex-direction:column;align-items:stretch;gap:6px}
  .arrow{transform:rotate(90deg);height:18px;line-height:18px;flex-basis:18px}
  .box{width:100%;font-size:15px;padding:10px 12px}
  .diagram{padding:16px 10px 12px}
  .key-strip{justify-content:flex-start;gap:8px 10px}
}
.hn-page{
  margin:0;
  padding:0 0 2rem;
  min-height:60vh;
  max-width:100%;
  overflow-x:hidden;
}
.hn-home{
  max-width:100%;
  overflow-x:hidden;
}
.hn-home > *{
  min-width:0;
  max-width:100%;
}
.desk,.notebook,.site-shell,.notes-column{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.notebook{overflow-x:hidden}
.hn-page .read-progress{z-index:9000}
.hn-page .desk{margin-top:0}
@media(max-width:860px){
  .hn-page .study-toc{display:none!important}
}

/* Notebook YouTube note: cover + outbound YT panel (no embed) */
.hn-yt-note{
  --yt-ink:#2f2a3d;
  --yt-purple:#6b5ce7;
  --yt-purple-soft:#eef0ff;
  --yt-red:#e11d1d;
  --yt-blue:#3b82f6;
  position:relative;
  margin:0 0 1.7rem;
  padding:.35rem .15rem 1.1rem;
  overflow:visible;
}
.hn-yt-s{
  position:absolute;
  z-index:5;
  pointer-events:none;
  filter:drop-shadow(1px 2px 0 rgba(47,42,61,.12));
}
.hn-yt-s.s-star{top:-.2rem;right:-.15rem;width:48px;transform:rotate(8deg)}
.hn-yt-s.s-heart{top:2.4rem;right:2.6rem;width:22px;transform:rotate(-12deg);opacity:.9}
.hn-yt-s.s-arrow{top:4.6rem;right:42%;width:78px;transform:rotate(8deg) scaleX(-1);opacity:.95}
.hn-yt-s.s-spark{bottom:4.2rem;left:.2rem;width:34px;transform:rotate(-14deg)}
.hn-yt-tape{
  position:absolute;
  z-index:4;
  pointer-events:none;
  height:20px;
  border-radius:2px;
  box-shadow:0 1px 0 rgba(255,255,255,.45) inset, 1px 2px 0 rgba(47,42,61,.08);
}
.hn-yt-tape.t-pink{
  top:-6px;left:18%;
  width:92px;
  background:rgba(255,170,190,.88);
  border:1px solid rgba(200,90,120,.28);
  transform:rotate(-5deg);
}
.hn-yt-tape.t-lilac{
  top:-4px;right:28%;
  width:70px;
  background:rgba(186,170,255,.82);
  border:1px solid rgba(110,90,200,.25);
  transform:rotate(4deg);
}
.hn-yt-note-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.05rem;
  position:relative;
  z-index:2;
  align-items:start;
}
.hn-yt-cover-card{
  position:relative;
  display:block;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  border:2.5px dashed #8eb6e8;
  text-decoration:none !important;
  box-shadow:0 10px 24px rgba(70,90,140,.1);
  aspect-ratio:16/11;
  min-height:200px;
  transform:rotate(.4deg);
}
.hn-yt-cover-tape{
  position:absolute;
  top:-8px;
  left:14%;
  width:78px;
  height:22px;
  background:rgba(255,170,190,.9);
  border:1px solid rgba(200,90,120,.3);
  transform:rotate(-8deg);
  z-index:3;
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset;
}
.hn-yt-cover-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease, filter .2s ease;
}
.hn-yt-cover-card:hover .hn-yt-cover-img{transform:scale(1.03);filter:brightness(.9)}
.hn-yt-play{
  position:absolute;
  left:50%;
  top:46%;
  transform:translate(-50%,-50%);
  width:70px;
  height:70px;
  border-radius:50%;
  background:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  z-index:2;
  transition:transform .18s ease;
}
.hn-yt-play i{
  width:0;height:0;
  border-style:solid;
  border-width:11px 0 11px 17px;
  border-color:transparent transparent transparent var(--yt-red);
  margin-left:3px;
}
.hn-yt-cover-card:hover .hn-yt-play{transform:translate(-50%,-50%) scale(1.06)}
.hn-yt-chip{
  position:absolute;
  right:0;left:0;bottom:0;
  background:rgba(107,92,231,.94);
  color:#fff;
  text-align:center;
  font-family:var(--hand);
  font-size:1rem;
  font-weight:700;
  padding:.42rem .6rem;
  z-index:2;
}
.hn-yt-side{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  min-width:0;
  padding:.15rem .2rem 0;
}
.hn-yt-side-head{
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
}
.hn-yt-side-head h2{
  margin:0;
  font-family:var(--hand);
  font-size:clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight:800;
  color:var(--yt-ink);
  position:relative;
  display:inline-block;
  line-height:1.35;
}
.hn-yt-side-head h2::after{
  content:"";
  position:absolute;
  right:0;left:8%;
  bottom:-.12rem;
  height:4px;
  border-radius:3px;
  background:linear-gradient(90deg, var(--yt-purple), rgba(107,92,231,.15));
  transform:rotate(-1.2deg);
}
.hn-yt-yt-ico{
  width:30px;height:30px;
  border-radius:8px;
  transform:rotate(6deg);
  filter:drop-shadow(1px 2px 0 rgba(47,42,61,.12));
}
.hn-yt-side-lead{
  margin:.15rem 0 0;
  font-size:.98rem;
  line-height:1.85;
  color:#4d4760;
}
.hn-yt-checks{
  list-style:none;
  margin:.1rem 0 0;
  padding:0;
  display:grid;
  gap:.55rem;
}
.hn-yt-checks li{
  display:flex;
  align-items:center;
  gap:.45rem;
  color:var(--yt-ink);
  font-size:.96rem;
  font-weight:650;
  line-height:1.45;
}
.hn-yt-checks li span{flex:1 1 auto}
.hn-yt-check{flex:0 0 auto;width:18px;height:18px}
.hn-yt-bico{
  flex:0 0 auto;
  width:28px;height:28px;
  transform:rotate(4deg);
  filter:drop-shadow(1px 1px 0 rgba(47,42,61,.1));
}
.hn-yt-checks li:nth-child(2) .hn-yt-bico{transform:rotate(-6deg)}
.hn-yt-checks li:nth-child(3) .hn-yt-bico{transform:rotate(8deg)}
.hn-yt-btns{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:.2rem;
}
.hn-yt-watch,
.hn-yt-copy{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  border-radius:14px;
  font-family:var(--hand);
  font-size:.98rem;
  font-weight:800;
  padding:.72rem 1.05rem;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.hn-yt-watch{
  background:var(--yt-red);
  color:#fff !important;
  text-decoration:none !important;
  border:0;
  box-shadow:0 7px 0 rgba(160,18,18,.28);
  flex:1 1 200px;
}
.hn-yt-watch:hover{transform:translateY(-1px);box-shadow:0 8px 0 rgba(160,18,18,.3)}
.hn-yt-watch-ico{
  display:inline-grid;
  place-items:center;
  width:22px;height:22px;
  border-radius:50%;
  background:rgba(255,255,255,.2);
  font-size:.7rem;
  line-height:1;
}
.hn-yt-copy{
  background:#fff;
  color:var(--yt-red);
  border:2px solid var(--yt-red);
  box-shadow:0 4px 0 rgba(225,29,29,.12);
  flex:0 1 auto;
}
.hn-yt-copy:hover{transform:translateY(-1px)}
.hn-yt-short{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.4rem .55rem;
  background:linear-gradient(90deg, #e8ecff, #f3f5ff);
  border:1.5px dashed rgba(107,92,231,.28);
  border-radius:12px;
  padding:.55rem .75rem;
  color:#5a4db8;
  font-size:.86rem;
}
.hn-yt-short code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.88rem;
  font-weight:700;
  color:var(--yt-ink);
  direction:ltr;
}
.hn-yt-short em{font-style:normal;opacity:.75;margin-right:auto}
.hn-yt-tip{
  position:relative;
  margin-top:.25rem;
  background:#fff;
  border:2px solid #d9d3e8;
  border-radius:14px;
  padding:.85rem 1rem .85rem 2.6rem;
  box-shadow:3px 4px 0 rgba(47,42,61,.06);
  color:#4d4760;
  font-size:.9rem;
  line-height:1.7;
}
.hn-yt-tip p{margin:0}
.hn-yt-tip-pin{
  position:absolute;
  top:-12px;
  right:.7rem;
  width:28px;
  transform:rotate(12deg);
  filter:drop-shadow(1px 2px 0 rgba(47,42,61,.15));
}
.hn-yt-tip-arrow{
  position:absolute;
  left:-.15rem;
  bottom:-.35rem;
  width:64px;
  transform:rotate(-20deg) scaleY(-1);
  opacity:.95;
  pointer-events:none;
}
@media (min-width:900px){
  .hn-yt-note{padding:.5rem .25rem 1.25rem}
  .hn-yt-note-grid{
    grid-template-columns:1.15fr .95fr;
    gap:1.25rem;
    align-items:center;
  }
  .hn-yt-cover-card{min-height:280px;aspect-ratio:5/4}
  .hn-yt-s.s-arrow{right:46%;top:3.8rem;width:90px}
}
@media (max-width:899px){
  .hn-yt-note{margin-bottom:1.35rem}
  .hn-yt-s.s-arrow,
  .hn-yt-s.s-heart,
  .hn-yt-s.s-spark{display:none}
  .hn-yt-s.s-star{width:38px;top:0;right:0}
  .hn-yt-play{width:58px;height:58px}
  .hn-yt-play i{border-width:9px 0 9px 14px}
  .hn-yt-watch,.hn-yt-copy{width:100%}
  .hn-yt-short em{width:100%;margin:0}
  .hn-yt-tip{padding:.8rem .85rem .8rem .85rem}
  .hn-yt-tip-arrow{display:none}
  .hn-yt-tip-pin{right:auto;left:.55rem}
}

.hn-article-cover{
  margin:0 0 1.25rem;
  border:2.5px solid #3a3648;
  border-radius:14px 18px 12px 16px;
  overflow:hidden;
  box-shadow:4px 6px 0 rgba(58,54,72,.1);
  transform:rotate(-.5deg);
  background:#fff;
}
.hn-article-cover img{
  width:100%;
  display:block;
  object-fit:cover;
  max-height:420px;
}
.hn-related{
  width:min(1120px, calc(100% - 16px));
  margin:0 auto 1.4rem;
  padding:0;
}
.hn-related-inner{
  position:relative;
  background-color:#fffdf7;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 18px), #e45b6a calc(100% - 18px), #e45b6a calc(100% - 16px), transparent calc(100% - 16px)),
    repeating-linear-gradient(180deg, transparent 0 31px, #c5d9ee 31px 32px);
  border:2px dashed #d7d0c0;
  border-radius:18px;
  box-shadow:0 1px 0 #fff inset, 0 10px 28px rgba(40,55,90,.1);
  padding:1.35rem 1.2rem 1.55rem;
}
.hn-related-head{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:wrap;
  margin:0 0 1.05rem;
  position:relative;
}
.hn-related-title{
  font-family:var(--hand);
  font-size:clamp(1.15rem, 2.4vw, 1.55rem);
  margin:0;
  color:#1e1830;
  display:inline-block;
  background:linear-gradient(transparent 55%, rgba(255,241,168,.9) 55%);
  padding:.1rem .35rem .15rem;
  border:2px solid #1e1830;
  border-radius:999px;
  box-shadow:3px 3px 0 rgba(30,24,48,.08);
}
.hn-related-arrow{
  font-size:1.6rem;
  color:#6f63c7;
  line-height:1;
  transform:rotate(8deg);
}
.hn-related-star{
  width:28px;height:28px;
  transform:rotate(12deg);
}
.hn-related-clip{
  position:absolute;
  left:18px;bottom:-10px;
  width:34px;height:34px;
  transform:rotate(-18deg);
  opacity:.9;
  pointer-events:none;
}
.hn-related-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1rem;
  width:100%;
}
.hn-related-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:.55rem;
  padding:.85rem .85rem 1rem;
  border:2px dashed #d8d2c4;
  border-radius:16px;
  background:rgba(255,255,255,.88);
  text-decoration:none;
  color:#1e1830;
  min-width:0;
  box-shadow:3px 4px 0 rgba(58,54,72,.06);
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.hn-related-card:hover{
  background:#fff;
  transform:translateY(-3px) rotate(-.4deg);
  box-shadow:4px 8px 0 rgba(58,54,72,.08);
}
.hn-related-washi{
  position:absolute;
  top:-10px;left:50%;
  transform:translateX(-50%) rotate(-2deg);
  width:72px;height:18px;
  border-radius:3px;
  background:rgba(146,120,220,.72);
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset;
  z-index:2;
}
.hn-related-card:nth-child(3n+2) .hn-related-washi,
.hn-related-card.tape-2 .hn-related-washi{
  background:rgba(95,143,240,.72);
  transform:translateX(-50%) rotate(2deg);
}
.hn-related-card:nth-child(3n+3) .hn-related-washi,
.hn-related-card.tape-3 .hn-related-washi{
  background:rgba(62,169,121,.72);
  transform:translateX(-50%) rotate(-1deg);
}
.hn-related-cover{
  width:100%;
  aspect-ratio:1.15 / 1;
  border-radius:12px;
  overflow:hidden;
  border:2px solid #ebe4d6;
  background:#f7f3ea;
  display:grid;
  place-items:center;
}
.hn-related-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hn-related-cover .hn-related-fallback{
  width:48px;height:48px;object-fit:contain;opacity:.75;
}
.hn-related-body{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  min-width:0;
  flex:1;
}
.hn-related-card-title{
  margin:0;
  font-family:var(--hand);
  font-size:1.05rem;
  font-weight:800;
  line-height:1.55;
  color:#1e1830;
}
.hn-related-tag{
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  font-size:.78rem;
  font-weight:700;
  color:#5a5470;
  background:#f4f0ff;
  border:1.5px dashed #cbbff0;
  border-radius:999px;
  padding:.15rem .55rem .15rem .35rem;
  width:fit-content;
  max-width:100%;
}
.hn-related-tag span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:18ch;
}
.hn-related-tag img{flex:0 0 auto}
.hn-related-cta{
  margin-top:auto;
  padding-top:.35rem;
  font-family:var(--hand);
  font-size:.95rem;
  font-weight:800;
  color:#6f63c7;
}
.hn-related-card:hover .hn-related-cta{color:#5648b4}
@media(max-width:900px){
  .hn-related-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .hn-related{width:100%;margin:0 0 1rem;padding:0}
  .hn-related-inner{
    border-radius:0;
    border-left:0;border-right:0;
    box-shadow:none;
    padding:1rem .85rem 1.25rem;
  }
  .hn-related-grid{grid-template-columns:1fr;gap:.75rem}
  .hn-related-clip{display:none}
}
