@import url("https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,700;1,400&family=IBM+Plex+Sans+Arabic:wght@400;600&family=Merriweather:ital,wght@0,700;1,400&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap");

:root {
  --brand: #12328f;
  --accent: #10cdb7;
  --brand-blue: #12328f;
  --brand-blue-deep: #091f6f;
  --brand-blue-soft: #2f68e3;
  --brand-green: #10cdb7;
  --breaking: #d7193f;
  --ink: #0b1f63;
  --muted: #5c6c91;
  --line: #d8e1f1;
  --paper: #ffffff;
  --panel: #f6f8fc;
  --panel-2: #eef2fa;
  --shadow: 0 20px 50px rgba(8, 17, 64, 0.08);
  --shell: min(1320px, calc(100vw - 32px));
  --font-body: "Open Sans", system-ui, -apple-system, sans-serif;
  --font-headline: "Merriweather", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body,
body * {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"],
.admin-workspace input,
.admin-workspace textarea,
.admin-workspace select {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 205, 183, 0.13), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(47, 104, 227, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 260px);
}

h1,
h2,
h3,
blockquote,
.article-header h1,
.category-header h1,
.lead-story h1,
.module-head h2,
.category-lead-card h2,
.section-card h3,
.layout-quote p {
  font-family: var(--font-headline);
}

body.dark {
  --ink: #eef3ff;
  --muted: #a8b3d2;
  --line: rgba(200, 214, 255, 0.16);
  --paper: #101a42;
  --panel: #13204d;
  --panel-2: #10204f;
  background:
    radial-gradient(circle at top left, rgba(25, 215, 161, 0.1), transparent 28%),
    linear-gradient(180deg, #081138 0%, #09122f 220px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: transform 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

.brand-strip {
  background: linear-gradient(115deg, #091f6f 0%, #12328f 60%, #1b56c6 100%);
  border-bottom: 3px solid var(--breaking);
  box-shadow: 0 10px 30px rgba(4, 11, 46, 0.18);
}

.brand-shell {
  width: calc(100vw - 56px);
  max-width: 1680px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 180ms ease, padding 180ms ease;
}

.brand-link img {
  width: clamp(156px, 15vw, 232px);
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
  transition: width 180ms ease;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.edition-switch,
.social-row {
  display: flex;
  gap: 10px;
}

.edition-switch a,
.social-row a,
.mode-toggle,
.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
  border-radius: 999px;
  transition: 180ms ease;
}

.edition-switch a:hover,
.social-row a:hover,
.mode-toggle:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.edition-switch a {
  min-width: 46px;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(9, 31, 111, 0.28);
}

.edition-switch a:hover,
.edition-switch a:focus-visible {
  border-color: var(--accent);
  background: rgba(16, 205, 183, 0.18);
  color: #fff;
}

.edition-switch a.active {
  background: #fff;
  border-color: var(--accent);
  color: var(--brand-blue-deep);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(16, 205, 183, 0.22), 0 8px 18px rgba(4, 17, 65, 0.18);
}

body.is-rtl {
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-headline: "Amiri", Georgia, serif;
  direction: rtl;
  text-align: right;
}

body.is-rtl .brand-actions {
  margin-left: 0;
  margin-right: auto;
}

body.is-rtl .nav-shell,
body.is-rtl .post-list-item-top,
body.is-rtl .post-list-meta,
body.is-rtl .comment-item-head {
  direction: rtl;
}

.nav-strip {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-strip::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand-blue-soft), var(--breaking));
  opacity: 0.9;
}

.main-nav a {
  color: var(--brand-blue-deep);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--breaking);
}

.story-kicker,
.section-eyebrow,
.module-kicker {
  color: var(--breaking);
}

.breaking-bar,
[data-breaking-bar] {
  background: linear-gradient(90deg, var(--breaking), #a90f31);
}

.button-primary,
button[data-action="subscribe"],
.subscribe-button {
  background: var(--breaking);
  border-color: var(--breaking);
}

body.dark .nav-strip {
  background: rgba(10, 18, 47, 0.95);
}

.nav-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr minmax(180px, 260px) auto;
  align-items: center;
  gap: 18px;
  transition: min-height 180ms ease, gap 180ms ease, padding 180ms ease;
}

.menu-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
  transition: font-size 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue-soft));
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a.active::after {
  transform: scaleX(1);
}

.search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0 14px;
  border-radius: 12px;
  transition: height 180ms ease;
}

.search-box {
  position: relative;
}

.search-results-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  width: min(440px, 88vw);
  max-height: 460px;
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 46px rgba(10, 20, 58, 0.16);
}

.search-results-panel[hidden] {
  display: none;
}

.search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.25rem 0.2rem 0.75rem;
  color: var(--brand-blue);
}

.search-results-head span,
.search-empty,
.search-result-item small,
.search-result-item span {
  color: var(--muted);
}

.search-empty {
  margin: 0;
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--panel);
}

.search-results-list {
  display: grid;
  gap: 0.65rem;
}

