/* Shqiperia.com · dizajni v7: pamja e v5, renditja e v6, karta, shkronja te lexueshme.
   Tema e celet si parazgjedhje; e erreta vetem kur vizitori e zgjedh (html[data-theme="dark"]). */
:root {
    --red: #d4161c;
    --red-ink: #c0141a;      /* red text on the page background */
    --ink: #111418;
    --ink-2: #2f3640;
    --muted: #59616d;
    --line: #d9dde3;
    --bg: #e9ecf0;
    --surface: #ffffff;
    --soft: #f1f3f6;
    --bar: #111418;          /* top bar, footer, dark blocks */
    --bar-ink: #c9cdd4;
    --bar-line: #2c3038;
    --pic-bg: #dfe2e7;
    --shadow: 0 1px 2px rgba(17,20,24,.08), 0 6px 18px rgba(17,20,24,.07);
    --shadow-hover: 0 2px 4px rgba(17,20,24,.08), 0 14px 30px rgba(17,20,24,.13);
    --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --wrap: 1240px;
    --radius: 10px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --red: #e5383e;
    --red-ink: #ff6b70;
    --ink: #eceef1;
    --ink-2: #c8ccd3;
    --muted: #9aa1ac;
    --line: #2c323b;
    --bg: #0e1116;
    --surface: #181c23;
    --soft: #20252d;
    --bar: #07090c;
    --bar-ink: #b8bec7;
    --bar-line: #23282f;
    --pic-bg: #242a33;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    --shadow-hover: 0 8px 26px rgba(0,0,0,.55);
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 200; }
.meta { color: var(--muted); font-size: 14px; }
.kicker { display: inline-block; color: var(--red-ink); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.sponsor { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Top bar */
.topbar { background: var(--bar); color: var(--bar-ink); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.toplinks { display: flex; align-items: center; gap: 18px; }
.toplinks a:hover { color: #fff; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bar-line); background: transparent; color: var(--bar-ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; min-height: 32px; }
.theme-toggle:hover { color: #fff; border-color: #555c66; }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle .i-sun, .theme-toggle .t-light { display: none; }
[data-theme="dark"] .theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .t-light { display: inline; }
[data-theme="dark"] .theme-toggle .i-moon, [data-theme="dark"] .theme-toggle .t-dark { display: none; }
@media (max-width: 599px) {
    .topbar .today { display: none; }
    .toplinks { width: 100%; justify-content: space-between; gap: 10px; }
    .theme-toggle span { display: none !important; }
    .theme-toggle { padding: 4px 9px; }
}

/* Brand: flame + real text, so the name reads large */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 48px; height: 48px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.brand-text i { font-style: normal; color: var(--red-ink); }
.brand-text small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); margin-top: 6px; }
@media (max-width: 599px) { .brand img { width: 40px; height: 40px; } .brand-text b { font-size: 24px; } .brand-text small { font-size: 9.5px; letter-spacing: .18em; } }

/* Masthead */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--soft); }
.masthead-row .search { margin-left: auto; flex: 0 1 380px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 18px; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--red); background: var(--surface); }
.search button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; color: var(--muted); }
.search svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.menu-btn { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 16px; cursor: pointer; min-height: 46px; }
.menu-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* Navigation: horizontal bar on desktop */
.mainnav { border-top: 3px solid var(--red); background: var(--surface); }
.menu-head, .search-menu, .menu-extra { display: none; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.menu-main { display: flex; flex-wrap: wrap; gap: 0 6px; }
.menu-main > li { position: relative; }
.menu-main > li > a, .menu-main > li > button { display: block; padding: 14px 12px; font-weight: 600; font-size: 16px; background: none; border: 0; cursor: pointer; }
.menu-main > li:first-child > a { padding-left: 0; }
.menu-main small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--red); border-radius: 999px; padding: 2px 6px; vertical-align: 2px; margin-left: 4px; }
.sub > button::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 4px 8px; }
.sub ul { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 240px; padding: 8px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.sub:hover ul, .sub:focus-within ul, .sub > button[aria-expanded="true"] + ul { display: block; }
.sub ul a { display: block; padding: 9px 18px; font-size: 16px; }
.sub ul a:hover { background: var(--soft); }

/* Phone: big full-screen menu */
@media (max-width: 899px) {
    .masthead-row .search { display: none; }
    .menu-btn { display: inline-flex; margin-left: auto; }
    .mainnav { display: none; border: 0; }
    body.menu-open { overflow: hidden; }
    body.menu-open .mainnav { display: block; position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--surface); }
    .mainnav .wrap { padding-top: 14px; padding-bottom: 40px; }
    .menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .menu-head .brand-text b { font-size: 22px; }
    .menu-close { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
    .menu-close svg { width: 26px; height: 26px; fill: currentColor; }
    .search-menu { display: flex; margin-bottom: 14px; }
    .search-menu input { padding: 14px 18px; font-size: 18px; }
    .menu-main { flex-direction: column; gap: 0; }
    .menu-main > li { border-bottom: 1px solid var(--line); }
    .menu-main > li > a, .menu-main > li > button { width: 100%; text-align: left; padding: 18px 2px; font-size: 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
    .menu-main > li:first-child > a { padding-left: 2px; }
    .sub > button::after { margin: 0 6px 6px 0; width: 10px; height: 10px; transition: transform .2s; }
    .sub > button[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: -4px; }
    .sub ul { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 12px; min-width: 0; background: transparent; }
    .sub:hover ul, .sub:focus-within ul { display: none; }
    .sub > button[aria-expanded="true"] + ul { display: block; }
    .sub ul a { font-size: 18px; padding: 12px 14px; }
    .menu-extra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
    .menu-extra a { display: block; padding: 12px 18px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 17px; }
}

/* Sections */
main { padding: 26px 0 56px; }
section { margin-bottom: 36px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h1, .sec-head h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.sec-head h1::before, .sec-head h2::before { content: ""; display: inline-block; width: 6px; height: 22px; background: var(--red); border-radius: 3px; margin-right: 10px; vertical-align: -3px; }
.sec-head a { font-size: 15px; font-weight: 600; color: var(--red-ink); white-space: nowrap; }
.sec-note { margin: -6px 0 18px; color: var(--muted); font-size: 16px; }

/* Cards: white on a grey page, with a hairline border for contrast */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow-hover); }
.pic { display: block; position: relative; overflow: hidden; background: var(--pic-bg); }
.pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: block; padding: 14px 16px 16px; }
.card h3 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; letter-spacing: -.005em; }
.card h3 a::after, .lead h1 a::after { content: ""; position: absolute; inset: 0; }

