/**
 * Urban Row — theme styles.
 *
 * theme.json carries tokens, typography and block defaults. This file carries
 * the things theme.json cannot express: the fixed header behaviour, the mobile
 * drawer, the angular geometry borrowed from the UR mark, and the handful of
 * composite components (schedule, pricing, form).
 *
 * Contrast note: Urban Gray (#5b6770) clears AA on white at 5.8:1 but only
 * reaches 3.6:1 on black. On dark surfaces body copy is white at 72% opacity
 * instead — never the gray. Urban Yellow is 1.26:1 on white, so it is only ever
 * a background there, never text.
 *
 * @package urbanrow
 */

/* -------------------------------------------------------------------------
 * 1. Primitives
 * ---------------------------------------------------------------------- */

:root {
	/* These live here rather than in theme.json's styles.css: that key is
	   emitted without a wrapping selector, so the declarations were dropped and
	   every rule reading them computed to zero — the header collapsed to its
	   content height and the hero lost its padding. */
	--ur-header-height: clamp(4.5rem, 6.5vw, 6.5rem);
	--ur-bar-height: 4.25rem;

	--ur-ease: cubic-bezier(0.2, 0, 0.2, 1);
	--ur-rule: color-mix(in srgb, var(--wp--preset--color--gray) 22%, transparent);
	--ur-rule-dark: rgba(255, 255, 255, 0.16);
	--ur-dim: rgba(255, 255, 255, 0.72);

	/* Zero on every desktop browser and on an iPhone in landscape; the notch
	   and the home indicator on a phone held upright. Named once so the fixed
	   chrome can reserve them without repeating the env() call. */
	--ur-safe-top: env(safe-area-inset-top, 0px);
	--ur-safe-bottom: env(safe-area-inset-bottom, 0px);

	/* The site is black-canvassed, and saying so is what stops Safari tinting
	   its own furniture — the status bar strip, the rubber-band overscroll —
	   from the white `body`. Forms that ship on white — the booking form, the
	   login, the account, the trial manage page — opt back into light below. */
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* The UA sheet gives [hidden] display:none, but any class rule setting a
   display value outranks it — .ur-form__row is display:grid, so hiding the
   fields after a successful booking would silently do nothing. */
[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;

	/* What shows when a touch scroll rubber-bands past the top or the bottom.
	   The canvas takes its colour from <html>, and theme.json paints the body
	   white — so overscrolling flashed a white band above the hero and below
	   the footer, both of which are black. The body keeps its own white
	   background for the pages that want one; this is only the area beyond it.
	   Guarded by npm run check:chrome — a screenshot cannot see it. */
	background-color: var(--wp--preset--color--contrast);
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "tnum" 0;
}

/* Break long Korean lines on word boundaries rather than mid-syllable. */
:where(p, li, h1, h2, h3, h4, h5, h6, dd, dt, figcaption, .ur-form__message) {
	word-break: keep-all;
	overflow-wrap: anywhere;
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* The site is dark-first; a light-scheme form control on black is unreadable. */
.ur-invert :where(input, select, textarea) {
	color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* -------------------------------------------------------------------------
 * 2. Brand geometry
 *
 * The UR mark is built entirely from 45-degree cuts. These utilities re-use
 * that one idea so the site reads as the same object as the logo: clipped
 * corners on anything that behaves like a button or a badge, and a diagonal
 * cut on section edges.
 * ---------------------------------------------------------------------- */

.ur-clip,
.wp-block-button__link,
.wp-element-button {
	clip-path: polygon(
		var(--wp--custom--clip--corner) 0,
		100% 0,
		100% calc(100% - var(--wp--custom--clip--corner)),
		calc(100% - var(--wp--custom--clip--corner)) 100%,
		0 100%,
		0 var(--wp--custom--clip--corner)
	);
}

.ur-clip-lg {
	clip-path: polygon(
		var(--wp--custom--clip--corner-large) 0,
		100% 0,
		100% calc(100% - var(--wp--custom--clip--corner-large)),
		calc(100% - var(--wp--custom--clip--corner-large)) 100%,
		0 100%,
		0 var(--wp--custom--clip--corner-large)
	);
}

/* Yellow rule that leads a section heading. */
.ur-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-block-end: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--wide);
}

.ur-eyebrow::before {
	content: "";
	inline-size: 2.25rem;
	block-size: 3px;
	flex: none;
	background: var(--wp--preset--color--accent);
}

/* Oversized outlined numeral used to index sections (01 / 02 / 03). */
.ur-index {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 900;
	line-height: 0.8;
	letter-spacing: var(--wp--custom--tracking--display);
	color: transparent;
	-webkit-text-stroke-width: 2px;
	-webkit-text-stroke-color: currentColor;
	opacity: 0.5;
}

/* The header and footer are template parts now, so they are siblings of the
   main content inside .wp-site-blocks and the root layout puts a block gap
   between them. The chrome butts straight up against the content, as it did
   when it was printed on wp_body_open and wp_footer. */
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .wp-block-template-part + * {
	margin-block-start: 0;
}

/* Full-bleed sections butt straight up against each other. The block editor's
   flow layout gives every sibling a block gap, and between two full-width
   sections that gap shows as a stripe of page background — a white band across
   a black page. Scoped to adjacent alignfull siblings so ordinary post content
   keeps its normal rhythm. */
/* Utility pages — the manage page, My Account — end in plain constrained
   content with no band of its own, so the last element sat flush against the
   footer. Marketing pages end in an alignfull band that carries its own
   padding; the :not() keeps them exactly as designed. */
.wp-block-post-content > :last-child:not(.alignfull) {
	margin-block-end: var(--wp--preset--spacing--70);
}

.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Section headings sit in a wide container so they line up with the content
   they introduce, but a 1320px measure is unreadable. Cap them here rather
   than re-centring the container, which would indent the heading instead. */
.wp-block-group.alignwide > .wp-block-heading {
	max-inline-size: 22ch;
}

.wp-block-group.alignwide > p:not(.ur-eyebrow) {
	max-inline-size: 56ch;
}

/* -------------------------------------------------------------------------
 * 3. Header
 * ---------------------------------------------------------------------- */

/* The bar is solid black at all times, including over the hero.
 *
 * It used to be transparent until the hero scrolled past, and that is what put
 * a white strip above an all-black site on an iPhone: iOS Safari tints its
 * status bar from the page, and a transparent bar gives it no colour to read,
 * so it falls back to its light default. theme-color #000000, color-scheme:
 * dark and viewport-fit=cover were all in place and none of them overrode it —
 * the bar's own background is what Safari answers to. Scrolling turned it black
 * only because the bar itself turned black.
 *
 * The hero is a Cover and simply continues behind the bar. Its top padding
 * already clears the header height, so no copy moved.
 *
 * viewport-fit=cover also puts the notch inside the viewport, so the bar starts
 * at the physical top of the screen and reserves the inset above its own height
 * rather than letting the lockup sit under the status bar. Both safe-area terms
 * are 0 on a desktop and on a phone in landscape.
 */
.ur-header {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 100;
	block-size: calc(var(--ur-header-height) + var(--ur-safe-top));
	padding-block-start: var(--ur-safe-top);
	display: flex;
	align-items: center;
	background: var(--wp--preset--color--contrast);
	transition: box-shadow var(--wp--custom--transition--base);
}

/* Pages that do not open on a hero start their content directly under the
   fixed header, so they have to reserve its height themselves. */
body:not(.ur-has-hero) #ur-main {
	padding-block-start: calc(var(--ur-header-height) + var(--ur-safe-top));
}

/* The hairline still waits for the scroll: against the hero it would draw a
   rule across the photograph for no reason, and there is nothing above the
   fold for it to separate. */
.ur-header.is-solid,
body:not(.ur-has-hero) .ur-header {
	box-shadow: 0 1px 0 var(--ur-rule-dark);
}

/* Composed of core groups, which are flow layouts: their children arrive with
   a top margin the flex rows below have no use for. */
.ur-header__inner > *,
.ur-header__actions > * {
	margin-block: 0;
}

.ur-header__inner {
	inline-size: 100%;
	max-inline-size: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
}

.ur-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
	flex: none;
}

/* The header carries the full lockup, which is wide rather than tall — sized
   off its own height, not the standalone mark's. */
.ur-header__brand svg,
.ur-header__brand img {
	block-size: clamp(1.875rem, 2.5vw, 2.5rem);
	inline-size: auto;
	display: block;
}

.ur-header__nav {
	display: flex;
	align-items: center;
	margin-inline-start: auto;
}

/* core/navigation renders nav > ul.wp-block-navigation__container > li > a
   where this used to be bare anchors, so the row's spacing belongs to the list
   and the list items carry none of their own. */
