/*
Theme Name: Sovereign House
Theme URI: https://www.globalfinancialengineering.com/
Author: Global Internal Governance Chamber
Description: The house theme of Global Financial Engineering, Inc. and Global Accountancy Institute, Inc. One theme, two mastheads. No page builder, no slider, no third-party imagery: every figure is drawn in code from the house's own ideas.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: sovereign-house
*/

/* ---------- Tokens ---------- */
:root {
	--sh-primary: #1F3864;
	--sh-deep: #132544;
	--sh-accent: #B8860B;
	--sh-accent-soft: rgba(184, 134, 11, .12);
	--sh-paper: #FAF8F3;
	--sh-tint: #F2EEE4;
	--sh-ink: #1D1D21;
	--sh-muted: #5B606B;
	--sh-line: #E2DCCD;
	--sh-white: #FFFFFF;
	--sh-serif: Georgia, "Times New Roman", Times, serif;
	--sh-wrap: 1180px;
	--sh-read: 720px;
	--sh-gutter: clamp(16px, 4vw, 40px);
}
.edition-gai {
	--sh-primary: #1E4636;
	--sh-deep: #12301F;
	--sh-paper: #F8F7F2;
	--sh-tint: #EEF0E8;
	--sh-line: #DCDDD0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--sh-paper);
	color: var(--sh-ink);
	font-family: var(--sh-serif);
	font-size: 18px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--sh-primary); text-decoration-color: var(--sh-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sh-accent); }
:focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--sh-serif); font-weight: normal; color: var(--sh-primary); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
.sh-wrap { max-width: var(--sh-wrap); margin: 0 auto; padding: 0 var(--sh-gutter); }
.sh-skip { position: absolute; left: -9999px; top: 0; background: var(--sh-primary); color: #fff; padding: 10px 16px; z-index: 100; }
.sh-skip:focus { left: 12px; top: 12px; }

.sh-eyebrow {
	font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
	color: var(--sh-accent); margin: 0 0 14px; font-weight: bold;
}
.sh-eyebrow a { color: inherit; text-decoration: none; }
.sh-eyebrow--light { color: #D9B45A; }

/* ---------- Strip & header ---------- */
.sh-strip { background: var(--sh-deep); color: rgba(255,255,255,.78); font-size: 13px; letter-spacing: .04em; border-bottom: 2px solid var(--sh-accent); }
.sh-strip__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.sh-strip a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.sh-strip a:hover { color: #E8C670; }

.sh-head { background: var(--sh-paper); border-bottom: 1px solid var(--sh-line); position: sticky; top: 0; z-index: 50; }
.sh-head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.sh-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--sh-primary); }
.sh-brand .sh-fig { width: 50px; height: 50px; flex: none; }
.sh-brand__words { display: flex; flex-direction: column; line-height: 1.15; }
.sh-brand__name { font-size: 21px; letter-spacing: -.005em; }
.sh-brand__legal { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sh-accent); margin-top: 4px; }
.m-outer { fill: none; stroke: var(--sh-primary); stroke-width: 2; }
.m-inner { fill: var(--sh-primary); stroke: var(--sh-accent); stroke-width: 1.5; }
.m-text { fill: #fff; font-family: var(--sh-serif); font-size: 25px; letter-spacing: .06em; text-anchor: middle; }
.m-rule { stroke: var(--sh-accent); stroke-width: 1.5; }

.sh-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.sh-nav__list a { display: block; padding: 10px 12px; text-decoration: none; color: var(--sh-ink); font-size: 16px; border-bottom: 2px solid transparent; }
.sh-nav__list a:hover { color: var(--sh-primary); border-bottom-color: var(--sh-accent); }
.sh-nav__list .current > a, .sh-nav__list .current-menu-item > a { color: var(--sh-primary); border-bottom-color: var(--sh-accent); }
.sh-menu-btn { display: none; }

/* ---------- Hero ---------- */
.sh-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); background:
	linear-gradient(180deg, var(--sh-paper) 0%, var(--sh-tint) 100%); border-bottom: 1px solid var(--sh-line); }
