:root {
  --navy: #5b3a12;
  --navy-deep: #fff8e8;
  --navy-soft: #f7e7c1;
  --purple: #8f641c;
  --purple-bright: #c8942f;
  --ivory: #fffaf0;
  --ivory-deep: #f3e2bc;
  --gold: #b77b16;
  --gold-light: #dcae43;
  --brand: #9a4b08;
  --text: #583817;
  --muted: #806844;
  --muted-dark: #8f7650;
  --line: rgba(154, 99, 18, 0.32);
  --cool-line: rgba(154, 99, 18, 0.2);
  --header-h: 98px;
}

body,
.inner-page {
  color: var(--text);
  background: #fff8e8;
}

::selection {
  color: #4d2f0f;
  background: rgba(224, 176, 66, 0.42);
}

.site-header,
.inner-page .site-header,
.site-header.scrolled {
  color: #583817;
  background: rgba(255, 250, 240, 0.95);
  border-color: rgba(183, 123, 22, 0.34);
  box-shadow: 0 7px 28px rgba(122, 76, 15, 0.08);
  backdrop-filter: blur(16px);
}

.site-header {
  grid-template-columns: 270px 1fr auto;
  gap: 24px;
}

.site-header.scrolled {
  height: 82px;
}

.brand {
  width: 270px;
  height: 88px;
  align-items: flex-start;
}

.brand img {
  width: 258px;
  max-height: 82px;
  filter: drop-shadow(0 3px 8px rgba(126, 77, 10, 0.13));
}

.site-nav {
  gap: clamp(12px, 1.45vw, 25px);
}

.site-nav a {
  color: #6b471a;
  font-size: 12px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #a4680d;
}

.site-nav a::after {
  background: #c48a23;
}

.header-cta,
.button-royal {
  border-color: #b57813;
  color: #fffaf0;
  background: linear-gradient(135deg, #d7a638, #9c620c);
  box-shadow: 0 10px 25px rgba(148, 91, 10, 0.16);
}

.header-cta:hover,
.button-royal:hover {
  color: #583817;
  background: #fff3d4;
}

.prototype-flag {
  color: #fffaf0;
  background: #a76b0e;
}

.section-label,
.page-kicker {
  color: #a76b0e;
}

.hero {
  color: #583817;
  background-color: #f5dfaa;
  background-blend-mode: normal;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 250, 238, 0.98) 0%, rgba(255, 247, 226, 0.94) 36%, rgba(250, 226, 172, 0.7) 49%, rgba(232, 190, 98, 0.26) 63%, rgba(220, 173, 76, 0.04) 78%, transparent 100%),
    linear-gradient(0deg, rgba(255, 246, 224, 0.28), transparent 44%);
}

.hero h1,
.hero-lead {
  color: #573513;
  text-shadow: none;
}

.hero-year {
  color: #8a5a17;
  font-weight: 800;
  background: rgba(255, 248, 232, 0.78);
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(122, 76, 15, 0.08);
}

.hero-lead {
  display: block;
  width: fit-content;
  max-width: min(760px, 100%);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 248, 232, 0.84);
  color: #5a3813;
  font-weight: 500;
  line-height: 1.9;
  box-shadow: 0 10px 24px rgba(122, 76, 15, 0.10);
}

.hero h1 em,
.promo h2 em,
.adjudicators h2 em,
.venues h2 em {
  color: #a4670c;
}

.deadline-grid {
  border-color: rgba(154, 99, 18, 0.34);
  background: rgba(255, 250, 239, 0.86);
  box-shadow: 0 18px 50px rgba(132, 82, 12, 0.1);
}

.deadline-grid span,
.scroll-cue {
  color: #80633d;
}

.deadline-grid strong {
  color: #6b430f;
}

.deadline-grid small,
.hero-year {
  color: #a76b0e;
}

.button {
  border-color: #b77b16;
  color: #633f12;
}

