/* World Energy Base — navy & gold */
:root {
  --navy-900: #081428;
  --navy-800: #0B1B36;
  --navy-700: #13294F;
  --navy-600: #1B3A6B;
  --navy-500: #2B4F86;
  --gold-600: #B08224;
  --gold-500: #C9982E;
  --gold-400: #E9C46A;
  --gold-100: #FBF3DE;
  --bg: #F3F5F9;
  --card: #FFFFFF;
  --ink: #122036;
  --ink-2: #3E4B61;
  --muted: #6B778B;
  --line: #E2E7EF;
  --up: #16875A;
  --down: #C23A33;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 27, 54, .05), 0 6px 20px rgba(11, 27, 54, .06);
  --wrap: 1320px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-h: 'Montserrat', 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); }
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-600); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; margin: 0 0 .4em; color: var(--navy-800); }
p { margin: 0 0 .8em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(16px, 2.2vw); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.strong { font-weight: 700; }
.mt { margin-top: 22px; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1.5px solid transparent; cursor: pointer; transition: .18s; font-family: var(--font); white-space: nowrap; }
.btn.sm { padding: 7px 14px; font-size: .84rem; }
.btn.gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); border-color: var(--gold-500); }
.btn.gold:hover { filter: brightness(1.06); color: var(--navy-900); }
.btn.line { border-color: currentColor; color: var(--gold-400); background: transparent; }
.btn.line:hover { background: rgba(233, 196, 106, .12); color: var(--gold-400); }
.btn-ghost { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font: 500 .85rem var(--font); color: var(--ink-2); cursor: pointer; }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-600); }
.icon-btn { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 6px; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 500 .84rem var(--font); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--gold-500); color: var(--navy-700); }
.chip.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip.na { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; background: #EEF1F6; border-radius: 9px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font: 600 .82rem var(--font); color: var(--ink-2); cursor: pointer; }
.seg button.active { background: #fff; color: var(--navy-700); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: #EEF1F6; color: var(--muted); white-space: nowrap; }
.badge.src-live, .badge.src-proxy { background: #E3F4EC; color: var(--up); }
.badge.src-snapshot { background: #E6EEF9; color: var(--navy-600); }
.badge.src-fx { background: #EEE9F7; color: #5C4591; }
.badge.src-manual { background: var(--gold-100); color: var(--gold-600); }
.badge.src-none { background: #F1F2F4; color: #9AA3B2; }
.badge.cat { background: var(--navy-700); color: var(--gold-400); }
.kicker { display: inline-block; font: 700 .74rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }

/* ---------- top bar / header ---------- */
.topbar { background: var(--navy-900); color: #AEB9CC; font-size: .8rem; }
.topbar a { color: #D5DDEA; }
.topbar a:hover { color: var(--gold-400); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.tb-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-right b { color: #E7ECF4; font-weight: 600; }
.tb-sep { opacity: .35; }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; overflow: hidden; }
.lang-btn { background: none; border: 0; color: #C9D3E3; font: 700 .72rem var(--font); padding: 4px 9px; cursor: pointer; }
.lang-btn.active { background: var(--gold-500); color: var(--navy-900); }

.header { background: var(--navy-800); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid rgba(233, 196, 106, .25); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 54px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-h); }
.brand-text b { color: #fff; font-size: 1.28rem; letter-spacing: .08em; font-weight: 800; }
.brand-text span { color: var(--gold-400); font-size: .66rem; letter-spacing: .26em; font-weight: 700; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: #D5DDEA; font: 600 .84rem var(--font); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--gold-400); background: rgba(255, 255, 255, .05); }
.nav a.nav-hl { color: var(--gold-400); border: 1px solid rgba(233, 196, 106, .45); }
.nav a.nav-map span:first-child { margin-right: 2px; }
.has-sub { position: relative; }
.has-sub .caret { font-style: normal; font-size: .7em; opacity: .7; }
.sub { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--navy-700); border: 1px solid rgba(233, 196, 106, .2); border-radius: 10px; padding: 6px; display: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.sub a { display: block; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: #fff; align-items: center; gap: 4px; flex-direction: column; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle em { font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- ticker ---------- */
.ticker { background: linear-gradient(90deg, var(--navy-700), var(--navy-800)); color: #fff; overflow: hidden; border-bottom: 2px solid var(--gold-500); position: relative; }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk-group { display: flex; align-items: center; }
.tk-item { display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 22px; color: #fff; white-space: nowrap; font-size: .9rem; }
.tk-item:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tk-name { color: var(--gold-400); font-weight: 700; letter-spacing: .02em; }
.tk-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-unit { color: #93A1B8; font-size: .74rem; }
.tk-chg { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tk-chg.up { color: #4ED39A; }
.tk-chg.down { color: #FF7B72; }
.tk-sep { color: rgba(233, 196, 106, .5); font-size: .6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }
.data-banner { background: var(--gold-100); color: #6B4E12; font-size: .84rem; padding: 8px 0; border-bottom: 1px solid #F0DFB2; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% 20%, rgba(43, 79, 134, .55), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #D5DDEA; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; padding-block: 44px 34px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
.hero p { font-size: 1.05rem; max-width: 620px; color: #BCC7D8; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(100%, 420px); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }

/* ---------- layout ---------- */
.section { padding-block: 26px 44px; }
.sec-h { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.sec-h h2 { font-size: 1.2rem; }
.sub-h { font-size: 1.05rem; margin: 18px 0 12px; color: var(--navy-700); }
.page-head { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #C9D3E3; padding-block: 30px 22px; }
.page-head h1 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; }
.page-head p { max-width: 860px; margin-bottom: 14px; }
.page-head .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #D5DDEA; }
.page-head .chip:hover { border-color: var(--gold-400); color: var(--gold-400); }
.page-head .chip.active { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-news { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.stack { display: grid; gap: 22px; align-content: start; }
.tables { display: grid; gap: 22px; margin-bottom: 22px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 18px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h.col { flex-direction: column; align-items: flex-start; }
.card-h.col p { margin: 0; font-size: .9rem; max-width: 900px; }
.card-h h3 { font-size: 1rem; margin: 0; position: relative; padding-left: 12px; }
.card-h h3::before { content: ''; position: absolute; left: 0; top: .1em; bottom: .1em; width: 3px; border-radius: 3px; background: var(--gold-500); }
.link { font-weight: 600; font-size: .86rem; }
.legend-note { font-size: .78rem; color: var(--muted); margin-top: 18px; max-width: 1000px; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); transition: .18s; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold-500); opacity: 0; transition: .18s; }
.kpi:hover { transform: translateY(-2px); color: var(--ink); }
.kpi:hover::after { opacity: 1; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi-name { font-weight: 700; color: var(--navy-700); font-size: .88rem; }
.kpi-val { font: 700 1.5rem var(--font); font-variant-numeric: tabular-nums; margin: 6px 0 2px; color: var(--navy-800); }
.kpi-val small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.kpi-bot { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .86rem; }

/* ---------- tables ---------- */
.table-card { padding: 16px 0 6px; }
.table-card .card-h { padding: 0 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dt { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.dt th { text-align: left; font: 600 .72rem var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); background: #FAFBFD; white-space: nowrap; }
.dt td { padding: 9px 12px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
.dt th:first-child, .dt td:first-child { padding-left: 18px; }
.dt th:last-child, .dt td:last-child { padding-right: 18px; }
.dt tbody tr[data-id] { cursor: pointer; transition: background .12s; }
.dt tbody tr[data-id]:hover, .dt tbody tr[data-id]:focus { background: #F7F4EA; outline: none; }
.dt .num { text-align: right; white-space: nowrap; }
.c-name { font-weight: 600; color: var(--navy-800); min-width: 170px; }
.c-last { font-weight: 700; }
.c-unit, .c-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.pct { display: inline-block; min-width: 64px; }
td.up .pct { background: #E6F5EE; border-radius: 5px; padding: 1px 6px; }
td.down .pct { background: #FBEAE9; border-radius: 5px; padding: 1px 6px; }
.spark polyline { stroke: var(--up); }
.spark.down polyline { stroke: var(--down); }
.spark-empty { display: inline-block; width: 84px; }
.rank { display: inline-block; width: 22px; color: var(--muted); font-size: .78rem; }
.c-name img { vertical-align: -4px; border-radius: 50%; }

/* ---------- charts ---------- */
.chart-box { position: relative; height: 290px; }
.chart-box.tall { height: 400px; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; margin: 0; background: repeating-linear-gradient(135deg, #FAFBFD 0 10px, #F4F6FA 10px 20px); border-radius: 8px; }

/* ---------- news ---------- */
.news-list { display: grid; max-height: 640px; overflow: auto; }
.news.compact { padding: 11px 0; border-bottom: 1px solid #EEF1F5; }
.news.compact:last-child { border-bottom: 0; }
.news h4 { font: 600 .98rem/1.35 var(--font); margin: 3px 0 4px; }
.news h4 a { color: var(--navy-800); }
.news h4 a:hover { color: var(--gold-600); }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
.news-src { font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .04em; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-grid .news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-grid .news.editor { border-color: var(--gold-400); }
.news-img { display: block; aspect-ratio: 16 / 9; background: #DDE3EC center / cover no-repeat; }
.news-body { padding: 14px 16px; }
.news-body p { font-size: .87rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- promo ---------- */
.promo { display: block; border-radius: var(--radius); padding: 22px; color: #D5DDEA; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.promo h3 { color: #fff; font-size: 1.12rem; }
.promo p { font-size: .9rem; color: #B7C3D6; }
.promo:hover { color: #D5DDEA; transform: translateY(-2px); transition: .2s; }
.tools-promo { background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); }
.promo-icon svg { fill: rgba(233, 196, 106, .85); stroke: #fff; }
.services-promo { background: linear-gradient(140deg, #1D2F4E, var(--navy-900)); border: 1px solid rgba(233, 196, 106, .3); }
.services-promo::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(233, 196, 106, .08); }
.promo.inline { margin-top: 4px; }

/* ---------- posts / analysis ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-img { aspect-ratio: 16 / 9; background: #DDE3EC center / cover; }
.post-body { padding: 16px; }
.post-body h3 { font-size: 1.05rem; }
.post-body p { font-size: .9rem; color: var(--ink-2); }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.more { font-weight: 600; font-size: .88rem; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty img { opacity: .55; margin-bottom: 8px; }

/* ---------- video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.video { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; cursor: pointer; box-shadow: var(--shadow); font: inherit; color: inherit; }
.video:hover { border-color: var(--gold-400); }
.video-thumb { aspect-ratio: 16 / 9; background: var(--navy-800) center / cover; display: flex; align-items: center; justify-content: center; }
.play { width: 52px; height: 52px; border-radius: 50%; background: rgba(11, 27, 54, .78); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 2px solid var(--gold-400); }
.video-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; }
.video-body strong { font-size: .92rem; line-height: 1.35; color: var(--navy-800); }
.yt-embed { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- events ---------- */
.events-list { display: grid; gap: 14px; }
.events-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.event { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.events-row .event { box-shadow: none; }
.event-date { flex: 0 0 72px; text-align: center; background: var(--navy-800); color: #fff; border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; justify-content: center; align-self: flex-start; }
.event-date b { font: 800 1.6rem var(--font-h); color: var(--gold-400); line-height: 1; }
.event-date span { text-transform: uppercase; font-size: .76rem; font-weight: 700; }
.event-date small { font-size: .7rem; opacity: .7; }
.event h4 { font-size: 1rem; margin: 2px 0 4px; }
.event p { font-size: .88rem; color: var(--ink-2); margin: 0 0 4px; }
.events-list.past .event { opacity: .8; }

/* ---------- tools ---------- */
.tool-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-table td { padding-block: 5px; }
.tool-table td:first-child { white-space: nowrap; }
.in { font: 500 .9rem var(--font); color: var(--ink); border: 1px solid #D5DCE6; border-radius: 7px; padding: 7px 9px; background: #fff; width: 100%; font-variant-numeric: tabular-nums; }
.in:focus { outline: 2px solid rgba(201, 152, 46, .4); border-color: var(--gold-500); }
.tool-table .in { width: 92px; text-align: right; padding: 5px 7px; }
.tool-table .in-sm { width: 52px; margin-right: 2px; }
.tool-table .unit { display: inline-block; min-width: 62px; margin-left: 6px; color: var(--muted); font-size: .76rem; text-align: left; }
.eff-col.dim { opacity: .35; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--gold-500); margin-right: 8px; }
.dot.pw { background: var(--navy-600); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.spread-grid { display: grid; gap: 18px; }
.spread-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spread-out p { grid-column: 1 / -1; margin: 4px 0 0; }
.res { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #FAFBFD; }
.res span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.res b { font: 800 1.5rem var(--font); font-variant-numeric: tabular-nums; color: var(--navy-800); }
.res small { color: var(--muted); margin-left: 4px; }
.res.pos { border-color: #BFE3D1; background: #F1FAF5; }
.res.pos b { color: var(--up); }
.res.neg { border-color: #F2C9C6; background: #FDF3F2; }
.res.neg b { color: var(--down); }
.conv-fields { margin-bottom: 14px; }
.conv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.conv { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #FAFBFD; }
.conv b { display: block; font-variant-numeric: tabular-nums; color: var(--navy-800); font-size: 1rem; word-break: break-all; }
.conv span { font-size: .76rem; color: var(--muted); }
.corr { border-collapse: separate; border-spacing: 3px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.corr th { font-weight: 600; color: var(--ink-2); padding: 4px 8px; white-space: nowrap; text-align: right; }
.corr thead th { text-align: center; writing-mode: horizontal-tb; }
.corr td { text-align: center; padding: 8px 10px; border-radius: 6px; min-width: 64px; font-weight: 600; }

/* ---------- services ---------- */
.services-hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #C9D3E3; }
.services-hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 44px; }
.services-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.services-hero p { margin-bottom: 20px; }
.map-illus { margin: 0; }
.map-illus svg { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); border: 1px solid rgba(233, 196, 106, .25); }
.map-illus figcaption { margin-top: 6px; text-align: right; color: #7F8DA5; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 3px solid var(--gold-500); }
.svc-ic { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.svc h3 { font-size: 1.05rem; }
.svc p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.svc .more { display: inline-block; margin-top: 10px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy-700), var(--navy-800)); color: #C9D3E3; border-radius: 16px; padding: 28px; border: 1px solid rgba(233, 196, 106, .3); }
.cta-band h2 { color: #fff; font-size: 1.3rem; }
.cta-band p { max-width: 720px; margin: 0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.grid-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; align-items: start; }
.contact-card { text-align: center; background: linear-gradient(170deg, var(--navy-800), var(--navy-700)); color: #D5DDEA; border: 0; }
.contact-logo { width: 220px; margin: 4px auto 14px; display: block; }
.contact-list { margin: 0; text-align: left; display: grid; gap: 12px; }
.contact-list div { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; }
.contact-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-400); font-weight: 700; }
.contact-list dd { margin: 2px 0 0; color: #fff; }
.contact-list a { color: #fff; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-self: start; }
textarea.in { resize: vertical; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #93A1B8; margin-top: 20px; border-top: 3px solid var(--gold-500); }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 28px; padding-block: 36px 20px; }
.f-brand img { width: 130px; margin-bottom: 8px; }
.f-brand p { font-size: .86rem; max-width: 380px; }
.f-col { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; }
.f-col h4 { color: var(--gold-400); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.f-col a { color: #C9D3E3; }
.f-col a:hover { color: var(--gold-400); }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 14px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.f-bottom p { margin: 0; max-width: 780px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(6, 14, 30, .72); backdrop-filter: blur(3px); }
.modal-box { position: relative; background: #fff; border-radius: 16px; width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); border-top: 3px solid var(--gold-500); }
.modal-h { display: flex; justify-content: space-between; gap: 12px; }
.modal-h h3 { font-size: 1.25rem; margin: 0; }
.cm-meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 4px; }
.cm-last { font: 800 1.6rem var(--font); font-variant-numeric: tabular-nums; color: var(--navy-800); }
.modal-tools { display: flex; gap: 10px; justify-content: flex-end; margin: 12px 0; flex-wrap: wrap; }
.close { color: var(--ink-2); font-size: 1.1rem; }
.close:hover { background: #EEF1F6; }
.video-box { padding: 40px 12px 12px; background: var(--navy-900); }
.video-box .close { position: absolute; top: 6px; right: 8px; color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1480px) {
  .nav a { padding: 8px 6px; font-size: .79rem; }
  .brand-text b { font-size: 1.1rem; }
}
@media (max-width: 1340px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-800); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; display: none; border-bottom: 2px solid var(--gold-500); max-height: calc(100vh - 110px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 10px; font-size: .95rem; }
  .sub { position: static; display: none; box-shadow: none; background: rgba(255, 255, 255, .04); margin: 2px 0 6px 12px; }
  .has-sub:hover .sub { display: none; }
  .has-sub.sub-open .sub { display: block; }
}
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-news, .tool-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .hide-md { display: none; }
}
@media (max-width: 820px) {
  .hero-in, .services-hero-in, .grid-2, .grid-contact { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 240px; }
  .hide-sm { display: none; }
  .chart-box { height: 250px; }
  .chart-box.tall { height: 340px; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 11px 12px; }
  .kpi-val { font-size: 1.15rem; }
  .kpi .spark { display: none; }
  .svc-grid, .footer-in, .form-row, .fields, .spread-out { grid-template-columns: 1fr; }
  .hide-xs { display: none; }
  .brand-text b { font-size: 1.05rem; }
  .brand img { width: 44px; }
  .c-name { min-width: 120px; }
  .tb-left { display: none; }
  .topbar-in { justify-content: flex-end; }
  .news-grid, .posts, .video-grid { grid-template-columns: 1fr; }
  .event-date { flex-basis: 60px; }
}
