/* ==========================================================================
   こしたけ・らぼ theme stylesheet
   Design keywords: simple / trustworthy / calm / whitespace / readable
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
	--color-bg: #ffffff;
	--color-bg-alt: #f7f3ec;
	--color-text: #2b2621;
	--color-text-muted: #6d6357;
	--color-border: #e7e0d3;
	--color-accent: #c5a875;
	--color-accent-dark: #a8875a;
	--color-accent-contrast: #3d2f22;

	--font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
		"Yu Gothic Medium", "游ゴシック Medium", "Noto Sans JP", Meiryo, sans-serif;

	--container-width: 1120px;
	--content-narrow-width: 760px;
	--radius-sm: 6px;
	--radius: 12px;
	--shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.06);
	--shadow: 0 8px 24px rgba(20, 24, 28, 0.08);

	--space-section: clamp(3.5rem, 6vw, 7rem);
	--header-height: 72px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, blockquote, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

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

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	background: var(--color-text);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	z-index: 200;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 20px;
}
.content-narrow { max-width: var(--content-narrow-width); margin-inline: auto; }

.section { padding-block: var(--space-section); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--color-bg-alt); }
.section__heading {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 1rem;
}
.section__heading::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-top: 0.75rem;
	background: var(--color-accent);
	border-radius: 999px;
}
.section__lead { color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 46em; }
.section__note { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 1.5rem; }
.section__label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--color-text-muted); text-transform: uppercase; margin-bottom: 0.75rem; }
.section__cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
/* Standalone closing CTA sections (About/Works bottom banner): the button is
   the section's only content, so it shouldn't inherit the heading-to-button
   spacing above, and should read as a centered banner, not a left-aligned row. */
