/* GEMR Strata: base, site chrome and page templates. Section components ship with GEMR Core. */
:root{
--g-forest-900:var(--wp--preset--color--forest-900,#002623);--g-forest-700:var(--wp--preset--color--forest-700,#054239);--g-forest-500:var(--wp--preset--color--forest-500,#428177);
--g-wheat-100:var(--wp--preset--color--wheat-100,#edebe0);--g-wheat-400:var(--wp--preset--color--wheat-400,#b9a779);--g-wheat-600:var(--wp--preset--color--wheat-600,#988561);--g-wheat-800:#6f6040;
--g-umber:var(--wp--preset--color--umber,#6b1f2a);--g-ink:var(--wp--preset--color--ink,#161616);--g-ink-2:var(--wp--preset--color--ink-2,#3d3a3b);
--g-line:#d9d6c8;--g-line-soft:#edebe0;--g-container:1200px;--g-radius:2px;--g-cut:12px;--g-focus:#0b63c5
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--wp--preset--font-family--plex,"Plex Arabic","Segoe UI",Tahoma,Arial,sans-serif);font-size:1.0625rem;line-height:1.75;color:var(--g-ink);background:#fff;overflow-wrap:break-word}
img,svg{max-width:100%}img{height:auto}
a{color:var(--g-forest-700);text-underline-offset:.2em}a:hover{color:var(--g-forest-900)}
:focus-visible{outline:3px solid var(--g-focus);outline-offset:2px}
h1,h2,h3,h4{line-height:1.35;color:var(--g-forest-900);text-wrap:balance}
button,input,select,textarea{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gemr-skip{position:absolute;inset-inline-start:16px;top:-80px;z-index:100;background:var(--g-forest-900);color:#fff;padding:10px 16px}
.gemr-skip:focus{top:8px;color:#fff}
[id]{scroll-margin-top:24px}

/* Utility strip */
.gemr-util{background:var(--g-forest-900);color:var(--g-wheat-100);font-size:.875rem}
.gemr-util .gemr-container{display:flex;flex-wrap:wrap;gap:4px 24px;align-items:center;justify-content:space-between;min-height:44px}
.gemr-util a{color:var(--g-wheat-100);text-decoration:none;display:inline-block;padding:10px 0}
.gemr-util a:hover{text-decoration:underline;color:#fff}
.gemr-util ul{display:flex;flex-wrap:wrap;gap:0 20px;align-items:center;list-style:none;margin:0;padding:0}
.gemr-util .gemr-lang{background:var(--g-wheat-400);color:var(--g-forest-900);font-weight:600;padding:4px 14px;border-radius:var(--g-radius)}
.gemr-util .gemr-lang:hover{color:var(--g-forest-900)}

/* Header */
.gemr-header{background:#fff;border-bottom:1px solid var(--g-line)}
.gemr-header-bar{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;min-height:84px;padding-block:12px}
.gemr-brand{display:flex;align-items:center;text-decoration:none;color:var(--g-forest-900);font-weight:700;font-size:1.125rem;line-height:1.4;max-width:30ch}
.gemr-brand img{display:block;height:54px;width:auto}
.gemr-header-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.gemr-search{display:flex;align-items:center;border:1px solid var(--g-ink-2);border-radius:var(--g-radius);background:#fff}
.gemr-search input{width:220px;max-width:100%;height:44px;padding:0 14px;border:0;background:transparent;color:var(--g-ink);font-size:.9375rem}
.gemr-search button{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--g-forest-700);cursor:pointer}
.gemr-header .gemr-btn{min-height:44px;padding:0 20px;font-size:.9375rem}
.gemr-nav-toggle{display:none;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--g-ink-2);border-radius:var(--g-radius);background:#fff;color:var(--g-ink);font-weight:600;cursor:pointer}
.gemr-nav{border-top:1px solid var(--g-line-soft)}
.gemr-nav .gemr-container{padding-inline:12px}
.gemr-menu,.gemr-menu ul{list-style:none;margin:0;padding:0}
.gemr-menu{display:flex;flex-wrap:wrap;gap:0 4px}
.gemr-menu>li{position:relative;display:flex;align-items:center}
.gemr-menu a{display:block;padding:12px 14px 9px;text-decoration:none;color:var(--g-ink);font-weight:600;font-size:1rem;border-bottom:3px solid transparent}
.gemr-menu a:hover{color:var(--g-forest-700)}
.gemr-menu>.current-menu-item>a,.gemr-menu>.current-menu-ancestor>a,.gemr-menu>.current-menu-parent>a{color:var(--g-forest-700);border-bottom-color:var(--g-wheat-400)}
.gemr-sub-toggle{width:32px;height:44px;margin-inline-start:-10px;display:grid;place-items:center;border:0;background:none;color:var(--g-ink);cursor:pointer}
.gemr-sub-toggle::after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}
.gemr-sub-toggle[aria-expanded="true"]::after{transform:translateY(2px) rotate(-135deg)}
.gemr-menu .sub-menu{display:none;position:absolute;top:100%;inset-inline-start:0;z-index:40;min-width:17rem;padding:6px 0;background:#fff;border:1px solid var(--g-line);box-shadow:0 10px 24px rgba(0,38,35,.12)}
.gemr-menu li:hover>.sub-menu,.gemr-menu li.is-open>.sub-menu{display:block}
.gemr-menu .sub-menu a{padding:10px 16px;border-bottom:0;font-weight:400}
@media(max-width:1100px){
.gemr-nav-toggle{display:inline-flex}
.gemr-nav{display:none}.gemr-nav.is-open{display:block}
.gemr-menu{flex-direction:column}.gemr-menu>li{flex-wrap:wrap;border-bottom:1px solid var(--g-line-soft)}
.gemr-menu>li>a{flex:1;border-bottom:0;padding:12px 14px}
.gemr-sub-toggle{margin:0;width:48px}
.gemr-menu .sub-menu{position:static;width:100%;min-width:0;border:0;box-shadow:none;padding:0 16px 8px}
.gemr-menu li:hover>.sub-menu{display:none}.gemr-menu li.is-open>.sub-menu{display:block}
}
@media(max-width:560px){
.gemr-util .gemr-state{display:none}.gemr-util .gemr-container{justify-content:flex-end}
.gemr-brand img{height:42px}.gemr-search input{width:140px}
}

/* Page head */
.gemr-pagehead{background:var(--g-wheat-100)}
.gemr-pagehead .gemr-container{padding-block:20px 44px;display:flex;flex-direction:column;gap:20px}
.gemr-pagehead-row{display:flex;flex-wrap:wrap;gap:32px 40px;align-items:flex-start}
.gemr-pagehead-main{flex:2 1 480px;min-width:0;display:flex;flex-wrap:wrap;gap:24px;align-items:center}
.gemr-pagehead-text{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:10px}
.gemr-pagehead h1{margin:0;font-size:clamp(1.875rem,4.2vw,2.75rem);line-height:1.3;font-weight:700}
.gemr-pagehead .gemr-lead{margin:0;font-size:1.125rem;max-width:38em}
.gemr-latin{font-size:1.0625rem;color:var(--g-ink-2)}
.gemr-pagehead-links{display:flex;flex-wrap:wrap;gap:4px 24px;font-weight:600}
.gemr-pagehead-links a{padding:10px 0}
.gemr-crumbs ol{display:flex;flex-wrap:wrap;gap:0 8px;align-items:center;list-style:none;margin:0;padding:0;font-size:.875rem;color:var(--g-ink-2)}
.gemr-crumbs li+li::before{content:"‹";margin-inline-end:8px}
[dir=ltr] .gemr-crumbs li+li::before{content:"›"}
.gemr-crumbs a{display:inline-block;padding:10px 0}
.gemr-facts{flex:1 1 320px;min-width:0;margin:0;padding:8px 20px;background:#fff;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-facts div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;font-size:.9375rem}
.gemr-facts div+div{border-top:1px solid var(--g-line-soft)}
.gemr-facts dt{flex:none;color:var(--g-ink-2)}
.gemr-facts dd{margin:0;font-weight:600;color:var(--g-forest-900);text-align:end}

/* In-page nav */
.gemr-toc{background:#fff;border-bottom:1px solid var(--g-line)}
.gemr-toc .gemr-container{display:flex;flex-wrap:wrap;gap:0 4px;padding-inline:12px}
.gemr-toc a{display:inline-flex;align-items:center;min-height:52px;padding:0 14px;text-decoration:none;color:var(--g-ink);font-size:.9375rem;font-weight:600}
.gemr-toc a:hover{color:var(--g-forest-700)}

/* Layout */
.gemr-main{display:block;min-height:55vh}
.gemr-layout{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start;padding-block:56px 72px}
.gemr-layout-main{flex:999 1 600px;min-width:0;display:flex;flex-direction:column;gap:48px}
.gemr-layout-aside{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:24px}
.gemr-aside-box{display:flex;flex-direction:column;gap:4px;padding:20px;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-aside-box h2{margin:0 0 4px;font-size:1.125rem;font-weight:700}
.gemr-aside-box a{font-weight:600;padding:9px 0}
.gemr-aside-box .is-current{font-weight:700;color:var(--g-forest-900);padding:9px 12px;background:var(--g-wheat-100)}
.gemr-aside-box.is-dark{background:var(--g-forest-900);border-color:var(--g-forest-900);color:var(--g-wheat-100)}
.gemr-aside-box.is-dark h2{color:#fff}.gemr-aside-box.is-dark a{color:var(--g-wheat-400)}
.gemr-block-title{margin:0 0 16px;font-size:1.75rem;font-weight:700}
.gemr-row-head{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:flex-end;justify-content:space-between;margin-bottom:8px}
.gemr-row-head .gemr-block-title{margin:0}
.gemr-list-item{display:flex;flex-direction:column;gap:6px;padding:16px 0;text-decoration:none;color:var(--g-ink)}
.gemr-list-item+.gemr-list-item{border-top:1px solid var(--g-line-soft)}
.gemr-list-item strong{font-size:1.125rem;font-weight:600;color:var(--g-forest-900);line-height:1.55}
.gemr-files{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
.gemr-files a{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 16px;border:1px solid var(--g-line);border-radius:var(--g-radius);text-decoration:none;font-weight:600;color:var(--g-forest-900)}
.gemr-files small{display:block;font-weight:400;color:var(--g-ink-2)}
.gemr-inner .gemr-section{padding-block:0;background:none}
.gemr-inner .gemr-container{padding-inline:0;max-width:none}

/* Prose (post content) */
.gemr-prose{font-size:1.0625rem;max-width:46em}
.gemr-prose.is-full{max-width:none}
.gemr-prose>*{margin-block:0 1.25em}.gemr-prose>*:last-child{margin-bottom:0}
.gemr-prose h2{margin-block:2em .6em;font-size:1.75rem;font-weight:700}.gemr-prose h2:first-child{margin-top:0}
.gemr-prose h3{margin-block:1.6em .5em;font-size:1.25rem;font-weight:700}
.gemr-prose ul,.gemr-prose ol{padding-inline-start:1.4em}
.gemr-prose li+li{margin-top:.4em}
.gemr-prose img{border-radius:var(--g-radius)}
.gemr-prose figure{margin-inline:0}
.gemr-prose figcaption{font-size:.875rem;color:var(--g-ink-2)}
.gemr-prose .wp-block-table{overflow-x:auto;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-prose table{width:100%;min-width:480px;border-collapse:collapse;font-size:1rem}
.gemr-prose .wp-block-table th,.gemr-prose .wp-block-table td,.gemr-prose th,.gemr-prose td{padding:12px 16px;text-align:start;border:0;border-top:1px solid var(--g-line-soft)}
.gemr-prose .wp-block-table thead{border-bottom:0}
.gemr-prose .wp-block-table thead th,.gemr-prose thead th{background:var(--g-wheat-100);color:var(--g-forest-900);font-weight:700;border-top:0}
.gemr-prose blockquote{margin-inline:0;padding:12px 20px;background:var(--g-wheat-100);border:0}
.gemr-prose details{border:1px solid var(--g-line);border-radius:var(--g-radius);padding:0 18px}
.gemr-prose details+details{margin-top:-.5em}
.gemr-prose summary{min-height:56px;display:flex;align-items:center;font-weight:600;color:var(--g-forest-900);cursor:pointer}
.gemr-prose details>*:not(summary){margin-block:0 16px}
.gemr-prose .wp-block-file{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:14px 16px;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-prose .wp-block-file a:first-child{font-weight:600}
.gemr-prose .wp-block-file__button{padding:6px 14px;background:var(--g-forest-700);color:#fff;text-decoration:none;border-radius:var(--g-radius);font-size:.875rem}
.gemr-prose ul.is-style-gemr-checklist{list-style:none;padding:0;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-prose ul.is-style-gemr-checklist li{position:relative;margin:0;padding:14px 18px;padding-inline-start:54px}
.gemr-prose ul.is-style-gemr-checklist li+li{border-top:1px solid var(--g-line-soft)}
.gemr-prose ul.is-style-gemr-checklist li::before{content:"";position:absolute;inset-inline-start:18px;top:17px;width:22px;height:22px;background:var(--g-forest-700);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.gemr-prose ul.is-style-gemr-checklist li::after{content:"";position:absolute;inset-inline-start:25px;top:22px;width:8px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(.7)}
.gemr-prose ol.is-style-gemr-steps{list-style:none;padding:0;counter-reset:step}
.gemr-prose ol.is-style-gemr-steps>li{position:relative;margin:0;padding-block:8px 28px;padding-inline-start:68px;counter-increment:step;min-height:56px}
.gemr-prose ol.is-style-gemr-steps>li::before{content:counter(step);position:absolute;inset-inline-start:0;top:0;width:48px;height:48px;display:grid;place-items:center;background:var(--g-forest-700);color:#fff;font-weight:700;font-size:1.25rem;clip-path:polygon(var(--g-cut) 0,100% 0,100% calc(100% - var(--g-cut)),calc(100% - var(--g-cut)) 100%,0 100%,0 var(--g-cut))}
.gemr-prose ol.is-style-gemr-steps>li::after{content:"";position:absolute;inset-inline-start:23px;top:52px;bottom:4px;width:2px;background:var(--g-wheat-400)}
.gemr-prose ol.is-style-gemr-steps>li:last-child{padding-bottom:0}
.gemr-prose ol.is-style-gemr-steps>li:last-child::before{background:var(--g-umber)}
.gemr-prose ol.is-style-gemr-steps>li:last-child::after{display:none}
.gemr-gallery{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}

/* Archives */
.gemr-archive{padding-block:40px 72px;display:flex;flex-direction:column;gap:32px}
.gemr-filters{display:flex;flex-direction:column;gap:20px;padding:20px;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-filters .gemr-chips{margin:0}
.gemr-filter-row{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));align-items:end}
.gemr-field{display:flex;flex-direction:column;gap:6px}
.gemr-field label{font-size:.875rem;font-weight:600}
.gemr-field select,.gemr-field input{height:48px;padding:0 12px;border:1px solid var(--g-ink-2);border-radius:var(--g-radius);background:#fff;color:var(--g-ink);width:100%}
.gemr-count{margin:0;font-size:.9375rem;color:var(--g-ink-2)}
.gemr-post-grid{display:grid;gap:40px 28px;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.gemr-post-card{display:flex;flex-direction:column;gap:12px;text-decoration:none;color:var(--g-ink)}
.gemr-post-card h2,.gemr-post-card h3{margin:0;font-size:1.25rem;line-height:1.5;font-weight:600}
.gemr-post-card:hover h2,.gemr-post-card:hover h3{text-decoration:underline}
.gemr-post-card.is-featured{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:32px;align-items:center;padding-bottom:32px;border-bottom:1px solid var(--g-line)}
.gemr-post-card.is-featured>.gemr-frame{flex:3 1 420px}
.gemr-post-card.is-featured>div{flex:2 1 340px;min-width:0;display:flex;flex-direction:column;gap:12px}
.gemr-post-card.is-featured h2{font-size:clamp(1.375rem,2.6vw,1.75rem);line-height:1.45;font-weight:700}
.gemr-post-card p{margin:0;font-size:1rem;color:var(--g-ink-2)}
.gemr-rows{display:flex;flex-direction:column;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-row{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;justify-content:space-between;padding:18px 20px;text-decoration:none;color:var(--g-ink)}
.gemr-row+.gemr-row{border-top:1px solid var(--g-line-soft)}
.gemr-row-main{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:6px}
.gemr-row strong{font-size:1.125rem;font-weight:600;color:var(--g-forest-900);line-height:1.5}
.gemr-pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.gemr-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 14px;border:1px solid var(--g-line);border-radius:var(--g-radius);text-decoration:none;color:var(--g-ink);font-size:.9375rem;font-weight:600}
.gemr-pagination .current{background:var(--g-forest-700);border-color:var(--g-forest-700);color:#fff}
.gemr-empty{padding:32px;border:1px dashed var(--g-wheat-600);border-radius:var(--g-radius);color:var(--g-ink-2)}

/* Article */
.gemr-mentions{display:flex;flex-direction:column;gap:20px;padding:24px;border:1px solid var(--g-line);border-radius:var(--g-radius)}
.gemr-mentions h2{margin:0;font-size:1.25rem;font-weight:700}
.gemr-mentions h3{margin:0 0 10px;font-size:.875rem;font-weight:600;color:var(--g-wheat-800)}
.gemr-share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:20px;border-top:1px solid var(--g-line)}
.gemr-share .gemr-btn-outline{min-height:44px;padding:0 16px;font-size:.9375rem}
.gemr-ore-head{flex:none}

/* Footer */
.gemr-footer{background:var(--g-forest-900);color:var(--g-wheat-100);font-size:.9375rem}
.gemr-footer a{color:var(--g-wheat-100);text-decoration:none;display:inline-block;padding:8px 0}
.gemr-footer a:hover{color:#fff;text-decoration:underline}
.gemr-footer-cols{display:grid;gap:40px;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));padding-block:56px 40px}
.gemr-footer-col{display:flex;flex-direction:column;gap:6px;min-width:0}
.gemr-footer-col.is-about{gap:16px}
.gemr-footer h2{margin:0 0 6px;font-size:1.0625rem;font-weight:700;color:var(--g-wheat-400)}
.gemr-footer ul{list-style:none;margin:0;padding:0}
.gemr-footer p{margin:0}
.gemr-footer-logo{align-self:flex-start;background:#fff;padding:8px 12px;border-radius:var(--g-radius)}
.gemr-footer-logo img{display:block;height:40px;width:auto}
.gemr-footer-state{display:flex;gap:14px;align-items:center;font-size:.875rem}
.gemr-footer-state img{display:block;width:72px;height:auto}
.gemr-footer-social{display:flex;flex-wrap:wrap;gap:0 20px}
.gemr-footer-legal{border-top:1px solid var(--g-forest-700)}
.gemr-footer-legal .gemr-container{display:flex;flex-wrap:wrap;gap:4px 24px;align-items:center;justify-content:space-between;padding-block:14px;font-size:.875rem}
.gemr-footer-legal ul{display:flex;flex-wrap:wrap;gap:0 20px}
.gemr-footer-legal a{padding:10px 0}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
@media print{
.gemr-util,.gemr-header,.gemr-footer,.gemr-toc,.gemr-share,.gemr-layout-aside,.gemr-filters,.gemr-skip{display:none!important}
.gemr-pagehead{background:none}.gemr-layout{padding-block:16px}body{font-size:12pt}
}
.gemr-pagehead-text.is-narrow{max-width:900px;flex:none}
.gemr-chips.is-flush{margin:0}
.gemr-ore-grid.is-compact{--min:170px}
.gemr-search.is-wide{max-width:480px}.gemr-search.is-wide input{flex:1;width:auto}

.gemr-header .gemr-btn-portal{background:var(--g-wheat-100);color:var(--g-forest-900);box-shadow:inset 0 0 0 1px var(--g-wheat-600)}.gemr-header .gemr-btn-portal:hover{background:var(--g-wheat-400);color:var(--g-forest-900)}
/* Search page */
.gemr-searchpage{display:grid;gap:24px}
.gemr-searchpage .gemr-search.is-wide{max-width:640px}
.gemr-search-tabs{margin:0}
.gemr-search-tabs .gemr-chip b,.gemr-search-terms .gemr-chip b{margin-inline-start:8px;font-weight:600;opacity:.75}
.gemr-search-group h2{margin:0 0 12px;font-size:1.125rem}
.gemr-search-terms{margin:0}
