/* ==========================================================================
   Autorum - public stylesheet
   Visual system (from the Autorum design canvas):
   - Archivo (variable width) for headlines, nav, labels; condensed 78–90%.
   - Source Serif 4 for decks and article body.
   - Navy holds structure, blue is for links / kickers / CTAs,
     red only for "Ultima oră" and price drops.
   - Square corners, no shadows, no gradients. Hierarchy comes from rule
     weight (4px section, 1px between items) and headline size.
   ========================================================================== */

/* --------------------------------------------------------------- Fonts
   Self-hosted, so no visitor data reaches Google and the files are served
   from our own origin. Both are the variable originals (OFL, licences next
   to the files), cut down to the characters a Romanian news site prints and
   to the axis ranges this design uses:

     Archivo        wght 400–800, wdth 70–100%   75 KB
     Source Serif 4 wght 400–600, opsz fixed 20  61 KB

   Pinning the serif's optical size at 20 costs nothing visible - it is read
   between 14 and 22 px here - and saves 158 KB.
   ------------------------------------------------------------------------ */
@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-var.woff2') format('woff2-variations'),
         url('../fonts/archivo-var.woff2') format('woff2');
    font-weight: 400 800;
    font-stretch: 70% 100%;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('../fonts/source-serif-4-var.woff2') format('woff2-variations'),
         url('../fonts/source-serif-4-var.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #0A2240;
    --navy-2: #0F2A4D;
    --navy-line: #1E3A5F;
    --navy-border: #2A4468;
    --accent: #0B63CE;
    --accent-light: #7DB8FF;
    --red: #C8102E;
    --green: #0A7A3D;
    --ink: #0A1628;
    --ink-2: #1A2638;
    --text-2: #33445A;
    --muted: #5A6B80;
    --muted-on-navy: #9FB3CC;
    --footer-text: #B8C6D8;
    --panel: #F3F6F9;
    --line: #DDE3EA;
    --line-2: #A9B6C6;
    --ph-1: #1C2F4A;
    --ph-2: #33445A;
    --ph-3: #5D6F86;
    --ph-4: #7B8BA0;
    --ph-5: #A9B6C6;
    --up: #4ADE80;
    --down: #FF8A80;

    --sans: 'Archivo', Helvetica, Arial, sans-serif;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    --wrap: 1320px;
    --gutter: clamp(16px, 3vw, 40px);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }

[hidden] { display: none !important; }
[data-reel-wrap] { display: flex; }
[data-reel-wrap] > .reel { flex: 1; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--accent); color: #FFFFFF; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------ Type bits */
.kicker {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
}
.kicker--lg { font-size: 12px; }
.kicker a:hover { text-decoration: underline; }
.deck { font-family: var(--serif); color: var(--text-2); line-height: 1.5; }
.meta { font-size: 13px; color: var(--muted); }
.headline { font-weight: 700; font-stretch: 90%; line-height: 1.18; letter-spacing: -0.005em; }
.headline a:hover { color: var(--accent); }

/* --------------------------------------------------------------- Media */
.media {
    position: relative; display: block; overflow: hidden;
    background: var(--ph-2); aspect-ratio: 16 / 9;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--9x16 { aspect-ratio: 9 / 16; }
.media--ph1 { background: var(--ph-1); }
.media--ph2 { background: var(--ph-2); }
.media--ph3 { background: var(--ph-3); }
.media--ph4 { background: var(--ph-4); }
.media--ph5 { background: var(--ph-5); }
.media__placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.35);
}
.media__placeholder svg { width: 40px; height: 40px; }

