:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --white: #fffefa;
  --ink: #22283c;
  --muted: #5b6170;
  --blue: #315ddc;
  --blue-dark: #2448b0;
  --yellow: #f3d16f;
  --line: #dddedf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; }
::selection { background: #cedaff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[id] { scroll-margin-top: 100px; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 10px 16px; background: white; border: 2px solid var(--blue); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(247 244 238 / 97%); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 1.14rem; font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
nav a { font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--blue-dark); }
nav a[aria-current="page"] { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.theme-toggle { min-height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: var(--ink); font-size: .73rem; font-weight: 700; white-space: nowrap; }
.theme-toggle:hover { background: #eef1fa; border-color: var(--blue); }
.theme-toggle-icon { width: 17px; font-size: 1.1rem; line-height: 1; text-align: center; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .71rem; }
.footer-inner a { text-decoration: none; font-weight: 700; }
.footer-inner a:hover { text-decoration: underline; }
.eyebrow { margin: 0 0 17px; color: var(--blue-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(2.3rem, 4vw, 3.3rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.12; }
h2 { margin: 0; font-size: 1.45rem; line-height: 1.2; font-weight: 770; letter-spacing: -.035em; }
h3 { font-size: 1.02rem; line-height: 1.4; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid transparent; border-radius: 5px; padding: 12px 19px; font-size: .85rem; font-weight: 750; line-height: 1.3; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button-secondary { border-color: #bdc7e5; color: var(--blue-dark); background: transparent; }
.button-secondary:hover { background: #edf1fc; border-color: var(--blue); }
.text-link { display: inline-block; color: var(--blue-dark); font-size: .87rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.home-page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.home-page .site-header { position: static; border-bottom: 0; }
.home-main { display: grid; align-items: center; padding-block: 28px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 60px; }
.home-copy h1 { font-size: clamp(2.7rem, 4.65vw, 4.15rem); letter-spacing: -.07em; line-height: 1.09; }
.home-copy h1 em { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
.home-lede { max-width: 500px; margin: 23px 0; font-size: 1.05rem; line-height: 1.65; color: var(--muted); }
.home-copy .button { margin-top: 3px; }
.home-note { margin: 17px 0 0; font-size: .71rem; color: var(--muted); }
.home-mascot { text-align: center; }
.home-mascot img { width: min(100%, 360px); margin: auto; }
.home-mascot p { margin: 0; color: var(--ink); font-size: .87rem; font-weight: 650; }
.home-mascot p span { font-size: .76rem; color: var(--muted); font-weight: 400; }
.page-main { padding-block: 58px 70px; }
.page-heading { max-width: 750px; margin-bottom: 35px; }
.page-heading > p:not(.eyebrow) { margin: 17px 0 0; max-width: 670px; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.rating-key { display: grid; grid-template-columns: .9fr 1fr 1.25fr; gap: 25px; padding-block: 17px; border-block: 1px solid var(--line); }
.rating-key p { margin: 0; font-size: .78rem; }
.rating-key b { display: block; margin-bottom: 3px; color: var(--ink); font-size: .83rem; }
.rating-key span { color: var(--muted); }
.scoring-note { max-width: 890px; margin: 15px 0 35px; color: var(--muted); font-size: .77rem; line-height: 1.6; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; grid-template-areas: "form score"; gap: 55px; align-items: start; }
.checklist-form { grid-area: form; min-width: 0; }
.domain-card { min-width: 0; padding: 23px 0 18px; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.domain-card legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.03rem; font-weight: 770; line-height: 1.3; letter-spacing: -.025em; }
.domain-number { flex: none; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #e6eafa; color: var(--blue-dark); font-size: .71rem; font-weight: 800; letter-spacing: 0; }
.domain-card[data-scored="true"] .domain-number { color: white; background: var(--blue); }
.domain-prompt { clear: both; margin: 0 0 14px; padding-top: 10px; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.score-choices { display: flex; flex-wrap: nowrap; gap: 8px; }
.score-choice { position: relative; display: block; cursor: pointer; flex: 1; min-width: 0; }
.score-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.score-choice span { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border: 1px solid #cbd0db; border-radius: 5px; background: transparent; color: #4d566e; transition: background .15s ease, border-color .15s ease; }
.score-choice strong { font-size: .82rem; }
.score-choice small { font-size: .73rem; font-weight: 650; }
.score-choice:hover span { background: #eef1fa; border-color: #9bb0e6; }
.score-choice input:checked + span { color: var(--blue-dark); border-color: var(--blue); background: #e8edff; box-shadow: inset 0 0 0 1px var(--blue); }
.score-choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.item-examples { margin-top: 10px; }
summary { cursor: pointer; }
.item-examples > summary { width: fit-content; min-height: 36px; display: flex; align-items: center; gap: 9px; color: var(--blue-dark); font-size: .76rem; font-weight: 700; list-style: none; }
.item-examples > summary::-webkit-details-marker { display: none; }
.item-examples > summary::before { content: "+"; width: 13px; font-size: 1rem; font-weight: 500; }
.item-examples[open] > summary::before { content: "−"; }
.example-body { margin: 4px 0 6px; padding: 17px 21px; border-left: 2px solid #bccbee; background: #f0f2f7; color: #46516b; font-size: .82rem; line-height: 1.65; }
.example-body > p:first-child { margin: 0 0 15px; }
.example-body dl { margin: 0; }
.example-body dt { color: var(--blue-dark); font-size: .73rem; font-weight: 800; margin-top: 13px; }
.example-body dd { margin: 3px 0 0; }
.example-body dd::before, .example-body dd::after { content: "“"; color: #7584a5; }
.example-body dd::after { content: "”"; }
.example-note { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #d0d8e8; color: var(--ink); font-size: .75rem; }
.score-panel { grid-area: score; position: sticky; top: 100px; padding: 25px; border: 1px solid #d0d6e2; border-radius: 7px; background: var(--white); }
.score-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.score-top h2 { font-size: .92rem; letter-spacing: .04em; }
.score-top > span { font-size: .69rem; color: var(--muted); }
.score-display { display: flex; align-items: baseline; gap: 10px; margin-top: 15px; }
#arci-value { font-size: 4.4rem; font-weight: 750; line-height: 1.05; letter-spacing: -.075em; color: var(--blue); }
.score-display > span { font-size: .83rem; color: var(--muted); }
#score-status { min-height: 34px; margin: 8px 0 24px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .73rem; margin-bottom: 8px; }
.progress-meta span { color: var(--muted); }
progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 5px; overflow: hidden; background: #e2e6f0; }
progress::-webkit-progress-bar { background: #e2e6f0; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.score-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 8px; }
.score-dot { height: 4px; background: #e3e7f0; }
.score-dot[data-score="0"] { background: #a4afc6; }
.score-dot[data-score="1"] { background: var(--yellow); }
.score-dot[data-score="2"] { background: var(--blue); }
.formula { margin: 23px 0 4px; font-size: .69rem; font-weight: 700; }
.score-detail { margin: 0 0 21px; color: var(--muted); font-size: .69rem; }
.score-panel .button { width: 100%; gap: 10px; padding-inline: 12px; font-size: .73rem; }
.clear-button { width: 100%; min-height: 38px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); font-size: .73rem; }
.clear-button:hover { color: var(--blue-dark); text-decoration: underline; }
.score-caveat { border-top: 1px solid var(--line); padding-top: 18px; margin: 11px 0 0; font-size: .75rem; color: var(--ink); }
.local-note { margin: 10px 0 0; color: var(--muted); font-size: .67rem; }
.checklist-source { margin: 24px 0 0; font-size: .73rem; line-height: 1.7; color: var(--muted); }
.checklist-source a { color: var(--blue-dark); }
.notice { padding: 15px; background: #f4e3b3; color: var(--ink); font-size: .84rem; }
.mobile-result { display: none; }
.reading-width { width: min(740px, calc(100% - 64px)); margin-inline: auto; }
.text-section { margin: 35px 0 0; padding-top: 27px; border-top: 1px solid var(--line); }
.text-section p { color: var(--muted); font-size: .9rem; line-height: 1.75; }
.text-section h2 { margin-bottom: 17px; }
.development-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.development-steps li { position: relative; counter-increment: step; margin-top: 26px; padding-left: 43px; }
.development-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 2px; left: 0; color: var(--blue-dark); font-size: .76rem; font-weight: 800; }
.development-steps h3 { margin: 0 0 7px; }
.development-steps p { margin: 0; }
.small-comparison { display: flex; gap: 45px; margin-block: 24px 12px; }
.small-comparison > div { display: flex; align-items: center; gap: 15px; }
.small-comparison strong { color: var(--blue); font-size: 2.2rem; font-weight: 750; letter-spacing: -.065em; }
.small-comparison span { color: var(--muted); font-size: .72rem; line-height: 1.6; }
.text-section .small-note { font-size: .75rem; }
.plain-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.plain-list li { padding-left: 4px; margin-bottom: 12px; }
.source-note { margin-top: 40px; padding: 23px; background: #edeef2; border-radius: 6px; }
.source-note h2 { font-size: 1.02rem; }
.source-note p { color: var(--muted); font-size: .79rem; line-height: 1.7; }
.source-note .text-link { font-size: .77rem; }
.contribute-content { max-width: 880px; }
.contribute-heading { max-width: 730px; margin-inline: auto; text-align: center; }
.contribute-heading > p { margin-inline: auto; }
.small-mascot { width: 95px; margin: -15px auto 15px; }
.contribution-options { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin-top: 40px; }
.contribution-option { border-top: 2px solid #c7d1ee; padding-top: 25px; }
.contribution-option h2 { font-size: 1.2rem; }
.contribution-option p { min-height: 86px; margin: 13px 0 20px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.contribution-option .button { width: 100%; }
.direct-contact { text-align: center; margin: 40px 0 0; font-size: .82rem; color: var(--muted); }
.direct-contact a { color: var(--blue-dark); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .home-hero { gap: 35px; }
  .home-copy h1 { font-size: clamp(2.65rem, 4.9vw, 3.5rem); }
  .calculator-grid { gap: 30px; grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 760px) {
  .container, .reading-width { width: calc(100% - 36px); }
  .header-inner { min-height: 83px; flex-wrap: wrap; justify-content: space-between; gap: 3px; padding-block: 9px; }
  .brand { font-size: 1rem; }
  .brand img { width: 31px; height: 31px; }
  nav { order: 3; flex-basis: 100%; justify-content: center; gap: 25px; margin-left: 0; }
  .theme-toggle { order: 2; margin-left: auto; }
  nav a { font-size: .72rem; }
  nav a[aria-current="page"] { text-underline-offset: 4px; }
  .footer-inner { min-height: 42px; gap: 10px; font-size: .61rem; }
  .home-main { padding-block: 18px; }
  .home-hero { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .home-copy .eyebrow { margin-bottom: 14px; font-size: .62rem; }
  .home-copy h1 { font-size: clamp(2.1rem, 6.8vw, 3rem); line-height: 1.12; }
  .home-lede { max-width: 440px; margin: 17px auto; font-size: .93rem; line-height: 1.55; }
  .home-copy .button { min-height: 44px; }
  .home-note { margin-top: 13px; font-size: .64rem; }
  .home-mascot img { width: 135px; }
  .home-mascot p { display: none; }
  .page-main { padding-block: 35px 55px; }
  .page-heading { margin-bottom: 27px; }
  h1 { font-size: clamp(2rem, 6.8vw, 2.8rem); }
  .page-heading > p:not(.eyebrow) { font-size: .89rem; }
  .calculator-grid { grid-template-columns: 1fr; grid-template-areas: "score" "form"; gap: 30px; }
  .score-panel { position: static; padding: 22px; }
  .rating-key { gap: 16px; grid-template-columns: 1fr; }
  .rating-key p { display: flex; align-items: start; gap: 15px; }
  .rating-key b { width: 118px; flex: none; margin-bottom: 0; font-size: .76rem; }
  .rating-key span { font-size: .73rem; }
  .score-panel .button { max-width: 360px; }
  .clear-button { max-width: 360px; }
  .checklist-form { padding-bottom: 35px; }
  .mobile-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 15; bottom: 0; inset-inline: 0; min-height: 53px; padding: 11px 18px calc(11px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid #bdc9e7; box-shadow: 0 -5px 18px rgb(34 40 60 / 6%); font-size: .77rem; text-decoration: none; }
  .mobile-result strong { color: var(--blue); font-size: 1.1rem; margin-left: 4px; }
  .mobile-result > span:last-child { color: var(--blue-dark); }
  .small-comparison { gap: 24px; }
  .small-comparison > div { flex-direction: column; align-items: start; gap: 5px; }
  .contribution-options { gap: 28px; }
}
@media (max-width: 480px) {
  .contribution-options { grid-template-columns: 1fr; gap: 35px; }
  .contribution-option p { min-height: 0; }
  .score-choice span { gap: 5px; padding-inline: 5px; }
  .score-choice small { font-size: .65rem; }
  .example-body { padding-inline: 15px; }
  .domain-card legend { font-size: .96rem; }
  .direct-contact { font-size: .76rem; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .home-main { padding-block: 10px; }
  .home-hero { gap: 8px; }
  .home-copy h1 { font-size: 2.05rem; }
  .home-copy .eyebrow { margin-bottom: 10px; }
  .home-lede { margin-block: 12px; font-size: .85rem; }
  .home-note { margin-top: 9px; }
  .home-mascot img { width: 98px; }
}
@media (max-height: 620px) and (max-width: 600px) {
  .home-page .header-inner { min-height: 72px; }
  .home-page .footer-inner { min-height: 36px; }
  .home-copy h1 { font-size: 1.8rem; }
  .home-mascot img { width: 64px; }
  .home-copy .eyebrow { font-size: .57rem; margin-bottom: 8px; }
  .home-lede { font-size: .8rem; margin-block: 8px; }
  .home-main { padding-block: 6px; }
}
@media (max-height: 530px) and (min-width: 480px) {
  .home-page .header-inner { min-height: 58px; padding-block: 7px; flex-direction: row; flex-wrap: nowrap; }
  .home-page nav { flex-basis: auto; gap: 16px; }
  .home-page .header-inner { gap: 12px; }
  .home-page .theme-toggle { min-width: 36px; padding-inline: 7px; }
  .home-page .theme-toggle-text { display: none; }
  .home-hero { grid-template-columns: 1.6fr .8fr; text-align: left; gap: 24px; }
  .home-copy h1 { font-size: 2rem; }
  .home-copy .eyebrow { margin-bottom: 9px; }
  .home-lede { margin-block: 11px; font-size: .84rem; }
  .home-note { margin-top: 9px; font-size: .6rem; }
  .home-mascot img { width: 170px; }
  .home-mascot p { display: none; }
  .home-main { padding-block: 12px; }
}
@media (max-height: 400px) and (min-width: 480px) {
  .home-page .header-inner { min-height: 46px; }
  .home-page .footer-inner { min-height: 30px; }
  .home-copy h1 { font-size: 1.5rem; }
  .home-copy .eyebrow { font-size: .55rem; margin-bottom: 5px; }
  .home-lede { font-size: .75rem; margin-block: 5px; }
  .home-copy .button { min-height: 38px; padding-block: 8px; font-size: .74rem; }
  .home-note { margin-top: 6px; font-size: .55rem; }
  .home-mascot img { width: 100px; }
  .home-main { padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151b2b;
  --white: #20283b;
  --ink: #f0f3ff;
  --muted: #c4cce0;
  --blue: #91b0ff;
  --blue-dark: #bad0ff;
  --line: #46516b;
}
:root[data-theme="dark"] ::selection { background: #355398; }
:root[data-theme="dark"] .skip-link { background: var(--white); }
:root[data-theme="dark"] .site-header { background: rgb(21 27 43 / 97%); }
:root[data-theme="dark"] .theme-toggle { border-color: #65718d; }
:root[data-theme="dark"] .theme-toggle:hover { background: #2d3954; }
:root[data-theme="dark"] .button-primary { background: #91b0ff; color: #10182b; }
:root[data-theme="dark"] .button-primary:hover:not(:disabled) { background: #bad0ff; }
:root[data-theme="dark"] .button-secondary { border-color: #7189ba; color: var(--ink); }
:root[data-theme="dark"] .button-secondary:hover { background: #2a3857; }
:root[data-theme="dark"] .domain-number { background: #2b3959; color: var(--blue-dark); }
:root[data-theme="dark"] .domain-card[data-scored="true"] .domain-number { background: #91b0ff; color: #10182b; }
:root[data-theme="dark"] .score-choice span { border-color: #74809a; color: #e4eafd; }
:root[data-theme="dark"] .score-choice:hover span { background: #293752; border-color: var(--blue); }
:root[data-theme="dark"] .score-choice input:checked + span { border-color: var(--blue); color: var(--ink); background: #2d4068; box-shadow: inset 0 0 0 1px var(--blue); }
:root[data-theme="dark"] .example-body { border-color: #7190d5; background: #222e46; color: #dce5f9; }
:root[data-theme="dark"] .example-body dd::before,
:root[data-theme="dark"] .example-body dd::after { color: #a9bcdf; }
:root[data-theme="dark"] .example-note { border-color: var(--line); }
:root[data-theme="dark"] .score-panel { border-color: var(--line); }
:root[data-theme="dark"] progress,
:root[data-theme="dark"] progress::-webkit-progress-bar { background: #303b53; }
:root[data-theme="dark"] .score-dot { background: #303b53; }
:root[data-theme="dark"] .score-dot[data-score="0"] { background: #8a99b5; }
:root[data-theme="dark"] .source-note { background: #202c43; }
:root[data-theme="dark"] .contribution-option { border-color: #7189ba; }
:root[data-theme="dark"] .notice { background: #534622; color: var(--ink); }
:root[data-theme="dark"] .mobile-result { border-color: var(--line); box-shadow: 0 -5px 18px rgb(0 0 0 / 18%); }
