/* Chinese New Year Melbourne — festival programme.
   Lacquer red, lantern gold, ivory paper, ink.
   Not a reuse of any earlier restoration palette. */
:root {
  --cny-red: #8f1d2c;
  --cny-red-deep: #5c1018;
  --cny-gold: #c6922e;
  --cny-gold-soft: #f0d7a2;
  --cny-ivory: #fbf6ee;
  --cny-paper: #fffdf8;
  --cny-ink: #1c1412;
  --cny-ink-soft: #5c4e48;
  --cny-line: rgba(28, 20, 18, 0.12);
  --cny-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --cny-body: "Outfit", "Segoe UI", sans-serif;
  --cny-radius: 18px;
  --cny-shadow: 0 18px 40px rgba(92, 16, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cny-ink);
  background: var(--cny-ivory);
  font-family: var(--cny-body);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--cny-red); }
button, input { font: inherit; }

.cny-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(251, 246, 238, 0.94);
  border-bottom: 1px solid var(--cny-line);
  backdrop-filter: blur(10px);
}
.cny-brand {
  font-family: var(--cny-display);
  font-weight: 650;
  font-size: 1.35rem;
  color: var(--cny-red-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.cny-nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--cny-red);
  background: transparent;
  color: var(--cny-red-deep);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.cny-nav {
  display: flex;
  gap: 0.35rem 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cny-nav a {
  color: var(--cny-ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.cny-nav a:hover { color: var(--cny-red); }
.cny-search {
  margin-left: auto;
  position: relative;
}
.cny-search input {
  width: 14rem;
  border: 1px solid var(--cny-line);
  background: var(--cny-paper);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}
.cny-results {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  width: min(26rem, 80vw);
  background: var(--cny-paper);
  border: 1px solid var(--cny-line);
  border-radius: 12px;
  box-shadow: var(--cny-shadow);
  max-height: 22rem;
  overflow: auto;
  display: none;
}
.cny-results.is-open { display: block; }
.cny-results a {
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--cny-ink);
  border-bottom: 1px solid var(--cny-line);
}
.cny-results a.is-active,
.cny-results a:hover { background: #f8efe3; }
.cny-results small { display: block; color: var(--cny-ink-soft); }

.cny-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(198, 146, 46, 0.35), transparent 28%),
    linear-gradient(160deg, var(--cny-red) 0%, var(--cny-red-deep) 78%);
  color: #fffaf3;
  padding: 2.5rem 1.25rem 2rem;
}
.cny-hero-copy { max-width: 72rem; margin: 0 auto 1.25rem; }
.cny-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cny-gold-soft);
}
.cny-hero h1 {
  margin: 0;
  font-family: var(--cny-display);
  font-weight: 650;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.cny-carousel { max-width: 72rem; margin: 0 auto; position: relative; }
.cny-viewport { overflow: hidden; border-radius: var(--cny-radius); }
.cny-track { display: flex; will-change: transform; }
.cny-slide { min-width: 100%; margin: 0; }
.cny-carousel figure,
.cny-carousel img { margin: 0; display: block; width: 100%; height: min(58vw, 28rem); object-fit: cover; }
.cny-carousel figcaption {
  position: absolute;
  left: 1rem;
  bottom: 3rem;
  background: rgba(28, 20, 18, 0.62);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.cny-carousel button.cny-arrow {
  position: absolute;
  top: 42%;
  border: 0;
  background: rgba(251, 246, 238, 0.92);
  color: var(--cny-red-deep);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
}
.cny-prev { left: 0.6rem; }
.cny-next { right: 0.6rem; }
.cny-dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 0.7rem; }
.cny-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 250, 243, 0.45);
  padding: 0;
}
.cny-dots button.is-on { background: var(--cny-gold-soft); }

