/* ============================================================
   Safeguard Senior · Article & resource content
   ============================================================ */

.content-page { padding-block: clamp(32px, 5vw, 56px); }
.content-page__inner { max-width: 720px; margin-inline: auto; }
.content-page--wide .content-page__inner { max-width: 860px; }

.content-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--divider); }
.content-head .breadcrumb {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.content-head .breadcrumb a { color: var(--muted); text-decoration: none; }
.content-head .breadcrumb a:hover { color: var(--navy); }
.content-head .cat {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.content-head h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 14px;
}
.content-head .meta {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--muted);
}
.content-head .lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-top: 16px;
  max-width: 58ch;
}

.prose {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
}
.prose h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 2.2em 0 0.65em;
  line-height: 1.2;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 1.6em 0 0.5em;
}
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.35em; }
.prose li { margin-bottom: 0.45em; }
.prose a { color: var(--navy); font-weight: 600; }
.prose a:hover { color: var(--amber); }

.guide .prose { font-size: 1.15rem; }

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
/* Article hero image */
.article-hero {
  margin: 0 0 2.5em;
  border-radius: var(--r-md);
  overflow: hidden;
  line-height: 0;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-actions__note {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 52ch;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.75em 0;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: var(--white);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 15px;
  min-width: 480px;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--divider);
  background: var(--offwhite);
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.data-table th {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--offwhite);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* CSS bar chart (decorative; data in table) */
.bar-chart {
  margin: 1.75em 0;
  padding: 20px;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: var(--offwhite);
}
.bar-chart__title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin: 0 0 16px;
}
.bar-chart__rows { display: flex; flex-direction: column; gap: 10px; }
.bar-chart__row {
  display: grid;
  grid-template-columns: 48px 1fr 56px;
  align-items: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 13px;
}
.bar-chart__label { font-weight: 600; color: var(--navy); }
.bar-chart__track {
  height: 22px;
  background: var(--white);
  border-radius: var(--r-sm);
  border: 1px solid var(--divider);
  overflow: hidden;
}
.bar-chart__fill {
  height: 100%;
  background: var(--navy);
  border-radius: var(--r-sm);
  min-width: 4px;
}
.bar-chart__val { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }

/* Flow steps */
.flow-steps {
  margin: 1.75em 0;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
}
.flow-steps__title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  padding: 14px 18px;
  margin: 0;
  background: var(--offwhite);
  border-bottom: 1px solid var(--divider);
}
.flow-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}
.flow-steps li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--divider);
  align-items: start;
}
.flow-steps li:last-child { border-bottom: 0; }
.flow-steps li::before {
  content: counter(flow);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-steps strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.flow-steps span {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.source-note {
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 2.5em;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}
.source-note a { color: var(--navy); }

.insight-callout {
  margin: 1.75em 0;
  padding: 18px 20px;
  background: var(--amber-tint);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}
.insight-callout__label {
  display: block;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.insight-callout a { font-weight: 600; color: var(--navy); }

.related-links {
  margin-top: 2.5em;
  padding: 20px;
  background: var(--offwhite);
  border-radius: var(--r-md);
  border: 1px solid var(--divider);
}
.related-links h2 {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 12px;
}
.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-links a {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
}
.related-links a:hover { color: var(--amber); }

/* Safe word fill-in card */
.fill-card {
  margin: 1.75em 0;
  padding: 24px;
  border: 2px dashed var(--divider);
  border-radius: var(--r-md);
  background: var(--white);
}
.fill-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 16px;
}
.fill-card__field {
  margin-bottom: 16px;
}
.fill-card__field label {
  display: block;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.fill-card__field input {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--divider);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--ui);
  font-size: 18px;
}
.fill-card__hint {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.acard--soon { opacity: 0.65; cursor: default; pointer-events: none; }
.acard--soon:hover { transform: none; box-shadow: var(--shadow-card); }
.acard__soon {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}
.res-card--soon { opacity: 0.65; pointer-events: none; }
.res-card--soon:hover { transform: none; box-shadow: var(--shadow-card); }

@media print {
  .site-header, .nav-sheet, .skip-link, .guide-actions, .guide-actions__note, .site-footer, .modal-root, .related-links { display: none !important; }
  .content-page { padding: 0; }
  .prose, .guide .prose { font-size: 12pt; line-height: 1.6; }
  .data-table { font-size: 11pt; min-width: 0; }
  .bar-chart { break-inside: avoid; }
  .flow-steps { break-inside: avoid; }
  .fill-card input { border-bottom: 1px solid #000; border-top: 0; border-left: 0; border-right: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
}
