html:has(.guide-page--online-reading){
  scroll-behavior:smooth;
}

.guide-page--online-reading{
  --guide-reading-surface:960px;
  width:min(calc(100% - 40px), 1040px);
  padding-bottom:88px;
}

.guide-page--online-reading .guide-header--article,
.guide-page--online-reading .guide-article__hero{
  width:min(100%, var(--guide-reading-surface));
  margin-right:auto;
  margin-left:auto;
}

.guide-page--online-reading .guide-article__body{
  gap:28px;
}

.guide-page--online-reading .guide-article__hero{
  position:relative;
  overflow:hidden;
  padding:34px 36px;
  border:1px solid rgba(180,138,58,.16);
  border-radius:28px;
  background:
    radial-gradient(circle at 94% 5%, rgba(202,168,108,.2), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,244,235,.9));
  box-shadow:0 18px 50px rgba(51,39,24,.08);
}

.guide-page--online-reading .guide-article__hero::after{
  content:"";
  position:absolute;
  right:-28px;
  bottom:-58px;
  width:190px;
  height:190px;
  border:1px solid rgba(180,138,58,.13);
  border-radius:50%;
  pointer-events:none;
}

.guide-page--online-reading .guide-article__hero > *{
  position:relative;
  z-index:1;
}

.guide-page--online-reading .guide-article__meta span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:4px 10px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:999px;
  background:rgba(255,255,255,.72);
}

.guide-reading-toc{
  position:sticky;
  top:10px;
  z-index:900;
  display:flex;
  align-items:center;
  gap:14px;
  width:min(100%, var(--guide-reading-surface));
  margin:0 auto;
  padding:10px 12px 10px 16px;
  border:1px solid rgba(15,23,42,.1);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  box-shadow:0 14px 34px rgba(15,23,42,.1);
  backdrop-filter:blur(18px);
}

.guide-reading-toc__label{
  flex:0 0 auto;
  color:var(--guide-accent-strong);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.guide-reading-toc__links{
  display:flex;
  min-width:0;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
  overscroll-behavior-inline:contain;
}

.guide-reading-toc__links::-webkit-scrollbar{
  display:none;
}

.guide-reading-toc a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 13px;
  border:1px solid transparent;
  border-radius:999px;
  color:#334155;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:color .18s ease, background-color .18s ease, border-color .18s ease;
}

.guide-reading-toc a:hover,
.guide-reading-toc a:focus-visible{
  border-color:rgba(180,138,58,.24);
  background:rgba(246,238,223,.72);
  outline:none;
}

.guide-reading-toc a.is-active,
.guide-reading-toc a[aria-current="location"]{
  color:#fff;
  border-color:rgba(159,121,48,.36);
  background:linear-gradient(135deg,#caa86c,#a77c30);
  box-shadow:0 8px 18px rgba(159,121,48,.2);
}

.guide-topic-section{
  scroll-margin-top:86px;
  width:min(100%, var(--guide-reading-surface));
  margin:0 auto;
  padding:30px 32px;
  border:1px solid rgba(15,23,42,.075);
  border-radius:24px;
  background:rgba(255,255,255,.74);
  box-shadow:0 12px 34px rgba(15,23,42,.045);
}

.guide-topic-section:nth-of-type(even){
  background:linear-gradient(145deg, rgba(255,255,255,.9), rgba(248,245,238,.8));
}

.guide-topic-section__eyebrow{
  margin:0 !important;
  color:var(--guide-accent-strong) !important;
  font-size:12px !important;
  line-height:1.3 !important;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.guide-topic-section > h2{
  max-width:720px;
  padding-bottom:4px;
}

.guide-topic-section > h2::after{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:12px;
  border-radius:999px;
  background:linear-gradient(90deg,#caa86c,#8c6726);
}

.guide-topic-section > p:not(.guide-topic-section__eyebrow):not(.guide-article__kicker){
  max-width:760px;
}

.guide-teacher-hub{
  padding:30px 32px;
  background:
    radial-gradient(circle at 100% 0, rgba(202,168,108,.15), transparent 28%),
    linear-gradient(150deg, rgba(253,251,247,.96), rgba(242,237,226,.88));
}

.guide-teacher-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}

.guide-teacher-card{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  align-items:start;
  gap:16px;
  height:100%;
  padding:20px;
  border:1px solid rgba(15,23,42,.085);
  border-radius:20px;
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 32px rgba(15,23,42,.07);
}

.guide-teacher-card > img{
  width:76px;
  height:76px;
  border:3px solid rgba(255,255,255,.95);
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 10px 26px rgba(15,23,42,.14);
}

.guide-teacher-card__body{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
}

.guide-teacher-card__status{
  align-self:flex-start;
  display:inline-flex;
  min-height:26px;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  color:#78591f;
  background:#f3ead7;
  font-size:11px;
  line-height:1.3;
  font-weight:800;
}

.guide-teacher-card h3{
  margin:10px 0 6px;
  font-size:23px;
}

.guide-teacher-card p{
  margin:0;
  color:#475569;
  font-size:15px;
  line-height:1.72;
}

.guide-teacher-card__tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:14px;
}

.guide-teacher-card__tags span{
  padding:5px 9px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  color:#475569;
  background:#f8fafc;
  font-size:11px;
  font-weight:700;
}

.guide-teacher-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
  padding-top:16px;
}

