/*
Theme Name: UHIS Minimal Light
Theme URI: https://uhis.or.kr/
Author: Codex
Description: A cleaner, lighter UHIS multisite theme with improved typography, responsive layouts, and better image handling.
Version: 1.0.0
Text Domain: uhis-minimal-light
*/

:root {
  --uhis-blue-950: #16325c;
  --uhis-blue-900: #1f2a7a;
  --uhis-blue-800: #2d5f95;
  --uhis-blue-700: #3f76ad;
  --uhis-blue-200: #dce7f7;
  --uhis-blue-100: #eef3fb;
  --uhis-sky-100: #f3f7fd;
  --uhis-sky-50: #f8fbff;
  --uhis-ink: #20324a;
  --uhis-muted: #5f728c;
  --uhis-border: #d7dfeb;
  --uhis-surface: #ffffff;
  --uhis-shadow: 0 2px 10px rgba(20, 40, 80, 0.06);
  --uhis-radius-lg: 6px;
  --uhis-radius-md: 4px;
  --uhis-radius-sm: 3px;
  --uhis-max-width: 1240px;
  --uhis-content-width: 860px;
  --uhis-gutter: clamp(20px, 3vw, 36px);
  --uhis-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--uhis-ink);
  font-family: var(--uhis-font);
  font-size: 18px;
  line-height: 1.7;
  background: #f4f6fb;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--uhis-blue-900);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--uhis-blue-700);
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--uhis-radius-sm);
  box-shadow: var(--uhis-shadow);
  z-index: 9999;
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  overflow: visible;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--uhis-border);
  box-shadow: var(--uhis-shadow);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.site-hero__inner,
.content-grid,
.listing-shell {
  width: min(calc(100% - 2 * var(--uhis-gutter)), var(--uhis-max-width));
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 88px;
  padding-left: 40px;
  padding-right: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__text {
  color: var(--uhis-blue-900);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: clamp(34px, 3.2vw, 42px);
  max-width: min(240px, 32vw);
  object-fit: contain;
}

body.home.page-id-7 .brand img {
  height: clamp(42px, 4vw, 56px);
  max-width: min(320px, 38vw);
}

body.home.page-id-7 .site-header__inner {
  padding-left: 0;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--uhis-blue-950);
  border-radius: 0;
  padding: 0.45rem 0;
  justify-self: end;
  box-shadow: none;
  font-weight: 700;
  position: relative;
  z-index: 96;
}

.primary-nav {
  justify-self: end;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav > div > ul,
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  color: var(--uhis-blue-900);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.primary-nav > div > ul > li:hover > a,
.primary-nav > div > ul > li:focus-within > a,
.primary-nav > ul > li:hover > a,
.primary-nav > ul > li:focus-within > a,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  background: rgba(47, 95, 149, 0.08);
  color: var(--uhis-blue-950);
  text-decoration: none;
}

.primary-nav .menu-item-has-children > a::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 280px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(32, 77, 135, 0.1);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li + li {
  margin-top: 0.15rem;
}

