.app-shell{max-width:1060px;margin:auto;padding:2rem 1.4rem 4rem}.app-title{display:flex;align-items:center;gap:1rem;margin-bottom:1.8rem}.app-title img{width:72px;height:72px;border-radius:18px}.app-title h1{font-size:clamp(2rem,6vw,3.2rem);margin:0;letter-spacing:-.025em}.app-title p{margin:.35rem 0 0;color:#67545f}.app-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1.5rem;align-items:start}.age-card,.install-card{padding:1.5rem;background:white;border:1px solid var(--line);border-radius:16px}.age-card h2{font-size:2rem;margin-bottom:.6rem}.age-card p{margin:0 0 1rem}.age-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.age-fields label{display:flex;flex-direction:column;gap:.5rem;font-weight:700;font-size:1rem;min-width:0}.age-fields input{display:block;width:100%;min-width:0;min-height:48px;border:1px solid #927280;border-radius:8px;background:var(--cream);color:var(--ink);font:inherit;padding:.6rem}.age-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.2rem 0}.age-actions button,.app-install-button{font:inherit;cursor:pointer;border-radius:8px;min-height:48px}.age-result{margin:1.3rem 0 0;background:var(--plum);color:white;border-radius:12px;padding:1.2rem}.age-result p{margin:.2rem 0}.age-result strong{display:block;font-size:1.2rem;line-height:1.5}.age-result .age-secondary{margin-top:.85rem;color:#f6e9df}.age-error{color:#8b173a}.age-note{margin:1.2rem 0 0!important;color:#67545f;font-size:.9rem}.age-animal{font-weight:750;color:var(--berry)}.app-back{display:inline-block;margin-top:1rem;text-underline-offset:3px}.app-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.app-shortcut{display:block;border:1px solid var(--line);background:white;padding:1rem;border-radius:12px;text-decoration:none;min-height:105px}.app-shortcut h2{font-size:1.35rem;margin:0 0 .5rem}.app-shortcut p{margin:0;font-size:1rem;color:#67545f}.app-shortcut:hover,.app-shortcut:focus-visible{border-color:var(--berry);background:var(--paper)}.app-photo{width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;border-radius:12px;margin:1rem 0;background:var(--paper)}.install-card h2{font-size:1.45rem;margin-bottom:.65rem}.install-card p{margin:.6rem 0}.install-card summary{cursor:pointer;font-weight:750;min-height:44px;padding:.65rem 0}.install-card li{margin:.6rem 0}.install-card ul{padding-left:1.2rem}.app-install-button{background:var(--plum);color:white;border:1px solid var(--plum);padding:.7rem 1rem;margin:.3rem 0}.app-shell [hidden]{display:none!important}a#profile-age{text-decoration:none}.app-shell :focus-visible{outline:3px solid var(--berry);outline-offset:3px}@media(max-width:760px){.app-layout{grid-template-columns:1fr}.app-shell{padding:1.4rem 1rem 3rem}.age-card,.install-card{padding:1.2rem}.app-title img{width:60px;height:60px}.app-title{gap:.8rem}.app-photo{margin-top:0}}@media(max-width:420px){.age-fields{grid-template-columns:1fr}}@media(display-mode:standalone){.install-card{display:none}.app-shell{padding-bottom:max(3rem,env(safe-area-inset-bottom))}}

.app-tools{display:grid;gap:1.5rem;min-width:0}.calculator-jumps{display:flex;flex-wrap:wrap;gap:.7rem;margin:-.2rem 0 1.5rem}.calculator-jumps a{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--berry);border-radius:8px;padding:.5rem .9rem;text-decoration:none;font-size:1rem;font-weight:700}.term-mode-label{display:flex;flex-direction:column;gap:.5rem;font-weight:700;margin:1rem 0}.term-mode-label select{width:100%;min-height:48px;padding:.65rem;border:1px solid #927280;border-radius:8px;background:var(--cream);color:var(--ink);font:inherit}.term-card h2{scroll-margin-top:100px}.age-card #age-title{scroll-margin-top:100px}.term-result-note{margin-top:1rem!important;color:#f6e9df}.term-privacy,.term-sources{font-size:.9rem;color:#67545f}.term-sources summary{font-weight:700;cursor:pointer;min-height:44px;padding:.5rem 0}.term-sources p{margin:.7rem 0}.term-sources a{text-underline-offset:3px}

.app-rules{margin-top:2rem;padding-top:2rem;border-top:1px solid var(--line);scroll-margin-top:100px}.rules-heading{display:flex;align-items:end;justify-content:space-between;gap:1.5rem}.rules-heading .eyebrow{margin-bottom:.5rem}.rules-heading h2{font-size:2rem;margin:0}.rules-date{margin:0;max-width:18rem;font-size:.9rem;color:#67545f}.rules-scope{font-size:1rem}.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.rules-card{padding:1.5rem;background:white;border:1px solid var(--line);border-radius:16px;min-width:0}.rules-card h3,.rules-sources h3{font-size:1.4rem;line-height:1.25;margin-bottom:1rem}.rules-card dl{margin:0}.rules-card dt{font-weight:750;margin-top:.8rem}.rules-card dd{margin:0 0 .8rem;color:#67545f}.rules-checklist{padding-left:1.2rem;margin-top:0}.rules-checklist li{margin:.6rem 0}.rules-link{display:inline-block;min-height:44px;padding:.55rem 0;font-weight:700;text-underline-offset:3px}.rules-titles{margin-top:1.5rem;padding:1rem 1.5rem;background:white;border:1px solid var(--line);border-radius:16px}.rules-titles summary{cursor:pointer;font-weight:750;padding:.4rem 0;min-height:44px}.rules-titles table{border-collapse:collapse;width:100%;margin:1rem 0;text-align:left;font-size:1rem}.rules-titles caption{text-align:left;font-weight:700;margin-bottom:.7rem}.rules-titles th,.rules-titles td{padding:.65rem .5rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.rules-titles th[scope=row]{color:var(--plum);width:9rem}.rules-history{color:#67545f;font-size:.9rem}.rules-sources{margin-top:1.5rem}.rules-sources > div{display:flex;flex-wrap:wrap;gap:.7rem 1.3rem}.rules-sources a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px}@media(max-width:760px){.rules-heading{display:block}.rules-date{margin-top:.7rem;max-width:none}.rules-grid{grid-template-columns:1fr}.rules-card,.rules-titles{padding:1.2rem}.rules-titles th[scope=row]{width:auto}}

.colour-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.colour-photos figure{margin:0;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.colour-photos img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:var(--paper)}.colour-photos figcaption{padding:1rem;font-size:1rem}.colour-photos strong,.colour-photos span{display:block}.colour-photos a{display:inline-block;min-height:44px;text-underline-offset:3px}.colour-photos figure>a{display:block}.colour-photos figcaption a{padding-top:.5rem;font-size:.9rem}.app-colours>h3{font-size:1.4rem;margin-top:1.5rem}.colour-explain{margin-top:1.5rem}.colour-table-wrap{overflow-x:auto}.app-colours code{font-size:1rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:normal}.colour-table-wrap th[scope=row]{width:22%}.colour-table-wrap td:last-child{min-width:15rem}.colour-table-wrap td:first-of-type{min-width:12rem}@media(max-width:760px){.colour-photos{grid-template-columns:1fr}.colour-photos img{aspect-ratio:4/3}}
/* Content navigation must never inherit the header's mobile overlay. */
.app-shell nav{position:static;inset:auto;background:transparent;padding:0;border-bottom:0;flex-direction:row;min-width:0}
.app-shell .age-actions button{appearance:none;-webkit-appearance:none;color:var(--plum);background:white}
.app-shell .age-actions button.primary{color:white;background:var(--plum)}
.app-layout>aside,.app-shortcut{min-width:0}
.app-shortcut h2,.age-card h2{overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto}
@media(max-width:600px){.age-fields{grid-template-columns:minmax(0,1fr)}.age-fields input{max-width:100%;appearance:none;-webkit-appearance:none}.age-actions button{max-width:100%}.app-shortcuts{grid-template-columns:minmax(0,1fr)}.app-shortcut{min-height:0}}
