/* cAIberion News — public site
   Brand (shared with www.caiberion.com): Navy #0B1F3B · AI Cyan #00B4D8 · Steel Gray #6C7A89 */

:root {
  --navy: #0B1F3B;
  --navy-2: #12305a;
  --cyan: #00B4D8;
  --cyan-ink: #007f99;
  --gray: #6C7A89;
  --ink: #0B1F3B;
  --muted: #55657a;
  --bg: #ffffff;
  --surface: #F4F7FB;
  --card: #ffffff;
  --border: #E2E8F0;
  --shadow: 0 1px 2px rgba(11,31,59,.06), 0 6px 24px rgba(11,31,59,.07);
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --max: 1220px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8EEF6;
    --muted: #9fb0c4;
    --bg: #07152a;
    --surface: #0d2140;
    --card: #0f2546;
    --border: #1e3a63;
    --cyan-ink: #4fd3ee;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan-ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--cyan); color: var(--navy); padding: 8px 14px; border-radius: 0 0 8px 8px; font-weight: 700; z-index: 100; }
.skip-link:focus { top: 0; }

/* ── Masthead ───────────────────────────────────────────── */
.masthead { background: var(--navy); color: #fff; }
.masthead__bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.1; }
.brand__name span { color: var(--cyan); }
.brand__name small { font-weight: 500; color: #a9bbd2; margin-left: 4px; }
.brand__tag { display: block; font-size: .72rem; color: #8da3bf; font-weight: 500; letter-spacing: .02em; }
.masthead__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-mini { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 2px 4px 2px 12px; }
.search-mini input { background: transparent; border: 0; color: #fff; width: 200px; font: inherit; font-size: .9rem; padding: 6px 0; }
.search-mini input::placeholder { color: #8da3bf; }
.search-mini input:focus { outline: none; }
.search-mini button { background: transparent; border: 0; color: #cfe3f6; cursor: pointer; padding: 6px 8px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; font-size: .78rem; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 6px 10px; color: #cfe3f6; }
.lang-switch span { background: var(--cyan); color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: .9rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn--cyan { background: var(--cyan); color: var(--navy); }
.btn--cyan:hover { background: #19c2e4; color: var(--navy); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--sm { padding: 7px 14px; font-size: .82rem; }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 1rem; cursor: pointer; }

.sections-nav { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.06); }
.sections-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sections-nav ul::-webkit-scrollbar { display: none; }
.sections-nav a { display: block; padding: 11px 14px; color: #cfe3f6; font-size: .88rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.sections-nav a:hover, .sections-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--cyan); }

.ticker { background: var(--surface); border-bottom: 1px solid var(--border); font-size: .85rem; }
.ticker .container { display: flex; align-items: center; gap: 14px; min-height: 42px; overflow: hidden; }
.ticker__label { flex: none; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; color: #fff; background: #c2410c; padding: 4px 8px; border-radius: 4px; }
.ticker__items { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.ticker__items::-webkit-scrollbar { display: none; }
.ticker__items a { color: var(--muted); }
.ticker__items a:hover { color: var(--cyan-ink); }

/* ── Cards & grids ──────────────────────────────────────── */
main { padding: 28px 0 56px; }
.chip { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--chip, var(--cyan-ink)); }
.meta { color: var(--muted); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.meta .dot::before { content: "·"; margin-right: 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__img { aspect-ratio: 16/9; background: var(--navy); object-fit: cover; width: 100%; height: auto; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.02rem; line-height: 1.35; margin: 0; font-weight: 700; }
.card__dek { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 6px; }

.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lead__img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; background: var(--navy); }
.lead__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.lead__title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.18; margin: 0; letter-spacing: -.015em; }
.lead__dek { color: var(--muted); font-size: 1.02rem; margin: 0; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; margin-top: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 0 0 16px; }
.block-title h2 { font-size: 1.05rem; margin: 0; letter-spacing: .02em; text-transform: uppercase; }
.block-title a { font-size: .82rem; color: var(--cyan-ink); font-weight: 700; }
.block-title--accent { border-bottom-color: var(--accent, var(--cyan)); }
.rail { margin-top: 44px; }

.stream { list-style: none; margin: 0; padding: 0; }
.stream li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.stream li:last-child { border-bottom: 0; }
.stream a { font-weight: 650; font-size: .95rem; line-height: 1.35; display: block; margin: 3px 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.newsletter-box { background: linear-gradient(135deg, var(--navy) 0%, #143766 100%); color: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid rgba(0,180,216,.35); }
.newsletter-box h3 { margin: 0 0 6px; font-size: 1.1rem; }
.newsletter-box p { margin: 0 0 14px; color: #c3d4ea; font-size: .9rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type=email] { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.newsletter-form input[type=email]::placeholder { color: #9fb3cc; }
.newsletter-form small { color: #9fb3cc; font-size: .72rem; line-height: 1.4; }
.newsletter-form small a { text-decoration: underline; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.newsletter-band { margin-top: 48px; }
.newsletter-band .newsletter-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 30px; }

/* ── Article ────────────────────────────────────────────── */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 14px; }
.article__dek { font-size: 1.15rem; color: var(--muted); margin: 0 0 16px; }
.article__figure { margin: 22px 0; }
.article__figure img { border-radius: var(--radius); width: 100%; max-height: 460px; object-fit: cover; background: var(--navy); }
.article__figure figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.article__body p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; margin: 0 0 1.1em; }
.keypoints { border-left: 4px solid var(--cyan); background: var(--surface); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; }
.keypoints h2, .why h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; color: var(--cyan-ink); }
.keypoints ul { margin: 0; padding-left: 18px; }
.keypoints li { margin: 4px 0; }
.why { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; background: var(--card); }
.why p { margin: 0; font-weight: 550; }
.source-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; margin: 26px 0; }
.source-cta strong { display: block; }
.disclosure { font-size: .8rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.tags a { display: inline-block; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.notice { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: .88rem; color: var(--muted); }

/* ── Listing / search / pages ───────────────────────────── */
.page-head { margin-bottom: 26px; }
.page-head h1 { margin: 0 0 6px; font-size: 2rem; letter-spacing: -.015em; }
.page-head p { margin: 0; color: var(--muted); }
.pager { display: flex; justify-content: center; margin-top: 30px; }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }
.prose { max-width: 760px; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.message { max-width: 560px; margin: 40px auto; text-align: center; }
.message .panel { padding: 32px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy); color: #a9bbd2; padding: 36px 0; font-size: .88rem; }
.footer .container { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: #dbe7f5; }
.footer a:hover { color: var(--cyan); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .home-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .lead { grid-template-columns: 1fr; }
  .lead__img { min-height: 220px; max-height: 300px; }
  .lead__body { padding: 20px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-mini { display: none; }
  .newsletter-band .newsletter-box { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .masthead__tools .btn { display: none; }
  .article__body p { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .masthead, .sections-nav, .ticker, .footer, .newsletter-band, .newsletter-box { display: none !important; } }
