/* Follow the Fur: shared site chrome. Classes are prefixed ftf- so tool pages keep their own styles. */
:root {
  --ftf-char: #141414;
  --ftf-char-2: #1d1d1c;
  --ftf-gold: #F2B33D;
  --ftf-amber: #D9822B;
  --ftf-paper: #f6f6f3;
  --ftf-card: #ffffff;
  --ftf-ink: #17181a;
  --ftf-ink-2: #4a4d52;
  --ftf-ink-3: #74787f;
  --ftf-line: #e3e3de;
  --ftf-on-dark: #f3f1ea;
  --ftf-on-dark-2: #b9b6ac;
  --ftf-display: "Anton", "Archivo", "Arial Narrow", Impact, sans-serif;
  --ftf-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --ftf-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ftf-gutter: max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ftf-paper: #121211; --ftf-card: #1c1c1b; --ftf-ink: #f1f0ec; --ftf-ink-2: #c3c2bc;
    --ftf-ink-3: #8f8e88; --ftf-line: #31312e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ftf-paper: #121211; --ftf-card: #1c1c1b; --ftf-ink: #f1f0ec; --ftf-ink-2: #c3c2bc;
  --ftf-ink-3: #8f8e88; --ftf-line: #31312e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ftf { margin: 0; padding: 0 !important; background: var(--ftf-paper); color: var(--ftf-ink); font: 16px/1.55 var(--ftf-body); }
.ftf a { color: inherit; }
.ftf-skip { position: absolute; left: -9999px; }
.ftf-skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--ftf-gold); color: #111; padding: 6px 10px; border-radius: 6px; }
.ftf-in { max-width: 1180px; margin: 0 auto; padding-inline: var(--ftf-gutter); }