.button-gold {
  color: #4f300b;
  border-color: #d5a139;
  background: linear-gradient(135deg, #f4d984, #d6a435);
  box-shadow: 0 12px 30px rgba(135, 84, 11, 0.13);
}

.button-gold:hover,
.button-outline:hover,
.button-purple:hover {
  color: #5a3810;
  border-color: #b77b16;
  background: #fffaf0;
}

.button-purple {
  color: #fffaf0;
  border-color: #b77b16;
  background: linear-gradient(135deg, #c58c23, #8f5b0f);
}

.text-link {
  color: #996009;
}

.event-strip {
  color: #583817;
  border-color: var(--line);
  background: linear-gradient(120deg, #f6e4b9, #fff8e9 55%, #f3d99f);
}

.event-intro p:last-child,
.event-date p,
.promo-heading > p,
.promo-video-copy p,
.section-heading > p:last-child,
.steps p,
.category-heading > p,
.category-detail p,
.adjudicator-intro > div:last-child > p,
.gallery-heading > div:last-child > p,
.trust-facts span,
.venue-content > div:first-child > p:last-child,
.venue-cards p {
  color: #806844;
}

.date-number,
.event-date > div > span,
.promo-video-copy > span,
.promo-poster small,
.steps span,
.category-fee,
.trust-facts strong,
.venue-cards span,
.venue-cards a {
  color: #a66b10;
}

.promo {
  color: #583817;
  background:
    radial-gradient(circle at 83% 12%, rgba(218, 173, 72, 0.22), transparent 31%),
    linear-gradient(145deg, #fff9ec, #f7e7c3 54%, #fffaf0);
}

.promo-video-card,
.promo-poster {
  color: #583817;
  border-color: rgba(154, 99, 18, 0.3);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 20px 60px rgba(123, 76, 13, 0.09);
}

.promo-video-shell,
.promo-video-shell video {
  background: #e6c469;
}

.promo-video-card {
  grid-template-columns: 320px minmax(250px, 1fr);
  min-height: 520px;
}

.promo-video-shell {
  height: auto;
  min-height: 520px;
  padding: 18px;
  background: linear-gradient(145deg, #d7a63a, #f3dda2);
}

.promo-video-shell video {
  width: min(100%, 280px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: 0 16px 36px rgba(94, 53, 6, 0.2);
}

.promo-video-copy h3 {
  color: #5a3812;
}

.promo-poster em {
  color: #8a704b;
}

.registration {
  color: #583817;
  background:
    radial-gradient(circle at 84% 10%, rgba(213, 163, 54, 0.18), transparent 29%),
    radial-gradient(circle at 8% 55%, rgba(224, 183, 91, 0.15), transparent 24%),
    #fffaf0;
}

.format-tabs {
  border-color: #b77b16;
  background: #fff5dc;
}

.format-tabs button {
  color: #80633d;
}

.format-tabs button[aria-selected="true"] {
  color: #fffaf0;
  background: linear-gradient(135deg, #d0a03a, #95600f);
  box-shadow: inset 0 -3px 0 #f4dc8c;
}

.format-panel {
  color: #583817;
  border-color: #c08923;
  background: #fffdf8;
  box-shadow: 0 25px 70px rgba(133, 82, 11, 0.12);
}

.venue-list,
.venue-list div + div {
  border-color: rgba(132, 83, 14, 0.18);
}

.category-rail {
  border-color: var(--line);
  background: rgba(255, 248, 232, 0.72);
}

.category {
  color: #806844;
}

.category:hover,
.category.active {
  color: #7b4b08;
  background: rgba(211, 163, 59, 0.24);
}

.category-detail {
  color: #583817;
  border-color: rgba(154, 99, 18, 0.25);
  background: #f7e8c8;
}

.category-copy li {
  color: #765d39;
}

.category-price a {
  color: #97600b;
}

.adjudicators {
  color: #583817;
  background:
    radial-gradient(circle at 18% 18%, rgba(215, 169, 65, 0.22), transparent 28%),
    #f7e7c2;
}

.judge-card {
  color: #583817;
  border-color: rgba(154, 99, 18, 0.24);
  background: #fffaf0;
  box-shadow: 0 12px 35px rgba(118, 72, 11, 0.08);
}

.judge-card:hover {
  box-shadow: 0 24px 55px rgba(118, 72, 11, 0.14);
}

.judge-card-image {
  background: #f1dfb8;
}

.judge-card-image::after {
  background: linear-gradient(transparent, rgba(122, 76, 13, 0.7));
}

.judge-card p {
  color: #806844;
}

.gallery {
  color: #583817;
  background: #fffaf0;
}

.gallery-item {
  color: #fff8e8;
  background: #e5c77f;
  border: 1px solid rgba(154, 99, 18, 0.2);
}

.gallery-item::after {
  background: linear-gradient(transparent, rgba(97, 57, 9, 0.82));
}

.gallery-item span,
.gallery-item strong {
  color: #fff9eb;
}

.gallery-live img {
  object-position: center top;
}

.gallery-judge-portraits img {
  object-position: center top;
}

.trust {
  color: #583817;
  background: linear-gradient(145deg, #eed18a, #fff5db 42%, #f4dfa9 100%);
}

.venues {
  color: #583817;
  background: #f4dfab;
}

.venue-visual {
  filter: sepia(0.12) saturate(0.96) brightness(1.03) contrast(1.04);
}

.venue-visual::after {
  background:
    linear-gradient(90deg, rgba(255, 250, 239, 0.98) 0%, rgba(255, 243, 213, 0.86) 41%, rgba(227, 190, 105, 0.2) 68%, rgba(227, 190, 105, 0.03) 100%),
    linear-gradient(0deg, rgba(255, 246, 224, 0.3), transparent);
}

.venues h2 {
  text-shadow: none;
}

.venue-cards article {
  border-color: rgba(154, 99, 18, 0.32);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 16px 40px rgba(116, 70, 9, 0.09);
}

.site-footer {
  color: #583817;
  border-color: rgba(154, 99, 18, 0.3);
  background: linear-gradient(135deg, #f1d591, #fff4d8 43%, #e8c36d);
}

.footer-brand p,
.footer-grid a,
.footer-grid p,
.footer-grid small {
  color: #75582f;
}

.footer-grid > div:not(.footer-brand) > span,
.footer-grid a:hover {
  color: #925808;
}

dialog::backdrop {
  background: rgba(91, 55, 10, 0.74);
}

.registration-dialog,
.judge-dialog,
.gallery-dialog {
  color: #583817;
  border-color: #b77b16;
  background: #fffaf0;
  box-shadow: 0 30px 100px rgba(93, 54, 7, 0.34);
}

.registration-dialog > p:not(.section-label),
.judge-dialog p:not(.section-label),
.gallery-dialog p {
  color: #806844;
}

.dialog-close,
.dialog-close.light {
  color: #6a430f;
  border-color: rgba(126, 78, 10, 0.32);
  background: rgba(255, 249, 234, 0.86);
}

.dialog-options a {
  color: #583817;
}

.dialog-options a:hover {
  color: #fffaf0;
  background: #9a620e;
}

.judge-dialog > img,
.gallery-dialog img {
  background: #f0dcae;
}

.inner-page .page-hero {
  color: #583817;
  background:
    radial-gradient(circle at 78% 24%, rgba(207, 153, 38, 0.24), transparent 29%),
    radial-gradient(circle at 11% 80%, rgba(238, 202, 119, 0.38), transparent 31%),
    linear-gradient(135deg, #fffaf0 5%, #f7e5bc 58%, #eed18b);
}

.page-hero::before {
  opacity: 0.56;
  filter: sepia(0.12) saturate(0.96) brightness(1.04) contrast(1.04);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.25) 26%, #000 48%, #000 100%);
}

.page-hero h1 {
  color: #583817;
}

.page-hero h1 em {
  color: #a5680c;
}

.page-hero-lead {
  color: #765a35;
}

.about-hero-note {
  display: inline-block;
  max-width: 940px;
  padding: 16px 20px;
  border: 1px solid rgba(176, 131, 60, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 253, 246, 0.94), rgba(249, 232, 190, 0.88));
  color: #5a3a1e;
  box-shadow: 0 16px 40px rgba(120, 87, 39, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.page-section,
.page-section.deep,
.page-section.light {
  color: #583817;
  background: #fffaf0;
}

.page-section.deep {
  background:
    radial-gradient(circle at 92% 14%, rgba(214, 168, 66, 0.18), transparent 28%),
    #f7e7c2;
}

.page-section.light,
.honour-archive {
  background: #fffaf0;
}

.page-heading > p,
.light .page-heading > p,
.light .page-copy,
.light .page-copy p,
.profile-body,
.about-overview-copy p,
.scholarship-story p,
.mission-rail p,
.founder-panel p,
.leadership-heading > p:last-child,
.profile-language p,
.scholarship-stats span,
.status-panel p,
.contact-strip p,
.scholarship-card p,
.scholarship-card li,
.history-event p {
  color: #806844;
}

.judge-profile-list,
.judge-profile,
.mission-rail,
.leadership-profile,
.profile-language,
.scholarship-stats,
.contact-strip {
  border-color: rgba(154, 99, 18, 0.3);
}

.judge-profile summary h2,
.profile-body h3 {
  color: #65400f;
}

.judge-profile summary p {
  color: #806844;
}

.judge-profile summary img,
.founder-panel img,
.leadership-photo img {
  background: #f0ddb0;
  filter: saturate(0.94) sepia(0.06);
}

.profile-toggle {
  border-color: rgba(154, 99, 18, 0.38);
  background: rgba(255, 250, 240, 0.7);
}

.profile-toggle::before,
.profile-toggle::after {
  background: #a76b0e;
}

.history-event::before {
  background: #fffaf0;
}

.scholarship-card {
  border-color: rgba(154, 99, 18, 0.24);
  background: #fffdf8;
  box-shadow: 0 14px 38px rgba(117, 70, 8, 0.07);
}

.status-panel {
  color: #583817;
  border-color: #b77b16;
  background: linear-gradient(135deg, #efd590, #fff7e4);
}

.honour-welcome {
  background: linear-gradient(135deg, #f1d998, #fff8e8 54%, #f5e1ad);
}

.honour-overview,
.honour-record {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 84px;
  align-items: center;
}

.honour-overview h2,
.honour-record h2 {
  margin: 0;
  font: 500 clamp(42px, 5vw, 66px)/1.25 var(--serif);
}

.honour-overview p,
.honour-record p {
  margin: 0 0 20px;
  color: #755b36;
}

.honour-overview .button,
.honour-record .button {
  margin-top: 10px;
}

.honour-archive {
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 181, 83, 0.16), transparent 28%),
    #fffaf0 !important;
}

.historic-profile summary img {
  object-position: center top;
}

.historic-profile summary {
  border-inline: 1px solid transparent;
  transition: background 180ms, border-color 180ms;
}

.historic-profile[open] summary,
.historic-profile summary:hover {
  border-color: rgba(154, 99, 18, 0.18);
  background: rgba(246, 226, 183, 0.42);
}

.honour-closing {
  background: linear-gradient(135deg, #e8c778, #fff5dc) !important;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 210px 1fr auto;
    gap: 16px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 11px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 70px;
  }

  .site-header,
  .inner-page .site-header {
    grid-template-columns: 1fr auto;
    background: rgba(255, 250, 240, 0.97);
  }

  .menu-toggle {
    color: #6b430f;
    border-color: rgba(154, 99, 18, 0.36);
  }

  .site-nav {
    gap: 0;
    background: rgba(255, 250, 240, 0.99);
    border-color: rgba(154, 99, 18, 0.3);
  }

  .site-nav a {
    color: #674214;
    border-color: rgba(154, 99, 18, 0.16);
    font-size: 13px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 250, 239, 0.97) 0%, rgba(255, 242, 207, 0.88) 47%, rgba(231, 190, 99, 0.24) 78%, rgba(219, 169, 66, 0.05) 100%),
      linear-gradient(0deg, rgba(255, 244, 217, 0.42), transparent);
  }

  .honour-overview,
  .honour-record {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 590px) {
  .honour-overview h2,
  .honour-record h2 {
    font-size: 40px;
  }
}

@media (max-width: 1120px) {
  .promo-video-card {
    grid-template-columns: 300px minmax(240px, 1fr);
    min-height: 500px;
  }

  .promo-video-shell {
    height: auto;
    min-height: 500px;
  }
}

@media (max-width: 860px) {
  .hero {
    background-position: 70% center;
  }

  .promo-video-card {
    grid-template-columns: 290px minmax(220px, 1fr);
    min-height: 480px;
  }

  .promo-video-shell {
    height: auto;
    min-height: 480px;
  }
}

@media (max-width: 590px) {
  .promo-video-card {
    display: block;
  }

  .promo-video-shell {
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  .category-copy ul {
    margin-top: 14px;
  }
}


/* v1.1.8 — official sonic theme, 2013 short film and historical archives */
.sonic-theme-strip {
  padding: 34px 0;
  border-block: 1px solid rgba(154, 99, 18, 0.24);
  background:
    radial-gradient(circle at 88% 20%, rgba(218, 173, 72, 0.18), transparent 28%),
    linear-gradient(135deg, #fffaf0, #f4dfae);
}

.sonic-theme-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 46px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid rgba(154, 99, 18, 0.3);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 48px rgba(122, 76, 15, 0.09);
}

.sonic-theme-copy h2 {
  margin: 0 0 10px;
  color: #583817;
  font: 500 clamp(30px, 3vw, 43px)/1.3 var(--serif);
  letter-spacing: 0.035em;
}

.sonic-theme-copy > p:not(.section-label) {
  max-width: 680px;
  margin: 0 0 9px;
  color: #755b36;
}

.sonic-theme-copy > span {
  color: #9a620e;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.sonic-theme-player {
  padding: 22px;
  border-left: 1px solid rgba(154, 99, 18, 0.25);
}

.sonic-theme-player audio {
  width: 100%;
  accent-color: #a66b10;
}

.sonic-theme-player small {
  display: block;
  margin-top: 9px;
  color: #806844;
  font-size: 11px;
  line-height: 1.6;
}

.short-film-section {
  background:
    radial-gradient(circle at 85% 14%, rgba(219, 174, 73, 0.18), transparent 28%),
    linear-gradient(145deg, #f8e8c3, #fffaf0 58%, #f1d79d) !important;
  color: #583817;
}

.short-film-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 62px;
  align-items: center;
}

.short-film-copy h2 {
  margin: 0 0 22px;
  color: #583817;
  font: 500 clamp(38px, 4.5vw, 58px)/1.28 var(--serif);
  letter-spacing: 0.035em;
}

.short-film-copy p {
  margin: 0 0 17px;
  color: #755b36;
}

.short-film-player {
  padding: 14px;
  border: 1px solid rgba(154, 99, 18, 0.32);
  background: #fff8e8;
  box-shadow: 0 24px 60px rgba(122, 76, 15, 0.13);
}

.short-film-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2d1a08;
}

.short-film-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.short-film-player small {
  display: block;
  padding: 10px 4px 2px;
  color: #806844;
  font-size: 11px;
}


.historical-adjudicators-section {
  color: #583817;
  background:
    radial-gradient(circle at 88% 10%, rgba(218, 173, 72, 0.16), transparent 28%),
    #fff8e8 !important;
}

.historical-adjudicators-heading {
  grid-template-columns: 1fr;
  margin-bottom: 42px;
}

.historical-adjudicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.historical-adjudicator-card {
  overflow: hidden;
  border: 1px solid rgba(154, 99, 18, 0.28);
  background: #fffaf0;
  box-shadow: 0 18px 46px rgba(122, 76, 15, 0.08);
}

.historical-adjudicator-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.94);
}

.historical-adjudicator-card > div {
  padding: 24px;
}

.historical-adjudicator-card span {
  color: #a66b10;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.historical-adjudicator-card h3 {
  margin: 8px 0 8px;
  color: #583817;
  font: 500 25px/1.35 var(--serif);
}

.historical-adjudicator-card p {
  margin: 0;
  color: #755b36;
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 960px) {
  .sonic-theme-card,
  .short-film-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sonic-theme-player {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(154, 99, 18, 0.25);
  }

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

@media (max-width: 590px) {
  .sonic-theme-strip {
    padding: 22px 0;
  }

  .sonic-theme-card {
    padding: 24px 20px;
  }

  .sonic-theme-copy h2 {
    font-size: 31px;
  }

  .short-film-layout {
    gap: 26px;
  }

  .short-film-copy h2 {
    font-size: 38px;
  }

  .short-film-player {
    padding: 8px;
  }

  .historical-adjudicator-grid {
    grid-template-columns: 1fr;
  }

  .historical-adjudicator-card img {
    height: 270px;
  }
}


/* v1.2.4 historical images from the former website and archived materials */
.scholarship-history {
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid rgba(154, 99, 18, 0.26);
}

.scholarship-history-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(300px, 1fr);
  column-gap: 56px;
  align-items: end;
  margin-bottom: 28px;
}

.scholarship-history-heading .section-label {
  grid-column: 1 / -1;
}

.scholarship-history-heading h3 {
  margin: 0;
  color: #5b3713;
  font: 500 clamp(34px, 3.2vw, 48px)/1.25 var(--serif);
  letter-spacing: 0.04em;
}

.scholarship-history-heading > p:last-child {
  margin: 0 0 5px;
  color: #755b36;
}

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

.scholarship-history-grid figure,
.historical-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 99, 18, 0.24);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 18px 42px rgba(122, 76, 15, 0.08);
}

.scholarship-history-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.scholarship-history-grid figure:nth-child(1) img,
.scholarship-history-grid figure:nth-child(4) img {
  object-position: center 15%;
}

.scholarship-history-grid figcaption,
.historical-gallery-item figcaption {
  display: grid;
  gap: 5px;
  padding: 17px 18px 19px;
}

.scholarship-history-grid strong,
.historical-gallery-item strong {
  color: #5b3713;
  font: 600 16px/1.45 var(--serif);
}

.scholarship-history-grid span,
.historical-gallery-item span {
  color: #806844;
  font-size: 12px;
  line-height: 1.75;
}

.historical-gallery-section {
  background:
    radial-gradient(circle at 88% 15%, rgba(224, 181, 83, 0.16), transparent 29%),
    #fff8e8;
}

.historical-gallery-heading {
  margin-bottom: 34px;
}

.historical-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.historical-gallery-wide {
  grid-column: span 2;
}

.historical-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.historical-gallery-item:first-child img {
  object-fit: contain;
  object-position: center;
  background: #3a140f;
  padding: 8px;
}

.historical-gallery-item:nth-child(2) img {
  object-position: center 24%;
}

@media (max-width: 980px) {
  .scholarship-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .historical-gallery-wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .scholarship-history-heading {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .scholarship-history-heading .section-label {
    grid-column: auto;
    margin-bottom: 0;
  }

  .scholarship-history-grid,
  .historical-gallery-grid {
    grid-template-columns: 1fr;
  }

  .historical-gallery-wide {
    grid-column: auto;
  }

  .scholarship-history-grid img,
  .historical-gallery-item img {
    aspect-ratio: 4 / 3;
  }
}

/* Scholarship page v1.2.11 — readable responsive hero typography */
.scholarship-hero {
  min-height: 640px;
  padding-top: clamp(142px, 12vw, 174px);
  padding-bottom: clamp(70px, 7vw, 96px);
}

.scholarship-hero .page-kicker {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.65;
  letter-spacing: clamp(0.12em, 0.18vw, 0.2em);
}

.scholarship-hero .page-hero-content h1 {
  max-width: 700px;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.scholarship-title-main,
.scholarship-title-tagline {
  display: block;
}

.scholarship-title-main {
  color: #583817;
  font-size: clamp(42px, 3.8vw, 58px);
  line-height: 1.22;
  letter-spacing: 0.025em;
  text-wrap: balance;
}

.scholarship-title-tagline {
  margin-top: clamp(14px, 1.7vw, 22px);
  color: #a5680c;
  font-size: clamp(28px, 2.65vw, 40px);
  line-height: 1.28;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.scholarship-hero .page-hero-lead {
  max-width: 680px;
  overflow-wrap: break-word;
  margin-top: clamp(20px, 2.2vw, 28px);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.85;
}

/* Scholarship page v1.2.5 — real archive photography and official logo */
.scholarship-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(38px, 5vw, 68px);
  align-items: center;
  width: 100%;
  padding-inline: clamp(34px, 4.6vw, 66px);
}

.scholarship-hero .page-hero-content {
  max-width: 720px;
  min-width: 0;
}

.scholarship-hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  justify-self: end;
  align-items: stretch;
}

.scholarship-logo-card,
.scholarship-hero-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 195, 123, 0.42);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.scholarship-logo-card {
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 18px 20px;
}

.scholarship-logo-card img {
  display: block;
  width: min(100%, 255px);
  height: auto;
  max-height: 185px;
  object-fit: contain;
}

.scholarship-hero-photo {
  position: relative;
}

.scholarship-hero-photo img {
  display: block;
  width: 100%;
  height: 230px;
  min-height: 0;
  object-fit: contain;
  background: #2b190c;
}

.scholarship-hero-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 12px 16px;
  color: #fff8e7;
  background: linear-gradient(180deg, transparent, rgba(2, 8, 23, 0.92));
  font-size: 12px;
  letter-spacing: 0.04em;
}

.scholarship-recipient-feature {
  background:
    radial-gradient(circle at 88% 15%, rgba(224, 181, 83, 0.14), transparent 31%),
    #fff8e8;
}

.scholarship-feature-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
}

.scholarship-feature-copy h2 {
  margin: 0 0 20px;
  color: #1e173a;
  font: 500 clamp(42px, 5vw, 66px)/1.15 var(--serif);
}

.scholarship-feature-copy h3 {
  margin: 0 0 22px;
  color: #6c3d13;
  font: 600 clamp(28px, 3vw, 40px)/1.25 var(--serif);
}

.scholarship-feature-copy p {
  color: #5e6470;
  line-height: 1.9;
}

.scholarship-source-note {
  padding-top: 16px;
  border-top: 1px solid rgba(111, 70, 17, 0.18);
  font-size: 12px;
}

.scholarship-poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(99, 55, 121, 0.22);
  background: #fff;
  box-shadow: 0 24px 60px rgba(68, 34, 86, 0.15);
}

.scholarship-poster-link img {
  display: block;
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  background: #eee4f3;
}

.scholarship-poster-link span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(25, 13, 49, 0.88);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.scholarship-archive-heading {
  margin-bottom: 38px;
}

.scholarship-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.scholarship-archive-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(205px, 1fr) auto;
  gap: 12px;
  padding: 20px;
  color: #fff8e7;
  border: 1px solid rgba(214, 178, 101, 0.27);
  background: linear-gradient(145deg, rgba(19, 31, 57, 0.94), rgba(28, 17, 48, 0.96));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease;
}

.scholarship-archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 190, 111, 0.66);
}

