/* Animalso's blog — Field Notes (look.blog = 'fieldnotes'). The shared editorial markup drawn in Animalso's own field-guide
   language (src/lib/ui/sites/animalso/Plate(s).svelte): soft rounded plates, terracotta and sage, Fredoka headlines, a paw-print
   paper behind the masthead, round photographs in the index the way a guide shows its animals, and a vet's-note bubble for quotes.
   Tokens only (--bg --surface --surface-2 --ink --muted --line --brand --accent --radius --radius-lg --shadow). */

/* a paw print, drawn once (its fill follows currentColor through a mask) */
:root { --fn-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='21.5' rx='6.5' ry='5.5'/%3E%3Cellipse cx='7.5' cy='14' rx='2.8' ry='3.5'/%3E%3Cellipse cx='24.5' cy='14' rx='2.8' ry='3.5'/%3E%3Cellipse cx='12' cy='8.5' rx='2.6' ry='3.3'/%3E%3Cellipse cx='20' cy='8.5' rx='2.6' ry='3.3'/%3E%3C/svg%3E"); }

/* ---------- atoms ---------- */
.jr-kicker { display: inline-block; padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: color-mix(in srgb, var(--accent) 82%, var(--ink)); font: 700 .74rem/1.4 var(--font-text); }
a.jr-kicker:hover { background: var(--accent); color: var(--accent-ink); }
.jr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: .84rem; color: var(--muted); }
.jr-meta > * + *::before { content: ''; display: inline-block; width: 11px; height: 11px; margin: 0 .55em; vertical-align: -1px; background: var(--line); -webkit-mask: var(--fn-paw) center / contain no-repeat; mask: var(--fn-paw) center / contain no-repeat; }
.jr-meta a { color: var(--ink); font-weight: 700; }
.jr-pic { display: block; overflow: hidden; background: var(--surface-2); border-radius: calc(var(--radius-lg) - 10px); }
.jr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
a:hover .jr-pic img { transform: scale(1.04); }
.jr-hl { font-family: var(--font-display); font-weight: 600; line-height: 1.18; text-wrap: balance; color: var(--ink); margin: 0; }
span.jr-hl { display: block; }
.jr-rule { display: flex; align-items: center; gap: 10px; margin: 36px 0 16px; font: 600 1.45rem/1.1 var(--font-display); color: var(--ink); }
.jr-rule::before { content: ''; width: 26px; height: 26px; background: var(--brand); -webkit-mask: var(--fn-paw) center / contain no-repeat; mask: var(--fn-paw) center / contain no-repeat; }

/* ---------- the front page's masthead: paw-print paper ---------- */
.jr-mast { position: relative; overflow: hidden; margin: 6px 0 0; padding: clamp(24px, 3.6vw, 44px); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: var(--radius-lg); }
.jr-mast::after { content: ''; position: absolute; inset: 0 0 0 52%; background: var(--accent); opacity: .12; -webkit-mask: var(--fn-paw) 0 0 / 54px 54px repeat; mask: var(--fn-paw) 0 0 / 54px 54px repeat; pointer-events: none; }
.jr-mast > * { position: relative; z-index: 1; }
.jr-mast .jr-kicker { background: var(--surface); }
.jr-mast h1 { font-weight: 700; font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.4rem); line-height: 1; margin: 12px 0 12px; color: var(--ink); }
.jr-mast--sm h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.jr-mast-stand { max-width: 600px; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.jr-mast-stand p { margin: 0; }
.jr-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.jr-sections a { padding: 8px 15px; border-radius: 999px; background: var(--surface); font: 700 .88rem/1.2 var(--font-text); color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.jr-sections a:hover, .jr-sections a[aria-current] { background: var(--brand); color: var(--brand-ink); }

/* ---------- the lead story: a photograph on a white mount ---------- */
.jr-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 34px); align-items: center; margin: 20px 0 16px; padding: 14px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.jr-lead:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(45,42,50,.3); }
.jr-lead .jr-pic { aspect-ratio: 4 / 3; }
.jr-lead-t { display: grid; gap: 12px; justify-items: start; min-width: 0; padding: 8px 14px 8px 0; }
.jr-lead .jr-hl { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 700; }
.jr-lead p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--muted); }
.jr-more-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 700 .92rem/1 var(--font-text); }
.jr-lead:not(:has(.jr-pic)) { grid-template-columns: minmax(0, 1fr); }

/* ---------- three stories ---------- */
.jr-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.jr-trio > a { display: grid; gap: 10px; align-content: start; padding: 10px 10px 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); min-width: 0; transition: transform .15s, box-shadow .15s; }
.jr-trio > a:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(45,42,50,.28); }
.jr-trio .jr-pic { aspect-ratio: 4 / 3; }
.jr-trio .jr-kicker, .jr-trio .jr-hl, .jr-trio .jr-meta { margin-inline: 6px; }
.jr-trio .jr-kicker { justify-self: start; }
.jr-trio .jr-hl { font-size: 1.2rem; }

