/*
Theme Name: MTsN 9 Kediri Modern
Theme URI: https://mtsn9kdr.sch.id/
Author: OpenAI
Author URI: https://openai.com/
Description: Tema portal madrasah modern untuk MTsN 9 Kediri, terinspirasi dari struktur portal Kementerian Agama Kabupaten Kediri. Responsif, ringan, dan kompatibel dengan editor blok WordPress.
Version: 1.2.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mtsn9-kediri
Tags: education, news, custom-logo, custom-menu, featured-images, translation-ready, two-columns
*/

:root {
  --mtsn9-green: #087447;
  --mtsn9-green-dark: #064d35;
  --mtsn9-green-deep: #033d2b;
  --mtsn9-green-soft: #eaf4ee;
  --mtsn9-gold: #d9a441;
  --mtsn9-ink: #17251e;
  --mtsn9-muted: #69766f;
  --mtsn9-border: #e3eae5;
  --mtsn9-paper: #ffffff;
  --mtsn9-bg: #f5f8f6;
  --mtsn9-shadow: 0 12px 34px rgba(15, 55, 36, .09);
  --mtsn9-radius: 16px;
  --mtsn9-container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mtsn9-ink);
  background: var(--mtsn9-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--mtsn9-green); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--mtsn9-green-dark); }
