/* a11-why.css : the "Why this matters now" block and the "What the Constitution does" block on the
   home page, the /why page and the /developers page. Tally, candidate 007, 2026-11-13. Works under style-src 'self'. Uses the page's colour variables
   when they exist and falls back to fixed colours when they do not. Needs a11-marks.css for the
   base .a11-mark rule. A mark always carries its meaning as text, not as colour alone. */

/* ===== four marks used only by this content ===== */
.a11-mark--happened{background:#f6e1dc;color:#7a2418;border-color:#e3b9ae}
.a11-mark--caught{background:#f3ead2;color:#6b4e0e;border-color:#e0cf9c}
.a11-mark--test{background:#e2e7f3;color:#2b3f7a;border-color:#c0cae6}
.a11-mark--published{background:#eceae4;color:#4a514d;border-color:#d2cfc5}

/* ===== home block: a dark panel, so it reads as the reason for everything around it ===== */
.a11-why{margin:56px 0;padding:44px 40px;background:var(--ink,#1c302a);color:#eef2ea;border-radius:18px}
.a11-why__eyebrow{margin:0 0 12px;font:700 12px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#e3bd74}
.a11-why h2{margin:0 0 18px;font-size:clamp(32px,4.4vw,56px);line-height:1.06;color:#fffef9;max-width:16em}
.a11-why__lead{margin:0 0 14px;max-width:44em;font-size:19px;line-height:1.6;color:#dbe4da}
.a11-why__list{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.a11-why__item{margin:0;padding:22px 24px;background:var(--white,#fffef9);color:var(--ink,#1c302a);border-radius:14px;display:flex;flex-direction:column}
.a11-why__item h3{margin:0 0 10px;font:700 21px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;color:var(--ink,#1c302a)}
.a11-why__item p{margin:0 0 14px;font-size:16px;line-height:1.6;color:var(--ink,#1c302a)}
.a11-why__when{font:700 13px/1.4 Consolas,"Courier New",monospace;letter-spacing:.04em;color:#7a2418}
.a11-why__item .a11-why__when{margin-bottom:8px;color:#7a2418}
.a11-why__basis{margin-top:auto}
.a11-why__item .a11-why__basis{margin-bottom:0}
.a11-why__source{display:inline-block;margin-left:8px;padding:8px 0;font-size:14px;font-weight:650;color:var(--green,#254f40)}
.a11-why__stat{margin:22px 0 0;padding:24px 26px;border:1px solid #3d5a50;border-radius:14px;display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:center}
.a11-why__num{margin:0;font:400 clamp(40px,6vw,68px)/1 Georgia,"Times New Roman",serif;letter-spacing:-.03em;color:#e3bd74;white-space:nowrap}
.a11-why__numtext{margin:0;max-width:40em;font-size:17px;line-height:1.6;color:#dbe4da}
.a11-why__numtext a,.a11-why__more{color:#fffef9}
.a11-why__do{margin:30px 0 0;padding-top:28px;border-top:1px solid #3d5a50}
.a11-why__doh{margin:0 0 18px;font:700 22px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;color:#fffef9}
.a11-why__dolist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.a11-why__dolist li{margin:0;padding:20px 22px;border:1px solid #3d5a50;border-radius:14px;display:flex;flex-direction:column}
.a11-why__dolist h4{margin:0 0 8px;font:700 18px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;color:#fffef9}
.a11-why__dolist p{margin:0 0 12px;font-size:15px;line-height:1.6;color:#dbe4da}
.a11-why__dolist a{margin-top:auto;padding:10px 0;min-height:44px;font-size:15px;font-weight:650;color:#e3bd74}
.a11-why__plain{margin:24px 0 0;max-width:46em;font-size:15px;line-height:1.6;color:#c3cfc4}
.a11-why__morewrap{margin:14px 0 0}
.a11-why__more{display:inline-block;padding:10px 0;min-height:44px;font-size:16px;font-weight:650}

/* ===== the limits box (light; used on the /why page) ===== */
.a11-why__limits{margin:8px 0 0;padding:24px 26px;border-left:4px solid var(--gold,#aa782f);background:var(--soft,#e7ede3);border-radius:0 14px 14px 0;color:var(--ink,#1c302a)}
.a11-why__limits h2{margin:0 0 12px;font:700 22px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;color:var(--ink,#1c302a)}
.a11-why__limits ul{margin:0;padding-left:20px;font-size:16px;line-height:1.6}
.a11-why__limits li{margin:0 0 6px}

/* ===== /why page ===== */
.a11-whyp__top{padding:64px 0 34px;max-width:900px}
.a11-whyp__eyebrow{margin:0 0 14px;font:700 12px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#7a2418}
.a11-whyp__top h1{margin:0 0 20px;font-size:clamp(38px,5vw,66px)}
.a11-whyp__intro{margin:0 0 10px;max-width:42em;font-size:20px;line-height:1.6;color:var(--muted,#52645d)}
.a11-whyp__checked{margin:0;font:700 13px/1.4 Consolas,"Courier New",monospace;letter-spacing:.04em;color:var(--green,#254f40)}
.a11-whyp__sec{padding:46px 0;border-top:1px solid var(--line,#d8ded4)}
.a11-whyp__sec>h2{margin:0 0 16px;font-size:clamp(28px,3.4vw,44px);max-width:20em}
.a11-whyp__sec>p{max-width:46em}
.a11-whyp__stats{list-style:none;margin:26px 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.a11-whyp__stats li{margin:0;padding:24px;background:var(--ink,#1c302a);color:#dbe4da;border-radius:14px}
.a11-whyp__stats p{margin:0 0 10px;font-size:15px;line-height:1.6}
.a11-whyp__num{font:400 clamp(34px,4.4vw,52px)/1.05 Georgia,"Times New Roman",serif;letter-spacing:-.03em;color:#e3bd74}
.a11-whyp__stats .a11-whyp__num{margin-bottom:12px;font-size:clamp(34px,4.4vw,52px);line-height:1.05}
.a11-whyp__src{font-size:13px}
.a11-whyp__stats .a11-whyp__src{margin:0}
.a11-whyp__src a{color:#fffef9}
.a11-whyp__timeline{list-style:none;margin:26px 0 0;padding:0 0 0 26px;border-left:3px solid var(--line,#d8ded4);max-width:860px}
.a11-whyp__event{position:relative;margin:0 0 22px;padding:22px 24px;background:var(--white,#fffef9);border:1px solid var(--line,#d8ded4);border-radius:14px}
.a11-whyp__event::before{content:"";position:absolute;left:-36px;top:28px;width:15px;height:15px;border-radius:50%;background:#7a2418;border:3px solid var(--paper,#f6f3eb)}
.a11-whyp__event h3{margin:0 0 10px;font:700 22px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0}
.a11-whyp__event p{margin:0 0 14px;font-size:16px;line-height:1.65}
.a11-whyp__event .a11-why__when{margin-bottom:8px}
.a11-whyp__event .a11-why__basis{margin-bottom:0}
.a11-whyp__patterns{list-style:none;margin:24px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.a11-whyp__patterns li{margin:0;padding:22px 24px;background:var(--white,#fffef9);border:1px solid var(--line,#d8ded4);border-radius:14px;display:flex;flex-direction:column}
.a11-whyp__patterns h3{margin:0 0 8px;font:700 19px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0}
.a11-whyp__patterns p{margin:0 0 10px;font-size:16px;line-height:1.6;color:var(--muted,#52645d)}
.a11-whyp__patterns a{margin-top:auto;padding:10px 0;min-height:44px;font-size:15px;font-weight:650}
.a11-whyp__owasp{margin:26px 0 0;padding:26px 28px;background:var(--soft,#e7ede3);border-radius:14px;max-width:860px}
.a11-whyp__owasp h3{margin:0 0 8px;font:700 19px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0}
.a11-whyp__owasp p{margin:0 0 12px;font-size:16px;line-height:1.6}
.a11-whyp__owasp ol{margin:0;padding-left:24px;columns:2;column-gap:40px;font-size:16px;line-height:1.7}
.a11-whyp__share{margin:28px 0 0;max-width:40em;font:400 clamp(22px,2.6vw,30px)/1.3 Georgia,"Times New Roman",serif;color:var(--green,#254f40)}

@media (max-width:1000px){
  .a11-why__dolist{grid-template-columns:1fr}
  .a11-whyp__stats{grid-template-columns:1fr}
}
@media (max-width:720px){
  .a11-why{padding:28px 18px;margin:36px 0}
  .a11-why__list{grid-template-columns:1fr}
  .a11-why__stat{grid-template-columns:1fr;gap:10px}
  .a11-why__source{margin-left:0;display:block}
  .a11-whyp__top{padding:40px 0 24px}
  .a11-whyp__timeline{padding-left:18px}
  .a11-whyp__event{padding:18px}
  .a11-whyp__event::before{left:-28px}
  .a11-whyp__patterns{grid-template-columns:1fr}
  .a11-whyp__owasp ol{columns:1}
}

/* ===== "What the Constitution does" block (light; home page and /rules) ===== */
.a11-rules{margin:56px 0;padding:44px 40px;background:var(--white,#fffef9);border:1px solid var(--line,#d8ded4);border-radius:18px;color:var(--ink,#1c302a)}
.a11-rules__eyebrow{margin:0 0 12px;font:700 12px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--gold,#aa782f)}
.a11-rules h2{margin:0 0 18px;font-size:clamp(30px,4vw,50px);line-height:1.08;max-width:18em}
.a11-rules__lead{margin:0 0 8px;max-width:44em;font-size:19px;line-height:1.6;color:var(--muted,#52645d)}
.a11-rules__grid{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.a11-rules__card{margin:0;padding:22px 24px;background:var(--paper,#f6f3eb);border:1px solid var(--line,#d8ded4);border-top:4px solid var(--green,#254f40);border-radius:14px}
.a11-rules__card h3{margin:0 0 10px;font:700 21px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;color:var(--ink,#1c302a)}
.a11-rules__card p{margin:0;font-size:16px;line-height:1.6}
.a11-rules__card .a11-rules__art{margin:0 0 8px;font:700 13px/1.4 Consolas,"Courier New",monospace;letter-spacing:.03em;color:var(--green,#254f40)}
.a11-rules__facts{margin:22px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.a11-rules__facts p{margin:0;padding:18px 22px;background:var(--ink,#1c302a);color:#dbe4da;border-radius:14px;font-size:15px;line-height:1.6}
.a11-rules__facts strong{display:block;margin-bottom:6px;font:400 26px/1.15 Georgia,"Times New Roman",serif;color:#e3bd74}
.a11-rules .a11-why__limits h3{margin:0 0 12px;font:700 20px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;color:var(--ink,#1c302a)}
.a11-rules__links{margin:20px 0 0;display:flex;flex-wrap:wrap;gap:6px 26px}
.a11-rules__links a{display:inline-block;padding:10px 0;min-height:44px;font-size:16px;font-weight:650;color:var(--green,#254f40)}

/* ===== /developers page ===== */
.a11-dev__doors{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.a11-dev__door{margin:0;padding:24px;background:var(--white,#fffef9);border:1px solid var(--line,#d8ded4);border-radius:14px;display:flex;flex-direction:column;min-width:0}
.a11-dev__door>.a11-mark{align-self:flex-start}
.a11-dev__door h3{margin:10px 0 10px;font:700 22px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0}
.a11-dev__door p{margin:0 0 12px;font-size:16px;line-height:1.6}
.a11-dev__door ul{margin:0 0 12px;padding-left:20px;font-size:15px;line-height:1.6;color:var(--muted,#52645d)}
.a11-dev__door a{font-weight:650}
.a11-dev__go{margin-top:auto;display:flex;flex-direction:column}
.a11-dev__go a{padding:9px 0;min-height:44px;font-size:15px}
.a11-dev__code{display:block;margin:0 0 12px;padding:12px 14px;background:var(--ink,#1c302a);color:#eef2ea;border-radius:10px;font:400 13px/1.55 Consolas,"Courier New",monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.a11-dev__wide{margin:26px 0 0;padding:26px 28px;background:var(--soft,#e7ede3);border-radius:14px;max-width:900px}
.a11-dev__wide h3{margin:8px 0 8px;font:700 21px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0}
.a11-dev__wide p{margin:0 0 10px;font-size:16px;line-height:1.6}
.a11-dev__files{margin:22px 0 0;padding:0;list-style:none;max-width:900px;border-top:1px solid var(--line,#d8ded4)}
.a11-dev__files li{margin:0;padding:12px 0;border-bottom:1px solid var(--line,#d8ded4);display:grid;grid-template-columns:minmax(0,19em) 1fr;gap:6px 22px;font-size:16px;line-height:1.5}
.a11-dev__files a{font:650 14px/1.5 Consolas,"Courier New",monospace;overflow-wrap:anywhere}
.a11-dev__hello{margin:26px 0 0;padding:30px 32px;background:var(--ink,#1c302a);color:#dbe4da;border-radius:18px;max-width:900px}
.a11-dev__hello h2{margin:0 0 12px;font-size:clamp(26px,3vw,38px);color:#fffef9}
.a11-dev__hello p{margin:0 0 10px;font-size:17px;line-height:1.6}

@media (max-width:1000px){
  .a11-rules__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .a11-dev__doors{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  .a11-rules{padding:26px 18px;margin:36px 0}
  .a11-rules__grid,.a11-rules__facts{grid-template-columns:1fr}
  .a11-dev__files li{grid-template-columns:1fr}
  .a11-dev__wide,.a11-dev__hello{padding:22px 18px}
}
