/* V136 · RTM model visual micro-polish. Presentation only. */

/* Desktop: tighten the hero and make the first viewport feel more deliberate. */
@media (min-width:1060px){
  .guide-hero{padding:56px 0 32px}
  .guide-hero h1{
    font-size:clamp(42px,5.3vw,64px);
    line-height:1.04;
    letter-spacing:-.045em;
    margin:8px 0 12px;
  }
  .guide-hero>div>p{
    max-width:800px;
    font-size:14.5px;
    line-height:1.72;
  }
  .guide-hero .portal-eyebrow{font-size:12px!important;font-weight:950;letter-spacing:.13em}

  .guide-quick-grid{gap:14px;margin-top:26px}
  .guide-quick-grid article{
    display:flex;
    flex-direction:column;
    min-height:0;
    padding:15px 17px 14px;
    border-radius:16px;
  }
  .guide-quick-grid article>b{font-size:14.5px;line-height:1.3}
  .guide-quick-grid p{
    min-height:0!important;
    margin:7px 0 9px;
    font-size:14px!important;
    line-height:1.55!important;
  }
  .guide-quick-grid a{margin-top:auto;padding-top:2px}

  /* Pull the body closer to the hero and give the article a calmer reading measure. */
  .guide-shell{
    grid-template-columns:190px minmax(0,1fr);
    gap:34px;
    padding-top:30px;
    padding-bottom:72px;
  }
  .guide-content{min-width:0}
  .guide-section{padding:14px 0 44px}
  .guide-section h2{
    font-size:clamp(27px,3.25vw,38px);
    line-height:1.12;
    margin:6px 0 13px;
  }
  .guide-section>p{max-width:820px}
  .guide-section .portal-eyebrow{
    font-size:12px!important;
    font-weight:950;
    letter-spacing:.11em;
    color:color-mix(in srgb,var(--x-cyan) 92%,var(--x-text));
  }

  /* Compact sticky table of contents with a visible current-section state. */
  .guide-toc{
    top:128px;
    padding:12px 10px;
    border-radius:14px;
    box-shadow:0 14px 34px rgba(15,34,58,.05);
  }
  .guide-toc strong{font-size:12px;margin:0 7px 7px}
  .guide-toc a{
    position:relative;
    padding:6px 8px!important;
    border-radius:8px;
    border-inline-start:2px solid transparent;
    font-size:12.5px!important;
    line-height:1.28;
    transition:background .18s ease,color .18s ease,border-color .18s ease;
  }
  .guide-toc a.is-active,
  .guide-toc a[aria-current="location"]{
    color:var(--x-text);
    background:color-mix(in srgb,var(--x-cyan) 9%,var(--x-surface));
    border-inline-start-color:var(--x-cyan);
  }
}

/* Medium desktop / compact laptops: keep the hierarchy without making the sidebar dominant. */
@media (min-width:1060px) and (max-width:1380px){
  .guide-hero h1{font-size:clamp(40px,5vw,58px)}
  .guide-shell{grid-template-columns:180px minmax(0,1fr);gap:28px}
  .guide-toc a{font-size:12px!important;padding:5.5px 7px!important}
  .guide-section>p{max-width:790px}
}

/* Tablet and mobile: preserve the existing responsive stacking, only trim excess vertical space. */
@media (max-width:1050px){
  .guide-hero{padding-bottom:34px}
  .guide-shell{padding-top:26px}
  .guide-toc{padding:12px}
  .guide-toc a.is-active,.guide-toc a[aria-current="location"]{
    background:color-mix(in srgb,var(--x-cyan) 9%,var(--x-surface));
    color:var(--x-text);
    border-color:color-mix(in srgb,var(--x-cyan) 45%,var(--x-line));
  }
}

@media (max-width:760px){
  .guide-hero h1{font-size:clamp(38px,11vw,50px);line-height:1.06}
  .guide-quick-grid{margin-top:24px}
  .guide-quick-grid article{padding:16px}
  .guide-quick-grid p{min-height:0!important}
}
