/* TOY FINDER (30 Nov 2026, AU homepage): App_Code/sections.vb render_finder + resources/script/toy-finder.js.
   Flat surfaces and hairlines; orange only on links; photos only on step 1. */
.tf-off #tf { display: none; }
#tf { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 48px); }
/* brand purple for the finder's headings, Back, and the progress bar (Jason, 1 Dec 2026); body text stays ink */
#tf .tf-hl { color: var(--atms-purple, #6A2C99); }
#tf .tf-q { margin: 24px 0 10px; font-size: 14px; font-weight: 700; color: var(--atms-purple, #6A2C99); }
#tf [data-step="1"] > .tf-who:first-child { margin-top: 20px; }   /* no question over the strips */
#tf .tf-step[hidden] { display: none; }

/* step 1: who it's for - photo strips; "Not sure yet" a plain row */
#tf .tf-who { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#tf .tf-strip { position: relative; display: block; height: 104px; border-radius: 4px; overflow: hidden; text-decoration: none; background: #2A0C18; }
#tf .tf-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
#tf .tf-strip:hover img { transform: scale(1.04); }
#tf .tf-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 10, 30, .78) 0%, rgba(30, 10, 30, .35) 45%, rgba(30, 10, 30, 0) 70%); }
#tf .tf-strip.tf-r::after { background: linear-gradient(270deg, rgba(10, 20, 60, .78) 0%, rgba(10, 20, 60, .35) 45%, rgba(10, 20, 60, 0) 70%); }
#tf .tf-strip .tf-t { position: absolute; z-index: 1; top: 0; bottom: 0; left: 16px; display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
#tf .tf-strip.tf-r .tf-t { left: auto; right: 16px; }
#tf .tf-t::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
#tf .tf-row, #tf .tf-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 4px; box-sizing: border-box; border: 0; border-bottom: 1px solid #E9E1EC; border-radius: 0; text-decoration: none; color: var(--atms-ink, #2E1033); background: none; width: 100%; font: inherit; text-align: left; cursor: pointer; }
#tf .tf-row { border-top: 1px solid #E9E1EC; }
#tf .tf-row .tf-t { font-size: 19px; font-weight: 700; }
#tf .tf-row .tf-t::after, #tf .tf-opt .tf-t::after { display: none; }
#tf .tf-row::after, #tf .tf-opt::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.8px solid #6B5872; border-top: 1.8px solid #6B5872; transform: rotate(45deg); margin-right: 6px; }
#tf .tf-row:hover, #tf .tf-opt:hover { background: #FBF8FA; }
#tf .tf-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--atms-orange, #FA4616); }

/* steps 2 and 3: the question, the answers so far, the options as rows */
#tf .tf-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
#tf .tf-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--atms-purple, #6A2C99); cursor: pointer; }
#tf .tf-back::before { content: ""; width: 7px; height: 7px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); }
#tf .tf-of { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #6B5872; }
#tf .tf-prog { height: 3px; background: #E9E1EC; margin-top: 4px; }
#tf .tf-prog i { display: block; height: 100%; background: var(--atms-purple, #6A2C99); }
#tf .tf-so { margin: 20px 0 6px; font-size: 14px; color: #6B5872; }
#tf .tf-so button { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--atms-orange, #FA4616); cursor: pointer; text-decoration: underline; }
#tf .tf-h { margin: 0 0 16px; font-size: clamp(26px, 4vw, 34px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; color: var(--atms-purple, #6A2C99); }
#tf .tf-opts { border-top: 1px solid #E9E1EC; }
#tf .tf-opt .tf-l { display: flex; flex-direction: column; gap: 2px; }
#tf .tf-opt .tf-t { font-size: 19px; font-weight: 700; }
#tf .tf-opt .tf-d { font-size: 13px; color: #6B5872; }
#tf .tf-skip { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--atms-orange, #FA4616); }
#tf button:focus-visible, #tf a:focus-visible { outline: 2px solid #6A2C99; outline-offset: 2px; }
#tf [tabindex="-1"]:focus { outline: none; }   /* the question takes focus on each step for screen readers, not to show a ring */

/* desktop: the three photos side by side and taller; steps 2-3 keep a readable width */
@media (min-width: 900px) {
    #tf .tf-who { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    #tf .tf-strip { height: 220px; }
    #tf .tf-row { grid-column: 1 / -1; }
    #tf .tf-step[data-step="2"], #tf .tf-step[data-step="3"] { max-width: 960px; }   /* the same width as the results (Jason, 1 Dec 2026) */
}
/* the results: three picks the same size on the homepage's own product card (sections.css .s2-pcard), then more
   you might like, then See all. Flat: no borders round the cards, no shadows, no accent bars (Jason, 1 Dec 2026). */