.hero { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.35fr 1fr; } }
.lead h1 { font-size: clamp(26px, 3.3vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 12px; }
.lead p { color: var(--ink-2); font-size: 18px; margin: 0 0 10px; }
.lead .card-body { padding: 18px 22px 22px; }
.hero-side { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; align-content: start; }
.hero-side h3 { font-size: 17px; }

.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ranked .rank { position: absolute; left: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.reach { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.meter { width: 64px; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--red); }

.body-grid { display: grid; gap: 28px; margin-bottom: 36px; }
.body-grid section { margin-bottom: 0; }
@media (min-width: 960px) { .body-grid { grid-template-columns: 1fr 300px; } }
.grid-row { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid-row { grid-template-columns: 1fr 1fr; } }
.row-card { flex-direction: row; align-items: stretch; }
.row-card .pic { flex: 0 0 132px; }
.row-card .pic img { height: 100%; aspect-ratio: auto; min-height: 96px; }
.row-card .card-body { padding: 12px 14px; }
.row-card h3 { font-size: 16px; margin-bottom: 4px; }

.rail { display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) { .rail { position: sticky; top: 16px; } }
.game { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 18px 22px; background: linear-gradient(160deg, #241c3b, #120f1d); color: #e9e4ff; border-radius: var(--radius); }
.game:hover { color: #fff; }
.game img { border-radius: 22px; margin: 6px 0 4px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.game b { font-size: 21px; font-weight: 800; color: #fff; }
.game span:not(.sponsor) { font-size: 15px; color: #cfc8ee; }
.game em { font-style: normal; font-weight: 700; font-size: 16px; background: #f4c542; color: #1a1406; padding: 10px 20px; border-radius: 999px; margin-top: 8px; }
.game .sponsor { color: #a59fc4; justify-self: end; }

/* Coming soon */
.soon { display: grid; gap: 20px; }
@media (min-width: 800px) { .soon { grid-template-columns: 1fr 1fr; } }
.soon-card { background: var(--bar); color: #e5e7eb; padding: 26px 26px 28px; border-radius: var(--radius); scroll-margin-top: 16px; border: 1px solid var(--bar-line); }
.soon-card h2 { font-size: 28px; line-height: 1.2; font-weight: 800; color: #fff; margin: 12px 0 8px; letter-spacing: -.015em; }
.soon-card p { margin: 0 0 18px; color: #c4c8cf; }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.fake-search { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #1f242b; border: 1px solid #353b44; border-radius: 999px; padding: 5px 5px 5px 18px; color: #8d939c; font-size: 15px; }
.fake-search b { background: #353b44; color: #c4c8cf; padding: 9px 18px; border-radius: 999px; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 16px; font-weight: 500; box-shadow: var(--shadow); }
.chips a:hover { border-color: var(--red); }

/* Phones: two cards per row, shorter lead */
@media (max-width: 599px) {
    .sec-head h1, .sec-head h2 { font-size: 22px; }
    .hero-side, .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-side .card-body, .grid-4 .card-body { padding: 10px 12px 12px; }
    .hero-side h3, .grid-4 h3 { font-size: 16px; }
    .hero-side .meta, .grid-4 .meta { font-size: 13px; }
    .lead p { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .lead .card-body { padding: 14px 16px 16px; }
}

/* AI article and list pages */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.columns { display: grid; gap: 32px; }
@media (min-width: 960px) { .columns { grid-template-columns: minmax(0, 1fr) 320px; } }
.article-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px 30px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 599px) { .article-page { padding: 16px 16px 22px; margin: 0 -8px; } }
.article-page h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 12px; }
.standfirst { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.byline b { color: var(--ink); font-weight: 600; }
.ai-badge { display: inline-block; background: #e8f4ea; color: #1f6b30; border: 1px solid #c4e2ca; border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 700; }
[data-theme="dark"] .ai-badge { background: #16301c; color: #8fd69c; border-color: #24502e; }
.article-page figure { margin: 0 0 24px; }
.article-page figure img { width: 100%; border-radius: 8px; }
.article-page figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose { font-size: 19px; line-height: 1.75; font-weight: 400; color: var(--ink); max-width: 72ch; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 24px; line-height: 1.3; font-weight: 800; margin: 34px 0 10px; letter-spacing: -.01em; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); color: var(--ink-2); font-style: italic; }
.prose ul { padding-left: 22px; margin: 0 0 20px; }
.ai-note { background: var(--soft); border-radius: 8px; padding: 14px 18px; font-size: 15px; color: var(--ink-2); margin: 30px 0 20px; }
.sources h2 { font-size: 18px; margin: 0 0 10px; }
.sources ul { margin: 0; padding-left: 20px; font-size: 16px; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--red-ink); font-weight: 600; }
.side-list { display: grid; gap: 12px; align-content: start; }
.ai-list .item { display: grid; grid-template-columns: 240px 1fr; }
.ai-list .item.nopic { grid-template-columns: 1fr; }
.ai-list .item .pic img { height: 100%; aspect-ratio: auto; min-height: 150px; }
.ai-list .item h2 { font-size: 21px; line-height: 1.3; font-weight: 800; margin: 2px 0 6px; }
.ai-list .item p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.ai-list .grid-list { display: grid; gap: 16px; }
@media (max-width: 699px) { .ai-list .item { grid-template-columns: 1fr; } .ai-list .item .pic img { aspect-ratio: 16 / 9; height: auto; min-height: 0; } }
.pager { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: var(--surface); }
.pager span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ai-list .item h2 a::after { content: ""; position: absolute; inset: 0; }

/* Top bar links: Instagram, Ora AI (coming soon) */
.toplinks .ig { display: inline-flex; align-items: center; gap: 6px; }
.toplinks svg, .social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toplinks svg .dot, .social svg .dot, .social svg .fill { fill: currentColor; stroke: none; }
.soon-link { color: var(--bar-ink); opacity: .9; }
.soon-link small, .menu-extra small, .foot-links small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--red); border-radius: 999px; padding: 2px 6px; margin-left: 4px; vertical-align: 1px; }
.menu-extra span { display: block; padding: 12px 18px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 17px; color: var(--muted); }
@media (max-width: 599px) { .toplinks .ig span { display: none; } }

/* Half Albanian eagle: a quiet watermark fixed at the right edge of the page */
html { background: var(--bg); }
body { background: transparent; position: relative; }
body::before { content: ""; position: fixed; z-index: -1; pointer-events: none; right: 0; top: 50%; transform: translateY(-46%); height: min(92vh, 900px); aspect-ratio: 145 / 320; background: var(--red); opacity: .05; -webkit-mask: url(/assets/v7/eagle-half.svg) no-repeat right center / contain; mask: url(/assets/v7/eagle-half.svg) no-repeat right center / contain; }
[data-theme="dark"] body::before { opacity: .07; }
@media (max-width: 599px) { body::before { height: 70vh; opacity: .04; } }

/* Banner ads between sections: full-bleed photo or brand colours, headline, button */
.ad { position: relative; margin: 0 0 36px; }
.ad > a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); min-height: 150px; color: #fff; background: #1b1f27; box-shadow: var(--shadow); }
.ad > a:hover { color: #fff; box-shadow: var(--shadow-hover); }
.ad-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ad > a:hover .ad-bg { transform: scale(1.03); }
.ad > a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,16,.88) 0%, rgba(10,12,16,.7) 45%, rgba(10,12,16,.15) 100%); }
.ad-inner { position: relative; display: flex; align-items: center; gap: 22px; padding: 24px 28px; min-height: 150px; }
.ad-logo { width: 96px; height: 96px; object-fit: contain; flex: 0 0 auto; border-radius: 18px; background: #fff; padding: 8px; }
.ad-copy { display: block; flex: 1; min-width: 0; }
.ad-name { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .85; margin-bottom: 4px; }
.ad-copy b { display: block; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.ad-text { display: block; font-size: 16px; opacity: .9; max-width: 56ch; }
.ad em { flex: 0 0 auto; font-style: normal; font-weight: 700; font-size: 16px; background: #fff; color: #111418; padding: 12px 22px; border-radius: 999px; white-space: nowrap; }
.ad-label { position: absolute; top: 8px; right: 10px; z-index: 2; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 4px; pointer-events: none; }
.ad-image img { width: 100%; height: auto; display: block; }
/* brand looks */
.ad-host > a { background: radial-gradient(circle at 85% 50%, #8e72c0 0, #5a4691 38%, #2e2350 100%); }
.ad-host > a::before, .ad-game > a::before { display: none; }
.ad-host em { color: #4b3a80; }
.ad-newventures .ad-bg { object-position: 70% 50%; }
.ad-newventures > a::before { background: linear-gradient(90deg, rgba(8,14,40,.92) 0%, rgba(8,14,40,.75) 50%, rgba(8,14,40,.1) 100%); }
.ad-game > a { background: radial-gradient(circle at 90% 30%, #6b3fa0 0, #2b1d4a 45%, #120f1d 100%); }
.ad-game .ad-logo { padding: 0; border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.ad-game em { background: #f4c542; color: #1a1406; }
@media (max-width: 699px) {
    .ad > a, .ad-inner { min-height: 0; }
    .ad-inner { flex-wrap: wrap; gap: 12px 14px; padding: 20px 18px; }
    .ad-logo { width: 64px; height: 64px; border-radius: 14px; }
    .ad-copy { flex-basis: calc(100% - 80px); }
    .ad-logo + .ad-copy { flex-basis: calc(100% - 80px); }
    .ad-copy b { font-size: 22px; }
    .ad-text { font-size: 15px; }
    .ad em { padding: 10px 18px; font-size: 15px; }
    .ad > a::before { background: linear-gradient(180deg, rgba(10,12,16,.6) 0%, rgba(10,12,16,.88) 100%); }
}
.columns aside .ad .ad-inner { flex-wrap: wrap; gap: 12px; padding: 20px 18px; min-height: 0; }
.columns aside .ad > a { min-height: 0; }
.columns aside .ad .ad-logo { width: 64px; height: 64px; }
.columns aside .ad .ad-copy b { font-size: 22px; }
.columns aside .ad > a::before { background: linear-gradient(180deg, rgba(10,12,16,.55), rgba(10,12,16,.9)); }
.columns aside .ad { margin-bottom: 24px; }
.ai-list .grid-list .ad { margin: 0; }

/* Footer: brand, social, link columns, half eagle */
.sitefoot { position: relative; overflow: hidden; background: var(--bar); color: var(--bar-ink); font-size: 15px; margin-top: 10px; }
.sitefoot::before { content: ""; position: absolute; right: 0; bottom: -6%; height: 125%; aspect-ratio: 145 / 320; background: var(--red); opacity: .16; pointer-events: none; -webkit-mask: url(/assets/v7/eagle-half.svg) no-repeat right bottom / contain; mask: url(/assets/v7/eagle-half.svg) no-repeat right bottom / contain; }
.sitefoot::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.sitefoot .wrap { position: relative; }
.foot-top { display: grid; gap: 34px; padding: 46px 0 36px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.1fr 2fr; gap: 48px; } }
.foot-brand { color: #fff; margin-bottom: 14px; }
.foot-brand:hover { color: #fff; }
.foot-brand img { width: 44px; height: 44px; }
.foot-brand .brand-text b { font-size: 26px; }
.foot-brand .brand-text i { color: #ff6b70; }
.foot-brand .brand-text small { color: #8d939c; }
.foot-about p { margin: 0 0 18px; max-width: 40ch; color: #b8bec7; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #3a404a; color: #e5e7eb; }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social svg { width: 19px; height: 19px; }
.foot-links { display: grid; gap: 26px 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .foot-links { grid-template-columns: repeat(4, 1fr); } }
.sitefoot h2 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.foot-links a, .foot-links span { display: block; padding: 5px 0; color: #c9cdd4; }
.foot-links span { color: #8d939c; }
.sitefoot a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--bar-line); padding: 18px 0 24px; font-size: 14px; color: #9aa1ac; }
.to-top { font-weight: 600; color: #e5e7eb; }
/* overlay above the photo, text above both */
.ad > a::before { z-index: 1; }
.ad-inner { z-index: 2; }
.ad-copy b, .ad-name, .ad-text { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.ad-newventures > a { background: radial-gradient(circle at 88% 40%, #1b6dff 0, #0e2f86 40%, #0a1433 100%); }
.ad-newventures > a::before { display: none; }
.ad-newventures .ad-logo { background: #0a1433; padding: 14px; }
.ad-newventures em { color: #0e2f86; }
/* Eagle: the viewer's right half, at the left edge, a shade darker than the background (no colour) */
:root { --eagle: #dce0e6; --eagle-foot: #1b1f26; }
:root[data-theme="dark"] { --eagle: #161a21; --eagle-foot: #0f1217; }
body::before { right: auto; left: 0; background: var(--eagle); opacity: 1; -webkit-mask-position: left center; mask-position: left center; }
[data-theme="dark"] body::before { opacity: 1; }
@media (max-width: 599px) { body::before { opacity: 1; height: 70vh; } }
.sitefoot::before { right: auto; left: 0; background: var(--eagle-foot); opacity: 1; -webkit-mask-position: left bottom; mask-position: left bottom; }
/* Error pages */
.error-page { max-width: 720px; margin: 30px auto 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 32px 40px; text-align: center; }
.error-page h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; }
.error-page p { color: var(--ink-2); margin: 0 auto 22px; max-width: 52ch; }
.error-page .search { max-width: 460px; margin: 0 auto 22px; }
.error-page .chips { justify-content: center; }
