/* BIW Universal Layout Core 2.3.3 – shared structure; themes provide visual skins. */
body main{max-width:1530px;width:min(96%,1530px);padding:0 12px 48px;min-height:70vh}
body header{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,2vw,28px);flex-wrap:wrap}
body .biw-brand{display:flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:0;text-decoration:none}
body .biw-brand img{display:block;width:clamp(76px,7vw,106px);height:auto;max-height:76px;object-fit:contain;filter:drop-shadow(0 2px 6px #a971384d)}
body nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:clamp(8px,1.2vw,20px);min-width:0}
body nav a{font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
body .biw-banner{width:calc(100% + 24px);margin:0 -12px;height:auto;min-height:0;aspect-ratio:1600 / 276;background-size:100% 100%;background-position:center;background-repeat:no-repeat;border-bottom:2px solid #a77839}
body .epic-ribbon{text-align:center;letter-spacing:clamp(1px,.45vw,6px);font-weight:800;padding:13px 8px;margin:0 0 18px;border:1px solid #815422;background:linear-gradient(90deg,#0b1525,#172333,#0c111b);color:#f5bb65}
body .epic-grid{display:grid;grid-template-columns:minmax(190px,1.06fr) minmax(350px,2.8fr) minmax(190px,1.06fr);gap:17px}
body .epic-col{min-width:0}
body .epic-feature{min-height:260px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative;overflow:hidden;padding:26px 29px;background:linear-gradient(90deg,rgba(4,13,26,.98),rgba(4,15,29,.85) 48%,rgba(5,15,27,.35)),url('images/shadowfall-news.webp') center / cover no-repeat}
body .epic-feature .eyebrow{display:inline-block;background:#b76d2a;color:#fff;padding:5px 10px;border-radius:5px;font-size:12px;font-weight:900}
body .epic-feature h1{font-size:clamp(23px,2.4vw,38px);line-height:1.16;margin:15px 0 7px;color:#fff}
body .epic-feature p{max-width:460px;line-height:1.55}
body .epic-feature a{display:inline-block;padding:9px 15px;border-radius:6px;border:1px solid #b47e38;text-decoration:none;font-weight:700}
body .epic-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0 0 17px}
body .epic-quick a{min-height:95px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;text-decoration:none;padding:12px 5px;border:1px solid #627891;border-radius:8px;background:#122840;font-weight:800}
body .epic-quick small{display:block;font-size:12px;font-weight:400;margin-top:6px}
body .epic-row{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #ffffff1a;padding:11px 0;font-size:13px}
body .epic-muted,body .epic-note{font-size:13px;line-height:1.55;color:#9fb1c5}
body .epic-dot{display:inline-block;width:9px;height:9px;background:#77818e;border-radius:50%;margin-right:7px}
body .epic-grid .panel{margin:0 0 16px;padding:18px;border-radius:9px}
body .epic-grid .panel h2{font-size:15px;text-transform:uppercase;border-bottom:1px solid #ffffff35;padding-bottom:11px;margin:0 0 13px}
@media(max-width:1050px){body .epic-grid{grid-template-columns:minmax(190px,1fr) minmax(330px,2.3fr)}body .epic-right{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px}}
@media(max-width:740px){body main{width:100%;padding:0 12px 32px}body .epic-grid{display:block}body .epic-right{display:block}body .epic-quick{grid-template-columns:repeat(2,minmax(0,1fr))}body .epic-ribbon{font-size:10px;letter-spacing:1px}body header,body nav{justify-content:center}body .biw-brand img{width:82px;max-height:62px}}
/* Theme visual variations: the widgets, menu and content remain the same. */
body.theme-midnight .epic-ribbon{background:linear-gradient(90deg,#091629,#203e65,#091629);border-color:#4271a4;color:#9ed4ff}
body.theme-midnight .epic-quick a{background:#102a4b;border-color:#4271a4;color:#b7dcff}
body.theme-foundation .epic-quick a{background:#192b3d;border-color:#86613e;color:#ffcb88}
body.theme-foundation .epic-ribbon{background:linear-gradient(90deg,#101b2b,#2b3545,#101b2b)}
/* Override legacy Epic theme's background screenshot and fixed banner sizing. */
body.theme-biw-epic .epic-feature{background:linear-gradient(90deg,rgba(4,13,26,.98),rgba(4,15,29,.83) 48%,rgba(5,15,27,.24)),url('images/shadowfall-news.webp') center / cover no-repeat}
body.theme-biw-epic .biw-banner{height:auto;min-height:0;aspect-ratio:1600 / 276;background-size:100% 100%;background-position:center}
@media(max-width:740px){body.theme-biw-epic .biw-banner{height:auto;min-height:0;aspect-ratio:1600 / 276;background-size:100% 100%}}
