/* Shared viewport-width layout for every public route.
   Only the outer shell is widened; chart geometry and ritual scroll locks remain local. */
:root{--site-gutter:16px}
html{box-sizing:border-box}
body{margin:0;min-width:0}
body .site-shell.site-shell{box-sizing:border-box;width:100%;max-width:none;min-width:0;margin-left:0;margin-right:0;padding-left:max(var(--site-gutter),env(safe-area-inset-left));padding-right:max(var(--site-gutter),env(safe-area-inset-right))}
body .site-shell>main{width:100%;max-width:none;min-width:0}
.site-shell>header,.site-shell>.header,.site-shell>section,.site-shell>main{min-width:0}
@media(min-width:768px){:root{--site-gutter:24px}}

/* v138: consistent intrinsic sizes, without changing chart proportions. */
.site-shell input,.site-shell select,.site-shell textarea{box-sizing:border-box;max-width:100%;min-width:0}
.site-shell .form-grid>*,.site-shell .q-fields>*,.site-shell .tb-fields>*,.site-shell .lr-fields>*{min-width:0}
.site-shell input[type=date],.site-shell input[type=time],.site-shell input[type=datetime-local]{width:100%;min-width:0;max-width:100%;height:50px;min-height:50px;line-height:1.5;font-size:16px;-webkit-appearance:none;appearance:none}
.site-shell input::-webkit-date-and-time-value{text-align:left;min-width:0;line-height:1.5}
.site-shell input::-webkit-datetime-edit{padding:0;min-width:0}
.site-shell .theme{flex-shrink:0}
.site-shell :is(button,a,summary,input,select,textarea,[contenteditable=true]):focus-visible{outline:2px solid var(--tech,var(--accent,#427d85));outline-offset:3px}
.site-shell [hidden]{display:none!important}
.home-search{margin:20px 0 18px;color:inherit}.search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.search-controls{display:flex;gap:10px;align-items:center}.search-controls input{display:block;width:100%;flex:1;min-width:0;min-height:46px;margin:0;padding:10px 14px;border:1px solid var(--line,#dbe2e6);border-radius:10px;background:var(--card,var(--surface,#fff));font:inherit;font-size:16px;color:inherit}.search-controls button{padding:9px 14px;min-height:44px;border:1px solid var(--line,#dbe2e6);border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer}#homeSearchStatus{font-size:14px;line-height:1.6;margin:8px 0 0;color:var(--muted,#6a7881)}#homeSearchStatus:empty{display:none}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}.site-shell{scroll-behavior:auto}}

.reading-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.reading-overview-grid article{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px}.reading-overview-grid h3,.reading-overview-grid h4{margin:0 0 10px}.reading-overview-grid p{overflow-wrap:anywhere}.reading-full{margin:20px 0;border-top:1px solid var(--line);padding-top:12px}.reading-full>summary{font-size:18px;color:var(--accent,var(--gold))}@media(max-width:900px){.reading-overview-grid{grid-template-columns:1fr}}

.site-shell :is(.form-grid,.q-fields,.tb-fields,.lr-fields) :is(select,input:not([type=checkbox]):not([type=radio]):not([type=file])){height:50px;min-height:50px}

/* v175: optional route guidance, native keyboard/touch disclosure. */
.page-help{margin:12px 0 18px;border-bottom:1px solid var(--line,#83949a);font-size:16px;line-height:1.65;color:inherit}
.page-help>summary{min-height:44px;box-sizing:border-box;padding:9px 2px;cursor:pointer;font-size:16px;font-weight:600}
.page-help-body{padding:0 2px 16px;max-width:80ch}
.page-help-body p{font-size:16px;line-height:1.75;margin:10px 0;overflow-wrap:anywhere}
.page-help-body nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}
.page-help-body a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;color:inherit;text-underline-offset:4px;overflow-wrap:anywhere}