/* Top bar */
.ftf-bar { background: var(--ftf-char); color: var(--ftf-on-dark); border-bottom: 1px solid #2a2a28; }
.ftf-bar .ftf-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.ftf-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ftf-on-dark) !important; }
.ftf-brand img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.ftf-brand span { white-space: nowrap; font: 400 24px/1 var(--ftf-display); letter-spacing: .03em; text-transform: uppercase; }
.ftf-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ftf-nav a { text-decoration: none; color: var(--ftf-on-dark-2); font: 600 14px/1 var(--ftf-body); padding: 9px 10px; border-radius: 7px; }
.ftf-nav a:hover, .ftf-nav a[aria-current="page"] { color: var(--ftf-on-dark); background: #262624; }
.ftf-nav a.ftf-yt { color: var(--ftf-char); background: var(--ftf-gold); }
.ftf-nav a.ftf-yt:hover { background: #f7c461; color: var(--ftf-char); }
@media (max-width: 560px) {
  .ftf-brand span { font-size: 20px; }
  .ftf-nav a { padding: 8px 7px; font-size: 13px; }
  .ftf-nav a.ftf-hide-sm, .ftf-nav .ftf-hide-sm { display: none; }
  .ftf-nav { flex-wrap: nowrap; }
}

/* Hero (home) */
.ftf-hero { position: relative; overflow: hidden; background: var(--ftf-char); color: var(--ftf-on-dark); }
.ftf-hero::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: min(46%, 520px);
  background: linear-gradient(90deg, var(--ftf-char) 0%, rgba(20,20,20,.35) 40%, rgba(20,20,20,0) 70%), url("../img/hero-trail.jpg") center / cover no-repeat;
  pointer-events: none;
}
.ftf-hero .ftf-in { position: relative; z-index: 1; padding-block: clamp(48px, 9vw, 110px); display: grid; gap: 18px; }
.ftf-kicker { font: 700 13px/1 var(--ftf-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ftf-gold); }
.ftf-hero h1 { margin: 0; font: 400 clamp(48px, 9vw, 104px)/0.95 var(--ftf-display); text-transform: uppercase; letter-spacing: .01em; max-width: 12ch; text-shadow: 0 0 28px rgba(242,179,61,.25); }
.ftf-hero h1 em { font-style: normal; color: var(--ftf-gold); }
.ftf-hero p { margin: 0; max-width: 54ch; font-size: clamp(16px, 2vw, 19px); color: var(--ftf-on-dark-2); }
.ftf-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ftf-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 15px/1 var(--ftf-body); padding: 14px 18px; border-radius: 9px; border: 1px solid transparent; }
.ftf-btn.gold { background: var(--ftf-gold); color: var(--ftf-char) !important; }
.ftf-btn.gold:hover { background: #f7c461; }
.ftf-btn.ghost { border-color: #4a4944; color: var(--ftf-on-dark) !important; }
.ftf-btn.ghost:hover { border-color: var(--ftf-gold); }
.ftf-btn.dark { background: var(--ftf-ink); color: var(--ftf-paper) !important; }
@media (max-width: 760px) { .ftf-hero::after { width: 100%; opacity: .28; background-position: right center; } }

/* Sections */
.ftf-section { padding-block: clamp(40px, 6vw, 72px); }
.ftf-section h2 { margin: 0 0 8px; font: 900 clamp(28px, 4vw, 40px)/1.05 var(--ftf-head); letter-spacing: -.01em; }
.ftf-section .ftf-lede { margin: 0 0 28px; color: var(--ftf-ink-2); max-width: 62ch; font-size: 17px; }
.ftf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ftf-card { background: var(--ftf-card); border: 1px solid var(--ftf-line); border-radius: 12px; padding: 20px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; position: relative; }
a.ftf-card:hover { border-color: var(--ftf-gold); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ftf-card h3 { margin: 0; font: 800 20px/1.2 var(--ftf-head); }
.ftf-card p { margin: 0; color: var(--ftf-ink-2); font-size: 15px; }
.ftf-card .ftf-go { margin-top: 6px; font-weight: 700; font-size: 14px; }
.ftf-card.featured { border-width: 2px; border-color: var(--ftf-gold); }
.ftf-tag { justify-self: start; font: 700 11px/1 var(--ftf-head); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; background: var(--ftf-gold); color: var(--ftf-char); }
.ftf-tag.soon { background: transparent; color: var(--ftf-ink-3); border: 1px solid var(--ftf-line); }
.ftf-card.soon { opacity: .85; }
.ftf-band { background: var(--ftf-char); color: var(--ftf-on-dark); border-block: 1px solid #2a2a28; }
.ftf-band, .ftf-foot { background-image: radial-gradient(120% 80% at 100% 0%, rgba(242,179,61,.07), transparent 60%); }
.ftf-band .ftf-lede { color: var(--ftf-on-dark-2); }
.ftf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ftf-steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; }
.ftf-steps li::before { content: counter(s); font: 400 44px/1 var(--ftf-display); color: var(--ftf-gold); }
.ftf-steps b { font: 800 18px/1.2 var(--ftf-head); }
.ftf-steps span { color: var(--ftf-on-dark-2); }

/* Prose pages */
.ftf-prose { max-width: 72ch; padding-block: clamp(32px, 6vw, 64px); }
.ftf-prose h1 { font: 400 clamp(40px, 7vw, 64px)/1 var(--ftf-display); text-transform: uppercase; margin: 0 0 18px; }
.ftf-prose h2 { font: 800 22px/1.25 var(--ftf-head); margin: 32px 0 8px; }
.ftf-prose p, .ftf-prose li { color: var(--ftf-ink-2); }
.ftf-prose a { color: var(--ftf-ink); text-decoration-color: var(--ftf-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ftf-prose .ftf-updated { font-size: 14px; color: var(--ftf-ink-3); }

/* Footer */
.ftf-foot { border-top: 1px solid #2a2a28; background-color: var(--ftf-char); color: var(--ftf-on-dark-2); font-size: 14px; margin-top: 0; }
.ftf-foot .ftf-in { padding-block: 36px; display: grid; gap: 18px; }
.ftf-foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.ftf-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftf-foot nav a { color: var(--ftf-on-dark); text-decoration: none; }
.ftf-foot nav a:hover { color: var(--ftf-gold); }
.ftf-foot p { margin: 0; max-width: 90ch; }

/* Tool pages: the tool keeps its own look; this gives it the site's spacing */
main.ftf-tool { padding: 28px var(--ftf-gutter) 56px; }
.ftf-crumbs { max-width: 1180px; margin: 0 auto 14px; font-size: 13px; color: var(--ftf-ink-3); }
.ftf-crumbs a { color: var(--ftf-ink-2); }
.ftf-more { max-width: 1180px; margin: 40px auto 0; }
.ftf-more h2 { font: 800 20px/1.2 var(--ftf-head); margin: 0 0 12px; }
.ftf-more .ftf-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Nav: About hides at mid widths */
@media (max-width: 760px) { .ftf-nav a.ftf-hide-md { display: none; } }

/* Breed pages and blog posts */
.ftf-crumbs-in { font-size: 13px; color: var(--ftf-ink-3); margin-bottom: 14px; }
.ftf-crumbs-in a { color: var(--ftf-ink-2); }
.ftf-breed h1, .ftf-post h1 { font: 900 clamp(32px, 5vw, 50px)/1.08 var(--ftf-head); text-transform: none; letter-spacing: -.01em; margin: 0 0 14px; }
.ftf-prose.ftf-breed, .ftf-prose.ftf-post { max-width: 780px; }
.ftf-prose .ftf-big { font-size: 19px; color: var(--ftf-ink); }
.ftf-prose .ftf-btn { text-decoration: none; margin: 4px 6px 4px 0; }
.ftf-prose .ftf-btn.gold { color: var(--ftf-char); }
.ftf-prose .ftf-btn.dark { color: var(--ftf-paper); }
.ftf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.ftf-facts div { border-top: 3px solid var(--ftf-gold); padding-top: 8px; display: grid; gap: 2px; }
.ftf-facts span { font-size: 12px; color: var(--ftf-ink-3); font-weight: 600; }
.ftf-facts b { font: 800 24px/1.1 var(--ftf-head); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .ftf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ftf-prose .ftf-note { background: var(--ftf-card); border: 1px solid var(--ftf-line); border-left: 4px solid var(--ftf-gold); border-radius: 8px; padding: 12px 14px; color: var(--ftf-ink); }
.ftf-prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; margin: 8px 0 16px; }
.ftf-prose th, .ftf-prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ftf-line); vertical-align: top; color: var(--ftf-ink-2); }
.ftf-prose th { font-size: 13px; color: var(--ftf-ink-3); }
.ftf-prose td + td, .ftf-prose th + th { text-align: right; white-space: nowrap; }
.ftf-prose tr.tot td { font-weight: 800; color: var(--ftf-ink); border-top: 2px solid var(--ftf-ink); }
.table-scroll { overflow-x: auto; }
.ftf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ftf .ftf-chips a { text-decoration: none; border: 1px solid var(--ftf-line); background: var(--ftf-card); color: var(--ftf-ink); padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.ftf .ftf-chips a:hover { border-color: var(--ftf-gold); }
.ftf .ftf-chips a.all { background: var(--ftf-gold); color: var(--ftf-char); border-color: var(--ftf-gold); }
.ftf-sources li { font-size: 14px; }
.ftf-prose .ftf-small { font-size: 13px; color: var(--ftf-ink-3); }
.ftf-prose .ftf-post-meta { font: 700 13px/1 var(--ftf-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ftf-amber); margin: 0 0 10px; }
.ftf-post h2 { font: 800 26px/1.2 var(--ftf-head); margin: 36px 0 10px; }
.ftf-post h3 { font: 800 19px/1.3 var(--ftf-head); margin: 24px 0 6px; }
.ftf-post p, .ftf-post li { font-size: 17px; line-height: 1.65; }
.ftf-post blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--ftf-gold); }
.ftf-post blockquote p { font-size: 19px; color: var(--ftf-ink); }
.ftf-video { position: relative; aspect-ratio: 16 / 9; margin: 22px 0; border-radius: 12px; overflow: hidden; background: #000; }
.ftf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ftf .ftf-watch { display: grid; gap: 4px; margin: 22px 0; padding: 18px 20px; border-radius: 12px; background: var(--ftf-char); color: var(--ftf-on-dark); text-decoration: none; }
.ftf-watch b { font: 800 20px var(--ftf-head); color: var(--ftf-gold); }
.ftf-watch span { color: var(--ftf-on-dark-2); }
.ftf .ftf-post-tool { margin: 28px 0; text-decoration: none; }
.ftf-post .ftf-post-tool p { font-size: 15px; }
.ftf-more-posts { padding-bottom: 56px; }
.ftf-more-posts h2 { font: 800 22px var(--ftf-head); }

/* Sortable breed table */
table.sortable th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; white-space: nowrap; }
table.sortable th button::after { content: "\2195"; opacity: .45; font-size: 12px; }
table.sortable th[aria-sort="ascending"] button::after { content: "\2191"; opacity: 1; color: var(--ftf-amber); }
table.sortable th[aria-sort="descending"] button::after { content: "\2193"; opacity: 1; color: var(--ftf-amber); }
table.sortable th button:focus-visible { outline: 2px solid var(--ftf-gold); outline-offset: 2px; border-radius: 3px; }
table.sortable th[aria-sort] { color: var(--ftf-ink); }

/* Breed photos: table thumbnails, hover/tap cards, breed page photo */
.b-in { display: flex; align-items: center; gap: 10px; }
.b-thumb { flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; line-height: 0; }
.b-thumb img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }
.b-thumb:focus-visible { outline: 2px solid var(--ftf-gold); outline-offset: 2px; }
.b-card { position: absolute; z-index: 20; background: var(--ftf-card); color: var(--ftf-ink); border: 1px solid var(--ftf-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.22); overflow: hidden; font-size: 14px; }
.b-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--ftf-line); }
.b-card div { padding: 12px 14px 12px; display: grid; gap: 6px; }
.b-card b { font: 800 17px/1.2 var(--ftf-head); }
.b-card p { margin: 0; color: var(--ftf-ink-2); line-height: 1.45; }
.b-card a { color: var(--ftf-ink); font-weight: 700; text-decoration-color: var(--ftf-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.b-card small { color: var(--ftf-ink-3); font-size: 11px; }
.ftf-breed-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 720px) { .ftf-breed-top { grid-template-columns: minmax(0, 1fr); } .ftf-breed-photo { order: -1; } }
.ftf-breed-photo { margin: 4px 0 0; }
.ftf-breed-photo img { width: 100%; height: auto; border-radius: 12px; display: block; }
.ftf-breed-photo figcaption { font-size: 11px; color: var(--ftf-ink-3); margin-top: 6px; }
.ftf-breed-photo figcaption a { color: var(--ftf-ink-3); text-decoration: underline; }
.ftf-prose .ftf-about { color: var(--ftf-ink-2); }

/* Keep the top bar on one line on narrow phones */
.ftf-nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .ftf-bar .ftf-in { gap: 8px; }
  .ftf-brand { gap: 7px; }
  .ftf-brand img { width: 30px; height: 30px; }
  .ftf-brand span { font-size: 17px; }
  .ftf-nav { gap: 2px; }
  .ftf-nav a { padding: 7px 6px; font-size: 12.5px; }
}

