:root {
  --bg: #f4efe6;
  --bg-soft: #fbf8f3;
  --surface: rgba(255, 252, 246, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(87, 58, 33, 0.16);
  --text: #1f1812;
  --muted: #6c5b4a;
  --accent: #b8652f;
  --accent-deep: #7e3e1d;
  --accent-soft: #efe1d2;
  --shadow: 0 28px 60px rgba(55, 33, 15, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(184, 101, 47, 0.18), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(137, 74, 31, 0.12), transparent 20%),
    linear-gradient(180deg, #f7f0e6 0%, #f4efe6 32%, #efe8dc 100%);
}

body > main {
  flex: 1 0 auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(70, 45, 28, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 45, 28, 0.02) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

strong,
h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(87, 58, 33, 0.08);
  background: rgba(249, 244, 236, 0.88);
  backdrop-filter: blur(18px);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--accent) 0%, #d08d52 100%);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 16px 34px rgba(184, 101, 47, 0.3);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(55, 33, 15, 0.1);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: block;
}

@media (min-width: 861px) {
  .site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  background: rgba(184, 101, 47, 0.1);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav-dropdown-link:hover {
  background: rgba(184, 101, 47, 0.08);
  color: var(--accent-deep);
}

.hero-stage {
  padding: 34px 0 16px;
}

.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(11, 10, 10, 0.35), rgba(11, 10, 10, 0));
  box-shadow: none;
  backdrop-filter: none;
}

.page-home .brand-copy strong,
.page-home .brand-copy em,
.page-home .nav-link {
  color: rgba(255, 255, 255, 0.96);
}

.page-home .nav-link:hover,
.page-home .nav-item:hover > .nav-link {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-home .brand-mark {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.page-home .nav-toggle {
  background: rgba(255, 255, 255, 0.18);
}

.page-home .nav-toggle span {
  background: #fff;
}

.page-home .hero-stage {
  padding: 0 0 16px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: stretch;
}

.hero-intro,
.hero-carousel,
.panel,
.side-card,
.detail-card,
.catalog-card,
.article-card,
.faculty-card,
.achievement-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-intro {
  position: relative;
  overflow: hidden;
  padding: 38px 34px;
}

.hero-intro::after {
  position: absolute;
  right: -32px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184, 101, 47, 0.22), transparent 65%);
  content: "";
}

.page-eyebrow,
.section-label,
.hero-kicker,
.footer-label {
  display: inline-block;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-intro h1,
.page-head h1 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
}

.page-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.hero-intro p {
  max-width: 32em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero-content-wide {
  right: auto;
  max-width: 640px;
  text-align: left;
}

.page-home .hero-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.button-solid {
  background: linear-gradient(135deg, var(--accent) 0%, #d28745 100%);
  color: #fff;
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 580px;
}

.hero-carousel-full {
  min-height: clamp(420px, 72vh, 760px);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: none;
}

.hero-track {
  position: relative;
  min-height: 580px;
}

.hero-carousel-full .hero-track {
  min-height: clamp(420px, 72vh, 760px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media,
.hero-media img,
.hero-slide,
.hero-overlay {
  width: 100%;
  height: 100%;
}

.hero-media img,
.article-card-cover img,
.faculty-photo img,
.detail-cover img,
.feature-cover img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, 0.08) 0%, rgba(18, 14, 10, 0.58) 100%),
    linear-gradient(120deg, rgba(184, 101, 47, 0.22) 0%, transparent 58%);
}

.hero-content {
  position: absolute;
  right: 26px;
  bottom: 58px;
  left: 26px;
  max-width: 640px;
  color: #fff;
}

.hero-content-wide {
  left: max(24px, calc((100vw - 1180px) / 2 + 16px));
}

.hero-content h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.08;
}

.hero-content p {
  margin: 0 0 18px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 26px;
  background: #fff;
}

.home-panels {
  padding: 22px 0 88px;
}

.page-home .home-panels {
  margin-top: 6px;
}

.home-panel-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  align-items: stretch;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 30px;
  background: rgba(255, 252, 248, 0.5);
  box-shadow: 0 24px 60px rgba(106, 58, 22, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
}

.home-panel-shell .section-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-right-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-news,
.home-side,
.home-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-news .news-feed {
  flex: 1;
}

.panel-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(106, 58, 22, 0.08);
  backdrop-filter: blur(10px);
}

.panel,
.side-card,
.detail-card {
  padding: 28px;
}

