/* Blocks of the breeder's own pages (O nas, Rasa…), shared by every theme. A theme sets the colours with
   --blk-accent, --blk-soft, --blk-line, --blk-muted and the width with --blk-w; it may restyle any block. */
.blk { padding: clamp(24px, 4vw, 44px) 0; }
.blk:not([class*="bg-"]) + .blk:not([class*="bg-"]), .blk-divider + .blk:not([class*="bg-"]) { padding-top: 0; }
.blk-in { width: min(100% - 32px, var(--blk-w, 900px)); margin-inline: auto; }
.blk-wide .blk-in { --blk-w: 1160px; }
.bg-soft { background: var(--blk-soft, #fff); }
.bg-accent { background: var(--blk-accent, #2e5a44); color: #fff; }
.bg-accent a:not(.blk-btn), .bg-accent h2, .bg-accent h3 { color: #fff; }
.bg-accent .blk-btn { background: #fff; color: var(--blk-accent, #2e5a44); }
.blk .prose, .blk .text { padding-bottom: 0; max-width: none; }
.blk .prose > :first-child, .blk-col > :first-child { margin-top: 0; }
.blk .prose > :last-child { margin-bottom: 0; }
.blk-h { margin: 0 0 18px; }

/* photo and text side by side */
.blk-it { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.blk-it-right .blk-it-ph { order: 2; }
.blk-it-nophoto { grid-template-columns: 1fr; }
.blk-it-ph { margin: 0; }
.blk-it-ph img, .blk-fig img { width: 100%; height: auto; display: block; border-radius: var(--blk-radius, 16px); }
/* a portrait photo beside a text: not taller than a screen's good part, the faces (upper middle) kept */
.blk-it-ph img { max-height: 560px; object-fit: cover; object-position: center 30%; }
.blk-fig { margin: 0; }
/* a large photo stays within the screen: a portrait one is not stretched to the width of the page */
.blk--image .blk-fig img { width: auto; max-width: 100%; max-height: min(85vh, 900px); margin: 0 auto; }
/* "Karta z logo": a round logo beside a small line, a title and a few sentences (a club, a breed council…) */
.blk-badge { display: flex; gap: 32px; align-items: center; justify-content: center; max-width: 860px; margin: 0 auto;
  padding: 28px 32px; border: 1px solid var(--line, rgba(0, 0, 0, .1)); border-radius: var(--blk-radius, 16px);
  background: var(--surface, #fff); }
.blk-badge-logo { width: 140px; height: 140px; flex: none; border-radius: 50%; object-fit: cover; }
.blk-badge > div { min-width: 0; max-width: 620px; }
.blk-badge h2 { margin: 2px 0 10px; font-size: 1.35rem; }
.blk-badge .prose p { margin: 0 0 10px; }
.blk-badge .prose p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .blk-badge { flex-direction: column; text-align: center; padding: 22px 20px; gap: 18px; }
  .blk-badge-logo { width: 120px; height: 120px; }
}
.blk-fig figcaption, .blk-video figcaption { margin-top: 8px; color: var(--blk-muted, #5f6b63); font-size: .92rem; text-align: center; }

/* gallery */
.blk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 45%), 1fr)); gap: 10px; }
.blk-photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--blk-radius-sm, 10px); }
.blk-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.blk-photos a:hover img { transform: scale(1.04); }

/* columns */
.blk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.blk-col { background: var(--blk-card, #fff); border: 1px solid var(--blk-line, #e6e1d7); border-radius: var(--blk-radius, 16px); padding: 18px; color: var(--blk-ink, inherit); }
.bg-soft .blk-col { background: var(--blk-card-on-soft, var(--blk-card, #fff)); }
.bg-accent .blk-col { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.blk-col h3 { margin: 0 0 6px; font-size: 1.15rem; }
.blk-col p { margin: 0; }
.blk-col-ph { display: block; width: calc(100% + 36px); max-width: none; margin: -18px -18px 14px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--blk-radius, 16px) var(--blk-radius, 16px) 0 0; }

/* call to action */
.blk-cta { text-align: center; max-width: 640px; margin: 0 auto; }
.blk-cta h2 { margin: 0 0 10px; }
.blk-cta p { margin: 0 0 18px; }
:where(.blk-btn) { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--blk-accent, #2e5a44); color: #fff; font-weight: 600; text-decoration: none; }
/* the white label must beat a theme's plain "a { color }" (2026-10-12: "Zapytaj o Aguni" green on green in Vendellek),
   with the weight of one class: ".bg-accent .blk-btn" and the ghost button still decide for themselves */
.blk-btn:where(:not(.blk-btn-ghost)) { color: #fff; }

/* quote */
.blk-quote { margin: 0 auto; max-width: 720px; text-align: center; }
.blk-quote blockquote { margin: 0; font: italic 1.35rem/1.5 var(--blk-head, Georgia, serif); }
.blk-quote blockquote::before { content: "\201E"; display: block; font-size: 3rem; line-height: .6; color: var(--blk-accent, #2e5a44); }
.bg-accent .blk-quote blockquote::before { color: #fff; }
.blk-quote figcaption { margin-top: 12px; color: var(--blk-muted, #5f6b63); font-size: .95rem; }
.bg-accent .blk-quote figcaption { color: rgba(255, 255, 255, .8); }

/* questions */
.blk-faq { display: grid; gap: 8px; }
.blk-faq details { background: var(--blk-card, #fff); border: 1px solid var(--blk-line, #e6e1d7); border-radius: var(--blk-radius-sm, 10px); padding: 0 16px; color: var(--blk-ink, inherit); }
.blk-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.blk-faq summary::-webkit-details-marker { display: none; }
.blk-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blk-accent, #2e5a44); }
.blk-faq details[open] summary::after { content: "−"; }
.blk-faq details > div { padding-bottom: 12px; }
.blk-faq details > div p { margin: 0 0 .6em; }

/* film */
.blk-video { margin: 0; }
.blk-video-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--blk-radius, 16px); overflow: hidden; background: #000; }
.blk-video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* divider */
.blk-divider { width: min(100% - 32px, var(--blk-w, 900px)); margin: 8px auto 32px; }
.blk-divider hr { border: 0; border-top: 1px solid var(--blk-line, #e6e1d7); margin: 0; }
.blk-space hr { border-color: transparent; }

@media (max-width: 760px) {
  .blk-it { grid-template-columns: 1fr; }
  .blk-it-right .blk-it-ph { order: 0; }
}

/* ---- parts of a home page (themes without their own version) */
.blk--hero { padding-top: clamp(28px, 5vw, 56px); }
.blk-hero { display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; }
.blk-hero-ph { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.blk-hero h1 { margin: 0 0 12px; }
.blk-hero-img { margin: 0; }
.blk-hero-img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; display: block; border-radius: var(--blk-radius, 16px); }
.blk-hero-img figcaption { margin-top: 8px; font-size: .9rem; color: var(--blk-muted, #5f6b63); }
.blk-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blk-accent, #2e5a44); }
.blk-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
:where(.blk-btn-ghost) { background: transparent; color: var(--blk-accent, #2e5a44); box-shadow: inset 0 0 0 1px currentColor; }
.blk-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-weight: 600; }
.blk-facts li::before { content: "✓ "; color: var(--blk-accent, #2e5a44); }
.blk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 45%), 1fr)); gap: 14px; margin-bottom: 14px; }
.blk-card { margin: 0; display: grid; gap: 6px; color: inherit; text-decoration: none; }
.blk-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: var(--blk-radius-sm, 10px); }
.blk-card figcaption, .blk-card span { display: grid; font-size: .92rem; }
.blk-card small { color: var(--blk-muted, #5f6b63); }
.blk-family > :first-child { grid-column: span 2; grid-row: span 2; }
.blk-frame { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center; }
.blk-frame h2 { margin: 0 0 8px; }
.blk-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.blk-legend .badge { margin: 0 6px 0 0; }
@media (max-width: 760px) {
  .blk-hero-ph, .blk-frame { grid-template-columns: 1fr; }
  .blk-family > :first-child { grid-column: auto; grid-row: auto; }
}

/* moving between pages: the header stays, the page cross-fades (View Transitions; others just load the page) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .18s ease both; }
  ::view-transition-new(root) { animation: vt-in .26s ease both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
}

/* the header keeps its place during the cross-fade */
.k-head, .p-head, header.site, .site-header { view-transition-name: site-head; }

/* page for a wrong address (404.html of every theme) */
.notfound { padding: clamp(48px, 10vw, 120px) 0; }
.notfound-in { width: min(100% - 32px, 720px); margin-inline: auto; }
.notfound-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; margin: 0 0 8px; color: var(--blk-accent, #2e5a44); letter-spacing: -.04em; }
.notfound-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notfound-links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--blk-line, #e6e1d7); border-radius: var(--blk-radius-sm, 10px); text-decoration: none; font-weight: 600; }
.notfound-links a:hover { border-color: var(--blk-accent, #2e5a44); }

/* application form (Rezerwacje): a card as wide as the kittens above it and the contact below, not a narrower column
   stuck to the left */
.blk-apply { padding: clamp(20px, 4vw, 40px); box-sizing: border-box;
  background: var(--blk-card, #fff); border: 1px solid var(--blk-line, rgba(0, 0, 0, .1)); border-radius: var(--blk-radius, 16px); }
.blk-apply .blk-h { margin-top: 0; }
.blk-lead { color: var(--blk-muted, #5f6b63); margin: -6px 0 20px; max-width: 65ch; }
.bg-accent .blk-lead { color: rgba(255, 255, 255, .85); }
.blk-form { display: grid; gap: 18px; }
.blk-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.blk-f { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.blk-f-wide { grid-column: 1 / -1; }
.blk-f > label, .blk-f > legend { font-weight: 600; font-size: .93rem; padding: 0; }
.blk-f small { font-weight: 400; color: var(--blk-muted, #5f6b63); }
.blk-form input:not([type="checkbox"]):not([type="radio"]), .blk-form select, .blk-form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--blk-ink, #1d2420);
  background: var(--blk-card, #fff); border: 1px solid var(--blk-line, #d9d3c7); border-radius: var(--blk-radius-sm, 10px); box-sizing: border-box; }
.blk-form textarea { resize: vertical; }
.blk-form :focus-visible { outline: 2px solid var(--blk-accent, #2e5a44); outline-offset: 1px; }
.blk-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.blk-choice label { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid var(--blk-line, #d9d3c7);
  border-radius: 999px; cursor: pointer; background: var(--blk-card, #fff); color: var(--blk-ink, #1d2420); }
.blk-choice input { accent-color: var(--blk-accent, #2e5a44); margin: 0; }
.blk-choice label:has(input:checked) { border-color: var(--blk-accent, #2e5a44); box-shadow: inset 0 0 0 1px var(--blk-accent, #2e5a44); }
.blk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.blk-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blk-accent, #2e5a44); }
.blk-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.blk-form button[disabled] { opacity: .7; cursor: progress; }
.blk-note { margin: 0; padding: 12px 14px; border-radius: var(--blk-radius-sm, 10px); background: var(--blk-soft, #eef3ef); color: var(--blk-ink, #1d2420); }
.blk-note.err { background: #fbe9e7; color: #8a2a20; }
@media (max-width: 640px) { .blk-fgrid { grid-template-columns: 1fr; } }

/* "przebadany": the public health tests of a cat (every theme) */
.tests-badges { margin: 10px 0 4px; font-size: .88rem; }
.tb-title { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem;
  background: color-mix(in srgb, var(--blk-accent, #2e5a44) 12%, transparent); color: var(--blk-accent, #2e5a44); }
.tb-title::before { content: "\2713\00a0"; }
.tests-badges ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tests-badges li { color: inherit; }
.tests-badges li small { color: var(--blk-muted, #5f6b63); }
.tests-badges a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* the table of a litter's weights by week (site/_weights.html) */
.wt-wrap { overflow-x: auto; margin: 18px 0 6px; -webkit-overflow-scrolling: touch; }
.wt { border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; background: #fff; min-width: 100%; }
.wt caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.wt th, .wt td { border: 1px solid #e3ddd2; padding: 6px 8px; text-align: center; white-space: nowrap; }
.wt thead th { background: #f4f0e8; font-weight: 600; }
.wt tbody th { text-align: left; position: sticky; left: 0; background: #fff; font-weight: 600; }
.wt-f { color: #b0306a; }
.wt-m { color: #2c5d8a; }

/* a kitten's card leads to its page: the name is the link, stretched over the whole card */
.has-link { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible::after { outline: 3px solid var(--blk-accent, #2e5a44); outline-offset: 2px; }
.has-link a:not(.card-link) { position: relative; z-index: 2; }

/* a kitten's own page (site/_kitten_page.html), in every theme's colours */
.kp { padding-block: 28px 56px; }
.kp-crumbs { font-size: .9rem; color: var(--blk-muted, #6b6b6b); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.kp-crumbs a { color: inherit; }
.kp-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .kp-top { grid-template-columns: 1fr; gap: 22px; } }
.kp-zoom { display: block; cursor: zoom-in; }
.kp-main { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.kp-empty { background: var(--blk-soft, #efe9df); }
.kp-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.kp-more img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 520px) { .kp-more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kp-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--blk-soft, #eef3ef); color: var(--blk-accent, #2e5a44); }
.kp-status-reserved, .kp-status-home { background: #f6e3e1; color: #8a2d24; }
.kp-head h1 { margin: 8px 0 6px; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.kp-sub { color: var(--blk-muted, #6b6b6b); margin: 0 0 14px; font-size: 1.05rem; }
.kp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 18px 0 22px; padding: 16px 18px; border: 1px solid var(--blk-line, #e6e0d5); border-radius: 16px; }
.kp-facts dt { color: var(--blk-muted, #6b6b6b); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.kp-facts dd { margin: 2px 0 0; font-weight: 600; }
.kp-facts small { font-weight: 400; color: var(--blk-muted, #6b6b6b); }
.kp-ask { display: inline-flex; align-items: center; min-height: 46px; }
.kp-sec { margin-top: 44px; }
.kp-sec > h2 { margin: 0 0 14px; }
.kp-desc { max-width: 68ch; font-size: 1.05rem; line-height: 1.65; }
.kp-parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .kp-parents, .kp-facts { grid-template-columns: 1fr; } }
.kp-parent { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--blk-line, #e6e0d5); border-radius: 16px; }
.kp-parent img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.kp-parent small { display: block; color: var(--blk-muted, #6b6b6b); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.kp-parent b a { color: inherit; }
.kp-box { border: 1px solid var(--blk-line, #e6e0d5); border-radius: 16px; padding: 16px 18px; }
.kp-care { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kp-care li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--blk-line, #f1ece4); }
.kp-care li:last-child { border-bottom: 0; }
.kp-care-date { flex: none; width: 92px; color: var(--blk-muted, #6b6b6b); font-variant-numeric: tabular-nums; }
.kp-note { color: var(--blk-muted, #6b6b6b); font-size: .92rem; margin: 10px 0 0; }
.kp-chart svg { width: 100%; height: auto; display: block; }
.kp-chart .g line { stroke: var(--blk-line, #ece6db); } .kp-chart .g text, .kp-chart .t text { fill: var(--blk-muted, #8a8174); font-size: 11px; }
.kp-chart polyline { fill: none; stroke: var(--blk-accent, #b5532c); stroke-width: 3; stroke-linejoin: round; }
.kp-chart circle { fill: #fff; stroke: var(--blk-accent, #b5532c); stroke-width: 2; }


/* Kursy i szkolenia (blocks/courses.html): one line per course, the date and the certificate on the right */
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* the date and the certificate stay in one column on the right, also beside a title of two lines */
.course { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--blk-line, rgba(0, 0, 0, .1)); }
.course:last-child { border-bottom: 1px solid var(--blk-line, rgba(0, 0, 0, .1)); }
.course-main { display: grid; gap: 2px; min-width: 0; }
.course-main .meta { opacity: .75; font-size: .92em; }
.course-side { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.course-cert { font-weight: 600; }
@media (max-width: 560px) { .course { grid-template-columns: 1fr; } }

/* the page "Wystawy": a long list of cats under a title folds after four ("+5 więcej"), in every theme */
.title-more { margin-top: 2px; }
.title-more > summary { cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; opacity: .8; width: max-content; }
.title-more > summary::-webkit-details-marker { display: none; }
.title-more[open] > summary { display: none; }