.scholarship-archive-year {
  color: var(--gold-light);
  font: 600 22px/1 var(--serif);
  letter-spacing: 0.12em;
}

.scholarship-archive-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 205px;
  padding: 8px;
  background: #fff;
}

.scholarship-archive-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
}

.scholarship-archive-card strong {
  color: #d9e0ea;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.scholarship-gallery-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(96, 65, 135, 0.09), transparent 30%),
    #fbf7ed;
}

.scholarship-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.scholarship-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 72, 21, 0.2);
  background: #fff;
  box-shadow: 0 18px 42px rgba(74, 44, 8, 0.1);
}

.scholarship-photo-wide {
  grid-column: span 2;
}

.scholarship-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #2b190c;
}

.scholarship-photo-card figcaption {
  display: grid;
  gap: 5px;
  padding: 17px 18px 19px;
}

.scholarship-photo-card strong {
  color: #593612;
  font: 600 17px/1.45 var(--serif);
}

.scholarship-photo-card span {
  color: #73634c;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .scholarship-title-main {
    font-size: clamp(40px, 4.35vw, 50px);
  }

  .scholarship-title-tagline {
    font-size: clamp(27px, 3.15vw, 35px);
  }

  .scholarship-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 36px;
    padding-inline: clamp(24px, 3.5vw, 40px);
  }

  .scholarship-hero-visual {
    max-width: 300px;
  }

  .scholarship-logo-card {
    min-height: 185px;
  }

  .scholarship-logo-card img {
    max-height: 165px;
  }

  .scholarship-hero-photo img {
    height: 205px;
  }
}