.section-head,
.section-head-spaced {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head-spaced {
  margin-bottom: 18px;
}

.section-head h2,
.footer-brand h2,
.catalog-card h3,
.article-card h2,
.article-card h3,
.feature-card h3,
.side-card h2,
.detail-card h2 {
  margin: 8px 0 0;
  font-size: 18px;
}

.section-more {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
}

.feature-card {
  display: block;
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.feature-cover,
.article-card-cover,
.faculty-photo,
.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(140deg, #d9c0aa 0%, #f0e1d4 100%);
}

.feature-cover {
  min-height: 240px;
}

.feature-body h3,
.article-card-body h2,
.article-card-body h3,
.faculty-body h2,
.achievement-row h2 {
  margin: 10px 0 10px;
  font-size: 18px;
  line-height: 1.12;
}

.feature-body h3 a:hover,
.article-card-body a:hover,
.faculty-body a:hover,
.achievement-row a:hover,
.news-row h3 a:hover,
.side-feed-link:hover,
.detail-nav-link:hover strong,
.catalog-card a:hover,
.footer-links a:hover,
.friend-link:hover {
  color: var(--accent);
}

.feature-meta,
.achievement-meta,
.timestamp span,
.article-card-body p,
.feature-body p,
.home-copy,
.summary-text,
.position-wrap,
.side-feed-link,
.footer-note,
.footer-links a,
.friend-link,
.detail-meta,
.detail-summary p,
.rich-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.position-wrap {
  font-size: 15px;
}

.news-feed {
  margin-top: 18px;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(87, 58, 33, 0.08);
}

.news-row-body {
  flex: 1;
  min-width: 0;
}

.news-row h3 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-row h3 a {
  color: var(--text);
  text-decoration: none;
}

.news-row h3 a:hover {
  color: var(--accent);
}

.news-row-date {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
}

.news-row p,
.detail-summary p {
  margin: 0;
  display: none;
}

.article-list {
  display: flex;
  flex-direction: column;
}

.article-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(87, 58, 33, 0.08);
}

.article-row-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  padding-top: 2px;
}

.article-row-date strong {
  font-size: 18px;
  line-height: 1;
}

.article-row-date span {
  font-size: 11px;
  color: var(--muted);
}

.article-row h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.article-row p {
  margin: 0;
}

.home-copy p:last-child {
  margin-bottom: 0;
}

.home-brief .home-copy {
  max-height: 5.2em;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.7;
}

.home-brief .home-copy p {
  margin-top: 0;
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.home-brief .quick-link-grid {
  gap: 10px;
  margin-top: 0;
}

.quick-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(87, 58, 33, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.home-brief .quick-link {
  padding: 13px 14px;
  border-radius: 16px;
}

.quick-link span {
  display: block;
  font-size: 16px;
}

.home-brief .quick-link span {
  font-size: 19px;
}

.quick-link small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.home-brief .quick-link small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.brief-video {
  margin-bottom: 18px;
}

.brief-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 14px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.notice-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(87, 58, 33, 0.08);
  color: var(--text);
  transition: color 0.2s ease;
}

.notice-item:hover {
  color: var(--accent);
}

.notice-item-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item-date {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.home-video {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.home-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(42, 33, 26, 0.88), rgba(139, 80, 40, 0.74)),
    radial-gradient(circle at 72% 28%, rgba(255, 229, 196, 0.2), transparent 30%);
}

.home-video-frame::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.home-video-frame > * {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  background: #000;
}

.home-video-frame video,
.home-video-frame iframe,
.home-video-frame object,
.home-video-frame embed {
  object-fit: contain;
}

.brief-stage {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  margin-top: 0;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(41, 34, 28, 0.88), rgba(120, 66, 28, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 32%);
}

.brief-stage::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(255, 211, 167, 0.22), transparent 18%);
  content: "";
}

.brief-stage-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  padding: 24px;
  color: rgba(255, 255, 255, 0.94);
}