.primary-nav .sub-menu a {
  justify-content: flex-start;
  width: 100%;
  min-height: auto;
  padding: 0.55rem 0.35rem;
  border-radius: 3px;
  text-align: left;
  font-weight: 600;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible {
  background: rgba(47, 95, 149, 0.08);
}

.site-main {
  padding: 0;
}

.hero-card,
.content-card,
.sidebar-card,
.post-card,
.pagination-card,
.widget,
.home-panel {
  background: #ffffff;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.site-hero {
  margin-bottom: 0;
}

.site-hero__inner {
  padding: clamp(1.15rem, 2.8vw, 1.8rem);
  overflow: hidden;
  position: relative;
}

.site-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 50px;
  margin-bottom: 0.55rem;
  color: var(--uhis-blue-800);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-hero__eyebrow-link {
  text-decoration: none;
}

.site-hero__eyebrow-link:hover,
.site-hero__eyebrow-link:focus-visible {
  text-decoration: underline;
}

.site-hero__title {
  position: relative;
  z-index: 1;
  max-width: 17ch;
  margin: 0 0 14px;
  color: var(--uhis-blue-950);
  font-size: clamp(2.25rem, 5.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.site-hero__summary {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0.75rem 0 0;
  color: var(--uhis-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.95fr);
  gap: 5px;
}

.content-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid--page-rail {
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 2rem;
  align-items: start;
  background: transparent;
}

.content-grid--page-rail > .content-column {
  background: transparent;
}

.content-grid--page-rail .content-card--page-shell {
  background: transparent;
  padding-right: 0;
}

.content-grid--page-with-sidebar {
  gap: 0;
  background: #ffffff;
  align-items: stretch;
}

.content-grid--page-with-sidebar > .content-column {
  background: #ffffff;
}

.content-grid--page-with-sidebar .content-card--page-shell,
.content-grid--page-with-sidebar .sidebar-card,
.content-grid--page-with-sidebar .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  margin-top: 0;
}

.content-grid--page-with-sidebar .content-card--page-shell {
  padding-right: 0;
}

.content-grid--page-with-sidebar .post-card {
  padding: 0 30px 130px;
  background: transparent;
}

.content-grid--page-with-sidebar .post-card--sheet {
  padding: 18px 0 130px;
}

.content-grid--page-with-sidebar .post-card--listing-sheet .page-shell__header {
  margin-bottom: 18px;
}

.content-grid--page-with-sidebar .post-card + .post-card {
  margin-top: 0;
  padding-top: 20px;
}

.content-grid--page-with-sidebar aside.content-column {
  padding: 103px 30px 130px 0;
}

.content-grid--page-with-sidebar .sidebar-card,
.content-grid--page-with-sidebar .widget {
  padding: 0;
}

.content-grid--page-with-sidebar .sidebar-card + .sidebar-card,
.content-grid--page-with-sidebar .widget + .widget {
  margin-top: 18px;
}

.page-rail {
  padding: 112px 30px 130px 0;
}

.page-rail__inner {
  min-width: 0;
}

.page-rail__content > *:first-child {
  margin-top: 0;
}

.page-rail__content > *:last-child {
  margin-bottom: 0;
}

.page-rail__content p {
  margin: -5px 0 0.7rem;
  line-height: 1.2;
}

.page-rail__content img,
.page-rail__content .wp-block-image img,
.page-rail__content .wp-post-image {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 343px;
  height: auto !important;
  vertical-align: bottom;
  margin-top: 50px;
}

.page-rail__content figure,
.page-rail__content .wp-block-image {
  max-width: 343px;
  margin: 0 0 1rem;
}

.page-rail__content > *:first-child.wp-block-image,
.page-rail__content > *:first-child figure {
  margin-top: 0;
}

.page-rail__content p + .wp-block-image,
.page-rail__content p + figure,
.page-rail__content .wp-block-image + .wp-block-image,
.page-rail__content figure + .wp-block-image,
.page-rail__content figure + figure {
  margin-top: 30px;
}

.content-column {
  min-width: 0;
}

.content-card {
  padding: clamp(0.75rem, 1.6vw, 1rem);
}

.content-card--continuous {
  padding-top: clamp(0.9rem, 1.8vw, 1.1rem);
}

.content-card--page-shell {
  width: 100%;
  max-width: none;
  padding: 18px 0 130px;
}

.page-shell__header {
  margin-bottom: 30px;
  padding-left: 30px;
  padding-right: 30px;
}

.content-card + .content-card,
.sidebar-card + .sidebar-card,
.widget + .widget,
.post-card + .post-card {
  margin-top: 0;
}

.page-header,
.archive-header {
  margin-bottom: 1.6rem;
}

.page-logo,
.index-logo {
  width: clamp(70px, 10vw, 110px);
  margin-bottom: 1.2rem;
}

.page-title,
.archive-title,
.entry-title {
  margin: 0 0 0.85rem;
  color: var(--uhis-blue-950);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
}

.page-title,
.archive-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.entry-title {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus-visible {
  color: var(--uhis-blue-800);
}

.archive-description,
.entry-summary,
.entry-meta,
.site-summary {
  color: var(--uhis-muted);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.entry-meta .meta-sep {
  opacity: 0.45;
}

.entry-content,
.page-content {
  color: var(--uhis-ink);
}

.page-content {
  padding-left: 30px;
  padding-right: 30px;
}

.content-grid--single .page-content {
  padding-left: 80px;
}

@media (min-width: 1081px) {
  body.uhis-main-site-post .site-hero__title {
    margin-bottom: 0.35rem;
  }

  body.uhis-main-site-post .entry-content {
    max-width: 65rem;
    margin-left: auto;
    margin-right: auto;
  }

  body.uhis-main-site-post .post-card--single {
    padding-top: 0;
  }

  body.uhis-main-site-post .entry-meta {
    margin-bottom: 1.6rem;
  }
}

.entry-content > *:first-child,
.page-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child,
.page-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.page-content p {
  margin: 0 0 0.8rem;
}

.entry-content .wp-block-separator,
.page-content .wp-block-separator {
  margin: 2.4rem 0 2.6rem;
  border: 0;
  border-top: 1px solid rgba(47, 95, 149, 0.22);
}

.page-content > h2:first-child,
.page-content > h3:first-child {
  margin-top: 1rem;
}

.entry-content h2,
.page-content h2,
.entry-content h3,
.page-content h3 {
  margin: 2.7rem 0 0.7rem;
  color: var(--uhis-blue-950);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.entry-content h2,
.page-content h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.entry-content h3,
.page-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
  margin: 0 0 1.25rem 4.15rem;
  padding: 0;
}

body.page-id-209 .page-content ul.no-dots {
  margin: 0 0 1rem;
  padding-left: 0;
  list-style: none;
}

body.page-id-209 .page-content ul.no-dots li {
  margin-bottom: 0.12rem;
  line-height: 1.5;
}

body.page-id-209 .page-content {
  padding-bottom: 2rem;
}

body.page-id-209 .page-content::after {
  content: "";
  display: block;
  clear: both;
}

.entry-content li,
.page-content li {
  margin-bottom: 0.55rem;
}

.entry-content img,
.page-content img,
.entry-content .wp-post-image,
.page-content .wp-post-image {
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: none;
}

.entry-content figure,
.page-content figure {
  margin: 1.5rem 0;
}

.entry-content .wp-caption-text,
.page-content .wp-caption-text,
figcaption {
  margin-top: 0.55rem;
  color: var(--uhis-muted);
  font-size: 0.94rem;
}

.post-card {
  padding: clamp(0.8rem, 1.6vw, 1rem);
}

.post-card .entry-title {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.content-grid--page-with-sidebar .post-card--single .entry-title {
  font-size: clamp(2.25rem, 5.4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: none;
}

.content-grid--page-with-sidebar .post-card--listing-sheet .entry-title {
  font-size: clamp(2.25rem, 5.4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: none;
  margin-bottom: 0.7rem;
}

.content-grid--page-with-sidebar .post-card--listing-sheet .entry-title a,
.content-grid--page-with-sidebar .post-card--single .entry-title a {
  color: inherit;
  text-decoration: none;
}

.content-grid--page-with-sidebar .post-card--listing-sheet .entry-title a:hover,
.content-grid--page-with-sidebar .post-card--listing-sheet .entry-title a:focus-visible,
.content-grid--page-with-sidebar .post-card--single .entry-title a:hover,
.content-grid--page-with-sidebar .post-card--single .entry-title a:focus-visible {
  color: var(--uhis-blue-800);
}

.post-card__thumbnail-link {
  display: block;
  margin: 1.1rem 0 1.25rem;
}

.post-card__thumbnail-link img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.entry-read-more {
  margin: 1rem 0 0;
}

.entry-read-more a {
  font-weight: 700;
  text-decoration: none;
}

.entry-read-more a:hover,
.entry-read-more a:focus-visible {
  text-decoration: underline;
}

.content-grid--page-with-sidebar .post-card--single .entry-content {
  max-width: 100%;
}

.content-grid--page-with-sidebar .post-card--listing-sheet .entry-meta,
.content-grid--page-with-sidebar .post-card--single .entry-meta {
  margin-bottom: 1rem;
  justify-self: end;
  text-align: right;
}

.content-grid--page-with-sidebar .post-card--single .entry-meta {
  float: right;
}

.content-grid--page-with-sidebar .post-card--single .page-content::after {
  content: "";
  display: block;
  clear: both;
}


.sidebar-card {
  padding: 0.8rem;
}

.sidebar-card h2,
.sidebar-card .widget-title {
  margin: 0 0 1rem;
  color: var(--uhis-blue-950);
  font-size: 1.55rem;
  line-height: 1.12;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget .wp-block-page-list,
.widget .wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
}

.widget .wp-block-page-list li,
.widget .wp-block-latest-posts li {
  margin: 0;
}

.widget .wp-block-page-list li + li,
.widget .wp-block-latest-posts li + li {
  margin-top: 5px;
}

.widget li + li {
  margin-top: 5px;
}

.widget li {
  padding-left: 0.35rem;
}

.widget a {
  text-decoration: none;
  font-weight: 600;
}

.widget a:hover,
.widget a:focus-visible {
  text-decoration: underline;
}

.widget:has(.wp-block-page-list):has(.wp-block-heading) > .widget-title {
  display: none;
}

.widget:has(> .wp-block-heading:only-child) {
  display: none;
}

.widget:has(.wp-block-page-list):not(:has(.widget-title)):not(:has(.wp-block-heading)):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: "Links";
  display: block;
  margin: 0 0 5px;
  color: var(--uhis-blue-950);
  font-size: 1.55rem;
  line-height: 1.12;
  font-weight: 700;
}

.pagination-card {
  margin-top: 5px;
  padding: 0.65rem 0.85rem;
}

.pagination-card .nav-links,
.single-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.pagination-card a,
.single-navigation a {
  text-decoration: none;
  font-weight: 700;
}

.home-layout {
  display: grid;
  gap: 0px;
}

.home-bottom-spacer {
  min-height: 130px;
  padding: 0;
  margin-top: 0;
  border-top: 0;
}

.home-slideshow {
  overflow: hidden;
}

.home-slideshow .metaslider,
.home-slideshow .metaslider .slides,
.home-slideshow .metaslider .slides img,
.home-slideshow .uhis-simple-slider,
.home-slideshow .uhis-simple-slider img,
.home-slideshow__placeholder {
  width: 100% !important;
  max-width: 100% !important;
}

.home-slideshow__placeholder {
  display: block;
  height: auto;
}

.home-slideshow .uhis-simple-slider {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: var(--uhis-slider-ratio, 1200 / 600);
}

.home-slideshow .uhis-simple-slider,
.home-slideshow .uhis-simple-slider .uhis-simple-slider-track {
  height: 100%;
  width: 100% !important;
  max-width: 100% !important;
}

.home-slideshow .uhis-simple-slider .uhis-simple-slider-track {
  position: relative;
}

.home-slideshow .uhis-simple-slider .uhis-simple-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.home-slideshow .uhis-simple-slider .uhis-simple-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-slideshow .uhis-simple-slider .uhis-simple-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slideshow .uhis-simple-slider .uhis-simple-slide__caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: min(80%, 41rem);
  padding: 0.3rem 0.3rem;
  background: rgba(19, 37, 68, 0.72);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.35;
  border-radius: 2px;
  text-align: right;
}

.home-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: linear-gradient(180deg, rgba(47, 95, 149, 0.08), rgba(47, 95, 149, 0.05));
  padding: 24px 30px 22px;
}

.home-panel {
  padding: 0 0 0 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  border-left: 1px solid rgba(47, 95, 149, 0.16);
}

.home-panel:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-panel__title {
  margin: 0 0 0.45rem;
  color: var(--uhis-blue-950);
  font-size: 0.92rem;
  line-height: 1.02;
  font-weight: 700;
  text-transform: none;
}

.home-panel ul {
  list-style: disc;
  list-style-position: outside;
  margin: 0;
  padding: 0 0 0 1.2rem;
}

.home-panel li + li {
  margin-top: 0;
}

.home-panel a {
  text-decoration: none;
  color: var(--uhis-muted);
  font-weight: 500;
  line-height: 1.02;
  font-size: 0.95rem;
}

.home-panel a:hover,
.home-panel a:focus-visible {
  color: var(--uhis-blue-900);
  text-decoration: underline;
}

.home-panel li::marker {
  color: rgba(45, 95, 149, 0.42);
  font-size: 0.8em;
}

.home-brand-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(2rem, 3.8vw, 2.6rem) clamp(1.1rem, 2.2vw, 1.75rem) clamp(1rem, 2vw, 1.35rem);
}

.home-brand-strip__school,
.home-brand-strip__cis {
  display: flex;
  align-items: center;
}

.home-brand-strip__school {
  justify-content: flex-start;
  min-width: 0;
}

.home-brand-strip__school img {
  display: block;
  width: min(100%, 1180px);
  height: auto;
}

.home-brand-strip__cis {
  justify-content: flex-end;
}

.home-brand-strip__cis img {
  display: block;
  width: clamp(100px, 10vw, 160px);
  height: auto;
}

.home-divider {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 72px;
  padding: 0 clamp(2rem, 4vw, 3.5rem);
  background: #ffffff;
}

.home-divider__line {
  width: 100%;
  height: 1px;
  background: rgba(120, 130, 145, 0.22);
}

.home-instagram {
  display: grid;
  gap: 0.65rem;
  justify-items: stretch;
  padding-bottom: 40px;
}

.home-instagram__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--uhis-blue-950);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
  justify-self: end;
}

.home-instagram__link img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  margin: 0;
  box-shadow: none;
}