.search-result-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.search-result-item:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 215, 161, 0.48);
  background: #fff;
}

.search-result-item strong {
  color: var(--brand-blue);
  line-height: 1.35;
}

.search-result-item span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-result-item small {
  line-height: 1.45;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.menu-hint {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 44, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 28;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--paper);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 50px rgba(3, 8, 34, 0.16);
  transform: translateX(-104%);
  transition: transform 220ms ease;
  z-index: 29;
  display: grid;
  grid-template-rows: auto 1fr;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .menu-drawer {
  transform: translateX(0);
}

.drawer-head {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-soft));
  color: white;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-socials a,
.drawer-close {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 700;
}

.drawer-close {
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-body {
  overflow: auto;
  padding: 22px 18px 30px;
  display: grid;
  gap: 28px;
}

.drawer-group {
  display: grid;
  gap: 10px;
}

.drawer-group h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--brand-blue);
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 700;
}

.drawer-group a::after {
  content: "›";
  color: var(--brand-green);
  font-size: 1.1rem;
}

.social-row a {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
  min-width: 42px;
  text-align: center;
  transition: min-width 180ms ease, padding 180ms ease, background 180ms ease;
}

.social-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon::before {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.social-linkedin::before {
  content: "in";
}

.social-tiktok::before {
  content: "♪";
}

.social-facebook::before {
  content: "f";
}

.social-instagram::before {
  content: "◎";
}

.social-youtube::before {
  content: "";
  width: 16px;
  height: 11px;
  border-radius: 4px;
  background: currentColor;
  clip-path: inset(0 round 4px);
}

.social-youtube::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--panel);
  margin-left: 2px;
}

.social-x::before {
  content: "X";
}

.drawer-item-icon {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 35, 125, 0.08);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.drawer-group a::after {
  content: ">";
  margin-left: auto;
}

.site-header.is-compact .brand-shell {
  min-height: 62px;
}

.site-header.is-compact .brand-link img {
  width: clamp(95px, 9vw, 145px);
}

.site-header.is-compact .nav-shell {
  min-height: 58px;
  gap: 14px;
}

.site-header.is-compact .main-nav a {
  font-size: 0.92rem;
}

.site-header.is-compact .search-box input {
  height: 38px;
}

.site-header.is-compact .edition-switch a,
.site-header.is-compact .mode-toggle,
.site-header.is-compact .social-row a,
.site-header.is-compact .menu-toggle {
  padding: 7px 10px;
}

.site-header.is-compact .social-row a {
  min-width: 38px;
}

.site-header.is-compact .menu-hint {
  font-size: 0.8rem;
}

.homepage,
.article-page,
.category-page {
  padding: 24px 0 56px;
}

.hero-shell,
.portal-grid,
.homepage-sections,
.article-shell,
.category-shell {
  margin-top: 18px;
}

.lead-zone {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.85fr);
  gap: 22px;
}

.lead-story,
.live-feed,
.text-feature,
.media-column,
.program-strip,
.info-card,
.poll-card,
.updown-card,
.utility-card,
.trend-card,
.article-main,
.article-side .side-module,
.category-main,
.category-side .side-module {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.lead-story {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-template-areas:
    "kicker media"
    "title media"
    "meta media"
    "summary media";
  column-gap: 26px;
  align-content: start;
}

.lead-story .kicker-row {
  grid-area: kicker;
}

.lead-story h1 {
  grid-area: title;
}

.lead-story .lead-meta {
  grid-area: meta;
}

.lead-story .lead-summary {
  grid-area: summary;
}

.lead-story .lead-thumb {
  grid-area: media;
  align-self: stretch;
  min-height: 100%;
  margin-top: 0;
}

.kicker-row,
.article-meta,
.lead-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.story-kicker,
.story-section {
  font-weight: 700;
}

.story-separator {
  margin: 0 8px;
}

.lead-story h1 {
  margin: 14px 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.02;
  color: var(--brand-blue);
  overflow-wrap: anywhere;
}

.lead-story h1.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lead-title-lines, 6);
}

body.dark .lead-story h1,
body.dark .module-head h2,
body.dark .section-card h3,
body.dark .article-header h1,
body.dark .category-header h1 {
  color: #dce6ff;
}

.lead-summary {
  color: var(--ink);
  font-size: clamp(1rem, 0.95vw, 1.12rem);
  line-height: 1.75;
  max-width: 72ch;
  margin-bottom: 0;
  text-wrap: pretty;
}

.lead-thumb,
.hero-visual {
  position: relative;
  min-height: 340px;
  margin-top: 22px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 35, 125, 0.95), rgba(36, 59, 163, 0.85)),
    radial-gradient(circle at top right, rgba(25, 215, 161, 0.4), transparent 30%);
}

.thumb-badge,
.hero-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.media-watermark {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 18, 63, 0.58);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.media-watermark img {
  display: block;
  width: clamp(78px, 8vw, 112px);
  height: auto;
  object-fit: contain;
}

.live-feed {
  padding: 20px;
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.module-head h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--brand-blue);
}

