:root {
  --yellow: #ffeb00;
  --yellow-deep: #efbd00;
  --ink: #1e1e1e;
  --muted: #626978;
  --paper: #f4f4f2;
  --line: #d9dadd;
  --white: #fff;
  --danger: #a63b3b;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { background: #111; color: #fff; left: 12px; padding: 10px 14px; position: fixed; top: -80px; z-index: 20; }
.skip-link:focus { top: 12px; }
.loading, .not-found { margin: 80px auto; max-width: 720px; padding: 24px; }

.site-header {
  align-items: center; background: var(--yellow); display: flex; height: 84px;
  justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2));
}
.wordmark {
  display: block; text-decoration: none;
}
.wordmark img { display: block; height: auto; width: 200px; }
.language-button {
  background: transparent; border: 1px solid rgba(0, 0, 0, .45); border-radius: 999px;
  color: #111; cursor: pointer; font-size: 14px; font-weight: 700; padding: 10px 16px;
}
.language-button:focus-visible, .guide-card:focus-visible, footer a:focus-visible,
.manual-links a:focus-visible, .back-link:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

.hero { background: var(--ink); color: var(--white); overflow: hidden; position: relative; }
.hero::after { background: var(--yellow); content: ""; height: 220%; opacity: .08; position: absolute; right: 11%; top: -55%; transform: rotate(18deg); width: 110px; }
.hero-inner, .guide-section, .safety-notice, footer { margin: 0 auto; max-width: 1120px; }
.hero-inner { padding: 70px 24px 76px; position: relative; z-index: 1; }
.pilot-row { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow, .section-label { font-size: 13px; font-weight: 800; letter-spacing: .13em; margin: 0; text-transform: uppercase; }
.eyebrow { color: var(--yellow); }
.pilot-badge { border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 5px 7px; }
h1 { font-size: clamp(38px, 7vw, 72px); letter-spacing: -.045em; line-height: .98; margin: 20px 0 22px; max-width: 800px; }
.lead { color: #d8dbe2; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; margin: 0; max-width: 720px; }

.guide-section { padding: 58px 24px 24px; }
.directory-section { padding-top: 34px; }
.section-label { margin-bottom: 18px; }
.brand-tabs { display:flex; gap:10px; margin:0 0 24px; overflow-x:auto; padding:2px 0 8px; }
.brand-tabs button { background:var(--white); border:1px solid var(--line); color:var(--ink); cursor:pointer; flex:0 0 auto; font-size:14px; font-weight:800; min-height:44px; padding:0 18px; }
.brand-tabs button.active { background:var(--ink); border-color:var(--ink); color:var(--white); }
.brand-tabs button:focus-visible { outline:3px solid #111; outline-offset:2px; }
.brand-tabs span { opacity:.62; }
.guide-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.guide-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 290px; padding: 24px; text-decoration: none; transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.guide-card:hover { border-color: var(--yellow-deep); box-shadow: 0 14px 28px rgba(22,25,31,.08); transform: translateY(-3px); }
.card-topline { align-items: center; display: flex; justify-content: space-between; }
.guide-number { color: #9b7800; font-size: 14px; font-weight: 900; }
.guide-status { color: var(--muted); font-size: 11px; font-weight: 700; }
.guide-card h2 { font-size: 30px; letter-spacing: -.035em; margin: 50px 0 12px; }
.guide-card .model-name { color:var(--ink); font-size:13px; font-weight:800; margin:16px 0 -30px; }
.guide-card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.guide-link { align-items: center; display: flex; font-size: 14px; font-weight: 800; justify-content: space-between; margin-top: auto; padding-top: 24px; }
.guide-link span { font-size: 22px; }

.safety-notice { align-items: flex-start; background: #fff7d8; border-left: 5px solid var(--yellow-deep); display: flex; gap: 18px; margin-bottom: 56px; margin-top: 20px; padding: 22px 24px; }
.notice-mark { align-items: center; background: var(--yellow); border-radius: 50%; color: #111; display: flex; flex: 0 0 32px; font-size: 21px; font-weight: 900; height: 32px; justify-content: center; }
.safety-notice h2 { font-size: 16px; margin: 0 0 5px; }
.safety-notice p { color: #5d573f; font-size: 14px; line-height: 1.5; margin: 0; }

footer { border-top: 1px solid var(--line); display: grid; gap: 6px; padding: 28px 24px 42px; }
footer p { font-size: 13px; font-weight: 800; margin: 0; }
footer a { font-size: 25px; font-weight: 900; text-decoration: none; width: fit-content; }
footer span { color: var(--muted); font-size: 12px; margin-top: 10px; }

.video-guide { margin: 0 auto; max-width: 920px; padding: 40px 24px 64px; }
.back-link { color: var(--muted); display: inline-block; font-size: 14px; font-weight: 700; margin-bottom: 50px; text-decoration: none; }
.guide-kicker { color: #765f00; font-size: 12px; font-weight: 900; letter-spacing: .12em; margin: 0; }
.video-guide h1 { color: var(--ink); font-size: clamp(38px, 7vw, 64px); margin: 14px 0 34px; max-width: 800px; }
.video-frame { align-items: center; aspect-ratio: 16 / 9; background: var(--ink); color: var(--white); display: flex; justify-content: center; min-height: 260px; overflow: hidden; padding: 28px; text-align: center; }
.video-frame iframe { border: 0; height: 100%; width: 100%; }
.video-frame.pending { background: #3f4148; }
.play-symbol { align-items: center; background: var(--yellow); border-radius: 50%; color: #111; display: flex; flex: 0 0 66px; font-size: 24px; height: 66px; justify-content: center; margin-right: 22px; padding-left: 4px; }
.video-frame strong { display: block; font-size: clamp(18px, 3vw, 26px); }
.video-frame small { color: #cfd2d9; display: block; font-size: 13px; margin-top: 8px; }
.compact-warning { align-items: center; background: #fff5cb; border-left: 5px solid var(--yellow-deep); display: flex; gap: 14px; margin-top: 18px; padding: 18px 20px; }
.compact-warning span { font-size: 22px; font-weight: 900; }
.compact-warning p { font-size: 15px; font-weight: 700; line-height: 1.45; margin: 0; }
.manual-section { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 26px; }
.manual-section h2 { font-size: 20px; margin: 0; }
.manual-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.manual-links a { background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 800; padding: 13px 16px; text-decoration: none; }
.manual-links a::after { content: " ↗"; }
.error-box { background: #f6dddd; border-left: 5px solid var(--danger); margin: 24px; padding: 18px; }
.directory-empty { background:var(--white); border:1px dashed #aeb1b7; grid-column:1/-1; padding:42px 24px; text-align:center; }

@media (max-width: 800px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 220px; }
  .guide-card h2 { margin-top: 34px; }
  .safety-notice { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 520px) {
  .site-header { height: 74px; padding: 0 18px; }
  .wordmark img { width: 160px; }
  .language-button { font-size: 12px; padding: 8px 12px; }
  .hero-inner { padding: 52px 22px 58px; }
  .guide-section { padding: 42px 18px 20px; }
  .safety-notice { margin-left: 18px; margin-right: 18px; }
  .video-guide { padding: 30px 18px 54px; }
  .back-link { margin-bottom: 38px; }
  .video-frame { aspect-ratio: 4 / 3; flex-direction: column; min-height: 300px; padding: 0; }
  .video-frame.pending { padding: 28px; }
  .play-symbol { margin: 0 0 20px; }
  .manual-links { display: grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .guide-card { transition: none; } }
