:root {
  --babiro-primary: #ff4880;
  --babiro-primary-dark: #d92e68;
  --babiro-accent: #4d65f9;
  --babiro-surface: #ffecf2;
  --babiro-surface-alt: #eef8f5;
  --babiro-ink: #393d72;
  --babiro-muted: #6f7384;
  --babiro-line: #f2dce5;
  --babiro-white: #fff;
  --babiro-mint: #1f9874;
  --babiro-yellow: #ffd166;
  --babiro-deep: #1c2545;
  --babiro-deep-alt: #2d3971;
  --babiro-container: 1240px;
  --babiro-radius: 22px;
  --babiro-shadow: 0 16px 50px rgba(35, 45, 90, .1);
  --babiro-shadow-soft: 0 9px 30px rgba(35, 45, 90, .07);
  --babiro-heading: ui-rounded, "Arial Rounded MT Bold", "Avenir Next", system-ui, sans-serif;
  --babiro-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--babiro-ink); background: var(--babiro-surface); font: 400 1rem/1.65 var(--babiro-body); text-rendering: optimizeLegibility; }
body.babiro-heading-humanist { --babiro-heading: "Avenir Next", "Segoe UI", system-ui, sans-serif; }
body.babiro-heading-classic { --babiro-heading: Georgia, "Times New Roman", serif; }
body.babiro-body-humanist { --babiro-body: "Avenir Next", "Segoe UI", system-ui, sans-serif; }
body.babiro-body-serif { --babiro-body: Georgia, "Times New Roman", serif; }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--babiro-primary-dark); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--babiro-primary); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .55em; color: var(--babiro-ink); font-family: var(--babiro-heading); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
p { margin: 0 0 1.15em; }
ul, ol { padding-inline-start: 1.3em; }
.wrap { width: min(calc(100% - 40px), var(--babiro-container)); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1480px; }
.section { padding: clamp(58px, 7.5vw, 110px) 0; }
.section--white { background: var(--babiro-white); }
.section--tint { background: linear-gradient(180deg, var(--babiro-surface), var(--babiro-surface-alt)); }
.section--ink { background: var(--babiro-deep); color: #eef1ff; }
.section--ink h2, .section--ink h3, .section--ink a { color: #fff; }
.eyebrow { margin: 0 0 .7rem; color: var(--babiro-primary-dark); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section--ink .eyebrow, .pro-strip .eyebrow { color: #b9c4ff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .skip-link:focus { position: fixed !important; z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; color: #111; border: 3px solid var(--babiro-primary); border-radius: 8px; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #0b75c9; outline-offset: 3px; }
.babiro-icon { flex: 0 0 auto; vertical-align: -.16em; }

.button, button.button, input[type="submit"] { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 2px solid var(--babiro-primary); border-radius: 999px; color: #fff; background: var(--babiro-primary); box-shadow: 0 8px 20px rgba(66, 87, 214, .18); font-weight: 800; line-height: 1.15; text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { color: #fff; background: var(--babiro-primary-dark); border-color: var(--babiro-primary-dark); box-shadow: 0 11px 25px rgba(48, 67, 184, .24); transform: translateY(-1px); }
.button--secondary { color: var(--babiro-primary-dark); background: #fff; box-shadow: none; }
.button--secondary:hover { color: var(--babiro-primary-dark); background: #eef0ff; }
.button--quiet { width: 100%; color: var(--babiro-ink); background: #f2f4fb; border-color: transparent; box-shadow: none; }
.button--light { color: var(--babiro-primary-dark); background: #fff; border-color: #fff; }
.button--small { min-height: 40px; padding: 8px 15px; font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }
.icon-link { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--babiro-line); border-radius: 50%; color: var(--babiro-primary-dark); background: #fff; }
button.icon-link { appearance: none; }
.icon-link:hover { color: #fff; background: var(--babiro-primary); border-color: var(--babiro-primary); }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.badge--free { color: #075c43; background: #dff8ef; }
.badge--pro { color: #442800; background: var(--babiro-yellow); }
.chip { display: inline-flex; align-items: center; padding: 6px 11px; border: 1px solid var(--babiro-line); border-radius: 999px; color: var(--babiro-muted); background: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; }

.announcement-bar { padding: 7px 0; color: #fff; background: var(--babiro-deep); font-size: .83rem; font-weight: 700; text-align: center; }
.announcement-bar a { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.site-header { position: relative; z-index: 100; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(223,227,241,.8); }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
.site-header__inner { display: flex; min-height: 78px; align-items: center; gap: 26px; }
.site-logo { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--babiro-ink); font-family: var(--babiro-heading); font-size: 1.42rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.site-logo:hover { color: var(--babiro-ink); }
.site-logo__mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px 15px 12px 17px; color: #fff; background: var(--babiro-primary); box-shadow: inset -7px -7px 0 rgba(0,0,0,.08); transform: rotate(-4deg); }
.site-logo__word { font-size: 1.55rem; }
.site-logo__image { display: block; max-width: 210px; max-height: 56px; width: auto; }
.site-navigation { flex: 1 1 auto; }
.product-menu, .custom-menu { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.product-menu > li > a, .product-menu summary, .custom-menu > li > a { display: flex; min-height: 44px; align-items: center; padding: 9px 10px; color: var(--babiro-ink); border-radius: 12px; font-size: .89rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.product-menu > li > a:hover, .product-menu summary:hover { color: var(--babiro-primary-dark); background: var(--babiro-surface); }
.product-menu details { position: relative; }
.product-menu summary { list-style: none; cursor: pointer; }
.product-menu summary::-webkit-details-marker { display: none; }
.product-menu summary::after { width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid; border-bottom: 2px solid; content: ""; transform: rotate(45deg) translateY(-2px); }
.menu-panel { position: absolute; top: calc(100% + 10px); left: 0; width: 320px; padding: 22px; background: #fff; border: 1px solid var(--babiro-line); border-radius: 18px; box-shadow: var(--babiro-shadow); }
.menu-panel--subjects { width: 420px; }
.menu-panel__title { margin-bottom: 10px; color: var(--babiro-muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.menu-panel ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 16px; padding: 0; margin: 0; list-style: none; }
.menu-panel a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--babiro-ink); font-weight: 700; text-decoration: none; }
.menu-panel a:hover { background: var(--babiro-surface); }
.custom-menu { display: none; }
.site-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.header-search-toggle, .nav-toggle, .header-search-close, .filters-close { display: inline-grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--babiro-line); border-radius: 50%; color: var(--babiro-ink); background: #fff; }
.account-link { display: inline-flex; align-items: center; gap: 6px; color: var(--babiro-ink); font-size: .86rem; font-weight: 800; text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.header-search { border-top: 1px solid var(--babiro-line); background: #fff; }
.header-search .wrap { position: relative; padding-block: 18px; }
.header-search-close { position: absolute; top: 21px; right: 3px; }
.product-search { position: relative; display: flex; max-width: 760px; gap: 10px; }
.product-search__icon { position: absolute; z-index: 1; top: 50%; left: 17px; color: var(--babiro-muted); transform: translateY(-50%); }
.product-search input[type="search"] { width: 100%; min-height: 50px; padding: 11px 16px 11px 48px; border: 1px solid #cbd2e7; border-radius: 999px; color: var(--babiro-ink); background: #fff; }
.search-suggestions { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 100px; padding: 8px; background: #fff; border: 1px solid var(--babiro-line); border-radius: 16px; box-shadow: var(--babiro-shadow); }
.search-suggestion { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--babiro-ink); text-decoration: none; }
.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background: var(--babiro-surface); }

.breadcrumbs { padding-block: 13px; font-size: .78rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: #9aa3bc; }
.breadcrumbs a { color: var(--babiro-muted); text-decoration: none; }

.home-hero { position: relative; overflow: hidden; padding: clamp(58px, 7vw, 100px) 0 80px; background: radial-gradient(circle at 15% 20%, rgba(255,209,102,.3), transparent 28%), linear-gradient(130deg, #f7f8ff 0%, #eef9f4 100%); }
.home-hero::after { position: absolute; border-radius: 50%; content: ""; pointer-events: none; }
.home-hero::after { bottom: -130px; left: 38%; width: 250px; height: 250px; background: rgba(255,107,107,.09); }
.home-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); gap: clamp(35px, 6vw, 90px); align-items: center; }
.home-hero h1 { max-width: 720px; margin-bottom: .35em; }
.home-hero__lead { max-width: 660px; color: var(--babiro-muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 25px; color: #3e4968; font-size: .83rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hero-trust svg { color: var(--babiro-mint); }
.home-hero__visual { position: relative; }
.home-hero__visual > img { display: block; width: 100%; filter: drop-shadow(0 24px 36px rgba(37,45,85,.13)); }
.hero-note { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: var(--babiro-shadow-soft); font-size: .78rem; font-weight: 800; }
.hero-note--one { top: 12%; left: -4%; flex-direction: column; gap: 0; align-items: flex-start; }
.hero-note--one strong { color: var(--babiro-primary); font-family: var(--babiro-heading); font-size: 1.5rem; line-height: 1; }
.hero-note--two { right: -2%; bottom: 12%; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p:last-child { max-width: 650px; margin-bottom: 0; color: var(--babiro-muted); }
.section-heading--light p { color: #c7ceee; }
.section-heading--center { justify-content: center; text-align: center; }
.grade-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.grade-card { display: flex; min-height: 98px; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); color: var(--babiro-ink); background: #fff; box-shadow: var(--babiro-shadow-soft); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.grade-card:hover { color: var(--babiro-ink); box-shadow: var(--babiro-shadow); transform: translateY(-3px); }
.grade-card > svg { margin-left: auto; color: var(--babiro-muted); }
.grade-card__mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px 19px 13px 18px; color: #26336d; background: #e8ebff; font-family: var(--babiro-heading); font-size: 1.05rem; font-weight: 900; transform: rotate(-2deg); }
.grade-card--2 .grade-card__mark { color: #7b3100; background: #ffead6; transform: rotate(2deg); }
.grade-card--3 .grade-card__mark { color: #075c43; background: #dff8ef; }
.grade-card--4 .grade-card__mark { color: #6c3b00; background: #fff2c6; transform: rotate(2deg); }
.grade-card strong, .grade-card small { display: block; }
.grade-card small { margin-top: 2px; color: var(--babiro-muted); font-size: .72rem; }
.subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.subject-card { position: relative; display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; padding: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: calc(var(--babiro-radius) + 4px); color: var(--babiro-ink); background: #fff; box-shadow: var(--babiro-shadow-soft); text-decoration: none; }
.subject-card::after { position: absolute; right: -36px; bottom: -38px; width: 110px; height: 110px; border-radius: 50%; background: rgba(66,87,214,.07); content: ""; }
.subject-card > svg { position: absolute; right: 18px; top: 20px; color: var(--babiro-primary); }
.subject-card__icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 18px; border-radius: 17px; color: #fff; background: var(--babiro-primary); font-family: var(--babiro-heading); font-size: 1.35rem; font-weight: 900; }
.subject-card:nth-child(2n) .subject-card__icon { background: #d95563; }
.subject-card:nth-child(3n) .subject-card__icon { background: var(--babiro-mint); }
.subject-card:nth-child(4n) .subject-card__icon { color: #4b3500; background: var(--babiro-yellow); }
.subject-card strong, .subject-card small { display: block; }
.subject-card strong { margin-bottom: 5px; font-family: var(--babiro-heading); font-size: 1.15rem; }
.subject-card small { color: var(--babiro-muted); line-height: 1.45; }
.worksheet-finder { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(28px, 5vw, 55px); border-radius: calc(var(--babiro-radius) + 8px); background: var(--babiro-deep); color: #eaf0ff; box-shadow: var(--babiro-shadow); }
.worksheet-finder h2 { color: #fff; }
.worksheet-finder p:not(.eyebrow) { color: #c7ceee; }
.worksheet-finder form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.worksheet-finder label span, .filters-panel label span { display: block; margin-bottom: 6px; font-size: .76rem; font-weight: 800; letter-spacing: .05em; }
.worksheet-finder select { width: 100%; min-height: 50px; padding: 10px 36px 10px 13px; border: 1px solid #616d9e; border-radius: 13px; color: var(--babiro-ink); background: #fff; }
.worksheet-finder button { grid-column: 1 / -1; }

.worksheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.worksheet-grid--compact { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.worksheet-grid--spacious { gap: 32px; }
.worksheet-card { min-width: 0; overflow: hidden; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; box-shadow: var(--babiro-shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.worksheet-card:hover { box-shadow: var(--babiro-shadow); transform: translateY(-3px); }
.worksheet-card__preview { position: relative; display: block; aspect-ratio: 1 / .78; overflow: hidden; background: #edf0f9; text-decoration: none; }
.worksheet-card__preview img { display: block; width: 68%; height: 90%; margin: 5% auto 0; object-fit: cover; object-position: top; border-radius: 3px; box-shadow: 0 8px 24px rgba(28,37,69,.2); transition: transform .22s ease; }
.worksheet-card:hover .worksheet-card__preview img { transform: translateY(-3px) scale(1.012); }
.worksheet-card__preview .badge { position: absolute; top: 13px; left: 13px; z-index: 2; }
.worksheet-card__paper-tab { position: absolute; right: 20px; bottom: 0; width: 42px; height: 13px; border-radius: 8px 8px 0 0; background: var(--babiro-accent); }
.worksheet-card__body { padding: 19px; }
.worksheet-card__meta { display: flex; min-height: 23px; flex-wrap: wrap; gap: 5px 9px; margin-bottom: 7px; }
.worksheet-card__meta a { color: var(--babiro-primary-dark); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.worksheet-card__title { margin-bottom: 7px; font-size: 1.17rem; }
.worksheet-card__title a { color: var(--babiro-ink); text-decoration: none; }
.worksheet-card__body > p { min-height: 46px; margin-bottom: 13px; color: var(--babiro-muted); font-size: .86rem; line-height: 1.5; }
.worksheet-card__actions { display: flex; min-height: 40px; align-items: center; gap: 8px; }
.worksheet-card__actions .text-link { margin-right: auto; font-size: .82rem; }
.gentle-empty { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; padding: 28px; border: 2px dashed #cfd5e8; border-radius: var(--babiro-radius); text-align: center; }
.gentle-empty--dark { border-color: #4a5688; }
.generator-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.generator-card { display: flex; min-height: 220px; flex-direction: column; padding: 25px; border: 1px solid #3c4879; border-radius: var(--babiro-radius); color: #dbe1ff; background: #252f56; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.generator-card:hover { color: #fff; border-color: #9caaff; transform: translateY(-3px); }
.generator-card__icon { display: grid; width: 47px; height: 47px; place-items: center; margin-bottom: 21px; border-radius: 15px; color: var(--babiro-deep); background: var(--babiro-yellow); }
.generator-card h3 { color: #fff; }
.generator-card p { color: #c7ceee; font-size: .87rem; }
.generator-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: .78rem; font-weight: 800; }
.collection-feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 390px; overflow: hidden; border-radius: calc(var(--babiro-radius) + 10px); color: #fff; background: linear-gradient(135deg, var(--babiro-primary-dark), #6b58d9); box-shadow: var(--babiro-shadow); }
.collection-feature__copy { align-self: center; padding: clamp(32px, 6vw, 70px); }
.collection-feature h2 { color: #fff; }
.collection-feature p:not(.eyebrow) { color: #e5e8ff; }
.collection-feature__art { min-height: 320px; background: rgba(255,255,255,.08); }
.collection-feature__art img { width: 100%; height: 100%; object-fit: cover; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.value-grid article { padding: 28px; border-radius: var(--babiro-radius); background: var(--babiro-surface); }
.value-grid article > svg { margin-bottom: 22px; color: var(--babiro-primary); }
.value-grid p { margin-bottom: 0; color: var(--babiro-muted); }
.pro-strip { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: clamp(30px, 5vw, 56px); border-radius: calc(var(--babiro-radius) + 8px); color: #e8ebff; background: linear-gradient(120deg, #1c2545, #33438a); box-shadow: var(--babiro-shadow); }
.pro-strip h2 { margin-top: 12px; color: #fff; }
.pro-strip p { max-width: 720px; margin-bottom: 0; color: #cbd2f4; }

.resource-grid, .collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.resource-card, .collection-card { overflow: hidden; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; box-shadow: var(--babiro-shadow-soft); }
.resource-card__image, .collection-card__image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9ecf7; }
.resource-card__image img, .collection-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.resource-card:hover img, .collection-card:hover img { transform: scale(1.025); }
.resource-card__placeholder, .collection-card__image > span:not(.badge) { display: grid; height: 100%; place-items: center; color: var(--babiro-primary); }
.collection-card__image .badge { position: absolute; top: 13px; left: 13px; }
.resource-card__body, .collection-card__body { padding: 22px; }
.resource-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 9px; color: var(--babiro-muted); font-size: .72rem; }
.resource-card h2, .collection-card h2 { font-size: 1.3rem; }
.resource-card h2 a, .collection-card h2 a { color: var(--babiro-ink); text-decoration: none; }
.resource-card p, .collection-card p { color: var(--babiro-muted); font-size: .9rem; }

.archive-header { max-width: 850px; margin-bottom: 42px; }
.archive-header > p:last-child, .archive-description { color: var(--babiro-muted); font-size: 1.06rem; }
.archive-header--split { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 30px; }
.archive-header--split > div { max-width: 850px; }
.filter-toggle { display: none; }
.discovery-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 34px; align-items: start; }
.filters-panel { position: sticky; top: 110px; padding: 21px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; box-shadow: var(--babiro-shadow-soft); }
.filters-panel__heading { display: flex; align-items: center; justify-content: space-between; }
.filters-panel h2 { font-size: 1.22rem; }
.filters-close { display: none; }
.filters-panel label { display: block; margin-bottom: 16px; }
.filters-panel select { width: 100%; min-height: 44px; padding: 8px 34px 8px 10px; border: 1px solid #cbd2e7; border-radius: 11px; background: #fff; }
.filters-panel .button { width: 100%; }
.filters-panel .text-link { display: flex; justify-content: center; margin-top: 12px; font-size: .8rem; }
.results-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--babiro-muted); font-size: .86rem; }
.results-summary strong { color: var(--babiro-ink); }
.navigation.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 0 10px; border: 1px solid var(--babiro-line); border-radius: 11px; color: var(--babiro-ink); background: #fff; font-weight: 800; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--babiro-primary); border-color: var(--babiro-primary); }

.hub-hero, .page-hero, .resource-hero { padding: clamp(48px, 7vw, 90px) 0; background: radial-gradient(circle at 88% 18%, rgba(255,209,102,.22), transparent 27%), linear-gradient(135deg, #f7f8ff, #edf8f4); }
.hub-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) 160px; align-items: center; gap: 50px; }
.hub-hero__description, .page-hero p, .resource-hero__excerpt { max-width: 780px; color: var(--babiro-muted); font-size: 1.1rem; }
.hub-hero__mark { display: grid; width: 150px; height: 150px; place-items: center; border-radius: 42px 58px 38px 55px; color: #fff; background: var(--babiro-primary); box-shadow: var(--babiro-shadow); font-family: var(--babiro-heading); font-size: 4.2rem; font-weight: 900; transform: rotate(4deg); }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--babiro-line); border-radius: 999px; color: var(--babiro-ink); background: #fff; font-weight: 800; text-decoration: none; }
.chip-list span { color: var(--babiro-muted); font-size: .72rem; }

.worksheet-product-header { padding: 42px 0 28px; }
.worksheet-product-header > div { max-width: 900px; }
.worksheet-product-header h1 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
.worksheet-product-header__badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.worksheet-objective { color: var(--babiro-muted); font-size: 1.12rem; }
.worksheet-product-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: clamp(28px, 5vw, 65px); align-items: start; padding-bottom: 65px; }
.worksheet-product-layout--top, .worksheet-product-layout--center { grid-template-columns: 1fr; }
.worksheet-product-layout--center .worksheet-preview-frame { max-width: 780px; margin-inline: auto; }
.worksheet-preview-frame { min-height: 500px; padding: clamp(18px, 4vw, 42px); background: #e9ecf7; border-radius: calc(var(--babiro-radius) + 5px); }
.worksheet-preview-frame > img, .worksheet-preview-frame .babiro-static-sheet { display: block; width: min(100%, 760px); margin: auto; background: #fff; box-shadow: 0 18px 48px rgba(30,40,78,.2); }
.worksheet-product-panel { position: sticky; top: 112px; padding: 27px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; box-shadow: var(--babiro-shadow); }
.worksheet-product-panel--static { position: static; }
.worksheet-product-panel > p { color: var(--babiro-muted); }
.worksheet-primary-actions { display: grid; gap: 10px; margin: 20px 0 12px; }
.answer-link { display: flex; align-items: center; gap: 8px; padding: 11px 0; font-weight: 800; }
.worksheet-facts, .side-card dl { margin: 20px 0 0; border-top: 1px solid var(--babiro-line); }
.worksheet-facts div, .side-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--babiro-line); }
.worksheet-facts dt, .side-card dt { color: var(--babiro-muted); }
.worksheet-facts dd, .side-card dd { margin: 0; font-weight: 800; text-align: right; }
.prose-layout { display: grid; grid-template-columns: minmax(0,820px) minmax(240px,1fr); gap: 50px; padding-top: 55px; padding-bottom: 80px; }
.prose { font-size: 1.04rem; }
.prose > * { max-width: 100%; }
.prose h2, .prose h3 { margin-top: 1.7em; }
.prose p, .prose li { color: #394461; }
.prose blockquote { padding: 18px 24px; margin: 28px 0; border-left: 5px solid var(--babiro-primary); background: var(--babiro-surface); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px; border: 1px solid var(--babiro-line); text-align: left; }
.review-note { display: flex; gap: 12px; padding: 17px; border-radius: 15px; background: #eef8f4; }
.review-note svg { flex: 0 0 auto; color: var(--babiro-mint); }
.review-note p { margin: 0; }
.side-card, .generator-match-card { padding: 22px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; box-shadow: var(--babiro-shadow-soft); }

.collection-hero { padding: 70px 0; color: #e8ebff; background: var(--babiro-deep); }
.collection-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.collection-hero h1 { margin-top: 13px; color: #fff; }
.collection-hero p { color: #cbd2f4; font-size: 1.1rem; }
.collection-hero__image { display: grid; min-height: 320px; place-items: center; overflow: hidden; border-radius: calc(var(--babiro-radius) + 6px); color: #b8c1f6; background: #2b3768; }
.collection-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.resource-byline { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--babiro-muted); font-size: .82rem; font-weight: 700; }
.resource-featured { margin-top: -30px; }
.resource-featured img { display: block; max-height: 720px; width: 100%; object-fit: cover; border-radius: calc(var(--babiro-radius) + 4px); box-shadow: var(--babiro-shadow); }
.search-page .product-search { margin-top: 22px; }
.search-results-list { border-top: 1px solid var(--babiro-line); }
.search-result { display: grid; grid-template-columns: 100px minmax(0,1fr) 44px; gap: 20px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--babiro-line); }
.search-result__type { color: var(--babiro-primary-dark); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.search-result h2 { margin-bottom: 4px; font-size: 1.3rem; }
.search-result h2 a { color: var(--babiro-ink); text-decoration: none; }
.search-result p { margin: 0; color: var(--babiro-muted); }
.empty-state { max-width: 650px; padding: 50px; margin: 30px auto; border: 2px dashed #cbd2e7; border-radius: var(--babiro-radius); text-align: center; }
.empty-state__icon { display: grid; width: 70px; height: 70px; place-items: center; margin: 0 auto 20px; border-radius: 23px; color: var(--babiro-primary); background: #e9ecff; }
.empty-state .button-row { justify-content: center; }
.not-found-page { display: grid; min-height: 70vh; place-items: center; padding: 80px 0; background: radial-gradient(circle at 50% 20%, rgba(255,209,102,.28), transparent 28%), var(--babiro-surface); }
.not-found-page__inner { max-width: 760px; text-align: center; }
.not-found-page__number { color: var(--babiro-primary); font-family: var(--babiro-heading); font-size: clamp(5rem, 16vw, 10rem); font-weight: 900; line-height: .8; opacity: .15; }
.not-found-page .product-search { margin: 25px auto; }
.not-found-page .button-row { justify-content: center; }

/* Generator, account, Pro and admin-facing shortcodes supplied by Core. */
.generator-hero { padding: 50px 0 30px; }
.generator-hero__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.generator-workspace { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); gap: 28px; align-items: start; padding-bottom: 90px; }
.generator-controls, .generator-preview, .account-card, .pricing-card { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; box-shadow: var(--babiro-shadow-soft); }
.generator-controls { position: sticky; top: 110px; }
.generator-controls fieldset { padding: 0; margin: 0 0 18px; border: 0; }
.generator-controls legend { margin-bottom: 10px; font-family: var(--babiro-heading); font-weight: 900; }
.generator-controls label { display: block; margin-bottom: 15px; font-weight: 700; }
.generator-controls label > span { display: block; margin-bottom: 5px; font-size: .78rem; }
.generator-controls input:not([type="checkbox"]):not([type="radio"]), .generator-controls select, .generator-controls textarea, .babiro-form input:not([type="checkbox"]):not([type="radio"]), .babiro-form select, .babiro-form textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #c5cce1; border-radius: 11px; background: #fff; }
.generator-controls .button { width: 100%; }
.generator-advanced { padding-top: 13px; border-top: 1px solid var(--babiro-line); }
.generator-advanced summary { font-weight: 800; }
.generator-preview { min-height: 540px; background: #e9ecf7; }
.generated-sheet, .babiro-static-sheet { width: min(100%, 760px); min-height: 760px; padding: clamp(25px, 5vw, 55px); margin: auto; color: #141b2d; background: #fff; box-shadow: 0 12px 35px rgba(35,45,90,.18); }
.generated-sheet__header { padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid #222; }
.generated-sheet__student { display: flex; gap: 25px; margin-top: 14px; font-size: .82rem; }
.generated-sheet__student span { flex: 1; border-bottom: 1px solid #333; }
.generated-questions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 35px; padding: 0; margin: 0; counter-reset: question; list-style: none; }
.generated-question { position: relative; min-height: 64px; padding-left: 27px; counter-increment: question; }
.generated-question::before { position: absolute; left: 0; content: counter(question) "."; font-weight: 800; }
.answer-blank { display: inline-block; min-width: 70px; margin-left: 8px; border-bottom: 1px solid; }
.generator-result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.generator-message { padding: 12px 15px; margin-bottom: 15px; border-radius: 10px; background: #e9f8f2; }
.generator-message--error { color: #7a1d26; background: #fdebed; }
.account-shell { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 28px; align-items: start; }
.account-nav { position: sticky; top: 110px; padding: 14px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; }
.account-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--babiro-ink); font-weight: 750; text-decoration: none; }
.account-nav a:hover, .account-nav a[aria-current="page"] { color: var(--babiro-primary-dark); background: var(--babiro-surface); }
.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.account-card h3 { font-size: 1.15rem; }
.table-scroll { overflow-x: auto; }
.babiro-table { width: 100%; border-collapse: collapse; background: #fff; }
.babiro-table th, .babiro-table td { padding: 12px; border-bottom: 1px solid var(--babiro-line); text-align: left; }
.pricing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.pricing-card--featured { border: 2px solid var(--babiro-primary); box-shadow: var(--babiro-shadow); }
.pricing-card__price { font-family: var(--babiro-heading); font-size: 2.6rem; font-weight: 900; }
.pricing-card ul { padding: 0; list-style: none; }
.pricing-card li { display: flex; gap: 8px; margin-bottom: 9px; }
.babiro-pricing { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.babiro-pricing .pricing-card, .user-collection-grid article, .notice-card, .privacy-summary, .teacher-tools { padding: clamp(18px,3vw,28px); border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; }
.babiro-pricing .pricing-card ul { padding-left: 1.2rem; }
.integration-pending { padding: 10px 12px; border-radius: 10px; background: var(--babiro-surface); font-size: .85rem; }
.account-stat-grid, .user-collection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.account-stat-grid a { display: grid; padding: 22px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); color: var(--babiro-ink); text-decoration: none; background: #fff; }
.account-stat-grid strong { color: var(--babiro-primary); font: 900 2rem/1 var(--babiro-heading); }
.babiro-history { overflow-x: auto; }.babiro-history table { width: 100%; border-collapse: collapse; background: #fff; }.babiro-history th,.babiro-history td { padding: 12px; border-bottom: 1px solid var(--babiro-line); text-align: left; }
.babiro-inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 18px; margin-bottom: 22px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; }.babiro-inline-form label { flex: 1 1 280px; }.babiro-inline-form input { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--babiro-line); border-radius: 10px; }
.user-collection-items { padding: 0; list-style: none; }.user-collection-items li { display: flex; justify-content: space-between; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--babiro-line); }.user-collection-items form { margin: 0; }.collection-add { display: grid; gap: 8px; margin-block: 15px; }.collection-add select { width: 100%; min-height: 42px; border: 1px solid var(--babiro-line); border-radius: 8px; }.babiro-favorite.is-saved { color: #fff; background: var(--babiro-primary); }
.ai-creator { display: grid; gap: 16px; max-width: 900px; }.ai-creator label { display: grid; gap: 7px; font-weight: 800; }.ai-creator textarea { width: 100%; padding: 14px; border: 1px solid var(--babiro-line); border-radius: 12px; }.ai-creator [data-ai-result] { display: grid; gap: 16px; margin-top: 18px; }.ai-variants { padding: 14px; border: 1px solid var(--babiro-line); border-radius: 12px; background: var(--babiro-surface); }

.footer-newsletter { padding: 48px 0; color: #e9edff; background: var(--babiro-deep-alt); }
.footer-newsletter h2 { color: #fff; }
.footer-newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.babiro-newsletter-form, .newsletter-form { display: flex; flex-wrap: wrap; gap: 9px; }
.babiro-newsletter-form input[type="email"], .newsletter-form input[type="email"] { flex: 1 1 240px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--babiro-line); border-radius: 999px; }
.babiro-newsletter-form .consent-field, .newsletter-form .newsletter-consent { flex: 1 0 100%; font-size: .75rem; }
.site-footer { padding: 68px 0 22px; color: #bdc5e6; background: #161d38; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 45px; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .02em; }
.site-logo--footer { margin-bottom: 18px; color: #fff; }
.site-logo--footer:hover { color: #fff; }
.site-footer__brand p { max-width: 420px; }
.site-footer .menu { padding: 0; margin: 0; list-style: none; }
.site-footer .menu li { margin-bottom: 8px; }
.site-footer a { color: #dfe4ff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 22px; margin-top: 45px; border-top: 1px solid #30395d; font-size: .76rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__custom-links .menu { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.seed-credit { text-align: right; }
.consent-banner { position: fixed; z-index: 9999; right: 20px; bottom: 20px; width: min(430px, calc(100% - 40px)); padding: 20px; border: 1px solid var(--babiro-line); border-radius: 18px; background: #fff; box-shadow: 0 20px 70px rgba(12,20,45,.25); }
.consent-banner h2 { font-size: 1.2rem; }
.consent-banner p { color: var(--babiro-muted); font-size: .84rem; }
.ad-placement { display: block; min-height: 90px; margin: 24px auto; overflow: hidden; text-align: center; }
.ad-placement[data-empty="true"] { display: none; }
.babiro-ad { min-height: 90px; margin: 24px auto; overflow: hidden; text-align: center; }.babiro-ad--placeholder { display: grid; place-items: center; border: 1px dashed var(--babiro-line); color: var(--babiro-muted); font-size: .75rem; }
.worksheet-grid > .babiro-ad { grid-column: 1 / -1; width: 100%; }
.inline-newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 35px; border: 1px solid var(--babiro-line); border-radius: var(--babiro-radius); background: #fff; }

@media (max-width: 1180px) {
  .product-menu > li:nth-last-child(2), .product-menu > li:nth-last-child(3) { display: none; }
  .account-link span, .header-cta { display: none; }
  .home-hero__grid { grid-template-columns: minmax(0,1fr) minmax(350px,.8fr); }
  .grade-grid, .subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .worksheet-grid--compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .admin-bar.has-sticky-header .site-header { top: 46px; }
  .js .nav-toggle { display: inline-grid; }
  .js .site-navigation { position: fixed; z-index: 101; top: 0; left: 0; width: min(390px, 90vw); height: 100dvh; padding: 84px 20px 25px; overflow-y: auto; background: #fff; box-shadow: 22px 0 60px rgba(20,28,55,.2); transform: translateX(-105%); transition: transform .25s ease; }
  .js .site-navigation.is-open { transform: translateX(0); }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 10px; }
  .no-js .site-navigation { order: 3; flex-basis: 100%; }
  .product-menu, .custom-menu { display: block; }
  .product-menu > li > a, .product-menu summary { width: 100%; font-size: 1rem; }
  .product-menu > li:nth-last-child(2), .product-menu > li:nth-last-child(3) { display: block; }
  .menu-panel, .menu-panel--subjects { position: static; width: auto; padding: 9px 0 9px 15px; border: 0; box-shadow: none; }
  .menu-panel ul { grid-template-columns: 1fr; }
  .site-header__actions { margin-left: auto; }
  .header-search-toggle { display: inline-grid; }
  .home-hero__grid, .worksheet-finder, .collection-feature, .collection-hero__grid, .footer-newsletter__inner, .inline-newsletter { grid-template-columns: 1fr; }
  .home-hero__copy { text-align: center; }
  .home-hero__copy .button-row, .hero-trust { justify-content: center; }
  .home-hero__visual { max-width: 650px; margin: auto; }
  .worksheet-grid, .resource-grid, .collection-grid, .generator-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .discovery-layout { grid-template-columns: 1fr; }
  .js .filter-toggle { display: inline-flex; }
  .js .filters-panel { position: fixed; z-index: 1000; inset: 0 0 0 auto; width: min(390px, 92vw); overflow-y: auto; border-radius: 0; transform: translateX(105%); transition: transform .23s ease; }
  .js .filters-panel.is-open { transform: translateX(0); }
  .js .filters-close { display: inline-grid; }
  .worksheet-product-layout, .prose-layout, .generator-workspace, .account-shell { grid-template-columns: 1fr; }
  .worksheet-product-panel, .generator-controls, .account-nav { position: static; }
  .site-footer__grid { grid-template-columns: 1.4fr repeat(2,1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--babiro-container)); }
  .site-header__inner { min-height: 68px; gap: 10px; }
  .site-logo__word { font-size: 1.35rem; }
  .site-header__actions .account-link { display: none; }
  .header-search-toggle, .nav-toggle { width: 39px; height: 39px; }
  .product-search { display: grid; grid-template-columns: 1fr auto; }
  .search-suggestions { right: 0; }
  .home-hero { padding-top: 45px; }
  .home-hero__visual { margin-top: 15px; }
  .hero-note--one { left: 0; }
  .hero-note--two { right: 0; }
  .section-heading, .archive-header--split, .pro-strip { align-items: flex-start; flex-direction: column; }
  .grade-grid, .subject-grid, .worksheet-grid, .worksheet-grid--compact, .resource-grid, .collection-grid, .generator-grid, .value-grid, .pricing-grid, .babiro-pricing, .account-grid, .account-stat-grid, .user-collection-grid { grid-template-columns: 1fr; }
  .worksheet-finder form { grid-template-columns: 1fr; }
  .worksheet-finder button { grid-column: auto; }
  .worksheet-card__preview { aspect-ratio: 1.2 / .8; }
  .hub-hero__grid { grid-template-columns: 1fr; }
  .hub-hero__mark { display: none; }
  .worksheet-preview-frame { min-height: 360px; padding: 14px; }
  .generated-sheet { padding: 24px 20px; }
  .generated-questions { grid-template-columns: 1fr; }
  .search-result { grid-template-columns: 1fr 40px; }
  .search-result__type { grid-column: 1 / -1; }
  .empty-state { padding: 30px 18px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
  .seed-credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.reduce-decorative-motion * { animation: none !important; transition: none !important; }
.babiro-dyslexia-system { --babiro-body: Verdana, Tahoma, Arial, sans-serif; letter-spacing: .015em; word-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .honor-reduced-motion *, .honor-reduced-motion *::before, .honor-reduced-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (forced-colors: active) { .button, .badge, .site-logo__mark { border: 2px solid ButtonText; } }

/*
 * BabyCare seed translation.
 * The supplied HTML template's pink/blue palette, rounded topbar, two-tone
 * wordmark, split hero, organic 50% 20% / 10% 40% surfaces, centered section
 * labels, program-card overlaps and soft patterned bands are mapped here to
 * Babiro's worksheet product. No daycare copy, demo photo or vendor library is
 * loaded by the production theme.
 */
body { background: #fff; }
.button, button.button, input[type="submit"] { border-radius: 24px 10px; box-shadow: 0 8px 22px rgba(255,72,128,.2); }
.button:hover { box-shadow: 0 11px 28px rgba(217,46,104,.25); }
.button--secondary { border-color: var(--babiro-primary); }
.eyebrow { display: inline-block; padding: .3rem .75rem; border-bottom: 2px solid currentColor; border-radius: 10% 30%; color: var(--babiro-primary-dark); letter-spacing: .07em; }

.announcement-bar { padding: 0; color: #fff; background: #fff; }
.announcement-bar .wrap { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 20px; padding: 7px 22px; border-radius: 0 40px; background: var(--babiro-primary); }
.announcement-bar__label, .announcement-bar a { display: inline-flex; align-items: center; gap: 7px; }
.announcement-bar__label { font-size: .75rem; letter-spacing: .03em; }
.announcement-bar a { color: #fff; text-decoration: none; }
.site-header { border-bottom: 1px solid #f7dce6; box-shadow: 0 8px 26px rgba(57,61,114,.045); }
.site-header__inner { min-height: 86px; }
.site-logo { gap: 0; font-size: 1.75rem; }
.site-logo__mark { display: none; }
.site-logo__word { font-size: 1.78rem; letter-spacing: -.055em; }
.site-logo__word-primary { color: var(--babiro-primary); }
.site-logo__word-accent { color: var(--babiro-accent); }
.product-menu > li > a, .product-menu summary, .custom-menu > li > a { color: var(--babiro-ink); font-weight: 700; }
.product-menu > li > a:hover, .product-menu summary:hover { color: var(--babiro-primary-dark); background: #fff2f6; }
.header-search-toggle { color: #fff; background: var(--babiro-primary); border-color: var(--babiro-primary); }
.header-search-toggle:hover { color: #fff; background: var(--babiro-accent); border-color: var(--babiro-accent); }

.home-hero { min-height: 590px; padding: clamp(58px,7vw,94px) 0; background: linear-gradient(118deg, #303465 0%, #393d72 58%, #4d65a6 100%); }
.home-hero::after { bottom: -220px; left: -100px; width: 420px; height: 420px; background: rgba(255,255,255,.07); }
.home-hero__grid { grid-template-columns: minmax(0,.95fr) minmax(430px,1.05fr); gap: clamp(35px,6vw,85px); }
.home-hero h1 { max-width: 650px; color: #fff; font-size: clamp(3.2rem,6.2vw,5.65rem); line-height: .98; }
.home-hero .eyebrow { color: #ff9abb; }
.home-hero__lead { color: #f2eaf0; }
.home-hero .button--secondary { color: var(--babiro-primary-dark); border-color: #fff; background: #fff; }
.home-hero .button--secondary:hover { color: #fff; border-color: var(--babiro-accent); background: var(--babiro-accent); }
.hero-trust { color: #fff; }
.hero-trust svg { color: #ff9abb; }
.home-hero__visual { padding: 20px; }
.home-hero__visual::before { position: absolute; inset: 7% 1% 1% 10%; border-radius: 50% 20% / 10% 40%; background: var(--babiro-primary); content: ""; transform: rotate(3deg); }
.home-hero__visual-frame { position: relative; z-index: 1; overflow: hidden; padding: 10px; border: 7px solid rgba(255,255,255,.9); border-radius: 50% 20% / 10% 40%; background: #fff2f6; box-shadow: 0 24px 60px rgba(16,18,48,.3); }
.home-hero__visual-frame > img { display: block; width: 100%; }
.home-hero__visual > img { filter: none; }
.hero-note { z-index: 2; border-color: #ffd5e2; border-radius: 10% 30%; }
.hero-note--one strong { color: var(--babiro-primary); }
.hero-note--two { right: -8px; bottom: 30px; }

.section-heading--center { position: relative; align-items: center; flex-direction: column; text-align: center; }
.section-heading--center .text-link { margin-top: -10px; }
.section-heading--center p:last-child { margin-inline: auto; }
.section--finder { background: radial-gradient(circle at 10% 20%, rgba(255,72,128,.09) 0 3px, transparent 4px) 0 0/42px 42px, #fff; }
.worksheet-finder { grid-template-columns: .9fr 1.1fr; gap: clamp(38px,7vw,90px); padding: clamp(20px,4vw,50px); color: var(--babiro-ink); background: transparent; box-shadow: none; }
.worksheet-finder h2 { color: var(--babiro-ink); font-size: clamp(2.2rem,4.4vw,4rem); }
.worksheet-finder p:not(.eyebrow) { color: var(--babiro-muted); }
.worksheet-finder__art { position: relative; min-height: 410px; overflow: hidden; border: 7px solid #fff; border-radius: 50% 20% / 10% 40%; background: linear-gradient(145deg, #ffdae6, #fff3f7); box-shadow: 0 20px 55px rgba(57,61,114,.13); }
.finder-sheet { position: absolute; display: flex; flex-direction: column; gap: 21px; width: 56%; min-height: 275px; padding: 30px; border-radius: 12px; color: var(--babiro-ink); background: #fff; box-shadow: 0 16px 36px rgba(57,61,114,.16); }
.finder-sheet--back { top: 48px; left: 48px; color: var(--babiro-accent); transform: rotate(-10deg); }
.finder-sheet--back span { font: 900 2.4rem/1 var(--babiro-heading); letter-spacing: .12em; }
.finder-sheet--back i { height: 10px; border-radius: 10px; background: #e7eaff; }
.finder-sheet--front { right: 38px; bottom: 35px; transform: rotate(7deg); }
.finder-sheet--front strong, .finder-sheet--front span { padding-bottom: 9px; border-bottom: 2px solid #bec3de; font: 800 1.22rem/1.3 var(--babiro-heading); }
.finder-sheet--front small { margin-top: auto; color: var(--babiro-primary); font-weight: 800; }
.finder-art__badge { position: absolute; z-index: 4; right: 32px; top: 32px; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; color: #fff; background: var(--babiro-primary); box-shadow: 0 10px 25px rgba(217,46,104,.3); }
.worksheet-finder__content form { margin-top: 26px; padding: 22px; border: 1px solid #ffd3e1; border-radius: 24px 10px; background: #fff8fa; box-shadow: 0 12px 35px rgba(57,61,114,.08); }
.worksheet-finder select { border-color: #f0b9cb; border-radius: 12px; }

.section--subjects { background: linear-gradient(rgba(255,72,128,.055), rgba(255,72,128,.18)); }
.subject-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.subject-card { min-height: 315px; align-items: center; justify-content: center; padding: 35px 27px; border: 1px solid var(--babiro-primary); border-radius: 50% 20% / 10% 40%; text-align: center; box-shadow: 0 0 45px rgba(57,61,114,.1); isolation: isolate; }
.subject-card::before { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--babiro-accent); content: ""; transition: width .35s ease; }
.subject-card::after { display: none; }
.subject-card > span { position: relative; z-index: 1; }
.subject-card > svg { display: none; }
.subject-card__icon { display: grid; width: 86px; height: 86px; place-items: center; margin-bottom: 20px; border-radius: 50%; color: var(--babiro-primary); background: #fff0f5; }
.subject-card__icon svg { width: 52px; height: 52px; }
.subject-card strong { margin-bottom: 10px; font-size: 1.35rem; }
.subject-card small { min-height: 62px; }
.subject-card__cta { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 15px; margin-top: 21px; border-radius: 20px 8px; color: #fff; background: var(--babiro-primary); font-size: .8rem; font-weight: 850; }
.subject-card:hover, .subject-card:focus-visible { color: #fff; border-color: var(--babiro-accent); transform: translateY(-5px); }
.subject-card:hover::before, .subject-card:focus-visible::before { width: 100%; }
.subject-card:hover strong, .subject-card:hover small, .subject-card:focus-visible strong, .subject-card:focus-visible small { color: #fff; }
.subject-card:hover .subject-card__icon, .subject-card:focus-visible .subject-card__icon { color: var(--babiro-primary); background: #fff; }
.subject-card:hover .subject-card__cta, .subject-card:focus-visible .subject-card__cta { color: var(--babiro-primary-dark); background: #fff; }

.section--worksheets { background: linear-gradient(rgba(255,72,128,.1), rgba(255,72,128,.1)); }
.section--worksheets.section--white { background: linear-gradient(rgba(255,72,128,.08), rgba(255,72,128,.13)); }
.worksheet-grid { gap: 34px; }
.worksheet-card { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.worksheet-card:hover { box-shadow: none; transform: translateY(-4px); }
.worksheet-card__preview { z-index: 2; width: calc(100% - 28px); margin-inline: auto; overflow: hidden; border: 7px solid #fff; border-radius: 50% 20% / 10% 40%; background: #f6eff8; box-shadow: 0 14px 38px rgba(57,61,114,.14); }
.worksheet-card__preview img { width: 66%; height: 92%; margin-top: 4%; }
.worksheet-card__preview .badge { top: -1px; left: 50%; min-width: 78px; justify-content: center; border-radius: 10% / 50%; transform: translateX(-50%); }
.worksheet-card__paper-tab { display: none; }
.worksheet-card__body { position: relative; z-index: 1; min-height: 265px; padding: 62px 25px 23px; margin-top: -42px; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 16px 42px rgba(57,61,114,.1); }
.worksheet-card__title { font-size: 1.32rem; }
.worksheet-card__facts { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 15px; border-radius: 0 0 12px 12px; color: #fff; background: var(--babiro-primary); }
.worksheet-card__facts span { display: inline-flex; min-width: 0; align-items: center; gap: 5px; font-size: .66rem; font-weight: 750; }
.worksheet-card__facts svg { flex: 0 0 auto; }

.section--generators { position: relative; overflow: hidden; background: var(--babiro-accent); }
.section--generators::before { position: absolute; inset: 0; background: radial-gradient(circle at 12% 30%, rgba(255,255,255,.14) 0 4px, transparent 5px) 0 0/58px 58px; content: ""; pointer-events: none; }
.section--generators .wrap { position: relative; }
.section--generators .eyebrow { color: #ffd4e1; }
.section--generators .section-heading p { color: #eef0ff; }
.generator-grid { gap: 25px; }
.section--generators .generator-card { min-height: 255px; align-items: flex-start; border: 6px solid rgba(255,255,255,.85); border-radius: 50% 20% / 10% 40%; color: var(--babiro-muted); background: #fff; box-shadow: 0 18px 45px rgba(31,36,100,.2); }
.section--generators .generator-card h3 { color: var(--babiro-ink); }
.section--generators .generator-card p { color: var(--babiro-muted); }
.section--generators .generator-card__icon { color: #fff; background: var(--babiro-primary); }
.section--generators .generator-card__footer { color: var(--babiro-primary-dark); }
.section--generators .generator-card:hover { color: var(--babiro-muted); border-color: #ffd3e1; transform: translateY(-6px); }

.section--grades { background: #fff; }
.grade-card { border-color: #f3ceda; border-radius: 28px 12px; }
.grade-card:hover { border-color: var(--babiro-primary); }
.grade-card__mark { border-radius: 50% 20% / 10% 40%; color: #fff; background: var(--babiro-primary); }
.grade-card--2 .grade-card__mark { color: #fff; background: var(--babiro-accent); }
.grade-card--3 .grade-card__mark { color: #fff; background: #38a983; }
.grade-card--4 .grade-card__mark { color: #4d3a00; background: #ffd166; }

.section--value { background: radial-gradient(circle at 85% 25%, rgba(77,101,249,.06) 0 4px, transparent 5px) 0 0/50px 50px, #fff; }
.value-grid article { position: relative; overflow: hidden; padding: 34px; border: 1px solid #f2cfda; border-radius: 50% 20% / 10% 40%; background: #fff; box-shadow: 0 14px 40px rgba(57,61,114,.08); }
.value-grid article > svg { display: grid; width: 58px; height: 58px; padding: 14px; border-radius: 50%; color: #fff; background: var(--babiro-primary); }
.value-grid article:nth-child(2) > svg { background: var(--babiro-accent); }
.value-grid article:nth-child(3) > svg { background: #38a983; }

.section--resources { background: linear-gradient(rgba(255,72,128,.04), rgba(255,72,128,.12)); }
.resource-card, .collection-card { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.resource-card__image, .collection-card__image { z-index: 2; width: calc(100% - 24px); margin-inline: auto; border: 6px solid #fff; border-radius: 50% 20% / 10% 40%; box-shadow: 0 14px 36px rgba(57,61,114,.13); }
.resource-card__body, .collection-card__body { min-height: 235px; padding: 55px 25px 25px; margin-top: -35px; border-radius: 18px; background: #fff; box-shadow: 0 14px 36px rgba(57,61,114,.09); }
.resource-card__meta { color: var(--babiro-primary-dark); font-weight: 750; }

.section--pro { background: #fff; }
.pro-strip { border-radius: 50% 20% / 10% 40%; background: linear-gradient(120deg, var(--babiro-ink), var(--babiro-accent)); }
.pro-strip .badge--pro { color: #fff; background: var(--babiro-primary); }
.collection-feature { border-radius: 50% 20% / 10% 40%; background: linear-gradient(135deg, var(--babiro-primary), var(--babiro-accent)); }

.footer-newsletter { background: var(--babiro-primary); }
.footer-newsletter .button { color: var(--babiro-primary-dark); border-color: #fff; background: #fff; }
.site-footer { color: var(--babiro-muted); background: radial-gradient(circle at 18% 25%, rgba(255,72,128,.07) 0 4px, transparent 5px) 0 0/52px 52px, #fff9fb; }
.site-footer h2 { color: var(--babiro-ink); }
.site-footer a { color: var(--babiro-ink); }
.site-footer a:hover { color: var(--babiro-primary-dark); }
.site-logo--footer .site-logo__word-primary { color: var(--babiro-primary); }
.site-logo--footer .site-logo__word-accent { color: var(--babiro-accent); }
.site-footer__bottom { color: #dfe3ff; border-top: 0; border-radius: 0 34px; background: var(--babiro-ink); padding: 18px 24px; }
.site-footer__bottom a { color: #fff; }

@media (max-width: 1180px) {
  .home-hero__grid { grid-template-columns: minmax(0,1fr) minmax(370px,.85fr); }
  .subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .announcement-bar .wrap { width: 100%; border-radius: 0; }
  .home-hero__grid, .worksheet-finder { grid-template-columns: 1fr; }
  .home-hero__copy { text-align: left; }
  .home-hero__copy .button-row, .hero-trust { justify-content: flex-start; }
  .home-hero__visual { width: min(100%,670px); }
  .worksheet-finder__art { min-height: 390px; }
  .site-footer__bottom { border-radius: 0; }
}
@media (max-width: 640px) {
  .announcement-bar__label { display: none; }
  .announcement-bar .wrap { justify-content: center; padding-inline: 14px; }
  .site-logo__word { font-size: 1.48rem; }
  .home-hero { min-height: auto; padding-top: 52px; }
  .home-hero h1 { font-size: clamp(2.75rem,14vw,4.2rem); }
  .home-hero__visual { padding-inline: 0; }
  .home-hero__visual::before { inset: 8% 0 0 4%; }
  .home-hero__visual-frame { border-width: 5px; }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-card { min-height: 285px; }
  .worksheet-finder { padding-inline: 0; }
  .worksheet-finder__art { min-height: 330px; }
  .finder-sheet { width: 62%; min-height: 225px; padding: 22px; gap: 15px; }
  .finder-sheet--back { top: 37px; left: 25px; }
  .finder-sheet--front { right: 22px; bottom: 25px; }
  .finder-sheet--front strong, .finder-sheet--front span { font-size: .95rem; }
  .worksheet-card__facts { flex-wrap: wrap; justify-content: center; }
  .value-grid article, .pro-strip, .collection-feature { border-radius: 34px 14px; }
}

/* Babiro 1.1.3 — restore the licensed BabyCare photographic background treatment. */
.home-hero {
  background-image: linear-gradient(90deg, rgba(28,37,69,.88) 0%, rgba(48,52,101,.72) 46%, rgba(48,52,101,.30) 100%), url("../images/hero-img.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.home-hero__grid--background-only { grid-template-columns: minmax(0,720px); }
.home-hero__grid--background-only .home-hero__copy { max-width: 720px; }

.hub-hero,
.page-hero,
.resource-hero {
  position: relative;
  background-image: linear-gradient(90deg, rgba(28,37,69,.88) 0%, rgba(48,52,101,.68) 52%, rgba(48,52,101,.34) 100%), url("../images/hero-img.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hub-hero h1,
.page-hero h1,
.resource-hero h1 { color: #fff; }
.hub-hero .eyebrow,
.page-hero .eyebrow,
.resource-hero .eyebrow { color: #ffb5cd; }
.hub-hero__description,
.page-hero p,
.resource-hero__excerpt,
.resource-byline { color: #f5f1f4; }
.hub-hero__mark { background: rgba(255,72,128,.92); }

.section--finder {
  background-image: linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.92)), url("../images/background.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.worksheet-finder__art {
  background-image: linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,.10)), url("../images/about.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.site-footer {
  background-image: linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.98)), url("../images/background.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 760px) {
  .home-hero {
    background-image: linear-gradient(rgba(28,37,69,.80), rgba(48,52,101,.80)), url("../images/hero-img.jpg");
    background-position: 60% center;
  }
  .hub-hero,
  .page-hero,
  .resource-hero {
    background-image: linear-gradient(rgba(28,37,69,.82), rgba(48,52,101,.78)), url("../images/hero-img.jpg");
    background-position: 62% center;
  }
}

/* Babiro 1.1.6 — selectable coordinated visual schemes. */
.babiro-scheme-pets .announcement-bar { background: var(--babiro-primary); }
.babiro-scheme-pets .home-hero {
  background-image: linear-gradient(90deg, rgba(31,43,99,.94) 0%, rgba(64,84,232,.78) 48%, rgba(64,84,232,.30) 100%), url("../images/hero-img.jpg");
}
.babiro-scheme-pets .home-hero::after { background: rgba(244,181,68,.20); }
.babiro-scheme-pets .home-hero .eyebrow { color: #ffd77f; }
.babiro-scheme-pets .home-hero .button--secondary:hover { border-color: var(--babiro-accent); background: var(--babiro-accent); color: #4a3700; }
.babiro-scheme-pets .hub-hero,
.babiro-scheme-pets .page-hero,
.babiro-scheme-pets .resource-hero {
  background-image: linear-gradient(90deg, rgba(31,43,99,.94) 0%, rgba(64,84,232,.76) 52%, rgba(64,84,232,.34) 100%), url("../images/hero-img.jpg");
}
.babiro-scheme-pets .hub-hero .eyebrow,
.babiro-scheme-pets .page-hero .eyebrow,
.babiro-scheme-pets .resource-hero .eyebrow { color: #ffdc8c; }
.babiro-scheme-pets .hub-hero__mark { background: rgba(244,181,68,.96); color: #3b310d; }
.babiro-scheme-pets .section--finder {
  background-image: linear-gradient(rgba(255,253,247,.86), rgba(255,253,247,.94)), url("../images/background.jpg");
}
.babiro-scheme-pets .worksheet-finder__content form { border-color: #f0d79e; background: #fffaf0; }
.babiro-scheme-pets .worksheet-finder select { border-color: #e2c77f; }
.babiro-scheme-pets .section--subjects { background: linear-gradient(rgba(64,84,232,.055), rgba(244,181,68,.15)); }
.babiro-scheme-pets .subject-card { border-color: #cbd2ff; }
.babiro-scheme-pets .subject-card__icon { color: var(--babiro-primary); background: #eef0ff; }
.babiro-scheme-pets .section--worksheets,
.babiro-scheme-pets .section--worksheets.section--white { background: linear-gradient(rgba(64,84,232,.045), rgba(244,181,68,.10)); }
.babiro-scheme-pets .worksheet-card__preview { background: #f4f2e9; }
.babiro-scheme-pets .section--generators { background: var(--babiro-primary); }
.babiro-scheme-pets .section--generators .eyebrow { color: #ffe0a1; }
.babiro-scheme-pets .section--generators .generator-card:hover { border-color: #ffd27a; }
.babiro-scheme-pets .grade-card { border-color: #d8dcf3; }
.babiro-scheme-pets .section--value { background: radial-gradient(circle at 85% 25%, rgba(244,181,68,.12) 0 4px, transparent 5px) 0 0/50px 50px, #fff; }
.babiro-scheme-pets .value-grid article { border-color: #dfe3f5; }
.babiro-scheme-pets .section--resources { background: linear-gradient(rgba(64,84,232,.035), rgba(244,181,68,.09)); }
.babiro-scheme-pets .pro-strip { background: linear-gradient(120deg, var(--babiro-deep), var(--babiro-primary)); }
.babiro-scheme-pets .pro-strip .badge--pro { color: #443400; background: var(--babiro-accent); }
.babiro-scheme-pets .footer-newsletter { background: var(--babiro-primary); }
.babiro-scheme-pets .site-footer {
  background-image: linear-gradient(rgba(255,252,244,.86), rgba(255,255,255,.98)), url("../images/background.jpg");
}
.babiro-scheme-pets .site-footer__bottom { background: var(--babiro-deep); }

@media (max-width: 760px) {
  .babiro-scheme-pets .home-hero {
    background-image: linear-gradient(rgba(31,43,99,.86), rgba(64,84,232,.82)), url("../images/hero-img.jpg");
  }
  .babiro-scheme-pets .hub-hero,
  .babiro-scheme-pets .page-hero,
  .babiro-scheme-pets .resource-hero {
    background-image: linear-gradient(rgba(31,43,99,.88), rgba(64,84,232,.82)), url("../images/hero-img.jpg");
  }
}


/*
 * Babiro 1.1.9 — Phase 50.2: BabyCare visual fidelity pass.
 * Strengthens the licensed seed's visible composition without restoring daycare
 * copy or vendor dependencies. The Babiro product model and both color schemes
 * remain unchanged.
 */

/* Seed geometry and interaction rhythm. */
.button,
button.button,
input[type="submit"] {
  border-radius: 25% 10%;
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, border-color .28s ease, color .28s ease;
}
.button:hover { transform: translateY(-2px); }
.eyebrow { padding: .35rem .8rem; border-radius: 10% 30%; }
.menu-panel { border-radius: 24px 10px; }
.section-heading { margin-bottom: clamp(34px,4.2vw,52px); }
.section-heading--center { align-items: center; }
.section-heading--center > div { max-width: 780px; }
.section-heading--center h2 { margin-inline: auto; }
.section-heading--center .text-link { margin-top: -22px; }

/* Photo-led homepage hero: keep the photograph visibly dominant, as in the seed. */
.home-hero {
  min-height: 620px;
  padding: clamp(64px,7.5vw,104px) 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,.64) 0%, rgba(24,29,64,.46) 48%, rgba(0,0,0,.10) 100%), url("../images/hero-img.jpg");
  background-position: center center;
  box-shadow: inset 0 -1px rgba(255,255,255,.16);
}
.home-hero::after {
  bottom: -265px;
  left: -130px;
  width: 500px;
  height: 500px;
  border-radius: 50% 20% / 10% 40%;
  background: rgba(255,72,128,.16);
  transform: rotate(-8deg);
}
.home-hero__grid--background-only {
  min-height: 430px;
  grid-template-columns: minmax(0,660px);
  align-items: center;
}
.home-hero__grid--background-only .home-hero__copy { max-width: 660px; }
.home-hero h1 { text-shadow: 0 4px 24px rgba(0,0,0,.18); }
.home-hero__lead { max-width: 610px; color: rgba(255,255,255,.92); }
.hero-trust { margin-top: 24px; }
.home-hero__visual-frame {
  padding: 8px;
  border-width: 8px;
  box-shadow: 0 24px 70px rgba(12,17,47,.34);
}
.home-hero__visual-frame > img { transition: transform .5s ease; }
.home-hero__visual:hover .home-hero__visual-frame > img { transform: scale(1.035); }

/* Internal headers use the same clear photo treatment as BabyCare page-header. */
.hub-hero,
.page-hero,
.resource-hero {
  display: flex;
  min-height: 300px;
  align-items: center;
  padding: clamp(58px,7vw,92px) 0;
  background-image: linear-gradient(rgba(0,0,0,.56), rgba(0,0,0,.14)), url("../images/hero-img.jpg");
  background-position: center 44%;
  box-shadow: inset 0 -1px rgba(255,255,255,.15);
}
.hub-hero h1,
.page-hero h1,
.resource-hero h1 { text-shadow: 0 3px 22px rgba(0,0,0,.2); }
.hub-hero__description,
.page-hero p,
.resource-hero__excerpt,
.resource-byline { color: rgba(255,255,255,.92); }
.hub-hero__mark {
  border: 7px solid rgba(255,255,255,.88);
  border-radius: 50% 20% / 10% 40%;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

/* About/finder translation: let the original BabyCare photo lead the composition. */
.section--finder {
  background-image: linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.91)), url("../images/background.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.worksheet-finder { gap: clamp(44px,7vw,92px); }
.worksheet-finder__art {
  min-height: 430px;
  border: 8px solid #fff;
  border-radius: 50% 20% / 10% 40%;
  background-image: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)), url("../images/about.jpg");
  background-position: center center;
  box-shadow: 0 20px 55px rgba(57,61,114,.16);
}
/* These were a Babiro-only embellishment; Phase 50.2 restores the seed's cleaner photo-first About treatment. */
.finder-sheet { display: none; }
.finder-art__badge {
  top: 50%;
  right: auto;
  left: 50%;
  width: 94px;
  height: 94px;
  border: 8px solid rgba(255,255,255,.88);
  background: var(--babiro-primary);
  box-shadow: 0 0 0 14px rgba(77,101,249,.22), 0 16px 34px rgba(57,61,114,.24);
  transform: translate(-50%,-50%);
}
.worksheet-finder__content form {
  padding: 26px;
  border-radius: 25% 10%;
}
.worksheet-finder select { border-radius: 12px; }

/* BabyCare service-card behavior mapped to Babiro subjects. */
.subject-card {
  border-radius: 50% 20% / 10% 40%;
  box-shadow: 0 0 45px rgba(57,61,114,.10);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, color .35s ease;
}
.subject-card::before { transition: width .5s ease; }
.subject-card strong,
.subject-card small,
.subject-card__icon,
.subject-card__cta { transition: color .35s ease, background-color .35s ease, transform .35s ease; }
.subject-card:hover,
.subject-card:focus-visible { box-shadow: 0 18px 50px rgba(57,61,114,.16); }
.subject-card:hover .subject-card__icon,
.subject-card:focus-visible .subject-card__icon { transform: scale(1.06); }

/* BabyCare program-card overlap and image motion mapped to worksheet cards. */
.worksheet-card__preview img { transition: transform .5s ease; }
.worksheet-card:hover .worksheet-card__preview img,
.worksheet-card:focus-within .worksheet-card__preview img { transform: translateY(-3px) scale(1.06); }
.worksheet-card__body { transition: box-shadow .35s ease; }
.worksheet-card:hover .worksheet-card__body,
.worksheet-card:focus-within .worksheet-card__body { box-shadow: 0 20px 50px rgba(57,61,114,.14); }
.worksheet-card__title a { transition: color .3s ease; }
.worksheet-card:hover .worksheet-card__title a,
.worksheet-card:focus-within .worksheet-card__title a { color: var(--babiro-primary-dark); }

/* Editorial resources borrow the seed blog image overlay instead of generic flat cards. */
.resource-card__image,
.collection-card__image {
  position: relative;
  display: block;
  overflow: hidden;
}
.resource-card__image::after,
.collection-card__image::after {
  position: absolute;
  inset: 0;
  height: 0;
  border-radius: inherit;
  background: rgba(77,101,249,.62);
  content: "";
  opacity: 0;
  transition: height .5s ease, opacity .5s ease;
  pointer-events: none;
}
.resource-card__image img,
.collection-card__image img { transition: transform .5s ease; }
.resource-card:hover .resource-card__image::after,
.resource-card:focus-within .resource-card__image::after,
.collection-card:hover .collection-card__image::after,
.collection-card:focus-within .collection-card__image::after {
  height: 100%;
  opacity: 1;
}
.resource-card:hover .resource-card__image img,
.resource-card:focus-within .resource-card__image img,
.collection-card:hover .collection-card__image img,
.collection-card:focus-within .collection-card__image img { transform: scale(1.08); }
.resource-card h2 a,
.collection-card h2 a { transition: color .3s ease; }
.resource-card:hover h2 a,
.resource-card:focus-within h2 a,
.collection-card:hover h2 a,
.collection-card:focus-within h2 a { color: var(--babiro-primary-dark); }

/* More literal seed title treatment across value/discovery surfaces. */
.grade-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.grade-card:hover,
.grade-card:focus-visible { transform: translateY(-5px); }
.value-grid article { transition: transform .35s ease, box-shadow .35s ease; }
.value-grid article:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(57,61,114,.13); }
.resource-featured img { border-radius: 50% 20% / 10% 40%; }
.collection-hero__image { border: 7px solid rgba(255,255,255,.85); border-radius: 50% 20% / 10% 40%; }

/* Seed footer: light photograph, bordered organic headings, rounded signup surface. */
.footer-newsletter {
  padding: 46px 0 0;
  color: #fff;
  background: #fff;
}
.footer-newsletter__inner {
  padding: clamp(28px,4vw,46px);
  border-radius: 50% 20% / 10% 40%;
  background: var(--babiro-primary);
  box-shadow: 0 18px 48px rgba(57,61,114,.14);
}
.footer-newsletter h2,
.footer-newsletter p { color: #fff; }
.footer-newsletter .eyebrow { color: #fff; }
.site-footer {
  padding-top: 82px;
  background-image: linear-gradient(rgba(255,255,255,.78), rgba(255,255,255,.97)), url("../images/background.jpg");
}
.site-footer h2 {
  display: inline-block;
  padding: .4rem .65rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--babiro-primary);
  border-radius: 10% 30%;
  color: var(--babiro-primary-dark);
  font-size: 1rem;
  text-transform: uppercase;
}
.site-footer .menu li { margin-bottom: 10px; }
.site-footer a { transition: color .25s ease; }
.site-footer a:hover { color: var(--babiro-accent); text-decoration: none; }
.site-footer__custom-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--babiro-primary);
  border-radius: 999px;
}
.site-footer__bottom {
  margin-top: 52px;
  border-radius: 0 40px;
}

/* Keep the second scheme coordinated while using the same BabyCare composition. */
.babiro-scheme-pets .home-hero {
  background-image: linear-gradient(90deg, rgba(22,32,87,.86) 0%, rgba(64,84,232,.58) 48%, rgba(64,84,232,.12) 100%), url("../images/hero-img.jpg");
}
.babiro-scheme-pets .home-hero::after { background: rgba(244,181,68,.20); }
.babiro-scheme-pets .hub-hero,
.babiro-scheme-pets .page-hero,
.babiro-scheme-pets .resource-hero {
  background-image: linear-gradient(rgba(24,35,95,.70), rgba(64,84,232,.20)), url("../images/hero-img.jpg");
}
.babiro-scheme-pets .finder-art__badge {
  background: var(--babiro-primary);
  box-shadow: 0 0 0 14px rgba(244,181,68,.25), 0 16px 34px rgba(38,49,95,.22);
}
.babiro-scheme-pets .resource-card__image::after,
.babiro-scheme-pets .collection-card__image::after { background: rgba(64,84,232,.58); }
.babiro-scheme-pets .footer-newsletter__inner { background: var(--babiro-primary); }
.babiro-scheme-pets .site-footer {
  background-image: linear-gradient(rgba(255,252,244,.80), rgba(255,255,255,.98)), url("../images/background.jpg");
}

@media (max-width: 900px) {
  .home-hero { min-height: auto; }
  .home-hero__grid--background-only { min-height: 360px; }
  .footer-newsletter__inner { border-radius: 34px 14px; }
}

@media (max-width: 760px) {
  .home-hero {
    background-image: linear-gradient(rgba(16,21,51,.72), rgba(25,31,69,.60)), url("../images/hero-img.jpg");
    background-position: 62% center;
  }
  .babiro-scheme-pets .home-hero {
    background-image: linear-gradient(rgba(29,43,112,.76), rgba(64,84,232,.58)), url("../images/hero-img.jpg");
    background-position: 62% center;
  }
  .hub-hero,
  .page-hero,
  .resource-hero {
    min-height: 250px;
    background-image: linear-gradient(rgba(0,0,0,.60), rgba(0,0,0,.30)), url("../images/hero-img.jpg");
    background-position: 62% center;
  }
  .babiro-scheme-pets .hub-hero,
  .babiro-scheme-pets .page-hero,
  .babiro-scheme-pets .resource-hero {
    background-image: linear-gradient(rgba(26,38,102,.74), rgba(64,84,232,.40)), url("../images/hero-img.jpg");
    background-position: 62% center;
  }
  .worksheet-finder__art { min-height: 360px; }
  .finder-art__badge { width: 82px; height: 82px; border-width: 7px; box-shadow: 0 0 0 11px rgba(77,101,249,.20), 0 14px 28px rgba(57,61,114,.22); }
  .site-footer__bottom { border-radius: 0; }
}

@media (max-width: 640px) {
  .section-heading--center .text-link { margin-top: -8px; }
  .home-hero__grid--background-only { min-height: 320px; }
  .worksheet-finder__art { min-height: 310px; }
  .site-footer { padding-top: 64px; }
}

/*
 * Babiro 1.1.10 — Phase 50.3: worksheet taxonomy and navigation improvements.
 * Canonical taxonomy URLs stay unchanged; this layer improves discovery and cross-taxonomy movement.
 */
.hub-hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
}
.hub-hero__facts > span,
.hub-hero__facts > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(17,22,51,.24);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(5px);
}
.hub-hero__facts > a { background: rgba(255,255,255,.14); }
.hub-hero__facts > a:hover,
.hub-hero__facts > a:focus-visible { color: #fff; background: rgba(255,255,255,.23); }

.taxonomy-dimension-bar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--babiro-line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 30px rgba(37,45,86,.07);
}
.taxonomy-dimension-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.taxonomy-dimension-bar__label {
  flex: 0 0 auto;
  margin-right: 4px;
  color: var(--babiro-muted);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.taxonomy-dimension-link {
  display: inline-flex;
  min-height: 39px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--babiro-line);
  border-radius: 999px;
  color: var(--babiro-ink);
  background: #fff;
  font-size: .79rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.taxonomy-dimension-link:hover,
.taxonomy-dimension-link:focus-visible { color: var(--babiro-primary-dark); border-color: rgba(77,101,249,.35); background: var(--babiro-surface); transform: translateY(-1px); }
.taxonomy-dimension-link.is-current { color: #fff; border-color: var(--babiro-primary); background: var(--babiro-primary); }
.taxonomy-dimension-link.is-current:hover,
.taxonomy-dimension-link.is-current:focus-visible { color: #fff; background: var(--babiro-primary-dark); }

.taxonomy-nearby__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(28px,5vw,70px);
}
.taxonomy-nearby__grid > div { min-width: 0; }
.chip-list--roomy { gap: 10px 11px; }
.chip-list--roomy a { min-height: 42px; padding: 9px 14px; box-shadow: 0 8px 20px rgba(37,45,86,.05); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.chip-list--roomy a:hover,
.chip-list--roomy a:focus-visible { border-color: rgba(77,101,249,.32); box-shadow: 0 10px 25px rgba(37,45,86,.09); transform: translateY(-2px); }

.taxonomy-crosslinks { background: linear-gradient(180deg, var(--babiro-surface), #fff); }
.taxonomy-crosslinks__grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.taxonomy-path-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--babiro-line);
  border-radius: 24px 10px 24px 12px;
  background: #fff;
  box-shadow: var(--babiro-shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.taxonomy-path-card:hover { border-color: rgba(77,101,249,.22); box-shadow: var(--babiro-shadow); transform: translateY(-3px); }
.taxonomy-path-card__heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.taxonomy-path-card__heading > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 15px 19px 13px 18px;
  color: #fff;
  background: var(--babiro-primary);
  transform: rotate(-2deg);
}
.taxonomy-path-card__heading small,
.taxonomy-path-card__heading h3 { display: block; margin: 0; }
.taxonomy-path-card__heading small { margin-bottom: 1px; color: var(--babiro-muted); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.taxonomy-path-card__heading h3 { font-size: 1.02rem; }
.taxonomy-path-card ul,
.taxonomy-directory-card ul { padding: 0; margin: 0; list-style: none; }
.taxonomy-path-card li + li { border-top: 1px solid var(--babiro-line); }
.taxonomy-path-card li a {
  display: grid;
  min-height: 42px;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 8px;
  color: var(--babiro-ink);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.taxonomy-path-card li a:hover,
.taxonomy-path-card li a:focus-visible { color: var(--babiro-primary-dark); }
.taxonomy-path-card li small { color: var(--babiro-muted); font-size: .68rem; font-weight: 700; }
.taxonomy-path-card li svg { color: var(--babiro-muted); }
.taxonomy-path-card__all { display: inline-block; margin-top: 14px; color: var(--babiro-primary-dark); font-size: .76rem; font-weight: 900; text-decoration: none; }
.taxonomy-path-card__all:hover { text-decoration: underline; }

.taxonomy-results .section-heading { margin-bottom: 30px; }
.empty-state--taxonomy { background: var(--babiro-surface); }

.worksheet-taxonomy-directory {
  padding: clamp(24px,4vw,38px);
  margin: -6px 0 34px;
  border: 1px solid var(--babiro-line);
  border-radius: 28px 12px 28px 12px;
  background: linear-gradient(135deg, #fff, var(--babiro-surface));
  box-shadow: var(--babiro-shadow-soft);
}
.worksheet-taxonomy-directory__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.worksheet-taxonomy-directory__heading h2 { margin-bottom: 0; }
.worksheet-taxonomy-directory__heading > p { max-width: 560px; margin: 0; color: var(--babiro-muted); font-size: .9rem; }
.worksheet-taxonomy-directory__grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}
.taxonomy-directory-card {
  min-width: 0;
  padding: 16px;
  scroll-margin-top: 120px;
  border: 1px solid var(--babiro-line);
  border-radius: 18px 8px 18px 8px;
  background: rgba(255,255,255,.90);
}
.taxonomy-directory-card__heading { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.taxonomy-directory-card__heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px 14px 10px 13px;
  color: var(--babiro-primary-dark);
  background: rgba(77,101,249,.10);
}
.taxonomy-directory-card h3 { margin: 0; font-size: .96rem; }
.taxonomy-directory-card li + li { border-top: 1px solid rgba(218,222,237,.72); }
.taxonomy-directory-card li a {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--babiro-ink);
  font-size: .76rem;
  font-weight: 760;
  text-decoration: none;
}
.taxonomy-directory-card li a:hover,
.taxonomy-directory-card li a:focus-visible { color: var(--babiro-primary-dark); }
.taxonomy-directory-card li small { color: var(--babiro-muted); font-size: .64rem; }

.active-taxonomy-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}
.active-taxonomy-filters > span { margin-right: 2px; color: var(--babiro-muted); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.active-taxonomy-filters > a:not(.active-taxonomy-filters__clear) {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(77,101,249,.20);
  border-radius: 999px;
  color: var(--babiro-ink);
  background: rgba(77,101,249,.07);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
}
.active-taxonomy-filters > a small { color: var(--babiro-muted); font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.active-taxonomy-filters__clear { margin-left: 3px; color: var(--babiro-primary-dark); font-size: .75rem; font-weight: 850; }

.babiro-scheme-pets .taxonomy-dimension-link.is-current,
.babiro-scheme-pets .taxonomy-path-card__heading > span { color: #fff; background: var(--babiro-primary); }
.babiro-scheme-pets .taxonomy-directory-card__heading > span { color: #43350a; background: rgba(244,181,68,.20); }
.babiro-scheme-pets .active-taxonomy-filters > a:not(.active-taxonomy-filters__clear) { border-color: rgba(244,181,68,.35); background: rgba(244,181,68,.12); }

@media (max-width: 1050px) {
  .worksheet-taxonomy-directory__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .taxonomy-crosslinks__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .taxonomy-nearby__grid { grid-template-columns: 1fr; }
  .worksheet-taxonomy-directory__heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .taxonomy-dimension-bar__inner { padding-right: 18px; padding-left: 18px; }
}

@media (max-width: 560px) {
  .worksheet-taxonomy-directory { padding: 20px 16px; border-radius: 22px 10px; }
  .worksheet-taxonomy-directory__grid,
  .taxonomy-crosslinks__grid { grid-template-columns: 1fr; }
  .taxonomy-path-card { padding: 19px; }
  .hub-hero__facts > span,
  .hub-hero__facts > a { width: 100%; justify-content: center; }
}

/*
 * Babiro 1.1.11 — Phase 50.4: homepage hierarchy and conversion improvements.
 * Discovery stays primary; newsletter and Pro remain useful, low-pressure secondary paths.
 */
.hero-routes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.hero-routes__label {
  margin-right: 2px;
  color: rgba(255,255,255,.76);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-routes a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(18,22,52,.22);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-routes a:hover,
.hero-routes a:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

.section--grades .section-heading p,
.section--featured-home .section-heading p { max-width: 650px; }
.home-pathway-note,
.home-section-actions,
.home-discovery-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 26px;
}
.home-pathway-note {
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid #f1d2dc;
  border-radius: 24px 10px;
  background: #fff9fb;
}
.home-pathway-note > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--babiro-muted);
  font-size: .84rem;
  font-weight: 750;
}
.home-pathway-note > span svg { color: var(--babiro-primary); }
.home-pathway-note a,
.home-discovery-links a { font-weight: 850; }
.home-section-actions .button { min-height: 44px; }

.finder-reassurance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 2px 0;
  color: var(--babiro-muted) !important;
  font-size: .78rem;
  line-height: 1.5;
}
.finder-reassurance svg { flex: 0 0 auto; margin-top: 2px; color: var(--babiro-primary); }

.featured-discovery__promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: -12px 0 30px;
}
.featured-discovery__promises span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #f0cfda;
  border-radius: 999px;
  color: var(--babiro-muted);
  background: rgba(255,255,255,.78);
  font-size: .76rem;
  font-weight: 800;
}
.featured-discovery__promises svg { color: var(--babiro-primary); }
.home-discovery-links {
  margin-top: 34px;
  color: var(--babiro-muted);
  font-size: .82rem;
}
.home-discovery-links span { font-weight: 750; }
.home-discovery-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.section--audiences {
  background: radial-gradient(circle at 85% 25%, rgba(77,101,249,.06) 0 4px, transparent 5px) 0 0/50px 50px, #fff;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}
.audience-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 32px;
  border: 1px solid #f0d2dc;
  border-radius: 50% 20% / 10% 40%;
  background: #fff;
  box-shadow: 0 14px 40px rgba(57,61,114,.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.audience-card::after {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,72,128,.06);
  content: "";
  pointer-events: none;
}
.audience-card:nth-child(2)::after { background: rgba(77,101,249,.07); }
.audience-card:nth-child(3)::after { background: rgba(56,169,131,.08); }
.audience-card:hover { border-color: var(--babiro-primary); box-shadow: 0 20px 48px rgba(57,61,114,.13); transform: translateY(-5px); }
.audience-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--babiro-primary);
}
.audience-card:nth-child(2) .audience-card__icon { background: var(--babiro-accent); }
.audience-card:nth-child(3) .audience-card__icon { background: #38a983; }
.audience-card .eyebrow { margin-bottom: 8px; }
.audience-card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.audience-card p:not(.eyebrow) { color: var(--babiro-muted); }
.audience-card .text-link { position: relative; z-index: 1; }
.home-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  padding: 18px 22px;
  border: 1px solid var(--babiro-line);
  border-radius: 28px 12px;
  background: var(--babiro-surface);
}
.home-workflow > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--babiro-ink);
  font-size: .82rem;
  font-weight: 800;
}
.home-workflow strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--babiro-primary);
}
.home-workflow > i { display: inline-flex; color: var(--babiro-muted); }

.pro-strip { align-items: flex-end; }
.pro-strip__copy { min-width: 0; }
.pro-strip__eyebrow {
  margin: 14px 0 4px;
  color: rgba(255,255,255,.76) !important;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pro-strip__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
.pro-strip__benefits li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.pro-strip__benefits svg { color: #ffd4e1; }
.pro-strip__actions {
  display: flex;
  min-width: max-content;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pro-strip__free-link {
  color: rgba(255,255,255,.82);
  font-size: .76rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pro-strip__free-link:hover,
.pro-strip__free-link:focus-visible { color: #fff; }

.section--inline-newsletter { background: #fff; }
.inline-newsletter {
  border-color: #f0d2dc;
  border-radius: 50% 20% / 10% 40%;
  background: linear-gradient(120deg, #fff8fa, #fff);
  box-shadow: 0 16px 42px rgba(57,61,114,.08);
}
.inline-newsletter__copy { min-width: 0; }
.inline-newsletter__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
}
.inline-newsletter__points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--babiro-muted);
  font-size: .74rem;
  font-weight: 800;
}
.inline-newsletter__points svg { color: var(--babiro-primary); }

.babiro-scheme-pets .home-pathway-note,
.babiro-scheme-pets .featured-discovery__promises span,
.babiro-scheme-pets .audience-card { border-color: #d8dcf3; }
.babiro-scheme-pets .home-pathway-note { background: #fffaf0; }
.babiro-scheme-pets .audience-card::after { background: rgba(64,84,232,.07); }
.babiro-scheme-pets .audience-card:nth-child(2)::after { background: rgba(244,181,68,.12); }
.babiro-scheme-pets .audience-card:nth-child(3)::after { background: rgba(56,169,131,.08); }
.babiro-scheme-pets .pro-strip__benefits svg { color: #ffd77f; }
.babiro-scheme-pets .inline-newsletter { border-color: #d8dcf3; background: linear-gradient(120deg, #f8f9ff, #fffaf0); }

@media (max-width: 980px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { border-radius: 34px 14px; }
  .home-workflow { flex-wrap: wrap; }
  .pro-strip { align-items: flex-start; flex-direction: column; }
  .pro-strip__actions { min-width: 0; align-items: flex-start; }
}

@media (max-width: 760px) {
  .hero-routes { gap: 7px; }
  .hero-routes__label { width: 100%; }
  .home-pathway-note { align-items: flex-start; flex-direction: column; }
  .featured-discovery__promises { justify-content: flex-start; }
  .home-workflow { align-items: flex-start; flex-direction: column; }
  .home-workflow > i { display: none; }
  .inline-newsletter { border-radius: 34px 14px; }
}

@media (max-width: 520px) {
  .hero-routes a { flex: 1 1 auto; justify-content: center; }
  .home-section-actions { align-items: stretch; flex-direction: column; }
  .home-section-actions .button { width: 100%; justify-content: center; }
  .featured-discovery__promises span { width: 100%; }
  .pro-strip__benefits { align-items: flex-start; flex-direction: column; }
}

/* Email-unlocked PDF funnel: stays on the worksheet/generator page; contains no ad inventory. */
body.download-gate-open { overflow: hidden; }
.worksheet-download-status { margin: 10px 0 0; color: var(--babiro-muted); font-size: .78rem; font-weight: 750; }
.worksheet-download-status[data-state="complete"] { color: #247253; }
.worksheet-download-status[data-state="error"] { color: #9a3131; }
[data-babiro-pdf-download].is-preparing { pointer-events: none; opacity: .72; }
.babiro-download-gate { position: fixed; z-index: 10020; inset: 0; display: grid; place-items: center; padding: 22px; }
.babiro-download-gate[hidden] { display: none; }
.babiro-download-gate__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .58); backdrop-filter: blur(3px); }
.babiro-download-gate__dialog { position: relative; width: min(540px, 100%); max-height: min(760px, calc(100vh - 44px)); overflow: auto; padding: 30px; border: 1px solid var(--babiro-line); border-radius: 24px 10px 24px 10px; background: #fff; box-shadow: 0 28px 90px rgba(18, 28, 51, .28); }
.babiro-download-gate__dialog h2 { margin: 5px 0 10px; font-size: clamp(1.55rem, 5vw, 2rem); }
.babiro-download-gate__dialog > div > p:not(.eyebrow) { color: var(--babiro-muted); }
.babiro-download-gate__close { position: absolute; top: 14px; right: 14px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--babiro-line); border-radius: 999px; background: #fff; color: var(--babiro-muted); font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.babiro-download-gate__form { display: grid; gap: 14px; margin-top: 20px; }
.babiro-download-gate__form > label:first-child { display: grid; gap: 7px; color: var(--babiro-ink); font-size: .82rem; font-weight: 850; }
.babiro-download-gate__form input[type="email"] { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--babiro-line); border-radius: 12px; background: #fff; color: var(--babiro-ink); font: inherit; }
.babiro-download-gate__form input[type="email"]:focus { outline: 3px solid color-mix(in srgb, var(--babiro-primary) 22%, transparent); border-color: var(--babiro-primary); }
.babiro-download-gate__optin { display: flex; align-items: flex-start; gap: 9px; color: var(--babiro-muted); font-size: .78rem; line-height: 1.5; }
.babiro-download-gate__optin input { margin-top: 3px; }
.babiro-download-gate__privacy { margin: 14px 0 0; color: var(--babiro-muted); font-size: .7rem; line-height: 1.55; }
.babiro-download-gate__error { margin: 0; padding: 10px 12px; border: 1px solid #efc7c7; border-radius: 10px; background: #fff6f6; color: #8b2b2b; font-size: .78rem; font-weight: 700; }
.babiro-download-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.babiro-download-gate__progress, .babiro-download-gate__success { padding: 18px 2px 4px; text-align: center; }
.babiro-download-gate__progress h2, .babiro-download-gate__success h2 { margin-top: 12px; }
.babiro-download-gate__success .button-row { justify-content: center; margin-top: 20px; }
.babiro-download-spinner { width: 42px; height: 42px; margin: 0 auto; border: 4px solid #e6eaf0; border-top-color: var(--babiro-primary); border-radius: 50%; animation: babiro-download-spin .8s linear infinite; }
.babiro-pdf-background-frame { position: fixed !important; z-index: -1 !important; left: -12000px !important; top: 0 !important; width: 1100px !important; height: 1400px !important; border: 0 !important; opacity: .001 !important; pointer-events: none !important; }
@keyframes babiro-download-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .babiro-download-spinner { animation-duration: 1.8s; } }
@media (max-width: 560px) { .babiro-download-gate { padding: 12px; } .babiro-download-gate__dialog { max-height: calc(100vh - 24px); padding: 26px 20px 22px; border-radius: 20px 8px; } .babiro-download-gate__success .button-row { align-items: stretch; flex-direction: column; } .babiro-download-gate__success .button { width: 100%; justify-content: center; } }

/*
 * Babiro 1.1.14 — Phase 50.5: Worksheet Page UX Upgrade.
 * The approved .worksheet-preview-frame renderer and its visual rules are not
 * changed here. This pass improves the product information, action hierarchy,
 * taxonomy pathways, Free/Pro presentation, guidance and related discovery
 * around the canonical worksheet preview.
 */
.worksheet-product-header {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px) 0 clamp(34px, 5vw, 54px);
  background-image: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.97)), url("../images/background.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--babiro-line);
}
.worksheet-product-header::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border-radius: 50% 20% / 10% 40%;
  background: color-mix(in srgb, var(--babiro-primary) 10%, transparent);
  content: "";
  transform: rotate(12deg);
  pointer-events: none;
}
.worksheet-product-header__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,260px); gap: clamp(30px,5vw,70px); align-items: end; }
.worksheet-product-header__copy { max-width: 900px; }
.worksheet-product-header h1 { max-width: 850px; margin-bottom: 14px; font-size: clamp(2.2rem,4vw,3.7rem); }
.worksheet-objective { max-width: 800px; margin-bottom: 0; color: var(--babiro-muted); font-size: 1.12rem; }
.worksheet-header-trust { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 24px; }
.worksheet-header-trust span { display: inline-flex; align-items: center; gap: 7px; color: var(--babiro-muted); font-size: .78rem; }
.worksheet-header-trust svg { color: var(--babiro-primary); }
.worksheet-header-trust strong { color: var(--babiro-ink); }
.worksheet-header-summary { padding: 22px; border: 1px solid rgba(255,255,255,.9); border-radius: 50% 20% / 10% 40%; background: rgba(255,255,255,.88); box-shadow: var(--babiro-shadow-soft); text-align: center; }
.worksheet-header-summary__label { display: block; margin-bottom: 5px; color: var(--babiro-primary-dark); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.worksheet-header-summary strong { display: block; font-family: var(--babiro-heading); font-size: 1.35rem; }
.worksheet-header-summary > span:last-child { display: block; margin-top: 4px; color: var(--babiro-muted); font-size: .78rem; }

.worksheet-product-layout { padding-top: clamp(36px,5vw,62px); }
.worksheet-preview-column { min-width: 0; }
.worksheet-preview-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.worksheet-preview-label span { color: var(--babiro-ink); font-family: var(--babiro-heading); font-size: 1.02rem; font-weight: 900; }
.worksheet-preview-label small { color: var(--babiro-muted); font-size: .72rem; text-align: right; }
.worksheet-product-panel { border-radius: 50% 20% / 10% 40%; }
.worksheet-product-panel .eyebrow { margin: 0 0 8px; }
.worksheet-product-panel h2 { margin-bottom: 9px; }
.worksheet-product-panel > p:not(.eyebrow):not(.worksheet-pro-nudge):not(.worksheet-download-status) { margin-top: 0; }
.worksheet-access-note { display: flex; gap: 10px; padding: 13px 14px; margin: 17px 0 2px; border: 1px solid color-mix(in srgb, var(--babiro-mint) 35%, var(--babiro-line)); border-radius: 14px; background: color-mix(in srgb, var(--babiro-mint) 8%, #fff); }
.worksheet-access-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--babiro-primary); }
.worksheet-access-note p { margin: 0; }
.worksheet-access-note strong, .worksheet-access-note span { display: block; }
.worksheet-access-note strong { color: var(--babiro-ink); font-size: .78rem; }
.worksheet-access-note span { margin-top: 2px; color: var(--babiro-muted); font-size: .7rem; line-height: 1.45; }
.worksheet-primary-actions { margin-top: 18px; }
.worksheet-action--download { min-height: 50px; justify-content: center; font-size: .92rem; }
.worksheet-action--print { min-height: 46px; justify-content: center; }
.worksheet-secondary-actions { display: grid; gap: 8px; margin-top: 4px; }
.worksheet-secondary-actions .babiro-favorite { width: 100%; justify-content: center; }
.worksheet-secondary-actions .answer-link { padding: 11px 13px; border: 1px solid var(--babiro-line); border-radius: 12px; color: var(--babiro-ink); text-decoration: none; }
.worksheet-secondary-actions .answer-link > span { display: grid; gap: 1px; }
.worksheet-secondary-actions .answer-link small { color: var(--babiro-muted); font-size: .68rem; font-weight: 600; }
.worksheet-facts--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding-top: 12px; }
.worksheet-facts--grid div { display: block; padding: 9px 0; }
.worksheet-facts--grid dt { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.worksheet-facts--grid dd { margin-top: 2px; text-align: left; font-size: .78rem; }
.worksheet-taxonomy-map { padding-top: 18px; margin-top: 10px; border-top: 1px solid var(--babiro-line); }
.worksheet-taxonomy-map h3 { margin-bottom: 12px; font-size: .95rem; }
.worksheet-taxonomy-map__row { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 8px; align-items: start; padding: 6px 0; }
.worksheet-taxonomy-map__row > span { padding-top: 5px; color: var(--babiro-muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.worksheet-taxonomy-map__row > div { display: flex; flex-wrap: wrap; gap: 5px; }
.worksheet-taxonomy-map__row a { display: inline-flex; padding: 4px 8px; border: 1px solid var(--babiro-line); border-radius: 999px; color: var(--babiro-ink); background: var(--babiro-surface); font-size: .68rem; font-weight: 750; text-decoration: none; }
.worksheet-taxonomy-map__row a:hover { border-color: var(--babiro-primary); color: var(--babiro-primary-dark); }
.worksheet-pro-nudge { padding-top: 15px; margin: 18px 0 0; border-top: 1px solid var(--babiro-line); color: var(--babiro-muted); font-size: .7rem; line-height: 1.5; }
.worksheet-pro-nudge strong { color: var(--babiro-ink); }
.worksheet-pro-lock { display: grid; gap: 14px; padding: 18px; margin-top: 18px; border: 1px solid color-mix(in srgb, var(--babiro-accent) 28%, var(--babiro-line)); border-radius: 18px 8px; background: color-mix(in srgb, var(--babiro-accent) 7%, #fff); }
.worksheet-pro-lock p, .worksheet-pro-lock ul { margin: 0; color: var(--babiro-muted); font-size: .8rem; }
.worksheet-pro-lock ul { padding-left: 19px; }
.worksheet-pro-lock .button { justify-content: center; }
.worksheet-pro-lock .text-link { text-align: center; }

.worksheet-guidance-shell { padding-top: 8px; }
.worksheet-guidance-shell .prose-layout { padding-top: 55px; }
.worksheet-guidance-shell .prose > .eyebrow { margin-bottom: 10px; }
.worksheet-guidance-shell .prose > .eyebrow + h2 { margin-top: 0; }
.worksheet-instructions { padding: 18px 20px; border-left: 4px solid var(--babiro-primary); border-radius: 0 14px 14px 0; background: var(--babiro-surface); }
.generator-match-card { border-radius: 50% 20% / 10% 40%; }

.worksheet-related-section { position: relative; overflow: hidden; }
.worksheet-related-section::before { position: absolute; top: -150px; left: -130px; width: 300px; height: 300px; border-radius: 50% 20% / 10% 40%; background: color-mix(in srgb, var(--babiro-accent) 9%, transparent); content: ""; transform: rotate(-15deg); pointer-events: none; }
.worksheet-related-section .wrap { position: relative; z-index: 1; }
.worksheet-related-heading { align-items: flex-end; }
.worksheet-related-heading > div:first-child { max-width: 760px; }
.worksheet-related-heading p:last-child { max-width: 720px; color: var(--babiro-muted); }
.worksheet-related-paths { display: flex; max-width: 360px; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.babiro-scheme-pets .worksheet-product-header {
  background-image: linear-gradient(rgba(255,252,244,.88), rgba(255,255,255,.97)), url("../images/background.jpg");
}

@media (max-width: 900px) {
  .worksheet-product-header__inner { grid-template-columns: 1fr; }
  .worksheet-header-summary { max-width: 300px; text-align: left; border-radius: 22px 9px; }
  .worksheet-product-layout { grid-template-columns: 1fr; }
  .worksheet-product-panel { position: static; max-width: 760px; width: 100%; margin-inline: auto; border-radius: 28px 12px; }
  .worksheet-related-heading { align-items: flex-start; flex-direction: column; }
  .worksheet-related-paths { max-width: none; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .worksheet-product-header { padding-top: 36px; }
  .worksheet-product-header::after { display: none; }
  .worksheet-header-trust { display: grid; gap: 8px; }
  .worksheet-preview-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .worksheet-preview-label small { text-align: left; }
  .worksheet-facts--grid { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .worksheet-taxonomy-map__row { grid-template-columns: 1fr; gap: 4px; }
  .worksheet-taxonomy-map__row > span { padding-top: 0; }
}

/*
 * Babiro 1.1.15 — Phase 50.6: Search & Worksheet Finder Upgrade.
 * Search and discovery now share taxonomy-aware pathways, natural-language
 * worksheet finding, removable filter state, stronger result grouping, and
 * useful zero-result recovery. The approved worksheet preview is untouched.
 */
.worksheet-finder-bar {
  position: relative;
  z-index: 2;
  padding: clamp(24px,4vw,38px);
  margin: -10px 0 30px;
  border: 1px solid #f0d4dd;
  border-radius: 34px 14px 34px 14px;
  background: linear-gradient(135deg,#fff8fa,#fff 58%,var(--babiro-surface));
  box-shadow: var(--babiro-shadow-soft);
}
.worksheet-finder-bar__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.worksheet-finder-bar__heading h2 { margin: 5px 0 0; }
.worksheet-finder-bar__heading > p { max-width: 570px; margin: 0; color: var(--babiro-muted); font-size: .88rem; }
.worksheet-finder-bar__form { position: relative; display: grid; grid-template-columns: minmax(260px,1.65fr) repeat(3,minmax(130px,.72fr)) auto; gap: 10px; align-items: end; }
.worksheet-finder-bar__form label, .worksheet-finder-keyword { min-width: 0; }
.worksheet-finder-bar__form label > span, .worksheet-finder-keyword > label { display: block; margin-bottom: 6px; color: var(--babiro-ink); font-size: .7rem; font-weight: 850; letter-spacing: .04em; }
.worksheet-finder-bar__form select, .worksheet-finder-bar__form input { width: 100%; min-height: 48px; padding: 9px 34px 9px 11px; border: 1px solid #d5d9e8; border-radius: 13px; color: var(--babiro-ink); background: #fff; font: inherit; }
.worksheet-finder-keyword { position: relative; }
.worksheet-finder-keyword__control { position: relative; }
.worksheet-finder-keyword__control > span, .worksheet-finder-keyword__control > svg { position: absolute; z-index: 1; top: 50%; left: 14px; color: var(--babiro-muted); transform: translateY(-50%); }
.worksheet-finder-keyword__control input { padding-left: 43px; padding-right: 12px; }
.worksheet-finder-bar__form .button { min-height: 48px; white-space: nowrap; }
.worksheet-finder-suggestions { top: calc(100% + 7px); right: 0; left: 0; }
.worksheet-finder-pathways { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 18px; }
.worksheet-finder-pathways > strong { margin-right: 3px; color: var(--babiro-muted); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.worksheet-finder-pathways > a { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--babiro-line); border-radius: 999px; color: var(--babiro-ink); background: #fff; font-size: .73rem; font-weight: 800; text-decoration: none; }
.worksheet-finder-pathways a small { color: var(--babiro-primary-dark); font-size: .61rem; font-weight: 900; text-transform: uppercase; }
.worksheet-finder-pathways a span { color: var(--babiro-muted); font-size: .62rem; }
.worksheet-finder-pathways a:hover, .worksheet-finder-pathways a:focus-visible { border-color: var(--babiro-primary); color: var(--babiro-primary-dark); }

.filter-toggle__count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; border-radius: 999px; color: #fff; background: var(--babiro-primary); font-size: .68rem; }
.filters-panel__eyebrow { margin: 0 0 2px; color: var(--babiro-primary-dark); font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.filters-panel input[type="search"] { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cbd2e7; border-radius: 11px; background: #fff; color: var(--babiro-ink); }
.active-taxonomy-filters > a:not(.active-taxonomy-filters__clear) b { margin-left: 2px; color: var(--babiro-muted); font-size: .9rem; line-height: 1; }
.active-taxonomy-filters > a:not(.active-taxonomy-filters__clear):hover b { color: var(--babiro-primary-dark); }
.results-summary > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; }
.results-summary__filters { min-height: 36px; padding: 7px 11px; border: 1px solid var(--babiro-line); border-radius: 999px; color: var(--babiro-primary-dark); background: #fff; font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.finder-recovery-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; }
.finder-recovery-paths { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid var(--babiro-line); }
.finder-recovery-paths > strong { width: 100%; margin-bottom: 4px; color: var(--babiro-muted); font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.finder-recovery-paths > a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--babiro-line); border-radius: 999px; color: var(--babiro-ink); background: #fff; font-size: .75rem; font-weight: 800; text-decoration: none; }
.finder-recovery-paths a small { color: var(--babiro-primary-dark); font-size: .62rem; text-transform: uppercase; }
.empty-state--finder { min-height: 380px; background: linear-gradient(145deg,#fff,var(--babiro-surface)); }

.search-page__header { max-width: 920px; }
.search-page__header > p:not(.eyebrow) { max-width: 780px; }
.search-page__actions { margin-top: 12px; }
.search-page__actions .text-link { display: inline-flex; align-items: center; gap: 6px; }
.search-pathways { padding: clamp(22px,4vw,34px); margin: -6px 0 38px; border: 1px solid var(--babiro-line); border-radius: 28px 12px; background: linear-gradient(135deg,#fff,var(--babiro-surface)); box-shadow: var(--babiro-shadow-soft); }
.search-pathways__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.search-pathways__heading h2 { margin: 5px 0 0; }
.search-pathways__heading > p { max-width: 540px; margin: 0; color: var(--babiro-muted); font-size: .84rem; }
.search-pathways__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.search-pathways__grid > a { position: relative; display: grid; min-width: 0; gap: 3px; padding: 15px 38px 15px 15px; border: 1px solid var(--babiro-line); border-radius: 16px 7px; color: var(--babiro-ink); background: #fff; text-decoration: none; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.search-pathways__grid > a > svg { position: absolute; right: 13px; top: 50%; color: var(--babiro-muted); transform: translateY(-50%); }
.search-pathways__grid > a:hover, .search-pathways__grid > a:focus-visible { border-color: var(--babiro-primary); box-shadow: var(--babiro-shadow-soft); transform: translateY(-2px); }
.search-pathways__type { color: var(--babiro-primary-dark); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.search-pathways__grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.search-pathways__grid small { color: var(--babiro-muted); font-size: .66rem; }
.search-result-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 12px 0 18px; margin-bottom: 28px; border-bottom: 1px solid var(--babiro-line); color: var(--babiro-muted); font-size: .8rem; }
.search-result-summary strong { color: var(--babiro-ink); }
.search-worksheet-results, .search-resource-results { margin-top: 42px; }
.worksheet-grid--search { grid-template-columns: repeat(3,minmax(0,1fr)); }
.search-resource-results .section-heading { margin-bottom: 16px; }
.search-result h3 { margin-bottom: 4px; font-size: 1.3rem; }
.search-result h3 a { color: var(--babiro-ink); text-decoration: none; }
.search-result h3 a:hover { color: var(--babiro-primary-dark); }
.empty-state--search { margin-top: 30px; background: linear-gradient(145deg,#fff,var(--babiro-surface)); }

.home-finder-keyword { position: relative; grid-column: 1 / -1; }
.home-finder-keyword__control { position: relative; }
.home-finder-keyword__control > svg { position: absolute; z-index: 1; top: 50%; left: 14px; color: var(--babiro-muted); transform: translateY(-50%); }
.worksheet-finder .home-finder-keyword input { width: 100%; min-height: 50px; padding: 10px 13px 10px 43px; border: 1px solid #f0b9cb; border-radius: 12px; color: var(--babiro-ink); background: #fff; font: inherit; }
.home-finder-suggestions { top: calc(100% + 7px); right: 0; left: 0; }
.worksheet-finder__content form { position: relative; grid-template-columns: repeat(3,minmax(0,1fr)); }
.worksheet-finder__content form > button { grid-column: 1 / -1; }

.babiro-scheme-pets .worksheet-finder-bar { border-color: #d9ddf0; background: linear-gradient(135deg,#fff,#f8f9ff 58%,#fffaf0); }

@media (max-width: 1120px) {
  .worksheet-finder-bar__form { grid-template-columns: minmax(260px,1.5fr) repeat(2,minmax(130px,.7fr)); }
  .worksheet-finder-bar__form > label:nth-of-type(3), .worksheet-finder-bar__form > .button { grid-column: auto; }
  .search-pathways__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .worksheet-finder-bar__heading, .search-pathways__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .worksheet-finder-bar__form { grid-template-columns: 1fr 1fr; }
  .worksheet-finder-keyword { grid-column: 1 / -1; }
  .worksheet-finder-bar__form .button { width: 100%; justify-content: center; }
  .worksheet-grid--search { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .worksheet-finder-bar { padding: 20px 16px; border-radius: 24px 10px; }
  .worksheet-finder-bar__form, .worksheet-finder__content form { grid-template-columns: 1fr; }
  .worksheet-finder-keyword, .home-finder-keyword, .worksheet-finder__content form > button { grid-column: auto; }
  .worksheet-finder-pathways { align-items: stretch; flex-direction: column; }
  .worksheet-finder-pathways > a { width: 100%; }
  .results-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .search-pathways__grid, .worksheet-grid--search { grid-template-columns: 1fr; }
  .search-result-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .finder-recovery-actions { align-items: stretch; flex-direction: column; }
  .finder-recovery-actions .button { width: 100%; justify-content: center; }
}

/* Babiro 1.1.16 — Phase 50.7: SEO Topic Clusters & Learning Graph. */
.worksheet-learning-path { border-top: 1px solid var(--babiro-line); }
.learning-path-trail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.learning-path-step { position: relative; display: grid; align-content: start; min-width: 0; gap: 4px; padding: 15px 16px; border: 1px solid var(--babiro-line); border-radius: 16px 7px; background: #fff; box-shadow: var(--babiro-shadow-soft); }
.learning-path-step:not(:last-child)::after { content: '›'; position: absolute; top: 50%; right: -10px; z-index: 1; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--babiro-line); border-radius: 50%; color: var(--babiro-muted); background: #fff; font-weight: 900; transform: translateY(-50%); }
.learning-path-step small, .learning-progression-card > small, .taxonomy-learning-goal small { color: var(--babiro-primary-dark); font-size: .63rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.learning-path-step a, .learning-path-step strong { overflow: hidden; color: var(--babiro-ink); font-size: .91rem; font-weight: 850; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.learning-path-step a:hover, .learning-path-step a:focus-visible { color: var(--babiro-primary-dark); }
.learning-path-step.is-current { border-color: color-mix(in srgb,var(--babiro-primary) 38%,var(--babiro-line)); background: var(--babiro-surface); }
.learning-progression-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.learning-progression-card { padding: 18px; border: 1px solid var(--babiro-line); border-radius: 20px 9px; background: linear-gradient(145deg,#fff,var(--babiro-surface)); }
.learning-progression-card--next { background: linear-gradient(145deg,#fff,#f6fbf8); }
.learning-progression-card h3 { margin: 4px 0 12px; font-size: 1rem; }
.learning-progression-card .chip-list { gap: 7px; }
.learning-progression-card .chip-list a { background: #fff; }
.taxonomy-learning-map { border-bottom: 1px solid var(--babiro-line); }
.taxonomy-learning-map__heading { align-items: flex-end; }
.taxonomy-learning-map__status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--babiro-line); border-radius: 999px; color: var(--babiro-primary-dark); background: #fff; font-size: .7rem; font-weight: 850; }
.taxonomy-learning-map__trail { margin-bottom: 18px; }
.taxonomy-learning-goal { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.taxonomy-learning-goal > div { padding: 18px; border-left: 3px solid var(--babiro-primary); border-radius: 4px 16px 16px 4px; background: var(--babiro-surface); }
.taxonomy-learning-goal p { margin: 6px 0 0; color: var(--babiro-muted); }
.taxonomy-learning-map__progression { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 820px) {
  .learning-path-trail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .learning-path-step:nth-child(2)::after { display: none; }
  .taxonomy-learning-map__progression { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .learning-path-trail, .learning-progression-grid, .taxonomy-learning-goal { grid-template-columns: 1fr; }
  .learning-path-step::after { display: none; }
  .learning-path-step a, .learning-path-step strong { white-space: normal; }
  .taxonomy-learning-map__heading { align-items: flex-start; }
}

/* Babiro 1.1.17 — Phase 50.8: Curriculum Standards Architecture. */
.worksheet-curriculum-alignment { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--babiro-line); }
.worksheet-curriculum-alignment h3 { margin: 0 0 5px; font-size: .96rem; }
.worksheet-curriculum-alignment > p { margin: 0 0 11px; color: var(--babiro-muted); font-size: .82rem; }
.curriculum-standard-chips { display: grid; gap: 7px; margin-bottom: 10px; }
.curriculum-standard-chips a { display: grid; gap: 2px; padding: 9px 11px; border: 1px solid var(--babiro-line); border-radius: 12px 5px; background: #fff; text-decoration: none; }
.curriculum-standard-chips strong { color: var(--babiro-primary-dark); font-size: .78rem; }
.curriculum-standard-chips span { color: var(--babiro-ink); font-size: .76rem; line-height: 1.3; }
.skill-curriculum-section { border-bottom: 1px solid var(--babiro-line); background: linear-gradient(180deg,#fff,var(--babiro-surface-alt)); }
.skill-standard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.skill-standard-card { position: relative; display: grid; gap: 5px; min-width: 0; padding: 18px 42px 18px 18px; border: 1px solid var(--babiro-line); border-radius: 20px 8px; background: #fff; box-shadow: var(--babiro-shadow-soft); text-decoration: none; }
.skill-standard-card small { color: var(--babiro-muted); font-size: .68rem; font-weight: 800; }
.skill-standard-card strong { color: var(--babiro-primary-dark); font-size: .9rem; }
.skill-standard-card span { color: var(--babiro-ink); font-weight: 750; line-height: 1.35; }
.skill-standard-card > .babiro-icon { position: absolute; top: 18px; right: 16px; color: var(--babiro-primary); }
.standards-hero { padding-bottom: 26px; background: linear-gradient(135deg,var(--babiro-surface),#fff 58%,var(--babiro-surface-alt)); }
.standards-hero__grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.75fr); gap: 28px; align-items: center; }
.standards-hero h1 { margin-bottom: 12px; }
.standards-hero p { max-width: 760px; color: var(--babiro-muted); }
.standards-hero__note { padding: 22px; border: 1px solid var(--babiro-line); border-radius: 24px 9px; background: rgba(255,255,255,.86); box-shadow: var(--babiro-shadow-soft); }
.standards-hero__note strong { display: block; margin-bottom: 5px; color: var(--babiro-primary-dark); }
.standards-hero__note p { margin: 0; font-size: .9rem; }
.standards-finder { display: grid; grid-template-columns: minmax(240px,1.6fr) repeat(4,minmax(130px,1fr)) auto auto; gap: 11px; align-items: end; padding: 18px; border: 1px solid var(--babiro-line); border-radius: 24px 10px; background: #fff; box-shadow: var(--babiro-shadow-soft); }
.standards-finder label, .standards-finder__keyword { display: grid; gap: 6px; min-width: 0; color: var(--babiro-ink); font-size: .73rem; font-weight: 850; }
.standards-finder input, .standards-finder select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid var(--babiro-line); border-radius: 11px; background: #fff; color: var(--babiro-ink); }
.standards-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.standard-card { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 21px; border: 1px solid var(--babiro-line); border-radius: 24px 10px; background: #fff; box-shadow: var(--babiro-shadow-soft); }
.standard-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.standard-card__meta span { color: var(--babiro-muted); font-size: .69rem; font-weight: 800; }
.standard-card__meta strong { padding: 5px 8px; border-radius: 999px; color: var(--babiro-primary-dark); background: var(--babiro-surface); font-size: .72rem; }
.standard-card h2 { margin: 0; font-size: 1.1rem; }
.standard-card h2 a { color: var(--babiro-ink); text-decoration: none; }
.standard-card > p { margin: 0; color: var(--babiro-muted); font-size: .88rem; }
.standard-card__facts { display: flex; flex-wrap: wrap; gap: 7px; }
.standard-card__facts span { display: inline-flex; align-items: center; gap: 5px; color: var(--babiro-muted); font-size: .72rem; }
.standard-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--babiro-line); color: var(--babiro-muted); font-size: .76rem; }
.standard-header { padding-top: 34px; background: linear-gradient(135deg,var(--babiro-surface),#fff 62%); }
.standard-header__grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.65fr); gap: 34px; align-items: start; }
.standard-header__code { display: inline-flex; margin-bottom: 12px; padding: 7px 11px; border: 1px solid color-mix(in srgb,var(--babiro-primary) 28%,var(--babiro-line)); border-radius: 999px; color: var(--babiro-primary-dark); background: #fff; font-size: .86rem; font-weight: 900; letter-spacing: .025em; }
.standard-header__intro { max-width: 760px; color: var(--babiro-muted); font-size: 1.02rem; }
.standard-header__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.standard-header__chips span { padding: 7px 10px; border: 1px solid var(--babiro-line); border-radius: 999px; background: #fff; color: var(--babiro-ink); font-size: .74rem; font-weight: 800; }
.standard-summary-card { padding: 21px; border: 1px solid var(--babiro-line); border-radius: 24px 9px; background: #fff; box-shadow: var(--babiro-shadow-soft); }
.standard-summary-card > small { color: var(--babiro-primary-dark); font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.standard-summary-card dl { display: grid; gap: 10px; margin: 14px 0; }
.standard-summary-card dl div { display: grid; grid-template-columns: minmax(90px,.65fr) 1fr; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--babiro-line); }
.standard-summary-card dt { color: var(--babiro-muted); font-size: .75rem; }
.standard-summary-card dd { margin: 0; color: var(--babiro-ink); font-size: .78rem; font-weight: 800; }
.standard-expectation { padding: 16px 18px; border-left: 3px solid var(--babiro-primary); border-radius: 5px 16px 16px 5px; background: var(--babiro-surface); }
.standard-finder-callout { padding: 19px; border: 1px solid var(--babiro-line); border-radius: 20px 8px; background: var(--babiro-surface-alt); }
.standard-finder-callout p { margin: 6px 0 13px; color: var(--babiro-muted); }
.standard-skill-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.standard-skill-card { padding: 19px; border: 1px solid var(--babiro-line); border-radius: 22px 9px; background: #fff; box-shadow: var(--babiro-shadow-soft); }
.standard-skill-card > small { color: var(--babiro-primary-dark); font-size: .67rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.standard-skill-card h3 { margin: 5px 0 8px; font-size: 1rem; }
.standard-skill-card h3 a { color: var(--babiro-ink); text-decoration: none; }
.standard-skill-card p { color: var(--babiro-muted); font-size: .85rem; }
.standard-skill-card__steps { display: grid; gap: 5px; color: var(--babiro-muted); font-size: .73rem; }
@media (max-width: 1100px) {
  .standards-finder { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .standards-finder__keyword { grid-column: span 2; }
  .standards-grid, .standard-skill-grid, .skill-standard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .standards-hero__grid, .standard-header__grid { grid-template-columns: 1fr; }
  .standards-finder { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .standards-finder__keyword { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .standards-finder, .standards-grid, .standard-skill-grid, .skill-standard-grid { grid-template-columns: 1fr; }
  .standards-finder__keyword { grid-column: auto; }
  .standards-finder .button { width: 100%; justify-content: center; }
  .standard-card footer { align-items: flex-start; flex-direction: column; }
}

/* Babiro 1.1.18 — Phase 50.9: Controlled Content Scale Engine. No preview styling changes. */

/* Babiro 1.1.19 — Phase 50.10: Packs & Bundle Monetization. */
.pack-hero-meta,.pack-upsell-meta,.collection-card__meta,.babiro-pack-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.pack-hero-meta span,.pack-upsell-meta span,.collection-card__meta span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid var(--babiro-line);border-radius:999px;background:#fff;color:var(--babiro-muted);font-size:.76rem;font-weight:800}
.pack-hero-price{margin:14px 0 4px;color:var(--babiro-primary-dark);font-size:1.35rem;font-weight:950}
.pack-convenience-note{max-width:780px;margin:14px 0 0;padding:12px 14px;border-left:3px solid var(--babiro-primary);border-radius:5px 14px 14px 5px;background:var(--babiro-surface);color:var(--babiro-muted);font-size:.9rem}
.pack-value-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 0;padding:0;list-style:none}
.pack-value-list li{padding:14px;border:1px solid var(--babiro-line);border-radius:18px 7px;background:#fff;font-size:.85rem;font-weight:800}
.pack-details-card,.pack-license,.pack-final-cta,.worksheet-pack-upsell{padding:22px;border:1px solid var(--babiro-line);border-radius:24px 9px;background:#fff;box-shadow:var(--babiro-shadow-soft)}
.pack-details-card{display:grid;gap:14px}.pack-details-card dl{display:grid;gap:9px;margin:0}.pack-details-card dl div{display:flex;justify-content:space-between;gap:16px;padding-bottom:8px;border-bottom:1px solid var(--babiro-line)}.pack-details-card dt{color:var(--babiro-muted)}.pack-details-card dd{margin:0;font-weight:850;text-align:right}
.pack-license{margin-top:18px}.pack-license h2,.pack-final-cta h2,.worksheet-pack-upsell h2{margin-top:0}.pack-license p{margin-bottom:0;color:var(--babiro-muted)}
.pack-final-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;background:linear-gradient(135deg,var(--babiro-surface),#fff)}
.pack-final-cta p{margin:5px 0 0;color:var(--babiro-muted)}
.babiro-pack-actions{justify-content:flex-start}.babiro-pack-actions .button{min-width:180px;justify-content:center}
.worksheet-pack-upsell{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;background:linear-gradient(135deg,var(--babiro-surface-alt),#fff 62%)}
.worksheet-pack-upsell p{margin:6px 0 12px;color:var(--babiro-muted)}.worksheet-pack-upsell .eyebrow{margin:0;color:var(--babiro-primary-dark)}
.pack-upsell-meta strong{color:var(--babiro-primary-dark)}
.collection-card__meta{margin-top:10px}.collection-card__meta strong{color:var(--babiro-primary-dark)}
@media(max-width:820px){.pack-value-list{grid-template-columns:1fr}.pack-final-cta,.worksheet-pack-upsell{align-items:flex-start;flex-direction:column}.babiro-pack-actions{width:100%}.babiro-pack-actions .button{width:100%}}

/* Babiro 1.1.20 — Phase 50.11: PDF Brand + QR Distribution. PDF-only; no worksheet-preview rules. */

/* Babiro 1.1.21 — Phase 50.12: Retention & Personalization Foundation. */
.section--personalized { background: linear-gradient(180deg, var(--babiro-surface-alt), #fff); border-block: 1px solid var(--babiro-line); }
.babiro-personalized[hidden] { display: none !important; }
.personalized-heading { align-items: end; }
.personalized-clear { appearance: none; border: 0; background: transparent; font: inherit; cursor: pointer; padding: 6px 0; }
.personalized-interest-list, .account-interest-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.personalized-interest-list span, .account-interest-list span { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid var(--babiro-line); border-radius: 999px; background: #fff; color: var(--babiro-muted); font-size: .86rem; font-weight: 700; }
.personalized-continue { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 24px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--babiro-primary) 24%, var(--babiro-line)); border-radius: calc(var(--babiro-radius) * .8); background: #fff; text-decoration: none; box-shadow: 0 10px 28px rgb(29 52 68 / .07); }
.personalized-continue > span { display: grid; gap: 3px; }
.personalized-continue small { color: var(--babiro-primary); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.personalized-continue strong { color: var(--babiro-ink); font-size: 1.08rem; }
.personalized-continue span span { color: var(--babiro-muted); }
.personalized-continue b { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--babiro-primary); color: #fff; font-size: 1.25rem; }
.personalized-grid { margin-top: 8px; }
.personalized-privacy-note { margin: 18px 0 0; color: var(--babiro-muted); font-size: .82rem; }
.account-personalization { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--babiro-line); }
.account-personalization__heading h3 { margin: 3px 0 14px; }
.account-continue-card { display: grid; gap: 4px; margin: 14px 0 20px; padding: 16px 18px; border: 1px solid var(--babiro-line); border-radius: calc(var(--babiro-radius) * .75); background: var(--babiro-surface-alt); text-decoration: none; }
.account-continue-card small { color: var(--babiro-primary); font-weight: 800; }
.account-continue-card strong { color: var(--babiro-ink); }
.account-continue-card span { color: var(--babiro-muted); }
.account-recent h4, .account-recommended h4 { margin: 18px 0 10px; }
.account-recent-links { display: flex; flex-wrap: wrap; gap: 8px; }
.account-recent-links a { padding: 7px 10px; border: 1px solid var(--babiro-line); border-radius: 8px; background: #fff; text-decoration: none; }
@media (max-width: 700px) {
  .personalized-heading { align-items: flex-start; }
  .personalized-continue { align-items: flex-start; }
  .personalized-continue b { margin-top: 4px; }
}
.account-personalization__heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.account-activity-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.account-activity-stats span { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 10px; border-radius: 8px; background: var(--babiro-surface-alt); color: var(--babiro-muted); }
.account-activity-stats strong { color: var(--babiro-ink); }
