/*
Theme Name: Institute of Reflection
Theme URI: https://instituteofreflection.com
Description: Block theme for The Institute of Reflection (2026 design: Cormorant Garamond + Jost, ink and gold). All design values live in theme.json.
Author: Watch the Dot
Author URI: https://www.watchthedot.com
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: ior
License: GPL-2.0-or-later
*/

/* Only what theme.json cannot express. Keep this file short. */

/* Small gold label above titles and sections ("eyebrow"). */
.is-style-eyebrow,
.ior-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 400;
	color: var(--wp--preset--color--gold-dark);
}
.ior-eyebrow a { color: inherit; text-decoration: none; }
.ior-eyebrow a:hover { text-decoration: underline; }

/* Links in running text: ink with a gold underline. */
:where(.wp-block-post-content, .entry-content) a:where(:not(.wp-element-button)) {
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* 2026 text styles (block styles; see functions.php) */
.is-style-lead { font-weight: 500; color: var(--wp--preset--color--ink); }
.is-style-pull {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-style: italic;
	font-weight: 400;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
}
:is(.wp-block-heading, .wp-block-post-title).is-style-hero {
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.01em;
}

/* Button styles */
.wp-block-button.is-style-plain .wp-block-button__link,
.wp-block-button.is-style-plain-gold .wp-block-button__link {
	background: transparent; padding: 0; color: var(--wp--preset--color--muted);
	text-transform: none; letter-spacing: 0.02em; font-size: var(--wp--preset--font-size--small);
}
.wp-block-button.is-style-plain-gold .wp-block-button__link { color: var(--wp--preset--color--gold-dark); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; }
.wp-block-button.is-style-plain .wp-block-button__link:hover,
.wp-block-button.is-style-plain-gold .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--ink); text-decoration: underline; }
.wp-block-button.is-style-gold-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--gold-dark); box-shadow: inset 0 0 0 1px var(--wp--preset--color--gold); }
.wp-block-button.is-style-gold-outline .wp-block-button__link:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); }

/* Dark bands (ink background) */
.has-ink-background-color :is(h1, h2, h3, h4, h5, h6, .is-style-pull) { color: var(--wp--preset--color--white); }
.has-ink-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--white); }
.has-ink-background-color .wp-element-button { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); }
.has-ink-background-color .is-style-plain .wp-block-button__link { color: var(--wp--preset--color--sand); }

/* ==========================================================================
   EXACT pages (.ior-x): the 2026 pages built in Divi, converted to blocks.
   These rules reproduce Divi's base styles so the pages look as they did;
   per-module values (padding, sizes, colours, widths) are on the blocks.
   ========================================================================== */
