/* FamilyOps public documentation system. */
:root {
  --navy: #0B1F3B;
  --navy-2: #06172D;
  --blue: #1E63D6;
  --blue-dark: #174EA6;
  --gold: #A86F00;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --surface: #FBFCFE;
  --ink: #071B34;
  --muted: #536274;
  --line: #D7DDE6;
  --line-strong: #BBC6D4;
  --line-dark: rgba(255,255,255,0.16);
  --shadow: 0 22px 62px rgba(11,31,59,0.10);
  --max: 1180px;
  --read: 820px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(11,31,59,0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11,31,59,0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px;
  font: 16px/1.72 "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gold);
  padding: 8px 12px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(11,31,59,0.13);
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 600;
}

.brand:hover {
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-word {
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header.site nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

header.site nav a {
  color: var(--navy);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 11px;
}

header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(30,99,214,0.08);
  text-decoration: none;
}

header.site nav .cta {
  margin-left: 8px;
  color: var(--white);
  background: var(--navy);
}

header.site nav .cta:hover {
  color: var(--white);
  background: var(--blue-dark);
}

main {
  padding: 70px 0 96px;
}

.page-hero {
  max-width: 860px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
}

h1,
h2 {
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 5.1vw, 4.55rem);
  line-height: 0.94;
  margin: 0 0 18px;
  font-weight: 700;
}

.lede {
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.62;
  max-width: 760px;
  margin: 0 0 24px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  background: var(--line);
}

.meta span {
  color: var(--muted);
  background: rgba(255,255,255,0.86);
  padding: 9px 12px;
  font-size: 13px;
}

.doc-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--read));
  gap: 32px;
  align-items: start;
}

.doc-shell > *,
.support-layout > *,
.content-panel {
  min-width: 0;
}

.side-index {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  padding: 18px;
}

.side-index h2 {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 600;
}

.side-index a {
  display: block;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
}

.side-index a:hover {
  color: var(--blue);
  text-decoration: none;
}

.content-panel {
  max-width: var(--read);
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 40px;
}

.content-panel > :first-child {
  margin-top: 0;
}

.content-panel > :last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 46px 0 12px;
  scroll-margin-top: 102px;
  font-weight: 600;
}

h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
  margin: 28px 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p,
li,
td {
  color: var(--muted);
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
  margin: 10px 0 18px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--navy);
}

em {
  color: var(--ink);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.callout {
  background: #F8FAFD;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  padding: 18px 19px;
  margin: 20px 0 30px;
}

.help-search {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.help-search label {
  display: block;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 8px;
}

.help-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  padding: 11px 13px;
}

.help-search input::placeholder {
  color: var(--muted);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
  margin-bottom: 28px;
}

.help-card {
  display: block;
  background: rgba(255,255,255,0.9);
  color: inherit;
  padding: 18px;
}

.help-card:hover {
  text-decoration: none;
  background: var(--white);
}

.help-card h2 {
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.help-card p {
  font-size: 13px;
  margin: 0;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.support-aside {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  padding: 22px;
}

.support-aside h2 {
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.support-aside p {
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 620px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--navy);
  background: #F8FAFD;
  font-weight: 600;
}

details {
  margin: 10px 0;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 11px 17px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn.primary {
  color: var(--white);
  background: var(--navy);
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.btn.ghost {
  color: var(--navy);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.78);
}

.btn.ghost:hover {
  color: var(--blue);
  border-color: var(--blue);
}

footer.site {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  padding: 44px 0 30px;
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}

footer.site .row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
  align-items: flex-start;
}

footer.site .col {
  min-width: 130px;
}

footer.site .col:first-child {
  max-width: 320px;
}

footer.site .brand,
footer.site .col h5 {
  color: var(--white);
}

footer.site .col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  font-weight: 600;
}

footer.site .col p {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  margin: 12px 0 0;
}

footer.site .col a {
  display: block;
  color: rgba(255,255,255,0.72);
  padding: 4px 0;
  font-size: 14px;
}

footer.site .col a:hover {
  color: var(--white);
  text-decoration: none;
}

footer.site .legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .doc-shell,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .side-index,
  .support-aside {
    position: static;
  }

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

@media (max-width: 760px) {
  .container {
    padding: 0 20px;
  }

  header.site {
    min-height: auto;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 13px 0;
  }

  header.site nav {
    width: 100%;
  }

  header.site nav a {
    padding: 7px 9px;
    white-space: nowrap;
  }

  header.site nav .cta {
    display: none;
  }

  main {
    padding: 54px 0 76px;
  }

  .content-panel {
    padding: 26px 20px;
  }

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

  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-word {
    font-size: 23px;
  }
}

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

  .btn {
    transition: none !important;
  }
}
