/*
 * LCCA Concept E — London Heritage palette preview
 *
 * London Navy provides the civic anchor, Chinatown Red carries calls to action,
 * Warm Ivory softens large surfaces, and Ceremonial Gold is reserved for
 * fine details and depth. No inherited green is used in this preview.
 */

:root {
  --navy: #18324a;
  --navy-deep: #102436;
  --navy-soft: #e9eef2;
  --red: #c52430;
  --red-dark: #921923;
  --red-soft: #f7e7e9;
  --ink: #20252b;
  --muted: #5c6267;
  --warm: #f2ede4;
  --white: #ffffff;
  --paper: #f7f3ea;
  --paper-light: #fffdf8;
  --amber: #d8a83e;
  --line: #d8d1c5;
  --shadow: 10px 10px 0 rgba(216, 168, 62, .2);
  --shadow-soft: 5px 5px 0 rgba(216, 168, 62, .16);
}

html { background: var(--paper); }

body.concept-jade {
  color: var(--ink);
  background: var(--paper);
}

/* The route renderer focuses <main> for screen-reader navigation. Chrome's
   default outline otherwise draws a blue frame around the whole page until
   the first pointer click. Interactive controls keep their focus styles. */
#main-content:focus { outline: none; }

.skip-link {
  color: var(--white);
  background: var(--navy-deep);
}

.announcement-bar {
  color: var(--white);
  background: var(--navy);
  border-bottom-color: var(--amber);
}

.announcement-inner a { color: var(--white); }

.compare-links {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.compare-links a {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .62);
  text-decoration: none;
}

.compare-links a:hover,
.compare-links a:focus-visible {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.brand {
  background: var(--white);
  border-left-color: var(--red);
}

.desktop-nav > a,
.nav-dropdown-toggle { color: var(--ink); }

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--red-dark);
  background: var(--red-soft);
  box-shadow: inset 0 -3px 0 var(--red);
}

.nav-dropdown-menu {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 12px 12px 0 rgba(216, 168, 62, .2);
}

.nav-dropdown-menu a { border-bottom-color: var(--line); }

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--red-dark);
  background: var(--red-soft);
}

.button {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 5px 5px 0 var(--amber);
}

.button:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 5px 5px 0 var(--amber);
}

.button-secondary:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.button-outline {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
  box-shadow: 5px 5px 0 var(--amber);
}

.button-outline:hover {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.menu-toggle {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.mobile-menu { background: rgba(24, 50, 74, .64); }

.mobile-menu-panel {
  color: var(--ink);
  background: var(--paper);
  box-shadow: -10px 0 0 var(--red);
}

.mobile-menu-head { border-color: var(--line); }
.mobile-menu nav a.active { color: var(--red); }
.mobile-menu-group { border-color: var(--line); }
.mobile-menu-group a { color: var(--muted); }

.mobile-menu-contact {
  color: var(--white);
  background: var(--navy);
  border-left: 5px solid var(--amber);
}

.hero {
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    var(--navy);
  background-size: 52px 52px;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(24, 50, 74, .94), rgba(24, 50, 74, .2) 48%, transparent 74%),
    linear-gradient(0deg, rgba(24, 50, 74, .38), transparent 50%);
}

.hero::before { -webkit-text-stroke-color: rgba(255, 255, 255, .12); }
.hero-content > p { color: rgba(255, 255, 255, .86); }
.hero .eyebrow { color: var(--white); }

.hero-kicker {
  color: var(--ink);
  background: var(--amber);
}

.hero-about .hero-media img { object-position: center top; }

/* Repeated image components use fixed frames so source dimensions never
   make one item appear larger or smaller than its neighbours. */
.timeline-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.timeline-media {
  position: relative;
  min-height: 0;
}

.timeline-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.gallery-item,
.gallery-item:nth-child(1),
.gallery-item:nth-child(2),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) {
  grid-column: span 1;
  aspect-ratio: 4 / 3;
}

.gallery-item img,
.gallery-item:nth-child(1) img,
.gallery-item:nth-child(6) img {
  width: 100%;
  height: 100%;
}

.timeline-item:first-child .timeline-media img { object-position: center top; }

.timeline-item:nth-child(2) .timeline-media img { object-position: center 46%; }

