/*
Theme Name: TriniScene
Description: The editorial and cultural discovery theme for TriniScene.
Version: 0.3.1
Requires PHP: 8.1
Text Domain: triniscene
*/

:root {
  --paper: #f9f7f2;
  --ink: #101f38;
  --muted: #465469;
  --teal: #155075;
  --aqua: #acd9ec;
  --accent: #f6bd82;
  --line: #d6dde2;
  --display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3 { line-height: 1.08; margin: 0 0 .65rem; letter-spacing: -.035em; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2.35rem, 4.9vw, 4.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #168593;
  outline-offset: 4px;
}
img { max-width: 100%; height: auto; display: block; }
.skip-link { position: fixed; left: .8rem; top: .8rem; padding: .6rem; transform: translateY(-250%); background: white; z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.ts-wrap { width: min(92%, 1320px); margin-inline: auto; }
.ts-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.ts-header-inner { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: 1rem 0; }
.ts-brand { color: inherit; font: 700 1.85rem/1 var(--display); letter-spacing: -.065em; display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.ts-brand img { width: 42px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.ts-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem 1.25rem; }
.ts-nav a, .ts-footer a { color: inherit; text-decoration: none; font-weight: 600; }
.ts-nav a:hover, .ts-footer a:hover { text-decoration: underline; }
.ts-menu-toggle, .ts-nav .ts-nav-list-event { display: none; }
.ts-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem 1.25rem;
  border-radius: 5rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: #182234;
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.ts-button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ts-button-outline { background: transparent; border-color: currentColor; color: inherit; }
.ts-header-button { background: var(--ink); color: white; white-space: nowrap; }
.ts-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.ts-hero { background: linear-gradient(125deg, #101f38 25%, #1c4268 100%); color: white; }
.ts-hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(1.5rem, 4vw, 5rem); padding-block: clamp(2rem, 5vw, 4.75rem); }
.ts-hero-content { min-width: 0; }
.ts-hero-art { position: relative; aspect-ratio: 1.32; overflow: hidden; border: 1px solid #9cc3e2; border-radius: 58% 36% 57% 28% / 53% 26% 57% 28%; }
.ts-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 88% center; }
.ts-hero .ts-label { color: var(--aqua); margin-bottom: .8rem; }
.ts-hero h1 { font-size: clamp(3.05rem, 6.8vw, 7.2rem); line-height: .94; margin-bottom: 1.2rem; letter-spacing: -.07em; }
.ts-hero h1 em { color: var(--aqua); }
.ts-hero-content > p:not(.ts-label) { color: #e5edf5; font-size: clamp(1.03rem, 1.65vw, 1.35rem); max-width: 25rem; }
.ts-home-paths { background: #eaf3f9; border-bottom: 1px solid var(--line); }
.ts-home-paths-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ts-home-paths a { display: flex; align-items: center; justify-content: space-between; gap: .55rem; min-height: 4rem; padding: .65rem clamp(.65rem, 2vw, 1.6rem); color: var(--teal); font-weight: 700; text-decoration: none; }
.ts-home-paths a::after { content: ""; width: .45rem; height: .45rem; flex: 0 0 .45rem; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.ts-home-paths a:hover { background: #dbeaf4; text-decoration: underline; }
.ts-home-paths a + a { border-left: 1px solid var(--line); }
.ts-label { color: var(--teal); font-weight: 750; text-transform: uppercase; letter-spacing: .06em; font-size: .79rem; margin: 0 0 .4rem; }
.ts-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ts-section-title { display: flex; align-items: baseline; gap: .6rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: .65rem; }
.ts-section-title > a, .ts-audio a { font-weight: 750; }
.ts-tour { background: #eaf3f9; }
.ts-dark, .ts-footer { color: var(--paper); background: #182437; }
.ts-dark a { color: var(--aqua); }
.ts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.ts-editorial { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 1.6rem; }
.ts-editorial > .ts-card .ts-card-link { display: grid; grid-template-columns: 1.25fr 1fr; }
.ts-editorial-single { grid-template-columns: minmax(0, 1fr); }
.ts-editorial-single .ts-news { border-left: 0; padding-left: 0; }
.ts-card { border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; background: #fbfaf6; }
.ts-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.ts-card-link:hover h3 { text-decoration: underline; }
.ts-card-link img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.ts-editorial .ts-card-link img { height: 100%; min-height: 16rem; }
.ts-card-body { padding: 1.15rem; }
.ts-card-body p:last-child { color: var(--muted); margin: 0; }
.ts-news { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.ts-news a { display: grid; border-top: 1px solid var(--line); padding: .65rem 0; color: var(--ink); text-decoration: none; }
.ts-news a:hover strong { text-decoration: underline; }
.ts-news time { color: var(--muted); font-size: .82rem; }
.ts-home-editorial .ts-section-title, .ts-tour .ts-section-title { border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.35rem; }
.ts-home-editorial .ts-editorial { grid-template-columns: minmax(0, 2.75fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3rem); }
.ts-home-editorial .ts-editorial-single { grid-template-columns: minmax(0, 1fr); }
.ts-home-editorial .ts-editorial > .ts-card { border: 0; border-radius: 0; background: transparent; }
.ts-home-editorial .ts-card-body { align-self: center; padding: clamp(1rem, 2.4vw, 2rem); }
.ts-home-editorial .ts-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 3.3rem); }
.ts-home-editorial .ts-card-link img { border-radius: 1rem 45% 1rem 1rem / 1rem 30% 1rem 1rem; }
.ts-tour .ts-card { border: 0; border-radius: 0; background: transparent; }
.ts-tour .ts-card-link img { border-radius: 48% 48% .55rem .55rem / 28% 28% .55rem .55rem; }
.ts-tour .ts-card-body { padding: 1rem .15rem 0; }
.ts-home-sound { background: #172c49; }
.ts-home-sound .ts-audio img { border-radius: 45% 45% .7rem .7rem / 30% 30% .7rem .7rem; }
.ts-audio { display: grid; align-items: center; grid-template-columns: minmax(150px,.65fr) 1fr 1fr; gap: clamp(.9rem, 3vw, 2.2rem); }
.ts-audio img { width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: .5rem; }
.ts-event-empty { background: #21344b url(assets/events.jpg) center 44%/cover; border-radius: .7rem; color: white; overflow: hidden; }
.ts-event-empty > div { min-height: 18rem; padding: clamp(1.25rem, 4vw, 3rem); background: linear-gradient(90deg,rgba(10,19,34,.96),rgba(10,19,34,.79),rgba(10,19,34,.4)); display: grid; align-content: center; }
.ts-event-empty p { max-width: 31rem; }
.ts-footer { background: #101f38; border-top: 1px solid #2c4b67; }
.ts-footer-inner { display: grid; grid-template-columns: 1.25fr 1fr .9fr 1.2fr; gap: 2rem clamp(1rem, 3vw, 3.25rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.ts-footer-brand .ts-brand { font-size: clamp(1.55rem, 3vw, 2.5rem); }
.ts-footer-brand .ts-brand img { border-radius: 55% 42% 50% 35%; mix-blend-mode: normal; }
.ts-footer-brand p { margin: .75rem 0 0; color: var(--aqua); font: italic 1.2rem var(--display); }
.ts-footer h2 { margin: 0 0 .75rem; color: var(--aqua); font: 700 1rem/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: normal; }
.ts-footer-links { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.ts-footer address { display: grid; justify-items: start; gap: .45rem; font-style: normal; }
.ts-footer address a { text-wrap: pretty; }
.ts-footer-social { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem; }
.ts-footer-social a { display: inline-block; padding: .32rem .72rem; border: 1px solid #63849f; border-radius: 999px; font-size: .88rem; }
.ts-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.25rem; padding-block: 1rem; border-top: 1px solid #36536e; color: #d2e1ee; font-size: .9rem; }
.ts-footer-base small { font-size: inherit; }
.ts-footer a:focus-visible { outline-color: var(--aqua); }
@media (max-width: 880px) {
  .ts-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 405px) {
  .ts-footer-inner { grid-template-columns: 1fr; }
}
.ts-content { max-width: 840px; }
.ts-content article + article { margin-top: 2rem; }
.ts-content audio { width: 100%; margin-block: .8rem; }
.ts-intro { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.ts-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1rem; }
.ts-filters a { color: var(--ink); border: 1px solid var(--line); border-radius: 2rem; padding: .4rem .8rem; text-decoration: none; }
.ts-filters a[aria-current="page"] { background: var(--aqua); }
.ts-subsection { margin-top: 2.25rem; }
.ts-intake { display: grid; gap: 1rem; max-width: 660px; }
.ts-intake label { display: grid; gap: .3rem; font-weight: 650; }
.ts-intake input, .ts-intake textarea { width: 100%; background: white; color: var(--ink); font: inherit; border: 1px solid #798696; border-radius: .25rem; padding: .65rem; }
.ts-intake .ts-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-intake button { justify-self: start; }
.ts-notice { border-left: 4px solid var(--teal); background: #e8f3f3; padding: .75rem; }
.woocommerce div.product, .woocommerce ul.products { color: var(--ink); }
@media (max-width: 880px) {
  .ts-header-inner { flex-wrap: wrap; }
  .ts-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .ts-menu-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); color: var(--ink); font: inherit; font-weight: 750; cursor: pointer; }
  .ts-header-inner:has(.ts-menu-toggle:not([hidden])) .ts-header-button, .ts-nav-collapsible:not(.ts-nav-open) { display: none; }
  .ts-nav-collapsible.ts-nav-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: .7rem; }
  .ts-nav-open a { display: flex; align-items: center; min-height: 2.75rem; }
  .ts-nav-open .ts-nav-list-event { display: flex; }
  .ts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ts-home-editorial .ts-editorial { grid-template-columns: minmax(0, 1fr); }
  .ts-home-editorial .ts-news { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .ts-hero-inner { grid-template-columns: 1fr; padding-top: 2.35rem; }
  .ts-hero h1 { font-size: clamp(3rem, 11vw, 4.75rem); }
  .ts-hero-art { width: min(94%, 28rem); margin-inline: auto; aspect-ratio: 1.57; }
}
@media (max-width: 600px) {
  .ts-nav { font-size: .93rem; gap: .35rem .8rem; }
  .ts-brand { font-size: 1.4rem; }
  .ts-grid, .ts-editorial, .ts-editorial > .ts-card .ts-card-link, .ts-audio { grid-template-columns: 1fr; }
  .ts-editorial .ts-card-link img { min-height: 0; height: auto; }
  .ts-home-editorial .ts-card-body { padding: 1rem .15rem 0; }
  .ts-news { border-left: 0; padding-left: 0; }
  .ts-audio img { max-height: 240px; }
  .ts-home-paths-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-home-paths a:nth-child(3) { border-left: 0; }
  .ts-home-paths a:nth-child(n+3) { border-top: 1px solid #cadcdd; }
}

.ts-intake .ts-consent { display: flex; align-items: center; gap: .65rem; }
.ts-intake .ts-consent input { width: auto; }

.ts-event-gallery { margin-block: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.ts-event-gallery h2 { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.65rem); }
.ts-event-gallery .ts-event-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ts-event-gallery-grid figure { margin: 0; }
.ts-event-gallery-grid a { display: block; border-radius: .75rem; }
.ts-event-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: inherit; }
.ts-event-gallery-grid figcaption { margin-top: .4rem; color: var(--muted); font-size: .9rem; }

/* Event detail and organiser journeys */
.ts-event-hero, .ts-organiser-hero { background: linear-gradient(120deg, #101f38, #1b456a); color: var(--paper); }
.ts-event-hero-inner { display: grid; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 7vw, 6rem); }
.ts-event-has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ts-event-hero h1, .ts-organiser-hero h1 { margin-block: .7rem 1.1rem; }
.ts-event-heading { min-width: 0; overflow-wrap: anywhere; }
.ts-event-back, .ts-event-date { color: var(--aqua); font-weight: 700; }
.ts-event-venue { margin-bottom: .75rem; }
.ts-event-price { display: inline-block; margin: .15rem 0 0; padding: .3rem .8rem; border: 1px solid #7393ae; border-radius: 999px; }
.ts-event-art { display: grid; place-items: center; margin: 0; }
.ts-event-art img { width: auto; max-height: clamp(18rem, 49vw, 34rem); border-radius: 1.25rem .3rem 1.25rem .3rem; }
.ts-event-body { padding-block: clamp(2rem, 5vw, 4.5rem); }
.ts-event-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .47fr); align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); }
.ts-event-layout .ts-event-copy { margin: 0; max-width: none; }
.ts-event-details { min-width: 0; padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: 1.25rem .3rem; background: #eaf3f9; }
.ts-event-details .tribe-events-event-meta { width: 100%; margin: 0; background: transparent; border: 0; }
.ts-event-details .tribe-events-meta-group { width: 100%; margin: 0; padding: 0; }
.ts-event-details .tribe-events-single-section-title { font-family: var(--display); }
.ts-organiser-hero .ts-wrap { padding-block: clamp(2rem, 6vw, 4.5rem); }
.ts-organiser-hero .ts-intro { color: var(--aqua); margin-bottom: 0; }
.ts-organiser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ts-organiser-card { padding: clamp(1.35rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.25rem .3rem; background: #fff; }
.ts-organiser-card h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.tribe-events,
#tribe-community-events,
#tribe-community-events-list,
.tribe-tickets {
  --tec-color-text-primary: var(--ink);
  --tec-color-text-secondary: var(--muted);
  --tec-color-accent-primary: var(--teal);
  --tec-color-background: var(--paper);
  --tec-color-border-default: var(--line);
  --tec-border-radius-default: .75rem;
}
:is(#tribe-community-events, #tribe-community-events-list) :is(h1, h2, h3), .tribe-events .tribe-events-calendar-list__event-title { font-family: var(--display); }
:is(#tribe-community-events, #tribe-community-events-list) :is(h1, h2) { color: var(--ink); }
:is(#tribe-community-events, #tribe-community-events-list) :is(.tribe-button, .button, input[type=submit]),
.tribe-events .tribe-events-c-search__button,
.tribe-tickets button.tribe-common-c-btn {
  border-radius: 999px;
  background-color: var(--teal);
  color: white;
}
@media (max-width: 720px) {
  .ts-event-has-art, .ts-event-layout, .ts-organiser-grid { grid-template-columns: 1fr; }
  .ts-event-art { justify-items: start; }
}
