/* ============================================================
   KISOP site — typography system of truth
   ------------------------------------------------------------
   Decided by Carmen, July 18, 2026 (branding session; see
   KISOP-SYSTEM/branding/WORDMARK-v0.1.md and LOG.md):
   the whole site is set in ATKINSON HYPERLEGIBLE NEXT —
   commissioned by the Braille Institute, engineered so no
   reader can mistake one letter for another. Open source,
   SIL OFL 1.1; license kept at assets/fonts/OFL.txt. The font
   is SELF-HOSTED below — never load type (or anything) from a
   third-party server; that promise is printed on the site.

   How this file works: every page still carries its own inline
   --serif / --sans definitions (Charter / system stacks) as a
   no-CSS fallback; this file loads after them and overrides
   both variables, so changing type sitewide = editing THIS
   file only. The variable names (--serif, --sans) are legacy —
   both now resolve to Atkinson Hyperlegible Next on purpose.
   Code blocks stay ui-monospace and are untouched by this file.
   ============================================================ */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('fonts/AtkinsonHyperlegibleNext-VF.woff2') format('woff2-variations'),
       url('fonts/AtkinsonHyperlegibleNext-VF.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('fonts/AtkinsonHyperlegibleNext-Italic-VF.woff2') format('woff2-variations'),
       url('fonts/AtkinsonHyperlegibleNext-Italic-VF.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --serif: 'Atkinson Hyperlegible Next', Charter, Georgia, 'Times New Roman', serif;
  --sans:  'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* The wordmark decision: bold caps, tracked +2.5% (KISOP-lockup files
   in KISOP-SYSTEM/branding/wordmark/ are the same letterforms, outlined). */
.wordmark { letter-spacing: .025em; }

/* Page identity line (footer of every page): permanent page number + page
   version. Ledger of record: website/PAGE-REGISTRY.md — numbers are unique,
   never reused; versions bump only after the old copy is archived. */
.pageid {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 11.5px;
  letter-spacing: .04em;
  opacity: .55;
  margin-top: 12px;
}

/* Shared header wiring (move 2, Aug 2 2026): every deep page's KISOP lockup
   is a link home, with backlinks to its home section + the site map.
   Values match the pattern the wired pages already carried inline. */
.wordmark a { color: inherit; text-decoration: none; }
.backlinks { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap;
             font: 600 12.5px var(--sans, system-ui, sans-serif); }
.backlinks a { text-decoration: none; }
.backlinks a:hover { text-decoration: underline; }

/* Shared primary navigation from assets/nav.js. The first row is identical on
   every opted-in page. A second row appears only when a page names a section. */
.global-site-header { display:flex; align-items:center; gap:12px; padding:16px 0 10px; }
.global-site-header .wordmark { font-family:var(--serif); font-size:22px; font-weight:700; }
.global-site-header .tagline { font-size:12px; color:var(--muted); }
.global-primary-nav { display:flex; gap:2px; flex-wrap:wrap; padding:0 0 10px; }
.global-primary-nav a {
  color:var(--muted); text-decoration:none; padding:7px 12px; border-radius:7px;
  font:600 13px var(--sans, system-ui, sans-serif);
}
.global-primary-nav a:hover { color:var(--blue-ink); background:var(--wash, #F4F6FD); }
.global-primary-nav a.on { color:#fff; background:var(--blue-ink); }
.global-primary-nav a.on:hover { color:#fff; background:var(--blue-ink); }
.global-section-band { background:#fff; border-bottom:1px solid var(--line); }
.global-secondary-nav { display:flex; gap:2px; align-items:center; flex-wrap:wrap; padding:8px 0; }
.global-section-label {
  color:var(--ink); padding:6px 12px 6px 0; margin-right:4px; font-weight:750;
  font-size:13px;
}
.global-secondary-nav a {
  color:var(--muted); text-decoration:none; padding:6px 10px; border-radius:7px;
  font:600 12.5px var(--sans, system-ui, sans-serif);
}
.global-secondary-nav a:hover { color:var(--blue-ink); background:var(--wash2, #F4F6FD); }
.global-secondary-nav a.on { color:var(--blue-ink); background:var(--wash2, #F4F6FD); }
@media(max-width:620px) {
  .global-primary-nav a { padding:6px 9px; }
  .global-section-label { flex-basis:100%; padding-bottom:2px; }
}

/* The one footer (assets/nav.js, v3.138, Sep 9, 2026). Every page's own
   <style> still sets the footer's rule, type size and colour; these are the
   parts the shared footer draws. Values match kisop.css so the home page,
   which loads both, does not move. */
#site-footer .footnote { margin-bottom: 14px; }
#site-footer .footnote > * + * { margin-top: 8px; }
#site-footer .sigline { font-family: var(--serif); font-size: 14px; color: var(--ink); margin-bottom: 6px; }
#site-footer .orgline { margin-bottom: 10px; }
#site-footer .footnav a { margin-right: 14px; }
#site-footer .prov { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--blue-ink); }

/* Development status. Carried only by the ledgered action/build pages
   (NOTICE-PAGES.md). Since v3.125 (Sep 9, 2026, Carmen's word) it sits at the
   BOTTOM of the page, after the footer, not above the header. */
.development-notice {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border-top: 2px solid #8A4B08;
  background: #FFF1D6;
  color: #2F260F;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 13.5px;
  line-height: 1.45;
}
.development-notice__inner {
  box-sizing: border-box;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 10px 20px 11px;
}
.development-notice strong { color: #6D3904; }
.development-notice a { color: #2B3572; font-weight: 700; }
.development-notice__es { display: none; }
html[lang="es"] .development-notice__en { display: none; }
html[lang="es"] .development-notice__es { display: inline; }

.home-development {
  border: 2px solid #8A4B08;
  border-radius: 12px;
  background: #FFF8E9;
  color: #232A45;
  margin: 28px auto 34px;
  padding: 22px 24px;
  max-width: 820px;
  font-family: var(--sans, system-ui, sans-serif);
}
.home-development h2 { margin: 0 0 10px; font-size: 24px; }
.home-development p { margin: 9px 0; max-width: 70ch; }
.home-development__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.home-development__actions a {
  border: 1px solid #2B3572;
  border-radius: 8px;
  padding: 8px 12px;
  color: #2B3572;
  font-weight: 700;
  text-decoration: none;
}
.home-development__actions a:first-child { background: #2B3572; color: #fff; }
.home-definition {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  text-align: left;
}
.home-definition h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: #5A6410; }
.home-definition p { max-width: 68ch; margin: 0; font-family: var(--sans); font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: #232A45; }
.home-definition a { font-weight: 700; white-space: nowrap; }
@media (max-width: 680px) {
  .home-definition { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px 24px; }
  .home-definition p { font-size: 18px; }
}

/* AI Commons: one shared pattern for its hub, indexes, and status notes. */
.ai-principle {
  border-left: 4px solid #5A6410;
  background: #F7F9EE;
  padding: 18px 20px;
  margin: 26px 0;
  max-width: 70ch;
}
.ai-principle p { margin: 6px 0; }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.ai-card {
  display: block;
  border: 1px solid #C1C9E5;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 18px;
  color: #232A45;
  text-decoration: none;
}
.ai-card:hover { border-color: #7280BD; background: #F4F6FD; }
.ai-card h3 { color: #2B3572; margin: 0 0 6px; }
.ai-card p { color: #5C648A; margin: 0; font-size: 14.5px; }
.ai-status {
  display: inline-block;
  margin-bottom: 8px;
  color: #5A6410;
  font: 700 10.5px var(--sans, system-ui, sans-serif);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ai-list { padding-left: 20px; }
.ai-list li { margin: 8px 0; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ai-table th, .ai-table td { border-bottom: 1px solid #C1C9E5; padding: 10px 8px; text-align: left; vertical-align: top; }
.ai-table th { color: #2B3572; font-size: 12px; }
.home-ai-option {
  max-width: 900px;
  margin: 34px auto;
  padding: 24px 26px;
  border-top: 1px solid #C1C9E5;
  border-bottom: 1px solid #C1C9E5;
  color: #232A45;
}
.home-ai-option h2 { margin: 0 0 8px; font-size: 24px; }
.home-ai-option p { max-width: 72ch; margin: 8px 0; }
@media (max-width: 650px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-table { font-size: 13px; }
}

/* ============================================================
   Responsive safety — Sep 4, 2026 (v3.106). Her word: every page
   adapts to the device and the surface. Additive, sitewide, one place.
   ============================================================ */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
img,video,canvas{max-width:100%;height:auto}
svg{max-width:100%}
pre{overflow-x:auto;max-width:100%}
code,kbd,.m,.mono{overflow-wrap:anywhere}
.tblwrap,.tablewrap,.scrollx{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
@media (max-width:600px){
  .eyebrow,.rulebox .rlabel,.ministory .qsrc,.wn .d,.method .badge,.verpill,.threat .badge,.t-mono,.st,.kchip,.jobs th,.scrollnote,.status,.thread .who,.log .ev .d,.sheet .gloss,.playbook h4{font-size:12px}
  th{font-size:12.5px}
}
@media (pointer:coarse){
  .chip,a.chip,button.chip{padding-top:9px;padding-bottom:9px}
  nav.main a{padding:9px 12px}
}

/* ---- small photographs (v3.141, Sep 9, 2026): the founder's own photos as small crops beside a page's opening; nothing wider than 240px; the words still do the work ---- */
.floatpic{float:right;width:200px;height:200px;object-fit:cover;border-radius:12px;margin:6px 0 12px 22px}
.floatpic.wide{width:240px;height:160px}
.floatpic.round{border-radius:50%;width:160px;height:160px}
.hero::after{content:"";display:block;clear:both}
.floatpic ~ section,.floatpic ~ .story,.floatpic ~ .cards{clear:both}
.seasons{display:flex;gap:10px;margin:18px 0 0}
.seasons img{width:112px;height:112px;object-fit:cover;border-radius:10px}
.places{display:flex;gap:14px;margin:18px 0 0;align-items:center;flex-wrap:wrap}
.places img{width:88px;height:88px;border-radius:50%;object-fit:cover}
.piccap{font-size:13px;color:#4E567E;margin:8px 0 0}
.card .cardthumb{display:block;width:56px;height:56px;border-radius:50%;object-fit:cover;margin-bottom:10px}
@media(max-width:640px){.floatpic,.floatpic.wide,.floatpic.round{float:none;width:100%;height:180px;border-radius:12px;margin:12px 0}}
