/* ============================================================
   Stowaway — pages under /stowaway/
   Brand guide: Oct 22, 2026
   Navy is the ground, Rope the only accent. Four colours, no gradients.
   Rope is never text on a light ground (2.0:1 on Cream): there, use Navy.
   ============================================================ */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --navy: #14263a;
  --glass: #1f3b5c;
  --rope: #d9a066;
  --cream: #f4efe6;

  /* Support tones, all mixed from the four */
  --paper: #fbf8f3;          /* lifted Cream for cards */
  --line: #e2d9c9;           /* hairlines on Cream */
  --text: #14263a;
  --text-soft: #3e4d5e;
  --on-navy: #f4efe6;
  --on-navy-soft: #b9c3cf;
  --navy-line: #2a4361;
  --code-bg: #0f1e2e;
  --bad: #b5472b;
  --bad-on-navy: #f0a088;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --measure: 40rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

body.sw {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--glass);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--rope);
  outline-offset: 3px;
  border-radius: 2px;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

:not(pre) > code {
  background: #ebe3d4;
  border-radius: 3px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.sw-wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sw-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.sw-skip:focus {
  left: 0;
  color: var(--cream);
}

/* ---------- Brand ---------- */

.sw-mark {
  flex: none;
}

/* Mark left of the wordmark, gap = 18% of the mark's diameter. */
.sw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--cream);
}

.sw-brand:hover {
  color: var(--cream);
}

.sw-brand__name {
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------- Top bar ---------- */

.sw-top {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.sw-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.sw-nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.sw-nav a {
  color: var(--on-navy-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: 0.375rem;
  border-bottom: 2px solid transparent;
}

.sw-nav a:hover {
  color: var(--cream);
}

/* The one Rope accent in the bar. */
.sw-nav a[aria-current='page'] {
  color: var(--cream);
  border-bottom-color: var(--rope);
}

@media (max-width: 26rem) {
  .sw-brand__name {
    display: none;
  }
}

/* ---------- Hero ---------- */

.sw-hero {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6rem);
}

.sw-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .sw-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.sw-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rope);
  margin: 0;
}

.sw-hero h1 {
  font-size: clamp(2.125rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 1.25rem;
  color: var(--cream);
}

.sw-hero__lede {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--on-navy-soft);
  max-width: 36rem;
  margin-top: 1.5rem;
}

.sw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.sw-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--on-navy-soft);
}

.sw-hero__meta span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--on-navy-soft);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.sw-porthole {
  justify-self: center;
  width: min(60%, 22rem);
}

@media (min-width: 60rem) {
  .sw-porthole {
    width: min(100%, 22rem);
  }
}

/* Page heads (docs, support): a shorter hero */
.sw-pagehead {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.sw-pagehead h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.875rem;
  color: var(--cream);
}

.sw-pagehead p:not(.sw-tagline) {
  color: var(--on-navy-soft);
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
}

.sw-pagehead a {
  color: var(--rope);
}

/* ---------- Buttons ---------- */

.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.9375rem 1.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Primary on Navy: Cream. Primary on Cream: Navy. */
.sw-btn--light {
  background: var(--cream);
  color: var(--navy);
}

.sw-btn--light:hover {
  background: #fff;
  color: var(--navy);
}

.sw-btn--ghost {
  border-color: var(--navy-line);
  color: var(--cream);
}

.sw-btn--ghost:hover {
  border-color: var(--on-navy-soft);
  background: var(--glass);
  color: var(--cream);
}

.sw-btn--dark {
  background: var(--navy);
  color: var(--cream);
}

.sw-btn--dark:hover {
  background: var(--glass);
  color: var(--cream);
}

.sw-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Sections ---------- */

.sw-section {
  padding-block: var(--section-y);
}

.sw-section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.sw-section--navy {
  background: var(--navy);
  color: var(--on-navy);
}

.sw-section--navy a {
  color: var(--rope);
}

.sw-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass);
}

.sw-section--navy .sw-kicker {
  color: var(--rope);
}

.sw-h2 {
  font-size: clamp(1.625rem, 3.6vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
  max-width: 30ch;
}

.sw-intro {
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: var(--measure);
  margin-top: 1rem;
}

.sw-section--navy .sw-intro {
  color: var(--on-navy-soft);
}

/* ---------- Feature grid ---------- */

.sw-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.sw-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}

.sw-feature h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.sw-feature p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.sw-feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.sw-feature__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ---------- Flow diagram ---------- */

.sw-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.75rem;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.sw-flow li {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.375rem;
}

.sw-flow li + li {
  margin-top: 2.25rem;
}

/* The arrow between nodes: down on a phone, across on a wide screen. */
.sw-flow li + li::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -1.75rem;
  width: 2px;
  height: 1.25rem;
  background: var(--rope);
  transform: translateX(-50%);
}

.sw-flow li + li::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.625rem;
  border: 5px solid transparent;
  border-top: 6px solid var(--rope);
  transform: translateX(-50%);
}

