@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root,
:root[data-theme="light"],
html.theme-light,
body.theme-light {
  color-scheme: light;
  --ivory: #FAF8F4;
  --paper: #F3EFE6;
  --card: #FFFFFF;
  --input-bg: #FFFFFF;
  --navy: #0F293D;
  --navy-light: #204461;
  --btn-primary-bg: #0F293D;
  --btn-primary-hover: #204461;
  --btn-primary-text: #FFFFFF;
  --sidebar-bg: #0F293D;
  --sidebar-text: #F4F1EA;
  --footer-bg: #0F293D;
  --footer-text: #E2E8F0;
  --terracotta: #B83B2B;
  --terracotta-soft: #F6E4E1;
  --sage: #1E6F5C;
  --sage-soft: #E0F1EC;
  --ink: #141C24;
  --muted: #52606D;
  --border: #DAD3C5;
  --editor-canvas-bg: #FFFEFC;
  --editor-focus-ring: rgba(15, 41, 61, 0.22);
  --radius: 16px;
}

:root[data-theme="dark"],
[data-theme="dark"],
html.theme-dark,
body.theme-dark {
  color-scheme: dark;
  --ivory: #0B1219;
  --paper: #16222E;
  --card: #111A24;
  --input-bg: #172330;
  --navy: #E8F0F8;
  --navy-light: #9AC2E4;
  --btn-primary-bg: #275E8A;
  --btn-primary-hover: #3374A8;
  --btn-primary-text: #FFFFFF;
  --sidebar-bg: #0D1824;
  --sidebar-text: #EEF3F8;
  --footer-bg: #091119;
  --footer-text: #D7E2EC;
  --terracotta: #E07A68;
  --terracotta-soft: #3D1C17;
  --sage: #58BFA5;
  --sage-soft: #133A31;
  --ink: #F2EFE9;
  --muted: #9EB0C0;
  --border: #2B3D50;
  --editor-canvas-bg: #0E1722;
  --editor-focus-ring: rgba(88, 191, 165, 0.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
}
h1, h2, h3, h4, .serif { font-family: 'Playfair Display', Georgia, serif; margin-top: 0; color: var(--navy); }
a { color: inherit; text-decoration: none; }
code {
  background: var(--paper);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

input, select, textarea {
  background: var(--input-bg);
  color: var(--ink);
  border: 1px solid var(--border);
  font-family: inherit;
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
select option {
  background: var(--card);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--editor-focus-ring);
  outline-offset: 1px;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Live Date / Time / Countdown Utility Bar */
.utility-timer-bar {
  background: linear-gradient(90deg, #091B29 0%, #15364F 60%, #1E4940 100%);
  color: #F4F1EA;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 2px solid #B83B2B;
}
.utility-timer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.clock-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.clock-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.countdown-pill {
  background: rgba(184, 59, 43, 0.9);
  color: #fff;
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Masthead & Navigation (Non-Sticky) */
.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: static;
}
.brand-tri-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0 10px;
}
.brand-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-center {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.brand-tagline-center {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sage);
  line-height: 1.45;
  margin: 0;
}
.brand-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(15, 41, 61, 0.08);
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-logo-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 41, 61, 0.12);
}
.brand-logo-box img {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-logo-placeholder {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, var(--paper), var(--ivory));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 10px;
  border-top: 1px solid var(--paper);
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; }
.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; justify-content: space-between; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 34px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.footer-link {
  text-decoration: underline;
  color: #F3C6A5;
}

/* Dynamic Magazine Tabs */
.tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  border-top: 1px solid var(--paper);
}
.tab-pill {
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab-pill:hover { border-color: var(--navy); }
.tab-pill.active {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

/* Buttons, Badges & Tags */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 17px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-accent { background: #B83B2B; color: #fff; }
.btn-accent:hover { background: #9B3022; }
.btn-sage { background: #1E6F5C; color: #fff; }
.btn-sage:hover { background: #175A4A; }
.btn-danger { background: #9B2226; color: #fff; }
.btn-danger:hover { background: #7D1A1E; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); background: var(--paper); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 9px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-terracotta { background: var(--terracotta-soft); color: var(--terracotta); }
.badge-sage { background: var(--sage-soft); color: var(--sage); }
.badge-navy { background: var(--paper); color: var(--navy); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

/* Hero & Cards */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.hero-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 380px;
  background: #0F293D;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 27, 41, 0.94) 70%);
  width: 100%;
}
.hero-overlay h1 { color: #FFFFFF; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.article-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 20px 0;
}

/* Dashboard Layout */
.dash-shell {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 24px;
  margin: 24px auto;
}
.dash-sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  align-self: start;
}
.dash-sidebar h3 { color: #FFFFFF; }
.dash-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: #D7E2EC;
}
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.kpi-value { font-size: 26px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }

/* Advanced Resizable Rich Text Studio */
.rich-editor-shell {
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 41, 61, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rich-editor-shell:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--editor-focus-ring);
}
.rich-editor-shell.is-fullscreen {
  position: fixed;
  inset: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.rich-editor-shell.is-fullscreen .rich-canvas-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rich-editor-shell.is-fullscreen .rich-surface,
.rich-editor-shell.is-fullscreen .rich-source-box,
.rich-editor-shell.is-fullscreen .rich-preview-pane {
  flex: 1;
  height: auto !important;
  max-height: none;
}
.rich-studio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #0F293D 0%, #19443A 100%);
  color: #fff;
}
.rich-studio-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.rich-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #58BFA5;
  display: inline-block;
}
.rich-subnote {
  font-size: 11.5px;
  color: #C7D7E4;
  font-weight: 400;
}
.rich-mode-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rt-mode-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.rt-mode-btn.active {
  background: #B83B2B;
  border-color: #B83B2B;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.rt-btn, .rt-select {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
}
.rt-btn:hover, .rt-btn.is-active {
  border-color: var(--sage);
  background: var(--sage-soft);
  color: var(--sage);
}
.rt-btn-accent {
  border-color: var(--terracotta);
  color: var(--terracotta);
  font-weight: 600;
}
.rt-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.rt-color-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.rt-color-label input { width: 20px; height: 20px; border: none; padding: 0; background: none; cursor: pointer; }
.rt-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}
.rich-popover {
  padding: 10px 14px;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
}
.rich-popover-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.rich-popover-row input {
  padding: 6px 10px;
  border-radius: 8px;
  min-width: 190px;
  flex: 1;
}
.rich-size-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.rich-canvas-wrap {
  position: relative;
  width: 100%;
}
.rich-surface {
  width: 100%;
  min-height: 160px;
  overflow-y: auto;
  resize: vertical;
  padding: 18px 20px;
  outline: none;
  font-size: 15.5px;
  line-height: 1.75;
  background: var(--editor-canvas-bg);
  color: var(--ink);
  cursor: text;
}
.rich-surface:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.rich-source-box {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  border: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #0D151E;
  color: #E2EEF8;
  resize: vertical;
}
.rich-preview-pane {
  min-height: 160px;
  overflow-y: auto;
  padding: 18px 20px;
  background: var(--card);
  color: var(--ink);
}
.rich-resize-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--paper);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: ns-resize;
  user-select: none;
  touch-action: none;
}
.rich-resize-grip:hover {
  background: var(--sage-soft);
  color: var(--sage);
}
.rich-grip-dots {
  display: inline-block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
}
.rich-surface blockquote, .rich-article-body blockquote {
  border-left: 4px solid var(--terracotta);
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 0 10px 10px 0;
}
.callout-box {
  padding: 12px 15px;
  border-radius: 10px;
  margin: 12px 0;
  border-left: 4px solid var(--sage);
  background: var(--sage-soft);
}
.callout-box.exam-tip {
  border-left-color: var(--terracotta);
  background: var(--terracotta-soft);
}
.editor-table, .rich-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.editor-table th, .editor-table td, .rich-article-body th, .rich-article-body td {
  border: 1px solid var(--border);
  padding: 8px 10px;
}
.rich-statusbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--border);
}

