


/* Layout spacing guarantees */
#view{overflow-x:hidden;}
.section{padding:18px 0;}
.section + .section{margin-top:12px;}
.section-head{gap:12px;}
.card-pad{padding:16px;}
@media (min-width: 980px){
  .section{padding:22px 0;}
  .card-pad{padding:18px;}
}
/* KARETA / College Info Site — single global CSS (mobile-first) */
:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  /* Light theme (default) */
  --bg:#f6f8fb;
  --panel:#ffffff;
  --panel2:#fbfcfe;
  --text:#0b0f14;
  --muted:#55657a;
  --line:rgba(12,18,28,.10);
  --brand:#ff7a18;
  --brand2: #f08718;
  --brandBlue:#2a63ff;
  --brandBlue2:#6aa6ff;
  --brandInk:#101828;
  --ok:#1e9b62;
  --warn:#c97a00;
  --bad:#d93232;
  --shadow:0 18px 55px rgba(12,18,28,.12);
  --shadow2:0 10px 28px rgba(12,18,28,.10);
  --r1:14px;
  --r2:18px;
  --r3:24px;
  --max:1180px;
  --focus:0 0 0 3px rgba(255,122,24,.22);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  width:100%;
  overflow-x:hidden; /* prevent global horizontal scroll */
}



body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  -webkit-user-select:none;
  user-select:none; /* disable text selection globally (UX choice) */
}

/* Allow selection/interaction where it must remain editable */
input, textarea, [contenteditable="true"], .allow-select{
  -webkit-user-select:text;
  user-select:text;
}

/* Media should never overflow the viewport */
img, svg, video, canvas, iframe{max-width:100%;}

/* Background video stack (mobile-first, performance-safe)
   - Video is optional; if it fails, layers still provide a clean light backdrop.
*/
.bg-video-stack{
  position:fixed; inset:0;
  z-index:-1;
  overflow:hidden;
  background: #ffffff;
}
/* YouTube host (iframe is mounted by JS) */
.bg-yt{position:absolute; inset:0; pointer-events:none}
.bg-yt-iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
  pointer-events:none;
  /* make the 16:9 frame cover the viewport */
  transform:scale(1.2);
  filter:saturate(1.05) contrast(1.02);
}
.container.topbar-layout{
	padding-top: 15px;
	padding-bottom: 15px;
}
.bg-layer{position:absolute; inset:-2px; pointer-events:none}
/* Base gradients (match your light style) */
.bg-layer-1{
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(246,248,251,.75));
}
/* Soft white glass layer */
.bg-layer-2{background:rgba(255,255,255,.34); backdrop-filter: blur(6px)}
/* Fine grain via subtle gradient bands */
.bg-layer-3{background:linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08))}
/* Vignette for readability */
.bg-layer-4{background:radial-gradient(1200px 680px at 50% 35%, transparent 30%, rgba(255,255,255,.55) 75%)}
/* Extra readable band under topbar */
.bg-layer-5{background:linear-gradient(180deg, rgba(255,255,255,.85), transparent 28%)}

@media (prefers-reduced-motion: reduce){
  .bg-yt{display:none}
}

a{color:inherit; text-decoration:none}
button, input, select, textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:16px}

.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(12px);
  background:rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  justify-content:flex-start;
}

.topbar-row{width:100%}

.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap: nowrap;
  align-content: center;
  flex: 1 1 auto;
}

.topbar-actions{display:flex; align-items:center; gap:10px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:auto;
  padding:0;
  width:auto;
  flex-direction:row;
  justify-content:flex-start;
  flex:0 1 auto;
}
.brand-mark{
  width:34px;
  height:34px;
  border-radius:12px;
  box-shadow: none;
  display:grid;
  background: none;
  place-items:center;
}
.brand-mark svg{width:20px; height:20px; fill:#1a0f06}
.brand-title{
  display:flex; flex-direction:column; min-width:0;
}
.brand-title strong{font-size:14px; line-height:1.1; letter-spacing:.2px}
.brand-title span{font-size: 14px;color:var(--muted)}
@media (min-width:900px){
  .brand-mark{width: 70px;height: 70px;}
  .brand-title strong{font-size: 18px;}
}

.nav{
  display:flex;
  gap:6px;
  align-items:center;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  /* padding:8px 0; */
}

/* Second row (desktop only) */
.topbar-row--nav{display:none}

.nav-actions--desktop{display:none}
.nav-actions--desktop .nav-actions__text{display:inline}
.nav-actions--desktop .db-btn{white-space:nowrap}

@media (min-width:980px){
  .topbar-row--nav{display:flex; justify-content:center; align-items:center}
  .brand{justify-content:flex-start; flex:0 1 auto}
  .nav{overflow:visible}
  .nav-burger{display:none}

  .nav-tree{flex:1 1 auto; min-width:0}
  .nav-actions--desktop{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:12px;width:auto;justify-content:flex-end;}
}
.nav::-webkit-scrollbar{height:8px}
.nav::-webkit-scrollbar-thumb{background:rgba(12,18,28,.10); border-radius:99px}
.nav a{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--muted);
  background:transparent;
  white-space:nowrap;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav a:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav a.is-active{
  background:rgba(255,122,24,.12);
  border-color:rgba(255,122,24,.35);
  color:var(--text);
}
.nav a:focus{outline:none; box-shadow:var(--focus)}

/* Desktop hierarchical menu (built from assets/data/menu.v1.0.json)
   - shown on desktop, fallback pills hidden when ready */
.nav-tree{display:none; align-items:center; gap:10px; flex-wrap:wrap; min-width:0}
.nav-tree.is-ready{display:flex}
.nav-fallback.is-hide{display:none}

.nav-tree .dt-item{position:relative}
.nav-tree .dt-link,
.nav-tree .dt-group{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  white-space:nowrap;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-tree .dt-link:hover,
.nav-tree .dt-group:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav-tree .dt-link.is-active{background:rgba(255,122,24,.12); border-color:rgba(255,122,24,.35); color:var(--text)}
.nav-tree .dt-link:focus,
.nav-tree .dt-group:focus{outline:none; box-shadow:var(--focus)}

.nav-tree .dt-popup{
  position:absolute;
  z-index: 99999999;
  top:calc(100% + 8px);
  left:0;
  min-width:280px;
  max-width:380px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow2);
  padding:8px;
  display:none;
}
.nav-tree .dt-item.is-open > .dt-popup{display:block}
.nav-tree .dt-popup a{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  text-decoration:none;
}
.nav-tree .dt-popup a:hover{background:rgba(12,18,28,.05)}
.nav-tree .dt-popup .dt-sub{font-size:12px; color:var(--muted)}

.nav-burger{margin-left:auto}
.nav-burger{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  color:var(--text);
}
.nav-burger:hover{background:rgba(255,255,255,.72);}
.nav-burger:focus{outline:none; box-shadow:var(--focus)}
.nav-burger .burger-ic{display:block}
.nav-burger{
	display: none;
}
@media (max-width: 980px){
  .nav-tree{display:none !important}
  .nav-fallback, .nav-burger{
	  display: flex;
	  position: absolute;
	  right: 10px;
	  top: 16px;
	  box-shadow: none;
	  border: none;
	  background: none;
	 }
}
@media (min-width: 981px){
  .nav-fallback{display:flex}
}

.actions{display:flex; gap:8px; align-items:center}
.btn{
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{background:rgba(12,18,28,.06); transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{
  border-color:rgba(255,122,24,.35);
  background:linear-gradient(135deg, rgba(255,122,24,.18), rgba(255,178,74,.10));
}
.btn-ghost{background:transparent}
.btn-sm{padding:8px 10px; border-radius:10px; font-size:13px}
.kbd{
  font-size:12px; padding:2px 7px; border-radius:8px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--muted);
}

.hero{
  padding:20px 0 6px;
}
.hero-grid{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .hero-grid{grid-template-columns: 1.3fr .7fr; gap:16px}
  .hero{padding:26px 0 8px}
}
.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
  border-radius:var(--r3);
  box-shadow: var(--shadow2);
}
.card-pad{padding:16px}
@media (min-width:900px){ .card-pad{padding:18px} }

.h1{
  font-size:22px; margin:0 0 8px; letter-spacing:.2px;
}
@media (min-width:900px){ .h1{font-size:28px} }
.p{
  margin:0; color:var(--muted); line-height:1.45;
}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(12,18,28,.04);
  color:var(--muted);
  font-size:13px;
}
.badge b{color:var(--text); font-weight:600}

.grid{
  display:grid; gap:12px;
}
@media (min-width:900px){ .grid{gap:16px} }
.grid-3{grid-template-columns:1fr}
@media (min-width:900px){ .grid-3{grid-template-columns:repeat(3,1fr)} }

.section{padding:14px 0}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin:0 0 12px;
}
.h2{margin:0; font-size:18px}
.sub{color:var(--muted); font-size:13px}
@media (min-width:900px){
  .h2{font-size:20px}
}

.tile{
  padding:14px;
  border-radius:var(--r2);
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  min-height:120px;
}
.tile h3{margin:0 0 8px; font-size:15px}
.tile p{margin:0; color:var(--muted); font-size:13px; line-height:1.4}
.tile .meta{margin-top:12px; display:flex; gap:8px; flex-wrap:wrap}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--muted);
  font-size:12px;
}

.hr{height:1px; background:var(--line); margin:14px 0}

.view{
  min-height:55vh;
}

/* =========================================================
   Block pages (JSON renderer)
   ========================================================= */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}
@media (max-width:980px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tiles{grid-template-columns:1fr}}

.doclist{display:grid;gap:10px;margin-top:10px}
.doc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 12px;border:1px solid var(--line);border-radius:var(--r2);
  background:rgba(255,255,255,.9)}
.doc-row__t{font-weight:700;color:var(--text)}
.doc-row__m{font-size:12px;color:var(--muted);margin-top:4px}

.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
@media (max-width:980px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.g-item{border:1px solid var(--line);border-radius:var(--r2);overflow:hidden;background:rgba(255,255,255,.9);padding:0;cursor:pointer}
.g-item img{display:block;width:100%;height:auto}

.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
@media (max-width:980px){.news-grid{grid-template-columns:1fr}}

.toast{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:70;
  display:none;
}
.toast-inner{
  max-width:var(--max);
  margin:0 auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius:16px;
  padding:12px 12px;
  box-shadow: var(--shadow);
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
}
.toast p{margin:0; color:var(--text); font-size:13px; line-height:1.35}
.toast .muted{color:var(--muted)}
.toast .btn{white-space:nowrap}

.modal-backdrop{
  position:fixed; inset:0; z-index:80;
  display:none;
  background:rgba(12,18,28,.45);
  backdrop-filter: blur(2px);
  padding:16px;
}
.modal{
  max-width:920px;
  margin:40px auto;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.modal-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.modal-title strong{font-size:15px}
.modal-title span{font-size:12px; color:var(--muted)}
.modal-body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.modal-body::-webkit-scrollbar{width:10px}
.modal-body::-webkit-scrollbar-thumb{background:rgba(12,18,28,.12); border-radius:99px}
.modal-foot{
  display:flex; gap:10px; justify-content:flex-end;
  padding:12px 14px;
  border-top:1px solid var(--line);
  background:rgba(12,18,28,.04);
}


/* Fullscreen modal mode */
.modal-backdrop.is-fullscreen{align-items:stretch;}
.modal-backdrop.is-fullscreen .modal{
  max-width:none;
  width:100%;
  height:100vh;
  margin:0;
  border-radius:0;
  border-left:0;
  border-right:0;
}
.modal-backdrop.is-fullscreen .modal-head{
  position:sticky;
  top:0;
  z-index:3;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  backdrop-filter: blur(10px);
}
.modal-backdrop.is-fullscreen .modal-body{
  height:calc(100vh - 64px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Make internal sheet truly hidden unless open (avoids "two windows") */
.cm-sheet{display:none;}
.cm-sheet.is-open{display:block;}

/* Card media stability */
.card-media{aspect-ratio: 16 / 9; overflow:hidden;}
.card-media img{width:100%; height:100%; object-fit:cover; display:block;}

/* Icon stability */
.mb-tab i, .card i, .kicker i{
  width:1.25em;
  text-align:center;
  display:inline-block;
  line-height:1;
}
.mb-tabbar .mb-tab i{font-size:18px;}
@media (min-width: 720px){
  .mb-tabbar .mb-tab i{font-size:20px;}
}

/* Home news cards */
.news-card .h3{margin-top:6px;}
.filters{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
  min-width:180px;
}
.search{
  flex:1 1 220px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
}
.small{font-size:12px; color:var(--muted)}

.news-layout{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .news-layout{grid-template-columns:1.15fr .85fr; gap:16px}
}

.swiper{
  position:relative;
}
.swiper-viewport{
  overflow:hidden;
  border-radius:var(--r3);
}
.swiper-track{
  display:flex;
  transition: transform .35s ease;
  will-change: transform;
}
.swiper-slide{
  min-width:100%;
  padding:0;
}
@media (min-width:900px){
  .swiper-slide{min-width: 50%}
}
.news-card{
  height:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:var(--r3);
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow: var(--shadow2);
}
.news-card .cover{
  height:140px;
  background:
    radial-gradient(500px 200px at 20% 0%, rgba(255,122,24,.28), transparent 55%),
    radial-gradient(500px 200px at 90% 20%, rgba(72,162,255,.16), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.95));
  border-bottom:1px solid var(--line);
}
.news-card .body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.news-card h3{margin:0 0 8px; font-size:15px; line-height:1.2}
.news-card p{margin:0; color:var(--muted); font-size:13px; line-height:1.35}
.news-card .row{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between}
.news-card .row .meta{display:flex; gap:8px; flex-wrap:wrap}

.swiper-controls{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:10px;
}
.dots{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.dot{
  width:10px; height:10px; border-radius:99px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.06);
}
.dot.is-active{background:rgba(255,122,24,.55); border-color:rgba(255,122,24,.5)}
.icon{
  width:16px; height:16px; display:inline-block;
  fill:currentColor;
}

.featured-list{
  display:grid; gap:10px;
}
.featured-item{
  display:flex; gap:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:18px;
  padding:12px;
  align-items:flex-start;
}
.featured-thumb{
  width:52px; height:52px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,122,24,.25), rgba(72,162,255,.12));
  border:1px solid var(--line);
  flex:0 0 auto;
  display:grid; place-items:center;
}
.featured-item h4{margin:0 0 6px; font-size:14px; line-height:1.2}
.featured-item p{margin:0; color:var(--muted); font-size:12.5px; line-height:1.35}
.featured-item .mini{
  margin-top:8px;
  color:rgba(233,238,246,.86);
  font-size:12px;
}
.footer{
  padding:20px 0 26px;
  color:var(--muted);
  font-size:12.5px;
}
.footer .row{display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.hidden{display:none !important}


/* Loading overlay */
.loader-backdrop{
  position:fixed; inset:0; z-index:60;
  display:none;
  background:rgba(12,18,28,.20);
  backdrop-filter: blur(4px);
}
.loader{
  max-width:420px;
  margin:18vh auto 0;
  border:1px solid var(--line);
  background:rgba(255,255,255,.94);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:14px 14px;
}
.loader-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.spinner{
  width:34px; height:34px;
  border-radius:999px;
  border:3px solid rgba(12,18,28,.12);
  border-top-color: rgba(255,122,24,.75);
  animation: spin .9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.skeleton{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(12,18,28,.05), rgba(12,18,28,.10), rgba(12,18,28,.05));
  background-size:200% 100%;
  animation: sk 1.3s ease infinite;
  margin-top:10px;
}
@keyframes sk{ 0%{background-position:0 0} 100%{background-position:-200% 0} }



/* Light-theme final overrides */
.card, .modal, .toast-inner, .loader{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98)) !important;
}
.tile, .news-card, .featured-item{
  background: rgba(255,255,255,.92) !important;
}
.chip, .badge, .kbd{
  background: rgba(12,18,28,.04) !important;
}
.select, .search{
  background: rgba(255,255,255,.92) !important;
}
.topbar{
  box-shadow: 0 10px 30px rgba(12,18,28,.08);
}

/* ==============================
   UX / Responsive refinements 1.3.0
   ============================== */

:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  --container-pad: clamp(14px, 3vw, 24px);
  --fs-base: clamp(14px, 1.35vw, 16px);
  --fs-h1: clamp(22px, 3.6vw, 34px);
  --fs-h2: clamp(18px, 2.4vw, 22px);
  --fs-h3: clamp(16px, 2.0vw, 18px);
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.06);
}

html{ scroll-behavior: smooth; }
body{ font-size: var(--fs-base); line-height: 1.55; }

.container{padding: var(--container-pad);padding-top: 15px;}

.hero h1{ font-size: var(--fs-h1); letter-spacing: -0.02em; }
.section-title{ font-size: var(--fs-h2); }
.card h3{ font-size: var(--fs-h3); }

/* Tablet-first grids */
.grid-3{ grid-template-columns: 1fr; }
@media (min-width: 700px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Readability & touch targets */
.nav{gap: 8px;overflow-x: auto;-webkit-overflow-scrolling: touch;scrollbar-width: none;overflow: visible;}
.nav::-webkit-scrollbar{ display:none; }
.nav a{ padding: 10px 12px; min-height: 40px; display:inline-flex; align-items:center; border-radius: 999px; }

.topbar{ backdrop-filter: saturate(180%) blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.04); }

