/* STA Programme Pages. Everything is scoped to .sta-programme so it cannot affect the rest of the site.
   Colours come from the five variables set per page: --sta-main, --sta-on-main, --sta-second, --sta-on-second,
   --sta-ink (main colour made dark enough for white cards) and --sta-accent (second colour made dark enough for white cards). */

.sta-programme {
	--sta-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
	--sta-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--sta-text: #3a4256;
	--sta-heading: #1d2433;
	--sta-line: #dce4ee;
	font-family: var(--sta-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--sta-text);
	box-sizing: border-box;
}
.sta-programme *, .sta-programme *::before, .sta-programme *::after { box-sizing: inherit; }

/* Front end: let bands run edge to edge even inside a narrow theme column. */
body.sta-programme-page .sta-programme {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.sta-wrap {
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

.sta-label {
	margin: 0 0 8px;
	font-family: var(--sta-display);
	font-size: 22px;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.1;
}

/* Buttons */
.sta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sta-btn {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 10px 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	font: 600 15px/1.2 var(--sta-body);
	text-decoration: none;
	cursor: pointer;
}
.sta-btn:focus-visible, .sta-card__link:focus-visible { outline: 3px solid var(--sta-second); outline-offset: 3px; }
.sta-btn--main { background: var(--sta-second); color: var(--sta-on-second); }
.sta-btn--main:hover { filter: brightness(1.06); }
.sta-btn--line { background: transparent; color: inherit; border-color: currentColor; }

/* Hero */
.sta-hero { background: var(--sta-main); color: var(--sta-on-main); background-size: cover; background-position: center; position: relative; }
.sta-hero__inner { padding-block: 72px 76px; position: relative; }
.sta-hero .sta-label { color: var(--sta-second); }
.sta-hero__logo { display: block; max-height: 90px; width: auto; margin-bottom: 22px; }
.sta-hero__title {
	margin: 0;
	font-family: var(--sta-display);
	font-weight: 400;
	font-size: clamp(52px, 9vw, 100px);
	line-height: 1;
	letter-spacing: 2px;
	color: inherit;
	text-wrap: balance;
}
.sta-hero__tagline { margin: 14px 0 0; font-family: var(--sta-display); font-size: 22px; letter-spacing: 3px; text-transform: uppercase; color: var(--sta-second); }
.sta-hero__intro { max-width: 58ch; margin: 18px 0 0; font-size: 17px; color: inherit; opacity: .92; }
.sta-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sta-main) 0%, var(--sta-main) 35%, transparent 100%); opacity: .88; }
.sta-hero--light { background-color: #fff; color: var(--sta-text); }
.sta-hero--light .sta-label, .sta-hero--light .sta-hero__tagline { color: var(--sta-accent); }
.sta-hero--light .sta-hero__title { color: var(--sta-heading); }
.sta-hero--light.sta-hero--photo::before { background: linear-gradient(90deg, #fff 0%, #fff 35%, transparent 100%); }
.sta-hero__logo-note { font-size: 12px; opacity: .7; margin: 0 0 12px; }

/* Cards */
.sta-section { padding-block: 56px; }
.sta-cards { display: grid; gap: 22px; grid-template-columns: repeat(var(--sta-cols, 3), minmax(0, 1fr)); }
.sta-cards--2 { --sta-cols: 2; }
.sta-cards--3 { --sta-cols: 3; }
.sta-cards--4 { --sta-cols: 4; }
@media (max-width: 960px) { .sta-cards--3, .sta-cards--4 { --sta-cols: 2; } }
@media (max-width: 600px) { .sta-cards--2, .sta-cards--3, .sta-cards--4 { --sta-cols: 1; } }

.sta-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 26px;
	background: #fff;
	color: var(--sta-text);
	border: 1px solid var(--sta-line);
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(14, 28, 49, .06);
}
.sta-card__img { width: calc(100% + 52px); max-width: none; margin: -26px -26px 8px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px 8px 0 0; display: block; }
.sta-card__label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--sta-accent); }
.sta-card__title { margin: 0; font-family: var(--sta-display); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: 1px; color: var(--sta-heading); text-wrap: balance; }
.sta-card__text { margin: 0; font-size: 15px; }
.sta-card__link { margin: auto 0 0; padding-top: 8px; font-weight: 600; font-size: 14px; color: var(--sta-ink); text-decoration: none; }
.sta-card__link:hover { text-decoration: underline; }
.sta-card--main { background: var(--sta-main); color: var(--sta-on-main); border-color: var(--sta-main); }
.sta-card--main .sta-card__label { color: var(--sta-second); }
.sta-card--main .sta-card__title, .sta-card--main .sta-card__link { color: var(--sta-on-main); }

/* Block editor: the canvas supplies its own width, so do not use the full-bleed trick there. */
.editor-styles-wrapper .sta-programme { width: auto; max-width: none; left: auto; margin: 0; }
.editor-styles-wrapper .sta-cards > .block-editor-inner-blocks, .editor-styles-wrapper .sta-cards.block-editor-block-list__layout { display: grid; }
.editor-styles-wrapper .sta-card > .block-editor-rich-text__editable { margin: 0; }
.editor-styles-wrapper .sta-hero__title { margin: 0; }

