/* Stain Library page (pattern frugalsos/bird-library, script assets/js/bird-library.js). Loaded on that page only.
   Brief: lab/content/bird-library/BRIEF.md. Same look as the Tips Library: the theme's palette, fonts and grain. */

.fsos-bd {
	--st-head: 72px;   /* height of the sticky site header; the script keeps it exact */
	--st-jade: var(--wp--preset--color--jade-deep);
	--st-ink: var(--wp--preset--color--ink);
	--st-soft: var(--wp--preset--color--graphite);
	--st-rule: var(--wp--preset--color--rule);
	--st-cream: var(--wp--preset--color--cream);
	--st-linen: var(--wp--preset--color--linen);
	--st-wrap: min(1280px, 100% - 2rem);
	background: var(--st-cream);
	color: var(--st-ink);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
	overflow-wrap: break-word;
}
.fsos-bird-library-page { margin-block-start: 0; }
.fsos-bd .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fsos-bd a { color: var(--st-jade); }
.fsos-bd button:focus-visible, .fsos-bd a:focus-visible { outline: 3px solid var(--wp--preset--color--marigold); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { html:has(.fsos-bd) { scroll-behavior: smooth; } }

/* ------------------------------------------------------------------ Hero (same as the Tips Library: Kevin's watercolor on the right, the title on the left) */
.fsos-bd__hero { position: relative; background: var(--fsos-grain), var(--st-cream); }
.fsos-bd__art { display: block; }
.fsos-bd__art img { display: block; width: 100%; height: auto; }
.fsos-bd__intro { width: var(--st-wrap); margin-inline: auto; padding-block: 1.25rem 2rem; }
.fsos-bd__title { margin: .35rem 0 0; font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.02; color: var(--wp--preset--color--forest); }
.fsos-bd__script { margin: .4rem 0 0; font-family: var(--wp--preset--font-family--script); font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.1; color: var(--st-jade); }
.fsos-bd__total { margin: .9rem 0 1.1rem; font-family: var(--wp--preset--font-family--sans); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--st-soft); }
.fsos-bd__search { display: flex; align-items: center; background: #fff; border: 2px solid var(--wp--preset--color--sage); border-radius: 999px; padding: .3rem .3rem .3rem 1.3rem; box-shadow: 0 14px 30px -20px rgba(29, 58, 37, .55); transition: border-color .2s, box-shadow .2s; }
.fsos-bd__search:focus-within { border-color: var(--st-jade); box-shadow: 0 0 0 4px rgba(45, 106, 90, .18), 0 14px 30px -20px rgba(29, 58, 37, .55); }
.fsos-bd__search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 1.1rem var(--wp--preset--font-family--body); padding: .7rem 0; color: var(--st-ink); -webkit-appearance: none; appearance: none; }
.fsos-bd__search input[type="search"]::placeholder { color: var(--st-soft); opacity: .8; }
.fsos-bd__search button { flex: none; border: 0; border-radius: 999px; background: var(--st-jade); color: #fff; font: 600 .95rem var(--wp--preset--font-family--sans); letter-spacing: .06em; padding: .8rem 1.5rem; cursor: pointer; min-height: 44px; }
.fsos-bd__search button:hover { background: var(--wp--preset--color--forest); }
.fsos-bd__hint { margin: .7rem 0 0; font-size: .9rem; color: var(--st-soft); }
@media (min-width: 700px) {
	.fsos-bd__hero { min-height: clamp(300px, 28vw, 400px); display: flex; align-items: center; overflow: hidden; }
	.fsos-bd__art { position: absolute; top: 0; right: 0; bottom: 0; width: min(62%, 920px); overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
	.fsos-bd__art img { height: 100%; width: 100%; object-fit: cover; object-position: 100% 0%; transform: scale(1.18); transform-origin: 80% 12%; }
	.fsos-bd__intro { position: relative; padding-block: 2.5rem; }
	.fsos-bd__intro > * { max-width: min(46%, 560px); }
}

/* ------------------------------------------------------------------ Shelf of the kinds of stain (round watercolors, like the Tips Library topics) */
.fsos-bd__shelf { width: var(--st-wrap); margin-inline: auto; padding-block: 1.5rem .5rem; }
.fsos-bd__shelf ul { list-style: none; margin: 0; padding: .4rem .25rem .8rem; display: flex; gap: clamp(.8rem, 2vw, 1.6rem); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fsos-bd__shelf li { flex: none; scroll-snap-align: start; }
.fsos-bd__kindlink { display: grid; justify-items: center; gap: .3rem; width: 108px; text-decoration: none; color: var(--st-ink); text-align: center; }
.fsos-bd__dot { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--st-linen); border: 2px solid var(--wp--preset--color--jadeite); transition: transform .35s var(--fsos-ease), border-color .2s, box-shadow .2s; }
.fsos-bd__dot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fsos-bd__kindlink:hover .fsos-bd__dot { transform: translateY(-3px) rotate(-2deg); border-color: var(--st-jade); }
.fsos-bd__kindlink.is-on .fsos-bd__dot { border-color: var(--wp--preset--color--marigold); box-shadow: 0 0 0 4px rgba(228, 180, 58, .35); }
.fsos-bd__kname { font: 600 .9rem/1.2 var(--wp--preset--font-family--sans); color: var(--st-jade); }
.fsos-bd__kindlink.is-on .fsos-bd__kname { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.fsos-bd__kcount { font: .78rem var(--wp--preset--font-family--sans); color: var(--st-soft); }

/* ------------------------------------------------------------------ What is it on? */
.fsos-bd__surfaces { width: var(--st-wrap); margin-inline: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.fsos-bd__surflabel { margin: 0; text-align: center; font: 600 .95rem/1.2 var(--wp--preset--font-family--sans); color: var(--st-jade); }
.fsos-bd__surfaces ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fsos-bd__surf { display: inline-block; padding: .45rem .9rem; border: 2px solid var(--wp--preset--color--jadeite); border-radius: 999px; background: var(--st-linen); color: var(--st-jade); font: 600 .88rem/1.2 var(--wp--preset--font-family--sans); text-decoration: none; transition: background .2s, border-color .2s; }
.fsos-bd__surf span { font-weight: 400; color: var(--st-soft); margin-left: .2em; }
.fsos-bd__surf:hover { border-color: var(--st-jade); }
.fsos-bd__surf.is-on { background: var(--wp--preset--color--marigold); border-color: var(--wp--preset--color--marigold); color: var(--st-ink); }
.fsos-bd__surf.is-on span { color: var(--st-ink); }

/* ------------------------------------------------------------------ Layout */
.fsos-bd__wrap { width: var(--st-wrap); margin: 1.75rem auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .fsos-bd__wrap { grid-template-columns: minmax(0, 1fr); } }
.fsos-bd [hidden] { display: none !important; }

/* ------------------------------------------------------------------ Stain tiles */
.fsos-bd__count { margin: 0 0 .5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--st-rule); font: 600 1rem var(--wp--preset--font-family--sans); color: var(--st-soft); }
.fsos-bd__kind { display: flex; align-items: center; gap: .9rem; margin: 1.8rem 0 .8rem; padding-bottom: .25rem; border-bottom: 2px solid var(--st-jade); font: 500 clamp(1.7rem, 3.6vw, 2.3rem)/1.1 var(--wp--preset--font-family--display); color: var(--st-jade); }
.fsos-bd__kind img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--st-linen); border: 2px solid var(--wp--preset--color--jadeite); flex: none; }
.fsos-bd__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.fsos-bd__tile { display: grid; gap: .15rem; align-content: start; min-height: 96px; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--st-rule); border-radius: 8px; text-decoration: none; color: var(--st-ink); transition: transform .3s var(--fsos-ease), box-shadow .3s, border-color .2s; }
.fsos-bd__tile:hover { transform: translateY(-3px); border-color: var(--st-jade); box-shadow: 0 16px 28px -20px rgba(29, 58, 37, .6); }
.fsos-bd__tname { font: 500 1.25rem/1.2 var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-bd__ways { font: .72rem/1.3 var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--st-soft); }
.fsos-bd__snip { font: italic .9rem/1.4 var(--wp--preset--font-family--body); color: var(--st-soft); margin-top: .25rem; }
.fsos-bd mark { background: #ffe9a8; color: inherit; padding: 0 .1em; border-radius: 2px; }
.fsos-bd__empty { text-align: center; padding: 2.5rem 1rem; }
.fsos-bd__empty img { width: 200px; max-width: 60%; height: auto; border-radius: 50%; }
.fsos-bd__emptytitle { margin: .5rem 0; font: 500 1.8rem var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }

/* ------------------------------------------------------------------ One stain: numbered ways */
.fsos-bd__backrow { margin: 0 0 1rem; }
.fsos-bd__back { display: inline-block; font: 600 .95rem var(--wp--preset--font-family--sans); text-decoration: none; padding: .45rem 1rem; border: 1px solid var(--st-jade); border-radius: 999px; background: #fff; }
.fsos-bd__back:hover { background: var(--st-jade); color: #fff; }
.fsos-bd__ptitle { margin: .4rem 0 0; font: 500 clamp(2.2rem, 5vw, 3.2rem)/1.08 var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-bd__lead { margin: .6rem 0 1.5rem; font: italic 1.2rem/1.5 var(--wp--preset--font-family--body); color: var(--st-soft); max-width: 46rem; }
.fsos-bd__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
.fsos-bd__way { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.3rem 1rem 1rem; background: #fff; border: 1px solid var(--wp--preset--color--jadeite); border-top: 4px solid var(--wp--preset--color--marigold); border-radius: 4px; box-shadow: 0 18px 34px -28px rgba(29, 58, 37, .6); }
.fsos-bd__way:first-child { border-top-color: var(--st-jade); }
.fsos-bd__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--st-jade); color: #fff; font: 500 1.4rem var(--wp--preset--font-family--display); }
.fsos-bd__wlabel { margin: 0; font: 600 .72rem var(--wp--preset--font-family--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--st-jade); }
.fsos-bd__wbody h3 { margin: .15rem 0 .4rem; font: 500 1.35rem/1.25 var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-bd__wbody p { margin: 0 0 .6rem; font: 1.05rem/1.65 var(--wp--preset--font-family--body); }
.fsos-bd__wbody .fsos-bird-src { margin: .4rem 0 0; font: .9rem var(--wp--preset--font-family--sans); color: var(--st-soft); }
.fsos-bd__wbody .fsos-bird-warn { margin: .6rem 0; padding: .6rem .9rem; background: #fff7dd; border-left: 4px solid var(--wp--preset--color--marigold); border-radius: 2px; font: 600 .95rem/1.5 var(--wp--preset--font-family--body); }
.fsos-bd__wbody .fsos-bird-warn::before { content: "Careful: "; font-family: var(--wp--preset--font-family--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #8a5a00; }
.fsos-bd__wbody img { max-width: 100%; height: auto; }
.fsos-bd__still { margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--wp--preset--color--jadeite-light); border-radius: 6px; line-height: 1.55; }
.fsos-bd__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; }
.fsos-bd__actions button { font: 600 .9rem var(--wp--preset--font-family--sans); border: 1px solid var(--st-jade); background: #fff; color: var(--st-jade); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; min-height: 40px; }
.fsos-bd__actions button:hover { background: var(--st-jade); color: #fff; }
.fsos-bd__printfoot { display: none; }
@media (max-width: 520px) { .fsos-bd__way { grid-template-columns: 36px minmax(0, 1fr); gap: .7rem; padding: .9rem .9rem .8rem .7rem; } .fsos-bd__num { width: 34px; height: 34px; font-size: 1.1rem; } }

/* ------------------------------------------------------------------ Side boxes: desktop right, phone bottom */
.fsos-bd__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; position: sticky; top: calc(var(--st-head) + 1rem); }
@media (max-width: 960px) { .fsos-bd__side { position: static; } }
.fsos-bd__box { overflow-wrap: anywhere; background: #fff; border: 1px solid var(--st-rule); border-radius: 6px; padding: 1.25rem 1.4rem; }
.fsos-bd__box p { margin: .6rem 0 0; line-height: 1.55; }
.fsos-bd__boxtitle { margin: 0; font: 500 1.35rem/1.25 var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-bd__rules { margin: .6rem 0 0; padding-left: 1.2rem; line-height: 1.55; }
.fsos-bd__rules li { margin-bottom: .35rem; }
.fsos-bd__box--jade { background: var(--fsos-grain), var(--fsos-wash-jade); border-color: var(--wp--preset--color--jadeite); }
.fsos-bd__btn { display: inline-block; background: var(--st-jade); color: #fff !important; text-decoration: none; font: 600 .95rem var(--wp--preset--font-family--sans); padding: .7rem 1.3rem; border-radius: 999px; }
.fsos-bd__btn:hover { background: var(--wp--preset--color--forest); }

/* print one stain */
@media print {
	body.fsos-bd-printing * { visibility: hidden !important; }
	body.fsos-bd-printing .fsos-bd__panel.is-printing, body.fsos-bd-printing .fsos-bd__panel.is-printing * { visibility: visible !important; }
	body.fsos-bd-printing .fsos-bd__panel.is-printing { position: absolute; left: 0; top: 0; width: 100%; background: #fff; }
	body.fsos-bd-printing .fsos-bd__backrow, body.fsos-bd-printing .fsos-bd__actions, body.fsos-bd-printing .fsos-bd__still { display: none !important; }
	body.fsos-bd-printing .fsos-bd__way { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
	body.fsos-bd-printing .fsos-bd__printfoot { display: block; margin-top: 1rem; font: .85rem sans-serif; color: #444; text-align: center; }
}

/* a watercolor for each stain (Kevin), else its group's picture */
.fsos-bd__tile.has-icon { grid-template-columns: 64px minmax(0, 1fr); column-gap: 1rem; align-items: center; }
.fsos-bd__tile.has-icon .fsos-bd__icon { grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--st-linen); border: 2px solid var(--wp--preset--color--jadeite); }
.fsos-bd__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fsos-bd__tile.has-icon .fsos-bd__snip { grid-column: 2; }
.fsos-bd__ptitle { display: flex; align-items: center; gap: 1rem; }
.fsos-bd__picon { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--st-linen); border: 2px solid var(--wp--preset--color--jadeite); }


/* ------------------------------------------------------------------ Phone: short page (Sara, 2026-10-21: "it's not mobile friendly").
   Compact one-line tiles, groups folded away until you open one (or search / pick a button). */
.fsos-bd__jump { display: none; margin-top: .4rem; }
@media (max-width: 700px) {
	.fsos-bd__jump { display: block; }
	.fsos-bd__tiles { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
	.fsos-bd__tile { min-height: 0; padding: .55rem .8rem; gap: 0; }
	.fsos-bd__tile.has-icon { grid-template-columns: 44px minmax(0, 1fr); column-gap: .8rem; }
	.fsos-bd__tile.has-icon .fsos-bd__icon { grid-row: 1 / span 2; width: 44px; height: 44px; }
	.fsos-bd__tname { font-size: 1.05rem; line-height: 1.2; }
	.fsos-bd__ways { font-size: .68rem; letter-spacing: .08em; }
	.fsos-bd__snip { font-size: .82rem; margin-top: .15rem; }
	.fsos-bd__snip[hidden] { display: none; }
	.fsos-bd__kind { margin: 1rem 0 .6rem; font-size: 1.35rem; cursor: pointer; gap: .7rem; }
	.fsos-bd__kind img { width: 40px; height: 40px; }
	.fsos-bd__group.is-collapsed .fsos-bd__tiles { display: none; }
	.fsos-bd__kind .fsos-bd__kn { margin-left: auto; font: 600 .85rem var(--wp--preset--font-family--sans); color: var(--st-soft); }
	.fsos-bd__kind::after { content: "\25BE"; font-size: 1rem; color: var(--st-jade); transition: transform .2s; }
	.fsos-bd__group.is-collapsed .fsos-bd__kind::after { transform: rotate(-90deg); }
	.fsos-bd__art img { height: 150px; width: 100%; object-fit: cover; object-position: 70% center; }
	.fsos-bd__shelf { padding-block: .6rem 0; }
	.fsos-bd__shelf ul { gap: .7rem; padding-bottom: .4rem; }
	.fsos-bd__kindlink { width: 74px; gap: .2rem; }
	.fsos-bd__dot { width: 62px; height: 62px; }
	.fsos-bd__kname { font-size: .74rem; }
	.fsos-bd__kcount { display: none; }
	.fsos-bd__surfaces { padding-top: .75rem; }
	.fsos-bd__surfaces ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; width: 100%; }
	.fsos-bd__surf { flex: none; white-space: nowrap; }
}

.fsos-bd__more { display: none; }
@media (max-width: 700px) {
	.fsos-bd__tiles > li.is-extra { display: none; }
	.fsos-bd__more { display: block; width: 100%; margin: .7rem 0 0; padding: .7rem 1rem; border: 2px solid var(--st-jade); border-radius: 999px; background: #fff; color: var(--st-jade); font: 600 .95rem var(--wp--preset--font-family--sans); cursor: pointer; }
	.fsos-bd__more[hidden], .fsos-bd__group.is-collapsed .fsos-bd__more { display: none; }
}

/* Folding groups on every screen (Sara, 2026-10-21: "I want the experience on mobile and desktop to be the same"). */
.fsos-bd__kind { cursor: pointer; }
.fsos-bd__kind .fsos-bd__kn { margin-left: auto; font: 600 .95rem var(--wp--preset--font-family--sans); color: var(--st-soft); }
.fsos-bd__kind::after { content: "\25BE"; font-size: 1.1rem; color: var(--st-jade); transition: transform .2s; }
.fsos-bd__group.is-collapsed .fsos-bd__kind::after { transform: rotate(-90deg); }
.fsos-bd__group.is-collapsed .fsos-bd__tiles { display: none; }
.fsos-bd__tiles > li.is-extra { display: none; }
.fsos-bd__more { display: block; width: 100%; max-width: 420px; margin: .9rem auto 0; padding: .7rem 1rem; border: 2px solid var(--st-jade); border-radius: 999px; background: #fff; color: var(--st-jade); font: 600 .95rem var(--wp--preset--font-family--sans); cursor: pointer; }
.fsos-bd__more:hover { background: var(--st-linen); }
.fsos-bd__more[hidden], .fsos-bd__group.is-collapsed .fsos-bd__more { display: none; }
@media print { .fsos-bd__group.is-collapsed .fsos-bd__tiles, .fsos-bd__tiles > li.is-extra { display: none; } }

/* The group pictures wrap and stay centered on every screen, no sideways scrolling (Sara, 2026-10-21). */
.fsos-bd__shelf ul { flex-wrap: wrap; justify-content: center; overflow-x: visible; scroll-snap-type: none; row-gap: 1rem; }
.fsos-bd__kcount { display: none; }
@media (max-width: 700px) {
	.fsos-bd__shelf ul { gap: .5rem .4rem; padding-inline: 0; }
	.fsos-bd__kindlink { width: 64px; }
	.fsos-bd__dot { width: 54px; height: 54px; border-width: 2px; }
	.fsos-bd__kname { font-size: .68rem; }
}

/* The round group pictures row is hidden everywhere (Sara, 2026-10-21: "Remove the icons"). The folding groups below carry the same pictures. To bring it back, delete this rule. */
.fsos-bd__shelf { display: none; }

/* ?look=classic shows the earlier look for comparison: round group pictures back, groups not folded. */
.fsos-bd--classic .fsos-bd__shelf { display: block; }
.fsos-bd--classic .fsos-bd__kind { cursor: default; }
.fsos-bd--classic .fsos-bd__kind::after, .fsos-bd--classic .fsos-bd__kn, .fsos-bd--classic .fsos-bd__more { display: none; }
.fsos-bd--classic .fsos-bd__kcount { display: inline; }

/* White page (Sara, 2026-10-21: "Try 1" for the beige background). To go back to cream, delete this block. */
.fsos-bd { --st-cream: #fff; --st-linen: #f5f8f6; }
.fsos-bd__hero { background: var(--fsos-grain), var(--wp--preset--color--cream); }   /* the top matches the Tips Library (Sara: "Try like the tips page color at the top") */

/* No hard line where the cream top meets the white page: the top fades into white (Sara, 2026-10-21: "Fix this"). */
.fsos-bd__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(56px, 8vw, 96px); background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; z-index: 0; }
.fsos-bd__intro { position: relative; z-index: 1; }
@media (max-width: 699px) { .fsos-bd__intro { padding-bottom: 3.2rem; } }
@media (max-width: 699px) { .fsos-bd__art { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); } }

/* Phone hero (Sara, 2026-10-21: "The bird is cut off, the text should wrap around the bird table on mobile"): the whole painting shows,
   and the title sits on its empty left side, beside the tub. The search and the rest follow underneath. */
@media (max-width: 699px) {
	.fsos-bd__hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 1.5rem; }
	.fsos-bd__art { grid-area: 1 / 1; position: static; -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
	.fsos-bd__art img { height: auto; width: 100%; object-fit: initial; transform: none; aspect-ratio: 16 / 9; }
	.fsos-bd__intro { display: contents; }
	.fsos-bd__head { grid-area: 1 / 1; align-self: center; padding: 0 0 0 1rem; max-width: 44%; z-index: 1; position: relative; }
	.fsos-bd__head .fsos-label { font-size: .62rem; letter-spacing: .12em; margin: 0; }
	.fsos-bd__head .fsos-bd__title { font-size: clamp(1.7rem, 8vw, 2.3rem); margin: .2rem 0 0; }
	.fsos-bd__head .fsos-bd__script { font-size: clamp(.95rem, 4.1vw, 1.25rem); margin: .35rem 0 0; }
	.fsos-bd__intro > .fsos-bd__total, .fsos-bd__intro > .fsos-bd__search, .fsos-bd__intro > .fsos-bd__hint { grid-column: 1; margin-inline: 1rem; }
	.fsos-bd__hero::after { display: none; }
}
/* Keep the typed text and the placeholder clear of the Find button (Sara, 2026-10-21). */
.fsos-bd__search input[type="search"] { padding-right: .9rem; text-overflow: ellipsis; }
@media (max-width: 480px) { .fsos-bd__search { padding-left: 1rem; } .fsos-bd__search input[type="search"] { font-size: 1rem; } .fsos-bd__search button { padding: .8rem 1.2rem; } }
.fsos-bd__search input[type="search"] { margin-right: .5rem; }

/* Phone: "We'll show you what to try." goes on its own line under "Tell us the stain." (Sara, 2026-10-21) */
@media (max-width: 699px) { .fsos-bd__s1, .fsos-bd__s2 { display: block; } }

/* Same hero on the Stain Library and the Tips Library (Sara, 2026-10-21: "The tips and stains one are different sizes"):
   same height, same title and tagline sizes, same painting box and zoom. Keep these rules identical in tips-library.css. */
@media (min-width: 700px) {
	.fsos-bd__hero { min-height: clamp(400px, 30vw, 420px); }
	.fsos-bd__art { width: auto; height: 100%; aspect-ratio: 16 / 9; max-width: 70%; }
	.fsos-bd__art img { height: 100%; width: 100%; object-fit: cover; object-position: 100% 0%; transform: scale(1.1); transform-origin: 100% 8%; }
}

/* Backyard Birds additions: region pills, By Bird / By Feeder / By Food tabs, placeholders, profile sections */
.fsos-bd__regions ul{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;list-style:none;margin:.25rem 0 1rem;padding:0}
.fsos-bd__region{display:inline-block;padding:.4rem .9rem;border-radius:999px;border:1px solid #cdbfa6;background:#fff;color:inherit;text-decoration:none;font-size:.95rem}
.fsos-bd__region.is-on{background:#2f5d50;border-color:#2f5d50;color:#fff}
.fsos-bd__region.is-soon{opacity:.55}
.fsos-bd__region em{font-size:.75em}
.fsos-bd__tabs{display:flex;justify-content:center;gap:.5rem;margin:0 0 1rem}
.fsos-bd__tab{padding:.5rem 1.1rem;border-radius:999px;border:1px solid #cdbfa6;background:#fff;font:inherit;cursor:pointer}
.fsos-bd__tab.is-on{background:#2f5d50;border-color:#2f5d50;color:#fff}
.fsos-bd__ph{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e9e1cf;color:#2f5d50;font-weight:700;font-size:1.6rem;width:64px;height:64px}
.fsos-bd__sci{margin:.1rem 0 .6rem;opacity:.75}
.fsos-bd__photo{display:flex;align-items:center;gap:1rem;padding:1rem;margin:0 0 1rem;border:2px dashed #cdbfa6;border-radius:12px;background:#faf6ec}
.fsos-bd__phbig{display:flex;align-items:center;justify-content:center;flex:none;width:72px;height:72px;border-radius:50%;background:#e9e1cf;color:#2f5d50;font-size:2rem;font-weight:700}
.fsos-bd__sec{margin:0 0 1rem}
.fsos-bd__sec h3{margin:.2rem 0 .3rem;font-size:1.05rem}
.fsos-bd__sec ul{margin:.2rem 0;padding-left:1.2rem}
.fsos-bird-shop{padding:.6rem .8rem;border:1px dashed #cdbfa6;border-radius:8px;background:#faf6ec}
.fsos-bd__surf img{width:40px;height:40px;object-fit:contain}
.fsos-bd__sec h3{color:var(--st-jade,#2f5d50);font-weight:700;font-size:1.15rem}
.fsos-bd__tabs{flex-wrap:wrap;gap:.4rem}
.fsos-bd__tab{padding:.45rem .8rem;font-size:.95rem;white-space:nowrap}
/* Fun fact: lightbulb callout (Sara's example, 2026-10-22) */
.fsos-bd__sec.is-fun{position:relative;padding:.9rem 1rem .9rem 4rem;border-radius:12px;background:#fff6d6;border:1px solid #ecd68a}
.fsos-bd__sec.is-fun::before{content:"";position:absolute;left:1rem;top:.9rem;width:2.2rem;height:2.2rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z' fill='%23ffe27a'/%3E%3Cpath d='M12 .5v1M3.5 4l.8.8M20.5 4l-.8.8M1 11h1M22 11h1'/%3E%3C/svg%3E") no-repeat center/contain}
.fsos-bd__sec.is-fun h3{margin-top:0}
.fsos-bd__share{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:1rem 0 .5rem}
.fsos-bd__share a{padding:.4rem .9rem;border-radius:999px;border:1px solid #2f5d50;color:#2f5d50;text-decoration:none;font-weight:600;font-size:.95rem}
.fsos-bd__share a:hover{background:#2f5d50;color:#fff}
@media print{.fsos-bd__share{display:none}}
.fsos-bd__sharelabel{display:inline-flex;align-items:center;gap:.35rem;color:#2f5d50}
.fsos-bd__sharebtn svg{vertical-align:-3px;margin-right:.15rem}
.fsos-bd__states{margin:.2rem auto 1rem;max-width:44rem;text-align:center;font-size:.9rem;opacity:.8}

/* Sara's own bird photo in place of the "Photo coming soon" box (2026-10-29, first one: her junco) */
.fsos-bd__pic{margin:0 0 1rem}
.fsos-bd__pic img{display:block;width:100%;height:auto;border-radius:12px}
.fsos-bd__pic img{width:auto;max-width:100%;max-height:600px}   /* square photos (her cardinal) stay a sensible size */
