@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f8f6ef;
  --surface: #fffdf8;
  --ink: #193e32;
  --muted: #515e54;
  --line: #d0d4c6;
  --accent: #954730;
  --tint: #e8ecdf;
  --dog-paper: #e8eddc;
  --cat-paper: #f4e4d8;
  --display: "Instrument Serif", Baskerville, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --title-weight: 400;
  --frame: 1220px;
  --gutter: clamp(22px, 5vw, 66px);
  --purple: var(--ink);
  --purple2: var(--ink);
  --orange: var(--accent);
  --shadow: none;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 16px/1.52 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
body::before,
body::after,
.site-header::before,
.site-header::after,
.ln-hero::after,
.pet-panel::before,
.pet-panel::after,
.newsletter::after { content: none; }
button, input, select, textarea { font-family: var(--sans); }
a { color: inherit; }
main a:hover, .site-footer a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--dog-paper); }
.ln-wrap, .wrap, .header-inner, .footer-grid, main#primary {
  width: min(calc(100% - var(--gutter) * 2), var(--frame));
  max-width: none;
  margin-inline: auto;
}

/* The masthead, including the two markup shapes emitted by the site. */
.site-header {
  position: relative; top: auto; z-index: 20; overflow: visible;
  background: var(--paper); border: 0; border-radius: 0; box-shadow: none;
  border-bottom: 1px solid var(--line); backdrop-filter: none;
}
.header-inner {
  min-height: 77px; height: auto; padding: 13px 0;
  display: flex; gap: clamp(14px, 2vw, 32px); align-items: center; justify-content: space-between;
}
.site-branding a, .header-inner > .brand {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  align-content: center; column-gap: 10px; justify-content: start; text-decoration: none;
}
.site-branding a::before, .header-inner > .brand::before {
  content: ""; grid-column: 1; grid-row: 1 / 3; align-self: center;
  width: 37px; height: 40px; border-radius: 48% 48% 40% 40%;
  background-color: var(--ink);
  background-image: radial-gradient(ellipse 20% 15% at 50% 66%, var(--paper) 94%, transparent 100%),
    radial-gradient(ellipse 7% 10% at 26% 48%, var(--paper) 94%, transparent 100%),
    radial-gradient(ellipse 7% 11% at 42% 36%, var(--paper) 94%, transparent 100%),
    radial-gradient(ellipse 7% 11% at 60% 36%, var(--paper) 94%, transparent 100%),
    radial-gradient(ellipse 7% 10% at 75% 48%, var(--paper) 94%, transparent 100%);
}
.logo-main, .wordmark {
  grid-column: 2; color: var(--ink); font: var(--title-weight) 32px/.98 var(--display);
  letter-spacing: -.035em; white-space: nowrap; text-shadow: none;
}
.logo-main b, .wordmark span { color: var(--accent); font: inherit; }
.logo-tag, .brand small {
  grid-column: 2; margin: 4px 0 0; color: var(--muted);
  font: 500 9px/1.15 var(--sans); letter-spacing: .035em; text-transform: none;
}
.main-navigation { margin: 0 0 0 auto; }
.main-navigation > ul { display: flex; align-items: center; gap: clamp(7px, 1.1vw, 18px); }
.main-navigation a {
  color: var(--ink); background: none; border-radius: 0; text-decoration: none;
  font: 550 13px/1.2 var(--sans); padding: 10px 2px; white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation a[aria-current="page"],
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--accent); background: none; box-shadow: inset 0 -2px var(--accent);
}
.main-navigation .sub-menu, .main-navigation .submenu {
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 12px; box-shadow: 0 9px 20px #102a3312;
}
.main-navigation :is(.sub-menu,.submenu) a { padding: 9px 6px; font-size: 13px; }
.ln-top-actions .ln-circle, .search-toggle {
  position: relative; display: grid; place-items: center; flex: none; width: 37px; height: 37px;
  font-size: 0; background: none; border: 1px solid var(--line); border-radius: 50%; box-shadow: none;
}
.ln-circle::before, .search-toggle::before {
  content: ""; width: 12px; height: 12px; margin: -2px 0 0 -2px;
  border: 1.7px solid var(--ink); border-radius: 50%;
}
.ln-circle::after, .search-toggle::after {
  content: ""; position: absolute; left: 57%; top: 57%; width: 6px; height: 2px;
  background: var(--ink); transform: rotate(45deg); transform-origin: left center;
}
.mobile-menu-toggle, .menu-toggle {
  box-shadow: none; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px;
}