@media (max-width: 920px) {
  .scholarship-hero {
    min-height: auto;
  }

  .scholarship-hero .page-hero-content {
    max-width: 760px;
  }

  .scholarship-title-main {
    max-width: 12em;
    font-size: clamp(40px, 6vw, 52px);
  }

  .scholarship-title-tagline {
    font-size: clamp(28px, 4.1vw, 36px);
  }

  .scholarship-hero-grid,
  .scholarship-feature-grid {
    grid-template-columns: 1fr;
  }

  .scholarship-hero-grid {
    padding-inline: clamp(18px, 4vw, 30px);
  }

  .scholarship-hero-visual {
    max-width: 620px;
    justify-self: start;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  }

  .scholarship-logo-card {
    min-height: 230px;
  }

  .scholarship-logo-card img {
    max-height: 200px;
  }

  .scholarship-hero-photo img {
    height: 230px;
  }

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

  .scholarship-photo-wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .scholarship-hero {
    padding-top: 132px;
    padding-bottom: 68px;
  }

  .scholarship-hero .page-kicker {
    max-width: 100%;
    margin-bottom: 13px;
    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .scholarship-title-main {
    max-width: 100%;
    font-size: clamp(35px, 10.6vw, 45px);
    line-height: 1.2;
    letter-spacing: 0.015em;
  }

  .scholarship-title-tagline {
    margin-top: 12px;
    font-size: clamp(25px, 7.8vw, 32px);
    line-height: 1.3;
    letter-spacing: 0.035em;
    white-space: normal;
  }

  .scholarship-hero .page-hero-lead {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
  }

  .scholarship-hero-grid {
    padding-inline: 8px;
  }

  .scholarship-hero-visual {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .scholarship-logo-card {
    min-height: 0;
    padding: 14px;
  }

  .scholarship-logo-card img {
    max-height: 230px;
  }

  .scholarship-hero-photo img {
    min-height: 0;
    height: auto;
  }

  .scholarship-archive-grid,
  .scholarship-photo-grid {
    grid-template-columns: 1fr;
  }

  .scholarship-photo-wide {
    grid-column: auto;
  }

  .scholarship-archive-card {
    grid-template-rows: auto auto auto;
  }

  .scholarship-archive-image {
    min-height: 0;
  }

  .scholarship-archive-image img {
    height: auto;
    max-height: none;
  }

  .scholarship-photo-card img {
    aspect-ratio: auto;
    height: auto;
  }
}


/* About page v1.2.9 — curated 2017 and 2019 Okinawa cultural exchange real-photo archives */

.okinawa-2017-section {
  background:
    radial-gradient(circle at 90% 8%, rgba(82, 46, 115, 0.10), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(197, 149, 60, 0.09), transparent 28%),
    #f8f4fb;
  border-bottom: 1px solid rgba(90, 54, 111, 0.12);
}

.okinawa-2017-main img {
  object-position: center 46%;
}

.okinawa-2017-section .okinawa-photo-card {
  border-color: rgba(90, 54, 111, 0.22);
}

.okinawa-2017-section .okinawa-journey-block {
  margin-bottom: 0;
}

.okinawa-2019-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(93, 44, 124, 0.08), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(194, 145, 55, 0.11), transparent 30%),
    #fffaf0;
}

