/* ============================================================
   LATINUM HR — content sub-pages (loads AFTER style.css)
   Reuses brand tokens, header, footer, buttons, cards.
   ============================================================ */

/* Reveal (progressive enhancement: visible without JS) */
.rise { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
html.js .rise { opacity: 0; transform: translateY(26px); }
html.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .rise { opacity: 1 !important; transform: none !important; }
}

/* Sub-pages don't animate the hero, so header text must be dark from the start */
.subpage { background: var(--ivory); }

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(1000px 520px at 82% -10%, rgba(201, 169, 106, 0.14), transparent 62%),
    radial-gradient(820px 500px at 8% 120%, rgba(79, 116, 168, 0.10), transparent 60%),
    linear-gradient(170deg, #ffffff 0%, var(--ivory) 60%, var(--ivory-dim) 100%);
  border-bottom: 1px solid rgba(16, 30, 56, 0.06);
  overflow: hidden;
}
.masthead__inner { max-width: 62rem; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span[aria-current] { color: var(--navy-700); }
.breadcrumb i { color: rgba(29, 48, 80, 0.3); font-style: normal; }

.masthead h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08;
  letter-spacing: -0.015em; color: var(--navy-900);
  max-width: 20ch; margin: 0.4rem 0 0;
}
.masthead h1 em { font-style: normal; color: var(--gold-deep); }
.masthead__lead {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 56ch; margin: 1.3rem 0 0;
}
.masthead__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.masthead__meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.2rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(16, 30, 56, 0.08);
}
.masthead__meta div { display: grid; gap: 0.15rem; }
.masthead__meta dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.masthead__meta dd { margin: 0; font-weight: 600; color: var(--navy-800); font-size: 0.98rem; }

/* ---------- Content sections ---------- */
.page-section { padding-block: clamp(3rem, 6vw, 5rem); }
.page-section--tint { background: var(--ivory-dim); }
.page-section--dark {
  background:
    radial-gradient(1100px 560px at 85% -20%, rgba(79, 116, 168, 0.10), transparent 60%),
    var(--white);
}
.page-section__head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.page-section__head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15;
  color: var(--navy-900); letter-spacing: -0.01em; margin: 0;
}
.page-section__head h2 em { font-style: italic; color: var(--gold-500); }
.page-section__head p { color: var(--ink-soft); margin: 0.9rem 0 0; }

/* Prose */
.prose { max-width: 65ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--ink-soft); }
.prose h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.35rem;
  color: var(--navy-900); margin-top: 2rem;
}
.prose a { color: var(--gold-deep); font-weight: 600; text-underline-offset: 3px; }
.prose strong { color: var(--navy-800); }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose ul li { margin-bottom: 0.4rem; }
.prose ul li::marker { color: var(--gold-500); }

/* Two-column content */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Feature / service cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  background: var(--white); border: 1px solid rgba(16, 30, 56, 0.06);
  border-radius: var(--radius-md); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: block; color: inherit; text-decoration: none;
}
a.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600)); color: var(--gold-300);
  margin-bottom: 1rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--navy-900); margin: 0 0 0.4rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.feature__more { display: inline-block; margin-top: 0.8rem; color: var(--gold-deep); font-weight: 700; font-size: 0.88rem; }

/* Checklist / points */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; max-width: 62ch; }
.points li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-soft); }
.points svg { flex: none; width: 21px; height: 21px; color: var(--gold-deep); margin-top: 0.15rem; }
.points b { color: var(--navy-800); }

/* Stat row */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.statrow .stat {
  background: var(--white); border: 1px solid rgba(16, 30, 56, 0.06);
  border-radius: var(--radius-md); padding: 1.4rem 1.4rem; box-shadow: var(--shadow-card);
}
.statrow .stat strong {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 2rem; color: var(--navy-800); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.statrow .stat span { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 65ch; display: grid; gap: 0.75rem; }
.faq details {
  background: var(--white); border: 1px solid rgba(16, 30, 56, 0.08);
  border-radius: 12px; padding: 0.4rem 1.2rem; box-shadow: var(--shadow-card);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 0.9rem 0; font-weight: 600;
  color: var(--navy-900); display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--gold-deep); font-weight: 400; line-height: 1;
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 1rem; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(900px 500px at 80% -20%, rgba(79, 116, 168, 0.18), transparent 60%),
    var(--navy-950);
  color: var(--ivory); text-align: center; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin: 0 auto; max-width: 20ch; line-height: 1.12; }
