/* omxus.org — site layer on top of base.css.
   Look: the intranet (Inter, soft gradient tiles, civic blue, dark footer)
   plus the emergency poster (thin serif display, tilted photo, script line). */

@import url('fonts/fonts.css');

:root {
  --accent-ink: #1e3a8a;
  /* greys darkened for reading: 4.5:1 on the off-white page (base 4.43 and 2.33) */
  --gray-400: #646b78;
  --gray-500: #5f6673;
  --teal: #0d9488;
  --amber: #f59e0b;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  /* gradient tiles, from the intranet */
  --g-sky:    linear-gradient(135deg, #e0ecff, #c7dbff);
  --g-teal:   linear-gradient(135deg, #99f0dc, #2dd4bf);
  --g-amber:  linear-gradient(135deg, #fde68a, #f59e0b);
  --g-peach:  linear-gradient(135deg, #fed7aa, #fb923c);
  --g-blue:   linear-gradient(135deg, #93c5fd, #3b82f6);
  --g-rose:   linear-gradient(135deg, #fbcfe8, #db2777);
  --g-violet: linear-gradient(135deg, #c4b5fd, #7c3aed);
  --g-slate:  linear-gradient(160deg, #64748b, #1e293b);
}

/* Line icons (assets/icons.svg) */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.card .icon { color: var(--accent-ink); }

/* ── Display serif, like the poster's "Emergency response" ── */
.display { font-family: var(--serif); font-weight: 300; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(3rem, 8vw, 6rem); color: var(--ink); }
.display em { font-style: italic; color: var(--accent-ink); }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1.1;
  font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); }

/* ── Home hero: words left, photo right ── */
.hero-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-split .lede { margin: 0 0 32px; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* Tilted photo with a white border (the poster's snapshots) */
.snap { background: #fff; padding: 12px 12px 14px; border-radius: 4px; box-shadow: var(--shadow-xl);
  transform: rotate(-3deg); max-width: 400px; margin: 0 auto; }
.snap.r { transform: rotate(2.5deg); }
.snap img { width: 100%; height: auto; border-radius: 2px; }
.snap figcaption { font-size: 0.78rem; color: var(--gray-400); padding-top: 10px; text-align: center; }

/* ── The dedication box ── */
.honour { border: 1px solid var(--gray-300); background: var(--white); padding: clamp(28px, 5vw, 52px);
  border-radius: 2px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.honour .script { text-align: center; margin-bottom: 22px; }
.honour p { font-size: clamp(1.02rem, 1.6vw, 1.14rem); line-height: 1.75; color: var(--gray-700); }
.honour .sig { font-family: var(--script); font-size: 1.9rem; text-align: right; color: var(--ink); margin-top: 18px; }

/* ── Gradient tiles (intranet cards) ── */
.tile { display: block; text-decoration: none; }
.tile .art { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); display: grid; place-items: center;
  color: rgba(255,255,255,0.95); transition: transform 0.3s var(--ease), box-shadow 0.3s; box-shadow: var(--shadow-xs); }
.tile .art .ic { width: 44px; height: 44px; stroke-width: 1.5; }
.tile:hover .art { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile h3 { font-size: 1.02rem; font-weight: 600; margin: 16px 0 4px; line-height: 1.35; }
.tile p { font-size: 0.9rem; color: var(--gray-500); }
.tile .meta { font-size: 0.76rem; color: var(--gray-400); margin-top: 6px; }
.art.sky { background: var(--g-sky); color: var(--accent-ink); } .art.teal { background: var(--g-teal); }
.art.amber { background: var(--g-amber); } .art.peach { background: var(--g-peach); }
.art.blue { background: var(--g-blue); } .art.rose { background: var(--g-rose); }
.art.violet { background: var(--g-violet); } .art.slate { background: var(--g-slate); }

/* Row list with a small square tile (intranet "Recent initiatives") */
.row-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
@media (max-width: 760px) { .row-list { grid-template-columns: 1fr; } }
.row { display: flex; gap: 16px; align-items: center; text-decoration: none; }
.row .art { display: grid; place-items: center; color: rgba(255,255,255,0.95); width: 88px; height: 88px; flex-shrink: 0; aspect-ratio: auto; border-radius: var(--radius); }
.row .art .ic { width: 30px; height: 30px; }
.row h3 { font-size: 0.98rem; font-weight: 600; margin: 0 0 4px; }
.row p { font-size: 0.86rem; color: var(--gray-500); line-height: 1.5; }

/* ── Steps ── */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-ink); color: #fff; font-weight: 700; font-size: 0.95rem; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.94rem; color: var(--gray-500); }

/* ── Equation ── */
.equation { font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.6rem); color: var(--ink);
  text-align: center; overflow-x: auto; padding: 8px 0; }
.equation sub, .equation sup { font-size: 0.6em; }
.law { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; background: var(--gray-50);
  border: 1px solid var(--gray-150); border-radius: var(--radius); font-size: 0.9rem; }
.law code { font-family: var(--mono); font-weight: 700; color: var(--accent-ink); flex-shrink: 0; min-width: 2.6em; }
.law-words { display: block; color: var(--ink); font-size: 0.98rem; }
.law-math { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.8rem; color: var(--gray-500); }

.big-quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); max-width: 900px; text-wrap: balance; }
/* Pull quote band: quote and its link centred together */
.quote-band { text-align: center; }
.quote-band .big-quote { margin-inline: auto; }

/* ── Dark footer, from the intranet ── */
.site-footer { background: #111827; border-top: 0; }
.site-footer .brand { color: #fff; }
.footer-brand p, .footer-col a, .footer-bottom p, .footer-bottom a, .cta p { color: #9ca3af; }
.footer-col h4 { color: #fff; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { border-top-color: #1f2937; }
/* Phone: the brand line gets the full row so it does not wrap word by word */
@media (max-width: 760px) { .footer-brand { grid-column: 1 / -1; } .footer-brand p { max-width: 36ch; } }
/* Current page marked in the footer too; phone links are 44 px tap targets */
.footer-col a.active { color: #fff; font-weight: 600; }
@media (max-width: 760px) { .footer-col a { display: flex; align-items: center; min-height: 44px; padding: 0; } .footer-col h4 { margin-bottom: 4px; } }
/* Phone: More sits under Omxus, beside the long How it's run column, so no half-empty row */
@media (max-width: 760px) {
  .footer-grid { grid-template-areas: "brand brand" "omxus run" "more run"; align-items: start; }
  .footer-brand { grid-area: brand; }
  .footer-col:nth-child(2) { grid-area: omxus; }
  .footer-col:nth-child(3) { grid-area: run; }
  .footer-col:nth-child(4) { grid-area: more; }
}

.brand .mark { background: var(--accent-ink); border-radius: 50%; }

/* The Lily photo arrives already framed and tilted: show it bare */
.cutout { max-width: 420px; margin: 0 auto; }
.cutout img { filter: drop-shadow(0 16px 26px rgba(16,24,40,0.14)); }
.cutout img { width: 100%; height: auto; }
.cutout figcaption { font-size: 0.78rem; color: var(--gray-400); padding-top: 8px; text-align: center; }
.display em { padding-right: 0.12em; }

/* Four stats in one row on wide screens */
.stat-strip.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stat-strip.four { grid-template-columns: 1fr 1fr; } }

/* Phone menu: the closed menu's shadow showed as a grey band above the header */
@media (max-width: 860px) { .nav:not(.open) { box-shadow: none; visibility: hidden; } .nav { transition: transform .3s var(--ease), visibility .3s; } }

/* Phone menu: every row left-aligned and 44 px to tap; the name sits with the links;
   Help keeps its side margins. Menu button and logo are 44 px targets too. */
.brand { min-height: 44px; }
@media (max-width: 860px) {
  .nav { align-items: stretch; }
  .nav a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; }
  .nav .nav-cta { width: auto; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-right: -10px; }
  /* Open menu sits over the governance row (its fade mask made it paint on top, hiding Home) */
  .nav { z-index: 1; }
}

/* "All of them" style links beside a section title: 44 px tap target */
.section-bar .more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.section-bar:has(.more) { align-items: center; }

/* Quiet text buttons: 44 px tap target */
.btn-quiet { min-height: 44px; }

/* ── Keyboard: skip link and one clear focus ring everywhere ── */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.site-footer :focus-visible, .skip:focus-visible { outline-color: #fff; }
.skip:focus-visible { outline-offset: -5px; }
.subnav a:focus-visible { outline-offset: -2px; border-radius: 6px; }

/* Sign-in slot is a span around a link: make it a flex box so it sits on the same line as the other nav links */
.nav [data-account] { display: flex; align-items: center; }

/* Signed in: the name opens a small menu (what you signed up for, sign out) */
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--ink); font-size: 0.88rem; font-weight: 500; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.account-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.account-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 14px; box-shadow: 0 12px 32px rgba(16,24,40,.12); }
.account-menu p { margin: 0; padding: 8px 12px 6px; font-size: 0.78rem; color: var(--gray-500); }
.account-menu a, .account-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px;
  box-sizing: border-box; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 0.88rem;
  color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; }
.account-menu a:hover, .account-menu button:hover { background: var(--gray-100, #f3f4f6); }
@media (max-width: 860px) {
  .nav [data-account] { display: block; }
  .account-menu summary { padding: 12px 24px; }
  .account-menu > div { position: static; min-width: 0; padding: 0 12px 8px; border: 0; box-shadow: none; background: none; }
}

/* Jump links (#join etc.) land below the sticky header, not under it */
html { scroll-padding-top: 76px; }
/* A needed form field left empty: red edge, cleared as soon as they type */
.field [aria-invalid="true"] { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }
/* Form message takes no room until there is something to say (no dead band under the button) */
.form-msg:empty { min-height: 0; margin: 0; }
/* After sending: the way back to what they signed up for, on its own line, 44 px to tap */
.form-msg a { display: flex; align-items: center; min-height: 44px; width: fit-content; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Role tiles: smaller on phone so the words lead */
@media (max-width: 600px) { .row .art { width: 64px; height: 64px; } .row .art .ic { width: 26px; height: 26px; } }
/* Idea tiles on phone: icon square beside the words, so the six ideas fit in two screens, not six */
@media (max-width: 600px) {
  .tile { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; }
  .tile .art { grid-row: span 2; width: 64px; height: 64px; aspect-ratio: auto; border-radius: var(--radius); }
  .tile .art .ic { width: 26px; height: 26px; }
  .tile h3 { margin: 2px 0 4px; }
}
/* Icon cards on phone (help "Be someone who can be alerted"): icon beside the heading, so all three fit on one screen */
@media (max-width: 600px) {
  .card:has(> .icon) { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; padding: 20px; }
  .card:has(> .icon) .icon { margin: 0; }
  .card:has(> .icon) h3 { margin: 0; }
  .card:has(> .icon) p { grid-column: 1 / -1; margin-top: 10px; }
}
/* Phone: buttons in a row share the line, or each take the full width when they stack (no ragged widths) */
@media (max-width: 600px) { .btn-row:not(.center) > .btn { flex: 1 1 auto; justify-content: center; } }
/* Evidence cards on phone: number beside its line, not a tall card per number */
@media (max-width: 600px) {
  .fact { display: grid; grid-template-columns: 7rem 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 16px 18px; }
  .fact .n { font-size: 1.55rem; margin: 0; white-space: nowrap; }
}

/* Headings break evenly: no lone last word ("alerted." on its own line at 390) */
h1, h2, h3 { text-wrap: balance; }

/* Print: the record on paper. No menus, buttons or forms; every row shown;
   the dark footer becomes one line of plain text, so it costs no ink or extra page. */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000; }
  .skip, .nav, .nav-toggle, .nav-cta, .subnav, .btn, .btn-row, .btn-quiet, .list-more, .empty-next,
  form, .form-msg, .footer-grid, .footer-bottom > :not(:first-child), .bubbles, .cta { display: none !important; }
  .site-header { position: static !important; box-shadow: none !important; border-bottom: 1px solid #000; background: #fff !important; }
  .site-footer { background: #fff !important; color: #000 !important; padding: 6mm 0 0 !important; margin-top: 8mm; border-top: 1px solid #000; }
  .site-footer * { color: #000 !important; }
  .footer-brand p { display: none; }
  .footer-bottom { border: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
  .hero, .band, .section, .section-sm { background: none !important; padding-top: 6mm !important; padding-bottom: 6mm !important; min-height: 0 !important; }
  .hero::before, .hero::after { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .record[hidden] { display: block !important; }
  .draft::details-content { content-visibility: visible; display: block; }
  .record, .tile, .fact, .law, .card { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .gov-section:empty, #adopted:empty { min-height: 0; }
  a { color: #000 !important; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