/* Watermark Overlay & Kindle Reader Shell */
.pdf-viewer-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.pdf-wm-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  user-select: none;
}
.pdf-wm-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.pdf-wm-tiled {
  position: absolute;
  inset: -40%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 40px;
  align-items: center;
  justify-items: center;
}

.kindle-shell {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
.kindle-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--ivory);
  padding: 14px;
  margin: 0;
  overflow-y: auto;
}
.kindle-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.kindle-stage-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: var(--card);
}
.kindle-stage-card[data-ktheme="sepia"] { background: #F5ECD9; color: #2D2114; }
.kindle-stage-card[data-ktheme="ivory"] { background: #FAF8F4; color: #141C24; }
.kindle-stage-card[data-ktheme="white"] { background: #FFFFFF; color: #111827; }
.kindle-stage-card[data-ktheme="night"] { background: #101720; color: #E8EEF5; border-color: #2A394A; }
.kindle-page-viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 520px;
  padding: 12px 4px;
}
.kindle-page-box {
  position: relative;
  display: inline-block;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
}
.kindle-stage-card[data-ktheme="sepia"] .kindle-page-box canvas { filter: sepia(0.24) contrast(0.98); }
.kindle-stage-card[data-ktheme="night"] .kindle-page-box canvas { filter: invert(0.9) hue-rotate(180deg); }
.kindle-text-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  line-height: 1;
  user-select: text;
  z-index: 3;
}
.kindle-text-layer span {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
}
.kindle-text-layer ::selection {
  background: rgba(250, 204, 21, 0.45);
}
.kindle-marks-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.kindle-mark-rect {
  position: absolute;
  border-radius: 3px;
  mix-blend-mode: multiply;
}
.kindle-mark-pin {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #141C24;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.18);
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kindle-search-hit {
  position: absolute;
  background: rgba(249, 115, 22, 0.35);
  border: 1px solid rgba(234, 88, 12, 0.8);
  border-radius: 3px;
  z-index: 4;
  pointer-events: none;
}

/* Tables & Forms */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--paper); }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.4px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--ink);
}
.field input[type="checkbox"] { width: auto; }

