/*
Theme Name: Materia
Author: Pratik Shinde
Description: A clean Material-style theme: pill buttons, a blue / red / yellow / green palette on white, a top app bar with tab-style navigation, a slide-in drawer on mobile, and a centred search pill on the home page.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.6
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: materia
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--primary: #188038;
	--primary-hover: color-mix(in srgb, var(--primary) 90%, #000);
	--primary-tint: color-mix(in srgb, var(--primary) 10%, #fff);
	--primary-tint-strong: color-mix(in srgb, var(--primary) 18%, #fff);
	--primary-ink: color-mix(in srgb, var(--primary) 88%, #000);
	--on-primary: #fff;

	/* Header and footer (Appearance > Customize > Materia options). */
	--header-bg: #1f4d2e;
	--header-ink: #ffffff;
	--header-ink-2: color-mix(in srgb, var(--header-bg) 14%, #fff);
	--header-accent: #9fdcab;
	--header-line: color-mix(in srgb, var(--header-bg) 88%, #000);
	--header-hover: color-mix(in srgb, var(--header-bg) 86%, #fff);
	--footer-bg: #1f4d2e;
	--footer-ink: #ffffff;
	--footer-ink-2: color-mix(in srgb, var(--footer-bg) 18%, #fff);
	--footer-line: color-mix(in srgb, var(--footer-bg) 80%, #fff);

	--red: #ea4335;
	--yellow: #fbbc04;
	--green: #34a853;

	--text: #202124;
	--text-2: #5f6368;
	--line: #dadce0;
	--surface: #fff;
	--surface-2: #f8f9fa;
	--hover: #f1f3f4;

	--elev-1: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
	--elev-2: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
	--elev-search: 0 1px 6px rgba(32, 33, 36, .28);

	--font: "Google Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius-card: 12px;
	--radius-pill: 999px;
	--bar-h: 64px;
	--wrap: 1120px;
	--read: 720px;
	--ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
	margin: 0;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.25; color: var(--text); margin: 1.6em 0 .5em; }
h1 { font-size: 2.5rem; letter-spacing: -.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; font-weight: 500; }
p { margin: 0 0 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 4px solid var(--primary); color: var(--text-2); font-size: 1.125rem; }
code, kbd, pre { font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .875em; }
code { background: var(--hover); padding: .15em .4em; border-radius: 4px; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: .9375rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--text-2); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; left: 8px; top: 8px;
	background: var(--surface); padding: 12px 20px; border-radius: var(--radius-pill); box-shadow: var(--elev-2);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--read { max-width: calc(var(--read) + 48px); }

/* ---------- Buttons ---------- */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 0 24px;
	border: 1px solid transparent; border-radius: var(--radius-pill);
	background: var(--primary); color: var(--on-primary);
	font: 500 .875rem/1 var(--font); letter-spacing: .01em;
	cursor: pointer; text-decoration: none;
	transition: background-color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--primary-hover); color: var(--on-primary);
	box-shadow: var(--elev-1); text-decoration: none;
}
.btn--outlined,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--primary); border-color: var(--line);
}
.btn--outlined:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--primary-tint); color: var(--primary-ink);
	border-color: var(--primary-tint-strong); box-shadow: none;
}
.btn--tonal { background: var(--primary-tint-strong); color: var(--primary-ink); }
.btn--tonal:hover { background: color-mix(in srgb, var(--primary) 26%, #fff); color: var(--primary-ink); }
.btn--text { background: transparent; color: var(--primary); padding: 0 12px; }
.btn--text:hover { background: var(--primary-tint); color: var(--primary-ink); box-shadow: none; }
.btn--large { min-height: 48px; padding: 0 28px; font-size: 1rem; }

.icon-btn {
	position: relative; overflow: hidden;
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--text-2);
	cursor: pointer; transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg, .btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn svg { width: 18px; height: 18px; }

/* Ripple (added by theme.js) */
.ripple {
	position: absolute; border-radius: 50%; pointer-events: none;
	background: currentColor; opacity: .22; transform: scale(0);
	animation: ripple .5s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 8px;
	color: var(--text); font-size: .875rem; font-weight: 500; background: var(--surface);
	transition: background-color .2s var(--ease);
}
.chip:hover { background: var(--hover); text-decoration: none; }

/* ---------- Form fields ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="tel"], input[type="number"], textarea, select {
	width: 100%; padding: 13px 15px;
	border: 1px solid #80868b; border-radius: 4px;
	background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font);
	transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
	outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary);
}
label { font-size: .875rem; color: var(--text-2); }

/* Search pill */
.search-pill {
	display: flex; align-items: center; gap: 12px;
	height: 48px; padding: 0 20px; width: 100%;
	border: 1px solid #dfe1e5; border-radius: var(--radius-pill); background: var(--surface);
	transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.search-pill:hover, .search-pill:focus-within { box-shadow: var(--elev-search); border-color: transparent; }
.search-pill__icon { display: grid; color: #9aa0a6; }
.search-pill__icon svg { width: 20px; height: 20px; fill: currentColor; }
.search-pill input[type="search"] {
	flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent;
	font: 400 1rem var(--font); color: var(--text); outline: none; box-shadow: none;
}
.search-pill input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- App bar ---------- */
.app-bar {
	position: sticky; top: 0; z-index: 100;
	background: var(--header-bg); border-bottom: 1px solid var(--header-line);
	transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.app-bar.is-scrolled { border-color: transparent; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15); }
.admin-bar .app-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .app-bar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .app-bar { top: 0; } }

.app-bar__row { display: flex; align-items: center; gap: 8px; height: var(--bar-h); padding: 0 16px; }
.app-bar__menu-btn { display: none; }
.app-bar__brand { display: flex; align-items: center; margin-right: 20px; flex: none; }
.app-bar__brand img { max-height: 36px; width: auto; display: block; }
.site-title {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 1.375rem; font-weight: 500; color: var(--header-ink); white-space: nowrap;
}
.site-title:hover { text-decoration: none; color: var(--header-ink); }
.site-title__dots { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.site-title__dots i { width: 9px; height: 9px; border-radius: 50%; background: #4285f4; }
.site-title__dots i:nth-child(2) { background: var(--red); }
.site-title__dots i:nth-child(3) { background: var(--yellow); }
.site-title__dots i:nth-child(4) { background: var(--green); }
.app-bar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

/* Tab-style top navigation */
.top-nav { align-self: stretch; min-width: 0; }
.top-nav ul { list-style: none; margin: 0; padding: 0; }
.top-nav > ul { display: flex; height: 100%; }
.top-nav > ul > li { position: relative; display: flex; }
.top-nav > ul > li > a {
	position: relative; display: flex; align-items: center; gap: 2px; padding: 0 16px;
	color: var(--header-ink-2); font-size: .875rem; font-weight: 500; white-space: nowrap;
	transition: color .15s, background-color .15s;
}
.top-nav > ul > li > a:hover { color: var(--header-ink); background: var(--header-hover); text-decoration: none; }
.top-nav > ul > li > a::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
	border-radius: 3px 3px 0 0; background: var(--primary);
	transform: scaleX(0); transition: transform .2s var(--ease);
}
.top-nav > ul > .current-menu-item > a,
.top-nav > ul > .current_page_item > a,
.top-nav > ul > .current-menu-ancestor > a { color: var(--header-ink); }
.top-nav > ul > li > a::after { background: var(--header-accent); }
.app-bar .icon-btn { color: var(--header-ink); }
.app-bar .icon-btn:hover { background: var(--header-hover); }
.top-nav > ul > .current-menu-item > a::after,
.top-nav > ul > .current_page_item > a::after,
.top-nav > ul > .current-menu-ancestor > a::after { transform: scaleX(1); }
.top-nav .menu-item-has-children > a::before {
	content: ""; order: 2; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Dropdown = Material menu surface */
.top-nav .sub-menu, .top-nav .children {
	position: absolute; top: calc(100% - 4px); left: 0; min-width: 200px; padding: 8px 0;
	background: var(--surface); border-radius: 8px; box-shadow: var(--elev-2);
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .15s, transform .15s var(--ease), visibility .15s;
}
.top-nav li:hover > .sub-menu, .top-nav li:focus-within > .sub-menu,
.top-nav li:hover > .children, .top-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.top-nav .sub-menu li, .top-nav .children li { position: relative; }
.top-nav .sub-menu a, .top-nav .children a { display: block; padding: 10px 20px; color: var(--text); font-size: .875rem; }
.top-nav .sub-menu a:hover, .top-nav .children a:hover { background: var(--hover); text-decoration: none; }
.top-nav .sub-menu .sub-menu, .top-nav .children .children { top: -8px; left: 100%; }

/* Search row under the bar */
.app-bar__search { padding: 0 16px 14px; }
.app-bar__search[hidden] { display: none; }
.app-bar__search .search-pill { max-width: 720px; margin-inline: auto; background: var(--surface); border-color: transparent; }
/* Logo on a light badge so a dark or coloured logo stays readable on the green bar. */
.logo-badge .app-bar__brand .custom-logo-link { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 10px; background: #fff; }
.logo-badge .app-bar__brand img { max-height: 32px; }
.app-bar__search .search-pill:focus-within { background: var(--surface); }

/* ---------- Drawer ---------- */
.scrim {
	position: fixed; inset: 0; z-index: 200; background: rgba(32, 33, 36, .6);
	opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.drawer {
	position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(300px, 86vw);
	background: var(--surface); overflow-y: auto; padding-bottom: 24px;
	transform: translateX(-100%); visibility: hidden;
	transition: transform .25s var(--ease), visibility .25s;
}
.drawer-open .scrim { opacity: 1; visibility: visible; }
.drawer-open .drawer { transform: none; visibility: visible; box-shadow: var(--elev-2); }
.drawer-open { overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
	display: flex; align-items: center; min-height: 48px; margin-right: 12px; padding: 0 24px;
	border-radius: 0 24px 24px 0; color: var(--text); font-size: .875rem; font-weight: 500;
}
.drawer nav a:hover { background: var(--hover); text-decoration: none; }
.drawer .current-menu-item > a, .drawer .current_page_item > a { background: var(--primary-tint-strong); color: var(--primary-ink); }
.drawer .sub-menu a, .drawer .children a { padding-left: 44px; font-weight: 400; color: var(--text-2); }
.drawer__cta { padding: 16px 24px 0; }
.drawer__cta .btn { width: 100%; }

@media (max-width: 900px) {
	.app-bar__menu-btn { display: inline-grid; }
	.top-nav, .app-bar__actions .btn { display: none; }
	.app-bar__row { padding: 0 8px; }
	.app-bar__brand { margin-left: 4px; }
}

/* A menu too long for the bar switches to the menu button (class set by theme.js). */
.nav-collapsed .app-bar__menu-btn { display: inline-grid; }
.nav-collapsed .top-nav, .nav-collapsed .app-bar__actions .btn { display: none; }

/* ---------- Home hero ---------- */
.hero { padding: 88px 0 56px; text-align: center; }
.hero__title { margin: 0 0 12px; font-size: clamp(2.5rem, 7vw, 4.25rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.hero__lede { margin: 0 auto 32px; max-width: 34em; color: var(--text-2); font-size: 1.125rem; }
.hero .search-pill { max-width: 584px; margin-inline: auto; height: 52px; }
.hero .chips { justify-content: center; margin-top: 24px; }

/* ---------- Custom homepage (front-page.php) ---------- */
.home-hero { padding: 64px 0 72px; }
.home-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.home-hero__title { margin: 0 0 16px; font-size: clamp(2.5rem, 5vw, 3.75rem); letter-spacing: -.02em; line-height: 1.1; }
.home-hero__text { margin: 0 0 28px; max-width: 30em; color: var(--text-2); font-size: 1.125rem; }
.home-hero .search-pill { max-width: 480px; height: 52px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.home-hero__art { aspect-ratio: 8 / 7; border-radius: 28px; overflow: hidden; background: var(--primary-tint); }
.home-hero__art img, .home-hero__art svg { width: 100%; height: 100%; display: block; }
.home-hero__art img { object-fit: cover; }
@media (max-width: 860px) {
	.home-hero { padding: 40px 0 48px; }
	.home-hero__grid { grid-template-columns: 1fr; gap: 32px; }
}

.section { padding: 56px 0; }
.section--band { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-title { margin: 0; font-size: 1.75rem; }
.section .card-grid { padding-top: 0; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.topic {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
	min-height: 112px; padding: 20px; border-radius: 16px;
	background: #e8f0fe; color: var(--text);
	transition: box-shadow .2s var(--ease);
}
.topic:nth-child(4n + 2) { background: #fce8e6; }
.topic:nth-child(4n + 3) { background: #fef7e0; }
.topic:nth-child(4n + 4) { background: #e6f4ea; }
.topic:hover { box-shadow: var(--elev-1); text-decoration: none; }
.topic__name { font-size: 1.0625rem; font-weight: 500; }
.topic__count { font-size: .8125rem; color: var(--text-2); }

.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.tip { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.tip h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 500; }
.tip p { margin: 0; color: var(--text-2); font-size: .9375rem; }

/* Homepage text */
.home-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 56px; align-items: start; }
.home-text--solo { grid-template-columns: minmax(0, 1fr); }
.home-text__body { max-width: 40em; font-size: 1.0625rem; line-height: 1.75; }
.home-text__body > :first-child { margin-top: 0; }
.home-text__body > :last-child { margin-bottom: 0; }
.home-text__body a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) {
	.home-text { grid-template-columns: 1fr; }
}

/* Homepage FAQs */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 56px; align-items: start; }
@media (min-width: 861px) {
	.faq__intro { position: sticky; top: calc(var(--bar-h) + 32px); }
	.admin-bar .faq__intro { top: calc(var(--bar-h) + 64px); }
}
.faq__intro p { margin: 12px 0 0; max-width: 26em; color: var(--text-2); }
.faq__list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 20px 18px 24px; cursor: pointer; list-style: none;
	font-size: 1.0625rem; font-weight: 500; line-height: 1.4;
	transition: background-color .15s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--hover); }
.faq__q:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.faq__icon { flex: none; color: var(--text-2); transition: transform .2s var(--ease); }
.faq__item[open] > .faq__q { color: var(--primary-ink); }
.faq__item[open] > .faq__q .faq__icon { transform: rotate(180deg); color: var(--primary); }
.faq__a { padding: 0 64px 20px 24px; max-width: 44em; color: var(--text-2); }
.faq__a p { margin: 0 0 12px; }
.faq__a > :last-child { margin-bottom: 0; }
.faq__a ul, .faq__a ol { margin: 0 0 12px; padding-left: 1.25em; }
.faq__a a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 2px; }
.faq__a img { max-width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 860px) {
	.faq { grid-template-columns: 1fr; }
	.faq__q { padding: 16px 12px 16px 16px; font-size: 1rem; }
	.faq__a { padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.faq__q, .faq__icon { transition: none; }
}

.cta-band { padding: 48px 32px; border-radius: 28px; background: var(--primary-tint); text-align: center; }
.cta-band h2 { margin: 0 0 8px; font-size: 1.75rem; }
.cta-band p { margin: 0 auto 24px; max-width: 34em; color: var(--text-2); }

/* ---------- Page headings ---------- */
.page-head { padding: 48px 0 8px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.page-head p, .page-head .archive-description { color: var(--text-2); margin: 0; }
.site-main { padding-bottom: 80px; min-height: 50vh; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding-top: 32px; }
.card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
	transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { box-shadow: var(--elev-2); border-color: transparent; }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--hover); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 12px; }
.card__cat { font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--primary); margin-bottom: 8px; }
.card__title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.35; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--primary); text-decoration: none; }
.card__excerpt { color: var(--text-2); font-size: .9375rem; }
.card__excerpt p { margin: 0; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 12px 24px; }
.card__date { font-size: .8125rem; color: var(--text-2); }
.card__foot { padding: 4px 20px 20px 24px; }
.card__btn { min-height: 36px; padding: 0 16px 0 20px; gap: 6px; }
.card__btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s var(--ease); }
.card .card__btn { background: var(--header-bg); color: #fff; }
.card:hover .card__btn, .card__btn:focus-visible { background: var(--primary); color: #fff; box-shadow: var(--elev-1); }
.card:hover .card__btn svg { transform: translateX(3px); }
.sticky.card { border-color: var(--primary); }

/* ---------- Pagination ---------- */
.pagination, .comments-pagination { margin-top: 48px; }
.pagination .nav-links, .comments-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: var(--radius-pill); color: var(--primary); font-size: .875rem; font-weight: 500;
}
a.page-numbers:hover { background: var(--primary-tint); text-decoration: none; }
.page-numbers.current { background: var(--primary); color: var(--on-primary); }
.page-numbers.dots { color: var(--text-2); }

/* ---------- Single post / page ---------- */
.entry-head { padding-block: 56px 24px; }
.entry-head .card__cat { font-size: .875rem; }
.entry-title { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.015em; line-height: 1.15; }
.entry-meta { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .875rem; }
.entry-meta img { border-radius: 50%; display: block; }
.entry-meta__author { display: block; color: var(--text); font-weight: 500; }
.entry-meta__author:hover { color: var(--primary-ink); }
.entry-meta__dates { display: flex; flex-wrap: wrap; column-gap: 6px; }
.entry-meta__updated::before { content: "·"; margin-right: 6px; }
.entry-meta__updated { color: var(--primary-ink); font-weight: 500; }
@media (max-width: 600px) {
	.entry-meta__dates { flex-direction: column; }
	.entry-meta__updated::before { content: none; }
}

/* Breadcrumbs */
.breadcrumbs { margin: 0 0 16px; font-size: .8125rem; color: var(--text-2); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: var(--text-2); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--primary-ink); }
.breadcrumbs [aria-current] { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
@media (max-width: 600px) { .breadcrumbs [aria-current] { max-width: 20ch; } }

/* Author box */
.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 48px auto 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.author-box__avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; display: block; }
.author-box__body { min-width: 0; }
.author-box__label { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.author-box__name { display: inline-block; margin: 2px 0 6px; font-size: 1.25rem; font-weight: 500; color: var(--text); }
a.author-box__name:hover { color: var(--primary-ink); }
.author-box__bio { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.author-box__bio p { margin: 0 0 8px; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; font-size: .875rem; font-weight: 500; }
.author-box__links span { color: var(--text-2); font-weight: 400; }
.entry-content .author-box a { text-decoration: none; }
.author-box--header { margin: 0; padding: 0; border: 0; background: none; align-items: center; }
.author-box--header .author-box__avatar { width: 96px; height: 96px; }
.author-box--header .author-box__name { margin: 0 0 6px; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 400; }
@media (max-width: 600px) {
	.author-box { flex-direction: column; gap: 12px; padding: 20px; }
	.author-box--header { flex-direction: row; }
	.author-box--header .author-box__avatar { width: 72px; height: 72px; }
}
.entry-media { margin: 8px auto 40px; }
.entry-media img { width: 100%; border-radius: 16px; display: block; }
.entry-content { font-size: 1.0625rem; line-height: 1.75; }
.entry-content > * { max-width: var(--read); margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content a.wp-block-button__link { text-decoration: none; }
.entry-content img, .wp-block-image img { border-radius: 8px; }
.entry-content li { margin-bottom: .4em; }
.wp-caption-text, figcaption { color: var(--text-2); font-size: .8125rem; text-align: center; margin-top: 8px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.entry-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--text); }
.post-navigation a:hover { background: var(--surface-2); text-decoration: none; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { display: block; font-size: .75rem; font-weight: 500; color: var(--primary); margin-bottom: 4px; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: 1; } }

/* ---------- Comments ---------- */
.comments-area { margin-top: 56px; }
.comments-title, .comment-reply-title { font-size: 1.375rem; margin: 0 0 24px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 32px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 500; font-style: normal; }
.comment-author .says { display: none; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8125rem; margin: 4px 0 12px; }
.comment-metadata a { color: var(--text-2); }
.reply a { font-size: .875rem; font-weight: 500; }
.comment-respond { margin-top: 40px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: baseline; }
.comment-form-cookies-consent label { margin: 0; }

/* ---------- Widgets ---------- */
.widget { margin-bottom: 32px; }
.widget-title, .widget .wp-block-heading { font-size: .875rem; font-weight: 500; color: var(--text); margin: 0 0 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; font-size: .875rem; }
.widget a { color: var(--text-2); }
.widget a:hover { color: var(--primary); }

/* ---------- Empty / 404 ---------- */
.notice-page { text-align: center; padding: 96px 0; }
.notice-page__code { font-size: clamp(5rem, 18vw, 9rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 8px; }
.notice-page__code span:nth-child(1) { color: var(--primary); }
.notice-page__code span:nth-child(2) { color: var(--red); }
.notice-page__code span:nth-child(3) { color: var(--yellow); }
.notice-page h1 { font-size: 1.75rem; margin: 0 0 8px; }
.notice-page p { color: var(--text-2); }
.notice-page .search-pill { max-width: 480px; margin: 28px auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink-2); font-size: .875rem; }
.site-footer a { color: var(--footer-ink-2); }
.site-footer a:hover { color: var(--footer-ink); }
.site-footer .widget-title, .site-footer h2, .site-footer h3 { color: var(--footer-ink); }
.site-footer .widget a:hover { color: var(--footer-ink); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 48px 16px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-block: 48px 40px; }
.site-footer .footer-brand__name { font-size: 1.25rem; font-weight: 500; color: var(--footer-ink); }
.site-footer .footer-brand__name:hover { color: var(--footer-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { margin: 12px 0 0; max-width: 28em; line-height: 1.6; }
.footer-col__title { margin: 0 0 8px; padding-top: 4px; font-size: .875rem; font-weight: 500; color: var(--footer-ink); }
.footer-col__links { list-style: none; margin: 0; padding: 0; }
.footer-col__links a { display: inline-block; padding: 6px 0; color: var(--footer-ink-2); }
.footer-col__links a:hover { color: var(--footer-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) {
	.footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 40px 24px; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.footer-main { grid-template-columns: 1fr; gap: 24px; }
}
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 20px; border-top: 1px solid var(--footer-line); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--footer-ink-2); }
.footer-nav a:hover { color: var(--footer-ink); }
.footer-bar__copy { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
