/* Main-site additions. Existing video, simulator and stream services are untouched. */
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
button, summary { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #1268ff; outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 120; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { gap: 24px; }
.site-header nav { gap: clamp(14px, 1.5vw, 26px); }
.site-header nav a, .header-action { white-space: nowrap; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 12px; border: 1px solid #c5d0dc; border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; }
.menu-bars { position: relative; display: block; width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-bars::after { position: absolute; top: 4px; left: 0; width: 16px; height: 2px; background: currentColor; content: ''; }
.hero-note { max-width: 550px; margin: 18px 0 0; color: #647384; font-size: 12px; line-height: 1.8; }
.plugins { background: var(--paper); }
.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.plugin-card { display: flex; flex-direction: column; min-width: 0; min-height: 272px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.plugin-tag { color: #647384; font: 700 10px/1.4 Consolas,monospace; letter-spacing: .08em; }
.plugin-card h3 { margin: 25px 0 12px; font-size: clamp(18px,1.65vw,23px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.plugin-card p { flex: 1; margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.plugin-card a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.plugin-core { color: #fff; border-color: var(--blue); background: var(--blue); }
.plugin-core .plugin-tag, .plugin-core p { color: #e1ebff; }
.plugin-core a { color: #fff; border-color: #76a4ff; }
.compatibility-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; padding: 28px; border: 1px solid #cedceb; border-radius: 16px; background: #eaf1f9; }
.compatibility-bar strong { font-size: 17px; }
.compatibility-bar p { max-width: 710px; margin: 8px 0 0; color: #506276; font-size: 13px; line-height: 1.85; }
.compatibility-bar a { flex-shrink: 0; font-size: 12px; }
.service-price { flex-wrap: wrap; }
.service-scope { display: grid; gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; }
.service-scope li { color: var(--muted); font-size: 13px; line-height: 1.85; }
.service-scope strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.service-note { margin: 24px 0 0; padding: 18px 20px; border-left: 3px solid #7aaaff; color: #526171; background: #eaf1f9; font-size: 12px; line-height: 1.9; }
.resources { padding-top: 104px; }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.resource-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; transition: border-color .2s; }
.resource-card:hover { border-color: var(--blue); }
.resource-card > span { color: var(--blue); font: 700 10px/1.5 Consolas,monospace; }
.resource-card h3 { margin: 26px 0 12px; font-size: 21px; letter-spacing: -.03em; }
.resource-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-list details { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.faq-list details p { max-width: 900px; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.copy-status { min-height: 1.5em; margin: 12px 0 0 !important; color: #526171 !important; font-size: 12px !important; line-height: 1.8; }
.contact-dialog { max-height: calc(100dvh - 40px); overflow-y: auto; }
.site-footer > span a { text-underline-offset: 4px; }
/* Standalone guide keeps the same typography and material palette. */
.guide-hero { max-width: 1380px; margin: 0 auto; padding: 80px max(24px,4vw) 52px; }
.guide-hero h1 { margin: 22px 0; font-size: clamp(40px,5vw,68px); line-height: 1.15; letter-spacing: -.055em; }
.guide-hero > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 56px; max-width: 1380px; margin: 0 auto; padding: 0 max(24px,4vw) 100px; align-items: start; }
.guide-toc { position: sticky; top: 104px; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.guide-toc strong { margin: 5px 8px 12px; font-size: 12px; color: var(--muted); }
.guide-toc a { padding: 9px 8px; border-radius: 6px; font-size: 13px; text-decoration: none; }
.guide-toc a:hover { color: var(--blue); background: #edf3ff; }
.guide-section { margin-bottom: 28px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.guide-section h2 { margin: 0 0 22px; font-size: 27px; letter-spacing: -.04em; }
.guide-section h3 { margin: 26px 0 10px; font-size: 19px; overflow-wrap: anywhere; }
.guide-section p, .guide-section li { color: var(--muted); font-size: 14px; line-height: 1.95; }
.guide-section ul, .guide-section ol { padding-left: 22px; }
.guide-section li + li { margin-top: 10px; }
.guide-section code { padding: 2px 5px; border-radius: 4px; color: #16477c; background: #edf3fa; overflow-wrap: anywhere; font-size: .92em; }
.guide-section a { color: var(--blue); text-underline-offset: 4px; }
.guide-callout { padding: 16px 18px; border-left: 3px solid var(--blue); background: #edf3fa; }
.guide-section dl { margin: 0; }
.guide-section dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide-section dt { font-size: 13px; font-weight: 700; }
.guide-section dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
@media (max-width: 1200px) {
  .site-header { grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .header-action { grid-column: 2; grid-row: 1; }
  .site-header .menu-toggle:not([hidden]) { display: inline-flex; grid-column: 3; grid-row: 1; }
  .site-header nav { grid-column: 1/-1; grid-row: 2; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
  .site-header nav a { display: block; padding: 12px; border-radius: 8px; }
  .site-header nav a:hover { background: #e8eff8; }
  .site-header.navigation-ready nav:not(.is-open) { display: none; }
  .site-header.navigation-ready nav.is-open { display: grid; }
  .plugin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compatibility-bar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .site-header { gap: 8px; }
  .site-header .header-action { padding: 11px 10px; font-size: 12px; }
  .menu-toggle { padding: 10px; }
  .menu-label { display: none; }
  .site-header nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .plugin-grid, .resource-grid { grid-template-columns: 1fr; }
  .plugin-card { min-height: 250px; }
  .plugin-card h3 { font-size: 24px; }
  .compatibility-bar { padding: 22px; }
  .resources { padding-top: 78px; }
  .guide-hero { padding: 50px 20px 32px; }
  .guide-layout { grid-template-columns: 1fr; gap: 24px; padding: 0 20px 70px; }
  .guide-toc { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-toc strong { grid-column: 1/-1; }
  .guide-section { padding: 24px 20px; }
  .guide-section h2 { font-size: 24px; }
  .guide-section dl > div { grid-template-columns: 1fr; gap: 6px; }
  .site-footer span:nth-child(2) { display: block; grid-column: 1/-1; grid-row: 2; margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .resource-card { transition: none; } }
