/*
Theme Name: ThePawVine
Description: ThePawVine design on the starter kit base: warm orange, a colour per topic, rounded Fredoka headings.
Version: 2.2.0
Author: Larry Frank
Requires PHP: 8.0
Text Domain: starter
*/

/* ---------- Font (self-hosted, latin subset) ---------- */
@font-face {
	font-family: "Fredoka";
	src: url("fonts/fredoka.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--orange: #ff7a2f;
	--orange-deep: #a8400b;
	--peach: #ffe6d5;
	--cream: #fff8f0;
	--ink: #1f1a17;
	--ink-2: #463d37;
	--muted: #6f645c;
	--rule: #f0e2d6;
	--bg: #ffffff;
	--accent: var(--orange);
	--c: var(--orange);
	--t: var(--peach);
	--d: var(--orange-deep);
	--radius: 18px;
	--shadow: 6px 6px 0 var(--ink);
	--head: "Fredoka", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--w: 1200px;
	--w-text: 720px;
	--gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 19px/1.65 var(--font);
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -0.005em; margin: 0; }
p { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text { max-width: calc(var(--w-text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(1000px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-top: 6px solid var(--orange); border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { display: block; height: 54px; width: auto; max-width: 220px; }
@media (max-width: 560px) { .brand img { height: 44px; } }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.6rem; text-decoration: none; }
.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav .menu a {
	display: block; text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 1.02rem;
	padding: 6px 12px; border-radius: 999px; color: var(--ink);
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a { background: var(--peach); color: var(--orange-deep); }

.search-form { display: flex; }
.search-form input {
	font: inherit; font-size: 0.92rem; padding: 8px 14px; border: 2px solid var(--ink); border-right: 0;
	border-radius: 999px 0 0 999px; width: 180px; min-width: 0; background: #fff; color: var(--ink);
}
.search-form button {
	font-family: var(--head); font-weight: 600; font-size: 0.95rem; padding: 8px 16px; border: 2px solid var(--ink);
	background: var(--orange); color: var(--ink); cursor: pointer; border-radius: 0 999px 999px 0;
}
.search-form button:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
	.site-header { position: relative; }
	.desktop-nav { display: none; }
	.nav-toggle { display: block; }
	.nav-toggle summary {
		display: flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 46px; height: 46px; cursor: pointer; list-style: none; padding: 11px;
		border: 2px solid var(--ink); border-radius: 12px; background: var(--orange);
	}
	.nav-toggle summary::-webkit-details-marker { display: none; }
	.nav-toggle summary span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); }
	.mobile-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); z-index: 5;
		border-bottom: 2px solid var(--ink); padding: 10px var(--gutter) 22px;
		flex-direction: column; align-items: stretch; gap: 16px;
	}
	.mobile-nav .menu { flex-direction: column; gap: 2px; }
	.mobile-nav .menu a { font-size: 1.15rem; padding: 10px 12px; border-radius: 12px; }
	.mobile-nav .search-form input { flex: 1; width: auto; }
}

/* ---------- Shared ---------- */
.site-main { padding-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--muted); }
.chip {
	display: inline-block; font-family: var(--head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.01em;
	background: var(--t); color: var(--d); padding: 3px 11px; border-radius: 999px; text-decoration: none;
}
.chip:hover { background: var(--c); color: var(--ink); }
.sec { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.sec::before {
	content: ""; width: 30px; height: 30px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23ff7a2f'%3E%3Cellipse cx='14' cy='26' rx='7' ry='9'/%3E%3Cellipse cx='26' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='40' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='51' cy='26' rx='7' ry='9'/%3E%3Cpath d='M32 30c-10 0-19 11-19 20 0 7 6 9 11 8 4-1 6-3 8-3s4 2 8 3c5 1 11-1 11-8 0-9-9-20-19-20z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.crumbs { font-size: 0.85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.empty { padding: 48px 0; color: var(--muted); }
.btn {
	display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 1.05rem;
	background: var(--ink); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px;
	border: 2px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #fff; color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Hero ---------- */
.hero {
	background-color: var(--orange);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23f26a1b'%3E%3Cg transform='translate(20 22) rotate(-18 16 16) scale(.5)'%3E%3Cellipse cx='14' cy='26' rx='7' ry='9'/%3E%3Cellipse cx='26' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='40' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='51' cy='26' rx='7' ry='9'/%3E%3Cpath d='M32 30c-10 0-19 11-19 20 0 7 6 9 11 8 4-1 6-3 8-3s4 2 8 3c5 1 11-1 11-8 0-9-9-20-19-20z'/%3E%3C/g%3E%3Cg transform='translate(110 100) rotate(22 16 16) scale(.5)'%3E%3Cellipse cx='14' cy='26' rx='7' ry='9'/%3E%3Cellipse cx='26' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='40' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='51' cy='26' rx='7' ry='9'/%3E%3Cpath d='M32 30c-10 0-19 11-19 20 0 7 6 9 11 8 4-1 6-3 8-3s4 2 8 3c5 1 11-1 11-8 0-9-9-20-19-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	border-bottom: 2px solid var(--ink);
	padding: 56px 0 64px;
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-kicker { font-family: var(--head); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.05; margin-bottom: 18px; }
.hero-title a { text-decoration: none; }
.hero-title a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.hero-text { font-size: 1.12rem; color: var(--ink); max-width: 520px; margin-bottom: 26px; }
.sticker { display: block; transform: rotate(2deg); transition: transform .2s ease; }
.sticker:hover { transform: rotate(0deg) scale(1.01); }
.sticker img {
	display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px;
	border: 8px solid var(--cream); box-shadow: 10px 10px 0 var(--ink); background: var(--peach);
}
.hero-empty { padding: 90px 0; }
.hero-empty .hero-title { max-width: 760px; }
@media (max-width: 900px) {
	.hero { padding: 32px 0 44px; }
	.hero-grid { grid-template-columns: 1fr; gap: 30px; }
	.sticker { order: -1; transform: rotate(1.5deg); }
	.sticker img { border-width: 6px; box-shadow: 7px 7px 0 var(--ink); }
}

/* ---------- Topic tiles ---------- */
.topics { padding-top: 56px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile {
	display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px;
	background: var(--c); color: var(--ink); text-decoration: none; padding: 16px 18px;
	border: 2px solid var(--ink); border-radius: var(--radius); transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.tile-name { font-family: var(--head); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.tile-count { font-size: 0.82rem; font-weight: 600; opacity: .8; }
@media (max-width: 560px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tile { min-height: 84px; padding: 13px 14px; gap: 10px; }
	.tile-name { font-size: 1.02rem; }
}

/* ---------- Cards ---------- */
.fresh { padding-top: 60px; padding-bottom: 64px; }
.cards { display: grid; gap: 28px 24px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; }
.card-img { display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); background: var(--t); transition: transform .15s ease, box-shadow .15s ease; }
.card-img img, .card-ph { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card:hover .card-img { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--c); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-title { font-size: 1.22rem; line-height: 1.2; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--c); }
@media (max-width: 1000px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.cards-4, .cards-3 { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Coloured bands ---------- */
.band { background: var(--t); border-top: 2px solid var(--ink); }
.cat-band { padding: 52px 0 60px; }
.cat-band + .cat-band { border-top: 2px solid var(--ink); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 24px; }
.band-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); }
.band-head h2::after { content: ""; display: block; width: 56px; height: 6px; border-radius: 6px; background: var(--c); margin-top: 8px; }
.band-more { font-family: var(--head); font-weight: 600; color: var(--d); text-decoration: none; }
.band-more:hover { text-decoration: underline; }
.cat-band .chip { background: #fff; }

/* ---------- Rows ---------- */
.more { padding-top: 60px; padding-bottom: 72px; border-top: 2px solid var(--ink); }
.rows { max-width: 900px; }
.rows .row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 2px dashed var(--rule); }
.rows .row:not(:has(.row-img)) { grid-template-columns: 1fr; }
.row-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--peach); }
.row .meta { align-items: center; }
.row-title { font-size: 1.25rem; margin: 6px 0; }
.row-title a { text-decoration: none; }
.row-title a:hover { color: var(--orange-deep); }
.row-excerpt { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 600px) {
	.rows .row { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
	.row-title { font-size: 1.08rem; }
	.row-excerpt { display: none; }
}

/* ---------- Archive / search head ---------- */
.page-head { padding: 44px 0 40px; border-top: 0; border-bottom: 2px solid var(--ink); margin-bottom: 44px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.page-head h1::after { content: ""; display: block; width: 64px; height: 7px; border-radius: 7px; background: var(--c); margin-top: 12px; }
.archive-desc { color: var(--ink-2); margin-top: 14px; max-width: 680px; }
.page-count { margin-top: 12px; font-family: var(--head); font-weight: 600; color: var(--d); }
.page-head .search-form { margin-top: 20px; max-width: 480px; }
.page-head .search-form input { flex: 1; width: auto; }

.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 40px 0 64px; }
.pager a, .pager span {
	display: inline-block; min-width: 46px; padding: 9px 15px; border: 2px solid var(--ink); border-radius: 999px;
	text-align: center; text-decoration: none; font-family: var(--head); font-weight: 600; background: #fff;
}
.pager .current { background: var(--orange); }
.pager a:hover { background: var(--peach); }
.more .pager ul { margin-bottom: 0; }

/* ---------- Article ---------- */
.post-hero { background: var(--t); border-bottom: 2px solid var(--ink); padding: 40px 0 44px; }
.post-hero.has-img { padding-bottom: 150px; }
.post-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; line-height: 1.08; margin-bottom: 16px; }
.post-hero .meta { color: var(--ink-2); font-weight: 500; }
.post-img { margin: -120px auto 0; }
.post-img img {
	display: block; width: 100%; height: auto; border-radius: 24px; border: 2px solid var(--ink);
	box-shadow: 10px 10px 0 var(--c); background: var(--peach);
}
@media (max-width: 700px) {
	.post-hero.has-img { padding-bottom: 90px; }
	.post-img { margin-top: -70px; }
	.post-img img { border-radius: 16px; box-shadow: 6px 6px 0 var(--c); }
}

.prose { padding-top: 40px; padding-bottom: 64px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.85rem; margin-top: 1.9em; scroll-margin-top: 20px; }
.prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.4em; }
.prose a { color: var(--orange-deep); text-decoration-color: var(--orange); }
.prose a:hover { background: var(--peach); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose blockquote {
	margin-left: 0; margin-right: 0; padding: 18px 22px; background: var(--cream);
	border-left: 6px solid var(--orange); border-radius: 0 14px 14px 0; color: var(--ink-2);
}
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { display: block; border-radius: 14px; }
.prose figcaption, .prose .wp-element-caption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 2px dashed var(--rule); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { background: var(--peach); border-bottom: 2px solid var(--ink); font-family: var(--head); font-weight: 600; }
.prose .wp-block-table { overflow-x: auto; }
.prose .alignwide, .prose .alignfull { margin-left: 0; margin-right: 0; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin: 0.3em 1.2em 0.8em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.3em 0 0.8em 1.2em; max-width: 50%; }
.prose code { font-size: 0.9em; background: var(--cream); padding: 1px 6px; border-radius: 6px; }
.prose .wp-block-button__link { background: var(--orange); color: var(--ink); border: 2px solid var(--ink); text-decoration: none; padding: 11px 22px; display: inline-block; border-radius: 999px; font-family: var(--head); font-weight: 600; }

.toc { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 20px; margin: 2em 0; }
.toc-title { font-family: var(--head); font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.toc-title::-webkit-details-marker { display: none; }
.toc-title::before {
	content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: var(--orange); color: var(--ink); font-weight: 700; line-height: 1;
}
.toc details[open] .toc-title::before { content: "\2212"; }
.toc details[open] .toc-title { margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 0.98rem; }
.toc li + li { margin-top: 4px; }
.toc a { color: var(--ink); text-decoration: none; background: none; }
.toc a:hover { color: var(--orange-deep); text-decoration: underline; background: none; }

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

.ad { margin: 28px auto; text-align: center; min-height: 1px; }
.ad-after_header { max-width: var(--w); padding: 0 var(--gutter); }

.page-404 { padding: 72px 20px 90px; }
.page-404 h1 { font-size: 2.8rem; margin-bottom: 14px; }
.page-404 .search-form { margin-top: 24px; max-width: 480px; }
.page-404 .search-form input { flex: 1; width: auto; }

.article-head { padding-top: 44px; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #f6ede6; padding-top: 56px; font-size: 0.95rem; border-top: 6px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid.no-menu { grid-template-columns: 1.4fr 2fr; }
.footer-brand { font-family: var(--head); font-weight: 700; font-size: 2rem; color: var(--orange); margin-bottom: 6px; }
.site-footer .muted { color: #cbbdb2; }
.footer-head { font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--orange); margin-bottom: 12px; }
.plain { list-style: none; margin: 0; padding: 0; }
.no-menu .plain { columns: 2; column-gap: 32px; }
.plain li { margin: 0 0 8px; }
.plain a { text-decoration: none; color: #f6ede6; }
.plain a:hover { color: var(--orange); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #3d3430; margin-top: 44px; padding-top: 18px; padding-bottom: 30px; font-size: 0.85rem; color: #a99a8f; }
@media (max-width: 760px) {
	.footer-grid, .footer-grid.no-menu { grid-template-columns: 1fr; gap: 28px; }
}
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { height: 62px; width: auto; max-width: 240px; }
.footer-blurb { color: #cbbdb2; font-size: .95rem; line-height: 1.65; max-width: 36ch; margin: 16px 0 12px; }
.footer-more { color: #ff8a45; font-family: var(--head); font-weight: 600; text-decoration: none; }
.footer-more:hover { text-decoration: underline; }

/* ---------- Legal / trust pages (page-legal.php, Hashcable-style layout) ---------- */
.legal-hero { position: relative; overflow: hidden; background: var(--orange); border-bottom: 2px solid var(--ink); padding: 72px 0 56px; text-align: center; }
.legal-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 2px, transparent 2.5px); background-size: 26px 26px; pointer-events: none; }
.legal-hero-inner { position: relative; max-width: 700px; }
.legal-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-family: var(--head); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.legal-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.legal-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--ink); margin: 18px 0 12px; line-height: 1.1; }
.legal-hero .lead { color: var(--ink); font-size: 1.08rem; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.legal-updated-pill { display: inline-block; margin-top: 22px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: .85rem; }
.legal-updated-pill strong { color: var(--peach); font-weight: 600; }

.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 52px; max-width: 1080px; margin: 0 auto; padding: 60px var(--gutter) 90px; }
.legal-layout.no-toc { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--w-text) + 2 * var(--gutter)); }
.legal-toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 48px); overflow-y: auto; }
.legal-toc-title { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--orange-deep); margin-bottom: 10px; }
.legal-toc a { font-size: .87rem; color: var(--muted); text-decoration: none; padding: 6px 10px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; line-height: 1.4; transition: all .15s; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--orange); background: var(--cream); padding-left: 14px; }
.legal-article { min-width: 0; }
.legal-intro { margin-bottom: 36px; }
.legal-section { scroll-margin-top: 24px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 2px dashed var(--rule); }
.legal-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-section-num { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 6px; }
.legal-section h2 { font-size: 1.55rem; margin: 0 0 14px; }
.legal-article p, .legal-article li { color: var(--ink-2); line-height: 1.75; }
.legal-article ul { list-style: none; padding: 0; margin: 10px 0 16px; }
.legal-article ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal-article ul li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.legal-highlight, .legal-article .legal-highlight { background: var(--cream); border: 2px solid var(--ink); border-left: 8px solid var(--orange); border-radius: 0 14px 14px 0; padding: 18px 22px; color: var(--ink); }
.legal-contact-card, .legal-article .legal-contact-card { background: var(--peach); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; color: var(--ink); line-height: 1.9; }
.legal-article a { color: var(--orange-deep); font-weight: 600; }
@media (max-width: 860px) {
	.legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
	.legal-toc { display: none; }
	.legal-hero { padding: 52px 0 42px; }
}

.legal-section > :last-child, .legal-intro > :last-child { margin-bottom: 0; }

/* ---------- Dog age calculator ([dog-age-calculator]) ---------- */
.dac-wrap { background: var(--peach); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; margin: 28px 0; }
.dac-title { margin: 0 0 16px; font-size: 1.5rem; }
.dac-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.dac-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dac-field label { font-family: var(--head); font-weight: 600; }
.dac-field input[type="date"], .dac-field select { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; width: 100%; }
.dac-mixed { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; font-family: var(--font) !important; font-size: .95rem; }
.dac-actions { grid-column: 1 / -1; }
.dac-btn { font-family: var(--head); font-weight: 700; font-size: 1.05rem; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 26px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.dac-btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.dac-result:not(:empty) { display: block; margin-top: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; }
.dac-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.dac-line:last-child { border-bottom: 0; font-size: 1.1rem; }
.dac-k { color: var(--muted); }
.dac-note { font-size: .88rem; color: var(--ink-2); margin: 14px 0 0; }
@media (max-width: 600px) { .dac-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer social links (Theme Settings) ---------- */
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; }
.footer-social a { color: #cbbdb2; font-size: .9rem; }
.footer-social a:hover { color: #ff8a45; }