.home-instagram .sbi {
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.home-instagram #sb_instagram #sbi_images {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100% !important;
}

.home-instagram #sb_instagram .sbi_item {
  min-width: 0;
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

.home-instagram #sb_instagram .sbi_photo_wrap,
.home-instagram #sb_instagram .sbi_photo {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

.home-instagram #sb_instagram #sbi_load {
  float: none !important;
  width: 100%;
  text-align: right;
}

.home-instagram #sb_instagram #sbi_load .sbi_load_btn,
.home-instagram #sb_instagram #sbi_load .sbi_follow_btn a {
  font-size: 0.82rem !important;
}

.site-footer {
  padding: 0;
  background: #2f5f95;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 2.4rem;
  padding: 32px 40px;
  color: #f4f8ff;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.site-footer a {
  color: #ffffff;
}

.site-footer__identity {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.site-footer__identity img {
  width: min(220px, 100%);
}

.site-footer__menu .site-map,
.site-footer__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__menu .site-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.site-footer__menu .site-map > li > a {
  display: inline-block;
  margin-bottom: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
}

.site-footer__menu .sub-menu li + li {
  margin-top: -0.3em;
}

.site-footer__menu .sub-menu a {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
  text-decoration: underline;
}

.site-footer__address {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  line-height: 1.08;
}

.site-footer__address p {
  margin: 0 0 0.35rem;
}

.site-footer__address a {
  font-weight: 600;
}

.site-footer__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.2em;
}

