/* OpenArc Wealth Overview — institutional theme.
   Restrained palette: navy #00153B, OA blue #0065FF, neutrals.
   Serif display headings, clean sans body, generous whitespace. */

/* Self-hosted type (latin, variable): Fraunces for display, Inter for UI/body.
   No external font requests at runtime. */
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00153B;
  --blue: #0065FF;
  --ink: #1f2937;
  --muted: #5b6472;
  --faint: #8a94a3;
  --line: #e4e7ec;
  --wash: #f7f9fb;
  --serif: "Fraunces", Georgia, "Times New Roman", Times, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  font-optical-sizing: auto;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 900; }
/* keep in-page anchor targets clear of the sticky header */
[id] { scroll-margin-top: 88px; }
.header-inner { display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; }
.brand img { display: block; height: 44px; width: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 26px;
  transition: color 0.18s ease; }
.site-nav a:hover { color: var(--navy); }

/* type */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600;
  line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.015em; }
h2 { font-size: clamp(23px, 4.5vw, 27px); margin-top: 44px; }
h3 { font-size: 20px; margin-top: 30px; }
p { margin: 0 0 14px; }
.lede { font-size: 18.5px; color: var(--muted); max-width: 44em; }
.small { font-size: 13.5px; color: var(--muted); }
.eyebrow { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 12px; }
a { color: var(--blue); }

/* layout */
main.wrap { padding-top: 56px; padding-bottom: 80px; min-height: 60vh; }
.hero { padding: 40px 0 30px; }
.section { margin-top: 56px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* cards */
.card { border: 1px solid var(--line); border-radius: 8px; padding: 30px 32px;
  background: #fff; margin-bottom: 22px; }
.card.wash { background: var(--wash); }
/* subtle lift on linked cards only */
a.card { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
a.card:hover { border-color: #c3ccd9; box-shadow: 0 10px 24px -14px rgba(0,21,59,0.18); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

/* steps */
.step-num { font-family: var(--serif); font-size: 30px; color: var(--blue); }
.step h3 { margin-top: 8px; }

/* forms */
label.f-label { display: block; font-size: 14px; font-weight: 600; color: var(--navy);
  margin: 22px 0 8px; }
label.f-label .q { font-weight: 400; color: var(--muted); display: block;
  font-size: 13.5px; margin-top: 3px; }
input[type=text], input[type=email], input[type=tel], input[type=number],
select, textarea {
  width: 100%; max-width: 560px; padding: 11px 13px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 6px; font-family: var(--sans);
  color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.checkline, .radioline { display: block; margin: 7px 0; font-size: 15px; }
.checkline input, .radioline input { margin-right: 9px; }
fieldset { border: 0; padding: 0; margin: 0; }

/* buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; border: 0;
  border-radius: 6px; padding: 13px 30px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: var(--sans);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.btn:hover { background: #0a2547; color: #fff; }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--navy); }
.btn.small { padding: 8px 16px; font-size: 13.5px; }
.btn-row { margin-top: 30px; }

/* tables */
table.data { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14.5px; }
table.data th { text-align: left; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); font-weight: 600;
  padding: 10px 12px; border-bottom: 2px solid var(--line); }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }

/* review */
.conf { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 20px; padding: 3px 11px; margin-left: 10px; }
.conf.high { background: #e8eefc; color: #1d4fd7; }
.conf.low { background: #fdf3e7; color: #9a5b13; }
.src { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.field-row .fname { font-size: 13.5px; color: var(--muted); padding-top: 10px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

/* timeline */
.timeline { list-style: none; margin: 24px 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; color: var(--faint); font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%; background: #d7dce3; }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: -2px;
  width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--blue); }
.timeline li.current { color: var(--navy); font-weight: 600; }
.timeline li.current::before { background: var(--navy);
  box-shadow: 0 0 0 4px rgba(0, 21, 59, 0.12); }
.timeline .t-sub { display: block; font-weight: 400; color: var(--faint); font-size: 13px; }

/* sla + status chips */
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 20px;
  padding: 4px 13px; white-space: nowrap; }
.chip.ontrack { background: #eef2f7; color: #33415c; }
.chip.duesoon { background: #fdf3e7; color: #8a5a12; }
.chip.atrisk { background: #fdeee4; color: #9a4a12; }
.chip.breached { background: #fbe9e9; color: #a12323; }
.chip.complete { background: #e7f4ec; color: #1e6b3a; }

/* callouts */
.sla-box { border: 1px solid var(--line); border-left: 4px solid var(--blue);
  background: var(--wash); border-radius: 0 8px 8px 0; padding: 22px 26px; margin: 30px 0; }
.sla-box h3 { margin-top: 0; font-size: 19px; }
.notice { border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px;
  background: #fffdf7; margin: 26px 0; font-size: 14.5px; color: var(--muted); }
.footnote { font-size: 13px; color: var(--faint); border-top: 1px solid var(--line);
  margin-top: 44px; padding-top: 18px; }
.footnote ol { margin: 8px 0; padding-left: 20px; }
.footnote li { margin-bottom: 6px; }

/* report */
.report-head { border-bottom: 3px solid var(--navy); padding-bottom: 26px; margin-bottom: 10px; }
.alloc-bar { height: 10px; background: var(--wash); border-radius: 5px; overflow: hidden; }
.alloc-bar span { display: block; height: 100%; background: var(--blue); }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px 18px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* footer */
.site-footer { background: var(--navy); color: #c6cfdd; padding: 44px 0 54px; }
.footer-firm { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 6px; }
.footer-note { font-size: 14px; color: #9fb0c9; margin-bottom: 18px; }
.footer-small { font-size: 12.5px; color: #7d8ea8; max-width: 62em; line-height: 1.7; }

/* ops */
.actions form { display: inline-block; margin-right: 8px; }
.inline-input { width: 200px !important; display: inline-block; margin-right: 8px; }

/* ——— mobile pass (≤700px): tap targets, no horizontal scroll, iOS zoom guard ——— */
@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  main.wrap { padding-top: 36px; padding-bottom: 56px; }
  .card { padding: 22px 20px; }
  .btn.small { padding: 12px 18px; }            /* ≥44px tall tap target */
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  input[type=text], input[type=email], input[type=tel], input[type=number],
  select, textarea { font-size: 16px; }          /* prevents iOS focus zoom */
  table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .field-row { grid-template-columns: 1fr; }
}

/* scroll reveal — the hidden state (.rv without .rv-in) only applies under
   .reveal-on, which the reveal script adds to <html> AFTER marking elements.
   No-JS (or any script failure before that point) = everything fully visible. */
.reveal-on .rv { opacity: 0; transform: translateY(12px); }
.reveal-on .rv.rv-in { opacity: 1; transform: none;
  transition: opacity 0.6s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.6s cubic-bezier(0.22,0.61,0.36,1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-on .rv { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ——— article reading experience ——— */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--blue); z-index: 1200; }
.takeaways { border: 1px solid var(--line); border-left: 4px solid var(--blue);
  background: var(--wash); border-radius: 0 8px 8px 0; padding: 20px 24px;
  margin: 28px 0 8px; max-width: 44em; }
.takeaways .tk-title { font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { font-size: 15.5px; margin-bottom: 6px; }
.takeaways li:last-child { margin-bottom: 0; }
.topic-tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; }

/* ——— learn index topic filter chips ——— */
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.chip-filter { border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 18px; min-height: 44px; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; font-family: var(--sans);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease; }
.chip-filter:hover { border-color: var(--navy); color: var(--navy); }
.chip-filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
@media print { .read-progress, .topic-chips { display: none; } }