.card{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.card:hover{ transform: translateY(-1px); }

/* Modal: comfortable reading + scroll */
.modal-panel{ border-radius: 20px; }
.modal-body{
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 14px;
}
@media (max-width: 520px){
  .modal-panel{
    width: calc(100vw - 18px);
    border-radius: 18px;
  }
  .modal-body{ max-height: calc(100vh - 190px); }
}

/* Focus visibility (accessibility) */
:focus{ outline: none; }
:focus-visible{ outline: 3px solid rgba(242, 119, 0, .35); outline-offset: 2px; }

/* Back to top FAB */
.fab-top{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  color: #111;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.fab-top.is-show{ display: inline-flex; }
.fab-top:hover{ transform: translateY(-1px); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ===== Mobile navigation upgrade: bottom tab bar + cleaner header ===== */
.mb-tabbar{display:none}
@media (max-width: 860px){
  /* Hide long top nav links on mobile; keep burger + logo */
  .site-header .nav{display:none}
  body{padding-bottom:72px}
  .mb-tabbar{
    display:flex;
    position:fixed; left:0; right:0; bottom:0;
    z-index:1200;
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
    backdrop-filter:saturate(180%) blur(14px);
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    gap:6px;
  }
  .mb-tab{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 8px;
    border-radius:14px;
    color:var(--muted);
    text-decoration:none;
    border:1px solid transparent;
    background:transparent;
    font-weight:700;
    font-size:11px;
    line-height:1;
    user-select:none;
  }
  .mb-tab i{font-size:16px}
  .mb-tab:active{transform:scale(.98)}
  .mb-tab.is-active{
    color:var(--ink);
    background:linear-gradient(180deg, rgba(255,122,31,.12), rgba(255,122,31,.06));
    border-color:rgba(255,122,31,.22);
  }
  .mb-tab-menu{cursor:pointer}
  .mb-tab-menu{appearance:none; border:none}
}

/* Tablet: keep header nav, but reduce density */
@media (min-width: 861px) and (max-width: 1120px){
  .nav-links{gap:10px}
  .nav-links a{padding:8px 10px}
}

/* ===== Mobile drawer (hamburger) ===== */
.mm-overlay{
  position:fixed; inset:0;
  background:rgba(17,24,39,.35);
  opacity:0; pointer-events:none;
  transition:opacity .18s ease;
  z-index:1300;
}
.mm-overlay.is-open{opacity:1; pointer-events:auto;}
.mm-drawer{
  position:fixed; top:0; left:0; height:100%;
  width:min(86vw, 360px);
  background:#fff;
  border-right:1px solid var(--line);
  transform:translateX(-105%);
  transition:transform .22s ease;
  z-index:1400;
  display:flex;
  flex-direction:column;
}
.mm-drawer.is-open{transform:translateX(0);}
.mm-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.mm-drawer-title{font-weight:900; letter-spacing:.2px}
.mm-drawer-close{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.mm-drawer-body{padding:10px 8px; overflow:auto}
.mm-list{list-style:none; padding:0; margin:0}
.mm-list li{margin:4px 0}
.mm-list a{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid transparent;
}
.mm-list a:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-list a.is-active{background:rgba(255,122,31,.12); border-color:rgba(255,122,31,.22)}
/* prevent background scroll when drawer open */
body.mm-open{overflow:hidden}

/* Drawer class mapping (project markup) */
.mm-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  backdrop-filter: blur(12px);
}

.mm-head-brand{display:flex; align-items:center; gap:12px; min-width:0}
.mm-logo{
  width:38px; height:38px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(255,122,24,.95), rgba(255,178,74,.95));
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:grid; place-items:center;
  flex:0 0 auto;
}
.mm-logo img{width:100%; height:100%; object-fit:cover}

.mm-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.mm-title .mm-brand{font-weight:900; letter-spacing:.2px; line-height:1.1}
.mm-title .mm-sub{font-size:12px; color:var(--muted); line-height:1.2}

.mm-close{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.86);
  display:grid; place-items:center;
}
.mm-close i{font-size:16px}
.mm-body{padding:10px 8px; overflow:auto}

/* Mobile menu search (mm-search) */
.mm-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(12,18,28,.12);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(12,18,28,.08);
  margin:8px 6px 10px;
}
.mm-search > span{
  width:30px; height:30px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,122,24,.10);
  color:rgba(12,18,28,.72);
  flex:0 0 auto;
}
.mm-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font:inherit;
  font-size:14px;
  letter-spacing:.2px;
  color:var(--text);
}
.mm-search input::placeholder{color:rgba(85,101,122,.85)}
.mm-search:focus-within{
  border-color: rgba(255,122,24,.35);
  box-shadow: var(--focus), 0 10px 28px rgba(12,18,28,.10);
}

/* ===== Drawer hierarchy (menu.v1.0.json) ===== */
.mm-item.is-hide{display:none}
.mm-row{display:flex; align-items:center; gap:8px}
.mm-group-btn{
  flex:1;
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background:transparent;
  color:var(--ink);
  text-align:left;
}
.mm-group-btn:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-group-go{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-size:12px;
  white-space:nowrap;
}
.mm-dot{width:8px; height:8px; border-radius:999px; background:rgba(255,122,31,.9)}
.mm-caret{margin-left:auto; transition:transform .18s ease; opacity:.7}
.mm-item.is-open .mm-caret{transform:rotate(180deg)}
.mm-sublist{list-style:none; padding:6px 0 6px 14px; margin:2px 0 6px 12px; border-left:1px dashed rgba(0,0,0,.14)}
.mm-item:not(.is-open) > .mm-sublist{display:none}
.mm-sublist a{padding:10px 12px; border-radius:12px}
.mm-external{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(0,0,0,.55);
  border:1px dashed rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
}
.mm-external:hover{background:rgba(255,255,255,.75)}

/* Drawer CTA for big sections (anti-corruption) */
.mm-item.mm-cta{margin:6px 0 10px}
.mm-cta-link{
  display:flex; align-items:center; gap:10px;
  padding:14px 12px;
  border-radius:16px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid rgba(255,122,24,.22);
  background: linear-gradient(180deg, rgba(255,122,24,.12), rgba(255,255,255,.92));
  box-shadow: 0 14px 30px rgba(12,18,28,.12);
}
.mm-cta-link i{font-size:16px; width:18px; text-align:center; flex:0 0 18px}
.mm-cta-link span{font-weight:800; letter-spacing:.2px}
.mm-cta-badge{
  margin-left:auto;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(12,18,28,.12);
  background: rgba(255,255,255,.85);
  color:rgba(12,18,28,.72);
  font-weight:700;
}
.mm-cta-link:hover{transform:translateY(-1px)}



/* Desktop hover dropdown for hierarchical menu */
@media (min-width: 980px){
  .nav-tree .dt-item:hover > .dt-popup{display:block;}
  .nav-tree .dt-item:focus-within > .dt-popup{display:block;}
}


/* ==== Specialties page (added v1.6.3) ==== */
.spc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}

/* ==== Anti-corruption hub page ==== */
.ac-hero{background:rgba(255,255,255,.92)}
.ac-hero-grid{display:grid; grid-template-columns: 1.4fr .6fr; gap:16px; align-items:stretch}
.ac-stats{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
.ac-stat{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,122,24,.07);
  padding:12px;
  text-align:center;
}
.ac-stat-num{font-size:22px; font-weight:900; letter-spacing:.2px}
.ac-grid{margin-top:14px; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
@media (max-width: 980px){ .ac-hero-grid{grid-template-columns:1fr} .ac-grid{grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .ac-grid{grid-template-columns: 1fr; } }
.ac-card{
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow1);
  overflow:hidden;
}
.ac-card-head{display:flex; align-items:center; gap:10px; padding:14px 14px 10px}
.ac-ic{width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:rgba(255,122,24,.12); color:rgba(12,18,28,.75)}
.ac-card-head h4{margin:0; font-size:15px}
.ac-card-body{padding:0 14px 14px}
.ac-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.ac-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.92);
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
}
.ac-btn:hover{background:rgba(255,122,24,.08); border-color:rgba(255,122,24,.26)}
.ac-btn i{width:16px; text-align:center}
.ac-subgrid{display:grid; grid-template-columns: 1fr; gap:10px; margin-top:10px}
@media (max-width: 980px){
  .spc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .spc-grid{ grid-template-columns: 1fr; }
}
.spc-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow1);
  transition: box-shadow .15s ease, transform .15s ease;
}
.spc-card:hover{ box-shadow: var(--shadow2); transform: translateY(-1px); }
.spc-img{ aspect-ratio: 16/10; background: rgba(12,18,28,.03); }
.spc-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.spc-title{
  padding:12px 12px 14px;
  font-size:14px;
  line-height:1.25;
  text-align:center;
  color: var(--text);
}



/* Catalog cards (specialties/courses) */
.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{font-size:12px;line-height:1;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06)}
.cat-card{position:relative;display:flex;flex-direction:column;gap:10px;border-radius:18px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.86);box-shadow:0 10px 30px rgba(0,0,0,.06);overflow:hidden;cursor:pointer;transform:translateZ(0);transition:transform .18s ease, box-shadow .18s ease}
.cat-card:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(0,0,0,.10)}
.cat-cover{height:140px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.85))}
.cat-cover img{width:100%;height:100%;object-fit:cover;display:block}
.cat-body{padding:14px 14px 16px}
.cat-title{font-size:15px;font-weight:800;line-height:1.2;margin:0}
.cat-sub{margin-top:6px;color:rgba(245,247,252,.78);font-size:12.5px}
.cat-meta{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;color:rgba(245,247,252,.78);font-size:12px}
.cat-pill{padding:6px 10px;border-radius:999px;background:rgba(255,126,0,.10);border:1px solid rgba(255,126,0,.20)}

/* Card modal blocks */
.modal-block{padding:14px;border-radius:16px;background:rgba(255,255,255,.85);border:1px solid rgba(0,0,0,.06);margin-bottom:12px}
.modal-block h4{margin:0 0 8px;font-size:14px}
.modal-block p{margin:0;color:rgba(245,247,252,.82);line-height:1.55}
.modal-block ul{margin:0;padding-left:18px;color:rgba(245,247,252,.82)}
.gallery-snap{display:flex;gap:10px;overflow:auto;padding-bottom:6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.gallery-snap::-webkit-scrollbar{height:8px}
.gallery-snap::-webkit-scrollbar-thumb{background: var(--overlay-bg);border-radius:999px}
.gallery-snap a{flex:0 0 auto;width:240px;height:150px;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.06);scroll-snap-align:start}
.gallery-snap img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width: 520px){
  .gallery-snap a{width:78vw;height:44vw}
  .cat-cover{height:120px}
}

/* Ensure desktop dropdown doesn't shift layout */
.dt-item{position:relative}
.dt-link{display:flex;align-items:center;gap:8px}
.dt-link-cta{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,122,24,.28) !important;
  background: rgba(255,122,24,.10);
  font-weight:800;
}
.dt-link-cta:hover{background: rgba(255,122,24,.14)}
.dt-item.is-open .dt-link{transform:none}


/* v1.7.1 visual polish: brand palette + cards + full-screen modal */
body{
  background:
    radial-gradient(1100px 680px at 14% -12%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(980px 620px at 92% 0%, rgba(42,99,255,.16), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 60%);
}

.card.card-click{
  position: relative;
  overflow: hidden;
}
.card.card-click::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255,122,24,.25), transparent 60%),
    radial-gradient(420px 240px at 88% 16%, rgba(42,99,255,.20), transparent 60%);
  opacity:.55;
  pointer-events:none;
  filter: blur(0.2px);
}
.card.card-click::after{
  content:"";
  position:absolute; inset:0;
  border:1px solid rgba(255,255,255,.32);
  border-radius: inherit;
  pointer-events:none;
  mix-blend-mode: overlay;
  opacity:.65;
}

.card-compact .card-body{position:relative;z-index:1;padding: 0 10px 15px 10px;}
.card-compact .card-media{ position:relative; z-index:1; }
.card-compact .card-title{font-weight: 900;letter-spacing:.1px;overflow: hidden;line-height: 18px;text-overflow: clip;padding-bottom: 10px;}
.card-compact .card-sub{color: var(--muted);line-height: 16px;font-size: 14px;text-align: justify;}

.card-meta{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.meta-chip{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  color: var(--brandInk);
}
.meta-chip i{ color: var(--brand); }
.meta-chip.is-blue i{ color: var(--brandBlue); }

.tag-chip{
  border: 1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(6px);
}
.tag-chip i{ color: var(--brand); }

/* Search polish */
.mm-search{
  border: 1px solid rgba(12,18,28,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(12,18,28,.08);
}
.mm-search input{
  font-weight: 700;
}
.mm-search .mm-ic{
  background: radial-gradient(220px 120px at 20% 20%, rgba(255,122,24,.22), transparent 55%),
              radial-gradient(220px 120px at 80% 30%, rgba(42,99,255,.18), transparent 55%),
              rgba(255,255,255,.75);
  border: 1px solid rgba(12,18,28,.10);
}

/* Fullscreen modal for card details */
.modal-backdrop{
  z-index: 9999;
  padding: 0 !important;
}
.modal-backdrop .modal{
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  display:flex;
  flex-direction:column;
}
.modal-backdrop .modal-head{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  backdrop-filter: blur(10px);
}
.modal-backdrop .modal-body{
  flex: 1;
  max-height: none !important;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px;
}
.modal-backdrop .modal-foot{
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.modal-hero{
  border:0;
  background: transparent;
  box-shadow:none;
}
.modal-hero-media img{
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12,18,28,.18);
}
@media (max-width: 520px){
  .modal-hero-media img{ border-radius: 14px; }
}

/* ===== Filters (Courses) ===== */
.mm-filters{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.mm-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 26px rgba(12,18,28,.10);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mm-chip .fa-solid{ color: var(--brand); }
.mm-chip:hover{ transform: translateY(-1px); box-shadow: 0 16px 34px rgba(12,18,28,.14); }
.mm-chip.is-active{
  border-color: rgba(255,122,24,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: 0 18px 42px rgba(255,122,24,.18), 0 14px 30px rgba(12,18,28,.12);
}
.mm-chip.is-active .fa-solid{ color: var(--brandBlue); }

@media (max-width: 720px){
  .mm-filters{ justify-content:flex-start; }
}

/* ===== Fullscreen modal actions ===== */
.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.modal-actions .btn{ border-radius: 999px; }
.btn-icon{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* Similar cards inside modal */
.similar-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.similar-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  overflow:hidden;
  cursor:pointer;
  box-shadow: 0 12px 26px rgba(12,18,28,.10);
  transition: transform .12s ease, box-shadow .12s ease;
}
.similar-card:hover{ transform: translateY(-2px); box-shadow: 0 18px 38px rgba(12,18,28,.14); }
.similar-card .thumb{ height: 92px; background: #f3f6ff; }
.similar-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.similar-card .b{ padding: 10px 12px; }
.similar-card h4{ margin:0; font-size: 12px; line-height:1.2; }
.similar-card .small{ margin-top:6px; font-size:11px; opacity:.8; }

@media (max-width: 980px){
  .similar-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .similar-grid{ grid-template-columns: 1fr; }
}


/* ===== UX polish v1.7.3 ===== */
:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  --brandA: var(--brandOrange, #ff7a00);
  --brandB: var(--brandBlue, #1e66ff);
}

/* prevent icon/layout jumps */
i.fa-solid, i.fa-regular, i.fa-brands{
  display:inline-block;
  width:1.15em;
  text-align:center;
  line-height:1;
  vertical-align:-0.12em;
}
.btn-icon i{ width:1.15em; }
.meta-chip i{ width:1.15em; }
.mb-tab i{ width:1.15em; }

/* Fullscreen modal: no margins, always on top */
#modalBackdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  padding:0 !important;
  align-items:stretch !important;
}
#modalBackdrop .modal{
  width:100vw;
  height:100vh;
  border-radius:0 !important;
  max-width:none !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
}
#modalBackdrop .modal-body{
  flex:1;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
body.is-scroll-locked{
  position:fixed;
  width:100%;
  overflow:hidden;
}

/* Modal content layout */
.card-modal{
  padding:14px 14px 18px;
}
.card-modal-hero{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.card-modal-hero .cm-media{
  flex:0 0 108px;
  height:108px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.card-modal-hero .cm-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-modal-hero .cm-body{ min-width:0; flex:1; }
.card-modal-hero .cm-kicker{
  display:flex; flex-wrap:wrap; gap:8px;
  color:rgba(20,20,20,.7);
  font-size:12px;
  margin-bottom:6px;
}
.card-modal-hero .cm-title{
  font-size:18px;
  line-height:1.15;
  margin:0 0 6px;
}
.card-modal-hero .cm-desc{
  font-size:13px;
  line-height:1.45;
  color:rgba(20,20,20,.78);
}
.cm-metas{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.cm-actions{
  display:flex; gap:8px; flex-wrap:wrap;
  margin:12px 0 10px;
}
.cm-actions .btn{ border-radius:14px; }
.cm-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width: 700px){
  .card-modal{ padding:18px 18px 22px; }
  .card-modal-hero .cm-media{ flex-basis:132px; height:132px; border-radius:22px; }
  .card-modal-hero .cm-title{ font-size:22px; }
  .cm-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px){
  .cm-grid{ grid-template-columns: 1.2fr .8fr; }
}

/* small chart bars */
.cm-bars{ display:grid; gap:8px; }
.cm-bar{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:10px 12px;
}
.cm-bar .lbl{ font-size:12px; color:rgba(20,20,20,.75); width:110px; }
.cm-bar .track{
  flex:1; height:10px; border-radius:999px;
  background: var(--overlay-bg);
  overflow:hidden;
}
.cm-bar .fill{ height:100%; border-radius:999px; background:linear-gradient(90deg, var(--brandA), var(--brandB)); }
.cm-bar .val{ font-size:12px; color:rgba(20,20,20,.75); width:42px; text-align:right; }

/* in-modal sheets (no second modal backdrop) */
.cm-sheet{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
}
.cm-sheet.is-open{ display:block; }
.cm-sheet .sh-mask{
  position:absolute; inset:0;
  background: var(--overlay-bg);
}
.cm-sheet .sh-panel{
  position:absolute; left:0; right:0; bottom:0;
  max-height:88vh;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.cm-sheet .sh-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.cm-sheet .sh-head strong{ font-size:14px; }
.cm-sheet .sh-body{
  padding:12px 14px 18px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.cm-mini-list{ display:grid; gap:10px; }
.cm-mini-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.06);
}
.cm-mini-item .ic{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(255,122,0,.20), rgba(30,102,255,.14));
  flex:0 0 auto;
}
.cm-mini-item h4{ margin:0; font-size:13px; line-height:1.2; }
.cm-mini-item p{ margin:4px 0 0; font-size:12px; color:rgba(20,20,20,.72); }


/* Account modal */
.acc-shell{padding:16px;}
.acc-hero{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:14px 12px; border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,122,24,.12), rgba(42,99,255,.10));
}
.acc-brand{display:flex; gap:12px; align-items:center;}
.acc-logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--brandBlue));
  color:#fff;
  box-shadow: 0 12px 30px rgba(16,24,40,.12);
}
.acc-title{font-weight:800; font-size:18px; letter-spacing:.2px;}
.acc-grid{margin-top:14px; display:grid; gap:12px; grid-template-columns:1fr;}
@media (min-width: 720px){ .acc-grid{grid-template-columns:repeat(3, 1fr);} }
.acc-note{margin-top:12px;}



/* ===== v1.8.1 UX polish ===== */
:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  --spcCoverH: 110px;
}

.mb-tab i, .btn i, .meta-chip i, .dt-link i{
  width: 1.15em;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.card-media{
  aspect-ratio: 16 / 10;
  overflow:hidden;
  border-radius: var(--r3);
  background: linear-gradient(135deg, rgba(255,122,24,.10), rgba(72,162,255,.08));
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Specialties: stronger card identity */
.spc-card{
  position:relative;
  text-align:left;
  border:1px solid rgba(255,122,24,.18);
  box-shadow: var(--shadow2);
}
.spc-card .card-kicker{
  font-weight: 700;
  letter-spacing: .2px;
}
.spc-card .card-title{
  font-size: 15px;
  line-height: 1.25;
}
.spc-card .card-sub{
  margin-top: 6px;
  color: rgba(15,20,26,.78);
}
.spc-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: var(--r3);
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(600px 220px at 90% 0%, rgba(72,162,255,.10), transparent 55%);
  opacity:.55;
}

/* Courses: slightly different accent */
.crs-card{
  border:1px solid rgba(72,162,255,.18);
}

/* News KPI grid: responsive, no overflow */
.kpi-grid{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  min-width:0;
}

/* News & text wrapping safeguards */
.news-card, .news-card *{
  min-width:0;
}
.news-card h3, .news-card p{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Swiper: allow horizontal scroll inside viewport only (no body overflow) */
.swiper{ max-width:100%; min-width:0; }
.swiper-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}
.swiper-track{
  display:flex;
  gap: 12px;
  padding: 2px 2px 10px;
  transition:none;
  transform:none !important;
}
.swiper-slide{
  flex: 0 0 clamp(260px, 86vw, 420px);
  min-width:auto;
  scroll-snap-align:start;
}

/* Ensure no accidental horizontal page scroll */
html, body{ overflow-x:hidden; }
.section, .card, .grid{ max-width:100%; min-width:0; }


/* Desktop nav: avoid layout shift on hover */
.dt-item, .dt-link{ box-sizing:border-box; }
.dt-item .dt-link{ border:1px solid transparent; }
.dt-item:hover .dt-link, .dt-item.is-open .dt-link{ border-color: rgba(255,122,24,.22); }

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:720px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.75);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:800;font-size:22px;line-height:1.15}
.home-logo-sub{text-align:center;margin-top:10px;color:var(--muted);font-size:13px}

