/* План породи v0.4.2: full-width facts and editorial description */
#tyb-content {
  --tyb-green: #128b46;
  --tyb-ink: #173247;
  --tyb-muted: #687785;
  --tyb-line: #dce3df;
  --tyb-tint: #edf7f0;
  color: var(--tyb-ink);
  box-sizing: border-box;
}
#tyb-content *, #tyb-content *::before, #tyb-content *::after { box-sizing: border-box; }
#tyb-content.tyb-wrap {
  width: min(calc(100% - 32px), 1300px);
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 0 48px;
  font-family: inherit;
}
#tyb-content .tyb-intro-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 0 12px;
}
#tyb-content .tyb-crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  font-size: 12px;
  color: var(--tyb-muted);
}
#tyb-content .tyb-crumb a { color: var(--tyb-muted); text-decoration: none; }
#tyb-content .tyb-crumb a:hover { color: var(--tyb-green); }
#tyb-content .tyb-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
  min-width: 0;
}
#tyb-content .tyb-heading-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}
#tyb-content .tyb-overline {
  color: var(--tyb-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
#tyb-content .tyb-heading h1 {
  display: inline;
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  color: var(--tyb-ink);
  font-weight: 800;
}
#tyb-content .tyb-latin {
  color: var(--tyb-muted);
  font-size: 12px;
}
#tyb-content .tyb-kind {
  color: #fff;
  background: var(--tyb-green);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
#tyb-content .tyb-top {
  display: grid;
  grid-template-columns: minmax(0,1.94fr) minmax(290px,.98fr);
  gap: 20px;
  align-items: stretch;
}
#tyb-content .tyb-hero-photo, #tyb-content .tyb-photo-placeholder {
  display: block;
  margin: 0;
  height: 420px;
  min-width: 0;
  background: #edf7f0;
  overflow: hidden;
}
#tyb-content .tyb-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 47%;
}
#tyb-content .tyb-top-passport { display: flex; min-width: 0; height: 420px; }
#tyb-content .tyb-side-block {
  border: 1px solid var(--tyb-line);
  background: #fff;
  margin: 0;
}
#tyb-content .tyb-passport {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
#tyb-content .tyb-passport h2 {
  margin: 0;
  padding: 14px 16px;
  color: var(--tyb-ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}
#tyb-content .tyb-passport-rows {
  padding: 0 16px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
}
#tyb-content .tyb-passport-row {
  display: grid;
  grid-template-columns: minmax(0,47%) minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--tyb-line);
  font-size: 12px;
  line-height: 1.35;
}
#tyb-content .tyb-passport-row:last-child { border-bottom: 0; }
#tyb-content .tyb-passport-row span { color: var(--tyb-muted); }
#tyb-content .tyb-passport-row strong {
  color: var(--tyb-ink);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
#tyb-content .tyb-content-full { width: 100%; min-width: 0; }
#tyb-content .tyb-excerpt {
  color: var(--tyb-ink);
  font-size: 15px;
  line-height: 1.65;
  padding: 16px 0;
  border-bottom: 1px solid var(--tyb-line);
}
#tyb-content .tyb-excerpt p { margin: 0; }
#tyb-content .tyb-parameters { margin-top: 24px; width: 100%; }
#tyb-content .tyb-parameters > h2, #tyb-content .tyb-description > h2 {
  color: var(--tyb-ink);
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}
#tyb-content .tyb-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 0 0 10px;
  scrollbar-width: thin;
}
#tyb-content .tyb-tab {
  border: 1px solid var(--tyb-line);
  border-radius: 0;
  background: #f6f9f7;
  color: var(--tyb-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 13px;
  cursor: pointer;
  flex: 0 0 auto;
}
#tyb-content .tyb-tab.is-active, #tyb-content .tyb-tab[aria-selected=true] {
  background: var(--tyb-green);
  border-color: var(--tyb-green);
  color: #fff;
}
#tyb-content .tyb-tab:focus-visible {
  outline: 2px solid var(--tyb-green);
  outline-offset: 2px;
}
#tyb-content .tyb-panel { padding-top: 6px; }
#tyb-content .tyb-panel[hidden] { display: none!important; }
#tyb-content .tyb-facts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0 24px;
  width: 100%;
}
#tyb-content .tyb-fact {
  border-bottom: 1px solid var(--tyb-line);
  padding: 12px 0;
  min-width: 0;
}
#tyb-content .tyb-fact-label {
  color: var(--tyb-muted);
  font-size: 12px;
  margin-bottom: 5px;
}
#tyb-content .tyb-fact-value {
  color: var(--tyb-ink);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
