/* final-refined layer (over tokens -> site -> premium -> rich -> editorial).
   1 Typography: Fraunces (OFL, self-hosted; WONK off, SOFT 50, optical sizes) for display, Instrument Sans for text,
     Noto Serif SC / Noto Sans SC for Chinese.   2 Crafted nav, links, buttons, footer.   3 One photo grade.
   4 Interaction components (map, tabs, quiz, statement pins, checklist, chapter rail, drag gallery, stepped form).
   5 Mobile rhythm.   All motion respects prefers-reduced-motion. */
@font-face { font-family: Fraunces; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
:root {
  --display-font: Fraunces, Georgia, "Times New Roman", serif;
  --num-font: Fraunces, Georgia, serif;
  --rf-ease: cubic-bezier(.2, .8, .2, 1);
  --rf-ink-link: var(--copper);
}
:lang(zh-Hans) { --num-font: Fraunces, Georgia, serif; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: var(--rf-ease); }

/* ---------- 1. Type scale, tracking, optical sizes ---------- */
.rf :is(h1, h2, h3, h4, .ed-pull blockquote p) { font-optical-sizing: auto; font-kerning: normal; font-feature-settings: "kern", "liga", "calt"; }
.rf h1 { font-weight: 330; letter-spacing: -.034em; }
.rf h2 { font-weight: 350; letter-spacing: -.026em; text-wrap: balance; }
.rf h3 { font-weight: 480; letter-spacing: -.008em; text-wrap: balance; }
.rf .ed-hero h1 { font-size: clamp(3rem, 1rem + 5vw, 6.1rem); line-height: .94; }
.rf .r-inner-hero h1 { font-size: clamp(2.3rem, 1.2rem + 2.3vw, 3.7rem); line-height: 1; letter-spacing: -.03em; font-weight: 330; max-width: none; }
.rf .ed-essay h2, .rf .ed-story-head h2 { font-size: clamp(2rem, 1.1rem + 2.3vw, 3.4rem); line-height: 1.02; }
.rf p, .rf li { text-wrap: pretty; }
.rf .lead, .rf .ed-lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.55; letter-spacing: -.004em; }
.rf .ed-drop::first-letter { font-weight: 300; font-style: italic; }
.rf .ed-idx-no { font-style: italic; font-weight: 400; font-variation-settings: "opsz" 24; }
.rf .ed-step-no, .rf .rf-check-no { font-family: var(--num-font); font-style: italic; font-variant-numeric: lining-nums; }
.rf :is(.r-report, .chart, .calc-results, [data-test=long-net], [data-test=short-net], output) { font-variant-numeric: tabular-nums lining-nums; }
/* Chinese: CJK serif for headings at a steadier weight, no negative tracking, natural breaks */
:lang(zh-Hans).rf :is(h1, h2, h3), :lang(zh-Hans) .rf :is(h1, h2, h3) { letter-spacing: 0; }
:lang(zh-Hans) .rf h1, :lang(zh-Hans).rf h1 { font-weight: 500; line-height: 1.2; }
:lang(zh-Hans) .rf h2, :lang(zh-Hans).rf h2 { font-weight: 500; line-height: 1.3; }
:lang(zh-Hans) .rf h3, :lang(zh-Hans).rf h3 { font-weight: 600; }
:lang(zh-Hans) .rf .ed-hero h1 { font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1.16; }
:lang(zh-Hans) .rf :is(p, li) { letter-spacing: 0; }
:lang(zh-Hans) .rf .ed-pull blockquote p { font-weight: 500; }
:lang(zh-Hans) .rf br.zh-hard { display: none; }

