/*
Theme Name:   Large Shoes Child
Description:  Child theme for Big Shoes UK (largeshoes-bigshoes.co.uk) on GeneratePress: readable buying guides, comparison tables and FAQs.
Template:     generatepress
Version:      1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  large-shoes-child
*/

/* ------------------------------------------------------------ tokens */
:root {
	--ls-ink: #1c2430;
	--ls-muted: #5a6573;
	--ls-navy: #1f3a5f;
	--ls-navy-dark: #152a45;
	--ls-link: #1d5fa8;
	--ls-accent: #d9541a;
	--ls-accent-dark: #b54412;
	--ls-accent-deeper: #8f350e;
	--ls-tint: #eef4fb;
	--ls-tint-warm: #fdf3ec;
	--ls-line: #d9e0e8;
	--ls-row: #f7f9fc;
	--ls-radius: 8px;
	--ls-read: 46rem;
}

/* ------------------------------------------------------- base type */
body {
	color: var(--ls-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.65;
}

a {
	color: var(--ls-link);
	text-underline-offset: 2px;
}

.entry-content p a,
.entry-content li a {
	text-decoration: underline;
}

a:hover,
a:focus {
	color: var(--ls-navy-dark);
}

h1,
h2,
h3 {
	color: var(--ls-navy);
	font-weight: 700;
	line-height: 1.25;
}

h1 {
	font-size: 2.1rem;
	margin-bottom: 0.6em;
}

h2 {
	font-size: 1.55rem;
	margin-top: 1.8em;
}

h3 {
	font-size: 1.15rem;
	margin-top: 1.4em;
	margin-bottom: 0.4em;
}

/* Comfortable reading width for guide pages. */
body.page .entry-content,
body.page .entry-header {
	max-width: var(--ls-read);
	margin-left: auto;
	margin-right: auto;
}

/* ---------------------------------------------------------- header */
.site-header {
	border-bottom: 3px solid var(--ls-accent);
}

.main-title a,
.main-title a:hover {
	color: var(--ls-navy);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.site-description {
	color: var(--ls-muted);
}

.main-navigation,
.main-navigation ul ul {
	background-color: var(--ls-navy);
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
	color: #ffffff;
	font-weight: 600;
}

.main-navigation .main-nav ul ul li a {
	color: #ffffff;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
	background-color: var(--ls-navy-dark);
	color: #ffffff;
}

/* ------------------------------------------------------ components */
.breadcrumb {
	color: var(--ls-muted);
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
}

.quick-answer {
	background: var(--ls-tint);
	border-left: 5px solid var(--ls-navy);
	border-radius: var(--ls-radius);
	padding: 1rem 1.25rem;
}

.last-checked {
	color: var(--ls-muted);
	font-size: 0.85rem;
}

.our-pick {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.our-pick li {
	background: var(--ls-tint-warm);
	border-left: 5px solid var(--ls-accent);
	border-radius: var(--ls-radius);
	margin-bottom: 0.75rem;
	padding: 0.85rem 1.1rem;
}

.related-links {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.related-links li a {
	border: 1px solid var(--ls-line);
	border-radius: var(--ls-radius);
	display: block;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
}

.related-links li a:hover,
.related-links li a:focus {
	background: var(--ls-tint);
}

.disclosure {
	border-top: 1px solid var(--ls-line);
	color: var(--ls-muted);
	font-size: 0.85rem;
	margin-top: 2.5rem;
	padding-top: 1rem;
}

/* ----------------------------------------------------------- tables */
.entry-content table {
	border: 1px solid var(--ls-line);
	border-collapse: collapse;
	font-size: 0.95rem;
	margin: 1.25rem 0;
	width: 100%;
}

.entry-content th {
	background: var(--ls-navy);
	color: #ffffff;
	font-weight: 600;
	text-align: left;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--ls-line);
	padding: 0.6rem 0.75rem;
	vertical-align: top;
}

.entry-content tbody tr:nth-child(even) {
	background: var(--ls-row);
}

/* Shop buttons in the last column of comparison tables (text links only; older pages use image buttons). */
.entry-content td:last-child a[target="_blank"]:not(:has(img)) {
	background: var(--ls-accent-dark);
	border-radius: 6px;
	color: #ffffff;
	display: inline-block;
	font-weight: 600;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
	white-space: nowrap;
}

.entry-content td:last-child a[target="_blank"]:not(:has(img)):hover,
.entry-content td:last-child a[target="_blank"]:not(:has(img)):focus {
	background: var(--ls-accent-deeper);
}

/* Narrow screens and tablets: let wide tables scroll sideways instead of squashing. */
@media (max-width: 900px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 17px;
	}

	h1 {
		font-size: 1.7rem;
	}
}

/* ----------------------------------------------------------- footer */
.site-info {
	background: var(--ls-navy-dark);
	color: #d7dee8;
	font-size: 0.9rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	justify-content: center;
	margin-bottom: 0.5rem;
}

.site-info a,
.site-info a:hover {
	color: #ffffff;
}

.footer-note {
	margin: 0;
}
