/* DirectorSight app styles. Large text by default (18px base) for older, non-technical directors. */
:root{
  --navy:#13294B;--navy-900:#0B1830;--navy-700:#1E3A66;--gold:#C9A227;--gold-ink:#7A5E08;--gold-soft:#F7EFD5;
  --bg:#F4F6F9;--surface:#fff;--ink:#1D2738;--muted:#4F5B70;--line:#DCE1E8;
  --red:#B42318;--red-soft:#FDECEA;--amber:#9A5B00;--amber-soft:#FFF3DC;--green:#1B6E46;--green-soft:#E4F4EB;
  --r:14px;--head:"Sora",ui-sans-serif,system-ui,sans-serif;--body:"Public Sans",ui-sans-serif,system-ui,sans-serif;
}
*{box-sizing:border-box}
html{font-size:112.5%;-webkit-text-size-adjust:100%}
html.text-normal{font-size:100%}html.text-xl{font-size:125%}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);line-height:1.5}
h1,h2,h3{font-family:var(--head);color:var(--navy);line-height:1.2;margin:0 0 .5rem}
h1{font-size:1.75rem}h2{font-size:1.2rem}h3{font-size:1.05rem}
p{margin:.4rem 0}
a{color:var(--navy)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:48px;padding:.6rem 1.1rem;border-radius:10px;border:2px solid var(--navy);background:var(--navy);color:#fff;font:600 1rem var(--body);cursor:pointer;text-decoration:none}
.btn:hover{background:var(--navy-900)}
.btn.ghost{background:#fff;color:var(--navy)}
.btn.ghost:hover{background:var(--bg)}
.btn.quiet{background:transparent;border-color:transparent;color:var(--navy)}
.btn.danger{background:#fff;color:var(--red);border-color:var(--red)}
.btn.sm{min-height:40px;padding:.35rem .8rem;font-size:.9rem}
.btn[disabled]{opacity:.6;cursor:default}
label.f{display:block;font-weight:600;margin:0 0 .35rem}
input,select,textarea{width:100%;min-height:48px;padding:.6rem .8rem;border:2px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:1rem var(--body)}
textarea{min-height:110px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--navy);outline:none}
.field{margin-bottom:1rem}
.hint{font-size:.88rem;color:var(--muted);margin-top:.3rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1.25rem;margin-bottom:1.25rem}
.msg{border-radius:10px;padding:.75rem 1rem;font-weight:600;margin:.8rem 0}
.msg.error{background:var(--red-soft);color:var(--red)}.msg.ok{background:var(--green-soft);color:var(--green)}.msg.info{background:var(--gold-soft);color:var(--gold-ink)}
.pill{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.8rem;font-weight:700;background:var(--bg);color:var(--muted)}
.pill.red{background:var(--red-soft);color:var(--red)}.pill.amber{background:var(--amber-soft);color:var(--amber)}.pill.green{background:var(--green-soft);color:var(--green)}.pill.navy{background:var(--navy);color:#fff}
.row{display:flex;align-items:center;gap:.75rem;padding:.85rem 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row .grow{flex:1;min-width:0}
.row small{display:block;color:var(--muted);font-size:.85rem}
.brand{display:flex;align-items:center;gap:.6rem;font:700 1.25rem var(--head);color:var(--navy);text-decoration:none}
.brand b{color:var(--gold-ink)}
/* centered auth pages */
.auth{max-width:30rem;margin:0 auto;padding:2.5rem 1.25rem 3rem}
.auth .brand{justify-content:center;margin-bottom:1.5rem;font-size:1.6rem}
/* app shell */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;background:var(--navy);color:#fff}
.top .brand{color:#fff}.top .brand b{color:var(--gold)}
.top .assoc{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#C9D3E3;font-size:.95rem}
.me{display:flex;align-items:center;gap:.4rem;color:#fff;text-decoration:none;font-weight:600;font-size:.9rem;margin-left:auto}
.me-dot{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--gold);color:var(--navy);font:700 .75rem var(--head);box-shadow:0 0 0 2px #fff}
.me-name{max-width:7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:420px){.top .assoc{display:none}}
.top select{max-width:14rem;min-height:40px;padding:.3rem .5rem;font-size:.9rem}
main{max-width:56rem;margin:0 auto;padding:1.25rem 1rem 7rem}
.tabs{position:fixed;bottom:0;left:0;right:0;z-index:20;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0)}
.tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 0 10px;font:600 11.5px var(--body);color:var(--muted);text-decoration:none;white-space:nowrap;min-width:0}
.tabs a[aria-current="page"]{color:var(--navy)}
.tabs .ico{font-size:1.25rem;line-height:1}
@media(min-width:900px){
  .shell{display:grid;grid-template-columns:15rem 1fr}
  .tabs{position:sticky;top:3.6rem;height:calc(100vh - 3.6rem);grid-auto-flow:row;grid-auto-rows:min-content;align-content:start;border-top:0;border-right:1px solid var(--line);padding:1rem .6rem}
  .tabs a{flex-direction:row;gap:.6rem;padding:.7rem .8rem;border-radius:10px;font-size:1rem}
  .tabs a[aria-current="page"]{background:var(--bg)}
  main{padding:2rem 2rem 3rem}
}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:520px){.grid2{grid-template-columns:1fr}}
dialog{border:0;border-radius:var(--r);padding:0;max-width:34rem;width:calc(100% - 1.5rem);color:var(--ink)}
dialog::backdrop{background:rgba(11,24,48,.55)}
dialog .dh{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--line)}
dialog .db{padding:1.25rem}
dialog .df{display:flex;justify-content:flex-end;gap:.6rem;padding:1rem 1.25rem;border-top:1px solid var(--line)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.statute .opt{display:flex;gap:.6rem;align-items:flex-start;min-height:48px;padding:.6rem .7rem;margin:.35rem 0;border:1.5px solid #CBD5E1;border-radius:10px;font-weight:600;cursor:pointer}
.statute .opt input{width:22px;height:22px;margin-top:.1rem;flex:none}

/* checkboxes and radio buttons keep their own size (the rule above is for text boxes) */
input[type="checkbox"],input[type="radio"]{width:24px;height:24px;min-height:0;padding:0;margin:.1rem 0 0;flex:none;accent-color:var(--navy);border-radius:4px}
.chk{display:flex;align-items:flex-start;gap:.65rem;min-height:48px;padding:.35rem 0;cursor:pointer;line-height:1.4}
/* nothing on these pages may be wider than the phone */
html,body{max-width:100%;overflow-x:hidden}
.card,main{min-width:0;overflow-wrap:break-word}