.section--contact-cta .section__cta { margin-top: 0; justify-content: center; }
.section__empty { color: var(--color-text-muted); padding: 2rem 0; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.8em;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	border: 1px solid transparent;
}
.btn--primary { background: var(--color-accent-dark); color: #efe2cc; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-accent); }
.btn--ghost:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--color-accent-contrast); }
.btn--cta { background: var(--color-accent-dark); color: #efe2cc; padding: 0.6em 1.4em; font-size: 0.9rem; }
.btn--lg { padding: 1em 2.4em; font-size: 1.05rem; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* The frosted-glass background lives on a pseudo-element, not on .site-header
   itself: an element with backdrop-filter becomes the containing block for
   any position:fixed descendant, which broke the mobile nav panel (it sized
   and positioned itself against the header instead of the viewport). */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(8px);
	z-index: -1;
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: 1rem;
}
.site-branding { margin: 0; }
.site-branding__link { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--color-text); }
.custom-logo-link img { max-height: 44px; width: auto; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	z-index: 110;
}
.nav-toggle__box { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle__line { display: block; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav__list { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav__list a { font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; }
.primary-nav__list a:hover { color: var(--color-accent); }
.primary-nav__cta { flex-shrink: 0; }

@media (max-width: 879px) {
	.nav-toggle { display: inline-flex; order: 3; }
	.primary-nav {
		position: fixed;
		inset: var(--header-height) 0 0 0;
		background: var(--color-bg);
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		padding: 2rem 20px;
		gap: 2rem;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav__list { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
	.primary-nav__list a { font-size: 1.1rem; }
	.primary-nav__cta { width: 100%; justify-content: center; }
}
@media (min-width: 880px) {
	.nav-toggle { display: none; }
}

.mobile-cta {
	position: fixed;
	left: 16px; right: 16px; bottom: 16px;
	z-index: 90;
	display: flex;
	justify-content: center;
	padding: 0.9em 1em;
	background: var(--color-accent-dark);
	color: #efe2cc;
	font-weight: 700;
	border-radius: 999px;
	box-shadow: var(--shadow);
}
@media (min-width: 880px) {
	.mobile-cta { display: none; }
}

/* ---- Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(3.5rem, 10vw, 7.5rem) clamp(3rem, 8vw, 6rem); }
.hero__inner { text-align: center; max-width: 760px; }
.hero__role { color: var(--color-accent); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 1rem; font-size: 0.95rem; }
.hero__catch { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.5; font-weight: 700; letter-spacing: 0.01em; }
.hero__scope { margin-top: 1.5rem; color: var(--color-text-muted); font-size: 1.05rem; }
.hero__actions { margin-top: 2.5rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- Consult list ------------------------------------------------------------ */
.consult-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.consult-list__item {
	position: relative;
	padding: 1.1rem 1.25rem 1.1rem 2.75rem;
	background: var(--color-bg-alt);
	border-radius: var(--radius);
	font-weight: 600;
}
.consult-list__item::before {
	content: "";
	position: absolute;
	left: 1.25rem; top: 1.35rem;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--color-accent);
}
/* This leads straight into the button below it, so it should read as normal
   body copy, not de-emphasized fine print (unlike .section__note elsewhere). */
.consult-note { color: var(--color-text); font-size: 1.05rem; margin-top: 1.75rem; max-width: 46em; }

/* ---- About summary ------------------------------------------------------------ */
.about-summary__lead { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.about-summary__text { color: var(--color-text-muted); max-width: 46em; }

/* ---- Cards -------------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* card-grid--4 (TOP SERVICE cards): flex + justify-content so a partial last row stays centered */
.card-grid--4 { display: flex; flex-wrap: wrap; justify-content: center; }
.card-grid--4 .card { width: 100%; }
@media (min-width: 640px) { .card-grid--4 .card { width: calc(50% - 0.75rem); } }
@media (min-width: 960px) { .card-grid--4 .card { width: calc(25% - 1.125rem); } }

.card {
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.75rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { display: block; margin: -1.75rem -1.75rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.card__text { color: var(--color-text-muted); margin-top: 0.6rem; font-size: 0.92rem; }
.card__meta { color: var(--color-text-muted); font-size: 0.82rem; margin-bottom: 0.5rem; display: flex; gap: 0.5em; flex-wrap: wrap; }
.card__category { color: var(--color-accent); font-weight: 700; }
.card__link { margin-top: auto; padding-top: 1rem; font-weight: 700; font-size: 0.85rem; color: var(--color-accent); }
.card__taglist { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card__taglist li { font-size: 0.78rem; padding: 0.25em 0.7em; background: var(--color-bg-alt); border-radius: 999px; color: var(--color-text-muted); }

/* ---- Page hero / breadcrumbs -------------------------------------------------- */
.page-hero { padding-block: 3rem 2.5rem; }
.page-hero__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-top: 0.75rem; }
.page-hero__lead { color: var(--color-text-muted); margin-top: 1rem; max-width: 46em; }

.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 0.4em; font-size: 0.82rem; color: var(--color-text-muted); }
.breadcrumbs__item:not(:last-child)::after { content: "/"; margin-left: 0.4em; color: var(--color-border); }
.breadcrumbs a:hover { color: var(--color-accent); }

/* ---- Subnav (About / Service in-page nav) -------------------------------------- */
.subnav { position: sticky; top: var(--header-height); z-index: 50; background: var(--color-bg); border-block: 1px solid var(--color-border); }
.subnav__inner { display: flex; gap: 1.5rem; overflow-x: auto; padding-block: 0.9rem; }
/* Trailing padding on a horizontally scrolling flex container is dropped by
   browsers once content overflows, so the last link (e.g. スポット相談) ends
   up flush against the screen edge. A real flex item at the end works around it. */
.subnav__inner::after { content: ""; flex: 0 0 1px; margin-right: 19px; }
.subnav a { font-weight: 700; font-size: 0.88rem; color: var(--color-text-muted); white-space: nowrap; }
.subnav a:hover { color: var(--color-accent); }
@media (max-width: 879px) {
	/* Horizontal scrolling reads as a cut-off/broken layout on narrow screens
	   with only a handful of items; wrap instead so everything is visible
	   without needing to scroll. */
	.subnav__inner { flex-wrap: wrap; gap: 0.9rem 1.25rem; overflow-x: visible; }
	.subnav__inner::after { content: none; }
}

/* ---- Image captions (block editor image + caption, in any WYSIWYG content) ---- */
/* The rendered markup for a block-editor image is
     <div class="wp-block-image"><figure class="[align] ...">...</figure></div>
   i.e. "wp-block-image" and the alignment class are on DIFFERENT elements
   (the div and the figure), not combined on one — so selectors need a space
   (descendant), not a compound ".wp-block-image.alignright". */
.wp-block-image figure:not(.alignleft):not(.alignright),
.wp-caption:not(.alignleft):not(.alignright) {
	width: fit-content;
	max-width: 100%;
	margin-block: 1.5em;
	margin-inline: auto;
}
.wp-block-image img, .wp-caption img { display: block; margin-inline: auto; }
.wp-block-image figcaption,
.wp-caption .wp-caption-text {
	white-space: nowrap;
	text-align: center;
	font-size: 0.85rem;
	color: var(--color-text-muted);
}
/* alignleft/alignright: WordPress core already floats these (and floated
   boxes shrink-wrap to their content by default, same effect as fit-content
   above), so just add breathing room instead of fighting the float. */
.wp-block-image .alignright, .wp-caption.alignright { margin: 0.5em 0 1em 1.5em; }
.wp-block-image .alignleft, .wp-caption.alignleft { margin: 0.5em 1.5em 1em 0; }

/* ---- Category filter ------------------------------------------------------------ */
.category-filter { border-block: 1px solid var(--color-border); }
.category-filter__inner { display: flex; gap: 0.6rem; overflow-x: auto; padding-block: 1rem; }
.category-filter__item { flex-shrink: 0; padding: 0.5em 1.1em; border-radius: 999px; background: var(--color-bg-alt); font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.category-filter__item.is-active, .category-filter__item:hover { background: var(--color-accent); color: var(--color-accent-contrast); }

/* ---- Example list (Service page "対応例"; same look as the TOP page's
   consult list — a dot-bulleted checklist reads better here than tag pills). */
.example-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
	margin-top: 1rem;
}
.example-list__item {
	position: relative;
	padding: 0.9rem 1.1rem 0.9rem 2.5rem;
	background: var(--color-bg-alt);
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.92rem;
}
/* On an alternating (gray) section background, the card needs a different
   background than --color-bg-alt or it blends in and becomes invisible. */
.section--alt .example-list__item { background: var(--color-bg); }
.example-list__item::before {
	content: "";
	position: absolute;
	left: 1.1rem; top: 1.15rem;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--color-accent);
}

/* ---- About section body (rich text; lists/quotes styled generically so any
   ABOUTセクション post can use the editor's list/quote blocks as tag-pills or
   a highlighted quote without extra fields) ------------------------------------- */
.about-section__body ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1rem 0 0; }
.about-section__body ul li { padding: 0.5em 1.1em; border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.88rem; background: var(--color-bg-alt); color: var(--color-accent); font-weight: 600; }
.about-section__body ol { padding-left: 1.4em; margin-top: 1rem; }
.about-section__body p + p { margin-top: 1em; }
.about-section__body::after { content: ""; display: table; clear: both; }
.about-section__body blockquote { border-left: 3px solid var(--color-accent); padding-left: 1.5rem; margin: 1rem 0 0; }
.about-section__body blockquote p { font-size: 1.15rem; font-weight: 700; line-height: 1.9; }

/* ---- Works detail ------------------------------------------------------------------ */
.work-detail__media { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; }
.work-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.work-meta__row { background: var(--color-bg-alt); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
.work-meta dt { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 0.3rem; }
.work-meta dd { margin: 0; font-weight: 700; }
.work-overview { margin-bottom: 2.5rem; }
.work-flow { display: flex; flex-direction: column; gap: 0; }
.work-flow__step { background: var(--color-bg-alt); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.work-flow__label { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--color-accent); margin-bottom: 0.5rem; }
.work-flow__arrow { text-align: center; color: var(--color-text-muted); padding: 0.4rem 0; }

/* ---- Article ------------------------------------------------------------------------- */
.article-categories { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.article-categories__item { font-size: 0.78rem; font-weight: 700; padding: 0.3em 0.9em; border-radius: 999px; background: var(--color-bg-alt); color: var(--color-accent); }
.article-meta { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 1rem; display: flex; gap: 0.4em; flex-wrap: wrap; }
.article-thumbnail { margin-block: 1rem 2.5rem; border-radius: var(--radius); overflow: hidden; }

.toc { background: var(--color-bg-alt); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; }
.toc__heading { font-weight: 700; margin-bottom: 0.75rem; }
.toc__list { counter-reset: toc; display: flex; flex-direction: column; gap: 0.5rem; }
.toc__item a { color: var(--color-text-muted); font-size: 0.92rem; }
.toc__item a:hover { color: var(--color-accent); }
.toc__item--h3 { padding-left: 1.25rem; }

/* The sidebar ad (if any) sits above the ToC and scrolls together with it. */
.article-sidebar .promo-slot { margin-bottom: 1.5rem; margin-top: 0; }

/* The ToC (and its ad) is a wide-screen-only feature: on narrower screens
   there's no room to show it usefully, so it's dropped entirely rather than
   stacked above the article. */
@media (max-width: 1099px) {
	.article-sidebar { display: none; }
}

/* On wide screens, pin the sidebar (ad + ToC) beside the article body
   (Qiita-style) instead of stacking it above the content. */
@media (min-width: 1100px) {
	.article-layout {
		display: grid;
		grid-template-columns: minmax(0, var(--content-narrow-width)) 240px;
		justify-content: center;
		align-items: start;
		gap: 3rem;
	}
	.article-layout .article-body { grid-column: 1; }
	.article-layout .article-sidebar {
		grid-column: 2;
		grid-row: 1;
		position: sticky;
		top: calc(var(--header-height) + 1.5rem);
		max-height: calc(100vh - var(--header-height) - 3rem);
		overflow-y: auto;
	}
	.article-sidebar .toc { margin-bottom: 0; padding: 1.25rem 1.5rem; }
	.toc__heading { font-size: 0.85rem; }
	.toc__item a { font-size: 0.85rem; }
}

.entry-content { font-size: 1.05rem; line-height: 1.95; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 3rem; scroll-margin-top: calc(var(--header-height) + 1rem); }
.entry-content h3 { font-size: 1.15rem; font-weight: 700; margin-top: 2.25rem; scroll-margin-top: calc(var(--header-height) + 1rem); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; list-style: revert; }
.entry-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.2em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { border-left: 3px solid var(--color-accent); padding-left: 1.25rem; color: var(--color-text-muted); }
.entry-content pre { background: var(--color-text); color: #f4f6f8; padding: 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.9rem; }
.entry-content code { background: var(--color-bg-alt); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; }
.entry-content pre code { background: none; padding: 0; }

.share-buttons { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }

/* ---- Ad slot (外観 > ウィジェット > BLOG広告) ---------------------------------- */
.promo-slot { margin-block: 2rem; text-align: center; }
.promo-slot__label { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.promo-slot--placeholder { padding: 2rem 1rem; border: 1px dashed #e0a800; border-radius: var(--radius); background: #fff8e1; color: #8a6100; font-size: 0.85rem; font-weight: 600; }
.share-buttons__label { font-weight: 700; font-size: 0.85rem; color: var(--color-text-muted); margin-right: 0.5rem; }
.share-buttons__item { padding: 0.5em 1.1em; border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.share-buttons__item:hover { border-color: var(--color-accent); color: var(--color-accent); }

.article-cta {
	margin-top: 2.5rem;
	padding: 2rem;
	background: var(--color-bg-alt);
	border-radius: var(--radius);
	text-align: center;
}
.article-cta p { font-weight: 700; margin-bottom: 1.25rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav__item { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.post-nav__item:hover { border-color: var(--color-accent); }
.post-nav__item--next { text-align: right; grid-column: 2; }
.post-nav__label { font-size: 0.78rem; color: var(--color-text-muted); font-weight: 700; }
.post-nav__title { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 639px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next { grid-column: 1; text-align: left; }
}

.related-articles { margin-top: 0; }

/* ---- Contact form (Contact Form 7 markup) ------------------------------------------------- */
.contact-form { margin-top: 2rem; }
.contact-form .wpcf7-form { display: flex; flex-direction: column; }
.contact-form .wpcf7-response-output { order: -1; }
.contact-form .wpcf7-form p { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; font-weight: 700; font-size: 0.92rem; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	padding: 0.85em 1em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	width: 100%;
	font: inherit;
	font-weight: 400;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	border-color: var(--color-accent);
	outline: none;
}
.contact-form .wpcf7-submit { margin-top: 0.5rem; }
.contact-form .wpcf7-not-valid-tip { color: #c0392b; font-size: 0.85rem; font-weight: 400; }
.contact-form .wpcf7-response-output { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; }
.contact-form .wpcf7-form.sent .wpcf7-response-output { background: #e7f4ea; color: #1e6b34; }
.contact-form .wpcf7-form.invalid .wpcf7-response-output,
.contact-form .wpcf7-form.unaccepted .wpcf7-response-output,
.contact-form .wpcf7-form.payment-required .wpcf7-response-output,
.contact-form .wpcf7-form.spam .wpcf7-response-output { background: #fdecec; color: #a92323; }

/* ---- Footer ---------------------------------------------------------------------------------- */
.site-footer { background: var(--color-text); color: #d8dce1; padding-block: 3.5rem 2.5rem; margin-top: var(--space-section); }
.site-footer__inner { display: flex; flex-direction: column; gap: 1.75rem; align-items: flex-start; }
.site-footer__name { font-weight: 700; font-size: 1.1rem; color: #fff; }
.site-footer__tagline { color: #9aa2ab; margin-top: 0.4rem; font-size: 0.9rem; }
.site-footer__nav-list { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__nav-list a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 1.25rem; font-size: 0.88rem; }
.site-footer__social a:hover { color: #fff; }
.site-footer__copyright { color: #7c848d; font-size: 0.8rem; margin-top: 1rem; }

/* ---- Pagination ---------------------------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding-inline: 0.5em;
	border-radius: 999px; border: 1px solid var(--color-border);
	font-size: 0.9rem;
}
.pagination .page-numbers.current { background: var(--color-accent); color: var(--color-accent-contrast); border-color: transparent; }
.pagination .page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); }
