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

.fsos-rr {
	--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-cleaning-library-page { margin-block-start: 0; }
.fsos-rr .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fsos-rr a { color: var(--st-jade); }
.fsos-rr button:focus-visible, .fsos-rr a:focus-visible { outline: 3px solid var(--wp--preset--color--marigold); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { html:has(.fsos-rr) { scroll-behavior: smooth; } }

/* ------------------------------------------------------------------ Hero (same as the Tips Library: Kevin's watercolor on the right, the title on the left) */
.fsos-rr__hero { position: relative; background: var(--fsos-grain), var(--st-cream); }
.fsos-rr__art { display: block; }
.fsos-rr__art img { display: block; width: 100%; height: auto; }
.fsos-rr__intro { width: var(--st-wrap); margin-inline: auto; padding-block: 1.25rem 2rem; }
.fsos-rr__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-rr__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-rr__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-rr__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-rr__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-rr__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-rr__search input[type="search"]::placeholder { color: var(--st-soft); opacity: .8; }
.fsos-rr__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-rr__search button:hover { background: var(--wp--preset--color--forest); }
.fsos-rr__hint { margin: .7rem 0 0; font-size: .9rem; color: var(--st-soft); }
@media (min-width: 700px) {
	.fsos-rr__hero { min-height: clamp(300px, 28vw, 400px); display: flex; align-items: center; overflow: hidden; }
	.fsos-rr__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-rr__art img { height: 100%; width: 100%; object-fit: cover; object-position: 100% 0%; transform: scale(1.18); transform-origin: 80% 12%; }
	.fsos-rr__intro { position: relative; padding-block: 2.5rem; }
	.fsos-rr__intro > * { max-width: min(46%, 560px); }
}

/* ------------------------------------------------------------------ Shelf of the kinds of stain (round watercolors, like the Tips Library topics) */

/* ------------------------------------------------------------------ Tabs */
.fsos-rr__tabs { width: var(--st-wrap); margin: 1.4rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.fsos-rr__tab { padding: .55rem 1.3rem; border-radius: 999px; border: 2px solid var(--wp--preset--color--jadeite); background: var(--st-linen); color: var(--st-jade); font: 600 1rem var(--wp--preset--font-family--sans); cursor: pointer; }
.fsos-rr__tab.is-on { background: var(--st-jade); border-color: var(--st-jade); color: #fff; }

/* ------------------------------------------------------------------ Layout and side boxes */
.fsos-rr__wrap { width: var(--st-wrap); margin: 1.5rem auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .fsos-rr__wrap { grid-template-columns: minmax(0, 1fr); } }
.fsos-rr [hidden] { display: none !important; }
.fsos-rr__box { background: #fff; border: 1px solid var(--st-rule); border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.fsos-rr__box--jade { background: var(--wp--preset--color--jadeite); border-color: transparent; }
.fsos-rr__boxtitle { margin: 0 0 .5rem; font: 500 1.25rem var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-rr__rules { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.fsos-rr__rules li { margin-bottom: .35rem; }
.fsos-rr__box p { margin: .3rem 0; }

/* ------------------------------------------------------------------ Home lists */
.fsos-rr__count { margin: 0 0 .9rem; font: 600 1rem var(--wp--preset--font-family--sans); color: var(--st-soft); }
.fsos-rr__h2 { margin: 1.6rem 0 .6rem; font: 500 1.5rem var(--wp--preset--font-family--display); color: var(--st-jade); }
.fsos-rr__loading, .fsos-rr__empty, .fsos-rr__more { color: var(--st-soft); }
.fsos-rr__group { margin-bottom: .6rem; }
.fsos-rr__kind { margin: 0; font-size: 1rem; }
.fsos-rr__fold { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .55rem .2rem; background: none; border: 0; border-bottom: 2px solid var(--st-jade); cursor: pointer; text-align: left; color: var(--st-jade); }
.fsos-rr__fold img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--st-linen); border: 2px solid var(--wp--preset--color--jadeite); flex: none; }
.fsos-rr__fold span { flex: 1; font: 500 clamp(1.3rem, 3vw, 1.7rem) var(--wp--preset--font-family--display); }
.fsos-rr__fold em { font: 600 .9rem var(--wp--preset--font-family--sans); font-style: normal; color: var(--st-soft); }
.fsos-rr__fold::after { content: "\25B8"; margin-left: .3rem; transition: transform .2s; }
.fsos-rr__fold[aria-expanded="true"]::after { transform: rotate(90deg); }
.fsos-rr__tiles { list-style: none; margin: .8rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.fsos-rr__tile { width: 100%; text-align: left; display: grid; gap: .15rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--st-rule); border-radius: 12px; cursor: pointer; font: inherit; color: var(--st-ink); transition: border-color .2s, transform .2s; }
.fsos-rr__tile:hover { border-color: var(--st-jade); transform: translateY(-2px); }
.fsos-rr__tname { font: 500 1.15rem/1.2 var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-rr__tmeta { font: .85rem var(--wp--preset--font-family--sans); color: var(--st-soft); }
.fsos-rr__tiles--routines { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.fsos-rr__tile--routine { justify-items: center; text-align: center; }
.fsos-rr__tile--routine img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--st-linen); border: 2px solid var(--wp--preset--color--jadeite); }
.fsos-rr__pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fsos-rr__pill, .fsos-rr__chip { padding: .45rem .9rem; border: 2px solid var(--wp--preset--color--jadeite); border-radius: 999px; background: var(--st-linen); color: var(--st-jade); font: 600 .9rem var(--wp--preset--font-family--sans); cursor: pointer; }
.fsos-rr__pill em, .fsos-rr__chip em { font-style: normal; font-weight: 400; color: var(--st-soft); margin-left: .2em; }
.fsos-rr__pill:hover, .fsos-rr__chip:hover { border-color: var(--st-jade); }
.fsos-rr__chip.is-on { background: var(--wp--preset--color--marigold); border-color: var(--wp--preset--color--marigold); color: var(--st-ink); }
.fsos-rr__tasklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fsos-rr__tasklink { width: 100%; text-align: left; display: grid; gap: .1rem; padding: .7rem 1rem; background: #fff; border: 1px solid var(--st-rule); border-radius: 12px; cursor: pointer; font: inherit; color: var(--st-ink); }
.fsos-rr__tasklink span { font-size: .85rem; color: var(--st-soft); }

/* ------------------------------------------------------------------ A room, a surface, a routine */
.fsos-rr__back { padding: .45rem 1.1rem; border: 2px solid var(--st-jade); border-radius: 999px; background: transparent; color: var(--st-jade); font: 600 .95rem var(--wp--preset--font-family--sans); cursor: pointer; }
.fsos-rr__panel { margin-top: .5rem; }
.fsos-rr__phead { display: flex; align-items: center; gap: 1rem; }
.fsos-rr__phead img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--st-linen); border: 2px solid var(--wp--preset--color--jadeite); flex: none; }
.fsos-rr__crumb { margin: 0; font: .8rem var(--wp--preset--font-family--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--st-jade); }
.fsos-rr__ptitle { margin: .1rem 0 0; font: 500 clamp(1.9rem, 4.5vw, 2.8rem)/1.05 var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-rr__lead { margin: .8rem 0; color: var(--st-soft); }
.fsos-rr__progress { margin: 1rem 0; padding: .8rem 1rem; background: #fff; border: 1px solid var(--st-rule); border-radius: 12px; }
.fsos-rr__progress p { margin: .4rem 0 0; }
.fsos-rr__bar { height: 10px; border-radius: 999px; background: var(--st-linen); overflow: hidden; }
.fsos-rr__bar span { display: block; height: 100%; background: var(--st-jade); border-radius: 999px; transition: width .25s; }
.fsos-rr__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.fsos-rr__actions button, .fsos-rr__open, .fsos-rr__skip, .fsos-rr__how-btn { padding: .3rem .8rem; border: 1.5px solid var(--st-jade); border-radius: 999px; background: transparent; color: var(--st-jade); font: 600 .82rem var(--wp--preset--font-family--sans); cursor: pointer; }
.fsos-rr__actions button:hover, .fsos-rr__open:hover, .fsos-rr__skip:hover, .fsos-rr__how-btn:hover { background: var(--st-jade); color: #fff; }
.fsos-rr__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.fsos-rr__freq { margin: 1.4rem 0; }
.fsos-rr__freq h3 { margin: 0 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid var(--st-jade); font: 500 1.5rem var(--wp--preset--font-family--display); color: var(--st-jade); }
.fsos-rr__freq h3 em, .fsos-rr__job h3 em { font: 600 .8rem var(--wp--preset--font-family--sans); font-style: normal; color: var(--st-soft); margin-left: .4rem; }
.fsos-rr__list, .fsos-rr__rooms { list-style: none; margin: 0; padding: 0; }
.fsos-rr__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding: .55rem 0; border-bottom: 1px solid var(--st-rule); }
.fsos-rr__check { display: flex; align-items: flex-start; gap: .7rem; flex: 1 1 60%; cursor: pointer; line-height: 1.35; }
.fsos-rr__check input { appearance: none; -webkit-appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0; border: 2px solid var(--st-jade); border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-content: center; }
.fsos-rr__check input::after { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: var(--st-jade); transform: scale(0); transition: transform .15s; }
.fsos-rr__check input:checked::after { transform: scale(1); }
.fsos-rr__row.is-done .fsos-rr__check span { text-decoration: line-through; color: var(--st-soft); }
.fsos-rr__acts { display: flex; gap: .4rem; flex: none; }
.fsos-rr__how { flex: 1 1 100%; padding: .6rem .9rem; margin-left: 2.2rem; background: var(--st-linen); border-radius: 10px; font-size: .95rem; }
.fsos-rr__how p, .fsos-rr__job p { margin: .3rem 0; }
.fsos-rr__warn { color: #7a3b12; }
.fsos-rr__rname { flex: 1 1 60%; }
.fsos-rr__hidden { margin: 1.4rem 0; padding: .6rem 1rem; background: #fff; border: 1px dashed var(--st-rule); border-radius: 10px; }
.fsos-rr__job { margin: 1.4rem 0; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--st-rule); border-radius: 12px; }
.fsos-rr__job h3 { margin: 0 0 .3rem; font: 500 1.3rem var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-rr__note { margin-top: 1.6rem; font-size: .85rem; color: var(--st-soft); }
@media (max-width: 640px) { .fsos-rr__how { margin-left: 0; } .fsos-rr__check { flex-basis: 100%; } }

/* ------------------------------------------------------------------ Print: just the open checklist */
@media print {
	body.fsos-rr-printing header, body.fsos-rr-printing footer, body.fsos-rr-printing .wp-block-template-part, body.fsos-rr-printing .fsos-rr__hero, body.fsos-rr-printing .fsos-rr__tabs, body.fsos-rr-printing .fsos-rr__side,
	body.fsos-rr-printing .fsos-rr__back, body.fsos-rr-printing .fsos-rr__actions, body.fsos-rr-printing .fsos-rr__chips, body.fsos-rr-printing .fsos-rr__acts, body.fsos-rr-printing .fsos-rr__hidden, body.fsos-rr-printing .fsos-rr__open { display: none !important; }
	body.fsos-rr-printing .fsos-rr__wrap { display: block; width: 100%; margin: 0; }
	body.fsos-rr-printing .fsos-rr, body.fsos-rr-printing .fsos-rr__panel { background: #fff; }
	.fsos-rr__row { break-inside: avoid; }
	.fsos-rr__how { background: none; margin-left: 2rem; font-size: .85rem; }
}

.fsos-rr__check small { display: block; margin-top: .15rem; font-size: .85rem; color: var(--st-soft); }
.fsos-rr__small { font-size: .9rem; color: var(--st-soft); }
.fsos-rr__job h3 em { display: block; margin: .15rem 0 0; }

.fsos-rr__start { margin: 0 0 1.4rem; padding: 1rem 1.2rem; background: var(--wp--preset--color--jadeite); border-radius: 14px; }
.fsos-rr__start h2 { margin: 0 0 .4rem; font: 500 1.35rem var(--wp--preset--font-family--display); color: var(--wp--preset--color--forest); }
.fsos-rr__start ul { margin: 0; padding-left: 1.1rem; }
.fsos-rr__start li { margin: .3rem 0; }
.fsos-rr__start p { margin: .6rem 0 0; font-size: .9rem; }
.fsos-rr__link { background: none; border: 0; padding: 0; color: var(--st-jade); font: inherit; text-decoration: underline; cursor: pointer; }
.fsos-rr__tile--feature { background: var(--st-jade); border-color: var(--st-jade); }
.fsos-rr__tile--feature .fsos-rr__tname, .fsos-rr__tile--feature .fsos-rr__tmeta { color: #fff; }
.fsos-rr__more { margin: 1rem 0; }
@media print { body.fsos-rr-printing .fsos-rr__start, body.fsos-rr-printing .fsos-rr__more { display: none !important; } }

/* Header like the Tips, Stain and Birds libraries (Sara, 2026-10-22: "Not crazy about how it doesn't match the other libraries. The header is off"): white page with a cream top that fades out,
   title over the painting on a phone, same sizes. Copied from bird-library.css. */
/* White page (Sara, 2026-10-21: "Try 1" for the beige background). To go back to cream, delete this block. */
.fsos-rr { --st-cream: #fff; --st-linen: #f5f8f6; }
.fsos-rr__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-rr__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-rr__intro { position: relative; z-index: 1; }
@media (max-width: 699px) { .fsos-rr__intro { padding-bottom: 3.2rem; } }
@media (max-width: 699px) { .fsos-rr__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-rr__hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 1.5rem; }
	.fsos-rr__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); }
	/* cover, not initial: a hero not exactly 16:9 is cropped, never squeezed (Lighthouse image-aspect-ratio, 2026-11-03) */
	.fsos-rr__art img { height: auto; width: 100%; object-fit: cover; transform: none; aspect-ratio: 16 / 9; }
	.fsos-rr__intro { display: contents; }
	.fsos-rr__head { grid-area: 1 / 1; align-self: center; padding: 0 0 0 1rem; max-width: 44%; z-index: 1; position: relative; }
	.fsos-rr__head .fsos-label { font-size: .62rem; letter-spacing: .12em; margin: 0; }
	.fsos-rr__head .fsos-rr__title { font-size: clamp(1.7rem, 8vw, 2.3rem); margin: .2rem 0 0; }
	.fsos-rr__head .fsos-rr__script { font-size: clamp(.95rem, 4.1vw, 1.25rem); margin: .35rem 0 0; }
	.fsos-rr__intro > .fsos-rr__total, .fsos-rr__intro > .fsos-rr__search, .fsos-rr__intro > .fsos-rr__hint { grid-column: 1; margin-inline: 1rem; }
	.fsos-rr__hero::after { display: none; }
}
/* Keep the typed text and the placeholder clear of the Find button (Sara, 2026-10-21). */
.fsos-rr__search input[type="search"] { padding-right: .9rem; text-overflow: ellipsis; }
@media (max-width: 480px) { .fsos-rr__search { padding-left: 1rem; } .fsos-rr__search input[type="search"] { font-size: 1rem; } .fsos-rr__search button { padding: .8rem 1.2rem; } }
.fsos-rr__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-rr__s1, .fsos-rr__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-rr__hero { min-height: clamp(400px, 30vw, 420px); }
	.fsos-rr__art { width: auto; height: 100%; aspect-ratio: 16 / 9; max-width: 70%; }
	.fsos-rr__art img { height: 100%; width: 100%; object-fit: cover; object-position: 100% 0%; transform: scale(1.1); transform-origin: 100% 8%; }
}


.fsos-rr__when { font-size: .8rem; font-style: italic; color: var(--st-soft); margin-left: .3rem; }