.module-head a {
  color: var(--brand-blue-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.live-list,
.mini-list,
.ranked-list,
.stack-list {
  display: grid;
  gap: 10px;
}

.live-item,
.mini-item,
.ranked-item,
.stack-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.live-item {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 10px;
  min-height: 62px;
  align-content: center;
  padding: 10px 12px;
}

.live-item strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.18;
}

.live-item time,
.ranked-item .count {
  color: var(--brand-green);
  font-weight: 800;
  font-size: 0.84rem;
}

.live-item time {
  grid-column: 1;
  grid-row: 1;
}

.live-item .post-flag {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  padding: 4px 7px;
  font-size: 0.62rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
}

.feature-column,
.mid-grid,
.utility-grid,
.trend-grid,
.article-shell,
.category-shell {
  display: grid;
  gap: 22px;
}

.feature-column {
  align-content: start;
}

.text-feature {
  padding: 22px;
  display: grid;
  align-content: start;
}

.text-feature-image {
  display: block;
  min-height: 210px;
  margin: 14px 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.text-feature-link {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.5;
  font-weight: 800;
}

.text-feature-excerpt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.media-column,
.program-strip,
.info-card,
.poll-card,
.updown-card,
.utility-card,
.trend-card,
.category-main,
.article-side .side-module,
.category-side .side-module {
  padding: 22px;
}

.program-strip,
.section-stream,
.utility-grid,
.trend-grid {
  margin-top: 22px;
}

.media-cards,
.program-cards {
  display: grid;
  gap: 14px;
}

.media-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.program-card,
.archive-card {
  display: grid;
  gap: 12px;
}

.card-thumb,
.program-thumb,
.archive-thumb {
  min-height: 180px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 35, 125, 0.92), rgba(25, 215, 161, 0.55)),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.program-thumb {
  min-height: 150px;
}

.card-thumb::before,
.program-thumb::before,
.archive-thumb::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
}

.card-thumb::after,
.program-thumb::after,
.archive-thumb::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,0.14);
  font-size: 0.8rem;
  font-weight: 700;
}

.card h3,
.program-card h3,
.archive-card h3,
.single-panel h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.card p,
.program-card p,
.archive-card p,
.single-panel p,
.article-body p,
.footer-brand p {
  color: var(--muted);
}

.mid-grid {
  grid-template-columns: 1.1fr 0.85fr 0.95fr;
  margin-top: 22px;
}

.single-panel {
  display: grid;
  gap: 14px;
}

.panel-graphic {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.poll-box,
.weather-layout,
.updown-grid {
  display: grid;
  gap: 14px;
}

.weather-layout {
  gap: 16px;
}

.meteo-panel {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  grid-template-areas:
    "icon text temp"
    "icon text wind";
  gap: 6px 14px;
  align-items: center;
  min-height: 142px;
  padding: 18px;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 87% 20%, rgba(255, 255, 255, 0.24), transparent 19%),
    radial-gradient(circle at 8% 88%, rgba(0, 9, 47, 0.22), transparent 28%),
    linear-gradient(135deg, #102b8f 0%, #17779d 50%, #18c99c 100%);
  box-shadow: 0 18px 36px rgba(15, 31, 84, 0.14);
  overflow: hidden;
}

.meteo-panel::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.meteo-icon {
  grid-area: icon;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  color: #ffe98a;
  font-size: 1.9rem;
  text-shadow: 0 0 20px rgba(255, 233, 138, 0.8);
}

.meteo-panel h3,
.meteo-panel p {
  margin: 0;
}

.meteo-panel > div:not(.meteo-icon) {
  grid-area: text;
  position: relative;
  z-index: 1;
}

.meteo-panel h3 {
  color: white;
  font-size: 1.25rem;
  line-height: 1.1;
}

.meteo-panel p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.meteo-panel strong {
  grid-area: temp;
  position: relative;
  z-index: 1;
  font-size: 2.35rem;
  line-height: 1;
}

.meteo-panel small {
  grid-area: wind;
  position: relative;
  z-index: 1;
  justify-self: end;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.utility-kicker {
  display: inline-flex;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prayer-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(13, 35, 125, 0.07), transparent 34%),
    var(--panel);
}

.prayer-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
}

.prayer-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 62% 40%, var(--panel) 0 19%, transparent 20%),
    linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.prayer-panel-head strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.1rem;
  line-height: 1.1;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prayer-times-grid article {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    var(--surface);
  border: 1px solid var(--line);
}

.prayer-times-grid article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.prayer-times-grid article::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 13px;
  bottom: 13px;
  width: 4px;
  border-radius: 999px;
  background: var(--brand-green);
}

.prayer-times-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.prayer-times-grid strong {
  color: var(--brand-blue);
  font-size: 1.12rem;
}

.utility-kicker-dark {
  margin-bottom: 2px;
  color: var(--muted);
}