/* Theme integration (ThemeREX fcunited): remove the theme's own title banner and header photo so the hero is the page heading. */
body.sta-programme-page .top_panel .elementor-inner-section:has(.sc_layouts_title){display:none!important}
body.sta-programme-page .top_panel .elementor-widget-spacer{display:none!important}
body.sta-programme-page .top_panel,
body.sta-programme-page .top_panel .elementor-top-section,
body.sta-programme-page .top_panel .elementor-background-overlay{background-image:none!important;background-color:#172539!important}
body.sta-programme-page .page_content_wrap{padding-top:0!important}
.sta-programme .sta-hero__title{color:inherit!important}


/* Item groups, split, band, photos */
.sta-section--tint { background: #eef3f8; }
.sta-heading { margin: 0 0 22px; font-family: var(--sta-display); font-weight: 400; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; letter-spacing: 1px; color: var(--sta-heading); }
.sta-label--accent { color: var(--sta-accent); }
.sta-btn--dark { background: var(--sta-main); color: var(--sta-on-main); }
.sta-group { display: grid; gap: 18px; }
.sta-group--dates { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sta-group--numbers { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sta-group--people { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sta-group--steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: sta-step; }
.sta-item { min-width: 0; padding: 22px 24px; background: #fff; border: 1px solid var(--sta-line); border-radius: 8px; box-shadow: 0 4px 18px rgba(14, 28, 49, .06); }
.sta-item__label { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--sta-accent); }
.sta-item__title { margin: 0 0 6px; font-family: var(--sta-display); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: 1px; color: var(--sta-heading); }
.sta-item__text { margin: 0; font-size: 15px; }
.sta-item__img { display: block; width: 100%; max-width: none; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.sta-item--dates { border-left: 6px solid var(--sta-second); }
.sta-item--steps::before { counter-increment: sta-step; content: counter(sta-step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--sta-main); color: var(--sta-on-main); font: 400 24px/1 var(--sta-display); }
.sta-item--numbers { text-align: center; background: var(--sta-main); border-color: var(--sta-main); }
.sta-item--numbers .sta-item__title { font-size: 56px; margin: 0; color: var(--sta-second); }
.sta-item--numbers .sta-item__text { color: var(--sta-on-main); }
.sta-item--numbers .sta-item__label { color: var(--sta-on-main); }
.sta-item--costs { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: baseline; padding: 14px 22px; }
.sta-item--costs .sta-item__title { grid-column: 1; grid-row: 1; margin: 0; font-size: 24px; }
.sta-item--costs .sta-item__label { grid-column: 2; grid-row: 1; margin: 0; font-size: 18px; color: var(--sta-ink); text-transform: none; }
.sta-item--costs .sta-item__text { grid-column: 1 / -1; }
.sta-group--costs, .sta-group--faq { max-width: 820px; gap: 10px; }
.sta-item--faq { padding: 0; }
.sta-item--faq summary { cursor: pointer; padding: 16px 22px; font-size: 24px; list-style-position: inside; }
.sta-item--faq summary:focus-visible { outline: 3px solid var(--sta-second); outline-offset: -3px; }
.sta-item--faq .sta-item__text { padding: 0 22px 18px; }
.sta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sta-split--left .sta-split__img { order: -1; }
.sta-split--solo { grid-template-columns: minmax(0, 720px); }
.sta-split__img { display: block; width: 100%; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
@media (max-width: 760px) { .sta-split { grid-template-columns: 1fr; } .sta-split--left .sta-split__img { order: 0; } }
.sta-band { background: var(--sta-main); color: var(--sta-on-main); }
.sta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 44px; }
.sta-band__title { margin: 0 0 6px; font-family: var(--sta-display); font-weight: 400; font-size: clamp(34px, 5vw, 46px); line-height: 1.05; letter-spacing: 1px; color: inherit; }
.sta-band p { margin: 0; max-width: 60ch; }
.sta-band .sta-band__small { margin-top: 10px; font-size: 13px; opacity: .8; }
.sta-band .sta-actions { margin-top: 0; }
.sta-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sta-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.editor-styles-wrapper .sta-group.block-editor-block-list__layout { display: grid; }


/* Beat the theme's link colours */
.sta-programme a.sta-btn--main { color: var(--sta-on-second); }
.sta-programme a.sta-btn--dark { color: var(--sta-on-main); }
.sta-programme a.sta-btn--line { color: inherit; }
.sta-programme a.sta-btn { text-decoration: none; }
.sta-programme a.sta-card__link { color: var(--sta-ink); }
.sta-programme .sta-card--main a.sta-card__link { color: var(--sta-on-main); }

/* Header choice. Main: the site header shows even if the author has a regional bar. None: nothing at the top. */
body.sta-programme-page.sta-nav-main .rnb { display: none !important; }
body.sta-programme-page.sta-nav-main.rnb-active header.top_panel { display: block !important; }
body.sta-programme-page.sta-nav-none .rnb, body.sta-programme-page.sta-nav-none header.top_panel { display: none !important; }
