/* Shared resource discovery and compact reading layout. */
.library-content,.home-discovery{width:min(1200px,100%);margin:auto;padding:2.5rem clamp(1.25rem,4vw,3rem);color:var(--theme-text,#0a1020)}
.home-discovery{padding-top:3.5rem;padding-bottom:1rem}
.home-discovery>h2{margin:0;font-size:clamp(1.9rem,3.4vw,3rem);line-height:1.1;letter-spacing:-.04em}
.home-discovery>p{max-width:65ch;color:var(--theme-muted,#526078);line-height:1.6}
.library-availability{display:flex;flex-wrap:wrap;gap:.7rem 1.5rem;padding:0 0 1.5rem;font-size:.85rem;color:var(--theme-muted,#526078)}
.library-availability strong{color:var(--theme-text,#0a1020);font-size:1.15rem;margin-right:.2rem}
.resource-search{margin:1rem 0 2rem;max-width:100%}
.resource-search>label{display:block;font-weight:750;font-size:1.05rem}
.resource-search>p{margin:.5rem 0;color:var(--theme-muted,#526078);font-size:.88rem;line-height:1.5}
.resource-search-input{position:relative;max-width:720px;margin-top:.85rem}
.resource-search input{box-sizing:border-box;width:100%;min-height:54px;padding:.85rem 3rem .85rem 1rem;color:var(--theme-text,#0a1020);background:var(--theme-panel,#fff);border:1px solid var(--theme-line,#d8e0ec);border-radius:8px;font:inherit}
.resource-search input:focus-visible{outline:3px solid #168aca;outline-offset:3px}
.resource-search-input button{position:absolute;right:6px;top:6px;width:42px;height:42px;color:var(--theme-text,#0a1020);background:transparent;border:0;border-radius:5px;font-size:1.7rem;cursor:pointer}
.resource-search-input button:hover{background:var(--theme-panel-2,#edf3fa)}
.resource-search [data-search-results]{margin-top:1.1rem}
[hidden]{display:none!important}
.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.guide-card{min-width:0;margin:0;background:var(--theme-panel,#fff);border:1px solid var(--theme-line,#d8e0ec);border-radius:10px;transition:border-color 140ms ease,box-shadow 140ms ease}
.guide-card:hover{border-color:#0078d4;box-shadow:0 8px 24px var(--theme-shadow,rgba(28,44,75,.1))}
.guide-card-link{display:flex;flex-direction:column;height:100%;gap:0;padding:1.4rem;color:var(--theme-text,#0a1020);text-decoration:none;border-radius:10px}
.guide-card-link:focus-visible{outline:3px solid #168aca;outline-offset:3px}
.guide-card h3{margin:.95rem 0 .55rem;font-size:clamp(1.1rem,1.8vw,1.35rem);line-height:1.3;letter-spacing:-.02em;overflow-wrap:anywhere}
.guide-card p{margin:0 0 1.3rem;line-height:1.6;font-size:.93rem;color:var(--theme-muted,#526078);overflow-wrap:anywhere}
.guide-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;font-size:.7rem;color:var(--theme-muted,#526078)}
.resource-state{padding:.25rem .5rem;border-radius:4px;font-weight:700;background:var(--theme-panel-2,#edf3fa);color:var(--theme-text,#0a1020)}
.resource-state[data-state="draft"]{background:#fff2d6;color:#674606}
html[data-theme="dark"] .resource-state[data-state="draft"]{background:#3b2c10;color:#ffce77}
.guide-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:auto;font-size:.72rem;color:var(--theme-muted,#526078)}
.guide-card-bottom>span:last-child{color:#0078d4;font-size:1.3rem}
html[data-theme="dark"] .guide-card-bottom>span:last-child{color:#4cc2ff}
.library-group{margin:2.25rem 0}
.library-group>h2{font-size:1.35rem;line-height:1.25}
.library-group>p{color:var(--theme-muted,#526078);line-height:1.6}
.planned-topics{margin:2.5rem 0;padding:1.2rem;background:var(--theme-panel-2,#edf3fa);border:1px solid var(--theme-line,#d8e0ec);border-radius:8px}
.planned-topics summary{cursor:pointer;font-weight:750;padding:.3rem;line-height:1.5}
.planned-topics ul{list-style:none;margin:1.3rem 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem}
.planned-topics li{line-height:1.5;min-width:0}
.planned-topics p{color:var(--theme-muted,#526078);font-size:.9rem;line-height:1.6}
.resource-header .languages a{display:grid;place-items:center;min-height:38px;min-width:38px;border-radius:4px}
.resource-header .languages a[aria-current="page"]{background:rgba(255,255,255,.13)}
.category-summary{max-width:64ch;line-height:1.65;color:rgba(255,255,255,.78)}
.resource-hero .hero-shell{padding-top:2.5rem;padding-bottom:2.5rem}
.featured-label{margin:2rem 0 1rem;font-size:1rem}
.home-discovery [data-featured-guides]{grid-template-columns:repeat(3,minmax(0,1fr))}
.contact-bridge{flex-direction:column}
.contact-bridge .contact-copy{max-width:700px;margin:0 auto 1.5rem;text-align:center;color:rgba(255,255,255,.78);line-height:1.7}
.contact-bridge h2{margin:0 0 .65rem;font-size:clamp(1.6rem,3vw,2.5rem);line-height:1.2;color:#fff}
.contact-bridge .contact-secondary{display:block;margin:1.25rem auto 0;text-align:center;color:#fff;text-decoration:underline;text-underline-offset:4px}

/* Bring the first action closer and expose desktop navigation labels. */
body[data-resource] .hero-shell{padding-top:2rem;padding-bottom:2rem}
body[data-resource] .back-link{margin-bottom:1.25rem}
body[data-resource] .article-hero h1{font-size:clamp(2.25rem,4.8vw,4.5rem);line-height:1.06;letter-spacing:-.045em}
body[data-resource] .hero-copy{margin-top:1rem;max-width:70ch;font-size:1rem;line-height:1.65}
.article-entry{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;align-items:center;margin-top:1.25rem;font-size:.8rem;color:rgba(255,255,255,.8)}
.article-entry a{font-weight:750;color:#a8ff2f;text-decoration:underline;text-underline-offset:4px}
body[data-resource] .article-layout{padding-top:2rem;padding-bottom:3rem}
.validation-note{flex-basis:100%;margin:.3rem 0 0!important;font-size:.76rem!important;line-height:1.5;color:var(--theme-muted,#526078)}
.resource-review{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .8rem;margin-bottom:.75rem;font-size:.72rem}
.resource-review .validation-note{flex-basis:auto;margin:0!important}
.page-tools{margin:0 0 1.5rem;border-bottom:1px solid var(--theme-line,#d8e0ec);padding:.3rem 0 .75rem}
.page-tools>summary{font-size:.8rem;cursor:pointer;color:var(--theme-muted,#526078);padding:.4rem 0}
.page-tools .sop-toolbar{margin-top:.7rem}
.article-feedback:empty{display:none}
.article-feedback{position:fixed;left:1rem;bottom:1rem;z-index:100;max-width:min(34rem,calc(100vw - 6rem));margin:0;padding:.85rem 1rem;border:1px solid var(--theme-line,#d8e0ec);border-radius:8px;background:var(--theme-panel,#fff);color:var(--theme-text,#0a1020);box-shadow:0 6px 24px rgba(0,0,0,.15);font-size:.9rem;line-height:1.5}
body[data-template="troubleshooting"] .article-hero h1{font-size:clamp(2.2rem,4.2vw,3.8rem)}
body[data-template="troubleshooting"] .article-body h2{font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.15;letter-spacing:-.025em}
body[data-template="troubleshooting"] .article-body p{font-weight:400;line-height:1.7}
.guide-facts{display:grid;gap:1rem;margin:1.2rem 0}
.guide-facts>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:1rem;padding:1rem;background:var(--theme-panel-2,#edf3fa);border-radius:6px}
.guide-facts dt{font-weight:750}.guide-facts dd{margin:0;line-height:1.65;color:var(--theme-muted,#526078)}
.recovery-sequence{margin-top:1.5rem;padding:1.1rem 1.3rem;border-left:4px solid #0078d4;background:var(--theme-panel-2,#edf3fa);border-radius:4px}
.recovery-sequence h3{margin-top:0}.recovery-sequence li{margin:.8rem 0;line-height:1.65}
.decision-badge[data-decision="unknown"]{background:#fff2d6;color:#674606}
.outcome-grid article[data-outcome="unknown"]{border-color:#c48b26}
body[data-template="troubleshooting"] .article-body a:not(.tool-action){text-decoration:underline;text-underline-offset:3px}
body[data-template="troubleshooting"] .article-body .reference-list a{text-decoration:none}
@media(min-width:1120px) and (hover:hover) and (pointer:fine){
  body[data-resource] .article-layout{grid-template-columns:minmax(0,1fr) 220px;width:min(1460px,100%)}
  body[data-resource] .toc{width:220px;padding:1rem;background:var(--theme-panel,#fff);border:1px solid var(--theme-line,#d8e0ec);border-radius:8px;max-height:calc(100dvh - 110px);overflow-y:auto}
  body[data-resource] .toc-panel{width:auto}
  body[data-resource] .toc-panel>strong,body[data-resource] .toc-progress{position:static;width:auto;height:auto;clip:auto;overflow:visible;margin:0 0 .75rem;padding:0;white-space:normal}
  body[data-resource] .toc-progress{display:block;margin:.8rem 0 0;color:var(--theme-muted,#526078);font-size:.7rem}
  body[data-resource] .toc-steps::before,body[data-resource] .toc-steps::after{display:none}
  body[data-resource] .toc a{width:100%;justify-content:flex-start;gap:.65rem;border-radius:4px;padding:.4rem .35rem;min-height:40px}
  body[data-resource] .toc-link-label{position:static;display:block;width:auto;max-width:none;padding:0;color:var(--theme-muted,#526078);background:none;border:0;box-shadow:none;opacity:1;transform:none;text-align:left;font-size:.72rem;line-height:1.35;pointer-events:auto}
  body[data-resource] .toc a:hover .toc-link-label,body[data-resource] .toc a:focus-visible .toc-link-label{transform:none}
  body[data-resource] .toc-link-label::after{display:none}
  body[data-resource] .toc a[aria-current="location"] .toc-link-label{color:var(--theme-text,#0a1020);font-weight:800}
}
@media(max-width:760px){
  .guide-grid,.home-discovery [data-featured-guides],.planned-topics ul{grid-template-columns:1fr}
  .guide-card-link{padding:1.15rem}.library-content,.home-discovery{padding-left:1.1rem;padding-right:1.1rem}
  .guide-facts>div{grid-template-columns:1fr;gap:.4rem}
}
@media print{
  .article-entry,.resource-search,.contact-secondary,.page-tools{display:none!important}
  html[data-theme] body[data-resource],html[data-theme] body[data-resource] *{color:#111!important;background:transparent!important;text-shadow:none!important;box-shadow:none!important}
  html[data-theme]{background:#fff!important}
  .validation-note{color:#222!important}
  .guide-facts>div,.recovery-sequence{background:#fff;color:#000;border:1px solid #bbb;break-inside:avoid}
  .guide-card,.planned-topics{break-inside:avoid;background:#fff;color:#000;box-shadow:none}
}
@media(prefers-reduced-motion:reduce){.guide-card{transition:none}}