/* Hub pages */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
.hub-card{display:flex;align-items:stretch;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 10px 26px rgba(0,0,0,.10);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background: var(--overlay-bg);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}

/* HUB: search / filters / sort */
.hub-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.hub-search{display:flex;align-items:center;gap:10px;flex:1 1 260px;min-width:220px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-search i{color:var(--muted)}
.hub-search-input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-weight:700;color:inherit}
.hub-search-clear{border:0;background:transparent;color:var(--muted);width:32px;height:32px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.hub-search-clear:hover{background: var(--overlay-bg);color:inherit}

.hub-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start}
.hub-filter{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.60);padding:8px 10px;border-radius:999px;font-weight:800;color:inherit}
.hub-filter i{color:var(--brand-2)}
.hub-filter span{font-size:12px;line-height:1}
.hub-filter:hover{background:rgba(255,255,255,.78)}
.hub-filter.is-active{background: var(--overlay-bg);border-color:rgba(0,0,0,.88);color:#fff}
.hub-filter.is-active i{color:#fff}

.hub-sort{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-sort i{color:var(--muted)}
.hub-sort-select{border:0;outline:0;background:transparent;font-weight:800}

/* HUB cover styles: always look like a cover even without image */
.hub-cover{position:relative;background:linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02))}
.hub-cover::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);mix-blend-mode:overlay;pointer-events:none}
.hub-cover i{position:relative;z-index:1;font-size:20px}
.hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,127,80,.22), rgba(255,255,255,.00))}
.hub-cover.theme-2{background:linear-gradient(135deg, rgba(0,173,181,.18), rgba(255,255,255,.00))}
.hub-cover.theme-3{background:linear-gradient(135deg, rgba(99,102,241,.18), rgba(255,255,255,.00))}
.hub-cover.theme-4{background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(255,255,255,.00))}
.hub-cover.theme-5{background:linear-gradient(135deg, rgba(245,158,11,.18), rgba(255,255,255,.00))}
.hub-cover.theme-6{background:linear-gradient(135deg, rgba(236,72,153,.16), rgba(255,255,255,.00))}

/* HUB empty state */
.hub-empty{padding:16px;border-radius:18px;background:rgba(255,255,255,.78);border:1px dashed rgba(0,0,0,.12);text-align:center}
.hub-empty .h3{margin:0 0 6px}
.hub-empty .muted{margin:0}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:950;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted)}

/* Hub */
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:880px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08);transition:transform .12s ease, box-shadow .12s ease;text-decoration:none;color:inherit}
.hub-card:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.10)}
.hub-cover{width:54px;height:54px;border-radius:14px;background: var(--overlay-bg);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:900;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Feedback floating button */
.feedback-fab{position:fixed;right:16px;bottom:88px;z-index:2200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;background:linear-gradient(90deg,var(--brand-2),var(--brand-3));color:#111;border:0;box-shadow:0 16px 36px rgba(0,0,0,.18);font-weight:900}
.feedback-fab i{font-size:16px}
@media (min-width:980px){.feedback-fab{bottom:18px}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:20px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:6px;color:var(--muted)}

/* Hub cards */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 12px 34px rgba(0,0,0,.10);border:1px solid rgba(0,0,0,.06);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background: var(--overlay-bg);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Fixed feedback button */
.feedback-fab{position:fixed;right:16px;bottom:92px;z-index:1200;display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.86);box-shadow:0 14px 40px rgba(0,0,0,.16);backdrop-filter:blur(10px);cursor:pointer}
.feedback-fab i{color:var(--brand-2)}
@media (min-width:960px){.feedback-fab{bottom:18px;}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;color:var(--muted);margin-top:8px}

/* Feedback FAB */
.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:9999}
@media (min-width: 980px){.feedback-fab{bottom:20px}}
.feedback-fab .fab-btn{display:inline-flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.88);backdrop-filter:blur(10px);box-shadow:0 14px 32px rgba(0,0,0,.16);font-weight:800}
.feedback-fab .fab-btn i{color:var(--brand-2)}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted);font-size:14px}

/* Floating feedback */
.feedback-fab{position:fixed;right:16px;bottom:90px;z-index:1200;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.9);box-shadow:0 12px 28px rgba(0,0,0,.18);backdrop-filter:blur(8px);display:flex;align-items:center;gap:10px;font-weight:800}
.feedback-fab i{color:var(--brand-2)}
@media (min-width: 900px){.feedback-fab{bottom:24px}}

.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:1200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;background:linear-gradient(135deg,var(--brand-2),var(--brand-1));color:#fff;text-decoration:none;box-shadow:0 18px 40px rgba(0,0,0,.22)}
.feedback-fab i{font-size:16px}
.feedback-fab span{font-weight:800;font-size:13px;white-space:nowrap}
@media (min-width: 980px){.feedback-fab{bottom:20px}}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-desc{font-size:13px}
}


/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}


/* Drawer HUB link (no expansion; deep navigation happens on hub pages) */
.mm-link-hub{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
}
.mm-link-hub:hover{ background: rgba(255,255,255,.55); }
.mm-link-hub .mm-ico{ opacity:.9; }
.mm-link-hub .mm-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mm-link-hub .mm-title{ font-weight:800; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-meta{ font-size:12px; opacity:.72; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-go-ico{ margin-left:auto; opacity:.65; }

/* HUB: cover themes and stable sizing (обложки) */
.hub-card .hub-cover{height:140px;border-radius:16px;margin:12px;overflow:hidden;display:grid;place-items:center}
@media (max-width: 920px){.hub-card .hub-cover{height:124px;margin:10px}}
@media (max-width: 520px){.hub-card .hub-cover{height:118px;margin:10px}}
.hub-card .hub-cover img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.02)}
.hub-card .hub-cover i{font-size:42px;color:rgba(255,255,255,.92);text-shadow:0 18px 32px rgba(0,0,0,.35)}
.hub-card .hub-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);}
.hub-card .hub-cover i, .hub-card .hub-cover img{position:relative;z-index:1}

.hub-card .hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,114,76,.95), rgba(255,197,116,.92));}
.hub-card .hub-cover.theme-2{background:linear-gradient(135deg, rgba(20,35,60,.95), rgba(255,114,76,.85));}
.hub-card .hub-cover.theme-3{background:linear-gradient(135deg, rgba(46,125,50,.92), rgba(0,188,212,.82));}
.hub-card .hub-cover.theme-4{background:linear-gradient(135deg, rgba(103,58,183,.92), rgba(244,67,54,.82));}
.hub-card .hub-cover.theme-5{background:linear-gradient(135deg, rgba(0,121,107,.92), rgba(255,235,59,.82));}
.hub-card .hub-cover.theme-6{background:linear-gradient(135deg, rgba(1,87,155,.92), rgba(255,152,0,.82));}

/* HUB: filters look */
.hub-filters{display:flex;flex-wrap:wrap;gap:8px}
.hub-filter{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.74);box-shadow:0 10px 22px rgba(0,0,0,.08);font-weight:800}
.hub-filter i{opacity:.9}
.hub-filter.is-active{background:rgba(255,114,76,.14);border-color:rgba(255,114,76,.28)}
.hub-sort{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.74);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08)}
.hub-sort-select{border:0;background:transparent;font-weight:900;outline:0}


#topNav{justify-content:center}


/* === Topbar layout fixes (desktop) === */
.topbar-layout{
  display:flex;
  align-items:center;
  gap:14px;
}
.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.topbar-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.topbar-brand img{
  display:block;
}
.topbar-account{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
}
.topbar-row--nav{
  display:flex;
  justify-content:center;
}
#topNavFallback{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
#desktopMenuTree{
  width:100%;
  display:flex;
  justify-content:center;
}
#desktopMenuTree .menu-root{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

/* Make desktop nav truly centered in viewport (if both left/right blocks differ) */
@media (min-width: 1024px){
  .topbar-layout{ position:relative; }
  .topbar-row--nav{
    width:100%;
    position:relative;
  }
  /* If fallback is visible, center it; if tree is visible, center tree */
  #topNavFallback, #desktopMenuTree{
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 25px;
    margin-top: 10px;
  }
}


/* DocsBinder v1.0 */
.docs-block{ margin-top:16px; }
.docs-block__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.docs-block__title{ margin:0; font-size:18px; }
.docs-block__tools .input{ min-width:240px; }

.doc-card{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--card); margin-bottom:10px; }
.doc-card__left{ display:flex; align-items:center; gap:12px; min-width:0; }
.doc-ic{ width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background: var(--overlay-bg); flex:0 0 auto; }
.doc-meta{ min-width:0; }
.doc-title{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-card__right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

.pdf-modal{ position:fixed; inset:0; z-index:9999; display:none; }
.pdf-modal.is-open{ display:block; }
.pdf-modal__backdrop{ position:absolute; inset:0; background: var(--overlay-bg); }
.pdf-modal__panel{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(1100px, 94vw); height:min(80vh, 780px); background:var(--card); border-radius:16px; border:1px solid var(--line); overflow:hidden; display:flex; flex-direction:column; }
.pdf-modal__head{ padding:10px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pdf-modal__title{ font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:50vw; }
.pdf-modal__actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pdf-modal__body{ flex:1 1 auto; }
.pdf-modal__body iframe{ width:100%; height:100%; border:0; background:#fff; }
body.modal-open{ overflow:hidden; }

@media (max-width: 720px){
  .doc-title,.doc-sub{ max-width:70vw; }
  .pdf-modal__panel{ height:min(86vh, 900px); }
  .pdf-modal__title{ max-width:44vw; }
}


/* Home (JSON-driven) */
.home-hero{padding:28px 0}
.home-hero__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-hero__badge{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-hero__badge .dot{width:8px;height:8px;border-radius:50%;background:var(--brand-2)}
.home-hero__title{margin:14px 0 0;font-size:34px;line-height:1.08;font-weight:900;letter-spacing:-.02em}
@media (min-width:900px){.home-hero__title{font-size:44px}}
.home-hero__sub{margin:10px 0 0;color:var(--muted);max-width:64ch}
.home-hero__actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background: rgb(0 94 168);color:rgba(255,255,255,.92);text-decoration:none}
.btn:hover{border-color:rgba(255,122,24,.35);background:rgba(255,122,24,.08)}
.btn-sm{padding:8px 12px;border-radius:12px;font-size:13px}
.btn-primary{border-color: rgb(240 137 28);background: white;color: rgb(240 135 24);}
.btn-ghost{background: rgb(0 0 0 / 64%);margin-top: 15px;margin-bottom: 10px;}

.home-import{padding:18px 0}
.home-import__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-import__head{padding:16px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-import__k{font-weight:900;font-size:18px}
.home-import__p{margin-top:8px;color:var(--muted);max-width:90ch}
.home-import__meta{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.home-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,122,24,.14);border:1px solid rgba(255,122,24,.25);font-size:12px}
.home-muted{color:var(--muted);font-size:12px}
.home-import__actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}

.home-import__grid{margin-top:12px;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px}
@media (min-width:860px){.home-import__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.home-card{display:flex;gap:12px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.home-card__ic{width:38px;height:38px;border-radius:14px;border:1px solid rgba(255,122,24,.25);background:rgba(255,122,24,.10);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.home-card__t{font-weight:800}
.home-card__d{margin-top:6px;color:var(--muted);font-size:13px;line-height:1.35}


/* ===== Home v1.3 sections (events/tabs/education/projects/partners/next) ===== */
.home-section{margin-top:28px}
.home-section__head{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 14px}
.home-lead{color:var(--muted);max-width:920px;margin:0 0 16px;line-height:1.55}

.home-events__grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
@media (max-width: 960px){.home-events__grid{grid-template-columns:1fr}}
.home-slider{position:relative}
.home-slider__track{display:flex;gap:16px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.home-slider__track::-webkit-scrollbar{height:8px}
.home-slider__track::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}
.home-slider__track>*{scroll-snap-align:start;flex:0 0 min(520px, 92%)}
.home-slider__nav{position:absolute;right:6px;top:-42px;display:flex;gap:8px}
@media (max-width: 560px){.home-slider__nav{position:static;margin-top:10px}}

.home-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;backdrop-filter: blur(8px)}
.home-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.home-card__title{font-weight:800;letter-spacing:-.01em}
.home-card__meta{color:var(--muted);font-size:13px;margin-top:6px}
.home-card__text{margin-top:10px;color:rgba(255,255,255,.9);line-height:1.5}
.home-card__actions{margin-top:14px;display:flex;gap:10px}

.theme-red{background:linear-gradient(135deg, rgba(193,18,31,.35), rgba(255,255,255,.04));border-color:rgba(193,18,31,.35)}
.theme-blue{background:linear-gradient(135deg, rgba(30,58,138,.35), rgba(255,255,255,.04));border-color:rgba(30,58,138,.35)}
.theme-dark{background:linear-gradient(135deg, rgba(0,0,0,.55), rgba(255,255,255,.03));border-color:rgba(255,255,255,.10)}
.theme-light{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}

.tabs-ui{background: var(--overlay-bg);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px}
.tabs-ui__bar{display:flex;gap:8px;flex-wrap:wrap;padding:4px}
.tabs-ui__tab{appearance:none;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:inherit;border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer}
.tabs-ui__tab.is-active{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18)}
.tabs-ui__panes{padding:10px 4px 4px}
.tabs-ui__pane{display:none}
.tabs-ui__pane.is-active{display:block}

.home-cardlist{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 760px){.home-cardlist{grid-template-columns:1fr}}

.home-news-card{display:grid;grid-template-columns:160px 1fr;gap:12px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden}
@media (max-width: 560px){.home-news-card{grid-template-columns:1fr}}
.home-news-card__media{background: var(--overlay-bg);min-height:110px}
.home-news-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-news-card__body{padding:12px}
.home-news-card__date{font-size:12px;color:var(--muted);margin-bottom:6px}
.home-news-card__title{font-weight:800;line-height:1.2}
.home-news-card__text{margin-top:6px;color:rgba(255,255,255,.88);line-height:1.45}
.home-more{margin-top:14px}

.edu-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 1020px){.edu-grid{grid-template-columns:repeat(2, 1fr)}}
@media (max-width: 640px){.edu-grid{grid-template-columns:1fr}}
.edu-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);min-height:220px}
.edu-card.is-2{grid-column:span 2}
@media (max-width: 640px){.edu-card.is-2{grid-column:span 1}}
.edu-card__bg{position:absolute;inset:0;opacity:.35}
.edu-card__bg img{width:100%;height:100%;object-fit:cover}
.edu-card__inner{position:relative;padding:16px}
.edu-card__title{font-weight:900;font-size:18px;letter-spacing:-.01em}
.edu-card__text{margin-top:8px;color:rgba(255,255,255,.9);line-height:1.5}
.edu-facts{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.edu-fact{background: var(--overlay-bg);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px}
.edu-fact__v{font-weight:900;font-size:18px}
.edu-fact__l{font-size:12px;color:var(--muted);margin-top:2px}
.edu-card__actions{margin-top:12px}

.home-card--project{padding:0;overflow:hidden}
.home-card--project .home-card__media{height:170px;background:rgba(0,0,0,.25)}
.home-card--project .home-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-card--project .home-card__top{padding:14px 14px 0}
.home-card--project .home-card__text{padding:0 14px 14px}

.partners-logos{display:grid;grid-template-columns:repeat(6, 1fr);gap:12px}
@media (max-width: 1020px){.partners-logos{grid-template-columns:repeat(4, 1fr)}}
@media (max-width: 640px){.partners-logos{grid-template-columns:repeat(2, 1fr)}}
.partner-logo{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;min-height:74px;text-decoration:none;color:inherit;overflow:hidden}
.partner-logo img{max-width:86%;max-height:46px;object-fit:contain;display:block;filter:grayscale(1) contrast(1.05);opacity:.9}
.partner-logo:hover{border-color:rgba(255,255,255,.18);transform:translateY(-1px)}

.next-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 960px){.next-grid{grid-template-columns:1fr}}
.next-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);min-height:160px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04)}
.next-card__bg{position:absolute;inset:0;opacity:.35}
.next-card__bg img{width:100%;height:100%;object-fit:cover}
.next-card__title{position:relative;padding:16px;font-weight:900;font-size:20px;letter-spacing:-.01em}



/* ===== Home (Moscow Polytech inspired blocks) ===== */
.home-block{margin-top:24px}
.home-block__heading{margin:16px 0}
.offset-after-hero{margin-top:16px}
.events__container{width:100%}
.events__row{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}
@media (max-width: 900px){.events__row{grid-template-columns:1fr}}
.events__slider{position:relative;border-radius:20px;overflow:hidden}
.nav-arrows{display:flex;gap:10px;position:absolute;right:12px;bottom:12px;z-index:2}
.nav-arrows__button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(8px);cursor:pointer}
.nav-arrows__button:hover{transform:translateY(-1px)}
.nav-arrows.is-red .nav-arrows__button{border-color:rgba(193,18,31,.25)}
.card-event{position:relative;border-radius:20px;overflow:hidden;min-height:240px;color:#fff;background:#0A2647}
.card-event.is-red{background:#C1121F}
.card-event.is-white{background:#fff;color:#111}
.card-event .video,.card-event__bg-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.card-event__inner{position:relative;z-index:1;padding:18px}
.card-event__date{opacity:.9;margin-bottom:10px}
.card-event__heading{margin:0 0 10px 0}
.card-event__description{max-width:56ch;opacity:.95}
.card-event__link{position:absolute;inset:0;z-index:2}
.button-group{display:flex;gap:10px;margin-top:14px}
.btn.text-button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:inherit;text-decoration:none}
.card-event.is-white .btn.text-button{border-color:rgba(0,0,0,.15);background:rgba(0,0,0,.04)}
.bloat{display:none}

/* Tabs */
.tabs{display:flex;gap:16px;flex-wrap:wrap}
.tabs .h1{cursor:pointer;opacity:.6}
.tabs .h1.active{opacity:1}
.tabs__pane{display:none}
.tabs__pane.active{display:block}
.card-news-small-list{display:grid;gap:14px}
.card-news-small-list.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 900px){.card-news-small-list.cols-2{grid-template-columns:1fr}}
.card-news-small{position:relative;border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px;min-height:120px}
.card-news-small__link{position:absolute;inset:0}
.card-news-small__meta{opacity:.7;margin-bottom:8px}
.card-news-small__title{margin:0 0 8px 0}
.card-news-small__text{opacity:.9}

/* Generic cards */
.card-generic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width: 900px){.card-generic-grid{grid-template-columns:1fr}}
.card-generic{border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px}