.ur-header__nav ul {
	display: flex;
	align-items: center;
	/* Was clamp(1.125rem, 2.4vw, 2.25rem), which read as four separated links
	   rather than one menu. Dropping the bullet already reclaimed the 0.45em
	   that sat between marker and label, so this only has to close the rest. */
	gap: clamp(0.875rem, 1.5vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The dots that used to sit before each link were never designed: the old menu
   used items_wrap '%3$s', which strips the <ul> and leaves orphaned <li>s that
   every browser draws its default marker on. core/navigation emits valid
   markup, the markers vanished, and they were then redrawn deliberately to
   match what had shipped. Removed — a bullet before every item reads as a list
   rather than a bar, and the row is tighter without one. */
.ur-header__nav li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

/* Compound, because core styles .wp-block-navigation .wp-block-navigation-item__content
   and a bare `.ur-header__nav a` loses to it — which is how the bar shipped in
   Urban Gray, 3.5:1 on black and a fail against the theme's own colour rules.
   The labels are white; the yellow underline is what marks the current page. */
/* "My Account" is a core/button rather than a navigation item — WooCommerce's
   account block is suppressed and this replaces it — but it reads as one more
   item in this bar, so it is styled as one rather than as quieter meta text.
   Its selector is three classes deep for the same reason the navigation one
   is, and to outrank .is-style-ur-plain's `inherit`s. */
.ur-header .ur-header__nav .wp-block-navigation-item__content,
.ur-header .ur-header__account .wp-block-button__link,
.ur-header .ur-langmenu__toggle {
	color: var(--wp--preset--color--base);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	padding-block: 0.625rem;
	position: relative;
}

.ur-header .ur-header__nav .wp-block-navigation-item__content:hover,
.ur-header .ur-header__nav .wp-block-navigation-item__content[aria-current="page"],
.ur-header .ur-header__account .wp-block-button__link:hover,
.ur-header .ur-header__account .wp-block-button__link[aria-current="page"],
.ur-header .ur-langmenu__toggle:hover,
.ur-header .ur-langmenu__toggle[aria-expanded="true"] {
	color: var(--wp--preset--color--accent);
}

.ur-header__nav a::after,
.ur-header__account .wp-block-button__link::after,
.ur-langmenu__toggle::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	inline-size: 0;
	block-size: 2px;
	background: var(--wp--preset--color--accent);
	transition: inline-size var(--wp--custom--transition--base);
}

.ur-header__nav a:hover::after,
.ur-header__nav a[aria-current="page"]::after,
.ur-header__account .wp-block-button__link:hover::after,
.ur-header__account .wp-block-button__link[aria-current="page"]::after,
.ur-langmenu__toggle:hover::after,
.ur-langmenu__toggle[aria-expanded="true"]::after {
	inline-size: 100%;
}

.ur-header__actions {
	display: flex;
	align-items: center;
	/* Matches the primary menu's own gap, so "My Account" — which sits in here
	   rather than in the nav — keeps the row's rhythm rather than reading as a
	   separate cluster. */
	gap: 1.375rem;
	flex: none;
}

/* Language menu — a globe in the bar that discloses the language list.
 *
 * Its trigger joins the account link's rules above rather than restating them.
 * Everything the disclosure needs is behind .ur-js, so with the script blocked
 * the toggle is never shown and the list is simply the row — two working links
 * rather than a button that does nothing, the same contract .ur-reveal has.
 * main.css is not loaded on the editor canvas, so the Site Editor draws both,
 * exactly as it draws the burger's three bare bars. */
.ur-langmenu {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
}

.ur-header .ur-langmenu__toggle {
	display: none;
	align-items: center;
	gap: 0.4375rem;
	border: 0;
	background: none;
	font-family: inherit;
	cursor: pointer;
}

.ur-js .ur-header .ur-langmenu__toggle {
	display: inline-flex;
}

.ur-langmenu__globe {
	flex: none;
	display: block;
}

/* The no-JS state: a plain row in the bar. */
.ur-header .ur-langmenu__list {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The panel. Square-edged and black with a hairline: it reads as the bar
   continuing downward, and the bar is square — the 45-degree geometry belongs
   to buttons and badges, not to chrome surfaces. No shadow, because a shadow
   on black is nothing, and no overflow clipping, because the focus ring is
   3px at 3px offset and has to paint outside the rows. */
.ur-js .ur-header .ur-langmenu__list {
	position: absolute;
	inset-block-start: calc(100% + 0.75rem);
	inset-inline-end: 0;
	z-index: 1;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	inline-size: max-content;
	min-inline-size: 100%;
	padding-block: 0.25rem;
	background: var(--wp--preset--color--contrast);
	border: 1px solid var(--ur-rule-dark);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.25rem);
	/* visibility is a discrete property: transitioned normally it flips at the
	   halfway point, so for the first half of an opening transition the panel
	   is still hidden — and a hidden element cannot take focus, which silently
	   swallowed the first ArrowDown. Stepped instead: instant on open, delayed
	   by the full duration on close so the fade out is still seen. */
	transition: opacity var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base),
		visibility 0s linear var(--wp--custom--transition--base);
}

.ur-js .ur-header .ur-langmenu.is-open .ur-langmenu__list {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base),
		visibility 0s;
}

/* inline-size: max-content on the panel is what makes this bilingual: 한국어
   and English set their own width, and a third language would too. */
.ur-header .ur-langmenu__list a {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.ur-js .ur-header .ur-langmenu__list a {
	min-block-size: 2.75rem;
	padding-inline: 1.125rem;
}

/* Colour is not the only cue: the current language carries a filled square and
   the others an empty slot the same size, so the rows stay aligned and the
   distinction survives a screen that cannot show the yellow. */
.ur-header .ur-langmenu__list a::before {
	content: "";
	flex: none;
	inline-size: 0.5rem;
	block-size: 0.5rem;
	background: transparent;
}

.ur-header .ur-langmenu__list .current-lang a {
	color: var(--wp--preset--color--accent);
}

.ur-header .ur-langmenu__list .current-lang a::before {
	background: var(--wp--preset--color--accent);
}

.ur-header .ur-langmenu__list a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--accent);
}

/* Measured, not guessed: the English menu's four items already wrap to two rows
   below about 1010px, and this control moves that onset to about 1100px.
   Dropping the code gives 28px back; the globe alone is unambiguous once the
   panel names both languages in full. */
@media (max-width: 1199px) {
	.ur-header .ur-langmenu__code {
		display: none;
	}
}

/* Language switcher — two codes, current one highlighted.
 *
 * Polylang's own block now, rather than a wrapper div around a list: .ur-lang
 * is the <ul> itself, each item carries .lang-item, and the current one is
 * .current-lang with a real <a> inside it rather than a span. Styling the
 * element that exists is why these selectors look nothing like the markup they
 * replaced. */
.ur-lang {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ur-lang a {
	color: var(--ur-dim);
	text-decoration: none;
}

.ur-lang a:hover {
	color: var(--wp--preset--color--base);
}

.ur-lang .current-lang a {
	color: var(--wp--preset--color--accent);
}

.ur-lang li + li::before {
	content: "/";
	margin-inline-end: 0.375rem;
	color: rgba(255, 255, 255, 0.3);
}

/* The CTA is a core/button now, so the class names a wrapper and the styling
   belongs on the link inside it. The clip-path comes from the global
   .wp-block-button__link rule and is deliberately not repeated here. */
.ur-header__cta {
	flex: none;
}

.ur-header__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	text-decoration: none;
	padding: 1.125rem 1.75rem;
	line-height: 1;
	border-radius: 0;
	transition: background var(--wp--custom--transition--base),
		color var(--wp--custom--transition--base);
}

.ur-header__cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--base);
}

/* A button that should not read as one: the footer's phone number, email
   address and map link are core/button blocks only because a button is the one
   core block whose href a binding can fill. */
.is-style-ur-plain .wp-block-button__link {
	background: none;
	color: inherit;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	/* core centres button text, which only shows once a long email address
	   wraps — and then it wraps centred beside a left-aligned phone number. */
	text-align: start;
	border-radius: 0;
	clip-path: none;
}

.is-style-ur-plain .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--accent);
}

/* "My Account" in the drawer, matching the secondary menu it sits under —
 * the header one is styled with the primary menu instead, further up.
 *
 * .is-style-ur-plain sets font-size, weight and letter-spacing to `inherit` at
 * the same specificity, so this has to come after it in source order to win. */
.ur-drawer__account .wp-block-button__link {
	color: var(--ur-dim);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	white-space: nowrap;
}

.ur-drawer__account .wp-block-button__link:hover {
	color: var(--wp--preset--color--accent);
}

/* Burger */
.ur-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	inline-size: 3rem;
	block-size: 3rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ur-burger span {
	display: block;
	block-size: 2px;
	inline-size: 1.75rem;
	margin-inline: auto;
	background: var(--wp--preset--color--base);
	transition: transform var(--wp--custom--transition--base),
		opacity var(--wp--custom--transition--base);
}

.ur-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.ur-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ur-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Drawer */
.ur-drawer {
	position: fixed;
	inset: 0;
	z-index: 99;
	background: var(--wp--preset--color--contrast);
	padding: calc(var(--ur-header-height) + var(--ur-safe-top) + var(--wp--preset--spacing--40))
		var(--wp--preset--spacing--30)
		calc(var(--wp--preset--spacing--40) + var(--ur-safe-bottom));
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-1rem);
	transition: opacity var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base),
		visibility var(--wp--custom--transition--base);
}

.ur-drawer.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* The menus are core/navigation, which prints is-layout-flex into the head
   after this stylesheet — a row, centred, at the header bar's size. Every rule
   below is compound so it outranks that; a bare `.ur-drawer nav ul` lost, and
   the drawer shipped as a wrapped row of 31px links in Urban Gray, which is
   3.6:1 on black and fails AA. Same trap as the header nav and the header CTA. */