/* Editorial cover and homepage search. */
body[data-page="home"] main#primary { display: grid; align-items: start; gap: 0; }
.ln-hero { position: relative; overflow: visible; isolation: isolate; box-shadow: none; }
.ln-hero .hero-copy {
  width: 100%; max-width: none; grid-column: auto; position: relative; z-index: 1;
  margin: 0; padding: 0; text-align: left;
}
.ln-hero .hero-kicker {
  display: inline-flex; align-items: center; min-height: 0; margin: 0 0 17px; padding: 0;
  color: var(--muted); background: transparent; border: 0; border-radius: 0;
  box-shadow: none; backdrop-filter: none; font: 650 11px/1.3 var(--sans); letter-spacing: .11em;
}
.ln-hero h1 {
  max-width: none; margin: 0; padding: 0; color: var(--ink);
  font: var(--title-weight) clamp(62px, 6.4vw, 96px)/.95 var(--display);
  letter-spacing: -.04em; text-align: left; text-wrap: initial;
}
.ln-hero h1 span { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
.ln-hero p {
  max-width: 39ch; margin: 20px 0; padding: 0; color: var(--muted);
  font: 450 clamp(15px, 1.15vw, 17px)/1.55 var(--sans); text-align: left;
}
.ln-search, .ln-hero .ln-search {
  width: 100%; max-width: 425px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; padding: 0; margin: 21px 0 0; background: none;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; box-shadow: none;
}
.ln-search input, .ln-hero .ln-search input {
  width: 100%; min-width: 0; padding: 12px 4px; height: 45px; color: var(--ink);
  border: 0; background: none; border-radius: 0; font: 450 14px/1.3 var(--sans);
}
.ln-search input::placeholder { color: var(--muted); opacity: 1; }
.ln-search button, .ln-hero .ln-search button {
  padding: 10px 5px 10px 14px; font: 700 13px/1.3 var(--sans); color: var(--ink);
  background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
}
.ln-search button::after { content: " →"; }
/* Keep button contrast consistent within the shared foundation layer. */
@layer foundation {
  html :is(.ln-search button,.pet-panel .ln-btn,.newsletter-button) {
    color: var(--ink) !important;
  }
  html .cat-panel .ln-btn { background: transparent !important; }
}
.ln-hero .hero-visual {
  position: relative; inset: auto; flex: none; margin: 0; overflow: hidden;
  z-index: 0; width: 100%; height: auto; opacity: 1;
}
.hero-visual img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.ln-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); min-height: 0; margin: 0; padding: clamp(27px, 3.8vw, 57px) 0;
  background: none; border: 0; border-radius: 0;
}
.ln-hero .hero-copy { grid-column: 1; grid-row: 1; inset: auto; transform: none; }
.ln-hero .hero-visual {
  grid-column: 2; grid-row: 1; aspect-ratio: 1.48; border-radius: 48% 48% 4px 4px / 50% 50% 4px 4px;
  outline: 1px solid #a7ad93; outline-offset: 5px; background: #ede5da;
}
.ln-hero h1 span { font-style: italic; }

