/*
 * Real Tokyo Guide
 * Values (clamp/vw sizes, colours, easing) are copied from the approved prototype. Keep them as they are.
 *
 * 1. Base            5. EXPLORE / PREPARE items   9. Saved drawer
 * 2. Header          6. PLAN                     10. Inner pages (10b. article layout + sidebar)
 * 3. Sections        7. POPULAR + article card   11. Article content
 * 4. Hero            8. Fuji band + footer       12. Reduced motion
 */

/* 1. Base ------------------------------------------------------------------ */

:root {
	--rtg-page: #0b0c10;
	--rtg-footer: #1c1f25;
	--rtg-muted: #b8bcc4;
	--rtg-ease: cubic-bezier(.22, .61, .36, 1);
	--rtg-header-h: clamp(56px, 5.5vw, 90px);
	--rtg-serif: 'Noto Serif JP', serif;
	--rtg-sans: 'Montserrat', sans-serif;
	--rtg-label: 'Oswald', sans-serif;
}

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--rtg-page);
	color: #fff;
	font-family: var(--rtg-serif);
	-webkit-font-smoothing: antialiased;
}

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

a { color: #fff; text-decoration: none; }
a:hover { color: #fff; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rtg-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 40;
	padding: .6em 1em;
	background: #fff;
	color: #111;
	font-family: var(--rtg-label);
	transform: translateY(-200%);
}
.rtg-skip:focus { color: #111; transform: none; }

/* Underline that grows left to right on hover. */
.rtg-underline,
.rtg-nav__list a,
.rtg-drawer__close {
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
	padding-bottom: 2px;
	transition: background-size .45s var(--rtg-ease);
}
.rtg-underline:hover,
.rtg-underline:focus-visible,
.rtg-nav__list a:hover,
.rtg-nav__list a:focus-visible,
.rtg-drawer__close:hover,
.rtg-drawer__close:focus-visible { background-size: 100% 1px; }

/* 2. Header ---------------------------------------------------------------- */

.rtg-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	height: var(--rtg-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2.4vw 0 4.2vw;
	background: #000;
	transition: background .3s ease;
}
/* Transparent over the front-page hero until main.js adds .is-solid. */
.home .rtg-header { background: transparent; }
.home .rtg-header.is-solid { background: #000; }

.admin-bar .rtg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rtg-header { top: 46px; } }

.rtg-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: var(--rtg-sans);
	font-weight: 400;
	font-size: clamp(12px, 1.45vw, 24px);
	line-height: 1.05;
	letter-spacing: .01em;
	white-space: nowrap;
	transition: letter-spacing .5s var(--rtg-ease), opacity .4s;
}
.rtg-logo:hover { letter-spacing: .06em; opacity: .85; }

.rtg-nav {
	display: flex;
	align-items: center;
	gap: clamp(14px, 7vw, 110px);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(11px, 1.3vw, 21px);
	letter-spacing: .01em;
}
.rtg-nav__group,
.rtg-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.6vw, 26px);
}
.rtg-nav__list { list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.rtg-nav__list a { display: block; }

/* Phones: with four social links the header needs tighter spacing to keep the bookmark on screen.
   On the very narrowest screens the social links are left to the footer. */
@media (max-width: 430px) {
	.rtg-header { padding-left: 3.2vw; }
	.rtg-nav { gap: 12px; }
	.rtg-nav__group,
	.rtg-nav__list { gap: 7px; }
	.rtg-nav .rtg-saved-toggle { margin-left: 4px; }
}
@media (max-width: 374px) {
	.rtg-nav__group .rtg-nav__list { display: none; }
}

.rtg-saved-toggle {
	position: relative;
	display: flex;
	margin-left: clamp(6px, 1.6vw, 26px);
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform .35s var(--rtg-ease);
}
.rtg-saved-toggle:hover { transform: translateY(-2px) scale(1.08); }
.rtg-saved-toggle svg { display: block; width: clamp(12px, 1.25vw, 20px); height: auto; overflow: visible; }
.rtg-saved-toggle polygon { fill: #fff; stroke: #fff; stroke-width: 1.6; }

.rtg-saved-count {
	position: absolute;
	top: -.55em;
	right: -.85em;
	min-width: 1.5em;
	height: 1.5em;
	padding: 0 .3em;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-family: var(--rtg-label);
	font-weight: 400;
	font-size: clamp(9px, .75vw, 12px);
	line-height: 1.5em;
	text-align: center;
}
.rtg-saved-count[hidden] { display: none; }

/* 3. Sections (shared) ------------------------------------------------------ */

.rtg-section {
	position: relative;
	min-height: max(560px, 56.2vw);
}

.rtg-section__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Seams: fades to the page colour where two photo sections meet. */
.rtg-seam {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	height: clamp(60px, 9vw, 160px);
	pointer-events: none;
}
.rtg-seam--top {
	top: 0;
	background: linear-gradient(180deg, #0b0c10 0%, rgba(11, 12, 16, .6) 45%, rgba(11, 12, 16, 0) 100%);
}
.rtg-seam--bottom {
	bottom: 0;
	background: linear-gradient(0deg, #0b0c10 0%, rgba(11, 12, 16, .6) 45%, rgba(11, 12, 16, 0) 100%);
}

.rtg-section__title {
	position: relative;
	z-index: 2;
	margin: 0;
	font-weight: 600;
	font-size: clamp(48px, 8.2vw, 140px);
	line-height: 1;
	letter-spacing: .01em;
}

/* Section headings link to their full list. The underline is drawn outside the flow so the
   heading keeps its approved size and position. */
.rtg-section__title a,
.rtg-popular__title a {
	position: relative;
	display: inline-block;
}
.rtg-section__title a::after,
.rtg-popular__title a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.06em;
	height: max(1px, .02em);
	background: currentColor;
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .6s var(--rtg-ease);
}
.rtg-section__title a:hover::after,
.rtg-section__title a:focus-visible::after,
.rtg-popular__title a:hover::after,
.rtg-popular__title a:focus-visible::after { transform: scaleX(1); }

.rtg-spacer { flex: 1; min-height: 40px; }

/* 4. Hero ------------------------------------------------------------------ */

.rtg-hero {
	position: relative;
	overflow: hidden;
	min-height: max(560px, 56.2vw);
	background: #0a1020;
	perspective: 1200px;
}
/* Background layer: kept separate so it can become a WebGL/depth-map canvas later. */
.rtg-hero__bg {
	position: absolute;
	inset: -5%;
	background: #0a1020;
	transform: scale(1.06);
	transform-origin: 50% 60%;
	will-change: transform;
}
.rtg-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 10, 30, .55) 0%, rgba(5, 10, 30, .15) 40%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}
.rtg-hero__text {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: max(58px, 4.6vw) 6vw 0;
	will-change: transform, opacity;
}
.rtg-hero__title {
	margin: 0;
	font-weight: 500;
	font-size: clamp(64px, 10.98vw, 190px);
	line-height: 1;
	letter-spacing: .02em;
}
.rtg-hero__tagline {
	margin: .35em 0 0;
	font-weight: 400;
	font-size: clamp(20px, 2.78vw, 48px);
	line-height: 1.2;
}
.rtg-hero__lead {
	margin: 1.1em 0 0;
	font-weight: 400;
	font-size: clamp(14px, 1.76vw, 30px);
	line-height: 1.3;
}

/* 5. EXPLORE / PREPARE ------------------------------------------------------ */

.rtg-explore {
	display: flex;
	flex-direction: column;
	padding: max(96px, 12vw) 6vw max(36px, 3.6vw) 6.5vw;
	background: #111;
}
.rtg-explore__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .05) 55%);
	pointer-events: none;
}
.rtg-explore__sub {
	position: relative;
	z-index: 2;
	margin: .3em 0 0 -.4vw;
	font-weight: 400;
	font-size: clamp(18px, 2.49vw, 42px);
}
.rtg-explore__grid,
.rtg-prepare__grid,
.rtg-children {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: max-content max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}
.rtg-explore__grid {
	column-gap: max(40px, 11.5vw);
	row-gap: clamp(10px, 1.3vw, 22px);
	margin-left: 1.3vw;
	font-size: clamp(18px, 2.34vw, 40px);
	line-height: 1.3;
}
.rtg-explore__grid li:nth-child(odd) .rtg-item__label { min-width: 4.6em; }
.rtg-explore__grid li:nth-child(even) .rtg-item__label { min-width: 5em; }