.okinawa-2019-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: start;
  margin-bottom: 42px;
}

.okinawa-2019-intro h2 {
  max-width: 690px;
  margin: 0;
  color: #3f2156;
  font: 500 clamp(38px, 4.8vw, 62px)/1.22 var(--serif);
}

.okinawa-2019-intro > div:last-child {
  padding-top: 28px;
}

.okinawa-2019-intro > div:last-child p,
.okinawa-dinner-heading > p:last-child {
  margin: 0 0 16px;
  color: #665a6f;
  line-height: 1.9;
}

.okinawa-photo-card.okinawa-main-hero {
  margin-bottom: clamp(56px, 7vw, 88px);
}

.okinawa-photo-card.okinawa-main-hero img {
  aspect-ratio: 16 / 8.6;
  object-position: center 48%;
}

.okinawa-subheading {
  max-width: 820px;
  margin: 0 0 28px;
}

.okinawa-subheading h3 {
  margin: 0;
  color: #4b285f;
  font: 500 clamp(30px, 3.7vw, 46px)/1.25 var(--serif);
}

.okinawa-subheading > p:last-child {
  margin: 14px 0 0;
  color: #6f6475;
  line-height: 1.85;
}

.okinawa-journey-block {
  margin-top: clamp(62px, 8vw, 100px);
  padding-top: clamp(42px, 5vw, 66px);
  border-top: 1px solid rgba(132, 92, 37, 0.2);
}

.okinawa-journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.okinawa-journey-grid .okinawa-photo-card img {
  object-position: center;
}

.okinawa-stage-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.okinawa-photo-hero {
  grid-column: 1 / -1;
}