/* Species links on the editorial homepage. */
.home-panels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0;
}
.pet-panel {
  position: relative; isolation: isolate; display: block; min-width: 0; min-height: 0;
  padding: 25px 28px; border: 1px solid var(--line); border-radius: 9px; box-shadow: none;
  background: var(--dog-paper); color: var(--ink); overflow: hidden; backdrop-filter: none;
}
.pet-panel.cat-panel { background: var(--cat-paper); }
.pet-panel-main, .pet-panel-bottom { position: static; }
.pet-panel .panel-topline { display: block; }
.pet-panel .panel-icon { display: none; }
.pet-panel h2 {
  margin: 0; color: var(--ink); font: var(--title-weight) 43px/.98 var(--display); letter-spacing: -.035em;
}
.pet-panel small { display: block; max-width: none; margin: 6px 0 0; color: var(--muted); font: 500 13px/1.35 var(--sans); }
.pet-panel .cat-icons {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: calc(100% - 66px); margin: 16px 0 12px;
}
.cat-icons a {
  display: inline-flex; flex: none; align-items: center; width: auto; height: auto; min-height: 26px;
  padding: 4px 9px; white-space: nowrap;
  color: var(--ink); background: #ffffff7a; border: 1px solid #263b492b;
  border-radius: 999px; box-shadow: none; font: 550 12px/1.25 var(--sans); text-decoration: none;
}
.cat-icons a:hover { color: white; background: var(--ink); }
.cat-icons a div { display: none; }
.cat-icons a span { display: inline; color: inherit; font: inherit; overflow-wrap: normal; }
.pet-panel-bottom { display: block; margin: 0; min-height: 0; }
.pet-panel .ln-btn {
  position: static; display: inline-flex; min-height: 27px; height: auto; width: auto; padding: 3px 0;
  color: var(--ink); background: none; border: 0; border-radius: 0; box-shadow: none;
  font: 700 13px/1.3 var(--sans); text-decoration: underline; text-underline-offset: 4px;
}
.pet-panel .ln-btn::after { content: none; }
.pet-panel .pet-mascot {
  position: absolute; z-index: -1; right: 13px; bottom: 11px; width: 82px; height: 86px;
  margin: 0; opacity: 1; object-fit: contain; filter: none;
}

