:root {
  color-scheme: light;
  --ink: #2f2a25;
  --muted: #756c62;
  --paper: #fffdf8;
  --paper-deep: #fbf3e6;
  --orange: #df5b1b;
  --orange-dark: #af3e0d;
  --gold: #e8a82f;
  --green: #748f35;
  --line: rgba(164, 111, 39, 0.2);
  --shadow-sm: 0 10px 28px rgba(94, 58, 16, 0.08);
  --shadow-md: 0 20px 52px rgba(94, 58, 16, 0.13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --content: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(245, 176, 49, 0.12), transparent 26rem),
    radial-gradient(circle at 96% 42%, rgba(127, 159, 69, 0.1), transparent 28rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(223, 91, 27, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange-dark);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(169, 119, 53, 0.14);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 5px 24px rgba(84, 49, 12, 0.04);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(calc(100% - 32px), var(--content));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px 15px 10px 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  box-shadow: 0 8px 18px rgba(223, 91, 27, 0.22);
  font-size: 16px;
  letter-spacing: 0;
  transform: rotate(-4deg);
}

.site-nav {
  min-width: 0;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav__list {
  min-width: max-content;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  color: #5f574f;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover {
  color: var(--orange-dark);
  background: rgba(232, 168, 47, 0.1);
}

.site-nav__link[aria-current="page"] {
  color: #fff;
  background: var(--orange);
}

.page-main {
  min-height: 58vh;
}

.content-shell {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(128deg, #fff9ec 0%, #fffdf8 46%, #f8f3df 100%);
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
}

.page-hero::before {
  top: -140px;
  left: -100px;
  width: 380px;
  height: 300px;
  background: rgba(245, 164, 35, 0.12);
}

.page-hero::after {
  right: -100px;
  bottom: -170px;
  width: 430px;
  height: 330px;
  background: rgba(112, 149, 52, 0.1);
}

.page-hero__inner {
  min-height: 340px;
  padding-block: clamp(48px, 8vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
}

.page-hero__inner--compact {
  min-height: 280px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-hero h1,
.dynamic-hero h1 {
  margin: 0;
  color: #2f2820;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.13;
  letter-spacing: 0.08em;
}

.page-hero__lead,
.dynamic-hero__lead {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.page-hero__art {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
}

.page-hero__art img {
  width: min(100%, 460px);
  max-height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(116, 71, 15, 0.12));
}

.page-hero__art--soft img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  opacity: 0.94;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section--tint {
  border-block: 1px solid rgba(164, 111, 39, 0.1);
  background: rgba(251, 243, 230, 0.58);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(28px, 5vw, 50px);
  text-align: center;
}

.section-heading--left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.dynamic-hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(34px, 8vw, 100px);
  padding-block: clamp(54px, 8vw, 96px);
}

.dynamic-hero__copy {
  position: relative;
  z-index: 1;
}

.dynamic-hero__art {
  position: relative;
  min-height: 410px;
}

.dynamic-hero__art::before {
  position: absolute;
  inset: 7% -4% -2% 4%;
  border-radius: 48% 52% 42% 58% / 44% 44% 56% 56%;
  background: linear-gradient(145deg, rgba(244, 172, 39, 0.22), rgba(111, 148, 63, 0.12));
  content: "";
}

.dynamic-hero__art img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 410px;
  border-radius: 48% 52% 42% 58% / 44% 44% 56% 56%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.button-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(223, 91, 27, 0.2);
}

.button--primary:hover {
  background: var(--orange-dark);
}

.button--secondary {
  border-color: rgba(223, 91, 27, 0.3);
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.72);
}

.button--quiet {
  border-color: var(--line);
  background: var(--paper);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.content-card--interactive {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.content-card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(94, 58, 16, 0.12);
}

.content-card__button {
  width: 100%;
  padding: 0;
  display: block;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.content-card__button:focus-visible {
  outline: 3px solid rgba(223, 91, 27, 0.38);
  outline-offset: -3px;
}

.content-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.content-card:hover .content-card__media img {
  transform: scale(1.035);
}

.content-card__body {
  padding: clamp(20px, 3vw, 28px);
}

.content-card__body h2,
.content-card__body h3 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.35;
}

.content-card__body p {
  margin: 12px 0 0;
  color: var(--muted);
  white-space: pre-line;
}

.content-card__action {
  margin-top: 14px;
  display: inline-flex;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.brand-detail__subtitle {
  color: var(--orange-dark) !important;
  font-weight: 750;
}

.brand-detail__content {
  line-height: 1.8;
}

.brand-grid {
  display: grid;
  gap: 24px;
}

.brand-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.brand-card:nth-child(even) .brand-card__media {
  order: 2;
}

.brand-card__media {
  min-height: 300px;
  overflow: hidden;
  background: var(--paper-deep);
}

.brand-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card__copy {
  padding: clamp(28px, 6vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-card__index {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.brand-card__copy h2 {
  margin: 7px 0 0;
  font-size: clamp(27px, 4vw, 42px);
}

.brand-card__subtitle {
  margin: 6px 0 0;
  color: var(--orange-dark);
  font-weight: 700;
}

.brand-card__content {
  margin: 16px 0 0;
  color: var(--muted);
  white-space: pre-line;
}

.brand-card--interactive {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(94, 58, 16, 0.14);
}

.brand-card--interactive:focus-visible {
  outline: 3px solid rgba(223, 91, 27, 0.38);
  outline-offset: 3px;
}

.brand-card--interactive .brand-card__content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.brand-card__action {
  align-self: flex-start;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.teacher-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.teacher-card__number {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
  min-width: 44px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(47, 42, 37, 0.78);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  backdrop-filter: blur(8px);
}

.teacher-card__avatar {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.teacher-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.teacher-card__body {
  padding: 22px;
}

.teacher-card__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.teacher-card h2 {
  margin: 0;
  font-size: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(223, 91, 27, 0.25);
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(232, 168, 47, 0.08);
  font-size: 12px;
  font-weight: 750;
}

.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal--teacher .tag-list {
  margin-bottom: 12px;
}

.teacher-card__idea,
.teacher-card__education {
  min-height: 5.1em;
  margin: 13px 0 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.teacher-card__education {
  color: #4f6781;
  font-weight: 700;
}

.text-button {
  margin-top: 17px;
  padding: 0;
  border: 0;
  color: var(--orange-dark);
  background: none;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(223, 91, 27, 0.32);
  text-underline-offset: 5px;
}

.filter-bar {
  position: sticky;
  top: 75px;
  z-index: 20;
  padding: 16px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.field {
  min-width: min(220px, 100%);
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.select {
  width: 100%;
  min-height: 46px;
  padding: 8px 40px 8px 13px;
  border: 1px solid rgba(164, 111, 39, 0.25);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

.field--search {
  flex: 1 1 300px;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid rgba(164, 111, 39, 0.25);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  appearance: none;
}

.search-input::placeholder {
  color: #a0978d;
}

.search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.filter-summary {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.category-tabs {
  margin: 0 0 28px;
  padding: 0 0 7px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.category-tab {
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  font-weight: 750;
  white-space: nowrap;
}

.category-tab[aria-pressed="true"] {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.activity-groups {
  display: grid;
  gap: 54px;
}

.activity-group__header {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.activity-group__header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.activity-group__header p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}

.activity-card__date {
  margin: 0 0 9px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.artwork-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.artwork-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.artwork-card__button {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
  text-align: left;
}

.artwork-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.artwork-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.artwork-card__button:hover .artwork-card__image img {
  transform: scale(1.04);
}

.artwork-card__caption {
  padding: 18px 19px 20px;
}

.artwork-card__caption h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.artwork-card__meta {
  margin: 7px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.artwork-card__meta span:not(:last-child)::after {
  margin-left: 6px;
  content: "·";
}

.pagination {
  margin-top: 34px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  white-space: nowrap;
}

.pagination button {
  flex: 0 0 auto;
  min-width: 40px;
  min-height: 42px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
}

.pagination__ellipsis {
  flex: 0 0 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
}

.pagination button[aria-current="page"] {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.pagination button[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
}

.future-list {
  display: grid;
  gap: 28px;
}

.future-card {
  min-height: 340px;
  padding: clamp(24px, 5vw, 50px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(24px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.future-card:nth-child(even) .future-card__media {
  order: -1;
}

.future-card__index {
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.future-card h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4.8vw, 48px);
}

.future-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  white-space: pre-line;
}

.future-card__media {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.future-card__media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(94, 58, 16, 0.12));
}

.campus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.43fr);
  align-items: start;
  gap: 30px;
}

.campus-list {
  display: grid;
  gap: 18px;
}

.campus-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.campus-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.campus-card__label {
  margin: 0 0 5px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.campus-card h2 {
  margin: 0;
  font-size: 25px;
}

.campus-card address {
  margin-top: 16px;
  color: var(--muted);
  font-style: normal;
}

.campus-card__links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.qr-panel {
  position: sticky;
  top: 100px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.qr-panel h2 {
  margin: 0;
  font-size: 22px;
}

.qr-panel p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.qr-panel img {
  width: min(100%, 250px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.page-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-map-card {
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-map-card:hover {
  border-color: rgba(223, 91, 27, 0.42);
  transform: translateY(-3px);
}

.page-map-card__number {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.page-map-card strong {
  margin-top: 20px;
  font-size: 20px;
}

.state-card {
  min-height: 220px;
  padding: 38px 24px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(164, 111, 39, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.state-card__inner {
  max-width: 480px;
}

.state-card__spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 15px;
  border: 3px solid rgba(223, 91, 27, 0.16);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.state-card h2,
.state-card h3 {
  margin: 0;
  font-size: 21px;
}

.state-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.state-card .button {
  margin-top: 18px;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #8b7a66;
  background:
    linear-gradient(135deg, rgba(245, 180, 55, 0.16), rgba(124, 158, 66, 0.1)),
    var(--paper-deep);
  font-size: 14px;
  text-align: center;
}

.page-dock {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}

.page-dock__inner {
  width: min(calc(100% - 32px), var(--content));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
}

.dock-link,
.dock-button {
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #6b5946;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.dock-link:hover,
.dock-button:hover {
  border-color: var(--line);
  color: var(--orange-dark);
  background: #fff;
}

.dock-button:disabled {
  border-color: transparent;
  color: #b8aa96;
  background: transparent;
  cursor: not-allowed;
}

.site-footer {
  padding: 32px 16px 38px;
  color: #776d61;
  background: #302b25;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 20px;
  list-style: none;
}

.site-footer__links a {
  color: #f6ead8;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.modal {
  width: min(calc(100% - 28px), 720px);
  max-height: min(86vh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(45, 30, 13, 0.32);
}

.modal::backdrop {
  background: rgba(40, 31, 21, 0.56);
  backdrop-filter: blur(5px);
}

.modal[open]:not(:modal) {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 100;
  transform: translate(-50%, -50%);
}

.modal__close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal__scroll {
  max-height: min(86vh, 820px);
  overflow-y: auto;
}

.modal__media {
  max-height: 420px;
  overflow: hidden;
  background: var(--paper-deep);
}

.modal__media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.modal__media--artwork img {
  object-fit: contain;
  background: #eee8da;
}

.modal__body {
  padding: clamp(24px, 5vw, 38px);
}

.modal__body h2 {
  padding-right: 42px;
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.3;
}

.modal__body p {
  margin: 14px 0 0;
  color: var(--muted);
  white-space: pre-line;
}

.detail-list {
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.detail-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  font-weight: 800;
}

.detail-list dd {
  margin: 4px 0 0;
  color: var(--muted);
  white-space: pre-line;
}

.qr-dialog {
  text-align: center;
}

.qr-dialog img {
  width: min(100%, 280px);
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: rgba(47, 42, 37, 0.94);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 9px;
  }

  .site-brand {
    width: 100%;
    padding-bottom: 8px;
  }

  .site-nav {
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding: 0 16px 9px;
  }

  .site-nav__link {
    padding: 7px 11px;
  }

  .filter-bar {
    position: static;
  }

  .page-hero__inner,
  .dynamic-hero {
    grid-template-columns: 1fr;
  }

  .page-hero__art {
    min-height: 150px;
  }

  .page-hero__art img {
    max-height: 210px;
  }

  .dynamic-hero {
    min-height: auto;
  }

  .dynamic-hero__art,
  .dynamic-hero__art img {
    min-height: 320px;
  }

  .teacher-grid,
  .artwork-grid,
  .card-grid,
  .page-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-layout {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .site-header__inner,
  .content-shell,
  .page-dock__inner {
    width: min(calc(100% - 24px), var(--content));
  }

  .site-brand {
    font-size: 18px;
  }

  .site-nav {
    width: calc(100% + 24px);
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .site-brand__mark {
    width: 31px;
    height: 31px;
  }

  .page-hero__inner {
    min-height: auto;
    gap: 26px;
    padding-block: 43px;
  }

  .page-hero h1,
  .dynamic-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .dynamic-hero {
    gap: 32px;
    padding-block: 42px 58px;
  }

  .dynamic-hero__art,
  .dynamic-hero__art img {
    min-height: 270px;
  }

  .section {
    padding-block: 52px;
  }

  .brand-card,
  .future-card {
    grid-template-columns: 1fr;
  }

  .brand-card:nth-child(even) .brand-card__media,
  .future-card:nth-child(even) .future-card__media {
    order: initial;
  }

  .brand-card__media {
    min-height: 220px;
  }

  .teacher-grid,
  .artwork-grid,
  .card-grid,
  .card-grid--two,
  .page-map-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card__idea {
    min-height: 0;
  }

  .filter-bar {
    align-items: stretch;
  }

  .field {
    width: 100%;
  }

  .filter-summary {
    width: 100%;
    margin-left: 0;
  }

  .activity-group__header,
  .campus-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .future-card {
    min-height: 0;
  }

  .page-dock__inner {
    width: 100%;
    min-height: 72px;
    padding-inline: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .page-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-bottom: 0;
    box-shadow: 0 -10px 32px rgba(84, 49, 12, 0.1);
  }

  .dock-link,
  .dock-button {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 4px;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }

  .dock-icon {
    font-size: 18px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
}

/* Mobile application shell: the public site is intentionally presented as an H5 / mini-program canvas. */
:root {
  --app-width: 520px;
  --app-header-height: 56px;
  --app-dock-height: 64px;
  --app-gutter: 14px;
  --shadow-app: 0 18px 54px rgba(78, 50, 18, 0.12);
}

html {
  background: #eee9df;
}

body {
  padding-bottom: calc(var(--app-dock-height) + 10px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 16% 8%, rgba(246, 174, 51, 0.14), transparent 22rem),
    radial-gradient(circle at 92% 65%, rgba(116, 143, 53, 0.1), transparent 24rem),
    #eee9df;
  font-size: 15px;
  line-height: 1.65;
}

.page-main,
.site-footer,
.site-header,
.page-dock {
  width: min(100%, var(--app-width));
  margin-inline: auto;
}

.page-main {
  min-height: calc(100dvh - var(--app-header-height) - var(--app-dock-height));
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-app);
}

.content-shell {
  width: 100%;
  margin-inline: auto;
}

.site-header {
  top: 0;
  border-bottom: 1px solid rgba(169, 119, 53, 0.12);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: none;
}

.site-header__inner,
.app-header__inner {
  width: 100%;
  min-height: calc(var(--app-header-height) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 4px;
}

.app-header__leading,
.app-header__more {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.app-header__leading:active,
.app-header__more:active {
  background: rgba(232, 168, 47, 0.12);
}

.app-header__brand-mark span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px 14px 9px 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  box-shadow: 0 6px 14px rgba(223, 91, 27, 0.2);
  font-size: 15px;
  font-weight: 850;
  transform: rotate(-4deg);
}

.app-header__back {
  font-family: Arial, sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.app-header__title {
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header__more {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.site-nav,
.site-brand {
  display: none;
}

.page-hero {
  padding: 14px var(--app-gutter) 0;
  border-bottom: 0;
  background: var(--paper);
}

.page-hero::before,
.page-hero::after {
  display: none;
}

.page-hero__inner {
  width: 100%;
  min-height: 178px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(215, 148, 47, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(145deg, #fff4d9, #fffaf0 55%, #eef3dc);
  box-shadow: 0 10px 26px rgba(112, 72, 21, 0.06);
}

.page-hero__inner--compact {
  min-height: 168px;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.page-hero h1,
.dynamic-hero h1 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.page-hero__lead,
.dynamic-hero__lead {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.page-hero__art {
  min-height: 104px;
  height: 104px;
}

.page-hero__art img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 18px;
  object-fit: contain;
  filter: drop-shadow(0 9px 13px rgba(116, 71, 15, 0.1));
}

.page-hero__art--soft img {
  object-fit: cover;
}

.page-hero[data-home-hero] {
  padding-top: 14px;
}

.dynamic-hero {
  position: relative;
  width: 100%;
  min-height: 286px;
  padding: 28px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(215, 148, 47, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(145deg, #fff1cf, #fff9e9 52%, #edf3d8);
  box-shadow: 0 12px 30px rgba(112, 72, 21, 0.07);
}

.dynamic-hero h1 {
  font-size: 38px;
}

.dynamic-hero__art {
  min-height: 188px;
  height: 188px;
}

.dynamic-hero__art::before {
  inset: 5% -8% -4% 1%;
}

.dynamic-hero__art img {
  min-height: 188px;
  height: 188px;
  box-shadow: 0 14px 24px rgba(94, 58, 16, 0.12);
}

.button-row {
  margin-top: 18px;
  gap: 8px;
}

.button {
  min-height: 46px;
  padding: 10px 17px;
}

.dynamic-hero .button-row {
  margin-top: 14px;
}

.dynamic-hero .button {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13px;
}

.section {
  padding: 30px var(--app-gutter);
}

.section--tint {
  border-block: 0;
  background: rgba(251, 243, 230, 0.48);
}

.section-heading,
.section-heading--left {
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
}

.section-heading h2 {
  font-size: 23px;
  line-height: 1.3;
}

.section-heading p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
}

.card-grid,
.card-grid--two,
.brand-grid,
.future-list,
.campus-list,
.activity-groups {
  grid-template-columns: 1fr;
  gap: 14px;
}

.content-card,
.teacher-card,
.artwork-card,
.future-card,
.campus-card,
.state-card,
.filter-bar,
.qr-panel {
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(94, 58, 16, 0.06);
}

.content-card__body {
  padding: 18px;
}

.content-card__body h2,
.content-card__body h3 {
  font-size: 19px;
}

.content-card__body p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.brand-card,
.future-card {
  min-height: 0;
  grid-template-columns: 1fr;
}

.brand-card:nth-child(even) .brand-card__media,
.future-card:nth-child(even) .future-card__media {
  order: initial;
}

.brand-card__media {
  min-height: 178px;
  height: 178px;
}

.brand-card__copy {
  padding: 20px;
}

.brand-card__copy h2,
.future-card h2 {
  font-size: 22px;
}

.brand-card__content,
.future-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.teacher-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.teacher-card {
  min-height: 148px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.teacher-card__number {
  top: 9px;
  left: 9px;
  min-width: 38px;
  padding: 3px 8px;
  font-size: 11px;
}

.teacher-card__avatar {
  height: 100%;
  aspect-ratio: auto;
}

.teacher-card__body {
  min-width: 0;
  padding: 16px;
}

.teacher-card h2 {
  font-size: 20px;
}

.teacher-card__idea,
.teacher-card__education {
  min-height: 0;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
}

.tag {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 11px;
}

.text-button {
  min-height: 44px;
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.filter-bar {
  top: calc(var(--app-header-height) + env(safe-area-inset-top, 0px));
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  background: rgba(255, 253, 248, 0.97);
}

.field {
  min-width: 0;
  width: 100%;
}

.select {
  min-height: 44px;
  padding-right: 28px;
  font-size: 13px;
}

.field--search {
  grid-column: 1 / -1;
}

.filter-bar .field--wide {
  grid-column: 1 / -1;
}

.search-input {
  min-height: 44px;
  font-size: 13px;
}

.filter-summary {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  font-size: 12px;
}

.category-tabs {
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
  padding-bottom: 10px;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 91, 27, 0.58) rgba(223, 91, 27, 0.1);
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
  display: block;
  height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(223, 91, 27, 0.1);
}

.category-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(223, 91, 27, 0.58);
}

.category-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  scroll-snap-align: start;
}

.category-tab:last-child {
  margin-right: 4px;
}

.category-tab[aria-pressed="true"] {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.activity-groups {
  gap: 28px;
}

.activity-group__header {
  margin-bottom: 12px;
}

.activity-group__header h2 {
  font-size: 21px;
}

.activity-group .content-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.activity-group .content-card__media {
  height: 100%;
  min-height: 142px;
  aspect-ratio: auto;
}

.activity-group .content-card__body {
  min-width: 0;
  padding: 14px;
}

.activity-group .content-card__body h3 {
  font-size: 17px;
}

.activity-group .content-card__body p:not(.activity-card__date) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.artwork-grid {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.artwork-card__image {
  aspect-ratio: 1 / 1;
}

.artwork-card__caption {
  padding: 12px 12px 14px;
}

.artwork-card__caption h2 {
  font-size: 14px;
  line-height: 1.5;
}

.artwork-card__meta {
  margin-top: 5px;
  font-size: 11px;
}

.pagination {
  margin-top: 22px;
}

.pagination button {
  min-width: 40px;
  min-height: 42px;
}

.future-card {
  padding: 20px;
  gap: 12px;
}

.future-card__media {
  min-height: 150px;
}

.future-card__media img {
  max-height: 180px;
}

.campus-layout {
  grid-template-columns: 1fr;
  gap: 14px;
}

.campus-card {
  padding: 20px;
}

.campus-card h2 {
  font-size: 21px;
}

.campus-card__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.campus-card__links .button {
  width: 100%;
  min-height: 52px;
  padding-inline: 20px;
  font-size: 14px;
  white-space: nowrap;
}

.campus-card__call {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.qr-panel {
  position: static;
  padding: 20px;
}

.qr-panel img {
  width: min(70%, 240px);
}

.page-map-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-map-card {
  min-height: 100px;
  padding: 15px;
  border-radius: 16px;
}

.page-map-card strong {
  margin-top: 10px;
  font-size: 16px;
}

.state-card {
  min-height: 164px;
  padding: 28px 18px;
}

.state-card h2,
.state-card h3 {
  font-size: 18px;
}

.page-dock {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 60;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(169, 119, 53, 0.14);
  border-bottom: 0;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 -8px 24px rgba(84, 49, 12, 0.08);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  overflow: visible;
}

.page-dock__inner {
  width: 100%;
  min-height: var(--app-dock-height);
  padding: 4px 6px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: visible;
}

.dock-link,
.dock-button {
  position: relative;
  isolation: isolate;
  width: auto;
  min-width: 0;
  min-height: 56px;
  padding: 4px 2px;
  flex: 1 1 0;
  flex-direction: column;
  gap: 1px;
  border-radius: 13px;
  color: #817565;
  font-size: 11px;
  line-height: 1.2;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.dock-link:hover,
.dock-button:hover {
  border-color: transparent;
  color: var(--orange-dark);
  background: rgba(232, 168, 47, 0.08);
}

.dock-link.is-active,
.dock-button.is-active,
.dock-link[aria-current="page"] {
  color: var(--orange-dark);
  border-color: rgba(223, 91, 27, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff0d6 100%);
  box-shadow:
    0 12px 24px rgba(173, 77, 17, 0.2),
    0 3px 8px rgba(116, 71, 15, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-13px);
}

.dock-icon {
  min-width: 24px;
  height: 27px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.dock-icon svg {
  width: 23px;
  height: 23px;
}

.dock-text {
  font-weight: 750;
}

.dock-link.is-active .dock-icon,
.dock-button.is-active .dock-icon,
.dock-link[aria-current="page"] .dock-icon {
  width: 34px;
  min-width: 34px;
  height: 30px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #f47a20, #dc4a0d);
  box-shadow: 0 6px 13px rgba(223, 91, 27, 0.3);
}

.dock-link.is-active .dock-icon svg,
.dock-button.is-active .dock-icon svg,
.dock-link[aria-current="page"] .dock-icon svg {
  width: 20px;
  height: 20px;
}

.dock-link.is-active .dock-text,
.dock-button.is-active .dock-text,
.dock-link[aria-current="page"] .dock-text {
  color: #a63d0d;
  font-weight: 850;
}

.site-footer {
  padding: 20px 16px 24px;
  color: #8b8175;
  background: var(--paper);
  border-top: 1px solid rgba(169, 119, 53, 0.1);
  font-size: 12px;
}

.site-footer__meta {
  margin-top: 3px !important;
  color: #aaa093;
}

.more-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, var(--app-width));
  max-height: min(78dvh, 680px);
  margin: auto auto 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border: 0;
  border-radius: 26px 26px 0 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 -20px 70px rgba(45, 30, 13, 0.24);
}

.more-sheet::backdrop {
  background: rgba(39, 31, 22, 0.46);
  backdrop-filter: blur(3px);
}

.more-sheet[open]:not(:modal) {
  z-index: 110;
}

.more-sheet__handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 9px;
  border-radius: 999px;
  background: #d7cec1;
}

.more-sheet__header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.more-sheet__eyebrow {
  margin: 0;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.more-sheet__header h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.more-sheet__close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}

.more-sheet__nav {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.more-sheet__link {
  min-height: 78px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  font-weight: 750;
  text-decoration: none;
}

.more-sheet__link.is-active {
  border-color: rgba(223, 91, 27, 0.38);
  background: rgba(232, 168, 47, 0.1);
}

.more-sheet__link-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--orange-dark);
  background: #fff1d8;
}

.more-sheet__empty {
  color: var(--muted);
}

.more-sheet__actions {
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
}

.more-sheet__action {
  min-height: 50px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #6b5946;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.more-sheet__action-icon {
  color: var(--orange-dark);
  font-size: 18px;
}

.modal {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, var(--app-width));
  max-height: min(88dvh, 820px);
  margin: auto auto 0;
  border-radius: 26px 26px 0 0;
}

.modal[open]:not(:modal) {
  inset: auto 0 0;
  transform: none;
}

.modal__scroll {
  max-height: min(88dvh, 820px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.modal__body {
  padding: 22px 20px 26px;
}

.modal__body h2 {
  font-size: 24px;
}

.modal__media,
.modal__media img {
  max-height: 46dvh;
}

/* Detail cards stay visually centered instead of behaving like a bottom sheet.
   Long content scrolls inside the floating card while safe margins remain visible. */
.modal.modal--teacher,
.modal.modal--brand,
.modal.modal--activity {
  inset: 50% auto auto 50%;
  width: min(calc(100% - 32px), 440px);
  max-width: min(calc(100% - 32px), 440px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  border-radius: 24px;
  transform: translate(-50%, -50%);
}

.modal.modal--teacher[open]:not(:modal),
.modal.modal--brand[open]:not(:modal),
.modal.modal--activity[open]:not(:modal) {
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.modal--teacher .modal__scroll,
.modal--brand .modal__scroll,
.modal--activity .modal__scroll {
  max-height: calc(100dvh - 32px);
  padding-bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep the artwork and its information together as one centered viewing group.
   Auto margins center the group on tall screens and collapse on short screens,
   where the whole group can scroll without pinning the information to the bottom. */
.modal.modal--artwork {
  inset: 0;
  width: min(100%, var(--app-width));
  max-width: min(100%, var(--app-width));
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 auto;
  border-radius: 0;
  background: #211b15;
  box-shadow: none;
}

.modal.modal--artwork::before {
  content: "作品欣赏";
  position: absolute;
  top: calc(17px + env(safe-area-inset-top, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 24px;
}

.modal.modal--artwork[open]:not(:modal) {
  inset: 0;
  margin: 0 auto;
}

.modal--artwork .modal__scroll {
  height: 100%;
  max-height: none;
  padding: calc(70px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal--artwork .modal__media,
.modal--artwork .modal__media img {
  max-height: none;
}

.modal--artwork .modal__media {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  margin-top: auto;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.artwork-preview__frame {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(56dvh, calc(100dvh - 280px));
  display: grid;
  place-items: center;
}

.artwork-preview__frame img {
  width: 100%;
  height: auto;
  max-height: min(56dvh, calc(100dvh - 280px));
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.24));
}

.artwork-preview__frame.has-source-crop {
  position: relative;
  width: 100%;
  width: min(100%, calc((100dvh - 280px) * 1.22));
  height: auto;
  max-height: min(56dvh, calc(100dvh - 280px));
  aspect-ratio: var(--artwork-frame-ratio);
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f2e8;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.artwork-preview__frame.has-source-crop img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
  object-fit: fill;
  filter: none;
  transform: translateY(var(--artwork-crop-offset));
}

.modal--artwork .modal__close {
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(24, 19, 14, 0.72);
  backdrop-filter: blur(10px);
}

.modal--artwork .modal__body {
  flex: 0 0 auto;
  width: 100%;
  max-height: none;
  margin-bottom: auto;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow: visible;
  border-radius: 22px;
  background: var(--paper);
}

.modal--artwork .modal__body h2 {
  padding-right: 0;
  font-size: clamp(20px, 5.5vw, 24px);
  line-height: 1.38;
}

.modal--artwork .detail-list {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal--artwork .detail-list div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf1;
}

.modal--artwork .detail-list dt {
  color: #8a7259;
  font-size: 12px;
  line-height: 1.4;
}

.modal--artwork .detail-list dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

@media (max-height: 620px) {
  .modal--artwork .modal__scroll {
    padding-top: calc(58px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .modal--artwork .modal__body {
    padding-top: 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .modal--artwork .detail-list {
    margin-top: 10px;
  }
}

.toast {
  right: auto;
  bottom: calc(var(--app-dock-height) + env(safe-area-inset-bottom, 0px) + 12px);
  left: 50%;
  width: min(calc(100% - 28px), 480px);
  max-width: none;
  text-align: center;
  transform: translate(-50%, 14px);
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

@media (min-width: 521px) {
  .site-header,
  .page-main,
  .site-footer {
    border-inline: 1px solid rgba(164, 111, 39, 0.12);
  }
}

@media (max-width: 380px) {
  :root {
    --app-gutter: 12px;
  }

  .dynamic-hero {
    min-height: 276px;
    grid-template-columns: minmax(0, 1fr) 92px;
    padding-inline: 18px;
  }

  .dynamic-hero h1 {
    font-size: 34px;
  }

  .dynamic-hero__art,
  .dynamic-hero__art img {
    min-height: 166px;
    height: 166px;
  }

  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) 84px;
    padding: 18px;
  }

  .page-hero h1 {
    font-size: 27px;
  }

  .page-hero__art {
    min-height: 84px;
    height: 84px;
  }

  .teacher-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .activity-group .content-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .campus-card__links,
  .more-sheet__actions {
    grid-template-columns: 1fr;
  }
}

/* Playful woven-fabric theme.
   Fine crosshatch gradients imitate cloth without bitmap downloads or costly filters. */
:root {
  --ink: #30253d;
  --muted: #685c70;
  --paper: #fffcf7;
  --paper-deep: #fff0e8;
  --orange: #c83d4b;
  --orange-dark: #962936;
  --gold: #f4b83f;
  --green: #2f785d;
  --line: rgba(104, 76, 100, 0.22);
  --fabric-coral: #c83d4b;
  --fabric-coral-dark: #a92e3c;
  --fabric-sun: #f4b83f;
  --fabric-sky: #cfe8ff;
  --fabric-mint: #ccebdc;
  --fabric-lilac: #e4dafb;
  --fabric-cream: #fff7e8;
  --fabric-line: rgba(107, 72, 93, 0.22);
  --fabric-weave:
    repeating-linear-gradient(0deg, rgba(70, 49, 73, 0.027) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 9px);
  --fabric-shadow:
    0 4px 0 rgba(119, 68, 79, 0.12),
    0 10px 20px rgba(68, 48, 75, 0.11),
    inset 0 2px 1px rgba(255, 255, 255, 0.72),
    inset 0 -2px 1px rgba(91, 56, 75, 0.04);
  --shadow-sm:
    0 4px 0 rgba(119, 68, 79, 0.08),
    0 12px 24px rgba(68, 48, 75, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-md:
    0 7px 0 rgba(119, 68, 79, 0.08),
    0 20px 42px rgba(68, 48, 75, 0.14),
    inset 0 2px 0 rgba(255, 255, 255, 0.82);
  --shadow-app: 0 18px 54px rgba(56, 43, 73, 0.16);
}

body {
  --page-accent: #c83d4b;
  --page-accent-deep: #8f2633;
  --page-soft: #ffd8df;
  --page-soft-2: #cfe8ff;
}

body[data-page="home"] {
  --page-accent: #c83d4b;
  --page-accent-deep: #8f2633;
  --page-soft: #ffe0d5;
  --page-soft-2: #fff0b8;
}

body[data-page="brand"] {
  --page-accent: #b63d6c;
  --page-accent-deep: #7f2449;
  --page-soft: #ffdce8;
  --page-soft-2: #fff0b8;
}

body[data-page="teachers"] {
  --page-accent: #2f6fb2;
  --page-accent-deep: #214f82;
  --page-soft: #dceeff;
  --page-soft-2: #e9e0fb;
}

body[data-page="activities"] {
  --page-accent: #2f785d;
  --page-accent-deep: #20513f;
  --page-soft: #dff4e8;
  --page-soft-2: #fff0b8;
}

body[data-page="artworks"] {
  --page-accent: #a94327;
  --page-accent-deep: #762b19;
  --page-soft: #ffe1d6;
  --page-soft-2: #cfe8ff;
}

body[data-page="future"] {
  --page-accent: #7653a6;
  --page-accent-deep: #503475;
  --page-soft: #eee4fb;
  --page-soft-2: #ffdce8;
}

body[data-page="contact"] {
  --page-accent: #2f747b;
  --page-accent-deep: #1f4f54;
  --page-soft: #d8f3ef;
  --page-soft-2: #dcecff;
}

html {
  background-color: #dceeff;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(244, 184, 63, 0.4), transparent 25rem),
    radial-gradient(circle at 92% 28%, rgba(116, 169, 226, 0.34), transparent 26rem),
    radial-gradient(circle at 18% 88%, rgba(112, 198, 161, 0.28), transparent 23rem),
    var(--fabric-weave);
}

body {
  background-color: #dceeff;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(244, 184, 63, 0.4), transparent 25rem),
    radial-gradient(circle at 92% 28%, rgba(116, 169, 226, 0.34), transparent 26rem),
    radial-gradient(circle at 18% 88%, rgba(112, 198, 161, 0.28), transparent 23rem),
    var(--fabric-weave);
}

.page-main {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 7%, var(--page-soft), transparent 23rem),
    radial-gradient(circle at 96% 44%, var(--page-soft-2), transparent 27rem),
    var(--fabric-weave);
}

.site-header,
.page-dock,
.site-footer {
  background-color: rgba(255, 252, 247, 0.96);
  background-image: var(--fabric-weave);
}

.site-header,
.page-dock {
  border-color: rgba(107, 72, 93, 0.16);
}

.page-hero {
  background: transparent;
}

.page-hero__inner,
.dynamic-hero {
  border-color: rgba(107, 72, 93, 0.2);
  background-color: var(--page-soft);
  background-image:
    var(--fabric-weave),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.86), transparent 32%),
    linear-gradient(145deg, var(--page-soft), #fffaf0 56%, var(--page-soft-2));
  box-shadow:
    0 5px 0 rgba(108, 67, 91, 0.07),
    0 15px 30px rgba(68, 48, 75, 0.11),
    inset 0 2px 1px rgba(255, 255, 255, 0.76),
    inset 0 -2px 1px rgba(93, 57, 80, 0.04);
}

.page-hero h1,
.dynamic-hero h1 {
  color: var(--ink);
}

.eyebrow,
.campus-card__label,
.activity-card__date {
  color: var(--page-accent-deep);
}

.section--tint {
  border-color: rgba(107, 72, 93, 0.12);
  background-color: var(--page-soft);
  background-image: var(--fabric-weave);
}

.card-grid > :nth-child(4n + 1),
.teacher-grid > :nth-child(4n + 1),
.artwork-grid > :nth-child(4n + 1),
.brand-grid > :nth-child(4n + 1),
.future-list > :nth-child(4n + 1),
.campus-list > :nth-child(4n + 1) {
  --card-tint: #fff0e8;
}

.card-grid > :nth-child(4n + 2),
.teacher-grid > :nth-child(4n + 2),
.artwork-grid > :nth-child(4n + 2),
.brand-grid > :nth-child(4n + 2),
.future-list > :nth-child(4n + 2),
.campus-list > :nth-child(4n + 2) {
  --card-tint: #eef7ff;
}

.card-grid > :nth-child(4n + 3),
.teacher-grid > :nth-child(4n + 3),
.artwork-grid > :nth-child(4n + 3),
.brand-grid > :nth-child(4n + 3),
.future-list > :nth-child(4n + 3),
.campus-list > :nth-child(4n + 3) {
  --card-tint: #eff8ed;
}

.card-grid > :nth-child(4n),
.teacher-grid > :nth-child(4n),
.artwork-grid > :nth-child(4n),
.brand-grid > :nth-child(4n),
.future-list > :nth-child(4n),
.campus-list > :nth-child(4n) {
  --card-tint: #f4efff;
}

:is(
  .content-card,
  .teacher-card,
  .artwork-card,
  .brand-card,
  .future-card,
  .campus-card,
  .filter-bar,
  .qr-panel,
  .state-card,
  .page-map-card,
  .more-sheet,
  .modal:not(.modal--artwork)
) {
  border-color: var(--fabric-line);
  background-color: var(--card-tint, rgba(255, 252, 247, 0.96));
  background-image: var(--fabric-weave);
  box-shadow: var(--shadow-sm);
}

.brand-detail--structured {
  min-height: 150px;
}

.brand-structured-content {
  display: grid;
  gap: 16px;
}

.brand-structured-intro {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(107, 72, 93, 0.16);
  border-radius: 16px;
  color: var(--muted);
  background-color: #fff8e1;
  background-image: var(--fabric-weave);
  font-size: 14px;
  line-height: 1.75;
}

.course-system-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.course-system-list__item {
  --course-card: #fff0e8;
  --course-accent: #a94327;
  --course-accent-rgb: 169, 67, 39;
  position: relative;
}

.course-system-list__item:nth-child(4n + 2) {
  --course-card: #eef7ff;
  --course-accent: #2f6fb2;
  --course-accent-rgb: 47, 111, 178;
}

.course-system-list__item:nth-child(4n + 3) {
  --course-card: #eff8ed;
  --course-accent: #2f785d;
  --course-accent-rgb: 47, 120, 93;
}

.course-system-list__item:nth-child(4n) {
  --course-card: #f4efff;
  --course-accent: #7653a6;
  --course-accent-rgb: 118, 83, 166;
}

.course-system-list__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  bottom: -14px;
  width: 2px;
  height: 15px;
  background: rgba(var(--course-accent-rgb), 0.45);
}

.course-system-card {
  padding: 15px;
  border: 1px solid rgba(var(--course-accent-rgb), 0.24);
  border-radius: 19px;
  background-color: var(--course-card);
  background-image: var(--fabric-weave);
  box-shadow:
    0 4px 0 rgba(var(--course-accent-rgb), 0.12),
    0 10px 20px rgba(68, 48, 75, 0.08),
    inset 0 2px 1px rgba(255, 255, 255, 0.75);
}

.course-system-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.course-system-card__number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background-color: var(--course-accent);
  background-image: var(--fabric-weave);
  box-shadow:
    0 3px 0 rgba(var(--course-accent-rgb), 0.65),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.course-system-card__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.course-system-card__age {
  padding: 5px 9px;
  border: 1px solid rgba(var(--course-accent-rgb), 0.24);
  border-radius: 999px;
  color: var(--course-accent);
  background: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.course-system-card__items {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.course-system-card__items li {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 1px dashed rgba(var(--course-accent-rgb), 0.27);
  border-radius: 13px;
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.74);
  background-image: var(--fabric-weave);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.course-system-card__items small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.course-system-card__empty,
.brand-structured-empty {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.social-care-gallery {
  display: grid;
  gap: 16px;
}

.social-care-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--fabric-line);
  border-radius: 20px;
  background-color: #fffaf3;
  background-image: var(--fabric-weave);
  box-shadow: var(--shadow-sm);
}

.social-care-card__media {
  min-height: 150px;
  padding: 6px;
  display: grid;
  place-items: center;
  background: #f4ecdf;
}

.social-care-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52dvh;
  border-radius: 15px;
  object-fit: contain;
}

.social-care-card__caption {
  margin: 0;
  padding: 13px 14px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-top: 1px solid rgba(107, 72, 93, 0.13);
}

.social-care-card__caption > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background-color: var(--fabric-coral);
  background-image: var(--fabric-weave);
  font-size: 11px;
  font-weight: 900;
}

.social-care-card__caption p {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.social-care-card--fallback .social-care-card__caption {
  grid-template-columns: 1fr;
}

.brand-structured-content--fallback .brand-structured-empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.modal--course-system .modal__body,
.modal--social-care .modal__body {
  padding: 20px 16px 22px;
}

.modal--artwork .modal__body,
.modal--artwork .detail-list div {
  border-color: var(--fabric-line);
  background-color: #fffbf4;
  background-image: var(--fabric-weave);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.75),
    0 8px 20px rgba(24, 18, 33, 0.16);
}

.teacher-card__number,
.more-sheet__link-mark {
  color: #fff;
  background-color: var(--page-accent-deep);
  background-image:
    var(--fabric-weave),
    linear-gradient(145deg, var(--page-accent), var(--page-accent-deep));
  box-shadow:
    0 3px 0 rgba(55, 32, 53, 0.18),
    0 7px 13px rgba(55, 32, 53, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.tag {
  border-color: rgba(107, 72, 93, 0.24);
  color: var(--page-accent-deep);
  background-color: var(--page-soft);
  background-image: var(--fabric-weave);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.select,
.search-input {
  border-color: rgba(107, 72, 93, 0.26);
  border-radius: 15px;
  color: var(--ink);
  background-color: #fffdf8;
  background-image: var(--fabric-weave);
  box-shadow:
    inset 0 3px 7px rgba(74, 52, 79, 0.07),
    0 3px 0 rgba(119, 68, 79, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.select:focus-visible,
.search-input:focus-visible,
.content-card__button:focus-visible,
.artwork-card__button:focus-visible,
.brand-card--interactive:focus-visible {
  border-color: #6d49b7;
  outline: 3px solid rgba(109, 73, 183, 0.32);
  outline-offset: 2px;
}

:focus-visible {
  outline-color: #6d49b7;
}

.button,
.category-tab,
.pagination button,
.app-header__leading,
.app-header__more,
.modal__close,
.more-sheet__close,
.more-sheet__action,
.more-sheet__link {
  border-color: var(--fabric-line);
  color: var(--ink);
  background-color: var(--fabric-cream);
  background-image:
    var(--fabric-weave),
    linear-gradient(145deg, #fffdf7, var(--fabric-cream));
  box-shadow: var(--fabric-shadow);
}

.dynamic-hero .button {
  min-height: 44px;
}

.button--primary,
.button--primary:hover,
.category-tab[aria-pressed="true"],
.pagination button[aria-current="page"] {
  border-color: #a92e3c;
  color: #fff;
  background-color: var(--fabric-coral);
  background-image:
    var(--fabric-weave),
    linear-gradient(145deg, var(--fabric-coral), var(--fabric-coral-dark));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(74, 20, 31, 0.22),
    0 4px 0 #8f2633,
    0 10px 18px rgba(126, 39, 59, 0.21);
}

.button--secondary,
.campus-card__map {
  border-color: rgba(47, 111, 178, 0.34);
  color: #244d78;
  background-color: var(--fabric-sky);
  background-image:
    var(--fabric-weave),
    linear-gradient(145deg, #e8f5ff, var(--fabric-sky));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.66),
    inset 0 -2px 0 rgba(47, 111, 178, 0.08),
    0 4px 0 rgba(47, 111, 178, 0.14),
    0 9px 17px rgba(47, 89, 132, 0.13);
}

.button--quiet {
  border-color: rgba(47, 120, 93, 0.3);
  color: #285f4b;
  background-color: var(--fabric-mint);
  background-image: var(--fabric-weave);
}

.text-button,
.content-card__action {
  min-height: 40px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(153, 105, 30, 0.28);
  border-radius: 13px;
  color: #70461f;
  background-color: #fff0b8;
  background-image:
    var(--fabric-weave),
    linear-gradient(145deg, #fff8d8, #ffe38b);
  box-shadow:
    0 3px 0 rgba(143, 83, 29, 0.13),
    0 7px 13px rgba(115, 78, 31, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.7);
  font-weight: 800;
  text-decoration: none;
}

.text-button {
  min-height: 44px;
}

.content-card__action {
  min-height: 36px;
}

.category-tab:nth-child(4n + 1) {
  border-color: rgba(158, 106, 24, 0.26);
  color: #624819;
  background-color: #fff0b8;
}

.category-tab:nth-child(4n + 2) {
  border-color: rgba(47, 111, 178, 0.26);
  color: #28547f;
  background-color: var(--fabric-sky);
}

.category-tab:nth-child(4n + 3) {
  border-color: rgba(47, 120, 93, 0.26);
  color: #285f4b;
  background-color: var(--fabric-mint);
}

.category-tab:nth-child(4n) {
  border-color: rgba(118, 83, 166, 0.26);
  color: #5d4087;
  background-color: var(--fabric-lilac);
}

.category-tab[aria-pressed="true"] {
  border-color: #a92e3c;
  color: #fff;
  background-color: var(--fabric-coral);
}

.category-tabs {
  scrollbar-color: rgba(200, 61, 75, 0.68) rgba(200, 61, 75, 0.12);
}

.category-tabs::-webkit-scrollbar-track {
  background: rgba(200, 61, 75, 0.12);
}

.category-tabs::-webkit-scrollbar-thumb {
  background: rgba(200, 61, 75, 0.68);
}

.more-sheet__link.is-active {
  border-color: rgba(200, 61, 75, 0.42);
  color: var(--orange-dark);
  background-color: #ffe5e9;
  background-image: var(--fabric-weave);
}

.dock-link {
  --dock-soft: #fff0b8;
  --dock-ink: #79511e;
}

.dock-link:nth-child(2) {
  --dock-soft: #dceeff;
  --dock-ink: #28547f;
}

.dock-link:nth-child(3) {
  --dock-soft: #ffe0d8;
  --dock-ink: #8c3825;
}

.dock-link:nth-child(4) {
  --dock-soft: #dff4e8;
  --dock-ink: #285f4b;
}

.dock-link:nth-child(5) {
  --dock-soft: #e9e0fb;
  --dock-ink: #5d4087;
}

.dock-link:not([aria-current="page"]) .dock-icon {
  width: 30px;
  min-width: 30px;
  height: 28px;
  border-radius: 10px;
  color: var(--dock-ink);
  background-color: var(--dock-soft);
  background-image: var(--fabric-weave);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    0 3px 0 rgba(81, 56, 77, 0.08);
}

.dock-link.is-active,
.dock-link[aria-current="page"] {
  border-color: rgba(166, 90, 39, 0.28);
  color: #6f3f1e;
  background-color: #fff0b8;
  background-image:
    var(--fabric-weave),
    linear-gradient(180deg, #fff9d9, #ffd982);
  box-shadow:
    0 7px 0 rgba(143, 83, 29, 0.13),
    0 14px 24px rgba(94, 58, 46, 0.17),
    inset 0 2px 1px rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(157, 96, 36, 0.08);
  transform: translateY(-13px);
}

.dock-link.is-active .dock-icon,
.dock-link[aria-current="page"] .dock-icon {
  color: #fff;
  background-color: var(--fabric-coral);
  background-image:
    var(--fabric-weave),
    linear-gradient(145deg, var(--fabric-coral), var(--fabric-coral-dark));
  box-shadow:
    0 4px 0 rgba(103, 28, 43, 0.2),
    0 8px 14px rgba(156, 44, 62, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dock-link.is-active .dock-text,
.dock-link[aria-current="page"] .dock-text {
  color: #713d1c;
}

:is(
  .button,
  .category-tab,
  .pagination button:not([disabled]),
  .app-header__leading,
  .app-header__more,
  .modal__close,
  .more-sheet__close,
  .more-sheet__action,
  .more-sheet__link,
  .text-button
):active {
  transform: translateY(2px) scale(0.985);
  box-shadow:
    0 1px 0 rgba(107, 58, 70, 0.15),
    inset 0 3px 6px rgba(77, 38, 58, 0.1);
}

.dock-link:not([aria-current="page"]):active {
  transform: translateY(1px) scale(0.985);
}

.dock-link[aria-current="page"]:active {
  transform: translateY(-11px) scale(0.985);
}

.content-card__button:active,
.artwork-card__button:active {
  opacity: 0.94;
  transform: scale(0.995);
}

.brand-card--interactive:active {
  transform: translateY(1px) scale(0.995);
}

.button[disabled],
.pagination button[disabled] {
  border-color: #d4cbd2;
  color: #695e6d;
  background-color: #ede5e7;
  background-image: var(--fabric-weave);
  box-shadow: none;
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  :is(
    .button,
    .category-tab,
    .pagination button:not([disabled]),
    .app-header__leading,
    .app-header__more,
    .modal__close,
    .more-sheet__close,
    .more-sheet__action,
    .more-sheet__link,
    .text-button
  ):hover {
    transform: translateY(-2px);
    filter: saturate(1.04);
  }

  .dock-link:not([aria-current="page"]):hover {
    background: rgba(255, 255, 255, 0.56);
    transform: translateY(-1px);
  }

  .dock-link[aria-current="page"]:hover {
    transform: translateY(-14px);
  }
}

@media (prefers-contrast: more) {
  .page-main,
  .page-hero__inner,
  .dynamic-hero,
  :is(
    .content-card,
    .teacher-card,
    .artwork-card,
    .brand-card,
    .future-card,
    .campus-card,
    .filter-bar,
    .qr-panel,
    .button,
    .category-tab,
    .pagination button
  ) {
    background-image: none;
  }

  :is(.button, .category-tab, .pagination button, .select, .search-input) {
    border-color: currentColor;
  }
}

@media (forced-colors: active) {
  :is(
    .button,
    .category-tab,
    .pagination button,
    .app-header__leading,
    .app-header__more,
    .modal__close,
    .more-sheet__close,
    .more-sheet__action,
    .more-sheet__link,
    .text-button,
    .dock-link
  ) {
    border: 1px solid ButtonText;
    color: ButtonText;
    background: ButtonFace;
    box-shadow: none;
  }

  :is(.category-tab[aria-pressed="true"], .pagination button[aria-current="page"], .dock-link[aria-current="page"]) {
    outline: 3px solid Highlight;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Activity category galleries: image-only cards with a full-image lightbox. */
.activity-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 24px);
}

.activity-gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.activity-gallery__item:focus-visible {
  outline: 3px solid rgba(200, 61, 75, 0.38);
  outline-offset: 3px;
}

.activity-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 6px);
  object-fit: contain;
  transition: transform 180ms ease;
}

.activity-gallery__item:hover img {
  transform: scale(1.025);
}

.modal.modal--activity-image,
.modal.modal--activity-image[open]:not(:modal) {
  inset: 50% auto auto 50%;
  width: min(calc(100% - 24px), 960px);
  max-width: min(calc(100% - 24px), 960px);
  max-height: calc(100dvh - 24px);
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.modal--activity-image .modal__scroll {
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: visible;
}

.modal--activity-image .modal__body {
  display: none;
}

.modal--activity-image .modal__media,
.modal--activity-image .modal__media img {
  max-height: calc(100dvh - 24px);
}

.modal--activity-image .modal__media {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.modal--activity-image .modal__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(22, 15, 10, 0.45);
}

.modal--activity-image .modal__close {
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 720px) {
  .activity-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .activity-gallery__item {
    padding: 4px;
    border-radius: 18px;
  }

  .activity-gallery__item img {
    border-radius: 14px;
  }
}
