:root {
	--ink: #14213d;
	--muted: #64748b;
	--line: #d9e2ec;
	--panel: #f7fafc;
	--cat: #f29f45;
	--gray-cat: #8a94a6;
	--dog: #d5a247;
	--shiba: #c46b3a;
	--teal: #2f9e9e;
	--red: #d63f3f;
	--yellow: #f0b429;
	--green: #2f9e44;
	--black: #111827;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	background: #fff;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.site-header,
.site-footer {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 20px;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-bottom: 1px solid var(--line);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	min-width: 0;
}

.brand-text-link,
.brand-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-height: 92px;
	color: inherit;
	text-decoration: none;
}

.brand-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 8px;
	background: var(--teal);
	color: #fff;
	font-size: 12px;
	letter-spacing: 0;
}

.brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: min(340px, 50vw);
	max-height: 92px;
	overflow: hidden;
}

.brand-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(340px, 50vw);
	max-height: 92px;
	object-fit: contain;
}

.brand-name {
	line-height: 1.1;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--muted);
}

.site-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px 56px;
}

.hero,
.problem-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	gap: 36px;
	align-items: center;
	padding: 42px 0;
	border-bottom: 1px solid var(--line);
}

.hero h1,
.problem-hero h1,
.archive-header h1 {
	margin: 0 0 14px;
	font-size: clamp(34px, 5vw, 62px);
	line-height: 1.02;
	letter-spacing: 0;
}

.hero p,
.quick-answer {
	max-width: 690px;
	color: var(--muted);
	font-size: 18px;
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--teal);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 620px;
	margin-top: 24px;
}

.search-form label {
	flex: 1;
}

.search-form input[type="search"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 0 14px;
	font: inherit;
}

.search-form button {
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	padding: 0 18px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.hero-visual {
	position: relative;
	min-height: 300px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.hero-illustration {
	display: block;
	width: 100%;
	height: auto;
	min-height: 300px;
	object-fit: contain;
}

.section-grid,
.card-grid,
.related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	padding: 34px 0;
}

.section-card,
.problem-card,
.answer-section,
.image-placeholder {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}

.section-card {
	padding: 22px;
	transition: border-color 160ms ease, transform 160ms ease;
}

.section-card:hover,
.problem-card:hover {
	border-color: var(--teal);
	transform: translateY(-2px);
}

.section-card span {
	display: block;
	font-weight: 800;
}

.section-card small {
	color: var(--muted);
}

.problem-card {
	overflow: hidden;
	transition: border-color 160ms ease, transform 160ms ease;
}

.card-visual {
	aspect-ratio: 16 / 10;
	background: var(--panel);
	overflow: hidden;
}

.card-body {
	padding: 18px;
}

.card-body h2 {
	margin: 12px 0 8px;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: 0;
}

.card-body p {
	margin: 0;
	color: var(--muted);
}

.severity {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	border-radius: 999px;
	padding: 4px 10px;
	background: var(--panel);
	font-size: 13px;
	font-weight: 800;
}

.severity-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--yellow);
}

.severity-green .severity-dot { background: var(--green); }
.severity-yellow .severity-dot { background: var(--yellow); }
.severity-red .severity-dot { background: var(--red); }
.severity-black .severity-dot { background: var(--black); }

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}

.article-content {
	max-width: 860px;
	width: 100%;
	margin: 0 auto;
}

.answer-section {
	margin: 22px 0;
	padding: 24px;
}

.answer-section h2 {
	margin: 0 0 16px;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 0;
}

.structured-list,
.step-list {
	margin: 0;
	padding-left: 22px;
}

.structured-list li,
.step-list li {
	margin: 8px 0;
}

.warning-section {
	border-color: #f2b8b8;
	background: #fffafa;
}

.disclaimer {
	background: #f8fafc;
}

.image-placeholder {
	overflow: hidden;
	margin: 0 0 18px;
}

.image-placeholder-art {
	position: relative;
	min-height: 210px;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.shape {
	position: absolute;
	display: block;
}

.pet-head {
	width: 84px;
	height: 74px;
	left: 50px;
	top: 54px;
	border-radius: 44% 44% 38% 38%;
	background: var(--cat);
}

.pet-body {
	width: 150px;
	height: 86px;
	left: 118px;
	top: 92px;
	border-radius: 48px 52px 30px 30px;
	background: var(--dog);
}

.chart-a,
.chart-b {
	right: 70px;
	bottom: 44px;
	width: 46px;
	border-radius: 8px 8px 0 0;
	background: var(--teal);
}

.chart-a { height: 90px; }
.chart-b { right: 126px; height: 56px; background: var(--yellow); }

.image-placeholder figcaption {
	display: grid;
	gap: 4px;
	padding: 12px 14px;
	color: var(--muted);
	font-size: 13px;
}

.image-placeholder figcaption strong {
	color: var(--ink);
}

.faq-item {
	border-top: 1px solid var(--line);
	padding: 12px 0;
}

.faq-item summary {
	cursor: pointer;
	font-weight: 800;
}

.faq-item p {
	margin-bottom: 0;
	color: var(--muted);
}

.archive-header {
	padding: 34px 0 20px;
	border-bottom: 1px solid var(--line);
}

.site-footer {
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

.site-footer a {
	color: var(--teal);
	font-weight: 700;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 860px) {
	.site-header,
	.hero,
	.problem-hero {
		display: block;
	}

	.site-nav {
		margin-top: 14px;
	}

	.hero-visual {
		margin-top: 28px;
	}

	.section-grid,
	.card-grid,
	.related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.site-main,
	.site-header,
	.site-footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.search-form {
		display: grid;
	}

	.section-grid,
	.card-grid,
	.related-grid {
		grid-template-columns: 1fr;
	}

	.answer-section {
		padding: 18px;
	}

	.brand-logo {
		max-width: min(260px, 72vw);
		max-height: 68px;
	}

	.brand-logo .custom-logo-link,
	.brand-logo img {
		max-width: min(260px, 72vw);
		max-height: 68px;
	}
}
