/* buy-or-repair (br): the only rules the two washer buy-or-repair pages add to the site's v2.css, db.css and routes.css;
   loaded by those two pages only (templates/db/washer_buy_or_repair.html.j2, washer_buying_checklist.html.j2).
   Everything else on the pages is an existing class of the site. Each block says why no existing rule served.

   N1 .br-page      colour pairs for the two sides, in the site's own --c / --g form (as .rt-wa, .rt-tel do).
                    Amber and cyan are the site's --amber and --cyan; no new colour.
   N2 .br-sum       two tinted cards side by side at phone width. The site's tinted cards (.rt, .tips li) stack
                    below 900 px; .in-cmp-t (the comparison table in db.css) needs 520 px and scrolls sideways.
   N3 .br-bar       the sticky strip under the top bar. The site has no sticky element besides .top.
   N4 .br-tl        the two rails with a shared day axis. The site's .tl is one rail filled by script, .rt-line is
                    horizontal with three fixed stops; neither holds two columns at 390 px.
   N5 .br-exits     .rt cards two across on a phone (.routes stacks them below 900 px).
   N6 .menu         the menu sheet eases open and closed (the live sheet appears at once: .menu[hidden]{display:none}).
   N7 .br-src, .br-srcs, .br-share-note   small source lines and the source list.
   N8 body.br-tl-on  the Google review badge (its small collapsed card too) waits at every width until the timeline has
                    passed (the site's own rule only waits for the hero, and the badge would cover the left column).
   N9 button.ghost-btn  the chat buttons are <button>s, as the site's other chat buttons are (a link to /order/ would need a
                    家電原理課 button after it); the site's .ghost-btn is written for links and leaves a button's font alone.
   Motion uses the site's --ease; the site's own reduced-motion rule (v2.css) already zeroes every transition here. */

