:root{--navy:#132a49;--ink:#173450;--muted:#547087;--blue:#2365c7;--bright:#1b61c9;--blue-soft:#eaf3ff;--line:#d9e3ed;--side:#f8fbfe;--shadow:0 5px 25px #102d4a0c;font:15px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#1c293d;background:#fff}button,input,select{font:inherit}button{cursor:pointer}a{color:#195cad;text-underline-offset:2px}a:hover{text-decoration:underline}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #edb84a;outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.gallery-skip{position:absolute;left:-1000px;top:4px;background:white;padding:12px;z-index:999}.gallery-skip:focus{left:4px}
.suwara-nav{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 clamp(16px,2.4vw,40px);min-height:58px;background:linear-gradient(90deg,#102239,#173657);color:#fff}
.suwara-logo{display:flex;gap:9px;align-items:center;white-space:nowrap;color:#fff;text-decoration:none;font-size:18px;font-weight:750;letter-spacing:-.03em}.suwara-mark{display:inline-block;transform:rotate(45deg);font-size:22px;color:#49c8a2;text-shadow:5px -5px #83b841}.suwara-logo:hover,.suwara-nav-links a:hover{color:#fff;text-decoration:none}.suwara-nav-links{display:flex;align-items:center;gap:3px}.suwara-nav-links a{color:#dce7f2;text-decoration:none;padding:17px 19px;min-height:55px;font-size:15px}.suwara-nav-links a[aria-current="page"]{background:#284c78;border-radius:8px}.suwara-account-link{border:1px solid #90b3e1;color:#f2f7ff;text-decoration:none;border-radius:9px;padding:8px 14px;white-space:nowrap}
.gallery-hero{display:flex;align-items:center;gap:24px;padding:20px clamp(18px,2.4vw,42px);background:linear-gradient(120deg,#fff,#f8fbff);border-bottom:1px solid var(--line);min-height:146px}
.iris-hero-brand{display:flex;align-items:center;gap:20px;flex:0 0 auto}.iris-hero-brand img{height:71px;width:71px;object-fit:contain}.iris-brand-divider{height:64px;border-left:1px solid #b3c7d9}.iris-hero-text{min-width:0;flex:1}.hero-kicker{margin:0 0 4px;color:#2262a1;letter-spacing:.09em;font-size:12px;font-weight:800}.iris-hero-text h1{font-size:clamp(25px,2.6vw,36px);line-height:1.16;color:#152e4d;letter-spacing:-.025em;margin:0 0 8px}.iris-hero-text p:last-child{font-size:14px;margin:0;color:#304b69;max-width:960px}
.gallery-kind{border:0;margin:0;padding:0;display:flex;gap:5px;flex:0 0 auto}.gallery-kind label{cursor:pointer}.gallery-kind input{position:absolute;opacity:0;pointer-events:none}.gallery-kind span{display:block;border:1px solid #c3d2e3;padding:12px 18px;border-radius:8px;background:#fff;font-weight:700;color:#304764;white-space:nowrap;min-height:46px}.gallery-kind input:checked+span{background:#e1eeff;border:1.5px solid #2a72c9;color:#1559bb;box-shadow:inset 0 0 0 1px #add2ff}.gallery-kind input:focus-visible+span{outline:3px solid #edb84a}
.gallery-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:15px clamp(18px,2vw,34px);border-bottom:1px solid #e5ebf1;background:#fff}
.gallery-search-wrap{flex:1 1 420px;position:relative;max-width:860px;margin-right:auto}.gallery-search-wrap input{border:1.5px solid #afc4d9;border-radius:8px;width:100%;height:49px;padding:0 16px 0 50px;outline-offset:2px}.gallery-search-wrap input:focus{border-color:#327ac4;box-shadow:0 0 0 3px #d5eaff}.gallery-search-icon{position:absolute;top:-3px;left:16px;font-size:36px;color:#365576;line-height:49px}
.gallery-help-btn{border:0;background:transparent;color:#1a61b4;font-weight:650;white-space:nowrap;padding:10px}.gallery-build-btn{display:inline-flex;gap:11px;align-items:center;justify-content:center;background:#2365c7;color:white;text-decoration:none;font-weight:750;border:1px solid #2365c7;border-radius:9px;min-height:49px;padding:12px 20px;white-space:nowrap;box-shadow:0 2px 6px #0d43761a}.gallery-build-btn:hover{background:#1254ad;color:#fff;text-decoration:none}
.gallery-workspace{display:grid;grid-template-columns:275px minmax(0,1fr);min-height:58vh}.gallery-sidebar{padding:18px 19px 32px 22px;border-right:1px solid #dee5ee;background:#fbfcfe}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.sidebar-heading h2{font-size:17px;margin:0;color:#182438}.sidebar-heading button{background:none;border:0;color:#245bb5;font-weight:700;text-decoration:underline;font-size:13px}
.facet-section{padding:15px 0;border-bottom:1px solid #d9e2ec}.facet-section h3{font-size:14px;color:#1d2c42;margin:0 0 12px}.gallery-families,.gallery-scopes{display:flex;flex-direction:column;gap:8px}.gallery-families label,.gallery-scopes label,.gallery-toggle{display:flex;gap:9px;align-items:flex-start;cursor:pointer;font-size:14px;line-height:1.4}.gallery-families input,.gallery-scopes input,.gallery-toggle input{flex:0 0 auto;width:16px;height:16px;accent-color:#2265c9;margin:2px 0 0}.facet-section select,.facet-section input[type="search"]{width:100%;background:#fff;padding:10px 12px;border:1px solid #b8c9dc;border-radius:8px;min-height:43px;color:#283c57}.facet-section select{cursor:pointer}.facet-count{color:#708092;font-size:12px}
.gallery-results{min-width:0;padding:20px clamp(17px,2.2vw,36px) 40px}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.results-heading h2{font-size:20px;line-height:1.25;color:#1a2b41;margin:0 0 4px}.results-heading p{color:#4d647e;font-size:13px;margin:0}.results-sort{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px}.results-sort select{min-height:41px;border:1px solid #bacbda;background:white;border-radius:8px;padding:7px 30px 7px 12px;color:#1c2f46}
.gallery-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:13px;min-height:4px}.gallery-active-filters:empty{display:none}.active-filter{display:inline-flex;align-items:center;gap:9px;background:#eaf3fc;border:1px solid #d7e8f7;color:#215082;font-size:12px;font-weight:650;padding:5px 9px;border-radius:999px}.active-filter button{border:none;background:transparent;color:#416f9f;font-weight:800;cursor:pointer;padding:0}
.gallery-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:17px;row-gap:19px;align-items:start}
.gallery-card{min-width:0;position:relative;border:1px solid #d0dce8;border-radius:11px;background:#fff;box-shadow:var(--shadow);transition:box-shadow .16s,border-color .16s,transform .16s;overflow:visible}
.gallery-card:hover,.gallery-card:focus-within{border-color:#5f9ce0;box-shadow:0 8px 23px #183d6a20;z-index:4;transform:translateY(-1px)}
.gallery-card-cover{height:186px;overflow:hidden;border-radius:10px 10px 0 0;background:linear-gradient(140deg,#e4f2f6,#d3e6ee);display:grid;place-items:center;position:relative}
.iris-gallery-data-preview{display:block;width:100%;height:100%;object-fit:cover;background:#eaf3f5}
.iris-preview-loading,.iris-preview-unavailable{text-align:center;color:#5d7689;font-size:12px;margin:0;padding:24px}
.gallery-card-cover .card-type{position:absolute;left:9px;top:9px;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#194e7d;background:#fffffff2;padding:4px 7px;border-radius:5px}
.gallery-card-body{padding:11px 13px 14px}.gallery-card-header{display:flex;justify-content:space-between;gap:4px}.gallery-card h3{font-size:15px;line-height:1.26;margin:0;color:#132437;overflow-wrap:anywhere;font-weight:800}.card-actions{flex:0 0 auto;border:0;color:#304662;background:transparent;padding:0 3px;font-size:21px;line-height:20px;min-width:27px;min-height:27px;border-radius:4px}.card-subtitle{margin:3px 0 11px;font-size:12px;line-height:1.3;color:#41586f;min-height:30px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{display:flex;gap:8px;font-size:12px;color:#485a71;align-items:center;flex-wrap:wrap;margin:6px 0}.card-publisher{display:block;overflow-wrap:anywhere;font-size:12px;color:#42526b;margin:7px 0 2px}.card-open{display:block;text-align:center;background:#2464bc;border:1px solid #2464bc;color:white;border-radius:7px;padding:8px 10px;font-size:12px;font-weight:750;margin-top:11px;text-decoration:none}.card-open:hover{background:#174f9c;color:white;text-decoration:none}
.gallery-card-details{display:none;position:absolute;z-index:15;width:min(306px,calc(100vw - 30px));right:7px;top:60px;background:#fff;border:1px solid #a7bddd;box-shadow:0 16px 34px #0a234637;border-radius:10px;padding:14px;font-size:12px;color:#1e3049}.gallery-card-details h4{font-size:14px;margin:0 0 9px}.gallery-card-details dl{margin:0}.gallery-card-details dl div{display:flex;gap:12px;border-top:1px solid #ebeff5;padding:6px 0}.gallery-card-details dt{font-weight:750;min-width:78px}.gallery-card-details dd{margin:0;overflow-wrap:anywhere}.gallery-card-details p{margin:10px 0}.gallery-card-details .card-open{margin-top:8px}
.gallery-card:hover .gallery-card-details,.gallery-card:focus-within .gallery-card-details,.gallery-card[data-open-details="true"] .gallery-card-details{display:block}
.gallery-empty{grid-column:1/-1;text-align:center;border:1px dashed #b4cce4;border-radius:12px;padding:45px 24px;background:#fcfdff}.gallery-empty h3{margin:0 0 8px}.gallery-empty p{color:#506880}.gallery-empty a{display:inline-block;margin:12px}
.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:28px 0 0;font-size:13px}.gallery-pagination button{padding:8px 13px;border-radius:8px;background:white;border:1px solid #c0d1e2;color:#235c9d;font-weight:750;min-height:39px}.gallery-pagination button:disabled{opacity:.45;cursor:default}.gallery-pagination select{border:1px solid #b9cbdc;border-radius:7px;padding:7px;background:#fff}
.gallery-footer{border-top:1px solid #e2eaf2;padding:21px;text-align:center;color:#5a718a;font-size:12px}
#gallery-help-dialog{width:min(540px,calc(100vw - 24px));border:1px solid #b3c7d9;border-radius:14px;color:#1d3857;padding:0;box-shadow:0 20px 55px #0a254a50}#gallery-help-dialog::backdrop{background:#1021398a}.gallery-dialog-body{padding:25px 29px}.gallery-dialog-body h2{margin:0 36px 16px 0;font-size:23px}.gallery-dialog-body p{line-height:1.6}.dialog-close{float:right;background:#eaf1f7;border:none;width:36px;height:36px;font-size:24px;border-radius:7px}
@media(max-width:1350px){.gallery-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-card-cover{height:178px}.suwara-nav-links a{padding-inline:12px}}
@media(max-width:1050px){.gallery-workspace{grid-template-columns:225px minmax(0,1fr)}.gallery-sidebar{padding-left:16px;padding-right:14px}.gallery-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-hero{gap:14px}.iris-hero-brand img{width:55px;height:55px}.iris-brand-divider{height:51px}.gallery-toolbar{gap:8px}.gallery-help-btn span{display:none}}
@media(max-width:730px){.suwara-nav{min-height:49px}.suwara-logo{font-size:16px}.suwara-nav-links{display:none}.suwara-account-link{padding:6px 11px;font-size:12px}.gallery-hero{padding:18px 16px;flex-wrap:wrap;min-height:0}.iris-hero-brand img{width:45px;height:45px}.iris-brand-divider{height:43px}.iris-hero-text{flex:1 1 calc(100% - 75px)}.iris-hero-text h1{font-size:24px}.gallery-kind{width:100%}.gallery-kind label{flex:1;text-align:center}.gallery-kind span{padding:9px}.gallery-toolbar{flex-wrap:wrap;padding:12px 16px}.gallery-search-wrap{flex-basis:100%;max-width:none}.gallery-help-btn{margin-right:auto}.gallery-help-btn span{display:inline}.gallery-build-btn{padding:9px 13px}.gallery-workspace{display:block}.gallery-sidebar{border-right:0;border-bottom:1px solid #dce5ee;padding:14px 16px}.gallery-sidebar .facet-section{display:inline-block;width:calc(50% - 9px);vertical-align:top;margin-right:9px;border:0}.gallery-sidebar .facet-section:first-of-type{display:block;width:100%}.gallery-families{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-results{padding:18px 16px 28px}.results-heading{flex-wrap:wrap}.gallery-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-card-cover{height:160px}.gallery-card-details{right:0}}
@media(max-width:490px){.gallery-card-grid{grid-template-columns:1fr}.gallery-card-cover{height:205px}.gallery-sidebar .facet-section{width:100%}.gallery-card-details{top:50px}.gallery-pagination{flex-wrap:wrap}.gallery-card h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.gallery-card{transition:none}}

/* RMF262 v18: independent desktop panes, simplified hero, aligned Gallery cards. */
html,body{height:100%;min-height:0}
body{display:flex;flex-direction:column;overflow:hidden}
.suwara-nav,.gallery-hero{flex:0 0 auto}
.gallery-hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:11px;flex:0 0 auto;margin-left:auto}
.gallery-hero-actions .gallery-help-btn{display:inline-flex;align-items:center;gap:6px;justify-content:center;padding:9px 6px;min-height:44px}
.gallery-hero-actions .gallery-build-btn{min-height:44px;padding:9px 14px}
.gallery-kind{gap:5px}
.gallery-workspace{flex:1 1 0;min-height:0;height:auto;overflow:hidden}
.gallery-sidebar,.gallery-results{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.gallery-sidebar-search{display:block;position:relative;width:100%;max-width:none;margin:14px 0 4px;flex:none}
.gallery-sidebar-search input{height:44px;min-height:44px;padding:0 10px 0 38px;font-size:13px;letter-spacing:-.01em}
.gallery-sidebar-search .gallery-search-icon{top:0;left:10px;font-size:28px;line-height:41px}
.gallery-card-grid{align-items:stretch}
.gallery-card{height:100%;display:flex;flex-direction:column;overflow:hidden}
.gallery-card-cover{flex-shrink:0}
.gallery-card-body{flex:1;min-height:0;display:flex;flex-direction:column}
.gallery-card-header{align-items:flex-start}
.gallery-card h3{min-height:2.64em;line-height:1.32}
.card-subtitle{min-height:2.6em}
.card-publisher{margin-bottom:10px}
.card-open{margin-top:auto}
.gallery-card:hover,.gallery-card:focus-within{transform:none}
@media(max-width:1560px){
 .gallery-hero{flex-wrap:wrap}
 .gallery-hero-actions{flex:1 1 100%;justify-content:flex-end}
}
@media(max-width:1050px){
 .gallery-hero-actions .gallery-help-btn span{display:inline}
}
@media(max-width:730px){
 html,body{height:auto;min-height:100%;overflow:visible}
 body{display:block}
 .gallery-hero-actions{flex-wrap:wrap;justify-content:flex-start;margin:0;gap:7px}
 .gallery-hero-actions .gallery-help-btn{padding:8px 5px}
 .gallery-hero-actions .gallery-build-btn{padding:8px 11px}
 .gallery-hero-actions .gallery-kind{width:100%;order:1}
 .gallery-workspace{display:block;min-height:0;height:auto;overflow:visible}
 .gallery-sidebar,.gallery-results{overflow:visible;max-height:none;scrollbar-gutter:auto;overscroll-behavior-y:auto}
 .gallery-sidebar-search{margin:14px 0 6px;max-width:none}
 .gallery-sidebar-search input{height:44px}
 .gallery-card{height:100%}
}


/* RMF-000262 v19: pin the full-height application to the visual viewport.
   Prevent restored document scroll offset from hiding the Suwara masthead.
   Let each grid pane own its entire vertical scroll range. */
@media(min-width:731px){
 html{height:100%;overflow:hidden}
 body{position:fixed;inset:0;display:flex;flex-direction:column;
  width:100%;height:100vh;height:100dvh;min-height:0;max-height:100dvh;
  overflow:hidden}
 .suwara-nav,.gallery-hero{flex:0 0 auto}
 .gallery-workspace{flex:1 1 auto;display:grid;height:auto;min-height:0;
  overflow:hidden;align-items:stretch;grid-auto-rows:minmax(0,1fr)}
 .gallery-sidebar,.gallery-results{height:100%;max-height:100%;
  min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;
  overscroll-behavior-y:contain}
}
@media(max-width:730px){
 html,body{position:static;inset:auto;width:auto;height:auto;
  min-height:100%;max-height:none;overflow:visible}
 .gallery-workspace{height:auto;min-height:0;overflow:visible}
 .gallery-sidebar,.gallery-results{height:auto;max-height:none;overflow:visible}
}


/* RMF262 compact Gallery masthead and sidebar type filters. */
.suwara-nav{min-height:87px;gap:22px;padding:7px clamp(12px,1.7vw,30px);background:linear-gradient(100deg,#12243a,#1d3b5d);align-items:center}
.gallery-nav-brand{display:flex;align-items:center;gap:13px;min-width:0;color:#fff!important;text-decoration:none!important;flex:0 0 auto}
.gallery-nav-brand img{width:59px;height:59px;object-fit:contain;flex-shrink:0}
.gallery-nav-brand-titles{display:flex;flex-direction:column;gap:2px}
.gallery-nav-kicker{font-weight:800;letter-spacing:.1em;font-size:11px;color:#a7ccef}
.gallery-nav-brand-titles strong{font-size:clamp(21px,1.9vw,29px);font-weight:800;letter-spacing:-.027em;line-height:1.2;color:white}
.suwara-nav-links{margin-left:auto;gap:2px;flex:0 1 auto}
.suwara-nav-links a{padding:15px clamp(8px,1vw,16px);min-height:48px;border-radius:8px;font-size:14px;white-space:nowrap}
.gallery-hero{min-height:0;display:flex;flex-wrap:nowrap!important;gap:14px;background:#f8fbff;padding:12px clamp(12px,2vw,34px);border-bottom:1px solid #dce6f0;align-items:center}
.gallery-hero .iris-hero-text{flex:1 1 auto;min-width:0}
.gallery-hero .iris-hero-text p{font-size:13px;line-height:1.45;margin:0;color:#304b69;max-width:950px}
.gallery-hero .iris-hero-text p.gallery-scope-explainer{margin-top:5px;font-size:12px;color:#546b84}
.gallery-hero .gallery-hero-actions{flex:0 0 auto!important;margin:0!important;justify-content:flex-end;gap:11px}
.gallery-hero .gallery-help-btn{color:#185caa;white-space:nowrap}
.gallery-hero .gallery-build-btn{white-space:nowrap;min-height:40px;padding:7px 12px}
.gallery-sidebar-kind{width:100%;margin:0 0 14px;display:flex;gap:5px;border:0;padding:0;flex-wrap:wrap}
.gallery-sidebar-kind legend{display:block;float:none;font-size:13px;color:#1f354c;font-weight:750;margin-bottom:7px}
.gallery-sidebar-kind label{flex:1 1 0;min-width:0}
.gallery-sidebar-kind span{font-size:12px;line-height:20px;padding:8px 5px;min-height:38px;text-align:center}
.gallery-sidebar-search{margin-top:1px}
#suwara-legal-footer.suwara-unified-footer{margin:32px 0 0!important}
@media (min-width:731px) and (max-width:1220px){
 .suwara-nav{gap:10px}
 .gallery-nav-brand img{width:49px;height:49px}
 .gallery-nav-brand-titles strong{font-size:21px}
 .gallery-nav-kicker{font-size:9px}
 .suwara-nav-links a{padding:10px 7px;font-size:12px}
 .gallery-hero .gallery-hero-actions{gap:5px}
 .gallery-hero .iris-hero-text p{font-size:12px}
 .gallery-hero .iris-hero-text p.gallery-scope-explainer{font-size:11px}
}
@media(max-width:730px){
 .suwara-nav{min-height:69px;gap:6px;padding:7px 12px}
 .gallery-nav-brand img{width:43px;height:43px}
 .gallery-nav-kicker{font-size:8px}
 .gallery-nav-brand-titles strong{font-size:19px}
 .suwara-nav-links{display:flex}
 .suwara-nav-links a{display:none}
 .suwara-nav-links a:last-child{display:block;white-space:normal;line-height:1.15;text-align:right;padding:6px;font-size:11px;min-height:0}
 .gallery-hero{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 15px}
 .gallery-hero .gallery-hero-actions{justify-content:flex-start;flex-wrap:wrap;order:1}
 .gallery-hero .gallery-hero-actions .gallery-help-btn span{display:inline}
 .gallery-hero .iris-hero-text p{font-size:13px}
 .gallery-hero .iris-hero-text p.gallery-scope-explainer{font-size:12px}
 .gallery-sidebar-kind{display:flex;width:100%}
 .gallery-sidebar-kind label{flex:1}
 #suwara-legal-footer.suwara-unified-footer{margin:18px 0 0!important}
}

/* RMF-000262: two-line desktop intro and more visible cards per viewport.
   The inline Help action remains keyboard accessible; the publication
   and editor contracts are unchanged. */
.gallery-hero{padding:7px clamp(12px,1.8vw,30px);gap:12px}
.gallery-hero .iris-hero-text p{max-width:none;font-size:13px;line-height:1.35;margin:0}
.gallery-hero .iris-hero-text .gallery-help-btn{
 display:inline;min-height:0;margin:0 0 0 5px;padding:0;
 border:0;background:none;color:#185caa;font:inherit;
 font-weight:750;line-height:inherit;vertical-align:baseline;
}
.gallery-hero .gallery-hero-actions .gallery-build-btn{min-height:38px;padding:7px 12px}
.gallery-card-cover{height:154px}
.gallery-card-cover .iris-gallery-data-preview{transform:scale(1.065);transform-origin:center}
.gallery-card-body{padding:9px 12px 10px}
.gallery-card h3{min-height:2.42em;line-height:1.21}
.card-subtitle{min-height:2.44em;margin:2px 0 4px;line-height:1.22}
.card-meta{margin:0 0 1px;gap:5px;line-height:1.25}
.card-publisher{margin:2px 0 7px;line-height:1.25}
.card-open{margin-top:auto;padding:7px 8px;line-height:1.25}
@media(max-width:1350px){.gallery-card-cover{height:145px}}
@media(max-width:730px){
 .gallery-hero{padding:9px 14px;gap:6px}
 .gallery-hero .iris-hero-text p{font-size:13px;line-height:1.4}
 .gallery-card-cover{height:154px}
}
@media(max-width:490px){.gallery-card-cover{height:178px}}

/* RMF-000262: dark single-masthead guidance; both build actions live
   at the top of the independently scrollable Refine Results pane. */
.suwara-nav{
 display:flex;flex-direction:column;align-items:stretch;justify-content:center;
 gap:3px;min-height:0;padding:7px clamp(14px,1.7vw,30px) 8px;
}
.gallery-masthead-top{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:56px}
.gallery-nav-brand img{width:50px;height:50px}
.gallery-nav-brand-titles strong{font-size:clamp(21px,1.8vw,28px)}
.gallery-masthead-intro{color:#d7e7f9;min-width:0}
.gallery-masthead-intro p{margin:0;font-size:12.5px;line-height:1.35;letter-spacing:.003em}
.gallery-masthead-intro .gallery-help-btn{
 display:inline;min-height:0;margin:0 0 0 5px;padding:0;background:none;border:0;
 color:#b1d8ff;font-size:inherit;font-weight:750;line-height:inherit;
 text-decoration:underline;text-underline-offset:2px;white-space:nowrap;
}
.gallery-masthead-intro .gallery-help-btn:hover{color:#fff}
.gallery-build-group{margin:0 0 13px;padding:0 0 13px;border-bottom:1px solid #d9e2ec}
.gallery-build-group h2{margin:0 0 8px;font-size:14px;line-height:1.2;color:#1b3049}
.gallery-build-actions{display:flex;flex-direction:column;gap:6px}
.gallery-build-actions .gallery-build-btn{
 display:flex;align-items:center;justify-content:center;width:100%;
 min-height:35px;height:35px;padding:4px 10px;border-radius:7px;
 box-shadow:none;font-size:12px;line-height:1.2;
}
.gallery-source-facet{padding:11px 0}
.gallery-source-facet h3{margin:0 0 6px}
.gallery-source-facet select{min-height:38px;font-size:12px;max-width:100%;text-overflow:ellipsis}
.gallery-results{padding-top:12px}
.gallery-card-cover{height:137px}
.gallery-card-body{padding:8px 12px 9px}
.gallery-card h3{min-height:0;line-height:1.18}
.card-subtitle{min-height:0;margin:3px 0 5px;line-height:1.2}
.card-meta{margin:0 0 2px;line-height:1.2}
.card-publisher{margin:2px 0 6px;line-height:1.2}
.card-open{
 display:flex;align-items:center;justify-content:center;
 height:35px;min-height:35px;padding:4px 8px;line-height:1.2;
 margin-top:auto;
}
@media(max-width:1350px){.gallery-card-cover{height:132px}}
@media(max-width:730px){
 .suwara-nav{padding:8px 13px 10px;gap:7px}
 .gallery-masthead-top{min-height:44px;gap:6px}
 .gallery-nav-brand img{width:43px;height:43px}
 .gallery-masthead-intro p{font-size:12px;line-height:1.38}
 .suwara-nav-links a:last-child{display:none}
 .suwara-nav-links a[aria-current="page"]{display:block;white-space:nowrap;font-size:12px}
 .gallery-build-group{margin-bottom:9px;padding-bottom:10px}
 .gallery-build-actions{flex-direction:row;flex-wrap:wrap}
 .gallery-build-actions .gallery-build-btn{flex:1 1 135px}
 .gallery-card-cover{height:137px}
}
@media(max-width:490px){.gallery-card-cover{height:170px}}

/* RMF-000262: cards start immediately below the masthead.
   Sort and count remain in the independent left-side filter pane. */
.gallery-sidebar-sort{
 display:flex;align-items:center;justify-content:space-between;gap:7px;
 margin:0 0 13px;padding:0 0 12px;border-bottom:1px solid #d9e2ec;
}
.gallery-sidebar-sort label{font-weight:700;color:#26384e;font-size:12px}
.gallery-sidebar-sort select{
 min-width:0;max-width:calc(100% - 57px);min-height:35px;
 padding:5px 23px 5px 9px;font-size:12px;
}
.gallery-sidebar .sidebar-heading{margin-bottom:3px}
.gallery-sidebar-status{margin:0 0 10px;font-size:12px;line-height:1.3;color:#536c87}
.gallery-sidebar .gallery-active-filters{margin-bottom:10px}
.gallery-results{padding-top:6px}
.gallery-card-grid{row-gap:13px}
.gallery-card-body{padding-bottom:8px}
.card-subtitle{margin-bottom:6px}
.card-footer{
 display:flex;align-items:center;justify-content:space-between;gap:7px;
 margin-top:auto;min-height:35px;
}
.card-footer-meta{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:3px}
.card-footer-meta .card-meta{
 display:block;flex:none;min-width:0;margin:0;font-size:11.5px;line-height:1.2;
}
.card-footer-meta .card-publisher{
 display:block;min-width:0;margin:0;font-size:11.5px;line-height:1.2;
 overflow-wrap:anywhere;
}
.card-footer .card-open{
 flex:0 0 112px;width:112px;height:35px;min-height:35px;
 margin:0;padding:4px 5px;white-space:nowrap;font-size:11.5px;
}
@media(max-width:730px){
 .gallery-results{padding-top:9px}
 .card-footer-meta .card-publisher{overflow-wrap:anywhere}
 .card-footer .card-open{flex-basis:105px;width:105px;font-size:11px}
}

/* RMF-000262: harmonized Gallery controls, sticky Refine Results, compact builders. */
@media(min-width:731px){
 .gallery-workspace{grid-template-columns:305px minmax(0,1fr)}
 .gallery-masthead-intro{padding-inline-start:63px}
}
@media(min-width:731px) and (max-width:1050px){
 .gallery-workspace{grid-template-columns:290px minmax(0,1fr)}
}
.gallery-sidebar{
 --gallery-control-ink:#263d56;
 --gallery-control-border:#b8c9dc;
 --gallery-heading-ink:#1b2e47;
}
.gallery-sidebar .gallery-build-group h2,
.gallery-sidebar .sidebar-heading h2{
 margin:0;font-size:15px;line-height:1.25;font-weight:750;
 letter-spacing:-.01em;color:var(--gallery-heading-ink);
}
.gallery-sidebar .gallery-build-group h2{margin-bottom:9px}
.gallery-build-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
}
.gallery-build-actions .gallery-build-btn{
 width:100%;min-width:0;height:35px;min-height:35px;
 padding:4px 5px;white-space:nowrap;font-size:12px;
 line-height:1.2;font-weight:750;border-radius:7px;
}
.gallery-sidebar .sidebar-heading{
 position:sticky;top:0;z-index:8;
 display:flex;align-items:center;min-height:40px;
 margin:0 0 3px;padding:6px 0;
 background:#fbfcfe;border-bottom:1px solid #d9e2ec;
}
.gallery-sidebar .sidebar-heading button{
 font-size:12px;font-weight:700;line-height:1.3;
}
.gallery-sidebar .gallery-sidebar-sort label,
.gallery-sidebar .gallery-sidebar-kind legend,
.gallery-sidebar .facet-section h3{
 color:var(--gallery-heading-ink);font-size:13px;
 font-weight:750;line-height:1.3;letter-spacing:0;
}
.gallery-sidebar .gallery-sidebar-sort label{white-space:nowrap}
.gallery-sidebar .facet-section h3{margin:0 0 9px}
.gallery-sidebar .gallery-source-facet h3{margin-bottom:7px}
.gallery-sidebar .gallery-sidebar-status{font-size:12px;line-height:1.35}
.gallery-sidebar .gallery-families label,
.gallery-sidebar .gallery-scopes label{
 color:var(--gallery-control-ink);font-size:13px;line-height:1.35;
}
.gallery-sidebar .facet-count{font-size:12px;color:#637991}
.gallery-sidebar .gallery-kind span{
 font-size:12px;line-height:20px;font-weight:750;
 border-radius:8px;
}
.gallery-sidebar .gallery-sidebar-sort select,
.gallery-sidebar .gallery-sidebar-search input,
.gallery-sidebar .facet-section select,
.gallery-sidebar .facet-section input[type="search"]{
 color:var(--gallery-control-ink);
 font-family:inherit;font-size:13px;line-height:1.3;
 border:1px solid var(--gallery-control-border);border-radius:8px;
 background:#fff;
}
.gallery-sidebar .gallery-sidebar-sort select{min-height:38px}
.gallery-sidebar .gallery-sidebar-search input{min-height:42px;height:42px}
.gallery-sidebar .facet-section select,
.gallery-sidebar .facet-section input[type="search"]{min-height:40px}
.gallery-sidebar .facet-section{padding-block:13px}
.gallery-sidebar .gallery-source-facet{padding-block:13px}
@media(max-width:730px){
 .gallery-masthead-intro{padding-inline-start:0}
 .gallery-sidebar .sidebar-heading{position:static}
}
@media(max-width:360px){
 .gallery-build-actions{grid-template-columns:1fr}
}

/* RMF274: five destinations, same 14px navigation style and order as Maps/Charts. */
.gallery-masthead-top .suwara-nav-links{width:365px;max-width:365px;min-width:0;justify-content:flex-end;gap:1px;overflow-x:auto;scrollbar-width:thin}
.gallery-masthead-top .suwara-nav-links a{display:inline-flex!important;align-items:center;justify-content:center;min-height:46px;padding:13px 7px;font:400 14px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;white-space:nowrap;flex:none;color:#dce7f2!important;text-decoration:none}
.gallery-masthead-top .suwara-nav-links a:focus-visible{outline:3px solid #edb84a;outline-offset:-3px}
@media(max-width:730px){.gallery-masthead-top .suwara-nav-links{width:min(100%,365px);max-width:100%}.gallery-masthead-top{flex-wrap:wrap}.gallery-masthead-top .suwara-nav-links a{font-size:12px;padding:9px 6px;min-height:38px}}

/* RMF-000274 acceptance: align Gallery's five links to the fixed Maps/Charts
   365px top-right navigation without moving the Gallery masthead or canvas. */
@media (min-width:731px){
 .gallery-masthead-top .suwara-nav-links{
  transform:translate(calc(clamp(14px,1.7vw,26px) - 8px),-3px);
 }
}


/* Mobile Gallery: center the complete masthead menu and keep published
   map/chart cards visible by collapsing the entire sort/filter/build pane.
   Desktop's independent side-by-side pane remains unchanged. */
.gallery-mobile-refine-bar,
.gallery-mobile-guidance,
.gallery-mobile-show-results{display:none}
@media (max-width:730px){
  .gallery-masthead-top{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    flex-wrap:nowrap;gap:6px;width:100%
  }
  .gallery-masthead-top .gallery-nav-brand{
    align-self:flex-start;margin:0;flex:none
  }
  .gallery-masthead-top .suwara-nav-links{
    width:100%;max-width:100%;min-width:0;margin:0;padding:0;
    display:flex;align-items:center;justify-content:center;gap:0;
    overflow-x:auto;scrollbar-width:thin;flex:none
  }
  .gallery-masthead-top .suwara-nav-links a{
    display:inline-flex!important;align-items:center;justify-content:center;
    flex:0 0 auto;font-size:clamp(11px,3vw,13px);line-height:1.25;
    white-space:nowrap;padding:9px clamp(5px,1.6vw,9px);min-height:39px
  }
  /* Move nonessential explanatory copy behind Sort & Refine on phones. */
  .gallery-masthead-intro{display:none}
  .suwara-nav{padding:9px 12px 8px;gap:0}
  .gallery-mobile-refine-bar{
    position:sticky;top:0;z-index:20;display:flex;align-items:center;
    justify-content:space-between;gap:10px;
    min-height:53px;padding:7px 14px;background:#f8fbfe;
    border-bottom:1px solid #dce5ef
  }
  .gallery-mobile-refine-bar button{
    display:inline-flex;align-items:center;justify-content:space-between;
    gap:9px;min-height:39px;min-width:144px;padding:8px 12px;
    color:#134f8a;background:#fff;border:1px solid #a5bfd9;
    border-radius:9px;font-size:14px;font-weight:750;line-height:1.2
  }
  .gallery-mobile-refine-chevron{font-size:17px;line-height:1}
  .gallery-mobile-refine-bar button[aria-expanded="true"]{
    color:#fff;background:#205da5;border-color:#205da5
  }
  .gallery-mobile-refine-bar button[aria-expanded="true"] .gallery-mobile-refine-chevron{
    transform:rotate(180deg)
  }
  .gallery-mobile-result-count{
    text-align:right;font-size:12px;line-height:1.35;color:#476581
  }
  .gallery-workspace:not(.gallery-mobile-refine-open)>.gallery-sidebar{
    display:none
  }
  .gallery-workspace.gallery-mobile-refine-open>.gallery-sidebar{
    display:block;overflow:visible;height:auto;max-height:none;
    padding:12px 16px 22px;border-bottom:1px solid #dce5ef
  }
  .gallery-mobile-guidance{
    display:block;margin:0 0 13px;font-size:12.5px;
    line-height:1.5;color:#455f78
  }
  .gallery-mobile-guidance button{
    border:0;padding:0;background:transparent;color:#195cad;
    font-weight:750;text-decoration:underline;text-underline-offset:2px
  }
  .gallery-mobile-show-results{
    display:block;width:100%;min-height:44px;margin:17px 0 0;
    background:#2365c7;color:#fff;border:1px solid #2365c7;
    border-radius:8px;font-size:14px;font-weight:750
  }
  .gallery-results{padding-top:9px;scroll-margin-top:60px}
  .gallery-card-grid{margin-top:0}
}
@media (max-width:370px){
  .gallery-mobile-refine-bar{gap:6px;padding-inline:10px}
  .gallery-mobile-refine-bar button{min-width:136px;padding-inline:10px}
  .gallery-masthead-top .suwara-nav-links a{font-size:11px;padding-inline:4px}
}

/* FEAT-001865: show complete native rendered thumbnails without card zoom/cropping. */
.gallery-card-cover .iris-gallery-data-preview{object-fit:contain;transform:none!important;max-width:100%;max-height:100%;}


/* Iris Gallery 2026-11-09: transparent native preview on a card-controlled
   backdrop; full-width title below a horizontal preview/metadata layout. */
:root{--gallery-thumbnail-bg:#eaf3f5}
.gallery-card-native{height:100%;display:flex;flex-direction:column;overflow:hidden}
.gallery-card-native .gallery-card-bottom{order:2;flex:0 0 auto;display:flex;align-items:center;min-height:48px;padding:8px 11px 9px;border-top:1px solid #e1e8f0;background:#fff}
.gallery-card-native .gallery-card-bottom h3{font-size:15px;line-height:1.21;font-weight:800;min-height:0;margin:0;max-width:100%;overflow-wrap:anywhere;color:#132437}
.gallery-card-native .gallery-card-top{order:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:8px;padding:7px 8px 6px;min-height:162px;flex:1 1 auto;min-width:0}
.gallery-card-native .gallery-card-cover{height:auto;min-height:0;min-width:0;align-self:stretch;border-radius:8px;background:var(--gallery-thumbnail-bg);overflow:hidden}
.gallery-card-native .gallery-card-cover .iris-gallery-data-preview{width:100%;height:100%;max-height:100%;max-width:100%;display:block;object-fit:contain;transform:none!important;background:transparent}
.gallery-card-native .gallery-card-summary{display:flex;flex-direction:column;gap:0;min-width:0;padding:3px 0 2px}
.gallery-card-native .card-subtitle{font-size:11.5px;line-height:1.26;color:#425774;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;min-height:0;margin:0 0 7px;overflow-wrap:anywhere}
.gallery-card-native .card-footer-meta{display:flex;flex-direction:column;gap:3px;flex:0 0 auto;min-width:0;margin:0 0 8px}
.gallery-card-native .card-footer-meta .card-meta,.gallery-card-native .card-footer-meta .card-publisher{display:block;margin:0;font-size:11px;line-height:1.25;color:#4b5d72;min-width:0;overflow-wrap:anywhere}
.gallery-card-native .card-open{display:flex;align-items:center;justify-content:center;margin:auto 0 0!important;min-height:34px;height:auto;flex:0 0 auto;width:100%;padding:6px 4px;border-radius:7px;font-size:11px;line-height:1.2;font-weight:750;text-align:center;white-space:normal}
.gallery-card-native .gallery-card-enlarge{position:absolute;inset:0;background:transparent;border:0;border-radius:8px;width:100%;height:100%;cursor:zoom-in;z-index:1}
.gallery-card-native .gallery-card-enlarge:hover{background:#122f4a0b}
.gallery-card-native .gallery-card-enlarge:focus-visible{outline:3px solid #f1a833;outline-offset:-3px}
@media(min-width:1051px){.gallery-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1051px) and (max-width:1400px){.gallery-card-native .gallery-card-top{min-height:195px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:5px;padding:5px}.gallery-card-native .card-subtitle{font-size:11px}.gallery-card-native .card-footer-meta .card-meta,.gallery-card-native .card-footer-meta .card-publisher{font-size:10.5px}}
@media(max-width:730px){.gallery-card-native .gallery-card-enlarge{display:none}.gallery-card-native .gallery-card-top{min-height:170px}.gallery-card-native .card-subtitle{font-size:12px}.gallery-card-native .card-footer-meta .card-meta,.gallery-card-native .card-footer-meta .card-publisher{font-size:11.5px}}
@media(max-width:490px){.gallery-card-native .gallery-card-top{min-height:165px;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr)}.gallery-card-native .gallery-card-bottom h3{font-size:16px}}
/* Desktop only: roughly 2x card dimensions, over the Gallery instead of
   moving adjacent cards. Native dialog provides Escape/focus handling. */
.gallery-zoom-dialog{width:var(--gallery-zoom-width,660px);height:var(--gallery-zoom-height,450px);max-width:calc(100vw - 36px);max-height:calc(100dvh - 36px);padding:0;border:1px solid #c8d7e6;border-radius:14px;box-shadow:0 22px 70px #0a203d66;overflow:hidden;background:#fff;color:#1b3451}
.gallery-zoom-dialog::backdrop{background:#0c1c30a6}
.gallery-zoom-shell{position:relative;width:100%;height:100%;display:flex;flex-direction:column;min-height:0}
.gallery-zoom-image{flex:1 1 auto;min-height:0;overflow:hidden;background:var(--gallery-thumbnail-bg);display:grid;place-items:center;padding:12px 15px}
.gallery-zoom-image img{width:100%;height:100%;object-fit:contain;display:block;background:transparent}
/* 40px accessible target, 26px visible circle, X drawn geometrically centered. */
.gallery-zoom-close{position:absolute;right:5px;top:3px;z-index:2;display:block;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:transparent;font-size:0;line-height:0;cursor:pointer}
.gallery-zoom-close::before{content:"";position:absolute;left:50%;top:50%;width:26px;height:26px;box-sizing:border-box;border-radius:50%;background:#fff;border:1px solid #b9cce2;box-shadow:0 2px 7px #0b243432;transform:translate(-50%,-50%)}
.gallery-zoom-close::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:11px;transform:translate(-50%,-50%);background:linear-gradient(45deg,transparent calc(50% - 1px),#173450 calc(50% - 1px),#173450 calc(50% + 1px),transparent calc(50% + 1px)),linear-gradient(-45deg,transparent calc(50% - 1px),#173450 calc(50% - 1px),#173450 calc(50% + 1px),transparent calc(50% + 1px))}
.gallery-zoom-close:hover::before{background:#f0f6ff}
.gallery-zoom-close:focus-visible{outline:2px solid #2464bc;outline-offset:0}
.gallery-zoom-meta{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 20px;align-items:center;padding:12px 17px;border-top:1px solid #dce5ed;background:#fff}
.gallery-zoom-title{grid-column:1;font-size:19px;line-height:1.22;margin:0;overflow-wrap:anywhere}
.gallery-zoom-subtitle{grid-column:1;font-size:12px;color:#4b6279;line-height:1.3;margin:0}
.gallery-zoom-open{grid-column:2;grid-row:1/3;align-self:center;padding:10px 15px;text-decoration:none;border-radius:7px;background:#2464bc;color:white;white-space:nowrap;font-size:13px;font-weight:750}
.gallery-zoom-open:hover{color:white;background:#174f9c;text-decoration:none}
@media(max-width:730px){.gallery-zoom-dialog{display:none!important}}

/* Gallery thumbnail fill experiment (2026-11-09): keep the existing card frame
   and transparent native image, but zoom only the image and clip overflow.
   This does not affect the full-image desktop enlargement dialog. */
.gallery-card-native .gallery-card-cover{overflow:hidden}
.gallery-card-native .gallery-card-cover .iris-gallery-data-preview[alt^="Iris map thumbnail"]{
 transform:scale(1.50)!important;
 transform-origin:center center;
}
.gallery-card-native .gallery-card-cover .iris-gallery-data-preview[alt^="Iris chart thumbnail"]{
 transform:scale(1.70)!important;
 transform-origin:center center;
}


/* Heatmap thumbnails are composed to the card aspect, with every cell visible. */
.gallery-card-native .gallery-card-cover .iris-gallery-data-preview.iris-heatmap-thumbnail{transform:none!important;object-fit:contain}


/* Native 4:3 chart images use the full card height without horizontal zoom. */
.gallery-card-native .gallery-card-cover .iris-gallery-data-preview.iris-native-fit-thumbnail{transform:none!important;object-fit:contain;transform-origin:center}

/* Keep readable source/period details outside the image and never paint image alt
   text while a preview is pending or unavailable. */
.gallery-card-native .card-period-source{font-size:11.5px;line-height:1.26;font-weight:400;color:#324d65;margin:0 0 7px;overflow-wrap:anywhere}
@media(min-width:1051px) and (max-width:1400px){.gallery-card-native .card-period-source{font-size:11px}}
@media(max-width:730px){.gallery-card-native .card-period-source{font-size:12px}}
.gallery-card-cover .iris-gallery-data-preview.is-loading{visibility:hidden}
.gallery-card-cover .iris-gallery-data-preview[hidden]{display:none!important}
.gallery-card-cover>.iris-preview-loading{position:absolute;inset:0;display:grid;place-items:center;padding:12px;font-size:12px;line-height:1.3;text-align:center;color:#5d7689}
