/* CedarGrant (same system as CedarBid): black and white, one typeface, no scripts.
   The home page opens on a black band whose headline is the live answer;
   every other page is quiet white with the data front and center. */
/* Geist, SIL Open Font License (fonts/OFL.txt). Served from this site: no third-party requests. */
@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --paper: #ffffff; --ink: #000000; --muted: #5e5e5e; --rule: #e6e6e6; --mist: #f5f5f5;
  --band: #000000; --band-ink: #ffffff; --band-muted: rgba(255, 255, 255, .66); --band-rule: rgba(255, 255, 255, .16);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #000000; --ink: #ffffff; --muted: #a3a3a3; --rule: #262626; --mist: #141414;
          --band: #141414; --band-rule: rgba(255, 255, 255, .12); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
       font: 400 16.5px/1.6 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       letter-spacing: -0.006em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 86%, transparent);
             backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
             border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 12px 24px; min-height: 60px; }
.brand { font-weight: 600; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.tag { color: var(--muted); font-size: 14px; display: none; }
@media (min-width: 900px) { .tag { display: inline; } }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; font-size: 15px; }
.bar nav a { text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
@media (max-width: 859px) {
  .bar { flex-wrap: wrap; padding-block: 10px 8px; gap: 6px 16px; }
  .bar .btn { margin-left: auto; order: 2; }
  .bar nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px;
       border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
       border: 1px solid transparent; transition: opacity .15s; }
.btn:hover { opacity: .82; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-paper { background: #fff; color: #000; }
.btn-line { border-color: currentColor; color: inherit; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Type */
main.page { padding-block: 28px 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.04em; margin: 8px 0 18px; max-width: 22ch; }
h2 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.03em; margin: 56px 0 16px; }
h3 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 6px; }
.lead { font-size: clamp(17.5px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 66ch; margin: 0 0 8px; }
.lead strong { color: var(--ink); font-weight: 600; }
p, li { max-width: 72ch; }

/* Facts row: a top rule over each figure */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; margin: 32px 0 8px; }
.facts div { border-top: 1px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.facts span { color: var(--muted); font-size: 14.5px; }

/* Tables */
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14.5px; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--mist);
     padding: 12px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--mist); }
.num, .amt, .facts b, .next .when { font-variant-numeric: tabular-nums; }
.num { white-space: nowrap; }
.facts-table { min-width: 0; }
.facts-table th { width: 34%; vertical-align: top; padding-right: 16px; background: transparent; white-space: normal; font-size: 14px; }
.facts-table tbody tr:hover td { background: transparent; }
ul.cols { columns: 2 280px; column-gap: 40px; padding-left: 20px; }
ul.cols li { break-inside: avoid; margin-bottom: 2px; }
.note { background: var(--mist); border-radius: 14px; padding: 14px 18px; }

/* Home: the black opening band */
.band { background: var(--band); color: var(--band-ink); }
.band a:not(.btn) { color: var(--band-ink); }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vmax; height: 70vmax; pointer-events: none;
                background: radial-gradient(closest-side, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0)); }
.hero .wrap { position: relative; padding-block: clamp(64px, 11vw, 140px) clamp(56px, 8vw, 104px); }
.hero .ask { font-size: clamp(16px, 1.6vw, 19px); color: var(--band-muted); margin: 0 0 18px; }
.hero h1 { font-size: clamp(38px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.05em; max-width: 15ch; margin: 0; }
.hero .sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--band-muted); max-width: 54ch; margin: 26px 0 0; line-height: 1.5; }
.assist { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--band-rule); max-width: 560px; }
.assist-title { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.assist-sub { color: var(--band-muted); margin: 4px 0 0; }
.assist .actions { margin-top: 16px; }
.hero .facts { margin-top: clamp(48px, 7vw, 80px); }
.hero .facts div { border-top-color: var(--band-rule); }
.hero .facts span { color: var(--band-muted); }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section > .wrap > h2:first-child { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* Ending next: one row per contract, date first */
.next { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); max-width: none; }
.next li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); max-width: none; }
.next .when { font-weight: 500; letter-spacing: -0.02em; }
.next .what a { font-weight: 500; text-decoration: none; }
.next .what a:hover { text-decoration: underline; }
.next .who { color: var(--muted); font-size: 14.5px; }
.next .amt { text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .next li { grid-template-columns: 1fr auto; }
  .next .when { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; }
}