.brief-stage-play {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brief-stage-play::before {
  position: absolute;
  left: 14px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid rgba(255, 255, 255, 0.88);
  content: "";
}

.brief-stage-copy strong {
  font-size: 16px;
  line-height: 1.18;
}

.brief-stage-copy p {
  max-width: 24em;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.brief-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.brief-metric {
  padding: 12px 14px;
  border: 1px solid rgba(87, 58, 33, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 247, 238, 0.92), rgba(255, 255, 255, 0.92));
}

.brief-metric strong {
  display: block;
  font-size: 16px;
}

.brief-metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-shell {
  padding-bottom: 48px;
}

.page-head {
  padding: 32px 0 0;
}

.page-head-inner {
  display: block;
  padding: 30px 0 28px;
  border-bottom: 1px solid rgba(87, 58, 33, 0.1);
}

.page-head-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-head-center {
  text-align: center;
  margin-top: 12px;
}

.page-head-center h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

.page-head-center > p {
  margin: 8px 0 0;
  max-width: none;
  color: var(--muted);
  line-height: 1.8;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.page-head-center .tag-list {
  justify-content: center;
  margin-top: 14px;
}

.page-head p {
  max-width: 42em;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.page-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
}

.page-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
}

.side-nav,
.side-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-nav-link,
.side-feed-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.side-nav-link:hover,
.side-feed-link:hover {
  background: rgba(184, 101, 47, 0.1);
}

.catalog-stage {
  padding-top: 28px;
}

.catalog-grid,
.article-grid,
.faculty-grid {
  display: grid;
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.catalog-card,
.article-card,
.faculty-card {
  overflow: hidden;
}

.catalog-card {
  padding: 24px;
}

.catalog-card-index {
  margin: 0 0 22px;
  color: rgba(126, 62, 29, 0.32);
  font-size: 48px;
  line-height: 1;
}

.catalog-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.catalog-card a {
  color: var(--accent-deep);
  font-weight: 700;
}

.article-card-cover {
  min-height: 220px;
}

.article-card-body,
.faculty-body {
  padding: 22px;
}

.article-card-body h2,
.article-card-body h3 {
  font-size: 16px;
}

.faculty-photo {
  min-height: 300px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.achievement-row {
  padding: 24px;
}

.achievement-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.achievement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 10px;
}

.detail-card {
  min-height: 320px;
}

.detail-summary {
  margin-bottom: 26px;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.detail-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-content {
  min-height: 240px;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.detail-meta p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.detail-meta span {
  color: rgba(108, 91, 74, 0.8);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-meta strong {
  font-size: 16px;
}

.detail-nav {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(87, 58, 33, 0.08);
}

.detail-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.detail-nav-link span {
  color: rgba(108, 91, 74, 0.8);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-nav-link strong {
  font-size: 18px;
}

.rich-text > *:first-child {
  margin-top: 0;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin-top: 1.7em;
  margin-bottom: 0.7em;
}

.rich-text p,
.rich-text li {
  font-size: 16px;
  line-height: 1.95;
}

.rich-text img,
.rich-text table,
.rich-text blockquote {
  max-width: 100%;
}

.rich-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-text a:hover {
  color: var(--accent-deep);
}

.pager-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 24px;
  padding-top: 4px;
}

.pager-wrap ul,
.pager-wrap ol,
.pager-wrap .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pager-wrap li {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pager-wrap a,
.pager-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(87, 58, 33, 0.14);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.pager-wrap a:focus-visible {
  outline: 2px solid rgba(126, 62, 29, 0.32);
  outline-offset: 2px;
}

.pager-wrap a:hover,
.pager-wrap li:first-child a:hover,
.pager-wrap li:last-child a:hover {
  border-color: rgba(126, 62, 29, 0.3);
  background: rgba(255, 255, 255, 0.45);
  color: var(--accent-deep);
}

.pager-wrap .active a,
.pager-wrap .active span,
.pager-wrap .current a,
.pager-wrap .current span,
.pager-wrap a.current,
.pager-wrap span.current {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}

.pager-wrap .disabled a,
.pager-wrap .disabled span {
  border-color: rgba(87, 58, 33, 0.08);
  background: transparent;
  color: rgba(31, 24, 18, 0.3);
  pointer-events: none;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 28px;
  color: rgba(255, 250, 244, 0.88);
  background: linear-gradient(180deg, #2f2119 0%, #1f1712 100%);
}

.page-home .site-footer {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 56px 0 28px;
  align-items: start;
}

.footer-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-info {
  min-width: 0;
}

.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 250, 244, 0.18);
}

.footer-contact-list li:last-child {
  margin-bottom: 0;
}

.footer-contact-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 250, 244, 0.88);
  font-size: 13px;
  line-height: 1.4;
}

.footer-contact-value {
  display: block;
  color: rgba(255, 250, 244, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.footer-note,
.footer-links a,
.friend-link,
.footer-bottom {
  color: rgba(255, 250, 244, 0.68);
  line-height: 1.4;
}

.friend-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.friend-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px;
  color: rgba(255, 250, 244, 0.68);
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.friend-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.friend-link:hover .friend-link-logo {
  background: rgba(255, 250, 244, 0.16);
}

.friend-link-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 250, 244, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.friend-link-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.friend-link-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 250, 244, 0.12);
  color: rgba(255, 250, 244, 0.55);
  font-size: 24px;
}

.friend-link-name {
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  font-size: 13px;
}

.footer-copy,
.footer-icp {
  color: rgba(255, 250, 244, 0.55);
  font-size: 13px;
}

.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  color: rgba(126, 62, 29, 0.58);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .hero-shell,
  .home-panels,
  .page-grid,
  .footer-grid,
  .catalog-grid,
  .article-grid,
  .faculty-grid,
  .home-panel-shell {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-track {
    min-height: 460px;
  }

  .hero-carousel-full,
  .hero-carousel-full .hero-track {
    min-height: 460px;
  }

  .hero-content-wide {
    left: 24px;
    right: 24px;
  }

}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: var(--shadow);
  }

  .page-home .site-nav {
    background: rgba(39, 31, 25, 0.94);
  }

  body.nav-open .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item:hover .nav-dropdown {
    display: none;
  }

  .nav-dropdown {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 6px;
    padding: 6px;
    border-style: dashed;
    box-shadow: none;
  }

  .page-head-inner,
  .footer-bottom-inner,
  .achievement-row-top {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    left: 16px;
    right: 16px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-stage {
    padding-top: 18px;
  }

  .page-home .hero-stage {
    padding-top: 0;
  }

  .hero-intro,
  .panel,
  .side-card,
  .detail-card,
  .catalog-card,
  .achievement-row {
    padding: 22px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .quick-link-grid {
    grid-template-columns: 1fr;
  }

  .friend-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .brief-metrics {
    grid-template-columns: 1fr;
  }

  .article-card-cover,
  .faculty-photo,
  .feature-cover {
    min-height: 220px;
  }

  .hero-content {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .hero-content h2 {
    font-size: 30px;
  }
}
