/**
 * doggo/breed-vs — /breeds/compare/{a}-vs-{b}/. Tokens from theme.json, so the
 * page follows dark mode; only the photo tile, the "vs" medallion and the closing
 * panel are permanently coloured and use literals.
 * One coral moment per screen: the Breed Match button.
 */
.doggo-vs { max-width: 920px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem clamp(3rem, 6vw, 4rem); color: var(--wp--preset--color--ink, #1c1a17); }

.doggo-vs__crumbs { font-size: .88rem; color: var(--wp--preset--color--ink-soft, #5a554d); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 0 0 clamp(1.2rem, 3vw, 1.75rem); }
.doggo-vs__crumbs a { color: inherit; text-decoration: none; }
.doggo-vs__crumbs a:hover { text-decoration: underline; }

/* ── Hero: two breed cards with the medallion between them ─────────────── */
.doggo-vs__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 1rem; position: relative; }
.doggo-vs__card { display: block; text-align: center; text-decoration: none; color: inherit; min-width: 0; }
.doggo-vs__photo { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #14271f; box-shadow: 0 10px 30px rgba(20, 39, 31, .18); }
.doggo-vs__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.doggo-vs__card:hover .doggo-vs__photo img, .doggo-vs__card:focus-visible .doggo-vs__photo img { transform: scale(1.04); }
.doggo-vs__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fbf8f3; font-family: var(--wp--preset--font-family--display, "Fraunces", serif); font-weight: 700; font-size: 3rem; line-height: 1; }
.doggo-vs__name { display: block; margin: .75rem 0 .15rem; font-family: var(--wp--preset--font-family--display, "Fraunces", serif); font-weight: 700; font-size: clamp(1.1rem, 3.2vw, 1.5rem); line-height: 1.15; overflow-wrap: anywhere; }
.doggo-vs__card:hover .doggo-vs__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doggo-vs__meta { display: block; font-size: .85rem; color: var(--wp--preset--color--ink-soft, #5a554d); }
/* Gold disc, dark ink: literals on purpose (8.3:1) — it sits on the page in both themes. */
.doggo-vs__medallion { align-self: center; width: 54px; height: 54px; border-radius: 50%; background: #f0b24a; color: #14271f; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--display, "Fraunces", serif); font-weight: 800; font-size: 1rem; line-height: 1; text-transform: uppercase; box-shadow: 0 6px 18px rgba(240, 178, 74, .45); }

.doggo-vs__title { font-family: var(--wp--preset--font-family--display, "Fraunces", serif); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; text-align: center; margin: clamp(1.4rem, 3.5vw, 2rem) 0 0; overflow-wrap: anywhere; }
.doggo-vs__h2 { font-family: var(--wp--preset--font-family--display, "Fraunces", serif); font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.2; margin: 0 0 1rem; }

/* ── The short answer ──────────────────────────────────────────────────── */
.doggo-vs__verdict { background: var(--wp--preset--color--surface, #fff); border: 1px solid var(--wp--preset--color--line, #e8e1d6); border-left: 5px solid var(--wp--preset--color--accent, #f0b24a); border-radius: 14px; padding: 1.25rem 1.4rem; margin: clamp(1.4rem, 3.5vw, 2rem) 0 0; }
/* Brand, not gold: gold text on the white card is under 2:1. */
.doggo-vs__kicker { margin: 0 0 .45rem; font-family: inherit; font-size: .74rem; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--brand, #1e3d34); }
.doggo-vs__verdict p { margin: 0; font-size: clamp(1.02rem, 2.3vw, 1.12rem); line-height: 1.6; }

/* ── Tale of the tape ──────────────────────────────────────────────────── */
.doggo-vs__tape, .doggo-vs__choose, .doggo-vs__faq, .doggo-vs__related { margin-top: clamp(2rem, 5vw, 2.75rem); }
.doggo-vs__legend { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; font-weight: 700; color: var(--wp--preset--color--brand, #1e3d34); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; padding: 0 .25rem; }
.doggo-vs__legend span:last-child { text-align: right; }
/* A FIXED centre column: every row is its own grid, and an auto-sized centre
   made each row's bar tracks a different length, so bars in different rows
   were drawn on different 1–5 scales. Long labels wrap instead. */
.doggo-vs__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 10rem minmax(0, 1fr); align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #e8e1d6); }
.doggo-vs__metric { text-align: center; font-size: .86rem; line-height: 1.25; font-weight: 600; color: var(--wp--preset--color--ink-soft, #5a554d); }
/* Mirrored about the centre label: bars grow outward from it, numbers sit at the
   outer ends, text values hug it. */
.doggo-vs__side { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.doggo-vs__track { flex: 1; height: 12px; border-radius: 99px; background: var(--wp--preset--color--line, #e8e1d6); position: relative; overflow: hidden; }
.doggo-vs__fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--wp--preset--color--brand, #1e3d34); }
.doggo-vs__side--a .doggo-vs__fill { right: 0; }
.doggo-vs__side--b .doggo-vs__fill { left: 0; }
/* The higher of the two — "more", never "winner": the number beside it carries
   the value. Light mode uses a deep amber, not the gold token: gold on the
   #e8e1d6 track is 1.45:1, so the bar meant to stand out was the faintest mark
   in the row. #a86a12 is 3.42:1 on the track and 4.19:1 on the page. Dark mode
   keeps the gold token (7.02:1 on the dark track). */
.doggo-vs__fill.is-more { background: #a86a12; }
html[data-theme="dark"] .doggo-vs__fill.is-more { background: var(--wp--preset--color--accent, #f0b24a); }
.doggo-vs__num { font-weight: 800; width: 1.2em; text-align: center; font-size: .95rem; font-variant-numeric: tabular-nums; }
.doggo-vs__txt { font-weight: 600; font-size: .92rem; }
.doggo-vs__side--a .doggo-vs__txt { margin-left: auto; text-align: right; }
.doggo-vs__scalehint { font-size: .8rem; line-height: 1.5; color: var(--wp--preset--color--ink-soft, #5a554d); margin: .8rem 0 0; text-align: center; }

/* ── Which is right for you ────────────────────────────────────────────── */
.doggo-vs__choose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.doggo-vs__choose-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.doggo-vs__choose-col { background: var(--wp--preset--color--surface, #fff); border: 1px solid var(--wp--preset--color--line, #e8e1d6); border-radius: 14px; padding: 1.1rem 1.25rem; }
.doggo-vs__choose-col h3 { margin: 0 0 .6rem; font-family: var(--wp--preset--font-family--display, "Fraunces", serif); font-size: 1.08rem; line-height: 1.25; color: var(--wp--preset--color--brand, #1e3d34); }
.doggo-vs__choose-col ul { margin: 0; padding-left: 1.1rem; }
.doggo-vs__choose-col li { margin: .35rem 0; font-size: .96rem; line-height: 1.45; }

/* ── Questions ─────────────────────────────────────────────────────────── */
.doggo-vs__q { background: var(--wp--preset--color--surface, #fff); border: 1px solid var(--wp--preset--color--line, #e8e1d6); border-radius: 12px; padding: .5rem 1rem; margin-bottom: .6rem; }
.doggo-vs__q summary { cursor: pointer; font-weight: 700; padding: .45rem 0; }
.doggo-vs__q p { margin: .3rem 0 .6rem; line-height: 1.55; }

/* ── More comparisons ──────────────────────────────────────────────────── */
.doggo-vs__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.doggo-vs__chips > li { margin: 0; min-width: 0; }
.doggo-vs__chip { display: inline-block; max-width: 100%; background: var(--wp--preset--color--surface, #fff); border: 1px solid var(--wp--preset--color--line, #e8e1d6); border-radius: 999px; padding: .5rem 1rem .55rem; font-size: .9rem; font-weight: 600; color: var(--wp--preset--color--brand, #1e3d34); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.doggo-vs__chip:hover, .doggo-vs__chip:focus-visible { transform: translateY(-2px); border-color: var(--wp--preset--color--brand, #1e3d34); }

/* ── Closing panel ─────────────────────────────────────────────────────── */
/* Permanently dark: literal colours, since dark mode flips the tokens.
   Ink on coral is 4.89:1 (AA); white on coral would be 3.21:1 and fail. */
.doggo-vs__cta { margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: 20px; background: #14271f; color: #fbf8f3; text-align: center; }
.doggo-vs__cta .doggo-vs__h2 { color: inherit; }
.doggo-vs__ctadek { color: rgba(251, 248, 243, .78); margin: 0 auto 1.4rem; max-width: 480px; line-height: 1.55; }
.doggo-vs__button { display: inline-block; padding: .8rem 1.7rem; border-radius: 999px; background: #e8694a; color: #14271f; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.doggo-vs__button:hover, .doggo-vs__button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 105, 74, .35); color: #14271f; }
.doggo-vs__profiles { margin: 1.1rem 0 0; display: flex; gap: .4rem 1.5rem; justify-content: center; flex-wrap: wrap; }
.doggo-vs__profiles a { color: #f0b24a; font-weight: 600; font-size: .95rem; text-decoration: none; }
.doggo-vs__profiles a:hover { text-decoration: underline; }
/* The theme's default focus ring is dark ink and vanishes on #14271f
   (WCAG 1.4.11); gold reads 8.34:1 there. */
.doggo-vs__cta a:focus-visible { outline: 3px solid #f0b24a; outline-offset: 3px; border-radius: 999px; }

@media (max-width: 640px) {
	.doggo-vs__hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; container-type: inline-size; }
	/* Centred on the photos. Each tile is 4:3 and half the row wide (less the
	   gap), so its mid-height is (row width - gap) * .1875. The vw line is the
	   fallback for browsers without container units. */
	.doggo-vs__medallion { position: absolute; left: 50%; top: calc((100vw - 3.25rem) * .1875); top: calc((100cqw - .75rem) * .1875); transform: translate(-50%, -50%); width: 44px; height: 44px; z-index: 2; }
	.doggo-vs__choose-grid { grid-template-columns: minmax(0, 1fr); }
	.doggo-vs__row { grid-template-columns: minmax(0, 1fr) 6.5rem minmax(0, 1fr); gap: .45rem; }
	.doggo-vs__metric { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
	.doggo-vs__photo img, .doggo-vs__chip, .doggo-vs__button { transition: none; }
	.doggo-vs__card:hover .doggo-vs__photo img, .doggo-vs__card:focus-visible .doggo-vs__photo img, .doggo-vs__chip:hover, .doggo-vs__chip:focus-visible, .doggo-vs__button:hover, .doggo-vs__button:focus-visible { transform: none; }
}
