/* Ripples & cases (#ripples): ripple chains and case files, shared by every lab (ripples.js). Same green palette as
   the threads, puzzles and drill pages; the lab marks (◉ Earth, ◈ Economy) tell the labs apart by shape. */

/* Home card (ripples-card.js), styled like the drill card in the home row */
.ripple-card{display:grid;gap:6px;padding:14px 18px;border:1px solid #cfd8c6;border-left:4px solid #315c49;border-radius:12px;background:#fbfcf6;text-decoration:none;color:#263f36}
.ripple-card strong{font:20px/1.25 Georgia,serif}.ripple-card span{font-size:14px;color:#55655c;line-height:1.55}
.ripple-card .eyebrow{font-size:10px;letter-spacing:1.8px;color:#75856b;font-weight:600}
.ripple-card .ripple-card-cta{font-weight:700;color:#315c49}
.ripple-card:hover{border-color:#9fb89a}
.home-trio .ripple-card{border-left:1px solid #cfd8c6}.home-trio .ripple-card strong{font:23px/1.25 Georgia,serif;margin:8px 0}
.home-trio .ripple-card .ripple-card-cta{margin-top:auto;padding-top:10px}

/* Shared */
.rp-head{max-width:860px;margin:0 0 22px}.rp-head h1{margin:12px 0 14px}
.rp-lead{font-size:16px;line-height:1.7;color:#4d5e54;max-width:680px;margin:0}
.rp-mark{display:inline-grid;place-items:center;width:1.5em;height:1.5em;border-radius:50%;background:#eef3e7;color:#315c49;font-size:.85em;line-height:1;vertical-align:-.15em}
.rp-mark-economy{border-radius:4px;transform:rotate(0)}
.rp-mark-art{border-radius:0;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);width:1.7em;height:1.7em}
.rp-lab-name{font-weight:600;color:#315c49;margin-left:3px}
.rp-quiet{min-height:44px;padding:8px 16px;border-radius:22px;background:#fff;border:1px solid #c8d3bd;color:#2f513f;font-weight:600;font-size:14px;cursor:pointer}
.rp-quiet:hover{border-color:#315c49}
.rp-learn{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:10px 0 0;font-size:14px}
.rp-learn>span{font-size:10.5px;letter-spacing:1.4px;font-weight:700;color:#75856b;text-transform:uppercase}
.rp-learn a{color:#315c49;font-weight:600;min-height:36px;display:inline-flex;align-items:center;gap:4px}
.rp-cite{font-size:12px;color:#7a8676;margin:6px 0 0;line-height:1.5}
.rp-sources{max-width:860px;margin:26px 0 10px;border-top:1px solid #e1e3d7;padding-top:8px;font-size:13px;color:#55655c}
.rp-sources summary{cursor:pointer;font-weight:600;color:#315c49;min-height:40px;display:flex;align-items:center}
.rp-sources ul{margin:6px 0 10px;padding-left:20px;display:grid;gap:6px;line-height:1.5}.rp-sources a{color:#315c49}
.rp-read{color:#7a8676}.rp-note{line-height:1.6;margin:6px 0}
.rp-foot{font-size:12px;color:#778273;margin-top:18px}

/* Index */
.rp-section{max-width:960px;margin:0 0 26px}
.rp-section-title{font:700 12px/1.3 ui-sans-serif,system-ui,sans-serif;letter-spacing:2px;color:#315c49;margin:0 0 4px}
.rp-section-note{font-size:14px;color:#5d6e5f;margin:0 0 12px}
.rp-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.rp-card{display:grid;gap:6px;height:100%;box-sizing:border-box;padding:16px 18px;border:1px solid var(--line,#dce4d5);border-left:4px solid #315c49;border-radius:12px;background:#fffdf8;color:#263f36;text-decoration:none}
.rp-card:hover{border-color:#9fb89a;border-left-color:#315c49}
.rp-card .eyebrow{font-size:10.5px;letter-spacing:1.4px;color:#75856b;font-weight:600}
.rp-card b{font:21px/1.3 Georgia,serif}.rp-card-blurb{font-size:14px;line-height:1.55;color:#55655c}
.rp-card-path{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px;color:#5d6e5f;margin-top:4px}.rp-card-path i{font-style:normal;color:#9aa894;font-size:12px}

/* Chain: the strip at a glance */
.rp-strip{margin:0 0 12px;max-width:860px}.rp-strip ol{list-style:none;margin:0;padding:0;display:flex}
.rp-strip li{flex:1;min-width:0;position:relative}
.rp-strip li:before{content:'';position:absolute;top:21px;left:0;right:0;border-top:2px solid #b9c7b0}
.rp-strip li:first-child:before{left:50%}.rp-strip li:last-child:before{right:50%}
.rp-strip li:not(.is-open):before{border-top-style:dashed;border-top-color:#d3dbc8}
.rp-strip button,.rp-strip-blank{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;min-height:44px;padding:4px 3px;background:none;border:0;color:#263f36;text-align:center;font:inherit;cursor:pointer}
.rp-strip-blank{cursor:default;color:#8a9585}
.rp-strip-node{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#315c49;color:#fff;font-size:15px;box-shadow:0 0 0 4px #faf8f2}
.rp-strip .rp-lab-economy .rp-strip-node{border-radius:8px}.rp-strip .rp-lab-art.is-open .rp-strip-node{border-radius:0;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);width:36px;height:36px;margin:-2px 0}
.rp-strip li:not(.is-open) .rp-strip-node{background:#fff;color:#9aa894;border:2px dashed #c3cdb9;width:28px;height:28px}
.rp-strip li.is-next .rp-strip-node{border-color:#315c49;color:#315c49}
.rp-strip small{font-size:11.5px;line-height:1.3}.rp-strip button:hover small{text-decoration:underline}
.rp-tools{max-width:860px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 18px}.rp-legend{margin-left:auto;font-size:12.5px;color:#6b786a}

/* Chain: the links */
.rp-chain{list-style:none;margin:0;padding:0;max-width:820px}
.rp-link{scroll-margin-top:16px}
.rp-link.is-fresh .rp-link-card{animation:rp-in .45s ease-out}
@keyframes rp-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.rp-link.is-fresh .rp-link-card{animation:none}}
.rp-arrow{position:relative;margin:0;padding:10px 0 14px 54px;min-height:28px}
.rp-arrow:before{content:'';position:absolute;left:22px;top:0;bottom:8px;border-left:3px solid #9fb393}
.rp-arrow:after{content:'';position:absolute;left:16px;bottom:2px;border:7.5px solid transparent;border-top:10px solid #9fb393;border-bottom:0}
.rp-arrow span{display:inline-block;font-size:13.5px;font-weight:600;color:#2f513f;background:#eef3e7;border:1px solid #cfdcc4;border-radius:14px;padding:3px 12px;line-height:1.45}
.rp-arrow.is-unknown:before{border-left-style:dashed;border-left-color:#c3cdb9}.rp-arrow.is-unknown:after{border-top-color:#c3cdb9}
.rp-arrow.is-unknown span{background:#fff;color:#8a9585;border-style:dashed}
.rp-link-card{border:1px solid var(--line,#dce4d5);border-radius:14px;background:#fffdf8;padding:16px 18px}
.rp-link-head{display:flex;gap:12px;align-items:flex-start}
.rp-node{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#315c49;color:#fff;font-size:20px}
.rp-lab-economy .rp-node{border-radius:10px}.rp-lab-art .rp-node{border-radius:0;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);width:50px;height:50px;margin:-3px}
.rp-link-meta{margin:2px 0 2px;font-size:10.5px;letter-spacing:1.3px;font-weight:700;color:#75856b;line-height:1.4}
.rp-link-head h2{font:22px/1.25 Georgia,serif;margin:0;color:#263f36}
.rp-right{margin:12px 0 0;font-size:14px;line-height:1.5;background:#e7f1e3;border-radius:8px;padding:8px 12px;color:#2a4d38}.rp-right b{color:#2f6b3c}
.rp-figure{display:flex;flex-direction:column;gap:2px;margin:12px 0;padding:10px 14px;border-left:4px solid #315c49;background:#f3f6ec;border-radius:0 8px 8px 0}
.rp-figure span{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;font-weight:700;color:#5d6e5f}.rp-figure b{font:18px/1.4 Georgia,serif;color:#263f36}
.rp-body{margin:0;display:grid;gap:10px}.rp-body dt{font-size:12px;font-weight:700;color:#315c49;margin-bottom:2px}.rp-body dd{margin:0;font-size:15px;line-height:1.65;color:#2f3d35}
.rp-exam{margin:12px 0 0;font-size:14px;line-height:1.6;background:#f8f1e3;border-radius:8px;padding:8px 12px;color:#4a3f2a}
.rp-exam b{display:inline-block;font-size:10.5px;letter-spacing:1.3px;text-transform:uppercase;color:#7a5a24;margin-right:6px}

/* Chain: the guess */
.rp-guess-box{border:2px dashed #b9c7b0;border-radius:14px;background:#fbfcf6;padding:16px 18px}
.rp-guess-box h2{font:22px/1.25 Georgia,serif;margin:4px 0 6px}.rp-guess-box .eyebrow{font-size:10.5px;letter-spacing:1.4px;color:#75856b;font-weight:700}
.rp-guess-hint{font-size:14px;line-height:1.55;color:#55655c;margin:0 0 12px}
.rp-options{display:grid;gap:8px}
.rp-option button{width:100%;min-height:48px;padding:10px 16px;text-align:left;border:1px solid #c8d3bd;border-radius:12px;background:#fff;color:#263f36;font:15px/1.45 ui-sans-serif,system-ui,sans-serif;cursor:pointer}
.rp-option button:hover:not(:disabled),.rp-option button:focus-visible{border-color:#315c49;box-shadow:0 0 0 2px #cfe0c8}
.rp-option.is-wrong button{background:#f7f2ef;border-color:#e0c9bf;color:#8a5a4a;cursor:default;text-decoration:line-through;text-decoration-color:#c9a294}
.rp-option small{display:block;font-size:13px;line-height:1.5;color:#7a4b3c;margin:4px 4px 0}
.rp-live{font-size:13px;color:#7a4b3c;margin:8px 0 0;min-height:1em}

/* Chain: the Mains angle */
.rp-aha{max-width:820px;margin:22px 0 0;border-radius:12px;background:#f3f6ea;border:1px solid #cfd8c6;padding:14px 18px}
.rp-aha .eyebrow{font-size:10.5px;letter-spacing:1.4px;color:#75856b;font-weight:700;margin:0}
.rp-aha p:last-child{margin:6px 0 0;font:18px/1.55 Georgia,serif;color:#24352c}
.rp-next-chain{margin:8px 0 0;font-size:14px}.rp-next-chain a{color:#315c49;font-weight:600;min-height:36px;display:inline-flex;align-items:center}
.rp-mains{max-width:820px;margin:22px 0 0;border:1px solid #cfd8c6;border-left:4px solid #315c49;border-radius:12px;background:#fbfcf6;padding:16px 18px}
.rp-mains .eyebrow{font-size:10.5px;letter-spacing:1.4px;color:#75856b;font-weight:700}
.rp-mains.is-locked p:last-child{margin:6px 0 0;font-size:14px;color:#6b786a}
.rp-mains h2{font:22px/1.25 Georgia,serif;margin:4px 0 10px}.rp-mains h3{font-size:14px;margin:14px 0 6px;color:#315c49}
.rp-pq-label{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.6px;color:#2f513f;border:1px solid #9caf8b;border-radius:10px;padding:1px 8px;margin:0 0 6px;background:#fff}
.rp-pq{font:17px/1.6 Georgia,serif;margin:0;color:#263f36}
.rp-skeleton{margin:0;padding-left:22px;display:grid;gap:6px;font-size:14px;line-height:1.55}.rp-skeleton b{color:#315c49}

/* Case file */
.rp-case-head{max-width:none;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:26px;align-items:start}
.rp-opening{font:17px/1.7 Georgia,serif;color:#33443a}
.rp-photo{margin:0}.rp-photo img{display:block;width:100%;height:auto;border-radius:10px;background:#eef1e8}
.rp-photo figcaption{font-size:12.5px;line-height:1.5;color:#5d6e5f;margin-top:6px}.rp-credit{color:#8a9585;font-size:11px}.rp-credit a{color:inherit}
.rp-case-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin:0 0 26px}
.rp-story{border:1px solid #cfd8c6;border-radius:14px;background:#fbfcf6;padding:16px 18px}
.rp-story>.eyebrow{font-size:10.5px;letter-spacing:1.4px;color:#75856b;font-weight:700;margin:0 0 6px}
.rp-beat-count{font-size:11px;letter-spacing:1.2px;color:#8a9585;font-weight:700;margin:0}
.rp-beat-date{font-size:14px;font-weight:700;color:#315c49;margin:4px 0 2px}
.rp-beat-title{font:22px/1.25 Georgia,serif;margin:0 0 8px;color:#263f36}
.rp-beat-text{min-height:6.4em;font-size:17px}
.rp-all-beats{margin-top:12px;font-size:13.5px}.rp-all-beats summary{cursor:pointer;color:#315c49;font-weight:600;min-height:40px;display:flex;align-items:center}
.rp-all-beats ol{margin:4px 0 0;padding-left:20px;display:grid;gap:6px;line-height:1.5;color:#3f4f45}.rp-all-beats b{color:#315c49}
.rp-map{position:relative;margin:0;border:1px solid var(--line,#dce4d5);border-radius:14px;background:#fffdf8;padding:8px;overflow:hidden}
.rp-zoom{display:block;width:100%;height:auto;border-radius:8px}
.rp-locator{position:absolute;width:28%;height:auto;border:2px solid #fffdf8;border-radius:6px;box-shadow:0 1px 4px #0003;background:#d3e6ee}
.rp-map-frame{position:relative}
.rp-bottom-left{left:8px;bottom:8px}.rp-bottom-right{right:8px;bottom:8px}.rp-top-left{left:8px;top:8px;width:24%}
.rp-map figcaption{font-size:11.5px;color:#778273;text-align:center;margin:6px 4px 2px;line-height:1.4}
.rp-zoom .vl-label{font-size:10px}.rp-zoom .rp-region-label{font-size:9px;letter-spacing:1.5px;fill:#6b7462;font-weight:600}
.rp-pin-label{font-weight:600}
.rp-pin .vl-event path{transition:fill .2s}.rp-pin.is-on .vl-event path{fill:var(--vl-track)}.rp-pin.is-on .rp-pin-label{font-weight:800}
@media (prefers-reduced-motion:reduce){.rp-pin .vl-event path{transition:none}}
.rp-flood{stroke-dasharray:8 4}
.rp-zoom-box{fill:none;stroke:var(--vl-track);stroke-width:3}
.rp-locator .vl-india{stroke-width:2}.rp-locator-track{stroke-width:5;marker-end:none}
.rp-block{max-width:860px;margin:0 0 24px}.rp-block h2{font:24px/1.25 Georgia,serif;margin:0 0 10px}.rp-block h3{font-size:15px;margin:16px 0 6px;color:#315c49}
.rp-why{margin:0;padding-left:22px;display:grid;gap:12px}.rp-why p{margin:0;font-size:15px;line-height:1.6}.rp-why .rp-learn{margin-top:2px}
.rp-terms{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:0}
.rp-terms div{border:1px solid #e1e3d7;border-radius:10px;padding:10px 12px;background:#fffdf8}.rp-terms dt{font-weight:700;color:#315c49;font-size:14px}.rp-terms dd{margin:2px 0 0;font-size:14px;line-height:1.5}
.rp-exam-list,.rp-after{margin:0;padding-left:20px;display:grid;gap:6px;font-size:15px;line-height:1.6}
.rp-pairs{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.rp-pair{border:1px solid #e6d9bf;border-radius:10px;background:#fbf6ea;padding:10px 12px}.rp-pair p{margin:0;font-size:14px;line-height:1.55}
.rp-pair p:first-child{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;margin-bottom:4px}.rp-pair span{font-size:12px;color:#8a7a5a}
.rp-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}

@media (max-width:900px){
  .rp-case-head,.rp-case-grid{grid-template-columns:1fr;gap:16px}
  .rp-case-grid>#rp-map{order:-1}
  .rp-strip ol{flex-direction:column;gap:0}
  .rp-strip li:before{top:0;bottom:0;left:16px;right:auto;border-top:0;border-left:2px solid #b9c7b0}
  .rp-strip li:first-child:before{top:22px}.rp-strip li:last-child:before{bottom:calc(100% - 22px)}
  .rp-strip li:not(.is-open):before{border-left-style:dashed;border-left-color:#d3dbc8}
  .rp-strip button,.rp-strip-blank{flex-direction:row;text-align:left;gap:10px;padding:3px 0}
  .rp-strip small{font-size:13.5px}
  .rp-legend{margin-left:0;width:100%}
}
@media (max-width:640px){
  .rp-locator,.rp-top-left{position:static;display:block;width:40%;margin:8px auto 0}
}
@media (max-width:520px){
  .rp-link-card,.rp-guess-box,.rp-mains,.rp-story{padding:14px}
  .rp-node{width:38px;height:38px;font-size:17px}
  .rp-arrow{padding-left:48px}
  .rp-beat-text{font-size:16px}
}

/* Case file: a chart in place of the map (ripples.js caseChart), for cases such as a bank failure */
.rp-chart{display:block;width:100%;height:auto}
.rp-chart .rp-chart-title{font-size:11px;font-weight:700;letter-spacing:.4px;fill:#315c49}
.rp-chart-base{stroke:#9aa894;stroke-width:1.2}
.rp-chart .rp-bar-label{font-size:9.5px;fill:#5d6e5f}.rp-chart .rp-bar-value{font-size:11px;font-weight:700}
.rp-bar.is-on .rp-bar-value{font-size:13px}.rp-bar rect{transition:opacity .2s}
@media (prefers-reduced-motion:reduce){.rp-bar rect{transition:none}}

/* A case's puzzle (under the opening) and its one-line aha (atop "Why it happened"); the chart's reference lines */
.rp-puzzle,.rp-aha{margin:14px 0 0;font-size:15px;line-height:1.6;border-radius:8px;padding:9px 13px;max-width:680px}
.rp-puzzle{background:#eef3f8;color:#24384d}.rp-aha{background:#eef6ea;color:#24402f;margin:0 0 14px;max-width:none}
.rp-puzzle b,.rp-aha b{display:block;font-size:10.5px;letter-spacing:1.3px;text-transform:uppercase;margin-bottom:2px}
.rp-puzzle b{color:#3b5f86}.rp-aha b{color:#3f7a4f}
.rp-chart .rp-line-label{font-size:9.5px;font-weight:700;fill:#2f3438}
/* A case's schematic sketch, beside its aha (stacked on narrow screens) */
.rp-aha-row{margin:0 0 14px}.rp-aha-row .rp-aha{margin:0}
.rp-aha-row.has-sketch{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}
.rp-sketch{margin:0;border:1px solid #cfd8c6;border-radius:12px;background:#fbfcf6;padding:10px}
.rp-sketch-svg{display:block;width:100%;height:auto}.rp-sketch-pair{display:grid;gap:8px}
.rp-sketch figcaption{font-size:12.5px;line-height:1.5;color:#5d6e5f;margin-top:8px}
.rp-sketch .rp-learn{margin:8px 0 0}
.rp-sk-label{font-size:13px;font-weight:700}.rp-sk-faint{font-weight:600;fill:#5d6e5f}.rp-sk-strong{font-size:14px}
.rp-sk-surface{fill:none;stroke:#7fa6c4;stroke-width:1;stroke-dasharray:3 3}
.rp-sk-push{stroke-width:2.2}.rp-sk-sky{opacity:.35}.rp-sk-lake{stroke:#4f86b0;stroke-width:1}
.rp-sk-dim{fill:none;stroke:#2f3438;stroke-width:1.4}
.rp-sk-step circle{fill:#315c49;stroke:#fff;stroke-width:1.5}.rp-sk-step text{fill:#fff;font-size:12px;font-weight:700}
.rp-sk-steps{margin:8px 0 0;padding-left:20px;display:grid;gap:4px;font-size:13.5px;line-height:1.5}
@media (max-width:900px){.rp-aha-row.has-sketch{grid-template-columns:minmax(0,1fr)}}
/* Third case set (ripples-sketches-3.js): Bhopal's tank and night, the surge profiles, IL&FS's maturities, the ledger. */
.rp-sk-small{font-size:11.5px;font-weight:600}.rp-sk-on-dark{fill:#fff;font-weight:700}
.rp-sk-steel{fill:#c9ced2;stroke:#4c5358;stroke-width:1.6}.rp-sk-liquid{opacity:.75}.rp-sk-glow{opacity:.45}
.rp-sk-pipe{fill:none;stroke:#4c5358;stroke-width:4;stroke-linejoin:round}
.rp-sk-box{fill:#fbfcf6;stroke:#4c5358;stroke-width:1.4}.rp-sk-cross{fill:none;stroke:#c0392b;stroke-width:3;stroke-linecap:round}
.rp-sk-cloud{opacity:.55}.rp-sk-night{fill:#26324a}
.rp-sk-dome{stroke:var(--vl-low);stroke-width:2.4;fill:none}.rp-sk-pile-small{opacity:.7}
.rp-sk-return{stroke-width:2.6}.rp-sk-arrow{fill:none;stroke:#2f3438;stroke-width:2;marker-end:url(#vl-mk-wind)}
.rp-sk-zero{fill:none;stroke:#8a8f94;stroke-width:1.4;stroke-dasharray:4 3}
.rp-sk-plain{stroke:none;fill:#2f1d2c;font-weight:700}.rp-sk-on-dark{stroke:#26324a}
.rp-gas-path{fill:none;stroke:var(--vl-toxin);stroke-width:5;stroke-opacity:.75;stroke-linecap:round;stroke-dasharray:2 7}
