/* Ranking pages (experts + students): shared dark hero with a WebGL background
   and the collapsible methodology block.
   Brand exception, owner decision 2026-10-04: these two heroes may use glow /
   gradients (js/hero-shader-bg.js). The exception covers the hero background
   only — everything below the hero stays matte and flat. */

/* ── Hero ───────────────────────────────────────────────────── */
/* ranking-experts.css still sets body to Arial; the shared blocks use the site font. */
.rk-hero, .rk-test-note, .rk-method { font-family: 'Inter', Arial, sans-serif; }
.rk-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 660px; padding: 80px 0; display: flex; align-items: center;
  /* Static fallback: shown until the first frame and whenever WebGL is unavailable. */
  background: #1a0833 linear-gradient(115deg, #120526 0%, #1f0a3d 48%, #361163 100%);
}
.rk-hero-bg {
  position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity .9s ease;
}
.rk-hero-bg.is-live { opacity: 1; }
.rk-hero-inner {
  position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
}
.rk-hero-kicker {
  display: block; margin-bottom: 16px; color: #C0A582;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.rk-hero h1 { color: #fff; font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 24px; text-wrap: balance; }
.rk-hero-copy > p { color: #e9e3f1; font-size: 18px; line-height: 1.5; margin: 0 0 32px; text-wrap: pretty; }
.rk-hero-cta {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 16px 24px; border-radius: 6px;
  background: #C0A582; color: #361163; font: 700 15px/1.2 'Inter', Arial, sans-serif;
  text-decoration: none; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.rk-hero-cta:hover { background: #fff; color: #361163; }
.rk-hero-cta svg { width: 18px; height: 18px; flex: none; }

.rk-hero-toggle { display: flex; gap: 8px; margin-top: 32px; }
.rk-hero-toggle a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 6px; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.rk-hero-toggle a:hover { border-color: #fff; }
.rk-hero-toggle a[aria-current="page"] { border-color: #C0A582; color: #C0A582; }

/* Card surface: same values the owner approved for the homepage hero card. */
.rk-hero-card {
  width: 100%; max-width: 380px; margin-left: auto; padding: 40px;
  border: 1px solid #C0A582; border-radius: 12px; background: rgba(19,5,38,.85); color: #fff;
  box-shadow: 0 24px 48px rgba(8,2,18,.45);
}
.rk-hero-card-head { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #C0A582; }
.rk-hero-card-head img { width: 38px; height: 38px; object-fit: contain; }
.rk-hero-card-head span { color: #C0A582; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.rk-hero-card-label { color: #C0A582; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.rk-hero-card h2 { font-size: 28px; font-weight: 700; line-height: 1.2; color: #fff; margin: 0; letter-spacing: -.025em; }
.rk-hero-art { display: block; width: 100%; height: 160px; object-fit: contain; margin: 24px 0; }
.rk-hero-card > p:last-child { color: #fff; font-size: 15px; line-height: 1.5; margin: 0; text-wrap: pretty; }
/* Two pages, one layout: the Experts / Students toggle switches between them, so the lead
   (3 lines) and the card text (4 lines) reserve their height — headline, button, toggle and
   card then sit at the same coordinates on both pages. */
@media (min-width: 1025px) {
  .rk-hero-copy > p { min-height: 4.5em; }
  .rk-hero-card > p:last-child { min-height: 6em; }
}

.rk-hero-cta:focus-visible, .rk-hero-toggle a:focus-visible, .rk-method summary:focus-visible, .rk-test-note a:focus-visible { outline: 3px solid #C0A582; outline-offset: 4px; }

/* ── Test-mode note + methodology ───────────────────────────── */
.rk-test-note {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 18px 22px;
  background: #fff; border: 1px solid #d9d9d9; border-left: 3px solid #C0A582;
  color: #505050; font-size: 15px; line-height: 1.5;
}
.rk-test-note > svg { width: 20px; height: 20px; color: #361163; flex: none; margin-top: 2px; }
.rk-test-note p { margin: 0; font-size: 15px; line-height: 1.5; color: #505050; }
.rk-test-note strong { color: #361163; }
.rk-test-note a { color: #361163; font-weight: 700; white-space: nowrap; }

.rk-method { margin-bottom: 32px; background: #fff; border: 1px solid #d9d9d9; border-radius: 8px; }
.rk-method summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 22px; cursor: pointer; list-style: none;
  color: #361163; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase;
}
.rk-method summary::-webkit-details-marker { display: none; }
.rk-method summary svg { width: 20px; height: 20px; flex: none; transition: transform .2s; }
.rk-method[open] summary { border-bottom: 1px solid #ebebeb; }
.rk-method[open] summary svg { transform: rotate(180deg); }
.rk-method-body { padding: 24px 22px 26px; }
.rk-method-lead, .rk-method-foot { max-width: 860px; margin: 0; color: #505050; font-size: 15px; line-height: 1.5; }
.rk-method-list { list-style: none; margin: 20px 0; padding: 0; }
.rk-method-more { margin-top: 18px; }
.rk-method-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #361163; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.rk-method-more a:hover { text-decoration-thickness: 2px; }
.rk-method-more a:focus-visible { outline: 3px solid #C0A582; outline-offset: 4px; }
.rk-method-more svg { width: 18px; height: 18px; flex: none; }
.rk-method-list li {
  display: grid; grid-template-columns: 76px 250px minmax(0, 1fr); gap: 0 24px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid #ebebeb;
}
.rk-method-list li:last-child { border-bottom: 1px solid #ebebeb; }
.rk-method-weight { color: #361163; font-size: 24px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.rk-method-list h3 { margin: 0; color: #361163; font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: 0; }
.rk-method-list p { margin: 0; color: #505050; font-size: 15px; line-height: 1.5; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rk-hero { min-height: auto; padding: 64px 0; }
  .rk-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .rk-hero-card { max-width: 100%; margin-left: 0; }
}
@media (max-width: 767px) {
  .rk-method-list li { grid-template-columns: 64px minmax(0, 1fr); gap: 2px 16px; }
  .rk-method-list p { grid-column: 2; }
  .rk-method-weight { font-size: 20px; }
  .rk-test-note { flex-wrap: wrap; }
  .rk-test-note p { flex: 1; min-width: 0; }
}
@media (max-width: 600px) {
  .rk-hero { padding: 48px 0 56px; }
  .rk-hero-inner { padding: 0 20px; }
  .rk-hero h1 { font-size: 32px; }
  .rk-hero-copy > p { font-size: 16px; }
  .rk-hero-card { padding: 28px 24px; }
  .rk-hero-art { height: 140px; }
  .rk-hero-toggle { margin-top: 20px; }
  .rk-hero-toggle a { flex: 1; }
  .rk-test-note, .rk-method summary { padding-left: 18px; padding-right: 18px; }
  .rk-method-body { padding: 20px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-hero-bg, .rk-hero-cta, .rk-hero-toggle a, .rk-method summary svg { transition: none; }
}