.ur-drawer .wp-block-navigation,
.ur-drawer .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
	inline-size: 100%;
}

.ur-drawer .wp-block-navigation .wp-block-navigation-item {
	display: block;
	inline-size: 100%;
}

.ur-drawer .wp-block-navigation .wp-block-navigation-item__content {
	display: block;
	padding-block: 0.5rem;
	color: var(--wp--preset--color--base);
	font-size: clamp(1.75rem, 8vw, 2.5rem);
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--display);
	text-decoration: none;
}

.ur-drawer .wp-block-navigation .wp-block-navigation-item__content:hover,
.ur-drawer .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--accent);
}

/* The secondary list is the rest of the site, and it has to read as a lower
   tier than the four display-size links above it — otherwise the drawer is
   eleven identical headlines, four of them repeats. Specificity has to clear
   both core's layout classes and the drawer rules above. */
.ur-drawer .ur-drawer__secondary .wp-block-navigation,
.ur-drawer .ur-drawer__secondary .wp-block-navigation__container {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
}

.ur-drawer .ur-drawer__secondary .wp-block-navigation .wp-block-navigation-item {
	inline-size: auto;
}

.ur-drawer .ur-drawer__secondary .wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0;
	color: var(--ur-dim);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.ur-drawer .ur-drawer__secondary .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}

.ur-drawer__meta {
	margin-block-start: auto;
	color: var(--ur-dim);
	font-size: var(--wp--preset--font-size--small);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.ur-drawer__meta a {
	color: inherit;
}

@media (max-width: 900px) {
	/* core/navigation and core/buttons both print their own layout class into
	   the head, after this stylesheet, and both of those set display — so the
	   compound selector is what keeps the bar collapsing to a burger below this
	   width. Without it the menu and the CTA stay on screen and push the burger
	   past the right edge, which is exactly what happened when the CTA became a
	   core/buttons block. */
	.ur-header .ur-header__nav,
	.ur-header .ur-header__cta {
		display: none;
	}

	/* "My Account" goes with them. Left in the bar it would be the only text
	   beside the burger, and the drawer already carries its own — the same
	   reasoning that kept the language switcher out of the mobile bar. */
	.ur-header .ur-header__account {
		display: none;
	}

	/* And the globe. The drawer opens on a full-width segmented switcher, which
	   is a better control on a phone than a 20px glyph beside a burger — the
	   same reasoning that kept the switcher out of this bar to begin with. */
	.ur-header .ur-langmenu {
		display: none;
	}

	.ur-burger {
		display: flex;
	}
}

/* Drawer switcher — a segmented control, not dim meta text. The one visitor
   who needs it is the one who landed in the wrong language, so it is the
   first thing in the drawer, full width, with real touch targets. Yellow on
   black is the measured 16.6:1 pair. */
.ur-drawer .ur-lang--drawer {
	/* Compound, because Polylang's own stylesheet sets display:flex on the
	   switcher and loads after this file. */
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.ur-drawer .ur-lang--drawer a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: 3rem;
	color: var(--wp--preset--color--base);
}

.ur-drawer .ur-lang--drawer .current-lang a {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.ur-drawer .ur-lang--drawer a:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* The header variant separates its two links with a slash; grid cells here
   separate themselves. */
.ur-drawer .ur-lang--drawer li + li::before {
	content: none;
	margin: 0;
}

@media (min-width: 901px) {
	.ur-drawer {
		display: none;
	}
}

/* Skip link.
 *
 * Core prints one of its own for block themes — the_block_template_skip_link()
 * on wp_footer, targeting an id it injects before the main content. The theme
 * used to print a second one beside it, so keyboard visitors met two skip links
 * in a row. Only core's remains; this restyles it to match the site rather than
 * adding another. */
.skip-link.screen-reader-text:focus {
	inset-block-start: 0;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	z-index: 200;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
	border-radius: 0;
	box-shadow: none;
}

/* -------------------------------------------------------------------------
 * 4. Mobile booking bar
 *
 * The single most valuable pixel on a fitness site is a permanently reachable
 * "book a trial". On desktop that lives in the header; on mobile the header CTA
 * is hidden, so it moves here.
 * ---------------------------------------------------------------------- */

/* The bar is a container now, holding whatever button the studio puts in it.
   main.js still toggles is-visible on this element, so the fixed positioning
   and the transform stay here; the link inside fills it. */
.ur-bookbar {
	position: fixed;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 98;
	display: none;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	transform: translateY(100%);
	transition: transform var(--wp--custom--transition--base);
}

.ur-bookbar.is-visible {
	transform: none;
}

.ur-bookbar .wp-block-buttons,
.ur-bookbar .wp-block-button {
	margin: 0;
	inline-size: 100%;
}

.ur-bookbar {
	padding-block-end: var(--ur-safe-bottom);
}

.ur-bookbar .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	block-size: var(--ur-bar-height);
	padding: 0 var(--wp--preset--spacing--30);
	background: none;
	color: inherit;
	text-decoration: none;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 0;
	clip-path: none;
}

.ur-bookbar .wp-block-button__link::after {
	content: "→";
	font-size: 1.25rem;
}

@media (max-width: 900px) {
	.ur-bookbar {
		display: flex;
	}

	body {
		padding-block-end: calc(var(--ur-bar-height) + var(--ur-safe-bottom));
	}

	/* Not on the page that holds the trial form: there the bar only links to
	   the page already open, and covers the bottom of the form as it is
	   filled in. Nor in My Account, whose members are past their trial
	   booking and whose class list it would cover. */
	body:has(.wp-block-urbanrow-lead-form) .ur-bookbar,
	body.woocommerce-account .ur-bookbar {
		display: none;
	}

	body:has(.wp-block-urbanrow-lead-form),
	body.woocommerce-account {
		padding-block-end: var(--ur-safe-bottom);
	}
}

/* -------------------------------------------------------------------------
 * 5. Hero
 * ---------------------------------------------------------------------- */

/* The hero is a core Cover block so the studio can swap the photograph and
   edit the headline in place. Cover supplies the media layer and the overlay;
   everything below only sizes it and tunes the scrim for legibility. */

.ur-hero.wp-block-cover {
	min-block-size: 100svh;
	align-items: flex-end;

	/* The section is 100svh and the content is bottom-aligned, so anything
	   taller than the space left over grows the hero past the fold and clips
	   the proof numbers. These paddings plus the `mega` ceiling are what keeps
	   the whole hero on one screen down to a 720px-tall laptop. */
	padding-block: calc(var(--ur-header-height) + var(--ur-safe-top) + var(--wp--preset--spacing--40))
		var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--base);

	/* The scrim below is semi-transparent, so the black underneath stops the
	   page background showing through as grey before the still paints. The
	   still is a background image rather than the video's poster attribute so
	   the crop can change at the portrait breakpoint. */
	background-color: var(--wp--preset--color--contrast);
	background-image: url("../img/hero-poster.jpg");
	background-size: cover;
	background-position: 50% 40%;
}

/* Cover's flat overlay washes the whole image out. A bottom-weighted gradient
   keeps the photograph readable at the top while guaranteeing contrast under
   the headline, which sits at the bottom. */
.ur-hero.wp-block-cover .wp-block-cover__background {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.6) 45%,
		rgba(0, 0, 0, 0.25) 100%
	) !important;
	opacity: 1 !important;
}

.ur-hero.wp-block-cover .wp-block-cover__inner-container {
	inline-size: 100%;
	max-inline-size: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
}

.ur-hero h1 {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--mega);
	max-inline-size: 16ch;
	margin: 0;
}

.ur-hero h1 em {
	font-style: normal;
	color: var(--wp--preset--color--accent);
}

.ur-hero__lede {
	max-inline-size: 46ch;
	margin-block: var(--wp--preset--spacing--30) 0;
	color: var(--ur-dim);
	font-size: var(--wp--preset--font-size--large);
}

.ur-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: var(--wp--preset--spacing--30);
}


/* Pause control for the hero film. Small, low-contrast until focused or
   hovered — it is a WCAG 2.2.2 requirement, not a feature to advertise. */
.ur-videotoggle {
	position: absolute;
	inset-block-end: var(--wp--preset--spacing--30);
	inset-inline-end: var(--wp--preset--spacing--30);
	z-index: 2;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
	opacity: 0.55;
	transition: opacity var(--wp--custom--transition--base),
		border-color var(--wp--custom--transition--base);
}

.ur-videotoggle:hover,
.ur-videotoggle:focus-visible {
	opacity: 1;
	border-color: var(--wp--preset--color--accent);
}

/* Two bars for pause, a triangle for play. Drawn in CSS so the control costs
   no extra request and inherits the accent colour. */
.ur-videotoggle::before,
.ur-videotoggle::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inline-size: 3px;
	block-size: 0.875rem;
	background: var(--wp--preset--color--base);
	transform: translateY(-50%);
}

.ur-videotoggle::before {
	inset-inline-start: calc(50% - 5px);
}

.ur-videotoggle::after {
	inset-inline-start: calc(50% + 2px);
}

.ur-videotoggle.is-stopped::before {
	inline-size: 0;
	block-size: 0;
	border-block: 7px solid transparent;
	border-inline-start: 11px solid var(--wp--preset--color--base);
	background: none;
	inset-inline-start: calc(50% - 4px);
}