/* Education */
.card-education-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-education-group{grid-template-columns:1fr}}
.card-education{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff}
.card-education.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-education .video,.card-education .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25}
.card-education__inner{position:relative;z-index:1;padding:16px}
.card-education__head{display:flex;align-items:flex-start;gap:10px}
.card-education__toggle{width:38px;height:38px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.85);cursor:pointer}
.card-education.is-red .card-education__toggle{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.12)}
.card-education__title{margin:0}
.card-education__roll{margin-top:12px}
.card-education__numerical-item-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.numerical-item__number{font-weight:700}

/* Partners */
.section-partners{border-radius:22px;padding:22px}
.bg-white{background:#fff}
.section-partners__heading{margin:0 0 10px 0}
.section-partners__button{margin-bottom:10px}
.slider-logos-wrap{position:relative}
.slider-logos .swiper-wrapper{display:flex;transition:transform 350ms ease}
.slider-logos .swiper-slide{flex:0 0 25%;padding:8px}
@media(max-width:900px){.slider-logos .swiper-slide{flex:0 0 50%}}
.partner-logo{display:flex;align-items:center;justify-content:center;border-radius:18px;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:84px;padding:12px;text-decoration:none;color:inherit}
.partner-logo.is-highlight{border-color:rgba(193,18,31,.35)}
.partner-logo img{max-width:100%;max-height:48px;object-fit:contain}

/* Next step */
.card-panel-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-panel-group{grid-template-columns:1fr}}
.card-panel{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:180px}
.card-panel.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-panel .video,.card-panel .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.22}
.card-panel__inner{position:relative;z-index:1;padding:18px;display:flex;align-items:flex-end;min-height:180px}
.card-panel__title{margin:0}
.card-panel__link{position:absolute;inset:0}


/* === Home: Map / Feedback / Director / News Columns (v1.5.2-p2) === */
.home-map{display:grid;gap:14px;grid-template-columns:1.5fr .9fr;align-items:stretch}
.home-map__frame{min-height:340px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__iframe{width:100%;height:100%;min-height:340px;border:0;display:block}
.home-map__placeholder{height:100%;min-height:340px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:18px}
.home-map__aside{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__row{margin-bottom:12px}
.home-map__row .k{font-size:12px;opacity:.75;margin-bottom:4px}
.home-map__row .v{font-size:14px}
@media (max-width: 900px){.home-map{grid-template-columns:1fr}}

.home-feedback{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-feedback .grid{display:grid;gap:12px;grid-template-columns:1fr 1fr}
.home-feedback .field{display:flex;flex-direction:column;gap:6px}
.home-feedback .field--full{grid-column:1/-1}
.home-feedback .label{font-size:12px;opacity:.8}
.home-feedback input,.home-feedback select,.home-feedback textarea{border-radius:12px}
.home-feedback__foot{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:12px;flex-wrap:wrap}
.home-feedback__status{margin-top:10px;opacity:.85}
@media (max-width: 700px){.home-feedback .grid{grid-template-columns:1fr}}

.home-director{display:grid;gap:16px;grid-template-columns:160px 1fr;align-items:center;border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-director__media img{width:160px;height:160px;object-fit:cover;border-radius:18px;display:block}
.home-director__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
@media (max-width: 700px){.home-director{grid-template-columns:1fr}.home-director__media img{width:100%;height:220px}}

.home-news-columns{display:grid;gap:14px;grid-template-columns:repeat(3,1fr)}
.home-news-col__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.home-news-col__body{display:grid;gap:10px}
@media (max-width: 1000px){.home-news-columns{grid-template-columns:1fr}}



/* ===== Desktop Left Sidebar (product navigation) ===== */
.layout-shell{ display:block; }
.desktop-sidebar{ display:none; }

@media (min-width: 1024px){
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
  }

  /* Fix container width behavior */
  .layout-shell > main.container{
    flex: 1 1 auto;
    min-width: 0;
  }

  .desktop-sidebar{
    display:block;
    position: sticky;
    top: 47px;
    width: 320px;
    flex: 0 0 320px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    margin: 30px 0px 0px 30px;
  }

  .desktop-sidebar .ds-head{
    background:#ffffff;
    border-radius: 20px;
    padding: 14px 14px 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    margin-bottom: 10px;
  }
  .desktop-sidebar .ds-title{
    font-weight: 800;
    font-size: 14px;
    color: #121826;
    letter-spacing: .2px;
  }
  .desktop-sidebar .ds-sub{
    margin-top: 2px;
    font-size: 12px;
    color: rgba(18,24,38,.60);
  }

  .desktop-sidebar .ds-nav{
    background:#ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    padding: 10px;
    overflow:auto;
    max-height: calc(100vh - 32px - 84px);
  }

  .ds-nav .side-sec{ padding: 6px 6px 10px; }
  .ds-nav .side-sec + .side-sec{ border-top: 1px solid rgba(0,0,0,.06); }

  .ds-nav .side-sec-h{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 10px 6px;
    font-weight: 800;
    font-size: 12px;
    color:#121826;
    text-transform: none;
  }
  .ds-nav .side-sec-h i{
    width: 18px;
    text-align:center;
    color: rgba(18,24,38,.75);
  }

  .ds-nav .side-sec-b{
    display:flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 4px 10px;
  }

  .ds-nav a.side-link{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 14px;
    text-decoration:none;
    color:#121826;
    border: 1px solid rgba(0,0,0,.06);
    background: var(--overlay-bg);
    transition: transform .08s ease, background .12s ease, border-color .12s ease;
  }
  .ds-nav a.side-link i{
    width: 18px;
    text-align:center;
    color: rgba(18,24,38,.75);
  }
  .ds-nav a.side-link:hover{
    background: var(--overlay-bg);
    border-color: rgba(0,0,0,.10);
    transform: translateY(-1px);
  }
  .ds-nav a.side-link.is-active{
    background: rgba(17, 24, 39, .06);
    border-color: rgba(17, 24, 39, .16);
  }
  .ds-nav a.side-link.is-active span{
    font-weight: 800;
  }
}


/* KARETA PATCH v1.5.9: hide desktop sidebar header (ds-head) */
.desktop-sidebar .ds-head{display:none !important;}



/* ===== Visual distinction: compact blocks containing documents/external resources ===== */
.db-block.db-block-compact.db-block--links{
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.db-block.db-block-compact.db-block--links .db-sub{
  opacity: .95;
  color: #474747;
  font-weight: 700;
}
.db-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--overlay-bg);
  text-decoration: none;
}
.db-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}
.db-link--external::after{ content: "↗"; font-size: 12px; opacity: .85; }
.db-link--pdf::before{ content: "PDF"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--doc::before{ content: "DOC"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--xls::before{ content: "XLS"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.filters .chip.is-active{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}



/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--overlay-bg);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgba(255,255,255,.88);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--overlay-bg);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgba(255,255,255,.88);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
a.tile:before {
    content: "";
    position: absolute;
    inset: -40px -60px auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 145, 0, .26), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

a.tile {
    position: relative;
    overflow: hidden;
}


nav#desktopSidebarMenu {}

a.side-link:before {
    content: "";
    position: absolute;
    inset: 0px -112px 0 -12px;
    width: 138px;
    height: 190px;
    background: radial-gradient(circle at 30% 30%, rgb(26 110 177 / 17%), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

a.side-link {
    position: relative;
    overflow: hidden;
}






/* Layout spacing guarantees */
#view{overflow-x:hidden;}
.section{padding:18px 0;}
.section + .section{margin-top:12px;}
.section-head{gap:12px;}
.card-pad{padding:16px;}
@media (min-width: 980px){
  .section{padding:22px 0;}
  .card-pad{padding:18px;}
}
/* KARETA / College Info Site — single global CSS (mobile-first) */
:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  /* Light theme (default) */
  --bg:#f6f8fb;
  --panel:#ffffff;
  --panel2:#fbfcfe;
  --text:#0b0f14;
  --muted:#55657a;
  --line:rgba(12,18,28,.10);
  --brand:#ff7a18;
  --brand2: #f08718;
  --brandBlue:#2a63ff;
  --brandBlue2:#6aa6ff;
  --brandInk:#101828;
  --ok:#1e9b62;
  --warn:#c97a00;
  --bad:#d93232;
  --shadow:0 18px 55px rgba(12,18,28,.12);
  --shadow2:0 10px 28px rgba(12,18,28,.10);
  --r1:14px;
  --r2:18px;
  --r3:24px;
  --max:1180px;
  --focus:0 0 0 3px rgba(255,122,24,.22);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  width:100%;
  overflow-x:hidden; /* prevent global horizontal scroll */
}



body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  -webkit-user-select:none;
  user-select:none; /* disable text selection globally (UX choice) */
}

/* Allow selection/interaction where it must remain editable */
input, textarea, [contenteditable="true"], .allow-select{
  -webkit-user-select:text;
  user-select:text;
}

/* Media should never overflow the viewport */
img, svg, video, canvas, iframe{max-width:100%;}

/* Background video stack (mobile-first, performance-safe)
   - Video is optional; if it fails, layers still provide a clean light backdrop.
*/
.bg-video-stack{
  position:fixed; inset:0;
  z-index:-1;
  overflow:hidden;
  background: #ffffff;
}
/* YouTube host (iframe is mounted by JS) */
.bg-yt{position:absolute; inset:0; pointer-events:none}
.bg-yt-iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
  pointer-events:none;
  /* make the 16:9 frame cover the viewport */
  transform:scale(1.2);
  filter:saturate(1.05) contrast(1.02);
}
.container.topbar-layout{
	padding-top: 15px;
	padding-bottom: 15px;
}
.bg-layer{position:absolute; inset:-2px; pointer-events:none}
/* Base gradients (match your light style) */
.bg-layer-1{
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(246,248,251,.75));
}
/* Soft white glass layer */
.bg-layer-2{background:rgba(255,255,255,.34); backdrop-filter: blur(6px)}
/* Fine grain via subtle gradient bands */
.bg-layer-3{background:linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08))}
/* Vignette for readability */
.bg-layer-4{background:radial-gradient(1200px 680px at 50% 35%, transparent 30%, rgba(255,255,255,.55) 75%)}
/* Extra readable band under topbar */
.bg-layer-5{background:linear-gradient(180deg, rgba(255,255,255,.85), transparent 28%)}

@media (prefers-reduced-motion: reduce){
  .bg-yt{display:none}
}

a{color:inherit; text-decoration:none}
button, input, select, textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:16px}

.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(12px);
  background:rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  justify-content:flex-start;
}

.topbar-row{width:100%}

.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap: nowrap;
  align-content: center;
  flex: 1 1 auto;
}

.topbar-actions{display:flex; align-items:center; gap:10px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:auto;
  padding:0;
  width:auto;
  flex-direction:row;
  justify-content:flex-start;
  flex:0 1 auto;
}
.brand-mark{
  width:34px;
  height:34px;
  border-radius:12px;
  box-shadow: none;
  display:grid;
  background: none;
  place-items:center;
}
.brand-mark svg{width:20px; height:20px; fill:#1a0f06}
.brand-title{
  display:flex; flex-direction:column; min-width:0;
}
.brand-title strong{font-size:14px; line-height:1.1; letter-spacing:.2px}
.brand-title span{font-size: 14px;color:var(--muted)}
@media (min-width:900px){
  .brand-mark{width: 70px;height: 70px;}
  .brand-title strong{font-size: 18px;}
}

.nav{
  display:flex;
  gap:6px;
  align-items:center;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  /* padding:8px 0; */
}

/* Second row (desktop only) */
.topbar-row--nav{display:none}

.nav-actions--desktop{display:none}
.nav-actions--desktop .nav-actions__text{display:inline}
.nav-actions--desktop .db-btn{white-space:nowrap}

@media (min-width:980px){
  .topbar-row--nav{display:flex; justify-content:center; align-items:center}
  .brand{justify-content:flex-start; flex:0 1 auto}
  .nav{overflow:visible}
  .nav-burger{display:none}

  .nav-tree{flex:1 1 auto; min-width:0}
  .nav-actions--desktop{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:12px;width:auto;justify-content:flex-end;}
}
.nav::-webkit-scrollbar{height:8px}
.nav::-webkit-scrollbar-thumb{background:rgba(12,18,28,.10); border-radius:99px}
.nav a{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--muted);
  background:transparent;
  white-space:nowrap;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav a:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav a.is-active{
  background:rgba(255,122,24,.12);
  border-color:rgba(255,122,24,.35);
  color:var(--text);
}
.nav a:focus{outline:none; box-shadow:var(--focus)}

/* Desktop hierarchical menu (built from assets/data/menu.v1.0.json)
   - shown on desktop, fallback pills hidden when ready */
.nav-tree{display:none; align-items:center; gap:10px; flex-wrap:wrap; min-width:0}
.nav-tree.is-ready{display:flex}
.nav-fallback.is-hide{display:none}

.nav-tree .dt-item{position:relative}
.nav-tree .dt-link,
.nav-tree .dt-group{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  white-space:nowrap;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-tree .dt-link:hover,
.nav-tree .dt-group:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav-tree .dt-link.is-active{background:rgba(255,122,24,.12); border-color:rgba(255,122,24,.35); color:var(--text)}
.nav-tree .dt-link:focus,
.nav-tree .dt-group:focus{outline:none; box-shadow:var(--focus)}

.nav-tree .dt-popup{
  position:absolute;
  z-index: 99999999;
  top:calc(100% + 8px);
  left:0;
  min-width:280px;
  max-width:380px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow2);
  padding:8px;
  display:none;
}
.nav-tree .dt-item.is-open > .dt-popup{display:block}
.nav-tree .dt-popup a{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  text-decoration:none;
}
.nav-tree .dt-popup a:hover{background:rgba(12,18,28,.05)}
.nav-tree .dt-popup .dt-sub{font-size:12px; color:var(--muted)}

.nav-burger{margin-left:auto}
.nav-burger{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  color:var(--text);
}
.nav-burger:hover{background:rgba(255,255,255,.72);}
.nav-burger:focus{outline:none; box-shadow:var(--focus)}
.nav-burger .burger-ic{display:block}
.nav-burger{
	display: none;
}
@media (max-width: 980px){
  .nav-tree{display:none !important}
  .nav-fallback, .nav-burger{
	  display: flex;
	  position: absolute;
	  right: 10px;
	  top: 16px;
	  box-shadow: none;
	  border: none;
	  background: none;
	 }
}
@media (min-width: 981px){
  .nav-fallback{display:flex}
}

.actions{display:flex; gap:8px; align-items:center}
.btn{
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{background:rgba(12,18,28,.06); transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{
  border-color:rgba(255,122,24,.35);
  background:linear-gradient(135deg, rgba(255,122,24,.18), rgba(255,178,74,.10));
}
.btn-ghost{background:transparent}
.btn-sm{padding:8px 10px; border-radius:10px; font-size:13px}
.kbd{
  font-size:12px; padding:2px 7px; border-radius:8px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--muted);
}

.hero{
  padding:20px 0 6px;
}
.hero-grid{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .hero-grid{grid-template-columns: 1.3fr .7fr; gap:16px}
  .hero{padding:26px 0 8px}
}
.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
  border-radius:var(--r3);
  box-shadow: var(--shadow2);
}
.card-pad{padding:16px}
@media (min-width:900px){ .card-pad{padding:18px} }

.h1{
  font-size:22px; margin:0 0 8px; letter-spacing:.2px;
}
@media (min-width:900px){ .h1{font-size:28px} }
.p{
  margin:0; color:var(--muted); line-height:1.45;
}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(12,18,28,.04);
  color:var(--muted);
  font-size:13px;
}
.badge b{color:var(--text); font-weight:600}

.grid{
  display:grid; gap:12px;
}
@media (min-width:900px){ .grid{gap:16px} }
.grid-3{grid-template-columns:1fr}
@media (min-width:900px){ .grid-3{grid-template-columns:repeat(3,1fr)} }

.section{padding:14px 0}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin:0 0 12px;
}
.h2{margin:0; font-size:18px}
.sub{color:var(--muted); font-size:13px}
@media (min-width:900px){
  .h2{font-size:20px}
}

.tile{
  padding:14px;
  border-radius:var(--r2);
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  min-height:120px;
}
.tile h3{margin:0 0 8px; font-size:15px}
.tile p{margin:0; color:var(--muted); font-size:13px; line-height:1.4}
.tile .meta{margin-top:12px; display:flex; gap:8px; flex-wrap:wrap}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--muted);
  font-size:12px;
}

.hr{height:1px; background:var(--line); margin:14px 0}

.view{
  min-height:55vh;
}

.toast{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:70;
  display:none;
}
.toast-inner{
  max-width:var(--max);
  margin:0 auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius:16px;
  padding:12px 12px;
  box-shadow: var(--shadow);
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
}
.toast p{margin:0; color:var(--text); font-size:13px; line-height:1.35}
.toast .muted{color:var(--muted)}
.toast .btn{white-space:nowrap}

