/*
 * 托马斯学习馆官网 | 基础 UI 优化版
 * 2+1 色彩：品牌墨绿 + 品牌红 + 中性白灰；原始 LOGO 保留其自身颜色。
 * 统一字号：12 / 14 / 16 / 20 / 28–40 / 34–60px
 * 间距使用 8px 网格：8 / 16 / 24 / 32 / 40 / 48 / 64 / 80 / 96px。
 */
:root {
  color-scheme: light;
  --green: #075f58;
  --green-dark: #03433e;
  --red: #c32d27;
  --text: #203633;
  --text-secondary: #52615e;
  --neutral: #f6f7f5;
  --white: #fff;
  --line: #e5e9e6;

  --font-caption: .75rem;
  --font-small: .875rem;
  --font-body: 1rem;
  --font-card: 1.25rem;
  --font-section: clamp(1.75rem, 3vw, 2.5rem);
  --font-hero: clamp(2.125rem, 5vw, 3.75rem);

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;
  --max-width: 1184px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
:where(h1, h2, h3, p) { margin: 0; }
section[id], article[id] { scroll-margin-top: 96px; }
.container { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -96px; left: 16px; z-index: 100; padding: 8px 16px; color: var(--white); background: var(--green); }
.skip-link:focus { top: 8px; }

/* 站点导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgb(0 0 0 / 5%); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.brand { display: inline-flex; gap: 16px; align-items: center; flex: 0 0 auto; min-width: 0; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; }
.brand-text { display: grid; gap: 0; line-height: 1.5; }
.brand-text strong { color: var(--green-dark); font-size: var(--font-body); font-weight: 750; white-space: nowrap; }
.brand-text small { color: var(--text-secondary); font-size: var(--font-caption); }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-link { color: var(--text-secondary); font-size: var(--font-small); font-weight: 600; white-space: nowrap; }
.nav-link:is(:hover, .active) { color: var(--green); }
.nav-link.active { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 24px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: var(--font-small); font-weight: 700; line-height: 1.5;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green); background: var(--white); }
.btn-outline:hover { background: var(--neutral); }
.header-cta { flex: 0 0 auto; }
.menu-toggle, .mobile-nav { display: none; }
.mobile-nav[hidden] { display: none !important; }

/* 首屏：只有标题、说明、主按钮 */
.hero {
  display: flex;
  align-items: center;
  min-height: min(680px, calc(100svh - 80px));
  padding: 96px 0;
  text-align: center;
  background: var(--neutral);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { max-width: 960px; font-size: var(--font-hero); font-weight: 800; line-height: 1.3; letter-spacing: -.035em; text-wrap: balance; }
.hero-description { max-width: 704px; color: var(--text-secondary); font-size: var(--font-body); line-height: 1.9; }
.hero-button { margin-top: 8px; min-width: 192px; }

/* 通用版式、字号与间距 */
.section { padding: 96px 0; }
.section-heading { max-width: 800px; margin-bottom: 48px; }
.section-label { margin-bottom: 16px; font-size: var(--font-small); font-weight: 750; color: var(--red); }
h2 { font-size: var(--font-section); font-weight: 760; line-height: 1.35; letter-spacing: -.025em; }
h3 { font-size: var(--font-card); font-weight: 730; line-height: 1.5; }
.section-heading > p:last-child, .philosophy-copy > p:last-child, .faq-intro > p:not(.section-label) {
  margin-top: 16px; color: var(--text-secondary); line-height: 1.85;
}
.item-number { display: block; color: var(--red); font-size: var(--font-small); font-weight: 750; line-height: 1.5; }

/* 教学优势 */
.strength-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.strength-item { padding: 32px 24px; border: 1px solid var(--line); border-radius: 16px; }
.strength-item h3 { margin-top: 16px; }
.strength-item p { margin-top: 16px; color: var(--text-secondary); font-size: var(--font-small); line-height: 1.85; }

/* 课程展示 */
.courses-section { background: var(--neutral); }
.courses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; min-width: 0; padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.course-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.course-index { color: var(--text-secondary); font-size: var(--font-small); }
.age-tag { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: var(--font-small); font-weight: 700; color: var(--green); white-space: nowrap; }
.course-card h3 { margin-top: 32px; color: var(--green-dark); font-size: 1.75rem; }
.course-intro { margin-top: 16px; color: var(--text-secondary); line-height: 1.85; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; padding: 0; list-style: none; }
.course-tags li { padding: 8px 16px; background: var(--neutral); border-radius: 8px; color: var(--text-secondary); font-size: var(--font-small); }
.course-link, .inline-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--green); font-size: var(--font-small); font-weight: 750; }
.course-link { margin-top: auto; }
.course-link:is(:hover, :focus-visible), .inline-link:is(:hover, :focus-visible) { color: var(--red); }
.section-note { margin-top: 24px; color: var(--text-secondary); font-size: var(--font-caption); }

