/* Scoped to the mixer guide; other equipment pages keep their existing layout. */
.mixer-guide-page .mg-brand-title { display: block; font-size: 24px; font-weight: 800; }
.mg-hero { padding: 38px 4px 26px; }
.mg-hero h1 { margin: 0; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.25; word-break: keep-all; }
.mg-hero p { line-height: 1.75; }
.mg-hero .mg-lead { font-size: 20px; font-weight: 650; margin-bottom: 0; }
.mg-system { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.mg-system strong { margin-left: 5px; color: var(--text); }
.mg-updated { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.mg-critical { padding: 24px 28px; border: 1px solid rgba(159, 38, 62, .2); border-left: 5px solid var(--primary); border-radius: 18px; background: #fff7f5; }
.mg-critical > strong { color: var(--primary-strong); font-size: 18px; }
.mg-critical p { margin: 10px 0; line-height: 1.8; }
.mg-critical > span { font-size: 14px; color: #66525a; line-height: 1.7; }
.mg-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 36px; }
.mg-quick a { display: grid; gap: 8px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mg-quick b { font-size: 23px; }
.mg-quick span { color: var(--primary-strong); font-size: 14px; }
.mg-layout { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 32px; align-items: start; }
.mg-toc { position: sticky; top: 105px; max-height: calc(100dvh - 125px); overflow-y: auto; }
.mg-toc nav { display: grid; gap: 2px; padding: 0 4px; }
.mg-toc nav > strong { padding: 8px 12px; color: var(--muted); font-size: 12px; }
.mg-toc a { padding: 9px 12px; color: var(--text); border-radius: 9px; text-decoration: none; font-size: 14px; }
.mg-toc a:hover { background: rgba(255,255,255,.8); color: var(--primary-strong); }
.mg-content { min-width: 0; }
.mg-section { padding: 30px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.88); scroll-margin-top: 110px; overflow-wrap: anywhere; }
.mg-section h2 { margin: 0 0 22px; font-size: clamp(22px,3vw,28px); line-height: 1.4; word-break: keep-all; }
.mg-section h3 { margin: 30px 0 14px; font-size: 20px; line-height: 1.5; }
.mg-section p, .mg-section li { font-size: 16px; line-height: 1.9; }
.mg-section ul, .mg-section ol { padding-left: 24px; }
.mg-section li { padding-left: 4px; margin: 10px 0; }
.mg-section ol li::marker { color: var(--primary-strong); font-weight: 800; }
.mg-section a { color: var(--primary-strong); text-underline-offset: 3px; }
.mg-section > :last-child { margin-bottom: 0; }
.mg-section:target { border-color: rgba(159,38,62,.45); }
.mg-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.mg-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.8; text-align: left; }
.mg-table-wrap th { background: #f7eeee; font-weight: 750; color: var(--primary-strong); }
.mg-table-wrap th, .mg-table-wrap td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mg-table-wrap td:first-child { font-weight: 650; min-width: 100px; }
.mg-channel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.mg-channel-grid a { position: relative; display: grid; gap: 5px; padding: 14px; background: #f6f1f2; color: var(--text); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.mg-channel-grid .mg-channel-number { font-size: 12px; font-weight: 700; color: var(--primary-strong); }
.mg-channel-grid strong { font-size: 17px; }
.mg-channel-grid small { color: var(--muted); font-size: 11px; }
.mg-channel-grid a > span:last-child { position: absolute; right: 12px; top: 12px; color: var(--primary-strong); }
.mg-section .mg-note { font-size: 13px; color: var(--muted); }
.mg-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 24px 0; }
.mg-photos figure { margin: 0; min-width: 0; }
.mg-photos figure:only-child { grid-column: 1 / -1; }
.mg-photos img { display: block; width: 100%; height: auto; border-radius: 12px; }
.mg-photos figcaption { padding: 10px 2px 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.mg-top-link { display: block; width: fit-content; margin: 24px auto; padding: 12px 20px; color: var(--primary-strong); }
.mixer-guide-page a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media(max-width: 850px) {
  .mg-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .mg-toc { position: static; max-height: none; overflow: visible; }
  .mg-toc nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
  .mg-toc nav > strong { width: 100%; padding-left: 0; }
  .mg-toc a { background: rgba(255,255,255,.7); border: 1px solid var(--line); padding: 9px 12px; }
}
@media(max-width: 600px) {
  .mg-hero { padding: 26px 4px 24px; }
  .mg-hero .mg-lead { font-size: 18px; }
  .mg-system { display: grid; gap: 8px; }
  .mg-critical { padding: 20px; }
  .mg-quick { gap: 8px; margin-bottom: 24px; }
  .mg-quick a { padding: 15px 10px; }
  .mg-quick b { font-size: 21px; }
  .mg-quick span { font-size: 12px; }
  .mg-section { padding: 24px 18px; border-radius: 18px; scroll-margin-top: 16px; }
  .mg-section p, .mg-section li { font-size: 15px; }
  .mg-section h3 { font-size: 18px; }
  .mg-channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mg-table-wrap th, .mg-table-wrap td { padding: 11px 8px; }
  .mg-table-wrap table { font-size: 13px; }
  .mg-table-wrap td:first-child { min-width: 74px; }
  .mg-photos { grid-template-columns: minmax(0,1fr); }
}
@media print {
  .equipment-topbar, .mg-toc, .mg-quick, .mg-top-link { display: none; }
  .mg-layout { display: block; }
  .mg-section { background: white; border-color: #ccc; }
  .mg-section h2, .mg-section h3 { break-after: avoid; }
  .mg-photos figure { break-inside: avoid; }
}

/* Actual equipment photos preserve the full frame and open at original resolution. */
.mg-photos a { display: block; text-decoration: none; }
.mg-photos figure:only-child { width: 100%; max-width: 520px; margin-inline: auto; }
.mg-photos-compact figure:only-child { max-width: 300px; }
.mg-photo-open { display: block; padding: 9px 0 0; font-size: 12px; font-weight: 650; }