@media (min-width: 56rem) {
  .sw-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
  }

  .sw-flow li + li {
    margin-top: 0;
  }

  .sw-flow li + li::before {
    left: -1.75rem;
    top: 50%;
    width: 1.25rem;
    height: 2px;
    transform: translateY(-50%);
  }

  .sw-flow li + li::after {
    left: -0.625rem;
    top: 50%;
    border: 5px solid transparent;
    border-left: 6px solid var(--rope);
    transform: translateY(-50%);
  }
}

.sw-flow__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
}

.sw-flow h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.375rem;
  color: var(--cream);
}

.sw-flow p {
  font-size: 0.875rem;
  color: var(--on-navy-soft);
  margin-top: 0.5rem;
}

/* ---------- URL rewrite example ---------- */

.sw-urls {
  margin-top: 2.5rem;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  overflow: hidden;
}

.sw-urls__row {
  display: grid;
  gap: 0.25rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--code-bg);
}

.sw-urls__row + .sw-urls__row {
  border-top: 1px solid var(--navy-line);
}

@media (min-width: 48rem) {
  .sw-urls__row {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}

.sw-urls__k {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-navy-soft);
}

.sw-urls__v {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.sw-urls__v mark {
  background: none;
  color: var(--rope);
}

/* ---------- Steps ---------- */

.sw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.sw-steps li {
  counter-increment: step;
  border-top: 2px solid var(--navy);
  padding-top: 1.25rem;
}

.sw-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--glass);
  margin-bottom: 0.5rem;
}

.sw-steps h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.sw-steps p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

/* ---------- Screenshots ---------- */

.sw-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.sw-shot {
  margin: 0;
}

.sw-shot a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 10;
}

.sw-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.sw-shot figcaption {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-top: 0.75rem;
}

/* ---------- Split panels ---------- */

.sw-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 56rem) {
  .sw-split {
    grid-template-columns: 1fr 1fr;
  }
}

.sw-panel {
  background: var(--glass);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--on-navy);
}

.sw-panel .sw-kicker {
  color: var(--rope);
}

.sw-panel a {
  color: var(--rope);
}

.sw-panel h2 {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 800;
  margin-top: 0.75rem;
  color: var(--cream);
}

.sw-panel p,
.sw-panel li {
  color: var(--on-navy-soft);
}

.sw-panel p {
  margin-top: 1rem;
}

.sw-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.sw-panel li + li {
  margin-top: 0.375rem;
}

.sw-panel code {
  background: var(--navy);
  color: var(--cream);
}

.sw-panel strong {
  color: var(--cream);
}

/* ---------- FAQ ---------- */

.sw-faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.sw-faq details {
  border-bottom: 1px solid var(--line);
}

.sw-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 1.125rem 2.5rem 1.125rem 0;
  position: relative;
}

.sw-faq summary::-webkit-details-marker {
  display: none;
}

.sw-faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--glass);
}

.sw-faq details[open] summary::after {
  content: '\2212';
}

.sw-faq details > div {
  padding: 0 0 1.25rem;
  color: var(--text-soft);
  max-width: var(--measure);
}

.sw-faq details > div p + p {
  margin-top: 0.75rem;
}

/* ---------- Call to action band ---------- */

.sw-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sw-cta h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  color: var(--cream);
}

.sw-cta p {
  color: var(--on-navy-soft);
  margin-top: 0.5rem;
}

/* ---------- Docs layout ---------- */

.sw-docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-y);
}

@media (min-width: 60rem) {
  .sw-docs {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }
}

.sw-toc {
  font-size: 0.9063rem;
}

@media (min-width: 60rem) {
  .sw-toc {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}

.sw-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass);
  margin-bottom: 0.75rem;
}

.sw-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.sw-toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--text-soft);
}

.sw-toc a:hover {
  color: var(--navy);
  border-left-color: var(--line);
}

.sw-toc a[aria-current='true'] {
  color: var(--navy);
  font-weight: 600;
  border-left-color: var(--navy);
}

/* Collapsible on a phone, so the content is not pushed a screen down. */
@media (max-width: 59.99rem) {
  .sw-toc {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.25rem;
  }

  .sw-toc ol {
    columns: 2;
    column-gap: 1rem;
    border-left: 0;
  }

  .sw-toc a {
    padding-left: 0;
    border-left: 0;
  }
}

.sw-prose {
  max-width: 46rem;
}

.sw-prose > section + section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.sw-prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
}

.sw-prose h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-top: 2.25rem;
}

.sw-prose p,
.sw-prose ul,
.sw-prose ol,
.sw-prose pre,
.sw-prose table,
.sw-prose .sw-note,
.sw-prose figure {
  margin-top: 1rem;
}

.sw-prose p,
.sw-prose li {
  color: var(--text-soft);
}

.sw-prose strong {
  color: var(--text);
}

.sw-prose ul,
.sw-prose ol {
  padding-left: 1.375rem;
  margin-bottom: 0;
}

