/* Shared approved landscape: keep the image visible behind every page. */
:root{--ink:#fff;--muted:#f1f4ed;--line:#c9cccf;--paper:#f9faf8;--bg:#233129;color-scheme:dark}
html{min-height:100%;background:#233129}
html body{position:relative;isolation:isolate;min-height:100vh;margin-top:0;background:transparent!important;color:#fff!important;line-height:1.7}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#0715160a,#07151624),url("assets/oguk-landscape-expanded-20261023.png") center/cover no-repeat}
body :where(header,footer,main,section,.panel,.card,.business-card,.service-hub,.kingdom-panel,.company-top,.company-footer,.account-bar,.about,.world-section,.webNotice){background:transparent!important;color:#fff;border-color:#b6bfc0}
body :where(header,footer,main){border-radius:8px}
body :where(p,label,h1,h2,h3,h4,small,.intro,.muted,.eyebrow,.notice,.dialog-note,.foot-logo,.company-label,.company-note,.company-fields){color:inherit}
body :where(p,li,dt,dd,label,h1,h2,h3,h4,th,td,summary,.number,.tag,.brand,.preview){text-shadow:0 1px 2px #000,0 0 4px #000,0 0 8px #000}
body :where(.notice,.easy-note,.webNotice,.relation,.rule,.badge,fieldset,details,.library-card){background-color:#10201f4d;border-color:#b6bfc0}
/* All action buttons, including administrator buttons, follow the same rule. */
html body :is(button,input[type=button],input[type=submit],[role=button],a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.ad-slot,.hero-services>a,.hero-services>button,.easy-steps>a,.guide-nav>a,nav>a,.beginner-link,.kingdom-tabs button,.element-strip a,.world-ad-slot){background:transparent!important;color:#fff!important;border:2px solid #c9cccf!important;box-shadow:0 0 0 1px #172120b3,inset 0 0 0 1px #ffffff30!important;text-shadow:0 1px 2px #000,0 0 4px #000,0 0 8px #000!important;min-height:44px;box-sizing:border-box;white-space:normal;overflow-wrap:break-word}
html body :is(button,a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.ad-slot,.hero-services>a,.easy-steps>a,.guide-nav>a,nav>a,.beginner-link,.world-ad-slot):hover{background:transparent!important;border-color:#fff!important;box-shadow:0 0 0 2px #182827,0 0 12px #fff6!important}
body :where(button,a,input,select,textarea):focus-visible{outline:3px solid #ffe56b!important;outline-offset:4px}
body :where(button,a)[aria-selected=true],body :where(button,a)[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px}
body button:disabled{opacity:.65;cursor:not-allowed}
body :where(input:not([type=button]):not([type=submit]),select,textarea){background:#172a2bd9!important;color:#fff!important;border:1px solid #bcc5c7!important;text-shadow:none}
body :where(input,textarea)::placeholder{color:#dce5e5;opacity:1}
body select option{background:#172a2b;color:#fff}
body dialog{background:#142426f2!important;color:#fff!important;border:2px solid #c9cccf!important;max-height:88vh;overflow:auto}
body dialog::backdrop{background:#07101477}
body a:not([class]){color:#fff;text-decoration:underline;text-underline-offset:3px;text-shadow:0 1px 2px #000,0 0 5px #000}
body :where(.en,.oguk-english,.theme-en){display:block!important;font-size:.76em;line-height:1.45;letter-spacing:normal;font-weight:400;margin-top:3px;color:inherit!important;white-space:normal;overflow-wrap:break-word}
body :where(.ko,.oguk-primary){display:block}
body .theme-pair{display:inline-block;vertical-align:middle;max-width:100%}
body :where(button,.button,.hero-services>a,.doclink) small{display:block;font-size:.76em}
body :where(.ad-slot strong,.ad-slot small,.ad-slot span,.world-ad-slot strong,.world-ad-slot small,.doclink strong,.doclink span){color:#fff!important;text-shadow:0 1px 2px #000,0 0 4px #000,0 0 8px #000}
/* Elemental labels retain their approved colors on a small contrast backing. */
body :where(.wood,.fire,.earth,.metal,.water){isolation:isolate;border-radius:3px;padding:1px 4px;text-shadow:none!important;background:#fffffff0!important}
body .wood{color:#087c57!important}body .fire{color:#ca372c!important}body .earth{color:#99700a!important}body .metal{color:#f3f5f7!important;background:#263b3aee!important}body .water{color:#111b23!important}
body .photo-go-bowl{background-color:transparent!important}
body .library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}
body .library-card{padding:24px;border:1px solid #b6bfc0;border-radius:8px}
body .library-card .button{display:block;margin-top:12px;text-align:center;padding:12px}
body .library-intro{max-width:760px;margin-bottom:30px}body .library-card h2{font-size:21px}
body .seal{background:#172a2b88!important;color:#fff!important}body .hero h1 em,body .eyebrow{color:#fff!important}body .guide-nav .en{color:inherit!important}body nav>a{padding:8px 12px;text-decoration:none}
body>p{background:#10201f55;padding:10px 14px;border-radius:6px}body .guide-nav{background:#10201f55!important;color:#fff}
/* Spatial board remains legible while the landscape is visible through it. */
body .stage{background:#ffffff2e!important;box-shadow:none;border-color:#c9cccf}
body :is(#board,.stagehead,.stagefoot,#boardInfo,.demo-case-row,.demo-case-dock,.demo-status-stack,.demo-status-panel){background:transparent!important}
body :is(.stagehead,.stagefoot,#boardInfo,.demo-status-panel){color:#fff!important;text-shadow:0 1px 2px #000,0 0 5px #000}
body .board-banners .banner-placeholder{background:transparent!important}
@media(max-width:650px){body .library-grid{grid-template-columns:1fr}body :where(.button,button){height:auto}body .hero-services{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{html,body{background:#fff!important;color:#000!important}body::before{display:none}body :where(header,footer,main,section,.panel,.card,.notice){background:#fff!important;color:#000!important;text-shadow:none!important}body *{text-shadow:none!important}}

body .language-control{color:#fff!important;text-shadow:0 1px 2px #000,0 0 5px #000}

/* Local shading keeps the landscape visible while separating banner lettering. */
html body :is(button,input[type=button],input[type=submit],[role=button],a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.ad-slot,.hero-services>a,.hero-services>button,.easy-steps>a,.guide-nav>a,nav>a,.beginner-link,.kingdom-tabs button,.element-strip a,.world-ad-slot){background:rgba(12,25,29,.64)!important;text-shadow:0 1px 2px #000!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
html body :is(button,a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.ad-slot,.hero-services>a,.easy-steps>a,.guide-nav>a,nav>a,.beginner-link,.world-ad-slot):hover{background:rgba(12,25,29,.76)!important}
body :is(.ad-slot strong,.ad-slot small,.ad-slot span,.world-ad-slot strong,.world-ad-slot small,.doclink strong,.doclink span){text-shadow:0 1px 2px #000!important}

/* Secondary pages share readable shaded surfaces and grey outlined controls. */
html body:not(.reference-home)::before{background:linear-gradient(#07151666,#07151680),url("assets/oguk-landscape-expanded-20261023.png") center/cover no-repeat}
html body:not(.reference-home) :is(header,footer){background:rgba(15,25,29,.74)!important;color:#fff!important;border-color:#aeb6bb}
html body:not(.reference-home) main{background:rgba(15,25,29,.48)!important;color:#fff!important}
html body:not(.reference-home) :is(.panel,.image-card,.card,.library-card,.business-card,.service-hub,.notice,.easy-note,.order,fieldset,details,main>aside,main>.grid>article){background:rgba(19,30,35,.78)!important;color:#fff!important;border:1px solid #aeb6bb;border-radius:8px}
html body:not(.reference-home) :is(button,input[type=button],input[type=submit],[role=button],a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.download,.easy-steps>a,.guide-nav>a,nav>a,.beginner-link,.kingdom-tabs button,.element-strip a){background:rgba(33,43,49,.88)!important;color:#fff!important;border:2px solid #bfc4c9!important;text-shadow:0 1px 2px #000!important;box-shadow:inset 0 0 0 1px #ffffff16!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
html body:not(.reference-home) :is(button,a.button,a.primary,a.service-link,a.doclink,a.download,nav>a):hover{background:rgba(53,65,73,.96)!important;border-color:#f0f2f4!important}
html body:not(.reference-home) :is(button,a)[aria-pressed=true],html body:not(.reference-home) :is(button,a)[aria-selected=true]{background:#3c515e!important;border-color:#fff!important;outline:2px solid #e2edf2;outline-offset:2px}
html body:not(.reference-home) :is(p,li,label,h1,h2,h3,h4,small,strong,.muted,.lead,.size,.range,th,td,.notice,.image-card small){color:#fff!important;text-shadow:0 1px 2px #000}
html body:not(.reference-home) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#17262eef!important;color:#fff!important;border:1px solid #bfc4c9!important}
html body:not(.reference-home) select option{background:#17262e;color:#fff}
html body:not(.reference-home) button:disabled{opacity:.68}
html body:not(.reference-home) dialog{background:#17262ef5!important;color:#fff!important;border:2px solid #bfc4c9!important}
html body:not(.reference-home) #status.error{color:#ffd4cc!important}
@media print{html body:not(.reference-home) :is(main,header,footer,.panel,.image-card,.card,.notice){background:#fff!important;color:#000!important}html body:not(.reference-home) :is(p,li,label,h1,h2,h3,h4,small,strong,th,td){color:#000!important;text-shadow:none!important}}
/* Preserve the approved elemental colors within shaded pages. */
html body:not(.reference-home) .wood{color:#087c57!important}
html body:not(.reference-home) .fire{color:#ca372c!important}
html body:not(.reference-home) .earth{color:#99700a!important}
html body:not(.reference-home) .metal{color:#f3f5f7!important}
html body:not(.reference-home) .water{color:#111b23!important}
/* Translation wrappers must inherit their elemental label's contrast colors. */
html body :is(.wood,.fire,.earth,.metal,.water){display:inline-block}
html body :is(.wood,.fire,.earth,.metal,.water) :is(.oguk-language-line,.oguk-primary,.oguk-english,.ko,.en,.theme-pair){color:inherit!important;text-shadow:none!important}