/* ---------- 2. Links, buttons, nav, footer ---------- */
.rf a:not(.button):not(.logo) { text-underline-offset: .22em; text-decoration-thickness: 1px; }
.rf :is(main p, main li, .r-faq-a) a:not(.button), .rf .text-action, .rf .site-nav a:not(.button), .rf .site-footer a {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 380ms var(--rf-ease), color 200ms ease; }
.rf :is(main p, main li, .r-faq-a) a:not(.button) { background-size: 100% 1px; background-image: linear-gradient(var(--hair), var(--hair)), linear-gradient(var(--copper), var(--copper)); background-size: 100% 1px, 0 1px; background-position: 0 100%, 0 100%; }
.rf :is(main p, main li, .r-faq-a) a:not(.button):hover { background-size: 100% 1px, 100% 1px; }
.rf .text-action:hover, .rf .site-nav a:not(.button):hover, .rf .site-footer a:hover, .rf .site-nav a[aria-current=page] { background-size: 100% 1px; }
.rf .text-action { padding-bottom: 3px; }
.rf .text-action::after { transition: transform 320ms var(--rf-ease); }
.rf .text-action:hover::after { transform: translateX(4px); }
.rf .button { transition: background-color 220ms ease, color 220ms ease, box-shadow 320ms var(--rf-ease), transform 320ms var(--rf-ease); }
.rf .button:not(.skip) { transform: translate(var(--mx, 0), var(--my, 0)); }
.rf .button:hover { box-shadow: 0 10px 26px -14px rgb(20 54 46 / 55%); }
.rf .button:not(.skip):active { transform: translate(var(--mx, 0), var(--my, 0)) scale(.975); box-shadow: none; transition-duration: 90ms; }
.rf .button:focus-visible, .rf a:focus-visible, .rf button:focus-visible, .rf summary:focus-visible, .rf input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 3px; }
.rf .button--arrow::after { transition: transform 320ms var(--rf-ease); }
.rf .button--arrow:hover::after { transform: translateX(4px); }
/* header: logo | nav | utility group (language + CTA), one underline style for current page */
.rf .site-header { transition: box-shadow 300ms ease, background-color 300ms ease; }
.rf .site-nav { gap: clamp(18px, 2.2vw, 34px); }
.rf .site-nav a:not(.button) { padding-block: 6px 4px; font-size: .9375rem; letter-spacing: .005em; background-position: 0 calc(100% - 1px); }
.rf .site-nav a[aria-current=page] { color: var(--ink-primary); background-image: linear-gradient(var(--copper), var(--copper)); }
.rf .site-nav a[aria-current=page]::after { content: none !important; }
.rf .lang-switch { padding-left: 18px; margin-left: 6px; border-left: 1px solid var(--hair); gap: 6px; font-size: .8125rem; letter-spacing: .06em; }
.rf .lang-switch [aria-current] { color: var(--copper); text-decoration: none; }
.rf .lang-switch span[aria-hidden] { opacity: .4; }
/* footer */
.rf .r-footer-statement { font-size: clamp(1.5rem, 1rem + 1.3vw, 2.3rem); font-weight: 330; line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; }
.rf .site-footer .footer-links a { font-size: 1rem; }
.rf .site-footer a[href^="tel:"], .rf .site-footer a[href^="mailto:"] { font-size: 1.0625rem; color: var(--bg-canvas); }
.rf .site-footer a { text-decoration: none !important; }
.rf .r-footer-base { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.rf .r-footer-base p { margin: 0; }
.rf .rf-foot-util { margin-left: auto !important; display: flex; gap: 22px; }
.rf .rf-top span { display: inline-block; transition: transform 320ms var(--rf-ease); }
.rf .rf-top:hover span { transform: translateY(-3px); }
.rf .nw { white-space: nowrap; }

/* ---------- 3. One photographic grade (warm stone, muted greens, soft blacks) ---------- */
.rf .photo img, .rf .ed-photo img { filter: saturate(.84) sepia(.06) contrast(1.03) brightness(1.01); }
.rf .photo picture { background: #e7e2d8; }
.rf .photo { overflow: visible; }
.rf .photo picture { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .rf .ed-photo picture img, .rf .ed-g-item picture img { transition: transform 900ms var(--rf-ease), filter 600ms ease; }
  .rf .ed-photo:hover picture img { transform: scale(1.015); }
}
/* captions: one style everywhere: "Illustrative image · Subject", left aligned */
.rf .ed-photo figcaption, .rf .ed-g-item figcaption, .rf .photo figcaption { text-align: left !important; font-size: .75rem; letter-spacing: .02em; }
.rf .ed-ill { color: var(--ink-primary); font-weight: 500; }

/* pull quotes: W5 promises, not testimonials: no quotation marks, a copper hairline instead */
.rf .ed-pull blockquote p::before { content: none !important; }
.rf .ed-pull blockquote { padding-top: 26px; position: relative; }
.rf .ed-pull blockquote::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; border-top: 1px solid var(--copper); }
.rf .ed-ch-body .ed-pull blockquote { padding-top: 0; }
.rf .ed-ch-body .ed-pull blockquote::before { content: none; }

/* hero/essay hand-off: make the overlap read as intended (a paper panel resting on the photo) */
.rf .ed-essay-body { position: relative; }
.rf .ed-essay-body::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; border-top: 1px solid var(--copper); }