.sw-prose li + li {
  margin-top: 0.5rem;
}

.sw-prose figure {
  margin-inline: 0;
}

.sw-prose figure img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sw-prose figcaption {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.sw-prose dl {
  margin: 1rem 0 0;
}

.sw-prose dt {
  font-weight: 700;
  margin-top: 1.25rem;
}

.sw-prose dd {
  margin: 0.375rem 0 0;
  color: var(--text-soft);
}

/* Code blocks: Navy ground, so Rope can carry the comments. */
.sw-code {
  position: relative;
}

.sw-prose pre,
.sw-code pre {
  background: var(--code-bg);
  color: var(--cream);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.55;
  font-size: 0.8125rem;
}

.sw-code__copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-navy-soft);
  background: var(--glass);
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  padding: 0.3125rem 0.625rem;
  cursor: pointer;
}

.sw-code__copy:hover {
  color: var(--cream);
}

.sw-c {
  color: var(--rope);
}

/* Tables */
.sw-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.sw-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9063rem;
}

.sw-table-wrap table {
  margin-top: 0;
}

.sw-prose th,
.sw-prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.875rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.sw-prose th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glass);
  border-bottom-color: var(--navy);
}

.sw-prose td {
  color: var(--text-soft);
}

.sw-prose td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* Notes */
.sw-note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.sw-note strong {
  color: var(--text);
}

.sw-note--warn {
  border-left-color: var(--bad);
}

/* ---------- Support ---------- */

.sw-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-y);
}

@media (min-width: 60rem) {
  .sw-support {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

.sw-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 60rem) {
  .sw-aside {
    order: 2;
  }
}

.sw-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.375rem 1.5rem;
}

.sw-card h2 {
  font-size: 1rem;
  font-weight: 700;
}

.sw-card p,
.sw-card li {
  font-size: 0.9063rem;
  color: var(--text-soft);
}

.sw-card p {
  margin-top: 0.5rem;
}

.sw-card ol {
  margin: 0.625rem 0 0;
  padding-left: 1.25rem;
}

.sw-card li + li {
  margin-top: 0.375rem;
}

/* The form sits on white, Navy ink. */
.sw-formcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.sw-formcard h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

.sw-formcard > p {
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin-top: 1.75rem;
}

.sw-row {
  display: grid;
  gap: 1.375rem;
}

@media (min-width: 40rem) {
  .sw-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.field > label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field__opt {
  font-weight: 400;
  color: var(--text-soft);
}

.field__help {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  border: 1px solid #cfc4b0;
  border-radius: 6px;
  padding: 0.6875rem 0.875rem;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314263A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field textarea.field__report {
  font-family: var(--mono);
  font-size: 0.8125rem;
  min-height: 7rem;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #a99b82;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 59, 92, 0.18);
}

.field[data-invalid] input,
.field[data-invalid] textarea,
.field[data-invalid] select {
  border-color: var(--bad);
}

.field__error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bad);
}

/* Honeypot — hidden from people, reachable by bots. */
.trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

/* site.js targets .btn for its double-submit guard */
.form__fineprint {
  font-size: 0.8125rem;
  color: var(--text-soft);
  max-width: 22rem;
}

.notice {
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  background: var(--paper);
  padding: 1.125rem 1.25rem;
}

.notice + .form {
  margin-top: 1.25rem;
}

.notice--bad {
  border-left-color: var(--bad);
}

.notice__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.notice--bad .notice__title {
  color: var(--bad);
}

.notice__body {
  margin-top: 0.375rem;
  color: var(--text-soft);
}

/* ---------- Footer ---------- */

.sw-foot {
  background: var(--navy);
  color: var(--on-navy-soft);
  border-top: 1px solid var(--navy-line);
  padding-block: 2.75rem;
}

.sw-foot__inner {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 52rem) {
  .sw-foot__inner {
    grid-template-columns: auto auto 1fr;
    align-items: start;
  }
}

.sw-foot__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rope);
  margin-top: 0.625rem;
}

.sw-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
}

.sw-foot__links a {
  color: var(--cream);
  text-decoration: none;
}

.sw-foot__links a:hover {
  text-decoration: underline;
}

.sw-foot__legal {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 34rem;
}

@media (min-width: 52rem) {
  .sw-foot__legal {
    justify-self: end;
  }
}

.sw-foot__legal a {
  color: var(--rope);
}

/* ---------- Print ---------- */

@media print {
  .sw-top,
  .sw-foot,
  .sw-toc,
  .sw-code__copy {
    display: none;
  }

  .sw-hero,
  .sw-pagehead,
  .sw-section--navy {
    background: #fff !important;
    color: #000 !important;
  }

  .sw-prose pre {
    background: #f4f4f4;
    color: #000;
  }
}

/* ---------- Support page bits ---------- */

.sw-notice-top {
  margin-top: 1.25rem;
}

.sw-sent-more {
  margin-top: 1rem;
  font-size: 0.9375rem;
}