.timeline-item:nth-child(3) .timeline-media,
.timeline-item:nth-child(3) .timeline-media img { background: #ed1b23; }

.timeline-item:nth-child(3) .timeline-media img {
  object-fit: contain;
  object-position: center;
}

.timeline-item:nth-child(4) .timeline-media img { object-position: center top; }

.timeline-year-word {
  margin-bottom: 14px;
  font-size: clamp(3.8rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.045em;
}

/* Contact uses a responsive typographic artwork instead of photography. */
.hero-contact::before { content: ""; }

.hero-contact::after {
  background: linear-gradient(90deg, var(--navy) 0%, rgba(24, 50, 74, .38) 26%, transparent 62%);
}

.hero-contact .contact-word-art {
  isolation: isolate;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(145deg, var(--navy-deep), var(--navy));
  background-size: 52px 52px, 52px 52px, auto;
}

.hero-contact .contact-word-art::before {
  position: absolute;
  z-index: 0;
  width: 66%;
  height: 3px;
  background: var(--red);
  box-shadow: none;
  content: "";
  transform: translateY(82px);
}

.hero-contact .contact-word-art::after {
  position: absolute;
  z-index: 1;
  top: calc(50% + 75px);
  right: 16%;
  width: 15px;
  height: 15px;
  background: var(--amber);
  content: "";
}

.contact-word-mark {
  position: relative;
  z-index: 1;
  color: var(--paper-light);
  font-size: clamp(5.3rem, 7.5vw, 7.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .015em;
  text-shadow: none;
  white-space: nowrap;
}

.event-overview {
  position: relative;
  z-index: 3;
  width: var(--shell);
  margin: 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  box-shadow: 8px 8px 0 rgba(216, 168, 62, .18);
}

.event-overview .event-facts {
  width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.event-highlight {
  display: grid;
  grid-template-columns: minmax(160px, .28fr) 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 22px 24px;
}

.event-highlight-zodiac { border-top: 1px solid var(--line); }

.event-highlight span {
  color: var(--red);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.event-highlight-save-date span {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.1;
}

.event-highlight strong {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.03em;
}

.event-highlight-zodiac strong { color: var(--navy); }

.event-highlight-zodiac span {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .11em;
}

.event-facts {
  box-shadow: 8px 8px 0 rgba(216, 168, 62, .18);
}

.event-fact { border-color: var(--line); }
.event-fact span {
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .11em;
}

.section { border-top-color: var(--line); }
.section-warm { background: var(--warm); }

.section-green {
  color: var(--ink);
  background: var(--navy-soft);
}

.section-green .eyebrow { color: var(--red); }
.section-head { border-top-color: var(--navy); }
.section-green .section-head { border-color: var(--red); }
.section-green .section-head p,
.section-green .muted { color: var(--muted); }

.media-frame {
  background: var(--amber);
  box-shadow: 10px 10px 0 var(--red);
}

.text-link { color: var(--red); }

.stats-grid { border-color: rgba(24, 50, 74, .24); }

.stat {
  color: var(--ink);
  border-color: rgba(24, 50, 74, .24);
}

.stat strong { color: var(--navy); }

.card-grid,
.feature-grid,
.timeline,
.steps-grid {
  border-color: var(--navy);
}

.card,
.feature-card,
.timeline-item,
.step-card {
  border-color: var(--navy);
}

.card:hover { box-shadow: inset 0 -6px 0 var(--red); }
.tag-red { color: var(--red-dark); }

.feature-card .icon,
.step-card::before,
.check-list li::before,
.faq summary::after {
  color: var(--ink);
  background: var(--amber);
}

.timeline-item:nth-child(even) {
  color: var(--ink);
  background: var(--navy-soft);
  box-shadow: 40px 0 0 var(--navy-soft), -40px 0 0 var(--navy-soft);
}

.timeline-year { color: var(--red); }
.timeline-item:nth-child(even) .timeline-year { color: var(--navy); }

.programme-summary {
  color: var(--white);
  background: var(--navy);
  border-top-color: var(--amber);
}

.programme-summary .eyebrow { color: var(--white); }

.programme-cta-shell { align-items: stretch; }
.programme-cta-shell .programme-summary { position: static; }
.programme-highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.programme-highlight .button-row { margin-top: 8px; }

.schedule::before { background: var(--red); }
.schedule-item time { color: var(--red-dark); }
.schedule-item > div { border-color: var(--navy); }

.schedule-item > div::before {
  background: var(--amber);
  border-color: var(--paper);
  box-shadow: 0 0 0 1px var(--navy);
}

.quote-card {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(24, 50, 74, .32);
}

.quote-card::before { color: var(--red); }

.logo-grid {
  background: var(--navy);
  border-color: var(--navy);
}

.supported-grid {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  background: transparent;
}

.logo-card,
.supported-grid .logo-card { border-color: var(--navy); }
.logo-box {
  background: var(--white);
  border-bottom-color: var(--line);
}

.logo-box {
  position: relative;
  padding: 0;
}

.logo-box img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  margin: 0;
}

/* Keep incomplete logo rows white instead of exposing the grid's navy rule. */
@media (min-width: 1051px) {
  .logo-grid:not(.supported-grid)::after {
    content: "";
    grid-column: span 2;
    min-height: 232px;
    background:
      linear-gradient(
        90deg,
        transparent calc(50% - .5px),
        var(--navy) calc(50% - .5px),
        var(--navy) calc(50% + .5px),
        transparent calc(50% + .5px)
      ),
      var(--paper);
    border-right: 1px solid var(--navy);
    border-bottom: 1px solid var(--navy);
  }

}

@media (min-width: 761px) and (max-width: 1050px) {
  .logo-grid:not(.supported-grid)::after {
    content: "";
    min-height: 232px;
    background: var(--paper);
    border-right: 1px solid var(--navy);
    border-bottom: 1px solid var(--navy);
  }

}

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

.logo-card:hover .logo-box { box-shadow: inset 0 0 0 5px var(--red-soft); }

.cta-band {
  color: var(--white);
  background: var(--red);
  border-color: var(--red-dark);
}

.faq details {
  background: var(--white);
  border-color: var(--navy);
}

.contact-layout { border-color: var(--navy); }

.contact-layout > div:first-child {
  color: var(--white);
  background: var(--navy);
}

.contact-card { border-color: rgba(255, 255, 255, .32); }
.contact-layout > div:first-child .eyebrow,
.contact-card span { color: var(--white); }
.contact-card a { color: var(--white); }

.contact-form { background: var(--white); }

.field input,
.field textarea,
.field select { border-color: var(--navy); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--red);
  box-shadow: 4px 4px 0 rgba(216, 168, 62, .22);
}

.notice-page {
  color: var(--ink);
  background:
    linear-gradient(135deg, transparent 0 68%, rgba(216, 168, 62, .14) 68%),
    var(--paper);
}

.site-footer {
  color: rgba(255, 255, 255, .84);
  background: var(--navy);
  border-top-color: var(--red);
}

.footer-grid { border-left-color: rgba(255, 255, 255, .18); }
.footer-grid > div { border-right-color: rgba(255, 255, 255, .18); }
.site-footer h2 { color: var(--amber); }
.site-footer a { color: var(--white); }

.footer-brand img {
  background: var(--white);
  border-left-color: var(--red);
}

.social-links a {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
}

.newsletter-form {
  background: var(--white);
  border-color: rgba(255, 255, 255, .72);
}
.newsletter-form input { color: var(--ink); }
.newsletter-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.newsletter-form button {
  color: var(--navy);
  background: var(--amber);
}

.footer-bottom { border-color: rgba(255, 255, 255, .18); }

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy-deep);
}

@media (max-width: 760px) {
  .compare-links { display: none; }

  .timeline-item { grid-template-columns: 1fr; }

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

  .hero::after {
    background: linear-gradient(0deg, rgba(24, 50, 74, .78), transparent 66%);
  }

  .hero-contact::after { background: linear-gradient(0deg, rgba(24, 50, 74, .28), transparent 58%); }

  .hero-contact .contact-word-art::before {
    width: calc(100% - 64px);
    height: 2px;
    box-shadow: none;
    transform: translateY(51px);
  }

  .hero-contact .contact-word-art::after {
    top: calc(50% + 44px);
    right: 32px;
    width: 12px;
    height: 12px;
  }

  .contact-word-mark {
    font-size: clamp(3rem, 14vw, 4.6rem);
    letter-spacing: .01em;
    text-shadow: none;
  }

  .stat { border-bottom-color: rgba(24, 50, 74, .24); }

  .timeline-item:nth-child(even) {
    box-shadow: 20px 0 0 var(--navy-soft), -20px 0 0 var(--navy-soft);
  }

  /* The shared mobile timeline reserves 34px for a dot/rail that this
     editorial concept deliberately removes. Reclaim it to prevent a 320px
     viewport from growing wider than the screen. */
  .timeline-item {
    min-width: 0;
    padding-inline: 0;
  }

  .timeline-year-word {
    margin-bottom: 10px;
    font-size: 4rem;
    line-height: .96;
  }

  .footer-grid > div { border-bottom-color: rgba(255, 255, 255, .18); }

  .event-overview {
    width: 100%;
    border-right: 0;
    border-left: 0;
    box-shadow: 0 8px 0 rgba(216, 168, 62, .18);
  }

  .event-highlight {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 21px 20px 22px;
  }

  .event-highlight strong {
    max-width: 27ch;
    font-size: 1.2rem;
  }

  .event-highlight-save-date span { font-size: 1.35rem; }

  .event-highlight-zodiac span,
  .event-fact span { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .announcement-inner > span { display: none; }

  .gallery-grid { grid-template-columns: 1fr; }

  .supported-grid .logo-card { grid-template-rows: 112px auto; }
  .supported-grid .logo-box { height: 112px; }
}

.lcca-img-code { position: absolute; top: 4px; left: 4px; z-index: 6; font: 700 12px/1.4 ui-monospace, Menlo, monospace; letter-spacing: 0.05em; color: transparent; user-select: all; -webkit-user-select: all; cursor: text; }
.lcca-img-code::selection { color: #fff; background: #C8102E; }
.lcca-img-code::-moz-selection { color: #fff; background: #C8102E; }

/* timeline centre fix: label + diamond vertically centred against each card (card centre = 50% of item minus half the 34px bottom padding) */
.schedule-item time { align-self: center; }
.schedule-item > div::before { top: calc(50% - 17px); transform: translate(0, -50%) rotate(45deg); }

/* timeline line head/tail: span exactly from first card top to last card bottom (items carry 34px bottom padding) */
.schedule::before { top: 0; bottom: 34px; }

/* cta-band seam fix: remove the 1px dark hairline that reads as a black line between the red band and the footer red strip */
.cta-band { border-bottom: 0; }