.ur-videotoggle.is-stopped::after {
	display: none;
}

/* -------------------------------------------------------------------------
 * 6b. Film bands
 *
 * Full-bleed loops of the studio film between text sections. The video is
 * scaled slightly larger than its frame so the parallax drift in main.js can
 * never expose an edge.
 * ---------------------------------------------------------------------- */

.ur-band.wp-block-cover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.ur-band.wp-block-cover :where(h1, h2, h3) {
	color: var(--wp--preset--color--base);
}

.ur-band.wp-block-cover p {
	color: var(--ur-dim);
	max-inline-size: 46ch;
	margin-inline: auto;
}

.ur-band video,
.ur-hero video {
	transform: translate3d(0, 0, 0);
	scale: 1.08;
	will-change: transform;
}

/* Core saves the overlay span after the video, and the stored markup has to
   match that or the editor marks every Cover block invalid. The design was
   built the other way round — span first, with the video painting over it — so
   the overlay only ever showed where the video does not. Below the portrait
   breakpoint `video` is display:none and the overlay is the design; above it,
   the video covers the whole box and the overlay never showed. Hiding it there
   reproduces that exactly, and core's own z-index on the span means stacking
   order cannot do the job. */
@media (min-width: 783px) {
	.ur-hero.wp-block-cover > .wp-block-cover__background,
	.ur-band.wp-block-cover > .wp-block-cover__background {
		opacity: 0 !important;
	}
}


/* -------------------------------------------------------------------------
 * 6. Sections
 * ---------------------------------------------------------------------- */

.ur-invert {
	background: var(--wp--preset--color--contrast);
	color: var(--ur-dim);
}

.ur-invert :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--base);
}

.ur-invert .ur-eyebrow {
	color: var(--wp--preset--color--accent);
}

/* Diagonal cut on the leading edge of a dark section, echoing the mark. */
.ur-cut-top {
	clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
	margin-block-start: -3.5vw;
}

/* -------------------------------------------------------------------------
 * 7. Flow steps (the three phases of the 45-minute class)
 * ---------------------------------------------------------------------- */

.ur-flow {
	display: grid;
	gap: 1px;
	background: var(--ur-rule-dark);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.ur-flow__step {
	background: var(--wp--preset--color--contrast);
	padding: var(--wp--preset--spacing--40);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	transition: background var(--wp--custom--transition--base);
}

.ur-flow__step:hover {
	background: #0a0a0a;
}

/* Grid and flex containers built from core groups: the flow layout's sibling
   margin has nothing to do here, the gaps above do the spacing. */
.ur-flow > *,
.ur-flow__step > * {
	margin-block: 0;
}

.ur-flow__step h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--tight);
}

.ur-flow__step p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

/* Outline only — setting `color` here would fill the numeral instead.
   The size is restated because the numeral is a paragraph now, and
   `.ur-flow__step p` above outranks `.ur-index` on its own. */
.ur-flow__step .ur-index {
	-webkit-text-stroke-color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.8;
}

/* -------------------------------------------------------------------------
 * 8. Schedule
 * ---------------------------------------------------------------------- */

.ur-timetable,
.ur-schedule {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

/* Studio tabs: larger than the day tabs and underlined rather than filled, so
   the choice of studio reads as the level above the choice of day. */
.ur-timetable__head {
	display: grid;
	gap: 0.75rem;
}

.ur-timetable__studios {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--wp--preset--spacing--40);
	border-block-end: 1px solid var(--ur-rule);
}

.ur-invert .ur-timetable__studios {
	border-color: var(--ur-rule-dark);
}

.ur-timetable__studio {
	appearance: none;
	background: none;
	border: 0;
	border-block-end: 3px solid transparent;
	margin-block-end: -1px;
	padding: 0 0 0.625rem;
	color: var(--wp--preset--color--gray);
	font: inherit;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: color var(--wp--custom--transition--base),
		border-color var(--wp--custom--transition--base);
}

.ur-invert .ur-timetable__studio {
	color: var(--ur-dim);
}

/* Yellow fails on white (1.26:1), so there the underline is the text colour. */
.ur-timetable__studio:hover,
.ur-timetable__studio[aria-selected="true"] {
	color: var(--wp--preset--color--contrast);
	border-block-end-color: currentcolor;
}

.ur-invert .ur-timetable__studio:hover,
.ur-invert .ur-timetable__studio[aria-selected="true"] {
	color: var(--wp--preset--color--base);
}

.ur-timetable__studio:hover:not([aria-selected="true"]) {
	border-block-end-color: transparent;
}

.ur-invert .ur-timetable__studio[aria-selected="true"] {
	border-block-end-color: var(--wp--preset--color--accent);
}

.ur-timetable__address {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gray);
}

.ur-invert .ur-timetable__address {
	color: var(--ur-dim);
}

.ur-schedule__days {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ur-schedule__day,
.ur-schedule__view {
	appearance: none;
	border: 1px solid var(--ur-rule);
	background: none;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.625rem 1rem;
	cursor: pointer;
	transition: background var(--wp--custom--transition--base),
		color var(--wp--custom--transition--base),
		border-color var(--wp--custom--transition--base);
}

.ur-schedule__day[aria-selected="true"],
.ur-schedule__view[aria-pressed="true"] {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.ur-schedule__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.ur-schedule__slot {
	display: grid;
	grid-template-columns: minmax(5.5rem, auto) 1fr auto;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--ur-rule);
}

.ur-schedule__slot:last-child {
	border-block-end: 1px solid var(--ur-rule);
}

.ur-schedule__time {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 900;
	letter-spacing: var(--wp--custom--tracking--tight);
	color: var(--wp--preset--color--contrast);
	font-variant-numeric: tabular-nums;
}

.ur-invert .ur-schedule__time {
	color: var(--wp--preset--color--base);
}

.ur-schedule__name {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--contrast);
}

.ur-invert .ur-schedule__name {
	color: var(--wp--preset--color--base);
}

.ur-schedule__coach {
	display: block;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gray);
}

.ur-invert .ur-schedule__coach {
	color: var(--ur-dim);
}

.ur-schedule__empty {
	margin: 0;
	padding-block: var(--wp--preset--spacing--40);
	border-block-start: 1px solid var(--ur-rule);
	font-size: var(--wp--preset--font-size--small);
}

/* Day / Week: the day tabs on the left, the switch on the right. main.js sets
   data-view; without it (no JS) the day lists show and the grid does not. */
.ur-schedule__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.ur-schedule__hint {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gray);
}

.ur-invert .ur-schedule__hint {
	color: var(--ur-dim);
}

.ur-schedule__views {
	display: flex;
	margin-inline-start: auto;
}

.ur-schedule__view + .ur-schedule__view {
	margin-inline-start: -1px;
}

.ur-week {
	overflow-x: auto;
}

.ur-schedule[data-view="week"] .ur-schedule__days,
.ur-schedule[data-view="week"] .ur-schedule__panel,
.ur-schedule:not([data-view="week"]) .ur-schedule__hint,
.ur-schedule:not([data-view="week"]) .ur-week {
	display: none;
}

.ur-schedule__info {
	display: grid;
	gap: 0.25rem;
}

.ur-schedule__places {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gray);
}

.ur-schedule__places--few {
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.ur-invert .ur-schedule__places {
	color: var(--ur-dim);
}

/* Yellow text only on black: on white it is 1.26:1. */
.ur-invert .ur-schedule__places--few {
	color: var(--wp--preset--color--accent);
}

/* Full or already started. Urban Gray fails AA on black, so dim white there. */
.ur-schedule__slot:is(.is-full, .is-past) .ur-schedule__time {
	color: var(--wp--preset--color--gray);
}

.ur-invert .ur-schedule__slot:is(.is-full, .is-past) .ur-schedule__time {
	color: var(--ur-dim);
}

/* The whole week: times down the side, days across. */
.ur-week__grid {
	inline-size: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0.375rem;
	margin: 0;
}

.ur-week__corner {
	inline-size: 5.5rem;
}

.ur-week__day {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
	padding-block: 0.625rem;
	border-block-end: 2px solid var(--wp--preset--color--accent);
}

.ur-week__dow {
	text-decoration: none;
}

.ur-week__time {
	text-align: start;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--wp--custom--tracking--tight);
	white-space: nowrap;
}

.ur-week__grid td {
	padding: 0;
}

.ur-week__cell {
	display: grid;
	place-items: center;
	min-block-size: 2.75rem;
	padding-inline: 0.125rem;
	/* "Available" outgrows a phone's cell: hyphenate it, or break it as a last resort. */
	text-align: center;
	hyphens: auto;
	overflow-wrap: anywhere;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px var(--ur-rule);
}

.ur-invert .ur-week__cell {
	box-shadow: inset 0 0 0 1px var(--ur-rule-dark);
}

a.ur-week__cell:hover,
a.ur-week__cell:focus-visible {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
}

.ur-invert .ur-week__cell--few {
	color: var(--wp--preset--color--accent);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent);
}

.ur-week__cell--full {
	font-weight: 400;
	color: var(--wp--preset--color--gray);
}

.ur-invert .ur-week__cell--full {
	color: var(--ur-dim);
}