.okinawa-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 71, 126, 0.2);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(72, 41, 83, 0.11);
}

.okinawa-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: #e9e1d6;
}

.okinawa-photo-hero img {
  aspect-ratio: 16 / 8.8;
  object-position: center 44%;
}

.okinawa-photo-card figcaption {
  display: grid;
  gap: 5px;
  padding: 17px 20px 20px;
}

.okinawa-photo-card strong {
  color: #48255f;
  font: 600 17px/1.45 var(--serif);
}

.okinawa-photo-card span {
  color: #776c7c;
  font-size: 12px;
  line-height: 1.7;
}

.okinawa-dinner-block {
  margin-top: clamp(62px, 8vw, 100px);
  padding-top: clamp(42px, 5vw, 66px);
  border-top: 1px solid rgba(132, 92, 37, 0.2);
}

.okinawa-dinner-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(42px, 7vw, 90px);
  margin-bottom: 32px;
}

.okinawa-dinner-heading .section-label {
  grid-column: 1 / -1;
}

.okinawa-dinner-heading h3 {
  margin: 0;
  color: #4b285f;
  font: 500 clamp(31px, 4vw, 48px)/1.25 var(--serif);
}

.okinawa-dinner-heading > p:last-child {
  margin-top: 8px;
}

.okinawa-dinner-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.okinawa-dinner-gallery .okinawa-photo-card:nth-child(2) img {
  object-position: center 45%;
}

@media (max-width: 840px) {
  .okinawa-2019-intro,
  .okinawa-dinner-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .okinawa-2019-intro > div:last-child {
    padding-top: 0;
  }

  .okinawa-dinner-heading .section-label {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .okinawa-stage-gallery,
  .okinawa-journey-grid,
  .okinawa-dinner-gallery {
    grid-template-columns: 1fr;
  }

  .okinawa-photo-hero {
    grid-column: auto;
  }

  .okinawa-photo-card img,
  .okinawa-photo-hero img,
  .okinawa-photo-card.okinawa-main-hero img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}


/* Scholarship page v1.2.12 — safe horizontal inset and overflow protection */
.scholarship-hero,
.scholarship-hero-grid,
.scholarship-hero .page-hero-content,
.scholarship-hero-visual {
  min-width: 0;
}

.scholarship-hero {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .scholarship-hero {
    overflow-x: hidden;
  }
}


/* v1.2.19 — keep the Chinese adjudicator name phrase together */
.judge-name-nowrap {
  display: inline-block;
  white-space: nowrap;
}


/* v1.2.22 — About page history timeline readability */
#history .page-heading > p {
  color: #5f482c;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 500;
}

#history .history-timeline {
  max-width: 1040px;
}

#history .history-timeline::before {
  left: 126px;
  width: 2px;
  background: rgba(143, 92, 21, 0.42);
}

#history .history-event {
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 50px;
  padding: 0 0 30px;
}

#history .history-event::before {
  left: 120px;
  top: 24px;
  width: 13px;
  height: 13px;
  border: 3px solid #a8680c;
  background: #fffaf0;
  box-shadow: 0 0 0 5px rgba(205, 154, 54, 0.14);
}

#history .history-year {
  padding-top: 17px;
  color: #7b4d0d;
  font: 700 25px/1.25 var(--serif);
  letter-spacing: 0.015em;
}

#history .history-event > div {
  padding: 20px 24px 22px;
  border: 1px solid rgba(154, 99, 18, 0.24);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 28px rgba(96, 57, 10, 0.07);
}

#history .history-event h3 {
  margin: 0 0 9px;
  color: #4f3010;
  font: 650 24px/1.4 var(--serif);
  letter-spacing: 0.01em;
}

#history .history-event p {
  margin: 0;
  color: #5f4d36;
  font-size: 16.5px;
  font-weight: 450;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  #history .page-heading > p {
    font-size: 15px;
    line-height: 1.75;
  }

  #history .history-timeline::before {
    left: 74px;
  }

  #history .history-event {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 38px;
    padding-bottom: 24px;
  }

  #history .history-event::before {
    left: 68px;
    top: 20px;
  }

  #history .history-year {
    padding-top: 15px;
    font-size: 17px;
  }

  #history .history-event > div {
    padding: 17px 18px 19px;
  }

  #history .history-event h3 {
    font-size: 20px;
    line-height: 1.45;
  }

  #history .history-event p {
    font-size: 15px;
    line-height: 1.78;
  }
}


/* v1.2.23 — Okinawa archive headings and explanatory copy */
.okinawa-2019-intro {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 42px;
}

.okinawa-2019-intro > div:first-child,
.okinawa-2019-intro > div:last-child {
  min-width: 0;
}

.okinawa-2019-intro .section-label {
  margin-bottom: 14px;
  color: #9b5f08;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.22em;
}

.okinawa-2019-intro h2 {
  max-width: none;
  color: #3f2156;
  font: 500 clamp(34px, 3vw, 46px)/1.2 var(--serif);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.okinawa-2019-intro > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  max-width: 1180px;
  padding-top: 0;
}

.okinawa-2019-intro > div:last-child p {
  margin: 0;
  color: #4f4358;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.012em;
}

@media (min-width: 1180px) {
  .okinawa-2019-intro h2 {
    white-space: nowrap;
  }
}

@media (max-width: 920px) {
  .okinawa-2019-intro h2 {
    font-size: clamp(32px, 5.6vw, 44px);
    white-space: normal;
  }

  .okinawa-2019-intro > div:last-child {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .okinawa-2019-intro > div:last-child p {
    font-size: 16.5px;
    line-height: 1.8;
  }
}

@media (max-width: 560px) {
  .okinawa-2019-intro .section-label {
    font-size: 11px;
    letter-spacing: 0.15em;
  }

  .okinawa-2019-intro h2 {
    font-size: clamp(30px, 9vw, 39px);
    line-height: 1.22;
  }

  .okinawa-2019-intro > div:last-child p {
    font-size: 15.5px;
    line-height: 1.78;
  }
}


/* v1.2.24 — comprehensive ISIPC heritage photo archive */
.heritage-archive-section {
  background:
    radial-gradient(circle at 12% 6%, rgba(199, 150, 55, 0.11), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(67, 34, 91, 0.08), transparent 30%),
    #fbf6eb;
}

.venue-highlight-top {
  padding: 34px 0 28px;
  background: #fffaf0;
}

.venue-highlight-cta {
  margin-top: 0;
}

.venue-highlight-cta h3 {
  margin: 5px 0 7px;
}

.venue-highlight-cta p:last-child {
  margin: 0;
}

.heritage-archive-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  margin-bottom: 50px;
}