.flash { padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-weight: 600; font-size: 14px; }
.flash-success { background: var(--sage-soft); color: var(--sage); }
.flash-error { background: var(--terracotta-soft); color: var(--terracotta); }

/* Responsive High-Res Article & Featured Images */
.article-featured-media {
  width: 100%;
  max-height: 440px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--paper);
}
.article-featured-media img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.rich-article-body img,
.rich-surface img,
.rich-preview-pane img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 540px;
  display: block;
  margin: 16px auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(15, 41, 61, 0.08);
}

/* Our Tags Dark Pill & Modal Grid */
.btn-our-tags {
  background: #141C24;
  color: #FFFFFF !important;
  border-color: #141C24;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-our-tags:hover {
  background: #22303D;
  border-color: #22303D;
}
:root[data-theme="dark"] .btn-our-tags {
  background: #04080D;
  border: 1px solid #3B5268;
}
.tags-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 25, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tags-modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.tags-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tag-grid-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--ivory);
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}
.tag-grid-tile:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: var(--paper);
}

/* Our Magazines Tiles Grid */
.magazines-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.magazine-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.magazine-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 41, 61, 0.12);
}
.magazine-tile-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}
.magazine-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article Page 3-Column Sticky Ads Layout */
.article-layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin: 24px auto;
  align-items: start;
}
.article-layout-shell.has-left-only {
  grid-template-columns: 220px minmax(0, 1fr);
}
.article-layout-shell.has-right-only {
  grid-template-columns: minmax(0, 1fr) 220px;
}
.article-layout-shell.has-both-rails {
  grid-template-columns: 210px minmax(0, 1fr) 210px;
}
.ad-rail-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-rail-sticky {
  position: sticky;
  top: 94px;
}
.ad-slot-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  overflow: hidden;
}
.ad-slot-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}
.ad-responsive-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}
.ad-responsive-video {
  width: 100%;
  max-height: 380px;
  border-radius: 10px;
  background: #000;
}
.article-inline-ad-wrap {
  margin: 20px 0;
}