/* N1 */
.br-page { --buy: #ffb84d; --buy-g: 255, 184, 77; --fix: #5fe6ff; --fix-g: 95, 230, 255; }
.br-buy { --c: var(--buy); --g: var(--buy-g); }
.br-fix { --c: var(--fix); --g: var(--fix-g); }
.br-tint { --c: var(--buy); --g: var(--buy-g); }

/* N2: the first-glance pair in the hero */
.br-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-self: start; }
.br-sum > div { padding: 14px 12px 14px; border-radius: 18px; border: 1px solid rgba(var(--g), 0.3); background: linear-gradient(160deg, rgba(var(--g), 0.1), var(--glass) 60%); }
.br-sum-h { font-size: 18px; line-height: 1.2; font-weight: 900; color: var(--c); }
.br-sum dl { margin: 10px 0 0; display: grid; gap: 10px; }
.br-sum dt { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.br-sum dd { margin: 2px 0 0; font-size: 15px; line-height: 1.35; font-weight: 700; }
.br-sum dd b { margin-right: 4px; font: 700 28px/1 var(--mono); color: var(--ink); }
.br-sum dd small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--ink-3); }
.br-sum-n { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.br-sum-n a { color: var(--cyan); text-decoration: none; }
@media (min-width: 900px) { .br-sum { margin-top: 44px; gap: 14px; } .br-sum > div { padding: 20px 20px 22px; } .br-sum dd { font-size: 17px; } }

/* N3: the strip that stays under the top bar and names the two sides */
.br-wrap { max-width: 760px; margin: 22px auto 0; }
.br-bar { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px;
  margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); background: rgba(6, 10, 19, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.br-bar > span { display: block; min-width: 0; padding: 8px 0 7px; }
.br-bar .br-buy { padding-right: 18px; text-align: right; border-right: 2px solid rgba(var(--g), 0.55); }
.br-bar .br-fix { padding-left: 18px; border-left: 2px solid rgba(var(--g), 0.55); }
.br-bar b { display: block; font-size: 16px; line-height: 1.25; font-weight: 900; color: var(--c); }
.br-bar small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 600px) { .br-bar { margin: 0; padding: 0; column-gap: 28px; border-radius: 0 0 16px 16px; } }

/* N4: two rails; each row pairs like with like (do, wait, at home, sometimes, end); marks and bands cross both */
.br-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px; }
.br-day { grid-column: 1 / -1; justify-self: center; position: relative; z-index: 2; padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 13px; line-height: 1.35; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); text-align: center; }
.br-say { grid-column: 1 / -1; justify-self: center; position: relative; z-index: 2; max-width: 21em; padding: 8px 12px; background: var(--bg); font-size: 14px; line-height: 1.55; color: var(--ink-2); text-align: center; text-wrap: balance; }
.br-c { position: relative; min-width: 0; padding: 12px 0 16px; }
.br-c.br-buy { padding-right: 18px; text-align: right; }
.br-c.br-fix { padding-left: 18px; }
.br-c::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(var(--g), 0.55); }
.br-c.br-buy::after { right: 0; }
.br-c.br-fix::after { left: 0; }
.br-c::before { content: ""; position: absolute; z-index: 1; top: 16px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: var(--bg); border: 2.5px solid rgba(var(--g), 0.6); transition: border-color 0.5s, box-shadow 0.5s; }
.br-c.br-buy::before { right: -6px; }
.br-c.br-fix::before { left: -6px; }
.br-c.lit::before { border-color: var(--c); box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(var(--g), 0.6); }
/* waiting: nothing for you to do, the days still pass */
.br-c.is-wait::after, .br-c.is-maybe::after { background: repeating-linear-gradient(180deg, rgba(var(--g), 0.6) 0 5px, transparent 5px 10px); }
.br-c.is-wait::before { width: 10px; height: 10px; top: 18px; border-width: 2px; border-style: dashed; }
.br-c.br-buy.is-wait::before { right: -4px; }
.br-c.br-fix.is-wait::before { left: -4px; }
.br-c.is-quiet::before { display: none; }
.br-c.is-quiet p { font-size: 13px; color: var(--ink-3); }
/* the end of a side: a filled stop, the rail stops with it */
.br-c.is-end::before { border: 0; background: var(--c); box-shadow: 0 0 0 4px rgba(var(--g), 0.18); }
.br-c.is-end::after { bottom: auto; height: 23px; }
/* a stop that happens only sometimes: dashed, the rail runs on through it */
.br-c.is-maybe::before { border-style: dashed; }
/* the band that closes the list: what happens when the right side does not work out (always open, never folded) */
.br-say.is-last { justify-self: stretch; max-width: none; margin-top: 8px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(var(--fix-g), 0.5); background: rgba(var(--fix-g), 0.06); text-align: left; }
.br-c.is-maybe summary b { color: var(--ink-2); }
.br-c.is-off::before, .br-c.is-off::after { display: none; }
.br-c summary { display: block; list-style: none; cursor: pointer; border-radius: 10px; }
.br-c summary::-webkit-details-marker { display: none; }
.br-c summary b { display: block; font-size: 17px; line-height: 1.3; font-weight: 900; }
.br-c summary b::after { content: "+"; display: inline-block; margin-left: 6px; font-weight: 400; color: var(--c); transition: transform 0.3s var(--ease); }
.br-c details[open] summary b::after { transform: rotate(45deg); }
.br-c summary span, .br-c > p { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.br-d { margin-top: 10px; padding: 10px 10px 11px; border-radius: 12px; border: 1px solid rgba(var(--g), 0.24); background: rgba(var(--g), 0.07); text-align: left; }
.br-d p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.br-d p + p { margin-top: 6px; }
@media (min-width: 600px) { .br-tl { column-gap: 28px; } .br-c summary b { font-size: 19px; } .br-c summary span, .br-c > p, .br-d p { font-size: 15px; } .br-d { padding: 14px 16px; } }

/* N5: the two ways on, side by side */
.br-exits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.br-exits .rt { gap: 10px; padding: 16px 12px 14px; }
.br-exits .rt h3 { font-size: 19px; }
.br-exits .rt-lead { font-size: 14.5px; line-height: 1.5; font-weight: 400; color: var(--ink-2); }
.br-exits .rt-go { min-height: 52px; padding: 8px 10px; font-size: 15.5px; text-align: center; line-height: 1.25; color: var(--ink); }
@media (min-width: 600px) { .br-exits { gap: 16px; max-width: 760px; } .br-exits .rt { padding: 22px 20px 20px; } .br-exits .rt h3 { font-size: 22px; } .br-exits .rt-lead { font-size: 16px; } .br-exits .rt-go { font-size: 17px; } }

/* N6: the menu sheet eases open and closed; browsers without @starting-style keep today's instant sheet */
.menu { transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), display 0.28s allow-discrete; }
.menu[hidden] { opacity: 0; transform: translateY(-10px); }
@starting-style { .menu:not([hidden]) { opacity: 0; transform: translateY(-10px); } }

/* N7: source lines */
.br-src { font-size: 12px !important; line-height: 1.5 !important; color: var(--ink-3) !important; }
.br-src a, .br-srcs a, .br-say a, .note a, .tips p a, .faq details p a { color: var(--cyan); text-decoration: none; }
.br-say a { display: block; margin-top: 4px; font-size: 12px; }
.note .br-src { display: block; margin-top: 4px; }
.br-src a:hover, .br-srcs a:hover { text-decoration: underline; }
.tips .br-src { margin-top: 6px; }
.br-srcs { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.br-share-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.br-page .lead-say + .sec { padding-top: 24px; }
.br-page .symp-hero:not(.solo) { padding-bottom: 20px; }
.br-page #compare { padding-top: 36px; }
.br-page .tips + .acts, .br-page .tips + .note { margin-top: 18px; }
@media (min-width: 900px) { .br-page .tips.br-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* N8 */
body.br-tl-on .review-wrapper { display: none !important; }

/* N9 */
button.ghost-btn { font-family: inherit; cursor: pointer; }