.heritage-archive-heading h2 {
  max-width: 900px;
  margin: 8px 0 14px;
  color: #45255c;
  font: 500 clamp(38px, 4.6vw, 66px)/1.14 var(--serif);
}

.heritage-archive-heading > div > p:last-child {
  max-width: 900px;
  margin: 0;
  color: #5f503d;
  font-size: 17px;
  line-height: 1.85;
}

.heritage-theatre-link {
  white-space: nowrap;
}

.heritage-archive-group {
  margin-top: 58px;
}

.heritage-group-heading {
  margin-bottom: 24px;
}

.heritage-group-heading h3 {
  margin: 6px 0 0;
  color: #4c2d12;
  font: 600 clamp(28px, 3vw, 40px)/1.3 var(--serif);
}

.heritage-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.heritage-photo-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(133, 81, 19, 0.24);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(83, 52, 17, 0.08);
}

.heritage-photo-card.heritage-photo-feature {
  grid-column: 1 / -1;
}

.heritage-photo-frame {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 12px;
  background: #2b1a10;
}

.heritage-photo-feature .heritage-photo-frame {
  min-height: 420px;
}

.heritage-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  object-position: center;
}

.heritage-photo-card figcaption {
  display: grid;
  gap: 7px;
  padding: 20px 22px 23px;
}

.heritage-photo-card figcaption strong {
  color: #4d3013;
  font: 650 23px/1.35 var(--serif);
}

.heritage-photo-card figcaption span {
  color: #695a48;
  font-size: 15.5px;
  line-height: 1.75;
}

.heritage-archive-cta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 62px;
  padding: 30px 34px;
  border: 1px solid rgba(175, 116, 25, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 250, 237, 0.98), rgba(246, 224, 176, 0.62));
}

.heritage-archive-cta h3 {
  margin: 5px 0 7px;
  color: #482711;
  font: 600 31px/1.3 var(--serif);
}

.heritage-archive-cta p:last-child {
  margin: 0;
  color: #65523b;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .venue-highlight-top {
  padding: 34px 0 28px;
  background: #fffaf0;
}

.venue-highlight-cta {
  margin-top: 0;
}

.venue-highlight-cta h3 {
  margin: 5px 0 7px;
}

.venue-highlight-cta p:last-child {
  margin: 0;
}

.heritage-archive-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .heritage-theatre-link {
    justify-self: start;
  }

  .heritage-photo-grid {
    grid-template-columns: 1fr;
  }

  .heritage-photo-card.heritage-photo-feature {
    grid-column: auto;
  }

  .heritage-photo-frame,
  .heritage-photo-feature .heritage-photo-frame {
    min-height: 260px;
  }

  .heritage-archive-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .heritage-archive-heading h2 {
    font-size: 36px;
  }

  .heritage-archive-heading > div > p:last-child {
    font-size: 15.5px;
  }

  .heritage-archive-group {
    margin-top: 44px;
  }

  .heritage-group-heading h3 {
    font-size: 28px;
  }

  .heritage-photo-frame,
  .heritage-photo-feature .heritage-photo-frame {
    min-height: 190px;
    padding: 8px;
  }

  .heritage-photo-card figcaption {
    padding: 17px 18px 20px;
  }

  .heritage-photo-card figcaption strong {
    font-size: 21px;
  }

  .heritage-photo-card figcaption span {
    font-size: 14.5px;
  }

  .heritage-archive-cta {
    padding: 24px 22px;
  }

  .heritage-archive-cta h3 {
    font-size: 27px;
  }
}


/* v1.2.26 — confirmed HD Ivy Leung C.W. portrait */
.leadership-profile:first-child .leadership-photo img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  filter: none;
  background: #d5d5d5;
}

img[src*="ivy-leung-profile"] {
  filter: none;
}


/* v1.2.28 — Ivy Leung C.W. professional background */
.ivy-professional-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.ivy-detail-card {
  min-width: 0;
  padding: 25px 26px 27px;
  border: 1px solid rgba(203, 158, 67, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(9, 24, 48, 0.76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
}

.ivy-publication-card {
  grid-column: 1 / -1;
}

.ivy-detail-kicker {
  margin: 0 0 8px;
  color: #d6ad58;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ivy-detail-card h4 {
  margin: 0 0 15px;
  color: #fff4d4;
  font: 600 24px/1.35 var(--serif);
}

.ivy-detail-card p,
.ivy-detail-card li,
.ivy-role-list dt,
.ivy-role-list dd {
  color: rgba(242, 238, 228, 0.82);
  font-size: 14.5px;
  line-height: 1.82;
}

.ivy-detail-card p {
  margin: 0 0 14px;
}

.ivy-detail-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
  padding-left: 1.2em;
}

.ivy-detail-card li::marker {
  color: #d6ad58;
}

.ivy-detail-note {
  margin-bottom: 0 !important;
  padding-top: 13px;
  border-top: 1px solid rgba(205, 168, 95, 0.18);
  color: rgba(242, 238, 228, 0.66) !important;
}

.ivy-role-list {
  display: grid;
  gap: 15px;
  margin: 0;
}

.ivy-role-list > div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(205, 168, 95, 0.17);
}

.ivy-role-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ivy-role-list dt {
  color: #fff0c8;
  font-weight: 650;
}

.ivy-role-list dd {
  margin: 4px 0 0;
  color: rgba(220, 225, 235, 0.65);
  font-size: 12.5px;
  line-height: 1.65;
}

.ivy-detail-card cite {
  color: #f0d897;
  font-style: normal;
  font-weight: 650;
}

@media (max-width: 760px) {
  .ivy-professional-details {
    grid-template-columns: 1fr;
  }

  .ivy-publication-card {
    grid-column: auto;
  }

  .ivy-detail-card {
    padding: 22px 20px 24px;
  }

  .ivy-detail-card h4 {
    font-size: 22px;
  }

  .ivy-detail-card p,
  .ivy-detail-card li,
  .ivy-role-list dt {
    font-size: 14px;
  }
}