.modal-backdrop{
  position:fixed; inset:0; z-index:80;
  display:none;
  background:rgba(12,18,28,.45);
  backdrop-filter: blur(2px);
  padding:16px;
}
.modal{
  max-width: 100%;
  margin: 0px;
  padding: 0px;
  border: 0;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.modal-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.modal-title strong{font-size:15px}
.modal-title span{font-size:12px; color:var(--muted)}
.modal-body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.modal-body::-webkit-scrollbar{width:10px}
.modal-body::-webkit-scrollbar-thumb{background:rgba(12,18,28,.12); border-radius:99px}
.modal-foot{
  display:flex; gap:10px; justify-content:flex-end;
  padding:12px 14px;
  border-top:1px solid var(--line);
  background:rgba(12,18,28,.04);
}


/* Fullscreen modal mode */
.modal-backdrop.is-fullscreen{align-items:stretch;}
.modal-backdrop.is-fullscreen .modal{
  max-width:none;
  width:100%;
  height:100vh;
  margin:0;
  border-radius:0;
  border-left:0;
  border-right:0;
}
.modal-backdrop.is-fullscreen .modal-head{
  position:sticky;
  top:0;
  z-index:3;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  backdrop-filter: blur(10px);
}
.modal-backdrop.is-fullscreen .modal-body{
  height:calc(100vh - 64px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Make internal sheet truly hidden unless open (avoids "two windows") */
.cm-sheet{display:none;}
.cm-sheet.is-open{display:block;}

/* Card media stability */
.card-media{aspect-ratio: 16 / 9; overflow:hidden;}
.card-media img{width:100%; height:100%; object-fit:cover; display:block;}

/* Icon stability */
.mb-tab i, .card i, .kicker i{
  width:1.25em;
  text-align:center;
  display:inline-block;
  line-height:1;
}
.mb-tabbar .mb-tab i{font-size:18px;}
@media (min-width: 720px){
  .mb-tabbar .mb-tab i{font-size:20px;}
}

/* Home news cards */
.news-card .h3{margin-top:6px;}
.filters{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
  min-width:180px;
}
.search{
  flex:1 1 220px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
}
.small{font-size:12px; color:var(--muted)}

.news-layout{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .news-layout{grid-template-columns:1.15fr .85fr; gap:16px}
}

.swiper{
  position:relative;
}
.swiper-viewport{
  overflow:hidden;
  border-radius:var(--r3);
}
.swiper-track{
  display:flex;
  transition: transform .35s ease;
  will-change: transform;
}
.swiper-slide{
  min-width:100%;
  padding:0;
}
@media (min-width:900px){
  .swiper-slide{min-width: 50%}
}
.news-card{
  height:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:var(--r3);
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow: var(--shadow2);
}
.news-card .cover{
  height:140px;
  background:
    radial-gradient(500px 200px at 20% 0%, rgba(255,122,24,.28), transparent 55%),
    radial-gradient(500px 200px at 90% 20%, rgba(72,162,255,.16), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.95));
  border-bottom:1px solid var(--line);
}
.news-card .body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.news-card h3{margin:0 0 8px; font-size:15px; line-height:1.2}
.news-card p{margin:0; color:var(--muted); font-size:13px; line-height:1.35}
.news-card .row{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between}
.news-card .row .meta{display:flex; gap:8px; flex-wrap:wrap}

.swiper-controls{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:10px;
}
.dots{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.dot{
  width:10px; height:10px; border-radius:99px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.06);
}
.dot.is-active{background:rgba(255,122,24,.55); border-color:rgba(255,122,24,.5)}
.icon{
  width:16px; height:16px; display:inline-block;
  fill:currentColor;
}

.featured-list{
  display:grid; gap:10px;
}
.featured-item{
  display:flex; gap:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:18px;
  padding:12px;
  align-items:flex-start;
}
.featured-thumb{
  width:52px; height:52px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,122,24,.25), rgba(72,162,255,.12));
  border:1px solid var(--line);
  flex:0 0 auto;
  display:grid; place-items:center;
}
.featured-item h4{margin:0 0 6px; font-size:14px; line-height:1.2}
.featured-item p{margin:0; color:var(--muted); font-size:12.5px; line-height:1.35}
.featured-item .mini{
  margin-top:8px;
  color:rgba(233,238,246,.86);
  font-size:12px;
}
.footer{
  padding:20px 0 26px;
  color:var(--muted);
  font-size:12.5px;
}
.footer .row{display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.hidden{display:none !important}


/* Loading overlay */
.loader-backdrop{
  position:fixed; inset:0; z-index:60;
  display:none;
  background:rgba(12,18,28,.20);
  backdrop-filter: blur(4px);
}
.loader{
  max-width:420px;
  margin:18vh auto 0;
  border:1px solid var(--line);
  background:rgba(255,255,255,.94);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:14px 14px;
}
.loader-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.spinner{
  width:34px; height:34px;
  border-radius:999px;
  border:3px solid rgba(12,18,28,.12);
  border-top-color: rgba(255,122,24,.75);
  animation: spin .9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.skeleton{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(12,18,28,.05), rgba(12,18,28,.10), rgba(12,18,28,.05));
  background-size:200% 100%;
  animation: sk 1.3s ease infinite;
  margin-top:10px;
}
@keyframes sk{ 0%{background-position:0 0} 100%{background-position:-200% 0} }



/* Light-theme final overrides */
.card, .modal, .toast-inner, .loader{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98)) !important;
}
.tile, .news-card, .featured-item{
  background: rgba(255,255,255,.92) !important;
}
.chip, .badge, .kbd{
  background: rgba(12,18,28,.04) !important;
}
.select, .search{
  background: rgba(255,255,255,.92) !important;
}
.topbar{
  box-shadow: 0 10px 30px rgba(12,18,28,.08);
}

/* ==============================
   UX / Responsive refinements 1.3.0
   ============================== */

:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  --container-pad: clamp(14px, 3vw, 24px);
  --fs-base: clamp(14px, 1.35vw, 16px);
  --fs-h1: clamp(22px, 3.6vw, 34px);
  --fs-h2: clamp(18px, 2.4vw, 22px);
  --fs-h3: clamp(16px, 2.0vw, 18px);
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.06);
}

html{ scroll-behavior: smooth; }
body{ font-size: var(--fs-base); line-height: 1.55; }

.container{padding: var(--container-pad);padding-top: 15px;}

.hero h1{ font-size: var(--fs-h1); letter-spacing: -0.02em; }
.section-title{ font-size: var(--fs-h2); }
.card h3{ font-size: var(--fs-h3); }

/* Tablet-first grids */
.grid-3{ grid-template-columns: 1fr; }
@media (min-width: 700px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Readability & touch targets */
.nav{gap: 8px;overflow-x: auto;-webkit-overflow-scrolling: touch;scrollbar-width: none;overflow: visible;}
.nav::-webkit-scrollbar{ display:none; }
.nav a{ padding: 10px 12px; min-height: 40px; display:inline-flex; align-items:center; border-radius: 999px; }

.topbar{ backdrop-filter: saturate(180%) blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.04); }

.card{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.card:hover{ transform: translateY(-1px); }

/* Modal: comfortable reading + scroll */
.modal-panel{ border-radius: 20px; }
.modal-body{
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 14px;
}
@media (max-width: 520px){
  .modal-panel{
    width: calc(100vw - 18px);
    border-radius: 18px;
  }
  .modal-body{ max-height: calc(100vh - 190px); }
}

/* Focus visibility (accessibility) */
:focus{ outline: none; }
:focus-visible{ outline: 3px solid rgba(242, 119, 0, .35); outline-offset: 2px; }

/* Back to top FAB */
.fab-top{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  color: #111;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.fab-top.is-show{ display: inline-flex; }
.fab-top:hover{ transform: translateY(-1px); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ===== Mobile navigation upgrade: bottom tab bar + cleaner header ===== */
.mb-tabbar{display:none}
@media (max-width: 860px){
  /* Hide long top nav links on mobile; keep burger + logo */
  .site-header .nav{display:none}
  body{padding-bottom:72px}
  .mb-tabbar{
    display:flex;
    position:fixed; left:0; right:0; bottom:0;
    z-index:1200;
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
    backdrop-filter:saturate(180%) blur(14px);
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    gap:6px;
  }
  .mb-tab{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 8px;
    border-radius:14px;
    color:var(--muted);
    text-decoration:none;
    border:1px solid transparent;
    background:transparent;
    font-weight:700;
    font-size:11px;
    line-height:1;
    user-select:none;
  }
  .mb-tab i{font-size:16px}
  .mb-tab:active{transform:scale(.98)}
  .mb-tab.is-active{
    color:var(--ink);
    background:linear-gradient(180deg, rgba(255,122,31,.12), rgba(255,122,31,.06));
    border-color:rgba(255,122,31,.22);
  }
  .mb-tab-menu{cursor:pointer}
  .mb-tab-menu{appearance:none; border:none}
}

/* Tablet: keep header nav, but reduce density */
@media (min-width: 861px) and (max-width: 1120px){
  .nav-links{gap:10px}
  .nav-links a{padding:8px 10px}
}

/* ===== Mobile drawer (hamburger) ===== */
.mm-overlay{
  position:fixed; inset:0;
  background:rgba(17,24,39,.35);
  opacity:0; pointer-events:none;
  transition:opacity .18s ease;
  z-index:1300;
}
.mm-overlay.is-open{opacity:1; pointer-events:auto;}
.mm-drawer{
  position:fixed; top:0; left:0; height:100%;
  width:min(86vw, 360px);
  background:#fff;
  border-right:1px solid var(--line);
  transform:translateX(-105%);
  transition:transform .22s ease;
  z-index:1400;
  display:flex;
  flex-direction:column;
}
.mm-drawer.is-open{transform:translateX(0);}
.mm-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.mm-drawer-title{font-weight:900; letter-spacing:.2px}
.mm-drawer-close{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.mm-drawer-body{padding:10px 8px; overflow:auto}
.mm-list{list-style:none; padding:0; margin:0}
.mm-list li{margin:4px 0}
.mm-list a{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid transparent;
}
.mm-list a:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-list a.is-active{background:rgba(255,122,31,.12); border-color:rgba(255,122,31,.22)}
/* prevent background scroll when drawer open */
body.mm-open{overflow:hidden}

/* Drawer class mapping (project markup) */
.mm-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  backdrop-filter: blur(12px);
}

.mm-head-brand{display:flex; align-items:center; gap:12px; min-width:0}
.mm-logo{
  width:38px; height:38px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(255,122,24,.95), rgba(255,178,74,.95));
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:grid; place-items:center;
  flex:0 0 auto;
}
.mm-logo img{width:100%; height:100%; object-fit:cover}

.mm-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.mm-title .mm-brand{font-weight:900; letter-spacing:.2px; line-height:1.1}
.mm-title .mm-sub{font-size:12px; color:var(--muted); line-height:1.2}

.mm-close{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.86);
  display:grid; place-items:center;
}
.mm-close i{font-size:16px}
.mm-body{padding:10px 8px; overflow:auto}

/* Mobile menu search (mm-search) */
.mm-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(12,18,28,.12);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(12,18,28,.08);
  margin:8px 6px 10px;
}
.mm-search > span{
  width:30px; height:30px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,122,24,.10);
  color:rgba(12,18,28,.72);
  flex:0 0 auto;
}
.mm-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font:inherit;
  font-size:14px;
  letter-spacing:.2px;
  color:var(--text);
}
.mm-search input::placeholder{color:rgba(85,101,122,.85)}
.mm-search:focus-within{
  border-color: rgba(255,122,24,.35);
  box-shadow: var(--focus), 0 10px 28px rgba(12,18,28,.10);
}

/* ===== Drawer hierarchy (menu.v1.0.json) ===== */
.mm-item.is-hide{display:none}
.mm-row{display:flex; align-items:center; gap:8px}
.mm-group-btn{
  flex:1;
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background:transparent;
  color:var(--ink);
  text-align:left;
}
.mm-group-btn:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-group-go{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-size:12px;
  white-space:nowrap;
}
.mm-dot{width:8px; height:8px; border-radius:999px; background:rgba(255,122,31,.9)}
.mm-caret{margin-left:auto; transition:transform .18s ease; opacity:.7}
.mm-item.is-open .mm-caret{transform:rotate(180deg)}
.mm-sublist{list-style:none; padding:6px 0 6px 14px; margin:2px 0 6px 12px; border-left:1px dashed rgba(0,0,0,.14)}
.mm-item:not(.is-open) > .mm-sublist{display:none}
.mm-sublist a{padding:10px 12px; border-radius:12px}
.mm-external{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(0,0,0,.55);
  border:1px dashed rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
}
.mm-external:hover{background:rgba(255,255,255,.75)}

/* Drawer CTA for big sections (anti-corruption) */
.mm-item.mm-cta{margin:6px 0 10px}
.mm-cta-link{
  display:flex; align-items:center; gap:10px;
  padding:14px 12px;
  border-radius:16px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid rgba(255,122,24,.22);
  background: linear-gradient(180deg, rgba(255,122,24,.12), rgba(255,255,255,.92));
  box-shadow: 0 14px 30px rgba(12,18,28,.12);
}
.mm-cta-link i{font-size:16px; width:18px; text-align:center; flex:0 0 18px}
.mm-cta-link span{font-weight:800; letter-spacing:.2px}
.mm-cta-badge{
  margin-left:auto;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(12,18,28,.12);
  background: rgba(255,255,255,.85);
  color:rgba(12,18,28,.72);
  font-weight:700;
}
.mm-cta-link:hover{transform:translateY(-1px)}



/* Desktop hover dropdown for hierarchical menu */
@media (min-width: 980px){
  .nav-tree .dt-item:hover > .dt-popup{display:block;}
  .nav-tree .dt-item:focus-within > .dt-popup{display:block;}
}


/* ==== Specialties page (added v1.6.3) ==== */
.spc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}

/* ==== Anti-corruption hub page ==== */
.ac-hero{background:rgba(255,255,255,.92)}
.ac-hero-grid{display:grid; grid-template-columns: 1.4fr .6fr; gap:16px; align-items:stretch}
.ac-stats{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
.ac-stat{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,122,24,.07);
  padding:12px;
  text-align:center;
}
.ac-stat-num{font-size:22px; font-weight:900; letter-spacing:.2px}
.ac-grid{margin-top:14px; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
@media (max-width: 980px){ .ac-hero-grid{grid-template-columns:1fr} .ac-grid{grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .ac-grid{grid-template-columns: 1fr; } }
.ac-card{
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow1);
  overflow:hidden;
}
.ac-card-head{display:flex; align-items:center; gap:10px; padding:14px 14px 10px}
.ac-ic{width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:rgba(255,122,24,.12); color:rgba(12,18,28,.75)}
.ac-card-head h4{margin:0; font-size:15px}
.ac-card-body{padding:0 14px 14px}
.ac-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.ac-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.92);
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
}
.ac-btn:hover{background:rgba(255,122,24,.08); border-color:rgba(255,122,24,.26)}
.ac-btn i{width:16px; text-align:center}
.ac-subgrid{display:grid; grid-template-columns: 1fr; gap:10px; margin-top:10px}
@media (max-width: 980px){
  .spc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .spc-grid{ grid-template-columns: 1fr; }
}
.spc-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow1);
  transition: box-shadow .15s ease, transform .15s ease;
}
.spc-card:hover{ box-shadow: var(--shadow2); transform: translateY(-1px); }
.spc-img{ aspect-ratio: 16/10; background: rgba(12,18,28,.03); }
.spc-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.spc-title{
  padding:12px 12px 14px;
  font-size:14px;
  line-height:1.25;
  text-align:center;
  color: var(--text);
}



/* Catalog cards (specialties/courses) */
.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{font-size:12px;line-height:1;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06)}
.cat-card{position:relative;display:flex;flex-direction:column;gap:10px;border-radius:18px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.86);box-shadow:0 10px 30px rgba(0,0,0,.06);overflow:hidden;cursor:pointer;transform:translateZ(0);transition:transform .18s ease, box-shadow .18s ease}
.cat-card:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(0,0,0,.10)}
.cat-cover{height:140px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.85))}
.cat-cover img{width:100%;height:100%;object-fit:cover;display:block}
.cat-body{padding:14px 14px 16px}
.cat-title{font-size:15px;font-weight:800;line-height:1.2;margin:0}
.cat-sub{margin-top:6px;color:rgba(245,247,252,.78);font-size:12.5px}
.cat-meta{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;color:rgba(245,247,252,.78);font-size:12px}
.cat-pill{padding:6px 10px;border-radius:999px;background:rgba(255,126,0,.10);border:1px solid rgba(255,126,0,.20)}

/* Card modal blocks */
.modal-block{padding:14px;border-radius:16px;background:rgba(255,255,255,.85);border:1px solid rgba(0,0,0,.06);margin-bottom:12px}
.modal-block h4{margin:0 0 8px;font-size:14px}
.modal-block p{margin:0;color:rgba(245,247,252,.82);line-height:1.55}
.modal-block ul{margin:0;padding-left:18px;color:rgba(245,247,252,.82)}
.gallery-snap{display:flex;gap:10px;overflow:auto;padding-bottom:6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.gallery-snap::-webkit-scrollbar{height:8px}
.gallery-snap::-webkit-scrollbar-thumb{background: var(--overlay-bg);border-radius:999px}
.gallery-snap a{flex:0 0 auto;width:240px;height:150px;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.06);scroll-snap-align:start}
.gallery-snap img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width: 520px){
  .gallery-snap a{width:78vw;height:44vw}
  .cat-cover{height:120px}
}

/* Ensure desktop dropdown doesn't shift layout */
.dt-item{position:relative}
.dt-link{display:flex;align-items:center;gap:8px}
.dt-link-cta{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,122,24,.28) !important;
  background: rgba(255,122,24,.10);
  font-weight:800;
}
.dt-link-cta:hover{background: rgba(255,122,24,.14)}
.dt-item.is-open .dt-link{transform:none}


/* v1.7.1 visual polish: brand palette + cards + full-screen modal */
body{
  background:
    radial-gradient(1100px 680px at 14% -12%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(980px 620px at 92% 0%, rgba(42,99,255,.16), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 60%);
}

.card.card-click{
  position: relative;
  overflow: hidden;
}
.card.card-click::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255,122,24,.25), transparent 60%),
    radial-gradient(420px 240px at 88% 16%, rgba(42,99,255,.20), transparent 60%);
  opacity:.55;
  pointer-events:none;
  filter: blur(0.2px);
}
.card.card-click::after{
  content:"";
  position:absolute; inset:0;
  border:1px solid rgba(255,255,255,.32);
  border-radius: inherit;
  pointer-events:none;
  mix-blend-mode: overlay;
  opacity:.65;
}

.card-compact .card-body{position:relative;z-index:1;padding: 0 10px 15px 10px;}
.card-compact .card-media{ position:relative; z-index:1; }
.card-compact .card-title{font-weight: 900;letter-spacing:.1px;overflow: hidden;line-height: 18px;text-overflow: clip;padding-bottom: 10px;}
.card-compact .card-sub{color: var(--muted);line-height: 16px;font-size: 14px;text-align: justify;}

