/*
Theme Name: Travellers World
Theme URI: https://travellersworld.co.uk
Description: A warm, high-contrast child theme for Travellers World — built around readability, generous tap targets and clear focus states, because an accessibility site should be accessible itself.
Author: Steve & Bev
Version: 1.1.0
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travellers-world
*/

:root {
	--tw-ink: #22303a;
	--tw-muted: #55504a;
	--tw-line: #ddd4c4;
	--tw-surface: #ffffff;
	--tw-surface-alt: #f0e9dd;
	--tw-focus: #12606f;
	--tw-shadow: 0 1px 2px rgba(34, 48, 58, 0.06), 0 4px 14px rgba(34, 48, 58, 0.07);
	--tw-shadow-lift: 0 2px 4px rgba(34, 48, 58, 0.08), 0 10px 28px rgba(34, 48, 58, 0.12);
}

/* Focus you cannot miss. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--tw-focus);
	outline-offset: 3px;
	border-radius: 3px;
}

.skip-link:focus {
	background: var(--tw-ink);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 999;
}

body {
	text-rendering: optimizeLegibility;
}

/* --- Header --- */

.tw-topbar {
	min-height: 6px;
	background-image: linear-gradient(90deg, #12606f 0 40%, #1b7f4b 40% 60%, #b35309 60% 80%, #b3261e 80% 100%);
}

.tw-header .wp-block-site-title a {
	text-decoration: none;
	color: var(--tw-ink);
}

.tw-header .wp-block-site-title a:hover {
	color: var(--wp--preset--color--primary, #12606f);
}

.tw-tagline {
	color: var(--tw-muted);
}

.wp-block-navigation a {
	text-decoration: none;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
	text-decoration-color: var(--wp--preset--color--secondary, #b35309);
}

/* --- Reading comfort --- */

.wp-block-post-content p,
.entry-content p {
	line-height: 1.7;
}

.wp-block-post-content a:not(.wp-element-button),
.entry-content a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.wp-block-navigation a,
.wp-element-button,
.wp-block-button__link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.wp-block-button__link {
	padding-inline: 1.5rem;
	box-shadow: var(--tw-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: var(--tw-shadow-lift);
}

/* Headings get a little breathing room and the amber accent on H2s
   inside long articles. */
.wp-block-post-content h2 {
	margin-top: 2.25rem;
	padding-bottom: 0.35rem;
	border-bottom: 3px solid var(--tw-surface-alt);
}

/* --- Cards (directory + query loops) get depth --- */

.tw-card,
.tw-report {
	box-shadow: var(--tw-shadow);
	border-width: 1px;
}

.tw-card {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tw-card:hover,
.tw-card:focus-within {
	transform: translateY(-2px);
	box-shadow: var(--tw-shadow-lift);
}

.tw-card-title {
	font-family: var(--wp--preset--font-family--heading, Georgia, serif);
	font-weight: 600;
}

.tw-card-title a {
	text-decoration: none;
}

.tw-card-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.tw-map {
	box-shadow: var(--tw-shadow);
	border-width: 1px;
}

/* --- Hero (front page) --- */

.tw-hero {
	position: relative;
	overflow: hidden;
}

.tw-hero .wp-block-heading {
	max-width: 24ch;
}

.tw-kicker {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--wp--preset--color--primary, #12606f);
}

/* --- Verdict chips reused as homepage stat cards --- */

.tw-promise {
	border-left: 6px solid var(--wp--preset--color--primary, #12606f);
	background: var(--tw-surface);
	box-shadow: var(--tw-shadow);
	border-radius: 10px;
	padding: 1.1rem 1.3rem;
}

/* --- Post styling --- */

.wp-block-quote cite {
	font-style: normal;
	font-size: 0.9rem;
	color: var(--tw-muted);
}

/* Comment form: make the invitation land */
.wp-block-post-comments-form input[type="submit"] {
	border-radius: 999px;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
