/* Fight for Iran · Royal Heritage 0.3 — cross-page skin.
   Scoped within theme identity; leaves plugin storage and submission logic unchanged. */
:root{--rh-ink:#092039;--rh-navy:#08192f;--rh-gold:#c89a43;--rh-gold-light:#efce7f;--rh-surface:#fffcf6;--rh-muted:#586278;--rh-line:#e5dac2}
body.ffi-royal-white:not(.wp-admin){background:#f9f7f1;color:var(--rh-ink)}
body.ffi-royal-white #ffi-main{min-height:45vh}
body.ffi-royal-white .ffi-page-band{background:radial-gradient(ellipse at 85% 25%,#233958,#07162b 70%),linear-gradient(#07172c,#13263f);border-bottom:3px solid #cfa756;padding:65px 0 58px;position:relative;overflow:hidden}
body.ffi-royal-white .ffi-page-band:after{content:'✦';color:#e4b96013;position:absolute;right:6%;top:-95px;font:350px/1 Georgia;pointer-events:none}
body.ffi-royal-white .ffi-page-band h1{font:500 clamp(38px,4.9vw,67px)/1.1 Georgia,'Times New Roman',serif;color:#fdf4df;letter-spacing:-.025em;position:relative;z-index:1}
body.ffi-royal-white .ffi-page-band .ffi-kicker,body.ffi-royal-white .ffi-page-band .ffi-page-lead{color:#efd39b!important;position:relative;z-index:1}
body.ffi-royal-white .ffi-page-band .ffi-container{position:relative;z-index:2}
.ffi-rh-overline,.ffi-rh-section-title>span{font:bold 11px/1.7 Arial,sans-serif;letter-spacing:.24em;color:#ab812f}
.ffi-rh-story{padding:70px 0 80px;background:linear-gradient(160deg,#fffdf8,#f6f2e9)}
.ffi-rh-story-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:clamp(36px,5vw,96px);align-items:center}
.ffi-rh-story-copy h2,.ffi-rh-contact-aside h2{font:500 clamp(37px,4.5vw,62px)/1.12 Georgia,serif;letter-spacing:-.035em;color:#0a1c34;margin:20px 0}
.ffi-rh-lead{font:18px/1.85 Georgia,serif;color:#3a4658;max-width:700px}
.ffi-rh-story-links{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin-top:32px}
.ffi-rh-link{font:bold 12px Arial,sans-serif;letter-spacing:.08em;color:#0c203c!important;border-bottom:1px solid #bb8c39;padding:12px 0}
.ffi-rh-story-portrait{min-height:440px;background:radial-gradient(circle at center,#1b3859,#071526 68%);border:9px solid #fbf8ef;outline:1px solid #c29b59;box-shadow:0 25px 55px #071b2e27;display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;overflow:hidden}
.ffi-rh-story-portrait:before{content:'';position:absolute;inset:17px;border:1px solid #d7aa5c68;pointer-events:none}
.ffi-rh-story-portrait img{position:relative;width:min(75%,340px);height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 12px 24px #02070e8f);z-index:1}
.ffi-rh-story-portrait span{color:#e7c47f;font:700 11px/1.4 Georgia,serif;letter-spacing:.17em;text-align:center;z-index:1;padding:10px}
.ffi-rh-values{padding:66px 0 88px;background:#fff}
.ffi-rh-section-title{text-align:center;max-width:750px;margin:0 auto 35px}
.ffi-rh-section-title h2{font:500 clamp(34px,3.2vw,50px)/1.2 Georgia,serif;margin:8px 0 0;color:#10233f}
.ffi-rh-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}
.ffi-rh-value-card{padding:30px 28px;background:#fdfbf5;border:1px solid #e0d1b4;border-top:3px solid #c19a51;box-shadow:0 16px 30px #1224420e;min-width:0;transition:transform .2s,box-shadow .2s}
.ffi-rh-value-card:hover{transform:translateY(-5px);box-shadow:0 17px 45px #12244219}
.ffi-rh-value-number{font:33px Georgia,serif;color:#c7a35e}
.ffi-rh-value-card h3{font:500 24px/1.24 Georgia,serif;color:#0b1c32;margin:11px 0 14px}
.ffi-rh-value-card p{font:15px/1.75 Arial,sans-serif;color:#5e6470;overflow-wrap:anywhere}
.ffi-rh-invite{background:linear-gradient(105deg,#091a31,#1b3555);padding:40px 0;border-top:2px solid #c49645}
.ffi-rh-invite>.ffi-container{display:flex;justify-content:space-between;align-items:center;gap:25px}
.ffi-rh-invite h2{font:500 31px Georgia,serif;color:#fbf4e4;margin:5px 0}
.ffi-rh-contact{padding:58px 0 100px;background:linear-gradient(115deg,#f9f7f2,#fffdfa)}
.ffi-rh-contact-layout{display:grid;grid-template-columns:minmax(275px,.75fr) minmax(0,1.25fr);gap:36px;align-items:start}
.ffi-rh-contact-aside{min-height:585px;background:radial-gradient(ellipse at top left,#223d5e,#081729 70%);border:1px solid #d1ad66;position:relative;overflow:hidden;padding:55px 44px;color:#fff}
.ffi-rh-contact-aside h2{color:#fff7e4;position:relative;z-index:1}
.ffi-rh-contact-aside p{color:#d5deea!important;max-width:340px;line-height:1.8;position:relative;z-index:1}
.ffi-rh-contact-aside .ffi-rh-overline{color:#f1c86d}
.ffi-rh-contact-email{display:flex;gap:10px;align-items:center;overflow-wrap:anywhere;color:#f8d790!important;font:700 15px/1.6 Arial,sans-serif;margin-top:25px;position:relative;z-index:2}
.ffi-rh-contact-email span{font-size:24px}
.ffi-rh-contact-mark{position:absolute;bottom:-65px;right:-65px;width:270px;aspect-ratio:1;opacity:.13;pointer-events:none}
.ffi-rh-contact-mark img{width:100%;height:100%;object-fit:contain}
.ffi-rh-contact-form{background:white;border:1px solid #e1d4ba;padding:22px 25px 32px;box-shadow:0 24px 60px #13284612;min-width:0}
.ffi-rh-form-heading{padding:19px 19px 0;text-align:center}
.ffi-rh-form-heading>span{font:bold 10px Arial,sans-serif;color:#ad8134;letter-spacing:.16em}
.ffi-rh-form-heading h2{font:500 35px Georgia,serif;color:#0a1d36;margin:10px 0}
.ffi-rh-form-heading p{color:#6b7280}
/* Existing form remains intact (nonce + captcha + wp_mail) but gains new design. */
body.ffi-royal-white .ffi-rh-contact-form .hoz-bcf-wrap{margin:0 auto;max-width:none;padding:0}
body.ffi-royal-white .ffi-rh-contact-form .hoz-bcf-card{box-shadow:none!important;border:none!important;border-radius:0!important;background:white!important;padding:18px!important}
body.ffi-royal-white .ffi-rh-contact-form .hoz-bcf-card:before{display:none!important}
body.ffi-royal-white .ffi-rh-contact-form .hoz-bcf-header{display:none!important}
body.ffi-royal-white .hoz-bcf-badge{background:#071a30!important;color:#e7c57c!important}
body.ffi-royal-white .hoz-bcf-form input,body.ffi-royal-white .hoz-bcf-form textarea,body.ffi-royal-white .hoz-bcf-form select{background:#fffcf8!important;border:1px solid #ddcba8!important;border-radius:4px!important;color:#14233a!important;box-shadow:none!important}
body.ffi-royal-white .hoz-bcf-form input:focus,body.ffi-royal-white .hoz-bcf-form textarea:focus{outline:2px solid #c39749!important;outline-offset:2px}
body.ffi-royal-white .hoz-bcf-form button[type="submit"],body.ffi-royal-white .hoz-bcf-submit{background:linear-gradient(110deg,#e5bb66,#ae792b)!important;color:#07162a!important;border:1px solid #b58b42!important;border-radius:4px!important;box-shadow:none!important;font-weight:800}
body.ffi-royal-white .hoz-bcf-form label{color:#12243b}
body.ffi-royal-white .hoz-bcf-captcha{background:#f8f5eb;border:1px solid #e1d5be;border-radius:5px}
/* Article, ordinary pages and archives */
.ffi-rh-standard,.ffi-rh-topic-single{background:#faf8f3;padding:54px 0 85px}
.ffi-rh-paper{background:#fff;border:1px solid #e7d8bc;box-shadow:0 15px 50px #0c274514;border-top:4px solid #c3984d;padding:clamp(24px,5vw,65px);max-width:1050px;margin:auto;min-height:220px}
.ffi-rh-reading{font:17px/1.85 Georgia,'Times New Roman',serif;color:#283449;overflow-wrap:anywhere}
.ffi-rh-reading p{margin:0 0 20px!important}
.ffi-rh-reading h2{font:500 31px/1.3 Georgia,serif;color:#0d2340;border-bottom:1px solid #e5d5b7;padding-bottom:10px;margin:30px 0 15px}
.ffi-rh-reading h3{font:600 24px/1.4 Georgia,serif;color:#1b3552}
.ffi-rh-reading a{color:#a37a2a;text-decoration:underline}
.ffi-rh-reading blockquote{border-left:4px solid #cf9c44;padding:10px 24px;background:#faf7ef}
.ffi-rh-reading img{max-width:100%;height:auto}
.ffi-rh-topic-article h1{font:500 clamp(32px,4vw,54px)/1.17 Georgia,serif;color:#071a30;margin:12px 0 28px}
.ffi-rh-back{display:inline-block;border-bottom:1px solid #cc9e4b;padding-bottom:7px;color:#80621c!important;font:bold 11px Arial;letter-spacing:.15em;margin-bottom:22px}
.ffi-rh-single-media{margin:24px 0 30px;background:#091828}
.ffi-rh-single-media img,.ffi-rh-single-media video{width:100%;max-height:610px;object-fit:contain;display:block}
/* Topics plugin single route is now re-rendered in Royal Heritage. Other plugin elements remain fully functional. */
body.ffi-royal-white .ffi-rh-legacy-skin{padding:35px 0 70px;min-height:260px}
body.ffi-royal-white .cymp-main{max-width:1160px!important;margin:0 auto!important;padding:15px!important}
body.ffi-royal-white .cymp-hero{background:#fffdf8!important;border:1px solid #decaa7!important;border-top:3px solid #c59641!important;border-radius:5px!important;box-shadow:0 15px 37px #0a19301a!important}
body.ffi-royal-white .cymp-hero h1{font:500 35px Georgia,serif;color:#10233b}
body.ffi-royal-white .cymp-card{background:#fff!important;border:1px solid #dccbac!important;border-radius:5px!important;box-shadow:0 14px 33px #081c3211!important}
body.ffi-royal-white .cymp-intros>div{background:#f9f5ed!important;border:1px solid #e2d6bf!important;border-radius:4px!important}
body.ffi-royal-white .cymp-search-row input{border-radius:4px!important;border-color:#d7be8c!important}
body.ffi-royal-white .cymp-search-row button,body.ffi-royal-white .cymp-send-btn{background:linear-gradient(#e5b959,#b88a38)!important;color:#06182d!important;border-radius:4px!important}
/* Uploads: do not replace media plugin processing; only restyle form and moderation UI. */
body.ffi-royal-white .ffi-legacy-upload .mdp-upload-box{background:#fffdf8!important;border:1px solid #e4d2b1!important;border-top:3px solid #c49950!important;border-radius:6px!important;box-shadow:0 13px 34px #081c3221!important;max-width:760px!important}
body.ffi-royal-white .ffi-legacy-upload input,body.ffi-royal-white .ffi-legacy-upload textarea{background:#fff!important;border:1px solid #d9c7a3!important;border-radius:4px!important}
body.ffi-royal-white .ffi-legacy-upload button[type="submit"]{background:linear-gradient(115deg,#edce80,#ad7d2d)!important;border-radius:4px!important;color:#101827!important}
/* A legacy plugin can enqueue later; use a scoped, stable CSS boundary, not broad header/body overrides. */
body.ffi-royal-white .ffi-upload-layout,body.ffi-royal-white .ffi-content-layout{padding-top:40px;padding-bottom:75px}
body.ffi-royal-white .ffi-content-layout .ffi-article{padding:35px;background:#fff;border:1px solid #e8dac2}
body.ffi-royal-white .ffi-post-list .ffi-post{background:#fff;border:1px solid #e2d4b9;margin:14px 0;padding:25px;border-left:3px solid #c5a059}
body.ffi-royal-white .ffi-post-list .ffi-post h2{font:500 30px Georgia,serif;color:#112844}
body.ffi-royal-white .ffi-post-list .ffi-post h2 a{color:inherit}
body.ffi-royal-white .ffi-article .ffi-prose{font:16px/1.85 Georgia,serif}
body.ffi-royal-white .ffi-royal-topic-card{background:#fff}
body.ffi-royal-white :is(input,button,select,textarea):focus-visible{outline:2px solid #c49b4c;outline-offset:3px}
body.ffi-royal-white.ffi-persian .ffi-rh-story-copy,body.ffi-royal-white.ffi-persian .ffi-rh-paper,body.ffi-royal-white.ffi-persian .ffi-rh-contact-aside{text-align:right;direction:rtl}
@media(max-width:1000px){.ffi-rh-story-grid,.ffi-rh-contact-layout{grid-template-columns:1fr}.ffi-rh-contact-aside{min-height:360px}.ffi-rh-story-portrait{min-height:325px}.ffi-rh-value-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:660px){body.ffi-royal-white .ffi-page-band{padding:42px 0 38px}.ffi-rh-story{padding:42px 0}.ffi-rh-values{padding:42px 0}.ffi-rh-value-grid{grid-template-columns:1fr}.ffi-rh-story-portrait{min-height:300px}.ffi-rh-invite>.ffi-container{flex-direction:column;align-items:flex-start}.ffi-rh-contact-aside{padding:38px 25px;min-height:290px}.ffi-rh-contact{padding:28px 0 65px}.ffi-rh-contact-form{padding:14px 8px}.ffi-rh-standard,.ffi-rh-topic-single{padding:25px 0 60px}.ffi-rh-paper{padding:22px}.ffi-rh-reading{font-size:16px}body.ffi-royal-white .cymp-hero{padding:20px}}
@media(prefers-reduced-motion:reduce){.ffi-rh-value-card{transition:none}.ffi-rh-value-card:hover{transform:none}}

/* Royal Heritage 0.3.1: restore the verified original contact details and map. */
body.ffi-royal-white .ffi-rh-original-intro{font-size:17px;max-width:390px;margin-bottom:28px}
body.ffi-royal-white .ffi-rh-contact-details{position:relative;z-index:2;display:grid;gap:22px;border-top:1px solid rgba(231,198,128,.35);padding-top:27px;margin-top:20px}
body.ffi-royal-white .ffi-rh-contact-detail{display:flex;align-items:flex-start;gap:16px;min-width:0}
body.ffi-royal-white .ffi-rh-detail-icon{width:40px;height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:center;color:#e1b963;border:1px solid rgba(225,185,99,.52);font-size:24px}
body.ffi-royal-white .ffi-rh-contact-detail>div{min-width:0;display:flex;flex-direction:column;gap:5px}
body.ffi-royal-white .ffi-rh-detail-label{color:#edca83;font:700 11px/1.4 Arial,sans-serif;letter-spacing:.15em}
body.ffi-royal-white .ffi-rh-contact-detail a,body.ffi-royal-white .ffi-rh-contact-detail address{color:#fff6e7!important;font:500 16px/1.5 Arial,sans-serif;overflow-wrap:anywhere;text-decoration:none;font-style:normal}
body.ffi-royal-white .ffi-rh-contact-detail a:hover{text-decoration:underline;color:#f3c86e!important}
body.ffi-royal-white .ffi-rh-form-warning{padding:18px;background:#fff5de;border-left:3px solid #c09342;color:#382b17}
body.ffi-royal-white .ffi-rh-map-section{margin:40px 0 0;background:#fff;border:1px solid #e1d4ba;box-shadow:0 18px 40px #13284612}
body.ffi-royal-white .ffi-rh-map-caption{padding:29px 32px 20px}
body.ffi-royal-white .ffi-rh-map-caption h2{font:500 33px/1.2 Georgia,serif;color:#10233c;margin:9px 0}
body.ffi-royal-white .ffi-rh-map-caption p{color:#46526a;margin:0 0 5px}
body.ffi-royal-white .ffi-rh-map-section iframe{width:100%;height:350px;display:block;border:0;background:#f1eee8}
@media(max-width:660px){body.ffi-royal-white .ffi-rh-map-caption{padding:24px 20px}body.ffi-royal-white .ffi-rh-map-section iframe{height:275px}body.ffi-royal-white .ffi-rh-contact-details{gap:18px}}