/* Full-Screen Interstitial Ad Overlay */
.ahe-interstitial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 23, 0.86);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ahe-interstitial-modal {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.ahe-interstitial-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.ahe-interstitial-body {
  text-align: center;
}

@media (max-width: 1120px) {
  .article-layout-shell.has-left-only,
  .article-layout-shell.has-right-only,
  .article-layout-shell.has-both-rails {
    grid-template-columns: 1fr;
  }
  .ad-rail-sticky { position: static; }
}

@media (max-width: 960px) {
  .hero-grid, .dash-shell, .kindle-shell { grid-template-columns: 1fr; }
  .kindle-sidebar { position: static; max-height: none; }
}

/* Video Ad Wrapper & Music Mute/Unmute Toggle */
.ad-video-wrapper {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #070D14;
}
.ad-video-wrapper .ad-responsive-video {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
}
.ad-mute-toggle-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 18, 25, 0.82);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.ad-mute-toggle-btn:hover {
  transform: scale(1.04);
  background: rgba(184, 59, 43, 0.94);
  border-color: #FFFFFF;
}
.ad-mute-toggle-btn.is-unmuted {
  background: rgba(30, 111, 92, 0.94);
  border-color: #A7F3D0;
}

/* Masthead Brand Logo & Bilingual Switcher */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-img {
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ivory);
}
.lang-pill {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-pill:hover {
  background: var(--paper);
}
.lang-pill.active {
  background: var(--navy);
  color: var(--ivory);
}

/* Customizable Multi-Column Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  align-items: start;
}
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-logo-img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  padding: 4px;
}
.footer-col-title {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #F3C6A5;
  font-weight: 700;
}
.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}
.footer-menu-list a {
  color: var(--footer-text);
  opacity: 0.9;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.footer-menu-list a:hover {
  opacity: 1;
  color: #F3C6A5;
  text-decoration: underline;
}
.footer-address-block {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.92;
}
.footer-photo-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.footer-photo-card img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  display: block;
}
.footer-photo-caption {
  padding: 8px 10px;
  font-size: 12px;
  color: #F4F1EA;
}
.footer-ads-strip {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-bottom-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  opacity: 0.88;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Social Media Icons Bar */
.social-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--social-brand, var(--navy));
  border: 1px solid var(--border);
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  flex-shrink: 0;
}
.social-icon-btn:hover {
  background: var(--social-brand, var(--navy));
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-1px);
}
.social-bar-footer {
  margin-top: 14px;
  gap: 8px;
}
.social-bar-footer .social-icon-btn {
  width: auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.10);
  color: #F4F1EA;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.social-bar-footer .social-icon-btn:hover {
  background: var(--social-brand, #B83B2B);
  color: #FFFFFF;
  border-color: transparent;
}