.poll-box label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.poll-box button,
.newsletter-form button,
.comment-form button {
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.poll-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tone {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tone.up {
  background: #0bb67f;
}

.tone.down {
  background: #d64d63;
}

.section-stream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.section-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.section-lead {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 14px;
}

.section-list {
  display: grid;
  gap: 10px;
}

.section-list a,
.section-list-placeholder {
  display: block;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.section-list-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.utility-grid,
.trend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranked-item {
  grid-template-columns: minmax(78px, 1fr) minmax(0, 3fr);
  align-items: stretch;
  gap: 10px;
  height: 112px;
  padding: 10px;
}

.ranked-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background-color: rgba(17, 52, 147, 0.08);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ranked-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 17, 65, 0.65));
  pointer-events: none;
}

.ranked-thumb .count {
  position: absolute;
  z-index: 1;
  left: 7px;
  bottom: 7px;
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(4, 17, 65, 0.82);
  color: #fff;
  text-align: center;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(4, 17, 65, 0.2);
}

.ranked-copy {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px;
  align-content: stretch;
  padding: 3px 3px 2px 0;
}

.ranked-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.22;
}

.site-footer {
  margin-top: 34px;
  color: #fff;
  background: linear-gradient(180deg, #12328f 0%, #091f6f 48%, #06164f 100%);
}

.footer-topline {
  background: rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-topline-shell {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  align-items: center;
  padding: 22px 0;
}

.footer-topline-shell::before {
  content: "";
  position: absolute;
  inset-block: 22px;
  inset-inline-start: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.48);
}

.footer-newsletter {
  min-width: 0;
}

.footer-apps {
  min-width: 0;
}

.footer-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
}

.footer-newsletter h2,
.footer-apps h2,
.footer-column h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-headline);
}

.footer-newsletter p,
.footer-apps p,
.footer-brand-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.footer-newsletter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 132px;
  gap: 12px;
  max-width: 570px;
}

.footer-newsletter-form input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 20px;
  background: #fff;
  color: #121936;
  font: inherit;
  text-align: inherit;
}

.footer-newsletter-form button {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: var(--breaking);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(215, 25, 63, 0.3);
}

.footer-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-store-row a {
  display: grid;
  min-height: 50px;
  min-width: 150px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 5, 9, 0.86);
  color: #fff !important;
  text-align: start;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.footer-store-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1;
}

.footer-store-row strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.1;
}

.footer-main {
  background: rgba(9, 31, 111, 0.58);
}

.footer-main-shell {
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 36px;
  align-items: start;
}

.footer-brand-panel {
  padding-inline-end: 48px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.38);
}