/* --------------------------------------------------------------- Header */
.site-header { background: var(--navy); color: #FFFFFF; position: relative; z-index: 20; }
.site-header__bar {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 12px 32px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; padding: 14px 0; }
.brand:hover { color: #FFFFFF; }
.brand__logo { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
    width: 30px; height: 30px; background: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand__name {
    font-size: 30px; font-weight: 800; font-stretch: 80%; letter-spacing: 0.01em;
    text-transform: uppercase; line-height: 1;
}
.brand__logo--black .brand__name { color: var(--navy); }

.site-nav { flex: 1 1 0; min-width: 0; position: relative; }
/* When the links do not fit, the last one is clipped mid-word and reads as a
   bug. The class is set from JS, which is the only place the overflow is
   known, and fades the right edge so the cut looks like what it is: more to
   scroll. */
.site-nav.is-scrollable::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 48px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(10, 34, 64, 0), var(--navy));
}
.site-nav__list {
    display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
    font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__link {
    display: block; color: #FFFFFF; padding: 26px 0 23px; border-bottom: 3px solid transparent;
}
.site-nav__link:hover { color: var(--accent-light); }
.site-nav__link.is-active { border-bottom-color: var(--accent-light); }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.icon-btn {
    width: 44px; height: 44px; border: 1px solid var(--navy-border); background: transparent;
    display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; padding: 0;
}
.icon-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
.icon-btn svg { width: 18px; height: 18px; }
.site-header__burger { display: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border: 0; font-size: 14px; font-weight: 700;
    text-decoration: none; white-space: nowrap; border-radius: 0;
}
.btn--accent { background: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: #0954B0; color: #FFFFFF; }
.btn--navy { background: var(--navy); color: #FFFFFF; }
.btn--navy:hover { background: var(--navy-2); color: #FFFFFF; }
.btn--outline { background: #FFFFFF; color: var(--navy); border: 1px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #FFFFFF; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }

.site-search {
    background: var(--navy-2); border-top: 1px solid var(--navy-line);
}
.site-search__form { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.site-search__input {
    flex: 1; height: 48px; border: 0; padding: 0 16px; background: #FFFFFF; color: var(--ink);
    font-size: 16px; border-radius: 0;
}

/* --------------------------------------------------------- Market strip */
.market { background: var(--navy-2); color: #FFFFFF; border-top: 1px solid var(--navy-line); }
.market__row {
    display: flex; align-items: stretch; font-size: 13px; flex-wrap: wrap;
    /* Only the euro rate and the fuel averages live here, so the row fits
       without scrolling; the share quotes are a sidebar box instead. */
}
.market__label {
    display: flex; align-items: center; padding: 12px 15px 12px 0;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted-on-navy); white-space: nowrap; border-right: 1px solid var(--navy-line);
}
.market__item {
    display: flex; flex-direction: column; gap: 2px; padding: 9px 15px;
    border-right: 1px solid var(--navy-line); white-space: nowrap;
}
.market__item:first-child { padding-left: 0; }
.market__item:last-child { border-right: 0; }
.market__name { font-weight: 700; }
.market__vals { display: flex; gap: 8px; }
.market__chg { font-weight: 600; color: var(--muted-on-navy); }
.market__chg--up { color: var(--up); }
.market__chg--down { color: var(--down); }

/* ------------------------------------------------------------- Breaking */
.breaking { border-bottom: 1px solid var(--line); }
.breaking__row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.badge-live {
    background: var(--red); color: #FFFFFF; font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; white-space: nowrap;
}
.breaking__link { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.breaking__time { color: var(--muted); white-space: nowrap; margin-left: auto; font-size: 13px; }

/* ----------------------------------------------------------- Home: top */
.home-main { padding-top: 32px; }
.top { display: flex; flex-wrap: wrap; gap: 32px; }
.lead { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lead__title {
    font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; font-weight: 800; font-stretch: 88%;
    letter-spacing: -0.015em; color: var(--ink);
}
.lead__title a:hover { color: var(--accent); }
.lead__deck { font-size: 19px; }
.lead__more {
    list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 10px;
}
.lead__more li { display: flex; gap: 10px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.lead__more li::before {
    content: ""; width: 6px; height: 6px; background: var(--accent); margin-top: 8px; flex-shrink: 0;
}

.second { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; }
.second__item { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.second__item:first-child { padding-top: 0; }
.second__item:last-child { border-bottom: 0; padding-bottom: 0; }
.second__item .headline { font-size: 20px; }

.latest {
    flex: 1 1 280px; min-width: 0; background: var(--panel); padding: 20px 22px; align-self: flex-start;
}
.panel-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 2px solid var(--navy); padding-bottom: 10px;
}
.panel-head__title {
    font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
}
.panel-head__link { font-size: 13px; font-weight: 600; color: var(--accent); }
.latest__list { list-style: none; margin: 0; padding: 0; }
.latest__item { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.latest__item:last-child { border-bottom: 0; padding-bottom: 4px; }
.latest__time { font-size: 12px; font-weight: 600; color: var(--accent); }
.latest__title { font-size: 16px; line-height: 1.3; font-weight: 600; }

/* -------------------------------------------------------- Section heads */
.section { margin-top: 56px; }
.section-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
    border-top: 4px solid var(--navy); padding-top: 14px; margin-bottom: 24px;
}
.section-head__title {
    font-size: 26px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; color: var(--navy);
    line-height: 1.1;
}
.section-head__title a:hover { color: var(--accent); }
.section-head__sub { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.section-head__more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
.section-head--small .section-head__title { font-size: 14px; letter-spacing: 0.08em; }

.grid { display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px; }

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .headline { font-size: 21px; }
.card__deck { font-size: 16px; }
.card--sm .headline { font-size: 18px; line-height: 1.25; }

.stack { display: flex; flex-direction: column; min-width: 0; }
.stack__item { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stack__item:first-child { padding-top: 0; }
.stack__item:last-child { border-bottom: 0; padding-bottom: 0; }
.stack__item .headline { font-size: 18px; line-height: 1.25; font-stretch: 100%; }

/* --------------------------------------------------------- Tests band */
.band { margin-top: 64px; background: var(--navy); color: #FFFFFF; }
.band__inner { padding-top: 48px; padding-bottom: 56px; }
.band__head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 28px; border-bottom: 1px solid var(--navy-border); padding-bottom: 16px;
}
.band__title { font-size: 26px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.band__more { color: var(--accent-light); font-size: 14px; font-weight: 700; }
.band__more:hover { color: #FFFFFF; }
.band .kicker { color: var(--accent-light); }
.band .headline a { color: #FFFFFF; }
.band .headline a:hover { color: var(--accent-light); }
.band .media { background: var(--navy-border); }
.score {
    position: absolute; left: 0; bottom: 0; background: #FFFFFF; color: var(--navy);
    padding: 8px 12px; display: flex; align-items: baseline; gap: 2px;
}
.score__num { font-size: 26px; font-weight: 800; font-stretch: 78%; line-height: 1; }
.score__max { font-size: 12px; font-weight: 700; color: var(--muted); }

/* --------------------------------------------------------------- Reels */
.reels-band { background: var(--panel); border-bottom: 1px solid var(--line); }
.reels-band__inner { padding-top: 48px; padding-bottom: 56px; }
.reels-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
    border-top: 4px solid var(--navy); padding-top: 14px; margin-bottom: 22px;
}
.reels-head__text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 420px; }
.reels-head__deck { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
    height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
    border: 1px solid var(--line-2); background: #FFFFFF; font-size: 13px; font-weight: 700; color: var(--ink);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.chip--lg { height: 44px; padding: 0 18px; font-size: 14px; }
.creators { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; }
.creator-pill {
    display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
    background: #FFFFFF; border: 1px solid var(--line); white-space: nowrap; font-size: 14px; font-weight: 700;
}
.avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--ph-2); flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #FFFFFF; font-size: 12px; font-weight: 800; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 24px; height: 24px; font-size: 10px; }
.avatar--lg { width: 64px; height: 64px; font-size: 20px; }
.avatar--xl { width: 120px; height: 120px; font-size: 36px; }

.reels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.reel { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line); min-width: 0; }
.reel__player {
    position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0;
    background: var(--ph-1); color: #FFFFFF; overflow: hidden;
}
.reel__player img { width: 100%; height: 100%; object-fit: cover; }
.reel__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel__badge {
    position: absolute; left: 10px; top: 10px; background: #FFFFFF; color: var(--navy);
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px;
}
.reel__badge--tiktok { background: #000000; color: #FFFFFF; }
.play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
    display: flex; align-items: center; justify-content: center;
}
.play svg { width: 20px; height: 20px; fill: var(--navy); }
.reel__date { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 600; }
.reel__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.reel__creator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.reel__title { font-size: 16px; line-height: 1.25; font-weight: 700; }
.reel__desc { font-family: var(--serif); font-size: 14px; line-height: 1.45; color: var(--text-2); }
.reel__link {
    margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent);
    display: inline-flex; align-items: center; gap: 5px;
}
.reel__link svg { flex-shrink: 0; }
.fineprint { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------- Video + read */
.split { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; }
.split__main { flex: 999 1 600px; min-width: 0; }
.split__side { flex: 1 1 300px; min-width: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.duration {
    position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px;
    background: var(--navy); color: #FFFFFF; padding: 6px 10px 6px 8px; font-size: 12px; font-weight: 700;
}
.duration svg { width: 14px; height: 14px; fill: #FFFFFF; }

.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked__item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ranked__item:last-child { border-bottom: 0; }
.ranked__num {
    font-size: 32px; font-weight: 800; font-stretch: 72%; line-height: 0.9; color: var(--accent);
    width: 24px; flex-shrink: 0;
}
.ranked__title { font-size: 16px; line-height: 1.3; font-weight: 600; }

/* ------------------------------------------------- Quotes (sidebar box) */
.mt-side { margin-top: 32px; }
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes__item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline;
    gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.quotes__item:last-child { border-bottom: 0; }
.quotes__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quotes__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.quotes__chg { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.quotes__chg--up { color: var(--green); }
.quotes__chg--down { color: var(--red); }
.quotes__note { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ----------------------------------------------------------- Newsletter */
.newsletter { margin-top: 64px; }
.newsletter__box {
    background: var(--panel); padding: clamp(24px, 4vw, 40px);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.newsletter__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.newsletter__title {
    font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; font-stretch: 85%; line-height: 1.05; color: var(--navy);
}
.newsletter__deck { font-size: 17px; }
.newsletter__form { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 10px; }
.input {
    height: 48px; border: 1px solid var(--line-2); padding: 0 16px; font-size: 15px;
    color: var(--ink); background: #FFFFFF; border-radius: 0; width: 100%;
}
.input:focus { border-color: var(--accent); }
.newsletter__form .input { flex: 1 1 220px; width: auto; }
.form-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.form-success { display: none; flex-basis: 100%; font-size: 14px; font-weight: 600; color: var(--green); }
.form-success.is-visible { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- Footer */
.site-footer { margin-top: 80px; background: var(--navy); color: var(--footer-text); }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer__inner { padding-top: 56px; }
.site-footer__top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding-bottom: 32px; border-bottom: 1px solid var(--navy-line);
}
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.socials__label { font-size: 13px; margin-right: 6px; }
.social-btn {
    width: 44px; height: 44px; border: 1px solid var(--navy-border);
    display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF !important;
}
.social-btn:hover { border-color: var(--accent-light); }
.social-btn svg { width: 16px; height: 16px; }
.site-footer__cols {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 32px 24px; padding: 40px 0; font-size: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col__title {
    margin: 0 0 4px; color: #FFFFFF; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.site-footer__bottom {
    border-top: 1px solid var(--navy-line); padding: 22px 0 28px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; font-size: 13px;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.linklike { background: none; border: 0; padding: 0; color: var(--footer-text); font-size: 13px; text-decoration: none; }
.linklike:hover { color: #FFFFFF; }

/* ---------------------------------------------------------- Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------------------------------------------------------- Page heads */
.page-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.page-head__inner { padding-top: 36px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.page-title {
    font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; font-weight: 800; font-stretch: 86%;
    letter-spacing: -0.015em; color: var(--navy);
}
.page-deck { max-width: 760px; font-size: 19px; }
.page-body { padding-top: 40px; }

/* --------------------------------------------------------------- Lists */
.list { display: flex; flex-direction: column; }
.list-item {
    display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px;
    padding: 24px 0; border-bottom: 1px solid var(--line);
}
.list-item:first-child { padding-top: 0; }
.list-item__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.list-item .headline { font-size: 22px; }
.list-item--noimg { grid-template-columns: minmax(0, 1fr); }

.layout { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.layout__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.side-box { background: var(--panel); padding: 20px 22px; }
.side-box .ranked__item { padding: 14px 0; }
.side-box .ranked__num { font-size: 30px; width: 22px; }
.side-news {
    background: var(--navy); color: #FFFFFF; padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.side-news .kicker { color: var(--accent-light); }
.side-news__title { font-size: 23px; font-weight: 800; font-stretch: 85%; line-height: 1.1; }
.side-news label { font-size: 13px; color: var(--footer-text); }
.side-news .input { border: 0; }
.side-news > * { flex-shrink: 0; }
.side-news .btn { width: 100%; height: 46px; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.pager a, .pager span {
    min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.pager a:hover { border-color: var(--navy); }
.pager .is-current { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.empty-state { padding: 48px 0; text-align: center; color: var(--muted); font-size: 16px; }

/* ------------------------------------------------------------- Article */
.article-head { padding-top: 36px; }
.article-head__inner { max-width: 920px; display: flex; flex-direction: column; gap: 18px; }
.article-title {
    font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; font-weight: 800; font-stretch: 86%;
    letter-spacing: -0.015em; color: var(--navy);
}
.article-deck { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; }
.byline {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-top: 6px;
}
.byline__who { display: flex; align-items: center; gap: 12px; }
.byline__who .avatar { width: 44px; height: 44px; font-size: 14px; background: var(--ph-5); color: var(--navy); }
.byline__text { display: flex; flex-direction: column; gap: 2px; }
.byline__name { font-size: 14px; font-weight: 700; }
.share { display: flex; gap: 8px; }
.share__btn {
    width: 44px; height: 44px; border: 1px solid var(--line); background: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center; color: var(--navy); padding: 0;
}
.share__btn:hover { border-color: var(--navy); color: var(--navy); }
.share__btn svg { width: 16px; height: 16px; }
.share__btn.is-done { border-color: var(--green); color: var(--green); }

.article-figure { margin-top: 32px; }
.figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.article-wrap { padding-top: 44px; }
.article-main { max-width: 720px; }

.verdict { border: 1px solid var(--navy); margin-bottom: 40px; }
.verdict__top { display: flex; align-items: stretch; border-bottom: 1px solid var(--navy); }
.verdict__score { padding: 18px 22px; background: var(--navy); color: #FFFFFF; display: flex; align-items: baseline; gap: 2px; }
.verdict__num { font-size: 52px; font-weight: 800; font-stretch: 74%; line-height: 0.9; }
.verdict__max { font-size: 16px; font-weight: 600; color: var(--muted-on-navy); }
.verdict__text { padding: 16px 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.verdict__line { font-size: 18px; font-weight: 700; line-height: 1.25; }
.verdict__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.verdict__col { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.verdict__col + .verdict__col { border-left: 1px solid var(--line); }
.verdict__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.verdict__label--pro { color: var(--green); }
.verdict__label--con { color: var(--red); }
.verdict__col ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.prose { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 24px; }
.prose h2, .prose h3 {
    font-family: var(--sans); font-weight: 800; font-stretch: 86%; color: var(--navy); line-height: 1.1;
}
.prose h2 { font-size: 30px; margin-top: 40px; }
.prose h3 { font-size: 23px; margin-top: 32px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 24px; }
.prose blockquote p {
    font-family: var(--sans); font-size: 28px; line-height: 1.2; font-weight: 700; font-stretch: 88%; color: var(--navy);
}
.prose figure img { width: 100%; }
.prose figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); padding-top: 10px; }
.prose img { width: 100%; }
.prose table { width: 100%; font-family: var(--sans); font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.article-inline, .article-note {
    font-family: var(--sans); background: var(--panel); padding: 18px 22px; font-size: 16px; line-height: 1.55;
}
.article-note--warn { border-left: 4px solid var(--red); }
.article-note__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ------------------------------------------- Endless article scrolling
   An appended article has no sidebar, so its column is free to centre on
   the same measure the body text uses on the first one. */
.layout--solo { justify-content: center; }
.layout--solo .layout__main { flex: 1 1 100%; max-width: 760px; }

.article-feed__sentinel { height: 1px; }
.article-feed__status {
    text-align: center; font-size: 14px; color: var(--muted);
    padding: 32px 16px; margin: 0;
}
.article-feed__more { padding: 8px 16px 64px; text-align: center; }

/* Each article that falls in behind the first one announces itself with a
   rule and a bit of air, so the reader can tell where one ends. */
.article-feed .article-entry { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 56px; }
.article-feed .article-entry::before {
    content: "Articolul următor";
    display: block; max-width: 1240px; margin: 0 auto; padding: 24px 24px 0;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
}

/* "Scrie despre": an author's beats, counted from what they published. */
.beats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.beats__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tag__n { color: var(--muted); font-weight: 500; }

/* A wide table scrolls inside its own box, so the page never does. */
.table-scroll { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; min-width: 520px; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "Pe scurt": the few lines that answer the headline, above the body. */
.keypoints { border-left: 3px solid var(--accent); background: var(--panel); padding: 18px 22px; margin-bottom: 32px; }
.keypoints ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.keypoints li { font-size: 16px; font-weight: 600; line-height: 1.45; padding-left: 18px; position: relative; }
.keypoints li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--accent); }

.specs { margin-top: 44px; }
.specs table { width: 100%; font-size: 15px; }
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:nth-child(odd) { background: var(--panel); }
.specs tr:last-child { border-bottom: 0; }
.specs th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 14px; width: 45%; }
.specs td { padding: 12px 14px; font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tag { font-size: 13px; font-weight: 600; border: 1px solid var(--line); padding: 10px 14px; }
.tag:hover { border-color: var(--navy); }
.sources { margin-top: 36px; font-size: 14px; color: var(--text-2); }
.sources ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sources a { color: var(--accent); }
.author-box { margin-top: 40px; display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 24px; }
.author-box__name { font-weight: 800; font-size: 16px; }
.author-box__bio { font-family: var(--serif); font-size: 15px; color: var(--text-2); margin-top: 4px; }
.related { margin-top: 72px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--ph-1); margin-bottom: 32px; }
.video-embed iframe, .video-embed button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* padding: 0 matters - a button keeps the browser's own padding, and the
   box's dark background then shows around the thumbnail as a frame. */
.video-embed button { background: transparent; color: #FFFFFF; padding: 0; }
.video-embed button img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Forms */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 14px; font-weight: 700; }
.form__control {
    width: 100%; min-height: 48px; border: 1px solid var(--line-2); padding: 12px 16px; font-size: 16px;
    background: #FFFFFF; border-radius: 0; color: var(--ink);
}
textarea.form__control { min-height: 160px; resize: vertical; }
.form__control.is-invalid { border-color: var(--red); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.form__check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.form__error { color: var(--red); font-size: 13px; }
.alert { padding: 14px 18px; font-weight: 600; margin-top: 20px; }
.alert--success { background: #E7F5EC; color: var(--green); }
.alert--error { background: #FDECEE; color: var(--red); }

/* --------------------------------------------------------- Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--sans); font-size: 24px; }
.legal h3 { font-family: var(--sans); font-size: 18px; }
.legal p, .legal li { font-size: 18px; }
.legal-table { width: 100%; font-family: var(--sans); font-size: 14px; margin-top: 12px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal-table th { background: var(--panel); }

/* --------------------------------------------------------------- Authors */
.authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.author-card { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.author-card:hover { border-color: var(--navy); color: inherit; }
.author-card__name { font-size: 20px; font-weight: 800; font-stretch: 90%; }
.author-card__role { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* ---------------------------------------------------------------- Laws */
.law-list { display: flex; flex-direction: column; }
.law-item { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.law-item__title { font-size: 20px; font-weight: 700; font-stretch: 92%; }
.law-body { font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.law-body h2, .law-body h3, .law-body h4 { font-family: var(--sans); color: var(--navy); margin-top: 32px; }
.law-body p { margin-top: 12px; }

/* -------------------------------------------------------- Cookie banner */
.cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto;
    background: #FFFFFF; border: 2px solid var(--navy); padding: 20px 22px;
    display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.cookie[hidden] { display: none; }
.cookie__title { font-size: 16px; color: var(--navy); }
.cookie__text { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cookie__text a { color: var(--accent); text-decoration: underline; }
.cookie__prefs { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cookie__pref { border-top: 1px solid var(--line); padding-top: 10px; }
.cookie__pref-head { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; }
.cookie__pref-head input { width: 18px; height: 18px; accent-color: var(--accent); }
.cookie__pref-text { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { flex: 1 1 140px; }

/* ----------------------------------------------------------------- 404 */
.error-page { padding: 80px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.error-page__code { font-size: 96px; font-weight: 800; font-stretch: 72%; color: var(--accent); line-height: 1; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1200px) {
    /* Keep the strip on one line: the last quotes drop out first. */
    .market__item--stock:nth-last-child(-n+3) { display: none; }
}
@media (max-width: 1000px) {
    .market__item--stock:nth-last-child(-n+5) { display: none; }
}
@media (max-width: 900px) {
    .site-header__bar { flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
    .site-header__burger { display: inline-flex; }
    .site-header__login { display: none; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%; background: var(--navy);
        border-top: 1px solid var(--navy-line); display: none; flex: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; overflow: visible; }
    .site-nav__link { padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
    .site-nav__link.is-active { border-bottom-color: var(--accent-light); }
    .list-item { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 760px) {
    /* On a phone the strip keeps the euro rate and the fuel prices only; the
       share quotes are one tap away in the sidebar box. */
    .market__item--stock { display: none; }
    .market__item { padding: 7px 14px; font-size: 12px; }
    .market__item:first-child { padding-left: 0; }
}
@media (max-width: 620px) {
    /* A 9:16 card at full phone width would be two thirds of the screen tall. */
    .reels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .reel__body { padding: 10px 10px 12px; gap: 6px; }
    .reel__title { font-size: 14px; }
    .reel__desc { display: none; }
    .play { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
    .brand__name { font-size: 24px; }
    .site-header__subscribe { display: none; }
    .breaking__time { display: none; }
    .verdict__col + .verdict__col { border-left: 0; border-top: 1px solid var(--line); }
    .prose { font-size: 18px; }
    .prose blockquote p { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@media print {
    .site-header, .market, .breaking, .site-footer, .cookie, .share, .layout__side, .newsletter { display: none !important; }
    .prose { font-size: 12pt; }
}
