/* Riemann hypothesis explainer — white, light, picture-first (owner 24.11.2026: "simple, images, white"). */
body.rh-page { background: #fff; }
body.rh-page::before { display: none; }
body.rh-page nav { background: rgba(255, 255, 255, 0.86); }

.rh-article { max-width: 1040px; margin: 0 auto; padding: 48px 24px 32px; }

/* hero */
.rh-hero { text-align: center; max-width: 760px; margin: 0 auto; }
.rh-kicker { margin: 0 0 12px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.rh-hero h1 { margin: 0; font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
.rh-lead { margin: 18px auto 0; max-width: 560px; font-size: 1.25rem; line-height: 1.5; color: var(--muted); }
.rh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.rh-chip { padding: 7px 13px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.rh-chip-ok { background: var(--green-soft); color: var(--teal); }
.rh-chip-wait { background: var(--orange-soft); color: #b8461d; }

/* story cards */
.rh-story { display: grid; gap: 22px; margin-top: 48px; }
.rh-card {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center;
    padding: 28px; border-radius: 28px; background: #f7f8fb;
}
.rh-card:nth-child(even) .rh-card-pic { order: 2; }
.rh-card-pic { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.rh-card-text h2 { margin: 10px 0 10px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; color: var(--ink); }
.rh-card-text p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.rh-card-text b { color: var(--ink); }
.rh-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.rh-cap { min-height: 1.5em; margin-top: 10px; text-align: center; font-size: 1rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 1. atoms */
.rh-atoms { min-height: 150px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.rh-atom {
    display: inline-flex; align-items: center; justify-content: center; min-width: 74px; height: 74px; padding: 0 14px;
    border-radius: 20px; background: var(--orange); color: #fff; font-size: 2rem; font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 117, 66, 0.28);
}
.rh-atom-big { min-width: 120px; height: 120px; font-size: 3.2rem; background: var(--ink); box-shadow: 0 12px 28px rgba(24, 32, 51, 0.2); animation: rh-in .35s ease-out; }
.rh-atom-big.rh-atom-prime { background: var(--orange); animation: rh-shake .5s ease-in-out; }
.rh-atom-pop { animation: rh-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.rh-times { font-size: 1.6rem; font-weight: 700; color: var(--muted); }
@keyframes rh-pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rh-in { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rh-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* 2. grid */
.rh-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.rh-cell {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 9px;
    font-size: 0.85rem; font-variant-numeric: tabular-nums; color: #9aa1af; background: #fff;
    transition: background .25s, color .25s, transform .25s;
}
.rh-cell.is-prime { background: var(--orange); color: #fff; font-weight: 800; transform: scale(1.08); }

/* canvases */
.rh-canvas { width: 100%; }
.rh-canvas canvas { display: block; width: 100%; }
.rh-failed { opacity: .5; }

/* 6. lean counter */
.rh-lean { align-items: center; text-align: center; }
.rh-lean-num { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rh-lean-label { font-size: 1.05rem; color: var(--muted); }
.rh-lean-check { margin-top: 16px; padding: 9px 16px; border-radius: 999px; background: var(--green-soft); color: var(--teal); font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
#rh-s-lean.is-done .rh-lean-check { opacity: 1; transform: none; }

.rh-tldr { margin: 34px auto 0; max-width: 760px; padding: 22px 26px; border-radius: 22px; background: var(--blue-soft); text-align: center; }
.rh-tldr p { margin: 0; font-size: 1.2rem; line-height: 1.5; color: var(--ink); }

/* deeper */
.rh-deeper-head { margin: 72px auto 0; max-width: 760px; text-align: center; }
.rh-deeper-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--ink); }
.rh-deeper-head p { margin: 8px 0 0; font-size: 1.1rem; color: var(--muted); }
.rh-section { max-width: 760px; margin: 0 auto; padding-top: 40px; }
.rh-section h3 { margin: 0 0 10px; font-size: 1.4rem; color: var(--ink); }
.rh-section p { margin: 0 0 14px; font-size: 1.06rem; line-height: 1.65; color: var(--ink); }
.rh-section a { color: var(--blue); text-underline-offset: 3px; }
.rh-figure { margin: 18px 0 18px; padding: 16px; border-radius: 22px; background: #f7f8fb; }
.rh-figure figcaption { margin-top: 10px; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.rh-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; }
.rh-slider { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: .95rem; font-weight: 600; color: var(--ink); flex: 1 1 260px; }
.rh-controls .rh-slider { margin-top: 0; }
.rh-slider input { flex: 1; accent-color: var(--blue); }
.rh-play { min-width: 96px; }
.rh-readout { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .95rem; line-height: 1.5; color: var(--ink); font-variant-numeric: tabular-nums; }
.rh-key::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.rh-key-orange::before { background: var(--orange); }
.rh-key-blue::before { background: var(--blue); }
.rh-key-grey::before { background: var(--muted); }

.rh-strip { display: block; width: 100%; height: auto; font-family: Inter, sans-serif; }
.rh-strip .strip { fill: var(--blue-soft); }
.rh-strip .axis { stroke: var(--muted); stroke-width: 1; }
.rh-strip .crit { stroke: var(--orange); stroke-width: 2; stroke-dasharray: 7 6; }
.rh-strip .zero { fill: var(--orange); cursor: help; }
.rh-strip .trivial { fill: var(--muted); }
.rh-strip .lbl { font-size: 13px; fill: var(--muted); }
.rh-strip .crit-lbl { fill: var(--orange); font-weight: 700; }

.rh-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.rh-step { padding: 16px; border-radius: 18px; background: #f7f8fb; }
.rh-step-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; }
.rh-step h4 { margin: 8px 0 4px; font-size: 1.02rem; color: var(--ink); }
.rh-step p { margin: 0; font-size: .97rem; line-height: 1.5; color: var(--muted); }

.rh-sources li { margin-bottom: 6px; line-height: 1.55; color: var(--muted); }
.rh-cta { padding: 28px; border-radius: 24px; background: #f7f8fb; text-align: center; }
.rh-cta p { color: var(--muted); }

@media (max-width: 760px) {
    .rh-article { padding: 28px 16px 24px; }
    .rh-lead { font-size: 1.1rem; }
    .rh-card { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px; border-radius: 22px; }
    .rh-card:nth-child(even) .rh-card-pic { order: 0; }
    .rh-card-pic { min-height: 0; }
    .rh-atom { min-width: 58px; height: 58px; font-size: 1.6rem; border-radius: 16px; }
    .rh-atom-big { min-width: 96px; height: 96px; font-size: 2.6rem; }
    .rh-cell { font-size: .72rem; border-radius: 7px; }
    .rh-grid { gap: 4px; }
    .rh-steps { grid-template-columns: 1fr; }
    .rh-strip .lbl { font-size: 22px; }
}
