/* Barangayko.com: shared professional look for every tool (screen only; documents and printing are untouched). */
@media screen{
:root{--bk-navy:#14307A;--bk-navy-d:#0E2358;--bk-gold:#B8820A;--bk-line:#D5D9E0;--bk-ink:#0F1B2D;--bk-focus:#F2B705;--bk-r:10px}
html{-webkit-text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;color:var(--bk-ink)}
/* header: navy-and-gold government letterhead rule */
.top,header{border-bottom:3px solid var(--bk-gold)!important;box-shadow:0 1px 0 rgba(20,48,122,.08),0 4px 14px -8px rgba(20,48,122,.35)}
/* cards and sections */
.card,fieldset{border:1px solid var(--bk-line)!important;border-radius:12px!important;box-shadow:0 1px 2px rgba(15,27,45,.05),0 8px 24px -16px rgba(20,48,122,.25)}
fieldset legend,legend{font-weight:700;color:var(--bk-navy);padding:0 8px;letter-spacing:.01em}
h1{letter-spacing:-.01em}
h1,h2,h3{color:var(--bk-navy)}
.doc h1,.doc h2,.doc h3,#doc h1,#doc h2,#doc h3{color:inherit}
/* fields */
label{font-weight:600;color:#1F2A44}
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select,textarea{
 border:1.5px solid #9AA3B2;border-radius:8px;background:#fff;color:var(--bk-ink);
 transition:border-color .15s,box-shadow .15s}
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):hover,select:hover,textarea:hover{border-color:#6B7690}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,[role=tab]:focus-visible{
 outline:3px solid var(--bk-focus)!important;outline-offset:2px;border-color:var(--bk-navy)}
input[type=checkbox],input[type=radio]{accent-color:var(--bk-navy);width:20px;height:20px}
::placeholder{color:#6B7690;opacity:1}
/* buttons */
button,.btn{transition:background-color .15s,box-shadow .15s,transform .05s;border-radius:8px}
button:not(.alt):not(.o):not(.bkhelp):not([role=tab]):not([data-a]):hover,.btn:not(.o):hover{box-shadow:0 4px 12px -4px rgba(20,48,122,.5)}
button:active,.btn:active{transform:translateY(1px)}
button[disabled]{opacity:.55;cursor:not-allowed}
/* tabs */
[role=tab]{border-radius:8px 8px 0 0;font-weight:700}
[role=tab][aria-selected=true]{box-shadow:inset 0 -3px 0 var(--bk-gold)}
/* badges, hints, notes */
.badge{border-radius:999px;font-weight:700}
.hint,.note{line-height:1.5}
/* tables on screen (not the documents) */
table:not(.sg):not(.pg) th{background:#EEF1F8;color:var(--bk-navy);font-weight:700;text-align:left}
table:not(.sg):not(.pg) td,table:not(.sg):not(.pg) th{border-color:var(--bk-line)}
/* the paper preview looks like a sheet of long bond */
.doc,#doc{box-shadow:0 2px 4px rgba(15,27,45,.08),0 16px 40px -20px rgba(15,27,45,.35)}
/* marks for blanks stay obvious */
mark{border-radius:3px}
/* phones: wide documents scroll inside their own box instead of widening the page */
@media (max-width:700px){.grid>.card,.card.big{min-width:0;max-width:100%}.doc,#doc{overflow-x:auto;max-width:100%}}
/* respect reduced motion */
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
}