.sh-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.sh-hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; margin-bottom: 22px; }
.sh-hero h1 em { color: var(--sh-accent); font-style: italic; }
.sh-hero__lede { font-size: clamp(19px, 1.7vw, 22px); color: #34363D; max-width: 34em; }
.sh-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.sh-hero--slim { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 52px); }
.sh-hero--slim h1 { font-size: clamp(36px, 4.6vw, 56px); }
.sh-hero--slim .sh-hero__grid { grid-template-columns: 1.3fr .7fr; }

.sh-btn { display: inline-block; padding: 13px 22px; background: var(--sh-primary); color: #fff; text-decoration: none; border: 1px solid var(--sh-primary); font-size: 16px; letter-spacing: .02em; }
.sh-btn:hover { background: var(--sh-deep); color: #fff; }
.sh-btn--line { background: transparent; color: var(--sh-primary); border-color: var(--sh-accent); }
.sh-btn--line:hover { background: var(--sh-accent-soft); color: var(--sh-primary); }

/* ---------- Figures ---------- */
.sh-figure { margin: 0; }
.sh-fig .f-hair { stroke: var(--sh-primary); stroke-opacity: .09; stroke-width: 1; }
.sh-fig .f-ink { fill: none; stroke: var(--sh-primary); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sh-fig .f-thick { stroke-width: 3; }
.sh-fig .f-soft { stroke-opacity: .45; }
.sh-fig .f-gold { fill: none; stroke: var(--sh-accent); stroke-width: 1.6; }
.sh-fig .f-gold--thick { stroke-width: 3.2; }
.sh-fig .f-dash { stroke-dasharray: 4 5; }
.sh-fig .f-tick { stroke: var(--sh-muted); stroke-width: 1; stroke-opacity: .7; }
.sh-fig .f-wash { fill: var(--sh-accent); fill-opacity: .1; stroke: none; }
.sh-fig .f-plate { fill: var(--sh-white); stroke: var(--sh-line); stroke-width: 1; }
.sh-fig .f-plate--v { fill: var(--sh-tint); }
.sh-fig .f-dot { fill: var(--sh-accent); }
.sh-fig .f-dot--ink { fill: var(--sh-primary); }
.sh-fig .f-dot--past { fill: var(--sh-muted); fill-opacity: .28; }
.sh-fig .f-ring { fill: none; stroke: var(--sh-accent); stroke-opacity: .5; }
.sh-fig .f-num { fill: var(--sh-muted); font-family: var(--sh-serif); font-size: 15px; text-anchor: middle; }
.sh-fig .f-left { text-anchor: start; }
.sh-fig .f-mono { fill: var(--sh-primary); font-family: var(--sh-serif); font-size: 30px; text-anchor: middle; letter-spacing: .06em; }
.sh-fig .f-cap { fill: var(--sh-accent); font-family: var(--sh-serif); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-anchor: middle; }
.sh-fig .s-ring { fill: #E8C670; font-family: var(--sh-serif); font-size: 13.2px; letter-spacing: 0; }
.sh-fig .s-text { fill: #fff; font-family: var(--sh-serif); font-size: 34px; letter-spacing: .08em; text-anchor: middle; }
.sh-hero .sh-figure { background: rgba(255,255,255,.55); border: 1px solid var(--sh-line); padding: 8px; box-shadow: 0 24px 48px -32px rgba(20, 30, 50, .35); }

/* ---------- Sections ---------- */
.sh-section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--sh-line); }
.sh-section--tint { background: var(--sh-tint); }
.sh-section--deep { background: var(--sh-primary); color: rgba(255,255,255,.9); border-bottom: 0; }
.sh-section--deep h2, .sh-section--deep h3 { color: #fff; }
.sh-section--deep .sh-eyebrow { color: #E2BC5E; }
.sh-section--deep a { color: #fff; }
.sh-section--list { border-bottom: 0; }
.sh-section h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 22em; }
.sh-section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sh-section__head p:not(.sh-eyebrow) { font-size: 19px; color: var(--sh-muted); }
.sh-section--deep .sh-section__head p:not(.sh-eyebrow) { color: rgba(255,255,255,.75); }

.sh-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.sh-split--wide { grid-template-columns: .85fr 1.15fr; }
.sh-split--center { align-items: center; }

.sh-prose { font-size: 18.5px; }
.sh-prose > * + h2 { margin-top: 1.8em; }
.sh-prose h2 { font-size: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--sh-accent); }
.sh-prose h3 { font-size: 23px; margin-top: 1.6em; }
.sh-prose ul, .sh-prose ol { padding-left: 1.3em; }
.sh-prose li { margin-bottom: .5em; }
.sh-prose li::marker { color: var(--sh-accent); }
.sh-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--sh-accent); color: var(--sh-primary); font-style: italic; font-size: 1.1em; }
.sh-prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.2em 0; display: block; overflow-x: auto; }
.sh-prose th, .sh-prose td { border: 1px solid var(--sh-line); padding: 8px 10px; text-align: left; }
.sh-prose th { background: var(--sh-primary); color: #fff; font-weight: normal; }
.sh-reading { max-width: calc(var(--sh-read) + 2 * var(--sh-gutter)); padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); }
.sh-reading--paper { max-width: calc(820px + 2 * var(--sh-gutter)); }
.sh-crumb { padding-top: 32px; }
.sh-crumb .sh-eyebrow { margin: 0; }

.sh-lead { font-size: clamp(21px, 2vw, 25px); line-height: 1.55; color: var(--sh-primary); }
.sh-quote { margin: 0; padding: 0; font-size: clamp(25px, 2.8vw, 36px); line-height: 1.32; color: var(--sh-primary); font-style: italic; }
.sh-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sh-accent); }
.sh-section--deep .sh-quote { color: #fff; }

/* Laws & numbered rows */
.sh-laws { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sh-line); }
.sh-laws li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--sh-line); }
.sh-laws__n { font-size: 40px; line-height: 1; color: var(--sh-accent); font-style: italic; }
.sh-laws h3 { font-size: 24px; margin: 0 0 6px; }
.sh-laws p { margin: 0; color: #34363D; }
.sh-laws .sh-maxim { margin-top: 10px; color: var(--sh-primary); font-style: italic; }
.sh-section--deep .sh-laws, .sh-section--deep .sh-laws li { border-color: rgba(255,255,255,.18); }
.sh-section--deep .sh-laws p { color: rgba(255,255,255,.82); }
.sh-section--deep .sh-laws .sh-maxim { color: #F0D58F; }

/* Cards */
.sh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sh-cards--two { grid-template-columns: repeat(2, 1fr); }
.sh-cards--stack { grid-template-columns: 1fr; gap: 16px; }
.sh-card, .sh-tile { background: var(--sh-white); border: 1px solid var(--sh-line); border-top: 3px solid var(--sh-accent); padding: 28px 26px 26px; display: flex; flex-direction: column; }
.sh-tile__n { font-size: 13px; letter-spacing: .2em; color: var(--sh-accent); text-transform: uppercase; margin-bottom: 12px; }
.sh-tile h3, .sh-card__title { font-size: 23px; margin: 0 0 10px; }
.sh-card__title a { text-decoration: none; color: var(--sh-primary); }
.sh-card__title a:hover { color: var(--sh-accent); }
.sh-tile p, .sh-card__text { font-size: 16.5px; color: #3C3F46; margin: 0 0 14px; }
.sh-card__meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-muted); margin: 0 0 12px; }
.sh-card__meta span { color: var(--sh-accent); }
.sh-more { margin-top: auto; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.sh-more::after { content: " \2192"; color: var(--sh-accent); }
.sh-section--tint .sh-card, .sh-section--tint .sh-tile { background: var(--sh-paper); }

/* Ledger: what is open, what is closed */
.sh-ledger { width: 100%; border-collapse: collapse; font-size: 17px; }
.sh-ledger th, .sh-ledger td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--sh-line); }
.sh-ledger thead th { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sh-accent); font-weight: bold; border-bottom: 2px solid var(--sh-primary); }
.sh-ledger td:first-child { color: var(--sh-primary); width: 34%; }
.sh-ledger tfoot td { border-bottom: 3px double var(--sh-accent); }
.sh-ledger-wrap { overflow-x: auto; }