.card-meta{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.meta-chip{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  color: var(--brandInk);
}
.meta-chip i{ color: var(--brand); }
.meta-chip.is-blue i{ color: var(--brandBlue); }

.tag-chip{
  border: 1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(6px);
}
.tag-chip i{ color: var(--brand); }

/* Search polish */
.mm-search{
  border: 1px solid rgba(12,18,28,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(12,18,28,.08);
}
.mm-search input{
  font-weight: 700;
}
.mm-search .mm-ic{
  background: radial-gradient(220px 120px at 20% 20%, rgba(255,122,24,.22), transparent 55%),
              radial-gradient(220px 120px at 80% 30%, rgba(42,99,255,.18), transparent 55%),
              rgba(255,255,255,.75);
  border: 1px solid rgba(12,18,28,.10);
}

/* Fullscreen modal for card details */
.modal-backdrop{
  z-index: 9999;
  padding: 0 !important;
}
.modal-backdrop .modal{
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  display:flex;
  flex-direction:column;
}
.modal-backdrop .modal-head{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  backdrop-filter: blur(10px);
}
.modal-backdrop .modal-body{
  flex: 1;
  max-height: none !important;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px;
}
.modal-backdrop .modal-foot{
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.modal-hero{
  border:0;
  background: transparent;
  box-shadow:none;
}
.modal-hero-media img{
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12,18,28,.18);
}
@media (max-width: 520px){
  .modal-hero-media img{ border-radius: 14px; }
}

/* ===== Filters (Courses) ===== */
.mm-filters{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.mm-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 26px rgba(12,18,28,.10);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mm-chip .fa-solid{ color: var(--brand); }
.mm-chip:hover{ transform: translateY(-1px); box-shadow: 0 16px 34px rgba(12,18,28,.14); }
.mm-chip.is-active{
  border-color: rgba(255,122,24,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: 0 18px 42px rgba(255,122,24,.18), 0 14px 30px rgba(12,18,28,.12);
}
.mm-chip.is-active .fa-solid{ color: var(--brandBlue); }

@media (max-width: 720px){
  .mm-filters{ justify-content:flex-start; }
}

/* ===== Fullscreen modal actions ===== */
.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.modal-actions .btn{ border-radius: 999px; }
.btn-icon{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* Similar cards inside modal */
.similar-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.similar-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  overflow:hidden;
  cursor:pointer;
  box-shadow: 0 12px 26px rgba(12,18,28,.10);
  transition: transform .12s ease, box-shadow .12s ease;
}
.similar-card:hover{ transform: translateY(-2px); box-shadow: 0 18px 38px rgba(12,18,28,.14); }
.similar-card .thumb{ height: 92px; background: #f3f6ff; }
.similar-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.similar-card .b{ padding: 10px 12px; }
.similar-card h4{ margin:0; font-size: 12px; line-height:1.2; }
.similar-card .small{ margin-top:6px; font-size:11px; opacity:.8; }

@media (max-width: 980px){
  .similar-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .similar-grid{ grid-template-columns: 1fr; }
}


/* ===== UX polish v1.7.3 ===== */
:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  --brandA: var(--brandOrange, #ff7a00);
  --brandB: var(--brandBlue, #1e66ff);
}

/* prevent icon/layout jumps */
i.fa-solid, i.fa-regular, i.fa-brands{
  display:inline-block;
  width:1.15em;
  text-align:center;
  line-height:1;
  vertical-align:-0.12em;
}
.btn-icon i{ width:1.15em; }
.meta-chip i{ width:1.15em; }
.mb-tab i{ width:1.15em; }

/* Fullscreen modal: no margins, always on top */
#modalBackdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  padding:0 !important;
  align-items:stretch !important;
}
#modalBackdrop .modal{
  width:100vw;
  height:100vh;
  border-radius:0 !important;
  max-width:none !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
}
#modalBackdrop .modal-body{
  flex:1;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
body.is-scroll-locked{
  position:fixed;
  width:100%;
  overflow:hidden;
}

/* Modal content layout */
.card-modal{
  padding:14px 14px 18px;
}
.card-modal-hero{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.card-modal-hero .cm-media{
  flex:0 0 108px;
  height:108px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.card-modal-hero .cm-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-modal-hero .cm-body{ min-width:0; flex:1; }
.card-modal-hero .cm-kicker{
  display:flex; flex-wrap:wrap; gap:8px;
  color:rgba(20,20,20,.7);
  font-size:12px;
  margin-bottom:6px;
}
.card-modal-hero .cm-title{
  font-size:18px;
  line-height:1.15;
  margin:0 0 6px;
}
.card-modal-hero .cm-desc{
  font-size:13px;
  line-height:1.45;
  color:rgba(20,20,20,.78);
}
.cm-metas{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.cm-actions{
  display:flex; gap:8px; flex-wrap:wrap;
  margin:12px 0 10px;
}
.cm-actions .btn{ border-radius:14px; }
.cm-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width: 700px){
  .card-modal{ padding:18px 18px 22px; }
  .card-modal-hero .cm-media{ flex-basis:132px; height:132px; border-radius:22px; }
  .card-modal-hero .cm-title{ font-size:22px; }
  .cm-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px){
  .cm-grid{ grid-template-columns: 1.2fr .8fr; }
}

/* small chart bars */
.cm-bars{ display:grid; gap:8px; }
.cm-bar{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:10px 12px;
}
.cm-bar .lbl{ font-size:12px; color:rgba(20,20,20,.75); width:110px; }
.cm-bar .track{
  flex:1; height:10px; border-radius:999px;
  background: var(--overlay-bg);
  overflow:hidden;
}
.cm-bar .fill{ height:100%; border-radius:999px; background:linear-gradient(90deg, var(--brandA), var(--brandB)); }
.cm-bar .val{ font-size:12px; color:rgba(20,20,20,.75); width:42px; text-align:right; }

/* in-modal sheets (no second modal backdrop) */
.cm-sheet{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
}
.cm-sheet.is-open{ display:block; }
.cm-sheet .sh-mask{
  position:absolute; inset:0;
  background: var(--overlay-bg);
}
.cm-sheet .sh-panel{
  position:absolute; left:0; right:0; bottom:0;
  max-height:88vh;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.cm-sheet .sh-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.cm-sheet .sh-head strong{ font-size:14px; }
.cm-sheet .sh-body{
  padding:12px 14px 18px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.cm-mini-list{ display:grid; gap:10px; }
.cm-mini-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.06);
}
.cm-mini-item .ic{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(255,122,0,.20), rgba(30,102,255,.14));
  flex:0 0 auto;
}
.cm-mini-item h4{ margin:0; font-size:13px; line-height:1.2; }
.cm-mini-item p{ margin:4px 0 0; font-size:12px; color:rgba(20,20,20,.72); }


/* Account modal */
.acc-shell{padding:16px;}
.acc-hero{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:14px 12px; border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,122,24,.12), rgba(42,99,255,.10));
}
.acc-brand{display:flex; gap:12px; align-items:center;}
.acc-logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--brandBlue));
  color:#fff;
  box-shadow: 0 12px 30px rgba(16,24,40,.12);
}
.acc-title{font-weight:800; font-size:18px; letter-spacing:.2px;}
.acc-grid{margin-top:14px; display:grid; gap:12px; grid-template-columns:1fr;}
@media (min-width: 720px){ .acc-grid{grid-template-columns:repeat(3, 1fr);} }
.acc-note{margin-top:12px;}



/* ===== v1.8.1 UX polish ===== */
:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  --spcCoverH: 110px;
}

.mb-tab i, .btn i, .meta-chip i, .dt-link i{
  width: 1.15em;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.card-media{
  aspect-ratio: 16 / 10;
  overflow:hidden;
  border-radius: var(--r3);
  background: linear-gradient(135deg, rgba(255,122,24,.10), rgba(72,162,255,.08));
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Specialties: stronger card identity */
.spc-card{
  position:relative;
  text-align:left;
  border:1px solid rgba(255,122,24,.18);
  box-shadow: var(--shadow2);
}
.spc-card .card-kicker{
  font-weight: 700;
  letter-spacing: .2px;
}
.spc-card .card-title{
  font-size: 15px;
  line-height: 1.25;
}
.spc-card .card-sub{
  margin-top: 6px;
  color: rgba(15,20,26,.78);
}
.spc-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: var(--r3);
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(600px 220px at 90% 0%, rgba(72,162,255,.10), transparent 55%);
  opacity:.55;
}

/* Courses: slightly different accent */
.crs-card{
  border:1px solid rgba(72,162,255,.18);
}

/* News KPI grid: responsive, no overflow */
.kpi-grid{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  min-width:0;
}

/* News & text wrapping safeguards */
.news-card, .news-card *{
  min-width:0;
}
.news-card h3, .news-card p{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Swiper: allow horizontal scroll inside viewport only (no body overflow) */
.swiper{ max-width:100%; min-width:0; }
.swiper-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}
.swiper-track{
  display:flex;
  gap: 12px;
  padding: 2px 2px 10px;
  transition:none;
  transform:none !important;
}
.swiper-slide{
  flex: 0 0 clamp(260px, 86vw, 420px);
  min-width:auto;
  scroll-snap-align:start;
}

/* Ensure no accidental horizontal page scroll */
html, body{ overflow-x:hidden; }
.section, .card, .grid{ max-width:100%; min-width:0; }


/* Desktop nav: avoid layout shift on hover */
.dt-item, .dt-link{ box-sizing:border-box; }
.dt-item .dt-link{ border:1px solid transparent; }
.dt-item:hover .dt-link, .dt-item.is-open .dt-link{ border-color: rgba(255,122,24,.22); }

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:720px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.75);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:800;font-size:22px;line-height:1.15}
.home-logo-sub{text-align:center;margin-top:10px;color:var(--muted);font-size:13px}

/* Hub pages */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
.hub-card{display:flex;align-items:stretch;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 10px 26px rgba(0,0,0,.10);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background: var(--overlay-bg);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}

/* HUB: search / filters / sort */
.hub-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.hub-search{display:flex;align-items:center;gap:10px;flex:1 1 260px;min-width:220px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-search i{color:var(--muted)}
.hub-search-input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-weight:700;color:inherit}
.hub-search-clear{border:0;background:transparent;color:var(--muted);width:32px;height:32px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.hub-search-clear:hover{background: var(--overlay-bg);color:inherit}

.hub-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start}
.hub-filter{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.60);padding:8px 10px;border-radius:999px;font-weight:800;color:inherit}
.hub-filter i{color:var(--brand-2)}
.hub-filter span{font-size:12px;line-height:1}
.hub-filter:hover{background:rgba(255,255,255,.78)}
.hub-filter.is-active{background: var(--overlay-bg);border-color:rgba(0,0,0,.88);color:#fff}
.hub-filter.is-active i{color:#fff}

.hub-sort{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-sort i{color:var(--muted)}
.hub-sort-select{border:0;outline:0;background:transparent;font-weight:800}

/* HUB cover styles: always look like a cover even without image */
.hub-cover{position:relative;background:linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02))}
.hub-cover::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);mix-blend-mode:overlay;pointer-events:none}
.hub-cover i{position:relative;z-index:1;font-size:20px}
.hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,127,80,.22), rgba(255,255,255,.00))}
.hub-cover.theme-2{background:linear-gradient(135deg, rgba(0,173,181,.18), rgba(255,255,255,.00))}
.hub-cover.theme-3{background:linear-gradient(135deg, rgba(99,102,241,.18), rgba(255,255,255,.00))}
.hub-cover.theme-4{background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(255,255,255,.00))}
.hub-cover.theme-5{background:linear-gradient(135deg, rgba(245,158,11,.18), rgba(255,255,255,.00))}
.hub-cover.theme-6{background:linear-gradient(135deg, rgba(236,72,153,.16), rgba(255,255,255,.00))}

/* HUB empty state */
.hub-empty{padding:16px;border-radius:18px;background:rgba(255,255,255,.78);border:1px dashed rgba(0,0,0,.12);text-align:center}
.hub-empty .h3{margin:0 0 6px}
.hub-empty .muted{margin:0}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:950;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted)}

/* Hub */
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:880px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08);transition:transform .12s ease, box-shadow .12s ease;text-decoration:none;color:inherit}
.hub-card:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.10)}
.hub-cover{width:54px;height:54px;border-radius:14px;background: var(--overlay-bg);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:900;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Feedback floating button */
.feedback-fab{position:fixed;right:16px;bottom:88px;z-index:2200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;background:linear-gradient(90deg,var(--brand-2),var(--brand-3));color:#111;border:0;box-shadow:0 16px 36px rgba(0,0,0,.18);font-weight:900}
.feedback-fab i{font-size:16px}
@media (min-width:980px){.feedback-fab{bottom:18px}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:20px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:6px;color:var(--muted)}

/* Hub cards */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 12px 34px rgba(0,0,0,.10);border:1px solid rgba(0,0,0,.06);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background: var(--overlay-bg);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Fixed feedback button */
.feedback-fab{position:fixed;right:16px;bottom:92px;z-index:1200;display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.86);box-shadow:0 14px 40px rgba(0,0,0,.16);backdrop-filter:blur(10px);cursor:pointer}
.feedback-fab i{color:var(--brand-2)}
@media (min-width:960px){.feedback-fab{bottom:18px;}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;color:var(--muted);margin-top:8px}

/* Feedback FAB */
.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:9999}
@media (min-width: 980px){.feedback-fab{bottom:20px}}
.feedback-fab .fab-btn{display:inline-flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.88);backdrop-filter:blur(10px);box-shadow:0 14px 32px rgba(0,0,0,.16);font-weight:800}
.feedback-fab .fab-btn i{color:var(--brand-2)}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted);font-size:14px}

/* Floating feedback */
.feedback-fab{position:fixed;right:16px;bottom:90px;z-index:1200;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.9);box-shadow:0 12px 28px rgba(0,0,0,.18);backdrop-filter:blur(8px);display:flex;align-items:center;gap:10px;font-weight:800}
.feedback-fab i{color:var(--brand-2)}
@media (min-width: 900px){.feedback-fab{bottom:24px}}

.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:1200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;background:linear-gradient(135deg,var(--brand-2),var(--brand-1));color:#fff;text-decoration:none;box-shadow:0 18px 40px rgba(0,0,0,.22)}
.feedback-fab i{font-size:16px}
.feedback-fab span{font-weight:800;font-size:13px;white-space:nowrap}
@media (min-width: 980px){.feedback-fab{bottom:20px}}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-desc{font-size:13px}
}


/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(245,247,252,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}


/* Drawer HUB link (no expansion; deep navigation happens on hub pages) */
.mm-link-hub{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
}
.mm-link-hub:hover{ background: rgba(255,255,255,.55); }
.mm-link-hub .mm-ico{ opacity:.9; }
.mm-link-hub .mm-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mm-link-hub .mm-title{ font-weight:800; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-meta{ font-size:12px; opacity:.72; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-go-ico{ margin-left:auto; opacity:.65; }

/* HUB: cover themes and stable sizing (обложки) */
.hub-card .hub-cover{height:140px;border-radius:16px;margin:12px;overflow:hidden;display:grid;place-items:center}
@media (max-width: 920px){.hub-card .hub-cover{height:124px;margin:10px}}
@media (max-width: 520px){.hub-card .hub-cover{height:118px;margin:10px}}
.hub-card .hub-cover img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.02)}
.hub-card .hub-cover i{font-size:42px;color:rgba(255,255,255,.92);text-shadow:0 18px 32px rgba(0,0,0,.35)}
.hub-card .hub-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);}
.hub-card .hub-cover i, .hub-card .hub-cover img{position:relative;z-index:1}

.hub-card .hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,114,76,.95), rgba(255,197,116,.92));}
.hub-card .hub-cover.theme-2{background:linear-gradient(135deg, rgba(20,35,60,.95), rgba(255,114,76,.85));}
.hub-card .hub-cover.theme-3{background:linear-gradient(135deg, rgba(46,125,50,.92), rgba(0,188,212,.82));}
.hub-card .hub-cover.theme-4{background:linear-gradient(135deg, rgba(103,58,183,.92), rgba(244,67,54,.82));}
.hub-card .hub-cover.theme-5{background:linear-gradient(135deg, rgba(0,121,107,.92), rgba(255,235,59,.82));}
.hub-card .hub-cover.theme-6{background:linear-gradient(135deg, rgba(1,87,155,.92), rgba(255,152,0,.82));}

/* HUB: filters look */
.hub-filters{display:flex;flex-wrap:wrap;gap:8px}
.hub-filter{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.74);box-shadow:0 10px 22px rgba(0,0,0,.08);font-weight:800}
.hub-filter i{opacity:.9}
.hub-filter.is-active{background:rgba(255,114,76,.14);border-color:rgba(255,114,76,.28)}
.hub-sort{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.74);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08)}
.hub-sort-select{border:0;background:transparent;font-weight:900;outline:0}


#topNav{justify-content:center}


/* === Topbar layout fixes (desktop) === */
.topbar-layout{
  display:flex;
  align-items:center;
  gap:14px;
}
.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.topbar-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.topbar-brand img{
  display:block;
}
.topbar-account{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
}
.topbar-row--nav{
  display:flex;
  justify-content:center;
}
#topNavFallback{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
#desktopMenuTree{
  width:100%;
  display:flex;
  justify-content:center;
}
#desktopMenuTree .menu-root{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

/* Make desktop nav truly centered in viewport (if both left/right blocks differ) */
@media (min-width: 1024px){
  .topbar-layout{ position:relative; }
  .topbar-row--nav{
    width:100%;
    position:relative;
  }
  /* If fallback is visible, center it; if tree is visible, center tree */
  #topNavFallback, #desktopMenuTree{
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 25px;
    margin-top: 10px;
  }
}


/* DocsBinder v1.0 */
.docs-block{ margin-top:16px; }
.docs-block__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.docs-block__title{ margin:0; font-size:18px; }
.docs-block__tools .input{ min-width:240px; }