@media (max-width: 600px) {
	.ur-schedule__slot {
		grid-template-columns: auto 1fr auto;
	}

	/* The switch keeps its place, top right, in both views. */
	.ur-schedule__views {
		order: -1;
	}

	.ur-schedule__days,
	.ur-schedule__hint {
		flex-basis: 100%;
	}

	/* The whole week fits: no sideways scrolling to find a day. */
	.ur-week__grid {
		border-spacing: 0.25rem;
	}

	.ur-week__corner {
		inline-size: 4.25rem;
	}

	.ur-week__day {
		letter-spacing: 0.04em;
	}

	.ur-week__time {
		font-size: var(--wp--preset--font-size--x-small);
	}

	.ur-week__date {
		display: block;
	}
}

/* -------------------------------------------------------------------------
 * 9. Pricing
 * ---------------------------------------------------------------------- */

.ur-plans {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

/* One price, one card: a lone card should read as an object, not a stripe —
   auto-fit would otherwise stretch it across the whole wide row. */
.ur-plan:only-child {
	inline-size: 100%;
	margin-inline: auto;
	max-inline-size: 26rem;
}

.ur-plan {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--ur-rule);
	background: var(--wp--preset--color--base);
}

.ur-plan.is-featured {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--ur-dim);
}

.ur-plan.is-featured h3,
.ur-plan.is-featured .ur-plan__price {
	color: var(--wp--preset--color--base);
}

.ur-plan__badge {
	align-self: flex-start;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.3125rem 0.625rem;
}

.ur-plan h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
}

.ur-plan__price {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 900;
	line-height: 1;
	letter-spacing: var(--wp--custom--tracking--display);
	color: var(--wp--preset--color--contrast);
	font-variant-numeric: tabular-nums;
}

/* The cards are core blocks so the studio can edit the prices, which means
   both the grid and the card are flow-layout groups whose children arrive with
   a top margin. Both lay their children out themselves — grid gap, flex gap —
   so those margins are noise. Same rule the flex groups elsewhere need. */
.ur-plans > *,
.ur-plan > * {
	margin-block: 0;
}

/* Was a <small> inside the price paragraph, which rich text will not keep.
   A sibling paragraph renders identically: the old rule was display: block. */
.ur-plan__term {
	margin-block-start: 0.375rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--wide);
	color: var(--wp--preset--color--gray);
}

.ur-plan.is-featured .ur-plan__term {
	color: var(--ur-dim);
}

/* Price and term are one flex child, so the card's gap falls either side of
   the pair rather than between them — which is what the <small> gave us.
   The pair carries the margin the price paragraph used to get from the
   browser: 1em, resolved against xx-large, which is why the font-size is set
   here and not just on the price itself. Without it the cards close up by
   about 46px top and bottom and the whole section shifts. */
.ur-plan__pricing {
	font-size: var(--wp--preset--font-size--xx-large);
	margin-block: 1em;
}

.ur-plan__pricing > * {
	margin-block: 0;
}

.ur-plan__pricing > .ur-plan__term {
	margin-block-start: 0.375rem;
}

.ur-plan ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
}

.ur-plan li {
	display: flex;
	gap: 0.625rem;
	align-items: baseline;
}

.ur-plan li::before {
	content: "";
	flex: none;
	inline-size: 0.5rem;
	block-size: 0.5rem;
	background: var(--wp--preset--color--accent);
	transform: rotate(45deg);
}

.ur-plan .wp-block-buttons,
.ur-plan .wp-block-button,
.ur-plan__cta {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--20);
}

/* The call to action is a paragraph holding a link rather than a button block.
   It is still editable — the client changes the label and the target through
   the normal link UI — and it boxes exactly as the hand-written markup did,
   which a buttons block does not. The bottom margin is the browser default the
   card was laid out around. */
.ur-plan > .ur-plan__cta {
	margin-block-end: 1em;
}

/* The offer: one object, two beats.
 *
 * The studio sells one class at one price, and a bordered box alone in a wide
 * row is a comparison grid that lost its siblings. So the section states a
 * sequence instead — the free first class, then what it costs after that — as
 * two ordinary .ur-plan panes inside one frame. Every rule above still applies
 * to each pane: price, term, yellow diamonds, is-featured's black card with its
 * --ur-dim body text, the foot pinned to the bottom.
 *
 * .ur-offer rides on the same element as .ur-plans, deliberately. Measured as a
 * nested wrapper first: the second pane took margin-block-start: 24px from
 * :where(.is-layout-flow) > * at every width in both languages, which desynced
 * the panes and opened the seam. On the shared element `.ur-plans > *` above
 * already zeroes it, .ur-plan:only-child still works as the deleted-pane
 * fallback, and initStagger() in main.js — which queries .ur-plans — still
 * reveals the two panes in sequence.
 *
 * 1px of gap over a rule-coloured background paints the frame and the seam in
 * one go: the same trick .ur-flow uses, and it avoids two borders doubling up
 * where the panes meet. The cap keeps the object an object — unconstrained, the
 * pair fills the 1320px wide row and reads as a band, which is the failure the
 * comment on .ur-plan:only-child above is about. */
.ur-plans.ur-offer {
	grid-template-columns: 1fr;
	gap: 1px;
	max-inline-size: 56rem;
	background: var(--ur-rule);
	border: 1px solid var(--ur-rule);
}

.ur-offer > .ur-plan {
	border: 0;
}

/* Half the air a lone amount needed: there are two amounts now and they hold
   each other up. 66px off the phone. */
.ur-offer .ur-plan__pricing {
	margin-block: 0.5em;
}

/* The 1em under the foot was the browser default the free-standing card was
   laid out around. Inside a framed pane it reads as the pane sagging, and the
   foot should sit on the same padding edge the head does. 34px off the phone. */
.ur-offer > .ur-plan > :last-child {
	margin-block-end: 0;
}

/* Pane 02's foot: a note, not a second button — the section has one action. It
   is the last flex child, so it pins to the bottom exactly as .ur-plan__cta
   does, and in the subgrid below it shares row 4 with the button. */
.ur-plan__note {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gray);
	max-inline-size: 30ch;
}

/* Urban Gray is 3.6:1 on black. Unreachable today — the note lives in the white
   pane and the section is content-locked — but is-featured is a class an
   unlocked section can be given, and .ur-plan__term carries the same guard a
   few rules up for the same reason. */
.ur-plan.is-featured .ur-plan__note {
	color: var(--ur-dim);
}

/* A pane deleted on the canvas, which needs the section unlocked first: the
   frame goes with it and .ur-plan:only-child above does the rest, so the
   survivor is the ordinary 26rem card this replaced rather than a capped card
   adrift inside a bordered box. Verified: background none, border 0, pane
   416px centred in the track. */
.ur-offer:has(> .ur-plan:only-child) {
	background: none;
	border: 0;
}

@media (min-width: 783px) {
	/* The theme's existing breakpoint (section 5), and the one immediately above
	   the 782px card-padding drop, so the panes go side by side exactly as they
	   gain their full padding. auto-fit rather than `1fr 1fr` so a lone survivor
	   fills the frame instead of leaving an empty track beside it; 20rem is
	   under half the capped width, so two panes are always two columns. */
	.ur-plans.ur-offer {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	}

	/* Registration by construction rather than by keeping the headings short.
	   Each pane spans the frame's four rows — head, amount, list, foot — and
	   subgrids them, so the two amounts share a baseline and the two feet share
	   an edge whatever either pane says. Measured with an English heading forced
	   to two lines against a one-line Korean one: amounts, lists and feet all
	   still report a single y. Row 3 is the 1fr, so an uneven list takes the
	   slack and the feet stay put.
	   The row-gap is restated on the pane because a subgrid otherwise inherits
	   the parent's gutters in the subgridded axis, and the frame's gutter is the
	   1px seam — which would print as hairlines across the inside of every pane.
	   And the feet are placed by the row here, so the auto top margin that pins
	   them in the flex fallback would push them down inside it. */
	@supports (grid-template-rows: subgrid) {
		.ur-plans.ur-offer {
			grid-template-rows: auto auto 1fr auto;
		}

		.ur-offer > .ur-plan {
			display: grid;
			grid-template-rows: subgrid;
			grid-row: span 4;
			row-gap: var(--wp--preset--spacing--20);
		}

		.ur-offer > .ur-plan > :last-child {
			margin-block-start: 0;
		}
	}
}

/* Three panes (the trial week, a class, a membership) only sit side by side
   once each can hold ₩245,000 at the price size on one line; below that they
   stack, rather than leave the third alone under the first two. */
@media (min-width: 783px) {
	.ur-plans.ur-offer:has(> .ur-plan:nth-child(3)) {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 1100px) {
	.ur-plans.ur-offer:has(> .ur-plan:nth-child(3)) {
		grid-template-columns: repeat(3, 1fr);
		max-inline-size: 72rem;
	}
}

/* The membership pane's second amount, under the first one's term. */
.ur-plan__term + .ur-plan__price {
	margin-block-start: 0.375em;
}

/* -------------------------------------------------------------------------
 * 10. Cards (coaches, facility, classes)
 * ---------------------------------------------------------------------- */

.ur-cards {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.ur-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ur-card__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--wp--preset--color--mist);
}

