/*
Theme Name: RAHVAI V36 Editorial & Trust Upgrade
Theme URI: https://rahvai.org/
Author: RAHVAI website project
Description: Incremental enhancement of preserved V33/V32 RAHVAI website; WP editorial settings and Gutenberg page support. Stage and QA before live deployment.
Version: 0.36.0
Text Domain: rahvai-v36
*/
.rv-page-header,.rv-page-footer{background:#123d32;color:#fff;padding:1.2rem max(5vw,20px);display:flex;gap:2rem;flex-wrap:wrap;align-items:center;justify-content:space-between;font-family:Arial,sans-serif}.rv-page-header a,.rv-page-footer a{color:#fff}.rv-page-header>a:first-child{font-size:1.5rem;font-weight:800}.rv-page-header ul{display:flex;flex-wrap:wrap;gap:1rem;margin:0;padding:0;list-style:none}.rv-page-main{max-width:920px;min-height:60vh;margin:auto;padding:4rem 24px;font:17px/1.75 Arial,sans-serif;color:#17392d}.rv-page-main h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.12;color:#123d32}.rv-page-main img{max-width:100%;height:auto}.rv-page-main a{color:#145946;text-decoration:underline}.skip-link{position:absolute;top:-100px}.skip-link:focus{top:0;background:#fff;color:#000;padding:12px;z-index:9999}

/* V35 opt-in, editable native WordPress page layout; legacy site styling retained */
.rv-native{--rv-green:#123d32;--rv-cream:#faf8f2;--rv-gold:#e3bd80;background:var(--rv-cream);color:#18362d;min-height:70vh;font:17px/1.75 system-ui,-apple-system,sans-serif}
.rv-native .rv-container{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.rv-native .rv-kicker{text-transform:uppercase;font-size:.76rem;letter-spacing:.14em;font-weight:800;color:#a56a32}
.rv-native .rv-hero{background:var(--rv-green);color:white;padding:clamp(48px,8vw,110px) 0}
.rv-native .rv-hero h1{font-size:clamp(2.6rem,6vw,5.2rem);line-height:1.08;max-width:850px;margin:.6rem 0 1.2rem}
.rv-native .rv-hero p{max-width:690px;font-size:1.17rem;color:#e4efe7}
.rv-native .rv-section{padding:clamp(45px,6vw,90px) 0}
.rv-native .rv-section h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.12;margin:0 0 1.3rem;color:var(--rv-green)}
.rv-native .rv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rv-native .rv-card{background:white;border:1px solid #e6e6db;border-radius:10px;overflow:hidden;box-shadow:0 12px 35px #102e2910}
.rv-native .rv-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.rv-native .rv-card .rv-copy{padding:23px}
.rv-native .rv-card h3{font-size:1.35rem;line-height:1.3;margin:0 0 8px}
.rv-native .rv-cta,.rv-native a.rv-cta{display:inline-block;background:var(--rv-gold);color:#17392d;font-weight:750;text-decoration:none;padding:13px 22px;border-radius:6px;margin:6px 10px 6px 0}
.rv-native .rv-cta:focus-visible,.rv-page-header a:focus-visible{outline:3px solid #f0b764;outline-offset:4px}
.rv-native .rv-impact{background:#edf3e9}
.rv-native .rv-content{padding:clamp(35px,6vw,75px) 0}
.rv-native .rv-content img{max-width:100%;height:auto}
.rv-native .rv-note{font-size:.87rem;color:#506459}
.rv-native .wp-block-columns{gap:25px}
.rv-native .wp-block-image img{height:auto}
@media(max-width:760px){.rv-native .rv-grid{grid-template-columns:1fr}.rv-page-header{align-items:flex-start}.rv-page-header nav ul{flex-wrap:wrap}}

/* V36 PREMIUM HOME — opt in only; legacy homepage deliberately remains the default. */
:root{--rv36-forest:#103b31;--rv36-deep:#092c27;--rv36-cream:#faf8f2;--rv36-gold:#f2c778;--rv36-moss:#d9e8d6}
.rv36-page{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--rv36-cream);color:#20342c;line-height:1.6;overflow-x:clip}
.rv36-page *{box-sizing:border-box}.rv36-page a{text-decoration:none}.rv36-page img{max-width:100%;display:block}.rv36-page .wrap{width:min(1180px,calc(100% - 42px));margin:auto}
.rv36-page .topline{background:#0a2d27;color:#e8f2ed;font-size:.8rem;text-align:center;padding:8px 16px;letter-spacing:.02em}
.rv36-page .topline a{color:#f2d18f;text-decoration:underline;text-underline-offset:3px}
.rv36-page .mast{background:#fffef9;border-bottom:1px solid #dbe3d9;position:sticky;top:0;z-index:50;box-shadow:0 5px 18px #0c33210b}
body.admin-bar .rv36-page .mast{top:32px}
.rv36-page .mast .wrap{min-height:83px;display:flex;align-items:center;gap:25px;justify-content:space-between}
.rv36-page .identity{display:flex;align-items:center;gap:12px;color:#103c2e;white-space:nowrap;font-weight:900;font-size:1.65rem;letter-spacing:-.04em}
.rv36-page .identity svg{width:43px;height:43px;flex-shrink:0}.rv36-page .identity small{display:block;font-size:.65rem;letter-spacing:.06em;font-weight:650;text-transform:uppercase;color:#4c685a}
.rv36-page .links{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.rv36-page .links a{color:#244437;font-weight:650;font-size:.91rem}
.rv36-page .links a:hover{text-decoration:underline;text-underline-offset:5px}
.rv36-page .action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 21px;border-radius:8px;font-size:.94rem;font-weight:800;background:#103f31;color:#fff;border:2px solid transparent;transition:transform .18s,background .18s}
.rv36-page .action:hover{transform:translateY(-2px);background:#196149}.rv36-page .action.gold{background:var(--rv36-gold);color:#1f3227}.rv36-page .action.gold:hover{background:#ffe0a6}
.rv36-page .action.outline{background:transparent;border-color:#b3c9b9;color:#173d2d}
.rv36-page .eyebrow{color:#9d7135;letter-spacing:.13em;text-transform:uppercase;font-size:.75rem;font-weight:850}
.rv36-page .lead-hero{background:#f0f1e8}.rv36-page .hero-layout{display:grid;grid-template-columns:1fr 1fr;min-height:620px}
.rv36-page .hero-copy{align-self:center;padding:80px 58px 85px max(24px,calc((100vw - 1180px)/2))}
.rv36-page .hero-copy h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(3rem,5.3vw,5.6rem);letter-spacing:-.055em;line-height:1.07;color:#103c2f;margin:18px 0 23px}
.rv36-page .hero-copy p{font-size:1.12rem;color:#4b6257;max-width:540px;line-height:1.75}
.rv36-page .hero-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:29px}
.rv36-page .hero-media{position:relative;min-height:510px;background:#214a3b}.rv36-page .hero-media img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center}
.rv36-page .hero-media:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0a2e27c9,transparent 46%)}
.rv36-page .hero-caption{position:absolute;z-index:1;bottom:24px;left:26px;right:20px;color:white;font-size:.88rem;max-width:380px}
.rv36-page .proofline{background:#113c31;color:#f0f4ee}.rv36-page .proofline .wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:24px 0}
.rv36-page .proof{border-left:2px solid #8eae8c;padding-left:20px}.rv36-page .proof strong{display:block;font-size:1.04rem}.rv36-page .proof span{display:block;color:#c9dcd3;font-size:.81rem}
.rv36-page .section{padding:85px 0}.rv36-page .intro{max-width:780px}.rv36-page h2{font-family:Georgia,serif;color:#123a2e;font-size:clamp(2.25rem,3.5vw,3.65rem);font-weight:500;line-height:1.14;letter-spacing:-.045em;margin:14px 0 21px}
.rv36-page .bodycopy{font-size:1.04rem;color:#53675c;line-height:1.8}.rv36-page .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:23px;margin-top:36px}
.rv36-page .card{background:#fff;border:1px solid #dfe7db;border-radius:14px;overflow:hidden;box-shadow:0 18px 38px #0c30220e}
.rv36-page .card img{width:100%;aspect-ratio:4/3;object-fit:cover}.rv36-page .card .pad{padding:24px}.rv36-page .card h3{font-family:Georgia,serif;font-size:1.55rem;letter-spacing:-.03em;line-height:1.23;margin:6px 0 12px;color:#11392d}
.rv36-page .card p{font-size:.93rem;color:#51685b;line-height:1.7}.rv36-page .card a{color:#185c42;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.rv36-page .grant-feature{background:#e7efe5}.rv36-page .grant-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:60px;align-items:center}
.rv36-page .feature-image{position:relative}.rv36-page .feature-image img{width:100%;border-radius:12px;aspect-ratio:4/3;object-fit:cover}.rv36-page .photo-note{font-size:.8rem;color:#5c6c60;margin-top:8px}
.rv36-page .video-frame{max-width:760px;margin-top:30px}.rv36-page video{display:block;width:100%;border-radius:12px;background:#0b2822;max-height:440px}.rv36-page .video-frame figcaption{font-size:.8rem;color:#5a7166;margin-top:10px}
.rv36-page .trust-section{background:#fffdf8}.rv36-page .trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:21px;margin-top:30px}
.rv36-page .trust-item{padding:24px;background:#f4f7ee;border:1px solid #dce6dc;border-radius:12px}.rv36-page .trust-item h3{color:#173b2e;margin:0 0 10px;font-size:1.12rem}.rv36-page .trust-item p{color:#53665a;font-size:.9rem;line-height:1.75;margin:0}
.rv36-page .donation-band{background:#103b31;color:#fff}.rv36-page .donation-band h2{color:white}.rv36-page .donation-band p{color:#dcebe0;max-width:650px}.rv36-page .legal{font-size:.8rem;color:#d2e2d5;margin-top:14px}
.rv36-page footer{background:#082720;color:#e1e9df;padding:46px 0 25px}.rv36-page footer .wrap{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.rv36-page footer a{color:#e5eedd;text-decoration:underline;text-underline-offset:3px}.rv36-page footer small{color:#b7cbbd}
.rv36-page a:focus-visible,.rv36-page button:focus-visible,.rv36-page video:focus-visible{outline:3px solid #f5be5b;outline-offset:4px}
.rv36-page .skip-v36{position:absolute;left:15px;top:-100px;background:#fff;padding:12px;color:#14392e;z-index:999}
.rv36-page .skip-v36:focus{top:8px}
.rv36-page .rv36-editorial{max-width:1100px;margin:auto;padding:0 22px 50px}
.rv36-page .rv36-editorial img{height:auto}.rv36-page .rv36-editorial a{text-decoration:underline}
@media(max-width:1000px){.rv36-page .hero-copy{padding:65px 30px}.rv36-page .links{gap:12px}.rv36-page .cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.rv36-page .mast{position:relative;top:0}.rv36-page .mast .wrap{padding:15px 0;min-height:0;flex-wrap:wrap}.rv36-page .links{width:100%;overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;padding-bottom:8px}.rv36-page .hero-layout,.rv36-page .grant-grid{grid-template-columns:1fr}.rv36-page .hero-copy{padding:65px 22px 50px}.rv36-page .hero-media{min-height:400px}.rv36-page .proofline .wrap{grid-template-columns:1fr;gap:15px}.rv36-page .cards,.rv36-page .trust-grid{grid-template-columns:1fr}.rv36-page .section{padding:60px 0}.rv36-page .identity{font-size:1.45rem}}
@media(prefers-reduced-motion:reduce){.rv36-page .action{transition:none}.rv36-page .action:hover{transform:none}}

/* V37 historical documentation — original photography and archival video */
.rv37-history{background:#faf7f0;color:#173c32}.rv37-stories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:36px}.rv37-story{background:#fff;border:1px solid #dce5dc;border-radius:20px;overflow:hidden;box-shadow:0 12px 38px rgba(18,58,45,.055)}.rv37-media{aspect-ratio:4/3;background:#e3ebe4;display:flex;align-items:stretch}.rv37-media video,.rv37-media img{width:100%;height:100%;object-fit:contain;display:block}.rv37-media video{background:#102c25}.rv37-storycopy{padding:26px}.rv37-tag{font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#48745f}.rv37-storycopy h3{font-size:clamp(22px,2vw,31px);line-height:1.2;color:#173c32;margin:12px 0}.rv37-storycopy p{line-height:1.75;font-size:14px;color:#52685b}.rv37-storycopy a{font-size:13px;font-weight:800;color:#17664b;text-decoration:underline;text-underline-offset:4px}.rv37-photo-needed{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:25px;background:linear-gradient(135deg,#e5eee4,#d4e5dd);color:#1c493b;width:100%}.rv37-photo-needed span{font-size:45px}.rv37-photo-needed strong{font:500 25px/1.2 Georgia,serif}.rv37-photo-needed small{font-size:12px;max-width:210px}.rv37-footnote{font-size:12px;line-height:1.65;color:#62746a;margin:20px 0 0}@media(max-width:900px){.rv37-stories{grid-template-columns:1fr 1fr}}@media(max-width:650px){.rv37-stories{grid-template-columns:1fr}.rv37-media{aspect-ratio:16/11}.rv37-storycopy{padding:22px}}@media(prefers-reduced-motion:reduce){.rv37-story{transition:none}}

/* V38 delivery polish: curated authentic-photo gallery, responsive and keyboard-friendly */
.rv36-page .rv38-gallery{background:#fff}.rv36-page .rv38-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}.rv36-page .rv38-photo-grid figure{margin:0;background:#f4f5f0;border:1px solid #e1e8e1;border-radius:15px;overflow:hidden}.rv36-page .rv38-photo-grid a{display:block;aspect-ratio:4/3;overflow:hidden}.rv36-page .rv38-photo-grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.rv36-page .rv38-photo-grid a:hover img{transform:scale(1.035)}.rv36-page .rv38-photo-grid a:focus-visible,.rv36-page a:focus-visible{outline:3px solid #d39a3c;outline-offset:3px}.rv36-page .rv38-photo-grid figcaption{padding:11px 13px;font-size:12px;line-height:1.5;color:#52685b}.rv36-page img{max-width:100%}.rv36-page .rv37-storycopy{overflow-wrap:anywhere}@media(max-width:1000px){.rv36-page .rv38-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.rv36-page .rv38-photo-grid{grid-template-columns:1fr}.rv36-page .rv38-photo-grid a{aspect-ratio:16/11}}@media(prefers-reduced-motion:reduce){.rv36-page .rv38-photo-grid img{transition:none}.rv36-page .rv38-photo-grid a:hover img{transform:none}}
