/* Pörssisähköhinnat.fi — one stylesheet, light and dark themes via custom properties */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F3F6FB; --card: #FFFFFF; --line: #E6EBF2; --line2: #EEF2F7; --soft: #F3F6FB; --soft2: #F8FAFC;
  --ink: #0B1220; --ink2: #1E293B; --mut: #334155; --mut2: #475569;
  --brand: #0B5BD7; --brand2: #0847B0; --brandbg: #EAF2FF; --brandline: #C9DCFB;
  --good: #0E6B3A; --goodbg: #ECF8F1; --bad: #B42318;
  --lv-cheap: #1E9E57; --lv-normal: #3B82F6; --lv-high: #E57A10; --lv-vhigh: #C62828; --now: #0B1220;
  --shadow: 0 6px 20px rgba(16, 24, 40, .05);
  --r: 20px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1220; --card: #111A2C; --line: #22304A; --line2: #1B2740; --soft: #16213A; --soft2: #16213A;
  --ink: #E8EEF8; --ink2: #D5DEEC; --mut: #B4C0D3; --mut2: #9AA8BE;
  --brand: #5B9BFF; --brand2: #8AB8FF; --brandbg: #172A4D; --brandline: #2A4475;
  --good: #4ADE80; --goodbg: #10291D; --bad: #F87171;
  --lv-cheap: #22B566; --lv-normal: #4C8EF7; --lv-high: #F08A24; --lv-vhigh: #E5484D; --now: #F8FAFC;
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
a { color: var(--brand); }
a:hover { color: var(--brand2); }
img, svg { max-width: 100%; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo span { color: var(--mut2); font-weight: 600; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--brandbg); color: var(--brand); font-weight: 600; }
.head-tools { display: flex; gap: 8px; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.iconbtn svg { width: 19px; height: 19px; }
.menubtn { display: none; }
@media (max-width: 1080px) {
  .menubtn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16,24,40,.08); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { border-radius: 12px; min-height: 52px; display: flex; align-items: center; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line2); }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-art { position: absolute; top: 0; right: 0; width: 62%; height: 330px; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, #000 38%); pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; display: block; }
:root[data-theme="dark"] .hero-art { opacity: .35; }
@media (max-width: 760px) { .hero-art { width: 100%; height: 230px; opacity: .3; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); } }
.hero .wrap { position: relative; }
.hero-text { padding-top: 34px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--brandbg); color: var(--ink2); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.eyebrow svg { width: 14px; height: 14px; }
.lead { font-size: 19px; color: var(--mut); }
.meta { font-size: 14px; color: var(--mut2); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; }