/* Ask your AI: a real question and the answer the connector gives */
.chat { display: grid; gap: 14px; max-width: 760px; margin: 32px 0 0; }
.msg { border-radius: 22px; padding: 16px 20px; max-width: 62ch; }
.msg.q { justify-self: end; background: #fff; color: #000; border-bottom-right-radius: 6px; }
.msg.a { background: rgba(255, 255, 255, .08); border: 1px solid var(--band-rule); border-bottom-left-radius: 6px; }
.msg.a p { margin: 0 0 8px; }
.msg.a p:last-child { margin: 0; }
.msg small { display: block; color: var(--band-muted); font-size: 13.5px; margin-top: 10px; }
.band .lead { color: var(--band-muted); }
.band h2 { margin-top: 0; }

/* Footer */
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
footer .wrap { padding-block: 40px 56px; display: grid; gap: 8px 48px; grid-template-columns: 1fr; }
@media (min-width: 820px) { footer .wrap { grid-template-columns: 220px 1fr; } }
footer .brand { color: var(--ink); font-size: 22px; }
footer p { margin: 0 0 12px; }
footer .links a { margin-right: 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Home: drafting note and the three steps */
.soon { margin: 18px 0 0; color: var(--band-muted); font-size: 15px; max-width: 60ch; }
.how { border-bottom: 1px solid var(--rule); }
.how .lead { margin-bottom: 32px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; max-width: none; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; max-width: none; }
.steps li::before { content: counter(step); display: block; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps .state { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.steps li:first-child .state { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.steps p { color: var(--muted); margin: 0; }

/* Phones: each table row becomes a small card, label on the left, value on the right */
@media (max-width: 640px) {
  .tbl:has(table.cards) { border: 0; border-radius: 0; overflow: visible; }
  table.cards { min-width: 0; font-size: 15px; }
  table.cards thead { display: none; }
  table.cards tr { display: block; border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
  table.cards td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  table.cards td::before { content: attr(data-label); color: var(--muted); font-size: 13.5px; text-align: left; flex: none; }
  table.cards td[data-label="Contract"] { font-weight: 500; }
  table.cards td[data-label="Description"] { display: block; text-align: left; padding: 2px 0 6px; }
  table.cards td[data-label="Description"]::before { display: none; }
  tbody tr:hover td { background: transparent; }
}
.muted { color: var(--muted); font-size: 0.92em; }

/* CedarGrant home: theme images drift slowly upward behind the headline, inside the black band.
   Three depths (far: small, soft, dim; near: large, sharp). Still for anyone who turns off motion. */
.hero .drift { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%); }
.hero .wrap { z-index: 1; }
.tile { position: absolute; top: 100%; left: var(--x); width: var(--w); aspect-ratio: 4 / 3; border-radius: 14px;
  background: var(--bg) center / cover no-repeat; opacity: var(--o); filter: blur(var(--b)) saturate(.9);
  animation: drift var(--t) linear infinite; animation-delay: var(--d); will-change: transform; }
.tile span { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 500; color: #fff; opacity: .85; }
.tile.far  { --w: 130px; --o: .28; --b: 2px;  --t: 80s; }
.tile.mid  { --w: 190px; --o: .45; --b: .6px; --t: 62s; }
.tile.near { --w: 250px; --o: .62; --b: 0px;  --t: 48s; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx, 0px), calc(-100vh - 520px), 0); } }
@media (max-width: 640px) {
  .tile:nth-child(3n) { display: none; }
  .tile.near { --w: 170px; --o: .34; } .tile.mid { --w: 130px; --o: .26; } .tile.far { --w: 96px; --o: .18; }
}
@media (prefers-reduced-motion: reduce) { .tile { animation: none; top: var(--y); } }
.ways { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ways div { border-top: 1px solid var(--ink); padding-top: 16px; }
.ways p { color: var(--muted); margin: 0; }
.hero .ask, .hero h1, .hero .sub { text-shadow: 0 2px 18px rgba(0, 0, 0, .75); }

/* CedarGrant notice pages */
pre.prompt { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 15px; margin: 8px 0 14px; user-select: all; }
.links-list > span { display: inline-block; margin: 0 22px 8px 0; white-space: nowrap; }
.page .facts b { font-size: clamp(22px, 2.6vw, 30px); }