/* 教学理念 */
.philosophy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.philosophy-copy { max-width: 528px; }
.philosophy-list { border-top: 1px solid var(--line); }
.philosophy-list article { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.philosophy-list article p { margin-top: 8px; color: var(--text-secondary); font-size: var(--font-small); line-height: 1.8; }

/* 常见问题，保留原生 details 交互 */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 80px; }
.faq-intro .inline-link { margin-top: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { flex: 0 0 24px; display: grid; place-items: center; color: var(--green); font-size: var(--font-card); }
.faq-plus::before { content: '+'; }
.faq-list details[open] .faq-plus::before { content: '−'; }
.faq-list details p { margin: 0 0 24px; padding-right: 40px; color: var(--text-secondary); font-size: var(--font-small); line-height: 1.85; }

/* 招生咨询 */
.contact-section { background: var(--neutral); }
.contact-shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.contact-lead { padding: 48px; background: var(--green); color: var(--white); }
.contact-lead .section-label { color: var(--white); }
.contact-lead p:last-child { margin-top: 16px; color: var(--white); opacity: .9; line-height: 1.85; }
.contact-details { padding: 48px; min-width: 0; }
.contact-address h3 { font-size: var(--font-card); }
.contact-address p { margin-top: 8px; color: var(--text-secondary); font-size: var(--font-small); }
.copy-address { display: inline-flex; gap: 8px; margin-top: 16px; padding: 8px 0; background: transparent; border: 0; color: var(--green); font-size: var(--font-small); font-weight: 750; }
.copy-address:hover { color: var(--red); }
.contact-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.phone-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 24px 16px; border: 1px solid var(--line); border-radius: 12px; }
.phone-card:hover { border-color: var(--green); }
.phone-card > span, .phone-card small { font-size: var(--font-caption); color: var(--text-secondary); }
.phone-card strong { font-size: clamp(.9rem, 1.65vw, 1.25rem); line-height: 1.5; color: var(--green-dark); overflow-wrap: anywhere; }
.phone-card small { margin-top: 8px; color: var(--green); }
.contact-tip { margin-top: 24px; font-size: var(--font-caption); color: var(--text-secondary); }

/* 页脚及功能组件 */
.site-footer { background: var(--white); }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; color: var(--text-secondary); font-size: var(--font-small); }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--text-secondary); font-size: var(--font-caption); }
.toast { position: fixed; z-index: 100; bottom: 32px; left: 50%; transform: translate(-50%, 16px); width: max-content; max-width: calc(100% - 32px); padding: 16px 24px; background: var(--green-dark); color: var(--white); border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; font-size: var(--font-small); }
.toast.shown { opacity: 1; transform: translate(-50%, 0); }
.mobile-contact-cta { display: none; }