/* ---------- 4. Interaction components ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 4a service-area map */
.rf-areas .rf-area-btn { all: unset; cursor: pointer; font: inherit; color: inherit; background: linear-gradient(var(--copper), var(--copper)) 0 100% / 0 1px no-repeat; transition: background-size 380ms var(--rf-ease), color 200ms; }
.rf-areas .rf-area-btn:hover, .rf-areas .rf-area-btn[aria-pressed=true], .rf-areas .rf-area.is-on .rf-area-btn { background-size: 100% 1px; color: var(--brand-primary); }
.rf-areas .rf-area-btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.rf-areas .rf-area { position: relative; transition: opacity 300ms ease, transform 400ms var(--rf-ease); }
.rf-areas .rf-area::before { content: ""; position: absolute; left: -16px; top: 1.1em; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); transform: scale(0); transition: transform 300ms var(--rf-ease); }
.rf-areas .rf-area.is-on::before { transform: scale(1); }
.rf-areas[data-svc=short] .rf-area[data-ss="0"] { opacity: .38; }
.rf-areas svg .zone, .rf-areas svg .dot, .rf-areas svg text[data-region] { transition: opacity 300ms ease, fill 300ms ease, stroke-width 300ms ease, transform 400ms var(--rf-ease); transform-box: fill-box; transform-origin: center; }
.rf-areas svg [data-region] { cursor: pointer; }
.rf-areas[data-active]:not([data-active=""]) svg .zone:not(.is-on) { opacity: .35; }
.rf-areas svg .zone.is-on { stroke: var(--copper); stroke-width: 2; fill-opacity: .35; transform: scale(1.08); }
.rf-areas svg .dot.is-on { fill: var(--copper); }
.rf-areas svg text.is-on { fill: var(--copper); }
.rf-areas[data-svc=short] svg [data-region="Gold Coast"] { opacity: .22; }
.rf-filter { display: inline-flex; flex-wrap: wrap; gap: 0; margin: 4px 0 18px; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; }
.rf-filter button { appearance: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: 500 .8125rem/1 var(--body-font); color: var(--ink-secondary); cursor: pointer; min-height: 36px; transition: background-color 250ms ease, color 250ms ease; }
.rf-filter button[aria-pressed=true] { background: var(--brand-primary); color: var(--bg-canvas); }
.rf-filter button:not([aria-pressed=true]):hover { color: var(--ink-primary); background: var(--bg-subtle); }
.rf-map-status { min-height: 3em; margin: 0 0 8px; padding-left: 14px; border-left: 1px solid var(--copper); font-size: .9375rem; color: var(--ink-primary); }
html:not(.rf-js) .rf-filter, html:not(.rf-js) .rf-map-status { display: none; }
/* 4b service toggle */
.rf-tabs { position: relative; display: inline-flex; gap: 4px; margin: 0 0 clamp(28px, 4vw, 54px); border-bottom: 1px solid var(--hair); }
.rf-tabs[hidden] { display: none; }
.rf-tabs [role=tab] { appearance: none; background: none; border: 0; padding: 12px 18px 14px 0; margin-right: 18px; font: 400 clamp(1.05rem, .95rem + .4vw, 1.35rem)/1.1 var(--display-font); letter-spacing: -.01em; color: var(--ink-secondary); cursor: pointer; transition: color 250ms ease; }
.rf-tabs [role=tab][aria-selected=true] { color: var(--ink-primary); }
.rf-tabs [role=tab]:hover { color: var(--ink-primary); }
.rf-tabs-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--copper); transition: transform 420ms var(--rf-ease), width 420ms var(--rf-ease); }
.rf-tabbed .ed-svc[hidden] { display: none; }
.rf-tabbed .ed-svc + .ed-svc { margin-top: 0; }
.rf-in { animation: rf-in 520ms var(--rf-ease) both; }
.rf-in picture img { animation: rf-img 900ms var(--rf-ease) both; }
@keyframes rf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rf-img { from { transform: scale(1.04); } to { transform: none; } }
/* 4c quiz */
.rf-quiz { padding-block: clamp(70px, 9vw, 140px); background: linear-gradient(180deg, var(--bg-canvas), #efe9de 30%, #efe9de 70%, var(--bg-canvas)); }
.rf-quiz-head { grid-column: 1 / span 5; }
.rf-quiz-head h2 { font-size: clamp(1.9rem, 1.1rem + 2vw, 3rem); line-height: 1.04; }
.rf-quiz-head p { color: var(--ink-secondary); max-width: 38ch; }
.rf-quiz-progress { height: 1px; margin-top: 26px; background: var(--hair); max-width: 280px; }
.rf-quiz-progress span { display: block; height: 100%; background: var(--copper); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 500ms var(--rf-ease); }
.rf-quiz-form { grid-column: 7 / span 6; align-self: start; min-height: 320px; }
.rf-q { border: 0; margin: 0 0 22px; padding: 0; }
.rf-q[hidden] { display: none; }
.rf-q legend { padding: 0; margin-bottom: 18px; font: 400 clamp(1.35rem, 1.1rem + .8vw, 1.85rem)/1.2 var(--display-font); letter-spacing: -.015em; }
.rf-q-step { display: block; margin-bottom: 10px; font: 500 .72rem/1 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
html:not(.rf-js) .rf-q-step { display: none; }
.rf-opt { display: flex; gap: 14px; align-items: center; padding: 15px 18px; border: 1px solid var(--hair); border-radius: 2px; margin-bottom: 8px; background: rgb(255 255 255 / 55%); cursor: pointer; transition: border-color 250ms ease, background-color 250ms ease, transform 300ms var(--rf-ease); }
.rf-opt:hover { border-color: var(--ink-secondary); transform: translateX(3px); }
.rf-opt input { accent-color: var(--brand-primary); width: 18px; height: 18px; flex: none; }
.rf-opt:has(input:checked) { border-color: var(--brand-primary); background: #fff; box-shadow: inset 3px 0 0 var(--copper); }
.rf-opt:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.rf-quiz-nav { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.rf-quiz-nav .rf-q-next { margin-left: auto; }
.rf-quiz-nav .rf-q-next:disabled { opacity: .4; }
.rf-quiz-result { padding: 30px 0 0; border-top: 1px solid var(--copper); }
.rf-quiz-result:focus { outline: none; }
.rf-quiz-result h3 { margin: 6px 0 12px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 350; }
.rf-res-k { margin: 0; font: 500 .72rem/1 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.rf-res-note { font-size: .8125rem; color: var(--ink-secondary); }
.rf-quiz-result .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin: 22px 0 10px; }
.rf-quiz-form:not(.rf-live) .rf-q legend { font-size: 1.15rem; }
html:not(.rf-js) .rf-opt input { pointer-events: none; }
/* 4d owner statement pins */
.rf-pin { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 8px 0 -4px; border-radius: 50%; border: 1px solid var(--copper); color: var(--copper); font: italic 500 .66rem/1 var(--num-font); cursor: pointer; vertical-align: 1px; transition: background-color 220ms ease, color 220ms ease, transform 300ms var(--rf-ease); }
.rf-pin:hover, .rf-pin[aria-expanded=true] { background: var(--copper); color: #fff; transform: scale(1.1); }
.rf-pin:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.rf-statement [data-row] { transition: background-color 300ms ease; }
.rf-statement [data-row].is-on { background: rgb(184 115 51 / 10%); }
.rf-statement > .rf-pin { margin: 6px 0 8px; }
.rf-note { margin: 16px 0 6px; padding: 10px 12px; min-height: 3.2em; border-left: 2px solid var(--hair); background: rgb(0 0 0 / 2.5%); font-size: .8125rem; line-height: 1.45; color: var(--ink-secondary); transition: border-color 250ms ease, color 250ms ease; }
.rf-note.is-on { border-color: var(--copper); color: var(--ink-primary); }
html:not(.rf-js) .rf-pin, html:not(.rf-js) .rf-note { display: none; }
/* 4e short-stay checklist */
.rf-check-list { counter-reset: none; display: block !important; columns: auto !important; }
.rf-check { border-top: 1px solid var(--hair); list-style: none; }
.rf-check:last-child { border-bottom: 1px solid var(--hair); }
.rf-check summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.rf-check summary::-webkit-details-marker { display: none; }
.rf-check-no { color: var(--copper); font-size: 1rem; }
.rf-check-t { font: 450 clamp(1.1rem, 1rem + .4vw, 1.35rem)/1.25 var(--display-font); letter-spacing: -.01em; }
.rf-check summary .q-ic { position: relative; width: 28px; height: 28px; }
.rf-check summary .q-ic::before, .rf-check summary .q-ic::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; border-top: 1px solid currentColor; transition: transform 350ms var(--rf-ease); }
.rf-check summary .q-ic::after { transform: rotate(90deg); }
.rf-check details[open] summary .q-ic::after { transform: rotate(0); }
.rf-check summary:hover .rf-check-t { color: var(--brand-primary); }
.rf-check-a { padding: 0 40px 20px 56px; }
.rf-check-a p { margin: 0 0 10px; color: var(--ink-secondary); }
.rf-prep strong { display: block; margin-bottom: 2px; font: 500 .72rem/1.4 var(--body-font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-primary); }
.rf-tick { display: inline-flex; gap: 10px; align-items: center; font-size: .875rem; cursor: pointer; }
.rf-tick input { accent-color: var(--brand-primary); width: 18px; height: 18px; }
.rf-check:has(input:checked) .rf-check-no { color: var(--brand-primary); }
.rf-check:has(input:checked) .rf-check-no::after { content: " ✓"; font-style: normal; }
.rf-tally { margin-top: 16px; font-size: .875rem; color: var(--ink-secondary); }
.rf-tally b { font: italic 500 1.1rem var(--num-font); color: var(--copper); }
.rf-tally.is-done { color: var(--brand-primary); }
html:not(.rf-js) .rf-tally, html:not(.rf-js) .rf-tick { display: none; }
/* 4f chapter rail: a slim sticky sub-bar inside the story (desktop) */
.rf-rail { display: none; }
@media (min-width: 901px) {
  .rf-rail { display: block; position: sticky; top: calc(var(--header-height) - 1px); z-index: 5; margin: 0 calc(-1 * var(--bleed)) clamp(30px, 4vw, 56px); padding: 0 var(--bleed); background: color-mix(in srgb, var(--bg-canvas) 92%, transparent); backdrop-filter: blur(8px); border-block: 1px solid var(--hair); }
  .rf-rail ol { display: flex; gap: clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
  .rf-rail a { position: relative; display: flex; gap: 10px; align-items: baseline; padding: 13px 0 12px; font-size: .8125rem; color: var(--ink-secondary); text-decoration: none; background: none !important; transition: color 250ms ease; }
  .rf-rail a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--rf-ease); }
  .rf-rail a span { font: italic 400 .95rem var(--num-font); color: var(--ink-secondary); opacity: .55; transition: color 250ms ease, opacity 250ms ease; }
  .rf-rail a[aria-current=true] { color: var(--ink-primary); }
  .rf-rail a[aria-current=true]::after { transform: scaleX(1); }
  .rf-rail a[aria-current=true] span, .rf-rail a:hover span { color: var(--copper); opacity: 1; }
  .rf-rail a:hover { color: var(--ink-primary); }
  .ed-ch { scroll-margin-top: calc(var(--header-height) + 70px); }
}
/* 4g gallery: drag + count */
.ed-g-track { cursor: grab; }
.ed-g-track.is-drag { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.ed-g-track.is-coast { scroll-snap-type: none !important; scroll-behavior: auto !important; }
.ed-g-track.is-drag img { pointer-events: none; }
.rf-g-count { align-self: center; margin-right: 12px; font-size: .8125rem; letter-spacing: .06em; color: var(--ink-secondary); }
.rf-g-count b { font: italic 500 1.05rem var(--num-font); color: var(--copper); }
.ed-g-btn { transition: border-color 250ms ease, background-color 250ms ease, transform 300ms var(--rf-ease); }
.ed-g-btn:hover:not(:disabled) { background: var(--brand-primary); color: var(--bg-canvas); border-color: var(--brand-primary); }
.ed-g-btn:disabled { opacity: .35; }
/* 4h stepped assessment form */
.rf-steps-prog { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 30px; padding: 0 0 14px; list-style: none; }
.rf-steps-prog::before, .rf-steps-prog::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--hair); }
.rf-steps-prog::after { background: var(--copper); transform-origin: left; transform: scaleX(calc((var(--p, 0) * 2 + 1) / 3)); transition: transform 500ms var(--rf-ease); }
.rf-steps-prog li { display: flex; gap: 10px; align-items: baseline; font-size: .8125rem; color: var(--ink-secondary); }
.rf-sp-n { font: italic 500 1.05rem var(--num-font); color: var(--hair); }
.rf-steps-prog li.is-on { color: var(--ink-primary); }
.rf-steps-prog li.is-on .rf-sp-n, .rf-steps-prog li.is-done .rf-sp-n { color: var(--copper); }
.rf-fstep[hidden] { display: none !important; }
.rf-fstep { display: grid; gap: 18px; animation: rf-in 420ms var(--rf-ease) both; }
.rf-fnav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.rf-fnav .rf-fnext { margin-left: auto; }
.rf-fstep .rf-fback { justify-self: start; }

/* ---------- 5. Calculator + FAQ details ---------- */
.rf .chart-track { height: 8px; border-radius: 999px; }
.rf .chart-bar { border-radius: 999px; }
.rf .r-faq-item summary { transition: color 220ms ease, padding-left 320ms var(--rf-ease); }
.rf .r-faq-item summary:hover { color: var(--brand-primary); padding-left: 6px; }
.rf .r-faq-item summary .q-ic { width: 34px; height: 34px; border: 1px solid var(--hair) !important; color: var(--ink-primary); }
.rf .r-faq-item summary .q-ic::before, .rf .r-faq-item summary .q-ic::after { left: 10px; right: 10px; top: 16px; }
.rf .r-faq-item[open] summary .q-ic { background: var(--brand-primary); border-color: var(--brand-primary) !important; color: var(--bg-canvas); }
.rf .r-faq-item[open] summary .q-ic::before { transform: rotate(180deg); }
.rf .r-faq-item[open] .r-faq-a { animation: rf-in 380ms var(--rf-ease) both; }
.rf .r-range { accent-color: var(--brand-primary); }

/* tonal bands for inner-page variety */
.rf .rf-dark { background: var(--brand-primary); color: var(--dark-text); }
.rf .rf-dark :is(h2, h3) { color: var(--bg-canvas); }
.rf .rf-dark p { color: var(--dark-text); }
.rf .rf-dark .ed-idx { color: var(--dark-text); }
.rf .rf-dark .ed-step-list { --hair: var(--dark-rule); }
.rf .rf-stone { background: #efe9de; }

/* ---------- 6. Mobile rhythm ---------- */
@media (max-width: 900px) {
  .rf-quiz-head, .rf-quiz-form { grid-column: 1 / -1; }
  .rf-quiz-form { margin-top: 26px; min-height: 0; }
  .rf .ed-essay { padding-top: 36px; }
  .rf .ed-hero-photo figcaption { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .rf .ed-hero h1 { font-size: clamp(2.6rem, 1.4rem + 6vw, 3.3rem); line-height: .98; }
  :lang(zh-Hans) .rf .ed-hero h1 { font-size: clamp(2.15rem, 1.4rem + 4vw, 2.6rem); line-height: 1.22; }
  .rf .r-inner-hero h1 { font-size: clamp(2.2rem, 1.3rem + 5vw, 2.9rem); }
  .rf :is(.ed-steps, .ed-faq, .ed-areas, .ed-scope, .ed-checks, .ed-gallery, .rf-quiz, .ed-story) { padding-block: 56px; }
  .rf .ed-pull, .rf section > .ed-pull { margin-block: 48px 8px; }
  .rf-tabs { display: flex; width: 100%; }
  .rf-tabs [role=tab] { flex: 1; margin-right: 0; padding-right: 8px; font-size: 1rem; text-align: left; }
  .rf-check-a { padding: 0 0 18px 56px; }
  .rf .r-footer-base { flex-direction: column; }
  .rf .rf-foot-util { margin-left: 0 !important; }
  .rf .site-footer :is(a[href^="tel:"], a[href^="mailto:"]) { display: inline-flex; min-height: 44px; align-items: center; }
  .rf-filter button { padding: 8px 11px; }
  .rf-steps-prog .rf-sp-t { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rf *, .rf *::before, .rf *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .rf .button:not(.skip) { transform: none !important; }
  @view-transition { navigation: none; }
}
@media print { .rf-tabs, .rf-filter, .rf-map-status, .rf-rail, .rf-pin, .rf-note, .rf-quiz { display: none !important; } .rf-tabbed .ed-svc[hidden] { display: grid !important; } }

/* ---------- iteration 2: own review ---------- */
.rf button.text-action { appearance: none; border: 0; border-radius: 0; background-color: transparent; padding: 6px 0 3px; font: inherit; font-weight: 500; color: var(--brand-primary); cursor: pointer; }
.rf :is(.rf-q-back, .rf-fback)::after { content: none !important; }
.rf :is(.rf-q-back, .rf-fback)::before { content: "←"; display: inline-block; margin-right: 8px; transition: transform 320ms var(--rf-ease); }
.rf :is(.rf-q-back, .rf-fback):hover::before { transform: translateX(-4px); }
.rf .rf-q-restart::after { content: "↺" !important; margin-left: 8px; }
.rf-quiz-head h2 { margin-bottom: 18px; }
.rf-quiz-result .rf-q-restart { margin-top: 10px; }

/* ---------- review round 1 fixes (Codex + agy) ---------- */
/* hero caption stays visible at the photo's lower right, clear of the overlapping essay panel */
.rf .ed-hero-photo figcaption { text-align: right !important; position: relative; z-index: 3; }
@media (max-width: 900px) { .rf .ed-hero-photo figcaption { text-align: left !important; padding-inline: var(--page-margin); margin-bottom: 20px; } }
/* mobile header: one row (logo | language | menu) */
@media (max-width: 1080px) {
  .rf .header-inner { flex-wrap: nowrap !important; gap: 12px; }
  .rf .lang-switch { padding-left: 12px; margin-left: auto; margin-inline-start: auto; }
  .rf .header-inner .logo img { width: auto; height: 40px; }
  .rf .menu-toggle { flex: none; }
}
@media (max-width: 420px) { .rf .header-inner .logo img { height: 34px; } .rf .lang-switch { padding-left: 10px; } }
/* areas: mobile order is title -> intro -> filter/status -> map -> list; strong selected state */
@media (max-width: 900px) { .rf .rf-filter, .rf .rf-map-status { order: 1; } .rf .ed-area-list { order: 3; } }
.rf-areas .rf-area { padding-left: 14px; margin-left: -14px; border-left: 2px solid transparent; transition: border-color 300ms ease, background-color 300ms ease, opacity 300ms ease; }
.rf-areas .rf-area.is-on { border-left-color: var(--copper); background: linear-gradient(90deg, rgb(184 115 51 / 8%), transparent 70%); }
.rf-areas .rf-area::before { display: none; }
.rf-areas svg .zone.is-on { fill: var(--copper); fill-opacity: .18; stroke: var(--copper); stroke-width: 2.5; stroke-dasharray: none; }
.rf-areas svg .dot.is-on { fill: var(--copper); r: 7; }
.rf-areas svg text.is-on { fill: var(--copper); font-weight: 600; }
@media (max-width: 900px) { .rf .ed-hero .ed-hero-photo figcaption { padding-left: var(--page-margin) !important; padding-right: var(--page-margin) !important; } }
/* review round 2: clearer form progress, larger statement pins */
.rf-steps-prog li.is-on { color: var(--brand-primary); font-weight: 600; }
.rf-steps-prog li.is-done .rf-sp-n::after { content: " ✓"; font-style: normal; font-size: .8em; }
.rf-steps-prog li.is-on .rf-sp-n { color: var(--brand-primary); }
.rf-sp-now { margin: -14px 0 22px; font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.7rem)/1.2 var(--display-font); letter-spacing: -.01em; }
.rf-sp-now span { display: block; margin-bottom: 6px; font: 500 .72rem/1 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.rf-pin { width: 26px; height: 26px; font-size: .72rem; }
@media (max-width: 600px) { .rf-pin { width: 30px; height: 30px; } }
/* review round 2 (agy): sub-bar spacing, copper on dark, toggle without column flip, mobile shows both services */
@media (min-width: 901px) { .rf .ed-story-head { margin-bottom: 36px; } .rf .rf-rail { margin-bottom: clamp(48px, 5vw, 72px); } }
.rf .rf-dark .ed-idx-no, .rf .rf-dark .ed-step-no { color: var(--accent-cedar-light); }
.rf .rf-dark .ed-step-list { border-color: var(--dark-rule); }
.rf-tabbed .ed-svc--short { margin-top: 0; }
@media (min-width: 601px) {
  .rf-tabbed .ed-svc--short .photo { --crop: 4 / 3; grid-column: 1 / span 7; }
  .rf-tabbed .ed-svc--short .photo img { object-position: 50% 60%; }
  .rf-tabbed .ed-svc--short .ed-svc-text { grid-column: 9 / span 4; align-self: start; padding: clamp(16px, 4vw, 64px) 0 0; }
  .rf-tabs { display: flex; width: 100%; }
}
@media (max-width: 600px) {
  .rf .rf-tabs { display: none !important; }
  .rf .rf-tabbed .ed-svc[hidden] { display: grid !important; }
  .rf .rf-tabbed .ed-svc + .ed-svc { margin-top: 56px; }
}
.rf-statement h4 .rf-pin { margin-left: 8px; vertical-align: 0; }
.rf-cue { margin: 0 0 14px; font-size: .9375rem; color: var(--ink-secondary); }
/* calculator example values (Will 2026-12-04: keep defaults, clearly marked as examples) */
.rf-example-note { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 0 0 20px; padding: 12px 14px; border-left: 2px solid var(--accent-cedar); background: color-mix(in srgb, var(--accent-cedar) 7%, transparent); font-size: .9375rem; line-height: 1.55; color: var(--ink-secondary); }
.rf-ex-badge { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent-cedar); }
:lang(zh) .rf-ex-badge { letter-spacing: .04em; }
.rf-ex-tag { margin: 0 0 12px; font-size: .8125rem; color: var(--ink-secondary); }