/* Article spread and recommended reading. */
.layout-2, .ln-home-recommendations {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  gap: 30px; margin: 34px 0 0;
}
.layout-2 > *, .post-grid > *, .hero-copy, .pet-panel-main { min-width: 0; }
.layout-2:not(.ln-home-recommendations) { border-top: 1px solid var(--ink); padding-top: 19px; }
.ln-hero + .layout-2 { margin-top: 2px; }
.section-head, .section-heading {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 17px;
}
.ln-section h2, .section-head h2, .side-card h2, .newsletter h2 {
  margin: 0; color: var(--ink); font: var(--title-weight) clamp(31px, 3.2vw, 48px)/1.08 var(--display);
  letter-spacing: -.04em;
}
.section-head > a, .section-heading > a {
  color: var(--accent); font: 650 13px/1.3 var(--sans); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 5px;
}
.post-grid, .archive-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch;
}
.post-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  align-content: start; min-width: 0; padding: 0; margin: 0; background: transparent;
  color: var(--ink); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; overflow: visible;
}
.post-card:hover { transform: none; box-shadow: none; }
.post-card .thumb, .post-card .post-image {
  display: block; width: 100%; height: auto; aspect-ratio: 1.65; margin: 0; padding: 0;
  overflow: hidden; background: var(--tint); border-radius: 5px;
}
.post-card :is(.thumb,.post-image) :is(picture,img,.thumbnail) {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.post-card-content, .post-content {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-width: 0; min-height: 0; height: auto; padding: 10px 0; gap: 5px;
}
.badge, .post-tag {
  display: inline; padding: 0; color: var(--accent); background: none; border: 0; border-radius: 0;
  font: 700 10px/1.3 var(--sans); letter-spacing: .105em; text-transform: uppercase;
}
.post-card h3 {
  margin: 0; color: var(--ink); font: var(--title-weight) clamp(23px, 2vw, 32px)/1.1 var(--display);
  letter-spacing: -.025em; overflow-wrap: break-word;
}
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-meta { display: block; margin: 2px 0 0; color: var(--muted); font: 500 12px/1.35 var(--sans); }
.post-card .round-arrow {
  position: static; height: auto; width: auto; display: inline-block; min-width: 0; min-height: 0;
  padding: 0; color: var(--accent); background: transparent; border: 0; box-shadow: none; font-size: 16px;
}
.post-content .round-arrow { margin-left: 12px; }
.post-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 15px clamp(24px, 3vw, 46px);
}
.post-grid > :first-child { grid-row: span 3; }
.post-grid .post-card { min-height: 0; }
.post-grid > :first-child .thumb { aspect-ratio: 2.05; }
.post-grid > :first-child h3 { font-size: clamp(31px, 3vw, 45px); }
.post-grid > :not(:first-child) {
  grid-template-columns: clamp(85px, 9vw, 145px) minmax(0,1fr); gap: 16px; align-items: center;
  padding-bottom: 11px; border-bottom: 1px solid var(--line);
}
.post-grid > :not(:first-child) .round-arrow {
  position: absolute; top: auto; bottom: 3px; right: 0;
}
.post-grid > :not(:first-child) .thumb {
  aspect-ratio: 1.32; align-self: center;
}
.layout-2 > aside { margin: 0; }
.side-card { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.side-card > h2, .side-card > .section-head { margin: 0 0 15px; }
.side-card h2 { font-size: clamp(26px, 2.4vw, 36px); }
.home-questions ul { list-style: none; margin: 0; padding: 0; }
.home-questions li { border-top: 1px solid var(--line); }
.home-questions li:last-child { border-bottom: 1px solid var(--line); }
.home-questions li a { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; color: var(--ink); font: 550 16px/1.45 var(--sans); text-decoration: none; }
.home-questions li a:hover, .home-questions li a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.home-questions li span { color: var(--accent); }
@media (min-width: 1040px) {
  .ln-hero + .layout-2 { grid-template-columns: minmax(0, 2.7fr) minmax(248px, 1fr); gap: clamp(24px, 3vw, 46px); }
  .ln-hero + .layout-2 > aside { border-left: 1px solid var(--line); padding-left: clamp(19px, 2vw, 30px); }
  .ln-hero + .layout-2 .post-grid { gap: 12px clamp(18px, 2vw, 30px); }
  .ln-hero + .layout-2 .post-grid > :not(:first-child) { grid-template-columns: clamp(72px, 6vw, 96px) minmax(0, 1fr); gap: 13px; }
  .ln-hero + .layout-2 .post-grid > :not(:first-child) h3 { font-size: clamp(23px, 1.9vw, 29px); }
}
@media (min-width: 761px) and (max-width: 1039px) {
  .home-questions ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
.ln-mini-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.ln-mini {
  display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 11px;
  min-width: 0; min-height: 0; padding: 12px 0; margin: 0; text-decoration: none; background: none;
  color: var(--ink); border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
}
.ln-mini img { width: 54px; height: 54px; border-radius: 4px; object-fit: cover; }
.ln-mini b { color: var(--ink); font: 630 14px/1.35 var(--sans); }
.ln-mini em { display: block; margin: 3px 0 0; color: var(--muted); font: 400 12px/1.3 var(--sans); }
.layout-2 > aside .ln-mini-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ln-home-recommendations { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); border-top: 1px solid var(--line); padding-top: 25px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 7px 12px; color: var(--ink); background: var(--tint); border: 0; border-radius: 4px; font: 550 13px/1.4 var(--sans); }

/* Shared reading pages keep the site's content, links and document widgets. */
main#primary:has(> .content-area) { display: block; padding: clamp(27px, 4vw, 58px) 0; }
.content-area {
  width: min(100%, 920px); max-width: none; margin: 0 auto; padding: 0; color: var(--ink); background: transparent;
  border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
}
.breadcrumbs, .ln-breadcrumbs { margin: 0 0 15px; color: var(--muted); font: 500 13px/1.5 var(--sans); }
.breadcrumbs a, .ln-breadcrumbs a { color: var(--accent); }
.content-area .entry-title {
  margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid var(--line);
  color: var(--ink); font: var(--title-weight) clamp(43px, 5.3vw, 80px)/1.04 var(--display);
  letter-spacing: -.045em; overflow-wrap: break-word;
}
.article-body,
.entry-content > p,
.content-area > p,
.content-area > .contact-form,
.content-area > .sitemap,
.content-area > .exercise-list { max-width: 67ch; }
.article-body, .content-area .entry-content { font: 420 17px/1.72 var(--sans); color: var(--ink); }
.article-body h2, .entry-content h2 { color: var(--ink); font: var(--title-weight) clamp(29px, 3vw, 41px)/1.15 var(--display); }
.article-body .thumbnail { height: auto; max-width: 100%; aspect-ratio: 2.3; border-radius: 9px; overflow: hidden; background: var(--tint); }
.article-body p:not(.muted) { font-size: 17px; line-height: 1.75; }
.archive-grid { gap: 24px; }
.pill, .document-save, .contact-form button {
  color: #fff; background: var(--ink); border: 0; border-radius: 5px;
  box-shadow: none; font-family: var(--sans);
}
.pill:hover { color: #fff; background: #2b5344; }
.trust-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 30px 0 0; }
.trust-card { padding: 15px 0; background: transparent; color: var(--ink); border: 0; border-top: 1px solid var(--line); border-radius: 0; text-align: left; box-shadow: none; }
.trust-card .ico { display: block; font-size: 21px; margin-bottom: 5px; }
.trust-card b { color: var(--ink); font-size: 16px; }
.trust-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.newsletter {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px;
  margin: 20px 0 42px; padding: clamp(18px, 2.5vw, 32px);
  background: var(--ink); color: var(--paper); border: 0; border-radius: 9px; box-shadow: none;
}
.newsletter h2 { color: inherit; font-size: 32px; }
.newsletter-copy p { color: inherit; margin: 4px 0 0; }
.newsletter-icon { width: auto; height: auto; padding: 6px; background: none; color: inherit; }
.newsletter-button { color: var(--ink); background: var(--paper); padding: 12px 17px; border-radius: 4px; font: 700 13px/1.3 var(--sans); }
.site-footer { border: 0; border-top: 1px solid var(--line); background: var(--tint); padding: 33px 0; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 23px; }
.footer-grid h3 { color: var(--ink); font: 700 14px/1.4 var(--sans); }
.footer-grid p, .footer-grid a, .site-footer .copyright { color: var(--muted); font: 500 13px/1.55 var(--sans); }
.footer-grid .logo-main { font-family: var(--display); font-size: 28px; }
.site-footer .copyright {
  width: min(calc(100% - var(--gutter) * 2), var(--frame)); margin: 15px auto 0; text-align: left;
}
.bottom-nav, .mobile-dock { color: var(--ink); background: var(--surface); border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.bottom-nav a, .mobile-dock a, .bottom-nav a span { color: var(--ink); }

/* The handbook-style topic finder belongs to the dog and cat archives. */
.species-archive .content-area { width: 100%; }
.topic-directory {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 15px;
  margin: 0 0 32px;
}
.topic-search, .topic-panel {
  position: relative;
  min-width: 0;
  padding: clamp(23px, 3.1vw, 43px);
  border-radius: 16px;
}
.topic-search {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  color: #fff; background: linear-gradient(120deg, #142f65, #1c448c);
}
.topic-search .entry-title {
  margin: 0; padding: 0; border: 0; color: inherit;
  font: 730 clamp(34px, 4vw, 61px)/1.04 var(--sans); letter-spacing: -.05em;
}
.topic-search p { margin: 8px 0 20px; color: #e3ecff; font: 480 15px/1.45 var(--sans); }
.topic-search .hero-search {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center;
  width: 100%; max-width: 550px; height: auto; min-height: 48px; margin: 0;
  padding: 4px 5px 4px 12px; border: 0; border-radius: 8px; background: #fff; box-shadow: none;
}
.topic-search input {
  width: 100%; min-width: 0; height: 40px; padding: 4px 0; color: #172c50;
  font: 450 14px/1.4 var(--sans); background: transparent; border: 0;
}
.topic-search input::placeholder { color: #53617a; }
.topic-search button {
  min-width: 0; min-height: 40px; height: auto; padding: 9px 15px; color: #172c50;
  border: 0; border-radius: 5px; background: #daef99; box-shadow: none; font: 700 14px/1.4 var(--sans);
}
.topic-search button::after { content: "→"; }
.topic-search :focus-visible { outline: 3px solid #3459a0; outline-offset: 1px; }
.topic-panel { display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #172c50; }
.topic-panel--psy { background: #e5edc3; }
.topic-panel--koty { background: #dceaf8; }
.species-links {
  display: flex; gap: 4px; align-self: flex-start; margin: 0 80px 0 0; padding: 4px;
  border: 1px solid #1c345329; border-radius: 9px; background: #ffffff80;
}
.species-links a, .topic-links a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  color: #172c50; text-decoration: none; font: 650 14px/1.3 var(--sans);
}
.species-links a { padding: 5px 16px; border-radius: 6px; }
.species-links a[aria-current] { color: #fff; background: #193864; }
.topic-mascot {
  position: absolute; top: 9px; right: clamp(12px, 2vw, 30px);
  width: clamp(56px, 6vw, 80px); height: auto; pointer-events: none;
}
.topic-links { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.topic-links li { margin: 0; }
.topic-links a {
  min-height: 36px; padding: 6px 12px; border: 1px solid #27425a36;
  border-radius: 6px; background: #ffffffc7;
}
.topic-links a[aria-current="page"], .topic-links a:hover,
.species-links a:not([aria-current]):hover { color: #fff; background: #285185; }
.topic-links a[aria-current="page"]::before { content: "✓"; margin-right: 5px; }
.topic-panel a:focus-visible { outline: 3px solid #285185; outline-offset: 2px; }
.species-archive .archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 28px;
}
.species-archive .post-card {
  grid-template-columns: clamp(95px, 10vw, 148px) minmax(0,1fr); align-items: center;
  gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--line);
}
.species-archive .post-image { aspect-ratio: 1.34; }

@media (min-width: 761px) and (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 5px 15px; }
  .main-navigation { order: 3; width: 100%; margin: 0; }
  .main-navigation > ul { justify-content: space-between; }
  .ln-top-actions, .search-toggle { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --gutter: clamp(17px, 4.6vw, 30px); }
  .header-inner { min-height: 63px; padding: 8px 0; gap: 9px; flex-wrap: nowrap; }
  .site-branding, .header-inner > .brand { margin-right: auto; }
  .logo-main, .wordmark { font-size: 27px; }
  .site-branding a::before, .header-inner > .brand::before { width: 30px; height: 33px; }
  .logo-tag, .brand small { font-size: 8px; }
  .ln-top-actions, .search-toggle { display: none; }
  .mobile-menu-toggle, .menu-toggle { margin: 0; min-width: 40px; min-height: 40px; padding: 6px; }
  .main-navigation { background: var(--surface); color: var(--ink); margin: 0; top: 64px; }
  .main-navigation > ul { display: block; }
  .main-navigation a { padding: 11px 10px; white-space: normal; }
  .ln-hero .hero-kicker { margin-bottom: 9px; font-size: 10px; }
  .ln-hero h1 { font-size: clamp(48px, 9.7vw, 68px); }
  .ln-hero p { max-width: 46ch; margin: 11px 0 12px; font-size: 14px; line-height: 1.45; }
  .ln-hero .ln-search { max-width: 100%; margin-top: 11px; }
  .ln-hero {
    grid-template-columns: 1fr; padding: 20px 0 23px; row-gap: 18px;
  }
  .ln-hero .hero-visual {
    grid-column: 1; grid-row: 1; width: min(100% - 8px, 520px); margin: 0 auto;
    aspect-ratio: 2.45; outline-offset: 3px; border-radius: 42% 42% 3px 3px / 50% 50% 3px 3px;
  }
  .ln-hero .hero-copy { grid-column: 1; grid-row: 2; padding: 0; }
  .home-panels { grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .pet-panel { padding: 15px 17px 12px; border-radius: 9px; }
  .pet-panel h2 { font-size: 28px; }
  .pet-panel .panel-topline { padding-right: 62px; }
  .pet-panel small { margin-top: 3px; font-size: 12px; }
  .pet-panel .pet-mascot { width: 62px; height: 56px; top: 8px; right: 11px; bottom: auto; }
  .pet-panel .cat-icons {
    width: 100%; margin: 10px 0 6px; display: flex; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: thin; padding-bottom: 3px; scroll-snap-type: x proximity;
  }
  .pet-panel .cat-icons a { scroll-snap-align: start; min-height: 27px; }
  .pet-panel .ln-btn { min-height: 23px; padding: 2px 0; font-size: 12px; }
  .layout-2, .ln-home-recommendations {
    display: grid; grid-template-columns: minmax(0,1fr); gap: 21px; margin-top: 24px;
  }
  .layout-2:not(.ln-home-recommendations) { padding-top: 14px; }
  .section-head { margin-bottom: 12px; gap: 8px; }
  .ln-section h2, .section-head h2 { font-size: clamp(26px, 6.6vw, 36px); }
  .section-head > a { font-size: 11px; }
  .post-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .post-grid > :first-child { grid-row: auto; }
  .post-grid > :first-child .thumb { aspect-ratio: 1.95; }
  .post-grid > :not(:first-child) {
    grid-template-columns: 89px minmax(0,1fr); gap: 11px;
  }
  .post-card h3 { font-size: 23px; }
  .post-card-content, .post-content { padding: 7px 0; gap: 4px; }
  .ln-mini-list, .layout-2 > aside .ln-mini-list { grid-template-columns: 1fr; }
  .side-card h2 { font-size: 26px; }
  .ln-home-recommendations .ln-mini-list { grid-template-columns: minmax(0,1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 8px 15px; }
  .trust-card { padding: 11px 0; }
  .trust-card p { font-size: 13px; }
  .newsletter { grid-template-columns: minmax(0,1fr); gap: 10px; text-align: left; margin-bottom: 25px; }
  .newsletter-icon { display: none; }
  .newsletter-button { grid-column: auto; justify-self: start; width: auto; min-height: 0; }
  .newsletter h2 { font-size: 27px; }
  .archive-grid { grid-template-columns: minmax(0,1fr); }
  .content-area .entry-title { font-size: 39px; }
  .topic-directory { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-bottom: 20px; }
  .topic-search, .topic-panel { padding: 19px; border-radius: 12px; }
  .topic-search .entry-title { font-size: clamp(30px, 7vw, 41px); }
  .topic-search p { margin: 7px 0 15px; font-size: 14px; }
  .topic-panel { gap: 15px; }
  .topic-mascot { width: 56px; top: 5px; right: 13px; }
  .species-links a, .topic-links a { min-height: 39px; }
  .topic-links { gap: 6px; }
  .topic-links a { padding: 6px 9px; font-size: 13px; }
  .species-archive .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .species-archive .post-card { grid-template-columns: 90px minmax(0,1fr); gap: 12px; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .site-footer { padding-bottom: 85px; }
  .bottom-nav, .mobile-dock { z-index: 15; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

.library-shortcuts, .library-nav, .story-topics { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.library-shortcuts { margin-top: 15px; }
.library-shortcuts a, .library-nav a, .return-link, .guide-action {
  color: var(--accent); font: 650 14px/1.5 var(--sans); text-decoration: underline; text-underline-offset: 4px;
}
.library-nav { margin-bottom: 26px; }
.library-archive .content-area, .reading-page .content-area { width: min(100%, 1060px); }
.archive-heading { margin: 0 0 12px; color: var(--ink); font: 600 15px/1.4 var(--sans); }
.library-grid .library-card {
  display: grid; grid-template-columns: minmax(0,1fr); align-content: start; align-items: start;
  min-height: 0; padding: 19px 0 8px; border: 0; border-top: 1px solid var(--line); gap: 15px;
}
.library-grid .library-card.with-photo { grid-template-columns: clamp(68px, 8vw, 108px) minmax(0,1fr); }
.library-grid .library-card .post-image { aspect-ratio: 1; }
.library-card .post-content { padding: 0; gap: 7px; }
.library-card .post-content p, .guide-column li p, .shared-guide p {
  margin: 0; color: var(--muted); font: 450 15px/1.55 var(--sans);
}
.free-guides > p { margin: 10px 0 24px; color: var(--muted); line-height: 1.6; }
.shared-guide {
  display: grid; grid-template-columns: minmax(130px, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(18px, 4vw, 44px);
  padding: clamp(15px, 2.5vw, 27px); color: var(--ink); background: var(--tint); border-radius: 9px;
}
.shared-guide img { display: block; width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; object-position: center; border-radius: 5px; }
.shared-guide h2, .guide-column h2 { margin: 0 0 10px; font: var(--title-weight) clamp(28px, 3.1vw, 42px)/1.08 var(--display); color: var(--ink); }
.shared-guide h2 a, .guide-column li a { color: var(--ink); text-decoration: none; }
.shared-guide h2 a:hover, .guide-column li a:hover { text-decoration: underline; }
.guide-action { display: inline-block; margin-top: 11px; }
.guide-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); margin-top: 30px; }
.guide-column ul, .reading-index ul { list-style: none; margin: 0; padding: 0; }
.guide-column li { padding: 12px 0; border-top: 1px solid var(--line); }
.guide-column li a { font: 650 17px/1.4 var(--sans); }
.guide-column li p { margin-top: 5px; }
.article-body h2 { scroll-margin-top: 85px; }

.story-heading { padding: 12px 0 clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.story-heading.wide-photo, .story-heading.small-photo { display: grid; align-items: center; gap: clamp(18px, 4vw, 48px); }
.story-heading.wide-photo { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.story-heading.small-photo { grid-template-columns: minmax(0, 1fr) 132px; }
.story-heading .entry-title { max-width: 22ch; margin: 12px 0; padding: 0; border: 0; font-size: clamp(39px, 4.7vw, 70px); }
.story-photo { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: 6px; }
.small-photo .story-photo { aspect-ratio: 1; }
.story-topics a { color: var(--accent); font: 650 13px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.story-deck { max-width: 66ch; margin: 0; color: var(--ink); font: 450 clamp(17px,1.6vw,21px)/1.55 var(--sans); }
.story-date { margin: 14px 0 0; color: var(--muted); font: 500 12px/1.5 var(--sans); }
.reading-layout {
  display: grid; grid-template-columns: minmax(0, 69ch) minmax(150px, 1fr); grid-template-areas: "body index";
  gap: clamp(28px, 6vw, 90px); margin-top: clamp(24px, 4vw, 46px);
}
.reading-index { grid-area: index; align-self: start; }
.reading-index h2, .article-sources h2 { margin: 0 0 8px; color: var(--ink); font: 650 15px/1.5 var(--sans); }
.reading-index li { padding: 7px 0; border-top: 1px solid var(--line); }
.reading-index a, .article-sources a { color: var(--accent); font: 500 14px/1.5 var(--sans); text-underline-offset: 3px; }
.reading-layout .article-body { grid-area: body; min-width: 0; max-width: none; }
.article-body h2 { margin: 1.2em 0 .4em; letter-spacing: -.025em; }
.article-body > h2:first-child { margin-top: 0; }
.article-body p, .article-body ol, .article-body ul { margin: 0 0 1em; }
.article-body :is(ol,ul) { padding-left: 1.4em; }
.article-body li + li { margin-top: .45em; }
.article-body .exercise-list { display: block; list-style: decimal; }
.article-body .exercise-list li { display: list-item; padding: 0; background: transparent; border: 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 20px 0; font: 450 15px/1.5 var(--sans); }
.article-body caption { text-align: left; font-weight: 650; margin-bottom: 7px; }
.article-body :is(th, td) { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.article-body thead { background: var(--tint); }
.article-sources { padding-top: 17px; border-top: 1px solid var(--line); margin: 28px 0 16px; }
.article-sources h2 { margin: 0 0 8px; font: 650 15px/1.5 var(--sans); }
.article-sources li { line-height: 1.4; }
.information-copy { max-width: 69ch; font: 450 17px/1.65 var(--sans); overflow-wrap: anywhere; }
.information-copy h2 { margin: 1.25em 0 .35em; font: var(--title-weight) clamp(26px, 3vw, 36px)/1.15 var(--display); }
.information-copy p { margin: 0 0 1em; }
.information-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.information-copy .contact-address { font-size: 1.2em; }
.information-copy .policy-date { color: var(--muted); font-size: 14px; }
.editorial-review, .article-sources .source-date { margin: 5px 0 0; font: 500 13px/1.55 var(--sans); color: var(--muted); }
.editorial-review bdi { color: var(--ink); }
.review-status { display: inline-block; }
.article-body .next-reading { margin: 1.5em 0 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent); }
.article-body > :is(p, ul, ol, table) a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.common-guides { margin: 24px 0; }
.exercise-download { display: inline-flex; padding: 10px 17px; }
.search-page .ln-search { max-width: 620px; }
.search-status { margin: 18px 0; color: var(--muted); font: 500 15px/1.5 var(--sans); }
.search-status:empty { display: none; }
.search-results h2 a { color: var(--ink); text-underline-offset: 4px; }
.search-results h2 { margin: 22px 0 5px; color: var(--ink); font: var(--title-weight) clamp(25px, 3vw, 36px)/1.14 var(--display); }
.search-results p { max-width: 70ch; margin: 0; color: var(--muted); }
.search-page .return-link { display: inline-block; margin-top: 24px; }
@media (max-width: 760px) {
  .library-shortcuts { gap: 8px 14px; }
  .library-shortcuts a { font-size: 13px; }
  .library-grid .library-card.with-photo { grid-template-columns: 72px minmax(0,1fr); }
  .guide-columns, .shared-guide, .story-heading.wide-photo, .story-heading.small-photo { grid-template-columns: minmax(0,1fr); }
  .shared-guide img { max-height: 165px; }
  .story-heading.wide-photo .story-photo { max-height: 235px; }
  .story-heading.small-photo .story-photo { width: 78px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "index" "body"; gap: 24px; }
  .reading-index li { padding: 4px 0; }
  .article-body :is(th, td) { padding: 7px 6px; }
}