.u-hide {
  display: none !important;
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 0.35rem 0;
  }

  .primary-nav {
    position: fixed;
    top: var(--uhis-mobile-nav-top, 80px);
    left: 6px;
    right: 6px;
    display: none;
    padding: 0.35rem 16px 0.85rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--uhis-border);
    border-bottom: 1px solid var(--uhis-border);
    box-shadow: 0 10px 18px rgba(20, 40, 80, 0.08);
    z-index: 94;
    max-height: calc(100vh - var(--uhis-mobile-nav-top, 80px) - 10px);
    overflow: auto;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav > div > ul,
  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav a {
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.2rem;
    border-radius: 4px;
    text-align: left;
    font-size: 0.92rem;
  }

  .primary-nav .sub-menu {
    position: static;
    min-width: 0;
    margin: 0.15rem 0 0.25rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(32, 77, 135, 0.08);
    padding: 0.35rem 0.55rem;
  }

  .primary-nav li.is-open > .sub-menu {
    display: block;
  }

  .content-grid,
  .content-grid--page-rail,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__menu .site-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__tagline {
    text-align: left;
  }

  .page-rail {
    padding: 0 30px 130px;
  }
}

@media (max-width: 720px) {
  body {
    --uhis-gutter: 6px;
    font-size: 17px;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
    padding-left: 12px;
    padding-right: 12px;
    gap: 0.55rem;
  }

  body.home.page-id-7 .site-header__inner {
    padding-left: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand img,
  body.home.page-id-7 .brand img {
    width: min(156px, 45vw);
    max-width: 45vw;
    height: auto;
  }

  .site-hero__inner,
  .content-card,
  .sidebar-card,
  .post-card,
  .home-panel {
    border-radius: 0;
  }

  .page-title,
  .archive-title {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .site-hero__title {
    max-width: 10ch;
  }

  .content-card--page-shell {
    padding-bottom: 90px;
  }

  .page-shell__header,
  .page-content,
  .content-grid--single .page-content {
    padding-left: 6px;
    padding-right: 6px;
  }

  .content-grid--page-with-sidebar .post-card,
  .content-grid--page-with-sidebar .post-card--sheet,
  .content-grid--page-with-sidebar aside.content-column,
  .page-rail {
    padding-left: 6px;
    padding-right: 6px;
  }

  .entry-content ul,
  .entry-content ol,
  .page-content ul,
  .page-content ol {
    margin-left: 1.5rem;
  }

  .home-brand-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 1.55rem 1rem 0.9rem;
  }

  .home-brand-strip__school {
    flex: 1 1 auto;
  }

  .home-brand-strip__school img {
    width: min(100%, 262px);
  }

  .home-brand-strip__cis {
    flex: 0 0 auto;
  }

  .home-brand-strip__cis img {
    width: clamp(38px, 10vw, 56px);
  }

  .home-divider {
    height: 32px;
    padding: 3px 1rem 13px;
  }

  .home-instagram {
    justify-items: stretch;
    padding: 0 1rem 28px;
  }

  .home-instagram__link {
    justify-self: end;
    gap: 0.45rem;
    font-size: clamp(0.68rem, 2.7vw, 0.78rem);
  }

  .home-instagram__link img {
    width: 18px;
    height: 18px;
  }

  .home-instagram #sb_instagram #sbi_images {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .home-instagram #sb_instagram .sbi_item {
    width: 100% !important;
  }

  .home-instagram #sb_instagram .sbi_photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .home-instagram #sb_instagram .sbi_photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .home-instagram #sb_instagram #sbi_load {
    float: none !important;
    width: 100%;
    text-align: right;
  }

  .home-instagram #sb_instagram #sbi_load .sbi_load_btn,
  .home-instagram #sb_instagram #sbi_load .sbi_follow_btn a {
    font-size: 0.72rem !important;
    padding: 0.48rem 0.75rem !important;
  }

  .home-panels {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 12px 10px;
  }

  .home-panel {
    padding: 10px 0;
    border-left: 0;
    border-top: 1px solid rgba(47, 95, 149, 0.16);
  }

  .home-panel:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .home-panel__title {
    margin-bottom: 0.35rem;
  }

  .home-panel ul {
    padding-left: 1.05rem;
  }

  .home-panel li + li {
    margin-top: 0;
  }

  .home-panel a {
    line-height: 1.08;
  }

  .site-footer__inner {
    padding: 24px 20px;
    gap: 1.4rem;
  }

  .site-footer__menu .site-map {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .entry-content img.alignleft,
  .entry-content img.alignright,
  .page-content img.alignleft,
  .page-content img.alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }
}
