/* Web versions of resources (resource-page.php). Styled after the "Monitoring India's Coral Reefs"
   report: Futura-like type (Jost), watercolour aqua background, orange/blue highlighted keywords. */

.rr {
    --rr-ink: #231f20;
    --rr-orange: #d95027;
    --rr-blue: #1758a3;
    --rr-step: #fcb963;
    --rr-card: #e9f5f4;
    --rr-aqua: #cfe6e8;
    background: var(--rr-aqua) url("../img/resources/monitoring-indias-coral-reefs/watercolour-texture.webp") center top / 100% auto repeat-y;
    color: var(--rr-ink);
    font-family: "Jost", "Futura", "Trebuchet MS", sans-serif;
    padding: 40px 0 80px;
    isolation: isolate;               /* keeps mix-blend-mode on the maps inside this section */
}

.rr-summary { max-width: 640px; margin: 10px auto 0; font-size: 17px; line-height: 1.6; color: #4a4a4a; }
.rr-back-links { margin-top: 12px; font-size: 15px; }
.rr-back-links a { text-decoration: underline; }
.rr-back-links span { margin: 0 8px; }

.rr-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 24px 8px;
}
.rr-section + .rr-section { border-top: 1px solid rgba(35, 31, 32, 0.08); }

.rr p {
    font-family: inherit;
    font-size: 17px;
    line-height: 1.7;
    color: var(--rr-ink);
    margin: 0 0 18px;
    letter-spacing: 0;
}
.rr h2, .rr h3 {
    font-family: inherit;
    color: var(--rr-ink);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.rr-h-xl { font-size: 40px; line-height: 1.15; margin: 0 0 24px; }
.rr-h-l  { font-size: 32px; line-height: 1.2;  margin: 36px 0 18px; }
.rr-section > .rr-h-l:first-child, .rr-split > div > .rr-h-l:first-child { margin-top: 0; }
.rr-h-s  { font-size: 19px; line-height: 1.3;  margin: 24px 0 6px; }
.rr-orange { color: var(--rr-orange); }
.rr-blue { color: var(--rr-blue); }

.rr-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.6em; height: 1.6em; margin-right: 12px;
    border-radius: 50%; background: var(--rr-step);
    font-size: 0.75em; font-weight: 700; color: var(--rr-ink);
    vertical-align: 0.15em;
}
.rr-step-h { display: flex; align-items: center; }

.rr-fig { margin: 28px auto; text-align: center; }
.rr-fig img, .rr-chart img { max-width: 100%; height: auto; display: inline-block; }
.rr-wide { max-width: 100%; }
.rr-medium { max-width: 720px; }
.rr-multiply { mix-blend-mode: multiply; }

.rr-split {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 36px; align-items: center;
    margin-bottom: 8px;
}
.rr-split .rr-fig { margin: 0; }
.rr-split > div { align-self: start; }   /* text starts right under the section title; figures stay centred */
.rr-split-cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Grid items default to min-width:auto, so wide images would stretch columns past small screens. */
.rr-split > *, .rr-steps > li, .rr-charts > * { min-width: 0; }
.rr-cover { padding-top: 24px; }
.rr-kicker { font-size: 14px !important; letter-spacing: .12em !important; text-transform: uppercase; color: #5a6b70 !important; margin-bottom: 8px !important; }
.rr-cover-text { text-align: center; }
.rr .rr-logo { width: 190px; max-width: 60%; height: auto; display: block; }
.rr .rr-logo-cover { width: 260px; margin: 0 auto 18px; }
.rr-logo-fig img { width: 220px; }

.rr-steps {
    list-style: none; margin: 8px 0 0; padding: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
}
.rr-steps li {
    background: var(--rr-card); border-radius: 28px; padding: 26px 28px 10px;
    box-shadow: 0 2px 10px rgba(6, 58, 122, 0.06);
}
.rr-steps h3 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; }
.rr-steps p { font-size: 16px; }

.rr-callout {
    display: flex; align-items: center; gap: 28px;
    background: rgba(255, 255, 255, 0.45); border-radius: 24px; padding: 22px 28px; margin: 28px 0 10px;
}
.rr-callout img { width: 110px; height: auto; flex: none; }
.rr-callout .rr-h-s { margin-top: 0; }
.rr-callout p { margin-bottom: 0; }

.rr-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 24px; }
.rr-chart { margin: 0; }
.rr-chart figcaption, .rr-source {
    font-style: italic; font-size: 15px; line-height: 1.6; color: #3d3a3a; margin-top: 10px; text-align: left;
}
.rr-source { font-size: 13px; color: #565655; }

.rr-cta { text-align: center; }
.rr-cta-lead { font-size: 22px !important; }
.rr-button, .rr-button:visited {
    display: inline-block; padding: 14px 30px; border-radius: 40px;
    background: var(--rr-blue); color: #fff !important; font-weight: 500; font-size: 17px;
    text-decoration: none; transition: background .2s ease;
}
.rr-button:hover, .rr-button:focus-visible { background: #0f4078; color: #fff; text-decoration: none; }

.rr-credits { text-align: center; }
.rr-credits .rr-logo { margin: 30px auto 10px; }
.rr-logos { max-width: 100%; height: auto; display: block; margin: 20px auto; }
.rr-supported { margin-top: 30px !important; margin-bottom: 0 !important; }
.rr-small { font-size: 14px !important; }

@media (max-width: 991px) {
    .rr-charts { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
    .rr { padding-top: 10px; }
    .rr-section { padding: 40px 16px 4px; }
    .rr p { font-size: 16px; }
    .rr-h-xl { font-size: 30px; }
    .rr-h-l { font-size: 25px; }
    .rr-split, .rr-split-cover, .rr-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .rr-step-h { align-items: flex-start; }
    .rr { overflow-x: hidden; }
    .rr-split-cover .rr-fig { max-width: 320px; margin: 0 auto; }
    .rr-callout { flex-direction: column; text-align: left; align-items: flex-start; }
}