/* 平板：避免导航溢出，保持课程卡可读 */
@media (max-width: 1050px) {
  .desktop-nav { gap: 16px; }
  .header-inner { gap: 24px; }
  .strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philosophy-grid, .faq-grid { gap: 48px; }
}
@media (max-width: 979px) {
  .desktop-nav, .header-cta { display: none; }
  .header-inner { justify-content: space-between; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
  .menu-toggle span { width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
  .menu-toggle.is-open span:first-child { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:last-child { transform: translateY(-8px) rotate(-45deg); }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 16px max(24px, calc((100vw - var(--max-width)) / 2)) 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgb(0 0 0 / 5%); }
  .mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--font-body); }
  .mobile-nav a:last-child { border-bottom: 0; color: var(--green); font-weight: 750; }
  .philosophy-grid, .faq-grid { grid-template-columns: 1fr; }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-lead, .contact-details { padding: 40px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 80px; }
  .container { width: calc(100% - 32px); }
  .site-header { height: 72px; }
  .brand { gap: 8px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-text strong { font-size: var(--font-small); }
  .brand-text small { font-size: var(--font-caption); }
  .mobile-nav:not([hidden]) { top: 72px; max-height: calc(100dvh - 72px); padding: 8px 16px 16px; }
  .hero { min-height: min(560px, calc(100svh - 72px)); padding: 80px 0; }
  .hero-inner { gap: 24px; }
  .hero h1 { font-size: 2.125rem; line-height: 1.4; }
  .desktop-break { display: none; }
  .hero-description { font-size: var(--font-body); line-height: 1.85; }
  .hero-button { margin-top: 0; }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-label { margin-bottom: 16px; }
  .strength-grid, .courses-grid { grid-template-columns: 1fr; gap: 16px; }
  .strength-item { padding: 24px; }
  .course-card { padding: 32px 24px; }
  .course-card h3 { margin-top: 24px; }
  .course-tags { margin: 24px 0 32px; }
  .philosophy-grid, .faq-grid { gap: 32px; }
  .contact-lead, .contact-details { padding: 32px 24px; }
  .contact-phones { grid-template-columns: 1fr; gap: 16px; }
  .phone-card { padding: 16px; }
  .phone-card strong { font-size: var(--font-card); }
  .footer-main { flex-direction: column; align-items: flex-start; padding: 40px 0; gap: 24px; }
  .footer-links { gap: 16px 24px; }
  .footer-bottom { gap: 8px; padding: 24px 0 96px; }
  /* 只在滚动后显示底部咨询条，保持首屏只有一个主按钮。 */
  .site-header.scrolled ~ .mobile-contact-cta { display: flex; }
  .mobile-contact-cta { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); font-size: var(--font-small); }
  .mobile-contact-cta strong { padding: 8px 16px; background: var(--green); color: var(--white); border-radius: 8px; font-size: var(--font-small); }
  .toast { bottom: 96px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 1.875rem; }
  .phone-card strong { font-size: var(--font-body); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* SEO 专题页：延续 2+1 配色与 8pt(8px) 间距，不引入其他强调色。 */
.page-hero { padding:80px 0 88px; background:var(--neutral); }
.page-hero-inner { max-width:960px; }
.breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:40px; color:var(--text-secondary); font-size:var(--font-small); }
.breadcrumb a:hover { color:var(--green); }
.page-hero h1 { max-width:920px; font-size:var(--font-hero); font-weight:800; line-height:1.33; letter-spacing:-.025em; text-wrap:balance; }
.page-standfirst { max-width:840px; margin-top:24px; font-size:1.125rem; color:var(--text-secondary); line-height:1.95; }
.page-actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:32px; }
.age-note { max-width:880px; margin-top:24px; color:var(--text-secondary); font-size:var(--font-small); }
.narrow { max-width:880px; }
.summary-section h2 { margin-bottom:24px; }
.large-copy { font-size:1.125rem; line-height:2; color:var(--text-secondary); }
.mini-toc { display:flex; flex-wrap:wrap; gap:8px; margin-top:32px; }
.mini-toc a { padding:8px 16px; border:1px solid var(--line); border-radius:8px; color:var(--green); font-size:var(--font-small); font-weight:700; }
.mini-toc a:hover { border-color:var(--green); }
.knowledge-section.alt, .alt, .related-section { background:var(--neutral); }
.knowledge-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.knowledge-card { display:grid; grid-template-columns:40px minmax(0,1fr); gap:16px; border:1px solid var(--line); border-radius:16px; background:var(--white); padding:32px; min-width:0; }
.knowledge-card h3 { color:var(--green-dark); }
.knowledge-number { display:block; color:var(--red); font-size:var(--font-small); font-weight:800; }
.knowledge-card p { margin-top:16px; color:var(--text-secondary); line-height:1.9; font-size:var(--font-small); }
.warning-list { display:grid; gap:16px; margin:32px 0 0; padding:0; list-style:none; }
.warning-list li { position:relative; padding:24px 24px 24px 48px; border:1px solid var(--line); border-radius:12px; line-height:1.9; }
.warning-list li::before { content:'!'; display:grid; place-items:center; position:absolute; top:28px; left:16px; width:20px; height:20px; border-radius:50%; background:var(--red); color:var(--white); font-size:12px; font-weight:800; }
.subtle-footnote { color:var(--text-secondary); font-size:var(--font-small); margin-top:24px; }
.callout-plain { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:32px; padding:48px; border:1px solid var(--line); border-radius:16px; }
.callout-plain > div { max-width:720px; flex:1 1 420px; }
.callout-plain p:last-child { margin-top:16px; color:var(--text-secondary); }
.guide-home { background:var(--white); }
.topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.topic-link { display:flex; flex-direction:column; gap:16px; padding:32px; border:1px solid var(--line); border-radius:16px; background:var(--white); min-height:232px; }
.topic-link:hover { border-color:var(--green); }
.topic-link strong { font-size:var(--font-card); line-height:1.5; color:var(--green-dark); }
.topic-link span:nth-child(2) { font-size:var(--font-small); color:var(--text-secondary); line-height:1.9; }
.topic-link span:last-child { margin-top:auto; color:var(--red); font-weight:700; }
.detail-link { margin-top:24px; }
.check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.check-grid article { padding:32px; background:var(--white); border-radius:16px; border:1px solid var(--line); }
.check-grid p { margin-top:16px; color:var(--text-secondary); font-size:var(--font-small); line-height:1.9; }
@media (max-width:979px) {
  .topic-grid,.check-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .page-hero { padding:48px 0 64px; }
  .page-hero h1 { font-size:2.125rem; }
  .page-standfirst,.large-copy { font-size:var(--font-body); }
  .breadcrumb { margin-bottom:32px; }
  .age-note { margin-top:16px; }
  .knowledge-list,.topic-grid,.check-grid { grid-template-columns:1fr; }
  .knowledge-card { grid-template-columns:32px minmax(0,1fr); padding:24px; }
  .callout-plain { padding:24px; }
  .topic-link { min-height:0; padding:24px; }
}