.ior-x-section { margin-block: 0 !important; position: relative; }
.ior-x {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	/* 1.7em (not 1.7): like Divi, the 27.2px line height is inherited as-is by larger text that sets no line height of its own. */
	line-height: 1.7em;
	font-weight: 300;
	color: #3d3a35;
}
/* Divi rows have no side padding: drop WordPress's root padding inside these pages. */
.ior-x .has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }
/* No theme block gaps inside: Divi spacing comes from the blocks' own margins. */
.ior-x.ior-x :where(.wp-block-group, .wp-block-column, .wp-block-cover__inner-container, .wp-block-post-content) > *,
.ior-x.ior-x > * { margin-block: 0; }
.ior-x :where(p) { margin: 0; padding-bottom: 1em; }
.ior-x :where(p):last-child { padding-bottom: 0; }
/* Headings take only their own settings (Divi applies a module's text font to body text, not headings). */
.ior-x :where(h1, h2, h3, h4, h5, h6) { margin: 0; color: #1c1a17; font-family: var(--wp--preset--font-family--serif); letter-spacing: normal; text-transform: none; font-style: normal; }
.ior-x :where(ul, ol) { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
/* Links in the 2026 palette (Divi's old site-wide green is retired): ink, gold underline, gold-dark on hover. */
.ior-x :where(a:not(.wp-element-button)) { color: var(--wp--preset--color--ink); text-decoration: underline; text-decoration-color: var(--wp--preset--color--gold); text-underline-offset: 0.15em; }
.ior-x :where(a:not(.wp-element-button)):hover { color: var(--wp--preset--color--gold-dark); }
.ior-x :where(h1, h2, h3, h4, h5, h6) :where(a) { color: inherit; text-decoration: none; } /* Divi: heading links take the heading colour */
.ior-x a.ior-x-modlink { color: inherit; text-decoration: none; } /* Divi "module link": clickable, not restyled */
.ior-x a.ior-x-modlink:hover { opacity: 0.8; }
/* Divi quotes take the module's text style, with a 5px accent rule (not the theme's quote style). */
.ior-x .wp-block-quote {
	color: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit;
	border-left: 5px solid #b9935e; padding-left: 20px; margin: 20px 0 30px;
}
.ior-x .wp-block-columns.ior-x-cols { margin: 0 auto; flex-wrap: nowrap; }
@media (max-width: 781px) { .ior-x .wp-block-columns.ior-x-cols { flex-wrap: wrap; row-gap: 30px !important; } }
.ior-x .wp-block-column { min-width: 0; }
.ior-x .wp-block-image { margin: 0; }
.ior-x .wp-block-image img { max-width: 100%; height: auto; }
.ior-x .ior-x-full img { width: 100%; }
.ior-x iframe[src*="youtube"], .ior-x iframe[src*="vimeo"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ior-x .wp-block-button__link { display: inline-block; text-decoration: none; }
.ior-x .wp-block-button__link:hover { background-color: #b9935e !important; color: #1c1a17 !important; }
/* Column photos: the cover fills the column's full (equal) height; captions sit on it edge to edge. */
.ior-x .wp-block-column:has(> .ior-x-fill) { display: flex; flex-direction: column; }
.ior-x .ior-x-fill { flex: 1; min-height: 300px; padding: 0; }
.ior-x .ior-x-fill > .wp-block-cover__inner-container { width: 100%; }
.ior-x .wp-block-columns.is-equal { align-items: stretch; }

/* Article template: Divi's post meta line links take the meta colour. */
.ior-x .ior-x-meta a { color: inherit; }
/* Articles built in Divi sat in white Divi sections inside the paper-coloured band. The 2026 site keeps
   all content on the paper colour, so the sections keep only their spacing. */
.ior-x-postcontent .ior-section { background: transparent; padding: 4% 5%; }
.ior-x-postcontent .ior-section + .ior-section { padding-top: 0; }

/* Audio cards (Divi audio module): minimal white player on the card colour. */
.ior-x-audio { text-align: center; }
.ior-x-audio .ior-x-audio-meta { padding-bottom: 10px; }
.ior-x-audio .mejs-container, .ior-x-audio .mejs-container .mejs-controls { background: transparent !important; }
.ior-x-audio .mejs-container { max-width: 100%; }
.ior-x-audio .mejs-controls .mejs-time-rail .mejs-time-total { height: 2px; margin-top: 9px; background: rgba(255, 255, 255, 0.5); border-radius: 0; }
.ior-x-audio .mejs-controls .mejs-time-rail .mejs-time-loaded { height: 2px; background: rgba(255, 255, 255, 0.6); }
.ior-x-audio .mejs-controls .mejs-time-rail .mejs-time-current { height: 2px; background: #fff; }
.ior-x-audio .mejs-controls .mejs-time-handle-content { border-color: #fff; top: -6px; }
.ior-x-audio .mejs-controls .mejs-horizontal-volume-total { height: 2px; top: 19px; background: rgba(255, 255, 255, 0.5); border-radius: 0; }
.ior-x-audio .mejs-controls .mejs-horizontal-volume-current { height: 2px; background: #fff; }
.ior-x-audio .mejs-time { color: #fff; font-family: var(--wp--preset--font-family--sans); font-size: 13px; }

/* Divi module classes used on these pages (ported from Divi Theme Options CSS) */
.live-indicator { position: relative; padding-left: 18px; }
.live-indicator::before {
	content: ""; position: absolute; left: 0; top: 0.55em; transform: translateY(-50%);
	width: 10px; height: 10px; border-radius: 50%; background: #b9935e; margin-top: 5px;
	box-shadow: 0 0 0 rgba(255, 215, 0, 0.7); animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-indicator::before { animation: none; } }
.institute-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: institute-steps; }
.institute-steps ol li {
	counter-increment: institute-steps; position: relative; display: grid; grid-template-columns: 2.75rem 1fr;
	gap: 0.75rem; margin: 0; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.45); line-height: 1.7;
}
.institute-steps ol li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.institute-steps ol li::before {
	content: counter(institute-steps, decimal-leading-zero); font-family: Georgia, serif; font-size: 1.35rem;
	line-height: 1; color: #8b6a32; opacity: 0.75; padding-top: 0.15rem;
}
.institute-steps ol li i { display: block; font-style: normal; font-family: Georgia, serif; font-size: 1rem; line-height: 1.3; color: rgba(255, 255, 255, 0.85); margin-bottom: 0.35rem; }
/* Divi menu modules ("footer-static-menu"): a plain vertical list. */
.ior-x-menu ul { list-style: none; margin: 0; padding: 0; line-height: inherit; }
.ior-x-menu li { display: block; width: 100%; }
.ior-x-menu li a { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: inherit; }
.ior-x-menu .sub-menu { padding-left: 15px; }

/* ==========================================================================
   2026 room design, as theme blocks (Poet's Corner, poets, poems).
   Same visual language as the converted 2026 pages: dark hero with a gold
   label and display title, then sand/paper/cream bands with white cards.
   ========================================================================== */
.ior-room-hero { margin-block: 0 !important; }
.ior-room-hero__cols { margin: 0 !important; align-items: stretch !important; }
.ior-room-hero__text { padding: clamp(3rem, 6vw, 6rem) 5%; }
.ior-room-hero__text > * + * { margin-top: 1.25rem; }
.ior-room-hero .is-style-eyebrow { color: #b9935e; }
.ior-room-hero .wp-block-post-title, .ior-room-hero .wp-block-heading { color: #fff; }
.ior-room-intro, .ior-room-hero .ior-room-intro p { color: #b8b1a6; font-weight: 300; max-width: 36rem; }
.ior-room-hero__media { min-height: 360px; display: flex; }
.ior-room-hero__media > * { flex: 1; margin: 0; }
.ior-room-photo, .ior-room-photo img { height: 100% !important; width: 100%; object-fit: cover; }
@media (max-width: 781px) { .ior-room-hero__media { min-height: 260px; } }

.ior-band { padding-block: clamp(3rem, 6vw, 5.5rem); margin-block: 0 !important; }
.ior-band + .ior-band { margin-top: 0 !important; }
.ior-band__title { font-size: var(--wp--preset--font-size--x-large); font-weight: 400; margin-bottom: 2rem !important; }
/* Left-aligned with the band's content, text at most ~40rem wide (padding counted inside the 76rem). */
.ior-band__title { box-sizing: border-box; padding-right: max(0px, calc(min(100%, 76rem) - 40rem)); }
.ior-band--intro p { color: var(--wp--preset--color--body); }

/* White cards on coloured bands */
.ior-cards .ior-grid--grid .ior-grid__item,
.ior-cards .ior-grid--list .ior-grid__item { background: #fff; box-shadow: 0 1px 0 rgba(28, 26, 23, 0.06); }
.ior-cards .ior-grid--grid .ior-grid__thumb { margin: 0; }
.ior-cards .ior-grid--grid .ior-grid__body { padding: 1.25rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.ior-cards .ior-grid--grid .ior-grid__more { margin-top: auto !important; padding-top: 1rem; }
.ior-cards .ior-grid__text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ior-cards--feature .ior-grid--list .ior-grid__thumb { flex-basis: 40%; }
.ior-cards--feature .ior-grid--list .ior-grid__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.ior-band--links .wp-block-buttons { margin-top: 2.5rem; justify-content: center; }

/* Poet pages */
.ior-poet-bio p { color: #b8b1a6; }
.ior-poet-bio a, .ior-room-hero .is-style-eyebrow a { color: #b9935e; text-decoration: none; }
.ior-poem-list ul, .ior-poem-more ul { list-style: none; margin: 0; padding: 0; }
.ior-poem-list ul { columns: 3 16rem; column-gap: 3rem; }
.ior-poem-list li, .ior-poem-more li { break-inside: avoid; border-bottom: 1px solid rgba(28, 26, 23, 0.12); }
.ior-poem-list li a, .ior-poem-more li a {
	display: block; padding: 0.6rem 0; text-decoration: none; color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--serif); font-size: 1.25rem; line-height: 1.3;
}
.ior-poem-list li a:hover, .ior-poem-more li a:hover { color: var(--wp--preset--color--gold-dark); }

/* Poems */
.ior-poem-head { padding-block: clamp(2.5rem, 5vw, 4rem); }
.ior-poem-head .wp-block-post-title { font-weight: 300; margin-top: 0.5rem; }
.ior-poem-by { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.ior-poem-by a, .ior-poem-head .is-style-eyebrow a { color: inherit; }
.ior-poem .wp-block-post-content {
	font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.2rem, 1.5vw, 1.4rem);
	font-weight: 400; line-height: 1.65; color: var(--wp--preset--color--ink);
}
.ior-poem .wp-block-post-content p { margin-block: 0 1.4em; }
.ior-poem-aside { border-left: 1px solid var(--wp--preset--color--rule); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 781px) { .ior-poem-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--rule); padding-top: 2rem; } }
.ior-poet-card { margin-bottom: 2rem; }
.ior-poet-card__photo img { display: block; width: 100%; max-width: 18rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ior-poet-card__name { margin: 0.9rem 0 0.4rem; font-family: var(--wp--preset--font-family--serif); font-size: 1.5rem; }
.ior-poet-card__name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.ior-poet-card__bio { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.ior-poem-more { max-height: 28rem; overflow-y: auto; padding-right: 0.5rem; }
.ior-poem-more li a { font-size: 1.05rem; }

/* Full-width bands converted from Divi sections */
.ior-section { padding-block: var(--wp--preset--spacing--40); margin-block: 0 !important; }
.ior-section + .ior-section { margin-top: 0 !important; }

/* Card blocks converted from Divi "blurbs" */
.ior-card > .wp-block-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ior-card .wp-block-heading a { text-decoration: none; color: inherit; }

/* "In brief" panel (post excerpt) and general panels. */
.is-style-panel {
	background: var(--wp--preset--color--cream);
	border-left: 2px solid var(--wp--preset--color--gold);
	padding: var(--wp--preset--spacing--30);
}

/* Notes heading produced by the Word importer. */
.is-style-notes {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 500;
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: 1.5rem;
	margin-top: 3rem;
}
.is-style-notes + .wp-block-list { font-size: var(--wp--preset--font-size--small); }
sup a[href^="#footnote"], sup a[href^="#endnote"] { text-decoration: none; }

/* Poems: keep the poet's line breaks and spacing. */
.ior-poem .wp-block-post-content p { margin-block: 0 1.25em; }
.ior-poem .wp-block-post-content { font-size: var(--wp--preset--font-size--large); font-family: var(--wp--preset--font-family--serif); font-weight: 400; line-height: 1.6; color: var(--wp--preset--color--ink); }

/* Header (matches the 2026 Divi header) */
.ior-header { border-bottom: 1px solid #dadada; padding-top: 10px; }
.ior-header__bar { min-height: 77px; gap: 1.5rem; }
.ior-header__nav { flex: 1 1 auto; }
.ior-header .wp-block-navigation { font-size: 12px; letter-spacing: 1px; font-weight: 300; text-transform: uppercase; gap: 0 22px; color: #1c1a17; }
.ior-header .wp-block-navigation-item__content { padding-bottom: 8px; }
.ior-header-cta .wp-block-button__link {
	font-size: 14px; letter-spacing: normal; font-weight: 400; line-height: 1.7em;
	padding: 0.3em 1em; border: 1px solid #fff; border-radius: 0; background: #1c1a17; color: #fff; white-space: nowrap;
}
/* Dropdowns as on the Divi site: white panel, 3px gold top rule, soft shadow; links as the menu bar
   (12px uppercase, light, 1px tracking). */
.ior-header .wp-block-navigation__submenu-container {
	background: #fff !important; border: 0 !important; border-top: 3px solid var(--wp--preset--color--gold) !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding: 20px 0 !important;
	width: 240px; min-width: 240px !important;
	text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 300;
}
.ior-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 20px; line-height: 14px; }
.ior-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--gold-dark); }
/* Mega menu (menu item with CSS class "mega-menu", as on the Divi site): the dropdown opens as
   columns, one per child, each child a bold heading with its own children listed below it. */
@media (min-width: 600px) {
	/* The dropdown spans the whole header (six room columns need more than the menu bar's width)
	   and never runs off-screen. */
	.ior-header { position: relative; }
	.ior-header .wp-block-navigation__container,
	.ior-header .ior-header__bar, .ior-header .ior-header__nav, .ior-header .wp-block-navigation,
	.ior-header .wp-block-navigation__responsive-close,
	.ior-header .wp-block-navigation__responsive-dialog, .ior-header .wp-block-navigation__responsive-container-content { position: static; }
	.ior-header .wp-block-navigation__responsive-container:not(.is-menu-open) { position: static !important; }
	.ior-header .wp-block-navigation-item.mega-menu { position: static; }
	.ior-header .mega-menu > .wp-block-navigation__submenu-container {
		display: flex; flex-direction: row; align-items: flex-start; justify-content: center; gap: 0;
		left: 0 !important; right: auto !important; top: 100% !important;
		width: 100% !important; min-width: 0; padding: 30px 20px !important; box-sizing: border-box;
		background: #fff; border: 0 !important; border-top: 3px solid var(--wp--preset--color--gold) !important;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
		text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
	}
	/* The panel opens at the header's bottom edge, some way below the menu item; this invisible strip
	   above it bridges the gap so the hover isn't lost on the way down. */
	.ior-header .mega-menu > .wp-block-navigation__submenu-container::before {
		content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; background: transparent;
	}
	.ior-header .mega-menu > .wp-block-navigation__submenu-container > .wp-block-navigation-item { display: block; flex: 1 1 0; min-width: 0; max-width: 240px; }
	.ior-header .mega-menu .wp-block-navigation-item__content { white-space: normal; overflow-wrap: break-word; }
	.ior-header .mega-menu > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		font-weight: 700; padding: 0 20px 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.03);
	}
	.ior-header .mega-menu .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		position: static !important; visibility: visible !important; opacity: 1 !important;
		width: auto !important; height: auto !important; min-width: 0 !important; overflow: visible !important;
		border: 0 !important; padding: 0 !important; box-shadow: none; background: none;
		text-transform: inherit; letter-spacing: inherit; font-size: inherit;
	}
	.ior-header .mega-menu .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding: 6px 20px; line-height: 16px; font-weight: 300;
	}
	.ior-header .mega-menu .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon { display: none; }
}
.ior-masthead img { display: block; height: 69px; width: auto; max-width: 52vw; object-fit: contain; object-position: left; }
@media (max-width: 781px) { .ior-masthead img { height: 44px; } }
@media (max-width: 781px) { .ior-header-cta { display: none !important; } }

/* Footer (dark) */
.ior-footer, .ior-footer a { color: var(--wp--preset--color--sand); }
.ior-footer a { text-decoration: none; }
.ior-footer a:hover { color: var(--wp--preset--color--gold); }
.ior-footer .wp-block-navigation { text-transform: none; letter-spacing: 0.02em; font-size: var(--wp--preset--font-size--small); }
.ior-footer h2, .ior-footer h3, .ior-footer h4, .ior-footer h5, .ior-footer h6 { color: var(--wp--preset--color--gold); }

/* Lists of posts (archives, query loops, filter grids) */
.ior-list .wp-block-post { border-bottom: 1px solid var(--wp--preset--color--rule); padding-block: 1.5rem; }
.ior-list .wp-block-post-title a { text-decoration: none; }
.ior-list .wp-block-post-title a:hover { color: var(--wp--preset--color--gold-dark); }

/* Image Attribution (credit overlay): full-width images keep their width when wrapped. */
.wp-block-post-featured-image .iab-wrap,
.wp-block-image .iab-wrap { display: block; width: fit-content; max-width: 100%; }
.wp-block-image.aligncenter .iab-wrap, .wp-block-image .aligncenter .iab-wrap { margin-inline: auto; }
.wp-block-post-featured-image.alignwide .iab-wrap, .wp-block-post-featured-image.alignfull .iab-wrap { width: 100%; }

/* Video players fill their column at 16:9 */
.ior-video-embed iframe, .wp-block-embed.is-type-video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.ior-video-embed p { margin: 0; }

/* Tables */
.wp-block-table thead { border-bottom: 2px solid var(--wp--preset--color--gold); }
.wp-block-table td, .wp-block-table th { border-color: var(--wp--preset--color--rule); padding: 0.6em 0.8em; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.skip-link:focus { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }

/* All content sits on the paper colour. White stays only for the header, menus and cards: post-grid
   items and the room-page cards. Converted pages carry white as inline styles or the white preset on
   whole sections and boxes, so those are overridden here rather than edited page by page. */
main :is([style*="background-color:#fff;" i], [style*="background-color:#ffffff" i], [style$="background-color:#fff" i], .has-white-background-color):not(.dp-dfg-item, .ior-grid__item, .wp-block-button__link),
main .ior-section { background-color: var(--wp--preset--color--paper) !important; }
main .dpdfg_filtergrid { background-color: transparent; }
/* Plain text-style buttons were given a white box to match the old white sections. */
main .wp-block-button__link:is([style*="background-color:#fff;" i], [style*="background-color:#ffffff" i]) { background-color: transparent !important; }
