/* Români în UK
   Editorial look: serif headlines, plain sans body, hairline rules, square-ish
   corners, one accent colour. Photographs do the decorating. */
:root {
  --ink: #17212f;
  --body: #2f3b4a;
  --muted: #667085;
  --line: #ddd8cd;
  --line-soft: #ebe7de;
  --page: #e9e5dc;
  --paper: #f8f6f1;
  --card: #ffffff;
  --navy: #12284b;
  --navy-dark: #0b1b34;
  --navy-tint: #e6ebf3;
  --gold: #e3a712;
  --gold-dark: #b98608;
  --gold-tint: #fbf1d3;
  --green: #1f6f4a;
  --green-tint: #e8f3ec;
  --red: #a4231b;
  --red-tint: #f9e9e7;
  --radius: 4px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Old names, still used by a few inline rules. */
  --primary: var(--navy);
  --accent: var(--gold);
  --dark: var(--ink);
  --border: var(--line);
  --border-light: var(--line-soft);
  --bg-alt: #f1eee7;
  --primary-light: var(--navy-tint);
  --accent-light: var(--gold-tint);
  --danger: var(--red);
  --danger-light: var(--red-tint);
  --success: var(--green);
  --success-light: var(--green-tint);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--page); color: var(--body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.22; }
h1 { font-size: 32px; margin-bottom: 8px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin-bottom: 10px; }
h3 { font-size: 18px; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
p { margin-bottom: 10px; }
ul { padding-left: 20px; margin-bottom: 10px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.main { padding-top: 28px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 200; }
.kicker { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.kicker-light { color: var(--gold); }

/* Header: a tricolour hairline, then a plain white bar */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #002b7f 0 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66%); }
.header-row { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 23px; color: var(--ink); line-height: 1.05; letter-spacing: -0.01em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.nav-link { padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--body); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-chip { color: var(--ink); font-weight: 700; font-size: 14px; padding: 6px 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; font: 600 15px var(--sans); border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-accent { background: var(--gold); color: var(--ink); }
.btn-accent:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #c9c3b6; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #7f1a14; color: #fff; }

/* Labels: small caps text, no pills */
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.badge-ok { color: var(--green); }
.badge-warn { color: #8a5a00; }
.badge-danger { color: var(--red); }
.badge + .badge { margin-left: 10px; }
.pill { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill-accent, .nav-link .pill { background: var(--gold); color: var(--ink); padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }

/* Banners and flash */
.banner { font-size: 14px; padding: 10px 0; }
.banner-warn { background: var(--gold-tint); color: #5f4200; }
.banner-danger { background: var(--red-tint); color: var(--red); }
.banner-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 500; border-left: 4px solid; }
.flash-ok { background: var(--green-tint); color: var(--green); border-color: var(--green); }
.flash-warn { background: var(--gold-tint); color: #5f4200; border-color: var(--gold); }

/* Photo behind every section, with the content on a sheet of paper over it */
.backdrop { position: relative; height: 340px; background: var(--navy-dark); overflow: hidden; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 27, 52, 0.28) 0%, rgba(11, 27, 52, 0) 40%, rgba(233, 229, 220, 0.9) 100%); }
.backdrop-caption { position: absolute; z-index: 1; left: max(24px, calc((100vw - 1180px) / 2 + 24px)); top: 18px; margin: 0; font-size: 13px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75); }
.backdrop-caption a { color: #e8ecf2; }
.sheet { position: relative; max-width: 1180px; margin: -230px auto 0; background: var(--paper); padding: 36px 40px 56px; border-top: 3px solid var(--navy); box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(23, 33, 47, 0.45); }
.sheet-home { margin-top: -44px; }

/* Cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.narrow-wide { max-width: 740px; margin-left: auto; margin-right: auto; }
.empty { text-align: center; color: var(--muted); padding: 32px 24px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.two-col .card { margin-bottom: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }
.section-title { margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.02em; }
.meta { font-size: 14px; color: var(--muted); }
.with-side { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.side { padding: 18px; }
.side-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 15px; color: var(--body); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.side-link:last-child { border-bottom: 0; }
.side-link:hover { color: var(--red); }
.side-link.active { color: var(--ink); font-weight: 700; }
.topics p { font-size: 14px; }
.search { display: flex; gap: 6px; margin-bottom: 12px; }
.search input { flex: 1; min-width: 0; }

/* Home: full-width photographs */
.hero { position: relative; background: var(--navy-dark); color: #fff; overflow: hidden; min-height: 520px; display: flex; align-items: center; isolation: isolate; }
.hero-slides { position: absolute; inset: -12px; z-index: -2; transition: transform 0.5s ease-out; will-change: transform; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; animation: hero-drift 9s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 27, 52, 0.86) 0%, rgba(11, 27, 52, 0.55) 45%, rgba(11, 27, 52, 0.05) 80%), linear-gradient(0deg, rgba(11, 27, 52, 0.6) 0%, rgba(11, 27, 52, 0) 28%); }
.hero-inner { width: 100%; }
.hero-text { max-width: 600px; padding: 56px 0 96px; }
.hero h1 { color: #fff; font-size: 46px; line-height: 1.1; margin-bottom: 14px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); }
.hero p { color: #dbe2ec; font-size: 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-caption { position: absolute; right: max(24px, calc((100vw - 1180px) / 2 + 24px)); bottom: 62px; margin: 0; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8); text-align: right; }
.hero p.hero-caption { font-size: 13px; color: #fff; }
.hero-caption a { color: #dbe2ec; }
.hero-dots { position: absolute; left: max(24px, calc((100vw - 1180px) / 2 + 24px)); bottom: 66px; display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: background 0.3s, width 0.3s; }
.hero-dot.is-on { background: var(--gold); width: 44px; }
.home-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; margin: 12px 0; align-items: start; }

/* Movement (motion.js adds these classes; nothing here applies without it) */
.tile, .row-card, .stat { transition: transform 0.18s ease-out, border-color 0.18s; }
.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise.rise-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tile, .row-card, .stat, .btn, .hero-slides, .sponsored-card.is-floating { transition: none; }
  .hero-slide.is-on { animation: none; }
  .hero-slide { transition: opacity 0.2s; }
}

/* On a wide screen the page sits above the two side panels' layer. */
@media (min-width: 1480px) {
  .hero, .backdrop, .sheet, .site-footer, .banner { position: relative; z-index: 1; }
}

/* Advertising: one banner, always labelled */
.ad-banner { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 34px; text-decoration: none; color: var(--body); min-height: 78px; }
.ad-banner:hover { border-color: var(--ink); border-left-color: var(--gold); color: var(--body); }
.ad-house { border-left-color: var(--line); border-style: dashed; }
.ad-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
.ad-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ad-body strong { font-family: var(--serif); color: var(--ink); font-size: 19px; }
.ad-body span { font-size: 14px; color: var(--muted); }
.ad-cta { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Rows (forum, guides, inbox) */
.row-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; color: inherit; text-decoration: none; }
.row-card:hover { border-color: #b9b2a3; color: inherit; }
.row-card h3 { margin: 6px 0 6px; font-size: 20px; }
.row-card h3 a { color: var(--ink); text-decoration: none; }
.row-card h3 a:hover { color: var(--red); }
.row-card p { font-size: 15px; margin: 0; }
.row-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-time { margin-left: auto; font-size: 13px; }
.row-foot { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.thread-link.unread { border-left: 4px solid var(--gold); }

/* Tiles (listings, news) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 26px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.tile:hover { border-color: #b9b2a3; }
.tile-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.tile h3 { font-size: 20px; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a:hover { color: var(--red); }
.tile p { font-size: 15px; color: var(--muted); flex: 1; margin: 8px 0 14px; }
.tile-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.price { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--green); margin-top: 4px; }
.price-lg { font-size: 26px; margin-bottom: 6px; }

/* Tabs and filters */
.tabs { display: flex; gap: 4px 22px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-row input, .filter-row select { flex: 1; min-width: 160px; }
.pager { display: flex; align-items: center; justify-content: space-between; margin: 22px 0; }

/* Detail pages */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.detail .stack .card { margin-bottom: 0; }
.owner-actions, .reply-actions, .inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.owner-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.safety { font-size: 14px; background: var(--gold-tint); color: #5f4200; padding: 10px 12px; border-radius: var(--radius); margin-top: 12px; }
.prose p { margin-bottom: 14px; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 23px; margin: 28px 0 10px; }
.prose h3 { margin: 20px 0 6px; }
.prose li { margin-bottom: 6px; }
.article { max-width: 760px; margin-left: auto; margin-right: auto; padding: 40px 44px; }
.article h1 { font-size: 36px; }
.article .prose { font-size: 18px; line-height: 1.72; }
.lead { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); margin: 14px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.source, .disclaimer { font-size: 15px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.disclaimer { color: var(--muted); border: 0; padding-top: 0; margin-top: 8px; }
.thread h1 { margin-bottom: 4px; }
.thread .prose { margin-top: 16px; font-size: 17px; }
.reply { margin-bottom: 0; }
.reply-accepted { border-left: 4px solid var(--green); }
.reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.report-link { color: var(--muted); font-size: 13px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: 0; }
.review-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-form h3 { margin-bottom: 10px; }
.stars { color: var(--gold-dark); letter-spacing: 1px; }
.stars-off { color: #d5cfc2; }
.quote { border-left: 3px solid var(--line); padding: 8px 14px; margin: 10px 0; background: var(--bg-alt); overflow-wrap: anywhere; }

/* Sponsored articles */
.sponsored-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 22px; }
.sponsored-card { background: #fffdf6; border: 1px solid #ecdca8; border-radius: var(--radius); padding: 18px 20px; }
.sponsored-card h3 { margin: 8px 0 6px; }
.sponsored-card h3 a { color: var(--ink); text-decoration: none; }
.sponsored-card p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.sponsored-top, .sponsored-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.sponsored-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.sponsored-close:hover { color: var(--ink); }
.article-side { max-width: 760px; margin: 0 auto 22px; }
.paid-note { background: var(--gold-tint); color: #5f4200; border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.sponsored-card.is-floating { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 340px; max-width: calc(100vw - 24px); box-shadow: 0 16px 40px rgba(23, 33, 47, 0.3); opacity: 0; transform: translateY(24px); transition: opacity 0.4s ease, transform 0.4s ease; }
.sponsored-card.is-floating.is-in { opacity: 1; transform: none; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.bubble { max-width: 80%; background: var(--bg-alt); padding: 10px 14px; border-radius: 10px 10px 10px 2px; align-self: flex-start; overflow-wrap: anywhere; }
.bubble p { margin: 0 0 6px; }
.bubble-me { align-self: flex-end; background: var(--navy-tint); border-radius: 10px 10px 2px 10px; }
.bubble-meta { font-size: 12px; color: var(--muted); }

/* Forms */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.field.grow { flex: 1; min-width: 180px; margin-bottom: 0; }
.inline-form .field { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; font: 16px var(--sans); border: 1px solid #c9c3b6; border-radius: var(--radius); background: #fff; color: var(--ink);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 40, 75, 0.14); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin-bottom: 12px; }
.check input { margin-top: 5px; }
.form-errors { background: var(--red-tint); border-left: 4px solid var(--red); color: #7f1a14; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.form-errors ul { margin: 0; }
.danger-title { color: var(--red); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin-bottom: 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #aab6c8; padding: 44px 0 30px; font-size: 14px; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 8px; }
.footer-about p:last-child { max-width: 340px; }
.site-footer h2 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.site-footer nav a { display: block; color: #d3dbe7; text-decoration: none; padding: 4px 0; }
.site-footer nav a:hover { color: var(--gold); }
.footer-warn { color: #f1d58a; }
.footer-small { margin: 0; font-size: 13px; }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .header-row { flex-wrap: wrap; gap: 8px 16px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .header-actions { margin-left: auto; }
  .brand-text small { display: none; }
  .brand-logo { height: 36px; }
  .with-side, .detail, .two-col, .home-grid, .field-row { grid-template-columns: 1fr; }
  .backdrop { height: 210px; }
  .backdrop-caption { left: 16px; right: 16px; top: 12px; font-size: 12px; }
  .sheet { margin: -110px 10px 0; padding: 22px 16px 40px; }
  .sheet-home { margin-top: -30px; }
  .hero { min-height: 480px; }
  .hero-text { padding: 36px 0 120px; }
  .hero h1 { font-size: 33px; }
  .hero p { font-size: 17px; }
  .hero-shade { background: linear-gradient(0deg, rgba(11, 27, 52, 0.92) 0%, rgba(11, 27, 52, 0.62) 55%, rgba(11, 27, 52, 0.35) 100%); }
  .hero-dots { left: 16px; bottom: 96px; }
  .hero-caption { left: 16px; right: 16px; bottom: 48px; text-align: left; }
  .hero p.hero-caption { font-size: 12px; }
  h1 { font-size: 27px; }
  .article { padding: 24px 18px; }
  .article h1 { font-size: 29px; }
  .article .prose { font-size: 17px; }
  .ad-banner { flex-wrap: wrap; gap: 6px 12px; }
  .ad-body { flex-basis: 100%; order: 3; }
  .bubble { max-width: 92%; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-about { grid-column: 1 / -1; }
  .sponsored-card.is-floating { right: 12px; bottom: 12px; }
}

/* ---- added 24/11/2026: jobs, photos, firms, events, cities, tools, TV ---- */
.nav-link { padding: 8px 9px; font-size: 14.5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tile-photo { display: block; margin: -18px -20px 14px; border-bottom: 1px solid var(--line-soft); }
.tile-photo img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.stack .tile .tile-photo img { height: 140px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 16px 0; }
.gallery img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a:first-child img { height: 268px; }
.photo-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-pick label { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.photo-pick img { display: block; border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; }
input[type="file"] { font: 15px var(--sans); width: 100%; padding: 10px; border: 1px dashed #c9c3b6; border-radius: var(--radius); background: #fff; }
input[type="datetime-local"] { width: 100%; padding: 10px 12px; font: 16px var(--sans); border: 1px solid #c9c3b6; border-radius: var(--radius); background: #fff; color: var(--ink); }
.event-row { display: flex; gap: 18px; align-items: center; }
.event-date { flex: 0 0 62px; text-align: center; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 6px 0 8px; background: #fff; }
.event-date strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); }
.event-date span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.event-main { flex: 1; min-width: 0; }
.city-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.city-strip a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.city-strip a:hover { border-color: var(--ink); color: var(--ink); }
.calc-wrap { margin-top: 18px; margin-bottom: 0; }
.calc td:not(:first-child), .calc th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.calc-net td { font-weight: 700; color: var(--green); border-top: 2px solid var(--ink); font-size: 15px; }
.small { font-size: 13px; margin-top: 14px; }
.fx-rate { font-family: var(--serif); font-size: 30px; color: var(--ink); margin-bottom: 14px; }
.fx-result { font-size: 18px; margin-top: 14px; }
.tv-frame { position: relative; margin: -18px -20px 14px; aspect-ratio: 16 / 9; background: #000; }
.tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kv-tight { grid-template-columns: 70px 1fr; }
@media (max-width: 900px) {
  .gallery a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery a:first-child img { height: 200px; }
  .head-actions { width: 100%; }
}

/* Pictures on news articles */
.article-figure { margin: 0 0 24px; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.article-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.admin-thumb { display: block; border: 1px solid var(--line); border-radius: var(--radius); object-fit: cover; }
fieldset.field { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
fieldset.field legend { font-weight: 600; padding: 0 6px; }

/* Added 24/11/2026: warnings, review prompt, chat */
.warn-box { border: 2px solid var(--red); background: #fff5f5; color: var(--ink); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 16px; line-height: 1.55; }
.warn-box strong { color: var(--red); }
.notice { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 0 0 16px; }
.review-ask { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.chatroom { display: grid; grid-template-columns: 1fr 230px; gap: 20px; align-items: start; }
.chat-log { background: #10182b; color: #e8ecf3; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 1.5; height: 430px; overflow-y: auto; padding: 14px 16px; border-radius: var(--radius); }
.chat-log .muted { color: #9aa6bd; }
.chat-line { margin: 0 0 3px; overflow-wrap: anywhere; }
.chat-time { color: #7f8ba3; }
.chat-nick { color: #f0c04a; text-decoration: none; font-weight: 700; }
.chat-x { color: #ff9c9c; text-decoration: none; margin-left: 6px; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; }
.chat-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.chat-side h2 { font-size: 16px; }
@media (max-width: 760px) { .chatroom { grid-template-columns: 1fr; } .chat-log { height: 340px; } }

/* 25/11/2026: weather and horoscope panel, coloured weather cards, zodiac cards */
.rail { font-size: 14px; }
.rail-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.rail-box h2 { font-size: 17px; margin: 0 0 8px; }
.rail-box h2 a { color: var(--ink); text-decoration: none; }
.rail-box h2 a:hover { color: var(--red); }
.rail-date { color: var(--muted); font-size: 13px; margin: -4px 0 10px; }
.rail-weather { list-style: none; margin: 0; padding: 0; }
.rail-weather li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 3px; margin-bottom: 3px; }
.rail-weather strong { margin-left: auto; font-family: var(--serif); font-size: 16px; }
.rail-glyph { width: 18px; text-align: center; font-size: 15px; }
.rail-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sign { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 3px; text-decoration: none; font-size: 12px; color: var(--ink); border: 1px solid transparent; }
.sign:hover { border-color: currentColor; }
.sign-symbol { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif; font-size: 22px; line-height: 1; }
/* the four elements */
.sign-foc { background: #fbe9e4; } .sign-foc .sign-symbol { color: #b8402a; }
.sign-pamant { background: #e8f3ec; } .sign-pamant .sign-symbol { color: #2f6b45; }
.sign-aer { background: #fbf1d3; } .sign-aer .sign-symbol { color: #9a6f06; }
.sign-apa { background: #e4eef7; } .sign-apa .sign-symbol { color: #1f5f8b; }
.sign-card { border-color: transparent; }
.sign-card:target { outline: 3px solid var(--gold); outline-offset: 2px; }
.sign-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sign-head .sign-symbol { font-size: 44px; }
.sign-head h3 { margin: 0; }
.sign-card p { color: var(--ink); }
/* how warm it is */
.t-ger { background: #dde9f7; } .t-ger strong { color: #1d4e89; }
.t-rece { background: #e8f1f8; } .t-rece strong { color: #2a6496; }
.t-bland { background: #e8f3ec; } .t-bland strong { color: #2f6b45; }
.t-cald { background: #fbf1d3; } .t-cald strong { color: #9a6f06; }
.t-canicula { background: #fbe4dc; } .t-canicula strong { color: #b8402a; }
.weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.weather-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 16px; border-radius: var(--radius); font-size: 14px; }
.weather-card strong { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.weather-city { font-weight: 700; color: var(--ink); font-size: 16px; }
.weather-glyph { position: absolute; top: 14px; right: 16px; font-size: 30px; opacity: 0.75; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif; }
/* where the panel sits */
.rail-side { display: none; }
.rail-inline { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rail-inline .rail-box { margin-bottom: 0; }
.rail-inline .rail-signs { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 760px) { .rail-inline { grid-template-columns: 1fr; } .rail-inline .rail-signs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1700px) {
  .rail-inline { display: none; }
  .rail-side { display: block; position: fixed; z-index: 2; top: 118px; width: 236px; left: calc((100vw - 1180px) / 2 - 256px); max-height: calc(100vh - 136px); overflow-y: auto; }
}

/* 25/11/2026 (second pass): the side panel is larger and sits in the middle of the margin */
@media (min-width: 1700px) {
  .rail-side { --rail-w: clamp(240px, calc((100vw - 1180px) / 2 - 90px), 360px); width: var(--rail-w); left: calc(((100vw - 1180px) / 2 - var(--rail-w)) / 2); top: 132px; max-height: calc(100vh - 150px); }
}
@media (min-width: 2000px) {
  .rail-side { font-size: 17px; }
  .rail-side .rail-box { padding: 20px 22px; margin-bottom: 20px; }
  .rail-side .rail-box h2 { font-size: 22px; margin-bottom: 12px; }
  .rail-side .rail-date { font-size: 15px; line-height: 1.45; margin-bottom: 14px; }
  .rail-side .rail-weather li { padding: 9px 12px; margin-bottom: 5px; gap: 12px; }
  .rail-side .rail-weather strong { font-size: 21px; }
  .rail-side .rail-glyph { width: 24px; font-size: 20px; }
  .rail-side .rail-signs { gap: 9px; }
  .rail-side .sign { padding: 12px 4px; font-size: 14px; gap: 5px; }
  .rail-side .sign-symbol { font-size: 32px; }
}
.sky-card h2 { font-size: 20px; margin-bottom: 8px; }
.sky-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 0 0 12px; }
.sky-list li { background: var(--navy-tint); color: var(--navy); padding: 5px 12px; border-radius: 3px; font-size: 14px; font-weight: 600; }
.signs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.signs-list .sign-card { padding: 22px 24px; border-radius: var(--radius); scroll-margin-top: 110px; }
.sign-general { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.sign-areas { margin: 0; display: grid; gap: 10px; }
.sign-areas dt { font-weight: 700; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.sign-areas dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.sign-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, 0.12); font-size: 14px; font-style: italic; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, 0.14); display: block; }
.dots i.on { background: var(--navy); }
@media (max-width: 900px) { .signs-list { grid-template-columns: 1fr; } }

/* The paid panel: right margin on a wide screen, a row on the home page otherwise.
   The colours are the flag's: blue, yellow, red, with green as the fourth. */
.ads-box { padding: 0; overflow: hidden; border-color: #cfd6e2; }
.ads-box h2 { margin: 0; padding: 9px 16px; background: var(--navy); background-image: linear-gradient(90deg, #12284b 0 60%, #1c3d70); border-bottom: 3px solid var(--gold); }
.ads-box h2 span { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #f6d77a; }
.ad-card { display: flex; flex-direction: column; gap: 4px; margin: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 5px solid var(--navy); background: #f1f5fb; color: var(--body); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ad-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23, 33, 47, 0.14); color: var(--body); }
.ad-card img { display: block; width: calc(100% + 28px); max-width: none; height: 120px; object-fit: cover; margin: -12px -14px 8px; border-radius: 3px 3px 0 0; }
.ad-card strong { font-family: var(--serif); font-size: 17px; line-height: 1.25; color: var(--ink); }
.ad-kind { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.ad-price { font-weight: 700; color: var(--red); }
.ad-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ad-go { font-weight: 700; color: var(--navy); white-space: nowrap; }
.ad-c1 { background: #fdf5dc; border-left-color: var(--gold); } .ad-c1 .ad-kind, .ad-c1 .ad-go { color: #8a6300; }
.ad-c2 { background: #fbebe8; border-left-color: var(--red); } .ad-c2 .ad-kind, .ad-c2 .ad-go { color: var(--red); }
.ad-c3 { background: #e8f3ec; border-left-color: var(--green); } .ad-c3 .ad-kind, .ad-c3 .ad-go { color: var(--green); }
.ad-free { background: repeating-linear-gradient(135deg, #fffaf0 0 14px, #fdf1d6 14px 28px); border: 1px dashed var(--gold-dark); border-left: 5px solid var(--gold); }
.ad-free .ad-kind, .ad-free .ad-go { color: #8a6300; }
.rail-ads-inline { display: block; margin-top: 14px; }
.rail-ads-inline .ads-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rail-ads-inline .ads-box h2 { grid-column: 1 / -1; }
@media (min-width: 1700px) {
  .rail-ads-inline { display: none; }
  .rail-side.rail-right { left: auto; right: calc(((100vw - 1180px) / 2 - var(--rail-w)) / 2); }
}
@media (min-width: 2000px) {
  .rail-right .ads-box { padding: 0; }
  .rail-right .ads-box h2 { font-size: inherit; margin: 0; padding: 12px 20px; }
  .rail-right .ads-box h2 span { font-size: 13px; }
  .rail-right .ad-card { margin: 16px; padding: 16px 18px; gap: 6px; }
  .rail-right .ad-card img { width: calc(100% + 36px); margin: -16px -18px 10px; height: 150px; }
  .rail-right .ad-card strong { font-size: 21px; }
  .rail-right .ad-kind { font-size: 11px; }
  .rail-right .ad-foot { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .ad-card { transition: none; } .ad-card:hover { transform: none; } }

/* ---- Colour pass, 25/11/2026 -------------------------------------------------
   Asked for by Robert: "more colour across the whole site". The palette stays
   the flag's blue, yellow and red, with green as the fourth; nothing here
   changes layout, only tints, rules and labels. Delete this block to go back
   to the plain editorial look. */
:root { --blue: #1d4f9c; --blue-tint: #e7eefa; --ro-flag: linear-gradient(90deg, #002b7f 0 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66%); }
body { background: linear-gradient(180deg, #e9e5dc 0, #e6e7e6 100%) fixed; }

/* header and navigation */
.site-header::before { height: 5px; }
.nav-link:hover { color: var(--blue); border-bottom-color: #9db6de; }
.nav-link.active { color: var(--blue); border-bottom-color: var(--red); }
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--red); }
.side-link.active { color: var(--blue); box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; }

/* the sheet and section headings carry the three colours */
.sheet { border-top: 0; }
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ro-flag); }
.section-head, .section-title { border-bottom: 3px solid; border-image: linear-gradient(90deg, #002b7f 0 70px, #fcd116 70px 140px, #ce1126 140px 210px, var(--line) 210px) 1; }
.page-head { border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--blue) 0 120px, var(--line) 120px) 1; }
.page-head h1, .article h1 { color: var(--navy); }
.prose h2 { color: var(--navy); padding-left: 12px; border-left: 4px solid var(--gold); }

/* labels become small tinted tags */
.badge { background: var(--blue-tint); color: var(--blue); padding: 3px 8px; border-radius: 3px; }
.badge-ok { background: var(--green-tint); color: var(--green); }
.badge-warn { background: var(--gold-tint); color: #7a5200; }
.badge-danger { background: var(--red-tint); color: var(--red); }
.badge + .badge { margin-left: 6px; }

/* cards: a coloured edge that takes turns through the palette */
.tile { border-top: 3px solid var(--blue); }
.tiles > .tile:nth-child(4n+2) { border-top-color: var(--gold); }
.tiles > .tile:nth-child(4n+3) { border-top-color: var(--red); }
.tiles > .tile:nth-child(4n+4) { border-top-color: var(--green); }
.tiles > .tile:nth-child(4n+2) .badge:not(.badge-ok):not(.badge-warn):not(.badge-danger) { background: var(--gold-tint); color: #7a5200; }
.tiles > .tile:nth-child(4n+3) .badge:not(.badge-ok):not(.badge-warn):not(.badge-danger) { background: var(--red-tint); color: var(--red); }
.tiles > .tile:nth-child(4n+4) .badge:not(.badge-ok):not(.badge-warn):not(.badge-danger) { background: var(--green-tint); color: var(--green); }
.tile:hover { box-shadow: 0 8px 22px -10px rgba(23, 33, 47, 0.35); }
.tile-photo { margin-top: -18px; }
.row-card { border-left: 4px solid var(--blue); }
.stack > .row-card:nth-child(4n+2) { border-left-color: var(--gold); }
.stack > .row-card:nth-child(4n+3) { border-left-color: var(--red); }
.stack > .row-card:nth-child(4n+4) { border-left-color: var(--green); }
.row-card:hover { box-shadow: 0 6px 18px -10px rgba(23, 33, 47, 0.35); }
.side { border-top: 3px solid var(--gold); }
.stat { border-top: 3px solid var(--blue); background: var(--blue-tint); }
.stats > .stat:nth-child(4n+2) { border-top-color: var(--gold); background: var(--gold-tint); }
.stats > .stat:nth-child(4n+3) { border-top-color: var(--red); background: var(--red-tint); }
.stats > .stat:nth-child(4n+4) { border-top-color: var(--green); background: var(--green-tint); }
.table th { border-bottom-color: var(--blue); color: var(--blue); }
.notice { border-left-color: var(--blue); background: var(--blue-tint); padding: 8px 12px; color: var(--body); }

/* buttons and links */
a { color: var(--blue); }
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.ad-banner { background: linear-gradient(90deg, var(--gold-tint), #fff 55%); }
.rail-box { border-top: 3px solid var(--blue); }
.rail-box.ads-box { border-top: 0; }

/* footer */
.site-footer { background: linear-gradient(180deg, #0f2550, var(--navy-dark)); }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--ro-flag); margin: -44px 0 39px; }
.site-footer h2 { color: var(--gold); }

/* The paid panel is as tall as the weather and horoscope panel across the page
   (app.js copies the height); its cards share the room between them. */
@media (min-width: 1700px) {
  .rail-right { display: flex; flex-direction: column; }
  .rail-right .ads-box { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .rail-right .ad-card { flex: 1; justify-content: center; }
  .rail-right .ad-card img { flex: 1 1 90px; min-height: 90px; height: auto; }
  .rail-side:not(.rail-right) .rail-box:last-child { margin-bottom: 0; }
}

/* Weather page: one detailed card a city (src/routes/more.js, weatherCard).
   The head takes its colour from how warm it is; the icons are drawn in SVG. */
.wx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 26px; }
.wx { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 24px -18px rgba(23, 33, 47, 0.5); transition: transform 0.18s ease-out, box-shadow 0.18s; }
.wx:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(23, 33, 47, 0.55); }
.wx-head { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 16px 18px 18px; color: #fff; background: linear-gradient(140deg, #2f6aa6, #7db3dc); overflow: hidden; }
.wx-head::after { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.wx-ger .wx-head { background: linear-gradient(140deg, #1d3f78, #5a8fd2); }
.wx-rece .wx-head { background: linear-gradient(140deg, #2f6aa6, #7db3dc); }
.wx-bland .wx-head { background: linear-gradient(140deg, #2c7a55, #86c79f); }
.wx-cald .wx-head { background: linear-gradient(140deg, #c98206, #f2c44e); }
.wx-canicula .wx-head { background: linear-gradient(140deg, #b23a22, #ee8f5d); }
.wx-place h3 { color: #fff; font-size: 21px; }
.wx-place span { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.9; }
.wx-head > .wx-icon { position: relative; z-index: 1; width: 62px; height: 62px; grid-row: span 2; align-self: center; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2)); }
.wx-now { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 0; }
.wx-now strong { font-family: var(--serif); font-size: 52px; line-height: 0.95; }
.wx-now span { font-size: 14px; line-height: 1.3; padding-bottom: 4px; }
.wx-icon { width: 26px; height: 26px; flex-shrink: 0; }
.wi-sun circle { fill: #ffd23f; } .wi-sun line { stroke: #ffd23f; stroke-width: 2.6; stroke-linecap: round; }
.wi-moon { fill: #f3e9b8; }
.wi-cloud { fill: #fff; } .wi-back { fill: #dfe6ef; }
.wi-rain line { stroke: #cfe6ff; stroke-width: 2.6; stroke-linecap: round; }
.wi-snow circle { fill: #fff; }
.wi-bolt { fill: #ffd23f; }
.wi-fog line { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
/* on the white part of the card the same icons need ink, not white */
.wx-hours .wi-cloud, .wx-days .wi-cloud { fill: #9aa9bd; } .wx-hours .wi-back, .wx-days .wi-back { fill: #c5cfdc; }
.wx-hours .wi-sun circle, .wx-days .wi-sun circle, .wx-hours .wi-bolt, .wx-days .wi-bolt { fill: #eaa50c; } .wx-hours .wi-sun line, .wx-days .wi-sun line { stroke: #eaa50c; }
.wx-hours .wi-moon, .wx-days .wi-moon { fill: #7d8db3; }
.wx-hours .wi-rain line, .wx-days .wi-rain line { stroke: #2f7fc4; }
.wx-hours .wi-snow circle, .wx-days .wi-snow circle { fill: #6fa8dc; }
.wx-hours .wi-fog line, .wx-days .wi-fog line { stroke: #9aa9bd; }
.wx-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-bottom: 1px solid var(--line-soft); }
.wx-figures div { padding: 10px 18px; border-top: 1px solid var(--line-soft); }
.wx-figures div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.wx-figures div:nth-child(-n+2) { border-top: 0; }
.wx-figures div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.wx-figures dt { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wx-figures dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 16px; }
.wx-figures small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.wx-hours { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 10px; background: #f6f8fb; border-bottom: 1px solid var(--line-soft); }
.wx-hours div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.wx-hours div + div { border-left: 1px solid var(--line-soft); }
.wx-hours strong { font-size: 16px; color: var(--ink); }
.wx-days { list-style: none; margin: 0; padding: 8px 18px 12px; }
.wx-days li { display: grid; grid-template-columns: 1fr 26px 30px 64px 30px; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.wx-days li + li { border-top: 1px solid var(--line-soft); }
.wx-day { text-transform: capitalize; color: var(--ink); font-weight: 600; }
.wx-min { text-align: right; color: #2a6496; font-weight: 600; }
.wx-max { color: #b8402a; font-weight: 700; }
.wx-bar { display: block; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.wx-bar i { display: block; height: 100%; min-width: 8px; border-radius: 3px; background: linear-gradient(90deg, #5a8fd2, #f2c44e 55%, #e0623c); }
.wx-from-0 { margin-left: 0%; } .wx-from-1 { margin-left: 10%; } .wx-from-2 { margin-left: 20%; } .wx-from-3 { margin-left: 30%; } .wx-from-4 { margin-left: 40%; } .wx-from-5 { margin-left: 50%; } .wx-from-6 { margin-left: 60%; } .wx-from-7 { margin-left: 70%; } .wx-from-8 { margin-left: 80%; } .wx-from-9 { margin-left: 90%; } .wx-from-10 { margin-left: 100%; } 
.wx-to-0 { margin-right: 100%; } .wx-to-1 { margin-right: 90%; } .wx-to-2 { margin-right: 80%; } .wx-to-3 { margin-right: 70%; } .wx-to-4 { margin-right: 60%; } .wx-to-5 { margin-right: 50%; } .wx-to-6 { margin-right: 40%; } .wx-to-7 { margin-right: 30%; } .wx-to-8 { margin-right: 20%; } .wx-to-9 { margin-right: 10%; } .wx-to-10 { margin-right: 0%; } 
.wx-wait { padding: 14px 18px; margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wx { transition: none; } .wx:hover { transform: none; } }

/* The side panel's weather list uses the same drawn icons, in ink. */
.rail-weather .wx-icon { width: 24px; height: 24px; }
.rail-weather .wi-cloud { fill: #8b9bb2; } .rail-weather .wi-back { fill: #b9c5d5; }
.rail-weather .wi-sun circle, .rail-weather .wi-bolt { fill: #eaa50c; } .rail-weather .wi-sun line { stroke: #eaa50c; }
.rail-weather .wi-moon { fill: #7d8db3; }
.rail-weather .wi-rain line { stroke: #2f7fc4; }
.rail-weather .wi-snow circle { fill: #4f8fd0; }
.rail-weather .wi-fog line { stroke: #8b9bb2; }
@media (min-width: 2000px) { .rail-side .rail-weather .wx-icon { width: 32px; height: 32px; } }

/* Horoscope page, second design (25/11/2026): a coloured head for each sign's
   element, two paragraphs, three scored areas and the day's small extras. */
.sky-card { position: relative; overflow: hidden; margin-bottom: 18px; padding: 22px 26px; border-radius: 8px; color: #dfe7f5; background: radial-gradient(circle at 88% 20%, #2f4f8f 0, rgba(47, 79, 143, 0) 42%), linear-gradient(135deg, #0b1b34, #1c2f5e 60%, #3a2a66); }
.sky-card::after { content: "☾︎"; position: absolute; right: 26px; top: 4px; font-size: 92px; line-height: 1; color: rgba(246, 215, 122, 0.28); font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif; }
.sky-card h2 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.sky-card p { position: relative; margin: 0; font-size: 14px; color: #b9c6dd; max-width: 720px; }
.sky-card .sky-list { position: relative; margin-bottom: 14px; }
.sky-card .sky-list li { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(246, 215, 122, 0.45); border-radius: 20px; padding: 6px 14px; }
.sign-jump { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-bottom: 22px; }
.sign-jump .sign { padding: 9px 2px; }
.sign-jump .sign:hover { border-color: var(--ink); }
@media (max-width: 900px) { .sign-jump { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 520px) { .sign-jump { grid-template-columns: repeat(4, 1fr); } }

.signs-list .sign-card { padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 12px 26px -20px rgba(23, 33, 47, 0.55); --el: #b8402a; --el-2: #e58a4e; --el-tint: #fdf1ec; }
.signs-list .sign-pamant { --el: #2c6b47; --el-2: #7fb86a; --el-tint: #eef6ef; }
.signs-list .sign-aer { --el: #a8760a; --el-2: #e9c04a; --el-tint: #fdf6e1; }
.signs-list .sign-apa { --el: #1d568c; --el-2: #5aa3c9; --el-tint: #eaf2f9; }
.sc-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: #fff; background: linear-gradient(135deg, var(--el), var(--el-2)); overflow: hidden; }
.sc-head::before { content: ""; position: absolute; right: -50px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.sc-mark { position: relative; flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.55); font-size: 36px; line-height: 1; color: #fff; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif; }
.sc-title { position: relative; flex: 1; min-width: 0; }
.sc-title h3 { color: #fff; font-size: 26px; margin: 0 0 2px; }
.sc-title span { font-size: 13px; opacity: 0.92; }
.sc-score { position: relative; text-align: center; padding: 8px 14px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); }
.sc-score strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.sc-score span { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.sc-body { padding: 20px 22px 18px; }
.sc-theme { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--el); }
.sc-theme span { display: block; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.signs-list .sign-general { font-size: 16px; line-height: 1.65; margin: 0 0 12px; color: var(--body); }
.sc-areas { display: grid; gap: 10px; margin-top: 16px; }
.sc-area { background: var(--el-tint); border-left: 4px solid var(--el); border-radius: 0 6px 6px 0; padding: 12px 14px; display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 4px 12px; }
.sc-area h4 { margin: 0; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.sc-area h4 span { color: var(--el); font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif; }
.sc-area p { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.meter { display: block; height: 8px; border-radius: 4px; background: rgba(23, 33, 47, 0.12); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--el), var(--el-2)); }
.meter-1 { width: 20%; } .meter-2 { width: 40%; } .meter-3 { width: 60%; } .meter-4 { width: 80%; } .meter-5 { width: 100%; }
.signs-list .sign-note { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed #b9a56a; border-radius: 6px; background: #fffaf0; font-style: normal; font-size: 14px; color: var(--body); }
.sc-extras { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.sc-extras strong { color: var(--ink); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, 0.2); }
.swatch-rosu { background: #c8322a; } .swatch-albastru { background: #2a62b8; } .swatch-verde { background: #2f8f55; } .swatch-galben { background: #f2c81e; } .swatch-portocaliu { background: #ec8a22; }
.swatch-violet { background: #7a4bb5; } .swatch-turcoaz { background: #1fa7a0; } .swatch-alb { background: #fff; } .swatch-auriu { background: #c9a227; } .swatch-roz { background: #e879a6; }

.sky-card .sky-tone { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: #fff; margin-bottom: 10px; }

.sky-card .sky-mercury { font-size: 16px; color: #f6d77a; }
