/* منصة القناة — the newspaper look.
   Day edition: newsprint and ink. Night edition (dark mode): the same paper under a desk lamp. */
:root {
  --paper: #efe6d2;
  --paper-2: #e6dcc5;
  --paper-3: #f6f0e2;
  --ink: #1b1915;
  --ink-2: #4a443a;
  --ink-3: #7a705f;
  --rule: rgba(27, 25, 21, .55);
  --rule-soft: rgba(27, 25, 21, .22);
  --accent: #d4561a;
  --red: #b3261e;
  --blue: #1f4e8c;
  --green: #2f6b3a;
  --gold: #a87a12;
  --grain-a: rgba(60, 40, 10, .06);
  --grain-b: rgba(60, 40, 10, .04);
  /* LBC is the platform's own face (bold only): headlines, buttons and labels. Long reading text stays in Plex. */
  --serif: "LBC", "Amiri", "Noto Naskh Arabic", serif;
  --sans: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --kufi: "LBC", "IBM Plex Sans Arabic", sans-serif;
  --radius: 14px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1a16; --paper-2: #24211c; --paper-3: #2a2620;
    --ink: #ece3d0; --ink-2: #c9bfa9; --ink-3: #978c77;
    --rule: rgba(236, 227, 208, .45); --rule-soft: rgba(236, 227, 208, .16);
    --accent: #f07a3a; --red: #e0584f; --blue: #6f9ee0; --green: #6fb37b; --gold: #e0b54a;
    --grain-a: rgba(255, 240, 200, .035); --grain-b: rgba(255, 240, 200, .025);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1a16; --paper-2: #24211c; --paper-3: #2a2620;
  --ink: #ece3d0; --ink-2: #c9bfa9; --ink-3: #978c77;
  --rule: rgba(236, 227, 208, .45); --rule-soft: rgba(236, 227, 208, .16);
  --accent: #f07a3a; --red: #e0584f; --blue: #6f9ee0; --green: #6fb37b; --gold: #e0b54a;
  --grain-a: rgba(255, 240, 200, .035); --grain-b: rgba(255, 240, 200, .025);
  color-scheme: dark;
}

