:root {
  --page-navy: #062334;
  --page-deep: #03101f;
  --page-surface: #0a3045;
  --page-text: #f1f8fc;
  --page-muted: #c3dce7;
  --page-cyan: #55e5f5;
  --page-rule: #426679;
}

html { color-scheme: dark; scrollbar-color: #47748a var(--page-navy); overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--page-navy); color: var(--page-text); font: 1.0625rem/1.75 system-ui, sans-serif; }
::selection { color: #031624; background: #85eaf3; }
a { color: #8beaf4; text-underline-offset: 4px; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--page-cyan); outline-offset: 4px; }

.preview-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 35px; padding: 4px 32px; background: #0b3044; color: var(--page-muted); font-size: 1rem; }
.preview-tools a { min-height: 32px; display: inline-flex; align-items: center; }
.site-header { background: var(--page-deep); }
.site-header-inner { width: min(1160px, calc(100% - 80px)); min-height: 92px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header .brand { margin: 0; }
.site-header .brand img { width: 175px; height: auto; display: block; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; border: 0; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; color: #d1e6f1; font-size: 1rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.site-header nav a[aria-current="page"] { color: var(--page-cyan); }

main { max-width: none; margin: 0; padding: 0 0 72px; overflow-wrap: break-word; }
.help-hero, .legal-hero { position: relative; isolation: isolate; max-width: none; min-height: 460px; padding: 72px max(40px, calc((100vw - 1160px) / 2)); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.help-hero::before, .legal-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; }
.help-hero::after, .legal-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #041c2de8 8%, #041c2dcc 48%, #041c2d4a), linear-gradient(0deg, var(--page-navy), transparent 34%); }
.method-page .help-hero::before { background-image: url('/assets/design/photo-method.webp'); background-position: center 58%; }
.help-page .help-hero::before { background-image: url('/assets/design/photo-help.webp'); background-position: center 48%; }
.support-page .legal-hero::before { background-image: url('/assets/design/photo-support.webp'); background-position: center 48%; }
.policy-page .legal-hero { min-height: 330px; }
.policy-page .legal-hero::before { background-image: url('/assets/design/photo-open-water.webp'); background-position: center 32%; }
.policy-page .legal-hero::after { background: linear-gradient(90deg, #041c2df2 8%, #041c2dde 58%, #041c2d8c), linear-gradient(0deg, var(--page-navy), transparent 42%); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 760px; margin: 0 0 24px; color: #b6ceda; font-size: 1rem; }
.breadcrumbs a { padding: 0; min-height: 0; background: none; color: #d7eaf2; }
h1, h2, h3 { color: var(--page-text); letter-spacing: -.03em; text-wrap: balance; }
h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(3rem, 5.7vw, 5.4rem); font-weight: 720; line-height: 1.03; }
.help-intro, .legal-intro { max-width: 690px; margin: 0 0 18px; color: #e0edf3; font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.6; }
.updated { max-width: 700px; margin: 0; color: #bdd3de; font-size: 1rem; }

.help-search, .contents, main > section, .article-body { width: min(960px, calc(100% - 80px)); margin-inline: auto; }
.help-search { margin-top: 56px; }
#search-status, .search-results { width: min(960px, calc(100% - 80px)); margin-inline: auto; }
.help-search label { font-size: 1.25rem; }
.help-search input { background: #082b3f; border-color: var(--page-rule); border-radius: 6px; }
.help-search button { border-color: var(--page-rule); border-radius: 5px; background: #16465d; }
.contents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-block: 54px 26px; }
.contents a { display: flex; align-items: center; min-height: 60px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--page-rule); border-radius: 0; background: none; color: #dff1f7; font-size: 1rem; font-weight: 600; text-decoration: none; }
.contents a::after { content: none; }
.contents a:hover { color: var(--page-cyan); background: none; border-color: var(--page-cyan); }

main > section, .article-body section { margin-top: 0; padding: 62px 0; border: 0; border-radius: 0; border-top: 1px solid var(--page-rule); background: transparent; scroll-margin-top: 24px; }
main > section:first-of-type { border-color: var(--page-rule); background: transparent; }
main > section h2, .article-body h2 { max-width: 720px; margin: 0 0 24px; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 680; line-height: 1.15; }
main > section h3, .article-body h3 { max-width: 720px; margin: 38px 0 12px; font-size: 1.25rem; }
main > section p, main > section li, .article-body p, .article-body li { max-width: 72ch; color: var(--page-muted); }
main > section p a, .article-body p a { display: inline; padding: 0; border-radius: 0; background: none; color: var(--page-cyan); font-weight: 600; }
main > section p a:hover, .article-body p a:hover { color: #fff; background: none; }
.terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 30px 0; }
.terms div { padding: 22px 0; border-radius: 0; border-top: 1px solid var(--page-rule); background: transparent; }
dt { color: #dff5f9; }
dd { color: var(--page-muted); }
.contact { background: transparent; }
.contact p:last-child a { border-radius: 5px; background: #17618b; color: #fff; }

.help-screen { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 40px; padding: 34px 0; border-top: 1px solid var(--page-rule); border-radius: 0; background: transparent; }
.help-screen > a { border-radius: 16px; box-shadow: 0 20px 44px #0005; }
.help-screen figcaption a { padding: 0; border-radius: 0; background: none; color: var(--page-cyan); }
.help-screen figcaption a:hover { color: #fff; background: none; }

.article-body { padding-top: 18px; }
.article-body section:first-child { border-top: 0; }
.policy-page .article-body h2 { margin-top: 54px; padding-top: 46px; border-top: 1px solid var(--page-rule); }
.policy-page .article-body section > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-body ul { padding-left: 24px; }
.article-body nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--page-rule); }
.article-body nav a { min-height: 44px; display: inline-flex; align-items: center; }

.help-footer { max-width: none; margin: 0; padding: 34px max(40px, calc((100vw - 1160px) / 2)) 46px; background: var(--page-deep); }
.help-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; border: 0; }
.help-footer nav a { min-height: 44px; padding: 0; border-radius: 0; background: none; color: #b9d0dc; font-size: 1rem; }
.help-footer nav a:hover { color: #fff; background: none; }

@media (max-width: 700px) {
  .preview-tools { padding-inline: 20px; }
  .site-header-inner { width: calc(100% - 40px); min-height: 116px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 6px; padding-block: 16px; }
  .site-header .brand img { width: 145px; }
  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 1rem; }
  .help-hero, .legal-hero { min-height: 560px; padding: 48px 20px; }
  .policy-page .legal-hero { min-height: 390px; }
  .method-page .help-hero::before { background-position: 62% center; }
  .help-page .help-hero::before { background-position: 58% center; }
  .help-hero::after, .legal-hero::after { background: linear-gradient(180deg, #041c2d96, #041c2dd9 54%, var(--page-navy)); }
  h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .help-search, .contents, main > section, .article-body { width: calc(100% - 40px); }
  #search-status, .search-results { width: calc(100% - 40px); }
  .contents { grid-template-columns: 1fr; margin-top: 38px; }
  main > section, .article-body section { padding-block: 46px; }
  .terms { grid-template-columns: 1fr; }
  .help-screen { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .help-screen > a { width: min(100%, 260px); margin-inline: auto; }
  .help-footer { padding-inline: 20px; }
}

@media (max-width: 420px) {
  .preview-tools > span { display: none; }
  .preview-tools { justify-content: flex-end; }
}

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