/* Breed search */
.b-search { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin: 18px 0 4px; }
.b-search label { grid-column: 1 / -1; font: 800 14px var(--ftf-head); color: var(--ftf-ink); }
.b-search input { width: 100%; font: 500 17px var(--ftf-body); color: var(--ftf-ink); background: var(--ftf-card); border: 2px solid var(--ftf-line); border-radius: 10px; padding: 12px 14px; }
.b-search input:focus { outline: none; border-color: var(--ftf-gold); }
.b-search span { font-size: 13px; color: var(--ftf-ink-3); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }

/* Home page breed search */
.hs { max-width: 620px; display: grid; gap: 8px; margin-top: 6px; }
.hs label { font: 800 15px var(--ftf-head); }
.hs-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hs-box input { width: 100%; font: 500 17px var(--ftf-body); color: var(--ftf-ink); background: var(--ftf-card); border: 2px solid var(--ftf-line); border-radius: 10px; padding: 13px 14px; }
.hs-box input:focus { outline: none; border-color: var(--ftf-gold); }
.hs-box button { font: 700 15px var(--ftf-body); background: var(--ftf-gold); color: var(--ftf-char); border: 0; border-radius: 10px; padding: 0 18px; cursor: pointer; }
.hs-box button:hover { background: #f7c461; }
#hs-list { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--ftf-card); border: 1px solid var(--ftf-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
#hs-list li a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ftf-ink); }
#hs-list li[aria-selected="true"] a, #hs-list li a:hover { background: var(--ftf-paper); }
#hs-list img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
#hs-list span { display: grid; }
#hs-list b { font: 700 15px var(--ftf-body); }
#hs-list small { color: var(--ftf-ink-3); font-size: 12px; }
#hs-list li.none { padding: 10px; color: var(--ftf-ink-2); font-size: 14px; }
#hs-list li.none a { color: var(--ftf-ink); display: inline; padding: 0; }

/* Email sign-up band: directly under the top menu on every page, compact */
.ftf-signup { background: #fff6e3; border-bottom: 1px solid #f0dfb8; }
.ftf-signup .ftf-in { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.ftf-signup-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.ftf-signup .ftf-kicker { color: var(--ftf-amber); font-size: 11px; }
.ftf-signup-title { font: 900 18px/1.2 var(--ftf-head); color: #17181a; }
.ftf-signup-text { color: #4a4d52; font-size: 14px; }
.ftf .ftf-signup .ftf-btn.gold { color: var(--ftf-char); text-decoration: none; flex: none; padding: 10px 16px; font-size: 14px; }
@media (max-width: 760px) { .ftf-signup-text { display: none; } .ftf-signup .ftf-in { padding-block: 10px; } }
@media (max-width: 420px) { .ftf-signup .ftf-kicker { display: none; } .ftf-signup-title { font-size: 16px; } .ftf .ftf-signup .ftf-btn.gold { padding: 9px 12px; font-size: 13px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ftf-signup { background: #2a2210; border-bottom-color: #3d3215; } :root:not([data-theme="light"]) .ftf-signup-title { color: #f3f1ea; } :root:not([data-theme="light"]) .ftf-signup-text { color: #cfcabd; } }
@media (max-width: 360px) { .ftf-brand span { font-size: 15px; } .ftf-brand img { width: 26px; height: 26px; } .ftf-nav a { padding: 6px 5px; font-size: 12px; } }

/* Cat breed index: photo cards */
.ftf-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 22px 0; }
.ftf .ftf-catgrid a.ftf-catcard { display: grid; text-decoration: none; color: var(--ftf-ink); background: var(--ftf-card); border: 1px solid var(--ftf-line); border-radius: 10px; overflow: hidden; }
.ftf .ftf-catgrid a.ftf-catcard:hover { border-color: var(--ftf-gold); }
.ftf-catcard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ftf-catcard span { padding: 10px 12px 12px; display: grid; gap: 2px; }
.ftf-catcard b { font-size: 16px; }
.ftf-catcard small { font-size: 13px; color: var(--ftf-ink-2); font-variant-numeric: tabular-nums; }

/* Back-to-top button (shown after scrolling down) */
.ftf-top {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ftf-gold); color: #141414; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 50; text-decoration: none;
}
.ftf-top.on { opacity: 1; visibility: visible; transform: none; }
.ftf-top:hover { background: var(--ftf-amber); }
.ftf-top:focus-visible { outline: 3px solid var(--ftf-ink); outline-offset: 3px; }
#main:focus { outline: none; }
@media print { .ftf-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .ftf-top { transition: none; } }
