/* ===== AglaSem Base: tokens, shell, components (shared across portals) ===== */
:root{
  --blue:#3355B4; --blue-700:#28448f; --navy:#1f2f66; --tint:#eef2fc; --purple:#4819B6;
  --amber-soft:#fff6d9; --amber-line:#f3dc8a; --amber-ink:#8a5a00;
  --green:#1c8a4d; --green-soft:#e6f4ec; --red:#c0392b; --red-soft:#fde8e6;
  --ink:#141a24; --strong:#0e131c; --muted:#4f5868; --faint:#8a93a6;
  --border:#e6eaf2; --line:#eef1f7; --surface:#f7f8fc; --card:#fff; --bg:#fff;
  --radius:14px; --shadow:0 1px 2px rgba(20,30,60,.04),0 6px 18px rgba(20,30,60,.05);
  --wrap:1200px; --font:"Roboto","Noto Sans Devanagari","Helvetica Neue",Arial,system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{color:var(--strong);text-wrap:balance;letter-spacing:-.01em;line-height:1.25}
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:20px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- top strip + header ---------- */
.ag-strip{background:var(--navy);color:#cfd8f3;font-size:12.5px}
.ag-strip .wrap{display:flex;gap:16px;height:30px;align-items:center;overflow-x:auto;white-space:nowrap}
.ag-strip a{color:#cfd8f3}.ag-strip a.on{color:#fff;font-weight:700}
.ag-header{background:var(--blue);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 10px rgba(20,30,60,.14)}
.ag-header .wrap{display:flex;align-items:center;gap:14px;height:62px}
.ag-brand{font-weight:800;font-size:20px;color:#fff!important;white-space:nowrap;text-decoration:none!important}
.ag-brand small{font-weight:400;font-size:11px;opacity:.8;margin-left:4px}
.ag-nav{display:flex;gap:2px;margin:0 0 0 12px;padding:0;list-style:none}
.ag-nav li{list-style:none;margin:0;padding:0;position:relative}
.ag-nav a{display:block;color:#e9eefc;font-size:14.5px;font-weight:500;padding:8px 10px;border-radius:8px;white-space:nowrap;text-decoration:none}
.ag-nav a:hover,.ag-nav .current-menu-item>a,.ag-nav .current-menu-ancestor>a{background:rgba(255,255,255,.14);color:#fff}
.ag-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:230px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 28px rgba(20,30,60,.14);padding:6px;margin:0;list-style:none;z-index:60}
.ag-nav li:hover>.sub-menu,.ag-nav li:focus-within>.sub-menu{display:block}
.ag-nav .sub-menu a{color:var(--ink);font-size:14px}
.ag-nav .sub-menu a:hover{background:var(--tint);color:var(--blue)}
.ag-search{margin-left:auto;display:flex}
.ag-search input{background:rgba(255,255,255,.14);border:0;border-radius:9px;padding:9px 12px;font:14px var(--font);color:#fff;width:220px}
.ag-search input::placeholder{color:#dfe6fb}
.ag-burger{display:none;margin-left:auto;background:rgba(255,255,255,.14);border:0;border-radius:9px;width:40px;height:40px;color:#fff;font-size:19px;cursor:pointer}
@media(max-width:980px){
  .ag-search{display:none}
  .ag-burger{display:block}
  .ag-nav{display:none;position:absolute;top:62px;left:0;right:0;background:var(--blue-700);flex-direction:column;margin:0;padding:8px 0;box-shadow:0 12px 24px rgba(0,0,0,.2)}
  .ag-nav.open{display:flex}
  .ag-nav a{padding:12px 22px;border-radius:0}
  .ag-nav .sub-menu{position:static;display:block;background:transparent;border:0;box-shadow:none;padding:0 0 0 14px}
  .ag-nav .sub-menu a{color:#dfe6fb}
}

/* ---------- hero ---------- */
.ag-hero{padding-block:4px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#f3f6fd 0%,#fff 100%)}
.ag-crumbs{font-size:13px;color:var(--muted);padding-top:16px;margin:0}
.ag-crumbs a{color:var(--muted)} .ag-crumbs a:hover{color:var(--blue)}
.ag-crumbs .sep{opacity:.5;margin:0 6px}
.ag-hero h1{font-size:clamp(23px,3.2vw,32px);line-height:1.22;margin:8px 0 0;font-weight:800}
.ag-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:13px;color:var(--muted)}
.ag-meta b{color:var(--ink);font-weight:500}
.ag-byline{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.ag-byline .av{width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:800;font-size:12px;flex:none}
.ag-byline b{color:var(--ink);font-weight:500}
.ag-byline .chk{color:var(--green);font-weight:500}

/* ---------- layout ---------- */
.ag-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;padding-block:22px 40px}
@media(max-width:980px){.ag-grid{grid-template-columns:minmax(0,1fr);gap:22px}}
.ag-main{min-width:0;display:flex;flex-direction:column;gap:22px}
.ag-side{min-width:0}
.ag-sticky{position:sticky;top:76px;display:flex;flex-direction:column;gap:16px}
@media(max-width:980px){.ag-toc{display:none}}

/* ---------- content typography (post body) ---------- */
.ag-content{min-width:0}
.ag-content > *:first-child{margin-top:0}
.ag-content p{margin:0 0 12px}
.ag-content h2{font-size:21px;font-weight:800;margin:26px 0 10px;scroll-margin-top:80px}
.ag-content h3{font-size:17px;font-weight:700;margin:20px 0 8px;scroll-margin-top:80px}
.ag-content h4{font-size:15.5px;font-weight:700;margin:16px 0 6px}
.ag-content ul,.ag-content ol{padding-left:1.3rem;margin:0 0 12px}
.ag-content li{margin:3px 0}
.ag-content a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.ag-content .wp-block-table,.ag-content figure.wp-block-table{margin:10px 0 14px;overflow-x:auto;border:1px solid var(--border);border-radius:12px}
.ag-content table{border-collapse:collapse;width:100%;font-size:14.5px}
.ag-content th,.ag-content td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.ag-content th,.ag-content thead td{background:var(--surface);font-weight:700;font-size:13px;color:var(--strong)}
.ag-content tr:last-child td{border-bottom:0}
.ag-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd){background:#fbfcfe}
.ag-content .wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 14px}
.ag-content .wp-block-button__link{display:inline-block;background:var(--blue);color:#fff!important;text-decoration:none!important;border-radius:10px;padding:10px 18px;font-weight:600;font-size:15px}
.ag-content .has-background{border-radius:12px;padding:12px 14px}
.ag-content hr,.ag-content .wp-block-separator{border:0;border-top:1px solid var(--line);margin:20px 0}

/* ---------- components ---------- */
.ag-intro{font-size:16.5px;color:var(--ink);margin:0}
.ag-latest{background:var(--amber-soft);border:1px solid var(--amber-line);border-radius:12px;padding:11px 14px;font-size:14.5px;line-height:1.6}
.ag-latest b{color:var(--amber-ink)}
.ag-kw h2{font-size:clamp(22px,2.6vw,26px);font-weight:800;margin:0}
.ag-kw p{margin:6px 0 0;font-size:15.5px;color:var(--muted)}
.ag-ico{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* quick links: list */
.ag-ql h2{font-size:17px;margin:0 0 10px;font-weight:800}
.ag-ql-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;margin:0;padding:0;list-style:none}
@media(max-width:620px){.ag-ql-list{grid-template-columns:minmax(0,1fr)}}
.ag-ql-list li{margin:0;border-bottom:1px solid var(--line);min-width:0}
.ag-ql-list li:nth-child(odd){border-right:1px solid var(--line)}
@media(max-width:620px){.ag-ql-list li:nth-child(odd){border-right:0}}
.ag-ql-list a{display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--strong);text-decoration:none!important}
.ag-ql-list a:hover{background:var(--surface)}
.ag-ql-list a::after{content:"›";color:var(--faint);font-size:20px;line-height:1;margin-left:auto}
.ag-ql-list svg{color:var(--blue)}
.ag-ql-list .t{flex:1;min-width:0}
.ag-ql-list b{display:block;font-size:14.5px;font-weight:500}
.ag-ql-list small{font-size:12.5px;color:var(--muted)}
.ag-ql-list li.on a{background:var(--tint)} .ag-ql-list li.on b{color:var(--blue);font-weight:700}

/* hero link box */
.ag-hb{border-radius:16px;padding:20px;background:linear-gradient(135deg,#3355B4 0%,#28448f 100%);color:#fff}
.ag-hb .st{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;background:rgba(255,255,255,.16);border-radius:999px;padding:4px 11px}
.ag-hb .st::before{content:"";width:8px;height:8px;border-radius:50%;background:#ffc107}
.ag-hb .st.out::before{background:#5fe39a} .ag-hb .st.closed::before{background:#cfd8f3}
.ag-hb h3{color:#fff;font-size:20px;margin:10px 0 4px} .ag-hb p{margin:0;opacity:.95;font-size:15px}
.ag-hb .btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ag-b1{background:#fff;color:var(--blue)!important;font-weight:700;border-radius:10px;padding:11px 18px;font-size:15px;text-decoration:none!important}
.ag-b1.off{background:rgba(255,255,255,.25);color:#e6ebfa!important;pointer-events:none}
.ag-b2{background:rgba(255,255,255,.14);color:#fff!important;font-weight:500;border-radius:10px;padding:11px 16px;font-size:14.5px;border:1px solid rgba(255,255,255,.3);text-decoration:none!important}
.ag-hb dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:16px 0 0;background:rgba(255,255,255,.18);border-radius:12px;overflow:hidden}
@media(max-width:620px){.ag-hb dl{grid-template-columns:minmax(0,1fr)}}
.ag-hb dl div{background:rgba(20,32,80,.35);padding:10px 12px}
.ag-hb dt{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;opacity:.8}
.ag-hb dd{margin:2px 0 0;font-weight:700;font-size:15px}

/* documents / paper rows */
.ag-docs{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin:0;padding:0;list-style:none}
.ag-docs li{margin:0;border-bottom:1px solid var(--line)} .ag-docs li:last-child{border-bottom:0}
.ag-docs a{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff;color:var(--strong);text-decoration:none!important}
.ag-docs a:hover{background:var(--surface)}
.ag-docs .fi{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;font-size:9px;font-weight:800;background:var(--red-soft);color:var(--red);flex:none}
.ag-docs .fi.lnk{background:var(--tint);color:var(--blue)}
.ag-docs .t{flex:1;min-width:0;font-size:14.5px} .ag-docs .t small{color:var(--muted);font-size:12.5px;margin-left:6px}
.ag-docs .v{font-size:13.5px;font-weight:700;color:var(--blue);white-space:nowrap}

/* years */
.ag-yrs-l{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:6px}
.ag-yrs{display:flex;flex-wrap:wrap;gap:6px}
.ag-yrs a{border:1px solid var(--border);border-radius:8px;padding:5px 11px;font-size:13.5px;font-weight:500;background:#fff;color:var(--ink);text-decoration:none!important}
.ag-yrs a:hover{border-color:#c4d0ef}
.ag-yrs a.on{background:var(--blue);border-color:var(--blue);color:#fff}

/* official site card */
.ag-ow{display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;background:#fff;flex-wrap:wrap}
.ag-ow .gl{width:40px;height:40px;border-radius:10px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;flex:none}
.ag-ow .tx{flex:1;min-width:180px}
.ag-ow b{display:block;font-size:15px;color:var(--strong)} .ag-ow small{font-size:13px;color:var(--muted)}
.ag-ow .v{font-size:14px;font-weight:700;color:var(--blue);border:1.5px solid #c9d4f0;border-radius:9px;padding:8px 14px;white-space:nowrap;text-decoration:none!important}
.ag-src{font-size:13px;color:var(--muted);margin:-8px 2px 0}

/* back buttons */
.ag-blabel{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:8px}
.ag-bbs{display:flex;flex-wrap:wrap;gap:10px}
.ag-bb{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 16px 0 6px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--strong)!important;font-weight:600;font-size:14.5px;line-height:1;white-space:nowrap;text-decoration:none!important;transition:border-color .15s,background .15s}
.ag-bb:hover{border-color:#c4d0ef;background:var(--tint)}
.ag-bb .ar{width:32px;height:32px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:15px;flex:none}

/* promo */
.ag-promo{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border-radius:var(--radius);padding:16px 18px;background:linear-gradient(120deg,#eef2fc 0%,#f4efff 100%);border:1px solid #dcd3f6}
.ag-promo b{display:block;font-size:16px;color:var(--strong)} .ag-promo p{margin:3px 0 0;font-size:14px;color:#3a4357}
.ag-promo .go{background:var(--purple);color:#fff!important;font-weight:600;border-radius:10px;padding:10px 16px;font-size:14px;white-space:nowrap;text-decoration:none!important}
@media(max-width:520px){.ag-promo{grid-template-columns:minmax(0,1fr)}.ag-promo .go{justify-self:start}}

/* related + sidebar cards */
.ag-related h2{font-size:17px;margin:0 0 10px}
.ag-rel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
@media(max-width:620px){.ag-rel{grid-template-columns:minmax(0,1fr)}}
.ag-rel a{display:block;border:1px solid var(--border);border-radius:12px;padding:10px 12px;font-size:14px;font-weight:500;color:var(--strong);text-decoration:none!important}
.ag-rel a:hover{border-color:#c4d0ef;background:var(--surface)}
.ag-rel small{display:block;color:var(--muted);font-weight:400;font-size:12.5px}
.ag-sc{border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;background:#fff;box-shadow:var(--shadow)}
.ag-sc h3{font-size:13px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:0 0 10px}
.ag-sc ol,.ag-sc ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.ag-sc li a{display:block;padding:5px 8px;border-radius:6px;color:var(--ink)}
.ag-sc li a:hover{background:var(--tint);text-decoration:none}

/* FAQ (Yoast block) */
.ag-content .schema-faq{border:1px solid var(--border);border-radius:12px;overflow:hidden;margin:10px 0}
.ag-content .schema-faq-section{border-bottom:1px solid var(--line);padding:12px 16px}
.ag-content .schema-faq-section:last-child{border-bottom:0}
.ag-content .schema-faq-question{display:block;font-weight:600;color:var(--strong);margin-bottom:4px}
.ag-content .schema-faq-answer{margin:0;font-size:14.5px;color:#2b3346}

/* footer */
.ag-footer{background:var(--navy);color:#cfd8f3;font-size:13.5px;margin-top:20px}
.ag-footer .wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding-block:28px}
@media(max-width:760px){.ag-footer .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ag-footer b{color:#fff;display:block;margin-bottom:8px}
.ag-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.ag-footer a{color:#cfd8f3}
.ag-footer .copy{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.12);padding-top:14px;font-size:12.5px;opacity:.8}

.ag-content{color:var(--ink)}
.ag-content h2,.ag-content h3,.ag-content h4{color:var(--strong)!important}
.ag-content p,.ag-content li,.ag-content td{color:var(--ink)}

/* ---- fixes: neutralise WordPress core table/list defaults inside content ---- */
.ag-content .wp-block-table table,.ag-content table{border:0}
.ag-content .wp-block-table thead,.ag-content thead{border-bottom:0!important}
.ag-content .wp-block-table td,.ag-content .wp-block-table th,.ag-content td,.ag-content th{border:0;border-bottom:1px solid var(--line)}
.ag-content .wp-block-table th,.ag-content thead th{border-bottom:1px solid var(--border)}
.ag-content .wp-block-table{border:1px solid var(--border)!important;border-radius:12px;overflow:hidden}
.ag-content .wp-block-table figcaption{display:none}
.ag-content .ag-ql-list,.ag-content .ag-docs,.ag-content .ag-rel,.ag-content .ag-yrs{padding-left:0!important;margin-left:0;list-style:none}
.ag-content .ag-ql-list li,.ag-content .ag-docs li{margin:0}
/* blue boxes: always light text on blue */
.ag-hb,.ag-hb h3,.ag-hb p,.ag-hb dt,.ag-hb dd,.ag-content .ag-hb h3,.ag-content .ag-hb p{color:#fff!important}
.ag-hb p{opacity:.95}
.ag-b1.off{background:transparent!important;color:#fff!important;border:1.5px dashed rgba(255,255,255,.65);opacity:1}
.ag-b2{color:#fff!important}
.ag-lp,.ag-lp b,.ag-lp p,.ag-lp small{color:#fff!important}
