/* WordPress-only styles.
   Kept out of main.css so that file stays a byte-for-byte copy of the design's
   src/styles.css and can be diffed against it. Everything here exists because
   WordPress adds markup the React app never had. */

/* Accessible skip link — invisible until focused. */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	border-radius: var(--r-sm);
	box-shadow: var(--shadow-md);
	clip-path: none;
	color: var(--ink);
	display: block;
	font-size: 15px;
	font-weight: 600;
	height: auto;
	left: 16px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

/* The header is position:sticky; the admin bar is position:fixed and would
   otherwise sit on top of it for logged-in users. */
.admin-bar .header {
	top: 32px;
}

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

/* Teadaanne's footer line, placed in the footer bar by footer.php. On its own
   the plugin centres the line with padding of its own under a footer; in the
   bar it is one more item, in the bar's own size and alignment. */
.footer__bottom .teadaanne-footer {
	padding: 0;
	font-size: inherit;
	text-align: left;
}

/* Teadaanne's notice in the design's own tokens. The plugin draws the card
   and reads these; it knows none of the theme's names, so the mapping lives
   here. Radius and shadow are the floating cards' (.hero--c .card, .modal);
   the button is .btn-primary's colours. */
.teadaanne-notice {
	--teadaanne-surface: var(--bg);
	--teadaanne-border: var(--line);
	--teadaanne-radius: var(--r-xl);
	--teadaanne-shadow: var(--shadow-lg);
	--teadaanne-heading: var(--ink);
	--teadaanne-text: var(--ink-muted);
	--teadaanne-link: var(--accent);
	--teadaanne-link-hover: var(--accent-ink);
	--teadaanne-button: var(--accent);
	--teadaanne-button-hover: var(--accent-ink);
	--teadaanne-button-text: var(--accent-contrast);
}

/* Editor-inserted media inside page content. */
.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	color: var(--ink-muted);
	font-size: 14.5px;
	margin-top: 8px;
}

/* Reveal-on-scroll is opt-in: without JavaScript nothing is hidden.
   (The design's React version could leave content invisible if its timers
   never fired.) */
html:not(.js) .reveal {
	opacity: 1;
	transform: none;
}

/* The design sized this icon with an inline style on the React element. */
.linkbtn .arrow {
	width: 16px;
	height: 16px;
}

/* Without JavaScript the accordion never opens, so every answer stays visible.
   The script sets explicit heights and takes over from here. */
html:not(.js) .faq-a {
	height: auto;
}

/* Lists written in the editor become the design's checklist. Every list on
   the design's inner pages is a checklist, so this is the mapping rather than
   asking the editor to remember a class. The check is a data URI because a
   CSS custom property cannot be used inside one — this is the only place the
   accent colour is repeated literally. */
.prose ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 4px 0 28px;
	padding: 0;
}

.prose ul li {
	align-items: flex-start;
	color: var(--ink-soft);
	display: flex;
	gap: 11px;
}

.prose ul li::before {
	background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fe0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
	border-radius: 50%;
	content: "";
	flex: 0 0 auto;
	height: 22px;
	margin-top: 2px;
	width: 22px;
}

/* The editor emits ordered lists and blockquotes too; keep them readable
   without pretending they are checklists. */
.prose ol {
	color: var(--ink-soft);
	margin: 4px 0 28px;
	padding-left: 22px;
}

.prose ol li {
	margin-bottom: 8px;
}

/* Buttons inside the prose column.
   The design's buttons were <button> elements. Ours are links, because they
   navigate to the booking page — which means `.prose a` (specificity 0,1,1)
   outranks `.btn-primary` (0,1,0) and repaints the label accent-blue on an
   accent-blue background. Restore the intended colours; the class selectors
   here are specific enough to win. */
.prose a.btn-primary {
	color: var(--accent-contrast);
}

.prose a.btn-ghost {
	color: var(--ink);
}

.prose a.btn-soft {
	color: var(--accent-ink);
}

.prose a.btn-white {
	color: var(--accent-ink);
}

/* Same cause: the CTA band's phone link is grey in the design, not an
   accent-coloured prose link. */
.prose a.ctaband__phone {
	color: var(--ink-soft);
}

