:root {
  --brand: #8f0008;
  --brand-dark: #680006;
  --brand-soft: #fff2f2;
  --accent: #dfb84b;
  --text: #333333;
  --muted: #777777;
  --line: #d7d7d7;
  --content-width: 1314px;
  --section-gap: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #ffd66c;
  outline-offset: 2px;
}

.header-visual {
  height: 212px;
  color: #fff;
  background: #890007 url("../images/header-background.png") center top / cover no-repeat;
}

.header-inner {
  position: relative;
  height: 100%;
}

.brand-lockup {
  position: absolute;
  top: 86px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 78px;
}

.university-brand {
  width: 320px;
  height: 77px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 70px;
  background: rgb(255 255 255 / 55%);
}

.college-seal {
  width: 70px;
  height: 70px;
  filter: grayscale(1) brightness(0) invert(1);
  object-fit: contain;
}

.college-name {
  width: 154px;
  height: 56px;
  object-fit: contain;
}

.header-tools {
  position: absolute;
  top: 34px;
  right: 0;
  width: 260px;
}

.quick-links {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-bottom: 51px;
  font-family: SimSun, "Songti SC", serif;
  font-size: 14px;
  white-space: nowrap;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  color: #ffe190;
}

.site-search {
  display: flex;
  width: 260px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 4px;
  background: #fff;
}

.site-search input {
  min-width: 0;
  flex: 1;
  padding: 0 10px;
  color: #555;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.site-search input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px #f3b500;
}

.site-search button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 0;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
}

.mobile-menu-button {
  display: none;
}

.primary-nav {
  position: relative;
  z-index: 30;
  height: 56px;
  color: #fff;
  background: var(--brand-dark);
}

.nav-list {
  display: flex;
  height: 56px;
}

.nav-item {
  position: relative;
  min-width: 0;
  flex: 1;
}

.nav-item > a,
.nav-item > button {
  position: relative;
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item > button i {
  display: none;
  font-size: 11px;
}

.nav-item:hover > a,
.nav-item:hover > button,
.nav-item:focus-within > a,
.nav-item:focus-within > button {
  background: rgb(255 255 255 / 7%);
}

.nav-item.current > a::after {
  position: absolute;
  right: 20%;
  bottom: 3px;
  left: 20%;
  height: 5px;
  content: "";
  background: var(--accent);
}

.submenu {
  position: absolute;
  top: 56px;
  left: 50%;
  display: none;
  width: 156px;
  padding: 7px 0;
  border-top: 3px solid var(--accent);
  background: rgb(104 0 6 / 97%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 24%);
  transform: translateX(-50%);
}

.submenu-right {
  right: 0;
  left: auto;
  transform: none;
}

.submenu a {
  display: block;
  padding: 10px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  font-size: 15px;
  text-align: center;
}

.submenu a:last-child {
  border-bottom: 0;
}

.submenu a:hover,
.submenu a:focus-visible {
  color: #3c1600;
  background: var(--accent);
}

@media (min-width: 1024px) {
  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    display: block;
  }
}

.hero-swiper {
  width: 100%;
  height: 450px;
  background: #ddd;
}

