/*
Theme Name: ThemeCycle
Description: Child theme of Twenty Twenty-Five for themecycle.com. Editorial review layout: Literata headings, Manrope body, teal and amber palette, styled comparison tables, callouts and guide cards. Design tokens live in theme.json; this file holds what theme.json cannot express.
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themecycle
*/

/* ---------- Header ---------- */
.tc-header {
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}

/* Logo mark: a two-tone ring (the "cycle") drawn in CSS, no image request */
.tc-header .wp-block-site-title a::before {
	content: "";
	display: inline-block;
	width: 0.82em;
	height: 0.82em;
	margin-right: 0.45em;
	vertical-align: -0.08em;
	border-radius: 50%;
	border: 0.19em solid var(--wp--preset--color--accent-1);
	border-right-color: var(--wp--preset--color--accent-2);
	box-sizing: border-box;
}

.tc-header .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
}

/* Mobile menu buttons: the theme's 24px icons get a 44px touch target without moving */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	padding: 10px;
	margin: -10px;
}

/* ---------- Text helpers ---------- */
.tc-meta {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.9rem;
	margin-top: 0.25rem;
}

.tc-eyebrow {
	color: var(--wp--preset--color--accent-1);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tc-lead {
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
	color: var(--wp--preset--color--accent-4);
	line-height: 1.6;
}

/* "Watch out for" / "Best for" lines in reviews */
p.tc-watch,
p.tc-best {
	padding-left: 0.9rem;
	border-left: 3px solid var(--wp--preset--color--accent-2);
}

p.tc-best {
	border-left-color: var(--wp--preset--color--accent-1);
}

/* ---------- Comparison tables ---------- */
.wp-block-table {
	overflow-x: auto;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	line-height: 1.5;
}

.wp-block-table thead {
	border-bottom: 0;
}

.wp-block-table thead th {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font-weight: 700;
	text-align: left;
	padding: 0.75rem 0.9rem;
	border: 0;
	white-space: nowrap;
}

.wp-block-table td {
	padding: 0.7rem 0.9rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	vertical-align: top;
}

.wp-block-table tbody tr:nth-child(even) {
	background: var(--wp--preset--color--accent-5);
}

.wp-block-table td:first-child {
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Boxes (group block styles registered in functions.php) ---------- */
.is-style-tc-callout,
.is-style-tc-note {
	background: var(--wp--preset--color--accent-5);
	border-left: 4px solid var(--wp--preset--color--accent-1);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-top: 1.75rem;
	margin-bottom: 1.75rem;
}

.is-style-tc-note {
	background: #FFF8E8;
	border-left-color: var(--wp--preset--color--accent-2);
}

.is-style-tc-callout > :first-child,
.is-style-tc-note > :first-child {
	margin-top: 0;
}

.is-style-tc-callout > :last-child,
.is-style-tc-note > :last-child {
	margin-bottom: 0;
}

.tc-box-title {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.85rem !important;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
	margin-bottom: 0.5rem;
}

.is-style-tc-callout ul,
.is-style-tc-callout ol {
	margin-bottom: 0;
	padding-left: 1.2rem;
}

.is-style-tc-callout li + li {
	margin-top: 0.3rem;
}

/* Table of contents */
.tc-toc ol {
	columns: 2 16rem;
	column-gap: 2rem;
	font-size: 0.98rem;
}

.tc-toc a {
	text-decoration: none;
}

.tc-toc a:hover {
	text-decoration: underline;
}

/* ---------- Cards ---------- */
.is-style-tc-card {
	height: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1.6rem;
	transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.is-style-tc-card:hover {
	border-color: var(--wp--preset--color--accent-1);
	box-shadow: 0 8px 28px rgba(15, 27, 45, 0.08);
	transform: translateY(-2px);
}

.is-style-tc-card h3 {
	margin-top: 0.4rem;
	font-size: 1.3rem;
}

.is-style-tc-card h3 a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* Whole card clickable via the heading link, without nesting links */
.is-style-tc-card {
	position: relative;
}

.is-style-tc-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
}

.is-style-tc-card p {
	color: var(--wp--preset--color--accent-4);
	font-size: 1rem;
	line-height: 1.6;
}

.tc-tag {
	display: inline-block;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-3);
	font-size: 0.78rem !important;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	margin: 0;
}

/* ---------- Footer ---------- */
.tc-footer {
	font-size: 0.98rem;
}

.tc-footer p,
.tc-footer li {
	color: rgba(255, 255, 255, 0.82);
}

.tc-footer h2 {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--base);
	margin-top: 0;
}

.tc-footer ul {
	list-style: none;
	padding-left: 0;
}

.tc-footer li + li {
	margin-top: 0.45rem;
}

.tc-footer a {
	text-decoration: none;
}

.tc-footer a:hover {
	text-decoration: underline;
}

.tc-footer .wp-block-site-title a {
	color: var(--wp--preset--color--base);
}

/* ---------- Focus and motion ---------- */
:where(a, button, input, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-2);
	outline-offset: 2px;
	border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.is-style-tc-card {
		transition: none;
	}

	.is-style-tc-card:hover {
		transform: none;
	}
}