.rtg-prepare {
	display: flex;
	flex-direction: column;
	padding: max(110px, 15.8vw) 6vw max(60px, 8vw) 5.9vw;
	background: #0d0e10;
}
.rtg-prepare__shade {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 59.3%;
	background: rgba(0, 0, 0, .32);
	pointer-events: none;
}
.rtg-prepare__grid,
.rtg-children {
	column-gap: max(32px, 8vw);
	row-gap: clamp(18px, 4.6vw, 78px);
	font-size: clamp(18px, 2.64vw, 44px);
	line-height: 1.2;
}

/* Label + circle arrow. Hovering anywhere on the item drives all three effects. */
.rtg-item {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.3vw, 22px);
}
.rtg-prepare__grid .rtg-item,
.rtg-children .rtg-item { gap: clamp(8px, 1vw, 18px); }

.rtg-item__label { transition: transform .45s var(--rtg-ease); }
.rtg-item__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(26px, 3.07vw, 52px);
	height: clamp(26px, 3.07vw, 52px);
	overflow: hidden;
	border: 1.5px solid #fff;
	border-radius: 50%;
	box-shadow: inset 0 0 0 0 #fff;
	color: #fff;
	font-family: var(--rtg-sans);
	font-weight: 400;
	font-size: .55em;
	transition: box-shadow .45s var(--rtg-ease), color .3s ease;
}
.rtg-prepare__grid .rtg-item__circle,
.rtg-children .rtg-item__circle { font-size: .5em; }
.rtg-item__circle > span { display: block; transition: transform .45s var(--rtg-ease); }

