/* Subpages (Programs, Faculty & Facilitators, Sponsorship, Checkout, My Account). Loaded after home.css, which
   supplies the shared header, footer, closing section, buttons and contact popup. */

/* ---------- Page intro ---------- */
.pg-hero {
  padding: calc(96px + 88px) 0 72px;
  background: radial-gradient(ellipse 50% 70% at 12% 0%, #d7ecef 0%, #d7ecef00 70%),
    radial-gradient(ellipse 45% 60% at 92% 10%, #e4f1f2 0%, #e4f1f200 70%),
    linear-gradient(180deg, #eef5f7 0%, var(--h-paper) 100%);
}
.pg-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pg-hero .kicker { justify-content: center; }
.pg-hero h1 {
  max-width: 920px;
  margin-top: 16px;
  color: var(--h-ink);
  font-family: var(--h-font);
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.3px;
  text-wrap: balance;
}
.pg-lede { max-width: 640px; margin-top: 22px; color: var(--h-body); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.pg-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.pg-facts li { padding: 9px 18px; border: 1px solid var(--h-line); border-radius: 999px; background: #fff; color: var(--h-body); font-size: 15px; }
.pg-facts strong { color: var(--h-ink); font-family: var(--h-font); font-size: 17px; }
.pg-note { margin-top: 16px; color: var(--h-muted); font-size: 15px; }

/* ---------- Programs: one card per day ---------- */
.pg-days {
  padding: 16px 0 calc(var(--section-gap) / 2);
  background: linear-gradient(180deg, var(--h-paper) 0%, var(--h-grey) 30%, #e2f0f1 82%, #d6ebed 100%);
}
.pg-day-list { display: grid; gap: 32px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.pg-day {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  overflow: hidden;
  border: 1px solid var(--h-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 60px -48px #03384880;
  scroll-margin-top: 110px;
}
.pg-day:nth-child(even) .pg-day-photo { order: 2; }
.pg-day-photo { position: relative; min-height: 400px; }
.pg-day-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.pg-day-num {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--h-ink);
  font-family: var(--h-font);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px -12px #03384899;
}
.pg-day-body { display: flex; flex-direction: column; padding: 44px 48px; }
.pg-day h2 { margin-top: 10px; color: var(--h-ink); font-family: var(--h-font); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.6px; }
.pg-day .dc-points { margin: 18px 0 22px; }
.pg-day .dc-points li { font-size: 16px; }
.pg-meta { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--h-line); list-style: none; color: var(--h-muted); font-size: 14px; line-height: 1.4; }
.pg-meta li { display: flex; align-items: flex-start; gap: 10px; }
.pg-meta li:before { content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; background: var(--h-teal); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.pg-venue { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.6A2.6 2.6 0 1 1 12 6.4a2.6 2.6 0 0 1 0 5.2z'/%3E%3C/svg%3E"); }
.pg-places { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-3.3 0-7 1.7-7 4.5V20h14v-2.5C16 14.7 12.3 13 9 13zm8-2a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm1.3 2.1A5.9 5.9 0 0 1 18 17.5V20h4v-2.2c0-2.3-1.9-4.2-3.7-4.7z'/%3E%3C/svg%3E"); color: var(--h-ink); font-weight: 700; }
.pg-ticket { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7.5A2.5 2.5 0 0 1 4.5 5h15A2.5 2.5 0 0 1 22 7.5V10a2 2 0 0 0 0 4v2.5a2.5 2.5 0 0 1-2.5 2.5h-15A2.5 2.5 0 0 1 2 16.5V14a2 2 0 0 0 0-4z'/%3E%3C/svg%3E"); }
.pg-day.is-limited .pg-places { color: var(--h-orange-text); }
.pg-day.is-limited .pg-places:before { background: #c3161f; }
.pg-day-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.pg-day-actions .pill-cta { border: 0; font-family: inherit; outline-offset: 4px; }
.pg-pages { color: var(--h-muted); font-size: 14px; }
.pg-all { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 44px; }
.pg-all .pill-cta { border: 0; font-family: inherit; outline-offset: 4px; }
.pg-all .pill-cta.ghost { background: #fff; }
.pg-all .pill-cta.ghost:hover { background: var(--h-ink); }
.pg-all .arrow-link { color: var(--h-ink); }
.pg-all .arrow-link:hover { color: #a8181c; }

/* ---------- Program poster popup ---------- */
html.has-modal { overflow: hidden; }
.poster-modal {
  width: min(940px, calc(100% - 32px));
  max-width: none;
  height: calc(100svh - 32px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #f2f5f7;
  color: var(--h-body);
  box-shadow: 0 30px 70px -30px #03384880;
}
.poster-modal[open] { display: flex; flex-direction: column; }
.poster-modal::backdrop { background: #03384873; }
.poster-head { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 16px 14px 24px; }
.poster-titles { min-width: 0; padding-top: 4px; }
.poster-tools { display: flex; align-items: center; gap: 8px; }
.poster-dl { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--h-ink); font-size: 14px; font-weight: 700; }
.poster-dl:hover { color: #a8181c; text-decoration: none; }
.poster-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--h-ink); font-size: 22px; line-height: 1; }
.poster-close:hover { background: #e3f1f2; }
.poster-titles h2 { color: var(--h-ink); font: 700 20px/1.2 var(--h-font); }
.poster-meta { margin-top: 4px; color: var(--h-muted); font-size: 14px; }
.poster-pages { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 6px; padding: 0 24px 14px; }
.poster-pages[hidden] { display: none; }
.poster-pages button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--h-ink); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--h-line); }
.poster-pages button[aria-current="true"] { background: var(--h-teal); color: #fff; box-shadow: none; }
.poster-scroll { flex: 1 1 0; min-height: 0; padding: 4px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
.poster-scroll:focus, .poster-scroll:focus-visible { outline: 0; }
.poster-page { position: relative; margin: 0 0 16px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -20px #03384866; scroll-margin-top: 4px; }
.poster-page img { position: relative; width: 100%; height: auto; }
.poster-page:not(.is-loaded)::before { content: 'Loading…'; position: absolute; top: 48px; left: 0; right: 0; color: var(--h-muted); font-size: 14px; text-align: center; }
/* "Open full size" sits in a strip under each page so it never covers poster content. */
.poster-full { display: block; padding: 10px 16px; border-top: 1px solid var(--h-line); color: var(--h-ink); font-size: 13px; font-weight: 700; text-align: right; }
.poster-full:hover { color: #a8181c; text-decoration: none; }

/* ---------- Pages still waiting for their redesign ---------- */
.pg-hero-compact { padding-bottom: 48px; }
.pg-body { padding: 16px 0 calc(var(--section-gap) / 2); background: linear-gradient(180deg, var(--h-paper) 0%, var(--h-grey) 40%, #d6ebed 100%); }
.pg-body-inner { display: grid; gap: 16px; max-width: 760px; }
.pg-body section { padding: 28px 32px; border: 1px solid var(--h-line); border-radius: 22px; background: #fff; }
.pg-body h2 { color: var(--h-ink); font: 700 24px/1.2 var(--h-font); }
.pg-body p { margin-top: 8px; color: var(--h-body); }
.pg-body .pill-cta { margin-top: 12px; border: 0; font-family: inherit; }
.page-end .pg-closing { padding-top: 0; }
.pg-closing::before { display: none; }
.pg-closing .final-skyline { margin-top: 0; }

@media (max-width: 950px) {
  .pg-day { grid-template-columns: 1fr; }
  .pg-day:nth-child(even) .pg-day-photo { order: 0; }
  .pg-day-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .pg-day-body { padding: 32px 32px 36px; }
}
@media (max-width: 760px) {
  .pg-hero { padding: calc(78px + 48px) 0 44px; }
  .pg-lede { font-size: 16px; }
  .pg-facts { gap: 8px; margin-top: 24px; }
  .pg-facts li { padding: 7px 14px; font-size: 14px; }
  .pg-facts strong { font-size: 15px; }
  .pg-day-list { gap: 20px; }
  .pg-day { border-radius: 22px; }
  .pg-day-num { top: 14px; left: 14px; padding: 6px 14px; font-size: 14px; }
  .pg-day-body { padding: 24px 20px 26px; }
  .pg-day .dc-points li { font-size: 15px; }
  .pg-day-actions .pill-cta { flex: 1 1 100%; }
  .pg-pages { flex-basis: 100%; text-align: center; }
  .pg-body section { padding: 22px 20px; }

  /* Phones: a centred card over the dimmed page (like the contact popup), not a full-screen sheet. */
  .poster-modal { width: calc(100% - 24px); height: fit-content; max-height: calc(100dvh - 48px); border-radius: 22px; }
  .poster-scroll { flex: 1 1 auto; }
  .poster-head { gap: 10px; padding: 12px 12px 12px 14px; }
  .poster-dl { padding: 0 12px; }
  .poster-pages { padding: 0 14px 12px; }
  .poster-titles h2 { font-size: 17px; }
  .poster-meta { font-size: 13px; }
  .poster-scroll { padding: 0 8px 12px; }
  .poster-page { margin-bottom: 10px; }
  .poster-page { border-radius: 10px; }
}

/* Programs: the closing ticket section is the page's only call to action, so it follows the day cards
   closely instead of the homepage's long run-up and divider. */
.page-programs .pg-days { padding-bottom: 0; }
:is(.page-programs, .page-faculty-facilitators) .page-end .final-cta { padding-top: 112px; }
:is(.page-programs, .page-faculty-facilitators) .final-cta::before { display: none; }
@media (max-width: 760px) {
  :is(.page-programs, .page-faculty-facilitators) .page-end .final-cta { padding-top: 72px; }
}
.pg-all .pill-cta.ghost { min-height: 44px; padding: 0 24px; box-shadow: none; }

/* Day buttons open a popup, they are not the page's call to action: same secondary pill as "View the full
   3-day program", on a pale fill so it shows against the white card. */
.pg-day-actions .pill-cta.ghost { min-height: 44px; padding: 0 24px; background: #e6f1f3; box-shadow: none; }
.pg-day-actions .pill-cta.ghost:hover { background: var(--h-ink); color: #fff; }

/* ---------- Faculty & Facilitators ---------- */
.fp-section { padding: calc(var(--section-gap) / 2) 0; }
.fp-leads-wrap { padding-top: 16px; background: var(--h-paper); }
.fp-fac-wrap { padding-bottom: 0; background: linear-gradient(180deg, var(--h-paper) 0%, var(--h-grey) 22%, #e2f0f1 85%, #d6ebed 100%); }
.fp-head { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto 36px; text-align: center; }
.fp-head .kicker { justify-content: center; }
.fp-head h2 { margin-top: 12px; color: var(--h-ink); font-family: var(--h-font); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.6px; text-wrap: balance; }
.fp-intro { max-width: 620px; margin-top: 14px; color: var(--h-body); font-size: 16px; line-height: 1.55; }
.fp-photo { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a8a9c 0%, #0b5a6b 75%); }
.fp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.fp-body h3 { color: var(--h-ink); font-family: var(--h-font); line-height: 1.2; }
.fp-role { margin-top: 4px; color: var(--h-body); line-height: 1.4; }
.fp-sessions { display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--h-line); list-style: none; }
.fp-sessions li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; color: var(--h-body); font-size: 13.5px; line-height: 1.4; }
.fp-sessions b { padding-top: 2px; color: #a8181c; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }

/* Facilitators: four across, portrait on top. */
.fp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.fp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--h-line); border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -44px #03384880; scroll-margin-top: 110px; }
.fp-card .fp-photo { aspect-ratio: 1 / 1; }
.fp-card .fp-body { padding: 18px 18px 20px; }
.fp-card h3 { font-size: 17px; }
.fp-card .fp-role { font-size: 13.5px; }
.fp-card .fp-sessions { margin-top: 14px; padding-top: 12px; }

@media (max-width: 1150px) {
  .fp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fp-head { margin-bottom: 24px; }
  .fp-intro { font-size: 15px; }
  .fp-grid { grid-template-columns: 1fr; gap: 12px; }
  .fp-card { flex-direction: row; border-radius: 18px; }
  .fp-card .fp-photo { flex: 0 0 104px; aspect-ratio: auto; }
  .fp-card .fp-body { flex: 1; min-width: 0; padding: 14px 16px 16px; }
  .fp-card h3 { font-size: 16px; }
  .fp-card .fp-role { font-size: 13px; }
  .fp-card .fp-sessions { margin-top: 10px; padding-top: 10px; gap: 6px; }
  .fp-sessions li { grid-template-columns: 44px minmax(0, 1fr); font-size: 13px; }
}
/* Facilitator rows wrap as flex so an incomplete last row sits centred. */
.fp-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.fp-card { flex: 0 0 calc((100% - 60px) / 4); }
@media (max-width: 1150px) { .fp-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 760px) { .fp-card { flex-basis: 100%; } }

/* Facilitator rows wrap as flex so an incomplete last row sits centred. */
.fp-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.fp-card { flex: 0 0 calc((100% - 60px) / 4); }
@media (max-width: 1150px) { .fp-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 760px) { .fp-card { flex-basis: 100%; } }

/* Lead faculty use the facilitator card, with their country line and credentials added. */
.fp-card-lead .lead-country { margin-bottom: 6px; color: var(--h-teal); }
.fp-card-lead .chair-inline { position: static; display: inline-flex; margin: -3px 0 -3px 6px; padding: 2px 9px; font-size: 10px; line-height: 1.4; }
.fp-card-lead .fp-cred { margin-top: 6px; font-size: 12.5px; }

/* Phones: every portrait is the same fixed rounded square at the top of its card, instead of a strip that
   stretched with the card's height (which zoomed taller cards' photos in). */
@media (max-width: 760px) {
  .fp-card { align-items: flex-start; gap: 14px; padding: 14px; }
  .fp-card .fp-photo { flex: 0 0 88px; aspect-ratio: 1 / 1; border-radius: 14px; }
  .fp-card .fp-body { padding: 2px 2px 2px 0; }
}

/* ---------- Tickets ---------- */
.tk-section { padding: 16px 0 calc(var(--section-gap) / 2); background: linear-gradient(180deg, var(--h-paper) 0%, var(--h-grey) 30%, #e2f0f1 82%, #d6ebed 100%); }
.tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; max-width: 1120px; margin: 0 auto; }
.tk-card { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border: 1px solid var(--h-line); border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -48px #03384880; }
.tk-card.is-featured { border: 2px solid var(--h-ink); }
.tk-card .tix-flag { position: absolute; top: -14px; left: 30px; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--h-ink); color: #fff; font-size: 12px; font-weight: 700; }
.tk-days { color: var(--h-orange-text); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tk-card h2 { margin-top: 8px; color: var(--h-ink); font-family: var(--h-font); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.4px; }

/* Which days the ticket covers. */
.tk-incl { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tk-incl li { display: flex; align-items: baseline; gap: 10px; color: var(--h-body); font-size: 15px; line-height: 1.4; }
.tk-incl li::before { content: ''; flex-shrink: 0; width: 11px; height: 6px; margin: 0 3px 3px 2px; border-left: 2px solid var(--h-teal); border-bottom: 2px solid var(--h-teal); transform: rotate(-45deg); }
.tk-incl li b { color: var(--h-ink); }
.tk-incl li.is-out { color: #9ab0b8; }
.tk-incl li.is-out b { color: #9ab0b8; }
.tk-incl li.is-out::before { width: 12px; height: 0; margin: 0 2px 5px 1px; border-left: 0; border-bottom-color: #b5c7cd; transform: none; }

/* Price table: rates down the side, Local / International across. */
.tk-table { width: 100%; margin: 26px 0 28px; border-collapse: separate; border-spacing: 0; }
.tk-table thead th { padding: 0 14px 10px; color: var(--h-ink); font-size: 13px; font-weight: 700; text-align: right; vertical-align: bottom; }
.tk-table thead small { display: block; margin-top: 2px; color: var(--h-muted); font-size: 11.5px; font-weight: 400; }
.tk-table tbody th, .tk-table tbody td { padding: 14px; border-top: 1px solid var(--h-line); }
.tk-table tbody th { text-align: left; font-weight: 400; }
.tk-period { display: flex; align-items: center; gap: 8px; color: var(--h-ink); font-size: 15px; font-weight: 700; }
.tk-table tbody th small { display: block; margin-top: 2px; color: var(--h-muted); font-size: 12px; }
.tk-table td { color: var(--h-ink); font-family: var(--h-font); font-size: 21px; font-weight: 700; text-align: right; white-space: nowrap; }
.tk-table td small { color: var(--h-muted); font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 700; }
.tk-now { display: none; padding: 2px 8px; border-radius: 999px; background: #c3161f; color: #fff; font-size: 10px; font-style: normal; letter-spacing: .6px; text-transform: uppercase; }
.tk-table tr.is-now th, .tk-table tr.is-now td { border-top-color: transparent; background: #fdf0ef; }
.tk-table tr.is-now + tr th, .tk-table tr.is-now + tr td { border-top-color: transparent; }
.tk-table tr.is-now th { border-radius: 14px 0 0 14px; }
.tk-table tr.is-now td:last-child { border-radius: 0 14px 14px 0; }
.tk-table tr.is-now .tk-now { display: inline-block; }
.tk-card .pill-cta { align-self: stretch; margin-top: auto; border: 0; }

/* Notes and help. */
.tk-notes { max-width: 820px; margin: 56px auto 0; padding: 32px 36px; border: 1px solid #fff; border-radius: 24px; background: #ffffffb8; }
.tk-notes h2 { color: var(--h-ink); font: 700 22px/1.2 var(--h-font); }
.tk-notes ul { display: grid; gap: 10px; margin: 16px 0 0; padding: 0 0 0 20px; color: var(--h-body); font-size: 15px; line-height: 1.55; }
.tk-help { margin-top: 20px; color: var(--h-body); font-size: 15px; }
.tk-contact { padding: 0; border: 0; background: none; color: var(--h-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tk-contact:hover { color: #a8181c; }

@media (max-width: 950px) {
  .tk-grid { grid-template-columns: 1fr; max-width: 620px; gap: 32px; }
}
@media (max-width: 760px) {
  .tk-card { padding: 30px 18px 22px; border-radius: 22px; }
  .tk-card .tix-flag { left: 18px; }
  .tk-card h2 { font-size: 23px; }
  .tk-incl li { font-size: 14px; }
  .tk-table { margin: 22px 0 22px; }
  .tk-table thead th { padding: 0 8px 8px; font-size: 12px; }
  .tk-table thead small { font-size: 10.5px; }
  .tk-table tbody th, .tk-table tbody td { padding: 12px 8px; }
  .tk-period { font-size: 14px; gap: 6px; }
  .tk-table tbody th small { font-size: 11px; }
  .tk-table td { font-size: 17px; }
  .tk-table td small { font-size: 10px; }
  .tk-notes { margin-top: 40px; padding: 24px 20px; border-radius: 20px; }
  .tk-notes ul { font-size: 14px; }
}
.tk-card h2 { text-wrap: balance; }
.tk-period { flex-wrap: wrap; row-gap: 4px; white-space: nowrap; }

/* Tickets: both cards share row heights (subgrid), so the price tables and buttons line up side by side. */
@media (min-width: 951px) {
  .tk-grid { align-items: stretch; }
  .tk-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .tk-card .pill-cta { align-self: end; }
}

/* Live early-bird countdown in the intro, styled like the homepage deadline badge. */
.pg-facts .pg-countdown { border-color: transparent; background: #fdeeee; color: #a8181c; font-variant-numeric: tabular-nums; }
.pg-facts .pg-countdown strong { color: #a8181c; }

/* Phones, pages whose closing is only the skyline: keep just a little of the extended sky so the footer follows
   the content closely. */
@media (max-width: 760px) {
  .pg-closing .final-skyline, .pg-closing .final-skyline:is(*) {
    aspect-ratio: 1280 / 1150;
    -webkit-mask-image: linear-gradient(180deg, #0000 0%, #0007 9%, #000 18%);
    mask-image: linear-gradient(180deg, #0000 0%, #0007 9%, #000 18%);
  }
  .tk-section, .pg-body { padding-bottom: 24px; }
}
.tk-card { border-width: 2px; }

/* Phones, skyline-only closing: a longer eased fade (no visible edge), tinted from the page colour into the sky.
   The spires start below the fade, so they stay fully visible. */
@media (max-width: 760px) {
  .pg-closing .final-skyline, .pg-closing .final-skyline:is(*) {
    -webkit-mask-image: linear-gradient(180deg, #0000 0%, #00000014 4%, #0004 8%, #0008 12%, #000b 16%, #000e 20%, #000 25%);
    mask-image: linear-gradient(180deg, #0000 0%, #00000014 4%, #0004 8%, #0008 12%, #000b 16%, #000e 20%, #000 25%);
  }
  .pg-closing .final-skyline::after { background: linear-gradient(180deg, #d6ebedd9 0%, #c9e4e88c 12%, #b3d9de40 22%, #9dcdd51a 32%, #0338481a 100%); }
}

/* Phones, skyline-only closing: the KLCC sky rises behind the end of the previous section and fades slowly into its
   background; that section's content stays in front. */
@media (max-width: 760px) {
  .tk-section .container, .pg-body .container, .sp-form-wrap .container { position: relative; z-index: 2; }
  .pg-closing .final-skyline, .pg-closing .final-skyline:is(*) {
    aspect-ratio: 1280 / 1442;
    margin-top: -220px;
    -webkit-mask-image: linear-gradient(180deg, #0000 0%, #0000000d 6%, #00000026 12%, #0000004d 18%, #00000080 24%, #000000b3 30%, #000000e0 35%, #000 40%);
    mask-image: linear-gradient(180deg, #0000 0%, #0000000d 6%, #00000026 12%, #0000004d 18%, #00000080 24%, #000000b3 30%, #000000e0 35%, #000 40%);
  }
  .pg-closing .final-skyline::after { background: linear-gradient(180deg, #d6ebedf2 0%, #d6ebed99 14%, #c4e2e64d 26%, #9dcdd51a 38%, #0338481a 100%); }
}
@media (max-width: 760px) {
  /* The closing section clips its content, so the whole section (not just the photo) moves up behind the previous one. */
  .page-end .pg-closing { margin-top: -170px; }
  .pg-closing .final-skyline, .pg-closing .final-skyline:is(*) { margin-top: 0; }
}

/* ---------- Sponsorship ---------- */
.sp-hero-cta { margin-top: 28px; border: 0; }
.sp-section { padding: calc(var(--section-gap) / 2) 0; }
.sp-invite-wrap { padding-top: 16px; background: var(--h-paper); }
.sp-tiers-wrap { background: linear-gradient(180deg, var(--h-paper) 0%, var(--h-grey) 18%, var(--h-grey) 100%); }
.sp-form-wrap { padding-bottom: calc(var(--section-gap) / 2); background: linear-gradient(180deg, var(--h-grey) 0%, #e2f0f1 70%, #d6ebed 100%); scroll-margin-top: 80px; }

/* Invitation, set as a formal letter (as in the prospectus): portrait in a red ring, justified text, signature block. */
.sp-invite-wrap .container { display: flex; flex-direction: column; align-items: center; }
.sp-invite-kicker { justify-content: center; margin-bottom: 20px; }
.sp-letter { display: flow-root; max-width: 900px; padding: 52px 60px 48px; border: 1px solid var(--h-line); border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -44px #03384880; color: var(--h-body); font-size: 16px; line-height: 1.7; }
.sp-letter-photo { float: left; width: 190px; height: 190px; margin: 0 40px 20px 0; border: 9px solid transparent; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #2a8a9c 0%, #0b5a6b 75%) padding-box, linear-gradient(135deg, #e0402c, #a8181c) border-box; object-fit: cover; object-position: 50% 0; }
.sp-letter p { margin-top: 16px; text-align: justify; hyphens: manual; }
.sp-letter p:first-of-type { margin-top: 6px; }
.sp-letter strong { color: var(--h-ink); }
.sp-letter-theme { color: var(--h-ink); font-weight: 700; text-align: left !important; }
.sp-letter-close { clear: both; margin-top: 32px !important; }
.sp-letter-sign { margin-top: 36px; }
.sp-letter-sign p { margin-top: 0; text-align: left; }
.sp-letter-name { display: inline-block; padding-bottom: 8px; border-bottom: 1px solid #c3161f80; color: var(--h-ink); font-family: var(--h-font); font-size: 17px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.sp-letter-title { margin-top: 10px !important; color: var(--h-ink); font-style: italic; }
.sp-letter-role { color: var(--h-ink); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sp-letter-cred { margin-top: 6px !important; max-width: 520px; color: var(--h-muted); font-size: 12.5px; font-style: italic; line-height: 1.5; }

/* Main tiers. */
.sp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 1120px; margin: 0 auto; }
.sp-tier { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--h-line); border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -48px #03384880; }
.sp-tier.is-featured { border: 2px solid var(--h-ink); }
.sp-tier-head { position: relative; padding: 30px 28px 24px; color: #fff; }
.sp-gold .sp-tier-head { background: linear-gradient(125deg, #8a6417 0%, #c9a13f 45%, #e8cf85 70%, #b48a2e 100%); }
.sp-silver .sp-tier-head { background: linear-gradient(125deg, #5e6b73 0%, #9aa7ae 45%, #d6dde1 70%, #83919a 100%); }
.sp-bronze .sp-tier-head { background: linear-gradient(125deg, #6e3b1f 0%, #a8643a 45%, #dca37b 70%, #93532d 100%); }
.sp-tier h3 { font-family: var(--h-font); font-size: 15px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; text-shadow: 0 1px 2px #0003; }
.sp-price { margin-top: 6px; font-family: var(--h-font); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -1px; text-shadow: 0 1px 3px #0003; }
.sp-price small { margin-right: 4px; font-size: .45em; letter-spacing: 0; vertical-align: .9em; }
.sp-slots { position: absolute; top: 28px; right: 24px; padding: 6px 13px; border-radius: 999px; background: linear-gradient(115deg, #e0402c 0%, #c3161f 55%, #a8181c 100%); color: #fff; font-size: 12px; font-weight: 700; text-shadow: none; box-shadow: 0 8px 18px -10px #a8181ccc; }
.sp-list { display: grid; gap: 10px; margin: 0; padding: 24px 28px 26px; list-style: none; }
.sp-list li { position: relative; padding-left: 26px; color: var(--h-body); font-size: 15px; line-height: 1.45; }
.sp-list li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 11px; height: 6px; border-left: 2px solid var(--h-teal); border-bottom: 2px solid var(--h-teal); transform: rotate(-45deg); }
.sp-tier .sp-enquire { align-self: stretch; margin: auto 28px 28px; border: 0; }
.sp-tier .pill-cta.ghost { background: #e6f1f3; box-shadow: none; }
.sp-tier .pill-cta.ghost:hover { background: var(--h-ink); color: #fff; }

/* Other sponsorships: the same card as the main tiers, in shiny IPIN teal. */
.sp-others-head { margin-top: calc(var(--section-gap) / 2); }
.sp-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1120px; margin: 0 auto; }
.sp-teal .sp-tier-head { background: linear-gradient(125deg, #033848 0%, #0a6275 38%, #3eaebd 66%, #b6e3e8 76%, #0b6072 100%); }
.sp-teal h3 { letter-spacing: 2px; }
.sp-teal .sp-price { font-size: 38px; }
.sp-teal .sp-list { padding: 22px 24px 24px; }
.sp-teal .sp-list li { font-size: 14.5px; }
.sp-teal .sp-enquire { margin: auto 24px 24px; }

/* Enquiry form. */
.sp-form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; max-width: 1120px; }
.sp-form-intro h2 { margin-top: 12px; color: var(--h-ink); font-family: var(--h-font); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.6px; }
.sp-form-intro > p:not(.kicker) { margin-top: 16px; color: var(--h-body); font-size: 16px; line-height: 1.6; }
.sp-contact { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.sp-contact li { display: grid; gap: 2px; }
.sp-contact span { color: var(--h-muted); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.sp-contact a { color: var(--h-ink); font-size: 16px; font-weight: 700; }
.sp-form { padding: 32px; border: 1px solid #fff; border-radius: 26px; background: #ffffffc7; box-shadow: 0 30px 60px -48px #03384880; }
.sp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp-fields[hidden] { display: none; }
.sp-fields label { display: grid; gap: 6px; color: var(--h-ink); font-size: 13px; font-weight: 700; }
.sp-fields .sp-wide { grid-column: 1 / -1; }
.sp-form input, .sp-form select, .sp-form textarea { width: 100%; min-height: 50px; padding: 12px 18px; border: 0; border-radius: 14px; background: #fff; color: var(--h-ink); font: 400 16px/1.4 Arial, Helvetica, sans-serif; box-shadow: inset 0 0 0 1px var(--h-line); }
.sp-form textarea { min-height: 120px; resize: vertical; }
.sp-form select { -webkit-appearance: none; appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23034c60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 16px center / 16px 16px no-repeat; cursor: pointer; }
.sp-form input:focus, .sp-form select:focus, .sp-form textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--h-teal); }
.sp-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #a8181c; }
.sp-form ::placeholder { color: #8aa3ab; opacity: 1; }
.sp-error { margin-top: 14px; color: #a8181c; font-size: 14px; }
.sp-error[hidden], .sp-done[hidden], .sp-send[hidden] { display: none; }
.sp-send { margin-top: 20px; border: 0; font-family: inherit; }
.sp-done h3 { color: var(--h-ink); font: 700 22px/1.2 var(--h-font); }
.sp-done p { margin-top: 8px; color: var(--h-body); }

@media (max-width: 1150px) {
  .sp-others { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
@media (max-width: 950px) {
  .sp-tiers { grid-template-columns: 1fr; max-width: 560px; }
  .sp-form-grid { grid-template-columns: 1fr; gap: 28px; max-width: 640px; }
}
@media (max-width: 760px) {
  .sp-letter { padding: 28px 22px 30px; border-radius: 18px; font-size: 15px; line-height: 1.65; }
  .sp-letter-photo { width: 112px; height: 112px; margin: 0 18px 10px 0; border-width: 6px; }
  .sp-letter p { text-align: left; }
  .sp-tier-head { padding: 24px 22px 20px; }
  .sp-price { font-size: 38px; }
  .sp-slots { top: 22px; right: 18px; }
  .sp-list { padding: 20px 22px 22px; }
  .sp-tier .sp-enquire { margin: auto 22px 22px; }
  .sp-others { grid-template-columns: 1fr; }
  .sp-form { padding: 22px 18px; border-radius: 22px; }
  .sp-fields { grid-template-columns: 1fr; }
  .sp-send { width: 100%; }
}
.sp-teal h3 { letter-spacing: 1.5px; }
/* Other sponsorship cards share row heights, so headers and lists line up across the row. */
@media (min-width: 1151px) {
  .sp-others .sp-tier { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .sp-others .sp-enquire { align-self: end; }
}

/* Skyline-only closing (Tickets, Sponsorship, Checkout, My Account): the previous section's colour continues (the short
   page-end's side glows used to show as a line), the whole closing moves up behind that section so the blue rises
   behind it, and that section's content stays in front. */
.page-end:has(.pg-closing), .page-end:has(.pg-closing):is(*) { background: #d6ebed; }
.tk-section .container, .pg-body .container, .sp-form-wrap .container { position: relative; z-index: 2; }
@media (min-width: 761px) {
  /* Same crop and size as the homepage's first skyline (about 400px of city below the content), plus a 140px strip of
     the photo's extended sky that rises behind the end of the previous section and fades in gently. */
  .page-end .pg-closing { margin-top: -140px; }
  .pg-closing .final-skyline, .pg-closing .final-skyline:is(*) {
    height: auto;
    aspect-ratio: 2.667;
    margin-top: 0;
    background: url('assets/klcc-park-twilight-sky-tall.webp') 50% 64.1% / 100% auto no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #0000 0%, #0000000d 10%, #00000026 20%, #0000004d 30%, #0000007a 40%, #00000099 48%, #000000d1 58%, #000 69%);
    mask-image: linear-gradient(180deg, #0000 0%, #0000000d 10%, #00000026 20%, #0000004d 30%, #0000007a 40%, #00000099 48%, #000000d1 58%, #000 69%);
  }
  .pg-closing .final-skyline::after { background: linear-gradient(180deg, #d6ebed80 0%, #bfdfe380 26%, #9dcdd533 70%, #0338481a 100%); }
}
/* Keep the pulled-up closing's negative margin from collapsing through .page-end (which moved its flat background up
   over the previous section and left a line at its top edge). */
.page-end:has(.pg-closing) { display: flow-root; }