/* Live Scrolling New Articles & Magazines Ticker */
.pc-ticker-shell {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 12px 0 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 41, 61, 0.06);
}
.pc-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0F293D 0%, #B83B2B 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.pc-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  animation: pcPulse 1.6s infinite;
}
@keyframes pcPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}
.pc-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 6px 0;
}
.pc-ticker-track {
  display: flex;
  width: max-content;
  animation: pcTickerScroll var(--pc-ticker-duration, 24s) linear infinite;
}
.pc-ticker-shell:hover .pc-ticker-track {
  animation-play-state: paused;
}
@keyframes pcTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.pc-ticker-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
}
.pc-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--border);
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.pc-ticker-item:hover {
  border-color: var(--terracotta);
  background: var(--paper);
}
.pc-new-badge {
  background: linear-gradient(135deg, #D62828, #F77F00);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  animation: pcNewBlink 1.8s ease-in-out infinite;
}
@keyframes pcNewBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
.pc-pin-badge {
  background: var(--navy);
  color: #F3C6A5;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}
.pc-ticker-cat {
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
}

/* Desktop vs Mobile Responsive Helpers */
.show-mobile-only { display: none; }
.show-desktop-only { display: flex; }
.ticker-mobile-only { display: none; }
.ticker-desktop-only { display: flex; }
.mobile-quick-bar { display: none; }
.mobile-drawer-panel { display: none; }
.mobile-search-drawer { display: none; }

@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .show-desktop-only { display: none !important; }
  .show-mobile-only { display: flex !important; }
  .ticker-desktop-only { display: none !important; }
  .ticker-mobile-only { display: flex !important; }

  /* Slim non-sticky mobile utility & header */
  .utility-timer-bar {
    padding: 4px 0;
    font-size: 11px;
  }
  .utility-announcement-desktop,
  .utility-tz-desktop {
    display: none !important;
  }
  .masthead.mobile-slim-enabled {
    position: static !important;
    box-shadow: 0 2px 10px rgba(15, 41, 61, 0.06);
  }
  .brand-tri-band {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 0 8px;
  }
  .brand-center {
    grid-column: 1 / -1;
    order: 3;
    padding: 4px 4px 0;
    border-top: 1px dashed var(--border);
  }
  .brand-tagline-center {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .brand-right {
    order: 2;
    gap: 6px;
  }
  .brand-logo-box {
    max-width: 96px !important;
    max-height: 40px !important;
  }
  .masthead.mobile-slim-enabled .masthead-inner {
    padding: 6px 0;
    gap: 8px;
    flex-wrap: nowrap;
    border-top: none;
  }
  .masthead.mobile-slim-enabled .brand {
    min-width: 0;
    flex: 1;
  }
  .masthead.mobile-slim-enabled .brand-title {
    font-size: 19px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .masthead.mobile-slim-enabled .brand-sub {
    display: none !important;
  }
  .masthead.mobile-slim-enabled .nav-actions {
    display: none !important;
  }
  .mobile-quick-bar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }
  .mobile-icon-pill {
    height: 34px;
    min-width: 34px;
    padding: 0 9px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--ivory);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .mobile-icon-pill.is-primary {
    background: var(--btn-primary-bg);
    color: #fff;
    border-color: transparent;
  }
  .mobile-search-drawer.is-open {
    display: block;
    padding: 8px 0 10px;
    border-top: 1px solid var(--paper);
  }
  .mobile-drawer-panel.is-open {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin: 6px 0 10px;
    border-radius: 14px;
    background: var(--ivory);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 41, 61, 0.08);
  }
  .mobile-drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tabs-bar {
    padding: 6px 0 8px;
    gap: 6px;
    scrollbar-width: none;
  }
  .tabs-bar::-webkit-scrollbar { display: none; }
  .tab-pill, .btn-our-tags {
    padding: 5px 11px;
    font-size: 12px;
  }

  /* Mobile Ticker compactness */
  .pc-ticker-shell {
    margin: 8px 0 4px;
    border-radius: 11px;
  }
  .pc-ticker-label {
    padding: 7px 10px;
    font-size: 11px;
  }
  .pc-ticker-item {
    padding: 4px 9px;
    font-size: 12px;
  }

  /* Mobile Hero & Footer Polish */
  .hero-card { min-height: 270px; border-radius: 16px; }
  .hero-overlay { padding: 18px; }
  .hero-overlay h1 { font-size: 22px !important; }
  .site-footer {
    padding: 24px 0 28px;
    margin-top: 32px;
  }
  .footer-grid { gap: 18px; }
  .footer-brand-header strong { font-size: 19px !important; }
  .footer-bar-mobile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }
}

/* Homepage Hero Right Panel Switcher & Items */
.hero-panel-tabs {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 10px;
}
.hero-panel-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hero-panel-tab.active {
  background: var(--navy);
  color: var(--ivory);
}
.hero-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--paper);
  text-decoration: none;
}
.hero-list-item:last-child {
  border-bottom: none;
}
.hero-list-item:hover .hero-item-title {
  color: var(--terracotta);
}

/* Interactive Logo Cropper Modal */
.pc-crop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 20, 32, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pc-crop-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.pc-crop-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: repeating-conic-gradient(var(--paper) 0% 25%, var(--ivory) 0% 50%) 50% / 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  overflow: hidden;
}
.pc-crop-canvas {
  cursor: grab;
  border: 2px dashed var(--terracotta);
  border-radius: 8px;
  max-width: 100%;
  touch-action: none;
  background: transparent;
}
.pc-crop-canvas:active {
  cursor: grabbing;
}

