/* Long-form body styles, loaded on the four pages that keep their own theme sheet. */
/* SPEC-05 Long-form Content System */
.fcs-doc {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 20px 84px;
  color: var(--fcs-ink);
  line-height: 1.65;
  font-size: 16.5px;
}
.fcs-doc h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fcs-navy);
  line-height: 1.18;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.fcs-doc h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fcs-navy);
  line-height: 1.25;
  margin: 44px 0 18px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.fcs-doc h3 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--fcs-navy);
  line-height: 1.3;
  margin: 32px 0 14px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.fcs-doc p {
  margin: 0 0 20px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--fcs-ink);
}
.fcs-doc a {
  color: var(--fcs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.fcs-doc a:hover,
.fcs-doc a:focus-visible {
  color: var(--fcs-navy-2);
}
.fcs-doc strong {
  font-weight: 700;
  color: var(--fcs-navy);
}
.fcs-doc-standfirst {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fcs-navy-2);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 28px;
}
.fcs-doc-lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--fcs-navy);
  font-weight: 600;
  margin: 24px 0 16px;
}
.fcs-doc-note {
  background-color: var(--fcs-surface);
  border-left: 4px solid var(--fcs-blue);
  border-top: 1px solid var(--fcs-line);
  border-right: 1px solid var(--fcs-line);
  border-bottom: 1px solid var(--fcs-line);
  border-radius: 0 var(--fcs-r-s) var(--fcs-r-s) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--fcs-navy-2);
  box-shadow: 0 1px 3px rgba(18, 32, 63, 0.03);
}
.fcs-doc-note p:last-child {
  margin-bottom: 0;
}
.fcs-doc-key {
  background: var(--fcs-gold-wash);
  border: 1px solid var(--fcs-gold);
  border-radius: var(--fcs-r-m);
  padding: 24px 28px;
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(245, 179, 1, 0.12);
  color: var(--fcs-navy);
}
.fcs-doc-key p:last-child {
  margin-bottom: 0;
}
/* Tables in Long-form: Horizontal scroll on desktop and compact card support on mobile */
.fcs-doc-tablewrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  background: var(--fcs-surface);
  border: 1px solid var(--fcs-line);
  border-radius: var(--fcs-r-s);
  box-shadow: 0 1px 3px rgba(18, 32, 63, 0.03);
}
.fcs-doc-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}
.fcs-doc-table th,
.fcs-doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fcs-line);
  vertical-align: top;
}
.fcs-doc-table th {
  background-color: var(--fcs-bg);
  font-size: 13px;
  font-weight: 800;
  color: var(--fcs-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fcs-doc-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .fcs-doc-tablewrap:has([data-label]) {
    overflow-x: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table,
  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table tbody,
  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table tr,
  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table td {
    display: block;
    min-width: 0;
  }

  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table thead {
    display: none;
  }

  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table tr {
    background: var(--fcs-surface);
    border: 1px solid var(--fcs-line);
    border-radius: var(--fcs-r-s);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(18, 32, 63, 0.04);
  }

  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--fcs-bg);
  }

  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table td:last-child {
    border-bottom: none;
  }

  .fcs-doc-tablewrap:has([data-label]) .fcs-doc-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--fcs-navy);
    flex-shrink: 0;
  }
}
.fcs-doc-steps {
  list-style: none;
  counter-reset: fcs-step-counter;
  padding: 0;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fcs-doc-steps > li {
  counter-increment: fcs-step-counter;
  position: relative;
  padding-left: 50px;
  min-height: 38px;
  color: var(--fcs-ink);
  font-size: 16px;
  line-height: 1.6;
}
.fcs-doc-steps > li::before {
  content: counter(fcs-step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background-color: var(--fcs-blue-wash);
  color: var(--fcs-blue);
  font-weight: 800;
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(63, 123, 240, 0.2);
}
.fcs-doc-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fcs-doc-list > li {
  position: relative;
  padding-left: 24px;
  color: var(--fcs-ink);
  font-size: 16px;
  line-height: 1.6;
}
.fcs-doc-list > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--fcs-blue);
}
/* FAQ Accordion */
.fcs-doc-faq {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fcs-doc-q {
  background-color: var(--fcs-surface);
  border: 1px solid var(--fcs-line);
  border-radius: var(--fcs-r-s);
  box-shadow: 0 1px 3px rgba(18, 32, 63, 0.03);
  overflow: clip;
}
.fcs-doc-q summary {
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fcs-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  min-height: 44px;
}
.fcs-doc-q summary::-webkit-details-marker {
  display: none;
}
.fcs-doc-q summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--fcs-blue);
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.fcs-doc-q[open] summary::after {
  content: "-";
}
.fcs-doc-q > :not(summary) {
  padding: 0 22px 20px 22px;
  font-size: 14.5px;
  color: var(--fcs-muted);
  line-height: 1.6;
}
.fcs-doc-q > p:first-of-type {
  border-top: 1px solid var(--fcs-bg);
  padding-top: 16px;
}
.fcs-doc-figure {
  margin: 32px 0;
  background-color: var(--fcs-surface);
  border: 1px solid var(--fcs-line);
  border-radius: var(--fcs-r-m);
  overflow: clip;
  box-shadow: 0 2px 8px rgba(18, 32, 63, 0.04);
}
.fcs-doc-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.fcs-doc-figure figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--fcs-muted);
  background-color: var(--fcs-bg);
  border-top: 1px solid var(--fcs-line);
  font-weight: 500;
}
.fcs-doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 18px;
  background-color: var(--fcs-surface);
  border: 1px solid var(--fcs-line);
  border-radius: var(--fcs-r-s);
  font-size: 13.5px;
  color: var(--fcs-muted);
  margin-bottom: 32px;
}
.fcs-doc-meta strong {
  color: var(--fcs-navy);
}
/* Guides Hub Spokes Navigation */
.fcs-doc-crosslinks {
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fcs-doc-crosslinks a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  background-color: var(--fcs-surface);
  border: 1px solid var(--fcs-line);
  border-radius: var(--fcs-r-s);
  color: var(--fcs-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  min-height: 64px;
  box-shadow: 0 1px 3px rgba(18, 32, 63, 0.03);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.fcs-doc-crosslinks a:hover,
.fcs-doc-crosslinks a:focus-visible {
  border-color: var(--fcs-blue);
  color: var(--fcs-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 32, 63, 0.06);
}
@media (max-width: 540px) {
  .fcs-doc-crosslinks {
    grid-template-columns: 1fr;
  }
}
/* Author Box */
.fcs-author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background-color: var(--fcs-surface);
  border: 1px solid var(--fcs-line);
  border-radius: var(--fcs-r-m);
  margin: 44px 0 28px;
  box-shadow: 0 2px 6px rgba(18, 32, 63, 0.04);
}
.fcs-author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fcs-blue-wash);
  flex-shrink: 0;
}
.fcs-author-card h3,
.fcs-author-card strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--fcs-navy);
  margin: 0 0 4px;
  display: block;
}
.fcs-author-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fcs-muted);
  line-height: 1.5;
}
@media (max-width: 480px) {
  .fcs-author-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}