button, input, textarea, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(217,164,65,.7); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 9999; top: -60px; left: 16px; padding: 10px 16px; color: #fff; background: var(--mtsn9-green-dark); border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: min(var(--mtsn9-container), calc(100% - 40px)); margin-inline: auto; }
.site-topbar { background: var(--mtsn9-green-deep); color: rgba(255,255,255,.85); font-size: 12px; }
.topbar-inner { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-left { display: flex; align-items: center; gap: 9px; }
.topbar-dot { width: 5px; height: 5px; display: inline-block; background: var(--mtsn9-gold); border-radius: 50%; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right a { color: rgba(255,255,255,.86); }
.topbar-right a:hover { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--mtsn9-border); }
.header-main { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: flex; flex: 1 1 auto; align-items: center; gap: 20px; min-width: 0; color: var(--mtsn9-ink); }
/* Fixed logo frame keeps uploaded logos from pushing the school identity out of alignment. */
.brand-logo-frame { display: flex; flex: 0 0 92px; width: 92px; height: 92px; align-items: center; justify-content: center; overflow: hidden; }
.brand-logo-frame .custom-logo-link { display: flex !important; flex: 0 0 100%; width: 100%; height: 100%; align-items: center; justify-content: center; overflow: hidden; line-height: 0; }
.brand-logo-frame .custom-logo { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain; object-position: center; }
.custom-logo-link { flex: 0 0 auto; display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 86px; max-height: 82px; object-fit: contain; }
.brand-mark { display: grid; width: 72px; height: 72px; flex: 0 0 72px; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #15945e, #045438); box-shadow: 0 8px 20px rgba(8,116,71,.2); font-family: Georgia, serif; font-size: 30px; font-weight: 800; letter-spacing: -3px; border: 3px solid #e6f2ea; }
.brand-logo-frame .brand-mark { width: 82px; height: 82px; flex-basis: 82px; text-decoration: none; }
.brand-logo-frame .brand-mark:hover { color: #fff; }
.brand-copy { flex: 1 1 auto; min-width: 0; }
.brand-kicker { display: block; margin-bottom: 2px; color: var(--mtsn9-green); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.site-title { display: block; margin: 0; color: var(--mtsn9-green-dark); font-size: clamp(20px, 2vw, 28px); font-weight: 850; line-height: 1.18; letter-spacing: -.035em; }
.site-title a { color: inherit; }
.site-description { max-width: 670px; margin: 5px 0 0; color: var(--mtsn9-muted); font-size: 12px; line-height: 1.45; }
.header-tools { display: flex; flex: 0 0 260px; align-items: center; gap: 14px; min-width: 0; }
.header-search { position: relative; display: flex; width: 100%; max-width: 100%; min-width: 0; }
.header-search input[type="search"] { width: 100%; min-width: 0; height: 42px; padding: 0 42px 0 14px; border: 1px solid var(--mtsn9-border); border-radius: 30px; background: #f8faf8; color: var(--mtsn9-ink); outline: none; font-size: 13px; }
.header-search input:focus { border-color: var(--mtsn9-green); background: #fff; }
.header-search button { position: absolute; top: 4px; right: 4px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--mtsn9-green); cursor: pointer; }
.header-search button svg { width: 16px; height: 16px; }
.nav-bar { position: relative; z-index: 30; background: var(--mtsn9-green); box-shadow: 0 5px 17px rgba(4,77,53,.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.primary-navigation { min-width: 0; }
.primary-navigation ul { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-navigation li { position: relative; }
.primary-navigation > div > ul > li > a,
.primary-navigation > ul > li > a,
.primary-menu-fallback > li > a { display: flex; min-height: 54px; align-items: center; padding: 0 17px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700; }
.primary-navigation li:hover > a,
.primary-navigation li:focus-within > a,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { color: #fff; background: rgba(0,0,0,.12); }
.primary-navigation .sub-menu { position: absolute; top: 100%; left: 0; display: block; min-width: 225px; padding: 8px; visibility: hidden; opacity: 0; transform: translateY(7px); background: #fff; border: 1px solid var(--mtsn9-border); border-radius: 0 0 12px 12px; box-shadow: var(--mtsn9-shadow); transition: .18s ease; }
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.primary-navigation .sub-menu li a { display: block; padding: 9px 12px; color: var(--mtsn9-ink); border-radius: 7px; font-size: 13px; font-weight: 600; }
.primary-navigation .sub-menu li a:hover { color: var(--mtsn9-green); background: var(--mtsn9-green-soft); }
.mobile-menu-toggle { display: none; align-items: center; gap: 9px; padding: 10px 13px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.mobile-menu-toggle svg { width: 18px; height: 18px; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--mtsn9-green-dark); background: #f5d891; border-radius: 8px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.nav-cta:hover { color: var(--mtsn9-green-dark); background: #ffe6a8; }
.nav-cta svg { width: 15px; height: 15px; }
/* Hero */
.hero-section { padding: 28px 0 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(275px, .8fr); gap: 20px; }
.hero-feature { position: relative; display: flex; min-height: 420px; overflow: hidden; align-items: flex-end; isolation: isolate; border-radius: 19px; background: linear-gradient(140deg, #0a6e48, #032f24); box-shadow: var(--mtsn9-shadow); }
.hero-feature > a:first-child { position: absolute; z-index: -2; inset: 0; }
.hero-feature .hero-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-feature:after { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg, rgba(2,35,24,.88), rgba(4,52,36,.54) 60%, rgba(3,42,28,.1)), linear-gradient(0deg, rgba(0,0,0,.42), transparent 68%); }
.hero-content { width: min(680px, 100%); padding: 34px 38px 38px; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--mtsn9-gold); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow:before { width: 24px; height: 2px; content: ""; background: currentColor; }
.hero-title { max-width: 650px; margin: 13px 0 12px; color: #fff; font-size: clamp(27px, 3vw, 40px); font-weight: 850; line-height: 1.17; letter-spacing: -.04em; }
.hero-title a { color: inherit; }
.hero-excerpt { max-width: 560px; margin: 0 0 22px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; }
.hero-read-more { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; color: var(--mtsn9-green-dark); background: #f3d48d; border-radius: 8px; font-size: 12px; font-weight: 850; }
.hero-read-more:hover { color: var(--mtsn9-green-dark); background: #ffe6a8; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-heading { display: flex; align-items: center; justify-content: space-between; padding: 2px 1px 3px; }
.hero-side-heading h2 { margin: 0; color: var(--mtsn9-green-dark); font-size: 15px; font-weight: 850; }
.hero-side-heading span { color: var(--mtsn9-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.trending-item { display: grid; grid-template-columns: 102px minmax(0,1fr); gap: 12px; min-height: 91px; padding: 10px; border: 1px solid var(--mtsn9-border); border-radius: 12px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.trending-item:hover { transform: translateY(-2px); box-shadow: var(--mtsn9-shadow); }
.trending-image { width: 102px; height: 72px; overflow: hidden; border-radius: 8px; background: var(--mtsn9-green-soft); }
.trending-image img { width: 100%; height: 100%; object-fit: cover; }
.trending-text { align-self: center; min-width: 0; }
.trending-text time { display: block; margin-bottom: 3px; color: var(--mtsn9-muted); font-size: 10px; }
.trending-text h3 { display: -webkit-box; overflow: hidden; margin: 0; color: var(--mtsn9-ink); font-size: 12px; font-weight: 800; line-height: 1.43; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.trending-text a { color: inherit; }
/* Section headings and service shortcuts */
.section { padding: 34px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading-copy { max-width: 650px; }
.section-kicker { display: block; margin-bottom: 4px; color: var(--mtsn9-green); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section-title { margin: 0; color: var(--mtsn9-green-dark); font-size: clamp(22px, 2.3vw, 28px); font-weight: 850; line-height: 1.25; letter-spacing: -.035em; }
.section-desc { margin: 7px 0 0; color: var(--mtsn9-muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--mtsn9-green); font-size: 12px; font-weight: 850; white-space: nowrap; }
.text-link:after { content: "→"; font-size: 16px; transition: transform .2s ease; }
.text-link:hover:after { transform: translateX(4px); }
.quick-access { padding: 4px 0 22px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { display: flex; min-height: 100px; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(15,55,36,.035); transition: .2s ease; }
.quick-card:hover { transform: translateY(-3px); border-color: rgba(8,116,71,.25); box-shadow: var(--mtsn9-shadow); }
.quick-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; color: var(--mtsn9-green); background: var(--mtsn9-green-soft); border-radius: 14px; }
.quick-icon svg { width: 25px; height: 25px; }
.quick-card strong { display: block; color: var(--mtsn9-green-dark); font-size: 14px; font-weight: 850; line-height: 1.3; }
.quick-card small { display: block; margin-top: 4px; color: var(--mtsn9-muted); font-size: 11px; line-height: 1.35; }
/* News layout */
.content-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--mtsn9-shadow); }
.post-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dcece2; }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { padding: 15px 16px 17px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--mtsn9-muted); font-size: 10px; font-weight: 650; }
.meta-category { color: var(--mtsn9-green); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.entry-meta time:before { display: inline-block; width: 3px; height: 3px; margin: 0 7px 2px 0; content: ""; border-radius: 50%; background: #b1bcb5; }
.post-card-title { display: -webkit-box; overflow: hidden; margin: 0 0 8px; color: var(--mtsn9-ink); font-size: 16px; font-weight: 850; line-height: 1.4; letter-spacing: -.02em; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--mtsn9-green); }
.post-card-excerpt { display: -webkit-box; overflow: hidden; margin: 0; color: var(--mtsn9-muted); font-size: 12px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.compact-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; }
.compact-item { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 12px; padding: 13px; border-bottom: 1px solid var(--mtsn9-border); }
.compact-item:last-child { border-bottom: 0; }
.compact-thumb { width: 82px; height: 70px; overflow: hidden; border-radius: 8px; background: var(--mtsn9-green-soft); }
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-copy { align-self: center; min-width: 0; }
.compact-copy .entry-meta { margin-bottom: 3px; }
.compact-copy h3 { display: -webkit-box; overflow: hidden; margin: 0; color: var(--mtsn9-ink); font-size: 12px; font-weight: 850; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.compact-copy h3 a { color: inherit; }
.compact-copy h3 a:hover { color: var(--mtsn9-green); }
/* Announcement band */
.announcement-band { position: relative; overflow: hidden; padding: 36px 0; color: #fff; background: var(--mtsn9-green-dark); }
.announcement-band:after { position: absolute; top: -100px; right: -60px; width: 360px; height: 360px; content: ""; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 64px rgba(255,255,255,.02); }
.announcement-band .section-title { color: #fff; }
.announcement-band .section-kicker { color: #f4d28a; }
.announcement-band .section-desc { color: rgba(255,255,255,.67); }
.announcement-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.announcement-card { padding: 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.075); transition: background .2s ease, transform .2s ease; }
.announcement-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); }
.announcement-card time { display: block; margin-bottom: 8px; color: #f5d68f; font-size: 10px; font-weight: 750; }
.announcement-card h3 { margin: 0; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.45; }
.announcement-card h3 a { color: inherit; }
.announcement-card p { margin: 8px 0 0; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.6; }
.announcement-band .text-link { margin-top: 17px; color: #f5d68f; }
/* Feature cards / profile intro */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature-card { position: relative; min-height: 270px; overflow: hidden; border-radius: 15px; background: var(--mtsn9-green-dark); box-shadow: var(--mtsn9-shadow); }
.feature-card .feature-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; transition: transform .4s ease; }
.feature-card:hover .feature-image { transform: scale(1.04); }
.feature-card:after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(2,37,25,.94), rgba(3,58,39,.08) 85%); }
.feature-card-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 20px; }
.feature-card-copy .entry-meta { color: rgba(255,255,255,.72); }
.feature-card-copy h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 850; line-height: 1.35; }
.feature-card-copy h3 a { color: inherit; }
.intro-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: center; padding: 30px; border: 1px solid var(--mtsn9-border); border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgba(15,55,36,.04); }
.intro-panel h2 { margin: 0 0 10px; color: var(--mtsn9-green-dark); font-size: clamp(22px, 2.3vw, 29px); line-height: 1.2; letter-spacing: -.035em; }
.intro-panel p { margin: 0; color: var(--mtsn9-muted); font-size: 13px; }
.intro-badges { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.intro-badge { min-height: 68px; padding: 13px; border-radius: 11px; background: var(--mtsn9-green-soft); }
.intro-badge strong { display: block; color: var(--mtsn9-green-dark); font-size: 12px; font-weight: 850; }
.intro-badge span { color: var(--mtsn9-muted); font-size: 10px; }
/* Page / archive */
.page-hero { padding: 35px 0; color: #fff; background: linear-gradient(115deg, var(--mtsn9-green-dark), var(--mtsn9-green)); }
.page-hero .breadcrumbs { margin-bottom: 8px; color: rgba(255,255,255,.7); font-size: 11px; }
.page-hero .breadcrumbs a { color: #fff; }
.page-title { margin: 0; color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 850; line-height: 1.2; letter-spacing: -.035em; }
.page-subtitle { margin: 8px 0 0; color: rgba(255,255,255,.75); font-size: 13px; }
.content-area { padding: 30px 0 55px; }
.archive-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.single-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: start; }
.article-panel { padding: 28px; border: 1px solid var(--mtsn9-border); border-radius: 16px; background: #fff; }
.article-header { margin-bottom: 20px; }
.article-title { margin: 9px 0 12px; color: var(--mtsn9-green-dark); font-size: clamp(26px, 3vw, 38px); font-weight: 850; line-height: 1.22; letter-spacing: -.04em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 13px; color: var(--mtsn9-muted); font-size: 11px; }
.article-featured-image { overflow: hidden; margin: 0 0 24px; border-radius: 13px; background: var(--mtsn9-green-soft); }
.article-featured-image img { display: block; width: 100%; height: auto; }
.entry-content { color: #334239; font-size: 15px; line-height: 1.85; overflow-wrap: break-word; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.7em; color: var(--mtsn9-green-dark); line-height: 1.3; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.5em 0; padding: 12px 20px; color: var(--mtsn9-green-dark); background: var(--mtsn9-green-soft); border-left: 4px solid var(--mtsn9-gold); border-radius: 0 10px 10px 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 9px; border: 1px solid var(--mtsn9-border); }
.entry-content figure { max-width: 100%; }
.entry-content iframe { max-width: 100%; }
.post-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--mtsn9-border); font-size: 12px; font-weight: 750; }
.post-navigation a { max-width: 48%; }
.sidebar .widget { margin-bottom: 18px; padding: 18px; border: 1px solid var(--mtsn9-border); border-radius: 13px; background: #fff; }
.widget-title { margin: 0 0 12px; color: var(--mtsn9-green-dark); font-size: 16px; font-weight: 850; }
.widget ul { margin: 0; padding-left: 18px; color: var(--mtsn9-muted); font-size: 13px; }
.widget li + li { margin-top: 8px; }
.widget a { color: var(--mtsn9-ink); }
.widget a:hover { color: var(--mtsn9-green); }
/* Search and forms */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; min-width: 0; }
.search-form input[type="search"] { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--mtsn9-border); border-radius: 8px; background: #fff; }
.search-form button, .search-submit { padding: 8px 14px; border: 0; border-radius: 8px; color: #fff; background: var(--mtsn9-green); font-size: 12px; font-weight: 800; cursor: pointer; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.page-numbers { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 10px; color: var(--mtsn9-green-dark); border: 1px solid var(--mtsn9-border); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 750; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--mtsn9-green); border-color: var(--mtsn9-green); }
/* Footer */
.site-footer { color: rgba(255,255,255,.78); background: #042f23; }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 28px; padding: 46px 0 35px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.footer-brand .brand-mark { width: 52px; height: 52px; flex-basis: 52px; border-radius: 13px; font-size: 22px; }
.footer-brand .custom-logo { max-width: 58px; max-height: 58px; }
.footer-brand strong { display: block; color: #fff; font-size: 16px; line-height: 1.3; }
.footer-brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.6); font-size: 10px; }
.footer-about p { margin: 0; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.8; }
.footer-column h2, .footer-widget-title { margin: 3px 0 15px; color: #f4d28a; font-size: 13px; font-weight: 850; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 0 0 8px; }
.footer-column li a { color: rgba(255,255,255,.72); font-size: 12px; }
.footer-column li a:hover { color: #fff; }
.footer-contact p { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; color: rgba(255,255,255,.7); font-size: 12px; overflow-wrap: anywhere; }
.footer-contact svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; color: #f4d28a; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.footer-social-link { display: inline-grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.07); transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.footer-social-link svg { display: block; width: 20px; height: 20px; }
.footer-social-link:hover { color: var(--mtsn9-green-dark); background: #f4d28a; border-color: #f4d28a; transform: translateY(-2px); }
.footer-social-link:focus-visible { outline: 3px solid #f4d28a; outline-offset: 3px; color: #fff; }
.footer-bottom { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.52); font-size: 10px; }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* Accessible floating back-to-top control. */
.back-to-top,
.back-to-top[hidden] { display: none !important; }
.back-to-top:not([hidden]) {
  position: fixed;
  z-index: 999;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid !important;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: var(--mtsn9-green);
  box-shadow: 0 8px 24px rgba(3,61,43,.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, visibility .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top svg { display: block; width: 22px; height: 22px; }
.back-to-top:hover { color: var(--mtsn9-green-dark); background: #f4d28a; }
.back-to-top:focus-visible { outline: 3px solid var(--mtsn9-gold); outline-offset: 4px; }
@media (max-width: 560px) {
  .back-to-top:not([hidden]) { right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .footer-social-link, .back-to-top { transition: none; }
  .footer-social-link:hover { transform: none; }
}

/* Header appearance toggle. */
.header-tools { flex-basis: 310px; gap: 9px; }
.theme-mode-toggle { display: inline-grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--mtsn9-border); border-radius: 50%; color: var(--mtsn9-green-dark); background: var(--mtsn9-paper); cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.theme-mode-toggle:hover { color: #fff; background: var(--mtsn9-green); border-color: var(--mtsn9-green); transform: rotate(-8deg); }
.theme-mode-toggle:focus-visible { outline: 3px solid var(--mtsn9-gold); outline-offset: 3px; }
.theme-mode-toggle .theme-icon { display: block; width: 20px; height: 20px; }
.theme-icon--sun { display: none !important; }
html[data-theme="dark"] .theme-icon--moon { display: none !important; }
html[data-theme="dark"] .theme-icon--sun { display: block !important; }
@media (max-width: 1020px) { .header-tools { flex-basis: 260px; } }
@media (max-width: 760px) {
  .header-main { flex-wrap: wrap; }
  .header-tools { flex: 1 1 100%; width: 100%; max-width: none; gap: 9px; }
  .header-search { flex: 1 1 auto; }
  .theme-mode-toggle { flex-basis: 40px; width: 40px; height: 40px; }
}

/* Legacy dark palette removed in v1.2.6; Galaxy Aurora tokens are defined in the final theme layer. */

/* Utility and empty states */
.empty-state { padding: 34px; text-align: center; border: 1px dashed #cbd9d0; border-radius: 14px; background: #fff; }
.empty-state h2 { margin: 0 0 6px; color: var(--mtsn9-green-dark); font-size: 20px; }
.empty-state p { margin: 0; color: var(--mtsn9-muted); font-size: 13px; }
.post-image-placeholder { display: flex; width: 100%; height: 100%; min-height: 110px; align-items: center; justify-content: center; color: rgba(255,255,255,.9); background: radial-gradient(circle at 80% 20%, rgba(226,187,104,.55), transparent 28%), linear-gradient(135deg, #0b8655, #06452f); }
.post-image-placeholder span { font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.alignwide { max-width: 1100px; margin-right: auto; margin-left: auto; }
.alignfull { width: 100%; max-width: 100%; }
.wp-block-image img { border-radius: 9px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--mtsn9-muted); font-size: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1020px) {
  .header-main { min-height: 96px; }
  .brand { gap: 14px; }
  .brand-logo-frame { flex-basis: 78px; width: 78px; height: 78px; }
  .brand-logo-frame .brand-mark { width: 70px; height: 70px; flex-basis: 70px; }
  .header-tools { flex-basis: 210px; }
  .primary-navigation > div > ul > li > a, .primary-navigation > ul > li > a, .primary-menu-fallback > li > a { padding-inline: 12px; font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(0,1.45fr) minmax(255px,.8fr); }
  .hero-feature { min-height: 390px; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact-col { grid-column: 2 / 4; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 30px, var(--mtsn9-container)); }
  .topbar-inner { min-height: 32px; }
  .topbar-right { display: none; }
  .header-main { min-height: 82px; padding-block: 12px; }
  .brand { flex: 1 1 100%; gap: 10px; }
  .brand-logo-frame { flex: 0 0 58px; width: 58px; height: 58px; }
  .brand-logo-frame .brand-mark { width: 54px; height: 54px; flex-basis: 54px; border-radius: 13px; font-size: 23px; }
  .brand-kicker { font-size: 8px; letter-spacing: .09em; }
  .site-title { font-size: 18px; }
  .site-description { max-width: 280px; font-size: 10px; }
  .nav-inner { min-height: 50px; }
  .mobile-menu-toggle { display: inline-flex; }
  .nav-cta { padding: 7px 10px; font-size: 11px; }
  .primary-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 10px 15px 15px; background: var(--mtsn9-green-dark); box-shadow: 0 12px 20px rgba(0,0,0,.15); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation > div > ul > li > a, .primary-navigation > ul > li > a, .primary-menu-fallback > li > a { min-height: 43px; padding: 0 12px; border-radius: 7px; }
  .primary-navigation .sub-menu { position: static; display: none; min-width: 0; padding: 4px 8px; visibility: visible; opacity: 1; transform: none; border: 0; border-radius: 8px; background: rgba(0,0,0,.13); box-shadow: none; }
  .primary-navigation li.menu-item-has-children:focus-within > .sub-menu,
  .primary-navigation li.menu-item-has-children.is-submenu-open > .sub-menu { display: block; }
  .primary-navigation .sub-menu li a { color: rgba(255,255,255,.88); }
  .primary-navigation .sub-menu li a:hover { color: #fff; background: rgba(255,255,255,.1); }
  .hero-section { padding-top: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-feature { min-height: 340px; }
  .hero-content { padding: 25px 24px; }
  .hero-title { font-size: 28px; }
  .hero-excerpt { font-size: 12px; }
  .hero-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-side-heading { grid-column: 1 / -1; }
  .trending-item { grid-template-columns: 78px minmax(0,1fr); gap: 9px; min-height: 78px; padding: 8px; }
  .trending-image { width: 78px; height: 62px; }
  .trending-text h3 { font-size: 11px; }
  .quick-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .quick-card { min-height: 84px; gap: 10px; padding: 12px; }
  .quick-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px; }
  .quick-icon svg { width: 21px; height: 21px; }
  .quick-card strong { font-size: 12px; }
  .quick-card small { font-size: 10px; }
  .section { padding: 26px 0; }
  .content-columns, .archive-layout, .single-layout { grid-template-columns: 1fr; }
  .news-grid { gap: 12px; }
  .post-card-body { padding: 12px; }
  .post-card-title { font-size: 14px; }
  .announcement-list { grid-template-columns: 1fr; }
  .announcement-card { padding: 14px; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .feature-card { min-height: 220px; }
  .feature-card-copy { padding: 14px; }
  .feature-card-copy h3 { font-size: 14px; }
  .intro-panel { grid-template-columns: 1fr; padding: 22px; }
  .footer-main { grid-template-columns: repeat(2,1fr); gap: 22px; padding: 34px 0 25px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-contact-col { grid-column: auto; }
  .article-panel { padding: 20px; }
}
@media (max-width: 480px) {
  .site-title { font-size: 16px; }
  .site-description { max-width: 235px; font-size: 9px; }
  .topbar-left { font-size: 10px; }
  .nav-cta { font-size: 10px; }
  .hero-feature { min-height: 330px; }
  .hero-title { font-size: 25px; }
  .hero-side { grid-template-columns: 1fr; }
  .trending-item { grid-template-columns: 90px minmax(0,1fr); }
  .trending-image { width: 90px; }
  .news-grid, .archive-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 235px; }
  .section-heading { align-items: flex-start; }
  .section-heading > .text-link { margin-top: 8px; }
  .intro-badges { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-about, .footer-contact-col { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
  .post-navigation { flex-direction: column; }
  .post-navigation a { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* MTsN 9 Kediri Modern 1.1.0 refinements */
.hero-grid-slider { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .78fr); align-items: stretch; }
.hero-slider { position: relative; min-width: 0; min-height: 458px; overflow: hidden; isolation: isolate; border-radius: 19px; background: linear-gradient(140deg, #0a6e48, #032f24); box-shadow: var(--mtsn9-shadow); }
.hero-slider-track { position: relative; min-height: 458px; height: 100%; }
.hero-slide { position: absolute; inset: 0; display: flex; min-height: 458px; align-items: flex-end; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .55s ease, visibility .55s ease; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide-image-link { position: absolute; z-index: -2; inset: 0; display: block; background: linear-gradient(135deg, #0b8655, #06452f); }
.hero-slide-image { display: block; width: 100%; height: 100%; min-height: 458px; object-fit: cover; }
.hero-slide-placeholder { position: absolute; inset: 0; }
.hero-slide-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(2,35,24,.87), rgba(4,52,36,.55) 58%, rgba(3,42,28,.08)), linear-gradient(0deg, rgba(0,0,0,.56), transparent 72%); }
.hero-slide-copy { width: min(760px, 100%); padding: 34px 38px 78px; color: #fff; }
.hero-slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-slide-meta time { color: rgba(255,255,255,.78); font-size: 11px; font-weight: 650; }
.hero-slide .hero-title { max-width: 690px; margin-top: 14px; }
.hero-slide .hero-excerpt { max-width: 600px; }
.hero-slider-controls { position: absolute; z-index: 5; right: 20px; bottom: 17px; left: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; pointer-events: none; }
.hero-slider-controls button { pointer-events: auto; }
.hero-slider-arrows { display: flex; gap: 7px; }
.slider-arrow { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; background: rgba(3,35,25,.43); font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.slider-arrow:hover { color: var(--mtsn9-green-dark); background: #f5d891; transform: translateY(-1px); }
.hero-slider-dots { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 20px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background .2s ease; }
.slider-dot.is-active { width: 24px; background: #f5d891; }
.slider-pause { min-width: 52px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; color: #fff; background: rgba(3,35,25,.43); font-size: 10px; font-weight: 750; cursor: pointer; }
.slider-pause:hover { color: var(--mtsn9-green-dark); background: #f5d891; }
.hero-empty { display: flex; min-height: 458px; flex-direction: column; justify-content: center; padding: 38px; color: #fff; background: linear-gradient(125deg, #075b3d, #032f24); }
.hero-empty .hero-title { margin-top: 12px; }
.hero-side { gap: 10px; min-width: 0; }
.hero-side-heading { min-height: 55px; }
.hero-side-heading .section-kicker { margin: 0 0 2px; font-size: 9px; }
.hero-side-heading h2 { font-size: 17px; }
.hero-side-heading .hero-side-badge { display: inline-flex; padding: 5px 9px; border-radius: 30px; color: var(--mtsn9-green); background: var(--mtsn9-green-soft); font-size: 9px; font-weight: 850; letter-spacing: .07em; }
.hero-side .trending-item { flex: 1 1 0; min-height: 82px; }
.hero-side-more { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 5px 2px; color: var(--mtsn9-green); font-size: 11px; font-weight: 850; }
.hero-side-more:hover { gap: 11px; }
.hero-side-empty { display: grid; min-height: 150px; place-items: center; padding: 18px; border: 1px dashed var(--mtsn9-border); border-radius: 12px; background: #fff; color: var(--mtsn9-muted); font-size: 12px; text-align: center; }
.quick-access { padding: 12px 0 26px; }
.quick-card { position: relative; padding-right: 34px; }
.quick-card > span:nth-child(2) { min-width: 0; }
.quick-arrow { position: absolute; top: 13px; right: 14px; color: #9bad9f; font-size: 15px; font-weight: 800; transition: transform .2s ease, color .2s ease; }
.quick-card:hover .quick-arrow { color: var(--mtsn9-green); transform: translate(2px, -2px); }
.news-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; }
.post-card-image { flex: 0 0 auto; }
.post-card-image .post-image { display: block; width: 100%; height: 100%; min-height: 145px; object-fit: cover; }
.post-card-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; }
.post-card-title { min-height: 2.8em; }
.post-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; color: var(--mtsn9-green); font-size: 11px; font-weight: 850; }
.post-card-more:hover { gap: 10px; }
.section-tight { padding-top: 10px; }
.announcement-more { display: inline-flex; margin-top: 10px; color: #f5d68f; font-size: 10px; font-weight: 850; }
.intro-link { margin-top: 15px; }
.feature-card-link { position: absolute; z-index: 0; inset: 0; display: block; }
.feature-card-link .feature-image { display: block; }
.feature-card-copy { pointer-events: none; }
.feature-card-copy a { pointer-events: auto; }
.agenda-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.agenda-card { display: flex; gap: 14px; min-width: 0; padding: 17px; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(15,55,36,.035); }
.agenda-date { display: flex; width: 66px; min-width: 66px; min-height: 72px; flex-direction: column; align-items: center; justify-content: center; border-radius: 11px; color: var(--mtsn9-green-dark); background: var(--mtsn9-green-soft); }
.agenda-date strong { font-size: 25px; line-height: 1; }
.agenda-date span { margin-top: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.agenda-copy { min-width: 0; }
.agenda-copy h3 { margin: 0 0 6px; color: var(--mtsn9-green-dark); font-size: 14px; line-height: 1.4; }
.agenda-copy h3 a { color: inherit; }
.agenda-copy p { display: -webkit-box; overflow: hidden; margin: 0 0 8px; color: var(--mtsn9-muted); font-size: 11px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.agenda-copy > span { color: var(--mtsn9-green); font-size: 10px; font-weight: 800; }
.gallery-section { background: #eef4f0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.gallery-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--mtsn9-border); border-radius: 13px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--mtsn9-shadow); }
.gallery-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mtsn9-green-soft); }
.gallery-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-title { display: -webkit-box; overflow: hidden; padding: 12px; color: var(--mtsn9-green-dark); font-size: 12px; font-weight: 800; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.campus-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.campus-card { display: flex; gap: 15px; padding: 20px; border: 1px solid var(--mtsn9-border); border-radius: 15px; background: #fbfdfb; }
.campus-card-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 12px; color: var(--mtsn9-green); background: var(--mtsn9-green-soft); font-size: 25px; }
.campus-card-copy { min-width: 0; }
.campus-card-copy h3 { margin: 0 0 7px; color: var(--mtsn9-green-dark); font-size: 16px; }
.campus-card-copy p { margin: 0 0 9px; color: var(--mtsn9-muted); font-size: 12px; line-height: 1.6; }
.campus-card-copy > a { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--mtsn9-ink); font-size: 11px; }
.campus-card-copy .campus-map-link { display: inline-flex; margin-top: 11px; padding: 7px 11px; border-radius: 7px; color: #fff; background: var(--mtsn9-green); font-size: 10px; font-weight: 800; }
.campus-card-copy .campus-map-link:hover { color: #fff; background: var(--mtsn9-green-dark); }
/* Article reading experience */
.page-hero-compact { padding: 24px 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(255,255,255,.78); font-size: 11px; }
.breadcrumbs a { color: #fff; }
.breadcrumb-separator { opacity: .6; }
.article-deck { max-width: 760px; margin: 0; color: var(--mtsn9-muted); font-size: 15px; line-height: 1.65; }
.article-featured-image figcaption { padding: 8px 12px; color: var(--mtsn9-muted); background: #f6f9f7; font-size: 11px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content .wp-block-embed { margin-block: 24px; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.article-tags { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--mtsn9-border); color: var(--mtsn9-muted); font-size: 12px; }
.article-share { margin-top: 22px; padding: 16px; border-radius: 12px; background: #f2f7f3; }
.article-share > strong { display: block; margin-bottom: 9px; color: var(--mtsn9-green-dark); font-size: 12px; }
.article-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.article-share a, .copy-link-button { display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid #dbe7de; border-radius: 7px; color: var(--mtsn9-green-dark); background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.article-share a:hover, .copy-link-button:hover { color: #fff; border-color: var(--mtsn9-green); background: var(--mtsn9-green); }
.copy-link-status { display: block; min-height: 16px; margin-top: 6px; color: var(--mtsn9-green); font-size: 10px; }
.related-posts { margin-top: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.related-grid .post-card-title { min-height: 0; margin: 6px 0 0; font-size: 12px; }
.related-date { color: var(--mtsn9-muted); font-size: 10px; }
/* Footer two-campus layout */
.footer-main { grid-template-columns: 1.25fr .72fr .75fr 1.45fr; }
.footer-campus-column > h2 { margin: 3px 0 15px; color: #f4d28a; font-size: 13px; font-weight: 850; }
.footer-campus { margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-campus:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.footer-campus h3 { margin: 0 0 5px; color: #fff; font-size: 12px; }
.footer-campus p, .footer-campus a { display: block; margin: 0 0 4px; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.footer-campus a:hover { color: #f5d68f; }
.footer-campus .footer-map-link { display: inline-block; margin-top: 4px; color: #f5d68f; font-weight: 800; }
@media (max-width: 1020px) {
  .hero-grid-slider { grid-template-columns: minmax(0,1.4fr) minmax(255px,.8fr); }
  .hero-slider, .hero-slider-track, .hero-slide, .hero-slide-image { min-height: 420px; }
  .hero-slide-copy { padding: 28px 27px 76px; }
  .hero-slide .hero-title { font-size: clamp(25px, 3vw, 34px); }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-campus-column { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
  .footer-campus-column > h2 { grid-column: 1 / -1; margin-bottom: -8px; }
  .footer-campus { margin: 0; }
}
@media (max-width: 760px) {
  .hero-grid-slider { grid-template-columns: 1fr; }
  .hero-slider, .hero-slider-track, .hero-slide, .hero-slide-image { min-height: 390px; }
  .hero-slide-copy { padding: 25px 23px 75px; }
  .hero-slide .hero-title { font-size: clamp(25px, 5vw, 32px); }
  .hero-slide .hero-excerpt { max-width: 100%; font-size: 12px; }
  .hero-side { display: flex; }
  .hero-side .trending-item { min-height: 78px; }
  .hero-side-heading { width: 100%; }
  .news-grid-three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .agenda-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .campus-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-campus-column { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .hero-slider, .hero-slider-track, .hero-slide, .hero-slide-image { min-height: 365px; }
  .hero-slide-copy { padding: 21px 18px 72px; }
  .hero-slide .hero-title { margin: 10px 0 8px; font-size: 24px; }
  .hero-slide .hero-excerpt { margin-bottom: 13px; font-size: 11px; }
  .hero-slider-controls { right: 13px; bottom: 12px; left: 13px; gap: 8px; }
  .slider-arrow { width: 32px; height: 32px; }
  .slider-pause { min-width: 47px; padding: 5px 7px; }
  .news-grid-three { grid-template-columns: 1fr; }
  .post-card-image .post-image { min-height: 190px; }
  .agenda-card { padding: 13px; }
  .gallery-grid { gap: 9px; }
  .gallery-card-title { padding: 9px; font-size: 11px; }
  .campus-card { padding: 15px; }
  .footer-campus-column { display: block; }
  .footer-campus { margin-bottom: 13px; padding-bottom: 13px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-grid .post-card-image .post-image { min-height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slider-controls button, .slider-dot, .quick-arrow, .gallery-card img { transition: none; }
}
@media (min-width: 761px) {
  .contact-page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .contact-page-intro { max-width: 100%; }
}
.hero-slider:not(.is-enhanced) .hero-slider-controls { visibility: hidden; }
.trending-image .post-image-placeholder { min-height: 0; height: 100%; }


/* Recent Posts thumbnails: classic widget and core Latest Posts block. */
.sidebar .mtsn9-recent-posts,
.sidebar .wp-block-latest-posts__list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar .mtsn9-recent-post-item,
.sidebar .wp-block-latest-posts__list > li {
  margin: 0;
  padding: 0;
}
.sidebar .mtsn9-recent-post-link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--mtsn9-ink);
  text-decoration: none;
}
.sidebar .mtsn9-recent-post-media {
  display: block;
  width: 88px;
  height: 66px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mtsn9-green-soft);
}
.sidebar .mtsn9-recent-thumb,
.sidebar .mtsn9-recent-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar .mtsn9-recent-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--mtsn9-green-dark);
  background: linear-gradient(135deg, #e5f1e9, #cfe4d5);
  font-size: 24px;
  font-weight: 900;
}
.sidebar .mtsn9-recent-post-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.sidebar .mtsn9-recent-post-title,
.sidebar .wp-block-latest-posts__post-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mtsn9-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.sidebar .mtsn9-recent-post-link:hover .mtsn9-recent-post-title,
.sidebar .wp-block-latest-posts__post-title:hover {
  color: var(--mtsn9-green);
}
.sidebar .mtsn9-recent-post-date,
.sidebar .wp-block-latest-posts__post-date {
  color: var(--mtsn9-muted);
  font-size: 10px;
  line-height: 1.4;
}
.sidebar .wp-block-latest-posts__list > li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 11px;
  row-gap: 4px;
  align-items: start;
}
.sidebar .wp-block-latest-posts__featured-image {
  grid-column: 1;
  grid-row: 1 / span 3;
  float: none;
  width: 88px;
  margin: 0;
}
.sidebar .wp-block-latest-posts__featured-image a,
.sidebar .wp-block-latest-posts__featured-image img {
  display: block;
  width: 88px;
  height: 66px;
}
.sidebar .wp-block-latest-posts__featured-image img {
  border-radius: 8px;
  object-fit: cover;
}
.sidebar .wp-block-latest-posts__post-title,
.sidebar .wp-block-latest-posts__post-date,
.sidebar .wp-block-latest-posts__post-excerpt {
  grid-column: 2;
}
@media (max-width: 480px) {
  .sidebar .mtsn9-recent-post-link,
  .sidebar .wp-block-latest-posts__list > li {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }
  .sidebar .mtsn9-recent-post-media,
  .sidebar .wp-block-latest-posts__featured-image,
  .sidebar .wp-block-latest-posts__featured-image a,
  .sidebar .wp-block-latest-posts__featured-image img {
    width: 82px;
    height: 62px;
  }
}


/* v1.1.0.3 — mobile-first refinements and compact service shortcuts. */
.quick-access--buttons-only {
  padding-top: 6px;
  padding-bottom: 26px;
}
.quick-access--buttons-only .quick-grid {
  align-items: stretch;
}
.quick-access--buttons-only .quick-card {
  min-width: 0;
}

/* Avoid layout overflow from long titles, URLs and user-generated content. */
.container,
.brand,
.brand-copy,
.header-tools,
.hero-grid,
.hero-side,
.quick-grid,
.intro-panel,
.content-columns,
.archive-layout,
.single-layout,
.footer-main,
.post-card,
.article-panel,
.sidebar {
  min-width: 0;
}
.entry-content,
.entry-content p,
.entry-content li,
.entry-content a,
.widget,
.comment-content {
  overflow-wrap: anywhere;
}
.entry-content pre,
.wp-block-code,
.wp-block-verse {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}
.entry-content iframe,
.entry-content video,
.entry-content audio,
.entry-content embed,
.entry-content object {
  max-width: 100%;
}
.entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 30px;
    gap: 8px;
  }
  .topbar-left {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    line-height: 1.35;
  }
  .topbar-left span:last-child {
    display: none;
  }

  /* Keep the search available on phones instead of hiding it. */
  .header-main {
    display: flex;
    flex-wrap: wrap;
    row-gap: 9px;
    min-height: 0;
    padding-block: 11px 12px;
  }
  .brand {
    flex: 1 1 100%;
    width: 100%;
    gap: 10px;
  }
  .brand-copy {
    flex: 1 1 auto;
  }
  .brand-kicker {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 8px;
    line-height: 1.35;
  }
  .site-title {
    overflow-wrap: anywhere;
    font-size: 18px;
  }
  .site-description {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.4;
  }
  .header-tools {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
  }
  .header-search input[type="search"] {
    height: 40px;
    font-size: 13px;
  }
  .header-search button {
    width: 32px;
    height: 32px;
  }

  .nav-inner {
    gap: 10px;
    min-height: 52px;
  }
  .mobile-menu-toggle {
    min-height: 42px;
    padding: 9px 12px;
  }
  .nav-cta {
    min-height: 40px;
    justify-content: center;
    padding: 8px 12px;
  }
  .primary-navigation {
    z-index: 40;
    max-height: min(72vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .primary-navigation > div > ul > li > a,
  .primary-navigation > ul > li > a,
  .primary-menu-fallback > li > a,
  .primary-navigation .sub-menu li a {
    min-height: 44px;
    padding-block: 9px;
    line-height: 1.4;
  }

  .hero-grid-slider {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-slider,
  .hero-slider-track,
  .hero-slide,
  .hero-slide-image {
    min-height: 390px;
  }
  .hero-slider {
    border-radius: 15px;
    touch-action: pan-y;
  }
  .hero-slide-copy {
    max-width: 100%;
    padding: 24px 20px 74px;
  }
  .hero-slide .hero-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(23px, 5.8vw, 30px);
    line-height: 1.2;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }
  .hero-slide .hero-excerpt {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .quick-access--buttons-only {
    padding-top: 4px;
    padding-bottom: 22px;
  }
  .quick-access--buttons-only .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .quick-access--buttons-only .quick-card {
    min-height: 94px;
    padding: 12px 30px 12px 11px;
    gap: 9px;
  }
  .quick-access--buttons-only .quick-card > span:nth-child(2) {
    min-width: 0;
  }
  .quick-access--buttons-only .quick-card strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .quick-access--buttons-only .quick-card small {
    font-size: 10px;
    line-height: 1.35;
  }
  .quick-access--buttons-only .quick-arrow {
    top: 9px;
    right: 10px;
  }

  .intro-panel {
    gap: 18px;
    padding: 20px;
  }
  .section-heading {
    gap: 12px;
  }
  .section-heading-copy {
    min-width: 0;
  }
  .section-heading > .text-link {
    white-space: normal;
    text-align: right;
  }
  .article-panel {
    padding: 18px;
  }
  .article-title {
    overflow-wrap: anywhere;
    font-size: clamp(24px, 6vw, 32px);
  }
  .article-share > div {
    gap: 7px;
  }
  .article-share a,
  .copy-link-button {
    min-height: 38px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--mtsn9-container));
  }
  .topbar-left {
    font-size: 9px;
  }
  .brand-logo-frame {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }
  .brand-logo-frame .custom-logo-link {
    width: 100%;
    height: 100%;
  }
  .brand-logo-frame .custom-logo {
    object-fit: contain;
  }
  .site-title {
    font-size: 16px;
  }
  .site-description {
    max-width: 100%;
    font-size: 9px;
  }
  .nav-inner {
    min-height: 50px;
  }
  .nav-cta {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 10px;
  }
  .hero-slider,
  .hero-slider-track,
  .hero-slide,
  .hero-slide-image {
    min-height: 380px;
  }
  .hero-slide-copy {
    padding: 20px 16px 70px;
  }
  .hero-slide .hero-title {
    margin-block: 9px 8px;
    font-size: 23px;
    -webkit-line-clamp: 4;
  }
  .hero-slide .hero-excerpt {
    margin-bottom: 12px;
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
  .hero-slider-controls {
    right: 11px;
    bottom: 11px;
    left: 11px;
    gap: 7px;
  }
  .slider-arrow {
    width: 34px;
    height: 34px;
  }
  .slider-pause {
    min-width: 48px;
    padding-inline: 7px;
  }
  .quick-access--buttons-only .quick-grid {
    gap: 9px;
  }
  .quick-access--buttons-only .quick-card {
    min-height: 90px;
    padding: 11px 27px 11px 9px;
  }
  .quick-access--buttons-only .quick-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .quick-access--buttons-only .quick-icon svg {
    width: 20px;
    height: 20px;
  }
  .quick-access--buttons-only .quick-card small {
    font-size: 9px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-heading > .text-link {
    margin-top: 0;
    text-align: left;
  }
  .intro-panel {
    padding: 18px;
  }
  .article-panel {
    padding: 15px;
  }
  .article-featured-image {
    margin-inline: -2px;
  }
  .article-share {
    padding: 12px;
  }
  .post-navigation a {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .quick-access--buttons-only .quick-card {
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px 10px;
    text-align: center;
  }
  .quick-access--buttons-only .quick-card > span:nth-child(2) {
    width: 100%;
  }
  .quick-access--buttons-only .quick-card small {
    max-width: 122px;
    margin-inline: auto;
    font-size: 9px;
  }
  .quick-access--buttons-only .quick-arrow {
    top: 7px;
    right: 8px;
  }
  .hero-slide .hero-title {
    font-size: 21px;
  }
  .hero-slide-meta {
    gap: 7px;
  }
  .hero-slide-meta time {
    font-size: 10px;
  }
}


/* v1.1.0.6 — comprehensive responsive and component audit, readability and mobile refinements. */
:root { color-scheme: light; }
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe, embed, object { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }

/* Archive and page title contrast. */
.page-hero { position: relative; isolation: isolate; color: #fff; background: linear-gradient(115deg, #064d35 0%, #087447 100%); }
.page-hero .page-title,
.page-hero .page-title .vcard,
.page-hero .page-title span { color: #fff !important; }
.page-hero .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; color: rgba(255,255,255,.88) !important; line-height: 1.5; }
.page-hero .breadcrumbs a { color: #fff !important; text-decoration: none; }
.page-hero .breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero .page-subtitle { color: rgba(255,255,255,.82) !important; }
.page-hero-compact { padding: 12px 0; }
.page-hero-compact .breadcrumbs { font-size: 12px; }

/* Mobile hero slider intentionally becomes a clean image + readable text card. */
.hero-grid-slider { min-width: 0; }
.hero-slider { min-width: 0; }
.hero-slide { min-width: 0; }
.hero-slide-image-link { overflow: hidden; }
.hero-slide-image { display: block; }
.hero-slide-copy { position: relative; z-index: 2; }
.hero-slider-controls button { font-family: inherit; text-transform: none; box-shadow: none; }
.slider-arrow, .slider-pause, .slider-dot { appearance: none; -webkit-appearance: none; }
.slider-arrow:focus-visible, .slider-pause:focus-visible, .slider-dot:focus-visible { outline: 3px solid #d9a441; outline-offset: 3px; }
.slider-dot { flex: 0 0 8px; min-width: 8px; min-height: 8px; }
.slider-pause { min-height: 32px; }

/* Branded, compact placeholder instead of a blank oversized image block. */
.post-card-image, .trending-image, .gallery-card-image, .feature-card-link { position: relative; }
.post-card-image > .post-image-placeholder,
.trending-image > .post-image-placeholder,
.gallery-card-image > .post-image-placeholder,
.hero-slide-image-link > .post-image-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
}
.post-image-placeholder {
  display: flex; flex-direction: column; gap: 8px; padding: 14px;
  color: rgba(255,255,255,.95);
  background: radial-gradient(circle at 78% 18%, rgba(245,216,145,.25), transparent 28%), linear-gradient(135deg, #0b8655, #06452f);
  text-align: center;
}
.post-image-placeholder .placeholder-emblem {
  display: grid; width: 42px; height: 42px; place-items: center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 13px;
  color: #f5d891; background: rgba(255,255,255,.12);
  font-family: Georgia, serif; font-size: 23px; font-weight: 900; letter-spacing: -2px;
}
.post-image-placeholder .placeholder-label { color: rgba(255,255,255,.9); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.trending-image .post-image-placeholder { gap: 3px; padding: 5px; }
.trending-image .post-image-placeholder .placeholder-emblem { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.trending-image .post-image-placeholder .placeholder-label { max-width: 100%; font-size: 6px; }

/* Intro values are stacked explicitly so words never run together. */
.intro-badges { align-items: stretch; }
.intro-badge { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.intro-badge strong { display: block; margin: 0; line-height: 1.35; }
.intro-badge span { display: block; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }

/* Article reading flow: no repeated title in the breadcrumb strip. */
.article-header { min-width: 0; }
.article-title { overflow-wrap: break-word; hyphens: auto; }
.article-header .entry-meta { gap: 10px; }
.article-deck { margin-top: 4px; }
.entry-content { min-width: 0; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin-block: 0 1.05em; }
.entry-content h2 { font-size: clamp(21px, 2.4vw, 28px); }
.entry-content h3 { font-size: clamp(18px, 2vw, 23px); }
.entry-content figure { margin-inline: 0; }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content video, .entry-content iframe { display: block; max-width: 100%; }
.entry-content iframe { width: 100%; }
.entry-content .wp-block-embed__wrapper { position: relative; max-width: 100%; }
.entry-content .wp-block-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.entry-content table th, .entry-content table td { min-width: 0; overflow-wrap: anywhere; }
.entry-content .wp-block-table table { min-width: 420px; table-layout: auto; }
.article-share a, .copy-link-button { min-height: 40px; justify-content: center; }
.post-navigation { align-items: flex-start; }
.post-navigation > span { min-width: 0; overflow-wrap: anywhere; }

/* Footer columns: prevent heading/campus overlap and preserve touch spacing. */
.footer-campus-column > h2 { margin-bottom: 15px !important; }
.footer-campus { min-width: 0; }
.footer-campus h3 { line-height: 1.4; }
.footer-campus p, .footer-campus a { overflow-wrap: anywhere; }
.footer-bottom-inner { flex-wrap: wrap; }

/* Search control and form sizing. */
.header-search button { padding: 0; }
.header-search button svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; }
.search-form { min-width: 0; }
.search-form label { min-width: 0; }
.search-form input[type="search"] { min-width: 0; }

@media (max-width: 760px) {
  .hero-section { padding: 14px 0 18px; }
  .hero-grid-slider { display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; }
  .hero-slider { height: auto; min-height: 0; border-radius: 15px; }
  .hero-slider-track { position: relative; height: clamp(500px, 124vw, 560px); min-height: 0; }
  .hero-slide { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 42% minmax(0,1fr); height: 100%; min-height: 0; align-items: stretch; }
  .hero-slide-image-link { position: relative; inset: auto; z-index: 0; display: block; grid-row: 1; width: 100%; height: 100%; min-height: 0; }
  .hero-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
  .hero-slide-placeholder { position: absolute; inset: 0; }
  .hero-slide-shade { position: absolute; z-index: 1; top: 0; right: 0; bottom: auto; left: 0; height: 42%; pointer-events: none; background: linear-gradient(0deg, rgba(3,45,31,.06), rgba(3,45,31,.2)); }
  .hero-slide-copy { grid-row: 2; width: 100%; min-width: 0; padding: 15px 17px 66px; color: var(--mtsn9-ink); background: #fff; }
  .hero-slide-meta { gap: 8px; }
  .hero-slide-meta .eyebrow { color: var(--mtsn9-green); font-size: 9px; letter-spacing: .08em; }
  .hero-slide-meta time { color: var(--mtsn9-muted); font-size: 10px; }
  .hero-slide .hero-title { display: -webkit-box; max-width: 100%; overflow: hidden; margin: 8px 0; color: var(--mtsn9-green-dark); font-size: clamp(20px, 5.5vw, 25px); line-height: 1.22; letter-spacing: -.025em; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .hero-slide .hero-title a { color: inherit; }
  .hero-slide .hero-excerpt { display: -webkit-box; overflow: hidden; max-width: 100%; margin: 0; color: var(--mtsn9-muted); font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hero-slide .hero-read-more { display: inline-flex; margin-top: 9px; padding: 7px 10px; color: #fff; background: var(--mtsn9-green); font-size: 10px; }
  .hero-slider-controls { right: 12px; bottom: 10px; left: 12px; gap: 8px; }
  .hero-slider-arrows { gap: 6px; }
  .slider-arrow { width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: #064d35; font-size: 22px; line-height: 1; }
  .hero-slider-dots { gap: 6px; }
  .slider-dot { width: 7px; height: 7px; min-width: 7px; min-height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(6,77,53,.25); }
  .slider-dot.is-active { width: 19px; background: var(--mtsn9-green); }
  .slider-pause { min-width: 48px; min-height: 32px; padding: 5px 8px; border: 1px solid rgba(6,77,53,.22); border-radius: 18px; color: #fff; background: #064d35; font-size: 9px; }

  .hero-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .hero-side-heading { grid-column: 1 / -1; }
  .hero-side .trending-item { min-height: 74px; grid-template-columns: 76px minmax(0,1fr); gap: 9px; padding: 8px; }
  .hero-side .trending-image { width: 76px; height: 58px; }
  .hero-side .trending-text h3 { font-size: 10px; line-height: 1.4; }
  .hero-side .trending-text time { font-size: 9px; }

  .archive-layout, .single-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .post-card-image { aspect-ratio: 16 / 10; }
  .post-card-image .post-image { min-height: 0; height: 100%; }
  .post-card-body { padding: 11px; }
  .post-card-title { min-height: 0; font-size: 13px; line-height: 1.35; -webkit-line-clamp: 3; }
  .post-card-excerpt { font-size: 11px; -webkit-line-clamp: 3; }
  .entry-meta { gap: 6px; font-size: 9px; }
  .meta-category { font-size: 9px; }
  .page-hero { padding: 23px 0; }
  .page-title { font-size: clamp(23px, 6vw, 29px); line-height: 1.18; overflow-wrap: break-word; }
  .page-subtitle { font-size: 11px; line-height: 1.55; }
  .article-panel { padding: 17px; }
  .article-title { font-size: clamp(23px, 6vw, 30px); line-height: 1.2; }
  .article-featured-image { margin-bottom: 18px; }
  .entry-content { font-size: 14px; line-height: 1.8; }
  .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

  .intro-badge { min-height: 76px; padding: 11px; }
  .intro-badge strong { font-size: 12px; }
  .intro-badge span { font-size: 10px; }

  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
  .footer-about, .footer-campus-column { grid-column: 1 / -1; }
  .footer-campus-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .footer-campus-column > h2 { grid-column: 1 / -1; margin: 0 0 2px !important; }
  .footer-campus { margin: 0; padding: 0 0 12px; }
  .footer-column { min-width: 0; }
  .footer-column li a { display: inline-block; min-height: 30px; padding-block: 4px; }
  .footer-bottom-inner { flex-direction: column; gap: 5px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, var(--mtsn9-container)); }
  .topbar-left { font-size: 9px; }
  .header-main { padding-block: 10px 11px; }
  .brand-logo-frame { flex: 0 0 52px; width: 52px; height: 52px; }
  .brand { gap: 9px; }
  .brand-kicker { font-size: 7.5px; letter-spacing: .06em; }
  .site-title { font-size: 16px; line-height: 1.2; }
  .site-description { font-size: 9px; line-height: 1.35; }
  .header-search input[type="search"] { height: 40px; font-size: 13px; }
  .header-search button { top: 4px; right: 4px; width: 32px; height: 32px; }
  .nav-inner { min-height: 48px; }
  .mobile-menu-toggle { min-height: 40px; padding: 7px 10px; }
  .nav-cta { min-height: 38px; padding: 6px 9px; font-size: 10px; }
  .hero-slider-track { height: clamp(490px, 128vw, 540px); }
  .hero-slide { grid-template-rows: 40% minmax(0,1fr); }
  .hero-slide-shade { height: 40%; }
  .hero-slide-copy { padding: 13px 14px 62px; }
  .hero-slide .hero-title { font-size: 21px; -webkit-line-clamp: 3; }
  .hero-slide .hero-excerpt { font-size: 10px; -webkit-line-clamp: 2; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side .trending-item { grid-template-columns: 82px minmax(0,1fr); }
  .hero-side .trending-image { width: 82px; height: 62px; }
  .quick-access--buttons-only .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-grid { grid-template-columns: 1fr; }
  .post-card-image { aspect-ratio: 16 / 9; }
  .post-card-body { padding: 13px; }
  .post-card-title { font-size: 15px; }
  .page-hero { padding: 20px 0; }
  .page-hero-compact { padding: 10px 0; }
  .page-hero-compact .breadcrumbs { font-size: 10px; }
  .single-layout { gap: 16px; }
  .article-panel { padding: 14px; border-radius: 12px; }
  .article-title { font-size: 23px; }
  .entry-content { font-size: 14px; line-height: 1.78; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .article-share { padding: 12px; }
  .article-share a, .copy-link-button { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .post-navigation { gap: 12px; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; padding: 30px 0 24px; }
  .footer-about, .footer-column, .footer-campus-column { grid-column: 1 / -1; }
  .footer-campus-column { display: block; }
  .footer-campus-column > h2 { margin-bottom: 14px !important; }
  .footer-campus { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-campus:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  .footer-campus p, .footer-campus a { font-size: 11px; line-height: 1.6; }
}

@media (max-width: 360px) {
  .hero-slider-track { height: 490px; }
  .hero-slide .hero-title { font-size: 19px; }
  .hero-slide-copy { padding-inline: 12px; }
  .hero-side .trending-item { grid-template-columns: 72px minmax(0,1fr); }
  .hero-side .trending-image { width: 72px; height: 56px; }
  .quick-access--buttons-only .quick-card { padding-inline: 8px; }
  .intro-badges { grid-template-columns: 1fr; }
}


/* v1.1.0.6 — final refinements from the recorded live-site audit. */
.post-image-placeholder { flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.post-image-placeholder .placeholder-emblem { flex: 0 0 42px; }
.post-image-placeholder .placeholder-label { display: block; max-width: min(90%, 260px); line-height: 1.45; overflow-wrap: anywhere; }
.page-hero .page-title { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.page-hero .breadcrumbs,
.page-hero .breadcrumbs a { color: rgba(255,255,255,.94) !important; }
.footer-campus-column > h2 { margin: 0 0 15px !important; }
.footer-campus h3 { margin: 0 0 7px !important; }
.footer-campus p { margin: 0 0 7px !important; }
@media (min-width: 761px) and (max-width: 900px) {
  .quick-access--buttons-only .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quick-access--buttons-only .quick-card { min-height: 82px; }
  .hero-grid-slider { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .8fr); }
  .hero-side .trending-item { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; }
  .hero-side .trending-image { width: 76px; height: 58px; }
}
@media (max-width: 760px) {
  .footer-campus-column { display: block !important; }
  .footer-campus-column > h2 { display: block; margin: 0 0 14px !important; grid-column: auto; }
  .footer-campus { display: block; margin: 0 0 14px !important; padding: 0 0 13px !important; }
  .footer-campus:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
}
@media (max-width: 480px) {
  .page-hero .breadcrumbs { font-size: 10px; line-height: 1.5; }
  .footer-campus-column > h2 { margin-bottom: 14px !important; }
  .footer-campus h3 { margin-bottom: 6px !important; }
  .post-image-placeholder .placeholder-label { font-size: 9px; }
}


/* Hero placeholders stay quiet behind the headline when no featured photo exists. */
.hero-slide-placeholder .placeholder-label { display: none !important; }
.hero-slide-placeholder .placeholder-emblem { display: none !important; }

/* Direct HTML tables fit the content column; wide block tables scroll inside their wrapper. */
.entry-content > table { max-width: 100%; }
.entry-content .wp-block-table { width: 100%; }


/* MTsN 9 Kediri Modern 1.2.0 — expanded information portal components */
:root { --mtsn9-content-width: 1180px; }
.infographic-section { padding-top: 28px; padding-bottom: 28px; background: #fff; }
.infographic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.infographic-card { min-width: 0; overflow: hidden; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(15,55,36,.035); }
.infographic-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mtsn9-green-soft); }
.infographic-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.infographic-copy { padding: 12px 14px 15px; }
.infographic-copy time, .video-card-copy time { display: block; margin-bottom: 5px; color: var(--mtsn9-muted); font-size: 10px; }
.infographic-copy h3 { margin: 0; color: var(--mtsn9-green-dark); font-size: 14px; line-height: 1.45; }
.infographic-copy h3 a { color: inherit; }
.topic-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.topic-panel { min-width: 0; overflow: hidden; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; }
.topic-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--mtsn9-border); background: var(--mtsn9-green-soft); }
.topic-panel-heading h3 { margin: 0; color: var(--mtsn9-green-dark); font-size: 16px; }
.topic-panel-heading a { color: var(--mtsn9-green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.topic-item { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 13px; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--mtsn9-border); }
.topic-item:last-child { border-bottom: 0; }
.topic-thumb { display: block; width: 92px; height: 70px; overflow: hidden; border-radius: 9px; background: var(--mtsn9-green-soft); }
.topic-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-item time { display: block; margin-bottom: 4px; color: var(--mtsn9-muted); font-size: 10px; }
.topic-item h4 { display: -webkit-box; overflow: hidden; margin: 0; color: var(--mtsn9-ink); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.topic-item h4 a { color: inherit; }
.video-section { background: #eef5f0; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; }
.video-embed, .article-video-embed { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; background: #10251b; }
.video-embed iframe, .article-video-embed iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.video-card-copy { padding: 13px 15px 16px; }
.video-card-copy h3 { margin: 0; color: var(--mtsn9-green-dark); font-size: 14px; line-height: 1.45; }
.video-card-copy h3 a { color: inherit; }
.article-video-embed { margin: 0 0 24px; border-radius: 13px; }
.profile-page-layout, .services-page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.profile-child-pages { min-width: 0; }
.profile-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.profile-page-card { min-width: 0; overflow: hidden; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; }
.profile-page-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mtsn9-green-soft); }
.profile-page-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-page-placeholder { display: grid; width: 100%; height: 100%; min-height: 120px; place-items: center; color: var(--mtsn9-green); background: linear-gradient(135deg,#edf6f0,#d8ebdf); font-weight: 850; }
.profile-page-card-copy { padding: 16px; }
.profile-page-card-copy h3 { margin: 0 0 7px; color: var(--mtsn9-green-dark); font-size: 16px; line-height: 1.4; }
.profile-page-card-copy h3 a { color: inherit; }
.profile-page-card-copy p { margin: 0 0 10px; color: var(--mtsn9-muted); font-size: 12px; line-height: 1.65; }
.service-page-card { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 16px; align-items: start; padding: 22px; border: 1px solid var(--mtsn9-border); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(15,55,36,.035); }
.services-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.service-page-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 15px; color: var(--mtsn9-green); background: var(--mtsn9-green-soft); font-size: 27px; font-weight: 800; }
.service-page-card h2 { margin: 0 0 5px; color: var(--mtsn9-green-dark); font-size: 18px; }
.service-page-card p { margin: 0 0 12px; color: var(--mtsn9-muted); font-size: 13px; line-height: 1.6; }
.service-page-link { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 13px; border-radius: 8px; color: #fff; background: var(--mtsn9-green); font-size: 12px; font-weight: 800; }
.service-page-link:hover { color: #fff; background: var(--mtsn9-green-dark); }
/* More consistent news and archive cards. */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card-image { flex: 0 0 auto; }
.post-card-image .post-image-placeholder { display: grid; width: 100%; height: 100%; min-height: 170px; place-items: center; }
.post-card-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; }
.post-card-more { display: inline-flex; margin-top: auto; padding-top: 13px; color: var(--mtsn9-green); font-size: 11px; font-weight: 850; }
.archive-grid .post-card { min-height: 100%; }
.archive-layout > div { min-width: 0; }
.entry-content img, .entry-content video, .entry-content iframe, .entry-content object, .entry-content embed { max-width: 100%; }
.entry-content pre { max-width: 100%; overflow-x: auto; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content figure { margin-inline: 0; }
/* Admin-editable category navigation and nested menus. */
.primary-navigation .sub-menu .sub-menu { top: 0; left: 100%; border-radius: 10px; }
.primary-navigation .menu-item-has-children > a:after { content: "⌄"; margin-left: 7px; font-size: 11px; }
.primary-navigation .sub-menu .menu-item-has-children > a:after { content: "›"; float: right; }
/* Avoid the old homepage duplicate: archive/section layouts have a clear reading rhythm. */
.section-topics { background: #f7faf8; }
@media (max-width: 1020px) {
  .infographic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-page-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .topic-columns, .video-grid, .services-page-grid { grid-template-columns: minmax(0,1fr); }
  .profile-page-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .infographic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .service-page-card { padding: 17px; grid-template-columns: 48px minmax(0,1fr); gap: 12px; }
  .service-page-icon { width: 46px; height: 46px; font-size: 22px; }
  .topic-item { grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 11px 12px; }
  .topic-thumb { width: 82px; height: 64px; }
  .profile-page-card-copy { padding: 12px; }
  .profile-page-card-copy h3 { font-size: 14px; }
}
@media (max-width: 420px) {
  .profile-page-grid { grid-template-columns: minmax(0,1fr); }
  .infographic-grid { gap: 9px; }
  .infographic-copy { padding: 10px; }
  .infographic-copy h3 { font-size: 12px; }
  .topic-panel-heading { padding: 12px; }
}


/* Archive discovery controls and editable school-service catalogue. */
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.archive-topic-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.topic-filter { display: inline-flex; min-height: 34px; align-items: center; padding: 7px 12px; border: 1px solid var(--mtsn9-border); border-radius: 999px; color: var(--mtsn9-green-dark); background: #fff; font-size: 11px; font-weight: 750; }
.topic-filter:hover, .topic-filter.is-current { color: #fff; border-color: var(--mtsn9-green); background: var(--mtsn9-green); }
.archive-search { width: min(100%, 270px); }
.archive-search .search-form { gap: 5px; }
.archive-search .search-form button { min-width: 68px; }
.admin-services-section { margin-top: 36px; }
.admin-services-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.admin-service-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 15px; overflow: hidden; border: 1px solid var(--mtsn9-border); border-radius: 14px; background: #fff; }
.admin-service-image { display: block; min-height: 145px; overflow: hidden; background: var(--mtsn9-green-soft); }
.admin-service-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-service-copy { min-width: 0; padding: 14px 14px 14px 0; }
.admin-service-copy h3 { margin: 0 0 7px; color: var(--mtsn9-green-dark); font-size: 15px; line-height: 1.4; }
.admin-service-copy h3 a { color: inherit; }
.admin-service-copy p { margin: 0 0 9px; color: var(--mtsn9-muted); font-size: 12px; line-height: 1.6; }
.article-author, .article-updated { color: var(--mtsn9-muted); }
@media (max-width: 900px) {
  .archive-toolbar { align-items: stretch; flex-direction: column; }
  .archive-search { width: 100%; max-width: 360px; }
  .admin-services-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .admin-service-card { grid-template-columns: 108px minmax(0,1fr); gap: 11px; }
  .admin-service-image { min-height: 125px; }
  .admin-service-copy { padding: 11px 10px 11px 0; }
  .admin-service-copy h3 { font-size: 13px; }
  .admin-service-copy p { font-size: 11px; }
  .archive-topic-filters { gap: 6px; }
  .topic-filter { min-height: 32px; padding: 6px 10px; font-size: 10px; }
}


/* Profile and Contact page structural styles. */
.intro-section { padding-top: 18px; padding-bottom: 36px; }
.contact-page-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 30px; }
.contact-page-intro { max-width: 100%; }
.contact-page-campuses { min-width: 0; }
.contact-page-campuses .section-heading { margin-bottom: 17px; }
.contact-page-campuses .campus-grid { margin-bottom: 8px; }
.services-intro { max-width: 100%; }
@media (max-width: 760px) {
  .intro-section { padding-top: 12px; padding-bottom: 24px; }
  .contact-page-layout { gap: 20px; }
  .contact-page-campuses .section-heading { margin-bottom: 12px; }
}


.video-fallback { position: absolute; inset: 0; display: block; overflow: hidden; color: #fff; background: #10251b; }
.video-fallback img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.video-fallback > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: #fff; background: rgba(4,62,42,.92); font-size: 12px; font-weight: 800; white-space: nowrap; }
.video-fallback:hover { color: #fff; }
@media (max-width: 560px) { .video-fallback > span { padding: 8px 12px; font-size: 11px; } }


/* v1.2.1 portal landing pages and migration-safe navigation */
.portal-page-intro { margin-bottom: 26px; }
.portal-admin-hint { margin: 18px 0; padding: 12px 16px; border: 1px dashed var(--mtsn9-border); border-radius: 12px; background: var(--mtsn9-bg); color: var(--mtsn9-muted); font-size: .92rem; }
.archive-grid-gallery .post-card { min-width: 0; }
.archive-grid-gallery .post-card-image { aspect-ratio: 4 / 3; }
.portal-pagination { margin-top: 28px; }
.portal-pagination ul { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; }
.portal-pagination li { margin:0; }
.portal-pagination a, .portal-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; padding:8px 12px; border:1px solid var(--mtsn9-border); border-radius:10px; text-decoration:none; background:#fff; }
.portal-pagination .current { background:var(--mtsn9-green); border-color:var(--mtsn9-green); color:#fff; }
.publication-topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:26px 0 42px; }
.publication-topic-card { min-width:0; display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--mtsn9-border); border-radius:14px; background:#fff; color:var(--mtsn9-ink); text-decoration:none; box-shadow:0 4px 18px rgba(15,55,36,.04); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.publication-topic-card:hover { transform:translateY(-2px); border-color:rgba(8,116,71,.35); box-shadow:var(--mtsn9-shadow); }
.publication-topic-icon { flex:0 0 42px; width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--mtsn9-green-soft); color:var(--mtsn9-green); font-size:1.3rem; font-weight:800; }
.publication-topic-copy { display:grid; gap:4px; min-width:0; }
.publication-topic-copy strong { color:var(--mtsn9-green-dark); font-size:1rem; }
.publication-topic-copy small { color:var(--mtsn9-muted); font-size:.82rem; line-height:1.45; }
.publication-topic-arrow { margin-left:auto; color:var(--mtsn9-green); font-size:1.15rem; }
.publication-latest { padding-top:10px; }
@media(max-width:900px) { .publication-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .publication-topic-grid { grid-template-columns:1fr; gap:10px; margin:18px 0 30px; } .publication-topic-card { padding:14px; } .portal-pagination a,.portal-pagination span { min-width:36px; min-height:36px; } }

.intro-badge--title-only { align-items:center; justify-content:center; min-height:58px; }
.intro-badge--title-only strong { margin:0; }
.profile-empty-state { margin:18px 0; }


/* -------------------------------------------------------------------------
   v1.2.5 Galaxy Aurora dark mode
   The light palette remains the default. Dark mode uses a restrained cosmic
   palette with navy surfaces, subtle nebula light, cyan interaction accents,
   and the school green retained for identity.
   ------------------------------------------------------------------------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --mtsn9-ink: #eef2ff;
  --mtsn9-muted: #aebbd4;
  --mtsn9-border: rgba(151, 169, 218, .19);
  --mtsn9-paper: #111a30;
  --mtsn9-bg: #080d1b;
  --mtsn9-green-soft: rgba(56, 189, 248, .11);
  --mtsn9-green: #38bdf8;
  --mtsn9-green-dark: #b9c8ff;
  --mtsn9-green-deep: #070b18;
  --mtsn9-gold: #f3c978;
  --mtsn9-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  background: #080d1b;
  color: #eef2ff;
}
html[data-theme="dark"] body {
  --mtsn9-ink: #eef2ff;
  --mtsn9-muted: #aebbd4;
  --mtsn9-border: rgba(151, 169, 218, .19);
  --mtsn9-paper: #111a30;
  --mtsn9-bg: #080d1b;
  --mtsn9-green-soft: rgba(56, 189, 248, .11);
  --mtsn9-green: #38bdf8;
  --mtsn9-green-dark: #b9c8ff;
  --mtsn9-green-deep: #070b18;
  --mtsn9-gold: #f3c978;
  --mtsn9-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  color: #eef2ff;
  background-color: #080d1b;
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(91, 67, 166, .22), transparent 34rem),
    radial-gradient(ellipse at 92% 13%, rgba(24, 123, 169, .17), transparent 32rem),
    radial-gradient(ellipse at 52% 92%, rgba(64, 55, 135, .13), transparent 38rem),
    radial-gradient(1px 1px at 18px 24px, rgba(224, 235, 255, .32) 1px, transparent 1.6px),
    radial-gradient(1px 1px at 74px 83px, rgba(116, 202, 255, .24) 1px, transparent 1.6px);
  background-size: auto, auto, auto, 118px 118px, 163px 163px;
  background-attachment: fixed;
}
html[data-theme="dark"] a { color: #7dd3fc; }
html[data-theme="dark"] a:hover { color: #c4b5fd; }
html[data-theme="dark"] .site-topbar {
  color: #cbd5f0;
  background: linear-gradient(100deg, #070b18, #111a30 56%, #10172b);
  border-bottom: 1px solid rgba(139, 92, 246, .22);
}
html[data-theme="dark"] .site-header {
  color: #eef2ff;
  background: linear-gradient(110deg, rgba(10, 16, 34, .98), rgba(16, 25, 48, .97));
  border-bottom-color: rgba(125, 211, 252, .17);
}
html[data-theme="dark"] .site-title { color: #f2f4ff; }
html[data-theme="dark"] .brand-kicker { color: #7dd3fc; }
html[data-theme="dark"] .site-description { color: #b4c1dc; }
html[data-theme="dark"] .nav-bar {
  background: linear-gradient(100deg, #0c1730, #172044 55%, #102a3f);
  border-top: 1px solid rgba(125, 211, 252, .12);
  border-bottom: 1px solid rgba(139, 92, 246, .25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .primary-navigation > div > ul > li > a,
html[data-theme="dark"] .primary-navigation > ul > li > a,
html[data-theme="dark"] .primary-menu-fallback > li > a { color: #e5edff; }
html[data-theme="dark"] .primary-navigation li:hover > a,
html[data-theme="dark"] .primary-navigation li:focus-within > a,
html[data-theme="dark"] .primary-navigation .current-menu-item > a,
html[data-theme="dark"] .primary-navigation .current_page_item > a { color: #fff; background: rgba(125, 211, 252, .13); }
html[data-theme="dark"] .primary-navigation .sub-menu {
  background: #111a30;
  border-color: rgba(139, 92, 246, .30);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
}
html[data-theme="dark"] .primary-navigation .sub-menu li a { color: #e6edff; }
html[data-theme="dark"] .primary-navigation .sub-menu li a:hover { color: #fff; background: rgba(56, 189, 248, .13); }
html[data-theme="dark"] .mobile-menu-toggle { color: #eaf2ff; border-color: rgba(125, 211, 252, .38); background: rgba(255,255,255,.035); }
html[data-theme="dark"] .nav-cta { color: #111a30; background: linear-gradient(110deg, #f4d18c, #bce8ff); }
html[data-theme="dark"] .nav-cta:hover { color: #080d1b; }
html[data-theme="dark"] .hero-section,
html[data-theme="dark"] .section,
html[data-theme="dark"] .content-area { background: transparent; }
html[data-theme="dark"] .hero-feature { box-shadow: 0 20px 48px rgba(0,0,0,.42), 0 0 0 1px rgba(139,92,246,.16); }
html[data-theme="dark"] .hero-feature:after {
  background: linear-gradient(90deg, rgba(4, 8, 22, .91), rgba(9, 17, 39, .56) 61%, rgba(7, 14, 30, .08)),
              linear-gradient(0deg, rgba(0,0,0,.48), transparent 70%);
}
html[data-theme="dark"] .hero-slide-copy { color: #eef2ff; background: linear-gradient(145deg, rgba(15, 24, 47, .97), rgba(25, 28, 61, .96)); }
html[data-theme="dark"] .hero-side-heading h2,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .post-card-title,
html[data-theme="dark"] .article-title,
html[data-theme="dark"] .entry-content h1,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4,
html[data-theme="dark"] .publication-topic-copy strong,
html[data-theme="dark"] .agenda-copy h3,
html[data-theme="dark"] .profile-page-card-copy h3,
html[data-theme="dark"] .service-page-card h2,
html[data-theme="dark"] .infographic-copy h3,
html[data-theme="dark"] .video-card-copy h3,
html[data-theme="dark"] .topic-panel-heading h3 { color: #f0f3ff; }
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .eyebrow { color: #80dcff; }
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .post-card-excerpt,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .publication-topic-copy small,
html[data-theme="dark"] .agenda-copy,
html[data-theme="dark"] .profile-page-card-copy,
html[data-theme="dark"] .service-page-card p,
html[data-theme="dark"] .infographic-copy time,
html[data-theme="dark"] .video-card-copy time { color: #b7c5df; }
html[data-theme="dark"] .trending-item,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .compact-list,
html[data-theme="dark"] .intro-panel,
html[data-theme="dark"] .article-panel,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .publication-topic-card,
html[data-theme="dark"] .portal-admin-hint,
html[data-theme="dark"] .portal-pagination a,
html[data-theme="dark"] .portal-pagination span,
html[data-theme="dark"] .page-numbers,
html[data-theme="dark"] .topic-filter,
html[data-theme="dark"] .admin-service-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .agenda-card,
html[data-theme="dark"] .profile-page-card,
html[data-theme="dark"] .service-page-card,
html[data-theme="dark"] .announcement-card,
html[data-theme="dark"] .feature-card-copy,
html[data-theme="dark"] .search-result-card,
html[data-theme="dark"] .infographic-card,
html[data-theme="dark"] .topic-panel,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .hero-side-empty,
html[data-theme="dark"] .contact-page-intro,
html[data-theme="dark"] .campus-card,
html[data-theme="dark"] .profile-main-content {
  color: #eaf0ff;
  background: linear-gradient(145deg, rgba(18, 28, 53, .97), rgba(14, 23, 44, .97));
  border-color: rgba(141, 159, 211, .20);
  box-shadow: 0 14px 36px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .quick-card:hover,
html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .publication-topic-card:hover,
html[data-theme="dark"] .gallery-card:hover,
html[data-theme="dark"] .profile-page-card:hover {
  border-color: rgba(125, 211, 252, .50);
  box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 22px rgba(56,189,248,.09);
}
html[data-theme="dark"] .quick-icon,
html[data-theme="dark"] .publication-topic-icon,
html[data-theme="dark"] .campus-card-icon,
html[data-theme="dark"] .agenda-date {
  color: #d9f5ff;
  background: linear-gradient(145deg, rgba(56,189,248,.20), rgba(139,92,246,.20));
  border-color: rgba(125,211,252,.2);
}
html[data-theme="dark"] .page-hero {
  color: #f3f5ff;
  background: linear-gradient(115deg, #101a34 0%, #25234d 55%, #12364a 100%);
  border-bottom: 1px solid rgba(139,92,246,.28);
}
html[data-theme="dark"] .page-title { color: #fff; }
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .breadcrumbs { color: #c4d2ed; }
html[data-theme="dark"] .announcement-band {
  color: #f1f5ff;
  background: linear-gradient(110deg, #111a35, #29224f 58%, #12384a);
  border-block: 1px solid rgba(139,92,246,.22);
}
html[data-theme="dark"] .infographic-section { background: rgba(18, 28, 53, .58); }
html[data-theme="dark"] .hero-slide-copy,
html[data-theme="dark"] .feature-card-copy { border-color: rgba(125,211,252,.15); }
html[data-theme="dark"] .entry-content blockquote { color: #e8efff; background: rgba(139,92,246,.12); border-left-color: #8b5cf6; }
html[data-theme="dark"] .entry-content table,
html[data-theme="dark"] .entry-content th,
html[data-theme="dark"] .entry-content td { border-color: rgba(151,169,218,.24); }
html[data-theme="dark"] .entry-content th { color: #f4f6ff; background: rgba(56,189,248,.13); }
html[data-theme="dark"] .entry-content td { color: #d7e1f6; background: rgba(17,26,48,.72); }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .header-search input[type="search"],
html[data-theme="dark"] .search-form input[type="search"] {
  color: #eff4ff;
  background: rgba(10, 17, 34, .92);
  border-color: rgba(142,160,211,.32);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .header-search input::placeholder { color: #91a2c3; }
html[data-theme="dark"] .header-search button { color: #07101e; background: linear-gradient(135deg, #7dd3fc, #c4b5fd); }
html[data-theme="dark"] .topic-filter { color: #dbeafe; background: rgba(17,26,48,.9); border-color: rgba(141,159,211,.24); }
html[data-theme="dark"] .topic-filter:hover,
html[data-theme="dark"] .topic-filter.is-current { color: #081120; background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .site-footer {
  color: #dfe8ff;
  background: radial-gradient(ellipse at 12% 0%, rgba(91,67,166,.22), transparent 28rem),
              radial-gradient(ellipse at 95% 80%, rgba(24,123,169,.14), transparent 30rem),
              linear-gradient(145deg, #080d1b, #111a30 62%, #10152b);
  border-top: 1px solid rgba(139,92,246,.28);
}
html[data-theme="dark"] .footer-column h2,
html[data-theme="dark"] .footer-campus h3,
html[data-theme="dark"] .footer-brand strong { color: #f1f4ff; }
html[data-theme="dark"] .footer-about p,
html[data-theme="dark"] .footer-campus p,
html[data-theme="dark"] .footer-campus a,
html[data-theme="dark"] .footer-menu a,
html[data-theme="dark"] .footer-column li a { color: #b9c7e2; }
html[data-theme="dark"] .footer-bottom { color: #aebbd4; background: rgba(4,8,18,.48); border-top-color: rgba(141,159,211,.16); }
html[data-theme="dark"] .footer-social-link {
  color: #eaf3ff;
  background: rgba(125,211,252,.08);
  border-color: rgba(125,211,252,.30);
  box-shadow: 0 0 18px rgba(56,189,248,.06);
}
html[data-theme="dark"] .footer-social-link:hover { color: #091322; background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .theme-mode-toggle {
  color: #f7d68b;
  background: linear-gradient(145deg, #1e2850, #111a30);
  border-color: rgba(196,181,253,.42);
  box-shadow: 0 0 18px rgba(139,92,246,.16);
}
html[data-theme="dark"] .theme-mode-toggle:hover { color: #081120; background: #c4b5fd; border-color: #c4b5fd; }
html[data-theme="dark"] .back-to-top {
  color: #081120;
  background: linear-gradient(135deg, #7dd3fc, #c4b5fd);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 10px 28px rgba(56,189,248,.22);
}
html[data-theme="dark"] .back-to-top:hover { color: #081120; background: #f3d18d; }
html[data-theme="dark"] .portal-pagination .current,
html[data-theme="dark"] .page-numbers.current { color: #081120; background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .post-image-placeholder,
html[data-theme="dark"] .profile-page-placeholder { color: #e8eaff; background: linear-gradient(145deg, #1a2850, #28204b 58%, #103a4c); }
html[data-theme="dark"] .empty-state h2 { color: #f0f3ff; }
html[data-theme="dark"] .screen-reader-text { color: inherit; }
html[data-theme="dark"] :focus-visible { outline-color: #80dcff; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] *, html[data-theme="dark"] *::before, html[data-theme="dark"] *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Galaxy component finishing: value badges, side headlines, compact links and callouts. */
html[data-theme="dark"] .intro-badge {
  color: #dce7ff;
  background: linear-gradient(145deg, rgba(139,92,246,.12), rgba(56,189,248,.08));
  border: 1px solid rgba(151,169,218,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .intro-badge strong { color: #f2f4ff; }
html[data-theme="dark"] .intro-badge span { color: #b8c7e4; }
html[data-theme="dark"] .trending-text h3 a,
html[data-theme="dark"] .compact-list a,
html[data-theme="dark"] .post-card-title a,
html[data-theme="dark"] .article-share a,
html[data-theme="dark"] .post-card-more,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .hero-side-more { color: #8edfff; }
html[data-theme="dark"] .trending-text time,
html[data-theme="dark"] .entry-meta,
html[data-theme="dark"] .post-card-meta,
html[data-theme="dark"] .hero-slide-meta time { color: #aebbd4; }
html[data-theme="dark"] .hero-side-badge { color: #c8bdff; background: rgba(139,92,246,.15); border-color: rgba(196,181,253,.22); }
html[data-theme="dark"] .slider-arrow,
html[data-theme="dark"] .slider-pause,
html[data-theme="dark"] .slider-dot { color: #edf4ff; background: rgba(15,24,48,.86); border-color: rgba(145,164,220,.3); }
html[data-theme="dark"] .slider-arrow:hover,
html[data-theme="dark"] .slider-pause:hover { color: #07101f; background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .slider-dot.is-active { background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .quick-card small,
html[data-theme="dark"] .intro-panel p,
html[data-theme="dark"] .footer-brand small { color: #b7c5df; }
html[data-theme="dark"] .site-date { color: #d4def3; }
html[data-theme="dark"] .contact-page-campuses .section-title,
html[data-theme="dark"] .footer-campus h3 { color: #edf3ff; }
html[data-theme="dark"] .portal-pagination .page-numbers,
html[data-theme="dark"] .archive-toolbar,
html[data-theme="dark"] .archive-topic-filters { color: #e7edff; }
html[data-theme="dark"] .wp-block-table,
html[data-theme="dark"] .wp-block-embed,
html[data-theme="dark"] .wp-block-quote { color: #dce7ff; }
html[data-theme="dark"] .wp-block-table table { border-color: rgba(151,169,218,.22); }
html[data-theme="dark"] .wp-block-table th { color: #f1f5ff; background: rgba(56,189,248,.13); }
html[data-theme="dark"] .wp-block-table td { color: #dce7ff; background: rgba(17,26,48,.74); }
html[data-theme="dark"] .wp-block-quote { background: rgba(139,92,246,.11); border-left-color: #8b5cf6; }
html[data-theme="dark"] .wp-block-button__link { color: #07101f; background: linear-gradient(115deg, #7dd3fc, #c4b5fd); }
html[data-theme="dark"] .wp-block-button__link:hover { color: #07101f; filter: brightness(1.08); }
html[data-theme="dark"] .footer-map-link,
html[data-theme="dark"] .campus-map-link { color: #8edfff; }
html[data-theme="dark"] .site-footer a:hover { color: #d7c7ff; }
html[data-theme="dark"] .service-page-link { color: #081120; background: linear-gradient(110deg, #7dd3fc, #c4b5fd); }
html[data-theme="dark"] .service-page-link:hover { color: #081120; filter: brightness(1.08); }
html[data-theme="dark"] .post-card-image,
html[data-theme="dark"] .trending-image,
html[data-theme="dark"] .infographic-image,
html[data-theme="dark"] .gallery-card-image { background: #111a30; }
html[data-theme="dark"] .footer-campus { border-color: rgba(151,169,218,.17); }
html[data-theme="dark"] .footer-column li + li { border-top-color: rgba(151,169,218,.10); }

/* Mobile menu and remaining content surfaces in Galaxy Aurora mode. */
html[data-theme="dark"] .gallery-section,
html[data-theme="dark"] .video-section,
html[data-theme="dark"] .publication-latest,
html[data-theme="dark"] .quick-access,
html[data-theme="dark"] .intro-section,
html[data-theme="dark"] .admin-services-section,
html[data-theme="dark"] .profile-child-pages { background: transparent; }
html[data-theme="dark"] .article-share,
html[data-theme="dark"] .article-featured-image figcaption,
html[data-theme="dark"] .archive-toolbar,
html[data-theme="dark"] .profile-page-placeholder,
html[data-theme="dark"] .recent-posts-widget,
html[data-theme="dark"] .widget_recent_entries { color: #dfe8ff; background: rgba(17,26,48,.92); border-color: rgba(151,169,218,.20); }
html[data-theme="dark"] .article-tags { color: #aebbd4; border-top-color: rgba(151,169,218,.2); }
html[data-theme="dark"] .article-tags a { color: #8edfff; }
html[data-theme="dark"] .hero-empty { color: #eff3ff; background: linear-gradient(145deg, #111a30, #25234d); }
html[data-theme="dark"] .trending-item { border-color: rgba(151,169,218,.16); }
html[data-theme="dark"] .footer-about p { color: #b9c7e2; }
@media (max-width: 760px) {
  html[data-theme="dark"] .primary-navigation {
    background: linear-gradient(145deg, #101a33, #1b1d42 58%, #103347);
    border: 1px solid rgba(139,92,246,.28);
  }
  html[data-theme="dark"] .primary-navigation .sub-menu {
    background: rgba(139,92,246,.11);
    border: 1px solid rgba(151,169,218,.12);
  }
  html[data-theme="dark"] .primary-navigation .sub-menu li a { color: #dce8ff; }
  html[data-theme="dark"] .primary-navigation .sub-menu li a:hover { color: #fff; background: rgba(56,189,248,.14); }
}

/* -------------------------------------------------------------------------
   v1.2.6 Galaxy Aurora refinement
   One consistent dark palette for every template. Light mode is untouched.
   ------------------------------------------------------------------------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --mtsn9-ink: #f1f4ff;
  --mtsn9-muted: #b5c1dc;
  --mtsn9-border: rgba(145, 164, 218, .20);
  --mtsn9-paper: #121b32;
  --mtsn9-bg: #080d1b;
  --mtsn9-green-soft: rgba(56, 189, 248, .12);
  --mtsn9-green: #38bdf8;
  --mtsn9-green-dark: #d8e4ff;
  --mtsn9-green-deep: #070b18;
  --mtsn9-gold: #f4d28a;
  --mtsn9-shadow: 0 18px 44px rgba(0, 0, 0, .30);
  background: #080d1b;
  color: #f1f4ff;
}
html[data-theme="dark"] body {
  color: #eef2ff;
  background-color: #080d1b;
  background-image:
    radial-gradient(ellipse at 7% 3%, rgba(111, 76, 190, .19), transparent 34rem),
    radial-gradient(ellipse at 92% 17%, rgba(25, 139, 184, .14), transparent 33rem),
    radial-gradient(ellipse at 53% 88%, rgba(72, 63, 154, .10), transparent 39rem),
    radial-gradient(1px 1px at 18px 24px, rgba(224, 235, 255, .23) 1px, transparent 1.7px),
    radial-gradient(1px 1px at 74px 83px, rgba(116, 202, 255, .17) 1px, transparent 1.7px);
  background-size: auto, auto, auto, 136px 136px, 179px 179px;
  background-attachment: fixed;
}
html[data-theme="dark"] .site-topbar {
  color: #cbd5ed;
  background: linear-gradient(100deg, #070b18 0%, #111a30 58%, #10172b 100%);
  border-bottom-color: rgba(139, 92, 246, .20);
}
html[data-theme="dark"] .site-header {
  color: #eef2ff;
  background: linear-gradient(110deg, rgba(10, 16, 34, .98), rgba(16, 25, 48, .97));
  border-bottom-color: rgba(125, 211, 252, .16);
}
html[data-theme="dark"] .site-title { color: #f4f6ff; }
html[data-theme="dark"] .brand-kicker,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .eyebrow { color: #78dcff; }
html[data-theme="dark"] .site-description { color: #b7c4df; }
html[data-theme="dark"] .nav-bar {
  background: linear-gradient(100deg, #0b1530 0%, #182144 55%, #102a3e 100%);
  border-top-color: rgba(125, 211, 252, .12);
  border-bottom-color: rgba(139, 92, 246, .23);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] .primary-navigation > div > ul > li > a,
html[data-theme="dark"] .primary-navigation > ul > li > a,
html[data-theme="dark"] .primary-menu-fallback > li > a { color: #e7edff; }
html[data-theme="dark"] .primary-navigation li:hover > a,
html[data-theme="dark"] .primary-navigation li:focus-within > a,
html[data-theme="dark"] .primary-navigation .current-menu-item > a,
html[data-theme="dark"] .primary-navigation .current_page_item > a {
  color: #fff;
  background: rgba(125, 211, 252, .13);
}
html[data-theme="dark"] .primary-navigation .sub-menu {
  color: #eaf0ff;
  background: #121b33;
  border-color: rgba(139, 92, 246, .30);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
}
html[data-theme="dark"] .primary-navigation .sub-menu li a { color: #e3eaff; }
html[data-theme="dark"] .primary-navigation .sub-menu li a:hover { color: #fff; background: rgba(56, 189, 248, .13); }
html[data-theme="dark"] .mobile-menu-toggle {
  color: #eef3ff;
  border-color: rgba(125, 211, 252, .36);
  background: rgba(255, 255, 255, .035);
}
html[data-theme="dark"] .nav-cta {
  color: #152039;
  background: linear-gradient(110deg, #f4d28a, #c5eaff);
  box-shadow: 0 5px 18px rgba(56, 189, 248, .10);
}
html[data-theme="dark"] .nav-cta:hover { color: #101a30; filter: brightness(1.04); }
html[data-theme="dark"] .hero-section,
html[data-theme="dark"] .section,
html[data-theme="dark"] .content-area,
html[data-theme="dark"] .quick-access,
html[data-theme="dark"] .intro-section,
html[data-theme="dark"] .gallery-section,
html[data-theme="dark"] .video-section,
html[data-theme="dark"] .publication-latest,
html[data-theme="dark"] .profile-child-pages { background: transparent; }
html[data-theme="dark"] .hero-slider {
  background: #111a30;
  border: 1px solid rgba(139, 92, 246, .23);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .34), 0 0 28px rgba(56, 189, 248, .045);
}
html[data-theme="dark"] .hero-slide-image { filter: saturate(1.06) contrast(1.02); }
html[data-theme="dark"] .hero-slide-shade {
  background: linear-gradient(90deg, rgba(8, 13, 27, .42) 0%, rgba(8, 13, 27, .18) 52%, rgba(8, 13, 27, .025) 100%),
              linear-gradient(0deg, rgba(8, 13, 27, .22), transparent 58%);
}
/* On desktop the text panel occupies about two-thirds of the slide, leaving the
   featured photo clearly visible instead of hiding it beneath a full-width slab. */
html[data-theme="dark"] .hero-slide-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(68%, 620px);
  min-width: 0;
  padding: 34px 58px 84px 38px;
  color: #f2f5ff;
  background: linear-gradient(90deg,
    rgba(9, 15, 32, .98) 0%,
    rgba(13, 20, 43, .94) 70%,
    rgba(20, 26, 53, .52) 88%,
    rgba(20, 26, 53, 0) 100%);
  border-right: 1px solid rgba(125, 211, 252, .12);
}
html[data-theme="dark"] .hero-slide-meta .eyebrow { color: #76dfff; }
html[data-theme="dark"] .hero-slide-meta time { color: #c1cbe2; }
html[data-theme="dark"] .hero-slide .hero-title {
  max-width: 550px;
  margin: 12px 0 10px;
  color: #f6f8ff;
  font-size: clamp(27px, 2.45vw, 35px);
  font-weight: 820;
  line-height: 1.15;
  letter-spacing: -.032em;
  text-transform: none;
  text-wrap: pretty;
}
html[data-theme="dark"] .hero-slide .hero-title a { color: inherit; }
html[data-theme="dark"] .hero-slide .hero-title a:hover { color: #b8eaff; }
html[data-theme="dark"] .hero-slide .hero-excerpt {
  max-width: 510px;
  margin-bottom: 18px;
  color: #c6d0e6;
  font-size: 13px;
  line-height: 1.65;
}
html[data-theme="dark"] .hero-read-more {
  align-self: flex-start;
  color: #142039;
  background: linear-gradient(110deg, #f4d28a, #e7c6ef);
  box-shadow: 0 7px 22px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] .hero-read-more:hover { color: #081323; background: linear-gradient(110deg, #8de3ff, #c7b8ff); }
html[data-theme="dark"] .hero-side-heading h2,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .post-card-title,
html[data-theme="dark"] .article-title,
html[data-theme="dark"] .entry-content h1,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4,
html[data-theme="dark"] .publication-topic-copy strong,
html[data-theme="dark"] .agenda-copy h3,
html[data-theme="dark"] .profile-page-card-copy h3,
html[data-theme="dark"] .service-page-card h2,
html[data-theme="dark"] .infographic-copy h3,
html[data-theme="dark"] .video-card-copy h3,
html[data-theme="dark"] .topic-panel-heading h3 { color: #f0f3ff; }
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .post-card-excerpt,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .publication-topic-copy small,
html[data-theme="dark"] .agenda-copy,
html[data-theme="dark"] .profile-page-card-copy,
html[data-theme="dark"] .service-page-card p,
html[data-theme="dark"] .infographic-copy time,
html[data-theme="dark"] .video-card-copy time { color: #b9c5df; }
html[data-theme="dark"] .trending-item,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .compact-list,
html[data-theme="dark"] .intro-panel,
html[data-theme="dark"] .article-panel,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .publication-topic-card,
html[data-theme="dark"] .portal-admin-hint,
html[data-theme="dark"] .portal-pagination a,
html[data-theme="dark"] .portal-pagination span,
html[data-theme="dark"] .page-numbers,
html[data-theme="dark"] .topic-filter,
html[data-theme="dark"] .admin-service-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .agenda-card,
html[data-theme="dark"] .profile-page-card,
html[data-theme="dark"] .service-page-card,
html[data-theme="dark"] .announcement-card,
html[data-theme="dark"] .feature-card-copy,
html[data-theme="dark"] .search-result-card,
html[data-theme="dark"] .infographic-card,
html[data-theme="dark"] .topic-panel,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .hero-side-empty,
html[data-theme="dark"] .contact-page-intro,
html[data-theme="dark"] .campus-card,
html[data-theme="dark"] .profile-main-content,
html[data-theme="dark"] .recent-posts-widget,
html[data-theme="dark"] .widget_recent_entries {
  color: #eaf0ff;
  background: linear-gradient(145deg, #131d37 0%, #101a31 100%);
  border-color: rgba(145, 164, 218, .19);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .025);
}
html[data-theme="dark"] .quick-card:hover,
html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .publication-topic-card:hover,
html[data-theme="dark"] .gallery-card:hover,
html[data-theme="dark"] .profile-page-card:hover {
  border-color: rgba(125, 211, 252, .42);
  box-shadow: 0 17px 38px rgba(0, 0, 0, .29), 0 0 20px rgba(56, 189, 248, .075);
}
html[data-theme="dark"] .trending-text h3 a,
html[data-theme="dark"] .post-card-title a,
html[data-theme="dark"] .compact-list a,
html[data-theme="dark"] .article-share a,
html[data-theme="dark"] .post-card-more,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .hero-side-more { color: #e8efff; }
html[data-theme="dark"] .trending-text h3 a:hover,
html[data-theme="dark"] .post-card-title a:hover,
html[data-theme="dark"] .compact-list a:hover,
html[data-theme="dark"] .article-share a:hover,
html[data-theme="dark"] .post-card-more:hover,
html[data-theme="dark"] .text-link:hover,
html[data-theme="dark"] .hero-side-more:hover { color: #7edfff; }
html[data-theme="dark"] .trending-text time,
html[data-theme="dark"] .entry-meta,
html[data-theme="dark"] .post-card-meta,
html[data-theme="dark"] .hero-slide-meta time { color: #aebbd4; }
html[data-theme="dark"] .hero-side-badge {
  color: #d7ccff;
  background: rgba(139, 92, 246, .15);
  border-color: rgba(196, 181, 253, .22);
}
html[data-theme="dark"] .quick-icon,
html[data-theme="dark"] .publication-topic-icon,
html[data-theme="dark"] .campus-card-icon,
html[data-theme="dark"] .agenda-date {
  color: #def7ff;
  background: linear-gradient(145deg, rgba(56, 189, 248, .19), rgba(139, 92, 246, .20));
  border-color: rgba(125, 211, 252, .20);
}
html[data-theme="dark"] .slider-arrow,
html[data-theme="dark"] .slider-pause,
html[data-theme="dark"] .slider-dot {
  color: #edf4ff;
  background: rgba(12, 20, 42, .88);
  border-color: rgba(145, 164, 220, .31);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] .slider-arrow:hover,
html[data-theme="dark"] .slider-pause:hover { color: #071323; background: #8edfff; border-color: #8edfff; }
html[data-theme="dark"] .slider-dot.is-active { background: #8edfff; border-color: #8edfff; }
html[data-theme="dark"] .page-hero {
  color: #f3f5ff;
  background: linear-gradient(115deg, #101a34 0%, #25234d 55%, #12364a 100%);
  border-bottom: 1px solid rgba(139, 92, 246, .24);
}
html[data-theme="dark"] .page-title { color: #f7f8ff; }
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .breadcrumbs { color: #c2cde5; }
html[data-theme="dark"] .announcement-band {
  color: #f1f5ff;
  background: linear-gradient(110deg, #111a35, #29224f 58%, #12384a);
  border-block: 1px solid rgba(139, 92, 246, .20);
}
html[data-theme="dark"] .infographic-section { background: rgba(18, 28, 53, .42); }
html[data-theme="dark"] .entry-content blockquote,
html[data-theme="dark"] .wp-block-quote { color: #e8efff; background: rgba(139, 92, 246, .11); border-left-color: #8b5cf6; }
html[data-theme="dark"] .entry-content table,
html[data-theme="dark"] .entry-content th,
html[data-theme="dark"] .entry-content td { border-color: rgba(151, 169, 218, .23); }
html[data-theme="dark"] .entry-content th,
html[data-theme="dark"] .wp-block-table th { color: #f4f6ff; background: rgba(56, 189, 248, .12); }
html[data-theme="dark"] .entry-content td,
html[data-theme="dark"] .wp-block-table td { color: #dce5fa; background: rgba(17, 26, 48, .72); }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .header-search input[type="search"],
html[data-theme="dark"] .search-form input[type="search"] {
  color: #eff4ff;
  background: rgba(10, 17, 34, .92);
  border-color: rgba(142, 160, 211, .32);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .header-search input::placeholder { color: #9eacc8; }
html[data-theme="dark"] .header-search button { color: #07101e; background: linear-gradient(135deg, #7dd3fc, #c4b5fd); }
html[data-theme="dark"] .topic-filter { color: #dbeafe; background: rgba(17, 26, 48, .9); border-color: rgba(141, 159, 211, .24); }
html[data-theme="dark"] .topic-filter:hover,
html[data-theme="dark"] .topic-filter.is-current { color: #081120; background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .site-footer {
  color: #dfe8ff;
  background: radial-gradient(ellipse at 12% 0%, rgba(91, 67, 166, .20), transparent 28rem),
              radial-gradient(ellipse at 95% 80%, rgba(24, 123, 169, .13), transparent 30rem),
              linear-gradient(145deg, #080d1b, #111a30 62%, #10152b);
  border-top: 1px solid rgba(139, 92, 246, .24);
}
html[data-theme="dark"] .footer-column h2,
html[data-theme="dark"] .footer-campus h3,
html[data-theme="dark"] .footer-brand strong { color: #f1f4ff; }
html[data-theme="dark"] .footer-about p,
html[data-theme="dark"] .footer-campus p,
html[data-theme="dark"] .footer-campus a,
html[data-theme="dark"] .footer-menu a,
html[data-theme="dark"] .footer-column li a { color: #b9c7e2; }
html[data-theme="dark"] .footer-bottom { color: #aebbd4; background: rgba(4, 8, 18, .48); border-top-color: rgba(141, 159, 211, .16); }
html[data-theme="dark"] .footer-social-link { color: #eaf3ff; background: rgba(125, 211, 252, .08); border-color: rgba(125, 211, 252, .30); }
html[data-theme="dark"] .footer-social-link:hover { color: #091322; background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .theme-mode-toggle {
  color: #f7d68b;
  background: linear-gradient(145deg, #1e2850, #111a30);
  border-color: rgba(196, 181, 253, .42);
  box-shadow: 0 0 18px rgba(139, 92, 246, .14);
}
html[data-theme="dark"] .theme-mode-toggle:hover { color: #081120; background: #c4b5fd; border-color: #c4b5fd; }
html[data-theme="dark"] .back-to-top { color: #081120; background: linear-gradient(135deg, #7dd3fc, #c4b5fd); border-color: rgba(255,255,255,.25); box-shadow: 0 10px 28px rgba(56,189,248,.19); }
html[data-theme="dark"] .back-to-top:hover { color: #081120; background: #f3d18d; }
html[data-theme="dark"] .portal-pagination .current,
html[data-theme="dark"] .page-numbers.current { color: #081120; background: #7dd3fc; border-color: #7dd3fc; }
html[data-theme="dark"] .post-image-placeholder,
html[data-theme="dark"] .profile-page-placeholder { color: #e8eaff; background: linear-gradient(145deg, #1a2850, #28204b 58%, #103a4c); }
html[data-theme="dark"] .empty-state h2 { color: #f0f3ff; }
html[data-theme="dark"] .screen-reader-text { color: inherit; }
html[data-theme="dark"] :focus-visible { outline-color: #80dcff; }

@media (max-width: 1020px) {
  html[data-theme="dark"] .hero-slide-copy { width: min(74%, 590px); padding-right: 42px; }
  html[data-theme="dark"] .hero-slide .hero-title { font-size: clamp(25px, 3.2vw, 32px); }
}
@media (max-width: 760px) {
  html[data-theme="dark"] .hero-slide-copy {
    align-self: stretch;
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    padding: 15px 17px 68px;
    color: #f1f4ff;
    background: linear-gradient(145deg, #121d38 0%, #151b3a 58%, #10283b 100%);
    border-right: 0;
    border-top: 1px solid rgba(125, 211, 252, .13);
  }
  html[data-theme="dark"] .hero-slide .hero-title { max-width: 100%; font-size: clamp(20px, 5.3vw, 24px); line-height: 1.22; }
  html[data-theme="dark"] .hero-slide .hero-excerpt { max-width: 100%; color: #c0cbe1; font-size: 11px; }
  html[data-theme="dark"] .hero-slide-meta .eyebrow { font-size: 9px; }
  html[data-theme="dark"] .hero-read-more { padding: 8px 11px; font-size: 10px; }
}
@media (max-width: 560px) {
  html[data-theme="dark"] .hero-slider { border-radius: 15px; }
  html[data-theme="dark"] .hero-slide-copy { padding-inline: 14px; }
  html[data-theme="dark"] .hero-slide .hero-title { -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] *,
  html[data-theme="dark"] *::before,
  html[data-theme="dark"] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