#tf .tf-again { margin-left: 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--atms-orange, #FA4616); cursor: pointer; min-height: 44px; }
#tf .tf-bar .tf-of { margin-left: auto; }
#tf .tf-wait, #tf .tf-none { margin: 8px 0 0; font-size: 15px; color: #6B5872; }
#tf .tf-count { margin: 4px 0 6px; font-size: 14px; color: #6B5872; font-variant-numeric: tabular-nums; }
#tf .tf-res .tf-h { font-size: clamp(22px, 3vw, 28px); margin-bottom: 18px; }
/* the pace arm: the picks arrive one after another, then the rest */
@keyframes tf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#tf .tf-res.tf-in .tf-picks .tf-card, #tf .tf-res.tf-in .tf-h, #tf .tf-res.tf-in .tf-moreh, #tf .tf-res.tf-in .tf-more, #tf .tf-res.tf-in .tf-seeall { animation: tf-in .35s ease both; }
#tf .tf-res.tf-in .tf-picks .tf-card:nth-child(2) { animation-delay: .12s; }
#tf .tf-res.tf-in .tf-picks .tf-card:nth-child(3) { animation-delay: .24s; }
#tf .tf-res.tf-in .tf-moreh, #tf .tf-res.tf-in .tf-more, #tf .tf-res.tf-in .tf-seeall { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { #tf .tf-res.tf-in * { animation: none !important; } }
/* on a phone the three are a rail, like the homepage's other product rails */
#tf .tf-picks { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
#tf .tf-picks::-webkit-scrollbar { display: none; }
#tf .tf-picks > .tf-card { flex: 0 0 44%; scroll-snap-align: start; }
#tf .tf-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
#tf .tf-card { display: flex; flex-direction: column; min-width: 0; }
#tf .tf-link { flex: 1 1 auto; }
#tf .tf-role { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--atms-text-muted, #7A6F7E); margin: 0 0 8px; }
#tf .tf-ev { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--atms-text-muted, #7A6F7E); }
#tf .tf-rv { display: block; margin-top: 4px; }
#tf .tf-bf { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--atms-orange, #FA4616); }
#tf .tf-more .s2-pname { font-size: 14px; min-height: 0; }
#tf .tf-atc { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; margin-top: 12px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--atms-orange, #FA4616); color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
#tf .tf-atc-alt { background: #fff; color: var(--atms-orange, #FA4616); border: 1.5px solid var(--atms-orange, #FA4616); }
#tf .tf-atc:disabled { cursor: default; opacity: .9; }
#tf .tf-moreh { margin: 32px 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--atms-text-muted, #7A6F7E); }
#tf .tf-seeall { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--atms-orange, #FA4616); }
@media (min-width: 700px) {
    #tf .tf-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
    #tf .tf-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    #tf .tf-step[data-step="4"] { max-width: 960px; }
    #tf .tf-more { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* DESKTOP (1 Dec 2026, Jason): the phone layout, centred - the heading, the questions and the results (960px)
   sit in the middle of the band; the three photos keep the full width. */
@media (min-width: 900px) {
    #tf .s2-idx { justify-content: center; }
    #tf .tf-hl, #tf .tf-sub { text-align: center; margin-left: auto; margin-right: auto; }
    #tf .tf-sub { max-width: none; }
    #tf .tf-step[data-step="2"], #tf .tf-step[data-step="3"], #tf .tf-step[data-step="4"] { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { #tf .tf-strip img { transition: none; } }

/* PALE BAND (1 Dec 2026, Jason): the section is a full-bleed band in the palette's lilac mist, edge to edge like the
   trust band (.tr2: the page gutter is 16px on a phone, 3vw wider), so it reads as part of the page rather than a box.
   The product photo panels go white (they're lilac on a white page), the hairlines a shade deeper so they still show.
   (A solid purple band was tried and dropped the same day.) */
#tf { background: var(--atms-lilac-mist, #F3E8F4); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 761px) { #tf { margin-left: -3vw; margin-right: -3vw; padding-left: 3vw; padding-right: 3vw; } }
#tf { margin-bottom: -20px; }   /* the homepage wraps each section in .mb20 (sections.render_type): no white line under the band */
#tf .s2-pimg { background: #fff; }
#tf .tf-row, #tf .tf-opt { border-bottom-color: #DCCBE2; }
#tf .tf-row, #tf .tf-opts { border-top-color: #DCCBE2; }
#tf .tf-prog { background: #DCCBE2; }
#tf .tf-row:hover, #tf .tf-opt:hover { background: rgba(255, 255, 255, .55); }
