*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--t-text-1);
  background: var(--t-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--t-text-1); }

:root {
  --t-bg: #ffffff;
  --t-text-1: #0a0a0a;
  --t-text-2: #3a3a3a;
  --t-text-3: #767676;
  --t-accent: #8B1A00;
  --t-accent-hover: #6B1200;
  --t-rule: rgba(10,10,10,0.08);
  --t-rule-strong: rgba(10,10,10,0.15);
  --tier-1: #C04000;
  --tier-2: #C47820;
  --tier-3: #F0D080;
  --font-display: 'Eudoxus Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-w: 1600px;
  --gutter: clamp(20px, 4vw, 56px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--t-rule);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-header__logo {
  justify-self: start;
}
.site-header__logo img { height: 80px; width: auto; }
.site-header__nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(16px, 2.4vw, 32px);
}
.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--t-text-1);
  transition: color 200ms ease;
}
.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: var(--t-text-1);
}
.site-header__controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header__language {
  position: relative;
}
.site-header__language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--t-text-2);
}
.site-header__language-trigger::-webkit-details-marker {
  display: none;
}
.site-header__language-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}
.site-header__language[open] .site-header__language-trigger::after {
  transform: rotate(225deg) translateY(-1px);
}
.site-header__language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 92px;
  padding: 6px;
  border: 1px solid var(--t-rule);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(10,10,10,0.12);
  z-index: 20;
}
.site-header__language-option,
.site-header__language a.site-header__language-option {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t-text-2);
  white-space: nowrap;
}
.site-header__language-option--current {
  color: var(--t-text-1);
  background: rgba(10,10,10,0.04);
}
.site-header__language a:hover,
.site-header__language a:focus-visible {
  color: var(--t-text-1);
  background: rgba(10,10,10,0.035);
}
.site-header__language a {
  color: var(--t-text-3);
}
.site-header__pin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid rgba(10,10,10,0.18);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: var(--t-text-2);
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease;
}
.site-header__pin-link:hover,
.site-header__pin-link:focus-visible {
  color: var(--t-text-1);
  border-color: rgba(10,10,10,0.35);
}
.site-header__menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 6px;
  transition: background 200ms ease;
}
.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
  background: rgba(0,0,0,0.04);
}
.site-header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t-text-1);
  border-radius: 2px;
  position: absolute;
  left: 9px;
  transition: transform 200ms ease, top 200ms ease, opacity 200ms ease;
}
.site-header__menu-toggle span:nth-child(1) { top: 14px; }
.site-header__menu-toggle span:nth-child(2) { top: 24px; }
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

main { flex: 1; }

.help-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--gutter) clamp(80px, 12vh, 120px);
}
.help-shell--index { max-width: 980px; }
.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--t-text-3);
}
.help-breadcrumb a {
  transition: color 200ms ease;
}
.help-breadcrumb a:hover,
.help-breadcrumb a:focus-visible {
  color: var(--t-text-1);
}
.help-eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-text-3);
}
.help-title {
  max-width: 760px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--t-text-1);
}
.help-lead {
  max-width: 680px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--t-text-2);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}
.help-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--t-rule);
  border-top: 3px solid var(--card-accent, var(--t-accent));
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 150ms ease;
}
.help-card:hover,
.help-card:focus-visible {
  border-color: rgba(10,10,10,0.18);
  box-shadow: 0 2px 12px rgba(10,10,10,0.06);
  transform: translateY(-1px);
}
.help-card__label {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-text-3);
}
.help-card__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--t-text-1);
}
.help-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--t-text-2);
}

.help-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--t-rule);
}
.help-toc {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--t-rule);
  border-radius: 10px;
  background: rgba(10,10,10,0.025);
}
.help-toc__label {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-text-3);
}
.help-toc ol {
  list-style: none;
  display: grid;
  gap: 7px;
}
.help-toc a {
  font-size: 14px;
  line-height: 1.35;
  color: var(--t-text-2);
  transition: color 200ms ease;
}
.help-toc a:hover,
.help-toc a:focus-visible {
  color: var(--t-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.help-content {
  min-width: 0;
}
.help-section {
  margin-bottom: 48px;
  scroll-margin-top: 110px;
}
.help-section:last-child { margin-bottom: 0; }
.help-section h2 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--t-rule);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--t-text-1);
}
.help-section h3 {
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--t-text-1);
}
.help-section p,
.help-section li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--t-text-2);
}
.help-section p { margin-bottom: 12px; }
.help-section ul,
.help-section ol {
  margin: 8px 0 16px 20px;
}
.help-section li { margin-bottom: 6px; }
.help-note,
.help-example {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--t-rule);
  border-radius: 10px;
  background: rgba(10,10,10,0.025);
}
.help-note p,
.help-example p {
  margin-bottom: 8px;
  font-size: 14px;
}
.help-note p:last-child,
.help-example p:last-child {
  margin-bottom: 0;
}
.help-example__label {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-text-3);
}
.help-link {
  color: var(--t-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 200ms ease;
}
.help-link:hover,
.help-link:focus-visible {
  color: var(--t-accent-hover);
}

.help-cta {
  margin-top: 56px;
  padding: 28px;
  border: 1px solid var(--t-rule-strong);
  border-radius: 10px;
}
.help-cta h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.help-cta p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--t-text-2);
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--t-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: background 200ms ease, transform 150ms ease;
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--t-accent-hover);
  transform: translateY(-1px);
}

.site-footer {
  border-top: 1px solid var(--t-rule);
  padding: 32px var(--gutter);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer__links a {
  font-size: 12px;
  color: var(--t-text-3);
  transition: color 200ms ease;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--t-text-1);
}
.site-footer__meta {
  justify-self: end;
  font-size: 12px;
  color: var(--t-text-3);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 880px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }
  .site-header__logo img { height: 56px !important; }
  .site-header__nav { display: none; }
  .site-header__controls {
    margin-left: auto;
  }
  .site-header__language {
    display: none;
  }
  .site-header__pin-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .site-header__menu-toggle { display: block; }
  .site-header[data-menu-open="true"] .site-header__nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--t-rule);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    gap: 0;
  }
  .site-header[data-menu-open="true"] .site-header__nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--t-rule);
  }
  .site-header[data-menu-open="true"] .site-header__nav a:last-child {
    border-bottom: none;
  }
  .help-grid { grid-template-columns: 1fr; }
  .help-body { grid-template-columns: 1fr; }
  .help-toc {
    position: static;
  }
  .help-card { min-height: auto; }
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .site-footer__meta {
    justify-self: auto;
  }
}