.hero-swiper .swiper-slide,
.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide img {
  filter: saturate(0.68) brightness(0.9) contrast(0.94);
  object-fit: cover;
  object-position: center 63%;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

.hero-swiper .swiper-slide-active img {
  transform: scale(1.07);
}

.hero-arrow,
.featured-arrow,
.works-arrow {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: transparent;
}

.hero-arrow {
  top: 50%;
  width: 62px;
  height: 70px;
  font-size: 30px;
  text-shadow: 0 2px 5px rgb(0 0 0 / 45%);
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-pagination {
  bottom: 13px !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 0.75;
  border: 1px solid #fff;
  background: rgb(255 255 255 / 45%);
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--brand);
}

.news-layout {
  display: grid;
  height: 344px;
  grid-template-columns: 434px minmax(0, 1fr) 331px;
  gap: var(--section-gap);
  padding-top: 19px;
}

.featured-news {
  width: 100%;
  height: 325px;
  min-width: 0;
}

.featured-image {
  position: relative;
  display: block;
  height: 325px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-image h2 {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 45px;
  margin: 0;
  padding: 12px 16px 10px;
  overflow: hidden;
  color: #fff;
  background: rgb(0 0 0 / 58%);
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-arrow {
  top: 50%;
  width: 34px;
  height: 54px;
  opacity: 0;
  background: rgb(0 0 0 / 34%);
  font-size: 20px;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.featured-prev {
  left: 0;
  border-radius: 0 6px 6px 0;
}

.featured-next {
  right: 0;
  border-radius: 6px 0 0 6px;
}

.featured-news:hover .featured-arrow,
.featured-news:focus-within .featured-arrow {
  opacity: 1;
}

.featured-arrow:hover,
.featured-arrow:focus-visible {
  background: rgb(143 0 8 / 82%);
}

.news-panel,
.notice-panel {
  min-width: 0;
}

.section-heading {
  display: flex;
  height: 31px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
}

.section-heading h2 {
  position: relative;
  height: 31px;
  margin: 0;
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
}

.section-heading h2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
}

.section-heading a {
  padding-top: 3px;
  color: #888;
  font-size: 13px;
}

.news-list {
  padding-top: 11px;
}

.news-item {
  display: grid;
  height: 68px;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff1f1;
}

.news-item time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #b60813;
  font-family: inherit;
}

.news-item time strong {
  font-size: 31px;
  font-weight: 400;
  line-height: 32px;
}

.news-item time span {
  font-size: 10px;
}

.news-copy {
  min-width: 0;
  padding: 7px 8px 5px 0;
}

.news-copy strong,
.news-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-copy strong {
  color: #b0000b;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-copy small {
  display: -webkit-box;
  color: #777;
  font-size: 12px;
  line-height: 17px;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  position: relative;
  display: block;
  height: 40px;
  margin-left: 0;
  padding-left: 18px;
  overflow: hidden;
  border-bottom: 1px solid #e7e7e7;
  line-height: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list li::before {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: #999;
  transform: translateY(-50%);
}

.notice-list a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: SimSun, "Songti SC", serif;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-item:hover .news-copy strong,
.news-item:focus-visible .news-copy strong,
.notice-list li:hover a,
.notice-list li:focus-within a {
  color: var(--brand);
  transform: translateX(4px);
}

.featured-image:hover h2,
.featured-image:focus-visible h2 {
  color: #ffe190;
}

.motto-banner {
  display: flex;
  height: 110px;
  align-items: center;
  justify-content: center;
  margin-top: var(--section-gap);
  overflow: hidden;
  background: #f4ead4 url("../images/motto-works-group.png") center 62% / cover no-repeat;
}

.motto-banner img {
  width: 627px;
  height: 58px;
  object-fit: contain;
  transform: translateX(86px);
}

.works-section {
  display: grid;
  height: 184px;
  grid-template-columns: 82px minmax(0, 1fr);
  margin-top: var(--section-gap);
  background: #f2f2f2;
}

.works-title {
  display: flex;
  width: 82px;
  height: 184px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 5px solid #650006;
  color: #fff;
  background: #780007;
  box-shadow: inset 0 0 0 3px #a98342;
  font-family: SimHei, "Microsoft YaHei", sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.works-stage {
  position: relative;
  min-width: 0;
  padding: 14px 35px 14px 37px;
}

.works-swiper,
.works-swiper .swiper-slide {
  height: 156px;
}

.works-swiper .swiper-slide {
  display: flex;
  justify-content: center;
}

.works-swiper .swiper-slide img {
  width: auto;
  height: 155px;
  object-fit: contain;
  box-shadow: 0 1px 3px rgb(0 0 0 / 13%);
}

.works-arrow {
  top: 50%;
  width: 32px;
  height: 52px;
  color: #aaa;
  font-size: 22px;
  transform: translateY(-50%);
}

.works-prev {
  left: 4px;
}

.works-next {
  right: 4px;
}

.site-footer {
  height: 150px;
  margin-top: 24px;
  color: #fff;
  background: #760006 url("../images/footer-background.png") center bottom / cover no-repeat;
}

.footer-inner {
  display: grid;
  height: 100%;
  grid-template-columns: 390px 1fr 190px;
  align-items: center;
}

.friend-links {
  display: flex;
  gap: 20px;
}

.friend-dropdown {
  position: relative;
  width: 112px;
}

.friend-dropdown-toggle {
  display: flex;
  width: 100%;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #d99c34;
  border-radius: 5px;
  color: #fff;
  background: rgb(104 0 6 / 42%);
  font-size: 14px;
  line-height: 1;
}

.friend-dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.friend-dropdown-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.friend-dropdown-toggle:hover,
.friend-dropdown-toggle:focus-visible {
  border-color: #ffe190;
  background: rgb(104 0 6 / 72%);
}

.friend-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 6px);
  left: 0;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  color: #333;
  background: #fff;
  box-shadow: 0 8px 22px rgb(0 0 0 / 22%);
}

.friend-menu a {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid #eeeeee;
  color: #333;
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.friend-menu a:last-child {
  border-bottom: 0;
}

.friend-menu a:hover,
.friend-menu a:focus-visible {
  color: #fff;
  background: var(--brand);
}

.footer-inner address a {
  color: inherit;
  text-decoration: none;
}

.footer-inner address a:hover,
.footer-inner address a:focus-visible {
  color: inherit;
}

.footer-inner address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.9;
}

.footer-inner address p {
  margin: 0;
}

.wechat {
  justify-self: end;
  text-align: center;
}

.wechat img {
  width: 90px;
  height: 90px;
  margin-inline: auto;
  background: #fff;
  object-fit: contain;
}

.wechat p {
  margin: 4px 0 0;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .nav-item > a,
  .nav-item > button {
    font-size: 16px;
  }

  .news-layout {
    height: auto;
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
    padding-bottom: 14px;
  }

  .notice-panel {
    grid-column: 1 / -1;
  }

  .notice-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 300px 1fr 130px;
  }
}

@media (max-width: 1023px) {
  .header-visual {
    height: 128px;
  }

  .brand-lockup {
    top: 31px;
    left: 0;
    height: 70px;
    gap: 8px;
  }

  .university-brand {
    width: 260px;
    height: auto;
  }

  .brand-divider {
    height: 54px;
  }

  .college-seal {
    width: 56px;
    height: 56px;
  }

  .college-name {
    width: 122px;
    height: auto;
  }

  .header-tools {
    display: none;
  }

  .mobile-menu-button {
    position: absolute;
    top: 45px;
    right: 0;
    display: inline-flex;
    height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid rgb(255 255 255 / 58%);
    border-radius: 4px;
    color: #fff;
    background: rgb(104 0 6 / 70%);
    font-size: 15px;
  }

  .primary-nav {
    height: auto;
  }

  .nav-list {
    display: none;
    width: 100%;
    height: auto;
    flex-direction: column;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    flex: none;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .nav-item > a,
  .nav-item > button {
    height: 48px;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 16px;
  }

  .nav-item > button i {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .nav-item.current > a::after {
    top: 9px;
    right: auto;
    bottom: 9px;
    left: 10px;
    width: 4px;
    height: auto;
  }

  .submenu {
    position: static;
    width: 100%;
    padding: 0;
    border-top: 0;
    background: #570005;
    box-shadow: none;
    transform: none;
  }

  .nav-item.is-open > .submenu {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav-item.is-open > button i {
    transform: rotate(180deg);
  }

  .submenu a {
    padding: 12px 30px;
    text-align: left;
  }

  .hero-swiper {
    height: auto;
    aspect-ratio: 16 / 7;
  }

  .news-layout {
    grid-template-columns: 1fr 1.18fr;
  }

  .notice-list {
    grid-template-columns: 1fr 1fr;
  }

  .works-section {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .works-title {
    width: 70px;
  }

  .footer-inner {
    grid-template-columns: 240px 1fr 112px;
  }

  .friend-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .site-shell {
    width: min(100% - 24px, var(--content-width));
  }

  .header-visual {
    height: 96px;
    background-position: 62% center;
  }

  .brand-lockup {
    top: 21px;
    display: grid;
    width: calc(100% - 94px);
    height: 55px;
    grid-template-columns: minmax(0, 1fr) 32px 62px;
    gap: 4px;
  }

  .university-brand {
    width: 100%;
    min-width: 0;
  }

  .brand-divider {
    display: none;
  }

  .college-seal {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  .college-name {
    display: block;
    width: 62px;
    height: auto;
  }

  .mobile-menu-button {
    top: 29px;
    height: 38px;
    padding: 0 11px;
  }

  .hero-swiper {
    aspect-ratio: 16 / 8.5;
  }

  .hero-arrow {
    width: 42px;
    height: 52px;
    font-size: 22px;
  }

  .hero-prev {
    left: 0;
  }

  .hero-next {
    right: 0;
  }

  .hero-pagination {
    bottom: 7px !important;
  }

  .news-layout {
    display: flex;
    height: auto;
    flex-direction: column;
    padding-top: 12px;
  }

  .featured-image {
    height: auto;
    aspect-ratio: 1.55 / 1;
  }

  .featured-image img {
    height: 100%;
    object-fit: cover;
  }

  .featured-image h2 {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 15px;
  }

  .featured-arrow {
    width: 30px;
    height: 46px;
    opacity: 0.82;
    font-size: 17px;
  }

  .news-panel,
  .notice-panel {
    margin-top: 18px;
  }

  .news-panel {
    display: contents;
  }

  .news-panel .section-heading {
    order: 1;
    margin-bottom: 12px;
  }

  .featured-news {
    order: 2;
  }

  .news-panel .news-list {
    order: 3;
  }

  .notice-panel {
    order: 4;
  }

  .news-item {
    height: 72px;
  }

  .news-copy strong {
    font-size: 14px;
  }

  .news-copy small {
    font-size: 11px;
  }

  .notice-list {
    display: block;
  }

  .notice-list li {
    height: 42px;
    line-height: 42px;
  }

  .motto-banner {
    height: 88px;
    margin-top: 12px;
  }

  .motto-banner img {
    width: 88%;
    height: auto;
    transform: none;
  }

  .works-section {
    display: block;
    height: 224px;
    margin-top: 12px;
  }

  .works-title {
    width: 100%;
    height: 44px;
    flex-direction: row;
    gap: 8px;
    border-width: 3px;
    font-size: 20px;
  }

  .works-stage {
    height: 180px;
    padding: 12px 31px;
  }

  .site-footer {
    height: auto;
    min-height: 310px;
    margin-top: 18px;
    background-position: 68% center;
  }

  .footer-inner {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    padding-block: 24px;
    text-align: center;
  }

  .friend-links {
    flex-direction: row;
    justify-content: center;
  }

  .footer-inner address {
    font-size: 12px;
  }

  .wechat {
    align-self: center;
  }

  .wechat img {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Reusable inner-page templates */
.inner-page {
  background: #fff;
  color: #333;
}

.inner-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #5e0006;
}

.inner-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(72, 0, 5, 0.76), rgba(72, 0, 5, 0.12) 65%);
}

.inner-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.inner-hero-copy {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.inner-hero-copy h1 {
  margin: 0 0 9px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.inner-hero-copy p {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.18em;
  opacity: 0.92;
}

.breadcrumb {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 10px;
  color: #777;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}

.breadcrumb a {
  color: #555;
  transition: color 180ms ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #890007;
}

.breadcrumb .fa-angle-right {
  color: #aaa;
  font-size: 11px;
}

.inner-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  padding-top: 15px;
  padding-bottom: 20px;
}

.column-nav {
  align-self: start;
  border: 1px solid #e4e4e4;
  background: #fff;
}

.search-layout {
  display: grid;
  gap: 30px;
  padding-top: 15px;
  padding-bottom: 20px;
}

.column-nav > h2,
.column-toggle {
  display: flex;
  align-items: center;
  min-height: 72px;
  margin: -1px -1px 0;
  padding: 0 25px;
  color: #fff;
  background: #890007;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.column-toggle {
  display: none;
  width: calc(100% + 2px);
  justify-content: space-between;
  border: 0;
  text-align: left;
}

.column-toggle i {
  transition: transform 180ms ease;
}

.column-nav ul {
  margin: 0;
  padding: 10px 20px 18px;
  list-style: none;
}

.column-nav li {
  border-bottom: 1px solid #ededed;
}

.column-nav li:last-child {
  border-bottom: 0;
}

.column-nav li a {
  position: relative;
  display: block;
  padding: 15px 14px 15px 27px;
  color: #444;
  font-size: 16px;
  transition: color 180ms ease, transform 180ms ease;
}

.column-nav li a::before {
  position: absolute;
  top: 50%;
  left: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bbb;
  content: "";
  transform: translateY(-50%);
}

.column-nav li.active a,
.column-nav li a:hover,
.column-nav li a:focus-visible {
  color: #890007;
  transform: translateX(4px);
}

.column-nav li.active a {
  font-weight: 700;
}

.column-nav li.active a::before,
.column-nav li a:hover::before {
  background: #890007;
}

.inner-content,
.article-detail {
  min-width: 0;
}

.inner-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 57px;
  margin-bottom: 14px;
  border-bottom: 1px solid #d7d7d7;
}

.inner-heading h2 {
  position: relative;
  margin: 0;
  padding: 0 0 15px;
  color: #333;
  font-size: 25px;
  font-weight: 500;
}

.inner-heading h2::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #890007;
  content: "";
}

.inner-heading span {
  padding-bottom: 16px;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.article-list {
  min-height: 555px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 55px;
  padding-left: 19px;
  border-bottom: 1px dashed #ddd;
}

.article-list li::before {
  position: absolute;
  left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a4000b;
  content: "";
}

.article-list a {
  overflow: hidden;
  color: #383838;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.article-list li:hover a,
.article-list a:focus-visible {
  color: #890007;
  transform: translateX(4px);
}

.article-list time {
  color: #8a8a8a;
  font-family: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  gap: 7px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #555;
  font-size: 14px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pagination button:first-child,
.pagination button:last-child {
  padding: 0 14px;
}

.pagination button:hover:not(:disabled),
.pagination button:focus-visible,
.pagination button.is-current {
  border-color: #890007;
  background: #890007;
  color: #fff;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pagination .p_pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination .p_pages > span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #555;
  font-size: 14px;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pagination .p_pages a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  color: inherit;
}

.pagination .p_pages > span.p_fun,
.pagination .p_pages > span.p_fun_d {
  padding: 0 11px;
}

.pagination .p_pages > span.p_no_d {
  cursor: default;
  border-color: #890007;
  background: #890007;
  color: #fff;
}

.pagination .p_pages > span.p_fun_d {
  cursor: not-allowed;
  border-color: #e3e3e3;
  background: #f7f7f7;
  color: #aaa;
}

.pagination .p_no:hover,
.pagination .p_no:focus-within,
.pagination .p_fun:hover,
.pagination .p_fun:focus-within {
  border-color: #890007;
  background: #890007;
  color: #fff;
}

.pagination .p_dot {
  min-width: 22px;
  border-color: transparent;
  background: transparent;
  color: #888;
}

.article-header {
  padding: 6px 18px 24px;
  border-bottom: 1px solid #e3e3e3;
  text-align: center;
}

.article-header h1 {
  margin: 0 0 22px;
  color: #262626;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  color: #888;
  font-size: 14px;
}

.article-body {
  padding: 30px 18px 8px;
  color: #3d3d3d;
  font-size: 17px;
  line-height: 2;
}

.article-body p {
  margin: 0 0 20px;
  text-align: justify;
  text-indent: 2em;
}

.article-body h2 {
  margin: 30px 0 15px;
  color: #6f0007;
  font-size: 21px;
  font-weight: 600;
}

.article-body figure {
  margin: 28px auto;
  max-width: 760px;
  text-align: center;
}

.article-body img {
  display: block;
  width: auto !important;
  max-width: min(100%, 760px) !important;
  height: auto !important;
  max-height: none;
  margin: 24px auto;
  object-fit: contain;
}

.article-body figcaption {
  padding-top: 9px;
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 15px 22px;
  border-left: 4px solid #890007;
  background: #f7f3f3;
  color: #5d4749;
}

.article-attachment {
  margin: 24px 18px 0;
  padding: 20px 22px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}

.article-attachment h2 {
  margin: 0 0 13px;
  color: #333;
  font-size: 17px;
  font-weight: 600;
}

.article-attachment a {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #555;
}

.article-attachment a:hover,
.article-attachment a:focus-visible {
  color: #890007;
}

.article-attachment a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-attachment a small {
  flex: none;
  margin-left: auto;
  color: #890007;
}

.article-adjacent {
  display: grid;
  gap: 11px;
  margin: 30px 18px 0;
  padding: 22px 0;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
}

.article-adjacent a {
  display: flex;
  min-width: 0;
  color: #555;
}

.article-adjacent span {
  flex: none;
}

.article-adjacent strong {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-adjacent a:hover strong,
.article-adjacent a:focus-visible strong {
  color: #890007;
}

.article-back {
  margin: 24px 18px 0;
  text-align: right;
}

.article-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #890007;
}

@media (max-width: 1023px) {
  .inner-hero {
    height: 160px;
  }

  .inner-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .inner-hero {
    height: 125px;
  }

  .inner-hero-copy h1 {
    margin-bottom: 4px;
    font-size: 28px;
  }

  .inner-hero-copy p {
    font-size: 12px;
  }

  .breadcrumb {
    min-height: 48px;
    overflow: hidden;
    white-space: nowrap;
  }

  .inner-layout {
    display: block;
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .column-nav {
    margin-bottom: 25px;
  }

  .column-nav > h2 {
    display: none;
  }

  .column-toggle {
    display: flex;
    min-height: 54px;
    font-size: 18px;
  }

  .column-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  .column-nav ul {
    display: none;
    padding: 5px 16px 12px;
  }

  .column-nav ul.is-open {
    display: block;
  }

  .column-nav li a {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .inner-heading h2 {
    font-size: 22px;
  }

  .inner-heading span {
    display: none;
  }

  .article-list {
    min-height: 0;
  }

  .article-list li {
    gap: 12px;
    min-height: 52px;
    padding-left: 16px;
  }

  .article-list a {
    font-size: 15px;
  }

  .article-list time {
    font-size: 12px;
  }

  .pagination {
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .pagination .p_pages {
    gap: 6px;
  }

  .pagination .p_pages > span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .pagination .p_pages a {
    padding: 0 9px;
  }

  .article-header {
    padding: 0 0 20px;
  }

  .article-header h1 {
    margin-bottom: 17px;
    font-size: 25px;
  }

  .article-meta {
    gap: 6px 15px;
  }

  .article-body {
    padding: 23px 0 4px;
    font-size: 16px;
    line-height: 1.9;
  }

  .article-body p {
    text-align: left;
  }

  .article-body h2 {
    font-size: 19px;
  }

  .article-attachment,
  .article-adjacent,
  .article-back {
    margin-right: 0;
    margin-left: 0;
  }
}

/* Current leaders page */
.leaders-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0 30px;
  padding: 13px 16px;
  border-left: 3px solid #bd8b25;
  background: #fbf7ee;
  color: #766445;
  font-size: 14px;
  line-height: 1.7;
}

.leaders-demo-note i {
  flex: none;
  margin-top: 5px;
  color: #a86f0a;
}

.leader-group + .leader-group {
  margin-top: 38px;
}

.leader-group > h2 {
  position: relative;
  margin: 0 0 17px;
  padding: 0 0 12px 18px;
  border-bottom: 1px solid #d8d8d8;
  color: #333;
  font-size: 21px;
  font-weight: 600;
}

.leader-group > h2::before {
  position: absolute;
  top: 4px;
  bottom: 16px;
  left: 0;
  width: 4px;
  background: #890007;
  content: "";
}

.leader-list {
  display: grid;
  gap: 16px;
}

.leader-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: 0 4px 15px rgb(72 0 4 / 5%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.leader-row:hover {
  border-color: #d6b6b8;
  box-shadow: 0 7px 20px rgb(72 0 4 / 9%);
  transform: translateY(-2px);
}

.leader-avatar {
  display: grid;
  place-items: center;
  color: #9f7376;
  background: linear-gradient(145deg, #f5eded, #eadcdd);
  font-size: 58px;
}

.leader-avatar i {
  width: 88px;
  height: 88px;
  padding-top: 16px;
  border: 1px solid rgb(137 0 7 / 15%);
  border-radius: 50%;
  background: rgb(255 255 255 / 48%);
  text-align: center;
}

.leader-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px;
}

.leader-info h3 {
  margin: 0 0 5px;
  color: #780006;
  font-size: 23px;
  font-weight: 600;
}

.leader-role {
  margin: 0 0 13px;
  color: #555;
  font-size: 16px;
  font-weight: 600;
}

.leader-responsibilities {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.leader-responsibilities strong {
  color: #444;
  font-weight: 600;
}

@media (max-width: 767px) {
  .leaders-demo-note {
    margin: 17px 0 23px;
    padding: 11px 13px;
    font-size: 13px;
  }

  .leader-group + .leader-group {
    margin-top: 31px;
  }

  .leader-group > h2 {
    margin-bottom: 13px;
    font-size: 19px;
  }

  .leader-list {
    gap: 12px;
  }

  .leader-row {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 132px;
  }

  .leader-avatar {
    font-size: 34px;
  }

  .leader-avatar i {
    width: 58px;
    height: 58px;
    padding-top: 11px;
  }

  .leader-info {
    padding: 16px 14px;
  }

  .leader-info h3 {
    font-size: 19px;
  }

  .leader-role {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .leader-responsibilities {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* Works list page */
.works-list-content {
  min-width: 0;
}

.works-list-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 18px;
}

.work-card {
  min-width: 0;
  width: 100%;
  max-width: 220px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card[hidden] {
  display: none;
}

.work-card-media {
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  background: #f5f3ef;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 240ms ease;
}

.work-card-body {
  display: block;
  padding: 12px 10px 14px;
}

.work-card-body strong {
  display: block;
  min-height: 0;
  overflow: hidden;
  color: #303030;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.work-card-body small {
  display: none;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: #caa8aa;
  box-shadow: 0 12px 28px rgb(73 24 28 / 12%);
  transform: translateY(-4px);
}

.work-card:hover .work-card-media img,
.work-card:focus-visible .work-card-media img {
  transform: scale(1.025);
}

.work-card:hover .work-card-body strong,
.work-card:focus-visible .work-card-body strong {
  color: #890007;
}

.work-card:focus-visible {
  outline: 3px solid rgb(137 0 7 / 28%);
  outline-offset: 3px;
}

.works-pagination {
  margin-top: 34px;
}

@media (max-width: 1023px) {
  .works-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .works-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .work-card-body {
    padding: 11px 8px 13px;
  }

  .work-card-body strong {
    min-height: 0;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .works-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card,
  .work-card-media img {
    transition: none;
  }

  .work-card:hover,
  .work-card:focus-visible,
  .work-card:hover .work-card-media img,
  .work-card:focus-visible .work-card-media img {
    transform: none;
  }
}

/* Teacher directory */
.teachers-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  color: #765f60;
  background: #faf5f5;
  font-size: 14px;
  line-height: 1.7;
}

.teachers-demo-note i,
.teachers-demo-note .svg-inline--fa {
  flex: 0 0 auto;
  margin-top: 5px;
  color: var(--accent);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.teacher-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e5dddd;
  background: #fff;
  box-shadow: 0 8px 22px rgb(73 24 28 / 8%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.teacher-avatar {
  position: relative;
  display: grid;
  width: 112px;
  aspect-ratio: 3 / 4;
  place-items: center;
  align-self: start;
  overflow: hidden;
  color: #ae8386;
  background:
    linear-gradient(135deg, transparent 0 48%, rgb(137 0 7 / 4%) 48% 52%, transparent 52%),
    linear-gradient(145deg, #f7eeee, #eadcdd);
  font-size: 50px;
}

.teacher-avatar::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(137 0 7 / 28%), transparent);
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.teacher-avatar .svg-inline--fa {
  width: 1em;
  height: 1em;
  filter: drop-shadow(0 8px 14px rgb(73 24 28 / 10%));
}

.teacher-info {
  display: block;
  min-width: 0;
  padding: 2px 0;
}

.teacher-name {
  display: block;
  overflow: hidden;
  color: #2f2f2f;
  font-size: 20px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-title {
  display: block;
  margin-top: 6px;
  color: #890007;
  font-size: 15px;
}

.teacher-research {
  display: block;
  min-height: 48px;
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.teacher-research b {
  color: #444;
  font-weight: 600;
}

.teacher-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.teacher-more i,
.teacher-more .svg-inline--fa {
  transition: transform 180ms ease;
}

.teacher-card:hover,
.teacher-card:focus-visible {
  border-color: rgb(137 0 7 / 35%);
  box-shadow: 0 14px 30px rgb(73 24 28 / 15%);
  transform: translateY(-4px);
}

.teacher-card:hover .teacher-name,
.teacher-card:focus-visible .teacher-name {
  color: #890007;
}

.teacher-card:hover .teacher-more i,
.teacher-card:focus-visible .teacher-more i,
.teacher-card:hover .teacher-more .svg-inline--fa,
.teacher-card:focus-visible .teacher-more .svg-inline--fa {
  transform: translateX(3px);
}

.teacher-card:focus-visible {
  outline: 3px solid rgb(137 0 7 / 28%);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .teachers-demo-note {
    margin-bottom: 20px;
    padding: 11px 13px;
    font-size: 13px;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .teacher-avatar {
    width: 96px;
    aspect-ratio: 3 / 4;
    font-size: 42px;
  }

  .teacher-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .teacher-info {
    padding: 1px 0;
  }

  .teacher-research {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-card,
  .teacher-more i,
  .teacher-more .svg-inline--fa {
    transition: none;
  }

  .teacher-card:hover,
  .teacher-card:focus-visible,
  .teacher-card:hover .teacher-more i,
  .teacher-card:focus-visible .teacher-more i,
  .teacher-card:hover .teacher-more .svg-inline--fa,
  .teacher-card:focus-visible .teacher-more .svg-inline--fa {
    transform: none;
  }
}

/* Teacher showcase */
.faculty-showcase {
  padding-bottom: 8px;
}

.faculty-rank + .faculty-rank {
  margin-top: 20px;
}

.faculty-rank > h3 {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 16px;
  color: #fff;
  background: var(--brand);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.faculty-name-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 10px 14px 0;
}

.faculty-name-card {
  display: flex;
  height: 40px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid #e8e4e4;
  color: #222;
  background: #fff;
  font-size: 16px;
  line-height: 38px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faculty-name-card:hover,
.faculty-name-card:focus-visible {
  border-color: rgb(137 0 7 / 45%);
  color: #890007;
  box-shadow: 0 6px 14px rgb(73 24 28 / 10%);
  transform: translateY(-2px);
}

.faculty-name-card:focus-visible {
  outline: 3px solid rgb(137 0 7 / 22%);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .faculty-name-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .faculty-rank + .faculty-rank {
    margin-top: 16px;
  }

  .faculty-rank > h3 {
    min-height: 42px;
    font-size: 16px;
  }

  .faculty-name-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 9px 0 0;
  }

  .faculty-name-card {
    height: 39px;
    padding-inline: 8px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faculty-name-card {
    transition: none;
  }

  .faculty-name-card:hover,
  .faculty-name-card:focus-visible {
    transform: none;
  }
}

/* ColumnNews may keep a semantic list wrapper around custom cards. */
.boda-works-list > ul,
.boda-teacher-list > ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boda-works-list > ul > li,
.boda-teacher-list > ul > li {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boda-works-list > ul > li > .work-card,
.boda-teacher-list > ul > li > .teacher-card {
  height: 100%;
}

/* Boda CMS rendered navigation compatibility */
.boda-site-search .wxy-header-sreach-input {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.boda-site-search .wxy-header-sreach-input input {
  width: auto;
  min-width: 0;
  height: 100%;
  flex: 1;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #555;
  background: #fff;
  font-size: 13px;
}

.boda-site-search .wxy-header-sreach-input button {
  height: 100%;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.boda-site-search .wxy-header-sreach-input button .svg-inline--fa {
  width: 1em;
  height: 1em;
}

.quick-links {
  gap: 0;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
}

.quick-links a + a::before {
  margin: 0 9px;
  color: rgb(255 255 255 / 72%);
  content: "|";
  pointer-events: none;
}

#primary-menu > li {
  position: relative;
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

#primary-menu > li > a {
  position: relative;
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

#primary-menu > li > a:not(:only-child)::after {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  content: "";
  transform: rotate(45deg);
}

#primary-menu > li:hover > a,
#primary-menu > li:focus-within > a {
  background: rgb(255 255 255 / 7%);
}

.wxy-header-nav-item {
  position: absolute;
  z-index: 40;
  top: 56px;
  left: 50%;
  display: none;
  width: 168px;
  padding: 7px 0;
  border-top: 3px solid var(--accent);
  background: rgb(104 0 6 / 97%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 24%);
  transform: translateX(-50%);
}

.wxy-header-nav-item ul,
.wxy-header-nav-item li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wxy-header-nav-item a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
}

.wxy-header-nav-item li:last-child > a {
  border-bottom: 0;
}

.wxy-header-nav-item a:hover,
.wxy-header-nav-item a:focus-visible {
  color: #3c1600;
  background: var(--accent);
}

@media (min-width: 1024px) {
  #primary-menu > li:hover > .wxy-header-nav-item,
  #primary-menu > li:focus-within > .wxy-header-nav-item {
    display: block;
  }
}

@media (max-width: 1023px) {
  #primary-menu > li {
    width: 100%;
    flex: none;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  #primary-menu > li > a {
    height: 48px;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 16px;
  }

  #primary-menu > li > a:not(:only-child)::after {
    margin-top: -5px;
  }

  #primary-menu > li > .wxy-header-nav-item {
    position: static;
    display: block;
    width: 100%;
    padding: 0;
    border-top: 0;
    background: #570005;
    box-shadow: none;
    transform: none;
  }

  .wxy-header-nav-item ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wxy-header-nav-item a {
    padding: 12px 30px;
    text-align: left;
  }
}

/* Boda CMS rendered left column navigation compatibility */
.column-nav > h2 {
  display: none;
}

.boda-column-menu {
  width: 100%;
}

.boda-column-menu > h1 {
  display: flex;
  min-height: 72px;
  align-items: center;
  margin: -1px -1px 0;
  padding: 0 25px;
  overflow: hidden;
  color: #fff;
  background: #890007;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
}

.boda-column-menu > ul {
  margin: 0;
  padding: 10px 20px 18px;
  list-style: none;
}

@media (max-width: 767px) {
  .boda-column-menu > h1 {
    display: none;
  }

  .boda-column-menu > ul {
    display: none;
    padding: 5px 16px 12px;
  }

  .boda-column-menu.is-open > ul {
    display: block;
  }
}