/* v1.2.32 — keep selected Chinese headings on one line */
.single-line-cn {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.event-single-line {
  letter-spacing: 0.035em;
}

.format-single-line {
  font-size: clamp(22px, 2.35vw, 30px) !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em;
}

.venue-title-single-line {
  font-size: clamp(28px, 2.7vw, 35px) !important;
  line-height: 1.25 !important;
  letter-spacing: 0.012em !important;
}

.venue-copy-single-line {
  font-size: clamp(11px, 1.12vw, 14px);
  letter-spacing: 0;
}

.scholarship-title-single-line {
  font-size: clamp(40px, 4vw, 56px) !important;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .format-single-line {
    font-size: clamp(22px, 4.6vw, 28px) !important;
  }

  .venue-title-single-line {
    font-size: clamp(29px, 6vw, 40px) !important;
  }

  .venue-copy-single-line {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .single-line-cn {
    white-space: normal;
  }

  .event-single-line,
  .format-single-line,
  .venue-title-single-line,
  .venue-copy-single-line,
  .scholarship-title-single-line {
    word-break: keep-all;
  }
}


/* v1.2.33 — Why Join, five-step application, official Facebook, dates and venue map */
.deadline-grid.deadline-grid-four {
  width: min(980px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-join-section {
  padding: 96px 0 104px;
  color: #f8e8bd;
  background:
    radial-gradient(circle at 8% 18%, rgba(218, 165, 56, 0.16), transparent 28%),
    radial-gradient(circle at 92% 78%, rgba(191, 130, 30, 0.12), transparent 25%),
    #061326;
}

.why-join-heading,
.venue-map-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.why-join-heading h2,
.venue-map-heading h2,
.facebook-copy h2 {
  margin: 4px 0 0;
  font: 500 clamp(40px, 5vw, 66px)/1.22 var(--serif);
  letter-spacing: 0.035em;
}

.why-join-heading > p {
  margin: 0;
  color: rgba(239, 225, 193, 0.72);
  font-size: 16px;
  line-height: 1.85;
}

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

.why-join-grid article {
  position: relative;
  min-height: 230px;
  padding: 27px 25px 29px;
  overflow: hidden;
  border: 1px solid rgba(216, 168, 75, 0.48);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(24, 50, 80, 0.9), rgba(5, 19, 40, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.why-join-grid article::after {
  content: "";
  position: absolute;
  inset: auto -24px -46px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(224, 180, 88, 0.14);
  border-radius: 50%;
}

.why-join-number {
  display: block;
  margin-bottom: 32px;
  color: #dcae50;
  font: italic 22px/1 var(--serif);
  letter-spacing: 0.08em;
}

.why-join-grid h3 {
  margin: 0 0 10px;
  color: #fff0c8;
  font: 600 24px/1.36 var(--serif);
}

.why-join-grid p {
  margin: 0;
  color: rgba(238, 229, 208, 0.72);
  font-size: 14px;
  line-height: 1.78;
}

.facebook-section {
  padding: 100px 0;
  color: #583817;
  background:
    radial-gradient(circle at 80% 18%, rgba(213, 165, 61, 0.18), transparent 27%),
    #fffaf0;
}

.facebook-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
}

.facebook-preview-card {
  overflow: hidden;
  max-width: 620px;
  border: 1px solid rgba(161, 105, 22, 0.24);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(103, 66, 16, 0.13);
}

.facebook-preview-card img {
  display: block;
  width: 100%;
  height: auto;
}

.facebook-copy h2 {
  color: #583817;
}

.facebook-copy > p:not(.section-label) {
  max-width: 650px;
  margin: 22px 0 30px;
  color: #755d39;
  font-size: 16px;
  line-height: 1.9;
}

.steps.steps-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 34px;
}

.steps.steps-five > div {
  padding: 28px 22px;
}

.steps.steps-five strong {
  min-height: 58px;
}

.application-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 78px;
}

.application-link-grid > * {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 23px 24px;
  border: 1px solid rgba(154, 99, 18, 0.28);
  border-radius: 15px;
  background: rgba(255, 250, 239, 0.88);
  box-shadow: 0 12px 30px rgba(107, 66, 9, 0.07);
}

.application-link-grid a {
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.application-link-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(107, 66, 9, 0.12);
}

.application-link-grid span {
  color: #9a630f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.application-link-grid strong {
  overflow-wrap: anywhere;
  color: #583817;
  font: 600 clamp(20px, 2vw, 28px)/1.3 var(--serif);
}

.application-link-grid small {
  color: #806844;
  font-size: 12.5px;
  line-height: 1.65;
}

.venue-map-section {
  padding: 98px 0 108px;
  color: #583817;
  background:
    radial-gradient(circle at 10% 10%, rgba(214, 164, 56, 0.13), transparent 24%),
    #fffaf0;
}

.venue-map-heading > p {
  margin: 0;
  color: #806844;
  font-size: 16px;
  line-height: 1.85;
}

.venue-map-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(154, 99, 18, 0.23);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(103, 66, 16, 0.11);
}

.venue-map-card > img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.venue-map-card figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(154, 99, 18, 0.18);
}

.venue-map-card figcaption > div {
  display: grid;
  gap: 5px;
  padding: 22px 26px 24px;
}

.venue-map-card figcaption > div + div {
  border-left: 1px solid rgba(154, 99, 18, 0.18);
}

.venue-map-card strong {
  color: #583817;
  font: 600 21px/1.4 var(--serif);
}

.venue-map-card span {
  color: #806844;
  font-size: 14px;
  line-height: 1.6;
}

.venue-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

@media (max-width: 1120px) {
  .why-join-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .steps.steps-five > div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .steps.steps-five > div:nth-child(5) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .deadline-grid.deadline-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deadline-grid.deadline-grid-four > div:nth-child(3),
  .deadline-grid.deadline-grid-four > div:nth-child(4) {
    grid-column: auto;
    border-top: 1px solid var(--line);
  }

  .deadline-grid.deadline-grid-four > div:nth-child(3) {
    border-left: 0;
  }

  .why-join-heading,
  .venue-map-heading,
  .facebook-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .facebook-preview-card {
    max-width: 540px;
  }

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

  .steps.steps-five > div:nth-child(3),
  .steps.steps-five > div:nth-child(5) {
    border-left: 0;
  }

  .steps.steps-five > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

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

  .venue-map-card figcaption {
    grid-template-columns: 1fr;
  }

  .venue-map-card figcaption > div + div {
    border-top: 1px solid rgba(154, 99, 18, 0.18);
    border-left: 0;
  }
}

@media (max-width: 590px) {
  .deadline-grid.deadline-grid-four {
    grid-template-columns: 1fr;
  }

  .deadline-grid.deadline-grid-four > div + div,
  .deadline-grid.deadline-grid-four > div:nth-child(3),
  .deadline-grid.deadline-grid-four > div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .why-join-section,
  .facebook-section,
  .venue-map-section {
    padding: 76px 0 82px;
  }

  .why-join-grid,
  .steps.steps-five {
    grid-template-columns: 1fr;
  }

  .steps.steps-five > div + div,
  .steps.steps-five > div:nth-child(4),
  .steps.steps-five > div:nth-child(5) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .steps.steps-five strong {
    min-height: 0;
  }

  .facebook-preview-card {
    border-radius: 15px;
  }

  .venue-map-card {
    border-radius: 15px;
  }
}


/* v1.2.34 — Tuen Mun Google Maps link */
.venue-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.venue-card-links a {
  display: inline-flex;
  align-items: center;
}
