:root { --school-red: #a52631; --school-line: #e1e5e9; }
body { letter-spacing: 0; --font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; }
html:not(.theme--dark) body { background-color: #f5f6f8; }
html:not(.theme--dark) .section { box-shadow: none; border: 1px solid var(--school-line); border-radius: 5px; }
html:not(.theme--dark) .nav { background: #fff; border-bottom: 1px solid var(--school-line); box-shadow: none; }
html:not(.theme--dark) .nav__item.nav--active { color: var(--school-red); }
html:not(.theme--dark) .nav__item:hover { color: var(--school-red); }
html:not(.theme--dark) .primary.button, html:not(.theme--dark) .button.primary {
  background-color: var(--school-red); border-color: var(--school-red); color: #fff;
}
html:not(.theme--dark) .nav__item--round { color: var(--school-red); border-color: var(--school-red); }
.nav__list--main > .nav__list-item:first-child > a,
.header--mobile__domain { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.nav__list--main > .nav__list-item:first-child > a::after,
.header--mobile__domain::after { content: "石室北湖 OJ"; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--school-red); white-space: nowrap; }
.nav__logo, .header--mobile__domain > img {
  width: 38px !important; height: 38px !important; aspect-ratio: 1; object-fit: contain;
  background: transparent !important; filter: none !important; border: 0 !important; border-radius: 0 !important;
}
.training__title { font-size: 18px; line-height: 1.5; }
.training__intro { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.training__intro p { margin-bottom: 8px; }
.section__title { line-height: 1.5; }
.page--homepage .typo h2 { font-size: 24px; line-height: 1.5; color: var(--school-red); margin-top: 0; }
.page--homepage .typo h3 { font-size: 17px; line-height: 1.6; }
.page--homepage .typo table { width: 100%; table-layout: auto; }
.page--homepage .typo td, .page--homepage .typo th { padding: 9px 12px; overflow-wrap: anywhere; }
.page--homepage .typo a, .training__title a { color: #94303a; }
.footer { padding-top: 26px; padding-bottom: 22px; }
.footer__links { margin-bottom: 24px; }
.school-footer { color: #626c76; line-height: 1.8; }
.school-debug-hidden { display: none !important; }
.section__body, .media__body { min-width: 0; }
@media (min-width: 769px) {
  .nav__list--main > .nav__list-item:first-child { margin-right: 14px; }
  .nav__list--main > .nav__list-item:first-child > a { min-height: 46px; }
}
@media (max-width: 768px) {
  .header--mobile { height: 56px; background: #fff; border-bottom: 1px solid var(--school-line); }
  .header--mobile > .row > .columns { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 8px 14px; }
  .header--mobile > .row > .columns::before, .header--mobile > .row > .columns::after { display: none; }
  .header--mobile .float-left, .header--mobile .float-right { float: none !important; }
  .header--mobile__domain { line-height: 1; }
  .header--mobile__domain::after { font-size: 17px; }
  .header__hamburger { min-width: 44px; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; }
  .header--mobile .hamburger-inner, .header--mobile .hamburger-inner::before,
  .header--mobile .hamburger-inner::after { background-color: var(--school-red) !important; }
  .page--homepage .typo h2 { font-size: 21px; }
  .training__title { font-size: 17px; }
  .training__participants { min-width: 35px; }
  .page--homepage .typo td, .page--homepage .typo th { padding: 8px 6px; }
  .page--homepage .typo table { font-size: 13px; }
  .school-footer { display: block; max-width: 100%; overflow-wrap: anywhere; }
}
