/* Use the game's lacquer and bronze materials; content has one reading surface. */
html body #modal .realm-people-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:none;padding:0;background:none;border:0;box-shadow:none}
html body #modal .realm-people-nav button{min-height:46px;min-width:0;padding:8px 12px!important;font:700 16px var(--serif,serif);color:#e7d8b6!important;border:3px solid transparent!important;border-image:url('assets/ui-window-lacquer-1029.webp') 180 fill / 9px / 0 stretch!important;background:none!important;box-shadow:none!important;white-space:normal}
html body #modal .realm-people-nav button[aria-pressed=true]{border-image-source:url('assets/ui-window-bronze-charcoal-1029.webp')!important;color:#ffe3a0!important}
html body #modal :is(.ruler-orders,.campaign-people){display:grid;gap:18px;padding:8px 6px 16px;min-width:0;font-family:var(--serif,serif);font-size:16px;line-height:1.5;color:#eee4ce}
html body #modal :is(.ruler-orders,.campaign-people) *{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
html body #modal :is(.ruler-orders,.campaign-people) :is(header,section,article,div,p,h3){border:0;border-image:none;box-shadow:none}
html body #modal :is(.ruler-orders,.campaign-people) :is(header,section,article){background:none;padding:0}
html body #modal :is(.ruler-orders,.campaign-people) :is(header,section,article)::before,html body #modal :is(.ruler-orders,.campaign-people) :is(header,section,article)::after{content:none!important}
html body #modal :is(.ruler-orders,.campaign-people) h3{margin:0 0 8px;font-size:22px;line-height:1.4}
html body #modal :is(.ruler-orders,.campaign-people) p{margin:6px 0 10px;font-size:16px;line-height:1.55}
html body #modal :is(.ruler-orders,.campaign-people) small{font-size:13px;color:#c6baa5;line-height:1.5}
html body #modal .ruler-hero{display:flex;align-items:center;gap:18px;min-height:90px;padding:10px!important;background:linear-gradient(90deg,#171916eb,#17191677),url('assets/scene-council.jpg') center 45%/cover!important}
html body #modal .ruler-hero .historical-face{flex:0 0 60px;width:60px;height:72px;min-height:72px}
html body #modal .ruler-hero h3{font-size:28px}
html body #modal .ruler-order{padding:16px 20px!important;border:4px solid transparent!important;border-image:url('assets/ui-window-bronze-charcoal-1029.webp') 180 fill / 12px / 0 stretch!important}
html body #modal .ruler-order>small{color:#e4c88d;font-weight:700}
html body #modal :is(.ruler-order-meta,.ruler-actions,.personnel-actions){display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
html body #modal .ruler-order-meta{color:#cabf9e;font-size:14px}
html body #modal :is(.ruler-orders,.campaign-people) button{min-height:44px;padding:10px 14px!important;font:700 15px var(--serif,serif);margin:0;width:auto;color:#efddb7;border:3px solid transparent!important;border-image:url('assets/ui-window-lacquer-1029.webp') 180 fill / 7px / 0 stretch!important;background:none!important;box-shadow:none!important}
html body #modal :is(.ruler-orders,.campaign-people) button:disabled{opacity:.5}
html body #modal .ruler-strategy-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 0}
html body #modal .ruler-strategy-choices>div{display:grid;align-content:start;gap:8px}
html body #modal .ruler-orders details{padding:0;border:0;border-image:none;background:none;box-shadow:none}
html body #modal .ruler-orders summary{padding:12px 0;min-height:44px;cursor:pointer;color:#ddc49b}
html body #modal .ruler-delegates article{display:flex;align-items:center;gap:14px;padding:10px 0!important}
html body #modal .ruler-delegates .historical-face{flex:0 0 54px;width:54px;height:64px}
html body #modal :is(.ruler-context,.personnel-context){color:#c4bead}
html body #modal .personnel-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html body #modal .campaign-people .campaign-person{padding:16px!important;border:3px solid transparent!important;border-image:url('assets/ui-window-lacquer-1029.webp') 180 fill / 10px / 0 stretch!important}
html body #modal .campaign-person>header{display:flex;align-items:center;gap:14px}
html body #modal .campaign-person .historical-face{flex:0 0 70px;width:70px;height:84px}
html body #modal .campaign-person h3{font-size:24px;margin:3px 0}
html body #modal .campaign-person p{font-size:14px}
html body #modal .personnel-abilities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
html body #modal .personnel-abilities>span{display:grid;text-align:center;font-size:13px;color:#c6baa5}
html body #modal .personnel-abilities b{font-size:22px;color:#f0e3c8;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #modal :is(.personnel-filters,.personnel-pages){display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
html body #modal .personnel-filters>button{flex:1 1 max-content;font-size:14px;padding:8px!important;white-space:nowrap;word-break:keep-all;overflow-wrap:normal}
html body #modal .personnel-intro p{margin:0;font-size:14px;color:#c6baa5}
html body #modal .personnel-actions>button{flex:1 1 80px;word-break:keep-all;overflow-wrap:normal}
html body #modal .personnel-filters>button[aria-pressed=true]{border-image-source:url('assets/ui-window-bronze-charcoal-1029.webp')!important;color:#ffe0a6}
html body #modal .personnel-record{padding:0;border:0;background:none;border-image:none;box-shadow:none}
html body #modal .personnel-record summary{min-height:44px;padding:10px 0;cursor:pointer;color:#dec297}
@media(max-width:600px){html body #modal .personnel-list{grid-template-columns:1fr}}
@media(max-width:600px){html body #modal :is(.ruler-orders,.campaign-people){gap:16px;padding-inline:2px}html body #modal .ruler-hero{gap:12px;padding:10px!important}html body #modal .ruler-order{padding:14px!important}html body #modal .ruler-strategy-choices{grid-template-columns:1fr}html body #modal :is(.ruler-actions,.personnel-actions)>button{flex:1 1 90px}html body #modal .realm-people-nav button{font-size:14px!important}}
html body #modal .personnel-actions{align-items:stretch}
html body #modal .personnel-actions>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:1 1 max-content;min-inline-size:64px;white-space:nowrap}
@media(max-width:360px){html body #modal .personnel-abilities{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep navigation readable under mobile text enlargement. */
@media(max-width:600px){html body #modal .affairs-panel .affairs-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}html body #modal .affairs-panel .affairs-tabs>button{height:auto;min-height:44px;padding:8px 6px!important;white-space:nowrap}}
