
:root { color-scheme: dark; --bg: #080f1a; --panel: #111d2d; --line: #26384f; --muted: #a4b4ca; --text: #edf3fb; --blue: #70b9ff; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at top, #101d30, var(--bg) 64%); color: var(--text); font-family: system-ui, "Segoe UI", Tahoma, sans-serif; min-height: 100vh; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.shell { width: min(100%, 1570px); margin: auto; padding: 24px clamp(16px, 3vw, 42px); }
.masthead { display: grid; grid-template-columns: auto minmax(180px, 470px) auto; align-items: center; justify-content: space-between; gap: 20px; padding-block: 5px 22px; border-bottom: 1px solid var(--line); }
.brand, .search, .header-actions, .signal, .signal span, h2, .story-meta, .unverified { display: flex; align-items: center; gap: 10px; }
.brand { white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; background: #381c2a; border: 1px solid #72323d; color: #ff7886; border-radius: 10px; }
.brand h1 { margin: 0; font-size: clamp(20px, 2.2vw, 34px); line-height: 1.22; font-weight: 850; }
.brand span { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.search, .icon-button { border: 1px solid var(--line); background: #142134; border-radius: 8px; color: var(--muted); }
.search { padding-inline: 12px; min-width: 0; }
.search input { min-width: 0; width: 100%; padding-block: 11px; outline-offset: 0; background: transparent; color: var(--text); }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; flex: none; }
.updated { color: var(--muted); font-size: 13px; }
.updated time { display: block; color: var(--text); }
.dashboard { display: grid; grid-template-columns: 200px minmax(0, 1fr) 255px; gap: 18px; margin-top: 18px; align-items: start; }
.sidebar nav, .rail { display: grid; gap: 10px; }
.sidebar { border-inline-end: 1px solid var(--line); padding-inline-end: 10px; }
.sidebar button, .tabs button, .bottom button { display: flex; align-items: center; gap: 10px; color: var(--muted); border: 1px solid transparent; text-align: start; border-radius: 7px; padding: 10px; min-height: 42px; }
.sidebar button svg { flex: none; }
button[aria-pressed="true"], .sidebar button:hover, .tabs button:hover { background: #183554; border-color: #2c5278; color: #e7f3ff; }
.signal { border: 1px solid #7e343e; min-height: 45px; background: linear-gradient(90deg,#281924,#3e1827); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.signal span { background: #a72c3d; align-self: stretch; font-weight: 800; color: white; padding: 7px 11px; white-space: nowrap; }
.signal p { padding: 7px; margin: 0; color: #ffdbe0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-title h2 { margin: 0; font-size: clamp(20px, 2vw, 27px); }
.section-title span, .story-meta { color: var(--muted); font-size: 13px; }
.story, .panel { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(150deg,#152437,#0e1827 80%); overflow: hidden; }
.story h3 { margin: 9px 0 14px; font-size: 17px; line-height: 1.45; font-weight: 750; }
.story h3 a { display: block; }
.story h3 a:hover, .rail a:hover, .rail button:hover { color: var(--blue); }
.story-copy { padding: 14px; }
.story-meta { flex-wrap: wrap; }
.photo { height: 128px; background: #182940 center / cover no-repeat; }
.lead { display: flex; align-items: stretch; min-height: 190px; margin-bottom: 14px; }
.lead .photo { height: auto; flex: 0 0 40%; }
.lead h3 { font-size: clamp(21px, 2.8vw, 34px); }
.lead .story-copy { align-self: center; padding: 19px; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.unverified { display: inline-flex; width: fit-content; border: 1px solid #576477; border-radius: 999px; padding: 3px 8px; color: #c0cad7; font-size: 13px; }
.unverified span { width: 6px; height: 6px; border-radius: 50%; background: #a0adbe; }
.panel h2 { border-bottom: 1px solid var(--line); padding: 12px; margin: 0; font-size: 17px; font-weight: 800; }
.panel h2 svg, .section-title svg { color: var(--blue); flex: none; }
.rail-links { display: grid; padding: 0 12px; }
.rail-links > * { padding: 10px 0; text-align: start; }
.rail-links > * + * { border-top: 1px solid var(--line); }
.rail-note, .empty { padding: 15px; color: var(--muted); }
.source-row { display: flex; justify-content: space-between; gap: 12px; padding: 15px; border-bottom: 1px solid var(--line); }
.source-row:last-child { border-bottom: 0; }
.good { color: #87d6b0; }
.warn { color: #f8c978; }
.tabs, .bottom { display: none; }
.detail, .login { width: min(calc(100% - 32px), 740px); margin: 40px auto; padding: clamp(18px, 4vw, 35px); }
.detail h1, .login h1 { margin-block: 12px 22px; font-size: clamp(24px, 4vw, 38px); font-weight: 800; }
.detail a { color: var(--blue); }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-bottom: 24px; }
.detail dt { color: var(--muted); }
.original, .login button { display: inline-block; background: #183554; border: 1px solid #2c5278; border-radius: 8px; padding: 8px 13px; }
.login form, .login label { display: grid; gap: 10px; }
.login input { padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1250px) {
  .dashboard { grid-template-columns: 65px minmax(0, 1fr) 225px; }
  .sidebar button { justify-content: center; position: relative; }
  .sidebar button span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .tabs { display: flex; overflow: auto; gap: 7px; padding-top: 10px; scrollbar-width: thin; }
  .tabs button { border-color: var(--line); white-space: nowrap; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .dashboard { grid-template-columns: minmax(0, 1fr) 225px; }
  .sidebar, .updated { display: none; }
}
@media (max-width: 650px) {
  .shell { padding: 12px 12px calc(77px + env(safe-area-inset-bottom)); }
  .masthead { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 6px 12px; }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .dashboard, .stories { display: grid; grid-template-columns: minmax(0, 1fr); }
  .dashboard { gap: 12px; margin-top: 12px; }
  .rail { display: none; }
  .lead { display: block; margin-bottom: 12px; min-height: 0; }
  .lead .photo { height: 162px; }
  .stories .story { display: flex; }
  .stories .photo { flex: 0 0 32%; height: auto; }
  .bottom { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #0e1929; border-top: 1px solid var(--line); z-index: 5; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .bottom button { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 5px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.region { display:block; width:100%; aspect-ratio:287 / 231; background:#0b1625; }
.region path { fill:#192b40; stroke:#6d849e; stroke-width:.75; }
.story-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.story-actions .icon-button { width: 44px; height: 44px; }
.section-note { margin: 0 0 12px; color: var(--muted); }
.logout-button { width: auto; padding-inline: 8px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: transparent; }
[hidden] { display: none !important; }
.story-actions form { margin: 0; }
.source-row bdi { overflow-wrap: anywhere; }
.login form, .search { margin: 0; }
.sidebar a, .tabs a, .bottom a { display: flex; align-items: center; min-height: 42px; padding: 8px; border-radius: 7px; color: var(--muted); }
a[aria-current="page"] { background: #183554; color: var(--text); }
.photo { display: block; width: 100%; object-fit: cover; min-width: 0; }
.lead .photo { width: 40%; }
.search button { border: 0; }
.header-actions form { display: flex; gap: 4px; }
@media (max-width:1250px) { .sidebar { display: none; } .dashboard { grid-template-columns: minmax(0, 1fr) 225px; } .tabs a { white-space: nowrap; } }
@media (max-width:650px) { .dashboard { grid-template-columns: minmax(0,1fr); } .bottom a { justify-content: center; } .lead .photo { width: 100%; } .stories .photo { width: 32%; } .brand-mark { display: none; } }

.yemen-map { margin-block: 1rem; }
.yemen-map iframe { display: block; width: 100%; height: min(70vh, 44rem); min-height: 26rem; border: 0; margin-block: .75rem; }
#original-news-text { box-sizing: border-box; width: 100%; }

.story-date { margin: .35rem 0; font-size: .86rem; }
.save-star { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid currentColor; border-radius: .6rem; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.save-star[aria-pressed="true"] { color: #a16a0a; }