/* Timeline */
.sh-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.sh-timeline::before { content: ""; position: absolute; left: 132px; top: 6px; bottom: 6px; width: 1px; background: var(--sh-accent); }
.sh-timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 44px; padding: 0 0 34px; position: relative; }
.sh-timeline li::before { content: ""; position: absolute; left: 127px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--sh-paper); border: 2px solid var(--sh-accent); }
.sh-timeline__date { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-muted); padding-top: 4px; text-align: right; }
.sh-timeline h3 { font-size: 22px; margin: 0 0 6px; }
.sh-timeline p { margin: 0; color: #3C3F46; }

/* FAQ */
.sh-faq details { border-bottom: 1px solid var(--sh-line); padding: 6px 0; }
.sh-faq details:first-child { border-top: 1px solid var(--sh-line); }
.sh-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-size: 21px; color: var(--sh-primary); position: relative; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--sh-accent); }
.sh-faq details[open] summary::after { content: "\2013"; }
.sh-faq details > div { padding: 0 0 18px; color: #34363D; max-width: 760px; }

/* Papers list, chips, pager */
.sh-papers { list-style: none; counter-reset: p; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.sh-papers li { counter-increment: p; break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--sh-line); }
.sh-papers a { text-decoration: none; }
.sh-section--deep .sh-papers li { border-color: rgba(255,255,255,.18); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.sh-chips a { padding: 7px 14px; border: 1px solid var(--sh-line); background: var(--sh-white); text-decoration: none; font-size: 14px; color: var(--sh-ink); }
.sh-chips a.is-on, .sh-chips a:hover { border-color: var(--sh-accent); color: var(--sh-primary); background: var(--sh-accent-soft); }
.sh-pager { margin-top: 40px; }
.sh-pager .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-pager .page-numbers { padding: 8px 14px; border: 1px solid var(--sh-line); text-decoration: none; background: var(--sh-white); }
.sh-pager .current { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }
.sh-pager .screen-reader-text { position: absolute; left: -9999px; }
.sh-empty { font-style: italic; color: var(--sh-muted); }

.sh-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 72px; }
.sh-postnav a { display: block; padding: 20px 22px; border: 1px solid var(--sh-line); background: var(--sh-white); text-decoration: none; }
.sh-postnav span { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sh-accent); margin-bottom: 6px; }
.sh-postnav__next { text-align: right; grid-column: 2; }