.doc-card{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--card); margin-bottom:10px; }
.doc-card__left{ display:flex; align-items:center; gap:12px; min-width:0; }
.doc-ic{ width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background: var(--overlay-bg); flex:0 0 auto; }
.doc-meta{ min-width:0; }
.doc-title{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-card__right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

.pdf-modal{ position:fixed; inset:0; z-index:9999; display:none; }
.pdf-modal.is-open{ display:block; }
.pdf-modal__backdrop{ position:absolute; inset:0; background: var(--overlay-bg); }
.pdf-modal__panel{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(1100px, 94vw); height:min(80vh, 780px); background:var(--card); border-radius:16px; border:1px solid var(--line); overflow:hidden; display:flex; flex-direction:column; }
.pdf-modal__head{ padding:10px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pdf-modal__title{ font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:50vw; }
.pdf-modal__actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pdf-modal__body{ flex:1 1 auto; }
.pdf-modal__body iframe{ width:100%; height:100%; border:0; background:#fff; }
body.modal-open{ overflow:hidden; }

@media (max-width: 720px){
  .doc-title,.doc-sub{ max-width:70vw; }
  .pdf-modal__panel{ height:min(86vh, 900px); }
  .pdf-modal__title{ max-width:44vw; }
}


/* Home (JSON-driven) */
.home-hero{padding:28px 0}
.home-hero__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-hero__badge{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-hero__badge .dot{width:8px;height:8px;border-radius:50%;background:var(--brand-2)}
.home-hero__title{margin:14px 0 0;font-size:34px;line-height:1.08;font-weight:900;letter-spacing:-.02em}
@media (min-width:900px){.home-hero__title{font-size:44px}}
.home-hero__sub{margin:10px 0 0;color:var(--muted);max-width:64ch}
.home-hero__actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background: rgb(0 94 168);color:rgba(255,255,255,.92);text-decoration:none}
.btn:hover{border-color:rgba(255,122,24,.35);background:rgba(255,122,24,.08)}
.btn-sm{padding:8px 12px;border-radius:12px;font-size:13px}
.btn-primary{border-color: rgb(240 137 28);background: white;color: rgb(240 135 24);}
.btn-ghost{background: rgb(0 0 0 / 64%);margin-top: 15px;margin-bottom: 10px;}

.home-import{padding:18px 0}
.home-import__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-import__head{padding:16px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-import__k{font-weight:900;font-size:18px}
.home-import__p{margin-top:8px;color:var(--muted);max-width:90ch}
.home-import__meta{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.home-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,122,24,.14);border:1px solid rgba(255,122,24,.25);font-size:12px}
.home-muted{color:var(--muted);font-size:12px}
.home-import__actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}

.home-import__grid{margin-top:12px;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px}
@media (min-width:860px){.home-import__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.home-card{display:flex;gap:12px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.home-card__ic{width:38px;height:38px;border-radius:14px;border:1px solid rgba(255,122,24,.25);background:rgba(255,122,24,.10);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.home-card__t{font-weight:800}
.home-card__d{margin-top:6px;color:var(--muted);font-size:13px;line-height:1.35}


/* ===== Home v1.3 sections (events/tabs/education/projects/partners/next) ===== */
.home-section{margin-top:28px}
.home-section__head{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 14px}
.home-lead{color:var(--muted);max-width:920px;margin:0 0 16px;line-height:1.55}

.home-events__grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
@media (max-width: 960px){.home-events__grid{grid-template-columns:1fr}}
.home-slider{position:relative}
.home-slider__track{display:flex;gap:16px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.home-slider__track::-webkit-scrollbar{height:8px}
.home-slider__track::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}
.home-slider__track>*{scroll-snap-align:start;flex:0 0 min(520px, 92%)}
.home-slider__nav{position:absolute;right:6px;top:-42px;display:flex;gap:8px}
@media (max-width: 560px){.home-slider__nav{position:static;margin-top:10px}}

.home-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;backdrop-filter: blur(8px)}
.home-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.home-card__title{font-weight:800;letter-spacing:-.01em}
.home-card__meta{color:var(--muted);font-size:13px;margin-top:6px}
.home-card__text{margin-top:10px;color:rgba(255,255,255,.9);line-height:1.5}
.home-card__actions{margin-top:14px;display:flex;gap:10px}

.theme-red{background:linear-gradient(135deg, rgba(193,18,31,.35), rgba(255,255,255,.04));border-color:rgba(193,18,31,.35)}
.theme-blue{background:linear-gradient(135deg, rgba(30,58,138,.35), rgba(255,255,255,.04));border-color:rgba(30,58,138,.35)}
.theme-dark{background:linear-gradient(135deg, rgba(0,0,0,.55), rgba(255,255,255,.03));border-color:rgba(255,255,255,.10)}
.theme-light{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}

.tabs-ui{background: var(--overlay-bg);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px}
.tabs-ui__bar{display:flex;gap:8px;flex-wrap:wrap;padding:4px}
.tabs-ui__tab{appearance:none;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:inherit;border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer}
.tabs-ui__tab.is-active{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18)}
.tabs-ui__panes{padding:10px 4px 4px}
.tabs-ui__pane{display:none}
.tabs-ui__pane.is-active{display:block}

.home-cardlist{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 760px){.home-cardlist{grid-template-columns:1fr}}

.home-news-card{display:grid;grid-template-columns:160px 1fr;gap:12px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden}
@media (max-width: 560px){.home-news-card{grid-template-columns:1fr}}
.home-news-card__media{background: var(--overlay-bg);min-height:110px}
.home-news-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-news-card__body{padding:12px}
.home-news-card__date{font-size:12px;color:var(--muted);margin-bottom:6px}
.home-news-card__title{font-weight:800;line-height:1.2}
.home-news-card__text{margin-top:6px;color:rgba(255,255,255,.88);line-height:1.45}
.home-more{margin-top:14px}

.edu-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 1020px){.edu-grid{grid-template-columns:repeat(2, 1fr)}}
@media (max-width: 640px){.edu-grid{grid-template-columns:1fr}}
.edu-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);min-height:220px}
.edu-card.is-2{grid-column:span 2}
@media (max-width: 640px){.edu-card.is-2{grid-column:span 1}}
.edu-card__bg{position:absolute;inset:0;opacity:.35}
.edu-card__bg img{width:100%;height:100%;object-fit:cover}
.edu-card__inner{position:relative;padding:16px}
.edu-card__title{font-weight:900;font-size:18px;letter-spacing:-.01em}
.edu-card__text{margin-top:8px;color:rgba(255,255,255,.9);line-height:1.5}
.edu-facts{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.edu-fact{background: var(--overlay-bg);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px}
.edu-fact__v{font-weight:900;font-size:18px}
.edu-fact__l{font-size:12px;color:var(--muted);margin-top:2px}
.edu-card__actions{margin-top:12px}

.home-card--project{padding:0;overflow:hidden}
.home-card--project .home-card__media{height:170px;background:rgba(0,0,0,.25)}
.home-card--project .home-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-card--project .home-card__top{padding:14px 14px 0}
.home-card--project .home-card__text{padding:0 14px 14px}

.partners-logos{display:grid;grid-template-columns:repeat(6, 1fr);gap:12px}
@media (max-width: 1020px){.partners-logos{grid-template-columns:repeat(4, 1fr)}}
@media (max-width: 640px){.partners-logos{grid-template-columns:repeat(2, 1fr)}}
.partner-logo{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;min-height:74px;text-decoration:none;color:inherit;overflow:hidden}
.partner-logo img{max-width:86%;max-height:46px;object-fit:contain;display:block;filter:grayscale(1) contrast(1.05);opacity:.9}
.partner-logo:hover{border-color:rgba(255,255,255,.18);transform:translateY(-1px)}

.next-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 960px){.next-grid{grid-template-columns:1fr}}
.next-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);min-height:160px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04)}
.next-card__bg{position:absolute;inset:0;opacity:.35}
.next-card__bg img{width:100%;height:100%;object-fit:cover}
.next-card__title{position:relative;padding:16px;font-weight:900;font-size:20px;letter-spacing:-.01em}



/* ===== Home (Moscow Polytech inspired blocks) ===== */
.home-block{margin-top:24px}
.home-block__heading{margin:16px 0}
.offset-after-hero{margin-top:16px}
.events__container{width:100%}
.events__row{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}
@media (max-width: 900px){.events__row{grid-template-columns:1fr}}
.events__slider{position:relative;border-radius:20px;overflow:hidden}
.nav-arrows{display:flex;gap:10px;position:absolute;right:12px;bottom:12px;z-index:2}
.nav-arrows__button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(8px);cursor:pointer}
.nav-arrows__button:hover{transform:translateY(-1px)}
.nav-arrows.is-red .nav-arrows__button{border-color:rgba(193,18,31,.25)}
.card-event{position:relative;border-radius:20px;overflow:hidden;min-height:240px;color:#fff;background:#0A2647}
.card-event.is-red{background:#C1121F}
.card-event.is-white{background:#fff;color:#111}
.card-event .video,.card-event__bg-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.card-event__inner{position:relative;z-index:1;padding:18px}
.card-event__date{opacity:.9;margin-bottom:10px}
.card-event__heading{margin:0 0 10px 0}
.card-event__description{max-width:56ch;opacity:.95}
.card-event__link{position:absolute;inset:0;z-index:2}
.button-group{display:flex;gap:10px;margin-top:14px}
.btn.text-button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:inherit;text-decoration:none}
.card-event.is-white .btn.text-button{border-color:rgba(0,0,0,.15);background:rgba(0,0,0,.04)}
.bloat{display:none}

/* Tabs */
.tabs{display:flex;gap:16px;flex-wrap:wrap}
.tabs .h1{cursor:pointer;opacity:.6}
.tabs .h1.active{opacity:1}
.tabs__pane{display:none}
.tabs__pane.active{display:block}
.card-news-small-list{display:grid;gap:14px}
.card-news-small-list.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 900px){.card-news-small-list.cols-2{grid-template-columns:1fr}}
.card-news-small{position:relative;border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px;min-height:120px}
.card-news-small__link{position:absolute;inset:0}
.card-news-small__meta{opacity:.7;margin-bottom:8px}
.card-news-small__title{margin:0 0 8px 0}
.card-news-small__text{opacity:.9}

/* Generic cards */
.card-generic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width: 900px){.card-generic-grid{grid-template-columns:1fr}}
.card-generic{border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px}

/* Education */
.card-education-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-education-group{grid-template-columns:1fr}}
.card-education{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff}
.card-education.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-education .video,.card-education .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25}
.card-education__inner{position:relative;z-index:1;padding:16px}
.card-education__head{display:flex;align-items:flex-start;gap:10px}
.card-education__toggle{width:38px;height:38px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.85);cursor:pointer}
.card-education.is-red .card-education__toggle{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.12)}
.card-education__title{margin:0}
.card-education__roll{margin-top:12px}
.card-education__numerical-item-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.numerical-item__number{font-weight:700}

/* Partners */
.section-partners{border-radius:22px;padding:22px}
.bg-white{background:#fff}
.section-partners__heading{margin:0 0 10px 0}
.section-partners__button{margin-bottom:10px}
.slider-logos-wrap{position:relative}
.slider-logos .swiper-wrapper{display:flex;transition:transform 350ms ease}
.slider-logos .swiper-slide{flex:0 0 25%;padding:8px}
@media(max-width:900px){.slider-logos .swiper-slide{flex:0 0 50%}}
.partner-logo{display:flex;align-items:center;justify-content:center;border-radius:18px;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:84px;padding:12px;text-decoration:none;color:inherit}
.partner-logo.is-highlight{border-color:rgba(193,18,31,.35)}
.partner-logo img{max-width:100%;max-height:48px;object-fit:contain}

/* Next step */
.card-panel-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-panel-group{grid-template-columns:1fr}}
.card-panel{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:180px}
.card-panel.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-panel .video,.card-panel .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.22}
.card-panel__inner{position:relative;z-index:1;padding:18px;display:flex;align-items:flex-end;min-height:180px}
.card-panel__title{margin:0}
.card-panel__link{position:absolute;inset:0}


/* === Home: Map / Feedback / Director / News Columns (v1.5.2-p2) === */
.home-map{display:grid;gap:14px;grid-template-columns:1.5fr .9fr;align-items:stretch}
.home-map__frame{min-height:340px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__iframe{width:100%;height:100%;min-height:340px;border:0;display:block}
.home-map__placeholder{height:100%;min-height:340px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:18px}
.home-map__aside{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__row{margin-bottom:12px}
.home-map__row .k{font-size:12px;opacity:.75;margin-bottom:4px}
.home-map__row .v{font-size:14px}
@media (max-width: 900px){.home-map{grid-template-columns:1fr}}

.home-feedback{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-feedback .grid{display:grid;gap:12px;grid-template-columns:1fr 1fr}
.home-feedback .field{display:flex;flex-direction:column;gap:6px}
.home-feedback .field--full{grid-column:1/-1}
.home-feedback .label{font-size:12px;opacity:.8}
.home-feedback input,.home-feedback select,.home-feedback textarea{border-radius:12px}
.home-feedback__foot{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:12px;flex-wrap:wrap}
.home-feedback__status{margin-top:10px;opacity:.85}
@media (max-width: 700px){.home-feedback .grid{grid-template-columns:1fr}}

.home-director{display:grid;gap:16px;grid-template-columns:160px 1fr;align-items:center;border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-director__media img{width:160px;height:160px;object-fit:cover;border-radius:18px;display:block}
.home-director__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
@media (max-width: 700px){.home-director{grid-template-columns:1fr}.home-director__media img{width:100%;height:220px}}

.home-news-columns{display:grid;gap:14px;grid-template-columns:repeat(3,1fr)}
.home-news-col__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.home-news-col__body{display:grid;gap:10px}
@media (max-width: 1000px){.home-news-columns{grid-template-columns:1fr}}



/* ===== Desktop Left Sidebar (product navigation) ===== */
.layout-shell{ display:block; }
.desktop-sidebar{ display:none; }

@media (min-width: 1024px){
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
  }

  /* Fix container width behavior */
  .layout-shell > main.container{
    flex: 1 1 auto;
    min-width: 0;
  }

  .desktop-sidebar{
    display:block;
    position: sticky;
    top: 47px;
    width: 320px;
    flex: 0 0 320px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    margin: 30px 0px 0px 30px;
  }

  .desktop-sidebar .ds-head{
    background:#ffffff;
    border-radius: 20px;
    padding: 14px 14px 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    margin-bottom: 10px;
  }
  .desktop-sidebar .ds-title{
    font-weight: 800;
    font-size: 14px;
    color: #121826;
    letter-spacing: .2px;
  }
  .desktop-sidebar .ds-sub{
    margin-top: 2px;
    font-size: 12px;
    color: rgba(18,24,38,.60);
  }

  .desktop-sidebar .ds-nav{
    background:#ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    padding: 10px;
    overflow:auto;
    max-height: calc(100vh - 32px - 84px);
  }

  .ds-nav .side-sec{ padding: 6px 6px 10px; }
  .ds-nav .side-sec + .side-sec{ border-top: 1px solid rgba(0,0,0,.06); }

  .ds-nav .side-sec-h{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 10px 6px;
    font-weight: 800;
    font-size: 12px;
    color:#121826;
    text-transform: none;
  }
  .ds-nav .side-sec-h i{
    width: 18px;
    text-align:center;
    color: rgba(18,24,38,.75);
  }

  .ds-nav .side-sec-b{
    display:flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 4px 10px;
  }

  .ds-nav a.side-link{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 14px;
    text-decoration:none;
    color:#121826;
    border: 1px solid rgba(0,0,0,.06);
    background: var(--overlay-bg);
    transition: transform .08s ease, background .12s ease, border-color .12s ease;
  }
  .ds-nav a.side-link i{
    width: 18px;
    text-align:center;
    color: rgba(18,24,38,.75);
  }
  .ds-nav a.side-link:hover{
    background: var(--overlay-bg);
    border-color: rgba(0,0,0,.10);
    transform: translateY(-1px);
  }
  .ds-nav a.side-link.is-active{
    background: rgba(17, 24, 39, .06);
    border-color: rgba(17, 24, 39, .16);
  }
  .ds-nav a.side-link.is-active span{
    font-weight: 800;
  }
}


/* KARETA PATCH v1.5.9: hide desktop sidebar header (ds-head) */
.desktop-sidebar .ds-head{display:none !important;}



/* ===== Visual distinction: compact blocks containing documents/external resources ===== */
.db-block.db-block-compact.db-block--links{
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.db-block.db-block-compact.db-block--links .db-sub{
  opacity: .95;
  color: #474747;
  font-weight: 700;
}
.db-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--overlay-bg);
  text-decoration: none;
}
.db-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}
.db-link--external::after{ content: "↗"; font-size: 12px; opacity: .85; }
.db-link--pdf::before{ content: "PDF"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--doc::before{ content: "DOC"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--xls::before{ content: "XLS"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.filters .chip.is-active{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}



/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--overlay-bg);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgba(255,255,255,.88);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--overlay-bg);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgba(255,255,255,.88);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
a.tile:before {
    content: "";
    position: absolute;
    inset: -40px -60px auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 145, 0, .26), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

a.tile {
    position: relative;
    overflow: hidden;
}


nav#desktopSidebarMenu {}

a.side-link:before {
    content: "";
    position: absolute;
    inset: 0px -112px 0 -12px;
    width: 138px;
    height: 190px;
    background: radial-gradient(circle at 30% 30%, rgb(26 110 177 / 17%), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

a.side-link {
    position: relative;
    overflow: hidden;
}



/* =========================================================
   Teaching staff page (#/teaching-staff)
   Scoped + safe: targets only elements used on this page
   ========================================================= */

:root{
  --overlay-bg: rgba(245,247,252,.78);
  --overlay-bg-strong: rgba(245,247,252,.82);

  --ts-bg: rgba(255,255,255,.06);
  --ts-br: rgba(255,255,255,.12);
  --ts-br-2: rgba(255,255,255,.18);
  --ts-txt: rgba(255,255,255,.92);
  --ts-muted: rgba(255,255,255,.65);
  --ts-accent: rgba(255,140,0,.95);
  --ts-shadow: 0 12px 34px rgba(0,0,0,.22);
}

/* Card “frame” refinement */
.db-block[aria-label="Педагогический состав"] .card.card-pad{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--ts-br);
  box-shadow: var(--ts-shadow);
  border-radius: 18px;
}

/* Head grid inside hero */
.db-block[aria-label="Педагогический состав"] .ac-hero-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

/* Hero badge */
.db-block[aria-label="Педагогический состав"] .meta-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--ts-br);
  border-radius: 999px;
  background: var(--overlay-bg);
  color: var(--ts-muted);
  font-size: 12px;
  line-height: 1;
}

.db-block[aria-label="Педагогический состав"] .meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.db-block[aria-label="Педагогический состав"] .chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--ts-br);
  background: var(--overlay-bg);
  color: rgb(0 0 0 / 65%);
  font-size: 12px;
}

/* Hero art */
.db-block[aria-label="Педагогический состав"] .ac-hero-art{
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--ts-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.10));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.db-block[aria-label="Педагогический состав"] .ac-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--ts-br);
  background: var(--overlay-bg);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  font-size: 22px;
}

/* Divider */
.db-block[aria-label="Педагогический состав"] .hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ts-br-2), transparent);
  margin: 14px 0;
}

/* Inputs (search/select) – only if your global .input/.select exist, this improves them */
#tsSearch.input,
#tsCategory.select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgb(0 0 0 / 12%);
  /* background: rgb(0 0 0); */
  color: rgb(0 0 0 / 92%);
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
#tsSearch.input::placeholder{ color: rgba(255,255,255,.45); }

#tsSearch.input:focus,
#tsCategory.select:focus{
  border-color: rgba(255,140,0,.55);
  box-shadow: 0 0 0 4px rgba(255,140,0,.16);
}

/* Buttons (optional refinement) */
#tsReset.btn{
  border-radius: 14px;
  border: 1px solid var(--ts-br);
  background: var(--overlay-bg);
  color: var(--ts-txt);
  padding: 10px 12px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#tsReset.btn:hover{
  background: var(--overlay-bg);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

/* Table container */
#tsTable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--ts-br);
  background: var(--overlay-bg);
}

/* Sticky header */
#tsTable thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,.86);
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ts-br);
  padding: 12px 12px;
  white-space: nowrap;
}

/* Cells */
#tsTable tbody td{
  padding: 12px 12px;
  color: rgb(0 0 0 / 86%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: top;
}
#tsTable tbody tr:nth-child(odd) td{
  background: rgba(255,255,255,.03);
}
#tsTable tbody tr:hover td{
  background: rgba(255,140,0,.07);
}

/* Category column emphasis (4th column) */
#tsTable tbody td:nth-child(4){
  color: rgb(0 0 0);
  font-size: 13px;
}
#tsTable tbody td:nth-child(4):not(:empty){
  position: relative;
}
#tsTable tbody td:nth-child(4):not(:empty)::before{
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  margin-right: 8px;
  transform: translateY(-1px);
  background: rgba(255,140,0,.85);
  box-shadow: 0 0 0 3px rgba(255,140,0,.12);
}

/* Make table text more compact on small screens */
@media (max-width: 880px){
  .db-block[aria-label="Педагогический состав"] .ac-hero-grid{
    grid-template-columns: 1fr;
  }
  .db-block[aria-label="Педагогический состав"] .ac-hero-art{
    width: 78px; height: 78px; min-width: 78px;
    justify-self: start;
  }
}

