:root {
  --navy: #0a1628; --navy-mid: #132040; --navy-light: #1e3a6e;
  --gold: #b8963e; --gold-light: #d4af6a;
  --offwhite: #f7f4ef; --cream: #f0ebe1; --cream-dark: #e8e1d4;
  --thumb-placeholder-bg: #ece6da;
  --thumb-placeholder-mid: #f7f3eb;
  --thumb-placeholder-accent: rgba(184,150,62,0.16);
  --text-primary: #0d1b2e; --text-secondary: #2c3e5a; --text-muted: #5a6a80;
  --border: #cfc9bc; --border-light: #e2ddd4;
  --site-frame: min(1400px, calc(100vw - 2in));
  --document-frame: 1040px;
  --nav-fixed-height: 0px;
}
@media (max-width:1100px) {
  :root { --site-frame: calc(100vw - 2in); }
}
@media (max-width:900px) {
  :root { --site-frame: calc(100vw - 32px); }
}
@media (max-width:480px) {
  :root { --site-frame: 100%; }
}
* { margin:0; padding:0; box-sizing:border-box; }
html { overflow-x:hidden; overscroll-behavior:none; -webkit-overflow-scrolling:touch; }
body { background:var(--offwhite); color:var(--text-primary); font-family:'EB Garamond',Georgia,serif; font-size:clamp(15px,1.1vw + 12px,18px); line-height:1.7; overflow-x:hidden; }
img, video, canvas, svg { max-width:100%; }
button, input, select, textarea, a { -webkit-tap-highlight-color:rgba(184,150,62,0.22); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }

/* TOPBAR */
.topbar {
  background:var(--navy); color:#a8b8cc; font-family:'Lato',sans-serif; font-size:11px; letter-spacing:0.11em; text-transform:uppercase;
  padding:6px 28px;
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px;
  border-top:1px solid rgba(212,175,106,0.42); border-bottom:1px solid rgba(212,175,106,0.42);
  width:100%;
}
.topbar span { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar #live-date { display:none; }
.topbar-place { justify-self:start; color:#d7e2ef; letter-spacing:0.16em; }
.topbar-visitor { justify-self:end; display:inline-flex; align-items:center; gap:6px; color:#d7e2ef; }
.topbar-visitor strong { color:#f0d58a; }
.topbar-visitor-icon { font-size:12px; line-height:1; opacity:0.86; }

/* MASTHEAD */
.masthead { background:#f7f4ef; border-bottom:3px double var(--navy); padding:clamp(10px,2.5vw,20px) clamp(12px,3vw,32px) clamp(8px,1.8vw,16px); text-align:center; overflow:hidden; }
.masthead-inner { max-width:var(--site-frame); margin:0 auto; position:relative; overflow:visible; }
.masthead-rule-top { border:none; border-top:1px solid var(--navy); margin-bottom:clamp(6px,1vw,10px); }
.masthead-rule-bot { border:none; border-top:1px solid var(--navy); margin-top:clamp(6px,1vw,10px); }

/* -- Title -- */
.masthead-title {
  font-family:'Cinzel',Georgia,serif;
  font-size:clamp(20px,6vw,36px);
  color:var(--navy); line-height:1.18;
  letter-spacing:0.04em; font-weight:700;
  user-select:none; max-width:100%; overflow:hidden;
}
.title-nobr { white-space:nowrap; }
.title-line1 { display:inline; }
.title-line2 { display:inline; }
@media (max-width:900px) {
  .title-line1 { display:block; white-space:nowrap; }
  .title-line2 { display:block; white-space:nowrap; }
}

/* -- Sub-heading: Law • Education • … -- */
/* Base styles — JS fitMastheadSub() overrides font-size & letter-spacing at runtime
   to guarantee the line always fits in one line at every screen width */
.masthead-sub {
  font-family:'Lato',sans-serif;
  font-size:clamp(5px,2.3vw,11.5px);
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-top:clamp(3px,0.6vw,6px);
  font-weight:400;
  white-space:nowrap;
  overflow:hidden;
  width:100%;
  display:block;
  text-align:center;
}

/* -- Founder line -- */
.masthead-founder {
  font-family:'Lato',sans-serif;
  font-size:clamp(6.5px,1.2vw,10.5px);
  line-height:1.55;
  color:var(--navy);
  margin-top:clamp(3px,0.6vw,7px);
  letter-spacing:clamp(0.03em,0.3vw,0.055em);
  font-style:normal; font-weight:400;
  text-transform:uppercase;
}
.masthead-founder span {
  color:var(--navy);
  font-size:clamp(7.5px,1.3vw,11.5px);
  font-style:normal; font-weight:700;
  letter-spacing:clamp(0.03em,0.3vw,0.07em);
}

/* -- Logo image -- */
.masthead-logo-wrap {
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:clamp(4px,0.8vw,8px);
  margin-bottom:clamp(6px,1.2vw,10px);
  min-width:0; max-width:100%; overflow:hidden;
}
.masthead-logo-img {
  width:clamp(32px,6vw,58px);
  height:clamp(32px,6vw,58px);
  object-fit:contain;
  filter:drop-shadow(0 2px 8px rgba(184,150,62,0.35));
}

/* -- Meta bar: date | Submit Article | Vol -- */
.masthead-meta {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  margin-top:clamp(4px,0.8vw,8px);
  font-family:'Lato',sans-serif;
  font-size:clamp(7.5px,1.1vw,11px);
  color:var(--text-muted);
  letter-spacing:0.04em;
  gap:clamp(3px,0.6vw,8px);
}
.masthead-meta > span:first-child {
  text-align:left; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; min-width:0;
}
.masthead-meta > span:last-child {
  text-align:right; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; min-width:0;
}
.masthead-meta > button { justify-self:center; }

/* NAV */
#main-nav {
  background:var(--navy); position:relative; z-index:950; border-bottom:2px solid var(--gold);
  transition:transform 0.38s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s ease, background-color 0.28s ease;
  backface-visibility:hidden;
  transform:translate3d(0,0,0);
}
#main-nav.nav-fixed {
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:960;
  box-shadow:0 6px 24px rgba(5,12,24,0.22);
}
#main-nav.nav-hidden {
  transform:translate3d(0,-100%,0);
}
body.has-open-overlay #main-nav,
body.has-open-overlay #main-nav.nav-fixed {
  z-index:920;
  box-shadow:none;
  pointer-events:none;
}
.nav-inner { max-width:var(--site-frame); margin:0 auto; display:flex; align-items:center; }
.nav-logo { font-family:'Cinzel',Georgia,serif; font-size:clamp(12px,1.4vw,20px); font-weight:700; letter-spacing:0.08em; color:var(--gold-light); padding:10px 20px 10px 16px; border-right:1px solid rgba(255,255,255,0.12); white-space:nowrap; cursor:pointer; display:block; text-decoration:none; transition:color 0.2s; }
.nav-logo:hover { color:#fff; }
.nav-logo.visible { display:block; }
.nav-links { display:flex; align-items:center; flex:1; overflow-x:auto; scrollbar-width:none; }
.nav-links::-webkit-scrollbar { display:none; }
.nav-links a { color:#c5d2e0; text-decoration:none; font-family:'Lato',sans-serif; font-size:clamp(9px,0.75vw,11px); letter-spacing:0.08em; text-transform:uppercase; padding:13px 11px; white-space:nowrap; border-bottom:2px solid transparent; transition:color 0.2s,border-color 0.2s; }
.nav-links a:hover, .nav-links a.active { color:#fff; border-bottom-color:var(--gold); }
.nav-right { margin-left:auto; padding:0 16px; display:flex; gap:8px; align-items:center; }
.btn-upload-nav { background:transparent; color:var(--gold); border:1px solid var(--gold); font-family:'Lato',sans-serif; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; font-weight:700; padding:7px 11px; cursor:pointer; transition:background 0.2s, padding 0.35s ease, min-width 0.35s ease; white-space:nowrap; overflow:hidden; }
.btn-upload-nav:hover { background:rgba(212, 175, 55, 0.15); }
.btn-join-nav { background:transparent; color:#c5d2e0; border:1px solid rgba(180,200,220,0.35); font-family:'Lato',sans-serif; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; font-weight:700; padding:7px 14px; cursor:pointer; transition:background 0.2s,color 0.2s, padding 0.35s ease, min-width 0.35s ease; white-space:nowrap; overflow:hidden; }
.btn-join-nav:hover { background:rgba(255,255,255,0.08); color:#fff; }

/* btn-label-short is ALWAYS hidden by default */
.btn-join-nav .btn-label-short { display:none; }
.btn-upload-nav .btn-label-editor { display:none; }
.btn-upload-nav .btn-icon-lock { display:none; }

/* -- Nav height scaling by breakpoint -- */
@media (max-width:900px) {
  .nav-logo { font-size:15px; padding:8px 14px 8px 12px; }
  .nav-links a { font-size:9.5px; padding:10px 8px; letter-spacing:0.06em; }
  .nav-right { padding:0 10px; gap:6px; }
  .btn-upload-nav { font-size:10px; padding:6px 9px; }
  .btn-join-nav { font-size:10px; padding:6px 11px; }
}
@media (max-width:600px) {
  .nav-logo { font-size:13px; padding:7px 10px; }
  .nav-links a { font-size:8.5px; padding:7px 6px; letter-spacing:0.04em; }
  .nav-right { padding:0 6px; gap:4px; }
  .btn-upload-nav { font-size:9px; padding:5px 7px; }
  .btn-join-nav { font-size:9px; padding:5px 8px; }
}
@media (max-width:400px) {
  .nav-logo { font-size:12px; padding:6px 8px; }
  .nav-links a { font-size:8px; padding:6px 5px; }
  .nav-right { padding:0 4px; gap:3px; }
  .btn-upload-nav { font-size:8.5px; padding:4px 6px; }
  .btn-join-nav { font-size:8.5px; padding:4px 6px; }
}

/* Mobile nav compact mode - triggered on scroll when ILIRH logo appears */
@media (max-width:900px) {
  /* Compact (scrolled): show "Subscribe" only, hide "Join & Subscribe" */
  #main-nav.nav-compact .btn-join-nav .btn-label-full { display:none; }
  #main-nav.nav-compact .btn-join-nav .btn-label-short { display:inline; }
  #main-nav.nav-compact .btn-join-nav { padding:4px 8px; }
  /* Compact: editor button shrinks to lock icon */
  #main-nav.nav-compact .btn-upload-nav .btn-label-editor { display:none; }
  #main-nav.nav-compact .btn-upload-nav .btn-icon-lock { display:inline; font-style:normal; }
  #main-nav.nav-compact .btn-upload-nav { padding:4px 8px; }
}

/* Under 300px: always icon-only regardless of scroll */
@media (max-width:300px) {
  .btn-join-nav .btn-label-full { display:none !important; }
  .btn-join-nav .btn-label-short { display:none !important; }
  .btn-upload-nav .btn-label-editor { display:none !important; }
  .btn-join-nav { padding:4px 6px !important; }
  .btn-upload-nav { padding:4px 6px !important; }
}

/* TICKER */
.ticker-bar { background:var(--cream-dark); border-bottom:1px solid var(--border); padding:7px 0; transition:margin-top 0.22s ease; }
body.category-route-active .ticker-bar { margin-bottom:22px; }
body.category-route-active #site-logo-banner,
body.article-route-active #site-logo-banner,
body.author-route-active #site-logo-banner { display:none !important; }
html.route-pending .ticker-bar,
html.route-pending #site-logo-banner,
html.route-pending #hero-section,
html.route-pending #live-home-section,
html.route-pending #notice-board-section,
html.route-pending #marketing-video-section,
html.route-pending #spotlight-section,
html.route-pending #author-dashboard-section,
html.route-pending #categories-wrap {
  display:none !important;
}
.ticker-inner { max-width:var(--site-frame); margin:0 auto; display:flex; align-items:center; gap:16px; padding:0 16px; }
.ticker-label { background:var(--navy); color:#fff; font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; padding:3px 10px; flex-shrink:0; }
.ticker-text { font-family:'Lato',sans-serif; font-size:12px; color:var(--text-secondary); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ticker-text a { color:inherit; text-decoration:none; cursor:pointer; }
.ticker-text a:hover { color:var(--navy); text-decoration:underline; text-decoration-color:var(--gold); }

/* LAYOUT */
html,
body {
  overflow-anchor:none;
}
.site-wrap { max-width:var(--site-frame); margin:0 auto; padding:0 16px; }
.hero-section,
.live-home-section,
.notice-board-section,
.marketing-video-section,
.spotlight-section,
.category-section,
.article-card,
.google-auto-placed {
  overflow-anchor:none;
}

/* HERO */
.hero-section { padding:28px 0 0; border-bottom:2px solid var(--border); margin-bottom:32px; }
.hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; }
.hero-main { padding-right:28px; border-right:1px solid var(--border); }
.hero-sidebar { padding-left:28px; display:flex; flex-direction:column; }
.section-label { font-family:'Lato',sans-serif; font-size:clamp(8.5px,0.75vw,10.5px); font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:var(--navy-light); border-bottom:2px solid var(--navy-light); padding-bottom:5px; margin-bottom:14px; display:inline-block; }
.hero-category-tag { font-family:'Lato',sans-serif; font-size:clamp(8.5px,0.75vw,10.5px); font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; }
.hero-headline { font-family:'Playfair Display',Georgia,serif; font-size:clamp(20px,2.8vw,34px); font-weight:700; line-height:1.18; color:var(--navy); margin-bottom:12px; cursor:pointer; }
.hero-headline a { color:inherit; text-decoration:none; }
.hero-headline:hover { text-decoration:underline; text-decoration-color:var(--gold); }
.hero-byline { font-family:'Lato',sans-serif; font-size:clamp(10px,0.85vw,12px); color:var(--text-muted); margin-bottom:12px; }
.hero-excerpt { font-size:clamp(13px,1vw,15.5px); color:var(--text-secondary); line-height:1.65; }
.sidebar-article { padding:14px 0; border-bottom:1px solid var(--border-light); cursor:pointer; display:grid; grid-template-columns:96px minmax(0,1fr); gap:12px; align-items:start; color:inherit; text-decoration:none; }
.sidebar-article:last-child { border-bottom:none; }
.sidebar-article:hover .sidebar-headline { text-decoration:underline; text-decoration-color:var(--gold); }
.sidebar-thumb { width:96px; aspect-ratio:3/2; background:linear-gradient(90deg,var(--thumb-placeholder-bg) 25%,var(--thumb-placeholder-mid) 50%,var(--thumb-placeholder-bg) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; border:1px solid var(--border-light); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:10px; font-weight:800; flex-shrink:0; }
.sidebar-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.sidebar-cat { font-family:'Lato',sans-serif; font-size:clamp(8.5px,0.7vw,10px); font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:var(--gold); margin-bottom:5px; }
.sidebar-headline { font-family:'Playfair Display',serif; font-size:clamp(13px,1.1vw,15.5px); font-weight:600; line-height:1.3; color:var(--navy); margin-bottom:4px; }
.sidebar-meta { font-family:'Lato',sans-serif; font-size:clamp(9px,0.75vw,11px); color:var(--text-muted); }

/* CARDS */
.category-section { margin-bottom:40px; padding-bottom:32px; border-bottom:2px solid var(--border); }
.cat-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; border-bottom:2px solid var(--navy); padding-bottom:8px; }
.cat-title { font-family:'Playfair Display',serif; font-size:clamp(28px,2.5vw,36px); font-weight:700; color:var(--navy); line-height:1.05; }
.category-section.category-single { margin-top:0; }
.category-section.category-single .cat-header { align-items:flex-end; padding-bottom:12px; margin-bottom:26px; }
.category-section.category-single .cat-title { font-size:clamp(32px,4vw,48px); letter-spacing:-0.01em; }
.category-section.category-single .cat-count { transform:translateY(-4px); }
.cat-more { font-family:'Lato',sans-serif; font-size:11px; letter-spacing:0.1em; text-transform:uppercase; color:var(--navy-light); text-decoration:none; cursor:pointer; }
.cat-more:hover { color:var(--gold); }
.articles-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.grid-4-cols { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
@media(max-width:1100px) { .grid-4-cols { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:850px) { .grid-4-cols { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }
@media(max-width:600px) { .grid-4-cols { grid-template-columns:1fr; } }
.article-card { cursor:pointer; min-width:0; max-width:100%; overflow:hidden; color:inherit; text-decoration:none; }
.article-card:hover .card-headline { text-decoration:underline; text-decoration-color:var(--gold); }
.card-thumb-wrap { position:relative; width:100%; aspect-ratio:3/2; background:linear-gradient(90deg,var(--thumb-placeholder-bg) 25%,var(--thumb-placeholder-mid) 50%,var(--thumb-placeholder-bg) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; margin-bottom:10px; border:1px solid var(--border-light); overflow:hidden; }
.card-thumb-wrap img { width:100%; height:100%; object-fit:cover; object-position:top center; transform-origin:top center; display:block; opacity:0; transform:translateZ(0); will-change:transform, opacity; }
.card-thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; opacity:0.25; }
.card-cat { font-family:'Lato',sans-serif; font-size:clamp(8px,0.65vw,10px); font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:var(--gold); margin-bottom:6px; }
.card-headline { font-family:'Playfair Display',serif; font-size:clamp(14px,1.2vw,17px); font-weight:700; line-height:1.24; color:var(--navy); margin-bottom:7px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; overflow-wrap:anywhere; }
.card-meta { font-family:'Lato',sans-serif; font-size:clamp(9px,0.72vw,10.5px); line-height:1.45; color:var(--text-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-excerpt { font-family:'EB Garamond',serif; font-size:clamp(12px,0.95vw,14.5px); color:var(--text-secondary); margin-top:6px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.category-compass {
  margin:0 0 18px; border:1px solid var(--border-light); border-left:4px solid var(--gold);
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 68%,#f7f1df 100%);
  padding:13px 15px; display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer;
  color:inherit; text-decoration:none;
  transition:transform 0.18s ease,border-color 0.18s ease,box-shadow 0.18s ease;
}
.category-compass:hover { transform:translateY(-1px); border-color:var(--gold); box-shadow:0 10px 24px rgba(10,22,40,0.08); }
.category-compass:hover .category-compass-title { text-decoration:underline; text-decoration-color:var(--gold); }
.category-compass-kicker { font-family:'Lato',sans-serif; font-size:9px; font-weight:900; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); margin-bottom:5px; }
.category-compass-title { font-family:'Playfair Display',serif; font-size:18px; line-height:1.2; font-weight:800; color:var(--navy); }
.category-compass-meta { font-family:'Lato',sans-serif; font-size:11px; color:var(--text-muted); white-space:nowrap; }
.empty-state { text-align:center; padding:48px 20px; color:var(--text-muted); font-family:'EB Garamond',serif; font-style:italic; font-size:17px; border:1px dashed var(--border); }

@media(max-width:1120px) {
  .articles-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
  .card-headline { font-size:16px; }
  .card-excerpt { display:-webkit-box; }
}

/* LOADING */
.loading-state { text-align:center; padding:48px 20px; color:var(--text-muted); font-family:'Lato',sans-serif; font-size:13px; }
.spinner { display:inline-block; width:24px; height:24px; border:2px solid var(--border); border-top-color:var(--navy); border-radius:50%; animation:spin 0.8s linear infinite; margin-bottom:10px; }
@keyframes spin { to { transform:rotate(360deg); } }
.skeleton { background:linear-gradient(90deg,var(--thumb-placeholder-bg) 25%,var(--thumb-placeholder-mid) 50%,var(--thumb-placeholder-bg) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:2px; }
.skeleton-page { width:100%; grid-column:1/-1; text-align:left; }
.skeleton-hero-grid { display:grid; grid-template-columns:1.7fr 1fr; gap:0; width:100%; }
.skeleton-hero-main { padding-right:28px; border-right:1px solid var(--border-light); }
.skeleton-hero-side { padding-left:28px; }
.skeleton-kicker { height:12px; width:76px; margin-bottom:12px; }
.skeleton-image { width:100%; aspect-ratio:4/3; margin-bottom:14px; }
.skeleton-line { height:14px; margin-bottom:8px; }
.skeleton-title-line { height:26px; margin-bottom:10px; }
.skeleton-side-item { padding:14px 0; border-bottom:1px solid var(--border-light); }
.skeleton-live { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:20px 0 18px; }
.skeleton-live .skeleton { height:82px; }
.skeleton-category { margin:28px 0; padding-top:4px; }
.skeleton-category-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.skeleton-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.skeleton-card { border:1px solid var(--border-light); background:rgba(255,255,255,0.55); padding:14px; min-height:245px; }
.skeleton-card .skeleton-image { aspect-ratio:3/2; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@media(max-width:900px) {
  .skeleton-hero-grid { grid-template-columns:1fr; }
  .skeleton-hero-main { padding-right:0; border-right:none; border-bottom:1px solid var(--border-light); padding-bottom:20px; margin-bottom:18px; }
  .skeleton-hero-side { padding-left:0; }
  .skeleton-live { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .skeleton-card-grid { grid-template-columns:1fr; gap:14px; }
}

footer { background:var(--navy); color:#8fa4bf; padding:36px 32px 20px; margin-top:48px; font-family:'Lato',sans-serif; font-size:clamp(10px,0.85vw,12px); }
.footer-copy-short { display:none; }
.footer-copy-full { display:inline; }
@media (max-width:520px) {
  .footer-copy-full { display:none; }
  .footer-copy-short { display:inline; }
}
.footer-inner { max-width:var(--site-frame); margin:0 auto; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; margin-bottom:24px; }
.footer-brand { font-family:'Cinzel',Georgia,serif; font-size:clamp(18px,2vw,26px); font-weight:700; letter-spacing:0.08em; color:var(--gold-light); margin-bottom:10px; }
.footer-desc { font-size:clamp(10px,0.8vw,12px); line-height:1.7; color:#7a90a8; }
.footer-col h4 { font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:#b5c8da; margin-bottom:10px; }
.footer-col a { display:block; color:#7a90a8; text-decoration:none; margin-bottom:6px; transition:color 0.2s; }
.footer-col a:hover { color:var(--gold-light); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding-top:16px; display:flex; justify-content:space-between; align-items:center; gap:18px; }
.footer-bottom p { color:#5a6e80; font-size:11px; }
.footer-status { display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:flex-end; color:#5a6e80; }
.footer-status-divider { color:#3a4e60; }
.footer-visitor { display:inline-flex; align-items:center; gap:6px; font-family:'Lato',sans-serif; font-size:11px; color:#7a90a8; letter-spacing:0.06em; }
.footer-visitor-icon { font-size:13px; line-height:1; }
 /* Prevent background scroll-chaining on all modals/overlays (especially for iOS Safari) */
.modal-overlay, .login-overlay, .join-overlay, .upload-overlay,
#subscribe-pop-overlay, .promo-home-preview-overlay, #search-overlay,
.about-overlay, .msg-sub-overlay, .policy-overlay, .submit-overlay,
.review-detail-overlay, .promo-video-lightbox {
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}

/* MODAL */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.82); z-index:999; overflow-y:auto; padding:32px 16px; }
.modal-overlay.open { display:flex; justify-content:center; align-items:flex-start; }
.modal-box { background:var(--offwhite); max-width:var(--site-frame); width:100%; padding:34px 48px 50px; position:relative; margin:0 auto; border-top:4px solid var(--gold); touch-action:pan-y pinch-zoom;
  animation:modalSlideIn 0.32s cubic-bezier(.22,1,.36,1) both;
}
@keyframes modalSlideIn {
  from { opacity:0; transform:translateY(28px) scale(0.985); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.modal-box.nav-anim-left  { animation:modalSlideFromRight 0.22s cubic-bezier(.22,1,.36,1) both; }
.modal-box.nav-anim-right { animation:modalSlideFromLeft  0.22s cubic-bezier(.22,1,.36,1) both; }
@keyframes modalSlideFromRight {
  from { opacity:0; transform:translateX(48px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes modalSlideFromLeft {
  from { opacity:0; transform:translateX(-48px); }
  to   { opacity:1; transform:translateX(0); }
}
.modal-close { position:absolute; top:16px; right:20px; background:none; border:none; font-size:26px; cursor:pointer; color:var(--text-muted); line-height:1; }
.modal-close:hover { color:var(--navy); }
.modal-cat { font-family:'Lato',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; }
.article-breadcrumb {
  display:flex; align-items:center; flex-wrap:nowrap; gap:7px; margin:0 0 12px;
  font-family:'Lato',sans-serif; font-size:10.5px; font-weight:800; letter-spacing:0.08em;
  text-transform:uppercase; color:#7a8795; min-width:0; white-space:nowrap; overflow:hidden;
}
.article-breadcrumb button, .article-breadcrumb a {
  border:none; background:none; padding:0; color:#18395f; font:inherit; cursor:pointer;
  text-decoration:none; transition:color 0.18s; flex:0 0 auto;
}
.article-breadcrumb button:hover, .article-breadcrumb a:hover { color:#9b7a25; text-decoration:underline; }
.article-breadcrumb-current { color:#7a8795; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1 1 auto; }
.modal-title { font-family:'Playfair Display',serif; font-size:clamp(22px,4vw,34px); font-weight:800; line-height:1.15; color:var(--navy); margin-bottom:14px; }
.modal-byline { font-family:'Lato',sans-serif; font-size:12.5px; color:var(--text-muted); margin-bottom:24px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.modal-author-link { color:#18395f; font-weight:800; text-decoration:none; }
.modal-author-link:hover { color:#9b7a25; text-decoration:underline; }
.modal-content { font-family:'EB Garamond',serif; font-size:18px; line-height:1.8; color:var(--text-secondary); }
.modal-file-frame { width:100%; height:85vh; border:1px solid var(--border); margin-top:20px; display:block; }
.modal-img { width:100%; height:auto; max-height:none; object-fit:contain; margin-top:20px; border:1px solid var(--border); display:block; }

/* UPLOAD */
.upload-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.85); z-index:1000; padding:24px 16px; overflow-y:auto; align-items:flex-start; justify-content:center; }
.upload-overlay.open { display:flex; }
.upload-box { background:var(--offwhite); max-width:var(--document-frame); width:100%; padding:36px 48px; border-top:4px solid var(--navy); margin:0 auto; position:relative; }
.upload-title { font-family:'Playfair Display',serif; font-size:24px; font-weight:700; color:var(--navy); margin-bottom:6px; }
.upload-sub { font-family:'Lato',sans-serif; font-size:12px; color:var(--text-muted); margin-bottom:24px; }
.form-row { margin-bottom:16px; }
.form-row label { display:block; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-secondary); margin-bottom:6px; }
.form-row input, .form-row select, .form-row textarea { width:100%; padding:9px 12px; border:1px solid var(--border); background:#fff; font-family:'EB Garamond',serif; font-size:16px; color:var(--text-primary); outline:none; transition:border-color 0.2s; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color:var(--navy); }
.form-row textarea { height:80px; resize:vertical; }
.drop-zone { border:2px dashed var(--border); padding:28px 20px; text-align:center; cursor:pointer; transition:border-color 0.2s,background 0.2s; font-family:'Lato',sans-serif; font-size:13px; color:var(--text-muted); margin-bottom:16px; position:relative; }
.drop-zone:hover, .drop-zone.dragover { border-color:var(--navy); background:var(--cream); }
.drop-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.drop-filename { font-weight:700; color:var(--navy); margin-top:8px; }
.btn-primary { background:var(--navy); color:#fff; border:none; font-family:'Lato',sans-serif; font-size:12px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; padding:12px 28px; cursor:pointer; transition:background 0.2s; width:100%; }
.btn-primary:hover { background:var(--navy-light); }
.btn-cancel { background:none; border:1px solid var(--border); color:var(--text-muted); font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:10px 20px; cursor:pointer; margin-top:10px; width:100%; transition:border-color 0.2s; }
.btn-cancel:hover { border-color:var(--navy); color:var(--navy); }
.progress-bar { width:100%; background:var(--cream-dark); height:6px; margin-top:12px; display:none; }
.progress-fill { height:100%; background:var(--navy); width:0%; transition:width 0.3s; }

/* LOGIN */
.login-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.88); z-index:1001; align-items:center; justify-content:center; }
.login-overlay.open { display:flex; }
.login-box { background:var(--offwhite); width:360px; padding:36px 36px 32px; border-top:4px solid var(--gold); position:relative; text-align:center; }
.login-box h3 { font-family:'Playfair Display',serif; font-size:20px; font-weight:700; color:var(--navy); margin-bottom:4px; }
.login-box p { font-family:'Lato',sans-serif; font-size:12px; color:var(--text-muted); margin-bottom:20px; }
.login-box input { width:100%; padding:9px 12px; border:1px solid var(--border); background:#fff; font-family:'Lato',sans-serif; font-size:14px; color:var(--text-primary); margin-bottom:14px; outline:none; text-align:center; letter-spacing:0.2em; }
.login-box input:focus { border-color:var(--navy); }
.login-err { color:#a32d2d; font-family:'Lato',sans-serif; font-size:12px; margin-top:-6px; margin-bottom:10px; }

/* JOIN / SUBSCRIBE POPUP */
.join-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(5,12,24,0.72);
  backdrop-filter:blur(8px);
  z-index:1001;
  align-items:center; justify-content:center;
  padding:20px;
  overscroll-behavior:none; touch-action:none;
}
.join-overlay.open { display:flex; }

.join-box {
  background:#fff;
  width:100%; max-width:400px;
  padding:40px 36px 28px;
  touch-action:auto;
  border-radius:14px;
  box-shadow:0 24px 64px rgba(5,12,24,0.22);
  position:relative;
  text-align:center;
  animation:joinBoxIn 0.32s cubic-bezier(.22,1,.36,1) both;
}
@keyframes joinBoxIn {
  from { opacity:0; transform:translateY(20px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.join-herald {
  font-family:'Cinzel',Georgia,serif;
  font-size:11px; font-weight:700;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:14px;
}
.join-box h3 {
  font-family:'Playfair Display',serif;
  font-size:22px; font-weight:700;
  color:var(--navy);
  line-height:1.25;
  margin-bottom:8px;
}
.join-box > p {
  font-family:'Lato',sans-serif;
  font-size:13px;
  color:var(--text-muted);
  line-height:1.6;
  margin-bottom:24px;
}
.join-box input {
  display:block;
  width:100%;
  padding:11px 14px;
  margin-bottom:10px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fafafa;
  font-family:'Lato',sans-serif;
  font-size:14px;
  color:var(--text-primary);
  outline:none;
  text-align:left;
  transition:border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance:none;
}
.join-box input:focus {
  border-color:var(--navy);
  background:#fff;
  box-shadow:0 0 0 3px rgba(10,22,40,0.07);
}
.join-box input::placeholder { color:#b0b8c4; }
.join-subscribe-btn {
  display:block; width:100%;
  margin-top:4px;
  margin-bottom:0;
  padding:12px 20px;
  background:var(--navy);
  color:#fff;
  border:none;
  border-radius:8px;
  font-family:'Lato',sans-serif;
  font-size:12px; font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background 0.2s, transform 0.18s, box-shadow 0.18s;
}
.join-subscribe-btn:hover {
  background:var(--navy-light);
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(10,22,40,0.16);
}
.join-success {
  display:none;
  margin-top:12px;
  padding:10px 14px;
  background:#eaf3de;
  border:1px solid #c0dd97;
  border-radius:6px;
  color:#27500a;
  font-family:'Lato',sans-serif;
  font-size:13px;
}
.join-note {
  font-family:'Lato',sans-serif;
  font-size:11px;
  color:#aab2bc;
  margin-top:16px;
  line-height:1.5;
}
.join-close-btn {
  position:absolute; top:14px; right:14px;
  width:28px; height:28px;
  border:none; border-radius:50%;
  background:rgba(10,22,40,0.06);
  color:var(--text-muted);
  font-size:16px; line-height:1;
  cursor:pointer; display:flex;
  align-items:center; justify-content:center;
  transition:background 0.15s;
}
.join-close-btn:hover { background:rgba(10,22,40,0.12); }

@media (max-width:480px) {
  .join-overlay { padding:0; align-items:flex-end; }
  .join-box {
    max-width:100%; border-radius:18px 18px 0 0;
    padding:32px 24px 28px;
  }
}

/* Image Lightbox Modal Styles */
.image-lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000; /* High z-index to sit on top of everything */
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(10, 22, 40, 0.95); /* Dark navy background */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.3s ease; /* Smooth zoom transition */
}

/* Zooming classes */
.lightbox-content:not(.zoomed) {
  cursor: zoom-in;
}
.lightbox-content.zoomed {
  transform: scale(1.6); /* Adjust this number to make it zoom more or less */
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f7f4ef;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover { color: #d4af6a; }

/* -- DEEP ZOOM LIGHTBOX UPGRADE -- */
#image-lightbox { display:none; position:fixed; inset:0; z-index:2000; background:rgba(5,12,24,0.97); overflow:hidden; touch-action:none; }
#image-lightbox.open { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; }
.lbx-toolbar { position:fixed; top:0; left:0; right:0; display:flex; align-items:center; justify-content:space-between; padding:14px 20px; background:linear-gradient(rgba(5,12,24,0.95),rgba(5,12,24,0.6) 70%,transparent); z-index:2010; flex-shrink:0; }
.lbx-btns { display:flex; gap:8px; }
.lbx-btn { background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.18); color:#f7f4ef; font-family:'Lato',sans-serif; font-size:11px; letter-spacing:0.1em; text-transform:uppercase; padding:7px 14px; cursor:pointer; transition:background 0.2s; border-radius:2px; }
.lbx-btn:hover { background:rgba(212,175,106,0.3); border-color:var(--gold); color:var(--gold-light); }
.lbx-btn.active { background:rgba(184,150,62,0.35); border-color:var(--gold); color:var(--gold-light); }
.lbx-download-wrap { position:relative; display:inline-flex; }
.lbx-icon-btn {
  width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center;
  padding:0; border:1px solid rgba(255,255,255,0.18); border-radius:8px;
  background:rgba(255,255,255,0.12); color:#f7f4ef; cursor:pointer;
}
.lbx-icon-btn:hover,
.lbx-icon-btn.active { background:rgba(212,175,106,0.3); border-color:var(--gold); color:var(--gold-light); }
.lbx-icon-btn svg { width:17px; height:17px; stroke:currentColor; }
.lbx-download-menu {
  display:none; position:absolute; top:42px; right:0; min-width:158px; padding:6px 0;
  background:#fff; border:1px solid rgba(24,57,95,0.16); border-radius:8px;
  box-shadow:0 18px 42px rgba(0,0,0,0.26);
}
.lbx-download-menu.open { display:block; }
.lbx-download-menu button {
  width:100%; display:flex; align-items:center; gap:9px; padding:9px 12px;
  border:0; border-bottom:1px solid rgba(24,57,95,0.1); background:transparent; color:#10243a;
  cursor:pointer; font-family:'Lato',sans-serif; font-size:10px; font-weight:900;
  letter-spacing:0.08em; text-transform:uppercase;
}
.lbx-download-menu button:last-child { border-bottom:0; }
.lbx-download-menu button:hover { background:#f8fafc; color:#9b7a25; }
.lbx-close-btn { background:none; border:none; color:#f7f4ef; font-size:30px; cursor:pointer; line-height:1; padding:0 4px; transition:color 0.2s; }
.lbx-close-btn:hover { color:var(--gold-light); }
.lbx-hint { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); background:rgba(5,12,24,0.75); color:#a8b8cc; font-family:'Lato',sans-serif; font-size:11px; letter-spacing:0.08em; padding:6px 16px; border-radius:20px; pointer-events:none; white-space:nowrap; transition:opacity 0.5s; }
#lbx-canvas-wrap { width:100%; flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; cursor:grab; touch-action:none; padding-top:62px; }
#lbx-canvas-wrap.grabbing { cursor:grabbing; }
#lbx-canvas-wrap.zoom-in { cursor:zoom-in; }
#lbx-canvas-wrap.zoom-out { cursor:zoom-out; }
#lbx-img { max-width:92vw; max-height:calc(100vh - 80px); object-fit:contain; transform-origin:center center; transition:transform 0.15s ease; will-change:transform; display:block; border:1px solid rgba(255,255,255,0.06); user-select:none; -webkit-user-drag:none; touch-action:none; }
#lbx-nav-prev, #lbx-nav-next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(5,12,24,0.7); border:1px solid rgba(255,255,255,0.15); color:#f7f4ef; font-size:22px; width:44px; height:64px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background 0.2s,border-color 0.2s; z-index:10; }
#lbx-nav-prev { left:12px; }
#lbx-nav-next { right:12px; }
#lbx-nav-prev:hover, #lbx-nav-next:hover { background:rgba(184,150,62,0.25); border-color:var(--gold); }
#lbx-nav-prev.hidden, #lbx-nav-next.hidden { display:none; }
#lbx-counter { color:#8fa4bf; font-family:'Lato',sans-serif; font-size:12px; letter-spacing:0.1em; }

/* -- INLINE ARTICLE IMAGE (text-wrap) -- */
.rte-inline-img-wrap {
  float: left;
  margin: 4px 18px 10px 0;
  max-width: 44%;
  position: relative;
  line-height: 0;
  border: 1px solid var(--border);
  background: var(--cream);
}
.rte-inline-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  cursor: default;
}
.rte-inline-img-wrap .rte-img-remove {
  position: absolute;
  top: 3px; right: 3px;
  background: rgba(10,22,40,0.7);
  color: #fff; border: none;
  font-size: 13px; line-height: 1;
  padding: 2px 6px; cursor: pointer;
  border-radius: 2px; display: none;
}
.rte-inline-img-wrap:hover .rte-img-remove { display: block; }
.rte-inline-img-wrap .rte-img-caption {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 6px 5px;
  line-height: 1.3;
  outline: none;
  min-height: 1em;
  background: transparent;
  border-top: 1px solid var(--border-light);
  white-space: normal;
}
.rte-inline-img-wrap .rte-img-caption:empty:before {
  content: 'Add caption-';
  color: var(--text-muted);
  opacity: 0.5;
}
/* Clear float after editor content */
#sub-editor::after { content: ''; display: table; clear: both; }
body.dark-mode .rte-inline-img-wrap { border-color: var(--border); background: var(--cream-dark); }
body.dark-mode .rte-inline-img-wrap .rte-img-caption { border-top-color: var(--border); }

/* -- DARK MODE - comprehensive -- */
body.dark-mode {
  --offwhite: #0d1624; --cream: #111e2e; --cream-dark: #0a1520;
  --thumb-placeholder-bg: #07111d;
  --thumb-placeholder-mid: #10243a;
  --thumb-placeholder-accent: rgba(201,168,76,0.18);
  --text-primary: #d8e2ee; --text-secondary: #9fb3c8; --text-muted: #607a94;
  --border: #1f3350; --border-light: #182d44;
  --navy: #06101d; --navy-mid: #0d1a2b; --navy-light: #1c3560;
}
body.dark-mode { background:var(--offwhite); color:var(--text-primary); }

/* Masthead */
body.dark-mode .masthead { background:var(--offwhite); border-bottom-color:var(--border); }
body.dark-mode .masthead-title { color:#c8d8ea; }
body.dark-mode .masthead-sub { color:var(--text-muted); }
body.dark-mode .masthead-founder { color:#9fb3c8; }
body.dark-mode .masthead-founder span { color:#c8d8ea; }
body.dark-mode .masthead-rule-top, body.dark-mode .masthead-rule-bot { border-top-color:var(--border); }
body.dark-mode .masthead-meta { color:var(--text-muted); }
body.dark-mode .masthead-submit-cta { color:#c5d2e0; border-color:rgba(197,210,224,0.35); background:transparent; }
body.dark-mode .masthead-submit-cta:hover { background:rgba(255,255,255,0.08); color:#fff; }

/* Topbar */
body.dark-mode .topbar { background:#050e1a; color:#607a94; }

/* Ticker */
body.dark-mode .ticker-bar { background:var(--cream-dark); border-bottom-color:var(--border); }
body.dark-mode .ticker-label { background:#1c3560; color:#c8d8ea; }
body.dark-mode .ticker-text { color:var(--text-secondary); }
body.dark-mode .ticker-text a:hover { color:#fff; text-decoration-color:var(--gold); }

/* Nav - already dark, keep gold accent readable */
body.dark-mode #main-nav { background:#050e1a; border-bottom-color:var(--gold); }
body.dark-mode .nav-links a { color:#c5d2e0; }
body.dark-mode .nav-logo { color:var(--gold-light); }

/* Hero section */
body.dark-mode .hero-section { border-bottom-color:var(--border); }
body.dark-mode .hero-category-tag { color:var(--gold); }
body.dark-mode .hero-headline, body.dark-mode .hero-headline a { color:#d7e7f8 !important; }
body.dark-mode .hero-byline { color:var(--text-muted); }
body.dark-mode .hero-excerpt { color:var(--text-secondary); }
body.dark-mode .section-label { color:#8fa8c0; border-bottom-color:#1c3560; }
body.dark-mode .sidebar-article { border:none; }
body.dark-mode .sidebar-cat { color:var(--gold); }
body.dark-mode .sidebar-headline { color:#c8d8ea; }
body.dark-mode .sidebar-meta { color:var(--text-muted); }
body.dark-mode .hero-main { border-right-color:var(--border); }

/* Article cards */
body.dark-mode .category-section { border-bottom-color:var(--border); }
body.dark-mode .cat-header { border-bottom-color:#1c3560; }
body.dark-mode .cat-title { color:#c8d8ea; }
body.dark-mode .cat-more { color:#8fa8c0; }
body.dark-mode .card-thumb-wrap { border-color:var(--border); }
body.dark-mode .card-cat { color:var(--gold); }
body.dark-mode .card-headline { color:#c8d8ea; }
body.dark-mode .card-meta { color:var(--text-muted); }
body.dark-mode .card-excerpt { color:var(--text-secondary); }
body.dark-mode .empty-state { border-color:var(--border); color:var(--text-muted); }
body.dark-mode .live-home-section,
body.dark-mode .author-dashboard-section,
body.dark-mode .marketing-video-section,
body.dark-mode .notice-board-section,
body.dark-mode .article-end-panel,
body.dark-mode .article-explore-panel {
  background:#0d1624; border:none; box-shadow:none;
}
body.dark-mode .live-home-head,
body.dark-mode .compass-head,
body.dark-mode .article-cta-row,
body.dark-mode .modal-mobile-actions { border-color:var(--border); }
body.dark-mode .live-home-title,
body.dark-mode .compass-title,
body.dark-mode .compass-name,
body.dark-mode .article-explore-title,
body.dark-mode .related-title,
body.dark-mode .article-route-card strong,
body.dark-mode .article-cta-title,
body.dark-mode .notice-board-title,
body.dark-mode .marketing-video-title { color:#c8d8ea; }
body.dark-mode .compass-label,
body.dark-mode .live-stat span,
body.dark-mode .related-card-meta,
body.dark-mode .article-reading-list span { color:#8fa8c0; }
body.dark-mode .live-home-updated,
body.dark-mode .compass-copy,
body.dark-mode .compass-stat,
body.dark-mode .article-end-note,
body.dark-mode .article-route-card em,
body.dark-mode .article-cta-copy { color:var(--text-secondary); }
body.dark-mode .live-stat,
body.dark-mode .live-trending-card,
body.dark-mode .compass-card,
body.dark-mode .article-route-card,
body.dark-mode .related-card,
body.dark-mode .notice-board-card {
  background:#0a1520; border-color:var(--border);
}
body.dark-mode .article-cta-row {
  background:linear-gradient(180deg, var(--navy) 0%, var(--gold) 100%) left center/4px 100% no-repeat, #0a1520;
  border-color:var(--border);
}
body.dark-mode .live-stat strong { color:#c8d8ea; }
body.dark-mode .live-feed-title,
body.dark-mode .live-trending-title,
body.dark-mode .article-reading-list a { color:#c8d8ea; }
body.dark-mode .live-feed-item::before { box-shadow:0 0 0 3px #0d1624; }
body.dark-mode .live-chip,
body.dark-mode .article-topic-chip,
body.dark-mode .compass-strip button,
body.dark-mode .article-cta-btn.secondary {
  background:#0a1520; color:#c8d8ea; border-color:var(--border);
}
body.dark-mode .live-chip:hover,
body.dark-mode .article-topic-chip:hover,
body.dark-mode .compass-strip button:hover {
  background:#1c3560; color:#fff; border-color:var(--gold);
}
body.dark-mode .related-card { background:#0a1520; border-color:var(--border); }
body.dark-mode .related-card-title { color:#c8d8ea; }
body.dark-mode .category-compass {
  background:linear-gradient(135deg,#0d1624 0%,#111e2e 70%,#1b2735 100%);
  border-color:#2b4564;
  border-left-color:var(--gold);
  box-shadow:none;
}
body.dark-mode .category-compass:hover {
  background:#111e2e;
  border-color:var(--gold);
}
body.dark-mode .category-compass-title { color:#d8e2ee; }
body.dark-mode .category-compass-meta { color:#9fb3c8; }

/* Spotlight section */
body.dark-mode #spotlight-section {
  background:linear-gradient(135deg,#0d1624 0%,#111e2e 62%,#151f2a 100%);
  border-color:rgba(216,226,238,0.32);
  box-shadow:none;
}
body.dark-mode #spotlight-section .spotlight-header { border-bottom-color:rgba(216,226,238,0.26); }
body.dark-mode .spotlight-title { color:#c8d8ea; }
body.dark-mode .spotlight-kicker { color:var(--gold-light); }
body.dark-mode .spotlight-excerpt { color:var(--text-secondary); }
body.dark-mode .spot-expand-btn { color:#8fa8c0; }
body.dark-mode .spot-expand-btn:hover { color:var(--gold-light); }
body.dark-mode .spot-counter { color:var(--text-muted); }
body.dark-mode .spotlight-paper-title { color:#c8d8ea; }
body.dark-mode .spotlight-badge { background:var(--gold); color:#06101d; }
body.dark-mode .spotlight-slide-img { border-color:rgba(216,226,238,0.32); background:var(--thumb-placeholder-bg); box-shadow:none; }
body.dark-mode .spot-dot { background:var(--border); }
body.dark-mode .spot-dot.active { background:var(--gold); }
body.dark-mode .spot-nav-btn { background:#1c3560; color:#8fa8c0; }
body.dark-mode .spot-nav-btn:hover { background:#284d85; color:#fff1b8; border-color:var(--gold); }

/* Like buttons */
body.dark-mode .like-btn { border-color:var(--border); color:var(--text-muted); }
body.dark-mode .like-btn:hover { border-color:var(--gold); color:var(--gold-light); }

/* Modals */
body.dark-mode .modal-overlay, body.dark-mode .upload-overlay,
body.dark-mode .about-overlay, body.dark-mode .policy-overlay,
body.dark-mode .join-overlay, body.dark-mode .login-overlay { background:rgba(2,6,14,0.9); }
body.dark-mode .modal-box { background:#0d1624; border-top-color:var(--gold); }
body.dark-mode .modal-cat { color:var(--gold); }
body.dark-mode .modal-title { color:#c8d8ea; }
body.dark-mode .modal-byline { color:var(--text-muted); border-bottom-color:var(--border); }
body.dark-mode .modal-content { color:var(--text-secondary); }
body.dark-mode .modal-close { color:var(--text-muted); }
body.dark-mode .modal-close:hover { color:#c8d8ea; }
body.dark-mode .modal-file-frame { border-color:var(--border); }
body.dark-mode .modal-img { border-color:var(--border); }

/* Upload panel */
body.dark-mode .upload-box { background:#0d1624; border-top-color:var(--navy-light); }
body.dark-mode .upload-title { color:#c8d8ea; }
body.dark-mode .upload-sub { color:var(--text-muted); }
body.dark-mode .form-row label { color:var(--text-secondary); }
body.dark-mode .form-row input, body.dark-mode .form-row select, body.dark-mode .form-row textarea { background:#0a1520; color:#c8d8ea; border-color:var(--border); }
body.dark-mode .form-row input:focus, body.dark-mode .form-row select:focus, body.dark-mode .form-row textarea:focus { border-color:#8fa8c0; }
body.dark-mode .drop-zone { border-color:var(--border); color:var(--text-muted); }
body.dark-mode .drop-zone:hover, body.dark-mode .drop-zone.dragover { border-color:#8fa8c0; background:var(--cream); }
body.dark-mode .drop-filename { color:#c8d8ea; }
body.dark-mode .btn-primary { background:#1c3560; }
body.dark-mode .btn-primary:hover { background:#284d85; }
body.dark-mode .btn-cancel { border-color:var(--border); color:var(--text-muted); }
body.dark-mode .btn-cancel:hover { border-color:#8fa8c0; color:#c8d8ea; }
body.dark-mode .progress-bar,
body.dark-mode .submit-progress {
  background:#07111d;
  border:1px solid #2b4564;
  box-shadow:inset 0 0 0 1px rgba(240,206,115,0.08);
}
body.dark-mode .progress-fill,
body.dark-mode .submit-progress-fill {
  background:linear-gradient(90deg,#f0ce73 0%,#23d3ee 100%);
  box-shadow:0 0 12px rgba(35,211,238,0.35);
}
body.dark-mode .subs-toggle { color:var(--text-muted); }
body.dark-mode .subs-panel { border-top-color:var(--border); }
body.dark-mode .subs-panel h4 { color:var(--text-secondary); }
body.dark-mode .sub-item { color:var(--text-secondary); border-bottom-color:var(--border); }

/* Login box */
body.dark-mode .login-box { background:#0d1624; border-top-color:var(--gold); }
body.dark-mode .login-box h3 { color:#c8d8ea; }
body.dark-mode .login-box p { color:var(--text-muted); }
body.dark-mode .login-box input { background:#0a1520; color:#c8d8ea; border-color:var(--border); }
body.dark-mode .login-box input:focus { border-color:#8fa8c0; }

/* Join overlay */
body.dark-mode .join-box { background:#0d1624; }
body.dark-mode .join-herald { color:var(--gold); }
body.dark-mode .join-box h3 { color:#c8d8ea; }
body.dark-mode .join-box > p { color:#7a90a8; }
body.dark-mode .join-box input { background:#0a1520; color:#c8d8ea; border-color:rgba(255,255,255,0.1); }
body.dark-mode .join-box input:focus { border-color:#8fa8c0; box-shadow:0 0 0 3px rgba(143,168,192,0.1); }
body.dark-mode .join-note { color:#5a6e80; }
body.dark-mode .join-close-btn { background:rgba(255,255,255,0.06); color:#8fa4bf; }
body.dark-mode .join-close-btn:hover { background:rgba(255,255,255,0.12); }

/* About box */
body.dark-mode .about-box { background:#0d1624; }
body.dark-mode .about-title { color:#c8d8ea; }
body.dark-mode .about-rule { border-top-color:var(--border); }
body.dark-mode .about-body { color:var(--text-secondary); }
body.dark-mode .about-section-head { color:#c8d8ea; border-bottom-color:var(--border); }
body.dark-mode .about-body p { color:var(--text-secondary); }
body.dark-mode .about-vertical-name { color:#c8d8ea; }
body.dark-mode .about-divider { border-top-color:var(--border); }
body.dark-mode .intellector-name { color:#c8d8ea; }
body.dark-mode .intellector-degrees { color:#ffffff; }
body.dark-mode .intellector-detail { color:var(--text-secondary); }
body.dark-mode .intellector-detail strong { color:#c8d8ea; }

/* Policy box */
body.dark-mode .policy-box { background:#0d1624; }
body.dark-mode .policy-title { color:#c8d8ea; }
body.dark-mode .policy-rule { border-top-color:var(--border); }
body.dark-mode .policy-body { color:var(--text-secondary); }
body.dark-mode .policy-body h3 { color:#c8d8ea; }
body.dark-mode .contact-block { background:var(--cream); border-color:var(--border); }
body.dark-mode .contact-email { color:#c8d8ea; }

/* Footer */
body.dark-mode footer { background:#050e1a; color:#607a94; }
body.dark-mode .footer-brand { color:var(--gold-light); }
body.dark-mode .footer-desc { color:#506070; }
body.dark-mode .footer-col h4 { color:#8fa8c0; }
body.dark-mode .footer-col a { color:#506070; }
body.dark-mode .footer-col a:hover { color:var(--gold-light); }
body.dark-mode .footer-bottom { border-top-color:rgba(255,255,255,0.06); }
body.dark-mode .footer-bottom p { color:#405060; }

/* Subscribe pop */
body.dark-mode #subscribe-pop-overlay { background:rgba(2,6,14,0.85); }
body.dark-mode #subscribe-pop { background:#0d1624; box-shadow:0 16px 64px rgba(0,0,0,0.7); }
body.dark-mode .pop-title { color:#c8d8ea; }
body.dark-mode .pop-body { color:var(--text-secondary); }
body.dark-mode .pop-close { color:var(--text-muted); }
body.dark-mode .pop-close:hover { color:#c8d8ea; }
body.dark-mode .pop-row input { background:#0a1520; color:#c8d8ea; border-color:var(--border); }
body.dark-mode #pop-name { background:#0a1520 !important; color:#c8d8ea !important; border-color:var(--border) !important; }

/* Skeleton shimmer in dark mode */
body.dark-mode .skeleton { background:linear-gradient(90deg,var(--thumb-placeholder-bg) 25%,var(--thumb-placeholder-mid) 50%,var(--thumb-placeholder-bg) 75%); }

/* Mode toggle buttons */
#mode-bar { position:fixed; bottom:24px; right:20px; z-index:900; display:flex; flex-direction:column; gap:8px;
  opacity:1; transition:opacity 0.6s ease; }
#mode-bar.ui-idle { opacity:0; pointer-events:none; }
.mode-btn { background:var(--navy); border:1px solid rgba(255,255,255,0.15); color:#c5d2e0; font-family:'Lato',sans-serif; font-size:clamp(9.5px, 0.9vw, 11px); letter-spacing:0.1em; text-transform:uppercase; padding:clamp(7px, 1vw, 10px) clamp(10px, 1.4vw, 16px); cursor:pointer; transition:all 0.2s; white-space:nowrap; box-shadow:0 2px 12px rgba(0,0,0,0.4); border-radius:2px; display:flex; align-items:center; gap:clamp(4px, 0.6vw, 8px); }
.mode-btn:hover { background:var(--navy-light); color:#fff; border-color:var(--gold); }
.mode-btn.active { background:var(--gold); color:var(--navy); border-color:var(--gold); }

/* -- BACK TO TOP -- */
#back-to-top {
  position:fixed; bottom:24px; left:20px; z-index:900;
  background:var(--navy); border:1px solid rgba(255,255,255,0.15);
  color:#c5d2e0; width:clamp(34px, 4vw, 44px); height:clamp(34px, 4vw, 44px); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 12px rgba(0,0,0,0.4); border-radius:2px;
  opacity:0; pointer-events:none;
  transition:opacity 0.6s ease, transform 0.3s ease, background 0.2s, border-color 0.2s;
  transform:translateY(8px);
}
#back-to-top.visible { opacity:1; pointer-events:auto; transform:translateY(0); }
#back-to-top.visible.ui-idle { opacity:0; pointer-events:none; }
#back-to-top:hover { background:var(--navy-light); border-color:var(--gold); color:#fff; }
#back-to-top svg { width: clamp(14px, 1.5vw, 18px); height: clamp(14px, 1.5vw, 18px); transition: width 0.2s, height 0.2s; }

/* -- ARTICLE COUNT BADGE on category headers -- */
.cat-count { display:inline-flex; align-items:center; justify-content:center;
  background:var(--navy); color:#c5d2e0; font-family:'Lato',sans-serif;
  font-size:10px; font-weight:700; letter-spacing:0.05em;
  min-width:22px; height:18px; padding:0 6px; border-radius:9px; margin-left:8px; vertical-align:middle; }

/* -- PROGRESS BAR (reading progress at top) -- */
#read-progress-bar {
  position:fixed; top:0; left:0; height:2px; width:0%; z-index:9999;
  background:linear-gradient(90deg, var(--gold), var(--gold-light));
  transition:width 0.1s linear;
  pointer-events:none;
}

/* -- MODAL TOOLBAR (copy link, print, font size) -- */
.modal-toolbar {
  display:flex; align-items:center; gap:8px; padding:10px 0 14px;
  border-bottom:1px solid var(--border-light); margin-bottom:18px; flex-wrap:wrap;
  position:relative; overflow:visible;
}
.modal-toolbar.download-open { overflow:visible !important; z-index:80; }
.modal-tool-btn {
  background:none; border:1px solid var(--border); color:var(--text-muted);
  font-family:'Lato',sans-serif; font-size:10px; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase;
  padding:5px 11px; cursor:pointer; display:inline-flex; align-items:center; gap:5px;
  transition:all 0.18s; border-radius:1px;
}
.modal-tool-btn:hover { border-color:var(--navy); color:var(--navy); background:rgba(10,22,40,0.04); }
.modal-tool-btn.copied { border-color:var(--gold); color:var(--gold); }
.modal-read-time { font-family:'Lato',sans-serif; font-size:10.5px; color:var(--text-muted);
  letter-spacing:0.06em; margin-left:auto; display:flex; align-items:center; gap:4px; }
.modal-read-time svg { opacity:0.6; }

/* -- KEYBOARD SHORTCUT HINT (shown once) -- */
#kbd-hint {
  position:fixed; bottom:80px; left:50%; transform:translateX(-50%) translateY(10px);
  background:rgba(10,22,40,0.88); color:#c5d2e0; font-family:'Lato',sans-serif;
  font-size:11px; letter-spacing:0.08em; padding:7px 16px; border-radius:20px;
  pointer-events:none; white-space:nowrap; z-index:800;
  opacity:0; transition:opacity 0.4s ease, transform 0.4s ease;
}
#kbd-hint.visible { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #kbd-hint,
  #search-popup-hint {
    display:none !important;
  }
}

/* -- FONT SIZE CONTROL -- */
.modal-content.text-sm { font-size:15px; }
.modal-content.text-lg { font-size:20px; }

/* -- TOAST NOTIFICATION -- */
#toast {
  position:fixed; bottom:76px; left:50%; transform:translateX(-50%) translateY(10px);
  background:var(--navy); color:#f0ebe1; font-family:'Lato',sans-serif;
  font-size:11.5px; letter-spacing:0.08em; padding:9px 20px; z-index:2100;
  border-left:3px solid var(--gold); box-shadow:0 4px 20px rgba(0,0,0,0.35);
  opacity:0; pointer-events:none; transition:opacity 0.3s ease, transform 0.3s ease;
  white-space:nowrap;
}
#toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* -- SHARE ROW in modal -- */
.share-row { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.share-btn {
  display:inline-flex; align-items:center; gap:5px;
  font-family:'Lato',sans-serif; font-size:10px; font-weight:700;
  letter-spacing:0.09em; text-transform:uppercase;
  padding:5px 11px; border:1px solid var(--border); cursor:pointer;
  text-decoration:none; color:var(--text-muted); background:none;
  transition:all 0.18s; border-radius:1px; white-space:nowrap; min-width:0; overflow:hidden;
}
.share-btn:hover { border-color:var(--navy); color:var(--navy); }
.modal-mobile-actions {
  display:block;
  margin:14px 0 18px; padding:12px 0 14px; border-top:1px solid var(--border-light);
  border-bottom:1px solid var(--border-light);
}
.article-action-top { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,1fr); gap:8px; align-items:center; margin-bottom:8px; }
.article-action-top .like-btn, .article-action-top .share-btn { width:100%; justify-content:center; min-height:34px; }
.modal-mobile-actions .share-row { justify-content:flex-start; }
.share-services-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; width:100%; }
.share-services-row .share-btn { justify-content:center; min-height:34px; width:100%; }
#modal-bottom-actions { display:none !important; }
.article-action-top.article-action-compact {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:0;
}
.article-action-top.article-action-compact .like-btn,
.article-action-top.article-action-compact .share-btn {
  width:auto;
  min-width:104px;
  max-width:170px;
  min-height:38px;
  justify-content:center;
  white-space:normal;
  line-height:1.18;
  padding:8px 12px;
}
.article-share-wrap {
  position:relative;
  display:inline-flex;
  justify-content:flex-end;
}
.article-share-toggle svg {
  width:13px;
  height:13px;
  flex:0 0 auto;
  stroke:currentColor;
}
.article-share-toggle.copied {
  border-color:rgba(47,122,79,0.36);
  color:#2f7a4f;
  background:rgba(47,122,79,0.06);
}
.article-share-feedback {
  position:absolute;
  right:0;
  top:-34px;
  z-index:2501;
  display:block;
  padding:6px 10px;
  border:1px solid rgba(47,122,79,0.22);
  border-radius:999px;
  background:#fff;
  color:#2f7a4f;
  box-shadow:0 10px 24px rgba(10,22,40,0.14);
  font-family:'Lato',sans-serif;
  font-size:10px;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
  white-space:nowrap;
  opacity:0;
  transform:translateY(4px);
  pointer-events:none;
  transition:opacity 0.16s ease, transform 0.16s ease;
}
.article-share-feedback.show {
  opacity:1;
  transform:translateY(0);
}
.article-share-menu {
  position:absolute;
  right:0;
  top:calc(100% + 9px);
  z-index:2500;
  display:none;
  min-width:188px;
  padding:8px 0;
  background:#fff;
  border:1px solid rgba(24,57,95,0.16);
  border-radius:8px;
  box-shadow:0 18px 42px rgba(10,22,40,0.18);
}
.article-share-menu.open { display:block; }
.article-share-menu::before {
  content:'';
  position:absolute;
  top:-7px;
  right:22px;
  width:12px;
  height:12px;
  background:#fff;
  border-left:1px solid rgba(24,57,95,0.16);
  border-top:1px solid rgba(24,57,95,0.16);
  transform:rotate(45deg);
}
.article-share-item {
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:36px;
  padding:8px 14px;
  border:0;
  border-bottom:1px solid rgba(24,57,95,0.11);
  background:transparent;
  color:#4b5563;
  text-decoration:none;
  cursor:pointer;
  font-family:'Lato',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.01em;
  text-transform:none;
  text-align:left;
}
.article-share-item:last-child { border-bottom:0; }
.article-share-item:hover {
  background:#f8fafc;
  color:#10243a;
}
.article-share-item svg {
  width:16px;
  height:16px;
  flex:0 0 auto;
  color:#5f6670;
  fill:currentColor;
  stroke:currentColor;
  opacity:0.8;
}
.article-share-item svg:not([fill="none"]) {
  stroke:none;
}
.article-share-copy-status {
  display:none;
  padding:7px 14px 4px 42px;
  color:#2f7a4f;
  font-family:'Lato',sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.04em;
}
.article-share-copy-status.show {
  display:block;
}
.like-btn .like-icon svg {
  width:15px;
  height:15px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
.like-btn.liked .like-icon svg {
  fill:currentColor;
}
.modal-download-wrap { position:relative; display:inline-flex; margin-left:auto; order:20; z-index:90; }
.modal-icon-btn {
  width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center;
  padding:0; border:1px solid var(--border); background:none; color:var(--text-muted);
  cursor:pointer; transition:all 0.18s; border-radius:1px;
}
.modal-icon-btn:hover, .modal-icon-btn.active { border-color:var(--navy); color:var(--navy); background:rgba(184,150,62,0.06); }
.article-download-menu {
  display:none; position:absolute; top:34px; right:0; z-index:2400; min-width:132px;
  background:#fff; border:1px solid var(--border); box-shadow:0 10px 28px rgba(10,22,40,0.14);
}
.article-download-menu.open { display:block; }
.article-download-menu button {
  width:100%; display:flex; align-items:center; gap:8px; background:none; border:none; border-bottom:1px solid var(--border-light);
  padding:9px 11px; cursor:pointer; font-family:'Lato',sans-serif; font-size:10px; font-weight:800;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--text-secondary); text-align:left;
}
.article-download-menu button:last-child { border-bottom:none; }
.article-download-menu button:hover { background:var(--cream); color:var(--navy); }

/* -- CATEGORY COLOR DOTS -- */
.cat-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; vertical-align:middle; flex-shrink:0; }
.cat-dot-Law { background:#1e3a6e; }
.cat-dot-Education { background:#2e6b3e; }
.cat-dot-VedicScience { background:#8a5c00; }
.cat-dot-Editorial { background:#6f4fb8; }
.cat-dot-Gen-Z Desk { background:#7a2d6e; }
.cat-dot-Political { background:#a32d2d; }

/* Dark mode additions */
body.dark-mode #back-to-top { background:#0d1624; border-color:rgba(255,255,255,0.1); }
body.dark-mode .modal-tool-btn { border-color:var(--border); color:var(--text-muted); }
body.dark-mode .modal-tool-btn:hover { border-color:#8fa8c0; color:#c8d8ea; background:rgba(255,255,255,0.04); }
body.dark-mode #toast { background:#0d1624; }
body.dark-mode .cat-count { background:#1c3560; color:#c8d8ea; border-color:var(--border); }
body.dark-mode .article-breadcrumb { color:#8fa8c0; }
body.dark-mode .article-breadcrumb button,
body.dark-mode .article-breadcrumb a { color:#c8d8ea; }
body.dark-mode .article-breadcrumb-current { color:#8fa8c0; }
body.dark-mode .modal-mobile-actions { background:#0d1624; }
body.dark-mode .share-btn { border-color:#2b4564; color:#b7c8dc; background:#0a1520; }
body.dark-mode .share-btn:hover { border-color:var(--gold); color:#f3d58a; background:#111e2e; }
body.dark-mode .modal-icon-btn { border-color:#2b4564; color:#b7c8dc; background:#0a1520; }
body.dark-mode .modal-icon-btn:hover,
body.dark-mode .modal-icon-btn.active { border-color:var(--gold); color:#f3d58a; background:#111e2e; }
body.dark-mode .article-download-menu { background:#0a1520; border-color:var(--border); box-shadow:0 12px 30px rgba(0,0,0,0.55); }
body.dark-mode .article-download-menu button { color:#c8d8ea; border-bottom-color:var(--border); }
body.dark-mode .article-download-menu button:hover { background:#1c3560; color:#fff; }
body.dark-mode .author-profile-card,
body.dark-mode .author-page-hero { background:#0d1624; border-color:var(--border); box-shadow:none; color:#c8d8ea; }
body.dark-mode .author-profile-card::before { background:#1c3560; }
body.dark-mode .author-profile-name,
body.dark-mode .author-page-name,
body.dark-mode .author-page-list-title { color:#c8d8ea; }
body.dark-mode .author-profile-meta,
body.dark-mode .author-page-meta { color:#9fb3c8; }
body.dark-mode .author-profile-bio,
body.dark-mode .author-page-bio { color:#c8d8ea; background:#0a1520; }
body.dark-mode .author-profile-stat,
body.dark-mode .author-page-stat { background:transparent; border:none; }
body.dark-mode .author-profile-stat strong,
body.dark-mode .author-page-stat strong { color:#f3d58a; }
body.dark-mode .author-profile-link { background:#0a1520; color:#c8d8ea; border-color:#2b4564; }
body.dark-mode .author-page-list a,
body.dark-mode .author-article-list a { color:#c8d8ea; border-bottom-color:var(--border); }
.author-profile-login-btn {
  margin-top: 7px; background: #fff; color: var(--navy); border: 1px solid var(--border);
  font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 7px 10px; cursor: pointer;
}
.author-profile-login-btn:hover { border-color: var(--gold); color: var(--navy-light); }
.author-bio-counter {
  font-family: 'Lato', sans-serif; font-size: 10px; color: var(--text-muted);
  text-align: right; margin-top: 4px;
}
.author-profile-card {
  margin: 22px 0 4px; padding: 22px; border: 1px solid #d6dce3;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 52%, #f7f1df 100%);
  font-family: 'Lato', sans-serif; color: #1d2b3a;
}
.author-profile-card.loading { color: var(--text-muted); font-size: 12px; }
.author-profile-top { display:flex; gap:16px; align-items:flex-start; }
.author-profile-photo {
  width: 74px; height: 74px; border-radius: 50%; overflow:hidden; flex-shrink:0;
  background:#e7edf3; border:3px solid #fff; box-shadow:0 0 0 1px #cbd6df;
  display:flex; align-items:center; justify-content:center;
}
.author-profile-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.author-profile-kicker {
  font-size: 9px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color:#9b7a25; margin-bottom:5px;
}
.author-profile-name { font-family:'Playfair Display',serif; font-size:22px; line-height:1.15; color:#10243a; font-weight:700; }
.author-profile-meta { font-size:11px; color:#506173; line-height:1.6; margin-top:6px; }
.author-profile-bio { font-family:'EB Garamond',serif; font-size:16px; line-height:1.65; color:#344557; margin-top:14px; }
.author-profile-count {
  display:inline-flex; align-items:center; gap:6px; margin-top:12px; border:1px solid #c9a84c;
  background:#fff; color:#10243a; padding:7px 11px; font-size:10px; font-weight:800;
  letter-spacing:0.08em; text-transform:uppercase; cursor:pointer;
}
.author-profile-count:hover { background:#f7f1df; }
.author-article-list { margin-top:12px; border-top:1px solid #dbe3ea; padding-top:10px; display:none; }
.author-article-list.open { display:block; }
.author-article-list a {
  display:block; color:#18395f; text-decoration:none; font-size:12px; line-height:1.45;
  padding:7px 0; border-bottom:1px solid rgba(24,57,95,0.08);
}
.author-article-list a:hover { color:#9b7a25; text-decoration:underline; }
.author-profile-link {
  display:inline-flex; align-items:center; gap:5px; margin-top:9px; color:#18395f;
  font-size:10px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase;
  text-decoration:none;
}
.author-profile-link:hover { color:#9b7a25; text-decoration:underline; }
.author-profile-card {
  position:relative; overflow:hidden; margin:28px 0 8px; padding:24px;
  border:none; border-top:4px solid #c9a84c;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(248,251,255,0.96) 58%, rgba(247,241,223,0.96) 100%);
  box-shadow:0 14px 38px rgba(10,22,40,0.08);
}
.author-profile-card::before { content:none; display:none; }
.author-profile-card.loading { padding:18px 22px; color:#607083; font-family:'Lato',sans-serif; }
.author-profile-top { position:relative; display:flex; gap:18px; align-items:flex-start; }
.author-profile-photo {
  width:86px; height:86px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:#e7edf3; border:4px solid #fff; box-shadow:0 0 0 1px #c5d1dc, 0 10px 24px rgba(10,22,40,0.13);
}
.author-profile-photo span {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family:'Lato',sans-serif; font-size:22px; font-weight:900; color:#18395f;
}
.author-profile-kicker { color:#9b7a25; margin-bottom:6px; }
.author-profile-name { font-size:25px; letter-spacing:0; }
.author-profile-meta { font-size:12px; color:#506173; line-height:1.55; }
.author-profile-bio {
  position:relative; margin-top:18px; padding:14px 16px; border-left:3px solid #c9a84c;
  background:rgba(255,255,255,0.62); font-size:17px; color:#2d4053;
}
.author-profile-bio.clamped,
.author-page-bio.clamped {
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 62%,rgba(0,0,0,0.72) 82%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 62%,rgba(0,0,0,0.72) 82%,transparent 100%);
}
.author-bio-toggle {
  margin-top:8px; padding:0; border:none; background:none; color:#9b7a25; cursor:pointer;
  font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.12em;
  text-transform:none;
  font-variant:all-small-caps;
}
.author-bio-toggle:hover { color:#10243a; text-decoration:underline; }
.author-profile-stats {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:16px; margin-bottom:16px;
}
.author-profile-stat {
  border:none; background:transparent; padding:10px 9px;
  text-align:center;
}
.author-profile-stat strong {
  display:block; font-family:'Playfair Display',serif; font-size:19px; line-height:1; color:#10243a;
}
.author-profile-stat span {
  display:block; margin-top:5px; font-family:'Lato',sans-serif; font-size:8.5px; font-weight:900;
  letter-spacing:0.12em; text-transform:uppercase; color:#7a8795;
}
.author-profile-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.author-profile-count, .author-profile-link {
  margin-top:0; min-height:34px; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  border:1px solid #c9a84c; padding:8px 12px; font-family:'Lato',sans-serif; font-size:10px;
  font-weight:900; letter-spacing:0.1em; text-transform:uppercase; text-decoration:none; cursor:pointer;
  transition:background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.author-profile-count { background:#10243a; color:#fff; border-color:#10243a; }
.author-profile-count:hover { background:#c9a84c; color:#10243a; border-color:#c9a84c; transform:translateY(-1px); }
.author-profile-link { background:#fff; color:#18395f; }
.author-profile-link:hover { background:#f7f1df; color:#10243a; border-color:#c9a84c; transform:translateY(-1px); text-decoration:none; }
.author-article-list {
  margin-top:16px; border-top:1px solid #dbe3ea; padding-top:12px; display:none;
  background:rgba(255,255,255,0.45); padding-left:12px; padding-right:12px;
}
.author-article-list a { font-size:13px; padding:9px 0; }
.author-page-section {
  display:none; max-width:var(--site-frame); margin:0 auto 44px; padding:36px 24px;
}
.author-page-section.open { display:block; }
.author-page-hero {
  border:none; border-top:5px solid #c9a84c;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 54%,#f7f1df 100%);
  padding:34px; font-family:'Lato',sans-serif; color:#1d2b3a;
  box-shadow:0 18px 46px rgba(10,22,40,0.09);
}
.author-page-top { display:flex; gap:22px; align-items:flex-start; }
.author-page-photo {
  width:124px; height:124px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:#e7edf3; border:5px solid #fff; box-shadow:0 0 0 1px #cbd6df, 0 14px 30px rgba(10,22,40,0.16);
  display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:800; color:#18395f;
}
.author-page-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.author-page-kicker {
  font-size:10px; font-weight:800; letter-spacing:0.22em; text-transform:uppercase;
  color:#9b7a25; margin-bottom:7px;
}
.author-page-name { font-family:'Playfair Display',serif; font-size:34px; line-height:1.1; color:#10243a; font-weight:700; }
.author-page-meta { margin-top:8px; color:#506173; font-size:13px; line-height:1.6; }
.author-page-bio { margin-top:18px; font-family:'EB Garamond',serif; font-size:18px; line-height:1.7; color:#344557; }
.author-page-stats {
  margin-top:18px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px;
}
.author-page-stat {
  border:none; background:transparent;
  padding:12px 10px; text-align:center;
}
.author-page-stat strong { display:block; font-family:'Playfair Display',serif; font-size:24px; line-height:1; color:#10243a; }
.author-page-stat span {
  display:block; margin-top:6px; font-size:9px; font-weight:900; letter-spacing:0.12em;
  text-transform:uppercase; color:#7a8795;
}
.author-page-list { margin-top:24px; border-top:1px solid #dbe3ea; padding-top:18px; }
.author-page-list-title {
  font-family:'Cinzel',serif; color:#10243a; font-size:18px; letter-spacing:0.04em; margin-bottom:10px;
}
.author-page-list a {
  display:block; padding:12px 0; border-bottom:1px solid rgba(24,57,95,0.1);
  color:#18395f; text-decoration:none; font-family:'Lato',sans-serif; font-weight:700; font-size:14px;
}
.author-page-list a span { display:block; margin-top:3px; color:#7a8795; font-weight:400; font-size:11px; }
.author-page-list a:hover { color:#9b7a25; }
.related-articles-box {
  margin: 36px 0 0;
  font-family:'Lato',sans-serif;
}
.article-page-extension {
  max-width:var(--site-frame);
  margin:36px auto 0;
  padding:0 24px;
}
#article-page-related {
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  border:0;
  background:transparent !important;
  box-shadow:none !important;
}
.article-end-panel {
  position:relative; overflow:hidden; padding:28px;
  border:1px solid rgba(201,168,76,0.32);
  background:
    linear-gradient(135deg, rgba(255,253,248,0.97) 0%, rgba(248,251,255,0.96) 56%, rgba(247,241,223,0.96) 100%);
  box-shadow:0 18px 48px rgba(10,22,40,0.08);
}
.article-feed-band {
  position:relative;
  margin:0 0 32px;
  padding:28px;
  border:1px solid rgba(201,168,76,0.32);
  background:
    linear-gradient(90deg, rgba(16,36,58,0.026) 1px, transparent 1px),
    linear-gradient(rgba(16,36,58,0.02) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255,253,248,0.98), rgba(248,251,255,0.97) 56%, rgba(247,241,223,0.96));
  background-size:72px 72px,72px 72px,auto;
  box-shadow:0 18px 48px rgba(10,22,40,0.06);
}
.article-feed-band::before,
.article-end-panel::before {
  content:''; position:absolute; left:0; right:0; top:0; height:4px;
  background:linear-gradient(90deg,#10243a 0%, #c9a84c 38%, #6f3d0b 100%);
}
.article-end-head {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:end;
  margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid rgba(24,57,95,0.12);
}
.article-end-stats { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:0; min-width:300px; }
.article-end-kicker {
  font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.18em;
  text-transform:uppercase; color:#9b7a25; margin-bottom:7px;
}
.related-title {
  font-family:'Playfair Display',serif; font-size:30px; color:var(--navy);
  letter-spacing:0; margin-bottom:8px; line-height:1.08;
}
.article-end-note {
  font-family:'EB Garamond',serif; color:#506173; font-size:17px; line-height:1.55;
  margin:0; max-width:680px;
}
.article-feed-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin-bottom:14px; }
.related-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.article-feed-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.article-feed-grid:not(.expanded) .article-feed-card:nth-child(n+9),
.article-feed-grid.expanded .article-feed-card:nth-child(n+9) { display:none; }
.article-feed-card {
  display:flex; flex-direction:column; min-width:0; min-height:100%;
  border-radius:18px; background:#ffffff; border:none; box-shadow:0 6px 24px rgba(0,0,0,0.06);
  padding:16px; transition:transform 0.3s cubic-bezier(.25,.46,.45,.94), box-shadow 0.3s ease;
}
.article-feed-card:hover { transform:translateY(-2px); box-shadow:0 8px 32px rgba(0,0,0,0.1); }
.article-feed-thumb { width:100%; aspect-ratio:3/2; flex-shrink:0; background:var(--cream); border:1px solid var(--border-light); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:10px; font-weight:800; margin-bottom:12px; }
.article-feed-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.article-feed-card-title { color:var(--navy); font-family:'Playfair Display',serif; font-size:17px; font-weight:700; line-height:1.23; overflow-wrap:anywhere; }
.article-feed-card-meta { margin-top:8px; color:var(--text-muted); font-size:10px; letter-spacing:0.06em; text-transform:uppercase; line-height:1.45; }
.related-card {
  display:flex; gap:11px; align-items:flex-start; border-radius:18px;
  background:#ffffff; padding:14px; cursor:pointer; border:none; box-shadow:0 6px 24px rgba(0,0,0,0.06);
  transition:transform 0.3s cubic-bezier(.25,.46,.45,.94), box-shadow 0.3s ease;
}
.related-card:hover { transform:translateY(-2px); box-shadow:0 8px 32px rgba(0,0,0,0.1); }
.related-thumb { width:96px; aspect-ratio:3/2; flex-shrink:0; background:var(--cream); border:1px solid var(--border-light); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:10px; font-weight:800; }
.related-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.sidebar-thumb img,
.live-feed-thumb img,
.live-trending-thumb img,
.related-thumb img,
.search-item-thumb img {
  opacity:0;
  transition:opacity 0.45s ease, transform 0.45s ease;
  transform:scale(1.03);
  transform-origin:top center;
}
.related-card-title { color:var(--navy); font-family:'Playfair Display',serif; font-size:14px; font-weight:700; line-height:1.25; }
.related-card-meta { margin-top:4px; color:var(--text-muted); font-size:10px; letter-spacing:0.06em; text-transform:uppercase; }
.article-explore-panel { margin-top:22px; }
.article-explore-title {
  font-family:'Cinzel',serif; font-size:15px; color:#10243a; letter-spacing:0.05em; margin-bottom:12px;
}
.article-inline-spotlight {
  margin-top:28px; padding:22px; border:none; border-top:4px solid var(--gold);
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 54%,#f7f1df 100%);
  box-shadow:0 10px 32px rgba(10,22,40,0.06);
}
.article-inline-spotlight .spotlight-header { border-bottom:1px solid rgba(184,150,62,0.55); }
.article-inline-spotlight .spotlight-slide { padding:18px 2px 2px; }
.article-inline-spotlight .spotlight-slide.spot-active {
  display:grid; grid-template-columns:minmax(230px,32%) minmax(0,1fr); align-items:center;
  gap:26px; min-height:260px; padding:22px; overflow:hidden;
}
.article-inline-spotlight .spotlight-slide-img {
  width:100%; max-width:330px; justify-self:center; align-self:center;
  border:1px solid #c9a84c; box-shadow:0 10px 26px rgba(10,22,40,0.12);
}
.article-inline-spotlight .spotlight-slide-body {
  min-width:0; max-width:100%; display:flex; flex-direction:column; justify-content:center; overflow:hidden;
}
.article-topic-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.article-topic-chip {
  border:none; background:#ffffff; color:#18395f; padding:10px 14px;
  font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.08em;
  border-radius:24px; box-shadow:0 4px 16px rgba(0,0,0,0.06);
  transition:transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.article-topic-chip:hover { background:#ffffff; color:#10243a; transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,0.1); }
.article-reading-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; }
.article-reading-list a {
  display:grid; grid-template-columns:96px minmax(0,1fr); gap:10px; align-items:start; color:#18395f; text-decoration:none; font-family:'Lato',sans-serif; font-size:13px;
  font-weight:800; line-height:1.35; padding:9px 0; border-bottom:1px solid rgba(24,57,95,0.1);
}
.article-reading-list a:hover { color:#9b7a25; text-decoration:underline; }
.article-reading-list a > span { display:block; min-width:0; margin:0; color:inherit; }
.article-reading-list strong { display:block; color:#18395f; font-size:13px; font-weight:800; line-height:1.35; }
.article-reading-list em { display:block; margin-top:3px; color:#7a8795; font-style:normal; font-size:10px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; }
.article-reading-thumb { width:96px; aspect-ratio:3/2; background:var(--cream); border:1px solid var(--border-light); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:10px; font-weight:800; }
.article-reading-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; opacity:0; transition:opacity 0.45s ease, transform 0.45s ease; transform:scale(1.03); transform-origin:top center; }
.editor-published-thumb { width:96px; aspect-ratio:3/2; background:var(--thumb-placeholder-bg); border:1px solid var(--border-light); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:10px; font-weight:800; flex-shrink:0; }
.editor-published-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; opacity:0; transition:opacity 0.45s ease, transform 0.45s ease; transform:scale(1.03); transform-origin:top center; }
.article-cta-section {
  margin:0;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
}
.article-cta-section::before { display:none; }
.article-cta-row {
  margin:0; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px;
  padding:24px 28px; border:1px solid rgba(58,105,128,0.28); border-radius:8px;
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--gold) 100%) left center/4px 100% no-repeat,
    linear-gradient(135deg,#f8fbff 0%,#eef6f4 48%,#fff8e6 100%);
  color:#10243a; box-shadow:0 14px 34px rgba(10,22,40,0.08);
  overflow:hidden;
}
.article-cta-title { font-family:'Playfair Display',serif; color:#12324a; font-size:23px; font-weight:700; line-height:1.15; }
.article-cta-copy { margin-top:6px; font-family:'EB Garamond',serif; color:#3f596d; font-size:16px; line-height:1.45; max-width:650px; }
.article-cta-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.article-cta-btn {
  border:1px solid rgba(14,116,144,0.35);
  background:linear-gradient(135deg,#0f766e 0%,#0e7490 48%,#4338ca 100%);
  background-size:140% 140%;
  color:#fff;
  padding:10px 13px; cursor:pointer;
  font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.09em; text-transform:uppercase;
  border-radius:6px;
  box-shadow:0 10px 22px rgba(14,116,144,0.22);
}
.article-cta-btn.secondary { background:#ffffff; color:#12324a; border-color:rgba(58,105,128,0.34); }
.article-cta-btn:hover { transform:translateY(-1px); }
.article-cta-btn:not(.secondary):hover {
  background-position:100% 50%;
  box-shadow:0 14px 28px rgba(67,56,202,0.22);
}
.author-dashboard-section {
  display:none; margin: 0 0 38px; padding: 24px; border:1px solid #d9e1e8;
  background:#ffffff; position:relative; overflow:hidden;
}
.author-dashboard-section.open { display:block; }
.author-dashboard-section::before { content:none; display:none; }
.compass-head { position:relative; display:grid; grid-template-columns:1.1fr 1fr; gap:18px; align-items:end; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid #dbe3ea; }
.compass-kicker { font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.2em; text-transform:uppercase; color:#9b7a25; }
.compass-title { font-family:'Playfair Display',serif; font-size:27px; color:#10243a; font-weight:800; line-height:1.08; margin-top:4px; }
.compass-copy { font-family:'EB Garamond',serif; color:#506173; font-size:16px; line-height:1.45; }
.compass-layout { position:relative; display:grid; grid-template-columns:280px 1fr; gap:18px; }
.compass-orbit {
  min-height:280px; border:1px solid #dbe3ea; background:#0b1828; color:#fff;
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.compass-orbit::before { content:''; position:absolute; width:190px; height:190px; border:1px solid rgba(201,168,76,0.55); transform:rotate(45deg); }
.compass-orbit::after { content:''; position:absolute; width:108px; height:108px; border:1px solid rgba(255,255,255,0.28); border-radius:50%; }
.compass-core { position:relative; z-index:1; text-align:center; padding:20px; }
.compass-core strong { display:block; font-family:'Playfair Display',serif; font-size:42px; line-height:1; color:#d8b45d; }
.compass-core span { display:block; margin-top:9px; font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.15em; text-transform:uppercase; color:#c8d8ea; }
.compass-panel-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.compass-card { border:1px solid #dbe3ea; background:rgba(255,255,255,0.86); padding:13px; cursor:pointer; transition:transform 0.18s,border-color 0.18s; min-height:122px; }
.compass-card:hover { transform:translateY(-2px); border-color:#c9a84c; }
.compass-label { font-family:'Lato',sans-serif; font-size:9px; font-weight:900; letter-spacing:0.16em; text-transform:uppercase; color:#7a8795; margin-bottom:8px; }
.compass-name { font-family:'Playfair Display',serif; font-size:18px; color:#10243a; font-weight:800; line-height:1.16; }
.compass-stat { margin-top:7px; font-family:'Lato',sans-serif; font-size:11px; color:#506173; line-height:1.35; }
.compass-strip { margin-top:12px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.compass-strip button {
  border:1px solid rgba(24,57,95,0.14); background:#fff; color:#18395f; padding:9px;
  font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.08em; text-transform:uppercase; cursor:pointer;
}
.compass-strip button:hover { background:#10243a; color:#fff; border-color:#10243a; }
.live-home-section { margin:24px 0 34px; border:none; border-top:4px solid #10243a; background:linear-gradient(135deg,#fff 0%,#f8fbff 60%,#f7f1df 100%); box-shadow:0 16px 38px rgba(10,22,40,0.07); padding:20px; border-radius:12px; }
.live-home-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; border-bottom:1px solid #dbe3ea; padding-bottom:13px; margin-bottom:16px; }
.live-home-kicker { font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.2em; text-transform:uppercase; color:#9b7a25; display:flex; align-items:center; gap:7px; }
.live-pulse { width:8px; height:8px; border-radius:50%; background:#2f8f46; box-shadow:0 0 0 0 rgba(47,143,70,0.55); animation:livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow:0 0 0 8px rgba(47,143,70,0); } 100% { box-shadow:0 0 0 0 rgba(47,143,70,0); } }
.live-home-title { font-family:'Playfair Display',serif; font-size:24px; color:#10243a; font-weight:700; line-height:1.15; }
.live-home-updated { font-family:'Lato',sans-serif; font-size:10px; color:#7a8795; letter-spacing:0.08em; text-transform:uppercase; white-space:nowrap; }
.live-trend-icon {
  flex-shrink:0;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:none;
  background:transparent;
  color:#2f8f46;
  position:relative;
  overflow:visible;
  animation:trendIconPulse 2.2s ease-in-out infinite;
}
.live-trend-icon::after {
  content:'';
  position:absolute;
  inset:7px;
  border-radius:50%;
  border:1px solid rgba(47,143,70,0.28);
  opacity:0;
  animation:trendRing 2.2s ease-out infinite;
}
.live-trend-icon svg {
  width:21px;
  height:21px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.live-trend-icon .trend-line {
  stroke-dasharray:42;
  stroke-dashoffset:42;
  animation:trendDraw 2.2s ease-in-out infinite;
}
.live-trend-icon .trend-dot {
  transform-origin:center;
  animation:trendDot 2.2s ease-in-out infinite;
}
body.dark-mode .live-trend-icon {
  border-color:transparent;
  background:transparent;
  color:#47bd70;
}
@keyframes trendIconPulse {
  0%,100% { box-shadow:0 0 0 rgba(47,143,70,0); transform:translateY(0); }
  50% { box-shadow:0 0 18px rgba(47,143,70,0.22); transform:translateY(-1px); }
}
@keyframes trendRing {
  0% { opacity:0.45; transform:scale(0.72); }
  100% { opacity:0; transform:scale(1.45); }
}
@keyframes trendDraw {
  0% { stroke-dashoffset:42; opacity:0.35; }
  42%,70% { stroke-dashoffset:0; opacity:1; }
  100% { stroke-dashoffset:-42; opacity:0.45; }
}
@keyframes trendDot {
  0%,100% { opacity:0.55; transform:scale(0.75); }
  50% { opacity:1; transform:scale(1.18); }
}
.live-home-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:18px; }

.marketing-video-section {
  margin:24px 0 30px;
  padding:14px;
  border:1px solid var(--border);
  background:linear-gradient(135deg,#fff 0%,#f8fafc 100%);
  box-shadow:0 8px 28px rgba(10,22,40,0.06);
  border-radius:12px;
}
.marketing-video-shell { display:grid; grid-template-columns:minmax(320px,1.05fr) minmax(260px,0.82fr); gap:22px; align-items:stretch; }
.marketing-video-frame { position:relative; width:100%; aspect-ratio:16/9; background:#000; overflow:hidden; border:1px solid rgba(184,150,62,0.55); }
.marketing-video-frame iframe { position:absolute; top:50%; left:50%; width:calc(100% + 2px); height:calc(100% + 2px); transform:translate(-50%,-50%) scale(1.006); display:block; border:0; background:#000; }
.marketing-video-copy { min-width:0; display:flex; flex-direction:column; justify-content:flex-start; padding:clamp(18px,2.4vw,32px) 12px 8px 0; }
.marketing-video-kicker { font-family:'Lato',sans-serif; font-size:9.5px; letter-spacing:0.24em; text-transform:uppercase; color:var(--gold); font-weight:900; margin-bottom:8px; }
.marketing-video-title { font-family:'Playfair Display',serif; font-size:clamp(25px,2.05vw,31px); line-height:1.08; color:var(--navy); font-weight:800; margin-bottom:10px; max-width:480px; }
.marketing-video-sub { font-family:'EB Garamond',serif; font-size:17px; color:#344557; line-height:1.55; max-width:500px; margin-bottom:0; }

@media (min-width: 901px) {
  .marketing-video-copy { justify-content: center; padding-left: 20px; }
  .marketing-video-title { font-size: clamp(36px, 3.6vw, 52px); max-width: 600px; margin-bottom: 18px; line-height: 1.12; }
  .marketing-video-sub { font-size: 22px; max-width: 580px; line-height: 1.6; }
}
.marketing-video-note { font-family:'Lato',sans-serif; font-size:11px; line-height:1.55; color:#6b7786; max-width:620px; margin-bottom:16px; }
.marketing-video-tags { display:none; }
.marketing-video-tag { border:1px solid rgba(201,168,76,0.42); background:rgba(255,255,255,0.72); color:#18395f; padding:7px 10px; font-family:'Lato',sans-serif; font-size:9px; font-weight:900; letter-spacing:0.12em; text-transform:uppercase; }
.marketing-video-controls { position:absolute; left:8px; right:8px; bottom:8px; display:flex; gap:6px; justify-content:space-between; pointer-events:none; }
.marketing-video-control {
  pointer-events:auto; width:34px; height:32px; border:1px solid rgba(255,255,255,0.34);
  background:rgba(8,20,38,0.72); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}
.marketing-video-control svg { width:15px; height:15px; stroke:currentColor; }
.marketing-video-control:hover { border-color:var(--gold); color:#f4d88a; background:rgba(8,20,38,0.9); transform:translateY(-1px); }
.promo-video-lightbox { position:fixed; inset:0; z-index:2500; background:rgba(5,12,24,0.88); display:none; align-items:center; justify-content:center; padding:18px; }
.promo-video-lightbox.open { display:flex; }
.promo-video-lightbox-inner { position:relative; width:min(980px,96vw); }
.promo-video-lightbox iframe { width:100%; aspect-ratio:16/9; max-height:82vh; background:#000; display:block; border:1px solid rgba(255,255,255,0.22); }
.promo-video-lightbox-close { position:absolute; top:-42px; right:0; background:#fff; color:#0a1628; border:0; width:34px; height:34px; font-size:22px; cursor:pointer; }


.notice-board-section {
  margin:24px 0 34px;
  padding:42px clamp(16px,3.4vw,38px) 36px;
  border:1px solid rgba(201,168,76,0.28);
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #fff7f1 0%, #f8fbff 48%, #f6efe3 100%) !important;
  box-shadow:0 20px 46px rgba(10,22,40,0.08);
  overflow:hidden;
  border-radius:12px;
}
.notice-board-head { display:block; border-bottom:0; padding-bottom:0; margin-bottom:28px; }
.notice-board-kicker { font-family:'Lato',sans-serif; font-size:9px; font-weight:900; letter-spacing:0.24em; text-transform:uppercase; color:#9b7a25; margin-bottom:6px; }
.notice-board-title { font-family:'Playfair Display',serif; font-size:clamp(28px,3.4vw,42px); color:#10243a; font-weight:800; line-height:1.05; }
.notice-board-count { display:none; }
.notice-board-deck { position:relative; min-height:clamp(380px,40vw,520px); overflow:visible; touch-action:pan-y; }
.notice-board-card {
  position:absolute;
  top:0;
  left:50%;
  width:clamp(240px,28vw,390px);
  height:clamp(318px,38vw,500px);
  padding:0;
  border:0;
  border-radius:18px;
  background:#07111d;
  cursor:pointer;
  overflow:hidden;
  opacity:0;
  transform:translateX(-50%) scale(.62);
  transition:transform .56s cubic-bezier(.35,0,.25,1), opacity .42s ease, box-shadow .42s ease;
  box-shadow:0 22px 42px rgba(10,22,40,0.14);
  will-change:transform,opacity;
  user-select:none;
}
.notice-board-card.active { z-index:5; opacity:1; transform:translateX(-50%) scale(1); box-shadow:0 30px 72px rgba(10,22,40,0.26); }
.notice-board-card.prev { z-index:4; opacity:1; transform:translateX(calc(-50% - min(27vw, 280px))) scale(.86); }
.notice-board-card.next { z-index:4; opacity:1; transform:translateX(calc(-50% + min(27vw, 280px))) scale(.86); }
.notice-board-card.far-prev { z-index:3; opacity:1; transform:translateX(calc(-50% - min(43vw, 455px))) scale(.72); }
.notice-board-card.far-next { z-index:3; opacity:1; transform:translateX(calc(-50% + min(43vw, 455px))) scale(.72); }
.notice-board-card img { width:100%; height:100%; display:block; background:#07111d; pointer-events:none; }
.notice-board-caption {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:70px 18px 22px;
  color:#fff;
  text-align:left;
  background:linear-gradient(180deg,rgba(5,12,24,0) 0%,rgba(5,12,24,.78) 48%,rgba(5,12,24,.96) 100%);
}
.notice-board-caption strong { display:block; font-family:'Playfair Display',serif; font-size:clamp(15px,1.08vw,20px); line-height:1.14; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.36); }
.notice-board-nav {
  display:none;
}
.notice-board-nav.prev { left:10px; }
.notice-board-nav.next { right:10px; }
.notice-board-dots { display:none; justify-content:center; gap:7px; margin-top:12px; }
.notice-board-dot { width:8px; height:8px; border-radius:50%; border:1px solid #9b7a25; background:transparent; padding:0; cursor:pointer; }
.notice-board-dot.active { background:#10243a; border-color:#10243a; }
.notice-board-lightbox { position:fixed; inset:0; z-index:2600; display:none; align-items:center; justify-content:center; background:rgba(5,12,24,.92); padding:18px; }
.notice-board-lightbox.open { display:flex; }
.notice-board-lightbox-inner { position:relative; width:min(1180px,96vw); height:min(84vh,760px); display:flex; align-items:center; justify-content:center; }
.notice-board-lightbox img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; border:1px solid rgba(255,255,255,.22); background:#050c18; }
.notice-board-lightbox-title { position:absolute; left:0; right:46px; bottom:-38px; color:#fff; font-family:'Playfair Display',serif; font-size:18px; line-height:1.25; text-align:left; }
.notice-board-lightbox-close { position:absolute; top:-42px; right:0; width:34px; height:34px; border:0; background:#fff; color:#0a1628; font-size:22px; cursor:pointer; }
.promo-home-preview-overlay { position:fixed; inset:0; z-index:2450; display:none; align-items:center; justify-content:center; background:rgba(5,12,24,.82); padding:18px; }
.promo-home-preview-overlay.open { display:flex; }
.promo-home-preview-panel { position:relative; width:min(var(--site-frame),calc(100vw - 32px)); max-height:88vh; overflow:auto; background:var(--offwhite); border-top:4px solid var(--gold); box-shadow:0 28px 90px rgba(0,0,0,.38); padding:22px; }
.promo-home-preview-close { position:absolute; top:10px; right:12px; width:34px; height:34px; border:1px solid var(--border); background:#fff; color:var(--navy); font-size:22px; cursor:pointer; }
.promo-home-preview-title { font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:.2em; text-transform:uppercase; color:#9b7a25; margin:0 44px 12px 0; }
.promo-home-preview-content .notice-board-section { margin:0; }
.promo-home-preview-actions { display:flex; justify-content:center; gap:10px; margin-top:12px; }
.promo-home-preview-actions button { min-width:96px; min-height:38px; border:1px solid var(--border); background:#fff; color:var(--navy); font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; }
.promo-home-preview-actions button:hover { border-color:var(--gold); color:#9b7a25; }
.live-stats-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-bottom:16px; }
.live-stat { background:transparent; border:none; padding:11px 9px; }
.live-stat strong { display:block; font-family:'Playfair Display',serif; font-size:22px; color:#10243a; line-height:1; }
.live-stat span { display:block; margin-top:6px; font-family:'Lato',sans-serif; font-size:8.5px; font-weight:900; letter-spacing:0.12em; text-transform:uppercase; color:#7a8795; }
.live-chip-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.live-chip { border:1px solid #c9a84c; background:#fff; color:#18395f; padding:8px 11px; font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.08em; text-transform:uppercase; cursor:pointer; }
.live-chip:hover { background:#10243a; color:#fff; border-color:#10243a; }
.live-feed-list { border-left:2px solid rgba(201,168,76,0.45); padding-left:14px; }
.live-feed-item { position:relative; padding:0 0 13px; cursor:pointer; display:grid; grid-template-columns:96px minmax(0,1fr); gap:12px; align-items:start; }
.live-feed-item::before { content:''; position:absolute; left:-20px; top:4px; width:8px; height:8px; background:#c9a84c; border-radius:50%; box-shadow:0 0 0 3px #fff; }
.live-feed-thumb { width:96px; aspect-ratio:3/2; background:#eef3f7; border:1px solid rgba(24,57,95,0.12); overflow:hidden; display:flex; align-items:center; justify-content:center; color:#7a8795; font-size:10px; font-weight:900; }
.live-feed-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.live-feed-title { font-family:'Playfair Display',serif; color:#10243a; font-weight:700; font-size:15px; line-height:1.25; }
.live-feed-meta { margin-top:4px; font-family:'Lato',sans-serif; font-size:9.5px; color:#7a8795; letter-spacing:0.08em; text-transform:uppercase; }
.lfm-sep { display:inline; }
.sidebar-headline,
.live-feed-title,
.related-card-title,
.article-reading-list strong {
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:auto;
}
.sidebar-meta,
.live-feed-meta {
  overflow-wrap:break-word;
}
.live-knowledge-card {
  display:grid;
  grid-template-columns:minmax(150px, 0.72fr) 1fr;
  gap:14px;
  align-items:center;
  background:linear-gradient(135deg,#081322 0%,#10243a 62%,#0a1520 100%);
  border:1px solid rgba(201,168,76,0.38);
  border-top:3px solid #c9a84c;
  padding:12px;
  margin-bottom:12px;
  overflow:hidden;
  position:relative;
  box-shadow:0 14px 32px rgba(10,22,40,0.12);
  cursor:pointer;
  perspective:850px;
  --tilt-x:0deg;
  --tilt-y:0deg;
}
.live-knowledge-card::after {
  content:'';
  position:absolute;
  inset:-35% -20% auto auto;
  width:220px;
  height:220px;
  background:radial-gradient(circle,rgba(108,179,255,0.18),rgba(108,179,255,0));
  pointer-events:none;
}
.knowledge-scene {
  position:relative;
  z-index:1;
  width:100%;
  aspect-ratio:1/1;
  min-width:0;
  display:grid;
  place-items:center;
  transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style:preserve-3d;
  transition:transform 0.18s ease;
}
.knowledge-globe {
  position:relative;
  width:min(100%, 190px);
  aspect-ratio:1/1;
  border-radius:50%;
  background:
    radial-gradient(circle at 33% 24%,rgba(255,255,255,0.95) 0 2%,rgba(135,199,255,0.38) 7%,transparent 22%),
    radial-gradient(circle at 55% 62%,rgba(255,210,106,0.3),transparent 33%),
    radial-gradient(circle at 50% 50%,rgba(19,61,103,0.92),#06101f 72%);
  border:1px solid rgba(225,197,111,0.72);
  box-shadow:inset -18px -18px 36px rgba(0,0,0,0.42), inset 12px 12px 30px rgba(151,211,255,0.18), 0 0 34px rgba(94,165,255,0.24), 0 0 18px rgba(216,180,93,0.18);
  overflow:hidden;
  transform-style:preserve-3d;
}
.knowledge-globe::before {
  content:'';
  position:absolute;
  inset:-18%;
  border-radius:50%;
  background:
    repeating-linear-gradient(90deg,transparent 0 11px,rgba(156,207,255,0.22) 12px 13px,transparent 14px 25px),
    repeating-linear-gradient(0deg,transparent 0 15px,rgba(216,180,93,0.16) 16px 17px,transparent 18px 32px);
  opacity:0.62;
  mix-blend-mode:screen;
  animation:knowledgeSpin 13s linear infinite;
}
.knowledge-globe::after {
  content:'';
  position:absolute;
  inset:10%;
  border-radius:50%;
  background:
    radial-gradient(circle at 18% 32%,#bfe7ff 0 2px,transparent 3px),
    radial-gradient(circle at 42% 18%,#ffe49a 0 2px,transparent 3px),
    radial-gradient(circle at 72% 34%,#bfe7ff 0 2px,transparent 3px),
    radial-gradient(circle at 58% 68%,#ffe49a 0 2px,transparent 3px),
    radial-gradient(circle at 30% 72%,#bfe7ff 0 2px,transparent 3px),
    linear-gradient(32deg,transparent 22%,rgba(157,216,255,0.5) 23% 24%,transparent 25% 100%),
    linear-gradient(126deg,transparent 20%,rgba(216,180,93,0.42) 21% 22%,transparent 23% 100%),
    linear-gradient(80deg,transparent 39%,rgba(157,216,255,0.36) 40% 41%,transparent 42% 100%);
  animation:knowledgePulse 3.2s ease-in-out infinite;
}
.knowledge-orbit {
  position:absolute;
  inset:5%;
  border:1px solid rgba(216,180,93,0.5);
  border-radius:50%;
  transform:rotateX(72deg) rotateZ(-12deg);
  box-shadow:0 0 14px rgba(216,180,93,0.18);
}
.knowledge-orbit.two { inset:13%; transform:rotateX(68deg) rotateZ(36deg); border-color:rgba(114,190,255,0.44); }
.knowledge-mandala {
  position:absolute;
  inset:23%;
  border-radius:50%;
  border:1px solid rgba(216,180,93,0.62);
  background:repeating-conic-gradient(from 22deg,rgba(216,180,93,0.5) 0 7deg,transparent 8deg 15deg);
  mask:radial-gradient(circle,transparent 0 47%,#000 49% 54%,transparent 57%);
  animation:knowledgeReverse 18s linear infinite;
}
.knowledge-scales {
  position:absolute;
  left:50%;
  top:51%;
  width:60px;
  height:54px;
  transform:translate(-50%,-50%);
  filter:drop-shadow(0 0 9px rgba(216,180,93,0.55));
}
.knowledge-scales .beam,
.knowledge-scales .stem,
.knowledge-scales .base,
.knowledge-scales .pan { position:absolute; background:#e7c66a; }
.knowledge-scales .beam { left:9px; right:9px; top:14px; height:3px; border-radius:3px; }
.knowledge-scales .stem { left:50%; top:7px; width:4px; height:35px; transform:translateX(-50%); border-radius:4px; }
.knowledge-scales .base { left:17px; right:17px; bottom:5px; height:5px; border-radius:50% 50% 4px 4px; }
.knowledge-scales .pan { width:20px; height:6px; top:35px; border-radius:0 0 18px 18px; background:linear-gradient(#f4d982,#b9882d); }
.knowledge-scales .pan.left { left:2px; }
.knowledge-scales .pan.right { right:2px; }
.knowledge-scales .pan::before {
  content:'';
  position:absolute;
  left:50%;
  bottom:5px;
  width:1px;
  height:20px;
  background:rgba(231,198,106,0.84);
}
.knowledge-scales .pan.left::before { transform:translateX(-50%) rotate(-17deg); transform-origin:bottom; }
.knowledge-scales .pan.right::before { transform:translateX(-50%) rotate(17deg); transform-origin:bottom; }
.knowledge-spark {
  position:absolute;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#ffdc7a;
  box-shadow:0 0 10px #ffdc7a;
  animation:knowledgeFloat 4.8s ease-in-out infinite;
}
.knowledge-spark.s1 { left:18%; top:18%; animation-delay:-0.8s; }
.knowledge-spark.s2 { left:77%; top:24%; background:#98d7ff; box-shadow:0 0 10px #98d7ff; animation-delay:-1.7s; }
.knowledge-spark.s3 { left:23%; top:76%; background:#98d7ff; box-shadow:0 0 10px #98d7ff; animation-delay:-2.4s; }
.knowledge-spark.s4 { left:82%; top:70%; animation-delay:-3.3s; }
.live-knowledge-card:hover .knowledge-globe,
.live-knowledge-card.active .knowledge-globe { box-shadow:inset -18px -18px 36px rgba(0,0,0,0.42), inset 12px 12px 30px rgba(151,211,255,0.22), 0 0 48px rgba(94,165,255,0.36), 0 0 30px rgba(216,180,93,0.32); }
.live-knowledge-body { position:relative; z-index:1; min-width:0; }
.live-knowledge-kicker {
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:#d8b45d;
  margin-bottom:7px;
}
.live-knowledge-title {
  font-family:'Playfair Display',serif;
  color:#f1f6ff;
  font-size:22px;
  font-weight:800;
  line-height:1.06;
}
.live-knowledge-meta {
  margin-top:9px;
  font-family:'Lato',sans-serif;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#9fc5ef;
  line-height:1.5;
}
@keyframes knowledgeSpin { to { transform:rotate(360deg); } }
@keyframes knowledgeReverse { to { transform:rotate(-360deg); } }
@keyframes knowledgePulse { 0%,100% { opacity:0.72; transform:scale(1); } 50% { opacity:1; transform:scale(1.04); } }
@keyframes knowledgeFloat { 0%,100% { transform:translate3d(0,0,18px); opacity:0.55; } 50% { transform:translate3d(7px,-9px,30px); opacity:1; } }
.research-intel-panel {
  position:relative;
  min-height:520px;
  overflow:hidden;
  isolation:isolate;
  border:1px solid rgba(201,168,76,0.34);
  border-top:3px solid #c9a84c;
  background:
    radial-gradient(circle at 58% 72%,rgba(201,168,76,0.2),transparent 22%),
    radial-gradient(circle at 70% 18%,rgba(98,184,255,0.15),transparent 30%),
    linear-gradient(140deg,#050b14 0%,#081322 50%,#02060d 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04),0 18px 44px rgba(0,0,0,0.22);
}
.research-intel-panel::before {
  content:'';
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(circle,rgba(255,255,255,0.42) 0 1px,transparent 1.6px),
    radial-gradient(circle,rgba(201,168,76,0.34) 0 1px,transparent 1.8px);
  background-size:74px 74px,113px 113px;
  background-position:12px 18px,42px 8px;
  opacity:0.32;
  animation:researchParticleDrift 18s linear infinite;
}
.research-orb-stage {
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}
.research-globe {
  position:absolute;
  right:-9%;
  top:18px;
  width:min(560px,85%);
  aspect-ratio:1/1;
  border-radius:50%;
  opacity:0.95;
  background:
    radial-gradient(circle at 35% 25%,rgba(255,255,255,0.34),transparent 11%),
    radial-gradient(circle at 64% 60%,rgba(201,168,76,0.2),transparent 28%),
    radial-gradient(circle at 50% 50%,rgba(20,55,94,0.22),rgba(5,11,20,0.88) 69%,rgba(0,0,0,0.98) 82%);
  box-shadow:inset -34px -34px 70px rgba(0,0,0,0.82),inset 18px 16px 54px rgba(100,190,255,0.12),0 0 44px rgba(100,190,255,0.16);
  overflow:hidden;
}
.research-globe::before {
  content:'';
  position:absolute;
  inset:-18%;
  border-radius:50%;
  background:
    repeating-linear-gradient(90deg,transparent 0 18px,rgba(126,205,255,0.22) 19px 20px,transparent 21px 40px),
    repeating-linear-gradient(0deg,transparent 0 24px,rgba(201,168,76,0.15) 25px 26px,transparent 27px 52px),
    radial-gradient(circle at 50% 50%,transparent 0 58%,rgba(126,205,255,0.36) 59% 60%,transparent 61%);
  mask:radial-gradient(circle,#000 0 64%,transparent 76%);
  animation:researchGlobeRotate 22s linear infinite;
}
.research-globe::after {
  content:'';
  position:absolute;
  inset:9%;
  border-radius:50%;
  background:
    radial-gradient(circle at 20% 31%,#8bd8ff 0 2px,transparent 3px),
    radial-gradient(circle at 39% 19%,#d9b85b 0 2px,transparent 3px),
    radial-gradient(circle at 63% 37%,#8bd8ff 0 2px,transparent 3px),
    radial-gradient(circle at 74% 62%,#d9b85b 0 2px,transparent 3px),
    radial-gradient(circle at 44% 74%,#8bd8ff 0 2px,transparent 3px),
    linear-gradient(22deg,transparent 27%,rgba(201,168,76,0.36) 28% 29%,transparent 30%),
    linear-gradient(112deg,transparent 29%,rgba(126,205,255,0.34) 30% 31%,transparent 32%),
    linear-gradient(146deg,transparent 43%,rgba(201,168,76,0.3) 44% 45%,transparent 46%);
  opacity:0.9;
  animation:researchGlowPulse 4.4s ease-in-out infinite;
}
.research-shadow {
  position:absolute;
  right:-12%;
  top:-5%;
  width:62%;
  height:62%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(0,0,0,0.14),rgba(0,0,0,0.84) 62%,#02060d 78%);
  z-index:2;
}
.knowledge-beam {
  position:absolute;
  left:50%;
  bottom:0;
  width:150px;
  height:280px;
  transform:translateX(-50%);
  background:linear-gradient(to top,rgba(255,208,92,0.75),rgba(255,208,92,0.22) 44%,rgba(116,205,255,0.13) 74%,transparent);
  clip-path:polygon(42% 100%,58% 100%,74% 0,26% 0);
  filter:blur(0.3px);
  opacity:0.78;
  animation:researchBeamPulse 3.8s ease-in-out infinite;
}
.knowledge-pedestal {
  position:absolute;
  left:50%;
  bottom:26px;
  width:240px;
  height:48px;
  transform:translateX(-50%);
  border-radius:50%;
  border:1px solid rgba(201,168,76,0.75);
  background:radial-gradient(ellipse at center,rgba(255,215,105,0.72),rgba(201,168,76,0.2) 36%,transparent 70%);
  box-shadow:0 0 32px rgba(201,168,76,0.48),0 0 80px rgba(98,184,255,0.12);
}
.rising-particle {
  position:absolute;
  left:50%;
  bottom:52px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#f4d98a;
  box-shadow:0 0 12px #f4d98a;
  animation:researchRise 4.8s linear infinite;
}
.rising-particle.p2 { margin-left:-42px; animation-delay:-1.3s; background:#8bd8ff; box-shadow:0 0 12px #8bd8ff; }
.rising-particle.p3 { margin-left:34px; animation-delay:-2.5s; }
.rising-particle.p4 { margin-left:72px; animation-delay:-3.4s; background:#8bd8ff; box-shadow:0 0 12px #8bd8ff; }
.research-symbol {
  position:absolute;
  z-index:3;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  color:#e6c46a;
  border:1px solid rgba(201,168,76,0.36);
  background:rgba(7,18,33,0.48);
  backdrop-filter:blur(8px);
  box-shadow:0 0 18px rgba(201,168,76,0.16);
  animation:researchSymbolFloat 6.5s ease-in-out infinite;
}
.research-symbol svg { width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.6; }
.research-symbol.s-book { right:40%; top:17%; animation-delay:-0.8s; }
.research-symbol.s-scale { right:10%; top:31%; color:#8bd8ff; animation-delay:-2s; }
.research-symbol.s-globe { right:31%; top:54%; animation-delay:-3.3s; }
.research-symbol.s-atom { right:7%; top:66%; color:#8bd8ff; animation-delay:-1.5s; }
.research-symbol.s-leaf { right:47%; top:71%; animation-delay:-4.1s; }
.research-symbol.s-lotus { right:20%; top:82%; color:#f3d58a; animation-delay:-2.8s; }
.research-globe-text {
  position:absolute;
  z-index:4;
  left:50%;
  bottom:112px;
  width:min(360px,84%);
  transform:translateX(-50%);
  text-align:center;
  text-shadow:0 0 22px rgba(0,0,0,0.86);
}
.research-globe-text strong {
  display:block;
  font-family:'Playfair Display',serif;
  font-size:clamp(24px,3vw,38px);
  line-height:1.02;
  color:#f3f7ff;
}
.research-globe-text span {
  display:block;
  margin-top:8px;
  font-family:'Lato',sans-serif;
  font-size:10px;
  font-weight:900;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#9fd2ff;
}
.research-overlay {
  position:relative;
  z-index:5;
  min-height:520px;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto 1fr auto;
  gap:12px;
  padding:16px;
}
.research-card {
  border:1px solid rgba(159,210,255,0.22);
  background:rgba(7,18,33,0.58);
  backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05),0 12px 26px rgba(0,0,0,0.18);
  transition:border-color 0.24s ease,box-shadow 0.24s ease,transform 0.24s ease;
}
.research-card:hover {
  transform:translateY(-2px);
  border-color:rgba(201,168,76,0.58);
  box-shadow:0 0 26px rgba(201,168,76,0.16),0 16px 34px rgba(0,0,0,0.22);
}
.research-card-head {
  padding:12px 12px 8px;
  font-family:'Lato',sans-serif;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:#d8b45d;
  border-bottom:1px solid rgba(159,210,255,0.14);
}
.topic-card { grid-column:1 / 2; grid-row:1 / 4; align-self:start; }
.topic-list { display:grid; gap:8px; padding:10px; }
.topic-row {
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:9px;
  padding:9px;
  border:1px solid rgba(159,210,255,0.14);
  background:rgba(255,255,255,0.025);
}
.topic-icon {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  color:#9fd2ff;
  border:1px solid rgba(159,210,255,0.2);
  background:rgba(159,210,255,0.06);
}
.topic-icon svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.6; }
.topic-title { font-family:'Playfair Display',serif; color:#f3f7ff; font-size:14px; font-weight:700; line-height:1.14; }
.topic-sub { margin-top:3px; font-family:'Lato',sans-serif; color:#8fa8c0; font-size:9.5px; letter-spacing:0.03em; }
.topic-growth { font-family:'Lato',sans-serif; color:#d8b45d; font-size:11px; font-weight:900; white-space:nowrap; }
.analytics-card { grid-column:2 / 3; grid-row:1 / 2; }
.analytics-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px; }
.analytics-item { border:1px solid rgba(159,210,255,0.12); padding:9px; background:rgba(0,0,0,0.12); }
.analytics-item b { display:block; font-family:'Playfair Display',serif; color:#fff; font-size:18px; line-height:1; }
.analytics-item span { display:block; margin-top:5px; font-family:'Lato',sans-serif; color:#8fa8c0; font-size:9px; letter-spacing:0.08em; text-transform:uppercase; }
.discussion-card { grid-column:2 / 3; grid-row:3 / 4; align-self:end; }
.discussion-body { padding:12px; }
.discussion-quote { font-family:'Playfair Display',serif; color:#f3f7ff; font-size:16px; font-weight:700; line-height:1.22; }
.discussion-meta { margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.12em; text-transform:uppercase; color:#9fd2ff; }
@keyframes researchGlobeRotate { to { transform:translateX(-7%) rotate(360deg); } }
@keyframes researchGlowPulse { 0%,100% { opacity:0.62; } 50% { opacity:1; } }
@keyframes researchBeamPulse { 0%,100% { opacity:0.55; transform:translateX(-50%) scaleY(0.94); } 50% { opacity:0.92; transform:translateX(-50%) scaleY(1.04); } }
@keyframes researchRise { 0% { transform:translateY(0) scale(0.65); opacity:0; } 18% { opacity:1; } 100% { transform:translateY(-248px) scale(1.1); opacity:0; } }
@keyframes researchParticleDrift { to { background-position:86px 92px,155px 121px; } }
@keyframes researchSymbolFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
.research-pulse-panel {
  position:relative;
  min-height:430px;
  overflow:hidden;
  border:1px solid rgba(24,57,95,0.16);
  border-top:3px solid #c9a84c;
  background:
    radial-gradient(circle at 50% 38%,rgba(95,168,232,0.17),transparent 30%),
    radial-gradient(circle at 50% 78%,rgba(201,168,76,0.18),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,0.88),rgba(246,249,253,0.78));
  box-shadow:0 14px 34px rgba(10,22,40,0.08);
  color:#10243a;
}
.research-pulse-panel::before {
  content:'';
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(24,57,95,0.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(24,57,95,0.06) 1px,transparent 1px);
  background-size:34px 34px;
  mask:radial-gradient(circle at 50% 42%,#000 0 48%,transparent 78%);
  opacity:0.55;
}
.research-pulse-head,
.research-pulse-map,
.research-pulse-footer { position:relative; z-index:1; }
.research-pulse-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px 16px 8px;
}
.research-pulse-kicker {
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:#9b7a25;
}
.research-pulse-title {
  margin-top:5px;
  font-family:'Playfair Display',serif;
  font-size:25px;
  line-height:1.06;
  font-weight:800;
  color:#10243a;
}
.research-pulse-copy {
  margin-top:7px;
  max-width:330px;
  font-family:'EB Garamond',serif;
  font-size:15px;
  line-height:1.45;
  color:#506173;
}
.research-pulse-badge {
  flex-shrink:0;
  border:1px solid rgba(201,168,76,0.5);
  color:#18395f;
  background:rgba(255,255,255,0.55);
  padding:7px 9px;
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.14em;
  text-transform:uppercase;
}
.research-pulse-map {
  min-height:225px;
  display:grid;
  place-items:center;
  padding:8px 14px 2px;
}
.pulse-orbit {
  position:relative;
  width:min(330px,88%);
  aspect-ratio:1/1;
  border-radius:50%;
  border:1px solid rgba(24,57,95,0.13);
  background:
    radial-gradient(circle at 50% 50%,rgba(255,255,255,0.76),rgba(255,255,255,0.24) 28%,transparent 29%),
    repeating-conic-gradient(from 0deg,rgba(201,168,76,0.3) 0 5deg,transparent 6deg 23deg);
  box-shadow:inset 0 0 40px rgba(24,57,95,0.07);
}
.pulse-orbit::before,
.pulse-orbit::after {
  content:'';
  position:absolute;
  inset:12%;
  border-radius:50%;
  border:1px solid rgba(95,168,232,0.3);
  animation:pulseRotate 18s linear infinite;
}
.pulse-orbit::after {
  inset:25%;
  border-color:rgba(201,168,76,0.42);
  animation-duration:26s;
  animation-direction:reverse;
}
.pulse-core {
  position:absolute;
  left:50%;
  top:50%;
  width:112px;
  aspect-ratio:1/1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  display:grid;
  place-items:center;
  text-align:center;
  background:radial-gradient(circle at 35% 24%,#ffffff,rgba(95,168,232,0.34) 28%,rgba(16,36,58,0.96) 72%);
  border:1px solid rgba(201,168,76,0.66);
  box-shadow:0 0 0 12px rgba(95,168,232,0.04),0 0 34px rgba(95,168,232,0.26),0 0 24px rgba(201,168,76,0.18);
  color:#fff;
  animation:pulseGlow 3.4s ease-in-out infinite;
}
.pulse-core strong {
  display:block;
  font-family:'Playfair Display',serif;
  font-size:24px;
  line-height:1;
}
.pulse-core span {
  display:block;
  margin-top:5px;
  font-family:'Lato',sans-serif;
  font-size:8px;
  font-weight:900;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#d8b45d;
}
.pulse-node {
  position:absolute;
  min-width:82px;
  border:1px solid rgba(24,57,95,0.16);
  background:rgba(255,255,255,0.76);
  color:#18395f;
  padding:8px 9px;
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.1em;
  text-transform:uppercase;
  cursor:pointer;
  transition:transform 0.2s ease,border-color 0.2s ease,box-shadow 0.2s ease,background 0.2s ease;
  backdrop-filter:blur(10px);
}
.pulse-node::before {
  content:'';
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  margin-right:6px;
  background:#c9a84c;
  box-shadow:0 0 9px rgba(201,168,76,0.72);
}
.pulse-node:hover {
  transform:translateY(-2px);
  border-color:#c9a84c;
  box-shadow:0 10px 24px rgba(10,22,40,0.12),0 0 20px rgba(201,168,76,0.18);
  background:#fff;
}
.pulse-node.law { left:-2%; top:44%; }
.pulse-node.vedic { right:-5%; top:43%; }
.pulse-node.political { left:50%; top:-4%; transform:translateX(-50%); }
.pulse-node.education { left:50%; bottom:-5%; transform:translateX(-50%); }
.pulse-node.political:hover,
.pulse-node.education:hover { transform:translateX(-50%) translateY(-2px); }
.pulse-node.search-node { right:8%; bottom:13%; color:#0e5886; }
.pulse-link {
  position:absolute;
  left:50%;
  top:50%;
  height:1px;
  width:42%;
  transform-origin:left center;
  background:linear-gradient(90deg,rgba(201,168,76,0.62),transparent);
  opacity:0.6;
  animation:pulseLine 3.8s ease-in-out infinite;
}
.pulse-link.l1 { transform:rotate(0deg); }
.pulse-link.l2 { transform:rotate(72deg); animation-delay:-0.8s; }
.pulse-link.l3 { transform:rotate(144deg); animation-delay:-1.4s; }
.pulse-link.l4 { transform:rotate(216deg); animation-delay:-2.1s; }
.pulse-link.l5 { transform:rotate(288deg); animation-delay:-2.8s; }
.research-pulse-footer {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  padding:10px 16px 16px;
}
.pulse-stat {
  border:1px solid rgba(24,57,95,0.13);
  background:rgba(255,255,255,0.62);
  padding:10px;
  transition:border-color 0.2s ease,transform 0.2s ease;
}
.pulse-stat:hover { transform:translateY(-2px); border-color:rgba(201,168,76,0.55); }
.pulse-stat b {
  display:block;
  font-family:'Playfair Display',serif;
  font-size:22px;
  line-height:1;
  color:#10243a;
}
.pulse-stat span {
  display:block;
  margin-top:5px;
  font-family:'Lato',sans-serif;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#7a8795;
}
body.dark-mode .research-pulse-panel {
  border-color:#2b4564;
  background:
    radial-gradient(circle at 50% 38%,rgba(95,168,232,0.18),transparent 32%),
    radial-gradient(circle at 52% 80%,rgba(201,168,76,0.16),transparent 30%),
    linear-gradient(135deg,#07111f,#0d1624 56%,#07101b);
  box-shadow:none;
  color:#c8d8ea;
}
body.dark-mode .research-pulse-panel::before { background-image:linear-gradient(rgba(143,168,192,0.07) 1px,transparent 1px),linear-gradient(90deg,rgba(143,168,192,0.07) 1px,transparent 1px); }
body.dark-mode .research-pulse-title,
body.dark-mode .pulse-stat b { color:#c8d8ea; }
body.dark-mode .research-pulse-copy,
body.dark-mode .pulse-stat span { color:#8fa8c0; }
body.dark-mode .research-pulse-badge,
body.dark-mode .pulse-node,
body.dark-mode .pulse-stat {
  background:rgba(10,21,32,0.72);
  border-color:#2b4564;
  color:#c8d8ea;
}
body.dark-mode .pulse-node:hover,
body.dark-mode .pulse-stat:hover { border-color:#c9a84c; background:#0d1c2e; }
@keyframes pulseRotate { to { transform:rotate(360deg); } }
@keyframes pulseGlow { 0%,100% { box-shadow:0 0 0 9px rgba(95,168,232,0.04),0 0 28px rgba(95,168,232,0.24),0 0 18px rgba(201,168,76,0.15); } 50% { box-shadow:0 0 0 15px rgba(95,168,232,0.07),0 0 44px rgba(95,168,232,0.36),0 0 28px rgba(201,168,76,0.28); } }
@keyframes pulseLine { 0%,100% { opacity:0.25; } 50% { opacity:0.82; } }
.insight-engine-panel {
  position:relative;
  min-height:430px;
  overflow:hidden;
  border:none;
  background:
    radial-gradient(circle at 72% 18%,rgba(95,168,232,0.14),transparent 30%),
    radial-gradient(circle at 28% 82%,rgba(201,168,76,0.18),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,0.92),rgba(247,250,253,0.82));
  box-shadow:0 16px 34px rgba(10,22,40,0.08);
  color:#10243a;
}
.insight-engine-panel::before {
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(24,57,95,0.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(24,57,95,0.045) 1px,transparent 1px);
  background-size:42px 42px,42px 42px;
  opacity:0.7;
  pointer-events:none;
}
.insight-head,
.insight-stage,
.insight-footer { position:relative; z-index:1; }
.insight-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:17px 17px 8px;
}
.insight-kicker {
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:#9b7a25;
}
.insight-title {
  margin-top:5px;
  font-family:'Playfair Display',serif;
  font-size:27px;
  font-weight:800;
  line-height:1.04;
  color:#10243a;
}
.insight-time {
  flex-shrink:0;
  border:1px solid rgba(24,57,95,0.14);
  background:rgba(255,255,255,0.62);
  padding:7px 9px;
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#506173;
}
.insight-stage {
  display:grid;
  grid-template-columns:minmax(230px,0.9fr) 1fr;
  gap:14px;
  align-items:stretch;
  padding:8px 17px 13px;
}
.insight-prism-wrap {
  position:relative;
  min-height:238px;
  display:grid;
  place-items:center;
  border:1px solid rgba(24,57,95,0.12);
  background:rgba(255,255,255,0.45);
  overflow:hidden;
}
.insight-prism-wrap::before {
  content:'';
  position:absolute;
  inset:14%;
  background:conic-gradient(from 0deg,rgba(201,168,76,0),rgba(201,168,76,0.48),rgba(95,168,232,0.38),rgba(201,168,76,0));
  filter:blur(16px);
  opacity:0.46;
  animation:insightSpin 13s linear infinite;
}
.insight-prism {
  position:relative;
  width:128px;
  aspect-ratio:1/1;
  transform:rotateX(58deg) rotateZ(45deg);
  border:1px solid rgba(201,168,76,0.72);
  background:
    linear-gradient(135deg,rgba(255,255,255,0.72),rgba(95,168,232,0.18) 45%,rgba(16,36,58,0.28)),
    radial-gradient(circle at center,rgba(201,168,76,0.22),transparent 60%);
  box-shadow:0 0 34px rgba(95,168,232,0.18),0 0 24px rgba(201,168,76,0.2);
  animation:insightPrism 5.8s ease-in-out infinite;
}
.insight-prism::before,
.insight-prism::after {
  content:'';
  position:absolute;
  inset:12%;
  border:1px solid rgba(24,57,95,0.16);
}
.insight-prism::after {
  inset:28%;
  border-color:rgba(201,168,76,0.52);
}
.insight-scan {
  position:absolute;
  left:12%;
  right:12%;
  height:1px;
  background:linear-gradient(90deg,transparent,#c9a84c,#7dc5ff,transparent);
  box-shadow:0 0 16px rgba(201,168,76,0.62);
  animation:insightScan 4.4s ease-in-out infinite;
}
.insight-word {
  position:absolute;
  font-family:'Lato',sans-serif;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#506173;
  opacity:0.78;
  padding:4px 6px;
  background:rgba(255,255,255,0.52);
  border:1px solid rgba(24,57,95,0.08);
  animation:insightFloat 6s ease-in-out infinite, insightWordScan 4.4s ease-in-out infinite;
}
.insight-word.w1 { left:12%; top:18%; color:#9b7a25; animation-delay:-0.4s,-0.2s; }
.insight-word.w2 { right:9%; top:18%; color:#0e5886; animation-delay:-1.2s,-1.1s; }
.insight-word.w3 { left:9%; bottom:21%; animation-delay:-2.4s,-2s; }
.insight-word.w4 { right:12%; bottom:19%; color:#0e5886; animation-delay:-3.6s,-3.2s; }
.insight-word.w5 { left:41%; top:8%; color:#9b7a25; animation-delay:-4.8s,-0.9s; }
.insight-word.w6 { left:40%; bottom:8%; color:#506173; animation-delay:-5.5s,-2.7s; }
.insight-copy-stack { display:grid; gap:10px; }
.insight-question,
.insight-climate,
.insight-note {
  border:none;
  background:rgba(255,255,255,0.68);
  backdrop-filter:blur(12px);
  padding:13px;
  transition:transform 0.2s ease,border-color 0.2s ease,box-shadow 0.2s ease;
}
.insight-question:hover,
.insight-climate:hover,
.insight-note:hover {
  transform:translateY(-2px);
  border-color:rgba(201,168,76,0.55);
  box-shadow:0 10px 24px rgba(10,22,40,0.09);
}
.insight-label {
  font-family:'Lato',sans-serif;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#9b7a25;
  margin-bottom:7px;
}
.insight-question strong {
  display:block;
  font-family:'Playfair Display',serif;
  font-size:19px;
  line-height:1.18;
  color:#10243a;
}
.insight-hour-question strong {
  display:block;
  font-family:'Playfair Display',serif;
  font-size:20px;
  line-height:1.2;
  color:#10243a;
}
.insight-quote-card {
  position:relative;
  z-index:1;
  margin:0 17px 17px;
}
.insight-quote-card span {
  display:block;
  margin-top:8px;
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#7a8795;
}
.insight-note p {
  margin:0;
  font-family:'EB Garamond',serif;
  font-size:15px;
  line-height:1.45;
  color:#506173;
}
.climate-row {
  display:grid;
  grid-template-columns:92px 1fr 34px;
  align-items:center;
  gap:8px;
  margin:8px 0;
  font-family:'Lato',sans-serif;
  font-size:9px;
  font-weight:900;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#506173;
}
.climate-track {
  height:5px;
  background:rgba(24,57,95,0.09);
  overflow:hidden;
}
.climate-fill {
  display:block;
  height:100%;
  background:linear-gradient(90deg,#c9a84c,#7dc5ff);
  animation:insightBar 2.8s ease-out both;
}
.insight-footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:0 17px 17px;
}
.insight-action {
  flex:1;
  border:1px solid rgba(24,57,95,0.16);
  background:rgba(255,255,255,0.72);
  color:#18395f;
  padding:10px 11px;
  font-family:'Lato',sans-serif;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:0.13em;
  text-transform:uppercase;
  cursor:pointer;
  transition:transform 0.2s ease,border-color 0.2s ease,background 0.2s ease;
}
.insight-action:hover { transform:translateY(-2px); border-color:#c9a84c; background:#fff; }
.insight-action.primary { background:#10243a; color:#fff; border-color:#10243a; }
.insight-action.primary:hover { background:#c9a84c; color:#10243a; }
body.dark-mode .insight-engine-panel {
  border:none;
  background:
    radial-gradient(circle at 72% 18%,rgba(95,168,232,0.15),transparent 32%),
    radial-gradient(circle at 28% 82%,rgba(201,168,76,0.14),transparent 34%),
    linear-gradient(135deg,#07111f,#0d1624 58%,#07101b);
  box-shadow:none;
}
body.dark-mode .insight-engine-panel::before { background:linear-gradient(rgba(143,168,192,0.055) 1px,transparent 1px),linear-gradient(90deg,rgba(143,168,192,0.055) 1px,transparent 1px); background-size:42px 42px,42px 42px; }
body.dark-mode .insight-title,
body.dark-mode .insight-question strong,
body.dark-mode .insight-hour-question strong { color:#c8d8ea; }
body.dark-mode .insight-time,
body.dark-mode .insight-prism-wrap,
body.dark-mode .insight-question,
body.dark-mode .insight-climate,
body.dark-mode .insight-note,
body.dark-mode .insight-action {
  background:rgba(10,21,32,0.72);
  border:none;
  color:#c8d8ea;
}
body.dark-mode .insight-word,
body.dark-mode .climate-row,
body.dark-mode .insight-note p,
body.dark-mode .insight-quote-card span { color:#8fa8c0; }
body.dark-mode .insight-word { background:rgba(10,21,32,0.6); border-color:#2b4564; }
body.dark-mode .insight-action.primary { background:#1c3560; border-color:#1c3560; color:#fff; }
@keyframes insightSpin { to { transform:rotate(360deg); } }
@keyframes insightPrism { 0%,100% { transform:rotateX(58deg) rotateZ(45deg) translateY(0); } 50% { transform:rotateX(58deg) rotateZ(45deg) translateY(-8px); } }
@keyframes insightScan { 0%,100% { top:18%; opacity:0.2; } 50% { top:82%; opacity:1; } }
@keyframes insightFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes insightWordScan { 0%,100% { box-shadow:0 0 0 rgba(201,168,76,0); } 45%,55% { box-shadow:0 0 16px rgba(201,168,76,0.28); border-color:rgba(201,168,76,0.45); } }
@keyframes insightBar { from { width:0; } }
.live-trending-card { display:flex; gap:11px; align-items:flex-start; background:rgba(255,255,255,0.72); border:1px solid rgba(24,57,95,0.12); padding:10px; margin-bottom:9px; cursor:pointer; transition:transform 0.18s, border-color 0.18s; }
.live-trending-card:hover { transform:translateY(-2px); border-color:#c9a84c; }
.live-trending-thumb { width:96px; aspect-ratio:3/2; background:#eef3f7; border:1px solid rgba(24,57,95,0.12); flex-shrink:0; overflow:hidden; display:flex; align-items:center; justify-content:center; color:#7a8795; font-size:10px; font-weight:900; }
.live-trending-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.live-trending-title { font-family:'Playfair Display',serif; color:#10243a; font-size:14px; font-weight:700; line-height:1.25; }
.live-trending-meta { margin-top:4px; font-family:'Lato',sans-serif; font-size:9.5px; color:#7a8795; text-transform:uppercase; letter-spacing:0.06em; }
@media(max-width:560px){ .author-page-section { padding:24px 16px; } .author-page-hero { padding:22px; } .author-page-top { flex-direction:column; } .author-page-name { font-size:28px; } .author-page-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px){ .author-profile-top { flex-direction:column; } .author-profile-card { padding:18px; } }
@media(max-width:620px){
  .related-grid, .article-reading-list, .article-feed-grid { grid-template-columns:1fr; }
  .article-feed-grid:not(.expanded) .article-feed-card:nth-child(n+5),
  .article-feed-grid.expanded .article-feed-card:nth-child(n+5) { display:none; }
  .article-page-extension { padding:0 12px; margin-top:24px; }
  .article-feed-band,
  .article-end-panel { padding:22px 16px; }
  .article-end-head { grid-template-columns:1fr; gap:14px; }
  .article-feed-head { display:block; }
  .article-end-stats { min-width:0; width:100%; }
  .related-title { font-size:25px; }
  .article-inline-spotlight { padding:16px; }
  .article-inline-spotlight .spotlight-slide.spot-active { display:flex; flex-direction:column; min-height:0; gap:14px; padding:14px; }
  .article-inline-spotlight .spotlight-slide-img { max-width:none; }
  .article-cta-row { grid-template-columns:minmax(0,1fr); align-items:flex-start; padding:20px 16px; }
  .article-cta-row > div:first-child { min-width:0; }
  .article-cta-actions { width:100%; justify-content:flex-start; }
  .article-cta-btn { flex:1; min-width:128px; text-align:center; }
  .article-cta-title { font-size: clamp(12px, 4.9vw, 23px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .article-cta-copy { font-size: clamp(10px, 3.1vw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media(max-width:900px) {
  .related-grid, .compass-head, .compass-layout, .compass-panel-grid { grid-template-columns:1fr; }
  .live-home-section, .category-section { padding:16px; }
  .live-home-head { display:block; }
  .live-home-updated { margin-top:8px; white-space:normal; }
  .live-home-grid { grid-template-columns:1fr; }
  .notice-board-section { padding:32px 12px 30px; }
  .notice-board-head { display:block; margin-bottom:22px; }
  .notice-board-count { margin-top:8px; white-space:normal; }
  .notice-board-deck { min-height:360px; }
  .notice-board-card { width:min(64vw,280px); height:min(84vw,368px); }
  .notice-board-card.prev { transform:translateX(calc(-50% - 40vw)) scale(.78); opacity:1; }
  .notice-board-card.next { transform:translateX(calc(-50% + 40vw)) scale(.78); opacity:1; }
  .notice-board-card.far-prev { transform:translateX(calc(-50% - 66vw)) scale(.7); opacity:1; pointer-events:auto; }
  .notice-board-card.far-next { transform:translateX(calc(-50% + 66vw)) scale(.7); opacity:1; pointer-events:auto; }
  .notice-board-caption strong { font-size:16px; }
  .notice-board-nav { width:36px; height:36px; }
  .promo-home-preview-overlay { padding:10px; }
  .promo-home-preview-panel { width:100%; padding:16px 12px 14px; }
  .marketing-video-section { padding:12px; margin-bottom:28px; }
  .marketing-video-shell { grid-template-columns:1fr; gap:12px; }
  .marketing-video-copy { padding:2px 4px 4px; }
  .marketing-video-title { font-size:21px; }
  .marketing-video-sub { font-size:16px; margin-bottom:0; }
  .marketing-video-note { font-size:10.5px; margin-bottom:12px; }
  .live-knowledge-card { grid-template-columns:112px 1fr; }
  .live-knowledge-title { font-size:19px; }
  .research-intel-panel { min-height:680px; }
  .research-globe { right:-32%; top:42px; width:min(620px,126%); }
  .research-overlay {
    min-height:680px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    align-content:start;
  }
  .topic-card,
  .analytics-card,
  .discussion-card { grid-column:1; grid-row:auto; }
  .analytics-grid { grid-template-columns:1fr 1fr; }
  .research-globe-text { bottom:142px; }
  .research-pulse-panel { min-height:440px; }
  .research-pulse-head { display:block; }
  .research-pulse-badge { margin-top:12px; }
  .research-pulse-map { min-height:236px; }
  .pulse-orbit { width:min(310px,84vw); }
  .insight-engine-panel {
    min-height:auto;
    display:flex;
    flex-direction:column;
    margin: 0 -25px -25px;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
  }
  .insight-head { display:block; }
  .insight-time { display:inline-block; margin-top:10px; }
  .insight-stage { display:contents; }
  .insight-prism-wrap { order:2; min-height:210px; margin:8px 17px 13px; }
  .insight-copy-stack { order:5; padding:0 17px 13px; }
  .insight-footer { flex-wrap:wrap; }
  .insight-footer { order:3; }
  .insight-quote-card { order:4; }
  .insight-action { flex:1 1 150px; }
  .insight-footer { padding-top:0; }
  .insight-quote-card { margin-top:0; }
  .compass-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .compass-orbit { min-height:210px; }
}
@media(max-width:420px) {
  .research-intel-panel { min-height:760px; }
  .research-overlay { min-height:760px; padding:12px; }
  .analytics-grid { grid-template-columns:1fr; }
  .topic-row { grid-template-columns:30px 1fr; }
  .topic-growth { grid-column:2; justify-self:start; }
  .research-symbol { width:30px; height:30px; }
  .research-globe-text strong { font-size:24px; }
  .research-pulse-panel { min-height:520px; }
  .research-pulse-title { font-size:23px; }
  .research-pulse-footer { grid-template-columns:1fr; }
  .pulse-orbit { width:min(270px,82vw); }
  .pulse-node { min-width:72px; padding:7px; font-size:8px; }
  .pulse-node.law { left:-7%; }
  .pulse-node.vedic { right:-8%; }
  .pulse-core { width:96px; }
  .insight-title { font-size:24px; }
  .insight-stage { padding:0; }
  .insight-head, .insight-footer { padding-left:12px; padding-right:12px; }
  .insight-prism-wrap { margin-left:12px; margin-right:12px; }
  .insight-copy-stack { padding-left:12px; padding-right:12px; }
  .climate-row { grid-template-columns:82px 1fr 30px; }
}

/* -- SKELETON LOADING (fast perceived load) -- */
.skeleton { background:linear-gradient(90deg,var(--thumb-placeholder-bg) 25%,var(--thumb-placeholder-mid) 50%,var(--thumb-placeholder-bg) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:2px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* -- SEARCH ICON BUTTON in nav -- */
.search-wrap { position:relative; display:flex; align-items:center; }
.search-toggle-btn { background:none; border:none; color:#c5d2e0; font-size:0; cursor:pointer; padding:8px 10px; line-height:1; transition:color 0.2s; flex-shrink:0; display:flex; align-items:center; }
.search-toggle-btn svg { display:block; transition:stroke 0.2s; }
.search-toggle-btn:hover { color:var(--gold-light); }
.search-toggle-btn:hover svg { stroke:var(--gold-light); }

/* -- SEARCH POPUP OVERLAY -- */
#search-overlay {
  display:none; position:fixed; inset:0; z-index:2200;
  background:rgba(5,12,24,0.88);
  align-items:flex-start; justify-content:center;
  padding-top:clamp(60px, 12vh, 120px);
  animation:searchFadeIn 0.2s ease forwards;
  overscroll-behavior:none; touch-action:none;
}
#search-overlay.open { display:flex; }
@keyframes searchFadeIn { from{opacity:0} to{opacity:1} }

#search-popup-box {
  width:min(620px, calc(100vw - 32px));
  max-height:calc(100dvh - clamp(120px, 24vh, 240px));
  background:var(--navy-mid);
  border-top:3px solid var(--gold);
  box-shadow:0 16px 64px rgba(0,0,0,0.7);
  animation:searchSlideDown 0.22s cubic-bezier(.22,1,.36,1) forwards;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  touch-action:auto;
}
@keyframes searchSlideDown {
  from { transform:translateY(-16px); opacity:0.6; }
  to   { transform:translateY(0);     opacity:1; }
}

#search-popup-inner {
  display:flex; align-items:center; gap:0;
  border-bottom:1px solid rgba(255,255,255,0.1);
  flex-shrink:0;
  min-width:0;
}
#search-popup-inner svg { margin-left:16px; flex-shrink:0; opacity:0.5; }
#search-input {
  flex:1 1 auto; min-width:0; max-width:100%;
  padding:16px 14px; background:none; border:none;
  color:#dde4ee; font-family:'EB Garamond',serif; font-size:18px;
  outline:none; caret-color:#ffffff;
  overflow:hidden;
  text-overflow:ellipsis;
}
#search-input::placeholder { color:#4a6080; font-style:italic; }
#search-clear-btn {
  background:none; border:none; color:#5a7090; font-size:20px;
  cursor:pointer; padding:10px 16px; line-height:1; flex-shrink:0;
  transition:color 0.2s;
}
#search-clear-btn:hover { color:var(--gold-light); }

#search-dropdown {
  display:none; flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; touch-action:auto;
}
#search-dropdown.open { display:block; }
.search-item { display:flex; gap:12px; align-items:flex-start; padding:12px 16px; border-bottom:1px solid rgba(255,255,255,0.06); cursor:pointer; transition:background 0.15s; }
.search-item:last-child { border-bottom:none; }
.search-item:hover { background:rgba(184,150,62,0.15); }
.search-item-thumb { width:72px; aspect-ratio:3/2; flex-shrink:0; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); overflow:hidden; display:flex; align-items:center; justify-content:center; color:#5a7090; font-family:'Lato',sans-serif; font-size:10px; font-weight:800; }
.search-item-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.search-item-body { flex:1; min-width:0; max-width:100%; overflow:hidden; }
.search-item-title { font-family:'Playfair Display',serif; font-size:15px; color:#dde4ee; line-height:1.3; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
.search-item-meta { font-family:'Lato',sans-serif; font-size:10px; color:#5a7090; letter-spacing:0.08em; text-transform:uppercase; margin-top:3px; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
.search-item-snippet { font-family:'EB Garamond',serif; font-size:13px; color:#8fa4bf; line-height:1.4; margin-top:4px; max-width:100%; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; word-break:break-word; }
.search-item em { color:var(--gold-light); font-style:normal; background:rgba(184,150,62,0.18); padding:0 2px; overflow-wrap:anywhere; word-break:break-word; }
.search-no-results { padding:16px; font-family:'Lato',sans-serif; font-size:13px; color:#5a7090; text-align:center; font-style:italic; }
#search-popup-hint { flex-shrink:0; padding:10px 16px 12px; font-family:'Lato',sans-serif; font-size:10.5px; color:#3a5070; letter-spacing:0.06em; }
@media(max-width:560px) {
  #search-overlay { padding-top:28px; align-items:flex-start; }
  #search-popup-box { width:calc(100vw - 20px); max-height:calc(100dvh - 56px); }
  #search-input { font-size:16px; padding:14px 10px; }
  .search-item { padding:11px 12px; }
  .search-item-thumb { width:64px; }
}

/* -- LIKE BUTTON -- */
.article-actions { display:flex; align-items:center; gap:12px; margin-top:10px; }
.like-btn { background:none; border:1px solid var(--border); color:var(--text-muted); font-family:'Lato',sans-serif; font-size:11px; letter-spacing:0.05em; padding:5px 12px; cursor:pointer; transition:all 0.2s; display:inline-flex; align-items:center; gap:5px; border-radius:2px; }
.like-btn:hover { border-color:var(--gold); color:var(--gold); background:rgba(184,150,62,0.06); }
.like-btn.liked { background:rgba(184,150,62,0.12); border-color:var(--gold); color:var(--gold); }
.like-btn .like-icon { font-size:14px; transition:transform 0.18s; line-height:1; }
.like-btn:hover .like-icon, .like-btn.liked .like-icon { transform:scale(1.3) translateY(-1px); }
.like-btn .like-count { font-weight:700; font-size:12px; min-width:10px; text-align:center; transition:color 0.2s; }
.like-btn .like-label { font-size:10px; letter-spacing:0.08em; text-transform:uppercase; opacity:0.75; }
.compact-card-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:10px; }
.compact-card-actions .like-btn,
.compact-card-actions .share-btn { min-height:34px; width:auto; min-width:96px; justify-content:center; padding:6px 12px; flex:0 0 auto; }
.compact-card-actions .share-btn { margin-left:auto; text-decoration:none; }
@media (max-width:600px) {
  .compact-card-actions { gap:8px; }
  .compact-card-actions .like-btn,
  .compact-card-actions .share-btn { min-width:88px; padding:6px 10px; font-size:10px; }
}

/* -- SUBSCRIBE POP -- */
/* Subscribe pop - full overlay, centered on all screens */
#subscribe-pop-overlay { display:none; position:fixed; inset:0; z-index:1200; background:rgba(5,12,24,0.72); align-items:center; justify-content:center; padding:16px; }
#subscribe-pop-overlay.visible { display:flex; }
#subscribe-pop { background:var(--offwhite); box-shadow:0 16px 64px rgba(0,0,0,0.45); padding:24px 36px 20px; max-width:440px; width:100%; position:relative; opacity:0; transform:translateY(18px) scale(0.97); transition:transform 0.35s cubic-bezier(.22,1,.36,1), opacity 0.35s ease; touch-action:auto; }
#subscribe-pop-overlay.visible #subscribe-pop { opacity:1; transform:translateY(0) scale(1); }
#subscribe-pop .pop-close { position:absolute; top:12px; right:16px; background:none; border:none; font-size:22px; cursor:pointer; color:var(--text-muted); line-height:1; }
#subscribe-pop .pop-close:hover { color:var(--navy); }
#subscribe-pop .pop-close { position:absolute; top:10px; right:14px; background:none; border:none; font-size:20px; cursor:pointer; color:var(--text-muted); line-height:1; }
#subscribe-pop .pop-close:hover { color:var(--navy); }
.pop-kicker { font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); margin-bottom:6px; }
.pop-title { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; color:var(--navy); margin-bottom:8px; line-height:1.25; }
.pop-body { font-family:'EB Garamond',serif; font-size:15px; color:var(--text-secondary); margin-bottom:16px; }
.pop-row { display:flex; gap:8px; }
.pop-row input { flex:1; padding:8px 12px; border:1px solid var(--border); background:#fff; font-family:'EB Garamond',serif; font-size:15px; color:var(--text-primary); outline:none; }
.pop-row input:focus { border-color:var(--navy); }
.pop-row button { background:var(--navy); color:#fff; border:none; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:0 16px; cursor:pointer; transition:background 0.2s; white-space:nowrap; }
.pop-row button:hover { background:var(--navy-light); }

/* -- EDITORS SPOTLIGHT CAROUSEL -- */
#spotlight-section { margin-bottom:36px; padding-bottom:28px; border-bottom:2px solid var(--border); }
.spotlight-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; border-bottom:2px solid var(--gold); padding-bottom:8px; }
.spotlight-kicker { font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); }
.spotlight-title { font-family:'Playfair Display',serif; font-size:20px; font-weight:700; color:var(--navy); }
.spotlight-nav { display:flex; gap:6px; align-items:center; }
.spot-nav-btn { background:var(--navy); border:none; color:#c5d2e0; width:32px; height:32px; cursor:pointer; font-size:18px; line-height:1; transition:background 0.2s; border-radius:2px; }
.spot-nav-btn:hover { background:var(--gold); color:var(--navy); }
.spotlight-track-wrap { position:relative; overflow:hidden; transition:height 0.38s cubic-bezier(.22,1,.36,1); }
.spotlight-track { display:block; position:relative; height:100%; }
.spotlight-slide {
  position:absolute; top:0; left:0; width:100%; height:100%; box-sizing:border-box;
  display:flex; flex-direction:row; gap:22px; padding:16px 4px 4px; align-items:flex-start;
  opacity:0; pointer-events:none;
  transform:translateX(40px);
  transition:opacity 0.38s ease, transform 0.38s cubic-bezier(.22,1,.36,1);
}
.spotlight-slide.spot-active {
  position:relative; opacity:1; pointer-events:auto; transform:translateX(0);
}
.spotlight-slide.spot-exit-left  { transform:translateX(-40px); opacity:0; pointer-events:none; }
.spotlight-slide.spot-exit-right { transform:translateX(40px);  opacity:0; pointer-events:none; }
.spotlight-slide-img { width:220px; aspect-ratio:3/2; overflow:hidden; border:2px solid var(--gold); flex-shrink:0; cursor:pointer; border-radius:1px; background:var(--thumb-placeholder-bg); }
.spotlight-slide-img img { width:100%; height:100%; object-fit:cover; object-position:top center; transform-origin:top center; transition:transform 0.35s ease; }
.spotlight-slide-img:hover img { transform:scale(1.04); }
.spotlight-slide-body { flex:1; min-width:0; }
.spotlight-badge { background:var(--gold); color:var(--navy); font-family:'Lato',sans-serif; font-size:9px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; padding:4px 10px; display:inline-block; margin-bottom:10px; }
.spotlight-paper-title { font-family:'Playfair Display',serif; font-size:clamp(16px,2.5vw,22px); font-weight:700; color:var(--navy); line-height:1.28; margin-bottom:8px; cursor:pointer; }
.spotlight-paper-title:hover { text-decoration:underline; text-decoration-color:var(--gold); }
.spotlight-next-tease { display:none; }
.spotlight-excerpt {
  font-family:'EB Garamond',serif; font-size:15px; color:var(--text-secondary);
  line-height:1.62; margin:0 0 6px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.spotlight-excerpt.expanded { display:block; overflow:visible; -webkit-line-clamp:unset; }
.spot-expand-btn {
  background:none; border:none; padding:0 0 10px; cursor:pointer;
  font-family:'Lato',sans-serif; font-size:10px; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--navy-light);
  display:inline-flex; align-items:center; gap:4px; transition:color 0.18s;
}
.spot-expand-btn:hover { color:var(--gold); }
.spotlight-share-icon-btn {
  width:34px;
  min-width:34px !important;
  height:34px;
  padding:0 !important;
  border:0;
  background:transparent;
  color:var(--navy);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}
.spotlight-share-icon-btn:hover {
  color:var(--gold);
  background:transparent;
  border-color:transparent;
  transform:translateY(-1px);
}
.spotlight-share-icon-btn svg {
  width:32px;
  height:24px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.spotlight-dots { display:flex; gap:6px; margin-top:16px; align-items:center; }
.spot-dot { width:8px; height:8px; background:var(--border); border:none; cursor:pointer; transition:background 0.2s, width 0.2s; padding:0; border-radius:1px; }
.spot-dot.active { background:var(--gold); width:22px; }
.spot-counter { font-family:'Lato',sans-serif; font-size:10px; color:var(--text-muted); letter-spacing:0.08em; margin-left:auto; }
#spotlight-section {
  position:relative; padding:22px; border:none; border-top:4px solid var(--gold);
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 54%,#f7f1df 100%);
  box-shadow:0 10px 32px rgba(10,22,40,0.06);
  border-radius:12px;
}
#spotlight-section .spotlight-header { border-bottom:1px solid rgba(184,150,62,0.55); }
#spotlight-section .spotlight-slide { padding:18px 2px 2px; }
#spotlight-section .spotlight-slide-img { border:1px solid #c9a84c; box-shadow:0 10px 26px rgba(10,22,40,0.12); }
@media(max-width:600px) {
  .spotlight-slide { flex-direction:column; gap:14px; padding:10px 2px 4px; }
  .spotlight-slide-img { width:100%; height:auto; aspect-ratio:3/2; }
  .spotlight-slide-img img { width:100%; height:100%; object-fit:cover; object-position:top center; transform-origin:top center; }
  .spotlight-paper-title { font-size:clamp(15px,4vw,20px); }
  #spotlight-section { padding:16px; }
  .spotlight-track-wrap { touch-action:pan-y; }
  .spotlight-next-tease {
    display:none; margin-top:12px; padding:10px 11px; border:1px solid rgba(201,168,76,0.42);
    background:rgba(255,255,255,0.62); cursor:pointer;
  }
  .spotlight-next-label { font-family:'Lato',sans-serif; font-size:8.5px; font-weight:900; letter-spacing:0.16em; text-transform:uppercase; color:#9b7a25; margin-bottom:4px; }
  .spotlight-next-title { font-family:'Playfair Display',serif; font-size:14px; font-weight:700; line-height:1.22; color:var(--navy); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
}

/* -- HOVER FOOTNOTE -- */
.fn-ref { color:var(--navy-light); text-decoration:none; font-size:0.75em; vertical-align:super; cursor:pointer; position:relative; }
.fn-popup { display:none; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:var(--navy); color:#c5d2e0; font-family:'EB Garamond',serif; font-size:14px; line-height:1.5; padding:10px 14px; border:1px solid var(--gold); width:260px; z-index:800; pointer-events:none; box-shadow:0 4px 20px rgba(0,0,0,0.4); }
.fn-popup::after { content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:6px solid transparent; border-top-color:var(--gold); }
.fn-ref:hover .fn-popup { display:block; }

/* ABOUT */
.about-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.85); z-index:999; overflow-y:auto; padding:32px 16px; }
.about-overlay.open { display:flex; justify-content:center; align-items:flex-start; }
.about-box { background:var(--offwhite); max-width:var(--document-frame); width:100%; padding:52px 64px 56px; position:relative; margin:0 auto; border-top:4px solid var(--gold); }
.about-kicker { font-family:'Lato',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:0.22em; text-transform:uppercase; color:var(--gold); margin-bottom:12px; }
.about-title { font-family:'Cinzel',serif; font-size:clamp(18px,2.8vw,28px); font-weight:700; color:var(--navy); line-height:1.25; margin-bottom:6px; letter-spacing:0.04em; }
.about-rule { border:none; border-top:2px solid var(--navy); margin:18px 0 22px; }
.about-body { font-family:'EB Garamond',serif; font-size:17.5px; line-height:1.82; color:var(--text-secondary); }
.about-body p { margin-bottom:18px; }
.about-section-head { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; color:var(--navy); margin:28px 0 12px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.about-vertical { margin-bottom:18px; padding-left:18px; border-left:3px solid var(--gold); }
.about-vertical-name { font-family:'Playfair Display',serif; font-size:16px; font-weight:700; color:var(--navy); margin-bottom:5px; }
.about-offer-item { display:flex; gap:10px; margin-bottom:10px; font-family:'EB Garamond',serif; font-size:16.5px; color:var(--text-secondary); line-height:1.6; }
.about-offer-dot { color:var(--gold); font-size:20px; line-height:1.5; flex-shrink:0; }
.about-divider { border:none; border-top:2px double var(--border); margin:36px 0 32px; }
.intellector-label { font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.25em; text-transform:uppercase; color:var(--gold); margin-bottom:4px; }
.intellector-name { font-family:'Cinzel',serif; font-size:clamp(16px,2.2vw,22px); font-weight:700; color:var(--navy); letter-spacing:0.06em; margin-bottom:8px; }
.intellector-degrees { font-family:'Lato',sans-serif; font-size:11px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; color:#6b5a2a; line-height:1.55; margin-bottom:14px; }
.intellector-detail { font-family:'EB Garamond',serif; font-size:16px; color:var(--text-secondary); line-height:1.5; }
.intellector-detail strong { font-weight:600; color:var(--navy); }

/* SUBSCRIBERS */
.subs-toggle { font-family:'Lato',sans-serif; font-size:11px; color:var(--text-muted); cursor:pointer; text-decoration:underline; margin-top:18px; display:block; text-align:center; }
.subs-toggle-btn { flex:1; min-width:120px; background:var(--navy); color:var(--gold-light); border:1px solid var(--gold); font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:7px 14px; cursor:pointer; transition:background 0.2s; text-align:center; }
.subs-toggle-btn:hover { background:var(--navy-light); }

.support-paypal-btn {
  display:inline-flex; align-items:center; gap:9px; margin-top:6px;
  background:#003087; color:#fff; font-family:'Lato',sans-serif; font-size:12px;
  font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  padding:9px 20px; text-decoration:none;
}
.support-upi-block {
  background:var(--cream); border:1px solid var(--border); padding:20px 24px; margin-bottom:20px;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(132px,180px); gap:24px; align-items:start;
}
.support-upi-id { overflow-wrap:anywhere; word-break:break-word; }
.support-qr-wrap { text-align:center; justify-self:center; max-width:100%; }
.support-qr-wrap img {
  width:min(180px,42vw); max-width:100%; height:auto; aspect-ratio:1/1; object-fit:contain;
  border:2px solid var(--border); background:#fff; padding:6px; display:block;
}
@media(max-width:560px) {
  .support-upi-block { grid-template-columns:1fr; gap:16px; padding:18px 16px; }
  .support-qr-wrap img { width:min(190px,70vw); margin:0 auto; }
}
.subs-panel { display:none; margin-top:16px; border-top:1px solid var(--border); padding-top:14px; }
.subs-panel.open { display:block; }
.subs-panel h4 { font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-secondary); margin-bottom:10px; }
.sub-item { font-family:'EB Garamond',serif; font-size:14px; color:var(--text-secondary); padding:5px 0; border-bottom:1px solid var(--border-light); display:flex; justify-content:space-between; align-items:center; }
.sub-remove-btn { background:none; border:1px solid #b91c1c; color:#b91c1c; font-family:'Lato',sans-serif; font-size:9px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; padding:3px 8px; cursor:pointer; border-radius:1px; flex-shrink:0; transition:background 0.18s,color 0.18s; }
.sub-remove-btn:hover { background:#b91c1c; color:#fff; }

/* -- MESSAGE SUBSCRIBERS MODAL -- */
html.msg-scroll-locked, body.msg-scroll-locked { overflow:hidden !important; overscroll-behavior:none; }
.msg-sub-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.88); z-index:1200; align-items:center; justify-content:center; padding:16px; }
.msg-sub-overlay.open { display:flex; overflow:hidden; }
.msg-sub-box { background:var(--offwhite); max-width:var(--document-frame); width:100%; padding:38px 48px 42px; border-top:4px solid var(--gold); position:relative; animation:modalSlideIn 0.28s cubic-bezier(.22,1,.36,1) both; max-height:90vh; overflow:hidden; display:flex; flex-direction:column; }
@media(max-width:600px){ .msg-sub-box { padding:22px 18px 28px; } }
.msg-sub-title { font-family:'Playfair Display',serif; font-size:20px; font-weight:700; color:var(--navy); margin-bottom:4px; }
.msg-sub-sub { font-family:'Lato',sans-serif; font-size:11px; color:var(--text-muted); margin-bottom:20px; }
.msg-sub-content { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-right:4px; }
.msg-sub-row { margin-bottom:14px; }
.msg-sub-row label { display:block; font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-secondary); margin-bottom:6px; }
.msg-sub-row input, .msg-sub-row textarea { width:100%; padding:9px 12px; border:1px solid var(--border); background:#fff; font-family:'EB Garamond',serif; font-size:15px; color:var(--text-primary); outline:none; transition:border-color 0.2s; }
.msg-sub-row input:focus, .msg-sub-row textarea:focus { border-color:var(--navy); }
.msg-sub-row textarea { height:140px; resize:vertical; }
.msg-mode-row { display:flex; gap:8px; margin-bottom:18px; }
.msg-mode-btn { flex:1; padding:9px 10px; border:1px solid var(--border); background:#fff; font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-secondary); cursor:pointer; transition:all 0.18s; text-align:center; }
.msg-mode-btn.selected { background:var(--navy); color:#fff; border-color:var(--navy); }
.msg-mode-btn:hover:not(.selected) { border-color:var(--navy); color:var(--navy); }
.msg-select-list { border:1px solid var(--border); background:#fff; max-height:252px; overflow-y:auto; padding:6px 0; margin-bottom:14px; display:none; }
.msg-select-list.visible { display:block; }
.msg-select-item { display:flex; align-items:center; gap:8px; min-height:40px; padding:6px 12px; cursor:pointer; transition:background 0.15s; box-sizing:border-box; }
.msg-select-item:hover { background:var(--cream); }
.msg-select-item input[type=checkbox] { width:14px; height:14px; accent-color:var(--navy); flex-shrink:0; cursor:pointer; }
.msg-select-item label { font-family:'EB Garamond',serif; font-size:14px; color:var(--text-secondary); cursor:pointer; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msg-other-list { display:none; margin-bottom:14px; }
.msg-other-list.visible { display:block; }
.msg-other-fields {
  max-height:clamp(148px, 32vh, 360px);
  overflow-y:auto;
  padding-right:4px;
  margin-bottom:8px;
  overscroll-behavior:contain;
}
.msg-other-field { display:grid; grid-template-columns:minmax(0,1fr) 34px; gap:8px; margin-bottom:8px; }
.msg-other-field input { width:100%; min-width:0; box-sizing:border-box; padding:9px 12px; border:1px solid var(--border); background:#fff; font-family:'EB Garamond',serif; font-size:15px; color:var(--text-primary); outline:none; transition:border-color 0.2s; }
.msg-other-field input:focus { border-color:var(--navy); }
.msg-other-remove { border:1px solid #b91c1c; background:#fff; color:#b91c1c; font-family:'Lato',sans-serif; font-size:16px; font-weight:700; cursor:pointer; }
.msg-other-remove:hover { background:#b91c1c; color:#fff; }
.msg-add-email-btn { border:1px solid var(--navy); background:#fff; color:var(--navy); font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:8px 12px; cursor:pointer; width:100%; }
.msg-add-email-btn:hover { background:var(--cream); }
.msg-send-btn { background:var(--navy); color:var(--gold-light); border:1px solid var(--gold); font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; padding:12px 28px; cursor:pointer; width:100%; transition:background 0.2s; margin-top:4px; }
.msg-send-btn:hover { background:var(--navy-light); }
.msg-send-btn:disabled { opacity:0.5; cursor:not-allowed; }
.msg-status { font-family:'Lato',sans-serif; font-size:12px; margin-top:10px; min-height:16px; color:var(--text-muted); }
.msg-status.ok { color:#27500a; }
.msg-status.err { color:#a32d2d; }
.msg-attachment-box { border:1px solid var(--border); background:#fff; padding:12px; margin-bottom:14px; }
.msg-attachment-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.msg-attach-btn { border:1px solid var(--navy); background:#fff; color:var(--navy); font-family:'Lato',sans-serif; font-size:10px; font-weight:800; letter-spacing:0.1em; text-transform:uppercase; padding:9px 12px; cursor:pointer; }
.msg-attach-btn:hover { background:var(--cream); }
.msg-attachment-note { font-family:'Lato',sans-serif; font-size:10.5px; color:var(--text-muted); line-height:1.45; margin-top:8px; }
.msg-attachment-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:8px; margin-top:10px; }
.msg-attachment-item { border:1px solid var(--border); background:var(--cream); min-width:0; }
.msg-attachment-item img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; border-bottom:1px solid var(--border); }
.msg-attachment-file { width:100%; aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; border-bottom:1px solid var(--border); background:#fff; color:var(--navy); font-family:'Lato',sans-serif; font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.msg-attachment-meta { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:6px 7px; font-family:'Lato',sans-serif; font-size:10px; color:var(--text-secondary); }
.msg-attachment-meta span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msg-attachment-meta button { border:0; background:transparent; color:#a32d2d; cursor:pointer; font-weight:900; }

.promo-mode-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 16px; }
.promo-mode-btn { border:1px solid var(--border); background:#fff; color:var(--text-secondary); min-height:42px; font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.12em; text-transform:uppercase; cursor:pointer; }
.promo-mode-btn.selected { background:var(--navy); border-color:var(--gold); color:var(--gold-light); }
.promo-pane { display:none; }
.promo-pane.active { display:block; }
.promo-image-drop { border:1px dashed var(--border); background:#fff; padding:16px; margin-bottom:14px; text-align:center; }
.promo-image-list { display:grid; gap:12px; margin:14px 0; }
.promo-image-item { border:1px solid var(--border); background:#fff; padding:12px; display:grid; grid-template-columns:160px minmax(0,1fr); gap:12px; align-items:start; }
.promo-image-thumb { width:160px; aspect-ratio:16/10; overflow:hidden; background:#07111d; border:1px solid var(--border); }
.promo-image-thumb img { width:100%; height:100%; display:block; }
.promo-image-fields { min-width:0; display:grid; gap:9px; }
.promo-image-fields input[type="text"] { width:100%; border:1px solid var(--border); padding:8px 10px; font-family:'EB Garamond',serif; font-size:15px; }
.promo-image-control-row { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.promo-image-control-row label { display:flex; align-items:center; gap:7px; flex:1 1 180px; font-family:'Lato',sans-serif; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-secondary); }
.promo-image-control-row input[type="range"] { flex:1; min-width:80px; accent-color:var(--navy); }
.promo-image-mini-btn { border:1px solid var(--border); background:#fff; color:var(--text-secondary); font-family:'Lato',sans-serif; font-size:9px; font-weight:900; letter-spacing:0.09em; text-transform:uppercase; padding:7px 9px; cursor:pointer; }
.promo-image-mini-btn.selected { background:var(--navy); color:var(--gold-light); border-color:var(--gold); }
.promo-image-mini-btn.danger { color:#a32d2d; border-color:#d6a4a4; }
.promo-image-preview { margin-top:14px; }
.promo-image-preview .notice-board-section { margin:0; }
.promo-image-status { font-family:'Lato',sans-serif; font-size:11px; color:var(--text-muted); margin-top:10px; min-height:16px; }

  /* Hamburger: hidden on desktop, shown on mobile via media query */
  .hamburger { display:none; background:none; border:none; color:#c5d2e0; font-size:26px; cursor:pointer; padding:8px 14px; line-height:1; flex-shrink:0; }
  .ham-icon  { display:flex; align-items:center; justify-content:center; transition:opacity 0.18s ease, transform 0.22s ease; }
  .ham-close { display:flex; align-items:center; justify-content:center; position:absolute; transition:opacity 0.18s ease, transform 0.22s ease; opacity:0; transform:rotate(-90deg) scale(0.7); pointer-events:none; }
  .hamburger { position:relative; }
  .hamburger.ham-open .ham-icon  { opacity:0; transform:rotate(90deg) scale(0.7); }
  .hamburger.ham-open .ham-close { opacity:1; transform:rotate(0deg) scale(1); pointer-events:auto; }
  .hamburger:hover { color:#fff; }

  @media (max-width:900px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-main { padding-right:0; border-right:none; border-bottom:1px solid var(--border); padding-bottom:20px; margin-bottom:20px; }
  .hero-sidebar { padding-left:0; }
  .articles-row { grid-template-columns:1fr; gap:14px; }
  .article-card { min-height:auto; width:100%; transform:none; }
  .card-thumb-wrap { aspect-ratio:16/9; margin-bottom:10px; }
  .card-headline { font-size:16.5px; line-height:1.25; -webkit-line-clamp:3; }
  .card-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13px; line-height:1.55; }
  .card-meta { font-size:11px; }
  .modal-box { padding:22px 16px 28px; }
  .upload-box { padding:20px 16px; }
  .about-box { padding:22px 16px 28px; }
  footer { padding:34px 28px 22px; }
  .footer-top { grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:26px; row-gap:24px; align-items:start; }
  .footer-brand-block { grid-column:1 / -1; }
  .footer-col a { margin-bottom:10px; line-height:1.35; }
  .footer-bottom { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
  .footer-bottom > p:first-child { flex:1 1 auto; min-width:0; line-height:1.45; }
  .footer-status { flex:0 0 auto; justify-content:flex-end; gap:8px; text-align:right; }
  .footer-status-divider { display:none; }
  .topbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    padding:4px 10px;
    font-size:8.5px;
    letter-spacing:0.08em;
    border-top:1px solid rgba(212,175,106,0.55);
    border-bottom:1px solid rgba(212,175,106,0.55);
  }
  .topbar-place { letter-spacing:0.1em; }
  .topbar-visitor { gap:4px; }
  .topbar-visitor-icon { display:none; }
  .hamburger { display:block !important; }
  .nav-inner { position:relative; flex-wrap:nowrap; }
  .nav-links {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    background:var(--navy-mid);
    border-top:2px solid var(--gold);
    width:100%;
    z-index:500;
  }
  .nav-links.mob-open { display:flex; }
  .nav-links a { padding:13px 20px; border-bottom:1px solid rgba(255,255,255,0.07); border-bottom-color:rgba(255,255,255,0.07); white-space:normal; }
  /* Join/login boxes full width on mobile — handled by join-overlay CSS */
  .login-box { width:calc(100vw - 48px); max-width:360px; padding:28px 24px 24px; }
  /* Article cards row: 2 column on tablet */
  }
  @media (max-width:420px) {
  .articles-row { grid-template-columns:1fr; gap:14px; }
  .card-thumb-wrap { margin-bottom:10px; }
  .card-cat { font-size:9px; letter-spacing:0.1em; margin-bottom:6px; }
  .card-headline { font-size:16.5px; line-height:1.28; }
  .card-meta { display:block; }
  footer { padding-left:24px; padding-right:24px; }
  .footer-top { column-gap:20px; }
  .footer-col h4 { margin-bottom:12px; }
  .footer-status { align-items:center; }
  }

  /* -- POLICY MODAL -- */
  .policy-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.85); z-index:1002; overflow-y:auto; padding:32px 16px; }
  .policy-overlay.open { display:flex; justify-content:center; align-items:flex-start; }
  .policy-box { background:var(--offwhite); max-width:var(--document-frame); width:100%; padding:48px 64px 52px; position:relative; margin:0 auto; border-top:4px solid var(--gold); }
  .policy-kicker { font-family:'Lato',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:0.22em; text-transform:uppercase; color:var(--gold); margin-bottom:12px; }
  .policy-title { font-family:'Cinzel',serif; font-size:clamp(18px,2.8vw,26px); font-weight:700; color:var(--navy); line-height:1.25; margin-bottom:18px; letter-spacing:0.04em; }
  .policy-rule { border:none; border-top:2px solid var(--navy); margin-bottom:24px; }
  .policy-body { font-family:'EB Garamond',serif; font-size:17px; line-height:1.85; color:var(--text-secondary); }
  .policy-body h3 { font-family:'Playfair Display',serif; font-size:17px; font-weight:700; color:var(--navy); margin:24px 0 8px; }
  .policy-body p { margin-bottom:14px; }
  .policy-body ul { margin:0 0 14px 20px; }
  .policy-body ul li { margin-bottom:6px; }
  .contact-block { background:var(--cream); border:1px solid var(--border); padding:24px 28px; margin-top:20px; }
  .contact-email { font-family:'Cinzel',serif; font-size:16px; font-weight:600; color:var(--navy); letter-spacing:0.04em; margin-top:8px; }
  .contact-email a { color:var(--navy-light); text-decoration:none; overflow-wrap:anywhere; word-break:break-word; }
  .contact-email a:hover { color:var(--gold); text-decoration:underline; }

/* -- CROSS-DEVICE RESPONSIVE POLISH -- */
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color:rgba(184,150,62,0.18); }
img, iframe, canvas, video { max-width:100%; }
@supports (height: 100dvh) {
  .modal-overlay.open, .upload-overlay.open, .submit-overlay.open, .review-detail-overlay.open,
  .policy-overlay.open, .about-overlay.open { min-height:100dvh; }
}
@media(max-width:640px) {
  body { overflow-x:hidden; }
  .site-wrap { padding:0 12px; }
  .modal-overlay { padding:0; align-items:stretch; }
  .modal-box {
    width:100%; min-height:100vh; max-height:none; margin:0; border-top-width:3px;
    padding:22px 14px 32px; overflow-x:hidden;
  }
  @supports (height: 100dvh) { .modal-box { min-height:100dvh; } }
  .modal-title { font-size:clamp(22px,7vw,32px); line-height:1.14; overflow-wrap:anywhere; }
  .modal-byline { line-height:1.5; }
  .modal-toolbar { gap:6px; overflow-x:auto; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
  .modal-toolbar.download-open { overflow:visible !important; }
  .modal-tool-btn { min-height:34px; white-space:nowrap; }
  .modal-nav-row { gap:8px; }
  .modal-nav-btn { flex:1; min-height:38px; }
  .modal-content { font-size:17px; line-height:1.72; overflow-wrap:anywhere; }
  .modal-img { width:100%; height:auto; }
  .modal-mobile-actions {
    display:block;
    margin:14px 0 18px; padding:12px 0 14px; border-top:1px solid var(--border-light);
    border-bottom:1px solid var(--border-light);
  }
  .modal-mobile-actions .share-row { justify-content:flex-start; }
  #modal-bottom-actions { display:none !important; }
  .share-row { width:100%; gap:6px; }
  .share-btn { justify-content:center; min-height:34px; padding:7px 8px; }
  .article-action-top { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .share-services-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .article-download-menu { right:0; left:auto; }
  .article-page-section { padding:22px 0 34px; }
  .article-page-shell { padding:0 12px; }
  .article-page-card { padding:22px 14px 26px; }
  .article-page-card .article-action-top { grid-template-columns:1fr; }
  .article-page-card .share-services-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .author-profile-card { margin-top:22px; padding:20px 16px; }
  .author-profile-top { gap:14px; }
  .author-profile-photo { width:76px; height:76px; }
  .author-profile-name { font-size:23px; overflow-wrap:anywhere; }
  .author-profile-actions { align-items:stretch; }
  .author-profile-stats, .author-page-stats { grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; overflow:visible; padding-bottom:0; }
  .author-profile-stat, .author-page-stat { padding:8px 3px; min-width:0; }
  .author-profile-stat strong, .author-page-stat strong { font-size:15px; }
  .author-profile-stat span, .author-page-stat span { font-size:7px; letter-spacing:0.04em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .author-profile-link { width:100%; }
  .author-page-section { padding:18px 0 28px; }
  .author-page-hero { padding:22px 16px; }
  .author-page-photo { width:98px; height:98px; }
  .author-page-name { font-size:28px; overflow-wrap:anywhere; }
  .related-grid { grid-template-columns:1fr; }
  .related-card { min-height:84px; }
  .author-dashboard-section { padding:18px 14px; }
  .compass-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .upload-box, .submit-box, .review-detail-box, .policy-box, .about-box {
    width:100%; max-width:100%; margin:0; padding-left:16px; padding-right:16px;
  }
  .review-detail-overlay.open, .submit-overlay.open, .upload-overlay.open { padding:0; }
  .review-detail-box, .submit-box, .upload-box { min-height:100vh; }
  @supports (height:100dvh) { .review-detail-box, .submit-box, .upload-box { min-height:100dvh; } }
  .form-row input, .form-row select, .form-row textarea,
  .review-field input, .review-field select, .review-field textarea {
    font-size:16px; min-height:42px;
  }
}
@media(max-width:380px) {
  .author-profile-stats, .author-page-stats { gap:4px; }
  .author-profile-stat, .author-page-stat { padding:7px 2px; }
  .author-profile-stat strong, .author-page-stat strong { font-size:14px; }
  .author-profile-stat span, .author-page-stat span { font-size:6.5px; }
  .modal-toolbar { gap:5px; }
  .share-btn { font-size:9px; letter-spacing:0.07em; }
  .share-services-row .share-btn { font-size:8px; letter-spacing:0.03em; padding:6px 3px; }
  .author-profile-photo { width:68px; height:68px; }
  .related-thumb, .article-reading-thumb, .editor-published-thumb { width:88px; }
}

  /* -- AUTHOR OWNERSHIP TOGGLE -- */
.author-ownership { display:flex; gap:10px; margin-bottom:16px; }
.ownership-btn { flex:1; padding:9px 12px; border:1px solid var(--border); background:#fff; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); cursor:pointer; transition:all 0.18s; text-align:center; }
.ownership-btn.selected { background:var(--navy); color:#fff; border-color:var(--navy); }
.ownership-btn:hover:not(.selected) { border-color:var(--navy); color:var(--navy); }
.upload-mode-row { display:flex; gap:10px; margin-bottom:14px; }
.upload-mode-btn { flex:1; padding:9px 12px; border:1px solid var(--border); background:#fff; font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-secondary); cursor:pointer; transition:all 0.2s; }
.upload-mode-btn.selected { background:var(--navy); color:#fff; border-color:var(--navy); }
.upload-mode-btn:hover:not(.selected) { border-color:var(--navy); color:var(--navy); }
body.dark-mode .ownership-btn { background:#0a1520; color:var(--text-muted); border-color:var(--border); }
body.dark-mode .ownership-btn.selected { background:#1c3560; color:#c8d8ea; border-color:#1c3560; }

/* -- SILENT PUBLISH CHECKBOX -- */
.silent-row { display:flex; align-items:center; gap:9px; margin-bottom:16px; padding:10px 13px; background:var(--cream); border:1px solid var(--border-light); cursor:pointer; user-select:none; }
.silent-row input[type=checkbox] { width:15px; height:15px; accent-color:var(--navy); cursor:pointer; flex-shrink:0; }
.silent-row label { font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-secondary); cursor:pointer; }
.silent-row .silent-note { font-family:'EB Garamond',serif; font-size:13px; color:var(--text-muted); font-style:italic; }
body.dark-mode .silent-row { background:var(--cream-dark); border-color:var(--border); }
body.dark-mode .silent-row label { color:var(--text-secondary); }

  /* Delete article button */
  .del-art-btn { display:none; margin-top:22px; background:#b91c1c; color:#fff; border:none; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:9px 18px; cursor:pointer; transition:background 0.2s; }
  .del-art-btn:hover { background:#991b1b; }
  .del-art-btn:disabled { opacity:0.5; cursor:not-allowed; }
  /* Edit article button */
  .edit-art-btn { display:none; margin-top:22px; background:var(--navy); color:#fff; border:none; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:9px 18px; cursor:pointer; transition:background 0.2s; }
  .edit-art-btn:hover { background:var(--navy-light); }
  .edit-art-btn:disabled { opacity:0.5; cursor:not-allowed; }
  .modal-editor-actions { display:none; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-top:10px; margin-top:10px; border-top:1px solid var(--border-light); }
  .modal-editor-actions.visible { display:grid; }
  .modal-editor-actions .edit-art-btn, .modal-editor-actions .del-art-btn { display:inline-flex !important; width:100%; margin-top:0; align-items:center; justify-content:center; }
  .cat-show-more-btn { background:var(--navy); color:#c5d2e0; border:1px solid rgba(255,255,255,0.15); font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:10px 24px; cursor:pointer; transition:background 0.2s,color 0.2s; border-radius:1px; }
  .cat-show-more-btn:hover { background:var(--gold); color:var(--navy); border-color:var(--gold); }

  @media (min-width:769px) { .nav-links { display:flex !important; overflow-x:auto; } .hamburger, #main-nav .hamburger { display:none !important; } /* desktop */ }

/* -- PERFORMANCE & UX UPGRADES -- */

/* GPU layers for sticky/fixed elements */
#main-nav { will-change: transform; transform: translateZ(0); }
#mode-bar { will-change: transform; }
#subscribe-pop { will-change: transform, opacity; }

/* Avoid scroll-time paint/compositing delays on article grids. */
.articles-row { contain: none; }
.category-section {
  contain-intrinsic-size: auto 600px;
  content-visibility: auto;
}
.hero-section {
  contain: none;
}

/* Smooth card image fade-in via IntersectionObserver (replaces load event) */
.card-thumb-wrap { overflow:hidden; }
.card-thumb-wrap img {
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.3s ease;
  will-change: auto;
  transform: scale(1.03);
  transform-origin: top center;
  object-position: top center;
  object-fit: cover;
}
.card-thumb-wrap img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Article card - polished hover with GPU-composited lift */
.article-card {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.25,.46,.45,.94), box-shadow 0.22s ease;
  will-change: auto;
  border-radius: 1px;
}
.article-card:hover {
  will-change: transform;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10,22,40,0.12);
}
.article-card:hover .card-thumb-wrap img { transform: scale(1.04); }

/* Hero headline smoother underline */
.hero-headline {
  text-decoration: none;
}
.hero-headline:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

/* Sidebar article hover transition */
.sidebar-article {
  transition: background 0.18s, padding-left 0.18s;
  border-radius: 1px;
}
.sidebar-article:hover { background: rgba(184,150,62,0.05); padding-left: 6px; }

/* Modal open/close animations */
.modal-overlay { transition: opacity 0.22s ease; }
.modal-overlay.open { animation: fadeInOverlay 0.22s ease forwards; }
@keyframes fadeInOverlay { from { opacity:0; } to { opacity:1; } }

.modal-box {
  animation: slideUpModal 0.28s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes slideUpModal {
  from { transform: translateY(18px); opacity: 0.6; }
  to   { transform: translateY(0);    opacity: 1;   }
}

/* Search input active state */
.search-wrap.open #search-input { caret-color: #ffffff; }

/* Smooth like button pulse */
.like-btn { transition: all 0.18s cubic-bezier(.25,.46,.45,.94); }
.like-btn .like-icon { display:inline-block; transition: transform 0.22s cubic-bezier(.34,1.56,.64,1); }
.like-btn:hover .like-icon, .like-btn.liked .like-icon { transform: scale(1.35) translateY(-1px); }

/* Nav links transition */
.nav-links a { transition: color 0.18s, border-color 0.18s; }

/* Scroll-fade-in for sections - via IntersectionObserver in JS */
.reveal-on-scroll {
  opacity: 0;
  transform: none;
  transition: opacity 0.32s ease;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Final dark-mode contrast pass for rare inline links and text links. */
body.dark-mode a,
body.dark-mode button.linklike {
  color:#cfe1f5;
}
body.dark-mode a:hover,
body.dark-mode button.linklike:hover {
  color:var(--gold-light);
}
body.dark-mode .footer-col a,
body.dark-mode footer a,
body.dark-mode .policy-body a,
body.dark-mode .contact-email a,
body.dark-mode .article-reading-list a,
body.dark-mode .author-page-list a,
body.dark-mode .author-article-list a,
body.dark-mode .related-card a {
  color:#d7e7f8;
}
body.dark-mode .card-headline,
body.dark-mode .hero-headline,
body.dark-mode .sidebar-headline,
body.dark-mode .search-item-title,
body.dark-mode .modal-author-link {
  color:#d7e7f8;
}
body.dark-mode .card-meta,
body.dark-mode .sidebar-meta,
body.dark-mode .search-item-meta,
body.dark-mode .related-card-meta,
body.dark-mode .live-trending-meta,
body.dark-mode .live-feed-meta {
  color:#8fa8c0;
}

/* Ticker marquee for long text */
.ticker-inner { overflow: hidden; }
.ticker-text-inner {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.ticker-text:hover .ticker-text-inner,
.ticker-text:focus-within .ticker-text-inner { animation-play-state:paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Smooth spotlight transition */
.spotlight-track { will-change: auto; }

/* Focus-visible for accessibility */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* -- DEV CREDIT BAR -- */
.dev-credit {
  background:#050e1a;
  color:#2e4a62;
  font-family:'Lato',sans-serif;
  font-size:clamp(6px, 1.8vw, 10px);
  font-weight:400;
  letter-spacing:clamp(0.1em, 0.5vw, 0.28em);
  text-transform:none;
  text-align:center;
  padding:10px 16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  border-top:1px solid rgba(255,255,255,0.04);
}
.dev-credit .dev-name {
  color:#3d6080;
  letter-spacing:clamp(0.1em, 0.5vw, 0.32em);
  text-transform:lowercase;
}

/* -- TOUCH SWIPE INDICATOR on modal -- */
.modal-swipe-hint {
  display:none;
  text-align:center;
  font-family:'Lato',sans-serif;
  font-size:10px;
  color:var(--text-muted);
  letter-spacing:0.08em;
  padding:6px 0 0;
  opacity:0.7;
}
@media (max-width:900px) {
  .modal-swipe-hint { display:block; }
  /* Prevent the modal overlay from eating touch-action on content */
  .modal-overlay { touch-action:pan-y pinch-zoom; }
  .article-card.reveal-on-scroll,
  .category-section.reveal-on-scroll {
    opacity:1;
    transform:none;
  }
}

/* Fast scrolling: keep article cards fully paintable so quick scrolls never expose skipped render boxes. */
.article-card { content-visibility:visible; }
.card-thumb-wrap { background-color:var(--thumb-placeholder-bg); }
.card-thumb-wrap,
.sidebar-thumb,
.live-feed-thumb,
.live-trending-thumb,
.search-item-thumb,
.related-thumb,
.article-reading-thumb,
.editor-published-thumb,
.spotlight-slide-img {
  background-color:var(--thumb-placeholder-bg);
  background-image:linear-gradient(100deg, var(--thumb-placeholder-bg) 0%, var(--thumb-placeholder-mid) 42%, var(--thumb-placeholder-accent) 50%, var(--thumb-placeholder-mid) 58%, var(--thumb-placeholder-bg) 100%);
  background-size:220% 100%;
}
.card-thumb-wrap::before,
.sidebar-thumb::before,
.live-feed-thumb::before,
.live-trending-thumb::before,
.search-item-thumb::before,
.related-thumb::before,
.article-reading-thumb::before,
.editor-published-thumb::before,
.spotlight-slide-img::before {
  content:''; position:absolute; top:0; left:-150%; width:150%; height:100%;
  z-index:1; pointer-events:none;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  animation:thumbShimmer 1.25s infinite;
}
.card-thumb-wrap.thumb-loaded::before,
.sidebar-thumb.thumb-loaded::before,
.live-feed-thumb.thumb-loaded::before,
.live-trending-thumb.thumb-loaded::before,
.search-item-thumb.thumb-loaded::before,
.related-thumb.thumb-loaded::before,
.article-reading-thumb.thumb-loaded::before,
.editor-published-thumb.thumb-loaded::before,
.spotlight-slide-img.thumb-loaded::before { display:none; }
.card-thumb-wrap img,
.sidebar-thumb img,
.live-feed-thumb img,
.live-trending-thumb img,
.search-item-thumb img,
.related-thumb img,
.article-reading-thumb img,
.editor-published-thumb img,
.spotlight-slide-img img {
  position:relative;
  z-index:1;
}
@keyframes thumbShimmer {
  0% { transform:translate3d(0, 0, 0); }
  100% { transform:translate3d(200%, 0, 0); }
}
.card-thumb-wrap img.loaded,
.sidebar-thumb img.loaded,
.live-feed-thumb img.loaded,
.live-trending-thumb img.loaded,
.search-item-thumb img.loaded,
.related-thumb img.loaded,
.article-reading-thumb img.loaded,
.editor-published-thumb img.loaded,
.spotlight-slide-img img.loaded { opacity:1; transform:scale(1); }

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  .article-card, .card-thumb-wrap img, .sidebar-article,
  .reveal-on-scroll, .spotlight-track, .modal-box,
  .modal-overlay, #subscribe-pop, #subscribe-pop-overlay, .ticker-text-inner {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .card-thumb-wrap img { opacity: 1 !important; }
  .reveal-on-scroll { opacity: 1 !important; }
}

/* -- SUBMIT ARTICLE PUBLIC OVERLAY -- */
.submit-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.88); z-index:1050; overflow-y:auto; padding:28px 16px; }
.submit-overlay.open { display:flex; justify-content:center; align-items:flex-start; }
.submit-box { background:var(--offwhite); max-width:var(--document-frame); width:100%; padding:38px 52px 48px; position:relative; margin:0 auto; border-top:4px solid var(--gold); animation:modalSlideIn 0.32s cubic-bezier(.22,1,.36,1) both; }
.submit-herald-badge { font-family:'Cinzel',Georgia,serif; font-size:10px; font-weight:700; letter-spacing:0.28em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; display:block; }
.submit-title { font-family:'Playfair Display',serif; font-size:26px; font-weight:700; color:var(--navy); line-height:1.2; margin-bottom:6px; }
.submit-sub { font-family:'EB Garamond',serif; font-size:15px; color:var(--text-secondary); margin-bottom:24px; line-height:1.65; }
.submit-rule { border:none; border-top:1px solid var(--border); margin-bottom:22px; }
.submit-section-title { font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--navy-light); margin-bottom:14px; padding-bottom:5px; border-bottom:1px solid var(--border-light); }
.submit-form-row { margin-bottom:14px; }
.submit-form-row label { display:block; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-secondary); margin-bottom:6px; }
.submit-form-row input, .submit-form-row select, .submit-form-row textarea { width:100%; padding:9px 12px; border:1px solid var(--border); background:#fff; font-family:'EB Garamond',serif; font-size:16px; color:var(--text-primary); outline:none; transition:border-color 0.2s; }
.submit-form-row input:focus, .submit-form-row select:focus, .submit-form-row textarea:focus { border-color:var(--navy); }
.submit-form-row textarea { height:80px; resize:vertical; }
.submit-form-row input[type=email] { font-family:'Lato',sans-serif; font-size:14px; }
.submit-2col { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:560px){ .submit-2col { grid-template-columns:1fr; } .submit-box { padding:22px 18px 32px; } }
.submit-drop-zone { border:2px dashed var(--border); padding:24px 16px; text-align:center; cursor:pointer; transition:border-color 0.2s,background 0.2s; font-family:'Lato',sans-serif; font-size:12.5px; color:var(--text-muted); margin-bottom:14px; position:relative; }
.submit-drop-zone:hover, .submit-drop-zone.dragover { border-color:var(--navy); background:var(--cream); }
.submit-drop-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.submit-drop-filename { font-weight:700; color:var(--navy); margin-top:7px; font-family:'Lato',sans-serif; font-size:12px; }
.submit-undertaking { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; background:var(--cream); border:1px solid var(--border); margin-bottom:18px; cursor:pointer; user-select:none; }
.submit-undertaking input[type=checkbox] { width:16px; height:16px; flex-shrink:0; margin-top:2px; accent-color:var(--navy); cursor:pointer; }
.submit-undertaking p { font-family:'EB Garamond',serif; font-size:14px; color:var(--text-secondary); line-height:1.6; margin:0; }
.submit-undertaking strong { color:var(--navy); }
.submit-btn-primary { background:var(--navy); color:#fff; border:none; font-family:'Lato',sans-serif; font-size:11.5px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; padding:13px 28px; cursor:pointer; transition:background 0.2s; width:100%; }
.submit-btn-primary:hover { background:var(--navy-light); }
.submit-btn-primary:disabled { opacity:0.55; cursor:not-allowed; }

/* -- ILIRH PREMIUM SUBMIT BUTTON -- */
.ilirh-submit-btn {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%) !important;
  color: var(--gold-light) !important;
  border: 2px solid var(--gold) !important;
  font-family: 'Cinzel', Georgia, serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 16px 32px !important;
  cursor: pointer !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 18px rgba(10,22,40,0.25) !important;
  margin-top: 14px !important;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ilirh-submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.18) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.ilirh-submit-btn:hover::before { opacity: 1; }
.ilirh-submit-btn:hover {
  background: linear-gradient(135deg, var(--navy-light) 0%, #2a4a8e 100%) !important;
  border-color: var(--gold-light) !important;
  color: #fff !important;
  box-shadow: 0 6px 28px rgba(10,22,40,0.38) !important;
  transform: translateY(-1px) !important;
}
.ilirh-submit-btn:disabled { opacity: 0.55 !important; cursor: not-allowed !important; transform: none !important; }

/* -- RICH TEXT EDITOR -- */
.rich-editor-toolbar {
  display: flex; flex-wrap: wrap; align-items:center; gap: 4px; padding: 8px 10px;
  position: relative; top: auto; z-index: 80;
  background: var(--cream-dark); border: 1px solid var(--border); border-bottom: none;
  box-shadow: 0 8px 18px rgba(10,22,40,0.08);
}
.rich-editor-toolbar.rte-toolbar-sticky {
  position: sticky;
  top: 0;
}
.rte-btn {
  background: #fff; border: 1px solid var(--border); color: var(--text-primary);
  font-family: 'Lato', sans-serif; font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; cursor: pointer; transition: all 0.15s; border-radius: 2px;
  min-height:30px; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; gap:4px;
}
.rte-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rte-btn.active { background: var(--navy); color: var(--gold-light); border-color: var(--gold); }
.rte-btn:disabled { opacity:0.45; cursor:not-allowed; }
.rte-btn-sm { font-size: 10px; padding: 5px 8px; }
.rte-sep { width: 1px; background: var(--border); margin: 3px 4px; }
.rich-editor-area {
  --rte-text-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpath d='M8 3v18M5 3h6M5 21h6' fill='none' stroke='%230d1b2e' stroke-width='1.15' stroke-linecap='round'/%3E%3C/svg%3E") 8 12, text;
  width: 100%; min-height: 480px;
  max-height: min(72vh, 760px);
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-gutter: stable;
  position: relative;
  cursor: var(--rte-text-cursor);
  caret-color: #0d1b2e;
  padding: 14px 16px; border: 1px solid var(--border); background: #fff;
  font-family: 'EB Garamond', serif; font-size: 16px; color: var(--text-primary);
  line-height: 1.75; outline: none; transition: border-color 0.2s;
}
.rich-editor-area:hover { cursor:var(--rte-text-cursor); }
.rich-editor-area:focus { border-color: var(--navy); }
.rich-editor-area:focus-within { border-color: var(--navy); }
.rich-editor-area[data-placeholder]:empty::before {
  content: attr(data-placeholder); color: var(--text-muted); pointer-events: none;
  font-style: italic;
}
.rich-editor-area .ProseMirror {
  min-height: inherit; outline: none;
  position: relative;
  color: inherit;
  caret-color: inherit;
  cursor: var(--rte-text-cursor);
  white-space: pre-wrap;
  word-wrap: break-word;
  user-select: text;
  -webkit-user-select: text;
}
.rich-editor-area .ProseMirror * { cursor:var(--rte-text-cursor); }
.rich-editor-area .ProseMirror::selection,
.rich-editor-area .ProseMirror *::selection {
  background: rgba(201,168,76,0.32);
  color: inherit;
}
.rich-editor-area .ProseMirror:focus { outline:none; }
.rich-editor-area.rte-loading {
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
}
.rich-editor-area.rte-loading::before { content:none !important; display:none !important; }
.rich-editor-area.rte-loading > * { visibility:hidden; }
.rich-editor-area.rte-loading::after {
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width:24px;
  height:24px;
  margin:-12px 0 0 -12px;
  border:2px solid var(--border);
  border-top-color:var(--gold);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}
.rich-editor-toolbar.rte-loading { pointer-events:none; }
.rich-editor-toolbar.rte-loading .rte-btn { opacity:0.45; }
.rich-editor-area.rte-is-empty .ProseMirror::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0 auto auto 0;
  color: var(--text-muted);
  pointer-events: none;
  font-style: italic;
  opacity: 0.86;
}
.rich-editor-area .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder); color: var(--text-muted); pointer-events: none;
  float: left; height: 0; font-style: italic;
}
.rich-editor-area.rte-is-empty .ProseMirror p.is-editor-empty:first-child::before { content:''; display:none; }
.rich-editor-area .ProseMirror p { margin: 0 0 10px; min-height: 1.45em; }
.rich-editor-area .ProseMirror p:empty:not(.is-editor-empty)::after { content: '\00a0'; }
.rich-editor-area h2 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--navy); margin: 16px 0 8px; }
.rich-editor-area h3 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--navy); margin: 12px 0 6px; }
.rich-editor-area blockquote { border-left: 4px solid var(--gold); padding: 10px 16px; margin: 12px 0; background: var(--cream); font-style: italic; color: var(--text-secondary); }
.rich-editor-area ul, .rich-editor-area ol {
  margin: 10px 0 12px 1.25em;
  padding-left: 1.15em;
  list-style-position: outside;
  box-sizing: border-box;
}
.rich-editor-area .ProseMirror ul { list-style: disc outside; }
.rich-editor-area .ProseMirror ol { list-style: decimal outside; }
.rich-editor-area .ProseMirror ul ul { list-style: circle outside; }
.rich-editor-area .ProseMirror ul ul ul { list-style: square outside; }
.rich-editor-area .ProseMirror li { margin: 4px 0; padding-left: 0.28em; }
.rich-editor-area .ProseMirror li > p { margin: 0; min-height: inherit; }
.rich-editor-area,
.rich-editor-area .ProseMirror {
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow-x:hidden;
}
.rich-editor-area .ProseMirror :where(p, h2, h3, blockquote, ul, ol, li, div) {
  box-sizing:border-box;
  width:auto;
  max-width:100%;
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.rich-editor-area .ProseMirror :where(ul, ol) {
  margin-left:0 !important;
  padding-left:clamp(1.2em, 4vw, 1.6em) !important;
  padding-right:0 !important;
}
.rich-editor-area a { color: var(--navy-light); }
.rich-editor-area mark {
  padding:0 0.12em;
  border-radius:2px;
  background:#eadcae;
  color:#172236;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.rich-editor-area mark * { color:inherit !important; }
.rte-btn > mark {
  display:inline-grid;
  min-width:18px;
  min-height:18px;
  place-items:center;
  padding:0 3px !important;
  border:1px solid #b8963e;
  border-radius:3px;
  background:#e5cf7c !important;
  color:#081426 !important;
  font-weight:900;
  line-height:1;
  box-shadow:inset 0 -1px 0 rgba(10,22,40,0.16);
}
.rich-editor-area hr { border:0; border-top:1px solid var(--border); margin:18px 0; }
.rte-word-counter {
  background: var(--cream); border: 1px solid var(--border); border-top: none;
  padding: 5px 12px; font-family: 'Lato', sans-serif; font-size: 11px;
  color: var(--text-muted); text-align: right; letter-spacing: 0.06em;
  margin-bottom: 14px;
}
body.dark-mode .rich-editor-area {
  --rte-text-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpath d='M8 3v18M5 3h6M5 21h6' fill='none' stroke='%23f0ce73' stroke-width='1.15' stroke-linecap='round'/%3E%3C/svg%3E") 8 12, text;
  background: #0a1520; color: #c8d8ea; border-color: var(--border); caret-color:#f0ce73;
}
body.dark-mode .rich-editor-area.rte-is-empty .ProseMirror::before,
body.dark-mode .rich-editor-area .ProseMirror p.is-editor-empty:first-child::before {
  color:#8fa8c0;
}
body.dark-mode .rich-editor-toolbar { background: #0d1624; border-color: var(--border); }
body.dark-mode .rte-btn { background: #0a1520; color: #c8d8ea; border-color: var(--border); }
body.dark-mode .rte-word-counter { background: #0d1624; border-color: var(--border); }

@media (max-width:900px) {
  .rich-editor-toolbar {
    top: env(safe-area-inset-top, 0px);
    padding:7px 8px;
    gap:4px;
  }
  .rich-editor-area {
    min-height:clamp(420px, 62vh, 560px);
    max-height:clamp(420px, 66vh, 620px);
    padding:18px 20px;
    font-size:17px;
    line-height:1.8;
  }
  .article-write-panel .rich-editor-area {
    min-height:clamp(420px, 62vh, 560px);
    max-height:clamp(420px, 66vh, 620px);
    padding:22px 24px;
  }
}

@media (max-width:900px) {
  .rich-editor-toolbar {
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    max-width:100%;
  }
  .rich-editor-toolbar::-webkit-scrollbar { height:5px; }
  .rich-editor-toolbar::-webkit-scrollbar-thumb { background:rgba(10,22,40,0.22); border-radius:999px; }
  .rte-btn {
    flex:0 0 auto;
    min-width:34px;
    min-height:34px;
    padding:6px 9px;
    font-size:11px;
    touch-action:manipulation;
  }
  .rte-btn-sm { font-size:10px; padding:6px 8px; }
  .rte-sep {
    flex:0 0 1px;
    height:24px;
    margin:5px 2px;
  }
  .rich-editor-area {
    min-height:clamp(360px, 58vh, 480px);
    max-height:clamp(360px, 62vh, 500px);
    padding:16px 15px;
    font-size:16.5px;
  }
  .article-write-panel {
    padding:12px;
  }
  .article-write-panel .rich-editor-area {
    min-height:clamp(360px, 58vh, 480px);
    max-height:clamp(360px, 62vh, 500px);
    padding:18px 16px;
  }
  .rte-word-counter {
    padding:7px 10px;
    text-align:left;
    white-space:normal;
    margin-bottom:0;
  }
}

@media (max-width:420px) {
  .rich-editor-toolbar {
    padding:6px;
    gap:3px;
  }
  .rte-btn {
    min-width:32px;
    min-height:32px;
    padding:5px 7px;
    font-size:10.5px;
  }
  .rte-btn svg { width:13px; height:13px; }
  .rich-editor-area,
  .article-write-panel .rich-editor-area {
    min-height:clamp(320px, 54vh, 430px);
    max-height:clamp(320px, 58vh, 430px);
    padding:15px 13px;
    font-size:16px;
    line-height:1.72;
  }
  .rich-editor-area h2 { font-size:18px; }
  .rich-editor-area h3 { font-size:16px; }
  .rich-editor-area blockquote {
    padding:9px 12px;
    margin:10px 0;
  }
}
/* -- WORD DOCUMENT UPLOAD (article body) -- */
.submit-docx-hint {
  font-family: 'EB Garamond', serif; font-size: 14px; color: var(--text-secondary);
  line-height: 1.55; margin-bottom: 12px;
}
.submit-docx-hint strong { color: var(--navy); font-weight: 600; }
.submit-docx-zone {
  border: 2px dashed var(--border); background: var(--cream); padding: 28px 16px;
  text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  margin-bottom: 8px;
}
.submit-docx-zone:hover, .submit-docx-zone.dragover { border-color: var(--navy); background: #fff; }
.submit-docx-zone.has-file { border-color: var(--navy); border-style: solid; background: #fff; }
.submit-docx-filename { font-family: 'Lato', sans-serif; font-size: 11px; color: var(--navy-light); font-weight: 700; margin-top: 8px; min-height: 16px; }
.submit-docx-status { font-family: 'Lato', sans-serif; font-size: 12px; color: var(--text-muted); min-height: 18px; margin-bottom: 10px; }
.submit-docx-status.err { color: #a32d2d; }
.submit-docx-status.ok { color: #27500a; }
.submit-docx-preview-wrap { margin-bottom: 14px; }
.submit-docx-preview-host {
  border: 1px solid var(--border); background: #ffffff; padding: 12px 14px;
  max-height: 280px; overflow: auto;
}
.article-docx-body .docx-wrapper,
.submit-docx-preview-host .docx-wrapper {
  background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
}
.article-docx-body section.docx,
.submit-docx-preview-host section.docx {
  background: transparent !important; box-shadow: none !important; margin: 0 !important;
  min-height: 0 !important;
}
.article-body-capture-host .docx-word-page .docx-wrapper {
  background: #ffffff !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.article-body-capture-host .docx-word-page section.docx {
  background: #ffffff !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  border: none !important;
}
.article-body-capture-host { background: #ffffff; }
.article-body-capture-host .article-docx-body,
.article-docx-body {
  background: #ffffff; color: #2c3e5a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 38px; line-height: 1.62; text-align: justify;
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.article-docx-body p { margin: 0 0 0.55em; }
.article-docx-body img { max-width: 100%; height: auto; }
#sub-editor { display: none !important; }
#sub-toolbar { display: none !important; }
.rte-word-counter { display: none !important; }
.article-mode-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }
.article-mode-btn {
  flex:1; min-width:180px; border:1px solid var(--border); background:#fff; color:var(--text-secondary);
  font-family:'Lato',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; padding:11px 14px; cursor:pointer; transition:all 0.18s;
}
.article-mode-btn.selected { background:var(--navy); color:var(--gold-light); border-color:var(--gold); }
.article-write-panel { border:1px solid var(--border); background:var(--cream); padding:16px; margin:10px 0 18px; }
.article-write-panel .rich-editor-toolbar {
  display:flex !important;
}
.article-write-panel .rich-editor-area {
  display:block !important; min-height:480px;
  max-height:min(72vh, 760px);
  overflow-y:auto;
  overscroll-behavior:auto;
  padding:28px 34px;
  font-family:'EB Garamond',Georgia,serif; font-size:18px; line-height:1.85;
  background:#fffdf8;
}
.article-write-panel .rte-word-counter { display:block !important; }
.article-cover-preview {
  width:100%; max-width:none; border:1px solid var(--border);
  background:#fff; margin-top:10px; display:none; box-shadow:0 10px 28px rgba(10,22,40,0.08);
}
.article-cover-frame {
  width:100%; aspect-ratio:16/9; background:#f7f1e6; overflow:hidden; position:relative;
  display:flex; align-items:center; justify-content:center; touch-action:pan-y; cursor:grab;
  background-image:linear-gradient(45deg, rgba(10,22,40,0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(10,22,40,0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(10,22,40,0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(10,22,40,0.045) 75%);
  background-size:18px 18px; background-position:0 0,0 9px,9px -9px,-9px 0;
}
.article-cover-frame:active { cursor:grabbing; }
.article-cover-frame img { width:100%; height:100%; object-fit:contain; object-position:center; display:block; }
.article-cover-frame::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(10,22,40,0.08), inset 0 0 0 999px rgba(255,255,255,0);
}
.article-cover-tools {
  border-top:1px solid var(--border-light); padding:12px; background:var(--offwhite);
}
.article-cover-tool-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; }
.article-cover-tool-row:last-child { margin-bottom:0; }
.article-cover-tool-btn {
  border:1px solid var(--border); background:#fff; color:var(--text-secondary);
  font-family:'Lato',sans-serif; font-size:9.5px; font-weight:800; letter-spacing:0.1em;
  text-transform:uppercase; padding:7px 10px; cursor:pointer; transition:background 0.18s,border-color 0.18s,color 0.18s,transform 0.18s;
}
.article-cover-tool-btn:hover { border-color:var(--navy); color:var(--navy); transform:translateY(-1px); }
.article-cover-tool-btn.selected { background:var(--navy); color:var(--gold-light); border-color:var(--gold); }
.article-cover-preset-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; }
.article-cover-preset {
  border:1px solid var(--border); background:#fff; padding:8px 9px; cursor:pointer; text-align:left;
  font-family:'Lato',sans-serif; color:var(--text-secondary); transition:all 0.18s;
}
.article-cover-preset:hover { border-color:var(--navy); transform:translateY(-1px); }
.article-cover-preset.selected { background:#0a1628; border-color:var(--gold); color:#f3d58a; }
.article-cover-preset strong { display:block; font-size:10px; letter-spacing:0.11em; text-transform:uppercase; margin-bottom:3px; }
.article-cover-preset span { display:block; font-size:10px; color:inherit; opacity:0.82; }
.article-cover-slider {
  display:flex; align-items:center; gap:8px; flex:1 1 170px; min-width:150px;
  font-family:'Lato',sans-serif; font-size:9.5px; font-weight:700; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--text-muted);
}
.article-cover-slider input { flex:1; min-width:90px; accent-color:var(--navy); }
.article-cover-note { font-family:'Lato',sans-serif; font-size:10.5px; color:var(--text-muted); line-height:1.45; }
.article-cover-note strong { color:var(--navy); }
.submit-docx-rules {
  margin:8px 0 12px; padding-left:18px; font-family:'Lato',sans-serif;
  font-size:11px; line-height:1.55; color:var(--text-muted);
}
.submit-docx-rules strong { color:var(--navy); }
.written-article-shell { max-width:100%; margin:0; }
.written-article-kicker { font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; }
.written-article-title { font-family:'Playfair Display',Georgia,serif; font-size:clamp(30px,5vw,52px); line-height:1.08; color:var(--navy); margin:0 0 14px; }
.written-article-meta { font-family:'Lato',sans-serif; font-size:12px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-secondary); margin-bottom:12px; }
.written-article-brief { font-family:'EB Garamond',Georgia,serif; font-size:22px; line-height:1.35; color:var(--text-primary); font-weight:400; margin:0 0 22px; }
.written-article-cover {
  width:100% !important; max-width:100% !important; margin:22px auto 28px; background:#f7f1e6; border:1px solid var(--border); cursor:zoom-in;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.written-article-cover img {
  width:100% !important; max-width:100% !important; display:block; height:auto; object-fit:contain; object-position:center center; margin:0 auto;
}
.article-reader-shell { max-width:100%; margin:0; }
.article-reader-head { margin:0 0 18px; }
.article-reader-kicker { font-family:'Lato',sans-serif; font-size:10px; font-weight:800; letter-spacing:0.17em; text-transform:uppercase; color:var(--gold); margin-bottom:9px; }
.article-reader-title { font-family:'Playfair Display',Georgia,serif; font-size:clamp(30px,5vw,50px); line-height:1.08; color:var(--navy); font-weight:800; margin:0 0 14px; overflow-wrap:anywhere; }
.article-reader-brief { font-family:'EB Garamond',Georgia,serif; font-size:21px; line-height:1.42; color:var(--text-primary); font-weight:400; margin:0 0 20px; }
.article-reader-cover {
  width:100% !important; max-width:100% !important; margin:22px auto 28px; background:#f7f1e6; border:1px solid var(--border); cursor:zoom-in;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.article-reader-cover img {
  width:100% !important; max-width:100% !important; height:auto; display:block; object-fit:contain; object-position:center center; margin:0 auto;
}
.written-article-cover.is-squareish,
.written-article-cover.is-portraitish,
.article-reader-cover.is-squareish,
.article-reader-cover.is-portraitish { width:100% !important; max-width:100% !important; }
.written-article-cover.is-wide,
.article-reader-cover.is-wide { width:100% !important; max-width:100% !important; }
.article-reader-shell .modal-rich-body { margin-top:0; background:#fffdf8; border:1px solid var(--border); padding:30px 34px; box-shadow:0 10px 26px rgba(10,22,40,0.05); }
.written-article-body {
  position:relative; font-family:'EB Garamond',Georgia,serif; font-size:18.5px; line-height:1.9;
  color:var(--text-secondary); max-height:760px; overflow:hidden;
  background:#fffdf8; border:1px solid var(--border); padding:34px 38px; box-shadow:0 10px 26px rgba(10,22,40,0.06);
}
.written-article-body.expanded { max-height:none; overflow:visible; }
.written-article-body:not(.expanded)::after {
  content:''; position:absolute; left:0; right:0; bottom:0; height:150px;
  background:linear-gradient(to bottom, rgba(247,244,239,0), var(--offwhite) 72%);
  backdrop-filter:blur(1px); pointer-events:none;
}
.written-read-more {
  position:relative; z-index:2; margin:14px auto 4px; display:block;
  border:0; border-bottom:1px solid rgba(201,168,76,0.85);
  background:rgba(255,253,248,0.86); color:var(--navy);
  font-family:'Lato',sans-serif; font-size:10px; font-weight:900; letter-spacing:0.14em;
  text-transform:uppercase; padding:7px 2px 6px; cursor:pointer;
  box-shadow:0 10px 28px rgba(255,253,248,0.72);
}
.written-article-body:not(.expanded) + .written-read-more { margin-top:-72px; margin-bottom:42px; }
.written-read-more:hover { color:#9b7a25; border-color:var(--navy); }
.article-page-section {
  display:none;
  padding:38px 0 56px;
  background:
    linear-gradient(90deg, rgba(16,36,58,0.035) 1px, transparent 1px),
    linear-gradient(rgba(16,36,58,0.025) 1px, transparent 1px),
    linear-gradient(180deg, #f5f1e9 0%, #fbf8f1 52%, #f4efe6 100%);
  background-size:72px 72px,72px 72px,auto;
}
.article-page-section.open { display:block; }
.article-page-shell { max-width:var(--site-frame); margin:0 auto; padding:0 24px; }
.article-page-topline { display:flex; flex-wrap:nowrap; gap:8px; align-items:center; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-muted); margin-bottom:14px; min-width:0; white-space:nowrap; overflow:hidden; }
.article-page-topline a { color:var(--text-muted); text-decoration:none; }
.article-page-topline a:hover { color:var(--gold); }
.article-page-topline-current { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#7a8795; }
.article-page-card {
  position:relative;
  background:
    linear-gradient(90deg, rgba(16,36,58,0.032) 1px, transparent 1px),
    linear-gradient(rgba(16,36,58,0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,253,248,0.96), rgba(247,242,232,0.98));
  background-size:72px 72px,72px 72px,auto;
  border:none;
  border-top:4px solid var(--gold);
  box-shadow:none;
  padding:30px 36px 38px;
}
.article-page-card .modal-content { color:var(--text-secondary); }
.article-page-card .modal-img {
  display:block;
  width:100% !important;
  max-width:100% !important;
  max-height:none !important;
  height:auto;
  object-fit:contain;
  object-position:center center;
  margin-left:0;
  margin-right:auto;
  background:#f7f1e6;
}
.article-page-actions { margin-top:26px; padding-top:18px; border-top:1px solid var(--border); }
.article-page-actions .share-row { justify-content:flex-start; }
.article-page-card .modal-mobile-actions {
  margin:28px 0 28px;
  padding:18px;
  border:1px solid rgba(201,168,76,0.35);
  background:#fffdf8;
  box-shadow:0 12px 30px rgba(10,22,40,0.06);
}
.article-page-card .article-action-top { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin-bottom:12px; }
.article-page-card .share-services-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.article-page-card .like-btn,
.article-page-card .share-btn {
  min-height:44px;
  border-color:rgba(24,57,95,0.22);
  background:linear-gradient(180deg,#fff,#fbf7ed);
  color:#18395f;
  box-shadow:0 6px 16px rgba(10,22,40,0.045);
}
.article-page-card .share-btn:hover,
.article-page-card .like-btn:hover,
.article-page-card .like-btn.liked {
  border-color:var(--gold);
  background:#10243a;
  color:#f3d58a;
  transform:translateY(-1px);
}
.article-page-card #article-page-author-profile .author-profile-card {
  margin:34px 0 0; padding:28px;
  border:none; border-top:4px solid var(--gold);
  background:#ffffff;
  box-shadow:0 18px 46px rgba(10,22,40,0.08);
}
.article-page-card #article-page-author-profile .author-profile-card::before {
  content:none; display:none;
}
.article-page-card #article-page-author-profile .author-profile-top {
  align-items:center; gap:20px;
}
.article-page-card #article-page-author-profile .author-profile-photo {
  width:98px; height:98px;
}
.article-page-card #article-page-author-profile .author-profile-kicker::after {
  content:' - credibility and context';
  color:#607083; letter-spacing:0.08em;
}
.article-page-card #article-page-author-profile .author-profile-name { font-size:28px; }
.article-page-card #article-page-author-profile .author-profile-actions { margin-top:10px; }
.article-page-card #article-page-author-profile .author-profile-link {
  padding:9px 12px; border:1px solid rgba(201,168,76,0.55); background:#fffdf8; text-decoration:none;
}
.article-page-card #article-page-author-profile .author-profile-link:hover { background:#10243a; color:#f3d58a; text-decoration:none; }
.article-page-back { border:1px solid rgba(201,168,76,0.55); background:#fffdf8; color:var(--navy); font-family:'Lato',sans-serif; font-size:10px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; padding:10px 16px; cursor:pointer; margin-bottom:22px; box-shadow:0 8px 20px rgba(10,22,40,0.05); }
.article-page-back:hover { border-color:var(--gold); color:#9b7a25; transform:translateY(-1px); }
body.dark-mode .article-write-panel { background:#0d1624; border-color:var(--border); }
body.dark-mode .article-write-panel .rich-editor-area { background:#07111d; color:#c8d8ea; }
body.dark-mode .article-cover-preview,
body.dark-mode .article-cover-preset,
body.dark-mode .article-cover-tool-btn { background:#07111d; border-color:var(--border); color:#c8d8ea; }
body.dark-mode .article-cover-tools { background:#0d1624; border-color:var(--border); }
body.dark-mode .article-cover-preset.selected,
body.dark-mode .article-cover-tool-btn.selected { background:#10243a; color:#f3d58a; border-color:var(--gold); }
body.dark-mode .article-cover-note strong { color:#f3d58a; }
body.dark-mode .written-article-title { color:#c8d8ea; }
body.dark-mode .article-reader-title { color:#c8d8ea; }
body.dark-mode .article-reader-shell .modal-rich-body { background:#07111d; border-color:var(--border); box-shadow:none; }
body.dark-mode .article-page-section { background:transparent; }
body.dark-mode .article-page-card {
  background:
    linear-gradient(90deg, rgba(201,168,76,0.055) 1px, transparent 1px),
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(180deg, #081321, #0d1624);
  background-size:72px 72px,72px 72px,auto;
  border-color:var(--border);
  box-shadow:none;
}
body.dark-mode .article-inline-spotlight { background:linear-gradient(135deg,#0a1520 0%,#0d1826 62%,#101d2d 100%); border-color:#2b4564; border-top-color:#c9a84c; box-shadow:0 16px 38px rgba(0,0,0,0.2); }
body.dark-mode .article-feed-card { background:#0d1624; border:none; box-shadow:0 6px 24px rgba(0,0,0,0.3); }
body.dark-mode .article-feed-card:hover { background:#111e2e; box-shadow:0 12px 36px rgba(0,0,0,0.45); }
body.dark-mode .article-feed-card-title { color:#c8d8ea; }
body.dark-mode .article-page-card .modal-mobile-actions,
body.dark-mode .article-page-card #article-page-author-profile .author-profile-card { background:#0d1624; border-color:var(--border); box-shadow:none; }
body.dark-mode .article-page-card #article-page-author-profile .author-profile-link {
  background:#07111d;
  color:#c8d8ea;
  border-color:#2b4564;
  box-shadow:none;
}
body.dark-mode .article-page-card #article-page-author-profile .author-profile-link:hover {
  background:#10243a;
  color:#f3d58a;
  border-color:rgba(216,226,238,0.34);
}
body.dark-mode .written-article-body { background:#07111d; border-color:var(--border); box-shadow:none; }
body.dark-mode .written-article-body:not(.expanded)::after { background:linear-gradient(to bottom, rgba(7,17,29,0), var(--offwhite) 72%); }
body.dark-mode .written-read-more { background:rgba(7,17,29,0.9); color:#f3d58a; box-shadow:0 10px 28px rgba(7,17,29,0.72); }
body.dark-mode .article-page-back { background:#07111d; color:#c8d8ea; border-color:var(--border); }
@media(max-width:640px) {
  .article-page-card { padding:22px 14px 26px; }
  .written-article-title,
  .article-reader-title { font-size:clamp(28px,9vw,40px); }
  .written-article-body,
  .article-reader-shell .modal-rich-body { padding:22px 16px; }
}
.article-body-capture-host {
  position: fixed; left: -12000px; top: 0; z-index: -1; pointer-events: none;
  background: #ffffff; overflow: visible;
}
#sub-docx-live-preview {
  /* Off-screen but FULLY laid out - browser must compute width/height */
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: -1;
  width: 794px;       /* A4 at 96dpi */
  min-height: 1123px; /* A4 at 96dpi */
  background: #ffffff;
  overflow: visible;
  visibility: visible;
  pointer-events: none;
}
#sub-docx-live-preview .docx-wrapper {
  background: #ffffff !important; box-shadow: none !important;
  margin: 0 !important; padding: 0 !important; border: none !important;
  width: 794px !important; max-width: 794px !important;
}
#sub-docx-live-preview section.docx {
  background: #ffffff !important; box-shadow: none !important;
  margin: 0 !important; border: none !important;
  width: 794px !important; min-height: 1123px !important; max-width: 794px !important;
  overflow: hidden !important;
}
.article-body-capture-host .article-docx-body { box-sizing: border-box; }
.rd-docx-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 16px; }
.rd-docx-btn {
  background: var(--navy); color: #fff; border: none; font-family: 'Lato', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; cursor: pointer; transition: background 0.2s;
}
.rd-docx-btn:hover { background: var(--navy-light); }
.rd-docx-btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.rd-full-preview-wrap { margin: 16px 0; border: 1px solid var(--border); background: var(--cream); padding: 10px; position:relative; }
.rd-full-preview-wrap img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.article-preview-loading {
  display:none; align-items:center; gap:12px; padding:14px; margin-bottom:10px;
  background:var(--offwhite); border:1px solid var(--border-light);
  font-family:'Lato',sans-serif; font-size:12px; color:var(--text-secondary);
}
.article-preview-loading.active { display:flex; }
.article-preview-loading .spinner { width:20px; height:20px; margin:0; flex-shrink:0; }
.article-preview-loading-body { flex:1; min-width:0; }
.article-preview-loading-title { font-weight:800; letter-spacing:0.08em; text-transform:uppercase; font-size:10px; color:var(--navy); margin-bottom:6px; }
.article-preview-loading-bar { height:4px; background:var(--cream-dark); overflow:hidden; }
.article-preview-loading-bar span { display:block; width:45%; height:100%; background:var(--gold); animation:previewBuffer 1.05s ease-in-out infinite; }
@keyframes previewBuffer {
  0% { transform:translateX(-120%); }
  55% { transform:translateX(120%); }
  100% { transform:translateX(260%); }
}
.submit-btn-cancel { background:none; border:1px solid var(--border); color:var(--text-muted); font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:10px 20px; cursor:pointer; margin-top:10px; width:100%; transition:border-color 0.2s; }
.submit-btn-cancel:hover { border-color:var(--navy); color:var(--navy); }
.submit-success-msg { display:none; background:#eaf3de; border:1px solid #c0dd97; color:#27500a; font-family:'EB Garamond',serif; font-size:15px; padding:14px 18px; margin-top:16px; line-height:1.6; }
.submit-err { color:#a32d2d; font-family:'Lato',sans-serif; font-size:12px; margin-top:8px; min-height:16px; }
.submit-progress { width:100%; background:var(--cream-dark); height:5px; margin-top:10px; display:none; }
.submit-progress-fill { height:100%; background:var(--navy); width:0%; transition:width 0.4s; }

/* -- EDITOR TABS (upload panel) -- */
.editor-tabs { display:flex; border-bottom:2px solid var(--navy); margin-bottom:22px; }
.editor-tab { flex:1; padding:10px 16px; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-muted); border:none; background:none; cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-2px; transition:color 0.2s,border-color 0.2s; text-align:center; }
.editor-tab.active { color:var(--navy); border-bottom-color:var(--gold); }
.editor-tab .tab-badge { display:inline-flex; align-items:center; justify-content:center; background:var(--gold); color:var(--navy); font-size:9px; font-weight:700; min-width:18px; height:16px; padding:0 5px; border-radius:9px; margin-left:6px; vertical-align:middle; }
.editor-panel { display:none; }
.editor-panel.active { display:block; }

/* -- REVIEW SUBMISSIONS PANEL -- */
.review-empty { text-align:center; padding:40px 20px; color:var(--text-muted); font-family:'EB Garamond',serif; font-style:italic; font-size:15px; border:1px dashed var(--border); }
.review-item { border:1px solid var(--border); padding:16px 18px; margin-bottom:14px; cursor:pointer; transition:border-color 0.2s,background 0.2s; position:relative; }
.review-item:hover { border-color:var(--navy); background:var(--cream); }
.review-item-cat { font-family:'Lato',sans-serif; font-size:9.5px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); margin-bottom:4px; }
.review-item-title { font-family:'Playfair Display',serif; font-size:16px; font-weight:700; color:var(--navy); line-height:1.3; margin-bottom:4px; }
.review-item-meta { font-family:'Lato',sans-serif; font-size:11px; color:var(--text-muted); }
.review-item-new { position:absolute; top:10px; right:12px; background:var(--navy); color:#c9a84c; font-family:'Lato',sans-serif; font-size:9px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; padding:3px 8px; border-radius:2px; }
.published-editor-item { display:grid; grid-template-columns:120px minmax(0,1fr) auto; align-items:start; gap:14px; }
.published-editor-body { min-width:0; }
.published-editor-title { font-size:16px; line-height:1.24; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.published-editor-actions { display:flex; flex-direction:column; gap:8px; flex-shrink:0; }
.published-editor-btn { border:none; font-family:'Lato',sans-serif; font-size:10px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; padding:7px 11px; cursor:pointer; border-radius:2px; min-width:88px; }
.published-editor-btn.edit { background:var(--navy); color:#fff; }
.published-editor-btn.delete { background:#b91c1c; color:#fff; }
.published-editor-btn:hover { filter:brightness(1.08); }

/* -- REVIEW DETAIL MODAL (within editor) -- */
.review-detail-overlay { display:none; position:fixed; inset:0; background:rgba(5,12,24,0.9); z-index:1100; overflow-y:auto; padding:24px 16px; }
.review-detail-overlay.open { display:flex; justify-content:center; align-items:flex-start; }
.review-detail-box { background:var(--offwhite); max-width:var(--document-frame); width:100%; padding:34px 52px 48px; position:relative; margin:0 auto; border-top:4px solid var(--navy); animation:modalSlideIn 0.28s cubic-bezier(.22,1,.36,1) both; }
@media(max-width:600px){ .review-detail-box { padding:20px 16px 32px; } }
@media(max-width:600px){
  .published-editor-item { grid-template-columns:96px minmax(0,1fr); gap:12px; padding:14px 12px; }
  .published-editor-item .editor-published-thumb { width:96px; }
  .published-editor-body { padding-right:0; }
  .published-editor-title { font-size:15px; line-height:1.22; -webkit-line-clamp:3; }
  .published-editor-actions { grid-column:1 / -1; flex-direction:row; gap:8px; }
  .published-editor-btn { flex:1; min-height:34px; padding:8px 10px; }
  .review-item-cat { font-size:8.5px; letter-spacing:0.12em; line-height:1.45; }
  .review-item-meta { font-size:10.5px; line-height:1.45; }
}
.review-detail-kicker { font-family:'Lato',sans-serif; font-size:9.5px; font-weight:700; letter-spacing:0.24em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; }
.review-detail-title { font-family:'Playfair Display',serif; font-size:22px; font-weight:700; color:var(--navy); margin-bottom:18px; line-height:1.25; }
.review-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
@media(max-width:560px){ .review-detail-grid { grid-template-columns:1fr; } }
.review-field label { display:block; font-family:'Lato',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-bottom:5px; }
.review-field input, .review-field select, .review-field textarea { width:100%; padding:8px 11px; border:1px solid var(--border); background:#fff; font-family:'EB Garamond',serif; font-size:15px; color:var(--text-primary); outline:none; transition:border-color 0.2s; }
.review-field input:focus, .review-field select:focus, .review-field textarea:focus { border-color:var(--navy); }
.review-field textarea { height:70px; resize:vertical; }
.review-field-full { grid-column:1/-1; }
.review-detail-box #rd-article-body {
  min-height:520px !important; max-height:min(72vh, 760px) !important; overflow-y:auto !important;
  overscroll-behavior:auto;
  padding:28px 34px; font-family:'EB Garamond',Georgia,serif; font-size:18px; line-height:1.85;
  background:#fffdf8; border-top:none;
}
.rd-source-text-status {
  min-height:18px;
  margin:0 0 7px;
  color:var(--text-muted);
  font-family:'Lato',sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1.45;
}
.rd-source-text-status.loading { color:#8a6d20; }
.rd-source-text-status.ready { color:#2e6b3e; }
.rd-source-text-status.error { color:#a32d2d; }
body.dark-mode .rd-source-text-status.loading { color:#f0ce73; }
body.dark-mode .rd-source-text-status.ready { color:#88c59a; }
body.dark-mode .rd-source-text-status.error { color:#ef9a9a; }
.review-editor-note {
  font-family:'Lato',sans-serif; font-size:10.5px; line-height:1.55; color:var(--text-muted);
  background:var(--cream); border:1px solid var(--border-light); padding:10px 12px; margin:8px 0 12px;
}
.rd-written-cover-section { margin:16px 0 18px; }
.rd-written-cover-section .article-cover-preview { max-width:none; }
.review-file-preview { margin:14px 0; border:1px solid var(--border); background:var(--cream); padding:14px; }
.review-file-preview p { font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:10px; }
.review-file-preview img { max-width:100%; max-height:200px; object-fit:contain; display:block; border:1px solid var(--border-light); }
.review-file-preview a { font-family:'Lato',sans-serif; font-size:11.5px; color:var(--navy-light); text-decoration:underline; font-weight:700; }
.review-replace-drop { border:2px dashed var(--border); padding:18px 14px; text-align:center; cursor:pointer; font-family:'Lato',sans-serif; font-size:12px; color:var(--text-muted); position:relative; margin-top:10px; transition:border-color 0.2s; }
.review-replace-drop:hover { border-color:var(--navy); }
.review-replace-drop input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.review-undertaking-display { padding:10px 14px; background:var(--cream); border:1px solid var(--border-light); font-family:'EB Garamond',serif; font-size:13px; color:var(--text-muted); font-style:italic; margin-bottom:14px; }
.review-actions { display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.review-btn-publish { background:var(--navy); color:var(--gold-light); border:1px solid var(--gold); font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; padding:11px 22px; cursor:pointer; transition:background 0.2s; flex:2; }
.review-btn-publish:hover { background:var(--gold); color:var(--navy); }
.review-btn-publish:disabled { opacity:0.5; cursor:not-allowed; }
.review-btn-save { background:var(--cream-dark); color:var(--text-secondary); border:1px solid var(--border); font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:11px 18px; cursor:pointer; transition:all 0.2s; flex:1; }
.review-btn-save:hover { background:var(--cream); border-color:var(--navy); color:var(--navy); }
.review-btn-delete { background:#b91c1c; color:#fff; border:none; font-family:'Lato',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:11px 16px; cursor:pointer; transition:background 0.2s; }
.review-btn-delete:hover { background:#991b1b; }
.review-btn-delete:disabled { opacity:0.5; cursor:not-allowed; }
.review-status-badge { display:inline-block; font-family:'Lato',sans-serif; font-size:9px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; padding:4px 10px; border-radius:2px; margin-left:10px; vertical-align:middle; }
.review-status-pending { background:#fef3c7; color:#92400e; }
.review-status-published { background:#d1fae5; color:#065f46; }

/* Dark mode for new elements */
body.dark-mode .submit-box { background:#0d1624; border-top-color:var(--gold); }
body.dark-mode .submit-herald-badge { color:var(--gold); }
body.dark-mode .submit-title { color:#c8d8ea; }
body.dark-mode .submit-sub { color:var(--text-secondary); }
body.dark-mode .submit-form-row label { color:var(--text-secondary); }
body.dark-mode .submit-form-row input, body.dark-mode .submit-form-row select, body.dark-mode .submit-form-row textarea { background:#0a1520; color:#c8d8ea; border-color:var(--border); }
body.dark-mode .submit-undertaking { background:var(--cream-dark); border-color:var(--border); }
body.dark-mode .submit-undertaking p { color:var(--text-secondary); }
body.dark-mode .submit-drop-zone { border-color:var(--border); color:var(--text-muted); }
body.dark-mode .review-detail-box { background:#0d1624; }
body.dark-mode .review-field input, body.dark-mode .review-field select, body.dark-mode .review-field textarea { background:#0a1520; color:#c8d8ea; border-color:var(--border); }
body.dark-mode .review-item { border-color:var(--border); }
body.dark-mode .review-item:hover { background:#0d1624; border-color:#8fa8c0; }
body.dark-mode .review-item-title { color:#c8d8ea; }
body.dark-mode .review-file-preview { background:var(--cream-dark); border-color:var(--border); }
body.dark-mode .review-btn-save { background:#0d1624; border-color:var(--border); color:var(--text-secondary); }
body.dark-mode .review-undertaking-display { background:var(--cream-dark); border-color:var(--border); }
body.dark-mode .editor-tab { color:var(--text-muted); }
body.dark-mode .editor-tab.active { color:#c8d8ea; }

/* -- PREMIUM CARD ENHANCEMENTS -- */
.article-card {
  cursor:pointer;
  transition:transform 0.22s cubic-bezier(.22,1,.36,1), box-shadow 0.22s ease;
  border-radius:1px;
}
.article-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 32px rgba(10,22,40,0.13);
}
.article-card:active { transform:translateY(0); }
.card-thumb-wrap img {
  opacity:0;
  transition:opacity 0.4s ease, transform 0.4s ease;
  transform-origin: top center;
  object-position: top center;
  object-fit: cover;
}
.card-thumb-wrap img.loaded { opacity:1; }
.article-card:hover .card-thumb-wrap img.loaded { transform:scale(1.04); }
.hero-thumb-img {
  width:100%;
  aspect-ratio:3/2;
  object-fit:cover;
  object-position:top center;
  border:1px solid var(--border-light);
  margin-bottom:14px;
  display:block;
  opacity:0;
  transition:opacity 0.45s ease, transform 0.4s ease;
  cursor:pointer;
}
.hero-thumb-img.loaded { opacity:1; }
.hero-main:hover .hero-thumb-img.loaded { transform:scale(1.02); }
.hero-thumb-frame {
  width:100%;
  height:var(--hero-thumb-height,276px);
  margin-bottom:14px;
  border:1px solid var(--border-light);
  border-radius:8px;
  background:linear-gradient(135deg,#eee7db 0%,#f8f4eb 54%,#e7dfd1 100%);
  overflow:hidden;
  display:block;
  cursor:pointer;
}
.hero-thumb-frame .hero-thumb-img {
  width:100%;
  height:100%;
  margin:0;
  border:0;
  border-radius:0;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:top center;
  background:transparent;
  transform-origin:top center;
  display:block;
}

/* Unified article thumbnail treatment: category-card look, scaled per section. */
.card-thumb-wrap,
.sidebar-thumb,
.live-feed-thumb,
.live-trending-thumb,
.related-thumb,
.article-reading-thumb,
.editor-published-thumb,
.search-item-thumb,
.spotlight-slide-img {
  position:relative;
  background-color:var(--thumb-placeholder-bg);
  background-image:linear-gradient(100deg, var(--thumb-placeholder-bg) 0%, var(--thumb-placeholder-mid) 42%, var(--thumb-placeholder-accent) 50%, var(--thumb-placeholder-mid) 58%, var(--thumb-placeholder-bg) 100%);
  background-size:220% 100%;
  border:1px solid var(--border-light);
  overflow:hidden;
}
.card-thumb-wrap img,
.sidebar-thumb img,
.live-feed-thumb img,
.live-trending-thumb img,
.related-thumb img,
.article-reading-thumb img,
.editor-published-thumb img,
.search-item-thumb img,
.spotlight-slide-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  transform-origin:top center;
  display:block;
  opacity:0;
  transition:opacity 0.4s ease, transform 0.4s ease;
  position:relative;
  z-index:1;
}
.card-thumb-wrap::before,
.sidebar-thumb::before,
.live-feed-thumb::before,
.live-trending-thumb::before,
.search-item-thumb::before,
.related-thumb::before,
.article-reading-thumb::before,
.editor-published-thumb::before,
.spotlight-slide-img::before {
  content:''; position:absolute; top:0; left:-150%; width:150%; height:100%;
  z-index:1; pointer-events:none;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  animation:thumbShimmer 1.25s infinite;
}
.card-thumb-wrap.thumb-loaded::before,
.sidebar-thumb.thumb-loaded::before,
.live-feed-thumb.thumb-loaded::before,
.live-trending-thumb.thumb-loaded::before,
.related-thumb.thumb-loaded::before,
.article-reading-thumb.thumb-loaded::before,
.editor-published-thumb.thumb-loaded::before,
.search-item-thumb.thumb-loaded::before,
.spotlight-slide-img.thumb-loaded::before {
  display:none;
}
.card-thumb-wrap img.loaded,
.sidebar-thumb img.loaded,
.live-feed-thumb img.loaded,
.live-trending-thumb img.loaded,
.related-thumb img.loaded,
.article-reading-thumb img.loaded,
.editor-published-thumb img.loaded,
.search-item-thumb img.loaded,
.spotlight-slide-img img.loaded {
  opacity:1;
  transform:scale(1);
}
.article-card:hover .card-thumb-wrap img.loaded,
.sidebar-thumb:hover img.loaded,
.live-feed-thumb:hover img.loaded,
.live-trending-thumb:hover img.loaded,
.related-thumb:hover img.loaded,
.article-reading-thumb:hover img.loaded,
.editor-published-thumb:hover img.loaded,
.search-item-thumb:hover img.loaded,
.spotlight-slide-img:hover img.loaded {
  transform:scale(1.04);
}

/* -- SIDEBAR ARTICLE HOVER -- */
.sidebar-article {
  transition:background 0.18s ease;
  border-radius:1px;
  padding:14px 6px;
}
.sidebar-article:hover { background:rgba(10,22,40,0.03); }

/* -- HERO IMAGE HOVER -- */
.hero-main img { transition:opacity 0.45s ease, transform 0.4s ease; object-position:top center; transform-origin:top center; }
.hero-main:hover img { transform:scale(1.02); }

/* Homepage surface system: separates each section and card from the page background. */
.hero-section,
.category-section,
#spotlight-section,
.author-dashboard-section,
.article-feed-band,
.article-end-panel {
  position:relative;
  background:linear-gradient(135deg,rgba(255,255,255,0.94) 0%,rgba(248,251,255,0.9) 62%,rgba(247,241,223,0.82) 100%);
  border:1px solid rgba(24,57,95,0.14);
  box-shadow:0 16px 38px rgba(10,22,40,0.065);
  padding:20px;
  border-radius:12px;
}
.modal-box, .login-box, .hero-section, .live-home-section,
.promo-home-preview-panel,
.author-dashboard-section, .about-box, .msg-sub-box,
.policy-box, .submit-box, .review-detail-box,
.category-section, #spotlight-section, .article-page-card,
.article-feed-band, .article-end-panel, .upload-box, .article-inline-spotlight,
.author-profile-card, .author-page-hero {
  position:relative;
  border-top:4px solid transparent !important;
  overflow:visible !important;
}
.modal-box::before, .login-box::before,
.promo-home-preview-panel::before, #subscribe-pop::before,
.about-box::before, .msg-sub-box::before,
.policy-box::before, .submit-box::before, .review-detail-box::before, .upload-box::before {
  content:"";
  position:absolute;
  inset: -4px 0 0 0;
  background:linear-gradient(to right, var(--navy) 0%, var(--gold) 100%);
  border-radius:inherit;
  padding: 4px 0 0 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index:10;
  pointer-events:none;
}
.live-home-section::before, .category-section::before, #spotlight-section::before, .article-page-card::before,
.article-feed-band::before, .article-end-panel::before, .join-box::before, .article-inline-spotlight::before,
.author-profile-card::before, .author-page-hero::before {
  content:none !important;
  display:none !important;
}
.live-home-section::before,
.hero-section::before,
.category-section::before,
#spotlight-section::before,
.author-dashboard-section::before,
.article-page-card::before,
.article-feed-band::before,
.article-end-panel::before,
.article-inline-spotlight::before,
.author-profile-card::before,
.author-page-hero::before {
  content:none !important;
  display:none !important;
}
.live-home-section,
.hero-section,
.category-section,
#spotlight-section,
.author-dashboard-section,
.article-page-card,
.article-feed-band,
.article-end-panel,
.article-inline-spotlight,
.author-profile-card,
.author-page-hero {
  border-top:4px solid var(--gold) !important;
}
.live-home-section::before,
.hero-section::before,
.category-section::before,
#spotlight-section::before,
.author-dashboard-section::before,
.article-page-card::before,
.article-feed-band::before,
.article-end-panel::before,
.join-box::before,
.article-inline-spotlight::before,
.author-profile-card::before,
.author-page-hero::before,
.article-page-card #article-page-author-profile .author-profile-card::before {
  content:none !important;
  display:none !important;
  background:none !important;
  -webkit-mask:none !important;
          mask:none !important;
}
.notice-board-section, .footer-inner, .newsletter-band {
  border-top: none !important;
}
.hero-section {
  padding-top:0;
  padding-bottom:0;
  border-bottom:1px solid rgba(24,57,95,0.14);
}
.hero-grid {
  gap:22px;
  align-items:stretch;
}
.hero-main {
  background:transparent;
  border:none;
  border-right:1px solid rgba(24,57,95,0.12);
  padding:22px;
  box-shadow:none;
  height:100%;
}
.hero-sidebar {
  padding-left:0;
}
.hero-main .hero-thumb-frame {
  width:100%;
  height:var(--hero-thumb-height,276px);
  margin-right:0;
  aspect-ratio:auto;
  background:var(--thumb-placeholder-bg);
}
.hero-main .hero-thumb-frame .hero-thumb-img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.sidebar-article,
.article-card,
.category-compass,
.compass-card,
.insight-question,
.insight-climate,
.insight-note {
  background:rgba(255,255,255,0.82);
  border:none;
  box-shadow:0 8px 22px rgba(10,22,40,0.045);
}
.sidebar-article {
  min-height:128px;
  padding:16px 14px;
  margin-bottom:12px;
  border-radius:18px;
  background:#ffffff;
  border:none;
  box-shadow:0 6px 24px rgba(0,0,0,0.06);
  transition:transform 0.3s cubic-bezier(.25,.46,.45,.94), box-shadow 0.3s ease, background 0.3s ease;
}
.sidebar-article:last-child {
  border:none;
}
.sidebar-article:hover {
  background:#ffffff;
  transform:translateY(-3px);
  box-shadow:0 12px 36px rgba(0,0,0,0.12);
}
.hero-sidebar .section-label {
  display:block;
  width:100%;
  margin-bottom:10px;
}
.hero-sidebar .sidebar-thumb {
  width:112px;
}
.hero-sidebar .sidebar-article {
  grid-template-columns:112px minmax(0,1fr);
  gap:18px;
  align-items:center;
}
.hero-sidebar .sidebar-article > div:not(.sidebar-thumb) {
  min-width:0;
}
.hero-sidebar .sidebar-headline {
  font-size:18px;
  line-height:1.26;
  overflow-wrap:break-word;
}
.hero-sidebar .sidebar-meta {
  font-size:11px;
  overflow-wrap:break-word;
}
.hero-main .hero-headline {
  font-size: clamp(20px, 1.8vw + 12px, 32px);
  text-justify: inter-word;
}
.hero-main .hero-excerpt {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.hero-main .hero-excerpt.expanded {
  display:block;
  overflow:visible;
  -webkit-line-clamp:unset;
}
.hero-expand-btn {
  background:none;
  border:none;
  padding:0;
  margin-top:8px;
  cursor:pointer;
  font-family:'Lato',sans-serif;
  font-size:10px;
  font-weight:800;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--navy-light);
}
.hero-expand-btn:hover { color:var(--gold); }
.article-card {
  padding:16px;
  transition:transform 0.3s cubic-bezier(.25,.46,.45,.94), box-shadow 0.3s ease, background 0.3s ease;
}
.article-card:hover {
  background:#ffffff;
}
.spotlight-slide.spot-active {
  background:rgba(255,255,255,0.68);
  border:1px solid rgba(24,57,95,0.1);
  box-shadow:0 10px 26px rgba(10,22,40,0.04);
  padding:18px;
}
#spotlight-section .spotlight-slide.spot-active {
  display:grid;
  grid-template-columns:minmax(230px,32%) minmax(0,1fr);
  align-items:center;
  gap:26px;
  min-height:260px;
  padding:22px;
  overflow:hidden;
}
#spotlight-section .spotlight-slide.spot-active .spotlight-slide-img {
  width:100%;
  max-width:330px;
  justify-self:center;
  align-self:center;
}
#spotlight-section .spotlight-slide-body {
  min-width:0;
  max-width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
}
#spotlight-section .spotlight-paper-title,
#spotlight-section .spotlight-excerpt {
  overflow-wrap:break-word;
}
.category-compass {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:78px;
  padding:13px 16px;
  background:
    linear-gradient(135deg,rgba(255,255,255,0.94) 0%,rgba(247,251,255,0.92) 58%,rgba(246,239,216,0.95) 100%);
  border-left:1px solid rgba(201,168,76,0.6);
}
.category-compass::after {
  content:'';
  position:absolute;
  right:-48px;
  top:-48px;
  width:150px;
  height:150px;
  border:1px solid rgba(201,168,76,0.22);
  border-radius:50%;
  background:linear-gradient(135deg,transparent 42%,rgba(201,168,76,0.16) 43% 47%,transparent 48%);
  z-index:-1;
}
.category-compass-kicker {
  color:#9b7a25;
}
.category-compass-kicker::before {
  content:'';
  display:inline-block;
  width:7px;
  height:7px;
  margin-right:7px;
  border-radius:50%;
  background:#c9a84c;
  box-shadow:0 0 0 2px rgba(201,168,76,0.16);
  vertical-align:1px;
}
.category-compass:hover .category-compass-kicker::before {
  background:#f4d474;
  box-shadow:0 0 0 5px rgba(201,168,76,0.22);
}
.category-compass-title {
  font-size:19px;
}
.category-compass-meta {
  border:1px solid rgba(201,168,76,0.38);
  background:rgba(255,255,255,0.72);
  padding:6px 9px;
}
@media(max-width:900px) {
  .hero-section,
  .category-section,
  #spotlight-section,
  .author-dashboard-section {
    padding:14px;
  }
  .hero-main {
    padding:14px;
    border-right:1px solid rgba(24,57,95,0.12);
  }
  .hero-main .hero-thumb-frame {
    width:100%;
    height:clamp(190px,52vw,276px);
    aspect-ratio:3/2;
  }
  .hero-main .hero-thumb-frame .hero-thumb-img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:top center;
  }
  .hero-sidebar {
    padding-left:0;
  }
  .hero-sidebar .section-label {
    padding-left:8px;
    font-size:clamp(11px, 2.8vw, 13px);
  }
  .hero-sidebar .sidebar-article {
    grid-template-columns:112px minmax(0,1fr);
    gap:14px;
    align-items:center;
  }

  .hero-sidebar .sidebar-thumb {
    width:112px;
  }
  .hero-sidebar .sidebar-headline {
    font-size:clamp(14px, 4vw, 17px);
    line-height:1.2;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .hero-sidebar .sidebar-cat {
    font-size:9.5px;
    margin-bottom:5px;
  }
  .hero-sidebar .sidebar-meta {
    font-size:clamp(10px,3vw,12px);
    line-height:1.45;
    letter-spacing:0.05em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  .hero-sidebar .sidebar-meta .meta-sep {
    display: inline-block;
  }
  .live-feed-item {
    grid-template-columns:112px minmax(0,1fr);
    gap:14px;
    align-items:center;
  }
  .live-feed-thumb {
    width:112px;
  }
  .spotlight-slide.spot-active {
    padding:12px;
  }
  #spotlight-section .spotlight-slide.spot-active {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-height:0;
    gap:14px;
    padding:12px;
  }
  #spotlight-section .spotlight-slide.spot-active .spotlight-slide-img {
    max-width:none;
  }
  .category-compass {
    padding:13px 14px;
    align-items:flex-start;
    flex-direction:column;
  }
  .category-compass-meta {
    white-space:normal;
  }
}
body.dark-mode .category-section,
body.dark-mode #spotlight-section,
body.dark-mode .author-dashboard-section,
body.dark-mode .article-feed-band,
body.dark-mode .article-end-panel {
  background:linear-gradient(135deg,#0a1520 0%,#0d1826 62%,#101d2d 100%);
  border:1px solid #2b4564;
  border-top:3px solid #c9a84c;
  box-shadow:0 16px 38px rgba(0,0,0,0.2);
}
body.dark-mode .hero-section {
  border-color:#2b4564;
  border-top-color:#c9a84c;
}
body.dark-mode .sidebar-article,
body.dark-mode .article-card,
body.dark-mode .category-compass,
body.dark-mode .compass-card,
body.dark-mode .insight-question,
body.dark-mode .insight-climate,
body.dark-mode .insight-note,
body.dark-mode .spotlight-slide.spot-active {
  background:#0d1624;
  border:none;
  box-shadow:0 6px 24px rgba(0,0,0,0.3);
}
body.dark-mode .sidebar-article:hover,
body.dark-mode .article-card:hover {
  background:#111e2e;
  box-shadow:0 12px 36px rgba(0,0,0,0.45);
}
body.dark-mode .category-compass-meta {
  background:#0a1520;
  border-color:#2b4564;
}

/* -- MODAL OPEN/CLOSE animation override for category filter -- */
#hero-section { transition:opacity 0.25s ease; }

/* -- MODAL NAV PREV/NEXT ARROWS -- */
.modal-nav-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0 2px; gap:8px;
}
.modal-nav-btn {
  background:var(--navy); color:var(--gold-light); border:1px solid var(--gold);
  font-family:'Lato',sans-serif; font-size:12px; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; padding:8px 18px; cursor:pointer;
  transition:background 0.18s, color 0.18s; flex:1; max-width:160px;
}
.modal-nav-btn:hover { background:var(--gold); color:var(--navy); }
.modal-nav-btn.hidden { visibility:hidden; pointer-events:none; }
@media(max-width:900px) {
  .modal-nav-btn { font-size:11px; padding:7px 12px; }
}


/* -- CARD THUMB CLICK CURSOR (images & PDFs) -- */
.card-thumb-wrap { cursor:pointer; }
.card-thumb-placeholder { cursor:pointer; }

/* -- HERO IMAGE CURSOR -- */
.hero-main img { cursor:pointer; }

/* -- MASTHEAD SUBMIT CTA -- */
.masthead-submit-cta {
  display:inline-flex; align-items:center; gap:5px;
  font-family:'Lato',sans-serif;
  font-size:clamp(7px,1.1vw,10.5px); font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase;
  color:var(--navy);
  background:transparent;
  border:1.5px solid var(--navy);
  border-radius:4px;
  padding:clamp(4px,0.6vw,6px) clamp(8px,1.4vw,16px);
  cursor:pointer;
  white-space:nowrap;
  transition:background 0.18s, color 0.18s, border-color 0.18s;
}
.masthead-submit-cta:hover {
  background:var(--navy);
  color:#fff;
}
.masthead-submit-cta:active {
  opacity:0.8;
}

/* -- ARTICLE PREVIEW PANEL -- */
#sub-preview-section {
  display:none;
  margin-top:18px;
  margin-bottom:18px;
}
.preview-section-title {
  font-family:'Playfair Display',serif; font-size:18px; font-weight:700;
  color:var(--navy); margin-bottom:6px;
  padding-bottom:8px; border-bottom:2px solid var(--gold);
  display:flex; align-items:center; gap:10px;
}
.preview-section-title .preview-badge {
  font-family:'Lato',sans-serif; font-size:9px; font-weight:700;
  letter-spacing:0.18em; text-transform:uppercase;
  background:var(--gold); color:var(--navy);
  padding:3px 9px; border-radius:1px;
}
.preview-sub {
  font-family:'Lato',sans-serif; font-size:11px; color:var(--text-muted);
  margin-bottom:14px; line-height:1.6;
}
#article-preview-canvas-wrap {
  width:100%; border:2px solid var(--border);
  background:#ffffff; position:relative;
  min-height:120px; display:flex; align-items:center; justify-content:center;
  overflow:hidden; cursor:zoom-in;
}
#article-preview-canvas-wrap canvas,
#article-preview-canvas-wrap img {
  width:100%; height:auto; display:block;
}
#preview-generating {
  position:absolute; inset:0; background:rgba(255,255,255,0.92);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; font-family:'Lato',sans-serif; font-size:12px; color:var(--text-muted);
  z-index:2;
}
#preview-generating.hidden { display:none; }
.preview-action-row {
  display:flex; gap:12px; margin-top:16px;
  flex-wrap:wrap;
}
.btn-preview-edit {
  flex:1; min-width:140px;
  background:#fff; color:var(--navy);
  border:2px solid var(--navy);
  font-family:'Lato',sans-serif; font-size:11.5px; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase;
  padding:12px 20px; cursor:pointer;
  transition:background 0.18s, color 0.18s;
}
.btn-preview-edit:hover { background:var(--navy); color:#fff; }
.btn-preview-confirm {
  flex:2; min-width:200px;
  background:var(--navy); color:#fff;
  border:2px solid var(--navy);
  font-family:'Lato',sans-serif; font-size:12px; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase;
  padding:13px 24px; cursor:pointer;
  transition:background 0.18s, box-shadow 0.18s;
  display:flex; align-items:center; justify-content:center; gap:8px;
  position:relative; overflow:hidden;
}
.btn-preview-confirm::after {
  content:''; position:absolute;
  bottom:0; left:0; right:0; height:3px;
  background:var(--gold);
}
.btn-preview-confirm:hover { background:var(--navy-light); box-shadow:0 4px 16px rgba(10,22,40,0.22); }
.btn-preview-confirm:disabled { opacity:0.6; cursor:not-allowed; }

/* -- MODAL RICH TEXT BODY -- */
.modal-rich-body { font-family:'EB Garamond',serif; font-size:18px; line-height:1.85; color:var(--text-secondary); margin-top:8px; }
.modal-rich-body h2 { font-family:'Playfair Display',serif; font-size:22px; font-weight:700; color:var(--navy); margin:20px 0 10px; border-bottom:1px solid var(--border-light); padding-bottom:6px; }
.modal-rich-body h3 { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; color:var(--navy); margin:16px 0 8px; }
.modal-rich-body blockquote { border-left:4px solid var(--gold); padding:10px 20px; margin:14px 0; background:var(--cream); font-style:italic; color:var(--text-secondary); border-radius:1px; }
.modal-rich-body ul, .modal-rich-body ol { padding-left:24px; margin:10px 0; }
.modal-rich-body p { margin-bottom:12px; }
.modal-rich-body a { color:var(--navy-light); text-decoration:underline; }
.modal-rich-body strong { color:var(--navy); }

/* Final dark-theme contrast pass: keep all panels, hovers, form controls, and inline legacy colors readable. */
body.dark-mode a:not(.nav-logo):not(.btn-upload-nav):not(.btn-join-nav):not(.footer-col a):not(.article-reading-list a),
body.dark-mode button.linklike {
  color:#f0ce73;
}
body.dark-mode a:hover:not(.nav-logo):not(.btn-upload-nav):not(.btn-join-nav),
body.dark-mode button.linklike:hover {
  color:#fff1b8;
}
body.dark-mode [style*="color:var(--navy)"],
body.dark-mode [style*="color: var(--navy)"],
body.dark-mode [style*="color:#0a1628"],
body.dark-mode [style*="color: #0a1628"],
body.dark-mode [style*="color:#10243a"],
body.dark-mode [style*="color: #10243a"],
body.dark-mode [style*="color:#18395f"],
body.dark-mode [style*="color: #18395f"] {
  color:#d8e2ee !important;
}
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #ffffff"] {
  background:#0a1520 !important;
}
body.dark-mode [style*="border:1px solid var(--border)"],
body.dark-mode [style*="border: 1px solid var(--border)"] {
  border-color:#2b4564 !important;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode [contenteditable="true"] {
  background:#0a1520;
  color:#d8e2ee;
  border-color:#2b4564;
  caret-color:#f0ce73;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color:#7890a8;
  opacity:1;
}
body.dark-mode select option,
body.dark-mode select optgroup {
  background:#0a1520;
  color:#d8e2ee;
}
body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus,
body.dark-mode [contenteditable="true"]:focus {
  border-color:#f0ce73 !important;
  outline:1px solid rgba(240,206,115,0.35);
  box-shadow:0 0 0 3px rgba(240,206,115,0.08);
}
:root {
  --typing-field-cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20'%3E%3Cpath d='M6 2v16M4 2h4M4 18h4' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='square'/%3E%3C/svg%3E") 6 10, text;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
[contenteditable="true"],
[contenteditable="true"] *,
.rich-editor-area,
.rich-editor-area:hover,
.rich-editor-area .ProseMirror,
.rich-editor-area .ProseMirror * {
  caret-color:#000 !important;
  cursor:var(--typing-field-cursor) !important;
}
body .rich-editor-area,
body.dark-mode .rich-editor-area {
  --rte-text-cursor:var(--typing-field-cursor) !important;
}
body.dark-mode .upload-box,
body.dark-mode .submit-box,
body.dark-mode .review-detail-box,
body.dark-mode .review-list,
body.dark-mode .subs-panel,
body.dark-mode .join-box,
body.dark-mode .login-box,
body.dark-mode .about-box,
body.dark-mode .policy-box {
  background:#0d1624;
  color:#d8e2ee;
  border-color:#2b4564;
}
/* join-box is a grid container; individual panels handle their own dark-mode bg */
body.dark-mode .join-box { border-color:#2b4564; }
body.dark-mode .submit-title,
body.dark-mode .submit-section-title,
body.dark-mode .preview-section-title,
body.dark-mode .review-detail-title,
body.dark-mode .review-section-title,
body.dark-mode .editor-panel h3,
body.dark-mode .modal-rich-body h2,
body.dark-mode .modal-rich-body h3,
body.dark-mode .modal-rich-body strong {
  color:#d8e2ee;
}
body.dark-mode .submit-sub,
body.dark-mode .submit-form-row label,
body.dark-mode .form-row label,
body.dark-mode .review-field label,
body.dark-mode .silent-note,
body.dark-mode .preview-sub,
body.dark-mode .modal-rich-body,
body.dark-mode .modal-rich-body p,
body.dark-mode .modal-rich-body li {
  color:#a9bdd2;
}
body.dark-mode .submit-rule,
body.dark-mode .review-divider,
body.dark-mode .modal-toolbar,
body.dark-mode .cat-header,
body.dark-mode .hero-section,
body.dark-mode .category-section {
  border-color:#2b4564;
}
body.dark-mode .drop-zone,
body.dark-mode .submit-drop-zone,
body.dark-mode .review-replace-drop,
body.dark-mode .silent-row,
body.dark-mode .review-undertaking-display {
  background:#0a1520;
  border-color:#2b4564;
  color:#a9bdd2;
}
body.dark-mode .drop-zone:hover,
body.dark-mode .drop-zone.dragover,
body.dark-mode .submit-drop-zone:hover,
body.dark-mode .review-replace-drop:hover,
body.dark-mode .silent-row:hover,
body.dark-mode .article-card:hover,
body.dark-mode .sidebar-article:hover,
body.dark-mode .search-item:hover,
body.dark-mode .review-item:hover,
body.dark-mode .related-card:hover,
body.dark-mode .live-trending-card:hover,
body.dark-mode .compass-card:hover {
  background:#111e2e !important;
  border-color:#c9a84c !important;
  color:#d8e2ee;
}
body.dark-mode .ownership-btn,
body.dark-mode .upload-mode-btn,
body.dark-mode .editor-tab,
body.dark-mode .cat-show-more-btn,
body.dark-mode .subs-toggle-btn,
body.dark-mode .author-profile-login-btn {
  background:#0a1520;
  color:#b7c8dc;
  border-color:#2b4564;
}
body.dark-mode .ownership-btn:hover,
body.dark-mode .upload-mode-btn:hover,
body.dark-mode .editor-tab:hover,
body.dark-mode .cat-show-more-btn:hover,
body.dark-mode .subs-toggle-btn:hover,
body.dark-mode .author-profile-login-btn:hover {
  background:#111e2e;
  color:#f0ce73;
  border-color:#c9a84c;
}
body.dark-mode .ownership-btn.selected,
body.dark-mode .upload-mode-btn.selected,
body.dark-mode .editor-tab.active {
  background:#1c3560;
  color:#fff1b8;
  border-color:#c9a84c;
}
body.dark-mode .btn-preview-edit,
body.dark-mode .review-btn-save,
body.dark-mode .review-btn-delete,
body.dark-mode .article-cta-btn.secondary,
body.dark-mode .live-chip,
body.dark-mode .article-topic-chip,
body.dark-mode .compass-strip button {
  background:#0a1520;
  color:#d8e2ee;
  border-color:#2b4564;
}
body.dark-mode .btn-preview-edit:hover,
body.dark-mode .review-btn-save:hover,
body.dark-mode .review-btn-delete:hover,
body.dark-mode .article-cta-btn.secondary:hover,
body.dark-mode .live-chip:hover,
body.dark-mode .article-topic-chip:hover,
body.dark-mode .compass-strip button:hover {
  background:#1c3560;
  color:#fff1b8;
  border-color:#c9a84c;
}
body.dark-mode .modal-rich-body blockquote,
body.dark-mode .contact-block,
body.dark-mode .article-cta-row,
body.dark-mode .article-explore-panel,
body.dark-mode .related-card,
body.dark-mode .search-dropdown,
body.dark-mode #search-popup-inner {
  background:#0a1520;
  color:#a9bdd2;
  border-color:#2b4564;
}
body.dark-mode .card-headline,
body.dark-mode .hero-headline,
body.dark-mode .sidebar-headline,
body.dark-mode .related-card-title,
body.dark-mode .search-item-title,
body.dark-mode .modal-title,
body.dark-mode .article-reading-list a {
  color:#d8e2ee;
}
body.dark-mode .related-card { background:#0d1624; border:none; box-shadow:0 6px 24px rgba(0,0,0,0.3); }
body.dark-mode .card-meta,
body.dark-mode .card-excerpt,
body.dark-mode .search-item-meta,
body.dark-mode .search-item-snippet,
body.dark-mode .related-card-meta {
  color:#9fb3c8;
}
body.dark-mode .btn-primary,
body.dark-mode .btn-preview-confirm,
body.dark-mode .review-btn-publish,
body.dark-mode .submit-btn-primary {
  background:#c9a84c;
  color:#07111d;
  border-color:#c9a84c;
}
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-preview-confirm:hover,
body.dark-mode .review-btn-publish:hover,
body.dark-mode .submit-btn-primary:hover {
  background:#e6c976;
  color:#07111d;
  border-color:#e6c976;
}

/* Editor tab dark-mode repair: prevent pale loading/list blocks when switching tabs. */
body.dark-mode :where(#panel-review, #panel-published, #review-list, #published-list, #review-loading, #published-loading) {
  background:#0d1624 !important;
  color:#d8e2ee;
}
body.dark-mode :where(#review-loading, #published-loading) .skeleton,
body.dark-mode .skeleton {
  background:linear-gradient(90deg,#07111d 25%,#10243a 50%,#07111d 75%) !important;
  background-size:200% 100% !important;
}
body.dark-mode .skeleton-card {
  background:#0a1520 !important;
  border-color:#2b4564 !important;
}
body.dark-mode :where(.review-item, .published-editor-item, .review-empty) {
  background:#07111d !important;
  border-color:#2b4564 !important;
  color:#d8e2ee !important;
}
body.dark-mode :where(.review-item-meta, .review-empty, .published-editor-body) {
  color:#9fb3c8 !important;
}
body.dark-mode :where(.review-item-title, .published-editor-title) {
  color:#d8e2ee !important;
}
body.dark-mode .editor-published-thumb {
  background:#07111d !important;
  background-image:linear-gradient(100deg,#07111d 0%,#10243a 42%,rgba(201,168,76,0.18) 50%,#10243a 58%,#07111d 100%) !important;
  border-color:#2b4564 !important;
  color:#9fb3c8 !important;
}
body.dark-mode .article-preview-loading {
  background:#07111d !important;
  border-color:#2b4564 !important;
  color:#b7c8dc !important;
}
body.dark-mode .article-preview-loading-title {
  color:#f0ce73 !important;
}
body.dark-mode .article-preview-loading-bar {
  background:#0a1520 !important;
  border:1px solid #2b4564 !important;
  box-shadow:inset 0 0 0 1px rgba(240,206,115,0.08) !important;
}
body.dark-mode .article-preview-loading-bar span {
  background:linear-gradient(90deg,#f0ce73 0%,#23d3ee 100%) !important;
  box-shadow:0 0 12px rgba(35,211,238,0.38) !important;
}

/* -- RESPONSIVE AUDIT FIXES: MOBILE/TABLET ONLY -- */
@media (max-width:1024px) {
  .site-wrap,
  .article-page-shell,
  .article-page-extension {
    width:100%;
    max-width:100%;
  }
  .hero-grid,
  .articles-row,
  .article-feed-grid,
  .footer-top,
  .submit-2col,
  .review-detail-grid {
    min-width:0;
  }
  .hero-headline,
  .card-headline,
  .sidebar-headline,
  .spotlight-title,
  .article-reader-title,
  .written-article-title,
  .author-profile-name,
  .author-page-name {
    overflow-wrap:anywhere;
  }
  .article-page-card,
  .article-feed-band,
  .hero-section,
  .category-section,
  #spotlight-section,
  .author-dashboard-section {
    max-width:100%;
  }
}

@media (max-width:900px) {
  body {
    font-size:16px;
    line-height:1.62;
  }
  .site-logo-banner img {
    min-height:72px;
    object-fit:cover;
    object-position:center top;
  }
  .masthead {
    padding-left:14px;
    padding-right:14px;
  }
  .masthead-title {
    line-height:1.22;
  }
  #main-nav .nav-inner {
    width:100%;
    min-width:0;
  }
  .nav-logo {
    flex:0 0 auto;
    font-size:16px;
    padding:8px 10px 8px;
  }
  .hamburger {
    min-width:36px;
    min-height:36px;
    padding:6px 8px;
    display:flex !important;
    align-items:center;
    justify-content:center;
  }
  .nav-right {
    min-width:0;
    margin-left:auto;
    padding:0 8px 0 4px;
    gap:4px;
    flex-shrink:1;
  }
  .search-toggle-btn,
  .btn-join-nav,
  .btn-upload-nav {
    min-width:30px;
    min-height:28px;
    padding:3px 8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
  }
  #main-nav .btn-join-nav .btn-label-full {
    display:none;
  }
  #main-nav .btn-join-nav .btn-label-short {
    display:inline;
  }
  #main-nav .btn-upload-nav .btn-label-editor {
    display:none;
  }
  .ticker-inner {
    min-width:0;
    gap:10px;
    padding:0 12px;
  }
  .ticker-text {
    min-width:0;
  }
  .hero-section,
  .category-section,
  .author-dashboard-section,
  .article-feed-band {
    padding:16px;
    margin-bottom:24px;
  }
  #spotlight-section {
    padding:16px;
    margin-bottom:36px;
  }
  .hero-grid,
  .compass-layout,
  .compass-head,
  .marketing-video-grid {
    grid-template-columns:1fr;
  }
  .hero-main,
  .hero-sidebar .sidebar-article,
  .live-feed-item,
  .article-card,
  .spotlight-slide.spot-active,
  .article-feed-card {
    min-width:0;
  }
  .hero-headline {
    font-size:clamp(22px,7vw,32px);
    line-height:1.18;
  }
  .card-headline {
    font-size:18px;
    line-height:1.3;
  }
  .card-excerpt,
  .sidebar-excerpt,
  .article-feed-card-meta {
    font-size:15px;
    line-height:1.55;
  }
  .cat-header {
    align-items:baseline;
    gap:12px;
  }
  .cat-title {
    min-width:0;
    overflow-wrap:anywhere;
  }
  .cat-more,
  .cat-show-more-btn,
  .btn-primary,
  .submit-btn-primary,
  .review-btn-publish,
  .review-btn-save,
  .review-btn-delete {
    min-height:44px;
  }
  .article-page-card {
    padding:24px 16px 28px;
  }
  .written-article-title,
  .article-reader-title {
    font-size:clamp(32px,10vw,52px);
    line-height:1.08;
  }
  .written-article-brief,
  .article-reader-brief {
    font-size:20px;
    line-height:1.45;
  }
  .written-article-body,
  .article-reader-shell .modal-rich-body {
    padding:24px 18px;
    font-size:17px;
    line-height:1.75;
  }
  .written-article-cover,
  .article-reader-cover {
    margin:18px auto 24px;
  }
  .article-action-top,
  .article-page-card .article-action-top {
    grid-template-columns:1fr;
  }
  .share-services-row,
  .article-page-card .share-services-row {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }
  .share-services-row .share-btn,
  .article-page-card .share-btn,
  .article-page-card .like-btn {
    min-height:44px;
    padding-left:6px;
    padding-right:6px;
  }
  .modal-overlay,
  .submit-overlay,
  .upload-overlay,
  .review-detail-overlay,
  .policy-overlay,
  .about-overlay,
  .join-overlay,
  .login-overlay,
  .msg-sub-overlay {
    padding-left:12px;
    padding-right:12px;
  }
  .modal-box,
  .submit-box,
  .upload-box,
  .review-detail-box,
  .policy-box,
  .about-box,
  .join-box,
  .login-box,
  .msg-sub-box {
    max-width:100%;
    min-width:0;
  }
  .form-row input,
  .form-row select,
  .form-row textarea,
  .submit-form-row input,
  .submit-form-row select,
  .submit-form-row textarea,
  .review-field input,
  .review-field select,
  .review-field textarea,
  .join-box input,
  .login-box input {
    min-height:44px;
    font-size:16px;
    line-height:1.45;
  }
  .article-cover-preset-grid {
    grid-template-columns:1fr;
  }
  .article-cover-tool-row {
    align-items:stretch;
  }
  .article-cover-tool-btn {
    min-height:40px;
    flex:1 1 auto;
  }
  .promo-mode-row,
  .promo-image-item {
    grid-template-columns:1fr;
  }
  .promo-image-thumb {
    width:100%;
  }
}

@media (max-width:480px) {
  .site-wrap {
    padding-left:10px;
    padding-right:10px;
  }
  .topbar {
    grid-template-columns:minmax(0,1fr) auto;
    gap:5px;
    padding-left:8px;
    padding-right:8px;
  }
  .topbar span {
    font-size:8px;
    letter-spacing:0.05em;
  }
  /* masthead-meta stays 3-col at all sizes — handled in base CSS */
  .nav-logo {
    font-size:15px;
    padding-left:10px;
    padding-right:10px;
  }
  .nav-right {
    padding-right:6px;
    gap:3px;
  }
  .btn-join-nav {
    letter-spacing:0.05em;
  }
  .ticker-inner {
    padding-left:8px;
    padding-right:8px;
  }
  .ticker-label {
    flex:0 0 auto;
  }
  .hero-section,
  .category-section,
  #spotlight-section,
  .author-dashboard-section,
  .article-feed-band {
    padding:14px;
  }
  .hero-sidebar .sidebar-article,
  .live-feed-item {
    grid-template-columns:106px minmax(0,1fr);
    gap:12px;
  }
  .hero-sidebar .sidebar-thumb,
  .live-feed-thumb {
    width:106px;
  }
  .article-card {
    padding:14px;
  }
  .cat-header {
    flex-direction:column;
  }
  .cat-count {
    align-self:flex-start;
  }
  .article-page-shell {
    padding-left:8px;
    padding-right:8px;
  }
  .article-page-card {
    padding:22px 14px 26px;
  }
  .written-article-title,
  .article-reader-title {
    font-size:clamp(28px,8.8vw,38px);
    line-height:1.12;
  }
  .written-article-brief,
  .article-reader-brief {
    font-size:19px;
  }
  .written-article-body,
  .article-reader-shell .modal-rich-body {
    padding:22px 16px;
  }
  .share-services-row .share-btn,
  .article-page-card .share-services-row .share-btn {
    font-size:8.5px;
    letter-spacing:0.03em;
  }
  .submit-overlay,
  .review-detail-overlay,
  .upload-overlay,
  .modal-overlay {
    padding:0;
  }
  .submit-box,
  .review-detail-box,
  .upload-box,
  .modal-box {
    min-height:100vh;
    border-top-width:3px;
    padding-left:16px;
    padding-right:16px;
  }
  @supports (height:100dvh) {
    .submit-box,
    .review-detail-box,
    .upload-box,
    .modal-box {
      min-height:100dvh;
    }
  }
  .join-overlay,
  .login-overlay,
  .msg-sub-overlay {
    padding:12px;
  }
  #subscribe-pop-overlay {
    padding:12px;
  }
  #subscribe-pop {
    max-width:100%;
    padding:30px 18px 24px;
  }
  #subscribe-pop .pop-close {
    min-width:40px;
    min-height:40px;
  }
  .pop-title {
    font-size:19px;
    line-height:1.25;
  }
  .pop-body {
    font-size:16px;
    line-height:1.55;
  }
  .pop-row {
    flex-direction:column;
  }
  .pop-row input,
  .pop-row button,
  #pop-name {
    min-height:44px;
    width:100%;
  }
  .pop-row button {
    padding:0 14px;
  }
  #search-overlay {
    padding:16px 10px 0;
  }
  #search-popup-box {
    width:100%;
    max-height:calc(100dvh - 32px);
  }
  #search-popup-inner svg {
    margin-left:12px;
  }
  .search-item {
    gap:10px;
  }
  .search-item-title {
    font-size:15px;
    line-height:1.35;
    overflow-wrap:anywhere;
  }
  footer {
    padding-left:18px;
    padding-right:18px;
  }
  .footer-top {
    grid-template-columns:1fr;
  }
  .footer-bottom {
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .footer-bottom > p:first-child {
    flex:1 1 auto;
    min-width:0;
    line-height:1.45;
  }
  .footer-status {
    flex:0 0 auto;
    justify-content:flex-end;
    text-align:right;
  }
  #mode-bar {
    right:12px;
    bottom:18px;
  }
  #back-to-top {
    left:14px;
    bottom:18px;
  }
}

@media (max-width:360px) {
  .nav-logo {
    font-size:14px;
    padding-left:8px;
    padding-right:8px;
  }
  .hamburger {
    min-width:40px;
    padding-left:8px;
    padding-right:8px;
  }
  .search-toggle-btn,
  .btn-join-nav,
  .btn-upload-nav {
    min-width:38px;
    padding-left:8px;
    padding-right:8px;
  }
  #main-nav .btn-join-nav .btn-label-short,
  #main-nav .btn-join-nav .btn-label-full,
  #main-nav .btn-upload-nav .btn-label-editor {
    display:none !important;
  }
  .written-article-title,
  .article-reader-title {
    font-size:clamp(27px,8.4vw,34px);
    line-height:1.14;
  }
  .hero-sidebar .sidebar-article,
  .live-feed-item {
    grid-template-columns:96px minmax(0,1fr);
    gap:10px;
  }
  .hero-sidebar .sidebar-thumb,
  .live-feed-thumb {
    width:96px;
  }
  .card-headline {
    font-size:17px;
  }
  .share-services-row,
  .article-page-card .share-services-row {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .submit-box,
  .review-detail-box,
  .upload-box,
  .modal-box {
    padding-left:14px;
    padding-right:14px;
  }
  /* join-box padding handled by panel-level CSS */
}

/* -- PREMIUM UI REFINEMENT LAYER -- */
:root {
  --offwhite:#fbfaf7;
  --cream:#f5f0e8;
  --cream-dark:#ede5d8;
  --border:#d9d2c6;
  --border-light:#ebe5dc;
  --site-frame:min(1400px, calc(100vw - 2in));
  --document-frame:980px;
}
@media (max-width:1100px) {
  :root { --site-frame:calc(100vw - 2in); }
}
@media (max-width:900px) {
  :root { --site-frame:calc(100vw - 32px); }
}
@media (max-width:480px) {
  :root { --site-frame:100%; }
}

html { background:#fbfaf7; overflow-x:hidden; -webkit-text-size-adjust:100%; }
body {
  background:linear-gradient(180deg,#fffdf9 0%,var(--offwhite) 42%,#f7f3ec 100%);
  font-size:16.5px;
  line-height:1.68;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body,
.modal-content,
.written-article-body,
.article-reader-shell .modal-rich-body,
.rich-editor-area {
  overflow-wrap:break-word;
}

.site-logo-banner {
  background:#081426 !important;
  aspect-ratio:1942 / 809;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.site-logo-banner img {
  width:100% !important;
  height:auto !important;
  max-height:none;
  object-fit:contain;
  object-position:center center;
  transform: translateZ(0);
}

.topbar {
  padding:5px clamp(14px,3vw,28px);
  border-top:0;
  border-bottom:1px solid rgba(212,175,106,0.32);
}
.masthead {
  padding:clamp(16px,2.2vw,24px) clamp(14px,3vw,32px) clamp(12px,1.6vw,18px);
  border-bottom:1px solid rgba(10,22,40,0.28);
}
.masthead-rule-top,
.masthead-rule-bot {
  border-top-color:rgba(10,22,40,0.22);
}
.masthead-title {
  max-width:980px;
  margin:0 auto;
}
.masthead-sub,
.masthead-founder {
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.masthead-submit-cta,
.btn-upload-nav,
.btn-join-nav,
.btn-primary,
.btn-cancel,
.submit-btn-primary,
.review-btn-save,
.review-btn-publish,
.review-btn-delete,
.cat-show-more-btn,
.article-cta-btn,
.share-btn,
.like-btn,
.modal-tool-btn,
.modal-icon-btn,
.article-page-back {
  border-radius:6px;
}

#main-nav {
  border-bottom:1px solid rgba(212,175,106,0.72);
}
#main-nav.nav-fixed {
  box-shadow:0 8px 24px rgba(5,12,24,0.14);
}
.nav-inner {
  min-height:48px;
}
.nav-links a {
  padding-top:14px;
  padding-bottom:14px;
}
.btn-upload-nav,
.btn-join-nav,
.search-toggle-btn {
  min-height:36px;
}
.ticker-bar {
  background:rgba(237,229,216,0.82);
  border-bottom:1px solid rgba(10,22,40,0.08);
  padding:5px 0;
}
.ticker-label {
  border-radius:999px;
  padding:2px 8px;
  font-size:9px;
}
.ticker-text {
  font-size:11px;
}

.site-wrap {
  padding:0 clamp(14px,2vw,24px);
}
.hero-section {
  padding:clamp(24px,3vw,34px) 0 0;
  margin-bottom:clamp(28px,4vw,44px);
  border-bottom:1px solid rgba(10,22,40,0.13);
}
.hero-grid {
  gap:clamp(22px,3vw,36px);
}
.hero-main {
  padding-right:22px;
  border-right:1px solid rgba(10,22,40,0.12);
}
.hero-sidebar {
  padding-left:0;
}
.section-label {
  border-bottom:1px solid rgba(30,58,110,0.34);
}
.hero-thumb-img,
.card-thumb-wrap,
.sidebar-thumb,
.live-feed-thumb,
.live-trending-thumb,
.related-thumb,
.article-reading-thumb,
.article-feed-thumb,
.spotlight-slide-img,
.marketing-video-frame,
.notice-board-card,
.written-article-cover,
.article-reader-cover,
.modal-img,
.article-page-card .modal-img {
  border-radius:8px;
}
.hero-headline,
.cat-title,
.card-headline,
.sidebar-headline,
.article-feed-card-title,
.related-card-title {
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.hero-excerpt,
.card-excerpt,
.article-end-note,
.marketing-video-sub,
.submit-sub {
  color:#34465b;
}

.category-section {
  margin-bottom:clamp(34px,4vw,52px);
  padding-bottom:clamp(28px,3vw,40px);
  border-bottom:1px solid rgba(10,22,40,0.13);
}
.cat-header {
  margin-bottom:18px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(10,22,40,0.24);
}
.category-section.category-single .cat-title {
  letter-spacing:0;
}
.articles-row {
  gap:clamp(20px,2.4vw,30px);
}
.article-card {
  border-radius:18px;
  background:#ffffff;
  border:none;
  box-shadow:0 6px 24px rgba(0,0,0,0.06);
}
.article-card:hover {
  transform:translateY(-3px);
  box-shadow:0 12px 36px rgba(0,0,0,0.12);
}
.article-card:hover .card-thumb-wrap img {
  transform:scale(1.025);
}
.card-thumb-wrap,
.sidebar-thumb,
.live-feed-thumb,
.live-trending-thumb,
.related-thumb,
.article-reading-thumb,
.article-feed-thumb {
  border-color:rgba(10,22,40,0.10);
}
.category-compass,
.live-home-section,
.notice-board-section,
.marketing-video-section,
.author-dashboard-section,
.author-profile-card,
.author-page-hero,
.article-feed-band,
.article-end-panel,
.article-inline-spotlight,
.related-card,
.article-feed-card,
.live-stat,
.live-trending-card,
.compass-card {
  border-radius:8px;
  border-color:rgba(24,57,95,0.12);
  background:#fffdf9;
  box-shadow:none;
}
.category-compass,
.live-home-section,
.notice-board-section,
.marketing-video-section,
.article-inline-spotlight,
.author-dashboard-section {
  background:linear-gradient(180deg,#fffdf9,#faf7f1);
}
.category-compass:hover,
.live-trending-card:hover,
.compass-card:hover {
  box-shadow:none;
  transform:translateY(-1px);
}
.article-feed-card:hover,
.related-card:hover {
  transform:translateY(-3px);
  box-shadow:0 12px 36px rgba(0,0,0,0.12);
}

.live-pulse,
.live-trend-icon,
.live-trend-icon::after,
.trend-line,
.trend-dot,
.pulse-orbit,
.research-symbol,
.research-globe {
  animation:none !important;
}
.insight-engine-panel,
.research-intel-panel,
.research-pulse-panel,
.live-knowledge-card {
  box-shadow:none;
}

.modal-overlay,
.upload-overlay,
.submit-overlay,
.review-detail-overlay,
.policy-overlay,
.about-overlay,
.join-overlay,
.login-overlay,
.msg-sub-overlay,
#search-overlay,
#subscribe-pop-overlay {
  background:rgba(5,12,24,0.68);
  backdrop-filter:blur(8px);
}
.modal-box,
.upload-box,
.submit-box,
.review-detail-box,
.policy-box,
.about-box,
.login-box,
.msg-sub-box,
#subscribe-pop,
#search-popup-box {
  border-radius:8px;
  border:1px solid rgba(217,210,198,0.9);
  border-top:3px solid var(--gold);
  box-shadow:0 24px 80px rgba(5,12,24,0.22);
}
.join-box {
  border-radius:14px;
  border:1px solid rgba(217,210,198,0.9);
  box-shadow:0 24px 80px rgba(5,12,24,0.22);
}
.upload-box,
.review-detail-box {
  border-top-color:var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea,
.submit-form-row input,
.submit-form-row select,
.submit-form-row textarea,
.review-field input,
.review-field select,
.review-field textarea,
.join-box input,
.login-box input,
.msg-sub-row input,
.msg-sub-row textarea,
.rich-editor-area,
.submit-docx-zone,
.submit-drop-zone,
.drop-zone {
  border-radius:6px;
  border-color:rgba(10,22,40,0.16);
  background:#fff;
}
.form-row input,
.form-row select,
.submit-form-row input,
.submit-form-row select,
.review-field input,
.review-field select,
.join-box input,
.login-box input {
  min-height:44px;
}
body.dark-mode .rich-editor-area mark {
  background:#695923;
  color:#fff3c7;
}
body.dark-mode .rte-btn > mark {
  border-color:#f0ce73;
  background:#e8cf70 !important;
  color:#07111d !important;
  box-shadow:0 0 0 1px rgba(240,206,115,0.18);
}
.location-native-select {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
  overflow:hidden !important;
}
.location-combobox { position:relative; width:100%; }
.location-combobox-input {
  width:100%;
  min-height:44px;
  padding-right:42px !important;
}
.location-combobox-toggle {
  position:absolute;
  top:0;
  right:0;
  width:42px;
  height:44px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--text-secondary);
  cursor:pointer;
}
.location-combobox-toggle svg {
  width:16px;
  height:16px;
  transition:transform 0.16s ease;
}
.location-combobox.open .location-combobox-toggle svg { transform:rotate(180deg); }
.location-combobox-list {
  display:none;
  position:absolute;
  z-index:120;
  top:calc(100% + 4px);
  left:0;
  right:0;
  max-height:264px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:4px;
  border:1px solid rgba(10,22,40,0.2);
  border-radius:6px;
  background:#fff;
  box-shadow:0 14px 34px rgba(5,12,24,0.18);
}
.location-combobox.open .location-combobox-list { display:block; }
.location-combobox-option {
  width:100%;
  min-height:38px;
  padding:8px 10px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:var(--text-primary);
  font-family:'EB Garamond',serif;
  font-size:16px;
  line-height:1.25;
  text-align:left;
  cursor:pointer;
}
.location-combobox-option:hover,
.location-combobox-option.active,
.location-combobox-option[aria-selected="true"] { background:var(--cream); }
.location-combobox-empty {
  padding:10px;
  color:var(--text-muted);
  font-family:'Lato',sans-serif;
  font-size:12px;
  line-height:1.45;
}
body.dark-mode .location-combobox-list {
  border-color:var(--border);
  background:#0a1520;
  box-shadow:0 14px 34px rgba(0,0,0,0.42);
}
body.dark-mode .location-combobox-option { color:#c8d8ea; }
body.dark-mode .location-combobox-option:hover,
body.dark-mode .location-combobox-option.active,
body.dark-mode .location-combobox-option[aria-selected="true"] { background:var(--cream); }
@media(max-width:560px) { .location-combobox-list { max-height:220px; } }
.drop-zone,
.submit-drop-zone,
.submit-docx-zone {
  border-width:1px;
  padding:clamp(18px,3vw,28px) 16px;
}
.rich-editor-toolbar,
.rte-word-counter,
.article-write-panel,
.article-cover-tools {
  border-color:rgba(10,22,40,0.14);
  background:#f7f2ea;
}
.rte-btn,
.ownership-btn,
.upload-mode-btn,
.article-mode-btn,
.promo-mode-btn,
.article-cover-tool-btn,
.article-cover-preset {
  border-radius:6px;
}

.article-page-section {
  background:linear-gradient(180deg,#fbfaf7 0%,#f7f3ec 100%);
  background-size:auto;
}
.article-page-shell {
  padding:0 clamp(14px,2.4vw,28px);
}
.article-page-card {
  background:#fffdf9;
  background-size:auto;
  border:1px solid rgba(24,57,95,0.12);
  border-top:3px solid var(--gold);
  border-radius:8px;
  padding:clamp(22px,3.4vw,42px);
}
.written-article-title,
.article-reader-title {
  max-width:960px;
}
.written-article-brief,
.article-reader-brief {
  max-width:880px;
}
.written-article-body,
.article-reader-shell .modal-rich-body {
  max-width:920px;
  margin-left:auto;
  margin-right:auto;
  background:#fff;
  border-color:rgba(10,22,40,0.12);
  border-radius:8px;
  box-shadow:none;
}
.article-page-card .modal-mobile-actions {
  border-radius:8px;
  box-shadow:none;
}
.share-btn,
.like-btn,
.modal-tool-btn,
.modal-icon-btn {
  background:rgba(255,255,255,0.72);
  border-color:rgba(24,57,95,0.16);
}
.share-btn:hover,
.like-btn:hover,
.modal-tool-btn:hover,
.modal-icon-btn:hover {
  background:#fff;
  transform:translateY(-1px);
}
.empty-state,
.loading-state {
  border-radius:8px;
  border-color:rgba(10,22,40,0.14);
  background:rgba(255,255,255,0.44);
}
.article-not-found {
  width:min(100%, 720px);
  margin:clamp(24px,6vw,72px) auto;
  padding:clamp(34px,6vw,64px) clamp(20px,5vw,52px);
  border:1px solid rgba(10,22,40,0.14);
  border-top:4px solid var(--gold);
  background:#fffdf9;
  color:#5f7082;
  box-shadow:0 18px 48px rgba(10,22,40,0.08);
  font-style:normal;
}
.article-not-found-kicker {
  margin-bottom:8px;
  color:#9b7a25;
  font-family:'Lato',sans-serif;
  font-size:10px;
  font-weight:900;
  letter-spacing:0.16em;
  text-transform:uppercase;
}
.article-not-found-title {
  margin:0 0 12px;
  color:#10243a;
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(28px,4vw,44px);
  font-weight:800;
  line-height:1.12;
}
.article-not-found-copy {
  max-width:48ch;
  margin:0 auto 24px;
  color:#5f7082;
  font-size:17px;
  line-height:1.6;
}
.article-not-found .article-page-back { margin:0; }
body.dark-mode #article-page-section.open .article-not-found {
  border-color:#2b4564;
  border-top-color:#c9a84c;
  background:#0d1624;
  color:#a9bdd2;
  box-shadow:0 22px 58px rgba(0,0,0,0.38);
}
body.dark-mode #article-page-section.open .article-not-found-kicker { color:#f0ce73; }
body.dark-mode #article-page-section.open .article-not-found-title { color:#d8e2ee; }
body.dark-mode #article-page-section.open .article-not-found-copy { color:#a9bdd2; }
body.dark-mode #article-page-section.open .article-not-found .article-page-back {
  border-color:#466684;
  background:#07111d;
  color:#e3edf7;
  box-shadow:0 8px 22px rgba(0,0,0,0.3);
}
body.dark-mode #article-page-section.open .article-not-found .article-page-back:hover {
  border-color:#d4af6a;
  background:#132a48;
  color:#fff1b8;
}
@media(max-width:640px) {
  .article-not-found {
    width:calc(100% - 24px);
    margin:24px auto;
    padding:34px 18px;
  }
  .article-not-found-copy { font-size:16px; }
}

footer {
  margin-top:clamp(42px,5vw,68px);
  padding:clamp(34px,4vw,46px) clamp(18px,4vw,32px) 22px;
  border-top:1px solid rgba(212,175,106,0.28);
}
.footer-top {
  gap:clamp(24px,4vw,48px);
}

body.dark-mode .category-compass,
body.dark-mode .live-home-section,
body.dark-mode .notice-board-section,
body.dark-mode .marketing-video-section,
body.dark-mode .author-dashboard-section,
body.dark-mode .author-profile-card,
body.dark-mode .author-page-hero,
body.dark-mode .article-feed-band,
body.dark-mode .article-end-panel,
body.dark-mode .article-inline-spotlight,
body.dark-mode .article-feed-card,
body.dark-mode .related-card,
body.dark-mode .article-page-card,
body.dark-mode .written-article-body,
body.dark-mode .article-reader-shell .modal-rich-body {
  box-shadow:none;
}

@media (max-width:900px) {
  .site-logo-banner img {
    max-height:none;
  }
  .hero-grid {
    gap:24px;
  }
  .article-feed-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .footer-top {
    grid-template-columns:1.4fr 1fr 1fr;
  }
}

@media (max-width:900px) {
  body {
    font-size:16px;
    line-height:1.64;
  }
  .insight-engine-panel {
    margin: 0 -25px -25px;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
  }
  .site-logo-banner img {
    max-height:none;
  }
  .topbar {
    padding:5px 10px;
  }
  .masthead {
    padding-top:16px;
  }
  .nav-inner {
    min-height:50px;
  }
  .nav-links {
    box-shadow:0 18px 36px rgba(5,12,24,0.18);
  }
  .nav-links a {
    min-height:44px;
    display:flex;
    align-items:center;
  }
  .hero-section {
    padding:20px 0 0;
    margin-bottom:22px;
  }
  #spotlight-section,
  .author-dashboard-section,
  .article-feed-band,
  .article-end-panel,
  .live-home-section,
  .category-section,
  .notice-board-section,
  .marketing-video-section {
    padding:18px;
  }
  .hero-main {
    border-right:none;
    padding-bottom:22px;
    margin-bottom:0;
    border-bottom:1px solid rgba(10,22,40,0.12);
  }
  .hero-sidebar {
    gap:2px;
  }
  .sidebar-article,
  .live-feed-item,
  .related-card,
  .article-reading-list a {
    grid-template-columns:84px minmax(0,1fr);
    gap:11px;
  }
  .hero-sidebar .sidebar-article:last-child {
    margin-bottom:0;
  }
  .sidebar-thumb,
  .live-feed-thumb,
  .related-thumb,
  .article-reading-thumb {
    width:84px;
  }
  .articles-row,
  .article-feed-grid,
  .related-grid {
    grid-template-columns:1fr;
    gap:52px;
  }
  .article-feed-grid:not(.expanded) .article-feed-card:nth-child(n+5),
  .article-feed-grid.expanded .article-feed-card:nth-child(n+5) {
    display:none;
  }
  .article-card {
    padding:10px;
    padding-bottom:14px;
    box-shadow:0 6px 20px rgba(10,22,40,0.07);
    border:1px solid rgba(10,22,40,0.04);
    overflow:hidden;
  }
  .article-card .card-cat,
  .article-card .card-headline,
  .article-card .card-meta,
  .article-card .card-excerpt {
    padding-left:0;
    padding-right:0;
  }
  .card-thumb-wrap {
    border-radius: 10px;
  }
  .cat-header {
    flex-direction:row;
    align-items:baseline;
    justify-content:space-between;
    padding-bottom:0;
  }
  .category-compass {
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .category-compass-title {
    font-size:15px;
    line-height:1.35;
  }
  .category-compass-meta {
    white-space:normal;
    font-size:9.5px;
    padding:4px 7px;
  }
  .author-profile-stats,
  .author-page-stats {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .live-stats-row {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
  }
  .live-stat {
    padding:8px 4px;
  }
  .live-stat strong {
    font-size:clamp(14px, 4vw, 20px);
  }
  .live-stat span {
    font-size:clamp(7px, 2.2vw, 8.5px);
  }
  .author-profile-stat span,
  .author-page-stat span {
    white-space:normal;
    line-height:1.25;
  }
  .modal-box,
  .upload-box,
  .submit-box,
  .review-detail-box,
  .policy-box,
  .about-box {
    padding:24px 18px 32px;
  }
  .submit-2col,
  .review-detail-grid {
    grid-template-columns:1fr;
  }
  .author-ownership,
  .upload-mode-row,
  .article-mode-row {
    flex-direction:column;
    gap:8px;
  }
  .ownership-btn,
  .upload-mode-btn,
  .article-mode-btn {
    min-width:0;
    width:100%;
    min-height:44px;
  }
  .article-write-panel {
    padding:14px 0 0;
  }
  .article-write-panel label {
    padding-left:12px;
  }
  .article-write-panel .rich-editor-area {
    min-height:clamp(420px, 62vh, 560px);
    max-height:clamp(420px, 66vh, 620px);
    padding:22px 24px;
  }
  .written-article-body,
  .article-reader-shell .modal-rich-body {
    padding:22px 18px;
  }
  .footer-top {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:520px) {
  .site-wrap {
    padding-left:14px;
    padding-right:14px;
  }
  .topbar {
    grid-template-columns:1fr auto;
  }
  .topbar-place {
    display:inline;
  }
  /* masthead-meta stays 3-col — no collapse */
  /* Normal phone: show icon + "Subscribe" (hide "Join & Subscribe" full label) */
  .btn-join-nav .btn-label-full {
    display:none !important;
  }
  .btn-join-nav .btn-label-short {
    display:inline !important;
  }
  .btn-upload-nav .btn-label-editor {
    display:none !important;
  }
  .btn-join-nav,
  .btn-upload-nav,
  .search-toggle-btn {
    min-width:42px;
    padding-left:10px;
    padding-right:10px;
  }
  .article-write-panel {
    padding:12px 0 0;
  }
  .article-write-panel .rich-editor-area {
    min-height:clamp(320px, 54vh, 430px);
    max-height:clamp(320px, 58vh, 430px);
    padding:15px 13px;
  }
  .hero-headline {
    font-size:clamp(23px,7.2vw,31px);
  }
  .card-headline {
    font-size:18px;
  }
  .hero-sidebar .sidebar-article,
  .live-feed-item,
  .related-card,
  .article-reading-list a {
    grid-template-columns:78px minmax(0,1fr);
  }
  .hero-sidebar .sidebar-thumb,
  .live-feed-thumb,
  .related-thumb,
  .article-reading-thumb {
    width:78px;
  }
  .modal-overlay,
  .submit-overlay,
  .upload-overlay,
  .review-detail-overlay {
    padding:0;
  }
  .modal-box,
  .submit-box,
  .upload-box,
  .review-detail-box {
    border-radius:0;
    border-left:0;
    border-right:0;
    min-height:100vh;
  }
  @supports (height:100dvh) {
    .modal-box,
    .submit-box,
    .upload-box,
    .review-detail-box {
      min-height:100dvh;
    }
  }
  .share-services-row,
  .article-page-card .share-services-row {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .article-page-card {
    padding:20px 16px 28px;
  }
  .article-page-card .modal-mobile-actions {
    padding:14px;
  }
  .written-article-title,
  .article-reader-title {
    font-size:clamp(28px,8.4vw,38px);
  }
  .written-article-brief,
  .article-reader-brief {
    font-size:18px;
  }
  .footer-top {
    grid-template-columns:1fr 1fr;
  }
  .footer-brand-block {
    grid-column:1 / -1;
  }
}

@media (max-width:360px) {
  .site-wrap {
    padding-left:12px;
    padding-right:12px;
  }
  .nav-logo {
    font-size:15px;
  }
  .search-toggle-btn,
  .btn-join-nav,
  .btn-upload-nav {
    min-width:38px;
  }
  .hero-sidebar .sidebar-article,
  .live-feed-item,
  .related-card,
  .article-reading-list a {
    grid-template-columns:70px minmax(0,1fr);
  }
  .hero-sidebar .sidebar-thumb,
  .live-feed-thumb,
  .related-thumb,
  .article-reading-thumb {
    width:70px;
  }
  .share-services-row,
  .article-page-card .share-services-row {
    grid-template-columns:1fr;
  }
  .footer-bottom {
    gap:8px;
  }
  .footer-bottom > p:first-child {
    font-size:10px;
  }
  .footer-visitor {
    font-size:10px;
  }
}

/* -- RESPONSIVE PRECISION PASS -- */
html {
  scroll-padding-top:calc(var(--nav-fixed-height) + 14px);
}
body {
  font-size:clamp(15.5px, 0.24vw + 15px, 17px);
}
:where(.site-wrap,.hero-grid,.hero-main,.hero-sidebar,.articles-row,.article-card,.article-feed-grid,.article-feed-card,.related-grid,.related-card,.footer-top,.nav-inner,.nav-links,.nav-right,.modal-box,.submit-box,.upload-box,.review-detail-box,.policy-box,.about-box,.join-box,.login-box) {
  min-width:0;
}
:where(p,li,h1,h2,h3,h4,a,button,span,strong,em,label,input,textarea,select,.card-headline,.sidebar-headline,.article-feed-card-title,.related-card-title,.written-article-title,.article-reader-title) {
  overflow-wrap:break-word;
}
.google-auto-placed,
.adsbygoogle {
  display:block;
  max-width:100%;
  min-height:90px;
  contain:layout paint;
}
.google-auto-placed {
  margin:clamp(28px,4vw,52px) auto;
}
.google-auto-placed > ins,
ins.adsbygoogle[data-ad-status="filled"] {
  border-top:1px solid rgba(24,57,95,0.10);
  border-bottom:1px solid rgba(24,57,95,0.10);
  background:rgba(255,253,248,0.58);
  padding:12px 0;
}
.article-page-card .google-auto-placed,
.modal-content .google-auto-placed {
  margin:clamp(24px,3vw,42px) auto;
}
@media (max-width:900px) {
  .google-auto-placed,
  .adsbygoogle {
    min-height:72px;
  }
  .google-auto-placed {
    margin:30px auto;
  }
  .google-auto-placed > ins,
  ins.adsbygoogle[data-ad-status="filled"] {
    padding:8px 0;
  }
}
#main-nav {
  transform:translate3d(0,0,0);
  transition:transform 0.38s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}
#main-nav.nav-fixed {
  background:rgba(10,22,40,0.97);
  border-bottom-color:rgba(212,175,106,0.64);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  will-change:transform;
  isolation:isolate;
}
#main-nav.nav-hidden {
  transform:translate3d(0,-100%,0);
}
.hero-headline { font-size:clamp(24px, 2vw + 14px, 38px); }
.cat-title { font-size:clamp(26px, 1.5vw + 20px, 38px); }
.card-headline,
.article-feed-card-title { font-size:clamp(16.5px, 0.35vw + 15px, 18.5px); }
.sidebar-headline,
.live-feed-title,
.related-card-title { font-size:clamp(14.5px, 0.28vw + 13px, 16.5px); }
.written-article-title,
.article-reader-title { font-size:clamp(30px, 3.2vw + 12px, 56px); }
.written-article-body,
.article-reader-shell .modal-rich-body,
.modal-content { font-size:clamp(16.5px, 0.34vw + 15px, 18.5px); }
.form-row label,
.submit-form-row label,
.review-field label,
.msg-sub-row label { letter-spacing:0.08em; }
.form-row input,
.form-row select,
.form-row textarea,
.submit-form-row input,
.submit-form-row select,
.submit-form-row textarea,
.review-field input,
.review-field select,
.review-field textarea {
  max-width:100%;
}
.modal-file-frame {
  max-width:100%;
  min-height:520px;
}
.article-actions,
.share-row,
.article-cta-actions,
.author-profile-actions,
.article-cover-tool-row {
  min-width:0;
}
.article-actions > *,
.share-row > *,
.article-cta-actions > *,
.author-profile-actions > * {
  min-width:0;
}
#subscribe-pop-overlay {
  padding:clamp(12px, 4vw, 24px);
}
#subscribe-pop {
  width:min(420px, 100%);
  max-width:100%;
  overflow:hidden;
}
#subscribe-pop,
.pop-title,
.pop-body,
.pop-row,
.pop-row input,
#pop-name {
  min-width:0;
  max-width:100%;
}
.pop-title,
.pop-body {
  overflow-wrap:break-word;
}
.pop-body {
  line-height:1.5;
}
.pop-row {
  align-items:stretch;
}
.pop-row input {
  flex:1 1 180px;
}
.pop-row button {
  flex:0 0 auto;
}
.btn-primary,
.btn-cancel,
.submit-btn-primary,
.review-btn-save,
.review-btn-publish,
.review-btn-delete,
.share-btn,
.like-btn,
.article-cta-btn,
.cat-show-more-btn {
  transition:transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover,
.submit-btn-primary:hover,
.review-btn-publish:hover,
.cat-show-more-btn:hover {
  transform:translateY(-1px);
}
@media (min-width:769px) {
  .nav-links {
    display:flex !important;
    max-height:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }
}
@media (max-width:900px) {
  html { scroll-padding-top:calc(var(--nav-fixed-height) + 10px); }
  .nav-inner {
    gap:2px;
  }
  .nav-links {
    display:flex !important;
    max-height:0;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-6px);
    overflow:hidden;
    transition:max-height 0.28s cubic-bezier(.22,1,.36,1), opacity 0.18s ease, transform 0.24s ease, visibility 0.18s ease;
  }
  .nav-links.mob-open {
    max-height:min(72vh, 520px);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
    overflow-y:auto;
  }
  .nav-links a {
    white-space:nowrap;
    line-height:1.25;
  }
  .nav-right {
    flex:1 1 auto;
    justify-content:flex-end;
  }
  .hero-excerpt,
  .card-excerpt,
  .article-end-note,
  .submit-sub {
    font-size:clamp(14.5px, 1vw + 12px, 16px);
  }
  .modal-file-frame {
    min-height:70vh;
  }
  #subscribe-pop {
    padding:30px 18px 24px;
  }
  .pop-row {
    flex-direction:column;
  }
  .pop-row input,
  .pop-row button,
  #pop-name {
    width:100%;
    min-height:44px;
  }
  .notice-board-card.active {
    transform:translate(-50%,-50%) scale(1);
  }
}
@media (max-width:520px) {
  .hero-headline { font-size:clamp(22px, 6.8vw, 30px); }
  .written-article-title,
  .article-reader-title { font-size:clamp(27px, 8.2vw, 38px); }
  .written-article-body,
  .article-reader-shell .modal-rich-body,
  .modal-content { line-height:1.72; }
  .share-btn, .like-btn { white-space:normal; line-height:1.2; }
}
@media (max-width:360px) {
  .masthead-meta { padding-inline:4px; }
}

/* -- TARGETED EDITORIAL LAYOUT PASS -- */
/* nav position is managed by JS spacer system */
.article-page-shell,
.article-page-extension {
  max-width:var(--site-frame);
  width:100%;
}
.article-page-card {
  width:100%;
  padding:clamp(22px, 2.45vw, 38px);
}
#article-page-content,
#article-page-content .written-article-shell,
#article-page-content .article-reader-shell {
  width:100%;
  max-width:none;
}
.written-article-shell {
  background:transparent;
}
.written-article-brief,
.article-reader-brief {
  max-width:none;
}
.written-article-cover,
.article-reader-cover {
  max-width:100%;
  border-radius:8px;
}
.written-article-cover {
  margin:24px 0 26px;
  border:0;
  background:transparent;
}
.written-article-body,
.article-reader-shell .modal-rich-body {
  max-width:none;
}
.written-article-body {
  background:transparent;
  border:0;
  box-shadow:none;
  padding:4px 0 0;
  margin:0;
}
.written-article-body:not(.expanded)::after {
  background:linear-gradient(to bottom, rgba(255,253,248,0), rgba(255,253,248,0.96) 76%);
  height:132px;
}
.written-read-more {
  margin:18px auto 30px;
  border:1px solid rgba(24,57,95,0.16);
  border-radius:999px;
  padding:10px 18px;
  background:rgba(255,255,255,0.86);
  box-shadow:0 10px 24px rgba(10,22,40,0.06);
}
.written-article-body:not(.expanded) + .written-read-more {
  margin-top:-42px;
  margin-bottom:38px;
}
.article-page-card .modal-mobile-actions {
  clear:both;
  margin-top:clamp(28px, 3vw, 44px);
}
.card-thumb-wrap,
.sidebar-thumb,
.live-feed-thumb,
.live-trending-thumb,
.related-thumb,
.article-reading-thumb,
.search-item-thumb {
  overflow:hidden;
  isolation:isolate;
}
.article-card:hover .card-thumb-wrap img.loaded,
.sidebar-article:hover .sidebar-thumb img.loaded,
.live-feed-item:hover .live-feed-thumb img.loaded {
  transform:scale(1.035);
}
.live-home-grid {
  grid-template-columns:minmax(0,1fr) minmax(360px,0.98fr);
  gap:clamp(18px, 2.4vw, 32px);
  align-items:stretch;
}
.live-feed-list {
  display:grid;
  gap:14px;
  border-left:0;
  padding-left:0;
}
.live-feed-item {
  grid-template-columns:112px minmax(0,1fr);
  gap:15px;
  padding:10px 0 14px;
  border-bottom:1px solid rgba(24,57,95,0.11);
}
.live-feed-item::before {
  display:none;
}
.live-feed-thumb {
  width:112px;
  border-radius:7px;
}
.live-feed-title {
  font-size:clamp(16px, 0.34vw + 14px, 18px);
  line-height:1.22;
}
.cat-show-more-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  min-width:min(100%, 248px);
  padding:10px 20px;
  border:1px solid rgba(24,57,95,0.14);
  border-radius:999px;
  background:rgba(255,255,255,0.78);
  color:#10243a;
  box-shadow:0 10px 24px rgba(10,22,40,0.055);
  letter-spacing:0.08em;
}
.cat-show-more-btn small {
  font-size:10px;
  color:#7a8795;
  letter-spacing:0.04em;
  text-transform:none;
  font-weight:700;
}
.cat-show-more-btn:hover {
  background:#ffffff;
  color:#10243a;
  border-color:rgba(24,57,95,0.3);
  box-shadow:0 14px 30px rgba(10,22,40,0.12);
}
.cat-show-more-btn:hover small {
  color:#10243a;
}
body.dark-mode .written-article-body {
  background:transparent;
  border-color:transparent;
}
body.dark-mode .written-article-body:not(.expanded)::after {
  background:linear-gradient(to bottom, rgba(13,22,36,0), #0d1624 76%);
}
body.dark-mode .cat-show-more-btn {
  background:#0a1520;
  color:#d8e2ee;
  border-color:#2b4564;
}
@media (min-width:1101px) {
  .articles-row {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:900px) {
  .live-home-grid {
    grid-template-columns:1fr;
  }
  .live-feed-item {
    grid-template-columns:108px minmax(0,1fr);
  }
  .live-feed-thumb {
    width:108px;
  }
  .live-feed-item > div:last-child {
    padding-left:8px;
  }
  .lfm-author { display:block; margin-top:3px; }
  .live-feed-title {
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:16.5px;
  }
}
@media (max-width:640px) {
  .article-page-shell,
  .article-page-extension {
    padding:0 12px;
  }
  .article-page-card {
    padding:22px 14px 28px;
  }
  .written-article-cover,
  .article-reader-cover {
    margin:18px 0 22px;
  }
  .written-read-more {
    width:min(100%, 230px);
  }
}

/* Restore the classic live research desk composition. */
.live-home-section {
  border-radius:16px;
  background:linear-gradient(135deg,#fff 0%,#f8fbff 60%,#f7f1df 100%);
  padding:24px;
}
.live-home-grid {
  grid-template-columns:minmax(0,1.2fr) minmax(420px,1fr);
  gap:18px;
  align-items:start;
}
.live-stat { border-radius:6px; }
.live-feed-thumb { border-radius:6px; }
.live-chip { border-radius:5px; }
.insight-engine-panel { border-radius:8px; }
.insight-prism-wrap { border-radius:6px; }
.insight-time { border-radius:4px; }
.insight-question,
.insight-climate,
.insight-note,
.insight-quote-card { border-radius:6px; }
.insight-action { border-radius:5px; }
.live-feed-list {
  display:block;
  border-left:2px solid rgba(201,168,76,0.45);
  padding-left:14px;
}
.live-feed-item {
  grid-template-columns:120px minmax(0,1fr);
  gap:14px;
  padding:0 0 13px;
  border-bottom:0;
}
.live-feed-item::before {
  display:block;
}
.live-feed-thumb {
  width:120px;
}
.live-feed-title {
  font-size:18px;
  line-height:1.22;
  text-decoration-line:underline;
  text-decoration-color:transparent;
  text-decoration-thickness:1.5px;
  text-underline-offset:4px;
  text-decoration-skip-ink:auto;
  transition:text-decoration-color 0.18s ease;
}
.live-feed-item:hover .live-feed-title,
.live-feed-item:focus .live-feed-title,
.live-feed-item:focus-visible .live-feed-title {
  text-decoration-color:#9b7a25;
}
.insight-engine-panel {
  min-height:0;
  border:none;
  background:
    radial-gradient(circle at 72% 18%,rgba(95,168,232,0.14),transparent 30%),
    radial-gradient(circle at 28% 82%,rgba(201,168,76,0.18),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,0.92),rgba(247,250,253,0.82));
  box-shadow:0 16px 34px rgba(10,22,40,0.08);
}
.insight-head {
  padding:17px 20px 8px;
}
.insight-title {
  font-size:31px;
}
.insight-time {
  background:rgba(255,255,255,0.62);
}
.insight-stage {
  grid-template-columns:minmax(230px,0.96fr) minmax(210px,0.9fr);
  gap:18px;
  padding:8px 20px 14px;
}
.insight-prism-wrap {
  min-height:306px;
}
.insight-scan {
  animation:insightScan 4.4s ease-in-out infinite;
}
.insight-prism {
  animation:insightPrism 5.8s ease-in-out infinite;
}
.insight-prism-wrap::before {
  animation:insightSpin 13s linear infinite;
}
.insight-word {
  animation:insightFloat 6s ease-in-out infinite, insightWordScan 4.4s ease-in-out infinite;
}
.insight-question,
.insight-climate,
.insight-note {
  background:rgba(255,255,255,0.68);
  box-shadow:none;
}
.insight-footer {
  padding:0 20px 14px;
}
.insight-quote-card {
  margin:6px 20px 20px;
}
body.dark-mode .live-home-section {
  background:linear-gradient(135deg,#07111f,#0d1624 58%,#07101b);
  box-shadow:none;
}
body.dark-mode .insight-engine-panel {
  background:
    radial-gradient(circle at 72% 18%,rgba(95,168,232,0.15),transparent 32%),
    radial-gradient(circle at 28% 82%,rgba(201,168,76,0.14),transparent 34%),
    linear-gradient(135deg,#07111f,#0d1624 58%,#07101b);
  box-shadow:none;
}
@media (max-width:900px) {
  .live-home-grid {
    grid-template-columns:1fr;
  }
  .insight-engine-panel {
    margin: 0 -25px -25px;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
  }
}
@media (max-width:900px) {
  .live-home-section,
  .hero-section,
  #spotlight-section,
  .category-section,
  .article-page-card,
  .article-feed-band:not(.article-cta-section),
  .article-end-panel,
  .article-inline-spotlight,
  .author-dashboard-section,
  .author-profile-card,
  .author-page-hero {
    width: 98vw !important;
    max-width: none !important;
    margin-left: calc(50% - 49vw) !important;
    margin-right: calc(50% - 49vw) !important;
  }
  .article-page-card {
    border-radius: 12px !important;
  }
  .live-home-title {
    font-size: clamp(15px, 4.8vw, 22px);
  }
  .article-page-shell > .article-page-back,
  .article-page-shell > .article-page-topline {
    margin-left: calc(50% - 49vw) !important;
    width: 98vw !important;
    padding-left: 14px;
    box-sizing: border-box;
  }
  .insight-stage {
    display:contents;
  }
  .insight-prism-wrap {
    min-height:230px;
  }
}
@media (max-width:640px) {
  .live-feed-item {
    grid-template-columns:96px minmax(0,1fr);
  }
  .live-feed-thumb {
    width:96px;
  }
  .insight-title {
    font-size:24px;
  }
}

/* Notice Board fan layout and centered subscribe panels. */
.join-overlay,
#subscribe-pop-overlay {
  align-items:center;
  justify-content:center;
  padding:20px;
}
.join-box,
#subscribe-pop {
  width:min(400px, calc(100vw - 40px));
  max-width:400px;
  border-radius:14px;
  border:1px solid rgba(217,210,198,0.9);
  background:#fff;
  box-shadow:0 24px 80px rgba(5,12,24,0.22);
  text-align:center;
}
#subscribe-pop {
  padding:24px 36px 24px;
}
#subscribe-pop .join-close-btn.pop-close {
  position:absolute;
  top:14px;
  right:14px;
  width:28px;
  height:28px;
  border:none;
  border-radius:50%;
  background:rgba(10,22,40,0.06);
  color:var(--text-muted);
  font-size:16px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
#subscribe-pop .join-close-btn.pop-close:hover {
  background:rgba(10,22,40,0.12);
  color:var(--text-muted);
}
.pop-kicker {
  font-family:'Cinzel',Georgia,serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:14px;
}
.subscribe-short-logo {
  width:52px;
  height:52px;
  object-fit:contain;
  display:block;
  margin:0 auto 12px;
}
.pop-title {
  font-family:'Playfair Display',serif;
  font-size:22px;
  font-weight:700;
  color:var(--navy);
  line-height:1.25;
  margin-bottom:8px;
}
.pop-body {
  font-family:'Lato',sans-serif;
  font-size:13px;
  color:var(--text-muted);
  line-height:1.6;
  margin-bottom:24px;
}

/* Final balance pass for nav weight and subscribe header stack. */
#main-nav .nav-links a {
  font-weight:800;
}
body.dark-mode #main-nav .nav-links a {
  color:#c5d2e0 !important;
}
body.dark-mode #main-nav .nav-links a:hover,
body.dark-mode #main-nav .nav-links a.active {
  color:#ffffff !important;
  border-bottom-color:var(--gold) !important;
}
.join-box .subscribe-short-logo,
#subscribe-pop .subscribe-short-logo {
  width:48px;
  height:48px;
  margin:0 auto 0px;
}
.join-box .join-herald,
#subscribe-pop .join-herald {
  margin-bottom:2px;
}
.join-box h3,
#subscribe-pop .pop-title {
  margin-top:0;
  margin-bottom:6px;
}
.join-box,
#subscribe-pop {
  padding-top:20px;
}
#pop-name,
#pop-email {
  display:block;
  width:100%;
  min-height:44px;
  margin-bottom:10px;
  border-radius:6px;
  font-family:'Lato',sans-serif;
  text-align:left;
}
.hero-main {
  overflow:hidden;
  contain:paint;
}
.hero-grid {
  grid-template-columns:minmax(0,1.08fr) minmax(360px,0.92fr);
}
.hero-main .hero-thumb-frame {
  max-width:100%;
}
.hero-main .hero-thumb-frame .hero-thumb-img {
  object-fit:cover;
  object-position:top center;
  transform-origin:top center;
}
@media (max-width:900px) {
  .hero-grid {
    grid-template-columns:1fr;
  }
}
@media (max-width:480px) {
  .join-overlay,
  #subscribe-pop-overlay {
    align-items:center;
    padding:16px;
  }
  .join-box,
  #subscribe-pop {
    width:min(400px, calc(100vw - 32px));
    max-width:400px;
    border-radius:14px;
    padding:32px 22px 28px;
  }
}

/* Notice Board: editorial carousel treatment with the ILIRH backdrop. */
.notice-board-section {
  margin:clamp(26px,3vw,42px) 0 clamp(34px,4vw,56px);
  padding:clamp(24px,3vw,38px) clamp(18px,4vw,54px) clamp(30px,3.6vw,44px) !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #fff7f1 0%, #f8fbff 48%, #f6efe3 100%) !important;
  border:1px solid rgba(15,118,110,0.14);
  border-top:0;
  border-radius:8px;
  box-shadow:0 20px 54px rgba(15,48,68,0.08);
}
.notice-board-head {
  margin-bottom:clamp(14px,2vw,22px) !important;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.notice-board-kicker {
  color:var(--gold);
  text-shadow:none;
}
.notice-board-title {
  display:inline-block;
  width:max-content;
  max-width:100%;
  color:#0f766e;
  background:linear-gradient(135deg, #064e3b 0%, #0e7490 58%, #4338ca 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  font-size:clamp(28px,2.8vw,40px);
  text-shadow:none;
}
.notice-board-deck {
  height:clamp(340px,30vw,460px);
  min-height:0 !important;
  overflow:visible;
  perspective:1100px;
  perspective-origin:50% 50%;
  transform-style:preserve-3d;
}
.notice-board-card {
  top:50%;
  width:clamp(230px,23vw,360px);
  height:clamp(300px,28vw,430px);
  border-radius:8px;
  box-shadow:0 18px 44px rgba(10,22,40,0.22);
  backface-visibility:hidden;
  transform-style:preserve-3d;
  transition:transform .72s cubic-bezier(.2,.82,.18,1), opacity .36s ease, box-shadow .36s ease;
}
.notice-board-card.active {
  opacity:1;
  pointer-events:auto;
  transform:translate3d(-50%,-50%,88px) scale(1.03) !important;
  z-index:7;
  box-shadow:0 26px 66px rgba(10,22,40,0.28);
}
.notice-board-card.prev {
  opacity:1;
  pointer-events:auto;
  transform:translate3d(calc(-50% - min(14vw, 220px)),-50%,10px) scale(.88) !important;
  z-index:5;
}
.notice-board-card.next {
  opacity:1;
  pointer-events:auto;
  transform:translate3d(calc(-50% + min(14vw, 220px)),-50%,10px) scale(.88) !important;
  z-index:5;
}
.notice-board-card.far-prev {
  opacity:1;
  pointer-events:auto;
  transform:translate3d(calc(-50% - min(26vw, 410px)),-50%,-96px) scale(.76) !important;
  z-index:4;
}
.notice-board-card.far-next {
  opacity:1;
  pointer-events:auto;
  transform:translate3d(calc(-50% + min(26vw, 410px)),-50%,-96px) scale(.76) !important;
  z-index:4;
}
.notice-board-card.off-prev {
  opacity:0;
  pointer-events:none;
  transform:translate3d(calc(-50% - min(26vw, 430px)),-50%,-260px) scale(.68) !important;
  z-index:2;
}
.notice-board-card.off-next {
  opacity:0;
  pointer-events:none;
  transform:translate3d(calc(-50% + min(26vw, 430px)),-50%,-260px) scale(.68) !important;
  z-index:2;
}
body.dark-mode .notice-board-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #071a1d 0%, #111827 50%, #211a12 100%) !important;
  border-color:rgba(143,168,192,0.18);
}
body.dark-mode .notice-board-head {
  background:transparent;
  border-color:transparent;
}
body.dark-mode .notice-board-kicker {
  color:var(--gold-light);
}
body.dark-mode .notice-board-title {
  background:linear-gradient(135deg, #2dd4bf 0%, #38bdf8 55%, #818cf8 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

@media (max-width:900px) {
  .notice-board-section {
    width:100vw;
    margin:28px calc(50% - 50vw) 36px;
    padding:30px 0 34px !important;
    overflow:hidden;
    border-radius:0;
  }
  .notice-board-head {
    max-width:430px;
    margin-left:auto;
    margin-right:auto;
    padding:0 22px;
    margin-bottom:10px !important;
  }
  .notice-board-title {
    font-size:clamp(27px,8vw,38px);
  }
  .notice-board-deck {
    position:relative;
    left:50%;
    width:min(100vw, 430px);
    height:clamp(312px,86vw,400px);
    min-height:0 !important;
    overflow:visible;
    transform:translateX(-50%);
    perspective:760px;
    perspective-origin:50% 50%;
    transform-style:preserve-3d;
  }
  .notice-board-card {
    top:50%;
    width:clamp(188px,49vw,220px) !important;
    height:clamp(268px,70vw,316px) !important;
    border-radius:8px;
    box-shadow:0 18px 44px rgba(10,22,40,0.22);
  }
  .notice-board-card.active {
    opacity:1;
    pointer-events:auto;
    transform:translate3d(-50%,-50%,72px) scale(1) !important;
    z-index:6;
    box-shadow:0 22px 54px rgba(10,22,40,0.28);
  }
  .notice-board-card.prev {
    opacity:1;
    pointer-events:auto;
    transform:translate3d(calc(-50% - min(17vw, 72px)),-50%,-18px) scale(.88) !important;
    z-index:4;
  }
  .notice-board-card.next {
    opacity:1;
    pointer-events:auto;
    transform:translate3d(calc(-50% + min(17vw, 72px)),-50%,-18px) scale(.88) !important;
    z-index:4;
  }
  .notice-board-card.far-prev {
    opacity:1;
    pointer-events:auto;
    transform:translate3d(calc(-50% - min(33vw, 138px)),-50%,-92px) scale(.8) !important;
    z-index:3;
  }
  .notice-board-card.far-next {
    opacity:1;
    pointer-events:auto;
    transform:translate3d(calc(-50% + min(33vw, 138px)),-50%,-92px) scale(.8) !important;
    z-index:3;
  }
  .notice-board-card.off-prev {
    opacity:0;
    pointer-events:none;
    transform:translate3d(calc(-50% - min(18vw, 76px)),-50%,-178px) scale(.66) !important;
    z-index:2;
  }
  .notice-board-card.off-next {
    opacity:0;
    pointer-events:none;
    transform:translate3d(calc(-50% + min(18vw, 76px)),-50%,-178px) scale(.66) !important;
    z-index:2;
  }
  .notice-board-caption {
    padding:74px 15px 18px;
  }
  .notice-board-caption strong {
    font-size:clamp(14px,3.8vw,17px);
  }
}

/* Home promo: article journey visual and cleaner article body color. */
body:not(.dark-mode) .written-article-body,
body:not(.dark-mode) .written-article-body p,
body:not(.dark-mode) .written-article-body li,
body:not(.dark-mode) .written-article-body blockquote {
  color:#111111 !important;
}
body.dark-mode .marketing-video-copy {
  color:#d7e4f2;
}
body.dark-mode .marketing-video-sub {
  color:#8fa8c0;
}

/* Article pages: wider reading surface without the grid pattern. */
.article-page-section {
  background:transparent !important;
  background-image:none !important;
  background-size:auto !important;
  overflow-x:hidden;
  padding-left:0;
  padding-right:0;
}
body.dark-mode .article-page-section {
  background:transparent !important;
  background-image:none !important;
}
.article-page-shell,
.article-page-extension {
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
  overflow:visible;
}
.article-page-card,
body.dark-mode .article-page-card {
  background-image:none !important;
  background-size:auto !important;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}
.article-page-card .modal-content,
.article-page-card .written-article-shell,
.article-page-card .article-reader-shell,
.article-page-card .written-article-body,
.article-page-card .modal-rich-body {
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow-wrap:anywhere;
}
.article-page-card p,
.article-page-card li,
.article-page-card h1,
.article-page-card h2,
.article-page-card h3,
.article-page-card blockquote {
  max-width:100%;
  overflow-wrap:anywhere;
}
.article-page-topline {
  margin-left:0;
  margin-right:0;
}
.written-article-title,
.article-reader-title,
.written-article-brief,
.article-reader-brief,
.written-article-body,
.article-reader-shell .modal-rich-body {
  max-width:none;
}
.written-article-cover,
.article-reader-cover {
  max-width:100%;
}
.article-feed-band,
.article-end-panel {
  background-size:auto !important;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
body.dark-mode .article-feed-band,
body.dark-mode .article-end-panel {
}
.article-feed-band {
  width:100%;
}
.category-page-supplements {
  margin:36px 0 0;
}
.category-page-supplements .article-inline-spotlight,
.category-page-supplements .article-feed-band {
  margin-bottom:32px;
}
.category-page-supplements .article-inline-spotlight {
  margin-top:0;
}
.category-page-supplements .article-cta-section {
  margin-bottom:0;
}
.related-articles-box {
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
body.article-route-active .related-articles-box { margin-bottom:0; }
body.article-route-active .article-page-extension > .related-articles-box + .related-articles-box { margin-top:0; }
body.article-route-active .article-page-extension { margin-bottom:0; padding-bottom:0; }
body.article-route-active .article-cta-section { margin-bottom:0 !important; }
body.article-route-active footer { margin-top:18px; }

/* Targeted radius polish for bordered editorial surfaces. */
.article-page-card,
.article-page-card .modal-mobile-actions,
.article-page-card #article-page-author-profile .author-profile-card,
.article-page-card #article-page-author-profile .author-profile-photo,
.article-page-card #article-page-author-profile .author-profile-stat,
.article-page-card #article-page-author-profile .author-profile-count,
.article-page-card #article-page-author-profile .author-profile-link,
.written-article-body,
.article-reader-shell .modal-rich-body,
.written-article-cover,
.article-reader-cover,
.article-page-card .modal-img,
.article-cover-preview,
.article-cover-frame,
.article-cover-tools,
.article-inline-spotlight,
.article-inline-spotlight .spotlight-slide.spot-active,
.article-inline-spotlight .spotlight-slide-img,
.article-feed-band,
.article-feed-card,
.article-feed-thumb,
.related-card,
.related-thumb,
.article-reading-thumb,
.category-section,
.category-compass,
.category-compass-meta,
.article-card,
.card-thumb-wrap,
.article-reading-list a,
.sidebar-article,
.sidebar-thumb {
  border-radius:8px;
}
.article-page-card .modal-img img,
.written-article-cover img,
.article-reader-cover img,
.article-feed-thumb img,
.related-thumb img,
.article-reading-thumb img,
.card-thumb-wrap img,
.article-reading-list a img,
.sidebar-thumb img,
.article-inline-spotlight .spotlight-slide-img img {
  border-radius:inherit;
}
.article-page-back,
.written-read-more,
.article-cover-tool-btn,
.article-cover-preset,
.article-page-card .share-btn,
.article-page-card .like-btn,
.spot-nav-btn,
.spot-dot {
  border-radius:6px;
}
.article-page-card .article-action-top.article-action-compact,
.modal-mobile-actions .article-action-top.article-action-compact {
  display:flex;
  grid-template-columns:none;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.article-page-card .article-action-top.article-action-compact .like-btn,
.article-page-card .article-action-top.article-action-compact .share-btn,
.modal-mobile-actions .article-action-top.article-action-compact .like-btn,
.modal-mobile-actions .article-action-top.article-action-compact .share-btn {
  width:auto;
  min-width:104px;
  max-width:172px;
  min-height:38px;
  white-space:normal;
  line-height:1.18;
}
.article-page-card .article-action-top.article-action-compact .like-btn.liked,
.modal-mobile-actions .article-action-top.article-action-compact .like-btn.liked {
  background:#fff;
  color:#b4233b;
  border-color:rgba(180,35,59,0.34);
}
.article-page-card .modal-mobile-actions {
  margin:20px 0 28px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.article-page-card .article-action-top.article-action-compact {
  margin:0;
}
.article-page-card .article-like-slot,
.article-page-card .article-share-slot {
  display:flex;
}
.article-page-card .article-share-slot {
  justify-content:flex-end;
}
@media (max-width:900px) {
  .article-page-shell,
  .article-page-extension {
    width:100%;
  }
}
@media (max-width:520px) {
  .article-page-shell,
  .article-page-extension {
    width:100%;
  }
}

/* -- ARTICLE LIST PROPORTIONALITY PASS -- */
.card-meta,
.live-feed-meta {
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.live-home-grid {
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
}

@media (max-width:900px) {
  .live-home-grid {
    grid-template-columns:1fr;
  }
}

@media (max-width:900px) {
  .articles-row {
    grid-template-columns:1fr;
    gap:clamp(16px,4vw,22px);
  }

  .article-card {
    min-width:0;
  }

  .card-headline {
    font-size:clamp(15px,4.15vw,17px);
    line-height:1.26;
    -webkit-line-clamp:3;
  }

  .card-meta {
    display:block;
    font-size:clamp(10px,2.75vw,11.5px);
    line-height:1.4;
  }

  .live-feed-item {
    grid-template-columns:clamp(78px,24vw,96px) minmax(0,1fr);
    gap:clamp(10px,3vw,14px);
    align-items:start;
  }

  .live-feed-thumb {
    width:clamp(78px,24vw,96px);
    aspect-ratio:3/2;
  }

  .live-feed-title {
    font-size:clamp(13.5px,3.65vw,16px);
    line-height:1.24;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .live-feed-meta {
    font-size:clamp(9px,2.45vw,10.5px);
    line-height:1.35;
    letter-spacing:0.055em;
  }
}

@media (max-width:430px) {
  .card-headline {
    font-size:clamp(14.5px,4.2vw,16px);
    line-height:1.24;
  }

  .live-feed-item {
    grid-template-columns:clamp(72px,23vw,88px) minmax(0,1fr);
  }

  .live-feed-thumb {
    width:clamp(72px,23vw,88px);
  }

  .live-feed-title {
    font-size:clamp(13px,3.7vw,15px);
    line-height:1.23;
  }
}

@media (max-width:360px) {
  .card-headline {
    font-size:14.5px;
  }

  .live-feed-item {
    grid-template-columns:70px minmax(0,1fr);
    gap:10px;
  }

  .live-feed-thumb {
    width:70px;
  }

  .live-feed-title {
    font-size:13px;
  }
}

/* Light-theme fast-scroll paint guard: keep large scrolling surfaces light and non-composited. */
body:not(.dark-mode) :where(
  .hero-section,
  .category-section,
  #spotlight-section,
  .author-dashboard-section,
  .article-page-card,
  .article-feed-band,
  .article-end-panel,
  .author-profile-card,
  .author-page-hero,
  .article-card,
  .article-feed-card,
  .related-card,
  .live-trending-card,
  .compass-card,
  .research-intel-panel,
  .research-pulse-panel,
  .live-knowledge-card,
  .promo-home-preview-panel
) {
  background:#fffdf9 !important;
  background-image:none !important;
  contain:none !important;
  content-visibility:visible !important;
  isolation:auto !important;
}
body:not(.dark-mode) :where(
  .hero-section,
  .category-section,
  #spotlight-section,
  .author-dashboard-section,
  .article-page-card,
  .article-feed-band,
  .article-end-panel,
  .author-profile-card,
  .author-page-hero,
  .article-card,
  .article-feed-card,
  .related-card,
  .live-trending-card,
  .compass-card,
  .research-intel-panel,
  .research-pulse-panel,
  .live-knowledge-card,
  .promo-home-preview-panel
)::before,
body:not(.dark-mode) :where(
  .research-intel-panel,
  .research-pulse-panel,
  .live-knowledge-card,
  .promo-home-preview-panel
)::after {
  content:none !important;
  display:none !important;
  background:none !important;
  -webkit-mask:none !important;
          mask:none !important;
  animation:none !important;
}
body:not(.dark-mode) :where(
  .article-card,
  .article-feed-card,
  .related-card,
  .live-trending-card,
  .research-intel-panel,
  .research-pulse-panel,
  .insight-engine-panel,
  .live-knowledge-card
) {
  will-change:auto !important;
}

/* Message modal: keep long recipient lists and bottom controls inside the viewport. */
.msg-sub-box {
  box-sizing:border-box;
  max-height:calc(100vh - 32px);
  display:flex;
  flex-direction:column;
  overflow:hidden !important;
  overscroll-behavior:contain;
}
@supports (height:100dvh) {
  .msg-sub-box {
    max-height:calc(100dvh - 32px);
  }
}
.msg-select-list {
  max-height:252px;
}
.msg-sub-content {
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:4px;
}
.msg-sub-row textarea {
  height:clamp(108px, 21vh, 140px);
}
@media(max-height:760px) {
  .msg-sub-box {
    padding-top:24px;
    padding-bottom:28px;
  }
  .msg-mode-row,
  .msg-sub-row,
  .msg-attachment-box {
    margin-bottom:10px;
  }
  .msg-select-list {
    max-height:252px;
  }
  .msg-sub-row textarea {
    height:104px;
  }
}
@media(max-height:680px) {
  .msg-sub-box {
    padding-top:18px;
    padding-bottom:22px;
  }
  .msg-sub-title {
    font-size:18px;
  }
  .msg-sub-sub {
    margin-bottom:14px;
  }
  .msg-select-list {
    max-height:252px;
  }
  .msg-sub-row textarea {
    height:92px;
  }
}

/* Final dark-theme repair for submit forms, article tools, share menus, and ticker contrast. */
body.dark-mode .ticker-bar {
  background:#0a1422 !important;
  border-top:1px solid rgba(201,168,76,0.18);
  border-bottom:1px solid rgba(143,168,192,0.18) !important;
}
body.dark-mode .ticker-label {
  background:#152846 !important;
  color:#d8e2ee !important;
}
body.dark-mode .ticker-text,
body.dark-mode .ticker-text a {
  color:#a9bdd2 !important;
}
body.dark-mode .ticker-text a:hover {
  color:#d8e2ee !important;
  text-decoration-color:rgba(201,168,76,0.75) !important;
}
body.dark-mode :where(
  .hero-section,
  .category-section,
  #spotlight-section,
  .article-page-card,
  .article-feed-band,
  .article-end-panel,
  .article-inline-spotlight,
  .author-profile-card,
  .author-page-hero,
  .live-home-section,
  .notice-board-section,
  .marketing-video-section,
  .promo-home-preview-panel
) {
  background:#0d1624 !important;
  background-image:none !important;
  border-color:#2b4564 !important;
  color:#d8e2ee !important;
}
body.dark-mode :where(
  .submit-drop-zone,
  .submit-docx-zone,
  .drop-zone,
  .article-cover-preview,
  .article-cover-frame,
  .article-cover-tools,
  .article-write-panel,
  .rich-editor-toolbar,
  .rich-editor-area,
  .rte-word-counter,
  .review-replace-drop,
  .review-undertaking-display,
  .submit-undertaking,
  .silent-row
) {
  background:#07111d !important;
  border-color:#2b4564 !important;
  color:#a9bdd2 !important;
}
body.dark-mode :where(.submit-drop-zone, .submit-docx-zone, .drop-zone, .article-cover-frame):hover,
body.dark-mode :where(.submit-drop-zone, .submit-docx-zone, .drop-zone).dragover {
  background:#0f1d2e !important;
  border-color:#c9a84c !important;
  color:#d8e2ee !important;
}
body.dark-mode .submit-docx-zone,
body.dark-mode .submit-docx-zone * {
  color:#a9bdd2 !important;
}
body.dark-mode .submit-docx-zone div:nth-child(3) {
  color:#d8e2ee !important;
}
body.dark-mode .submit-docx-filename {
  color:#f0ce73 !important;
}
body.dark-mode :where(
  .submit-drop-zone strong,
  .submit-docx-zone strong,
  .drop-zone strong,
  .submit-drop-filename,
  .submit-undertaking strong,
  .review-undertaking-display strong,
  .article-cover-note strong
) {
  color:#f0ce73 !important;
}
body.dark-mode .rich-editor-area :where(h2, h3),
body.dark-mode .rich-editor-area .ProseMirror :where(h2, h3) {
  color:#f3f7ff !important;
}
body.dark-mode :where(.submit-undertaking p, .review-undertaking-display, .article-cover-note) {
  color:#b7c8dc !important;
}
body.dark-mode :where(.upload-mode-btn, .article-mode-btn) {
  background:#07111d !important;
  color:#b7c8dc !important;
  border-color:#2b4564 !important;
}
body.dark-mode :where(.upload-mode-btn:hover, .article-mode-btn:hover) {
  background:#0f1d2e !important;
  color:#f0ce73 !important;
  border-color:#c9a84c !important;
}
body.dark-mode :where(.upload-mode-btn.selected, .article-mode-btn.selected) {
  background:#132a48 !important;
  color:#f0ce73 !important;
  border-color:#c9a84c !important;
}
body.dark-mode .rte-btn {
  background:#0a1520 !important;
  color:#d8e2ee !important;
  border-color:#2b4564 !important;
}
body.dark-mode .rte-btn:hover,
body.dark-mode .rte-btn.active {
  background:#132a48 !important;
  color:#f0ce73 !important;
  border-color:#c9a84c !important;
}
body.dark-mode .rich-editor-area blockquote {
  background:#0f1d2e !important;
  color:#d8e2ee !important;
  border-left-color:#c9a84c !important;
}
body.dark-mode .article-share-menu {
  background:#0a1520 !important;
  border-color:#2b4564 !important;
  box-shadow:0 18px 42px rgba(0,0,0,0.42) !important;
}
body.dark-mode .article-share-menu button {
  background:#0a1520 !important;
  color:#d8e2ee !important;
  border-bottom-color:#2b4564 !important;
}
body.dark-mode .article-share-menu button:hover {
  background:#0f1d2e !important;
  color:#f0ce73 !important;
}
body.dark-mode .article-share-menu::before {
  border-bottom-color:#0a1520 !important;
}
body.dark-mode :where(.like-btn, .share-btn, .modal-icon-btn, .modal-tool-btn) {
  background:#07111d !important;
  color:#d8e2ee !important;
  border-color:#2b4564 !important;
}
body.dark-mode :where(.like-btn:hover, .share-btn:hover, .modal-icon-btn:hover, .modal-tool-btn:hover, .like-btn.liked) {
  background:#0f1d2e !important;
  color:#f0ce73 !important;
  border-color:#c9a84c !important;
}
body.dark-mode .author-bio-toggle {
  color:#f0ce73 !important;
}
body.dark-mode .author-bio-toggle:hover {
  color:#fff1b8 !important;
}
body.dark-mode {
  --typing-field-cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20'%3E%3Cpath d='M6 2v16M4 2h4M4 18h4' fill='none' stroke='%23f0ce73' stroke-width='1.25' stroke-linecap='square'/%3E%3C/svg%3E") 6 10, text;
}
body.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.dark-mode textarea,
body.dark-mode [contenteditable="true"],
body.dark-mode [contenteditable="true"] *,
body.dark-mode .rich-editor-area,
body.dark-mode .rich-editor-area:hover,
body.dark-mode .rich-editor-area .ProseMirror,
body.dark-mode .rich-editor-area .ProseMirror * {
  caret-color:#f0ce73 !important;
  cursor:var(--typing-field-cursor) !important;
}
body.dark-mode .submit-undertaking input[type="checkbox"] {
  appearance:none;
  width:17px;
  height:17px;
  border:1px solid #c9a84c;
  background:#07111d;
  border-radius:3px;
  display:inline-grid;
  place-content:center;
  accent-color:#c9a84c;
}
body.dark-mode .submit-undertaking input[type="checkbox"]::after {
  content:"";
  width:9px;
  height:5px;
  border-left:2px solid #07111d;
  border-bottom:2px solid #07111d;
  transform:rotate(-45deg) scale(0);
  transform-origin:center;
}
body.dark-mode .submit-undertaking input[type="checkbox"]:checked {
  background:#c9a84c;
}
body.dark-mode .submit-undertaking input[type="checkbox"]:checked::after {
  transform:rotate(-45deg) scale(1);
}
body.dark-mode .submit-docx-rules {
  color:#b7c8dc !important;
}
body.dark-mode .submit-docx-rules strong {
  color:#f0ce73 !important;
}
body.dark-mode :where(
  .msg-select-list,
  .msg-attachment-box,
  .msg-attachment-item,
  .msg-attachment-file,
  .promo-image-drop,
  .promo-image-item,
  .promo-image-preview,
  .promo-image-fields input[type="text"],
  .msg-other-field input,
  .msg-sub-row input,
  .msg-sub-row textarea,
  .contact-block,
  .support-upi-block
) {
  background:#07111d !important;
  border-color:#2b4564 !important;
  color:#d8e2ee !important;
}
body.dark-mode :where(
  .about-section-head,
  .msg-sub-title,
  .msg-sub-box .about-section-head,
  .msg-sub-row label,
  .msg-attachment-note,
  .msg-attachment-meta,
  .msg-select-item label,
  .promo-image-status,
  .promo-image-control-row label,
  .promo-image-mini-btn,
  .msg-attach-btn,
  .msg-add-email-btn,
  .msg-mode-btn,
  .promo-mode-btn,
  .support-upi-id
) {
  color:#b7c8dc !important;
}
body.dark-mode :where(
  .msg-mode-btn,
  .promo-mode-btn,
  .promo-image-mini-btn,
  .msg-attach-btn,
  .msg-add-email-btn,
  .msg-other-remove
) {
  background:#07111d !important;
  border-color:#2b4564 !important;
}
body.dark-mode :where(
  .msg-mode-btn:hover,
  .promo-mode-btn:hover,
  .promo-image-mini-btn:hover,
  .msg-attach-btn:hover,
  .msg-add-email-btn:hover
) {
  background:#0f1d2e !important;
  color:#f0ce73 !important;
  border-color:#c9a84c !important;
}
body.dark-mode :where(
  .msg-mode-btn.selected,
  .promo-mode-btn.selected,
  .promo-image-mini-btn.selected
) {
  background:#132a48 !important;
  color:#f0ce73 !important;
  border-color:#c9a84c !important;
}
body.dark-mode .msg-select-item:hover {
  background:#0f1d2e !important;
}
body.dark-mode .msg-select-item input[type="checkbox"] {
  accent-color:#c9a84c;
}
body.dark-mode .msg-other-remove {
  color:#ffb4b4 !important;
  border-color:#7f3b3b !important;
}
body.dark-mode .msg-other-remove:hover,
body.dark-mode .promo-image-mini-btn.danger:hover {
  background:#7f1d1d !important;
  color:#fff !important;
  border-color:#ef4444 !important;
}
body.dark-mode .promo-image-mini-btn.danger {
  color:#ffb4b4 !important;
  border-color:#7f3b3b !important;
}
body.dark-mode .promo-image-thumb {
  background:#020912 !important;
  border-color:#2b4564 !important;
}
body.dark-mode .promo-image-control-row input[type="range"] {
  accent-color:#c9a84c;
}
body.dark-mode .support-paypal-btn,
body.dark-mode .support-paypal-btn:visited {
  background:#0b3b78 !important;
  color:#fff4c9 !important;
  border:1px solid #c9a84c !important;
}
body.dark-mode .support-paypal-btn:hover {
  background:#164f96 !important;
  color:#fff !important;
}
body.dark-mode a[href*="paypal" i],
body.dark-mode a[href*="paypal.me" i],
body.dark-mode a[href*="paypal" i]:visited,
body.dark-mode a[href*="paypal.me" i]:visited {
  color:#f0ce73 !important;
  text-decoration-color:#f0ce73 !important;
}
body.dark-mode a[href*="paypal" i]:hover,
body.dark-mode a[href*="paypal.me" i]:hover {
  color:#fff1b8 !important;
}
body.dark-mode :where(.about-box, .policy-box, .msg-sub-box, .contact-block) [style*="color:var(--navy)"],
body.dark-mode :where(.about-box, .policy-box, .msg-sub-box, .contact-block) [style*="color: var(--navy)"] {
  color:#f0ce73 !important;
}
body.dark-mode :where(.about-box, .policy-box) a[style*="background:var(--cream)"],
body.dark-mode :where(.about-box, .policy-box) a[style*="background: var(--cream)"] {
  background:#07111d !important;
  border-color:#2b4564 !important;
  color:#d8e2ee !important;
}

/* Section surfaces: top rule only, with shadow doing the separation work. */
.hero-section,
.category-section,
#spotlight-section,
.article-page-card,
.article-feed-band,
.article-end-panel,
.article-inline-spotlight,
.author-profile-card,
.author-page-hero,
.live-home-section {
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  box-shadow:0 20px 46px rgba(10,22,40,0.08) !important;
}
body.dark-mode .hero-section,
body.dark-mode .category-section,
body.dark-mode #spotlight-section,
body.dark-mode .article-page-card,
body.dark-mode .article-feed-band,
body.dark-mode .article-end-panel,
body.dark-mode .article-inline-spotlight,
body.dark-mode .author-profile-card,
body.dark-mode .author-page-hero,
body.dark-mode .live-home-section {
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  box-shadow:0 22px 52px rgba(0,0,0,0.42), 0 0 28px rgba(143,168,192,0.08) !important;
}
:where(.notice-board-section, .marketing-video-section, .promo-home-preview-panel) {
  border-top:0 !important;
}
.notice-board-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #fff7f1 0%, #f8fbff 48%, #f6efe3 100%) !important;
  border:1px solid rgba(15,118,110,0.14) !important;
  border-top:0 !important;
  box-shadow:0 20px 54px rgba(15,48,68,0.08) !important;
}
.marketing-video-section {
  background:linear-gradient(135deg,#fff 0%,#f8fafc 100%) !important;
  border:1px solid var(--border) !important;
  border-top:0 !important;
  box-shadow:0 8px 28px rgba(10,22,40,0.06) !important;
}
.promo-home-preview-panel {
  border-top:0 !important;
  box-shadow:0 28px 90px rgba(0,0,0,.38) !important;
}
body.dark-mode .notice-board-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #071a1d 0%, #111827 50%, #211a12 100%) !important;
  border:1px solid rgba(143,168,192,0.18) !important;
  border-top:0 !important;
  box-shadow:0 22px 54px rgba(0,0,0,0.44), 0 0 28px rgba(45,212,191,0.06) !important;
}
body.dark-mode .marketing-video-section {
  background:#0d1624 !important;
  border:1px solid rgba(143,168,192,0.18) !important;
  border-top:0 !important;
  box-shadow:0 18px 42px rgba(0,0,0,0.36) !important;
}
body.dark-mode .promo-home-preview-panel {
  border-top:0 !important;
  box-shadow:0 28px 90px rgba(0,0,0,0.62) !important;
}
.article-cta-row {
  border-color:transparent !important;
}
body.article-route-active :where(
  .article-page-card,
  .article-page-extension,
  .article-end-panel,
  .article-feed-band
) {
  background:#fffdf9 !important;
  background-image:none !important;
  box-shadow:none !important;
}
body.dark-mode.article-route-active :where(
  .article-page-card,
  .article-page-extension,
  .article-end-panel,
  .article-feed-band
) {
  background:#0d1624 !important;
  background-image:none !important;
  box-shadow:none !important;
}

/* Final surface tuning: restore special sections and make card depth persistent. */
:where(.marketing-video-section, .promo-home-preview-panel) {
  border:0 !important;
  border-top:4px solid var(--gold) !important;
}
.notice-board-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #fff7f1 0%, #f8fbff 48%, #f6efe3 100%) !important;
  border:1px solid rgba(15,118,110,0.16) !important;
  box-shadow:0 20px 54px rgba(15,48,68,0.08) !important;
}
.marketing-video-section {
  background:linear-gradient(135deg,#f7fbff 0%,#fffdf8 58%,#f7f1df 100%) !important;
  border:1px solid var(--border) !important;
  box-shadow:0 18px 44px rgba(10,22,40,0.07) !important;
}
.promo-home-preview-panel {
  box-shadow:0 28px 90px rgba(0,0,0,.38) !important;
}
body.dark-mode :where(.marketing-video-section, .promo-home-preview-panel) {
  border:0 !important;
  border-top:4px solid #2b4564 !important;
}
body.dark-mode .notice-board-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #071a1d 0%, #111827 50%, #211a12 100%) !important;
  border:1px solid rgba(143,168,192,0.18) !important;
  box-shadow:0 22px 54px rgba(0,0,0,0.44), 0 0 28px rgba(45,212,191,0.06) !important;
}
body.dark-mode .marketing-video-section {
  background:linear-gradient(135deg,#07111d 0%,#0d1624 58%,#15160f 100%) !important;
  border:1px solid rgba(143,168,192,0.18) !important;
  box-shadow:0 20px 48px rgba(0,0,0,0.42), 0 0 24px rgba(143,168,192,0.07) !important;
}
.category-compass {
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 68%,#f7f1df 100%) !important;
  border:1px solid var(--border-light) !important;
  border-left:4px solid var(--gold) !important;
  box-shadow:0 10px 24px rgba(10,22,40,0.08) !important;
}
body.dark-mode .category-compass {
  background:linear-gradient(135deg,#07111d 0%,#0d1624 68%,#14140f 100%) !important;
  border-color:#2b4564 !important;
  border-left-color:#c9a84c !important;
  box-shadow:0 14px 34px rgba(0,0,0,0.36), 0 0 20px rgba(201,168,76,0.06) !important;
}
.article-card,
.article-feed-card,
.related-card {
  box-shadow:0 8px 28px rgba(10,22,40,0.12) !important;
  transform:translateY(0) !important;
}
.article-card .card-thumb-wrap img.loaded,
.article-feed-card .article-feed-thumb img.loaded,
.related-card .related-thumb img.loaded {
  transform:scale(1.035) !important;
}
.article-card .card-headline,
.article-feed-card-title,
.related-card-title {
  text-decoration:underline;
  text-decoration-color:rgba(201,168,76,0.48);
  text-underline-offset:2px;
}
.article-card:hover,
.article-feed-card:hover,
.related-card:hover {
  transform:translateY(-1px) !important;
  box-shadow:0 10px 32px rgba(10,22,40,0.14) !important;
}
.article-card:hover .card-thumb-wrap img.loaded,
.article-feed-card:hover .article-feed-thumb img.loaded,
.related-card:hover .related-thumb img.loaded {
  transform:scale(1.035) !important;
}
body.dark-mode :where(.article-card, .article-feed-card, .related-card) {
  box-shadow:0 10px 30px rgba(0,0,0,0.38) !important;
}
body.dark-mode :where(.article-card:hover, .article-feed-card:hover, .related-card:hover) {
  box-shadow:0 12px 34px rgba(0,0,0,0.44) !important;
}
.insight-question,
.insight-climate,
.insight-note,
.insight-quote-card {
  border:1px solid rgba(201,168,76,0.55) !important;
  background:rgba(255,255,255,0.72) !important;
  box-shadow:0 10px 24px rgba(10,22,40,0.09) !important;
  transform:none !important;
}
.insight-quote-card {
  padding:13px;
  backdrop-filter:blur(12px);
}
.insight-question:hover,
.insight-climate:hover,
.insight-note:hover,
.insight-quote-card:hover {
  border-color:rgba(201,168,76,0.55) !important;
  box-shadow:0 10px 24px rgba(10,22,40,0.09) !important;
  transform:none !important;
}
body.dark-mode :where(.insight-question, .insight-climate, .insight-note, .insight-quote-card) {
  background:rgba(7,17,29,0.78) !important;
  border-color:#2b4564 !important;
  box-shadow:0 12px 28px rgba(0,0,0,0.34) !important;
}
:where(#spotlight-section, .article-inline-spotlight) .spotlight-track-wrap {
  border:1px solid rgba(143,168,192,0.24) !important;
  border-radius:6px;
  box-sizing:border-box;
}
:where(#spotlight-section, .article-inline-spotlight) .spotlight-slide.spot-active {
  border:0 !important;
}
body.dark-mode :where(#spotlight-section, .article-inline-spotlight) .spotlight-track-wrap {
  border-color:rgba(216,226,238,0.30) !important;
}
body.dark-mode #spotlight-section,
body.dark-mode .article-inline-spotlight {
  border:1px solid rgba(216,226,238,0.30) !important;
  border-top-width:1px !important;
}
body.dark-mode :where(#spotlight-section, .article-inline-spotlight) .spotlight-header {
  border-bottom-color:rgba(216,226,238,0.26) !important;
}
body.dark-mode :where(#spotlight-section, .article-inline-spotlight) .spotlight-slide-img {
  border-color:rgba(216,226,238,0.32) !important;
}
body.article-route-active :where(.article-page-extension) {
  background:transparent !important;
}
body:where(.article-route-active, .category-route-active) :where(
  .article-page-card,
  .article-feed-band,
  .article-inline-spotlight,
  .article-explore-panel
) {
  background:#fffdf9 !important;
  background-image:none !important;
  border:none;
  border-top:4px solid var(--gold) !important;
  box-shadow:none !important;
  margin-bottom:32px !important;
}
body.article-route-active .article-cta-row {
  border:0 !important;
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--gold) 100%) left center/4px 100% no-repeat,
    linear-gradient(135deg,#f8fbff 0%,#eef6f4 48%,#fff8e6 100%) !important;
  box-shadow:none !important;
}
body.dark-mode.article-route-active :where(.article-page-section, .article-page-extension) {
  background:transparent !important;
}
body.dark-mode:where(.article-route-active, .category-route-active) :where(
  .article-page-card,
  .article-feed-band,
  .article-explore-panel
) {
  background:#0d1624 !important;
  background-image:none !important;
  border:none;
  border-top:4px solid #2b4564 !important;
  box-shadow:none !important;
}

body.dark-mode #spotlight-section,
body.dark-mode:where(.article-route-active, .category-route-active) .article-inline-spotlight {
  background:linear-gradient(135deg,#0d1624 0%,#111e2e 62%,#151f2a 100%) !important;
  border:0 !important;
  border-top:4px solid rgba(216,226,238,0.32) !important;
  box-shadow:none !important;
}
body.dark-mode #spotlight-section .spotlight-header,
body.dark-mode:where(.article-route-active, .category-route-active) .article-inline-spotlight .spotlight-header {
  border-bottom-color:rgba(216,226,238,0.26) !important;
}
body.dark-mode .article-cta-row {
  border:0 !important;
  background:
    linear-gradient(180deg,#c9a84c 0%,#2b4564 100%) left center/4px 100% no-repeat,
    linear-gradient(135deg,#0d1624 0%,#0a1520 58%,#11170f 100%) !important;
  box-shadow:none !important;
}

/* Final correction pass for requested section and card behavior. */
.article-card,
.article-feed-card,
.related-card {
  transition:transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s ease !important;
}
.hero-headline,
.article-card .card-headline,
.article-feed-card-title,
.related-card-title {
  text-decoration:none !important;
}
.hero-headline:hover,
.article-card:hover .card-headline,
.article-feed-card:hover .article-feed-card-title,
.related-card:hover .related-card-title {
  text-decoration:underline !important;
  text-decoration-color:var(--gold) !important;
  text-underline-offset:2px;
}
.article-card:hover,
.article-feed-card:hover,
.related-card:hover {
  transform:translateY(-4px) !important;
  box-shadow:0 16px 40px rgba(10,22,40,0.16) !important;
}
body.dark-mode :where(.article-card:hover, .article-feed-card:hover, .related-card:hover) {
  box-shadow:0 18px 44px rgba(0,0,0,0.5) !important;
}
.notice-board-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(45,212,191,0.16), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(135deg, #fff7f1 0%, #f8fbff 48%, #f6efe3 100%) !important;
  border:1px solid rgba(15,118,110,0.16) !important;
}
.marketing-video-section,
.promo-home-preview-panel {
  border:1px solid rgba(201,168,76,0.28) !important;
}
body:not(.dark-mode) .marketing-video-section {
  background:linear-gradient(135deg,#f7fbff 0%,#fffdf8 58%,#f7f1df 100%) !important;
  border-color:var(--border) !important;
}
body:not(.dark-mode) .promo-home-preview-panel {
  border-top:4px solid var(--gold) !important;
}
body.dark-mode .notice-board-section {
  border:1px solid rgba(143,168,192,0.18) !important;
}
body.dark-mode :where(.marketing-video-section, .promo-home-preview-panel) {
  border:1px solid rgba(143,168,192,0.18) !important;
}
body.dark-mode .promo-home-preview-panel {
  border-top:4px solid #2b4564 !important;
}
.category-compass {
  position:relative !important;
  isolation:isolate !important;
  overflow:hidden !important;
}
.category-compass::after {
  content:'' !important;
  display:block !important;
  position:absolute !important;
  right:-48px !important;
  top:-48px !important;
  width:150px !important;
  height:150px !important;
  border:1px solid rgba(201,168,76,0.22) !important;
  border-radius:50% !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,168,76,0.14), transparent 42%),
    conic-gradient(from 18deg, transparent 0 16%, rgba(201,168,76,0.18) 16% 20%, transparent 20% 50%, rgba(24,57,95,0.12) 50% 54%, transparent 54%) !important;
  z-index:-1 !important;
  pointer-events:none !important;
  -webkit-mask:none !important;
          mask:none !important;
}
body.dark-mode .category-compass::after {
  border-color:rgba(201,168,76,0.24) !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,168,76,0.13), transparent 42%),
    conic-gradient(from 18deg, transparent 0 16%, rgba(201,168,76,0.16) 16% 20%, transparent 20% 50%, rgba(143,168,192,0.14) 50% 54%, transparent 54%) !important;
}
.live-pulse {
  position:relative;
  animation:livePulse 1.6s ease-out infinite !important;
}
.live-pulse::after {
  content:'';
  position:absolute;
  inset:-5px;
  border-radius:50%;
  border:1px solid rgba(47,143,70,0.42);
  animation:livePulseRing 1.6s ease-out infinite !important;
}
@keyframes livePulseRing {
  0% { opacity:0.72; transform:scale(0.58); }
  72% { opacity:0; transform:scale(1.8); }
  100% { opacity:0; transform:scale(1.8); }
}

/* Increase gap and add thin grey separator between article cards on mobile */
@media (max-width: 768px) {
  .articles-row, .article-feed-grid, .related-grid {
    gap: 28px !important;
  }
  .articles-row > .article-card, .article-feed-grid > .article-feed-card, .related-grid > .related-card {
    position: relative;
    overflow: visible !important;
  }
  .articles-row > .article-card .card-thumb-wrap,
  .article-feed-grid > .article-feed-card .article-feed-thumb,
  .related-grid > .related-card .related-thumb {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
  }
  .articles-row > .article-card:not(:last-child)::after,
  .article-feed-grid > .article-feed-card:not(:last-child)::after,
  .related-grid > .related-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(10,22,40,0.1);
  }
  body.dark-mode .articles-row > .article-card:not(:last-child)::after,
  body.dark-mode .article-feed-grid > .article-feed-card:not(:last-child)::after,
  body.dark-mode .related-grid > .related-card:not(:last-child)::after {
    background-color: rgba(255,255,255,0.1);
  }

}

/* Apply nav button adjustments globally across all screens */
#main-nav .btn-join-nav {
  min-height: 28px !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
}

/* Make editor button just an icon globally, matching search icon colors */
#main-nav .btn-upload-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  min-height: 28px !important;
  min-width: auto !important;
  color: #c5d2e0 !important;
}
#main-nav .btn-upload-nav:hover {
  color: var(--gold-light) !important;
}
#main-nav .btn-upload-nav .btn-label-editor {
  display: none !important;
}

/* Duplicated search icon styles for mobile and desktop */
#search-wrap-desktop, #search-wrap-mobile { position:relative; display:flex; align-items:center; }
#search-toggle-btn-desktop, #search-toggle-btn-mobile { background:none; border:none; color:#c5d2e0; font-size:0; cursor:pointer; padding:6px 4px; line-height:1; transition:color 0.2s; flex-shrink:0; display:flex; align-items:center; justify-content:center; height:28px; width:24px; box-sizing:border-box; margin:0; }
#search-toggle-btn-desktop svg, #search-toggle-btn-mobile svg { display:block; transition:stroke 0.2s; }
#search-toggle-btn-desktop:hover, #search-toggle-btn-mobile:hover { color:var(--gold-light); }
#search-toggle-btn-desktop:hover svg, #search-toggle-btn-mobile:hover svg { stroke:var(--gold-light); }

/* Dynamically adjust search gap on mobile to perfectly match the ILIRH Logo to Hamburger gap */
#search-wrap-mobile { margin-left: -2px; }

/* Ensure perfect vertical centering for all nav elements */
#main-nav .nav-inner, #main-nav .nav-right, #main-nav .nav-links { display: flex !important; align-items: center !important; }
#main-nav .nav-logo { display: flex !important; align-items: center !important; line-height: 1 !important; margin: 0 !important; box-sizing: border-box; }
#main-nav .hamburger { display: flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; margin: 0 !important; height: auto !important; box-sizing: border-box; }
@media (min-width: 769px) { #main-nav .hamburger { display: none !important; } }
#main-nav .btn-join-nav, #main-nav .btn-upload-nav { display: flex !important; align-items: center !important; justify-content: center !important; height: 28px !important; box-sizing: border-box !important; margin: 0 !important; line-height: 1 !important; }
#main-nav .nav-links a { display: flex !important; align-items: center !important; }
#search-wrap-desktop { transform: translateY(-1px); } /* Compensates for the 2px bottom border on adjacent links */

.search-mobile { display: none !important; }

@media (max-width: 768px) {
  .search-mobile { display: flex !important; }
  .search-desktop { display: none !important; }
}

/* Remove gradient top border from editor login box and keep 1px border */
.login-box { border-top: 1px solid rgba(217,210,198,0.9) !important; }
body.dark-mode .login-box { border-top: 1px solid #2b4564 !important; }
.login-box::before { display: none !important; }

/* Article route mobile reset: match home/category section width and top-rule rhythm. */
@media (max-width: 900px) {
  html body #main-content.site-wrap #article-page-section.open {
    display:block !important;
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    padding:18px 0 30px !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
    background:transparent !important;
  }
  html body #article-page-section.open .article-page-shell,
  html body #article-page-section.open .article-page-extension {
    width:100vw !important;
    max-width:100vw !important;
    margin:0 auto !important;
    padding:0 !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .article-page-shell > .article-page-back,
  html body #article-page-section.open .article-page-shell > .article-page-topline {
    display:block !important;
    width:98vw !important;
    max-width:98vw !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .article-page-shell > .article-page-back {
    margin-bottom:12px !important;
    display:inline-flex !important;
    width:auto !important;
    max-width:max-content !important;
    margin-left:1vw !important;
    margin-right:0 !important;
    padding:8px 12px !important;
    text-align:left !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }
  html body #article-page-section.open .article-page-shell > .article-page-topline {
    display:flex !important;
    margin-bottom:12px !important;
    padding:0 16px !important;
    align-items:center !important;
    overflow:hidden !important;
  }
  html body #article-page-section.open :where(
    .article-page-card,
    .article-feed-band,
    .article-inline-spotlight,
    .article-explore-panel,
    .article-cta-section
  ) {
    width:98vw !important;
    max-width:98vw !important;
    margin-left:auto !important;
    margin-right:auto !important;
    margin-bottom:32px !important;
    padding:16px !important;
    border-left:0 !important;
    border-right:0 !important;
    border-bottom:0 !important;
    border-top:4px solid var(--gold) !important;
    border-radius:12px !important;
    box-shadow:0 20px 46px rgba(10,22,40,0.08) !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .article-page-card {
    padding:18px 16px 22px !important;
    background:#fffdf9 !important;
    overflow:hidden !important;
  }
  html body #article-page-section.open #article-page-content,
  html body #article-page-section.open .written-article-shell,
  html body #article-page-section.open .article-reader-shell {
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .written-article-title,
  html body #article-page-section.open .article-reader-title {
    font-size:clamp(26px,7.4vw,36px) !important;
    line-height:1.08 !important;
  }
  html body #article-page-section.open .written-article-brief,
  html body #article-page-section.open .article-reader-brief {
    font-size:clamp(16px,4.1vw,18.5px) !important;
    font-weight:600 !important;
    line-height:1.45 !important;
  }
  html body #article-page-section.open .written-article-body,
  html body #article-page-section.open .article-reader-shell .modal-rich-body {
    width:100% !important;
    max-width:100% !important;
    padding:20px 16px !important;
    margin-top:18px !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .written-article-cover,
  html body #article-page-section.open .article-reader-cover,
  html body #article-page-section.open .modal-img {
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .article-page-card .modal-mobile-actions,
  html body #article-page-section.open .article-page-card #article-page-author-profile .author-profile-card {
    margin-left:0 !important;
    margin-right:0 !important;
  }
  html body #article-page-section.open .article-explore-panel .article-topic-row {
    display:grid !important;
    grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
    gap:clamp(3px, 1.15vw, 8px) !important;
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
    padding-bottom:0 !important;
  }
  html body #article-page-section.open .article-explore-panel .article-topic-row::-webkit-scrollbar {
    display:none !important;
  }
  html body #article-page-section.open .article-explore-panel .article-topic-chip {
    min-width:0 !important;
    width:100% !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    padding:clamp(6px, 1.7vw, 8px) clamp(2px, 1.2vw, 7px) !important;
    font-size:clamp(6.8px, 1.85vw, 10px) !important;
    letter-spacing:0 !important;
    line-height:1.12 !important;
    text-align:center !important;
    justify-content:center !important;
  }
  html body #article-page-section.open .article-cta-section {
    border-top:0 !important;
  }
  html body #article-page-section.open .article-cta-box,
  html body #article-page-section.open .article-cta-box .article-end-panel,
  html body #article-page-section.open .article-cta-box .article-cta-section {
    width:min(100%, calc(var(--site-frame) - 48px)) !important;
    max-width:calc(100vw - 24px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .article-cta-box .article-end-panel {
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html body #article-page-section.open .article-cta-box .article-cta-section {
    padding:20px 16px !important;
  }
  html body #article-page-section.open #article-page-author-profile {
    width:100% !important;
    max-width:100% !important;
    margin:22px auto 0 !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-card {
    width:min(100%, 640px) !important;
    max-width:100% !important;
    margin:0 auto !important;
    padding:18px 14px !important;
    text-align:left !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-card::before {
    inset:0 !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-top {
    justify-content:flex-start !important;
    align-items:center !important;
    text-align:left !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-photo {
    flex:0 0 auto !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-bio {
    font-size:14px !important;
    line-height:1.48 !important;
    margin:12px auto 0 !important;
    max-width:56ch !important;
    text-align:left !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-stats {
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:5px !important;
    width:100% !important;
    margin:14px auto 0 !important;
    overflow:visible !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-stat {
    min-width:0 !important;
    padding:8px 3px !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-stat strong {
    font-size:14px !important;
    line-height:1.05 !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-stat span {
    display:block !important;
    font-size:6.5px !important;
    letter-spacing:0.03em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  html body #article-page-section.open .article-feed-head {
    margin-bottom:14px !important;
  }
  html body.dark-mode #article-page-section.open .article-page-card {
    background:#0d1624 !important;
  }
  html body.dark-mode #article-page-section.open :where(
    .article-page-card,
    .article-feed-band,
    .article-inline-spotlight,
    .article-explore-panel,
    .article-cta-section
  ) {
    border-top-color:#2b4564 !important;
    box-shadow:0 22px 52px rgba(0,0,0,0.42), 0 0 28px rgba(143,168,192,0.08) !important;
  }
  html body.dark-mode #article-page-section.open .article-cta-section {
    border-top:0 !important;
  }
}
@media (max-width: 520px) {
  html body #article-page-section.open :where(
    .article-page-card,
    .article-feed-band,
    .article-inline-spotlight,
    .article-explore-panel,
    .article-cta-section
  ) {
    width:98vw !important;
    margin-left:calc(50% - 49vw) !important;
    margin-right:calc(50% - 49vw) !important;
    padding:14px !important;
    border-radius:10px !important;
  }
  html body #article-page-section.open .article-cta-box,
  html body #article-page-section.open .article-cta-box .article-end-panel,
  html body #article-page-section.open .article-cta-box .article-cta-section {
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html body #article-page-section.open .article-page-shell > .article-page-topline {
    width:98vw !important;
    max-width:98vw !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html body #article-page-section.open .article-page-shell > .article-page-back {
    width:auto !important;
    max-width:max-content !important;
    margin-left:1vw !important;
    margin-right:0 !important;
  }
  html body #article-page-section.open .article-page-card {
    padding:16px 12px 20px !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-card {
    padding:16px 10px !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-bio {
    font-size:13.5px !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-stats {
    gap:4px !important;
  }
  html body #article-page-section.open #article-page-author-profile .author-profile-stat {
    padding:7px 2px !important;
  }
  html body #article-page-section.open .article-explore-panel .article-topic-row {
    grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
    gap:clamp(2px, 0.95vw, 5px) !important;
  }
  html body #article-page-section.open .article-explore-panel .article-topic-chip {
    padding:6px clamp(1px, 0.8vw, 4px) !important;
    font-size:clamp(6px, 1.72vw, 8.4px) !important;
    letter-spacing:0 !important;
  }
}

.hero-expand-btn,
.spot-expand-btn,
.author-bio-toggle {
  margin-left:auto !important;
  margin-right:0 !important;
}
.hero-expand-btn,
.spot-expand-btn,
.author-bio-toggle {
  display:flex !important;
  width:max-content !important;
  max-width:100% !important;
}

  justify-content:flex-end !important;
  text-align:right !important;
}
.written-read-more {
  display:flex !important;
  width:max-content !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  justify-content:center !important;
  text-align:center !important;
  float:none !important;
}
html body #article-page-section.open .written-read-more {
  display:flex !important;
  width:max-content !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  justify-content:center !important;
  text-align:center !important;
  float:none !important;
}
@media(max-width:640px) {
  .written-read-more {
    width:min(100%, 230px) !important;
  }
}

@media(max-width:900px) {
  #article-page-section.open .written-article-kicker {
    display:block !important;
    text-align:left !important;
    margin:0 0 10px !important;
  }
  html body #article-page-section.open .written-article-body {
    width:100% !important;
    max-width:100% !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    max-height:1080px !important;
    margin-top:22px !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .written-article-body.expanded {
    max-height:none !important;
  }
  html body #article-page-section.open .written-article-body:not(.expanded)::after {
    height:88px !important;
    background:linear-gradient(to bottom, rgba(255,253,248,0), rgba(255,253,248,0.96) 78%) !important;
  }
  #article-page-section.open .written-article-body:not(.expanded) + .written-read-more {
    margin-top:14px !important;
    margin-bottom:34px !important;
  }
}
body.dark-mode #article-page-section.open .written-article-body:not(.expanded)::after {
  background:linear-gradient(to bottom, rgba(13,22,36,0), rgba(13,22,36,0.96) 78%) !important;
}

#article-page-section.open .written-article-title,
#article-page-section.open .article-reader-title {
  font-size:clamp(28px, calc(2.85vw + 10px), 50px) !important;
}
@media(max-width:900px) {
  #article-page-section.open .written-article-title,
  #article-page-section.open .article-reader-title {
    font-size:clamp(24px, 6.8vw, 34px) !important;
  }
  #article-page-section.open .written-article-title,
  #article-page-section.open .written-article-brief,
  html body #article-page-section.open .written-article-body,
  html body #article-page-section.open .written-article-body > [data-ilirh-written-article="1"] {
    width:100% !important;
    max-width:100% !important;
    inline-size:100% !important;
    max-inline-size:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .written-article-body > [data-ilirh-written-article="1"] {
    display:block !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  html body #article-page-section.open .written-article-body > [data-ilirh-written-article="1"] > :where(p, h2, h3, blockquote, ul, ol) {
    width:auto !important;
    max-width:100% !important;
    inline-size:auto !important;
    max-inline-size:100% !important;
    box-sizing:border-box !important;
    min-width:0 !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }
}

html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body),
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) > [data-ilirh-written-article="1"] {
  box-sizing:border-box !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  min-width:0 !important;
  overflow-x:hidden !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  hyphens:auto;
}
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) :where(p, h1, h2, h3, h4, h5, h6, blockquote, ul, ol, li, div, section, article) {
  box-sizing:border-box !important;
  width:auto !important;
  max-width:100% !important;
  inline-size:auto !important;
  max-inline-size:100% !important;
  min-width:0 !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) :where(a, span, strong, em, mark, code) {
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}

html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) blockquote {
  width:auto !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:18px 0 !important;
  padding:12px clamp(12px, 3vw, 18px) 12px clamp(14px, 3.4vw, 20px) !important;
  border-left:4px solid var(--gold) !important;
  border-radius:0 6px 6px 0;
  background:rgba(201,168,76,0.14) !important;
  color:inherit !important;
  font-style:italic !important;
  overflow-wrap:anywhere;
}
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) blockquote > :first-child {
  margin-top:0 !important;
}
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) blockquote > :last-child {
  margin-bottom:0 !important;
}
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) :where(ul, ol) {
  width:auto !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:12px 0 16px 0 !important;
  padding-left:clamp(1.2em, 4.8vw, 1.65em) !important;
  padding-right:0 !important;
  list-style-position:outside !important;
  overflow-wrap:anywhere;
}
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) li {
  max-width:100% !important;
  padding-left:0.25em !important;
  padding-right:0 !important;
  margin:6px 0 !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) li > p {
  margin:0 0 6px !important;
  max-width:100% !important;
}
body.dark-mode #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) blockquote {
  background:rgba(240,206,115,0.12) !important;
  border-left-color:#f0ce73 !important;
  color:#d8e2ee !important;
}

#article-page-section.open .written-article-body mark,
#article-page-section.open .article-reader-shell .modal-rich-body mark {
  padding:0 0.12em !important;
  border-radius:2px;
  background:rgba(201,168,76,0.24) !important;
  color:inherit !important;
  box-shadow:inset 0 -1px 0 rgba(155,122,37,0.2);
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
#article-page-section.open .written-article-body mark *,
#article-page-section.open .article-reader-shell .modal-rich-body mark * {
  color:inherit !important;
}
body.dark-mode #article-page-section.open .written-article-body mark,
body.dark-mode #article-page-section.open .article-reader-shell .modal-rich-body mark {
  background:rgba(218,183,90,0.22) !important;
  color:#eef3f8 !important;
  box-shadow:inset 0 -1px 0 rgba(240,206,115,0.3);
}

@media(max-width:900px) {
  .insight-engine-panel .insight-quote-card {
    width:auto !important;
    max-width:none !important;
    margin:0 17px 13px !important;
    box-sizing:border-box !important;
  }
}

.author-page-back {
  display:inline-flex !important;
  width:max-content !important;
  max-width:100% !important;
  align-items:center !important;
  justify-content:flex-start !important;
  margin:0 0 12px !important;
  text-align:left !important;
}
@media(max-width:900px) {
  #author-page-section.open .author-page-back {
    margin-left:1vw !important;
    margin-bottom:12px !important;
    padding:8px 12px !important;
  }
  #author-page-section.open .author-page-bio {
    font-size:14px !important;
    line-height:1.48 !important;
  }
  #author-page-section.open .author-page-stats {
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:5px !important;
    overflow:visible !important;
    padding-bottom:0 !important;
  }
  #author-page-section.open .author-page-stat {
    min-width:0 !important;
    padding:7px 2px !important;
  }
  #author-page-section.open .author-page-stat strong {
    font-size:14px !important;
  }
  #author-page-section.open .author-page-stat span {
    font-size:6.5px !important;
    letter-spacing:0.04em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
}

#article-page-section.open .written-article-date-place {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin:0 0 14px;
  font-family:'Lato',sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#5f7082;
}
#article-page-section.open .written-article-date-place span + span::before {
  content:'-';
  margin-right:7px;
  color:#9b7a25;
}
#article-page-section.open .written-article-author-row {
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 0 20px;
}
#article-page-section.open .written-article-author-photo {
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#10243a;
  color:#f3d58a;
  border:2px solid rgba(201,168,76,0.72);
  font-family:'Lato',sans-serif;
  font-size:12px;
  font-weight:900;
  letter-spacing:0.08em;
}
#article-page-section.open .written-article-author-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#article-page-section.open .written-article-author-name {
  font-family:'Lato',sans-serif;
  font-size:12px;
  font-weight:900;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#10243a;
}
#article-page-section.open .written-article-author-institution {
  margin-top:3px;
  font-family:'Lato',sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
  color:#5f7082;
}
body.dark-mode #article-page-section.open .written-article-date-place,
body.dark-mode #article-page-section.open .written-article-author-institution {
  color:#9fb3c8;
}
body.dark-mode #article-page-section.open .written-article-author-name {
  color:#d7e4f2;
}
@media(max-width:640px) {
  #article-page-section.open .written-article-date-place {
    font-size:10px;
    line-height:1.45;
    margin-bottom:13px;
  }
  #article-page-section.open .written-article-author-row {
    gap:9px;
    margin-bottom:18px;
  }
  #article-page-section.open .written-article-author-photo {
    width:38px;
    height:38px;
    flex-basis:38px;
  }
  #article-page-section.open .written-article-author-name {
    font-size:11px;
    line-height:1.25;
  }
  #article-page-section.open .written-article-author-institution {
    font-size:10px;
  }
}

#article-page-section.open #article-page-author-profile .author-bio-toggle,
#author-page-section.open .author-bio-toggle {
  display:flex !important;
  width:max-content !important;
  margin-left:0 !important;
  margin-right:auto !important;
  justify-content:flex-start !important;
  text-align:left !important;
}

@media(min-width:901px) {
  #hero-grid.hero-grid {
    grid-template-columns:minmax(0,1.14fr) minmax(340px,0.86fr) !important;
    align-items:start !important;
  }
  #hero-grid .hero-main {
    padding:0 22px 22px !important;
  }
  #hero-grid .hero-category-tag {
    margin-top:0 !important;
    margin-bottom:14px !important;
  }
  #hero-grid .hero-main .hero-thumb-frame {
    min-height:0 !important;
    max-height:320px !important;
  }
  #hero-grid .hero-sidebar .section-label {
    margin-top:0 !important;
    margin-bottom:10px !important;
  }
  #hero-grid .hero-sidebar .sidebar-article {
    min-height:92px !important;
    grid-template-columns:88px minmax(0,1fr) !important;
    gap:12px !important;
    padding:10px 12px !important;
    margin-bottom:8px !important;
    margin-right:20px !important;
    border-radius:10px !important;
    align-items:center !important;
  }
  #hero-grid .hero-sidebar .sidebar-article:hover {
    padding-left:12px !important;
    transform:translateY(-1px) !important;
  }
  #hero-grid .hero-sidebar .sidebar-thumb {
    width:88px !important;
  }
  #hero-grid .hero-sidebar .sidebar-cat {
    font-size:8.5px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
  }
  #hero-grid .hero-sidebar .sidebar-headline {
    font-size:15px !important;
    line-height:1.18 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }
  #hero-grid .hero-sidebar .sidebar-meta {
    font-size:9.5px !important;
    line-height:1.28 !important;
    margin-top:6px !important;
  }
}

@media (hover:none), (pointer:coarse) {
  a,
  button,
  [onclick],
  [role="button"],
  [role="link"],
  input,
  select,
  textarea,
  .article-card,
  .article-feed-card,
  .related-card,
  .sidebar-article,
  .live-feed-item,
  .live-trending-card,
  .category-compass,
  .compass-card,
  .search-item,
  .spotlight-slide-body,
  .spotlight-slide-img,
  .article-topic-chip,
  .share-btn,
  .like-btn {
    touch-action:manipulation !important;
    -webkit-tap-highlight-color:rgba(201,168,76,0.22);
  }

  :where(
    .article-card,
    .article-feed-card,
    .related-card,
    .sidebar-article,
    .live-feed-item,
    .live-trending-card,
    .category-compass,
    .compass-card,
    .search-item,
    .spotlight-slide-img,
    .article-topic-chip,
    .share-btn,
    .like-btn,
    .article-cta-btn,
    .cat-show-more-btn,
    .hero-main,
    .masthead-submit-cta
  ):hover {
    transform:none !important;
    filter:none !important;
  }

  :where(
    .article-card:hover .card-thumb-wrap img,
    .article-card:hover .card-thumb-wrap img.loaded,
    .article-feed-card:hover .article-feed-thumb img,
    .article-feed-card:hover .article-feed-thumb img.loaded,
    .related-card:hover .related-thumb img,
    .related-card:hover .related-thumb img.loaded,
    .sidebar-article:hover .sidebar-thumb img,
    .sidebar-article:hover .sidebar-thumb img.loaded,
    .live-feed-item:hover .live-feed-thumb img,
    .live-feed-item:hover .live-feed-thumb img.loaded,
    .live-trending-card:hover .live-trending-thumb img,
    .live-trending-card:hover .live-trending-thumb img.loaded,
    .hero-main:hover img,
    .hero-main:hover .hero-thumb-img.loaded,
    .spotlight-slide-img:hover img,
    .spotlight-slide-img:hover img.loaded,
    .like-btn:hover .like-icon
  ) {
    transform:none !important;
  }

  :where(
    .article-card:hover .card-headline,
    .article-feed-card:hover .article-feed-card-title,
    .related-card:hover .related-card-title,
    .sidebar-article:hover .sidebar-headline,
    .hero-headline:hover,
    .spotlight-paper-title:hover,
    .ticker-text a:hover
  ) {
    text-decoration:none !important;
  }

  .rte-inline-img-wrap:hover .rte-img-remove,
  .fn-ref:hover .fn-popup {
    display:none !important;
  }

  .ilirh-submit-btn:hover::before,
  .masthead-submit-cta:hover::before,
  .category-compass:hover .category-compass-kicker::before {
    opacity:0 !important;
    transform:none !important;
  }
}

/* Dark-theme completion pass for secondary controls, feedback, and transient states. */
body.dark-mode .spotlight-next-tease {
  background:rgba(7,17,29,0.9) !important;
  border-color:#2b4564 !important;
}
body.dark-mode .spotlight-next-label,
body.dark-mode .promo-home-preview-title {
  color:#f0ce73 !important;
}
body.dark-mode .spotlight-next-title {
  color:#d8e2ee !important;
}
body.dark-mode .author-article-list {
  background:rgba(7,17,29,0.78) !important;
  border-top-color:#2b4564 !important;
}
body.dark-mode .author-profile-photo {
  background:#07111d !important;
  border-color:#2b4564 !important;
  box-shadow:0 0 0 1px #2b4564, 0 10px 24px rgba(0,0,0,0.34) !important;
}
body.dark-mode .author-profile-photo span {
  color:#d8e2ee !important;
}
body.dark-mode .marketing-video-note {
  color:#9fb3c8 !important;
}
body.dark-mode .marketing-video-tag {
  background:#07111d !important;
  border-color:#2b4564 !important;
  color:#d8e2ee !important;
}
body.dark-mode .notice-board-dot {
  border-color:#8fa8c0 !important;
  background:transparent !important;
}
body.dark-mode .notice-board-dot.active {
  background:#f0ce73 !important;
  border-color:#f0ce73 !important;
}
body.dark-mode :where(
  .promo-video-lightbox-close,
  .notice-board-lightbox-close,
  .promo-home-preview-close
) {
  background:#0a1520 !important;
  color:#d8e2ee !important;
  border:1px solid #2b4564 !important;
}
body.dark-mode :where(
  .promo-video-lightbox-close,
  .notice-board-lightbox-close,
  .promo-home-preview-close
):hover {
  background:#132a48 !important;
  color:#fff1b8 !important;
  border-color:#c9a84c !important;
}
body.dark-mode .promo-home-preview-actions button {
  background:#07111d !important;
  color:#d8e2ee !important;
  border-color:#2b4564 !important;
}
body.dark-mode .promo-home-preview-actions button:hover {
  background:#132a48 !important;
  color:#fff1b8 !important;
  border-color:#c9a84c !important;
}
body.dark-mode .lbx-download-menu {
  background:#0a1520 !important;
  border-color:#2b4564 !important;
  box-shadow:0 18px 42px rgba(0,0,0,0.58) !important;
}
body.dark-mode .lbx-download-menu button {
  color:#d8e2ee !important;
  border-bottom-color:#2b4564 !important;
}
body.dark-mode .lbx-download-menu button:hover {
  background:#132a48 !important;
  color:#fff1b8 !important;
}
body.dark-mode .rd-docx-btn.secondary {
  background:#07111d !important;
  color:#d8e2ee !important;
  border-color:#2b4564 !important;
}
body.dark-mode .rd-docx-btn.secondary:hover {
  background:#132a48 !important;
  color:#fff1b8 !important;
  border-color:#c9a84c !important;
}
body.dark-mode #preview-generating {
  background:rgba(7,17,29,0.94) !important;
  color:#b7c8dc !important;
}
body.dark-mode .spinner {
  border-color:#2b4564 !important;
  border-top-color:#f0ce73 !important;
}
body.dark-mode :where(.empty-state, .loading-state) {
  background:rgba(7,17,29,0.72) !important;
  border-color:#2b4564 !important;
  color:#9fb3c8 !important;
}
body.dark-mode :where(.join-success, .submit-success-msg) {
  background:rgba(46,107,62,0.2) !important;
  border-color:#477d55 !important;
  color:#b7e2c2 !important;
}
body.dark-mode :where(
  .article-share-toggle.copied,
  .article-share-feedback
) {
  background:#10271a !important;
  border-color:#477d55 !important;
  color:#a9ddb8 !important;
}
body.dark-mode .article-share-copy-status,
body.dark-mode :where(.msg-status.ok, .submit-docx-status.ok) {
  color:#88c59a !important;
}
body.dark-mode :where(
  .login-err,
  .submit-err,
  .msg-status.err,
  .submit-docx-status.err,
  .sub-remove-btn,
  .msg-attachment-meta button
),
body.dark-mode [style*="color:#a32d2d"],
body.dark-mode [style*="color: #a32d2d"] {
  color:#ffb4b4 !important;
}
body.dark-mode .sub-remove-btn {
  border-color:#7f3b3b !important;
}
body.dark-mode .sub-remove-btn:hover {
  background:#7f1d1d !important;
  border-color:#ef4444 !important;
  color:#fff !important;
}
body.dark-mode .review-status-pending {
  background:#47370f !important;
  color:#ffe29a !important;
}
body.dark-mode .review-status-published {
  background:#123523 !important;
  color:#a9ddb8 !important;
}
body.dark-mode :where(.search-no-results, #search-popup-hint, .article-page-topline-current) {
  color:#9fb3c8 !important;
}

/* Mid-size responsive layer. Phones (<=768px) and standard laptops/desktops stay untouched. */
@media (min-width:769px) and (max-width:1100px) and (orientation:portrait) {
  :root {
    --site-frame:calc(100vw - 32px);
    --document-frame:min(920px, calc(100vw - 32px));
  }
  html { scroll-padding-top:calc(var(--nav-fixed-height) + 10px); }
  body { font-size:16px; line-height:1.64; }
  .site-wrap {
    width:100%;
    max-width:none;
    padding-inline:16px;
  }
  .topbar {
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    padding:5px 14px;
    font-size:9px;
  }
  .masthead { padding:16px 18px 12px; }
  .masthead-title { font-size:clamp(27px,4.6vw,36px); line-height:1.2; }
  .masthead-sub { font-size:10px; }

  #main-nav .nav-inner {
    position:relative;
    width:100%;
    max-width:none;
    min-height:50px;
    gap:2px;
  }
  #main-nav .nav-logo {
    flex:0 0 auto;
    font-size:16px;
    padding:8px 12px;
  }
  #main-nav .hamburger {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:38px;
    min-height:38px;
    padding:6px 8px !important;
  }
  #search-wrap-mobile { display:flex !important; }
  #search-wrap-desktop { display:none !important; }
  #main-nav .nav-links {
    display:flex !important;
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-height:0 !important;
    flex-direction:column !important;
    align-items:stretch !important;
    overflow:hidden !important;
    background:var(--navy-mid) !important;
    border-top:2px solid var(--gold) !important;
    box-shadow:0 18px 36px rgba(5,12,24,0.22) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateY(-6px) !important;
    transition:max-height 0.28s cubic-bezier(.22,1,.36,1), opacity 0.18s ease, transform 0.24s ease, visibility 0.18s ease !important;
  }
  #main-nav .nav-links.mob-open {
    max-height:min(72vh,520px) !important;
    overflow-y:auto !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateY(0) !important;
  }
  #main-nav .nav-links a {
    width:100%;
    min-height:44px;
    padding:12px 22px;
    font-size:10px;
    line-height:1.25;
    white-space:nowrap;
  }
  #main-nav .nav-right {
    flex:1 1 auto;
    min-width:0;
    justify-content:flex-end;
    padding:0 10px 0 4px;
    gap:6px;
  }
  #main-nav .btn-join-nav .btn-label-full { display:none !important; }
  #main-nav .btn-join-nav .btn-label-short { display:inline !important; }

  :where(
    .hero-section,
    .live-home-section,
    .notice-board-section,
    .marketing-video-section,
    #spotlight-section,
    .author-dashboard-section,
    .category-section,
    .article-feed-band,
    .article-end-panel,
    .article-inline-spotlight
  ) {
    width:98vw !important;
    max-width:98vw !important;
    margin-left:calc(50% - 49vw) !important;
    margin-right:calc(50% - 49vw) !important;
    padding:18px !important;
    box-sizing:border-box !important;
  }
  #hero-grid.hero-grid {
    grid-template-columns:1fr !important;
    gap:22px !important;
  }
  #hero-grid .hero-main {
    padding:0 0 22px !important;
    margin:0 !important;
    border-right:0 !important;
    border-bottom:1px solid var(--border) !important;
  }
  #hero-grid .hero-main .hero-thumb-frame {
    width:100%;
    height:auto !important;
    max-height:none !important;
    aspect-ratio:16/9;
  }
  #hero-grid .hero-sidebar { padding-left:0 !important; }
  #hero-grid .hero-sidebar .sidebar-article {
    grid-template-columns:112px minmax(0,1fr) !important;
    gap:14px !important;
    min-height:112px !important;
    margin-right:0 !important;
    padding:12px !important;
  }
  #hero-grid .hero-sidebar .sidebar-thumb { width:112px !important; }
  .hero-headline { font-size:clamp(28px,5vw,38px); line-height:1.16; }

  .articles-row,
  .article-feed-grid,
  .related-grid,
  .article-reading-list {
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
  :where(.article-card, .article-feed-card, .related-card) {
    width:100%;
    max-width:760px;
    margin-inline:auto;
  }
  .grid-4-cols { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .compass-head,
  .compass-layout,
  .compass-panel-grid { grid-template-columns:1fr !important; }
  .compass-strip { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .category-compass { align-items:flex-start; }

  .live-home-grid,
  .marketing-video-shell {
    grid-template-columns:1fr !important;
  }
  .live-home-head { display:block; }
  .live-home-updated { margin-top:8px; white-space:normal; }
  .live-feed-item {
    grid-template-columns:112px minmax(0,1fr) !important;
    gap:14px !important;
  }
  .live-feed-thumb { width:112px !important; }
  .insight-engine-panel {
    min-height:auto;
    margin:0 !important;
    border-radius:8px !important;
  }
  .insight-stage { grid-template-columns:1fr !important; }
  .insight-prism-wrap { min-height:250px; }
  .marketing-video-copy { padding:8px 4px 4px; }
  .marketing-video-title { font-size:clamp(24px,4vw,32px); }

  #spotlight-section .spotlight-slide.spot-active,
  .article-inline-spotlight .spotlight-slide.spot-active {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
    min-height:0 !important;
    padding:18px !important;
  }
  #spotlight-section .spotlight-slide-img,
  .article-inline-spotlight .spotlight-slide-img {
    width:100% !important;
    max-width:620px !important;
    justify-self:center;
  }
  .research-intel-panel,
  .research-overlay { min-height:680px; }
  .research-overlay {
    grid-template-columns:1fr !important;
    grid-template-rows:auto !important;
    align-content:start;
  }
  :where(.topic-card, .analytics-card, .discussion-card) {
    grid-column:1 !important;
    grid-row:auto !important;
  }
  .research-pulse-panel { min-height:440px; }

  .notice-board-section { overflow:hidden !important; }
  .notice-board-deck {
    left:50%;
    width:min(100vw,680px);
    min-height:430px;
    transform:translateX(-50%);
  }
  .notice-board-card {
    width:min(44vw,320px) !important;
    height:min(59vw,426px) !important;
  }

  .footer-top {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:26px;
  }
  .footer-brand-block { grid-column:1 / -1; }
  .footer-bottom { gap:12px; }

  .submit-2col,
  .review-detail-grid { grid-template-columns:1fr !important; }
  .author-ownership,
  .upload-mode-row,
  .article-mode-row {
    flex-direction:column !important;
    gap:8px !important;
  }
  :where(.ownership-btn, .upload-mode-btn, .article-mode-btn) {
    width:100% !important;
    min-width:0 !important;
    min-height:44px;
  }
  .article-cover-preset-grid,
  .promo-mode-row,
  .promo-image-item { grid-template-columns:1fr !important; }
  .promo-image-thumb { width:100% !important; }
  :where(.modal-box, .upload-box, .submit-box, .review-detail-box, .policy-box, .about-box, .msg-sub-box) {
    width:min(100%,760px);
    max-width:calc(100vw - 32px);
  }

  html body #main-content.site-wrap #article-page-section.open,
  #author-page-section.open {
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    padding:18px 0 30px !important;
    overflow-x:hidden !important;
  }
  html body #article-page-section.open .article-page-shell,
  html body #article-page-section.open .article-page-extension {
    width:100vw !important;
    max-width:100vw !important;
    margin:0 auto !important;
    padding:0 !important;
  }
  html body #article-page-section.open .article-page-shell > :where(.article-page-back, .article-page-topline),
  html body #article-page-section.open :where(
    .article-page-card,
    .article-feed-band,
    .article-inline-spotlight,
    .article-explore-panel,
    .article-cta-section
  ),
  #author-page-section.open :where(.author-page-back, .author-page-hero, .author-page-list) {
    width:98vw !important;
    max-width:98vw !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  html body #article-page-section.open .article-page-shell > .article-page-back,
  #author-page-section.open .author-page-back {
    display:inline-flex !important;
    width:auto !important;
    max-width:max-content !important;
    margin-left:1vw !important;
    margin-right:0 !important;
  }
  html body #article-page-section.open .article-page-card {
    padding:22px 20px 26px !important;
  }
  #article-page-section.open :where(.written-article-title, .article-reader-title) {
    font-size:clamp(28px,5vw,38px) !important;
    line-height:1.1 !important;
  }
  #article-page-section.open :where(.written-article-brief, .article-reader-brief) {
    font-size:clamp(17px,2.5vw,20px) !important;
    line-height:1.46 !important;
  }
  html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) {
    width:100% !important;
    max-width:100% !important;
    padding:0 !important;
    margin-top:22px !important;
    border:0 !important;
    box-shadow:none !important;
  }
  html body #article-page-section.open .article-explore-panel .article-topic-row {
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:6px !important;
    overflow:hidden !important;
  }
  html body #article-page-section.open .article-explore-panel .article-topic-chip {
    min-width:0 !important;
    width:100% !important;
    padding:7px 4px !important;
    font-size:clamp(8px,1.15vw,10px) !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
  }
  #article-page-section.open #article-page-author-profile .author-profile-card {
    width:min(100%,680px) !important;
    margin-inline:auto !important;
    text-align:left !important;
  }
  #article-page-section.open #article-page-author-profile .author-profile-stats,
  #author-page-section.open .author-page-stats {
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:6px !important;
  }
  #author-page-section.open .author-page-top {
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (min-width:769px) and (max-width:1180px) and (orientation:landscape),
       (min-width:1181px) and (max-width:1366px) and (orientation:landscape) and (hover:none) and (pointer:coarse) {
  :root {
    --site-frame:calc(100vw - 40px);
    --document-frame:min(1040px, calc(100vw - 40px));
  }
  body { font-size:16px; line-height:1.64; }
  .site-wrap { padding-inline:0; }
  .topbar { padding-inline:20px; }
  .masthead { padding:12px 22px 10px; }

  #main-nav .nav-inner {
    position:relative;
    width:100%;
    max-width:var(--site-frame);
    min-height:46px;
    flex-wrap:nowrap;
  }
  #main-nav .hamburger { display:none !important; }
  #search-wrap-mobile { display:none !important; }
  #search-wrap-desktop { display:flex !important; }
  #main-nav .nav-logo {
    flex:0 0 auto;
    font-size:15px;
    padding:9px 12px;
  }
  #main-nav .nav-links {
    display:flex !important;
    position:static !important;
    width:auto !important;
    max-height:none !important;
    flex:1 1 auto !important;
    flex-direction:row !important;
    align-items:center !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:none !important;
  }
  #main-nav .nav-links a {
    width:auto;
    min-height:42px;
    padding:11px 6px;
    font-size:8.5px;
    letter-spacing:0.045em;
    white-space:nowrap;
  }
  #main-nav .nav-right {
    flex:0 0 auto;
    padding:0 8px;
    gap:5px;
  }
  #main-nav .btn-join-nav .btn-label-full { display:none !important; }
  #main-nav .btn-join-nav .btn-label-short { display:inline !important; }
  #main-nav .btn-join-nav { padding-inline:9px !important; }

  :where(
    .hero-section,
    .live-home-section,
    .notice-board-section,
    .marketing-video-section,
    #spotlight-section,
    .author-dashboard-section,
    .category-section,
    .article-feed-band,
    .article-end-panel,
    .article-inline-spotlight
  ) {
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }
  #hero-grid.hero-grid {
    grid-template-columns:minmax(0,1.14fr) minmax(330px,0.86fr) !important;
    gap:0 !important;
    align-items:start !important;
  }
  #hero-grid .hero-main {
    padding:0 18px 20px 0 !important;
    margin:0 !important;
    border-right:1px solid var(--border) !important;
    border-bottom:0 !important;
  }
  #hero-grid .hero-sidebar { padding-left:18px !important; }
  #hero-grid .hero-main .hero-thumb-frame {
    height:clamp(230px,26vw,300px) !important;
    max-height:300px !important;
  }
  #hero-grid .hero-sidebar .sidebar-article {
    grid-template-columns:80px minmax(0,1fr) !important;
    gap:10px !important;
    min-height:84px !important;
    padding:9px 10px !important;
    margin:0 0 7px !important;
    border-radius:8px !important;
  }
  #hero-grid .hero-sidebar .sidebar-thumb { width:80px !important; }
  #hero-grid .hero-sidebar .sidebar-headline {
    font-size:14px !important;
    line-height:1.2 !important;
    -webkit-line-clamp:2 !important;
  }
  #hero-grid .hero-sidebar .sidebar-meta { font-size:9px !important; }
  .hero-headline { font-size:clamp(27px,3vw,38px); }

  .articles-row { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:18px !important; }
  .article-feed-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:16px !important; }
  .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:14px !important; }
  :where(.article-card, .article-feed-card, .related-card) {
    width:100%;
    max-width:none;
    margin:0;
  }
  .grid-4-cols { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .card-headline { font-size:clamp(15px,1.45vw,18px); }
  .card-excerpt { font-size:clamp(13px,1.15vw,15px); }

  .compass-head { grid-template-columns:1.1fr 1fr !important; }
  .compass-layout { grid-template-columns:230px minmax(0,1fr) !important; }
  .compass-panel-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .compass-strip { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
  .live-home-grid { grid-template-columns:minmax(0,1.15fr) minmax(330px,0.85fr) !important; }
  .live-home-head { display:flex; }
  .live-feed-item {
    grid-template-columns:94px minmax(0,1fr) !important;
    gap:12px !important;
  }
  .live-feed-thumb { width:94px !important; }
  .insight-engine-panel {
    display:block !important;
    min-height:0;
    margin:0 !important;
    border-radius:8px !important;
  }
  .insight-head { display:flex !important; }
  .insight-stage {
    display:grid !important;
    grid-template-columns:minmax(200px,.9fr) minmax(190px,.82fr) !important;
  }
  :where(.insight-prism-wrap, .insight-copy-stack, .insight-footer, .insight-quote-card) {
    order:initial !important;
  }
  .insight-prism-wrap { min-height:250px; }
  .marketing-video-shell {
    grid-template-columns:minmax(0,1.05fr) minmax(280px,.82fr) !important;
    gap:18px !important;
  }
  .marketing-video-title { font-size:clamp(24px,2.5vw,34px); }

  #spotlight-section .spotlight-slide.spot-active,
  .article-inline-spotlight .spotlight-slide.spot-active {
    display:grid !important;
    grid-template-columns:minmax(220px,32%) minmax(0,1fr) !important;
    gap:22px !important;
    min-height:240px !important;
    padding:18px !important;
  }
  #spotlight-section .spotlight-slide-img,
  .article-inline-spotlight .spotlight-slide-img {
    width:100% !important;
    max-width:310px !important;
  }
  .research-overlay {
    grid-template-columns:minmax(0,1fr) minmax(280px,.88fr) !important;
    grid-template-rows:auto auto auto !important;
  }
  .topic-card { grid-column:1 / 2 !important; grid-row:1 / 4 !important; }
  .analytics-card { grid-column:2 / 3 !important; grid-row:1 / 2 !important; }
  .discussion-card { grid-column:2 / 3 !important; grid-row:3 / 4 !important; }
  .notice-board-section { overflow:hidden !important; padding:30px 28px 34px !important; }
  .notice-board-deck {
    left:auto !important;
    width:100% !important;
    min-height:clamp(350px,38vw,470px) !important;
    transform:none !important;
    perspective:1100px !important;
  }
  .notice-board-card {
    top:0 !important;
    width:clamp(230px,27vw,350px) !important;
    height:clamp(310px,36vw,460px) !important;
  }
  .notice-board-card.active { transform:translateX(-50%) scale(1) !important; }
  .notice-board-card.prev { transform:translateX(calc(-50% - min(25vw,250px))) scale(.84) !important; }
  .notice-board-card.next { transform:translateX(calc(-50% + min(25vw,250px))) scale(.84) !important; }
  .notice-board-card.far-prev { transform:translateX(calc(-50% - min(41vw,410px))) scale(.7) !important; }
  .notice-board-card.far-next { transform:translateX(calc(-50% + min(41vw,410px))) scale(.7) !important; }

  .footer-top { grid-template-columns:2fr 1fr 1fr !important; gap:26px !important; }
  .footer-brand-block { grid-column:auto !important; }
  .footer-bottom { flex-direction:row; }
  .submit-2col,
  .review-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .author-ownership,
  .upload-mode-row,
  .article-mode-row {
    flex-direction:row !important;
    gap:8px !important;
  }
  :where(.ownership-btn, .upload-mode-btn, .article-mode-btn) {
    flex:1 1 0;
    width:auto !important;
    min-width:0 !important;
  }

  html body #article-page-section.open .article-page-shell,
  html body #article-page-section.open .article-page-extension {
    width:100vw !important;
    max-width:100vw !important;
    padding:0 !important;
  }
  html body #article-page-section.open .article-page-shell > :where(.article-page-back, .article-page-topline),
  html body #article-page-section.open :where(
    .article-page-card,
    .article-feed-band,
    .article-inline-spotlight,
    .article-explore-panel,
    .article-cta-section
  ) {
    width:calc(100vw - 40px) !important;
    max-width:calc(100vw - 40px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html body #article-page-section.open .article-page-shell > .article-page-back {
    display:inline-flex !important;
    width:auto !important;
    max-width:max-content !important;
    margin-left:20px !important;
    margin-right:0 !important;
  }
  html body #article-page-section.open .article-page-card {
    padding:clamp(24px,3vw,38px) !important;
  }
  #article-page-section.open :where(.written-article-title, .article-reader-title) {
    font-size:clamp(32px,4.2vw,46px) !important;
    line-height:1.08 !important;
  }
  #article-page-section.open :where(.written-article-brief, .article-reader-brief) {
    font-size:clamp(18px,2vw,21px) !important;
  }
  html body #article-page-section.open :where(.written-article-body, .article-reader-shell .modal-rich-body) {
    width:100% !important;
    max-width:100% !important;
    padding:0 !important;
    margin-top:24px !important;
  }
  #article-page-section.open .article-feed-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  #article-page-section.open .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  #article-page-section.open .article-page-card .article-action-top {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  #article-page-section.open #article-page-author-profile .author-profile-card {
    width:min(100%,760px) !important;
    margin-inline:auto !important;
  }
  #article-page-section.open .article-explore-panel .article-topic-row {
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  #article-page-section.open .article-explore-panel .article-topic-chip {
    padding:8px 6px !important;
    font-size:clamp(8px,.9vw,10px) !important;
    letter-spacing:0 !important;
  }
}

@media (min-width:769px) and (max-width:980px) and (orientation:landscape) {
  .articles-row,
  .article-feed-grid,
  #article-page-section.open .article-feed-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (min-width:769px) and (max-width:1100px) and (orientation:portrait) {
  #article-page-section.open #article-page-author-profile {
    display:grid !important;
    width:100% !important;
    place-items:center !important;
  }
  #article-page-section.open #article-page-author-profile .author-profile-card {
    justify-self:center !important;
    margin-inline:auto !important;
  }
  #author-page-section.open .author-page-hero {
    width:min(92vw,760px) !important;
    max-width:min(92vw,760px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

@media (min-width:769px) and (max-width:1180px) and (orientation:landscape),
       (min-width:1181px) and (max-width:1366px) and (orientation:landscape) and (hover:none) and (pointer:coarse) {
  #article-page-section.open #article-page-author-profile {
    display:grid !important;
    width:100% !important;
    place-items:center !important;
  }
  #article-page-section.open #article-page-author-profile .author-profile-card {
    justify-self:center !important;
    margin-inline:auto !important;
  }
  #author-page-section.open .author-page-hero {
    width:min(calc(100vw - 40px),920px) !important;
    max-width:min(calc(100vw - 40px),920px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Portrait tablets only: keep phone, landscape-tablet, and desktop layouts unchanged. */
@media (min-width:700px) and (max-width:1100px) and (orientation:portrait) {
  #main-nav .nav-links a {
    justify-content:center !important;
    text-align:center !important;
  }

  html body #article-page-section.open #article-page-author-profile {
    display:grid !important;
    width:100% !important;
    place-items:center !important;
  }
  html body #article-page-section.open .article-page-card #article-page-author-profile .author-profile-card {
    justify-self:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html body #article-page-section.open .article-cta-box {
    width:98vw !important;
    max-width:98vw !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html body #article-page-section.open .article-cta-box .article-cta-section {
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .marketing-video-title {
    max-width:none !important;
    font-size:clamp(29px,4.1vw,34px) !important;
    line-height:1.1 !important;
  }
  .marketing-video-sub {
    width:100% !important;
    max-width:none !important;
    font-size:clamp(14px,2.1vw,16px) !important;
    line-height:1.4 !important;
    white-space:nowrap !important;
  }

  .notice-board-head {
    max-width:none !important;
    padding-left:clamp(28px,4vw,44px) !important;
    padding-right:clamp(28px,4vw,44px) !important;
  }
  .notice-board-deck {
    left:0 !important;
    width:100% !important;
    max-width:none !important;
    height:clamp(360px,54vw,440px) !important;
    min-height:0 !important;
    transform:none !important;
    perspective:1100px !important;
  }
  .notice-board-card {
    width:clamp(220px,32vw,280px) !important;
    height:clamp(296px,43vw,376px) !important;
  }
  .notice-board-card.active {
    transform:translate3d(-50%,-50%,84px) scale(1) !important;
  }
  .notice-board-card.prev {
    transform:translate3d(calc(-50% - min(24vw, 190px)),-50%,-12px) scale(.86) !important;
  }
  .notice-board-card.next {
    transform:translate3d(calc(-50% + min(24vw, 190px)),-50%,-12px) scale(.86) !important;
  }
  .notice-board-card.far-prev {
    transform:translate3d(calc(-50% - min(41vw, 325px)),-50%,-104px) scale(.72) !important;
  }
  .notice-board-card.far-next {
    transform:translate3d(calc(-50% + min(41vw, 325px)),-50%,-104px) scale(.72) !important;
  }
}

/* Editor workspace: use the available screen width on phones and tablets. */
@media (max-width:1100px) {
  #upload-overlay,
  #review-detail-overlay {
    padding-left:1vw !important;
    padding-right:1vw !important;
  }
  #upload-overlay .upload-box,
  #review-detail-overlay .review-detail-box {
    width:98vw !important;
    max-width:98vw !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:clamp(16px,3.8vw,42px) !important;
    padding-right:clamp(16px,3.8vw,42px) !important;
    box-sizing:border-box !important;
  }
  #upload-overlay :where(.editor-tabs,.editor-panel,.form-row,.submit-2col,.article-write-panel,.article-cover-preset-grid,.article-cover-tools,.article-cover-tool-row,.article-mode-row,.upload-mode-row,.author-ownership,.silent-row,.subs-panel,.promo-mode-row,.promo-pane,.promo-image-item,.promo-image-fields,.promo-image-control-row,.promo-image-preview),
  #review-detail-overlay :where(.review-detail-grid,.review-field,.review-actions,#rd-rich-editor-section,.rd-full-preview-wrap) {
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  #upload-overlay .editor-tabs {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;
  }
  #upload-overlay .editor-tab {
    width:100% !important;
    min-width:0 !important;
    padding:10px clamp(5px,1.6vw,16px) !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    line-height:1.25 !important;
  }
  #upload-overlay :where(input,select,textarea,button,.drop-zone),
  #review-detail-overlay :where(input,select,textarea,button) {
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  #upload-overlay :where(.rich-editor-toolbar,.rich-editor-area),
  #review-detail-overlay :where(.rich-editor-toolbar,.rich-editor-area) {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #upload-overlay .rich-editor-toolbar,
  #review-detail-overlay .rich-editor-toolbar {
    overflow-x:auto !important;
    overflow-y:hidden !important;
  }
  #upload-overlay :where(#review-list,#published-list,.review-item,.published-editor-item,.review-empty) {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}

@media (min-width:641px) and (max-width:1100px) {
  #upload-overlay .submit-2col,
  #review-detail-overlay .review-detail-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:clamp(12px,2vw,18px) !important;
  }
  #upload-overlay :where(.author-ownership,.upload-mode-row,.article-mode-row) {
    flex-direction:row !important;
    align-items:stretch !important;
  }
  #upload-overlay :where(.ownership-btn,.upload-mode-btn,.article-mode-btn) {
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
  }
  #upload-overlay .article-cover-preset-grid,
  #upload-overlay .promo-mode-row {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  #upload-overlay .promo-image-item {
    grid-template-columns:minmax(130px,180px) minmax(0,1fr) !important;
    align-items:start !important;
  }
  #upload-overlay .promo-image-thumb {
    width:100% !important;
  }
}

@media (max-width:640px) {
  #upload-overlay .upload-box,
  #review-detail-overlay .review-detail-box {
    padding-left:clamp(12px,4vw,18px) !important;
    padding-right:clamp(12px,4vw,18px) !important;
  }
  #upload-overlay .editor-tab {
    padding:9px 4px !important;
    font-size:clamp(7.5px,2.25vw,9px) !important;
    letter-spacing:.035em !important;
  }
  #upload-overlay .submit-2col,
  #review-detail-overlay .review-detail-grid,
  #upload-overlay .article-cover-preset-grid,
  #upload-overlay .promo-mode-row,
  #upload-overlay .promo-image-item {
    grid-template-columns:1fr !important;
  }
  #upload-overlay :where(.author-ownership,.upload-mode-row,.article-mode-row) {
    flex-direction:column !important;
  }
  #upload-overlay :where(.ownership-btn,.upload-mode-btn,.article-mode-btn) {
    width:100% !important;
  }
  #review-detail-overlay .review-actions {
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  #review-detail-overlay .review-actions > * {
    width:100% !important;
  }
}

/* Final mobile tap/performance layer. Keep this at the end so it wins over older hover passes. */
[data-article-id],
a,
button,
[role="button"],
[role="link"],
[onclick] {
  touch-action:manipulation;
}

.articles-row,
.article-feed-grid,
.related-grid,
.grid-4-cols {
  align-items:start;
}

:where(.article-card, .article-feed-card, .related-card) {
  min-width:0;
  overflow-wrap:anywhere;
}

@media (hover:none), (pointer:coarse) {
  html {
    -webkit-text-size-adjust:100%;
  }

  :where(
    a,
    button,
    [onclick],
    [role="button"],
    [role="link"],
    [data-article-id],
    input,
    select,
    textarea
  ) {
    touch-action:manipulation !important;
    -webkit-tap-highlight-color:rgba(201,168,76,0.24);
  }

  :where(
    .article-card,
    .article-feed-card,
    .related-card,
    .sidebar-article,
    .live-feed-item,
    .live-trending-card,
    .category-compass,
    .compass-card,
    .search-item,
    .hero-main,
    .spotlight-slide-img,
    .spotlight-slide-body,
    .article-topic-chip,
    .share-btn,
    .like-btn,
    .article-cta-btn,
    .cat-show-more-btn,
    .masthead-submit-cta,
    .btn-join-nav,
    .btn-upload-nav,
    #search-toggle-btn-desktop,
    #search-toggle-btn-mobile
  ) {
    transition-property:opacity, color, background-color, border-color !important;
  }

  :where(
    .article-card,
    .article-feed-card,
    .related-card,
    .sidebar-article,
    .live-feed-item,
    .live-trending-card,
    .category-compass,
    .compass-card,
    .search-item,
    .hero-main,
    .spotlight-slide-img,
    .spotlight-slide-body,
    .article-topic-chip,
    .share-btn,
    .like-btn,
    .article-cta-btn,
    .cat-show-more-btn,
    .masthead-submit-cta,
    .btn-join-nav,
    .btn-upload-nav
  ):hover {
    transform:none !important;
    box-shadow:none !important;
    filter:none !important;
  }

  :where(
    .article-card:hover .card-thumb-wrap img,
    .article-card:hover .card-thumb-wrap img.loaded,
    .article-feed-card:hover .article-feed-thumb img,
    .article-feed-card:hover .article-feed-thumb img.loaded,
    .related-card:hover .related-thumb img,
    .related-card:hover .related-thumb img.loaded,
    .sidebar-article:hover .sidebar-thumb img,
    .sidebar-article:hover .sidebar-thumb img.loaded,
    .live-feed-item:hover .live-feed-thumb img,
    .live-feed-item:hover .live-feed-thumb img.loaded,
    .live-trending-card:hover .live-trending-thumb img,
    .live-trending-card:hover .live-trending-thumb img.loaded,
    .hero-main:hover img,
    .hero-main:hover .hero-thumb-img.loaded,
    .spotlight-slide-img:hover img,
    .spotlight-slide-img:hover img.loaded,
    .like-btn:hover .like-icon
  ) {
    transform:none !important;
  }

  :where(
    .article-card:hover .card-headline,
    .article-feed-card:hover .article-feed-card-title,
    .related-card:hover .related-card-title,
    .sidebar-article:hover .sidebar-headline,
    .hero-headline:hover,
    .spotlight-paper-title:hover,
    .ticker-text a:hover,
    #main-nav .nav-links a:hover
  ) {
    text-decoration:none !important;
  }

  #main-nav .nav-links a:hover:not(.active) {
    color:#c5d2e0 !important;
    border-bottom-color:transparent !important;
  }

  :where(.ilirh-submit-btn:hover::before, .masthead-submit-cta:hover::before, .category-compass:hover .category-compass-kicker::before) {
    opacity:0 !important;
    transform:none !important;
  }
}

@media (max-width:768px) {
  .articles-row,
  .article-feed-grid,
  .related-grid,
  .grid-4-cols {
    grid-template-columns:1fr !important;
    width:100% !important;
    max-width:100% !important;
  }

  :where(.article-card, .article-feed-card, .related-card, .category-compass, .live-feed-item, .sidebar-article) {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  :where(.card-headline, .article-feed-card-title, .related-card-title, .sidebar-headline, .live-feed-title) {
    overflow-wrap:anywhere !important;
  }
}

@media (hover:none), (pointer:coarse) {
  :where(.share-btn, .like-btn, .modal-tool-btn, .modal-icon-btn, .article-cta-btn, .cat-show-more-btn, .masthead-submit-cta, .btn-join-nav, .btn-upload-nav, .join-close-btn, .modal-close, #search-clear-btn):hover {
    transform:none !important;
    box-shadow:none !important;
  }

  .like-btn:hover:not(.liked) {
    border-color:var(--border) !important;
    background:none !important;
    color:var(--text-muted) !important;
  }

  .share-btn:hover:not(.copied),
  .modal-tool-btn:hover,
  .modal-icon-btn:hover {
    background:none !important;
    color:var(--text-muted) !important;
  }

  .article-page-card .like-btn:hover:not(.liked),
  .modal-mobile-actions .like-btn:hover:not(.liked),
  .article-page-card .share-btn:hover:not(.copied),
  .modal-mobile-actions .share-btn:hover:not(.copied) {
    border-color:rgba(24,57,95,0.22) !important;
    background:linear-gradient(180deg,#fff,#fbf7ed) !important;
    color:#18395f !important;
  }

  .like-btn.liked .like-icon {
    transform:scale(1.28) translateY(-1px) !important;
  }

  .like-btn:hover:not(.liked) .like-icon {
    transform:none !important;
  }

  #main-nav .btn-join-nav:hover {
    background:transparent !important;
    color:#c5d2e0 !important;
  }

  #main-nav .btn-upload-nav:hover {
    background:transparent !important;
    color:var(--gold) !important;
  }

  .join-close-btn:hover,
  #subscribe-pop .join-close-btn.pop-close:hover,
  .modal-close:hover,
  #search-clear-btn:hover {
    color:var(--text-muted) !important;
  }

  body.dark-mode .like-btn:hover:not(.liked),
  body.dark-mode .share-btn:hover:not(.copied),
  body.dark-mode .modal-tool-btn:hover,
  body.dark-mode .modal-icon-btn:hover {
    background:#07111d !important;
    color:#d8e2ee !important;
    border-color:#2b4564 !important;
  }

  body.dark-mode .like-btn.liked {
    background:#0f1d2e !important;
    color:#f0ce73 !important;
    border-color:#c9a84c !important;
  }

  body.dark-mode :where(.join-close-btn, .modal-close, #search-clear-btn):hover {
    color:var(--text-muted) !important;
  }
}

@media (hover:hover) and (pointer:fine) {
  #hero-grid .hero-sidebar .sidebar-headline {
    text-decoration:none !important;
  }

  #hero-grid .hero-sidebar .sidebar-headline-text {
    display:inline;
    background-image:linear-gradient(var(--gold), var(--gold));
    background-repeat:no-repeat;
    background-position:0 100%;
    background-size:0 1.5px;
    -webkit-box-decoration-break:clone;
            box-decoration-break:clone;
    text-decoration:none;
    transition:background-size 0.18s ease;
  }

  #hero-grid .hero-sidebar .sidebar-article:hover .sidebar-headline-text,
  #hero-grid .hero-sidebar .sidebar-article:focus-visible .sidebar-headline-text {
    background-size:100% 1.5px;
  }
}
