/* Shared styles for the generated CE requirement pages (backend/scripts/ce-pages.ts). */
:root { --bg: #FFF8F5; --ink: #2C1810; --body: #5B4438; --muted: #7A5F4D; --clay: #CB7E65; --rust: #A85E45; --line: #E8D5CC; --blush: #FBEAE3; --serif: 'Instrument Serif', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--rust); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
header.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
header.top img { height: 32px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
nav.main a { color: var(--ink); text-decoration: none; }
nav.main a.here { color: var(--rust); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px; background: var(--rust); color: #fff !important; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn.small { height: 42px; padding: 0 18px; font-size: 15px; }
.doc { max-width: 860px; padding-top: 40px; padding-bottom: 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); margin: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.6vw, 56px); line-height: 1.06; letter-spacing: -.02em; margin: 10px 0 0; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
p { margin: 0; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--body); margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 8px; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; }
section.rule { padding: 26px 0 0; margin-top: 26px; border-top: 1px solid var(--line); }
section.rule ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
section.rule ul.plain { list-style: none; padding: 0; }
section.rule li, section.rule p { color: var(--body); font-size: 16px; }
section.rule li strong { color: var(--ink); font-weight: 600; }
section.rule p + p { margin-top: 8px; }
.det { display: block; font-size: 15px; margin-top: 2px; }
.disclaimer { margin-top: 20px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 12px; font-size: 14px; color: var(--body); }
.disclaimer strong { color: var(--ink); }
.tablewrap.flat { margin: 6px 0 14px; }
table.compare td { color: var(--body); }
table.compare thead th { white-space: nowrap; }
.note { font-size: 14px !important; color: var(--muted) !important; }
section.rule a { word-break: break-word; }
.cta { margin-top: 40px; background: var(--blush); border-radius: 24px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.cta p { color: var(--body); font-size: 16px; max-width: 520px; }
.tablewrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.index { width: 100%; border-collapse: collapse; font-size: 15px; }
table.index th, table.index td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.index thead th { border-top: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.index tbody th { font-weight: 600; white-space: nowrap; }
table.index td a { font-weight: 600; text-decoration: none; }
table.index td span { display: block; color: var(--muted); font-size: 13px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer .links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  header.top .wrap { height: 60px; }
  header.top img { height: 26px; }
  nav.main { gap: 14px; font-size: 14px; }
  nav.main a:not(.btn):not(.here) { display: none; }
  .btn.small { height: 38px; padding: 0 14px; font-size: 14px; }
  .doc { padding-top: 28px; padding-bottom: 48px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: 1 / -1; }
  .cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  table.index { font-size: 14px; }
  table.index th, table.index td { padding: 9px 8px; }
  table.index thead th { font-size: 10px; letter-spacing: .04em; }
  table.index tbody th { white-space: normal; }
  table.compare { font-size: 13px; table-layout: fixed; }
  table.compare th, table.compare td { padding: 8px 6px; overflow-wrap: break-word; hyphens: auto; }
  table.compare thead th { white-space: normal; }
}
@media (max-width: 420px) {
  nav.main a.here { display: none; }
}
