/* RingBeats-local reading hierarchy and signal colours; shared site rules remain intact. */
.ringbeats-page { --accent: #51534e; --accent-dark: var(--ink); --rb-lime: #d2f74b; --rb-magenta: #e836c2; --rb-muted: #55524c; }
.ringbeats-page [id] { scroll-margin-top: 6rem; }
.ringbeats-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.ringbeats-page figure { margin: 0; min-width: 0; }
.ringbeats-page img { display: block; width: 100%; height: auto; object-fit: contain; }
.ringbeats-page figcaption { margin-top: .65rem; color: var(--rb-muted); font-size: .875rem; line-height: 1.65; }
.ringbeats-page .rb-hero { padding-top: clamp(2.3rem, 4vw, 3.4rem); }
.ringbeats-page .rb-hero-copy { margin-bottom: 1.6rem; }
.ringbeats-page .rb-kicker { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .78rem; margin: 0 0 .8rem; }
.ringbeats-page .rb-kicker::before { content: ''; width: .75rem; height: .75rem; border: 3px solid var(--rb-lime); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ringbeats-page .rb-hero h1,
html[lang="zh-CN"] .ringbeats-page .rb-hero h1 { font-family: var(--sans); font-size: clamp(3.2rem, 5.7vw, 5.1rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.05; color: var(--ink); margin: 0; }
.ringbeats-page .rb-subtitle { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; margin: .6rem 0 .55rem; }
.ringbeats-page .rb-status { max-width: 54rem; color: var(--rb-muted); font-size: .875rem; line-height: 1.65; margin: 0; }
.ringbeats-page .rb-overview { max-width: 48rem; font-size: 1.0625rem; line-height: 1.7; margin: 1rem 0 .8rem; }
.ringbeats-page .rb-role { max-width: 54rem; font-size: .9375rem; line-height: 1.65; margin: 0; }
.ringbeats-page .rb-hero-media img { width: 100%; height: auto; object-fit: contain; }
.ringbeats-page .rb-section { padding-block: clamp(2.7rem, 4vw, 3.6rem); }
.ringbeats-page .rb-section .section-heading { grid-template-columns: 2.9rem minmax(0, 1fr); gap: .9rem; margin-bottom: 1.4rem; }
.ringbeats-page .rb-section .section-heading h2 { font-family: var(--sans); font-size: clamp(1.9rem, 2.7vw, 2.375rem); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; max-width: 55rem; }
.ringbeats-page .section-number { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 2px solid var(--rb-lime); outline: 1px solid var(--ink); border-radius: 50%; color: var(--ink); font-size: .75rem; padding: 0; margin: 0; }
.ringbeats-page .rb-rationale { display: grid; grid-template-columns: 1fr 1fr; gap: 2.8rem; max-width: 65rem; }
.ringbeats-page .rb-rationale h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 650; line-height: 1.45; margin: 0 0 .45rem; }
.ringbeats-page .rb-rationale p { max-width: 31rem; font-size: 1.0625rem; line-height: 1.7; margin: 0; }
.ringbeats-page .rb-experience { margin-top: 1.6rem; }
.ringbeats-page .rb-label { font-size: .875rem; color: var(--rb-muted); margin: 0 0 .95rem; }
.ringbeats-page .rb-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.9rem; list-style: none; padding: 0; margin: 0; }
.ringbeats-page .rb-flow li { position: relative; min-width: 0; }
.ringbeats-page .rb-step-node { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 3px solid var(--rb-lime); border-radius: 50%; outline: 1px solid var(--ink); background: var(--ink); color: var(--cream); font-size: .75rem; margin-bottom: .8rem; }
.ringbeats-page .rb-flow li:nth-child(3) .rb-step-node { border-color: var(--rb-magenta); }
.ringbeats-page .rb-flow li:not(:last-child)::before { content: ''; position: absolute; top: 1.17rem; left: 3rem; right: -.4rem; height: 2px; background: repeating-linear-gradient(to right, var(--ink) 0 9px, transparent 9px 14px); opacity: .65; }
.ringbeats-page .rb-flow li:not(:last-child)::after { content: '→'; position: absolute; top: .4rem; right: -1.2rem; color: var(--ink); font-size: 1.1rem; }
.ringbeats-page .rb-step-title { font-family: var(--sans); font-size: 1.1875rem; font-weight: 650; line-height: 1.35; margin: 0 0 .35rem; }
.ringbeats-page .rb-step-detail { color: var(--rb-muted); font-size: .9375rem; line-height: 1.65; margin: 0; max-width: 13rem; }
.ringbeats-page .rb-extension { max-width: 55rem; color: var(--rb-muted); font-size: .875rem; line-height: 1.7; margin: 1.3rem 0 0; }
.ringbeats-page .rb-intro { max-width: 48rem; font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.4rem; }
.ringbeats-page .rb-ui-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; align-items: start; }
.ringbeats-page .rb-ui-module { min-width: 0; }
.ringbeats-page .rb-module-title { display: flex; align-items: center; gap: .65rem; font-family: var(--sans); font-size: 1.25rem; font-weight: 600; line-height: 1.45; margin: 0 0 .7rem; }
.ringbeats-page .rb-module-title::before { content: ''; flex: 0 0 .6rem; height: 1.05rem; background: var(--rb-lime); border: 1px solid var(--ink); border-radius: .25rem; }
.ringbeats-page .rb-ui-community .rb-module-title::before { background: var(--rb-magenta); }
.ringbeats-page .rb-image-link { display: block; cursor: zoom-in; }
.ringbeats-page .rb-image-link:hover,
.ringbeats-page .rb-image-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ringbeats-page .rb-ui-judgment { font-size: 1rem; line-height: 1.7; margin: .75rem 0 0; max-width: 38rem; }
.ringbeats-page .rb-prototype-scope { font-size: .9375rem; line-height: 1.7; color: var(--rb-muted); max-width: 55rem; margin: 1.4rem 0 0; }
.ringbeats-page .rb-prototype-scope strong { font-weight: 650; color: var(--ink); }
.ringbeats-page .rb-media-group { max-width: 64rem; }
.ringbeats-page .rb-film-overview .rb-film-heading { display: block; }
html[lang="en"] .ringbeats-page .rb-film-overview .rb-film-heading h2 { text-wrap: balance; }
html[lang="zh-CN"] .ringbeats-page .rb-film-overview .rb-film-title-topic { display: inline-block; max-width: 100%; }
.ringbeats-page .rb-media-group .rb-intro { margin-bottom: 1rem; }
.ringbeats-page .rb-film-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.ringbeats-page .rb-sound-note { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .875rem; line-height: 1.6; margin: 0; }
.ringbeats-page .rb-sound-note::before { content: ''; width: .7rem; height: .7rem; border: 3px solid var(--rb-lime); background: var(--ink); outline: 1px solid var(--ink); border-radius: 50%; }
.ringbeats-page .rb-duration { color: var(--rb-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ringbeats-page .rb-film video { display: block; width: 100%; height: auto; object-fit: contain; }
.ringbeats-page .rb-closing { padding-block: .5rem 1rem; }
.ringbeats-page .rb-closing > p { max-width: 48rem; font-size: 1rem; line-height: 1.75; color: var(--ink); margin: 0 0 1.3rem; }
.ringbeats-page .rb-closing .back-to-work { margin: 0; border-color: var(--rule); font-size: clamp(1.15rem, 2vw, 1.6rem); }
@media (max-width: 900px) {
  .ringbeats-page .rb-rationale { gap: 1.8rem; }
  .ringbeats-page .rb-ui-pair { grid-template-columns: 1fr; gap: 1.7rem; }
  .ringbeats-page .rb-flow { gap: 1.5rem; }
  .ringbeats-page .rb-step-title { font-size: 1.08rem; }
  .ringbeats-page .rb-step-detail { font-size: .9rem; }
}
@media (max-width: 600px) {
  .ringbeats-page .rb-hero { padding-top: 2rem; }
  .ringbeats-page .rb-hero h1,
  html[lang="zh-CN"] .ringbeats-page .rb-hero h1 { font-size: clamp(2.7rem, 12vw, 3.3rem); }
  .ringbeats-page .rb-hero-copy { margin-bottom: 1.3rem; }
  .ringbeats-page .rb-overview { font-size: 1rem; }
  .ringbeats-page .rb-role { font-size: .875rem; }
  .ringbeats-page .rb-section .section-heading { grid-template-columns: 2.1rem minmax(0, 1fr); gap: .7rem; margin-bottom: 1.25rem; }
  .ringbeats-page .rb-section .section-heading h2 { font-size: clamp(1.5rem, 6.9vw, 1.75rem); }
  .ringbeats-page .section-number { width: 1.8rem; height: 1.8rem; font-size: .7rem; }
  .ringbeats-page .rb-rationale { grid-template-columns: 1fr; gap: 1.2rem; }
  .ringbeats-page .rb-rationale h3 { font-size: 1.125rem; }
  .ringbeats-page .rb-rationale p,
  .ringbeats-page .rb-intro { font-size: 1rem; }
  .ringbeats-page .rb-flow { grid-template-columns: 1fr; gap: 1.25rem; }
  .ringbeats-page .rb-flow li { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr); gap: .9rem; }
  .ringbeats-page .rb-step-node { margin: .1rem 0 0; }
  .ringbeats-page .rb-step-title { font-size: 1.125rem; }
  .ringbeats-page .rb-step-detail { max-width: none; font-size: .9375rem; }
  .ringbeats-page .rb-flow li:not(:last-child)::before { left: 1.17rem; top: 2.9rem; bottom: -.7rem; width: 2px; height: auto; right: auto; background: repeating-linear-gradient(to bottom, var(--ink) 0 4px, transparent 4px 8px); }
  .ringbeats-page .rb-flow li:not(:last-child)::after { content: none; }
  .ringbeats-page .rb-module-title { font-size: 1.125rem; }
  .ringbeats-page .rb-ui-judgment { font-size: 1rem; }
}