.footer-brand-panel img {
  width: min(240px, 100%);
  margin-bottom: 16px;
  border-radius: 16px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials .social-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.footer-column {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.footer-column a:hover {
  color: var(--brand-green);
}

.footer-bottom {
  background: rgba(5, 12, 74, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-shell {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 750;
}

.article-shell {
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
  align-items: start;
}

.article-main {
  padding: 26px;
}

.article-side {
  display: grid;
  gap: 22px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-header h1,
.category-header h1 {
  margin: 14px 0;
  color: var(--brand-blue);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--brand-blue-soft);
  font-weight: 700;
  font-size: 0.86rem;
}

.article-hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 16px;
}

.share-rail {
  display: grid;
  gap: 12px;
}

.share-rail a {
  display: grid;
  place-items: center;
  height: 54px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--brand-blue);
  font-weight: 800;
}

.article-body {
  margin-top: 22px;
  display: grid;
  gap: 16px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.article-related-strip {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(238, 243, 251, 0.72), rgba(255, 255, 255, 0.72));
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.related-thumb {
  position: relative;
  min-height: 76px;
  border-radius: 13px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.related-copy {
  display: grid;
  gap: 8px;
}

.related-copy strong {
  color: var(--ink);
  line-height: 1.25;
}

.related-copy small {
  color: var(--muted);
  font-weight: 700;
}

.follow-box,
.newsletter-box,
.comments-box {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.follow-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.follow-box a {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--brand-blue-soft);
  font-weight: 700;
}

.newsletter-form,
.comment-form {
  display: grid;
  gap: 12px;
}

.newsletter-form {
  grid-template-columns: 1fr 180px;
}

.newsletter-form input,
.comment-form input,
.comment-form textarea {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 14px;
  padding: 0 14px;
}

.newsletter-form input,
.comment-form input {
  height: 48px;
}

.comment-form textarea {
  min-height: 160px;
  padding-top: 14px;
  resize: vertical;
}

.comment-status {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.comment-status.is-success {
  color: #159d72;
}

.comment-status.is-error {
  color: #c73a55;
}

.comment-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.comment-item,
.comment-empty {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.comment-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--brand);
}

.comment-item time,
.comment-empty {
  color: var(--muted);
}

.category-main {
  padding: 26px;
}

.category-hero,
.category-feature-grid {
  display: grid;
  gap: 22px;
}

.category-hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  margin-top: 20px;
  align-items: start;
}

.category-lead-card,
.category-feature-block,
.category-archive-block,
.category-dynamic-block {
  display: grid;
  gap: 16px;
}

.category-feature-block,
.category-dynamic-block,
.category-archive-block {
  margin-top: 18px;
}

.category-feature-block .module-head,
.category-dynamic-block .module-head,
.category-archive-block .module-head {
  margin-bottom: 10px;
}

.category-lead-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  line-height: 1.08;
  color: var(--brand-blue);
}

.category-lead-companions {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.category-lead-companions .module-head {
  margin-bottom: 10px;
}

.category-lead-companions .module-head h2 {
  font-size: 1.05rem;
}

.category-lead-companions .related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-lead-companions .related-card {
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 0;
}

.category-lead-companions .related-thumb {
  min-height: 86px;
}

.category-lead-thumb {
  min-height: 280px;
  margin-top: 8px;
}

.category-live-side {
  display: grid;
  gap: 22px;
}

.category-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-dynamic-layout {
  display: grid;
  gap: 18px;
}

.layout-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-split-main {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.layout-story-stack {
  display: grid;
  gap: 18px;
}

.layout-card,
.layout-panel,
.layout-quote,
.layout-score,
.layout-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.layout-card h3,
.layout-panel h3,
.layout-quote h3,
.layout-score h3,
.layout-stat h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.layout-card p,
.layout-panel p,
.layout-quote p,
.layout-score p,
.layout-stat p,
.layout-list li,
.score-meta {
  color: var(--muted);
}

.layout-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.layout-accent {
  min-height: 180px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 30%),
    linear-gradient(135deg, rgba(13, 35, 125, 0.95), rgba(25, 215, 161, 0.65));
  position: relative;
  overflow: hidden;
}

.layout-accent::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
}

.layout-quote {
  border-inline-start: 5px solid var(--brand-green);
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.layout-score strong,
.layout-stat strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

body.dark .layout-score strong,
body.dark .layout-stat strong {
  color: #dce6ff;
}

.video-wall {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.video-stack {
  display: grid;
  gap: 14px;
}

.archive-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: auto 1fr;
  }

  .social-row {
    display: none;
  }

  .program-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mid-grid,
  .utility-grid,
  .trend-grid,
  .section-stream,
  .archive-grid,
  .category-feature-grid,
  .layout-grid-3,
  .scoreboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
  }

  .lead-story {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "meta"
      "media"
      "summary";
  }

  .lead-story .lead-thumb {
    display: block;
    width: 100%;
    min-height: 300px;
    aspect-ratio: 16 / 10;
    margin-top: 22px;
  }

  .brand-shell,
  .footer-topline-shell,
  .footer-main-shell,
  .portal-grid,
  .lead-zone,
  .article-shell,
  .category-shell,
  .category-hero,
  .mid-grid,
  .utility-grid,
  .trend-grid,
  .section-stream,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .brand-shell {
    padding: 16px 0;
    width: var(--shell);
  }

  .footer-topline-shell,
  .footer-main-shell {
    gap: 26px;
  }

  .footer-topline-shell::before {
    display: none;
  }

  .footer-newsletter,
  .footer-apps {
    grid-column: auto;
  }

  .footer-brand-panel {
    padding-inline-end: 0;
    border-inline-end: 0;
  }

  .footer-newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-bottom-shell {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .brand-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-shell {
    grid-template-columns: auto 1fr;
    padding: 14px 0;
  }

  .menu-hint {
    display: none;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    gap: 14px;
  }

  .main-nav.open {
    display: flex;
  }

  .media-cards,
  .program-cards,
  .section-lead,
  .newsletter-form,
  .category-feature-grid,
  .related-grid,
  .category-lead-companions .related-grid,
  .layout-grid-2,
  .layout-grid-3,
  .layout-split-main,
  .video-wall,
  .scoreboard-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    grid-template-columns: 1fr;
  }

  .share-rail {
    grid-template-columns: repeat(5, 1fr);
  }

  .related-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-link img {
    width: 140px;
  }

  .lead-story,
  .live-feed,
  .media-column,
  .program-strip,
  .info-card,
  .poll-card,
  .updown-card,
  .utility-card,
  .trend-card,
  .article-main,
  .article-side .side-module,
  .category-main,
  .category-side .side-module,
  .section-card,
  .archive-card,
  .text-feature {
    padding: 18px;
    border-radius: 18px;
  }

  .lead-story h1,
  .article-header h1,
  .category-header h1 {
    font-size: 1.8rem;
  }

  .lead-thumb,
  .hero-visual,
  .panel-graphic {
    min-height: 240px;
  }

  .lead-story .lead-thumb {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }

  .ranked-item {
    grid-template-columns: minmax(72px, 1fr) minmax(0, 3fr);
    height: 106px;
    padding: 9px;
    gap: 9px;
  }

  .ranked-thumb {
    width: 100%;
  }
}

.admin-page {
  padding: 2rem 0 4rem;
}

body.admin-locked {
  overflow: hidden;
}

.admin-login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(31, 206, 163, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(4, 11, 38, 0.95), rgba(11, 23, 72, 0.97));
}