.guide-teacher-card__actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 12px;
  border:1px solid rgba(180,138,58,.24);
  border-radius:12px;
  color:#76571e;
  background:#fffaf1;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.guide-teacher-card__actions a:hover,
.guide-teacher-card__actions a:focus-visible{
  color:#fff;
  background:#9d762e;
  outline:none;
}

.guide-reading-process{
  position:relative;
  display:grid;
  gap:12px;
}

.guide-reading-process::before{
  content:"";
  position:absolute;
  top:30px;
  bottom:30px;
  left:31px;
  width:2px;
  background:linear-gradient(#caa86c,rgba(202,168,108,.15));
}

.guide-reading-process .guide-article__card{
  position:relative;
  min-height:104px;
  padding:20px 22px 20px 82px;
  border-radius:18px;
  background:rgba(255,255,255,.9);
}

.guide-reading-process .guide-article__card::before{
  content:attr(data-step);
  position:absolute;
  top:20px;
  left:10px;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:5px solid #fbfaf8;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(135deg,#caa86c,#9d762e);
  font-size:16px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(159,121,48,.2);
}

.guide-reading-process .guide-article__card h3{
  font-size:19px;
}

.guide-review-decision{
  width:min(100%, var(--guide-reading-surface));
}

.guide-review-signals{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.guide-review-signals article{
  display:grid;
  align-content:start;
  gap:8px;
  padding:19px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:rgba(255,255,255,.86);
}

.guide-review-signals strong{
  color:#182133;
  font-size:16px;
  line-height:1.45;
}

.guide-review-signals span{
  color:#526174;
  font-size:14px;
  line-height:1.7;
}

.guide-page--online-reading .guide-faq{
  width:min(100%,var(--guide-reading-surface));
}

.guide-mobile-dock{
  display:none;
}

.guide-page--online-reading :is(a,button):focus-visible{
  outline:3px solid rgba(180,138,58,.35);
  outline-offset:3px;
}

@media (max-width:900px){
  .guide-teacher-grid{
    grid-template-columns:1fr;
  }

  .guide-teacher-card{
    grid-template-columns:86px minmax(0,1fr);
  }

  .guide-review-signals{
    grid-template-columns:1fr;
  }
}

@media (max-width:720px){
  html:has(.guide-page--online-reading){
    scroll-padding-top:82px;
  }

  .guide-page--online-reading{
    width:min(calc(100% - 20px),1040px);
    padding-top:10px;
    padding-bottom:104px;
  }

  .guide-page--online-reading .guide-header--article{
    margin-bottom:18px;
  }

  .guide-page--online-reading .guide-nav{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    min-height:60px;
    padding:8px 10px;
  }

  .guide-page--online-reading .guide-brand{
    flex:1 1 auto;
    gap:8px;
  }

  .guide-page--online-reading .guide-brand picture,
  .guide-page--online-reading .guide-brand img{
    height:28px;
  }

  .guide-page--online-reading .guide-brand__eyebrow{
    font-size:14px;
  }

  .guide-page--online-reading .guide-brand__title{
    display:none;
  }

  .guide-page--online-reading .guide-nav__links{
    display:flex;
    width:auto;
    flex:0 0 auto;
    flex-wrap:nowrap;
    align-items:center;
    gap:6px;
    margin-left:0;
  }

  .guide-page--online-reading .guide-nav__links > a:not(.guide-nav__cta){
    display:none;
  }

  .guide-page--online-reading .guide-nav__links .guide-nav__cta{
    min-height:40px;
    padding:7px 11px;
    font-size:12px;
  }

  .guide-page--online-reading .guide-lang-btn{
    min-height:40px;
    padding:7px 9px;
    font-size:12px;
  }

  .guide-page--online-reading .guide-article__hero{
    gap:13px;
    padding:25px 21px;
    border-radius:22px;
  }

  .guide-page--online-reading .guide-article__hero h1{
    font-size:27px;
    line-height:1.22;
  }

  .guide-page--online-reading .guide-article__lead{
    font-size:15px;
    line-height:1.76;
  }

  .guide-page--online-reading .guide-article__meta{
    gap:7px;
  }

  .guide-page--online-reading .guide-article__meta span{
    min-height:27px;
    padding:3px 8px;
    font-size:11px;
  }

  .guide-reading-toc{
    top:8px;
    display:block;
    width:100%;
    padding:9px;
    border-radius:16px;
  }

  .guide-reading-toc__label{
    display:none;
  }

  .guide-reading-toc__links{
    gap:5px;
  }

  .guide-reading-toc a{
    min-height:44px;
    padding:8px 12px;
    font-size:13px;
  }

  .guide-topic-section,
  .guide-teacher-hub,
  .guide-page--online-reading .guide-faq{
    width:100%;
    padding:23px 19px;
    border-radius:21px;
  }

  .guide-topic-section > h2{
    font-size:23px;
    line-height:1.32;
  }

  .guide-topic-section > h2::after{
    margin-top:10px;
  }

  .guide-topic-section > p:not(.guide-topic-section__eyebrow):not(.guide-article__kicker),
  .guide-topic-section li{
    font-size:15px;
    line-height:1.8;
  }

  .guide-teacher-card{
    grid-template-columns:64px minmax(0,1fr);
    gap:13px;
    padding:17px;
    border-radius:18px;
  }

  .guide-teacher-card > img{
    width:64px;
    height:64px;
  }

  .guide-teacher-card h3{
    margin-top:8px;
    font-size:20px;
  }

  .guide-teacher-card p{
    grid-column:1/-1;
    font-size:14px;
  }

  .guide-teacher-card__tags,
  .guide-teacher-card__actions{
    grid-column:1/-1;
  }

  .guide-teacher-card__actions a{
    flex:1 1 130px;
    min-height:46px;
  }

  .guide-reading-process::before{
    left:26px;
  }

  .guide-reading-process .guide-article__card{
    min-height:96px;
    padding:18px 17px 18px 68px;
  }

  .guide-reading-process .guide-article__card::before{
    left:7px;
    width:39px;
    height:39px;
  }

  .guide-review-signals article{
    padding:17px;
  }

  .guide-mobile-dock{
    position:fixed;
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    left:10px;
    z-index:1100;
    display:grid;
    grid-template-columns:.8fr 1fr 1.15fr;
    gap:6px;
    padding:7px;
    border:1px solid rgba(15,23,42,.12);
    border-radius:18px;
    background:rgba(255,255,255,.94);
    box-shadow:0 18px 44px rgba(15,23,42,.2);
    backdrop-filter:blur(18px);
  }

  .guide-mobile-dock a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:47px;
    padding:7px 8px;
    border-radius:12px;
    color:#334155;
    font-size:12px;
    font-weight:800;
    text-align:center;
    text-decoration:none;
  }

  .guide-mobile-dock a:hover,
  .guide-mobile-dock a:focus-visible{
    background:#f3ead7;
  }

  .guide-mobile-dock .guide-mobile-dock__primary{
    color:#fff;
    background:linear-gradient(135deg,#caa86c,#9d762e);
    box-shadow:0 8px 18px rgba(159,121,48,.22);
  }
}

@media (max-width:390px){
  .guide-page--online-reading .guide-nav__links .guide-nav__cta{
    padding-inline:9px;
  }

  .guide-page--online-reading .guide-lang-btn{
    max-width:68px;
  }

  .guide-teacher-card{
    grid-template-columns:58px minmax(0,1fr);
  }

  .guide-teacher-card > img{
    width:58px;
    height:58px;
  }
}

@media (prefers-reduced-motion:reduce){
  html:has(.guide-page--online-reading){
    scroll-behavior:auto;
  }

  .guide-page--online-reading *,
  .guide-page--online-reading *::before,
  .guide-page--online-reading *::after{
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
}