/* ---------- the index: round photographs, like the animals in a guide's margin ---------- */
.jr-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jr-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 18px 14px 14px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.jr-row:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(45,42,50,.28); }
.jr-row .jr-pic { grid-area: 1 / 1; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.jr-row .jr-row-t { grid-area: 1 / 2; display: grid; gap: 7px; align-content: center; justify-items: start; min-width: 0; }
.jr-row .jr-date { grid-area: 1 / 3; display: grid; justify-items: center; padding: 8px 12px; border-radius: 16px; background: var(--surface-2); }
.jr-date b { font: 600 1.4rem/1 var(--font-display); }
.jr-date span { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.jr-row .jr-hl { font-size: clamp(1.14rem, 1rem + .4vw, 1.34rem); }
.jr-row p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jr-row:not(:has(.jr-pic)) { grid-template-columns: minmax(0, 1fr) auto; }
.jr-row:not(:has(.jr-pic)) .jr-row-t { grid-area: 1 / 1; }
.jr-row:not(:has(.jr-pic)) .jr-date { grid-area: 1 / 2; }

/* ---------- pager ---------- */
.jr-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 30px 0 8px; }
.jr-pager > a, .jr-pager .page-numbers:not(.dots) { display: inline-grid; place-items: center; min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font: 700 .92rem/1 var(--font-text); }
.jr-pager > a:hover, .jr-pager a.page-numbers:hover, .jr-pager .page-numbers.current { background: var(--brand); color: var(--brand-ink); }
.jr-pager .page-numbers.dots { color: var(--muted); }
.jr-pager-no { color: var(--muted); font-weight: 700; }

/* ---------- the home page's block ---------- */
.jr-home { padding: 26px 0 8px; }
.jr-home-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.jr-home-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--font-display); }
.jr-home-head h2::before { content: ''; width: 28px; height: 28px; background: var(--brand); -webkit-mask: var(--fn-paw) center / contain no-repeat; mask: var(--fn-paw) center / contain no-repeat; }
.jr-home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; padding-top: 16px; }
.jr-home-lead { display: grid; gap: 10px; align-content: start; padding: 10px 10px 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); }
.jr-home-lead:hover { color: var(--ink); transform: translateY(-2px); }
.jr-home-lead .jr-pic { aspect-ratio: 16 / 10; }
.jr-home-lead .jr-kicker, .jr-home-lead .jr-hl, .jr-home-lead .jr-meta { margin-inline: 6px; }
.jr-home-lead .jr-kicker { justify-self: start; }
.jr-home-lead .jr-hl { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.jr-home-list { display: grid; gap: 10px; align-content: start; }
.jr-home-list a { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); }
.jr-home-list a:hover { color: var(--ink); transform: translateY(-2px); }
.jr-home-list .jr-hl { font-size: 1.04rem; margin-top: 4px; }
.jr-home-list .jr-pic { aspect-ratio: 1; border-radius: 50%; }