/* Custom Website Video & Audio Players */
.pc-media-figure {
  margin: 18px 0;
}
.pc-media-caption {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  font-weight: 600;
}
.pc-vplayer {
  position: relative;
  background: #070E16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(10, 22, 34, 0.22);
  margin: 16px 0;
  user-select: none;
}
.pc-vplayer-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pc-vplayer-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pc-vplayer-bigplay {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(184, 59, 43, 0.9);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.pc-vplayer-bigplay:hover {
  transform: scale(1.07);
}
.pc-vplayer.is-playing .pc-vplayer-bigplay {
  opacity: 0;
  pointer-events: none;
}
.pc-vplayer-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(7, 14, 22, 0.8) 0%, transparent 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.pc-vplayer-title {
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-vplayer-badge {
  background: rgba(30, 111, 92, 0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.pc-vplayer-controls {
  background: linear-gradient(180deg, rgba(11, 20, 30, 0.94) 0%, #070E16 100%);
  color: #F4F1EA;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pc-seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-seek-slider {
  flex: 1;
  accent-color: #E07A68;
  height: 5px;
  cursor: pointer;
  border: none;
  background: transparent;
}
.pc-time-label {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #CBD5E1;
  white-space: nowrap;
}
.pc-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-ctrl-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.pc-pbtn {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}
.pc-pbtn:hover {
  background: rgba(184, 59, 43, 0.88);
  border-color: transparent;
}
.pc-pselect {
  background: #142230;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  min-height: 32px;
  cursor: pointer;
}
.pc-vol-slider {
  width: 74px;
  accent-color: #58BFA5;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* Custom Website Audio Player */
.pc-aplayer {
  background: linear-gradient(135deg, var(--paper) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--terracotta);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
  box-shadow: 0 8px 22px rgba(15, 41, 61, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pc-aplayer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-aplayer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pc-aplayer-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--terracotta));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pc-aplayer.is-playing .pc-aplayer-disc {
  animation: pcSpinDisc 4s linear infinite;
}
@keyframes pcSpinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.pc-aplayer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-aplayer .pc-pbtn {
  background: var(--navy);
  color: var(--ivory);
  border-color: transparent;
}
.pc-aplayer .pc-pbtn:hover {
  background: var(--terracotta);
}
.pc-aplayer .pc-pselect {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--border);
}
.pc-aplayer .pc-time-label {
  color: var(--muted);
}

/* Multi-Item Left Hero Showcase Box (Articles & Magazines + Pinned) */
.hero-showcase {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 430px;
  background: #0B1F30;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15, 41, 61, 0.14);
}
.hero-showcase-stage {
  position: relative;
  flex: 1;
  min-height: 335px;
  display: flex;
  align-items: flex-end;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
  transform: scale(1.015);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #FFFFFF;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.6s ease;
}
.hero-slide:hover img {
  transform: scale(1.03);
}
.hero-slide-overlay {
  position: relative;
  z-index: 3;
  padding: 26px 26px 20px;
  background: linear-gradient(180deg, rgba(10, 27, 41, 0.08) 0%, rgba(10, 27, 41, 0.72) 45%, rgba(8, 22, 34, 0.96) 100%);
  width: 100%;
}
.hero-slide-overlay h1,
.hero-slide-overlay h2 {
  color: #FFFFFF;
}
.hero-showcase-topbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero-showcase-topbar > * {
  pointer-events: auto;
}
.hero-showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 41, 61, 0.84);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.hero-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-counter-pill {
  background: rgba(10, 25, 38, 0.78);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
}
.hero-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 41, 61, 0.82);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.hero-nav-btn:hover {
  background: #B83B2B;
  border-color: transparent;
  transform: scale(1.06);
}
.hero-pin-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F59E0B;
  color: #111827;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hero-thumb-strip {
  position: relative;
  z-index: 6;
  background: rgba(8, 22, 34, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.hero-thumb-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  min-width: 168px;
  max-width: 215px;
  flex: 1 0 168px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.hero-thumb-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}
.hero-thumb-btn.is-active {
  background: rgba(184, 59, 43, 0.28);
  border-color: #E07A68;
  color: #FFFFFF;
}
.hero-thumb-btn img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-thumb-meta {
  min-width: 0;
  flex: 1;
}
.hero-thumb-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-thumb-tag {
  font-size: 10px;
  font-weight: 700;
  color: #F3C6A5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
@media (max-width: 760px) {
  .hero-showcase { min-height: 360px; border-radius: 16px; }
  .hero-showcase-stage { min-height: 270px; }
  .hero-slide-overlay { padding: 18px 16px 14px; }
  .hero-slide-overlay h1,
  .hero-slide-overlay h2 { font-size: 21px !important; }
  .hero-thumb-btn { min-width: 148px; flex: 0 0 148px; }
}
