/* omxus.org governance pages: home, charter, board, decisions, minutes, take part.
   Look (layout, type, spacing) taken from intranet/charter.html. Colours are
   tokens: change them here only. */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #6e6e80;
  --faint: #8e8ea0;
  --line: #e5e5e5;
  --wash: #f7f7f8;
  --ok: #0f7b4b;
  --bad: #b42318;
  --on-ink: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }

/* Navigation: brand left, links centre, sign-in in the corner */
.gov-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 2rem;
  position: sticky; top: 0; z-index: 100; background: var(--bg); font-size: .9rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.gov-brand { font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.gov-links { display: flex; gap: 2rem; }
.gov-links a { color: var(--muted); transition: color .2s; }
.gov-links a:hover, .gov-links a[aria-current] { color: var(--ink); }
.gov-corner a { border: 1px solid var(--line); padding: .4rem 1rem; border-radius: 20px; transition: border-color .2s; white-space: nowrap; }
.gov-corner a:hover { border-color: var(--ink); }

/* Header */
.gov-head { text-align: center; padding: 8rem 2rem 4rem; max-width: 800px; margin: 0 auto; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--muted); }
.gov-head h1 { font-size: 3.5rem; font-weight: 500; letter-spacing: -.03em; margin-bottom: 1.5rem; line-height: 1.1; }
.gov-head p { font-size: 1.25rem; color: var(--muted); line-height: 1.5; }

/* Body */
.gov-main { max-width: 720px; margin: 0 auto; padding: 0 2rem 6rem; }
.gov-section { margin-bottom: 5rem; }
.gov-section:last-child { margin-bottom: 0; }
/* Lists fill from JSON after load; hold the empty-state height so the footer does not jump. */
.gov-section:empty, #adopted:empty { min-height: 7.3rem; }
.gov-section h2 { font-size: 2rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.gov-section p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 1.5rem; }
.gov-section blockquote { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; color: var(--muted);
  border-left: 2px solid var(--ink); padding-left: 1.5rem; margin: 2.5rem 0; font-style: italic; }

/* Link rows: one per page, title + one line */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; }
.rows a:hover .row-title { text-decoration: underline; text-underline-offset: 4px; }
.row-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--wash); display: grid; place-items: center; }
.row-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 1.15rem; font-weight: 500; }
.row-line { display: block; color: var(--muted); font-size: .95rem; }
.row-go { color: var(--faint); }

/* Records (board seats, decisions, minutes) */
.record { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.record:last-child { border-bottom: 1px solid var(--line); }
.record h3 { font-size: 1.15rem; font-weight: 500; }
.record dl { display: grid; grid-template-columns: 9rem 1fr; gap: .25rem 1rem; margin-top: .5rem; font-size: .95rem; }
.record dt { color: var(--muted); }
.record dd { overflow-wrap: anywhere; }
.record a { text-decoration: underline; text-underline-offset: 3px; }
.record dd a { position: relative; }
.record dd a::before { content: ""; position: absolute; inset: -12px -4px; } /* 44 px tap area; the focus ring stays on the words */
.record h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.record h3 a:hover { text-decoration: underline; }
.record h3 a::after { content: "\2192"; margin-left: .4rem; color: var(--muted); }
.list-more { margin-top: 1.25rem; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 44px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.list-more::after { content: "\2193"; margin-left: .35rem; }
.empty { color: var(--muted); font-size: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-next { display: inline-flex; align-items: center; min-height: 44px; margin-left: .25rem; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.empty-next::after { content: "\2192"; display: inline-block; margin-left: .35rem; }
.empty-next + .empty-next { margin-left: 1.25rem; }
.pre { white-space: pre-wrap; font-size: .95rem; }

/* Forms */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.field [aria-invalid="true"][aria-invalid] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 15%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; font-weight: 400; border: 1px solid var(--line); border-radius: 22px; padding: 0 1rem; cursor: pointer; }
.tags input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--ink); }
.tags label:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tags label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn { min-height: 44px; display: inline-block; background: var(--ink); color: var(--on-ink); font: inherit; font-weight: 500; padding: .6rem 1.4rem; border-radius: 20px; border: 0; cursor: pointer; }
.btn[disabled] { opacity: .5; cursor: default; }
.msg { margin-top: 1rem; min-height: 1.5rem; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }

/* Footer */
.gov-foot { border-top: 1px solid var(--line); padding: 3rem 2rem; font-size: .85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: center; }
.gov-foot a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .gov-nav { padding: 1rem; }
  .gov-links { display: none; }
  .gov-head { padding: 4rem 1rem 2.5rem; }
  .gov-head h1 { font-size: 2.5rem; }
  .gov-main { padding: 0 1rem 4rem; }
  .gov-section { margin-bottom: 3.5rem; }
  .gov-section h2 { font-size: 1.6rem; }
  .record { padding: 1rem 0; }
  .record dl { grid-template-columns: 6.5rem 1fr; gap: .2rem .75rem; font-size: .9rem; }
}

/* Shared site header and footer (base.css + omxus.css) on governance pages.
   Section links sit in a slim row under the main header. */
body.gov .site-header, body.gov .site-footer { font-family: var(--font); }
.subnav { border-top: 1px solid var(--gray-150); }
/* Jump links (#mine, #board) land below the header and its section row */
html:has(body.gov) { scroll-padding-top: 124px; }
.subnav .container { display: flex; justify-content: flex-start; height: auto; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
/* On a phone the row scrolls; fade the right edge so the cut-off reads as "more this way". */
@media (max-width: 600px) { .subnav .container { padding-right: 2.5rem; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); } }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 500;
  color: var(--gray-500); border-bottom: 2px solid transparent; transition: color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
body.gov .gov-head { padding-top: 5rem; }
@media (max-width: 600px) {
  body.gov .gov-head { padding: 3rem 1.25rem 2.5rem; }
  body.gov .gov-head h1 { font-size: 2.4rem; }
  body.gov .gov-head p { font-size: 1.08rem; }
  .gov-main { padding: 0 1.25rem 4rem; }
}

/* Draft minutes: one fold per draft, summary is the whole tap row. */
.draft summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; cursor: pointer; list-style: none; }
.draft summary::-webkit-details-marker { display: none; }
.draft summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.draft[open] summary::after { content: "\2212"; }
.draft summary:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.draft .pre { margin-top: .75rem; max-width: 70ch; }
#draft-list:focus { outline: none; }

/* 404: where to go instead, one 44 px row each */
.lost { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lost li { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1rem; padding: .25rem 0; }
.lost a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.lost a::after { content: "\2192"; margin-left: .4rem; }
.lost span { display: block; margin: -.6rem 0 .5rem; font-size: .95rem; }
.lost-lede { text-wrap: pretty; }