.ur-card__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms var(--ur-ease);
}

.ur-card:hover .ur-card__media img {
	transform: scale(1.04);
}

.ur-card h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
}

.ur-card p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

/* -------------------------------------------------------------------------
 * 11. FAQ
 * ---------------------------------------------------------------------- */

.ur-faq {
	border-block-start: 1px solid var(--ur-rule);
}

.ur-faq details {
	border-block-end: 1px solid var(--ur-rule);
}

/* The accordion is core/details blocks inside a flow-layout group, so the
   editor's layout stylesheet puts a top margin on every row after the first.
   The rows are separated by their own rule line, not by a gap — same reason
   the flex groups elsewhere in this file zero their children's margins. */
.ur-faq > details {
	margin-block: 0;
}

.ur-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--30);
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--contrast);
}

.ur-faq summary::-webkit-details-marker {
	display: none;
}

.ur-faq summary::after {
	content: "+";
	flex: none;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	transition: transform var(--wp--custom--transition--base);
}

.ur-faq details[open] summary::after {
	transform: rotate(45deg);
}

.ur-faq details > *:not(summary) {
	margin-block: 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	max-inline-size: 68ch;
}

/* -------------------------------------------------------------------------
 * 12. Lead form
 * ---------------------------------------------------------------------- */

.ur-form {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	max-inline-size: 34rem;
	/* Centred here rather than by the container, so the login, account and
	   trial-manage screens — which share this class — keep a readable column
	   wherever they are placed. */
	margin-inline: auto;
}

/* The Book page spans the header's width: from the lockup's left edge to the
   CTA's right edge. alignwide alone is the theme's wide size, which is the
   header's box *including* its gutter, so it landed 24px outside the logo on
   each side; taking that gutter off gives exactly the header's content width,
   and below the wide size the section's own root padding already matches it.
   Scoped by :has() to the section holding the trial form, and to the legal
   pages laid out like it, so nothing else that is alignwide moves. The form itself drops its 34rem cap here only —
   the other screens above still want it. */
.wp-block-group.alignfull:has(.wp-block-urbanrow-lead-form) > .alignwide,
.wp-block-group.alignfull.ur-legal > .alignwide {
	max-inline-size: calc(var(--wp--style--global--wide-size) - 2 * var(--wp--preset--spacing--30));
}

.wp-block-urbanrow-lead-form .ur-form {
	max-inline-size: none;
}

.ur-form__row {
	display: grid;
	gap: 0.375rem;
}

/* Date of birth: three equal lists in one row. Equal, because the widest
   texts are as wide as each other: "1990년" and "Month" both fit a 360px
   phone. The fieldset only groups them; its legend takes the field-label
   rule further down. */
.ur-form__date {
	border: 0;
	margin: 0;
	min-inline-size: 0;
	padding: 0;
}

.ur-form__date > legend {
	padding: 0;
	margin-block-end: 0.375rem;
}

.ur-form__date-lists {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}

/* Below 360px, as on the first iPhone SE, three lists cannot each show
   "1990년", so the year takes its own row and month and day share the next. */
@media (max-width: 359px) {
	.ur-form__date-lists {
		grid-template-columns: 1fr 1fr;
	}

	.ur-form__date-lists > :first-child {
		grid-column: 1 / -1;
	}
}

/* Safari keeps a list native, 25px tall with rounded corners, until its
   appearance is reset; then it takes the fields' padding and border. Chrome
   on macOS also resets a list's line height to "normal" whatever the CSS
   says, so the height is set outright: the body's 1.65 line height plus the
   fields' padding and border. The arrow is redrawn in the text colour. */
.ur-form select {
	appearance: none;
	min-block-size: calc(1.65em + 1.75rem + 2px);
	padding-inline-end: 1.625rem;
	background-image:
		linear-gradient(45deg, transparent 50%, currentcolor 50%),
		linear-gradient(135deg, currentcolor 50%, transparent 50%);
	background-position:
		right 1rem center,
		right 0.625rem center;
	background-size: 0.375rem 0.375rem;
	background-repeat: no-repeat;
}

/* Wizard steps. The fieldset is structural — no box of its own — but it does
   space its fields: the form's own gap stops at the fieldset, so the rows
   inside sat flush, each label touching the field above. The gap matches the
   space above the buttons. Flex on the nav means its children need their flow
   margins zeroed (editor flow layout adds a top margin to every sibling after
   the first). */
.ur-form__step {
	border: 0;
	margin: 0;
	min-inline-size: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.ur-form__step > legend {
	font-weight: 600;
	margin-block-end: 0.75rem;
	padding: 0;
}

.ur-form__step > legend:focus {
	outline: none;
}

/* Default is the white-surface reading — Urban Gray clears AA at 5.8:1 (see
   the contrast note at the top of the file). The booking, login, account and
   trial-manage screens are all white by design; the .ur-invert overrides
   below only matter if the form is ever dropped into a dark band again. */
.ur-form__hint {
	color: var(--wp--preset--color--gray);
	font-size: 0.9375rem;
	margin-block: 0 0.75rem;
}

/* The gap spaces a step's blocks, so a hint directly in one adds nothing. */
.ur-form__step > .ur-form__hint {
	margin-block: 0;
}

/* The class-time picker's own validation message — main.js toggles [hidden]
   on it, never the HTML `required` attribute: every radio outside the open
   day panel sits in a [hidden] panel, and a required control the browser
   cannot focus makes Chrome refuse to submit the page while showing the
   visitor nothing. The red is a border accent only, exactly like
   .ur-form__message[data-state="error"] below, never the text itself. */
.ur-form__error {
	color: var(--wp--preset--color--gray);
	font-size: 0.9375rem;
	font-weight: 700;
	margin-block: 0 0.75rem;
	padding-inline-start: 0.75rem;
	border-inline-start: 4px solid #e02f2f;
}

/* Urban Gray fails AA on black (3.6:1) — white at 72% instead, the same swap
   every other on-black text in this file makes. */
.ur-invert .ur-form__hint,
.ur-invert .ur-form__error {
	color: var(--ur-dim);
}

/* Class-time picker. Every panel ships in the markup — see
   src/lead-form/render.php — so [hidden] (forced !important above) is all
   JS needs to toggle. Grid/flex containers here all need `> * { margin-block:
   0 }`: the block editor's flow layout adds a top margin to every sibling
   after the first, and that is the single most common regression in this
   file. */
.ur-slots {
	display: grid;
	gap: var(--wp--preset--spacing--20);
}

.ur-slots > * {
	margin-block: 0;
}

.ur-slots__days {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ur-slots__days > * {
	margin-block: 0;
}

/* Same visual language as .ur-schedule__day (section 8) — a day tab is a day
   tab — but declared again rather than shared with it, so nothing here can
   ever restyle the schedule block.

   Selector is `.ur-form .ur-slots__day`, not the bare class: `.ur-form
   button` below (a class plus a type selector) otherwise outranks a single
   class and every tab paints itself in the submit button's accent fill. */
.ur-form .ur-slots__day {
	appearance: none;
	border: 1px solid var(--ur-rule);
	background: none;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.625rem 1rem;
	cursor: pointer;
	transition: background var(--wp--custom--transition--base),
		color var(--wp--custom--transition--base),
		border-color var(--wp--custom--transition--base);
}

.ur-form .ur-slots__day[aria-selected="true"] {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.ur-invert .ur-slots__day {
	border-color: var(--ur-rule-dark);
}

.ur-slots__panel {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	gap: 0.625rem;
}

.ur-slots__panel > * {
	margin-block: 0;
}

/* The radio itself is clipped to a point rather than display:none or
   visibility:hidden, so it stays in the tab order and keyboard-focusable —
   the card (.ur-slot, the label it sits inside) carries the visible state via
   :has() below. Its own :focus-visible outline is switched off so nothing is
   drawn around the invisible 1px box the click lands on. */
.ur-slot input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Only blank the native outline where the .ur-slot:has(:focus-visible)
   replacement below can actually draw one. :has() is the only such use in
   the theme and has no fallback CSS elsewhere, so gating this behind the
   same feature keeps a working (if less pretty) focus ring — the native
   outline around the clipped input — in any engine that lacks :has(). */
@supports selector(:has(*)) {
	.ur-slot input:focus-visible {
		outline: none;
	}
}

.ur-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--ur-rule);
	cursor: pointer;
	transition: background var(--wp--custom--transition--base),
		border-color var(--wp--custom--transition--base),
		color var(--wp--custom--transition--base);
}

.ur-slot > * {
	margin-block: 0;
}

.ur-slot:hover {
	border-color: var(--wp--preset--color--accent);
}

.ur-invert .ur-slot {
	border-color: var(--ur-rule-dark);
}

.ur-slot:has(:focus-visible) {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.ur-slot:has(:checked) {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

/* Accent is a background only, never text (Urban Yellow on white is 1.26:1) —
   the checked card's own text turns contrast (black), which reads at well
   over AA on the yellow fill. This selector's specificity (a class, a :has()
   and a class) already outranks `.ur-invert .ur-slot__time` /
   `.ur-invert .ur-slot__name` below, so the checked state stays legible on a
   dark band too without a separate .ur-invert rule to keep in sync. */
.ur-slot:has(:checked) .ur-slot__time,
.ur-slot:has(:checked) .ur-slot__name {
	color: var(--wp--preset--color--contrast);
}

.ur-slot__time {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 900;
	letter-spacing: var(--wp--custom--tracking--tight);
	color: var(--wp--preset--color--contrast);
	font-variant-numeric: tabular-nums;
}

.ur-invert .ur-slot__time {
	color: var(--wp--preset--color--base);
}

.ur-slot__name {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--gray);
}

.ur-invert .ur-slot__name {
	/* Urban Gray on black is 3.6:1 and fails AA — white at 72% instead. */
	color: var(--ur-dim);
}

.ur-form__progress {
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	margin-block: 0 0.5rem;
	text-transform: uppercase;
}

.ur-form__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.ur-form__nav > * {
	margin-block: 0;
}

.ur-form__review {
	display: grid;
	gap: 0.5rem 1rem;
	grid-template-columns: auto 1fr;
	margin-block: 0;
}

.ur-form__review > * {
	margin-block: 0;
}

/* Label / value pairs: the wizard's review step and the trial-manage
   details, so restyling it here is safe rather than a modifier class. */
.ur-form__review dt {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--wide);
	color: var(--wp--preset--color--gray);
}

.ur-form__review dd {
	font-weight: 600;
}

/* On a phone the label column took half the width, and an ordinary email
   broke at its last letter; each label sits above its value instead. */
@media (max-width: 600px) {
	.ur-form__review {
		grid-template-columns: 1fr;
		row-gap: 0.25rem;
	}

	.ur-form__review dd {
		margin-inline-start: 0;
	}

	.ur-form__review dd + dt {
		margin-block-start: 0.75rem;
	}
}

.ur-form label,
.ur-form__date > legend {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--wide);
}