@font-face { font-family: "LBC"; src: url("../brand/LBC_bold.otf") format("opentype"); font-weight: 400 900; font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--grain-a) 1px, transparent 1.2px), radial-gradient(var(--grain-b) 1px, transparent 1.2px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 2px 3px;
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* The interface in English (i18n.js): the page runs left to right, but what people wrote keeps its own direction,
   so an Arabic story stays right-to-left inside the English page. */
html.en .story h3, html.en .story p, html.en .lead h2, html.en .cols, html.en .intro, html.en .article h1, html.en .article .body,
html.en .adpage h1, html.en .adpage .body, html.en .ad .txt, html.en .tiptext, html.en .msg p, html.en .reply p, html.en .sp-house b,
html.en .newslist h3 { unicode-bidi: plaintext; text-align: start; }
html.en body { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
html.en .ad.featured::before { content: "★ Featured"; right: auto; left: 12px; }
html.en .skins .mini.paper::before, html.en .skins .mini.modern::before { content: "The Channel"; }
html.en .dateline span + span::before { margin-left: 0; margin-right: 10px; }
/* the language link sits in the laptop top bar only; phones switch from «حسابي» */
.nav a.langlink { display: none; }

/* website only: the «حمّل التطبيق» bar above the page */
.getapp { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 14px; background: var(--accent);
          font: 700 14px var(--sans); }
.getapp[hidden] { display: none; }
.getapp a { color: #fff; }
.getapp button { color: #fff; opacity: .85; font-size: 15px; padding: 0 4px; }
#app { min-height: 100%; padding: calc(var(--safe-t) + 6px) 0 calc(var(--nav-h) + var(--safe-b) + 16px); max-width: 560px; margin: 0 auto; }
.page { padding: 0 16px; animation: inkin .25s ease-out; }
@keyframes inkin { from { transform: translateY(5px); } to { transform: none; } }

/* ---------- the masthead ---------- */
.mast { text-align: center; padding-top: 4px; }
.dateline { display: flex; justify-content: space-between; font: 500 11px var(--sans); color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.mast h1 { font: 700 46px/1.15 var(--serif); margin: 4px 0 2px; }
.mast h1 em { font-style: normal; color: var(--accent); }
.rule2 { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); height: 6px; }
.strip { display: flex; justify-content: space-between; gap: 6px; font: 600 13px var(--sans); padding: 8px 2px; border-bottom: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { white-space: nowrap; padding: 0 2px; }
.strip a.on { color: var(--accent); text-decoration: underline 2px; text-underline-offset: 6px; }

/* The masthead stays at the top while reading; once the page scrolls it folds to a slim bar
   (the date line goes, the name shrinks) and the section strip stays in reach. */
.mast, .head {
  position: sticky; top: 0; z-index: 15;
  margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--grain-a) 1px, transparent 1.2px), radial-gradient(var(--grain-b) 1px, transparent 1.2px);
  background-size: 5px 5px, 7px 7px; background-position: 0 0, 2px 3px;
}
.mast .dateline { max-height: 30px; overflow: hidden; transition: max-height .25s ease, opacity .2s ease, padding .25s ease; }
.mast h1 { transition: font-size .25s ease, margin .25s ease; }
.mast .rule2 { transition: height .25s ease, opacity .2s ease; }
.mast.compact .dateline { max-height: 0; opacity: 0; padding-bottom: 0; border-bottom-width: 0; }
.mast.compact h1 { font-size: 27px; margin: 2px 0 0; }
.mast.compact .strip { padding-top: 6px; padding-bottom: 6px; }
.mast.compact { box-shadow: 0 6px 12px -10px rgba(0, 0, 0, .35); }
/* the platform's Kufic logo in place of the typed name; it shrinks with the folding masthead */
.mast h1.brand { line-height: 0; margin: 8px 0 6px; }
.mast h1.brand img { height: 50px; width: auto; margin: 0 auto; transition: height .25s ease; }
.mast.compact h1.brand { margin: 4px 0 2px; }
.mast.compact h1.brand img { height: 28px; }

/* every photo has rounded corners */
.photo, .gallery img, .newslist img, .ad .thumb, .photos .slot, .sponsor, .sponsor img { border-radius: var(--radius); }
.newslist img, .ad .thumb { border-radius: 8px; }
.photo figcaption { border-radius: 0 0 var(--radius) var(--radius); }

/* page header for inner pages */
.head { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 3px double var(--ink); margin-bottom: 12px; }
.head h2 { font: 700 26px/1.3 var(--serif); flex: 1; }
.head .back { font: 600 14px var(--sans); padding: 6px 2px; color: var(--ink-2); }
.section-title { font: 700 13px var(--sans); color: var(--paper); background: var(--ink); text-align: center; padding: 4px; margin: 18px 0 0; }
.section-title.out { color: var(--ink); background: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* ---------- news ---------- */
.kicker { font: 700 11px var(--sans); color: #fff; background: var(--red); display: inline-block; padding: 1px 8px; }
.kicker.soft { background: var(--ink); color: var(--paper); }
.lead { padding: 14px 0 4px; border-bottom: 1px solid var(--ink); }
.lead h2 { font: 700 26px/1.35 var(--serif); margin: 6px 0 10px; }
.photo { position: relative; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 10px; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: grayscale(.25) contrast(1.05) sepia(.12); }
.photo.halftone::after { content: ""; position: absolute; inset: 0; background: radial-gradient(var(--paper) .8px, transparent 1.2px) 0 0/4px 4px; opacity: .35; mix-blend-mode: screen; pointer-events: none; }
.photo figcaption { font: 400 11.5px var(--sans); color: var(--ink-3); padding: 4px 6px; border-top: 1px solid var(--rule-soft); background: var(--paper-3); }
.cols { font: 400 15px/1.8 var(--serif); text-align: start; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.byline { font: 500 11.5px var(--sans); color: var(--ink-3); margin: 8px 0 12px; }
.story { border-bottom: 1px solid var(--ink); padding: 14px 0 6px; }
.story .k { display: flex; justify-content: space-between; align-items: center; }
.story time { font: 500 11.5px var(--sans); color: var(--ink-3); }
.story h3 { font: 700 21px/1.45 var(--serif); margin: 6px 0 8px; }
/* News photos keep their own shape (the platform's posts are square); only very tall ones are trimmed. */
.lead .photo img, .story .photo img, .article .photo img { aspect-ratio: auto; height: auto; max-height: 125vw; object-fit: cover; }
.photo.video { cursor: pointer; }
.photo.video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); z-index: 1; }
.photo .play { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; z-index: 2;
               background: rgba(20,18,15,.78); border: 3px solid #fff; display: grid; place-items: center; }
.photo .play::after { content: ""; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.photo .watch { position: absolute; bottom: 9px; right: 10px; z-index: 2; font: 700 12.5px var(--sans); color: #fff; display: flex; align-items: center; gap: 6px; }
.photo .watch b { background: #1877f2; color: #fff; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 13px Arial, sans-serif; }
.story p { font: 400 15px/1.75 var(--serif); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: start; }
.story .tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
/* Facebook numbers of a story: likes and comments, tapping opens the post */
.fbstats { display: inline-flex !important; align-items: center; gap: 14px; margin-inline-end: auto; padding: 6px 12px !important; border-radius: 20px;
  background: color-mix(in srgb, #1877f2 10%, transparent); color: var(--ink-2) !important; font: 600 13px var(--sans); }
.fbstats span { display: inline-flex; align-items: center; gap: 5px; }
.fbstats svg { width: 14px !important; height: 14px !important; color: #1877f2; }
.fbstats b { width: 17px; height: 17px; border-radius: 50%; background: #1877f2; color: #fff; display: grid; place-items: center; font: 700 12px Arial, sans-serif; }
.byline .fbstats { margin-inline-start: 8px; vertical-align: middle; }
.story .tools button { display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--sans); color: var(--ink-3); padding: 6px 2px; }
.story .tools svg { width: 15px; height: 15px; }
.photo .album { position: absolute; bottom: 8px; left: 8px; font: 700 11.5px var(--sans); color: #fff; background: rgba(0,0,0,.7); padding: 2px 9px; }
.gallery-hint { font: 500 12px var(--sans); color: var(--ink-3); text-align: center; margin: 6px 0 12px; }
.article .gallery { margin-top: 4px; }
.ad.more { text-align: center; font: 700 13px var(--sans); }
.feed-end { text-align: center; font: 400 14px var(--serif); color: var(--ink-3); padding: 22px 0 6px; }
.feed-end::before, .feed-end::after { content: " ❦ "; color: var(--accent); }
.newslist { list-style: none; }
.newslist li { border-bottom: 1px solid var(--rule-soft); }
.newslist a { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.newslist h3 { font: 700 17px/1.45 var(--serif); }
.newslist .meta { font: 500 11.5px var(--sans); color: var(--ink-3); margin-top: 3px; }
.newslist img { width: 86px; height: 64px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--rule); filter: grayscale(.3) sepia(.1); }
.article h1 { font: 700 30px/1.35 var(--serif); margin: 8px 0 6px; }
.article .body { font: 400 18px/1.95 var(--serif); text-align: start; }
.article .body p + p { margin-top: 12px; }
.article .body p:first-child::first-letter { font-size: 2.1em; font-weight: 700; color: var(--accent); }

/* ---------- classifieds ---------- */
.box { border: 1.5px solid var(--ink); margin-top: 14px; background: color-mix(in srgb, var(--paper-3) 40%, transparent); }
.box > .bar { background: var(--ink); color: var(--paper); font: 700 13.5px var(--sans); text-align: center; padding: 5px; }
.ad { display: block; padding: 12px 12px 11px; border-bottom: 1px dashed var(--rule); position: relative; }
.ad:last-child { border-bottom: 0; }
.ad .txt { padding-left: 76px; font: 400 15px/1.6 var(--serif); }
.ad .txt b { font-weight: 700; }
.ad .meta { font: 500 11.5px var(--sans); color: var(--ink-3); margin-top: 4px; padding-left: 76px; }
.ad .thumb { position: absolute; left: 12px; bottom: 11px; width: 60px; height: 44px; object-fit: cover; border: 1px solid var(--rule); filter: grayscale(.2) sepia(.1); }
.ad.featured { background: color-mix(in srgb, var(--gold) 9%, transparent); border-bottom-style: solid; }
.ad.featured::before { content: "مميّز ★"; position: absolute; top: -1px; right: 12px; font: 700 10px var(--sans); color: var(--paper); background: var(--gold); padding: 0 7px 1px; }
.ad.featured .txt { padding-top: 6px; }

/* rubber stamps */
.stamp { position: absolute; left: 10px; top: 12px; font: 700 13.5px/1.35 var(--kufi); color: var(--red); border: 2px solid currentColor;
         padding: 1px 7px; transform: rotate(-9deg); opacity: .9; border-radius: 3px; white-space: nowrap; }
.stamp::after { content: ""; position: absolute; inset: 1px; border: 1px solid currentColor; opacity: .35; border-radius: 2px; }
.stamp.found { color: var(--green); transform: rotate(7deg); }
.stamp.job { color: var(--blue); transform: rotate(6deg); }
.stamp.seek { color: var(--green); transform: rotate(-6deg); }
/* «وظائف شاغرة / باحثون عن عمل»: two halves of the jobs section */
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 4px; border: 1.5px solid var(--ink); }
.seg a { padding: 10px 6px; text-align: center; font: 700 15px var(--kufi); color: var(--ink); text-decoration: none; }
.seg a.on { background: var(--ink); color: var(--paper); }
.types button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stamp.sale { color: var(--ink); transform: rotate(-4deg); }
.stamp.big { position: static; display: inline-block; font-size: 22px; padding: 2px 14px; border-width: 3px; }
.stamp.inline { position: static; display: inline-block; font-size: 11.5px; padding: 0 6px; border-width: 1.5px; transform: rotate(-3deg); }
.stamp.pending { color: var(--gold); }
.stamp.rejected { color: var(--red); }
.stamp.live { color: var(--green); }
.stamp.closed { color: var(--ink-3); }

/* filters */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); margin-top: 12px; }
.tabs button { font: 600 13px var(--sans); padding: 8px 2px; border-left: 1px solid var(--ink); }
.tabs button:last-child { border-left: 0; }
.tabs button.on { background: var(--ink); color: var(--paper); }
.filters { display: flex; gap: 8px; margin-top: 10px; }
.select, .input, .textarea { width: 100%; background: var(--paper-3); border: 1px solid var(--ink); border-radius: 0; padding: 9px 10px; font: 500 14px var(--sans); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
          background-position: 14px 50%, 19px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 30px; }
.textarea { min-height: 110px; resize: vertical; font: 400 16px/1.7 var(--serif); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.empty { text-align: center; padding: 36px 10px; color: var(--ink-3); font: 400 16px/1.8 var(--serif); }
.empty b { display: block; font: 700 20px var(--serif); color: var(--ink-2); margin-bottom: 4px; }

/* ---------- ad page ---------- */
.adpage .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; }
.adpage h1 { font: 700 27px/1.4 var(--serif); }
.adpage .where { font: 500 13px var(--sans); color: var(--ink-2); margin-top: 4px; }
.adpage .price { font: 700 24px var(--kufi); color: var(--accent); margin-top: 6px; }
.adpage .body { font: 400 18px/1.9 var(--serif); margin: 14px 0; white-space: pre-line; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -16px 0; padding: 0 16px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--ink); scroll-snap-align: center; }
.facts { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; }
.facts div { padding: 8px 10px; font: 500 13px var(--sans); }
.facts div:nth-child(odd) { border-left: 1px solid var(--rule-soft); }
.facts div:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
.facts span { display: block; font-size: 11px; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--sans); padding: 11px 16px; border: 1.5px solid var(--ink); background: var(--paper-3); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.wide { width: 100%; }
.btn.small { font-size: 12.5px; padding: 5px 11px; border-width: 1px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; }
.btn svg { width: 18px; height: 18px; }
.btnrow { display: flex; gap: 10px; margin-top: 12px; }
.btnrow .btn { flex: 1; }
/* the manager's tools: many small buttons, so they wrap instead of squeezing into narrow columns */
.admin .btnrow, .review .btnrow { flex-wrap: wrap; }
.admin .btnrow .btn.small, .review .btnrow .btn.small { flex: 1 1 auto; white-space: nowrap; }
.linkish { font: 600 13px var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- forms ---------- */
.field { margin-top: 14px; }
.field label { display: block; font: 700 13px var(--sans); margin-bottom: 5px; }
.field .hint { font: 400 12px var(--sans); color: var(--ink-3); margin-top: 4px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.types button { height: 74px; border: 1.5px dashed var(--rule); position: relative; display: grid; place-items: center; }
.types button .stamp { position: static; font-size: 17px; }
.types button.on { border: 2px solid var(--ink); background: var(--paper-3); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .slot { aspect-ratio: 1; border: 1.5px dashed var(--rule); display: grid; place-items: center; font: 600 12px var(--sans); color: var(--ink-3); position: relative; overflow: hidden; }
.photos .slot img { width: 100%; height: 100%; object-fit: cover; }
.photos .slot .x { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; background: var(--ink); color: var(--paper); font-weight: 700; display: grid; place-items: center; }
.check { display: flex; gap: 9px; align-items: flex-start; font: 400 13px/1.6 var(--sans); margin-top: 14px; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; }
.err { color: var(--red); font: 600 13px var(--sans); margin-top: 8px; }

/* ---------- notices ---------- */
.notice { border: 1.5px solid var(--ink); padding: 14px; margin-top: 14px; background: var(--paper-3); }
.notice h3 { font: 700 19px var(--serif); margin-bottom: 4px; }
.notice p { font: 400 14px/1.75 var(--sans); color: var(--ink-2); }
.reunited { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--ink); padding: 12px 14px; margin-top: 14px; }
.reunited b { font: 700 32px var(--kufi); color: var(--accent); }
.reunited p { font: 700 16px/1.5 var(--serif); }
.reunited small { display: block; font: 400 12px var(--sans); color: var(--ink-3); }

/* ---------- account and review ---------- */
.profile { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.profile .avatar { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 22px var(--serif); background: var(--paper-3); overflow: hidden; }
.profile .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile b { font: 700 18px var(--serif); display: block; }
.profile small { font: 400 12.5px var(--sans); color: var(--ink-3); }
.mine .ad .txt, .mine .ad .meta { padding-left: 0; }
.mine .ad .state { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.menu { list-style: none; margin-top: 14px; border-top: 1px solid var(--ink); }
.menu li { border-bottom: 1px solid var(--rule-soft); }
.menu a, .menu button { display: flex; justify-content: space-between; width: 100%; padding: 13px 2px; font: 600 14.5px var(--sans); text-align: right; }
.menu .count { background: var(--accent); color: #fff; font: 700 12px var(--sans); padding: 0 8px; border-radius: 10px; }
.review .ad { padding-bottom: 14px; }
.review .ad .txt { padding-left: 0; }
.review .ad .meta { padding-left: 0; }
.review .reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* «تابع القراءة على فيسبوك» under a story that is read in full on the page */
.fbmore { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 10px 0 4px; padding: 10px; font: 700 14px var(--sans);
          color: #fff; background: #1877f2; border: 0; }
.fbmore b { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1877f2; display: grid; place-items: center; font: 700 14px Arial, sans-serif; }
.intro { font: 400 16px/1.8 var(--serif); color: var(--ink-2); }

/* ---------- notes, reporters, moderation ---------- */
.note { font: 400 12.5px/1.75 var(--sans); color: var(--ink-3); margin-top: 10px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn.danger { color: var(--red); border-color: var(--red); }
.notice.danger { border-color: var(--red); }
.notice.danger h3 { color: var(--red); }
.callout { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--ink); padding: 12px 14px; margin-top: 14px; }
.callout .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.callout .ic svg { width: 22px; height: 22px; }
.callout b { font: 700 16px var(--serif); display: block; }
.callout small { font: 400 12.5px/1.6 var(--sans); color: var(--ink-2); }
.rtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs a { white-space: nowrap; font: 600 13px var(--sans); padding: 6px 12px; border: 1px solid var(--ink); }
.rtabs a.on { background: var(--ink); color: var(--paper); }
.rtabs .count, .menu .count { background: var(--accent); color: #fff; font: 700 11px var(--sans); padding: 0 7px; border-radius: 10px; }
.box .bar.sub { background: none; color: var(--ink); border-top: 1px solid var(--ink); border-bottom: 1px dashed var(--rule); font-size: 12.5px; }
.msg { border-bottom: 1px solid var(--rule-soft); padding: 12px 0; }
.msg p, .tiptext { font: 400 15px/1.8 var(--serif); margin: 6px 0; white-space: pre-line; }
.reply { border-right: 3px solid var(--accent); background: var(--paper-3); padding: 8px 10px; margin-top: 8px; font: 600 12px var(--sans); color: var(--ink-2); }
.reply p { font: 400 14px/1.7 var(--sans); color: var(--ink); margin: 4px 0 0; }

/* ---------- sponsored slots: always labelled, never dressed up as news ---------- */
.sponsor { position: relative; margin-top: 14px; border: 1px solid var(--rule); background: var(--paper-3); }
.sponsor img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.sp-label { position: absolute; top: 8px; right: 8px; z-index: 1; font: 700 11px var(--sans); color: #fff; background: rgba(0,0,0,.62); padding: 1px 8px; }
.sp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; font: 600 13px var(--sans); }
.sponsor.house { border-style: dashed; }
.sp-house { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.sp-house b { display: block; font: 700 15px var(--serif); }
.sp-house p { font: 400 12px/1.6 var(--sans); color: var(--ink-3); margin: 2px 0 0; }
.sp-house .btn { flex: none; }
.article .sponsor { margin-top: 22px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.cal span { font: 600 11.5px var(--sans); text-align: center; padding: 6px 0; border: 1px solid var(--rule-soft); }
.cal span.booked { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal span.today { outline: 2px solid var(--ink); }
.stats { display: flex; gap: 14px; font: 600 12.5px var(--sans); color: var(--ink-2); margin-top: 4px; }
.stats b { color: var(--ink); }

/* ---------- bottom nav ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); z-index: 20;
       background: var(--paper-2); border-top: 3px double var(--ink); display: flex; justify-content: space-around; align-items: stretch; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11px var(--sans); color: var(--ink-2); max-width: 112px; }
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--accent); }
.nav a.add span.circle { width: 46px; height: 46px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff;
                         border: 3px double var(--paper-2); box-shadow: 0 0 0 1.5px var(--ink); }
.nav a.add span.circle svg { width: 24px; height: 24px; }

/* ---------- toast & sheet ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translateX(-50%); background: var(--ink); color: var(--paper);
         font: 600 13.5px var(--sans); padding: 9px 16px; z-index: 40; max-width: 90%; text-align: center; animation: inkin .2s; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: 100%; max-width: 560px; border-top: 3px double var(--ink); padding: 18px 16px calc(18px + var(--safe-b)); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet h3 { font: 700 22px var(--serif); }
.sheet p { font: 400 14px/1.75 var(--sans); color: var(--ink-2); margin-top: 6px; }
.google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.google svg { width: 20px; height: 20px; }

/* the newest Facebook comments under a story, and the box that opens the post's comments on Facebook */
.fbcomments { margin: 16px 0 8px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; }
.fbcomments h3 { display: flex; align-items: center; gap: 7px; font: 700 14px var(--sans); margin-bottom: 8px; }
.fbcomments h3 b, .fbcomments .av { width: 20px; height: 20px; border-radius: 50%; background: #1877f2; color: #fff; display: grid; place-items: center; font: 700 13px Arial, sans-serif; flex: none; }
.fbcomments ul { list-style: none; }
.fbcomments li { display: flex; gap: 9px; padding: 8px 0; border-top: 1px solid var(--rule); }
.fbcomments .av { width: 30px; height: 30px; background: color-mix(in srgb, #1877f2 15%, transparent); color: #1877f2; font: 700 14px var(--sans); }
.fbcomments li > div { flex: 1; min-width: 0; }
.fbcomments .who { font: 400 11.5px var(--sans); color: var(--ink-3); }
.fbcomments .who b { font: 700 13px var(--sans); color: var(--ink); }
.fbcomments li p { font: 400 14.5px/1.65 var(--sans); color: var(--ink-2); margin-top: 2px; white-space: pre-line; unicode-bidi: plaintext; }
.fbcomments .none { font: 400 13.5px var(--sans); color: var(--ink-3); padding: 4px 0 8px; }
.fbcomments .linkish { font: 600 13px var(--sans); margin: 4px 0; }
.fbwrite { display: block; width: 100%; text-align: start; margin-top: 8px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink-3); font: 400 14px var(--sans); cursor: text; }

/* grey placeholder cards while a screen loads on a slow connection */
.skel { padding-top: 14px; }
.sk-card { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sk-line, .sk-img { display: block; border-radius: 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 25%, color-mix(in srgb, var(--ink) 13%, transparent) 50%, color-mix(in srgb, var(--ink) 7%, transparent) 75%) 0 0/200% 100%;
  animation: sk 1.2s linear infinite; }
.sk-line { height: 14px; margin: 8px 0; }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-img { aspect-ratio: 1; margin-top: 12px; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* prices and weather: the strip on the front page and the page itself */
.ticker { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 2px; padding: 8px 10px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-3); font: 500 12.5px var(--sans); color: var(--ink-2); white-space: nowrap; }
.ticker::-webkit-scrollbar { display: none; }
.ticker span { display: inline-flex; align-items: center; gap: 4px; padding-inline-end: 8px; border-inline-end: 1px solid var(--rule); }
.ticker span:last-of-type { border: 0; }
.ticker b { color: var(--ink); font-weight: 700; }
.ticker .old { opacity: .55; }
.ticker i { font-style: normal; color: var(--accent); font-weight: 700; margin-inline-start: auto; padding-inline-start: 4px; }
.market .box { margin-top: 14px; padding-bottom: 10px; }
.market .bar small { font: 400 11.5px var(--sans); color: var(--ink-3); margin-inline-start: 6px; }
.rates { width: 100%; border-collapse: collapse; font: 500 14px var(--sans); }
.rates th, .rates td { padding: 9px 10px; border-top: 1px solid var(--rule); text-align: start; }
.rates thead th { border-top: 0; font: 600 11.5px var(--sans); color: var(--ink-3); padding-top: 4px; padding-bottom: 4px; }
.rates td { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.rates th small { font-weight: 400; color: var(--ink-3); }
.rates td.when { font: 400 11px var(--sans); color: var(--ink-3); text-align: end; }
.rates tr.old td, .rates tr.old th { color: var(--ink-3); }
.rates.world td { text-align: end; }
.market .note { font: 400 11.5px/1.6 var(--sans); color: var(--ink-3); padding: 6px 10px 0; }
.market .warn { font: 600 12.5px/1.6 var(--sans); color: #b45309; padding: 8px 10px 0; }
.market .credits { font: 400 11px var(--sans); color: var(--ink-3); text-align: center; margin: 14px 0 4px; }
.wnow { display: flex; align-items: center; gap: 12px; padding: 12px 10px 6px; }
.wnow .big { font-size: 42px; line-height: 1; }
.wnow b { display: block; font: 700 20px var(--sans); }
.wnow small { font: 400 12.5px var(--sans); color: var(--ink-2); }
.days { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px 10px; }
.days li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: var(--paper-2); font: 500 11.5px var(--sans); }
.days .ic { font-size: 22px; }
.days b { font: 700 14px var(--sans); }
.days small { color: var(--ink-3); }
.govs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 10px; }
.govrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--rule); text-align: start; font: 600 13px var(--sans); color: var(--ink); background: transparent; }
.govrow small { grid-column: 1 / -1; font: 400 11px var(--sans); color: var(--ink-3); }
.govrow.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.deg { direction: ltr; unicode-bidi: isolate; }
.rates .old-lira { display: block; font: 400 11px var(--sans); color: var(--ink-3); }
.rates .chg { display: block; font: 600 11px var(--sans); }
.rates .chg.up { color: #15803d; }
.rates .chg.down { color: #b91c1c; }

/* currency and gold cards */
.market .bar { display: flex; align-items: center; gap: 6px; }
.market .bar .pick { margin-inline-start: auto; font: 700 12px var(--sans); color: var(--accent); padding: 4px 10px; border: 1px solid var(--accent); border-radius: 20px; }
.rcard { min-width: 0; border: 1px solid var(--rule); border-radius: 14px; padding: 10px 12px; background: var(--paper-3); }
.rcard.big { margin: 10px; padding: 14px; border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.rcard.old { opacity: .6; }
.rtop { display: flex; align-items: center; gap: 8px; }
.rtop .nm { font: 700 13.5px var(--sans); color: var(--ink); }
.rtop .nm small { font: 400 11px var(--sans); color: var(--ink-3); }
.rtop .chg { white-space: nowrap; flex: none; margin-inline-start: auto; font: 700 11.5px var(--sans); padding: 2px 8px; border-radius: 20px; }
.chg.up { color: #15803d; background: color-mix(in srgb, #15803d 12%, transparent); }
.chg.down { color: #b91c1c; background: color-mix(in srgb, #b91c1c 12%, transparent); }
.code { font: 800 10.5px var(--sans); letter-spacing: .5px; color: #fff; background: var(--ink-2); padding: 3px 6px; border-radius: 6px; direction: ltr; }
.rcard.big .code { background: var(--accent); }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bs > div { display: flex; flex-direction: column; }
.bs small { font: 500 11px var(--sans); color: var(--ink-3); }
.bs b { font: 800 19px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.rcard.big .bs b { font-size: 28px; }
.bs i { font: 400 11px var(--sans); font-style: normal; color: var(--ink-3); }
.rwhen { font: 400 11px var(--sans); color: var(--ink-3); margin-top: 6px; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 10px 6px; }
.rgrid .bs { gap: 6px; }
.rgrid .bs b { font-size: 16px; }
.rgrid .rtop .nm { font-size: 12.5px; line-height: 1.3; }
.rgrid.gold { grid-template-columns: minmax(0, 1fr); }
.rgrid.gold .bs b { font-size: 19px; }
.rcard.guess { border-style: dashed; }
.curpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; max-height: 46vh; overflow: auto; }
.curpick label { display: flex; align-items: center; gap: 6px; font: 500 13px var(--sans); padding: 7px 8px; border: 1px solid var(--rule); border-radius: 10px; }
.curpick .code { font-size: 9.5px; padding: 2px 4px; }
@media (min-width: 1000px) { .rgrid, .rgrid.gold { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rgrid .rtop { gap: 5px; }
.rgrid .rtop .chg { font-size: 10.5px; padding: 2px 5px; }
.photo .watch b.tg { background: #229ed9; font-size: 10px; }
.check { display: flex; align-items: center; gap: 8px; font: 600 14px var(--sans); margin: 10px 0; }
.check input { width: 18px; height: 18px; }
.getapp.update button:first-child { flex: 1; font: 700 13.5px var(--sans); color: #fff; text-align: center; }
.sheet img.bulletin { width: 100%; border-radius: 12px; margin: 8px 0; display: block; }