#tyb-content .tyb-description {
  width: 100%;
  max-width: none;
  margin-top: 30px;
  padding-top: 21px;
  border-top: 2px solid var(--tyb-green);
}
#tyb-content .tyb-description-body {
  color: var(--tyb-ink);
  font-size: 16px;
  line-height: 1.75;
}
#tyb-content .tyb-description-body p { margin: 0 0 17px; }
#tyb-content .tyb-description-body h2 { color: var(--tyb-ink);font-size:22px;margin:25px 0 10px; }
#tyb-content .tyb-description-body h3 { color: var(--tyb-ink);font-size:18px;margin:20px 0 8px; }
#tyb-content .tyb-description-body img,
#tyb-content .tyb-description-body picture,
#tyb-content .tyb-description-body figure { display: none!important; }

@media(max-width:950px) {
  #tyb-content .tyb-top { grid-template-columns: minmax(0,1.45fr) minmax(250px,1fr); gap: 14px; }
  #tyb-content .tyb-hero-photo, #tyb-content .tyb-photo-placeholder, #tyb-content .tyb-top-passport { height: 360px; }
  #tyb-content .tyb-facts { grid-template-columns: repeat(2,minmax(0,1fr));gap:0 18px; }
}
@media(max-width:730px) {
  #tyb-content.tyb-wrap { width: min(calc(100% - 24px),1300px);padding-top: 10px; }
  #tyb-content .tyb-intro-row { align-items: flex-start;gap:7px;margin-bottom:12px; }
  #tyb-content .tyb-heading { width: 100%;justify-content:space-between; gap:8px; }
  #tyb-content .tyb-heading h1 { font-size:27px; }
  #tyb-content .tyb-heading-text { gap:4px 8px; }
  #tyb-content .tyb-overline { width:100%; }
  #tyb-content .tyb-top { grid-template-columns: 1fr; gap: 12px; }
  #tyb-content .tyb-hero-photo, #tyb-content .tyb-photo-placeholder { height:auto;aspect-ratio: 16/10; }
  #tyb-content .tyb-hero-photo img { height:100%;object-fit:cover; }
  #tyb-content .tyb-top-passport { height:auto;display:block; }
  #tyb-content .tyb-passport-rows { display:block; }
  #tyb-content .tyb-passport-row { padding:9px 0;font-size:12px; }
  #tyb-content .tyb-facts { grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px; }
  #tyb-content .tyb-excerpt { font-size:14px;padding:14px 0; }
  #tyb-content .tyb-parameters { margin-top:20px; }
  #tyb-content .tyb-description-body { font-size:15px; }
}
@media(max-width:420px) {
  #tyb-content .tyb-heading h1 { font-size:25px; }
  #tyb-content .tyb-parameters > h2, #tyb-content .tyb-description > h2 { font-size:21px; }
  #tyb-content .tyb-facts { grid-template-columns:1fr; }
}

/* v0.4.3: remove breadcrumb and overline, truly full-width editorial content */
#tyb-content .tyb-intro-row { display: block; margin: 0 0 12px; }
#tyb-content .tyb-heading { display:flex;justify-content:space-between;align-items:center;width:100%;min-width:0; }
#tyb-content .tyb-heading-text { display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px; }
#tyb-content .tyb-heading h1 { display:block; }
#tyb-content .tyb-content-full,
#tyb-content .tyb-description,
#tyb-content .tyb-description-body,
#tyb-content .tyb-description-body > * { width:100%; max-width:none!important;min-width:0; }
#tyb-content .tyb-description-body :where(.wp-block-group,.wp-block-columns,.wp-block-column,.wp-block-paragraph,.wp-block-heading,.is-layout-constrained,.is-layout-flow) {max-width:none!important;}
#tyb-content .tyb-description-body > *,
#tyb-content .tyb-description-body :where(.is-layout-constrained)>* {margin-left:0!important;margin-right:0!important;}
@media(max-width:730px){
 #tyb-content .tyb-intro-row{margin-bottom:10px;}
 #tyb-content .tyb-heading{align-items:center;}
}