.cta-band p { color: rgba(247, 245, 240, 0.75); margin: 1rem auto 0; max-width: 46ch; }
.cta-band .masthead__actions, .cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2rem; }
.cta-band .btn--ghost { border-color: rgba(126, 156, 198, 0.5); color: var(--ivory); }
.cta-band .btn--ghost:hover { border-color: var(--gold-500); color: #fff; }

/* Callout / note */
.note {
  border-left: 3px solid var(--gold-500); background: var(--white);
  padding: 1.2rem 1.4rem; border-radius: 0 12px 12px 0; max-width: 62ch;
  box-shadow: var(--shadow-card);
}
.note p { margin: 0; color: var(--ink-soft); }
.note strong { color: var(--navy-800); }

/* ---------- Articles / insights ---------- */
.article { padding-block: clamp(2.5rem, 5vw, 4rem); }
.article__wrap { max-width: 720px; margin-inline: auto; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center;
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(16, 30, 56, 0.08);
  font-size: 0.86rem; color: var(--ink-faint);
}
.article__meta b { color: var(--navy-800); font-weight: 600; }
.article__meta .dot { color: rgba(29, 48, 80, 0.3); }

.article-body { max-width: 720px; margin-inline: auto; }
.article-body > * + * { margin-top: 1.15rem; }
.article-body p { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
.article-body h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.6rem;
  color: var(--navy-900); margin-top: 2.6rem; letter-spacing: -0.01em; scroll-margin-top: 6rem;
}
.article-body h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem;
  color: var(--navy-900); margin-top: 1.8rem;
}
.article-body a { color: var(--gold-deep); font-weight: 600; text-underline-offset: 3px; }
.article-body strong { color: var(--navy-800); }
.article-body ul, .article-body ol { padding-left: 1.3rem; color: var(--ink-soft); }
.article-body li { margin-bottom: 0.5rem; line-height: 1.6; }
.article-body li::marker { color: var(--gold-500); }

/* Answer-first "key takeaways" — designed to be quoted by search engines & LLMs */
.takeaways {
  background: var(--gold-wash, #f6efdd); border: 1px solid rgba(169, 131, 60, 0.28);
  border-radius: 14px; padding: 1.4rem 1.6rem; margin: 1.8rem auto; max-width: 720px;
}
:root { --gold-wash: #f6efdd; }
.takeaways h2 {
  font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep); margin: 0 0 0.8rem; font-weight: 700;
}
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { color: var(--navy-800); margin-bottom: 0.45rem; font-size: 0.98rem; }
.takeaways li::marker { color: var(--gold-500); }

/* Article tables */
.table-wrap { overflow-x: auto; border: 1px solid rgba(16, 30, 56, 0.1); border-radius: 12px; margin: 1.6rem auto; max-width: 720px; box-shadow: var(--shadow-card); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 460px; background: var(--white); }
.article-body caption { text-align: left; padding: 0.8rem 1rem 0.2rem; font-weight: 700; color: var(--navy-800); }
.article-body thead th { text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(16,30,56,0.1); background: var(--ivory-dim); }
.article-body tbody td { padding: 0.7rem 1rem; border-bottom: 1px solid rgba(16,30,56,0.07); color: var(--ink-soft); }
.article-body tbody td:first-child { color: var(--navy-800); font-weight: 500; }
.article-body tbody tr:last-child td { border-bottom: 0; }

/* Inline citations + references + stat callouts (GEO: source-backed claims
   that LLMs and search engines can verify and quote with attribution) */
.cite { font-size: 0.68em; vertical-align: super; line-height: 0; white-space: nowrap; }
.cite a { color: var(--gold-deep); font-weight: 700; text-decoration: none; }
.cite a:hover { text-decoration: underline; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.9rem auto; max-width: 720px; }
.stat { background: var(--white); border: 1px solid rgba(16, 30, 56, 0.08); border-radius: 12px; padding: 1.15rem 1.2rem; box-shadow: var(--shadow-card); }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; color: var(--navy-900); line-height: 1.05; }
.stat span { display: block; margin-top: 0.4rem; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; }
.references { max-width: 720px; margin: 2.4rem auto 0; border-top: 1px solid rgba(16, 30, 56, 0.1); padding-top: 1.3rem; }
.references h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 0.85rem; }
.references ol { padding-left: 1.3rem; }
.references li { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 0.6rem; }
.references li::marker { color: var(--ink-faint); }
.references a { color: var(--gold-deep); font-weight: 600; word-break: break-word; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }

/* Insights index cards */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.insight-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid rgba(16, 30, 56, 0.06); border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.insight-card .cat { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.insight-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--navy-900); margin: 0.6rem 0 0.5rem; line-height: 1.2; }
.insight-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; flex: 1; }
.insight-card .go { margin-top: 1rem; color: var(--gold-deep); font-weight: 700; font-size: 0.88rem; }

/* Responsive */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .statrow { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .insight-grid { grid-template-columns: 1fr; }
}