/* ---------- WordPress: the article ---------- */
.jr-art { padding-bottom: 32px; }
.jr-head { display: grid; gap: 12px; justify-items: start; max-width: 800px; margin: 4px 0 22px; }
.jr-head h1 { font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.5rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.jr-stand { margin: 0; font-size: clamp(1.06rem, 1rem + .4vw, 1.22rem); line-height: 1.55; color: var(--muted); }
.jr-head .jr-meta { padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.jr-hero { margin: 0 0 28px; padding: 12px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.jr-hero img { width: 100%; height: auto; max-height: 620px; object-fit: cover; display: block; border-radius: calc(var(--radius-lg) - 12px); }
.jr-hero figcaption { margin: 10px 6px 0; font-size: .86rem; color: var(--muted); }
.jr-body { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: clamp(26px, 4vw, 52px); align-items: start; }
.jr-body--full { grid-template-columns: minmax(0, 780px); }
.jr-art .pdt-paper { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: clip; overflow-clip-margin: 8px; } /* clip: an ad or embed wider than a phone must never widen the page */
.jr-art .entry-content { font-size: 1.08rem; line-height: 1.75; max-width: 70ch; }
.jr-art .entry-content h2 { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.2; margin: 1.9em 0 .6em; }
.jr-art .entry-content h2::before { content: ''; flex: none; width: 24px; height: 24px; background: var(--brand); -webkit-mask: var(--fn-paw) center / contain no-repeat; mask: var(--fn-paw) center / contain no-repeat; }
.jr-art .entry-content h3 { font-weight: 600; font-size: 1.28rem; line-height: 1.25; margin: 1.6em 0 .45em; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.jr-art .entry-content a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jr-art .entry-content ul li::marker, .jr-art .entry-content ol li::marker { color: var(--accent); font-weight: 700; }
/* a quote as a vet's note: a soft bubble with its tail */
.jr-art .entry-content blockquote { position: relative; margin: 1.8em 0 2.2em; padding: 18px 22px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 0; border-radius: 22px; font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.jr-art .entry-content blockquote::after { content: ''; position: absolute; left: 34px; bottom: -14px; border: 14px solid transparent; border-bottom: 0; border-top-color: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.jr-art .entry-content blockquote p { margin: 0 0 .6em; } .jr-art .entry-content blockquote p:last-child { margin: 0; }
.jr-art .entry-content img, .jr-art .entry-content figure img { border-radius: 18px; }
.jr-art .entry-content figcaption { font-size: .86rem; color: var(--muted); }
.jr-art .entry-content table { font-size: .97rem; border-radius: 16px; }
.jr-art .entry-content th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.jr-art .entry-content hr { border: 0; height: 2px; background: var(--line); border-radius: 2px; margin: 2.2em 0; }
.jr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; }
.jr-tags span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.jr-tags a { padding: 6px 13px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .88rem; font-weight: 700; color: var(--ink); }
.jr-tags a:hover { background: var(--accent); color: var(--accent-ink); }
.jr-hop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 36px 0 0; }
.jr-hop a { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 16px 18px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.jr-hop a:hover { color: var(--ink); transform: translateY(-2px); }
.jr-hop a.nx { text-align: right; justify-items: end; }
.jr-hop a.nx:only-child { grid-column: 2; }
.jr-hop .jr-hl { font-size: 1.16rem; }
.jr-next { margin-top: 6px; }
.pdt-side.jr-side .widget { background: var(--surface); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; }
.pdt-side.jr-side .widget-title { display: flex; align-items: center; gap: 8px; font: 700 1rem/1.2 var(--font-display); color: var(--ink); margin: 0 0 8px; text-transform: none; letter-spacing: 0; }
.pdt-side.jr-side .widget-title::before { content: ''; width: 18px; height: 18px; background: var(--accent); -webkit-mask: var(--fn-paw) center / contain no-repeat; mask: var(--fn-paw) center / contain no-repeat; }
.pdt-side.jr-side .pdt-latest-list li { padding: 10px 0; border-bottom-style: dashed; }
.pdt-side.jr-side .pdt-latest-list a { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 2px 12px; align-items: center; }
.pdt-side.jr-side .pdt-latest-list a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.pdt-side.jr-side .pdt-latest-list img { grid-row: span 2; width: 60px; height: 60px; object-fit: cover; display: block; border-radius: 50%; }
.pdt-side.jr-side .pdt-latest-t { font: 600 .98rem/1.25 var(--font-display); color: var(--ink); }
.pdt-side.jr-side .pdt-latest-d { font-size: .76rem; color: var(--muted); }
.pdt-side.jr-side .ym-latest-posts-widget { --ym-latest-accent: var(--brand); }
.pdt-side.jr-side .ym-sidebar-latest-card { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; min-block-size: 0; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pdt-side.jr-side .ym-sidebar-latest-card:last-child { border-bottom: 0; }
.pdt-side.jr-side .ym-sidebar-latest-media { aspect-ratio: 1; border-radius: 50%; }
.pdt-side.jr-side .ym-sidebar-latest-rank { display: none; }
.pdt-side.jr-side .ym-sidebar-latest-title { font: 600 .98rem/1.25 var(--font-display); color: var(--ink); }
.jr-art .pdt-comments { margin-top: 36px; padding: 22px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.jr-art .pdt-comments h2, .jr-art .pdt-comments .comment-reply-title { font: 700 1.4rem/1.15 var(--font-display); margin: 0 0 10px; }
.jr-art .pdt-comments textarea, .jr-art .pdt-comments input[type="text"], .jr-art .pdt-comments input[type="email"], .jr-art .pdt-comments input[type="url"] { border-radius: 16px; }
.jr-list { padding-bottom: 32px; }
.jr-list .jr-body { margin-top: 18px; grid-template-columns: minmax(0, 1fr) 312px; }
.jr-list .jr-body--full { grid-template-columns: minmax(0, 1fr); }
.jr-empty { padding: 36px 0; color: var(--muted); }

@media (max-width: 1080px) { .jr-body, .jr-list .jr-body { grid-template-columns: minmax(0, 1fr); } .jr-body > .pdt-side { max-width: 640px; } }
@media (max-width: 900px) {
  .jr-lead { grid-template-columns: minmax(0, 1fr); }
  .jr-lead-t { padding: 4px 6px 8px; }
  .jr-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-home-grid { grid-template-columns: minmax(0, 1fr); }
  .jr-mast::after { inset: 0 0 0 40%; }
}
@media (max-width: 640px) {
  .jr-sections { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; }
  .jr-sections::-webkit-scrollbar { display: none; }
  .jr-trio { grid-template-columns: minmax(0, 1fr); }
  .jr-row { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .jr-row .jr-date { grid-area: 2 / 1 / 3 / -1; justify-self: start; display: flex; gap: 6px; align-items: baseline; padding: 4px 12px; }
  .jr-row .jr-date b { font-size: .95rem; }
  .jr-row p { display: none; }
  .jr-hop { grid-template-columns: minmax(0, 1fr); }
  .jr-hop a.nx { text-align: left; justify-items: start; }
  .jr-hop a.nx:only-child { grid-column: auto; }
  .jr-art .entry-content { font-size: 1.04rem; }
  .jr-head .jr-meta { border-radius: 18px; }
  .jr-mast::after { display: none; }
}