.pricerow { display: flex; flex-wrap: wrap; padding-top: 26px; }
.pricecard { flex: 1 1 360px; min-width: 0; background: linear-gradient(135deg, #0A52CF 0%, #1E74F0 100%); color: #fff; border-radius: 22px; padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(11,91,215,.28); position: relative; z-index: 1; }
.pricecard .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: #E3EDFF; }
.pricecard .big { display: flex; align-items: baseline; gap: 10px; }
.pricecard .big b { font-size: clamp(54px, 7vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.pricecard .big span { font-size: 21px; font-weight: 600; }
.pricecard .sub { font-size: 15px; color: #E3EDFF; }
.pricecard .cmp { align-self: flex-start; font-size: 14px; background: rgba(255,255,255,.15); border-radius: 10px; padding: 7px 12px; }
.statrow { flex: 999 1 600px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-left: 0; border-radius: 0 22px 22px 0; margin: 10px 0; padding: 16px 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); box-shadow: var(--shadow); }
.stat { padding: 6px 18px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 15px; font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 800; }
.stat .v small { font-size: 14px; font-weight: 600; }
.stat .s { font-size: 14px; color: var(--mut2); }
.stat .v.good { color: var(--good); }
.stat .v.bad { color: var(--bad); }
@media (max-width: 1000px) {
  .statrow { border-left: 1px solid var(--line); border-radius: 22px; margin: 12px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { border-right: 0; }
}

/* Chips */
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 4px; }
.chip-cheap { background: #DCFCE7; color: #14532D; }
.chip-normal { background: #DBEAFE; color: #1E3A8A; }
.chip-high { background: #FFEDD5; color: #7C2D12; }
.chip-vhigh { background: #FEE2E2; color: #7F1D1D; }
.pricecard .chip { font-size: 14px; padding: 6px 13px; }

/* Layout */
main.wrap { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .main { flex: 999 1 680px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cols > .side { flex: 1 1 330px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.tint { background: var(--goodbg); border-color: transparent; box-shadow: none; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.card-head .ttl { display: flex; gap: 12px; align-items: flex-start; }
.card-head .ttl svg { width: 26px; height: 26px; flex: none; margin-top: 2px; color: var(--brand); }
.card-head p { font-size: 15px; color: var(--mut2); margin-top: 4px; }
.pagehead { display: flex; gap: 14px; align-items: flex-start; }
.pagehead > svg { width: 40px; height: 40px; flex: none; color: var(--brand); }
.pagehead h1 { font-size: clamp(30px, 4.4vw, 44px); }
.pagehead p { font-size: 17px; color: var(--mut); margin-top: 6px; }
.crumbs { font-size: 14px; color: var(--mut2); display: flex; flex-wrap: wrap; gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid4, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid4, .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); } .card { padding: 20px 16px; } .wrap { padding: 0 16px; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow); }
.box .k { font-size: 15px; font-weight: 600; color: var(--mut); }
.box .v { font-size: 30px; font-weight: 800; }
.box .v small { font-size: 15px; font-weight: 600; }
.box .s { font-size: 14px; color: var(--mut2); }
.box.hl { background: var(--brandbg); border-color: var(--brandline); box-shadow: none; }
.box.hl .k, .box.hl .v, .box.hl .s { color: var(--brand2); }
.box.ok { background: var(--goodbg); border-color: transparent; box-shadow: none; }
.box.ok .k, .box.ok .v, .box.ok .s { color: var(--good); }
.v.good { color: var(--good); } .v.bad { color: var(--bad); }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--brandbg); border: 1px solid var(--brandline); color: var(--brand2); border-radius: 14px; padding: 14px 18px; font-size: 15px; }
.note.warn { background: #FFF7E8; border-color: #F4D9A4; color: #5C3D05; }
:root[data-theme="dark"] .note.warn { background: #2A2210; border-color: #5C4A1F; color: #F4D9A4; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Segmented controls */
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; min-height: 38px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chart */
.chart { display: flex; gap: 10px; padding-top: 34px; }
.chart-y { width: 30px; position: relative; font-size: 13px; color: var(--mut2); flex: none; align-self: flex-start; }
.chart-y span { position: absolute; right: 0; transform: translateY(50%); }
.chart-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.chart-plot { position: relative; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chart-plot .grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line2); }
.bars { position: absolute; inset: 0 0 0 4px; display: flex; gap: 2px; }
.bars.h { gap: 5px; }
.bar { position: relative; flex: 1; min-width: 0; height: 100%; }
.bar i { position: absolute; left: 0; right: 0; border-radius: 3px 3px 0 0; }
.bars.q .bar i { border-radius: 2px 2px 0 0; }
.tip { position: absolute; left: 50%; transform: translateX(-50%); background: var(--now); color: var(--bg); border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; line-height: 1.3; z-index: 2; }
.tip b { display: block; font-size: 15px; }
.avgline { position: absolute; left: 0; right: 0; border-top: 2px dashed #3B82F6; pointer-events: none; }
.avgline span { position: absolute; right: 0; transform: translateY(-100%); margin-top: -4px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 12px; line-height: 1.3; color: var(--ink2); }
.chart-x { display: flex; font-size: 13px; color: var(--mut2); padding-left: 4px; }
.chart-x span { flex: 1 1 0; min-width: 0; white-space: nowrap; }
@media (max-width: 640px) { .chart-x span:nth-child(even) { display: none; } .bars.h { gap: 2px; } .bars.q { gap: 1px; } .avgline span { display: none; } }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--mut); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend strong { font-weight: 600; color: var(--ink2); }
.dot { width: 12px; height: 12px; border-radius: 6px; flex: none; }
.dot.sq { border-radius: 3px; }
.legend-note { font-size: 13px; color: var(--mut2); }
.best { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--goodbg); border-radius: 16px; padding: 16px 20px; }
.best .l { display: flex; align-items: center; gap: 14px; }
.best .ic { width: 42px; height: 42px; border-radius: 21px; background: var(--card); display: flex; align-items: center; justify-content: center; flex: none; }
.best strong { font-size: 17px; display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 18px; font-size: 15px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; min-height: 44px; }
.btn.pri { background: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand2); color: #fff; }
.btn.sec { background: var(--brandbg); color: var(--brand); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }

/* Price table */
.ptable { display: flex; flex-direction: column; }
.ptable-head { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 24px; background: var(--soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--mut); margin-bottom: 4px; }
.prow { border-bottom: 1px solid var(--line2); }
.prow summary { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 24px; align-items: center; padding: 11px 14px; border-radius: 10px; cursor: pointer; list-style: none; font-size: 15px; min-height: 48px; }
.prow summary::-webkit-details-marker { display: none; }
.prow summary:hover { background: var(--soft2); }
.prow.cur summary { background: var(--brandbg); }
.prow .t em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.chev::after { content: ""; display: block; width: 8px; height: 8px; border-right: 2px solid var(--mut2); border-bottom: 2px solid var(--mut2); transform: rotate(45deg); margin-left: auto; }
.prow[open] .chev::after { transform: rotate(-135deg); }
.quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 4px 14px 14px; }
.qcell { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--soft); border-radius: 8px; padding: 9px 10px; font-size: 14px; }
.qcell span { display: inline-flex; align-items: center; gap: 6px; }
.qcell i { width: 8px; height: 8px; border-radius: 4px; }
.qcell.cur { background: var(--now); color: var(--bg); }
@media (max-width: 640px) {
  .ptable-head { display: none; }
  .prow summary { grid-template-columns: 1fr auto 20px; gap: 8px; }
  .prow summary .chip { grid-column: 1; grid-row: 2; }
  .prow summary b { grid-column: 2; grid-row: 1 / span 2; font-size: 17px; }
  .prow summary .chev { grid-column: 3; grid-row: 1 / span 2; }
  .quarters { grid-template-columns: minmax(0, 1fr); }
}

/* Lists, links */
.qlinks { display: flex; flex-direction: column; padding: 6px 18px; }
.qlinks a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line2); text-decoration: none; color: var(--ink); }
.qlinks a:last-child { border-bottom: 0; }
.qlinks svg { width: 24px; height: 24px; flex: none; color: var(--brand); }
.qlinks span { flex: 1; display: flex; flex-direction: column; }
.qlinks small { font-size: 13px; color: var(--mut2); }
.qlinks a::after { content: "›"; color: var(--mut2); font-size: 20px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--mut); }
.info3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info3 > div { display: flex; gap: 14px; padding: 4px 20px; border-right: 1px solid var(--line); }
.info3 > div:first-child { padding-left: 0; }
.info3 > div:last-child { border-right: 0; padding-right: 0; }
.info3 .ic { width: 44px; height: 44px; border-radius: 22px; background: var(--brandbg); display: flex; align-items: center; justify-content: center; flex: none; color: var(--brand); }
.info3 .ic svg { width: 20px; height: 20px; }
.info3 strong { font-size: 17px; display: block; margin-bottom: 4px; }
.info3 p { font-size: 14px; color: var(--mut2); margin-bottom: 6px; }
@media (max-width: 860px) { .info3 { grid-template-columns: minmax(0, 1fr); gap: 16px; } .info3 > div { border-right: 0; padding: 0; } }
.prose { font-size: 16px; line-height: 1.7; color: var(--mut); max-width: 860px; }
.prose h2 { margin: 30px 0 10px; color: var(--ink); }
.prose h3 { margin: 22px 0 8px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose strong { color: var(--ink); }
.faq details { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 16px 20px; }
.faq summary { font-size: 17px; font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--mut); }
.faq { display: flex; flex-direction: column; gap: 10px; }

/* Forms */
label { font-size: 14px; font-weight: 600; color: var(--mut); }
input, select { height: 48px; border: 1px solid #CBD5E1; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--card); color: var(--ink); width: 100%; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select { border-color: var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.devices button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; text-align: left; min-height: 72px; }
.devices button[aria-pressed="true"] { border: 2px solid var(--brand); background: var(--brandbg); }
.devices small { color: var(--mut2); font-size: 14px; }
@media (max-width: 640px) { .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.result { background: linear-gradient(135deg, #0A52CF 0%, #1E74F0 100%); color: #fff; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px rgba(11,91,215,.28); }
.result .big { font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.result .alt { margin-top: 12px; background: rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result .save { background: #DCFCE7; color: #14532D; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.minicalc .out { background: var(--brandbg); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.minicalc .out b { font-size: 28px; letter-spacing: -.02em; display: block; }
.minicalc .out .good { color: var(--good); }

/* Contracts */
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.offer.best { border: 2px solid var(--brand); }
.offer .hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.offer .who { display: flex; align-items: center; gap: 12px; }
.offer .rank { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.offer.best .rank { background: var(--brand); color: #fff; }
.offer .facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 14px; }
.offer .facts div { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line2); }
.offer .facts div:last-child { border-right: 0; background: var(--soft2); border-radius: 0 14px 14px 0; }
.offer .facts span { font-size: 12px; font-weight: 600; color: var(--mut2); }
.offer .facts b { font-size: 15px; }
.offer .facts div:last-child b { font-size: 17px; color: var(--brand); }
.offer .ft { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--mut2); }
@media (max-width: 760px) { .offer .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .offer .facts div { border-bottom: 1px solid var(--line2); } .offer .facts div:last-child { grid-column: 1 / -1; border-radius: 0 0 14px 14px; } }
.tag { border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; background: var(--brandbg); color: var(--brand2); }
.tag.green { background: #DCFCE7; color: #14532D; }

/* History */
.hchart { position: relative; height: 300px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hchart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.htable { width: 100%; border-collapse: collapse; font-size: 15px; }
.htable th { text-align: left; background: var(--soft); font-size: 13px; color: var(--mut); padding: 10px 12px; font-weight: 600; }
.htable th:first-child { border-radius: 10px 0 0 10px; } .htable th:last-child { border-radius: 0 10px 10px 0; }
.htable td { padding: 11px 12px; border-bottom: 1px solid var(--line2); }
.scrollx { overflow-x: auto; }
.up { color: var(--bad); font-weight: 600; } .down { color: var(--good); font-weight: 600; }

/* Guides */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards3 a { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.cards3 a:hover { border-color: var(--brandline); }
.cards3 strong { font-size: 18px; line-height: 1.35; }
.cards3 span.d { font-size: 14px; line-height: 1.5; color: var(--mut2); }
@media (max-width: 900px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.article { max-width: 820px; }
.article .prose { max-width: none; }
.summary-box { background: var(--brandbg); border-radius: 16px; padding: 18px 20px; font-size: 16px; line-height: 1.6; color: var(--ink2); }

/* Ads (rendered only when AdSense is configured) */
.ad { min-height: 90px; display: flex; justify-content: center; }

/* Footer */
.site-foot { background: #0B1220; color: #CBD5E1; margin-top: 8px; }
.site-foot .wrap { padding-top: 44px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 28px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-cols .about { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; }
.foot-cols .brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: #fff; }
.foot-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-cols nav strong { color: #fff; }
.site-foot a { color: #CBD5E1; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid #1F2A3D; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #94A3B8; }
@media print { .site-head, .site-foot, .side, .controls { display: none; } }