.rtg-item:hover .rtg-item__label,
.rtg-item:focus-visible .rtg-item__label { transform: translateX(6px); }
.rtg-item:hover .rtg-item__circle,
.rtg-item:focus-visible .rtg-item__circle { box-shadow: inset 0 0 0 2em #fff; color: #111; }
.rtg-item:hover .rtg-item__circle > span,
.rtg-item:focus-visible .rtg-item__circle > span { transform: translateX(2px); }

/* 6. PLAN ------------------------------------------------------------------ */

.rtg-plan { background: #0d0e12; }
.rtg-plan__shade { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.rtg-plan__shade--right { left: 37.6%; right: 0; background: rgba(10, 12, 18, .42); }
.rtg-plan__shade--left { left: 0; width: 37.6%; background: rgba(10, 12, 18, .12); }
.rtg-plan__inner {
	position: relative;
	z-index: 2;
	padding: max(110px, 15.2vw) 4vw 0 45.5vw;
}
.rtg-plan__status {
	margin: .55em 0 0;
	font-weight: 600;
	font-size: clamp(20px, 2.78vw, 48px);
}
.rtg-plan__more {
	display: inline-block;
	margin: clamp(24px, 5.4vw, 92px) 0 0 14vw;
	font-family: var(--rtg-sans);
	font-size: clamp(14px, 1.3vw, 22px);
	transition: transform .45s var(--rtg-ease);
}
.rtg-plan__more:hover,
.rtg-plan__more:focus-visible { transform: translateX(6px); }

/* 7. POPULAR + article card ------------------------------------------------- */

.rtg-popular {
	padding: max(84px, 9.2vw) 6.3vw max(48px, 6vw) 5.6vw;
	background: #111;
}
.rtg-popular__shade {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .12);
	pointer-events: none;
}
.rtg-popular__title {
	position: relative;
	z-index: 2;
	margin: 0;
	font-weight: 600;
	font-size: clamp(44px, 7.3vw, 124px);
	line-height: 1;
	letter-spacing: .01em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.rtg-popular__empty {
	position: relative;
	z-index: 2;
	margin: max(24px, 4.6vw) 0 0;
	font-size: clamp(14px, 1.6vw, 27px);
}

.rtg-cards {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: clamp(18px, 2vw, 34px);
	margin-top: max(24px, 4.6vw);
}
/* Front page with only one or two posts published: keep the three-column card size instead of
   stretching the cards across the section. Breakpoints are where the grid above changes columns. */
@media (min-width: 566px) { .rtg-cards--short { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .rtg-cards--short { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Archives and related posts: a short last row keeps its card width. */
.rtg-cards--list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	row-gap: clamp(32px, 4vw, 64px);
}

.rtg-card { position: relative; min-width: 0; }
.rtg-card__link {
	display: flex;
	flex-direction: column;
	gap: max(10px, 1.5vw);
}
.rtg-card__media {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 383 / 300;
	overflow: hidden;
	border: 1px solid #9a9a9a;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	color: #222;
	font-size: clamp(14px, 1.76vw, 30px);
	transition: box-shadow .6s ease;
}
.rtg-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--rtg-ease), filter .8s ease;
}
.rtg-card__placeholder { position: relative; }
.rtg-card__rank {
	position: absolute;
	top: 0;
	left: 0;
	padding: .35em .7em;
	background: #000;
	color: #fff;
	font-family: var(--rtg-label);
	font-weight: 400;
	font-size: clamp(12px, 1.1vw, 19px);
	letter-spacing: .04em;
}
.rtg-card__body {
	display: flex;
	flex-direction: column;
	gap: .3em;
	padding: 0 max(10px, 2vw);
}
.rtg-card__cat {
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(11px, 1.1vw, 19px);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-card__title {
	margin: 0;
	font-weight: 400;
	font-size: clamp(14px, 1.6vw, 27px);
	line-height: 1.35;
	text-wrap: pretty;
}
.rtg-card__title span {
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
	transition: background-size .6s var(--rtg-ease);
}

.rtg-card:hover .rtg-card__media,
.rtg-card:focus-within .rtg-card__media { box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.rtg-card:hover .rtg-card__media img,
.rtg-card:focus-within .rtg-card__media img { transform: scale(1.05); filter: brightness(1.06); }
.rtg-card:hover .rtg-card__title span,
.rtg-card:focus-within .rtg-card__title span { background-size: 100% 1px; }

/* Save button on cards. Sits over the image, outside the link, so it never navigates. */
.rtg-save {
	position: absolute;
	top: 9px; /* 8px inset + the image border */
	right: 9px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(36px, 2.8vw, 46px);
	height: clamp(36px, 2.8vw, 46px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: transform .35s var(--rtg-ease), background .3s;
}
.rtg-save:hover { transform: scale(1.08); background: rgba(0, 0, 0, .8); }
.rtg-save svg { display: block; width: clamp(11px, .95vw, 15px); height: auto; overflow: visible; }
.rtg-save polygon { fill: none; stroke: #fff; stroke-width: 1.6; }
.rtg-save[aria-pressed="true"] polygon { fill: #fff; }

/* 8. Fuji band + footer ----------------------------------------------------- */

.rtg-foot {
	position: relative;
	background: var(--rtg-footer);
}
.rtg-band {
	position: relative;
	z-index: 2;
	min-height: max(300px, 31.9vw);
	padding: max(80px, 9.5vw) 6vw 0 5.8vw;
	background: var(--rtg-footer);
}
.rtg-band__bg { object-position: center 78%; }
.rtg-band__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 14%;
	background: linear-gradient(180deg, rgba(28, 31, 37, 0) 0%, #1c1f25 100%);
	pointer-events: none;
}
.rtg-band__text {
	position: relative;
	z-index: 2;
	margin: 0;
	font-size: clamp(18px, 2.49vw, 42px);
}

.rtg-footer { padding: max(28px, 3.2vw) 3vw max(14px, 1.2vw) 10vw; }
.rtg-footer__nav {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
	column-gap: 2vw;
	row-gap: 32px;
}
.rtg-footer__col,
.rtg-footer__list {
	display: flex;
	flex-direction: column;
	gap: clamp(4px, .6vw, 10px);
}
.rtg-footer__list { list-style: none; margin: 0; padding: 0; }
.rtg-footer__heading {
	margin: 0 0 clamp(4px, .7vw, 12px);
	font-weight: 600;
	font-size: clamp(22px, 2.78vw, 48px);
	line-height: 1.1;
}
.rtg-footer__list a {
	display: flex;
	gap: .35em;
	padding-left: .2em;
	font-size: clamp(14px, 1.6vw, 27px);
}
.rtg-footer__label {
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
	transition: transform .45s var(--rtg-ease), background-size .45s var(--rtg-ease);
}
.rtg-footer__list a:hover .rtg-footer__label,
.rtg-footer__list a:focus-visible .rtg-footer__label { transform: translateX(4px); background-size: 100% 1px; }

.rtg-footer__legal {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: .3em;
	margin-top: max(16px, 1vw);
	font-size: clamp(10px, 1.05vw, 18px);
}

/* 9. Saved drawer ----------------------------------------------------------- */

.rtg-backdrop {
	position: fixed;
	inset: 0;
	z-index: 29;
	background: rgba(0, 0, 0, .55);
	opacity: 0;
	pointer-events: none;
	transition: opacity .45s ease;
}
.rtg-backdrop.is-open { opacity: 1; pointer-events: auto; }

.rtg-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	border-left: 1px solid rgba(255, 255, 255, .12);
	background: var(--rtg-page);
	font-family: var(--rtg-serif);
	transform: translateX(101%);
	/* Hidden once the slide-out has finished, so nothing inside can take focus while closed. */
	visibility: hidden;
	transition: transform .55s var(--rtg-ease), visibility 0s linear .55s;
}
/* Opening lists transform only: visibility must flip at once so focus can move into the dialog. */
.rtg-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform .55s var(--rtg-ease);
}
.rtg-drawer:focus { outline: 0; }
.admin-bar .rtg-drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .rtg-drawer { top: 46px; } }

.rtg-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: clamp(18px, 1.8vw, 28px) clamp(20px, 2vw, 32px);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.rtg-drawer__heading { display: flex; align-items: baseline; gap: .6em; }
.rtg-drawer__title {
	margin: 0;
	font-weight: 600;
	font-size: clamp(22px, 2vw, 32px);
	letter-spacing: .02em;
}
.rtg-drawer__count {
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1vw, 16px);
}
.rtg-drawer__close {
	padding: .4em 0;
	border: 0;
	background-color: transparent;
	color: #fff;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.1vw, 17px);
	letter-spacing: .06em;
	cursor: pointer;
}

.rtg-drawer__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 0 clamp(20px, 2vw, 32px) 10vh;
}
.rtg-drawer__empty[hidden],
.rtg-drawer__list[hidden] { display: none; }
.rtg-drawer__empty-title { margin: 0; font-size: clamp(18px, 1.6vw, 24px); }
.rtg-drawer__empty-text {
	margin: 0;
	color: var(--rtg-muted);
	font-size: clamp(14px, 1.1vw, 17px);
	line-height: 1.6;
	text-wrap: pretty;
}

.rtg-drawer__list {
	flex: 1;
	margin: 0;
	padding: clamp(8px, 1vw, 14px) 0;
	overflow-y: auto;
	list-style: none;
}
.rtg-saved-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px clamp(20px, 2vw, 32px);
}
.rtg-saved-item__link {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
}
.rtg-saved-item__thumb {
	flex: none;
	width: 96px;
	aspect-ratio: 383 / 300;
	overflow: hidden;
	background: var(--rtg-footer);
}
.rtg-saved-item__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .9s var(--rtg-ease);
}
.rtg-saved-item__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rtg-saved-item__cat {
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-saved-item__title { font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.rtg-saved-item__title span {
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
	transition: background-size .5s var(--rtg-ease);
}
.rtg-saved-item__link:hover img,
.rtg-saved-item__link:focus-visible img { transform: scale(1.06); }
.rtg-saved-item__link:hover .rtg-saved-item__title span,
.rtg-saved-item__link:focus-visible .rtg-saved-item__title span { background-size: 100% 1px; }

.rtg-saved-item__remove {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform .35s var(--rtg-ease), opacity .3s;
}
.rtg-saved-item__remove:hover { transform: scale(1.1); opacity: .7; }
.rtg-saved-item__remove svg { display: block; width: 13px; height: auto; overflow: visible; }
.rtg-saved-item__remove polygon { fill: #fff; stroke: #fff; stroke-width: 1.6; }

/* 10. Inner pages (article, category, page, 404) ---------------------------- */

/* Inner pages share one centred 1140px column; below ~1300px the 6.5vw side padding takes over. */
.rtg-main {
	--rtg-inner: 1140px;
	min-height: 70vh;
	padding: calc(var(--rtg-header-h) + clamp(40px, 5.6vw, 96px)) max(6.5vw, calc((100% - var(--rtg-inner)) / 2)) clamp(56px, 7vw, 120px);
}
.rtg-main--center {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(12px, 1.4vw, 24px);
}

.rtg-article__head { max-width: 1100px; }

.rtg-breadcrumbs {
	margin-bottom: clamp(14px, 1.6vw, 26px);
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(12px, 1vw, 16px);
	letter-spacing: .04em;
}
.rtg-breadcrumbs p { margin: 0; }
.rtg-breadcrumbs a { color: var(--rtg-muted); }
.rtg-breadcrumbs a:hover { color: #fff; }

.rtg-kicker {
	display: inline-block;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(12px, 1.1vw, 19px);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-page-title {
	margin: .12em 0 0;
	font-weight: 600;
	font-size: clamp(36px, 5.5vw, 96px);
	line-height: 1.05;
	letter-spacing: .01em;
	text-wrap: balance;
}
.rtg-lead {
	margin: 0;
	color: #c9ccd2;
	font-size: clamp(14px, 1.4vw, 24px);
}
.rtg-pill {
	display: inline-block;
	margin-top: clamp(8px, 1vw, 16px);
	padding: .6em 1.4em;
	border: 1.5px solid #fff;
	border-radius: 999px;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.2vw, 20px);
	letter-spacing: .04em;
	transition: background .3s, color .3s;
}
.rtg-pill:hover,
.rtg-pill:focus-visible { background: #fff; color: #111; }

.rtg-article__title {
	margin: .3em 0 0;
	font-weight: 600;
	font-size: clamp(28px, 4.2vw, 72px);
	line-height: 1.18;
	letter-spacing: .01em;
	text-wrap: balance;
}
.rtg-article__byline a { color: #fff; }
.rtg-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .8em 1.6em;
	margin-top: clamp(18px, 2vw, 34px);
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.1vw, 18px);
	letter-spacing: .04em;
}

/* Save button with a text label (article pages). */
.rtg-save-label {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: .5em 1.2em;
	border: 1.5px solid #fff;
	border-radius: 999px;
	background: none;
	color: #fff;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.1vw, 18px);
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .3s, color .3s;
}
.rtg-save-label svg { display: block; width: .7em; height: auto; overflow: visible; }
.rtg-save-label polygon { fill: none; stroke: currentColor; stroke-width: 1.6; }
.rtg-save-label[aria-pressed="true"] polygon { fill: currentColor; }
.rtg-save-label:hover,
.rtg-save-label:focus-visible { background: #fff; color: #111; }

/* Share links at the end of an article. */
.rtg-share {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .6em clamp(18px, 2.4vw, 40px);
	max-width: 760px;
	margin-top: clamp(40px, 5vw, 88px);
	padding-top: clamp(20px, 2.2vw, 36px);
	border-top: 1px solid rgba(255, 255, 255, .2);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.2vw, 20px);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-share__title { margin: 0; color: var(--rtg-muted); font: inherit; letter-spacing: inherit; }
.rtg-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: .6em clamp(16px, 2.2vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.rtg-share__list a { display: block; }
.rtg-share__copy {
	padding: 0 0 2px;
	border: 0;
	background-color: transparent;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.rtg-related { margin-top: clamp(64px, 8vw, 140px); }
.rtg-related__title {
	margin: 0;
	font-weight: 600;
	font-size: clamp(24px, 2.78vw, 48px);
	line-height: 1.1;
}
.rtg-related .rtg-cards { margin-top: max(24px, 2.6vw); }
/* Card lists on inner pages (categories, Popular, related posts): at most 3 columns in the 1140px column,
   like the front-page grids. */
@media (min-width: 566px) { .rtg-main .rtg-cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .rtg-main .rtg-cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rtg-archive__intro {
	max-width: 760px;
	margin-top: clamp(14px, 1.6vw, 26px);
	color: #c9ccd2;
	font-size: clamp(14px, 1.4vw, 24px);
	line-height: 1.7;
}
.rtg-archive__intro p { margin: 0; }
.rtg-archive__empty {
	margin: max(24px, 4.6vw) 0 0;
	color: #c9ccd2;
	font-size: clamp(14px, 1.4vw, 24px);
}

.rtg-tabs { margin-top: clamp(24px, 3vw, 52px); }
.rtg-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: .6em clamp(16px, 2.2vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.3vw, 21px);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-tabs a[aria-current="page"] { background-size: 100% 1px; }

.rtg-children { margin-top: clamp(40px, 6vw, 110px); }
@media (max-width: 520px) { .rtg-children { grid-template-columns: max-content; } }

.rtg-feed-status {
	margin: clamp(28px, 3.4vw, 56px) 0 0;
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.2vw, 20px);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-pagination { margin-top: clamp(40px, 5vw, 90px); }
.rtg-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(14px, 1.6vw, 26px);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(14px, 1.3vw, 21px);
}
.rtg-pagination .page-numbers { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.rtg-pagination a.page-numbers:hover,
.rtg-pagination .page-numbers.current { border-bottom-color: currentColor; }

/* 10b. Article layout: column + sidebar --------------------------------------- */

/* Breadcrumbs span the column; the sidebar starts level with the category label and title. */
.rtg-article__main { min-width: 0; }
.rtg-article__main > .rtg-toc--inline { margin-top: clamp(28px, 3.6vw, 64px); }
@media (max-width: 1079px) { .rtg-toc--inline + .rtg-content { margin-top: 0; } }
.rtg-sidebar { display: none; }

@media (min-width: 1080px) {
	.rtg-article__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		column-gap: clamp(48px, 4.4vw, 80px);
	}
	.rtg-sidebar {
		display: flex;
		flex-direction: column;
		gap: 44px;
		padding-top: 4px;
	}
	.rtg-toc--inline { display: none; }
	/* The title now shares the row with the sidebar. */
	.rtg-article__main .rtg-article__title { font-size: clamp(34px, 3.2vw, 54px); }
}

.rtg-side__title {
	margin: 0 0 14px;
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.rtg-side__section + .rtg-side__section { margin-top: 20px; }
.rtg-side__parent {
	font-family: var(--rtg-label);
	font-weight: 400;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-side__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: .04em;
}
.rtg-side__links a { color: var(--rtg-muted); }
.rtg-side__links a:hover,
.rtg-side__links a.is-current { color: #fff; }
.rtg-side__links a.is-current { background-size: 100% 1px; }

.rtg-side__popular {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rtg-mini {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
}
.rtg-mini__media {
	position: relative;
	display: block;
	aspect-ratio: 383 / 300;
	overflow: hidden;
	border: 1px solid #9a9a9a;
	background: #fff;
}
.rtg-mini__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rtg-mini__title { font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.rtg-mini__title span {
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
	transition: background-size .6s var(--rtg-ease);
}
.rtg-mini:hover .rtg-mini__title span,
.rtg-mini:focus-visible .rtg-mini__title span { background-size: 100% 1px; }

/* Sticky part: contents list now, room for a sidebar ad later (rtg_sidebar_sticky_end). */
.rtg-sidebar__sticky {
	position: sticky;
	top: calc(var(--rtg-header-h) + 28px);
}
.admin-bar .rtg-sidebar__sticky { top: calc(var(--rtg-header-h) + 60px); }

/* Contents list. */
.rtg-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.rtg-toc--side ol {
	max-height: calc(100vh - var(--rtg-header-h) - 120px);
	overflow-y: auto;
	border-left: 1px solid rgba(255, 255, 255, .2);
}
.rtg-toc--side a {
	display: block;
	margin-left: -1px;
	padding: 6px 0 6px 16px;
	border-left: 1px solid transparent;
	color: var(--rtg-muted);
	font-size: 14px;
	line-height: 1.45;
	transition: color .3s, border-color .3s;
}
.rtg-toc--side a:hover,
.rtg-toc--side a.is-active { border-left-color: #fff; color: #fff; }

.rtg-toc--inline {
	margin: 0 0 clamp(28px, 3vw, 48px);
	border: 1px solid rgba(255, 255, 255, .25);
}
.rtg-toc--inline summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}
.rtg-toc--inline summary::-webkit-details-marker { display: none; }
.rtg-toc--inline summary::after { content: "+"; font-size: 18px; line-height: 1; }
.rtg-toc--inline details[open] summary::after { content: "\2212"; }
.rtg-toc--inline ol {
	display: grid;
	gap: 10px;
	padding: 2px 18px 18px;
	font-size: 15px;
	line-height: 1.5;
}
.rtg-toc--inline a { color: #c9ccd2; }
.rtg-toc--inline a:hover { color: #fff; }

/* Headings land below the fixed header when reached from the contents list. */
.rtg-content h2[id] { scroll-margin-top: calc(var(--rtg-header-h) + 24px); }

/* Category buttons after an article. */
.rtg-section-links { margin-top: clamp(64px, 8vw, 140px); }
.rtg-section-links__group { margin-top: clamp(20px, 2.4vw, 36px); }
.rtg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.rtg-chips a {
	display: inline-block;
	padding: .45em 1.1em;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.1vw, 17px);
	line-height: 1.4;
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: background .3s, color .3s, border-color .3s;
}
.rtg-chips a:hover,
.rtg-chips a:focus-visible { border-color: #fff; background: #fff; color: #111; }

/* 11. Article content -------------------------------------------------------- */

.rtg-content {
	max-width: 760px;
	margin-top: clamp(28px, 3.6vw, 64px);
	font-size: clamp(16px, 1.25vw, 20px);
	line-height: 1.9;
	overflow-wrap: break-word;
}
.rtg-content > :first-child { margin-top: 0; }
.rtg-content > :last-child { margin-bottom: 0; }
.rtg-content p { margin: 0 0 1.5em; }
.rtg-content h2,
.rtg-content h3,
.rtg-content h4 { font-weight: 600; line-height: 1.3; letter-spacing: .01em; text-wrap: balance; }
.rtg-content h2 { margin: 2.2em 0 .8em; font-size: 1.7em; }
.rtg-content h3 { margin: 2em 0 .7em; font-size: 1.35em; }
.rtg-content h4 { margin: 1.8em 0 .6em; font-size: 1.12em; }
.rtg-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.rtg-content a:hover { text-decoration-thickness: 2px; }
.rtg-content ul,
.rtg-content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.rtg-content li { margin: .3em 0; }
.rtg-content blockquote {
	margin: 2em 0;
	padding: .2em 0 .2em 1.4em;
	border-left: 1px solid rgba(255, 255, 255, .5);
	color: #c9ccd2;
	font-size: 1.1em;
}
.rtg-content blockquote p:last-child { margin-bottom: 0; }
.rtg-content img,
.rtg-content video,
.rtg-content iframe { max-width: 100%; }
.rtg-content img { height: auto; }
.rtg-content figure { margin: 2em 0; }
.rtg-content figcaption,
.rtg-content .wp-caption-text {
	margin-top: .7em;
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: .8em;
	letter-spacing: .04em;
	line-height: 1.5;
}
/* Map: [rtg_map place="…"]. Same frame in every article. */
.rtg-content .rtg-map { margin: 2.4em 0; }
.rtg-map iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid rgba(255, 255, 255, .2);
	background: var(--rtg-footer);
}
.rtg-map figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .3em 1.5em;
}
@media (max-width: 600px) { .rtg-map iframe { aspect-ratio: 4 / 3; } }
.rtg-map__error { padding: .8em 1em; border: 1px dashed #e0a0a0; color: #e0a0a0; font-size: .9em; }

.rtg-content hr { margin: 3em 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.rtg-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .92em; }
.rtg-content th,
.rtg-content td { padding: .7em .9em; border: 1px solid rgba(255, 255, 255, .2); text-align: left; }
/* Wide tables scroll sideways inside the article instead of being cut off. */
.rtg-content .wp-block-table { overflow-x: auto; }
.rtg-content .wp-block-table table { margin: 0; }
.rtg-content th { font-weight: 600; }
@media (max-width: 600px) {
	.rtg-content table { font-size: .82em; line-height: 1.45; }
	.rtg-content th,
	.rtg-content td { padding: .55em .6em; }
}
.rtg-content code,
.rtg-content pre { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
.rtg-content pre { padding: 1em; overflow-x: auto; background: var(--rtg-footer); }
.rtg-content .alignleft { float: left; margin: .4em 1.5em 1em 0; }
.rtg-content .alignright { float: right; margin: .4em 0 1em 1.5em; }
.rtg-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.rtg-content .wp-caption { max-width: 100%; }

/* Forms in page content (the Contact page uses Contact Form 7). */
.rtg-content form { max-width: 560px; }
.rtg-content label {
	display: block;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1.1vw, 18px);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rtg-content .wpcf7-form-control-wrap { display: block; margin-top: .5em; }
.rtg-content input[type="text"],
.rtg-content input[type="email"],
.rtg-content input[type="tel"],
.rtg-content input[type="url"],
.rtg-content input[type="number"],
.rtg-content input[type="date"],
.rtg-content select,
.rtg-content textarea {
	display: block;
	width: 100%;
	padding: .65em .85em;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 0;
	background: transparent;
	color: #fff;
	/* 16px minimum: smaller text makes iOS zoom the page when a field is tapped. */
	font: 400 clamp(16px, 1.25vw, 20px) / 1.5 var(--rtg-serif);
	letter-spacing: 0;
	text-transform: none;
	transition: border-color .3s;
}
.rtg-content textarea { min-height: 9em; resize: vertical; }
.rtg-content select option { color: #111; }
.rtg-content input:hover,
.rtg-content select:hover,
.rtg-content textarea:hover,
.rtg-content input:focus,
.rtg-content select:focus,
.rtg-content textarea:focus { border-color: #fff; }
/* Browser autofill would otherwise paint the field light with dark text. */
.rtg-content input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	box-shadow: 0 0 0 100px var(--rtg-page) inset;
	caret-color: #fff;
}
.rtg-content input[type="submit"],
.rtg-content button[type="submit"] {
	padding: .6em 1.6em;
	border: 1.5px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: 300 clamp(13px, 1.2vw, 20px) / 1.5 var(--rtg-label);
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .3s, color .3s;
}
.rtg-content input[type="submit"]:hover,
.rtg-content input[type="submit"]:focus-visible,
.rtg-content button[type="submit"]:hover,
.rtg-content button[type="submit"]:focus-visible { background: #fff; color: #111; }
.rtg-content input[type="submit"]:disabled { opacity: .5; cursor: default; }

/* Contact Form 7 messages. */
.rtg-content .wpcf7-not-valid-tip {
	margin-top: .5em;
	color: #ffb4b4;
	font-family: var(--rtg-label);
	font-weight: 300;
	font-size: clamp(13px, 1vw, 16px);
	letter-spacing: .04em;
	text-transform: none;
}
.rtg-content .wpcf7 form .wpcf7-response-output {
	margin: 1.5em 0 0;
	padding: .8em 1em;
	border-width: 1px;
	font-size: .9em;
	line-height: 1.6;
}

.rtg-page-links {
	display: flex;
	gap: 1em;
	margin-top: 2em;
	font-family: var(--rtg-label);
	font-weight: 300;
}

/* Article boxes (block patterns in inc/patterns.php). */
.rtg-content .rtg-box {
	margin: 2.2em 0;
	padding: 1.1em 1.4em;
	border: 1px solid rgba(255, 255, 255, .25);
	background: var(--rtg-footer);
}
.rtg-content .rtg-box > :first-child { margin-top: 0; }
.rtg-content .rtg-box > :last-child { margin-bottom: 0; }
.rtg-content .rtg-box__title {
	margin: 0 0 .5em;
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-weight: 400;
	font-size: .78em;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.rtg-content .rtg-box ul { margin: 0; }
.rtg-content .rtg-box--facts ul { padding-left: 0; list-style: none; }
.rtg-content .rtg-box--facts li {
	margin: 0;
	padding: .5em 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	line-height: 1.6;
}
.rtg-content .rtg-box--facts li:first-child { padding-top: .2em; border-top: 0; }
.rtg-content .rtg-box--facts li:last-child { padding-bottom: 0; }
.rtg-content .rtg-box--tip {
	padding: .2em 0 .2em 1.3em;
	border-width: 0 0 0 2px;
	border-color: #fff;
	border-radius: 0;
	background: transparent;
}
.rtg-content .rtg-box__note {
	margin: 1em 0 0;
	color: var(--rtg-muted);
	font-size: .8em;
	line-height: 1.6;
}

/* Article components (1.0.9) ------------------------------------------------------ */

/* Colors for the sides of the city. They match the article maps. */
:root {
	--rtg-west: #ff5c8a;
	--rtg-east: #ff7a45;
	--rtg-central: #f2c14e;
	--rtg-south: #a98bff;
	--rtg-bay: #3cc8d8;
	--rtg-beyond: #e6e8ec;
	--rtg-accent: #f2c14e;
}
.rtg-zone--west { --rtg-zone: var(--rtg-west); }
.rtg-zone--east { --rtg-zone: var(--rtg-east); }
.rtg-zone--central { --rtg-zone: var(--rtg-central); }
.rtg-zone--south { --rtg-zone: var(--rtg-south); }
.rtg-zone--bay { --rtg-zone: var(--rtg-bay); }
.rtg-zone--beyond { --rtg-zone: var(--rtg-beyond); }

/* Classic themes wrap group content in an inner container: trim its outer margins too. */
.rtg-content .wp-block-group > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.rtg-content .wp-block-group > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* Section heading for one side of the city: a colored rule above it. */
.rtg-content h2.rtg-zone::before {
	content: "";
	display: block;
	width: 56px;
	height: 5px;
	margin-bottom: .6em;
	background: var(--rtg-zone, #fff);
}
/* Area name: a colored dot before it. */
.rtg-content h3.rtg-zone::before {
	content: "";
	display: inline-block;
	width: .5em;
	height: .5em;
	margin-right: .45em;
	border-radius: 50%;
	background: var(--rtg-zone, #fff);
	vertical-align: .12em;
}
/* One-line hook under an area name. */
.rtg-content .rtg-tagline {
	margin: -.2em 0 1em;
	color: var(--rtg-zone, #c9ccd2);
	font-size: 1.1em;
	font-style: italic;
	line-height: 1.5;
}

/* Numbers: a grid of stat cards. */
.rtg-content .rtg-stats { margin: 2.4em 0; }
.rtg-content .rtg-stats > .wp-block-group__inner-container,
.rtg-content .rtg-stats:not(:has(> .wp-block-group__inner-container)) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
@media (min-width: 700px) {
	.rtg-content .rtg-stats > .wp-block-group__inner-container,
	.rtg-content .rtg-stats:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rtg-content .rtg-stats .rtg-box__title {
	grid-column: 1 / -1;
	margin: 0 0 .2em;
	color: var(--rtg-muted);
	font-family: var(--rtg-label);
	font-size: .78em;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.rtg-content .rtg-stat {
	margin: 0;
	padding: 1em 1.1em 1.1em;
	border-top: 4px solid var(--rtg-zone, var(--rtg-accent));
	background: var(--rtg-footer);
}
.rtg-content .rtg-stat p { margin: 0; }
.rtg-content .rtg-stat .rtg-stat__num {
	color: #fff;
	font-family: var(--rtg-label);
	font-weight: 400;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.05;
	letter-spacing: .01em;
}
.rtg-content .rtg-stat .rtg-stat__label {
	margin-top: .45em;
	color: #c9ccd2;
	font-size: .84em;
	line-height: 1.45;
}

/* Area summary card: short labelled lines. */
.rtg-content .rtg-spec {
	margin: 1.4em 0 1.8em;
	padding: .9em 1.2em;
	border-left: 4px solid var(--rtg-zone, #fff);
	border-radius: 0;
	background: var(--rtg-footer);
}
.rtg-content .rtg-spec ul { margin: 0; padding: 0; list-style: none; }
.rtg-content .rtg-spec li { margin: 0; padding: .35em 0; font-size: .95em; line-height: 1.55; }
.rtg-content .rtg-spec li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.rtg-content .rtg-spec li strong {
	display: inline-block;
	min-width: 7.2em;
	color: var(--rtg-zone, #fff);
	font-family: var(--rtg-label);
	font-weight: 400;
	font-size: .82em;
	letter-spacing: .06em;
	text-transform: uppercase;
}

@media (max-width: 600px) {
	.rtg-content .rtg-spec li strong { display: block; min-width: 0; margin-bottom: .1em; }
}

/* "Did you know?" and "In a hurry?" boxes. */
.rtg-content .rtg-box--fact {
	border: 0;
	border-left: 4px solid var(--rtg-accent);
	border-radius: 0;
}
.rtg-content .rtg-box--fact .rtg-box__title,
.rtg-content .rtg-box--tldr .rtg-box__title { color: var(--rtg-accent); }
.rtg-content .rtg-box--tldr {
	border-color: var(--rtg-accent);
	background: transparent;
}
.rtg-content .rtg-box--tldr ul { padding-left: 1.2em; }
.rtg-content .rtg-box--tldr li { margin: .35em 0; line-height: 1.6; }

/* Tables: first column as row labels. */
.rtg-content .rtg-chooser td:first-child { color: #fff; font-weight: 600; }
.rtg-content .rtg-chooser td { vertical-align: top; }

/* Link to the full article about a place. The theme hides it until that article is published. */
.rtg-content .rtg-more {
	margin: -.6em 0 2em;
	font-family: var(--rtg-label);
	font-size: .86em;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.rtg-content .rtg-more a {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding-bottom: .15em;
	border-bottom: 1px solid currentColor;
	color: var(--rtg-zone, var(--rtg-accent));
	text-decoration: none;
}
.rtg-content .rtg-more a::after { content: "\2192"; transition: transform .2s ease; }
.rtg-content .rtg-more a:hover::after,
.rtg-content .rtg-more a:focus-visible::after { transform: translateX(3px); }

/* Images that open full size (maps): a hint that they can be enlarged. */
.rtg-content .wp-block-image a { cursor: zoom-in; }

/* 12. Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	/* 0s, not a tiny value: a non-zero duration on * would turn every style change into a transition. */
	*, *::before, *::after {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
	}
	/* Zooms and slides stay still; colour and underline changes still show the hover state. */
	.rtg-card:hover .rtg-card__media img,
	.rtg-card:focus-within .rtg-card__media img,
	.rtg-saved-item__link:hover img,
	.rtg-item:hover .rtg-item__label,
	.rtg-item:hover .rtg-item__circle > span,
	.rtg-plan__more:hover,
	.rtg-content .rtg-more a:hover::after,
	.rtg-save:hover,
	.rtg-saved-toggle:hover,
	.rtg-footer__list a:hover .rtg-footer__label { transform: none; }
}