/* Sitemap Page Groups */
.fcs-sitemap-group {
  background-color: var(--fcs-surface);
  border: 1px solid var(--fcs-line);
  border-radius: var(--fcs-r-m);
  padding: 28px;
  margin: 24px 0;
  box-shadow: 0 1px 4px rgba(18, 32, 63, 0.03);
}
.fcs-sitemap-group h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--fcs-navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fcs-line);
}
.fcs-sitemap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.fcs-sitemap-group li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fcs-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}
.fcs-sitemap-group li a:hover,
.fcs-sitemap-group li a:focus-visible {
  color: var(--fcs-blue);
}
@media (max-width: 600px) {
  .fcs-sitemap-group ul {
    grid-template-columns: 1fr;
  }
}
.fcs-author-card { align-items: center; }
.fcs-author-card img { width: 84px; height: 84px; }
.fcs-author-body { min-width: 0; }
.fcs-author-body strong { display: block; font-size: 18px; font-weight: 800; color: var(--fcs-navy); }
.fcs-author-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fcs-blue);
  margin: 2px 0 8px;
}
.fcs-author-body p { margin: 0; font-size: 15px; color: var(--fcs-muted); }
@media (max-width: 520px) {
  .fcs-author-card { flex-direction: column; text-align: center; gap: 14px; }
  .fcs-author-body { text-align: center; }
}
/* The long-form section on the four original pages sits inside the site's own wrapper, so it needs
   the reading column applied there too. */
.fcs-longform .fcs-doc, .fcs-xsec .fcs-doc { margin-left: auto; margin-right: auto; }
