@font-face{font-family:Montserrat;src:url(/Montserrat-Regular.ttf) format("truetype");font-display:swap}
@font-face{font-family:Montserrat;src:url(/Montserrat-Bold.ttf) format("truetype");font-weight:700;font-display:swap}
:root{font-family:Montserrat,sans-serif;color:#152a4e;background:#f5f8fc;--brand:#074a8d;--deep:#082c66;--line:#dce7f3;--soft:#edf5fc}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;line-height:1.55}
h1,h2,h3,p{margin:0 0 .65rem}
h1,h2,h3{line-height:1.14}
h1{font-size:clamp(2.1rem,5vw,3.75rem);letter-spacing:-.045em}
h2{font-size:clamp(1.4rem,3vw,2.1rem);letter-spacing:-.035em}
a{color:var(--brand)}
button,.button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:.52rem .95rem;border:1px solid transparent;border-radius:.55rem;background:var(--brand);color:white;font:700 .875rem/1.3 Montserrat,sans-serif;text-decoration:none;cursor:pointer}
button:disabled{opacity:.45;cursor:default}
button:hover:not(:disabled),.button:hover{filter:brightness(.92)}
.secondary{background:var(--soft);color:var(--brand);border-color:var(--line)}
.bright{background:#ffda28;color:#082c66;margin-top:1rem}
:focus-visible{outline:3px solid #2578bc;outline-offset:3px}
input,select{min-width:0;max-width:100%;width:100%;min-height:44px;padding:.48rem .65rem;border:1px solid #aebed2;border-radius:.5rem;background:white;color:inherit;font:inherit}
label{display:grid;gap:.3rem;font-size:.875rem;font-weight:700}
.site-header{display:flex;align-items:center;justify-content:space-between;min-height:74px;padding:.75rem max(1rem,calc((100% - 1140px)/2));background:white;border-bottom:1px solid var(--line);gap:1rem}
.site-header a{color:var(--deep);text-decoration:none;font-size:1.35rem;font-weight:700}
.site-header span,.meta{font-size:.875rem;color:#52627b}
.site-header img{width:105px;height:auto;display:block}
.hero{min-height:420px;padding:3.4rem max(1rem,calc((100% - 1070px)/2));display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:2rem;background:linear-gradient(125deg,#081f55,#10448a 65%,#137cab);color:white;overflow:hidden}
.hero h1{font-size:clamp(3rem,8vw,6.6rem);line-height:.94;margin:1rem 0 1.4rem}
.hero-content>p:not(.eyebrow){max-width:470px;color:#e2efff}
.eyebrow{font-size:.875rem;font-weight:700;letter-spacing:.08em;color:var(--brand)}
.hero .eyebrow{color:#84dcf0}
.hero img{justify-self:center;width:min(100%,235px);height:auto;border-radius:.95rem;transform:rotate(5deg);box-shadow:0 1.2rem 3rem #05153890;animation:appear .55s ease-out}
@keyframes appear{from{opacity:.3;transform:translateY(12px) rotate(2deg)}}
.content,.reader,.dashboard{max-width:1180px;margin:auto;padding:2rem 1.2rem 3rem}
.section-heading,.dashboard-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.3rem}
.topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;gap:.75rem;list-style:none}
.topics a{height:100%;display:flex;flex-direction:column;justify-content:space-between;min-height:95px;gap:.5rem;padding:1rem;border:1px solid var(--line);border-radius:.75rem;background:white;text-decoration:none;color:var(--deep);font-weight:700}
.topics a:hover{border-color:var(--brand);background:var(--soft)}
.topics small{font-size:.875rem;color:#52627b;font-weight:400}
.reader{max-width:960px}
.reader h1{font-size:clamp(1.7rem,4vw,3rem);margin:1rem 0}
.toolbar,.actions{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}
#position{min-width:6rem;text-align:center;font-weight:700;font-size:.875rem}
#paper{min-width:0;min-height:3rem;margin:1rem 0;background:#e1ebf6;text-align:center}
#paper canvas{display:block;margin:auto;max-width:100%;height:auto}
footer{background:#eaf2fa;color:#385270;padding:1rem;text-align:center;font-size:.875rem}
.admin{--brand:#493784;--deep:#292048;--line:#ded7ec;--soft:#f0ebf8;color:#292048;background:#f6f3fb}
.dashboard-head{align-items:center}
.workspace{margin:0;padding:0;border:0;min-inline-size:0}
.dashboard-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.7fr);gap:1rem;align-items:start}
.card{background:white;border:1px solid var(--line);border-radius:1rem;padding:1.2rem;min-width:0}
.card h2{margin-bottom:.7rem}
.card>p{color:#504863}
.files form,.files>label{display:grid;gap:.6rem;margin:1rem 0}
.files form button{justify-self:start}
.file-picker{position:relative;display:flex;align-items:center;min-width:0;min-height:46px;gap:.6rem;padding:.55rem .7rem;border:1px dashed #9e8ebc;border-radius:.55rem;background:var(--soft);color:var(--brand);font-size:.875rem;font-weight:700}
.file-picker:hover{background:#e9e0f4;border-color:var(--brand)}
.file-picker:focus-within{outline:3px solid #2578bc;outline-offset:3px}
.file-picker svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.file-picker span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-picker input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
details{margin-top:1rem}
summary{cursor:pointer;font-weight:700}
.revisions{margin-top:1rem}
.history{list-style:none;padding:0;margin:.5rem 0 0}
.history li{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.6rem 0;border-top:1px solid var(--line)}
.history li div{min-width:0;overflow-wrap:anywhere}
.history a{font-size:.875rem}
.edit-row{display:grid;grid-template-columns:minmax(120px,1fr) 5.5rem;gap:.5rem;padding:.7rem 0;border-top:1px solid var(--line)}
.row-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.row-actions button{font-size:.8rem;padding:.4rem .55rem;min-height:44px}
.visibility{display:flex;align-items:center;margin-right:auto}
.visibility input{width:1.15rem;min-height:44px;margin:0 .35rem}
#editor .actions{margin-top:.9rem;justify-content:space-between}
.notice{margin-bottom:1rem;padding:.65rem .8rem;border-radius:.5rem;background:#e9e2f5;color:#392c62}
.notice.error{background:#ffe5e8;color:#791b29}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:740px){.topics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:490px){.hero{gap:1rem;padding-block:2rem;grid-template-columns:minmax(0,1fr) 31%;min-height:0}.hero h1{font-size:clamp(2.1rem,10vw,3.25rem)}.hero img{transform:rotate(3deg)}.topics{grid-template-columns:1fr}.section-heading,.dashboard-head{align-items:start;flex-direction:column}.section-heading label{width:100%}.site-header a{font-size:1.1rem}.card{padding:.85rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important}}
.reading{overflow:hidden}
.reading .site-header,.reading footer{display:none}
.reader{position:fixed;inset:0;z-index:10;max-width:none;margin:0;padding:0;background:#e4edf8;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.reader:fullscreen{width:100%;height:100%;background:#e4edf8}
.reader-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.5rem 1rem;padding:.6rem max(1rem,env(safe-area-inset-right)) .65rem max(1rem,env(safe-area-inset-left));background:white;border-bottom:1px solid var(--line);z-index:1}
.reader-title{min-width:0}
.reader-title .back{font-size:.875rem}
.reader-title h1{color:#003da5;font-size:clamp(1.1rem,2.4vw,1.65rem);margin:.2rem 0 0;overflow-wrap:anywhere;letter-spacing:-.025em}
.reader .toolbar,.zoom-controls{display:flex;align-items:center;gap:.35rem}
.reader .toolbar{flex-shrink:0}
.reader .toolbar button,.reader .toolbar .button{min-height:42px}
.zoom-value{min-width:3.5rem;padding-inline:.3rem}
button.icon{width:42px;padding:.55rem}
.icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reader-status{position:absolute;left:50%;top:40%;transform:translateX(-50%);z-index:2;margin:0;padding:.6rem 1rem;background:white;border-radius:.55rem;box-shadow:0 2px 12px #152a4e20;text-align:center;pointer-events:none}
.reader-status:empty{display:none}
#paper{min-height:0;margin:0;overflow:auto;overscroll-behavior:contain;padding:0 0 5.5rem;background:#e4edf8}
#paper canvas{display:block;max-width:none;height:auto;margin-inline:auto;background:white;box-shadow:0 3px 14px #082c6626}
.page-controls{position:absolute;bottom:max(.8rem,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:.4rem;align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.35rem;box-shadow:0 4px 16px #082c6633}
.page-controls button{font-size:1.55rem;line-height:1;width:44px;padding:0;border-radius:50%}
#position{min-width:5rem}
#index-dialog{width:min(calc(100% - 1.5rem),37rem);max-height:min(80dvh,48rem);padding:0 1rem 1rem;border:1px solid var(--line);border-radius:1rem;color:inherit;overscroll-behavior:contain}
#index-dialog::backdrop{background:#071c48a8}
.dialog-header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:1rem 0;background:white}
.dialog-header h2{margin:0}
#dialog-topics{display:grid;grid-template-columns:1fr;margin:0}
#dialog-topics a{min-height:0;padding:.7rem .85rem;flex-direction:row;align-items:center}
#dialog-topics a[aria-current]{border-color:var(--brand);background:var(--soft)}
#dialog-topics small{white-space:nowrap}
@media(max-width:750px){.reader-header{grid-template-columns:minmax(0,1fr) auto}.reader .toolbar{width:100%;grid-column:1/-1;grid-row:2}.reader-logo{grid-column:2;grid-row:1}}
@media(max-width:370px){.reader .toolbar{gap:.2rem}.reader .toolbar .button{padding-inline:.35rem}.reader-header{padding-inline:.5rem}}
.site-header .ayudin-brand{display:inline-flex;align-items:center}
.site-header .ayudin-brand img,.site-header .ayudin-logo{width:clamp(90px,22vw,124px)}
.reader-identity{min-width:0}
.reader-logo{display:block;width:76px;height:auto}
.reader-title .back{display:inline-flex;align-items:center;gap:.2rem;min-height:32px;padding:.15rem .55rem .15rem .3rem;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--brand);font-size:.75rem;font-weight:700;text-decoration:none}
.reader-title .back:hover{background:#dceafa}
.reader-title .back svg,#download svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
#download{width:42px;padding:.55rem}
@media(max-width:750px){
  .reader-identity{width:100%}
  .reader-logo{width:66px}
  .reader .toolbar{flex-wrap:nowrap;gap:clamp(3px,1.2vw,7px);overflow-x:auto;scrollbar-width:thin;padding-block:3px}
  .reader .toolbar>*{flex:none}
  .reader .toolbar button,.reader .toolbar .button{min-height:40px}
  .reader .toolbar .icon,#download{width:37px;padding:0}
  .reader .toolbar .zoom-value{min-width:42px;padding-inline:2px}
  #open-index{padding-inline:.55rem}
}
.open-guide{gap:.5rem}
.open-guide svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#topics{display:block;margin:1rem 0 0;border-top:1px solid var(--line)}
#topics li{border-bottom:1px solid var(--line)}
#topics a{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:1rem;min-height:48px;height:auto;padding:.65rem .5rem;border:0;border-radius:0;background:transparent}
#topics a:hover{background:var(--soft)}
#topics a:focus-visible{outline-offset:-3px}
#topics small{flex:none;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}

@media(max-width:370px){
  .reader .toolbar,.reader .zoom-controls{gap:3px}
  .reader .toolbar .icon,#download{width:34px}
  .reader .toolbar .zoom-value{min-width:40px}
  #open-index{padding-inline:.4rem}
}
#site-loader{position:fixed;inset:0;z-index:30;display:grid;place-content:center;justify-items:center;gap:1.1rem;background:#f5f8fc;color:var(--deep);font-weight:700}
#site-loader img{width:clamp(160px,42vw,235px);height:auto}
.loader-indicator{width:30px;height:30px;border:3px solid #d5e4f5;border-top-color:#003da5;border-radius:50%;animation:ayudin-spin .85s linear infinite}
@keyframes ayudin-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loader-indicator{animation:none}}
.login-page{min-height:100dvh;display:grid;place-items:center;padding:1.25rem;background:linear-gradient(138deg,#edf5fc,#f6f3fb 56%,#eee6f5)}
.login-card{width:min(100%,460px);padding:clamp(1.4rem,5vw,2.5rem);border:1px solid #ded7ec;border-top:5px solid #493784;border-radius:1.15rem;background:white;box-shadow:0 16px 50px #2c21431a}
.login-brands{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:1.15rem;margin-bottom:1.35rem;border-bottom:1px solid #ded7ec}
.login-brands img{width:min(38%,115px);height:auto}
.login-card h1{font-size:clamp(1.65rem,5vw,2.3rem);color:#003da5}
.login-card p{color:#554c69}
.login-card form{display:grid;gap:.9rem;margin-top:1.2rem}
.login-card form button{margin-top:.35rem}
#login-status{margin-top:.8rem;color:#6c2e62}
#login-status:empty{display:none}

.guide .site-header .edition-badge{display:inline-flex;flex:none;align-items:center;gap:.5rem;color:#003da5;font-size:clamp(.82rem,3.2vw,1rem);font-weight:700;white-space:nowrap}
.guide .site-header .edition-badge span{color:inherit;font-size:inherit;font-weight:400;text-transform:uppercase}
.edition-badge strong{color:#84dcf0;font-size:1.3em;font-weight:700}
@media(max-width:750px) and (orientation:portrait){
  .reader-header{position:relative;grid-template-columns:minmax(0,1fr)}
  .reader-identity{grid-column:1;grid-row:1}
  .reader-logo{position:absolute;grid-column:auto;grid-row:auto;top:.6rem;right:max(1rem,env(safe-area-inset-right));width:76px;height:32px;object-fit:contain;object-position:right center}
  .reader-title .back{max-width:calc(100% - 86px)}
  .reader-title h1{margin-top:.35rem}
}
@media(max-width:370px) and (orientation:portrait){
  .reader-logo{right:max(.5rem,env(safe-area-inset-right))}
}