.ur-form :where(input, select, textarea) {
	inline-size: 100%;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.875rem 1rem;
	border: 1px solid var(--ur-rule);
	border-radius: 0;
	background: transparent;
	color: inherit;
}

.ur-invert .ur-form :where(input, select, textarea) {
	border-color: var(--ur-rule-dark);
}

.ur-form :where(input, select, textarea):focus {
	border-color: var(--wp--preset--color--accent);
}

.ur-form button {
	justify-self: start;
	margin-block-start: var(--wp--preset--spacing--10);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 1.0625rem 2rem;
	border: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: background var(--wp--custom--transition--base),
		color var(--wp--custom--transition--base);
}

/* :not([aria-selected="true"]) keeps this from repainting a selected day tab
   the instant the pointer lands on it — exactly where it is right after a
   click. Selected fill lives in .ur-form .ur-slots__day[aria-selected="true"]
   above; without the guard this rule's specificity (a class, :hover and the
   :not() it contains) already outranks that one, hover or no. On white the
   hover goes black — a white button on a white page would vanish. */
.ur-form button:hover:not(:disabled):not([aria-selected="true"]) {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.ur-invert .ur-form button:hover:not(:disabled):not([aria-selected="true"]) {
	background: var(--wp--preset--color--base);
}

.ur-form button:disabled {
	opacity: 0.55;
	cursor: progress;
}

/* Selector matches `.ur-form label` in specificity plus one — the consent line
   is a label too, and would otherwise inherit the uppercase field-label
   treatment, which is unreadable for a sentence of legal copy. */
/* The PIPA consent notice. Quiet by default — it is required reading, not a
   sales point — but the retention line is bold because that is the one people
   actually look for. */
.ur-form__notice {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 2px;
}

.ur-form__notice > * {
	margin-block: 0;
}

.ur-form__notice > * + * {
	margin-block-start: 0.75em;
}

.ur-form__notice-lead {
	font-weight: 600;
}

.ur-form__notice dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35em 1em;
}

.ur-form__notice dt {
	font-weight: 600;
	white-space: nowrap;
}

.ur-form__notice dd {
	margin: 0;
}

@media (max-width: 30rem) {
	.ur-form__notice dl {
		grid-template-columns: 1fr;
		gap: 0.15em;
	}

	.ur-form__notice dd {
		margin-block-end: 0.5em;
	}
}

.ur-form label.ur-form__consent {
	display: flex;
	gap: 0.625rem;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	line-height: 1.5;
}

.ur-form__consent input {
	inline-size: 1.125rem;
	block-size: 1.125rem;
	flex: none;
	margin-block-start: 0.125rem;
	padding: 0;
}

/* Honeypot. Off-screen rather than display:none so bots that check computed
   styles still fill it in. */
.ur-form__hp {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ur-form__message {
	padding: var(--wp--preset--spacing--30);
	border-inline-start: 4px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

.ur-invert .ur-form__message {
	background: rgba(255, 255, 255, 0.06);
	color: var(--wp--preset--color--base);
}

.ur-form__message[data-state="error"] {
	border-color: #e02f2f;
}

/* -------------------------------------------------------------------------
 * 13. Footer
 * ---------------------------------------------------------------------- */

.ur-footer {
	background: var(--wp--preset--color--contrast);
	color: var(--ur-dim);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.ur-footer__inner {
	max-inline-size: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

/* The footer is composed of core groups now, and every one of them is a flow
   layout that gives its children a top margin. The footer lays itself out with
   the grid and the flex columns above, so those margins are noise — the
   headings keep their own bottom margin from the rule below. */
.ur-footer > *,
.ur-footer__inner > *,
.ur-footer__bottom > *,
.ur-footer :where(.wp-block-group) > * {
	margin-block: 0;
}

.ur-footer h2 {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--wide);
	color: var(--wp--preset--color--accent);
	margin: 0 0 var(--wp--preset--spacing--20);
}

.ur-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
}

/* theme.json styles core/navigation bold and uppercase, which is right for the
   header bar and wrong everywhere else: the footer menus sat heavier than the
   address beside them, and core's own layout centred them while every other
   column was left-aligned. */
.ur-footer__nav ul,
.ur-footer__legal ul {
	align-items: flex-start;
	justify-content: flex-start;
}

/* The legal links share one line. The column every other footer list takes
   stacked them at the end of the bottom bar. */
.ur-footer__legal ul {
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: var(--wp--preset--spacing--30);
}

.ur-footer__nav,
.ur-footer__nav a,
.ur-footer__legal,
.ur-footer__legal a {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
}

/* PIPC's guidance: the privacy policy link stands out from the other notices. */
.ur-footer__legal .ur-footer__privacy a {
	font-weight: 700;
}

.ur-footer a {
	color: inherit;
	text-decoration: none;
}

.ur-footer a:hover {
	color: var(--wp--preset--color--accent);
}

/* The stacked lockup is wider than it is tall, so it is sized on width — at a
   fixed height it would sit far smaller than the bare mark it replaced. */
.ur-footer__brand img {
	inline-size: clamp(8.5rem, 11vw, 11rem);
	block-size: auto;
	display: block;
}

/* Social links are glyphs, not words. core/social-links in its logos-only
   style, so the studio can add a network without a deploy; the sizing is ours
   because core's default icon is 24px in a 36px box and the link needs a 44px
   hit area to stay thumb-reachable on a phone. */
.ur-footer .ur-social {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-inline-start: -0.6875rem;
	padding: 0;
}

.ur-footer .ur-social .wp-block-social-link {
	margin: 0;
	padding: 0;
}

.ur-footer .ur-social .wp-social-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	padding: 0;
	color: var(--ur-dim);
	transition: color var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base);
}

.ur-footer .ur-social .wp-social-link a:hover,
.ur-footer .ur-social .wp-social-link a:focus-visible {
	color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
}

.ur-footer .ur-social svg {
	display: block;
	inline-size: 1.375rem;
	block-size: 1.375rem;
	fill: currentColor;
}

/* The address lines and the contact links are paragraphs and buttons now, not
   list items, so the size that used to come from `.ur-footer ul` has to be
   stated for them. */
.ur-footer p,
.ur-footer .wp-block-buttons {
	font-size: var(--wp--preset--font-size--small);
}