body.admin-locked .admin-login-screen {
  display: grid;
}

body.admin-locked .admin-workspace {
  display: none;
}

.admin-login-card {
  width: min(540px, 100%);
  padding: 2rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(220, 228, 255, 0.78);
  box-shadow: 0 20px 60px rgba(4, 11, 38, 0.28);
  display: grid;
  gap: 1rem;
}

.admin-login-card h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.admin-login-card p {
  margin: 0;
}

.admin-login-form {
  display: grid;
  gap: 0.9rem;
}

.admin-login-form .admin-btn {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: rgba(28, 47, 143, 0.16);
}

.admin-login-form .admin-btn:hover {
  color: #fff;
}

.admin-login-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--brand);
  font-weight: 700;
}

.admin-login-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(28, 47, 143, 0.16);
  border-radius: 1rem;
  background: #f6f8ff;
  color: var(--ink);
  font: inherit;
}

.admin-login-hint,
.admin-login-note {
  color: var(--muted);
}

.admin-login-note.is-success {
  color: #159d72;
}

.admin-shell {
  display: grid;
  gap: 1.5rem;
}

.admin-hero,
.admin-toolbar,
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  box-shadow: 0 18px 48px rgba(15, 31, 84, 0.08);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  align-items: end;
}

.admin-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin: 0 0 0.85rem;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-hero p:last-child {
  margin-bottom: 0;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.admin-hero-actions a,
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 47, 143, 0.16);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.admin-hero-link {
  min-width: 160px;
  background: linear-gradient(135deg, var(--brand), var(--accent)) !important;
  color: #fff !important;
}

.admin-hero-actions a:hover,
.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(24, 54, 151, 0.18);
}

.admin-btn-secondary {
  background: var(--soft);
  color: var(--brand);
}