/* v0.6.3: breed-page service bridge, matching the Atlas / hub tiles */
#tyb-content .tyb-bottom-tools { margin: 28px 0 8px; padding: 18px 0 4px; border-top: 1px solid #dce5df; color: #12314e; }
#tyb-content .tyb-bottom-tools-heading { margin: 0 0 13px; }
#tyb-content .tyb-bottom-tools-heading h2 { margin: 0 0 5px; font-size: 23px; font-weight: 750; line-height: 1.3; color: #129843; }
#tyb-content .tyb-bottom-tools-heading p { margin: 0; font-size: 13px; color: #617684; line-height: 1.5; }
#tyb-content .tyb-bottom-tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
#tyb-content .tyb-bottom-tool { display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 128px; padding: 15px 16px; border: 1px solid #d9e5dc; border-left: 3px solid #129843; background: #f3faf5; color: #12314e; text-decoration: none; border-radius: 0; box-shadow: none; }
#tyb-content .tyb-bottom-tool:hover { border-color: #9dceb0; background: #e3f3e9; color: #12314e; }
#tyb-content .tyb-bottom-tool:focus-visible { outline: 2px solid #129843; outline-offset: 3px; }
#tyb-content .tyb-bottom-icon { font-size: 22px; color: #158e47; font-weight: 800; line-height: 1; }
#tyb-content .tyb-bottom-tool strong { font-size: 16px; line-height: 1.25; font-weight: 750; color: #12314e; }
#tyb-content .tyb-bottom-tool small { font-size: 12px; line-height: 1.4; font-weight: 400; color: #617684; }
@media(max-width: 950px) { #tyb-content .tyb-bottom-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 600px) { #tyb-content .tyb-bottom-tools-grid { gap: 8px; } #tyb-content .tyb-bottom-tool { padding: 12px; min-height: 114px; } #tyb-content .tyb-bottom-tool strong { font-size: 14px; } #tyb-content .tyb-bottom-tool small { font-size: 11px; } #tyb-content .tyb-bottom-tools-heading h2 { font-size: 21px; } }

/* v0.6.8: matches the four-column Atlas breed card layout. */
#tyb-content .tyb-similar {margin:30px 0 18px;padding-top:20px;border-top:1px solid #dce5df;}
#tyb-content .tyb-similar-heading {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-bottom:14px;}
#tyb-content .tyb-similar-heading h2 {margin:0;color:#129843;font-size:24px;line-height:1.3;font-weight:750;}
#tyb-content .tyb-similar-heading p {margin:0;color:#617684;font-size:12px;}
#tyb-content .tyb-similar-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
#tyb-content .tyb-similar-card {min-width:0;margin:0;}
#tyb-content .tyb-similar-link {display:block;color:#12314e;text-decoration:none;}
#tyb-content .tyb-similar-photo {display:block;width:100%;aspect-ratio:4/3;overflow:hidden;background:#edf1ee;}
#tyb-content .tyb-similar-photo img {width:100%;height:100%;object-fit:cover;display:block;max-width:none;}
#tyb-content .tyb-similar-card strong {display:block;margin-top:8px;font-size:15px;line-height:1.35;font-weight:750;color:#12314e;}
#tyb-content .tyb-similar-card a:hover strong {color:#129843;}
#tyb-content .tyb-similar-card small {display:block;margin-top:4px;font-size:11px;color:#617684;line-height:1.3;}
#tyb-content .tyb-similar-no-photo {display:flex;justify-content:center;align-items:center;height:100%;color:#617684;font-size:13px;}
#tyb-content .tyb-similar-info {margin:13px 0 0;font-size:13px;color:#617684;line-height:1.55;}
@media(max-width:760px){#tyb-content .tyb-similar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 11px;}#tyb-content .tyb-similar-heading h2{font-size:21px;}#tyb-content .tyb-similar-card strong{font-size:13px;}}