.ur-footer .wp-block-buttons {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.ur-footer .wp-block-buttons .wp-block-button {
	margin: 0;
}

/* The address column used to be a list, and `.ur-footer ul` gave it 0.5rem
   between items. As paragraphs its children inherit the zeroed flow margin
   above instead, which closed the column up by exactly 16px — invisible on
   desktop, where the seven-item menu sets the footer's height, and 16px off
   every mobile page. */
.ur-footer p + p,
.ur-footer p + .wp-block-buttons {
	margin-block-start: 0.5rem;
}

/* Each studio in the Studio column, and Yeoksam's own accounts under Follow,
   opens with the branch name. */
.ur-footer__branch {
	color: var(--wp--preset--color--base);
	font-weight: 700;
}

.ur-footer :is(.wp-block-buttons, .ur-social) + .ur-footer__branch {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* The language switcher lives here now, between the copyright and the legal
   links — .ur-footer__bottom is already space-between, so a third child lands
   in the middle without a layout change.
   .ur-footer ul stacks every footer list into a column, which is right for the
   four menus above and wrong for two inline language codes; it also outranks
   .ur-lang on its own, hence the compound selector. The colours carry over
   unchanged because this bar is as dark as the header was. */
.ur-footer .ur-lang--footer {
	flex-direction: row;
	gap: 0.375rem;
	font-size: inherit;
}

/* Three columns rather than space-between, so the switcher sits on the
   container's centre line instead of the midpoint of whatever space the
   copyright and the legal links happen to leave — those differ per language,
   and with space-between the switcher visibly drifted between /ko/ and /en/.
   Below this width the row stacks and the flex rules underneath take over. */
@media (min-width: 720px) {
	.ur-footer__bottom {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}

	.ur-footer__bottom > :last-child {
		justify-self: end;
	}
}

.ur-footer__bottom {
	max-inline-size: var(--wp--style--global--wide-size);
	margin: var(--wp--preset--spacing--50) auto 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0;
	border-block-start: 1px solid var(--ur-rule-dark);
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	justify-content: space-between;
	font-size: var(--wp--preset--font-size--x-small);
}

/* -------------------------------------------------------------------------
 * 14. Scroll-reveal
 *
 * Progressive enhancement: elements are visible by default and only hidden
 * once JS has confirmed IntersectionObserver support, so a JS failure leaves
 * the page readable rather than blank.
 * ---------------------------------------------------------------------- */

.ur-js .ur-reveal {
	opacity: 0;
	transform: translateY(1.75rem);
	transition: opacity 700ms var(--ur-ease), transform 700ms var(--ur-ease);
}

.ur-js .ur-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ur-js .ur-reveal {
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------------
 * 16. Small screens
 *
 * The hero is the section that breaks first: at 390px the fluid display sizes
 * and the desktop spacing scale push the proof numbers below the fold and slide
 * the eyebrow under the fixed header. Everything here is about making one
 * screen hold the whole hero.
 * ---------------------------------------------------------------------- */

@media (max-width: 782px) {

	/* On a phone the footer is a single column, and the seven-item Explore list
	   made it a tower — most of the footer's height for a third of its content.
	   Two columns halve it without shrinking the tap targets. */
	.ur-footer__nav ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--30);
	}

	/* The stacked lockup is the widest thing down here and it does not need to
	   be: it is a sign-off, not the header's lockup. */
	.ur-footer__brand img {
		inline-size: 7.5rem;
	}

	/* Two columns, so the two short lists sit side by side instead of stacking
	   into a ladder. The brand, the menu and the social row each want the full
	   width; the address and the contact details are narrow enough to share. */
	.ur-footer__inner {
		gap: var(--wp--preset--spacing--30);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ur-footer__inner > :nth-child(1),
	.ur-footer__inner > :nth-child(4),
	.ur-footer__inner > :nth-child(5) {
		grid-column: 1 / -1;
	}

	.ur-hero.wp-block-cover {
		padding-block: calc(var(--ur-header-height) + var(--ur-safe-top) + var(--wp--preset--spacing--30))
			var(--wp--preset--spacing--40);
	}

	/* The `mega` preset bottoms out at 3.5rem, which is three tall lines here. */
	.ur-hero h1 {
		font-size: clamp(2.625rem, 12.5vw, 3.75rem);
		max-inline-size: 11ch;
	}

	.ur-hero__lede {
		font-size: var(--wp--preset--font-size--medium);
		max-inline-size: 32ch;
		margin-block-start: var(--wp--preset--spacing--20);
	}

	.ur-hero__actions {
		gap: 0.625rem;
		margin-block-start: var(--wp--preset--spacing--30);
	}

	/* Thumb-sized and full width beats two half-width buttons on a phone. */
	.ur-hero__actions .wp-block-button {
		flex: 1 1 100%;
	}

	.ur-hero__actions .wp-block-button__link {
		display: block;
		text-align: center;
	}

	/* The film is shot landscape. Cropping a 16:9 frame to a portrait screen
	   throws the people out to the sides whatever the object-position, so the
	   hero drops the video element entirely here and uses a still cut and framed
	   for portrait instead. Because the element is display:none its poster is
	   never fetched either — a phone loads this one 40KB JPEG and nothing else. */
	.ur-hero video {
		display: none;
	}

	.ur-hero.wp-block-cover {
		background-image: url("../img/hero-portrait.jpg");
		background-size: cover;
		background-position: 50% 30%;
	}

	.ur-band video {
		object-position: 50% 35%;
	}

	.ur-band.wp-block-cover {
		min-block-size: 52vh !important;
	}

	.ur-schedule__day {
		flex: 1 0 auto;
	}

	.ur-plan {
		padding: var(--wp--preset--spacing--30);
	}

	.ur-footer__inner {
		gap: var(--wp--preset--spacing--30);
	}
}

/* -------------------------------------------------------------------------
 * 17. Member area (login, account chrome, trial manage)
 *
 * All three ship on the white surface, by design — none of this carries an
 * .ur-invert wrapper. The vocabulary is the same lead-form/plan-card one
 * used everywhere else: .ur-form fields, .ur-clip buttons, --ur-rule,
 * spacing presets. No new colours, no new type sizes.
 * ---------------------------------------------------------------------- */

/* :root sets color-scheme: dark site-wide (see section 1) — every native
   control here would otherwise render with dark UA chrome on a white page,
   most visibly the "Remember me" checkbox painting as a solid black square.
   This is the light-surface counterpart to `.ur-invert :where(input, select,
   textarea)` above, which still wins inside a dark band; the plugin's
   account.css carries the matching rule for the WooCommerce shell, scoped to
   body.woocommerce-account instead, since these components have no wrapping
   element in common. */
.ur-form,
.ur-login,
.ur-manage {
	color-scheme: light;
}

.ur-invert .ur-form {
	color-scheme: dark;
}

/* -- Login -------------------------------------------------------------- */

/* Laid out like the trial pages (.ur-manage, below): left-aligned under the
   page heading, with the form in the theme's 34rem column. */
.ur-login .ur-login__column {
	justify-self: stretch;
}

/* Registration is off today (see Store::trim_account_menu and the studio's
   settings), but the stock template still renders it when the option is on,
   so the split layout has to exist and has to work. */
.ur-login--split {
	max-inline-size: none;
	display: grid;
	gap: var(--wp--preset--spacing--60);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ur-login--split > * {
	margin-block: 0;
}

.ur-login--split .ur-login__column {
	max-inline-size: none;
}

@media (max-width: 780px) {
	.ur-login--split {
		grid-template-columns: 1fr;
	}
}

/* Woo's own h2 ("Login" / "Register") — restyled small rather than replaced,
   so the page keeps a single big heading: the one the companion plugin prints
   above the account (Account\Endpoints::heading). */
.ur-login h2 {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--tight);
}

.ur-login .ur-form {
	margin-inline: 0;
}

.ur-form .ur-login__remember {
	display: flex;
	align-items: center;
}

.ur-form .ur-login__remember label {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.ur-form .ur-login__remember input {
	inline-size: 1.125rem;
	block-size: 1.125rem;
	flex: none;
	margin: 0;
	padding: 0;
}

/* The button, then "Forgot your password?" beside it: a link, not a second
   call to action. */
.ur-form .ur-login__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
}

.ur-form .ur-login__actions > * {
	margin-block: 0;
}

/* -- Account chrome (grid, quiet button) ---------------------------------- */

/* Cancel is destructive and secondary: an outline rather than the accent
   slab. The plugin's .ur-button--quiet (account.css) is the same idea for
   the booking-table row forms; this is the theme's own button and needs its
   own class, but it keeps the .ur-clip corner geometry for free — that
   selector list already includes .ur-clip. `.ur-form button` is a
   class-plus-type selector, so a bare class cannot outrank it; pairing with
   `.ur-form` is the same fix `.ur-form .ur-slots__day` uses above. */
.ur-form .ur-clip--quiet {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--ur-rule);
	color: inherit;
}

/* -- Trial manage --------------------------------------------------------- */

/* Left-aligned at the header's width, like the Book page it is copied from:
   the lede, the status line, the details, the one action. The grid gap does
   the spacing, so the children's flow margins are zeroed. */
.ur-manage {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	justify-items: start;
}

.ur-manage > * {
	margin-block: 0;
}

/* The lede, as on the Book page, where it sits in the wide group directly:
   the 56ch measure, and 2.5rem below (the gap plus 1rem). */
.ur-manage > p:first-child {
	max-inline-size: 56ch;
	margin-block-end: var(--wp--preset--spacing--20);
}

.ur-manage > .ur-form__message,
.ur-manage > .ur-form {
	justify-self: stretch;
}

/* .ur-form centres itself in a 34rem column; here it starts at the left. */
.ur-manage > .ur-form {
	margin-inline: 0;
}

/* A cancelled trial needs neither what to expect nor the questions. The
   migration marks those sections; without :has() they simply stay. */
.wp-block-post-content:has(.ur-manage[data-state="cancelled"]) .ur-manage-extra {
	display: none;
}

/* -- Legal pages ---------------------------------------------------------- */

/* The privacy policy and terms of use read as one column under the Book
   page's heading: a 68ch measure for the text and lists, and room above each
   section. */
.ur-legal .wp-block-group.alignwide > :is(p, ul, ol, h2, h3) {
	max-inline-size: 68ch;
}

.ur-legal .wp-block-group.alignwide > h2 {
	margin-block-start: var(--wp--preset--spacing--60);
}

.ur-legal .wp-block-group.alignwide > h3 {
	margin-block-start: var(--wp--preset--spacing--40);
}
