/* PawTags pet tools. Tokens, fonts, nav and footer match pawtags.ca. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #fdf6ed; --warm: #f5e9d4; --brown: #7a4f2e;
  --rust: #c4622d; --rust-lt: #e8895a; --text: #2d1f12;
  --muted: #8a6a50; --divider: #f0e4d4; --white: #ffffff;
  --radius: 18px; --shadow: 0 8px 40px rgba(122,79,46,0.13);
  --danger-bg: #fbe9e4; --danger: #a33a1b;
}
html { scroll-behavior: smooth; }
body { background: var(--cream); font-family: 'DM Sans', sans-serif; color: var(--text); line-height: 1.6; }
a { color: var(--rust); }

/* NAV (same as the Adopt, Partners and Products pages) */
body > nav { position: sticky; top: 0; z-index: 100; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; height: 64px; background: var(--cream); }
.nav-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--rust); text-decoration: none; }
.nav-brand:hover { color: var(--brown); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rust); }
.nav-cta { background: var(--rust); color: var(--white); border: none; border-radius: 10px; padding: 9px 22px; font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.9; color: var(--white); }

/* PAGE: title block lines up with the logo, like the Adopt page */
main { padding: 64px 5% 88px; }
.inner { max-width: 1100px; margin: 0 auto; }
main .inner > * { max-width: 760px; }
main .inner > .section-title { max-width: 950px; }
main .inner > .tool-grid { max-width: none; }
.section-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-label::before { content:''; display:block; width:24px; height:1px; background:var(--rust); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; line-height: 1.2; color: var(--text); text-wrap: balance; }
.lede { font-size: 1.02rem; color: var(--muted); font-weight: 300; max-width: 680px; margin: 20px 0 40px; }
h2 { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; line-height: 1.3; margin: 48px 0 12px; color: var(--text); }
main .inner > p:not(.section-label):not(.lede):not(.note), .faq p { font-weight: 300; line-height: 1.8; margin-bottom: 14px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* CALCULATOR CARD (styled like the contact form) */
.card { background: var(--warm); border: 1px solid var(--divider); border-radius: var(--radius); padding: 36px 32px; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--brown); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.07em; }
.field .hint, .hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type=number], select { width: 100%; background: var(--white); border: 1.5px solid var(--divider); border-radius: 10px; padding: 11px 14px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s; }
input[type=number]:focus, select:focus { border-color: var(--rust); }
input[type=range] { width: 100%; accent-color: var(--rust); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.unit-toggle { flex: 0 0 auto; display: flex; border: 1.5px solid var(--divider); border-radius: 10px; overflow: hidden; background: var(--white); }
.unit-toggle button { border: 0; background: var(--white); padding: 10px 16px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.unit-toggle button.on { background: var(--rust); color: var(--white); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 400; color: var(--text); border: 1.5px solid var(--divider); border-radius: 10px; padding: 9px 14px; cursor: pointer; background: var(--white); margin: 0; transition: border-color 0.2s; }
.choices label:hover { border-color: var(--rust-lt); }
.choices input { margin-right: 7px; accent-color: var(--rust); }
.check { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 0.95rem; }
.check input { accent-color: var(--rust); width: 18px; height: 18px; }
button.go { width: 100%; background: linear-gradient(135deg,var(--rust),var(--rust-lt)); color: var(--white); border: none; border-radius: 12px; padding: 14px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500; cursor: pointer; margin-top: 6px; transition: opacity 0.2s; }
button.go:hover { opacity: 0.92; }

/* RESULT */
.result { margin-top: 24px; padding: 28px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--divider); box-shadow: var(--shadow); display: none; }
.result.show { display: block; }
.result .big { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; line-height: 1.25; color: var(--rust); margin: 4px 0 8px; }
.result p { margin: 6px 0; color: var(--text); }
.result .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.result .actions button { background: var(--white); color: var(--rust); border: 1.5px solid var(--rust); border-radius: 12px; padding: 9px 18px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.result .actions button:hover { background: var(--warm); }

.alert { background: var(--danger-bg); color: var(--danger); border: 1.5px solid #f1c6b6; border-radius: var(--radius); padding: 18px 20px; font-weight: 500; margin: 0 0 24px; line-height: 1.6; }
.note { color: var(--muted) !important; font-size: 0.88rem; margin-top: 16px; font-weight: 400 !important; }

table.costs { width: 100%; border-collapse: collapse; margin-top: 18px; background: var(--white); border-radius: 12px; overflow: hidden; }
table.costs td, table.costs th { padding: 10px 14px; border-bottom: 1px solid var(--divider); text-align: left; font-size: 0.93rem; }
table.costs th { font-size: 0.75rem; font-weight: 500; color: var(--brown); text-transform: uppercase; letter-spacing: 0.07em; }
table.costs td:last-child, table.costs th:last-child { text-align: right; }
table.costs input { width: 104px; text-align: right; padding: 7px 10px; }

/* TOOL GRID (styled like the feature cards) */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 8px; }
.tool-grid a { display: block; background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius); padding: 26px 24px; text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s; }
.tool-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-grid a strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tool-grid a span { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.quiz-q { margin-bottom: 26px; }
ol.matches { padding-left: 22px; margin: 6px 0 12px; }
ol.matches li { margin: 6px 0; font-size: 1.05rem; }
ol.matches a { font-weight: 500; }

.faq h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500; margin: 22px 0 6px; color: var(--text); }
.faq p { color: var(--muted); }

/* RELATED LINKS STRIP */
.related { background: var(--warm); border-top: 1px solid var(--divider); padding: 36px 5%; }
.related .inner { max-width: 1100px; }
.related .section-label { margin-bottom: 14px; }
.related .links { display: flex; flex-wrap: wrap; gap: 10px; }
.related .links a { background: var(--white); border: 1px solid var(--divider); border-radius: 999px; padding: 7px 16px; font-size: 0.88rem; font-weight: 500; color: var(--brown); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.related .links a:hover { color: var(--rust); border-color: var(--rust-lt); }

/* FOOTER (same as home page) */
footer { background: var(--text); padding: 28px 5%; }
.footer-bar { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-copy { font-size: 0.82rem; color: rgba(253,246,237,0.5); }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; color: rgba(253,246,237,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fdf6ed; }

/* RESPONSIVE */
@media (max-width: 1000px) { .nav-links { gap: 1.2rem; } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  main { padding: 44px 5% 64px; }
  .card { padding: 26px 20px; }
  .footer-bar { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 560px) { .row { flex-direction: column; } .row .unit-toggle { align-self: flex-start; } }
@media print {
  body > nav, footer, .related, .result .actions, button.go { display: none !important; }
  .result { display: block; box-shadow: none; }
}
.result .verdict { font-size: 1.3rem; line-height: 1.4; }
@media (max-width: 560px) { .result .big { font-size: 1.5rem; } .result .verdict { font-size: 1.15rem; } }
