:root {
  --ink: #19212a;
  --muted: #65707b;
  --paper: #f6f5f2;
  --surface: #ffffff;
  --line: #dedbd5;
  --red: #b32632;
  --red-dark: #8d1c26;
  --red-soft: #f7e9ea;
  --navy: #202833;
  --shadow: 0 14px 40px rgba(25, 33, 42, 0.08);
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
}
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(222, 219, 213, 0.85);
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: white; background: var(--red); font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Manrope", sans-serif; font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { padding: 9px 13px; border-radius: 8px; color: #46515c; font-size: 13px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--red); background: var(--red-soft); }
.menu-button { display: none; }

.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 50px; padding-block: 64px 58px; }
.private-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.private-label span { width: 7px; height: 7px; border-radius: 50%; background: #4e755f; box-shadow: 0 0 0 4px rgba(78, 117, 95, 0.12); }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.15; letter-spacing: -0.025em; }
h1 { margin-bottom: 8px; font-size: clamp(2.1rem, 4vw, 3.2rem); }
.page-intro > div > p:last-child { margin: 0; color: var(--muted); }
.search-box { width: min(420px, 100%); }
.search-box label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.search-control { position: relative; display: flex; align-items: center; }
.search-control svg { position: absolute; left: 15px; width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-control input { width: 100%; height: 50px; padding: 0 50px 0 44px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: var(--surface); box-shadow: 0 5px 20px rgba(25, 33, 42, 0.05); }
.search-control input:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.search-control kbd { position: absolute; right: 13px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--paper); font-size: 11px; }

.content-section { padding-block: 74px; border-top: 1px solid var(--line); }
.section-title { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; margin-bottom: 30px; }
.section-title > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--red); font-size: 11px; font-weight: 800; }
.section-title h2 { margin-bottom: 5px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.section-title p { margin: 0; color: var(--muted); font-size: 14px; }

.destination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.destination-card { display: grid; grid-template-columns: auto 1fr; gap: 17px; align-items: start; min-height: 218px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.destination-card:hover { border-color: #c8c4bc; box-shadow: var(--shadow); }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; }
.card-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.blue { color: #365f8a; background: #e8eff6; }
.card-icon.green { color: #4c745f; background: #e8f0eb; }
.card-icon.purple { color: #735586; background: #eee9f2; }
.card-icon.amber { color: #9b641d; background: #f6ecdf; }
.destination-card h3 { margin-bottom: 7px; font-size: 18px; }
.destination-card p { margin: 0; color: var(--muted); font-size: 13px; }
.short-path { display: block; overflow: auto; margin-top: 12px; padding: 8px 10px; border-radius: 7px; color: #415b4d; background: #edf3ef; font-size: 11px; white-space: nowrap; }
.button { align-self: end; justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; grid-column: 2; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; color: white; background: var(--navy); font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #0f161e; }

.drive-setup { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.drive-setup.flash { animation: flash 900ms ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 45% { box-shadow: 0 0 0 5px var(--red-soft); } }
.drive-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.small-label { margin: 0 0 4px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.drive-header h3 { margin: 0; font-size: 20px; }
.drive-header > a, .help-link { color: var(--red); font-size: 12px; font-weight: 700; }
.notice { margin-bottom: 20px; padding: 12px 14px; border-left: 3px solid var(--red); border-radius: 0 7px 7px 0; color: #5a4c4e; background: var(--red-soft); font-size: 12px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 10px; background: #eeece7; }
.tab { height: 42px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.tab.active { color: var(--ink); background: var(--surface); box-shadow: 0 3px 12px rgba(25, 33, 42, 0.08); }
.tab-panel { padding-top: 21px; }
.copy-path { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border-radius: 9px; color: #dae6de; background: #28382f; }
.copy-path span, .copy-path code { display: block; }
.copy-path span { margin-bottom: 2px; color: #9eb0a5; font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.copy-path code { overflow: auto; font-size: 12px; white-space: nowrap; }
.copy-button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #5f6f65; border-radius: 7px; color: white; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 20px 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edeae4; }
.steps li > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--red); background: var(--red-soft); font-size: 10px; font-weight: 800; }
.steps strong { font-size: 13px; }
.steps p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.steps code { padding: 1px 4px; border-radius: 4px; color: var(--ink); background: #eeece7; }

.resource-list { border-top: 1px solid var(--line); }
.resource-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.row-label { display: block; margin-bottom: 3px; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.resource-row h3 { margin-bottom: 3px; font-size: 16px; }
.resource-row p { margin: 0; color: var(--muted); font-size: 12px; }
.resource-row > a, .text-action { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
.resource-row > a:hover, .text-action:hover { border-color: var(--red); color: var(--red); }

.training-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.training-card { display: flex; flex-direction: column; min-height: 340px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.training-number { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 24px; border-radius: 50%; color: white; background: var(--red); font-size: 10px; font-weight: 800; }
.training-card h3 { margin-bottom: 16px; font-size: 20px; }
.training-card ol { display: grid; gap: 10px; margin: 0 0 24px; padding-left: 21px; color: var(--muted); font-size: 13px; }
.training-card .button { grid-column: auto; margin-top: auto; }
.linked-steps a { color: var(--red); font-weight: 700; }
.no-results { padding-block: 50px 90px; text-align: center; }
.no-results h2 { margin-bottom: 7px; }
.no-results p { color: var(--muted); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px max(24px, calc((100vw - var(--max)) / 2)); color: #c7cdd2; background: #151d25; }
footer strong { color: white; font-family: "Manrope", sans-serif; font-size: 14px; }
footer p { margin: 6px 0 0; font-size: 11px; }
footer > div:last-child { display: flex; gap: 17px; }
footer a, .back-to-top { padding: 0; border: 0; color: #dbe0e4; background: transparent; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; transform: translateY(140%); padding: 11px 14px; border-radius: 9px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; transition: transform 180ms ease; }
.toast.show { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(179, 38, 50, 0.32); outline-offset: 3px; }

@media (max-width: 820px) {
  .page-intro { align-items: stretch; flex-direction: column; gap: 28px; }
  .search-box { width: 100%; }
  .destination-grid, .training-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .page-shell { width: min(var(--max), calc(100% - 32px)); }
  .site-header { min-height: 66px; }
  .brand small { display: none; }
  .menu-button { display: grid; gap: 4px; place-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
  .menu-button > span:not(.sr-only) { display: block; width: 17px; height: 2px; background: var(--ink); }
  .main-nav { position: absolute; top: 66px; left: 16px; right: 16px; display: none; align-items: stretch; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .page-intro { padding-block: 46px; }
  h1 { font-size: 2rem; }
  .content-section { padding-block: 58px; }
  .section-title { grid-template-columns: 34px 1fr; gap: 13px; }
  .section-title > span { width: 32px; height: 32px; }
  .section-title h2 { font-size: 1.55rem; }
  .destination-card { grid-template-columns: 1fr; min-height: 0; }
  .destination-card .card-icon { margin-bottom: 2px; }
  .destination-card .button { grid-column: 1; }
  .drive-setup { padding: 20px; }
  .drive-header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .copy-path { align-items: stretch; flex-direction: column; }
  .copy-button { align-self: flex-start; }
  .resource-row { align-items: flex-start; }
  .resource-row p { max-width: 230px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer > div:last-child { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