/* ===== 2026-11 新增：校园风采 / 师资团队 / 视频块 / 页面配图 ===== */
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.gallery-grid figure { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.gallery-grid img { display:block; width:100%; height:230px; object-fit:cover; }
.gallery-grid figure.wide { grid-column:span 2; }
.gallery-grid figcaption { padding:10px 16px; font-size:var(--font-caption); color:var(--text-secondary); }
.video-shell { margin-top:24px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:center; padding:32px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.video-shell video { display:block; width:100%; max-height:480px; border-radius:12px; background:#000; object-fit:contain; }
.video-shell h3 { font-size:var(--font-card); color:var(--green-dark); }
.video-shell p { margin-top:12px; color:var(--text-secondary); line-height:1.85; font-size:var(--font-small); }
.team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.team-grid img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:16px; }
.inline-photo { margin:40px auto 0; max-width:880px; }
.inline-photo img { display:block; width:100%; border:1px solid var(--line); border-radius:16px; }
.inline-photo.slim { max-width:560px; }
.photo-duo { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:40px; }
.photo-duo figure { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.photo-duo img { display:block; width:100%; height:300px; object-fit:cover; }
.photo-duo figcaption { padding:10px 16px; font-size:var(--font-caption); color:var(--text-secondary); }
@media (max-width:979px) {
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery-grid img { height:200px; }
  .team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .video-shell { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .gallery-grid, .team-grid, .photo-duo { grid-template-columns:1fr; }
  .gallery-grid figure.wide { grid-column:auto; }
  .gallery-grid img, .photo-duo img { height:auto; }
}


/* Campus resource articles: readable static text, local navigation and timetable. */
.article-width { max-width: 880px; }
.article-masthead { padding: 64px 0; background: var(--neutral); border-bottom: 1px solid var(--line); }
.article-masthead h1 { max-width: 960px; font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.35; letter-spacing: -.025em; color: var(--green-dark); text-wrap: balance; }
.article-summary { max-width: 840px; margin-top: 24px; color: var(--text-secondary); font-size: 1.125rem; line-height: 1.9; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--text-secondary); font-size: .875rem; }
.article-body { padding-top: 48px; padding-bottom: 64px; }
.article-toc { padding: 24px 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--neutral); }
.article-toc strong { color: var(--green-dark); }
.article-toc ol { margin: 12px 0 0; padding-left: 24px; }
.article-toc li + li { margin-top: 8px; }
.article-toc a, .article-body p a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.article-section { margin-top: 48px; scroll-margin-top: 112px; }
.article-section h2 { margin-bottom: 20px; font-size: clamp(1.4rem, 2vw, 1.875rem); line-height: 1.5; }
.article-section p { line-height: 2; margin-top: 16px; overflow-wrap: anywhere; }
.article-section ul { margin: 20px 0; padding-left: 24px; line-height: 2; }
.article-section li + li { margin-top: 8px; }
.article-section .article-note, .article-note { font-size: .875rem; color: var(--text-secondary); line-height: 1.85; }
.article-question { padding-top: 24px; }
.article-question h2 { font-size: 1.25rem; }
.article-source { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-secondary); font-size: .875rem; line-height: 1.85; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.article-tags span { padding: 4px 12px; background: var(--neutral); border-radius: 6px; color: var(--green); }
.campus-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.campus-article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.campus-article-card:hover { border-color: var(--green); }
.campus-article-card h3 { color: var(--green-dark); font-size: 1.3rem; line-height: 1.6; }
.campus-article-card p { color: var(--text-secondary); font-size: .9375rem; line-height: 1.9; }
.article-category { color: var(--green); font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: var(--neutral); }
.article-card-bottom { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; width: 100%; gap: 8px; justify-content: space-between; color: var(--text-secondary); font-size: .8125rem; }
.article-card-bottom > span { color: var(--green); font-weight: 700; }
.article-index-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.article-index-bar > span { color: var(--text-secondary); font-size: .875rem; }
.article-directory-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.article-directory-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.article-campus-photo { margin: 0; }
.article-campus-photo img { width: 100%; height: auto; display: block; border-radius: 16px; }
.article-campus-photo figcaption { margin-top: 10px; color: var(--text-secondary); font-size: .8125rem; }
.campus-service-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.campus-service-facts a { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.campus-service-facts strong { color: var(--green-dark); font-size: 1.125rem; }
.campus-service-facts span { color: var(--text-secondary); font-size: .875rem; line-height: 1.85; }
.timetable-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
.campus-timetable { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .9rem; text-align: center; }
.campus-timetable caption { padding: 16px; color: var(--green-dark); font-weight: 700; text-align: left; }
.campus-timetable th, .campus-timetable td { padding: 14px 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.campus-timetable tr > :last-child { border-right: 0; }
.campus-timetable thead, .campus-timetable tbody th { background: var(--neutral); color: var(--green-dark); white-space: nowrap; }
.campus-timetable tbody tr:nth-child(even) td { background: #fafbf9; }
.teacher-text-list, .campus-facts { margin: 24px 0; }
.teacher-text-list > div, .campus-facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.teacher-text-list dt, .campus-facts dt { font-weight: 700; color: var(--green-dark); }
.teacher-text-list dd, .campus-facts dd { margin: 0; line-height: 1.9; overflow-wrap: anywhere; }
.footer-entity { color: var(--text-secondary); font-size: .8125rem; padding: 0 0 16px; }
.footer-discovery { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 24px; color: var(--text-secondary); font-size: .8125rem; }
@media (max-width: 1100px) and (min-width: 980px) { .desktop-nav { gap: 16px; } .header-cta { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 979px) { .campus-article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .article-directory-hero { gap: 24px; } }
@media (max-width: 680px) {
  .article-masthead { padding: 40px 0 48px; }
  .article-directory-hero { grid-template-columns: 1fr; gap: 32px; }
  .campus-service-facts { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .article-summary { font-size: 1rem; }
  .article-body { padding-top: 32px; }
  .article-toc { padding: 20px; }
  .article-section { margin-top: 36px; }
  .campus-article-grid { grid-template-columns: 1fr; gap: 16px; }
  .campus-article-card { padding: 24px; }
  .teacher-text-list > div, .campus-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-discovery { padding-bottom: 100px; }
  .footer-bottom { padding-bottom: 16px; }
}

/* Site audit improvements, preserving the campus palette and existing layouts. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero { min-height: 584px; padding: 64px 0; }
.hero-inner { gap: 20px; }
.hero .section-label { margin-bottom: 0; }
.hero-tagline { color: var(--text-secondary); }
.hero .page-actions { margin-top: 8px; justify-content: center; }
.hero-location { font-size: .875rem; color: var(--green); text-decoration: underline; text-underline-offset: 4px; padding: 8px; }
.compact-page-hero { padding: 56px 0 64px; }
.compact-page-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.course-campus-facts { background: #fbfcfa; }
.course-campus-facts h2 { margin-bottom: 24px; }
.contact-next { padding-top: 16px; font-size: .875rem; color: var(--green); }
.contact-next a, .faq-more { text-decoration: underline; text-underline-offset: 4px; }
.contact-page-contact .contact-shell { display: block; }
.contact-page-contact .contact-details { width: 100%; }
.teacher-profile { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.teacher-profile img { border: 0; border-radius: 0; }
.teacher-profile figcaption { padding: 20px 24px; }
.teacher-profile figcaption strong { color: var(--green-dark); }
.teacher-profile figcaption p { margin-top: 8px; color: var(--text-secondary); font-size: .875rem; line-height: 1.85; }
.visit-steps { padding-left: 24px; margin: 24px 0; }
.visit-steps li { padding-left: 8px; line-height: 1.9; }
.visit-steps li + li { margin-top: 24px; }
.visit-steps strong { display: block; color: var(--green-dark); }
.site-directory { list-style: none; margin: 20px 0; padding: 0; }
.site-directory a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--green); }
.faq-more { color: var(--green); white-space: normal; }
.article-search-form { margin: 24px 0; }
.article-search-form label { display: block; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.article-search-row { display: flex; gap: 16px; }
.article-search-row input { width: 100%; min-width: 0; flex: 1; font: inherit; line-height: 1.7; padding: 12px 16px; border: 1px solid #9ba8a3; border-radius: 10px; color: var(--text); background: var(--white); }
.article-search-row input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.article-search-row button { flex: 0 0 auto; }
.article-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.article-filters button { min-height: 44px; padding: 8px 16px; font: inherit; font-size: .875rem; border: 1px solid var(--green); border-radius: 8px; background: var(--white); color: var(--green); }
.article-filters button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.article-result-count { margin: 16px 0 24px; font-size: .875rem; color: var(--text-secondary); }
.article-empty { padding: 40px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--neutral); }
.article-empty p { margin-top: 12px; color: var(--text-secondary); }
.campus-article-card[hidden], .article-empty[hidden] { display: none; }
.desktop-nav { gap: 18px; }
.header-inner { gap: 24px; }
.footer-links { max-width: 760px; }
@media (max-width:1100px) and (min-width:980px) { .desktop-nav { gap: 12px; } .header-inner { gap: 16px; } .brand { gap: 10px; } .header-cta { padding-left: 12px; padding-right: 12px; } }
@media (max-width:680px) {
 .hero { min-height: 0; padding: 48px 0; }
 .hero .page-actions { width: 100%; flex-direction: column; }
 .hero .page-actions a { width: 100%; }
 .compact-page-hero { padding: 40px 0 48px; }
 .article-search-row { flex-direction: column; }
 .article-search-row button { align-self: flex-start; }
 .teacher-profile figcaption { padding: 16px 20px; }
}