/* Masthead (inner pages) */
.sh-masthead { background: linear-gradient(180deg, var(--sh-paper), var(--sh-tint)); border-bottom: 1px solid var(--sh-line); padding: clamp(44px, 6vw, 80px) 0 clamp(32px, 4vw, 52px); }
.sh-masthead__title { font-size: clamp(34px, 4.6vw, 56px); max-width: 18em; }
.sh-masthead__lede { font-size: 21px; color: #34363D; max-width: 38em; margin: 0; }
.sh-masthead__meta { font-size: 14px; color: var(--sh-muted); margin: 14px 0 0; letter-spacing: .04em; }

/* Notice box */
.sh-notice { border-top: 2px solid var(--sh-accent); border-bottom: 2px solid var(--sh-accent); padding: 22px 0; margin: 0 0 28px; }
.sh-notice h3 { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--sh-accent); margin: 0 0 10px; font-weight: bold; }
.sh-notice p { margin: 0; font-size: 16.5px; color: #3C3F46; }
.sh-email { font-size: clamp(22px, 3vw, 32px); text-decoration: none; border-bottom: 2px solid var(--sh-accent); color: var(--sh-primary); word-break: break-all; }

/* ---------- Footer ---------- */
.sh-foot { background: var(--sh-deep); color: rgba(255,255,255,.78); padding: 64px 0 30px; font-size: 16px; border-top: 3px solid var(--sh-accent); }
.sh-foot a { color: #fff; text-decoration-color: rgba(232,198,112,.6); }
.sh-foot a:hover { color: #E8C670; }
.sh-foot__top { display: grid; grid-template-columns: 200px 1fr 1.2fr; gap: 48px; align-items: start; }
.sh-foot__seal .sh-fig { width: 170px; }
.sh-foot .m-outer { stroke: var(--sh-accent); }
.sh-foot .m-inner { fill: var(--sh-primary); }
.sh-foot__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.sh-foot__list li { padding: 3px 0; }
.sh-foot__list a { text-decoration: none; }
.sh-foot__note { font-size: 14.5px; color: rgba(255,255,255,.62); max-width: 30em; }
.sh-foot__maxim { margin: 48px 0 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); text-align: center; font-style: italic; font-size: 20px; color: #F0D58F; }
.sh-foot__base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.sh-foot__base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.sh-nav__list a { padding: 10px 8px; font-size: 15px; }
	.sh-brand__name { font-size: 19px; }
}
@media (max-width: 960px) {
	.sh-menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--sh-line); padding: 9px 14px; font-family: var(--sh-serif); font-size: 15px; color: var(--sh-primary); cursor: pointer; }
	.sh-menu-btn__bars, .sh-menu-btn__bars::before, .sh-menu-btn__bars::after { display: block; width: 18px; height: 2px; background: var(--sh-accent); position: relative; content: ""; }
	.sh-menu-btn__bars::before { position: absolute; top: -6px; }
	.sh-menu-btn__bars::after { position: absolute; top: 6px; }
	.sh-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sh-paper); border-bottom: 2px solid var(--sh-accent); box-shadow: 0 18px 30px -20px rgba(0,0,0,.3); }
	.sh-nav-open .sh-nav { display: block; }
	.sh-nav__list { flex-direction: column; padding: 8px var(--sh-gutter) 16px; }
	.sh-nav__list a { padding: 12px 0; border-bottom: 1px solid var(--sh-line); font-size: 18px; }
	.sh-head__in { position: relative; min-height: 72px; }
	.sh-hero__grid, .sh-hero--slim .sh-hero__grid, .sh-split, .sh-split--wide { grid-template-columns: 1fr; }
	.sh-cards { grid-template-columns: 1fr 1fr; }
	.sh-foot__top { grid-template-columns: 1fr 1fr; }
	.sh-foot__seal { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.sh-strip__in { flex-direction: column; gap: 2px; font-size: 12px; }
	.sh-brand .sh-fig { width: 42px; height: 42px; }
	.sh-brand__name { font-size: 17px; }
	.sh-brand__legal { font-size: 10px; letter-spacing: .16em; }
	.sh-menu-btn__label { display: none; }
	.sh-cards, .sh-cards--two { grid-template-columns: 1fr; }
	.sh-laws li { grid-template-columns: 52px 1fr; gap: 12px; }
	.sh-laws__n { font-size: 30px; }
	.sh-timeline::before { left: 6px; }
	.sh-timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
	.sh-timeline li::before { left: 1px; }
	.sh-timeline__date { text-align: left; }
	.sh-papers { columns: 1; }
	.sh-foot__top { grid-template-columns: 1fr; }
	.sh-foot__list { columns: 1; }
	.sh-postnav { grid-template-columns: 1fr; }
	.sh-postnav__next { grid-column: 1; text-align: left; }
	.sh-ledger td:first-child { width: auto; }
}
@media print {
	.sh-strip, .sh-head, .sh-foot, .sh-postnav { display: none; }
	body { background: #fff; }
}
