:root {
  --navy: #19276f;
  --deep: #101b52;
  --red: #b72738;
  --ink: #101a2c;
  --surface: #f7f8fb;
  --paper: #ffffff;
  --muted: #526079;
  --line: rgba(16, 26, 44, 0.16);
  --focus: #294fc4;
  --shell: min(1240px, calc(100% - 48px));
  --radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.guide-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--deep);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.guide-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-lockup img { width: 152px; height: auto; }

.guide-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.guide-nav a,
.print-control,
.menu-toggle {
  color: var(--deep);
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.guide-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guide-nav a:hover,
.guide-nav a:focus-visible,
.footer-inner a:hover,
.footer-inner a:focus-visible { color: var(--red); }

.print-control,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.print-control:hover,
.menu-toggle:hover { border-color: var(--navy); color: var(--navy); }

.print-control:active,
.menu-toggle:active,
.button:active { transform: translateY(1px); }

.menu-toggle { display: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

#main:focus { outline: 3px solid var(--focus); outline-offset: -3px; }

.cover {
  color: var(--paper);
  background: var(--deep);
}

.cover-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: stretch;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 64px 84px 0;
}

.eyebrow,
.specimen-label,
.type-row > span,
.guide-meta {
  margin: 0;
  color: currentColor;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cover h1 {
  max-width: 700px;
  margin: 26px 0 28px;
  font-size: clamp(3.5rem, 7vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.cover-line {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.35;
}

.guide-meta { margin-top: auto; color: rgba(255, 255, 255, 0.62); }

.cover-image { margin: 0; overflow: hidden; }

.cover-image img { width: 100%; height: 100%; object-fit: cover; }

.guide-section { padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }

.section-head {
  margin-bottom: 48px;
}

h2 {
  max-width: 800px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h3 { margin: 0; color: var(--deep); }

.guide-section.identity { background: var(--surface); }

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.identity-statement {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  color: var(--paper);
  background: var(--navy);
}

.identity-statement p {
  max-width: 410px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.voice-rules {
  display: grid;
  align-content: center;
  gap: 0;
}

.voice-rules > div,
.logo-rules p,
.image-guidance > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 24px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.voice-rules > div:last-child,
.logo-rules p:last-child,
.image-guidance > div:last-child { border-bottom: 1px solid var(--line); }

.voice-rules strong,
.logo-rules strong,
.image-guidance strong { color: var(--deep); }

.voice-rules span,
.logo-rules p,
.image-guidance span { color: var(--muted); }

.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.logo-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 40px;
}

.logo-card img { width: min(100%, 360px); }

.logo-card span { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.logo-card-light { background: var(--surface); }

.logo-card-dark { color: var(--paper); background: var(--deep); }

.logo-safe-field,
.footer-logo-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--paper);
}

.logo-safe-field { width: min(100%, 400px); }

.logo-safe-field img { width: min(100%, 360px); }

.logo-rules { margin-top: 32px; }

.guide-section.logo { background: var(--paper); }

.guide-section.type { color: var(--paper); background: var(--deep); }

.guide-section.type h2 { color: var(--paper); }

.type-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.type-family { padding-top: 12px; }

.type-name {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.type-alphabet {
  margin: 32px 0 20px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.type-note { max-width: 260px; margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 14px; }

.type-facts {
  margin: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.type-facts > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.type-facts dt,
.type-facts dd { margin: 0; font-size: 14px; }

.type-facts dt { font-weight: 700; }

.type-facts dd { color: rgba(255, 255, 255, 0.72); }

.type-specimen { border-top: 1px solid rgba(255, 255, 255, 0.35); }

.type-row { padding: 23px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }

.type-row > span { display: block; color: rgba(255, 255, 255, 0.6); }

.type-row p { margin: 10px 0 0; }

.type-display p { font-size: 42px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

.type-heading p { font-size: 27px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }

.type-body p { font-size: 16px; }

.type-data p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-inline: 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.type-data p span {
  white-space: nowrap;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.palette-swatch {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius);
}

.palette-swatch span { font-size: 14px; font-weight: 700; }

.palette-swatch code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; }

.palette-navy { color: var(--paper); background: var(--navy); }
.palette-deep { color: var(--paper); background: var(--deep); }
.palette-red { color: var(--paper); background: var(--red); }
.palette-ink { color: var(--paper); background: var(--ink); }
.palette-gray { color: var(--paper); background: var(--muted); }
.palette-hardware { color: var(--ink); background: #8491a6; }
.palette-line { color: var(--ink); background: #d7dce7; }
.palette-mist { color: var(--ink); background: #edf0f5; }
.palette-surface { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }

.palette-note { max-width: 640px; margin: 24px 0 0; color: var(--muted); }

.guide-section.palette,
.guide-section.ui { background: var(--surface); }

.ui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ui-specimen {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.specimen-label { margin-bottom: 22px; color: var(--red); }

.ui-specimen label:not(.compare-label) { display: block; margin-bottom: 8px; color: var(--deep); font-size: 14px; font-weight: 700; }

.search-row,
.action-row,
.product-buy { display: flex; align-items: center; gap: 10px; }

input[type="search"] {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(16, 26, 44, 0.35);
  border-radius: 6px;
}

input[type="search"]::placeholder { color: var(--muted); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-primary { color: var(--paper); background: var(--navy); }

.button-primary:hover { background: var(--deep); }

.button-secondary { color: var(--deep); background: var(--paper); border-color: var(--navy); }

.button-secondary:hover { color: var(--paper); background: var(--navy); }

.action-row { flex-wrap: wrap; }

.specimen-note { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

.product-specimen { grid-column: 1 / -1; }

.product-card-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.product-card-inner > img { width: 180px; aspect-ratio: 1; object-fit: cover; background: var(--surface); }

.part-label { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; }

.product-copy h3 { margin: 7px 0; font-size: 20px; }

.product-specs { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.product-buy { justify-content: space-between; }

.product-buy strong { color: var(--deep); font-size: 22px; }

.compare-label { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 14px; }

.compare-label input { width: 18px; height: 18px; accent-color: var(--navy); }

.guide-section.imagery { background: var(--paper); }

.imagery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.image-feature { margin: 0; }

.image-feature img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }

.image-feature figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 700; }

.image-guidance { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

.image-guidance > div { grid-template-columns: 80px 1fr; }

.guide-footer { color: var(--paper); background: var(--deep); }

.footer-inner { min-height: 110px; display: flex; align-items: center; gap: 24px; }

.footer-logo-field { padding: 8px 10px; }

.footer-inner img { width: 150px; }

.footer-inner p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; }

.footer-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1080px) {
  :root { --shell: min(100% - 40px, 900px); }

  .header-inner { gap: 18px; }

  .guide-nav { gap: 14px; }

  .print-control { padding-inline: 10px; }

  .cover-grid { min-height: 540px; }

  .cover-copy { padding-right: 38px; }

  .type-grid,
  .imagery-grid { gap: 40px; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 620px); }

  .guide-header { position: relative; }

  .header-inner { min-height: 68px; flex-wrap: wrap; }

  .brand-lockup img { width: 132px; }

  .brand-lockup span { display: none; }

  .menu-toggle { display: inline-flex; margin-left: auto; }

  .guide-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 5;
    margin: 0;
    padding: 8px 0 16px;
  }

  .guide-nav.is-open { display: flex; }

  .guide-nav a { padding: 11px 0; border-top: 1px solid var(--line); }

  .print-control { font-size: 14px; }

  .cover-grid,
  .identity-grid,
  .logo-grid,
  .type-grid,
  .imagery-grid { grid-template-columns: 1fr; }

  .cover-grid { min-height: auto; }

  .cover-copy { min-height: 460px; padding: 56px 0 40px; }

  .cover h1 { margin: 24px 0; font-size: clamp(3.5rem, 16vw, 5.5rem); }

  .cover-line { font-size: 18px; }

  .cover-image { height: 320px; }

  .guide-section { padding: 64px 0; }

  .section-head { margin-bottom: 32px; }

  h2 { font-size: clamp(2.5rem, 12vw, 4.25rem); }

  .identity-statement { min-height: 220px; padding: 28px; }

  .voice-rules > div,
  .logo-rules p { grid-template-columns: 110px 1fr; gap: 16px; }

  .logo-card { min-height: 200px; padding: 28px; }

  .type-grid,
  .imagery-grid { gap: 32px; }

  .type-display p { font-size: 34px; }

  .palette-grid { grid-template-columns: repeat(2, 1fr); }

  .palette-swatch { min-height: 140px; }

  .ui-grid { grid-template-columns: 1fr; }

  .product-specimen { grid-column: auto; }

  .product-card-inner { grid-template-columns: 120px 1fr; gap: 18px; }

  .product-card-inner > img { width: 120px; }

  .product-copy h3 { font-size: 17px; }

  .product-buy { align-items: flex-start; flex-direction: column; gap: 12px; }

  .footer-inner { min-height: 140px; flex-wrap: wrap; padding-block: 24px; }

  .footer-inner a { margin-left: 0; }
}

@media (max-width: 450px) {
  .header-inner { gap: 10px; }

  .print-control { display: none; }

  .menu-toggle { padding: 9px; }

  .search-row { align-items: stretch; flex-direction: column; }

  .search-row .button { width: 100%; }

  .ui-specimen { padding: 22px; }

  .product-card-inner { grid-template-columns: 1fr; }

  .product-card-inner > img { width: 100%; max-width: 180px; margin-inline: auto; }
}

@media print {
  @page { margin: 14mm; }

  html { scroll-behavior: auto; }

  body { background: var(--paper); }

  .guide-header { position: static; border: 0; }

  .guide-nav,
  .menu-toggle,
  .print-control,
  .skip-link { display: none !important; }

  .header-inner { min-height: 48px; }

  .brand-lockup img { width: 132px; }

  .cover-grid { min-height: 0; }

  .cover-copy { min-height: 430px; padding-block: 48px; }

  .cover-image { min-height: 430px; }

  .guide-section { padding: 48px 0; break-inside: avoid; }

  .section-head { margin-bottom: 24px; }

  .palette-swatch,
  .ui-specimen,
  .logo-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .guide-footer { margin-top: 0; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