.admin-btn-danger {
  background: linear-gradient(135deg, #cb445c, #f06f63);
  color: #fff;
}

.admin-security-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.admin-logout {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-status {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

.admin-status.is-success {
  color: #159d72;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.admin-panel {
  padding: 1.35rem 1.45rem 1.5rem;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form-grid label,
.admin-category-toolbar label {
  display: grid;
  gap: 0.45rem;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-span-2 {
  grid-column: span 2;
}

.admin-form-grid input,
.admin-form-grid textarea,
.admin-form-grid select,
.admin-category-toolbar select,
.admin-json-box {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(28, 47, 143, 0.16);
  border-radius: 1rem;
  background: #f6f8ff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.admin-form-grid input[readonly] {
  background: rgba(29, 215, 161, 0.08);
  color: var(--brand);
  font-weight: 800;
  cursor: not-allowed;
}

.admin-category-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-category-toolbar p,
.admin-panel-note {
  margin: 0;
  color: var(--muted);
}

.admin-json-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-json-box {
  min-height: 320px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

body.dark .admin-hero,
body.dark .admin-toolbar,
body.dark .admin-panel {
  background: #14204d;
  border-color: rgba(146, 164, 255, 0.16);
  box-shadow: none;
}

body.dark .admin-hero h1,
body.dark .admin-form-grid label,
body.dark .admin-category-toolbar label {
  color: #eef2ff;
}

body.dark .admin-status,
body.dark .admin-category-toolbar p,
body.dark .admin-panel-note {
  color: #b7c0e6;
}

body.dark .admin-form-grid input,
body.dark .admin-form-grid textarea,
body.dark .admin-form-grid select,
body.dark .admin-category-toolbar select,
body.dark .admin-json-box,
body.dark .admin-btn-secondary {
  background: #1a275c;
  border-color: rgba(146, 164, 255, 0.16);
  color: #eef2ff;
}

@media (max-width: 980px) {
  .admin-hero,
  .admin-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-category-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar-actions,
  .admin-hero-actions {
    justify-content: stretch;
  }

  .admin-hero-actions a,
  .admin-btn,
  .admin-span-2 {
    width: 100%;
  }

  .newsroom-admin .dashboard-grid:not(.bottom-grid) > .admin-panel {
    height: auto;
    overflow: visible;
  }

  .post-editor-panel {
    padding-right: 1.45rem;
  }
}

.hero-visual iframe,
.hero-visual video,
.article-media-item iframe,
.article-media-item video,
.article-media-item img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.hero-visual.has-video {
  background: #0b153d;
}

.hero-visual iframe,
.hero-visual video {
  position: absolute;
  inset: 0;
}

.post-flag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(29, 60, 180, 0.12);
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.post-flag-breaking {
  background: rgba(216, 65, 93, 0.16);
  color: #c73a55;
}

.ranked-metric {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-media-gallery {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.article-media-item {
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.article-media-item img,
.article-media-item iframe,
.article-media-item video {
  min-height: 320px;
}

.article-media-caption {
  margin: 0;
  padding: 12px 14px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.newsroom-admin .admin-overview,
.newsroom-admin .dashboard-grid {
  display: grid;
  gap: 1.5rem;
}

.newsroom-admin .admin-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.newsroom-admin .dashboard-grid {
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1.26fr);
  align-items: start;
}

.newsroom-admin .bottom-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.newsroom-admin .dashboard-grid:not(.bottom-grid) > .post-editor-panel,
.newsroom-admin .bottom-grid > .admin-panel {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.newsroom-admin .dashboard-grid:not(.bottom-grid) > .post-manager-panel {
  height: clamp(1378px, 141.6vh, 1982px);
  min-height: 0;
  overflow: hidden;
}

.post-manager-panel,
.post-editor-panel,
.category-panel,
.tools-panel,
.security-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.admin-module-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1rem;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-module-card h3 {
  margin: 0;
  color: var(--brand);
}

.security-card {
  padding: 1rem;
  border-radius: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.security-card h3 {
  margin: 0 0 0.55rem;
  color: var(--brand);
}

.admin-stat-card {
  padding: 1.2rem 1.3rem;
  border-radius: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(15, 31, 84, 0.08);
  display: grid;
  gap: 0.45rem;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-stat-card strong {
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.post-filter-row,
.editor-topbar,
.preview-links,
.flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.post-filter-row,
.editor-topbar {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.editor-meta {
  color: var(--muted);
  font-weight: 700;
}

.post-filter-row label,
.flag-grid label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--brand);
}

.post-filter-row select {
  min-width: 180px;
}

.post-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 0.9rem;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 0.2rem;
}

.post-manager-panel .module-head {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: -0.1rem 0 0.9rem;
  padding: 0.2rem 0 0.75rem;
  background: var(--surface);
}

.post-editor-panel .module-head,
.post-editor-panel .editor-topbar {
  position: static;
  margin-bottom: 0.85rem;
  padding: 0;
  background: transparent;
}

.post-editor-panel {
  overflow: visible;
  padding-right: 0;
}

.post-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  gap: 1rem;
  align-items: start;
}

.post-editor-main,
.post-editor-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 0;
}

.editor-media-fields,
.media-preview-card {
  padding: 1rem 1.1rem 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.editor-media-grid {
  grid-template-columns: 1fr;
}

.post-list-item {
  width: 100%;
  min-height: 136px;
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.7rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-list-item:hover,
.post-list-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(30, 74, 200, 0.24);
  box-shadow: 0 10px 26px rgba(17, 35, 98, 0.1);
}

.post-list-item-top,
.post-list-meta,
.post-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
}

.post-list-item-top strong {
  color: var(--brand);
}

.post-list-item-top span,
.post-list-meta span,
.post-list-item p {
  color: var(--muted);
}

.post-list-item p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(27, 58, 168, 0.12);
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-badge.danger {
  background: rgba(216, 65, 93, 0.16);
  color: #c73a55;
}

.dashboard-badge.warning {
  background: rgba(243, 162, 45, 0.18);
  color: #b17109;
}

.dashboard-badge.success {
  background: rgba(28, 184, 137, 0.14);
  color: #138864;
}

.post-form-grid textarea {
  min-height: 104px;
}

.post-form-grid .admin-span-2 {
  grid-column: 1 / -1;
}

.post-form-grid [data-post-field="excerpt"] {
  min-height: 84px;
}

.post-form-grid [data-post-field="tags"] {
  min-height: 88px;
}

.post-form-grid [data-post-field="body"] {
  min-height: 220px;
}

.post-form-grid [data-post-field="gallery"] {
  min-height: 160px;
}

.flag-grid {
  margin-top: 1rem;
}

.flag-grid label {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
}

.media-preview-card {
  margin-top: 0;
}

.tools-panel .admin-json-box {
  flex: 1;
  min-height: 420px;
}

.media-preview {
  min-height: 140px;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(13, 35, 125, 0.95), rgba(36, 59, 163, 0.82));
  display: grid;
  place-items: center;
}

@media (min-width: 1180px) {
  .post-editor-panel .flag-grid {
    gap: 0.7rem;
  }

  .post-editor-panel .flag-grid label {
    padding: 0.7rem 0.9rem;
  }
}

@media (max-width: 1180px) {
  .post-editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-modules-grid {
    grid-template-columns: 1fr;
  }
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-preview-placeholder {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.preview-links {
  margin-top: 1rem;
}

.preview-links a {
  color: var(--brand-blue-soft);
  font-weight: 700;
}

.admin-workspace .menu-drawer {
  background:
    linear-gradient(180deg, rgba(246, 248, 255, 0.98), rgba(255, 255, 255, 0.98)),
    var(--paper);
}

.admin-workspace .drawer-body {
  align-content: start;
  gap: 24px;
  padding: 26px 18px 34px;
}

.admin-workspace .drawer-group {
  gap: 8px;
}

.admin-workspace .drawer-group h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.admin-workspace .drawer-group a {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px 10px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(15, 31, 84, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.admin-workspace .drawer-group a:hover {
  transform: translateX(3px);
  border-color: rgba(29, 215, 161, 0.42);
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 31, 84, 0.09);
}

.admin-workspace .drawer-group a::after {
  content: ">";
  margin-left: 0;
  color: var(--brand-green);
  font-size: 1rem;
  font-weight: 900;
}

.admin-workspace .drawer-item-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(13, 35, 125, 0.12), rgba(29, 215, 161, 0.1));
  font-size: 1rem;
}

body.dark .admin-stat-card,
body.dark .post-list-item,
body.dark .flag-grid label,
body.dark .media-preview-card,
body.dark .security-card,
body.dark .admin-login-card {
  background: #14204d;
  border-color: rgba(146, 164, 255, 0.16);
  box-shadow: none;
}

body.dark .admin-stat-card strong,
body.dark .post-list-item-top strong,
body.dark .post-filter-row label,
body.dark .flag-grid label,
body.dark .security-card h3,
body.dark .admin-login-card h1,
body.dark .admin-login-form label {
  color: #eef2ff;
}

body.dark .dashboard-badge {
  background: rgba(146, 164, 255, 0.14);
  color: #eef2ff;
}

body.dark .dashboard-badge.danger {
  background: rgba(216, 65, 93, 0.22);
  color: #ffc0cb;
}

body.dark .dashboard-badge.warning {
  background: rgba(243, 162, 45, 0.24);
  color: #ffd39f;
}

body.dark .dashboard-badge.success {
  background: rgba(28, 184, 137, 0.22);
  color: #bbffe6;
}

body.dark .admin-login-form input {
  background: #1a275c;
  border-color: rgba(146, 164, 255, 0.16);
  color: #eef2ff;
}

body.dark .admin-login-hint,
body.dark .admin-login-note {
  color: #b7c0e6;
}

body:not([data-page="admin"]) {
  padding-bottom: 86px;
}

.breaking-ticker {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 68px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 31, 111, 0.99), rgba(18, 50, 143, 0.99) 40%, rgba(7, 27, 100, 0.99));
  border-top: 2px solid rgba(16, 205, 183, 0.72);
  box-shadow: 0 -18px 44px rgba(3, 10, 36, 0.22);
  overflow: hidden;
}

.ticker-label {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-width: 205px;
  padding: 12px 24px;
  background:
    linear-gradient(135deg, #d8193f 0%, #a70c2b 58%, #07123f 59%);
  text-transform: uppercase;
}

.ticker-label strong {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.ticker-label span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.ticker-window {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.ticker-window::before,
.ticker-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 70px;
  pointer-events: none;
}

.ticker-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(18, 50, 143, 0.98), transparent);
}

.ticker-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(9, 20, 54, 0.98), transparent);
}

.ticker-track {
  display: inline-flex;
  width: max-content;
  min-height: 68px;
  align-items: center;
  gap: 26px;
  padding-inline: 24px;
  animation: ticker-marquee 96s linear infinite;
}

.breaking-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 800;
  white-space: nowrap;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #07123f;
  background: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker-item strong {
  color: #fff;
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1;
}

.ticker-item em {
  color: #ffffff;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 950;
}

.ticker-item small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}

.ticker-news .ticker-chip {
  background: #ffcf5a;
}

.ticker-weather .ticker-chip {
  background: #7ce8ff;
}

.ticker-prayer .ticker-chip {
  background: #1dd7a1;
}

.ticker-prayer-times {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticker-prayer-times b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
}

.ticker-prayer-times time {
  color: #fff;
  font-weight: 950;
}

@keyframes ticker-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

body.is-rtl .ticker-track {
  direction: rtl;
  animation-name: ticker-marquee-rtl;
}

body.is-rtl .ticker-label strong {
  letter-spacing: 0;
}

@keyframes ticker-marquee-rtl {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(50%);
  }
}

@media (max-width: 720px) {
  body:not([data-page="admin"]) {
    padding-bottom: 92px;
  }

  .breaking-ticker {
    grid-template-columns: 1fr;
    grid-template-rows: 30px 52px;
    min-height: 82px;
    max-height: 82px;
  }

  .ticker-label {
    min-width: 0;
    min-height: 30px;
    height: 30px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    overflow: hidden;
  }

  .ticker-label strong {
    font-size: 0.76rem;
    line-height: 1;
    white-space: nowrap;
  }

  .ticker-window {
    min-height: 52px;
  }

  .ticker-track {
    min-height: 52px;
    gap: 24px;
    padding-inline: 18px;
    animation-duration: 128s;
  }

  .ticker-item {
    min-height: 36px;
    padding: 6px 10px 6px 6px;
    font-size: 0.9rem;
    max-width: 84vw;
    overflow: hidden;
  }

  .ticker-item strong {
    max-width: 62vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ticker-prayer-times b {
    min-height: 24px;
    padding: 3px 7px;
  }
}

@media (max-width: 1100px) {
  .newsroom-admin .admin-overview,
  .newsroom-admin .dashboard-grid,
  .newsroom-admin .bottom-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .post-list-item {
    min-height: 120px;
  }
}