.cny-crumb {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.8rem 1.25rem 0;
  color: var(--cny-ink-soft);
  font-size: 0.9rem;
}
.cny-crumb a { color: var(--cny-ink-soft); text-decoration: none; }
.cny-sheet {
  max-width: 72rem;
  margin: 0.6rem auto 2rem;
  background: var(--cny-paper);
  border-radius: var(--cny-radius);
  box-shadow: var(--cny-shadow);
  padding: 1.25rem 1.25rem 2rem;
}
.cny-close {
  background: var(--cny-gold-soft);
  color: var(--cny-red-deep);
  padding: 2rem 1.25rem;
}
.cny-close-inner {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.cny-close p { margin: 0; font-family: var(--cny-display); font-size: 1.6rem; }
.cny-close a, .cny-close button {
  background: var(--cny-red);
  color: #fffaf3;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.cny-footer {
  background: var(--cny-ink);
  color: #f6efe6;
  padding: 2rem 1.25rem 2.5rem;
}
.cny-footer a { color: var(--cny-gold-soft); text-decoration: none; }
.cny-footer-inner { max-width: 72rem; margin: 0 auto; }
.cny-footer-row {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
}
@media (max-width: 800px) {
  .cny-footer-row { grid-template-columns: 1fr 1fr; }
}
.cny-footer-logo { width: 9rem; height: auto; background: #fff; border-radius: 8px; padding: 0.35rem 0.5rem; }
.cny-wechat { width: 5.2rem; height: auto; background: #fff; border-radius: 8px; padding: 0.25rem; }
.cny-footer-social { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.cny-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.8rem; }
.cny-footer small { display: block; margin-top: 1.2rem; color: #cbbfb6; }
.cny-legacy .elementor-section:has(.elementor-widget-social-icons) { display: none !important; }

.cny-modal[hidden] { display: none; }
.cny-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 18, 0.55);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.cny-modal-card {
  background: var(--cny-paper);
  border-radius: var(--cny-radius);
  max-width: 32rem;
  width: 100%;
  padding: 1.25rem;
}
.cny-modal-card h2 { font-family: var(--cny-display); margin-top: 0; }
.cny-modal-card input, .cny-modal-card textarea {
  width: 100%;
  margin: 0.3rem 0 0.7rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--cny-line);
  border-radius: 8px;
}

.cny-legacy { overflow-wrap: break-word; }
.cny-legacy h2, .cny-legacy h3 { font-family: var(--cny-display); line-height: 1.2; margin: 0 0 0.6rem; }
.cny-legacy p { margin: 0 0 0.85rem; }
.cny-legacy img, .cny-legacy video, .cny-legacy iframe { max-width: 100%; height: auto; }
.cny-legacy table { width: 100%; border-collapse: collapse; }
.cny-legacy td, .cny-legacy th { height: auto !important; padding: 0.35rem 0.45rem; vertical-align: top; }
.cny-legacy #wp-calendar,
.cny-legacy table.calendar { table-layout: fixed; width: 100%; }
.cny-legacy #wp-calendar caption {
  caption-side: top;
  text-align: center;
  font-weight: 600;
  padding-bottom: 0.45rem;
}
.cny-legacy #wp-calendar th,
.cny-legacy #wp-calendar td,
.cny-legacy table.calendar th,
.cny-legacy table.calendar td { text-align: center; width: auto; }
.cny-legacy .cny-photogrid,
.cny-legacy .cny-photogrid tbody,
.cny-legacy .cny-photogrid tr { display: flex; flex-wrap: wrap; gap: 0.6rem; border: 0; }
.cny-legacy .cny-photogrid td { display: block; flex: 1 1 180px; border: 0; }
.cny-legacy .cny-photogrid img { border-radius: 12px; }
.cny-legacy footer,
.cny-legacy .footer-area,
.cny-legacy #footer,
.cny-legacy .elementor-location-header,
.cny-legacy .elementor-widget-nav-menu,
.cny-legacy .elementor-nav-menu--main { display: none !important; }
.cny-home .cny-legacy .elementor-top-section:first-child { display: none; }
.cny-legacy .elementor-section,
.cny-legacy .elementor-container,
.cny-legacy .elementor-widget-wrap,
.cny-legacy .elementor-widget-container,
.cny-legacy .elementor-column-wrap { width: 100%; max-width: 100%; }
.cny-legacy .elementor-container,
.cny-legacy .elementor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  gap: 0.35rem 1.25rem;
}
.cny-legacy .elementor-column {
  min-width: 0;
  box-sizing: border-box;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
}
.cny-legacy .elementor-col-100 { flex: 1 1 100%; }
.cny-legacy .elementor-col-50 { flex: 1 1 calc(50% - 1.25rem); }
.cny-legacy .elementor-col-33 { flex: 1 1 calc(33.333% - 1.25rem); }
.cny-legacy .elementor-col-25 { flex: 1 1 calc(25% - 1.25rem); }
.cny-legacy .elementor-column:not(:has(.elementor-widget)) { display: none !important; }
.cny-legacy .elementor-widget-wrap { padding: 0.35rem 0.15rem; }
.cny-legacy .elementor-widget-image img { display: block; }
.cny-legacy .elementor-divider {
  border: 0;
  border-top: 1px solid var(--cny-gold);
  margin: 0.35rem 0 0.85rem;
  height: 0;
}
.cny-legacy .elementor-divider-separator { display: none; }
.cny-legacy .elementor-screen-only,
.cny-legacy .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
.cny-legacy .elementor-social-icon .elementor-screen-only {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
}
.cny-legacy .elementor-social-icons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
}
.cny-legacy .elementor-social-icon { text-decoration: none; }
.cny-legacy .elementor-social-icon i { display: none; }
.cny-legacy .fusion-builder-row,
.cny-legacy .fusion-row,
.cny-legacy .avada-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  width: 100% !important;
}
.cny-legacy .fusion-layout-column,
.cny-legacy .fusion-column {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  flex: 1 1 18rem;
  min-width: 0;
  max-width: 100%;
}
.cny-legacy .fusion-one-full { flex-basis: 100%; }
.cny-legacy .portfolio-item .yellow-bg,
.cny-legacy .third-brick {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 0 1.35rem;
}
.cny-legacy .event-image,
.cny-legacy .event-data { flex: 1 1 18rem; min-width: 0; }
.cny-legacy .event-image {
  aspect-ratio: 3 / 2;
  min-height: 220px;
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
}
.cny-legacy .pastDate {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
  background: var(--cny-paper);
  color: var(--cny-red-deep);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.cny-legacy .event-data { padding: 0.85rem 1rem 0.4rem; }
@media (min-width: 768px) {
  .cny-legacy .elementor-row:has(> .elementor-column .elementor-widget-heading):not(:has(> .elementor-column .elementor-widget-image)) > .elementor-column:not(:has(.elementor-widget-heading)) {
    padding-top: 2.75rem;
  }
}
@media (min-width: 1025px) {
  .elementor-hidden-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-hidden-tablet { display: none !important; }
}
@media (max-width: 767px) {
  .cny-legacy .elementor-column,
  .cny-legacy .fusion-layout-column,
  .cny-legacy .fusion-column { flex: 1 1 100% !important; width: 100% !important; }
  .elementor-hidden-phone, .elementor-hidden-mobile { display: none !important; }
}
.cny-legacy font { font-size: inherit !important; color: inherit !important; }
.cny-legacy hr { border: 0; border-top: 1px solid var(--cny-gold); }
.cny-altpill {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--cny-gold-soft);
  color: var(--cny-red-deep);
  text-decoration: none;
}