.prose a.ctaband__phone:hover {
	color: var(--ink);
}

/* ============================================================
   Google reviews — new UI, not part of the original design.
   Built from the design's own vocabulary: tinted section, white
   cards, existing radii and shadows. Star colour is a variable so
   it can be swapped for the conventional amber in one place.
   ============================================================ */
:root {
	--rv-star: var(--accent);
	--rv-star-muted: #dfe6f1;
}

.stars {
	display: inline-block;
	line-height: 0;
	position: relative;
	white-space: nowrap;
}

.stars svg {
	height: 18px;
	width: 18px;
}

.stars__base {
	color: var(--rv-star-muted);
	display: block;
}

.stars__fill {
	color: var(--rv-star);
	display: block;
	left: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
}

/* ---- summary ---- */

.rvsummary__score {
	display: block;
	font-size: 46px;
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1;
	margin-bottom: 12px;
}

.rvsummary .stars svg {
	height: 22px;
	width: 22px;
}

.rvsummary__count {
	color: var(--ink-soft);
	font-size: 16px;
	margin: 14px 0 0;
}

.rvsummary__source {
	color: var(--ink-muted);
	font-size: 14.5px;
	margin: 4px 0 0;
}

.rvsummary__source a {
	color: var(--ink-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rvsummary__source a:hover {
	color: var(--ink);
}

/* ---- layout ---- */

.rvgrid {
	align-items: center;
	display: grid;
	gap: 40px;
	grid-template-columns: 240px 1fr;
	margin-top: 40px;
	min-width: 0;
}

.rvaside__cta {
	margin-top: 22px;
}

.rvtrack-wrap {
	min-width: 0;
	position: relative;
}

.rvtrack {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	padding: 4px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.rvtrack::-webkit-scrollbar {
	display: none;
}

.rvtrack:focus-visible {
	border-radius: var(--r-md);
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---- card ---- */

.rvcard {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	display: flex;
	flex: 0 0 300px;
	flex-direction: column;
	padding: 24px;
	scroll-snap-align: start;
}

.rvcard__head {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}

.rvcard__avatar {
	border-radius: 50%;
	flex: 0 0 auto;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

.rvcard__avatar--letter {
	background: var(--accent-wash);
	color: var(--accent-ink);
	display: grid;
	font-size: 18px;
	font-weight: 600;
	place-items: center;
}

.rvcard__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rvcard__name {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.01em;
}

.rvcard__when {
	color: var(--ink-muted);
	font-size: 14px;
}

.rvcard__stars {
	margin-bottom: 12px;
}

.rvcard__text {
	color: var(--ink-soft);
	font-size: 15.5px;
	line-height: 1.55;
	margin: 0;
}

.rvcard__body[data-clamped="true"] .rvcard__text {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	display: -webkit-box;
	overflow: hidden;
}

.rvcard__more {
	background: none;
	border: 0;
	color: var(--accent);
	cursor: pointer;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	margin-top: 10px;
	padding: 0;
}

.rvcard__more:hover {
	color: var(--accent-ink);
}

/* ---- arrows ---- */

.rvnav {
	align-items: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 50%;
	box-shadow: var(--shadow-sm);
	color: var(--ink-soft);
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: color .15s, border-color .15s, opacity .15s;
	width: 44px;
	z-index: 2;
}

.rvnav svg {
	height: 20px;
	width: 20px;
}

.rvnav:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.rvnav[hidden] {
	display: none;
}

.rvnav--prev {
	left: -22px;
}

.rvnav--next {
	right: -22px;
}

.rvnote {
	color: var(--ink-muted);
	font-size: 13.5px;
	margin: 26px 0 0;
}

@media (max-width: 900px) {
	.rvgrid {
		gap: 28px;
		grid-template-columns: 1fr;
	}

	.rvnav {
		display: none;
	}

	.rvcard {
		flex-basis: 82%;
	}
}

/* Rating summary is centred as a column of its own. */
.rvaside {
	text-align: center;
}

.rvsummary__source a {
	align-items: center;
	display: inline-flex;
	gap: 7px;
}

.rvsummary__g {
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
}

@media (min-width: 901px) {
	.rvgrid {
		align-items: center;
	}
}