/* Mobile: transform table into row-cards */
@media (max-width: 640px){
  #tsTable thead{ display:none; }
  #tsTable, #tsTable tbody, #tsTable tr, #tsTable td{ display:block; width:100%; }
  #tsTable tbody tr{
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  #tsTable tbody td{
    border-bottom: none;
    padding: 10px 12px;
    background: transparent !important;
  }
  #tsTable tbody td::before{
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.55);
    margin-bottom: 4px;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  /* add spacing between pseudo-cards */
  #tsTable tbody tr{
    background: rgba(255,255,255,.03);
    border-radius: 16px;
    margin: 10px 0;
    border: 1px solid rgba(255,255,255,.09);
    overflow: hidden;
  }
}

/* Optional: smooth scrollbars for table wrapper if present */
.db-block[aria-label="Педагогический состав"] .card.card-pad > div[style*="overflow:auto"]{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.db-block[aria-label="Педагогический состав"] .card.card-pad > div[style*="overflow:auto"]::-webkit-scrollbar{
  height: 10px;
}
.db-block[aria-label="Педагогический состав"] .card.card-pad > div[style*="overflow:auto"]::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}



.db-block[aria-label="Библиотека"] .card.card-pad{
  border: 1px solid var(--lib-br);
  border-radius: 18px;
  box-shadow: var(--lib-shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
}

.db-block[aria-label="Библиотека"] .ac-hero{
  position: relative;
  overflow: hidden;
}

.db-block[aria-label="Библиотека"] .ac-hero::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(255,140,0,.20), transparent 70%);
  pointer-events:none;
}

.db-block[aria-label="Библиотека"] .ac-hero-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.db-block[aria-label="Библиотека"] .h3{
  color: var(--lib-txt);
}

.db-block[aria-label="Библиотека"] .muted{
  color: var(--lib-muted);
}

.db-block[aria-label="Библиотека"] .meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.db-block[aria-label="Библиотека"] .chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--lib-br);
  background: var(--overlay-bg);
  color: var(--lib-muted);
  font-size: 12px;
  line-height: 1;
}

.db-block[aria-label="Библиотека"] .ac-hero-art{
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--lib-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.04));
  display:grid;
  place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.db-block[aria-label="Библиотека"] .ac-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--lib-br);
  background: var(--overlay-bg);
  display:grid;
  place-items:center;
  color: rgba(0,0,0,.82);
  font-size: 22px;
}

.db-block[aria-label="Библиотека"] .hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lib-br2), transparent);
  margin: 14px 0;
}

/* Tiles refinement (only inside Library page) */
.db-block[aria-label="Библиотека"] .tile{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.72);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.db-block[aria-label="Библиотека"] .tile:hover{
  transform: translateY(-1px);
  border-color: rgba(255,140,0,.28);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.db-block[aria-label="Библиотека"] .tile--soft{
  background: rgba(255,255,255,.62);
}

.db-block[aria-label="Библиотека"] .tile h3{
  margin: 0 0 8px;
  color: var(--lib-txt);
}

.db-block[aria-label="Библиотека"] .tile p{
  margin: 0;
  color: var(--lib-muted);
  line-height: 1.5;
}

/* Lists inside tiles */
.db-block[aria-label="Библиотека"] .list{
  margin: 0;
  padding-left: 18px;
  color: var(--lib-muted);
}
.db-block[aria-label="Библиотека"] .list li{
  margin: 6px 0;
}
.db-block[aria-label="Библиотека"] .mono{
  color: rgba(245,247,252,.82);
}

/* Responsive */
@media (max-width: 880px){
  .db-block[aria-label="Библиотека"] .ac-hero-grid{
    grid-template-columns: 1fr;
  }
  .db-block[aria-label="Библиотека"] .ac-hero-art{
    width: 78px;
    height: 78px;
    min-width: 78px;
    justify-self: start;
  }
}

/* =========================================================
   Methodical Service page (#/methodical-service)
   Scoped: .ms-page
   ========================================================= */

.ms-page{
  --ms-br: rgba(0,0,0,.12);
  --ms-br2: rgba(0,0,0,.18);
  --ms-txt: rgba(0,0,0,.92);
  --ms-muted: rgba(245,247,252,.78);
  --ms-bg: rgba(255,255,255,.92);
  --ms-bg2: rgba(255,255,255,.86);
  --ms-soft: rgba(0,0,0,.03);
  --ms-accent: rgba(255,140,0,.95);
  --ms-shadow: 0 12px 34px rgba(0,0,0,.12);
}

/* Cards */
.ms-page .card.card-pad{
  border: 1px solid var(--ms-br);
  border-radius: 18px;
  background: var(--ms-bg);
  box-shadow: var(--ms-shadow);
}

.ms-hero{ overflow:hidden; }
.ms-hero-grid{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}
.ms-kicker{ display:flex; flex-wrap:wrap; gap:8px; }

.ms-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--ms-br);
  background: var(--overlay-bg);
  color: var(--ms-txt);
  font-size: 12px;
  line-height: 1;
}
.ms-chip--muted{ color: var(--ms-muted); }

.ms-page .h3{ color: var(--ms-txt); margin: 0; }
.ms-page .muted{ color: var(--ms-muted); line-height: 1.55; }

.ms-actions{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ms-actions .btn{ border-radius: 14px; }
.ms-actions .btn.is-ok{ box-shadow: 0 0 0 4px rgba(255,140,0,.16); }

.ms-hero-aside{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.ms-hero-art{
  width: 100%;
  height: 120px;
  border-radius: 18px;
  border: 1px solid var(--ms-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.04));
  display:grid;
  place-items:center;
}
.ms-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--ms-br);
  background: var(--overlay-bg);
  display:grid;
  place-items:center;
  color: rgba(0,0,0,.82);
  font-size: 22px;
}

.ms-hero-note{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: var(--overlay-bg);
  padding: 12px 12px;
}
.ms-hero-note-ttl{
  font-weight: 700;
  color: rgba(245,247,252,.82);
  margin-bottom: 6px;
}
.ms-hero-note-txt{
  color: var(--ms-muted);
  line-height: 1.5;
  font-size: 13px;
}

/* Quote */
.ms-quote{
  margin-top: 14px;
  border: 1px solid var(--ms-br);
  background: linear-gradient(180deg, rgba(255,140,0,.10), rgba(0,0,0,.02));
  border-radius: 16px;
  padding: 12px 12px;
  display:flex;
  gap: 10px;
}
.ms-quote-mark{
  font-size: 34px;
  line-height: 1;
  color: rgba(255,140,0,.75);
  transform: translateY(-2px);
}
.ms-quote-text{
  color: rgba(0,0,0,.84);
  line-height: 1.55;
  font-weight: 600;
}
.ms-quote-author{
  margin-top: 6px;
  color: rgba(0,0,0,.58);
  font-size: 13px;
}

/* Body layout */
.ms-body{ margin-top: 14px; }
.ms-layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

/* TOC */
.ms-toc{
  position: sticky;
  top: 12px;
  align-self: start;
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: var(--overlay-bg);
  padding: 12px 12px;
}
.ms-toc-title{
  font-weight: 700;
  color: rgba(245,247,252,.82);
  margin-bottom: 10px;
}
.ms-toc-nav{ display:flex; flex-direction: column; gap: 6px; }
.ms-toc-link{
  text-decoration: none;
  color: rgba(245,247,252,.82);
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.ms-toc-link:hover{
  background: rgba(255,140,0,.10);
  border-color: rgba(255,140,0,.18);
  transform: translateY(-1px);
}

/* Sections */
.ms-content{ min-width: 0; }
.ms-sec{ padding: 6px 2px 10px; }
.ms-h4{
  margin: 0 0 10px;
  font-size: 16px;
  color: rgba(0,0,0,.86);
  letter-spacing: .01em;
}
.ms-page .p{ color: rgba(245,247,252,.82); line-height: 1.65; margin: 0 0 10px; }

.ms-list, .ms-ol{
  margin: 0;
  padding-left: 18px;
  color: rgba(245,247,252,.82);
  line-height: 1.65;
}
.ms-list li, .ms-ol li{ margin: 6px 0; }

.ms-callout{
  display:flex;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--ms-br);
  background: var(--overlay-bg);
}
.ms-callout-ico{
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--ms-br);
  background: rgba(255,140,0,.10);
  display:grid;
  place-items:center;
  color: rgba(0,0,0,.82);
}
.ms-callout-txt{ color: rgba(245,247,252,.82); line-height: 1.6; }

/* Cards inside sections */
.ms-grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.ms-card{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: var(--overlay-bg);
  padding: 12px 12px;
}
.ms-card-ttl{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 700;
  color: rgba(0,0,0,.82);
  margin-bottom: 8px;
}

/* Two columns for directions */
.ms-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ms-split-card{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: var(--overlay-bg);
  padding: 12px 12px;
}
.ms-split-ttl{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 700;
  color: rgba(0,0,0,.82);
  margin-bottom: 8px;
}

/* Principles badges */
.ms-badges{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.ms-badge{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: var(--overlay-bg);
  padding: 12px 12px;
  display:flex;
  align-items: baseline;
  gap: 10px;
}
.ms-badge b{ color: rgba(0,0,0,.82); }
.ms-badge span{ color: rgba(245,247,252,.78); line-height: 1.45; }
.ms-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,140,0,.85);
  box-shadow: 0 0 0 3px rgba(255,140,0,.12);
  transform: translateY(2px);
}

/* Responsive */
@media (max-width: 980px){
  .ms-hero-grid{ grid-template-columns: 1fr; }
  .ms-layout{ grid-template-columns: 1fr; }
  .ms-toc{ position: relative; top: auto; }
  .ms-grid-3{ grid-template-columns: 1fr; }
  .ms-split{ grid-template-columns: 1fr; }
  .ms-badges{ grid-template-columns: 1fr; }
}



/* =========================================================
   UMO composition page (#/umo/sostav-umo)
   Scoped: affects only aria-label="Состав УМО"
   ========================================================= */



.db-block[aria-label="Состав УМО"] .card.card-pad{
  border: 1px solid var(--umo-br);
  border-radius: 18px;
  box-shadow: var(--umo-shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
  margin-bottom: 20px;
}

.db-block[aria-label="Состав УМО"] .ac-hero-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.db-block[aria-label="Состав УМО"] .meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.db-block[aria-label="Состав УМО"] .meta-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--umo-br);
  border-radius: 999px;
  background: var(--overlay-bg);
  color: var(--umo-muted);
  font-size: 12px;
  line-height: 1;
}

.db-block[aria-label="Состав УМО"] .ac-hero-art{
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--umo-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.04));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.db-block[aria-label="Состав УМО"] .ac-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--umo-br);
  background: var(--overlay-bg);
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.82);
  font-size: 22px;
}

.db-block[aria-label="Состав УМО"] .hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--umo-br2), transparent);
  margin: 14px 0;
}

/* Leader */
.db-block[aria-label="Состав УМО"] .umo-leader{
  display:flex;
  justify-content:center;
  margin-top: 8px;
}
.db-block[aria-label="Состав УМО"] .umo-person{
  display:flex;
  gap: 14px;
  align-items:center;
}
.db-block[aria-label="Состав УМО"] .umo-person--leader{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,140,0,.22);
  background: rgba(255,140,0,.06);
  max-width: 860px;
  width: 100%;
}

.db-block[aria-label="Состав УМО"] .umo-avatar{
  width: 86px;
  height: 86px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--umo-br);
  background: var(--overlay-bg);
  flex: 0 0 auto;
}
.db-block[aria-label="Состав УМО"] .umo-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.db-block[aria-label="Состав УМО"] .umo-name{
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--umo-txt);
  line-height: 1.2;
}
.db-block[aria-label="Состав УМО"] .umo-role{
  margin-top: 6px;
  color: var(--umo-muted);
  line-height: 1.35;
}

/* Team */
.db-block[aria-label="Состав УМО"] .umo-team-head{
  margin-bottom: 12px;
}
.db-block[aria-label="Состав УМО"] .umo-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.db-block[aria-label="Состав УМО"] .umo-card{
  border: 1px solid var(--umo-br);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.78);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.db-block[aria-label="Состав УМО"] .umo-card:hover{
  transform: translateY(-1px);
  border-color: rgba(255,140,0,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}
.db-block[aria-label="Состав УМО"] .umo-card .umo-avatar{
  width: 100%;
  height: 210px;
  border-radius: 16px;
  margin-bottom: 10px;
}

/* Contacts */
.db-block[aria-label="Состав УМО"] .umo-contact-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.db-block[aria-label="Состав УМО"] .umo-contact{
  border: 1px solid var(--umo-br);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.78);
}
.db-block[aria-label="Состав УМО"] .umo-contact-ttl{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  color: rgba(0,0,0,.82);
  margin-bottom: 8px;
}
.db-block[aria-label="Состав УМО"] .umo-contact-val{
  color: var(--umo-muted);
  line-height: 1.45;
}
.db-block[aria-label="Состав УМО"] .umo-link{
  color: rgba(0,0,0,.86);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,140,0,.55);
}
.db-block[aria-label="Состав УМО"] .umo-link:hover{
  border-bottom-style: solid;
}

/* Responsive */
@media (max-width: 980px){
  .db-block[aria-label="Состав УМО"] .umo-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-block[aria-label="Состав УМО"] .umo-contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .db-block[aria-label="Состав УМО"] .ac-hero-grid{ grid-template-columns: 1fr; }
  .db-block[aria-label="Состав УМО"] .ac-hero-art{ justify-self: start; width: 78px; height: 78px; min-width: 78px; }
  .db-block[aria-label="Состав УМО"] .umo-grid{ grid-template-columns: 1fr; }
  .db-block[aria-label="Состав УМО"] .umo-person{ align-items: flex-start; }
  .db-block[aria-label="Состав УМО"] .umo-avatar{ width: 74px; height: 74px; border-radius: 16px; }
  .db-block[aria-label="Состав УМО"] .umo-card .umo-avatar{ height: 190px; }
}



/* v0.2.2 Light modal overlay (no black) */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding: 0px;z-index:9999}
.modal.is-open{display:flex}
.modal__bg{position:absolute;inset:0;background: var(--overlay-bg);backdrop-filter:blur(10px)}
.modal__panel{position:relative;width:min(1180px,96vw);max-height:min(88vh,920px);overflow:auto;border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 18px 60px rgba(20,30,55,.18);border:1px solid rgba(10,20,40,.10)}
.modal__panel--wide{width:min(1320px,96vw)}
.modal__head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(10,20,40,.08)}
.modal__body{padding:16px}
.mini{opacity:.7;font-size:12px}

/* HUB editor layout */
.hub-editor{display:grid;grid-template-columns:360px 1fr;gap:12px;align-items:start}
.hub-editor__list{position:sticky;top:72px;align-self:start}
.hub-editor__tiles{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.hub-tile-row{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:center;text-align:left;border:1px solid rgba(10,20,40,.10);background:rgba(255,255,255,.75);border-radius:12px;padding:10px 12px;cursor:pointer}
.hub-tile-row:hover{background:rgba(255,255,255,.92)}
.hub-tile-row.is-active{outline:2px solid rgba(20,60,180,.25)}
.hub-tile-row__t{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-tile-row__s{grid-column:2;opacity:.65;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-editor__actions{margin-top:10px}

/* Tile tools visible in preview edit mode */
.hub-edit-on .tile{position:relative}
.hub-edit-on .tile-tools{position:absolute;top:10px;right:10px;display:flex;gap:6px;opacity:0;transform:translateY(-4px);transition:.15s ease}
.hub-edit-on .tile:hover .tile-tools{opacity:1;transform:none}
.hub-edit-on .tile-tool{border:1px solid rgba(10,20,40,.10);background:rgba(255,255,255,.92);border-radius:10px;padding:6px 8px;cursor:pointer}
.hub-edit-on [data-edit="title"], .hub-edit-on [data-edit="desc"]{outline:2px dashed rgba(20,60,180,.22);outline-offset:6px;border-radius:10px}

@media (max-width: 980px){
  .hub-editor{grid-template-columns:1fr}
  .hub-editor__list{position:relative;top:auto}
}


/* modal panel sizing */
.modal__panel{width:100%;max-height:calc(100vh - 24px);overflow:auto;border-radius:18px;}
.modal__head{background:#fff;}

/* =========================================================
   Blocks builder: type icons (admin)
   ========================================================= */
.bl-type-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bl-type-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:rgba(255,255,255,.55);
  cursor:pointer;
  color:inherit;
}
.bl-type-btn i{font-size:14px;opacity:.9}
.bl-type-btn span{font-weight:700;font-size:12px}
.bl-type-btn:hover{background:rgba(255,255,255,.75)}
.bl-type-btn:active{transform:translateY(1px)}
@media(max-width:520px){
  .bl-type-btn{padding:10px 10px}
  .bl-type-btn span{display:none}
}

/* v0.6.7: Block builder route navigator tabs */
.adminTab3{display:flex;gap:8px;flex-wrap:wrap}
.adminTab3 .btn.is-active{background:rgba(255,122,31,.14);border-color:rgba(255,122,31,.28);color:var(--text)}
.adminTab3Body .tabPanel{padding:0;margin:0}

/* =========================================================
   v0.6.8: Block picker categories + templates
   ========================================================= */
.bl-cat-tabs{display:flex;gap:8px;flex-wrap:wrap}
.bl-cat-btn{
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.45);
  cursor:pointer;color:inherit;
}
.bl-cat-btn:hover{background:rgba(255,255,255,.7)}
.bl-cat-btn.is-active{background:rgba(255,122,31,.14);border-color:rgba(255,122,31,.28)}
.bl-cat-btn i{opacity:.9}
.bl-variant-grid{display:flex;flex-wrap:wrap;gap:8px}

.bl-tpl-list{display:flex;flex-direction:column;gap:10px}
.bl-tpl-item{border:1px solid rgba(0,0,0,.08);border-radius:14px;background:rgba(255,255,255,.55);padding:12px}
.bl-tpl-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.bl-tpl-snippet{margin-top:8px;font-size:12px;line-height:1.4;opacity:.85;white-space:pre-wrap}

/* =========================================================
   v0.6.8: Block variants (public)
   ========================================================= */
.card.is-center, .card[data-align="center"]{text-align:center}
.card[data-align="right"]{text-align:right}

.rich-quote{border-left:4px solid rgba(255,122,31,.65);padding-left:12px;margin:8px 0}
.rich-quote .p{opacity:.95}

.doclist.is-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(max-width:760px){.doclist.is-cards{grid-template-columns:1fr}}
.doclist.is-cards .doc-row{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;background:rgba(255,255,255,.55)}

.gallery.is-mini img{height:76px;object-fit:cover}
.gallery.is-wide{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.gallery.is-wide{grid-template-columns:1fr}}
.gallery.has-captions .g-item{display:flex;flex-direction:column;gap:6px}
.gallery.has-captions .g-cap{font-size:12px;opacity:.75;text-align:left}

.news-grid.is-compact{grid-template-columns:1fr}

.embed-responsive{position:relative;width:100%;padding-top:56.25%;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:rgba(0,0,0,.04)}
.embed-responsive iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.note{display:flex;gap:10px;align-items:flex-start;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;background:rgba(255,255,255,.55)}
.note i{margin-top:2px;opacity:.85}