.cny-blog-lead { margin: 0 0 1.1rem; color: var(--cny-ink-soft); }
.cny-blog-zh {
  margin: 0.5rem 0 0.8rem;
  font-family: var(--cny-display);
  color: var(--cny-red-deep);
}
.cny-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.15rem;
  margin: 0 0 2rem;
}
.cny-post {
  display: flex;
  flex-direction: column;
  background: var(--cny-paper);
  border: 1px solid var(--cny-line);
  border-radius: var(--cny-radius);
  overflow: hidden;
  box-shadow: var(--cny-shadow);
  text-decoration: none;
  color: inherit;
}
.cny-post img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}
.cny-post div { padding: 0.9rem 1rem 1.1rem; }
.cny-post time {
  display: block;
  color: var(--cny-red);
  font-size: 0.82rem;
  font-weight: 600;
}
.cny-post h2 {
  font-family: var(--cny-display);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0.3rem 0 0.45rem;
  color: var(--cny-red-deep);
}
.cny-post p { margin: 0; color: var(--cny-ink-soft); font-size: 0.95rem; }
.cny-post:hover h2 { color: var(--cny-red); }

@media (max-width: 900px) {
  .cny-nav-toggle { display: inline-block; }
  .cny-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cny-ivory);
    padding: 0.8rem 1.25rem 1rem;
    border-bottom: 1px solid var(--cny-line);
  }
  .cny-nav.is-open { display: flex; }
  .cny-search { margin-left: 0; }
  .cny-search input { width: 9rem; }
  .cny-header { flex-wrap: wrap; }
}
