/*
Theme Name: Dharmveer ePaper Portal
Theme URI: https://epaper.dharmveer.news/
Author: Dainik Dharmveer
Description: Responsive WordPress ePaper portal for Dainik Dharmveer, Dharmveer Samachar and Dharmveer Times.
Version: 1.0.0
Requires at least: 6.0
Text Domain: dharmveer-epaper-portal
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800;900&display=swap");

:root {
  --ep-bg: #eef2f7;
  --ep-ink: #111827;
  --ep-muted: #667085;
  --ep-line: #d8dee8;
  --ep-panel: #ffffff;
  --ep-red: #9f1d00;
  --ep-orange: #d96800;
  --ep-navy: #071527;
  --ep-blue: #123c69;
  --ep-shadow: 0 18px 42px rgba(16, 24, 40, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ep-ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,242,247,.94) 340px),
    linear-gradient(90deg, rgba(7,21,39,.04) 1px, transparent 1px),
    var(--ep-bg);
  background-size: auto, 26px 26px, auto;
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.ep-topbar {
  background: var(--ep-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.ep-shell {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
}

.ep-topbar .ep-shell,
.ep-header .ep-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ep-topbar .ep-shell { min-height: 36px; }

.ep-topbar nav,
.ep-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ep-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--ep-line);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  backdrop-filter: blur(12px);
}

.ep-header .ep-shell {
  min-height: 82px;
  padding: 10px 0;
}

.ep-logo {
  display: block;
  width: min(280px, 56vw);
}

.ep-logo img {
  display: block;
  width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.ep-date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 900;
}

.ep-main-nav {
  justify-content: center;
  border-bottom: 1px solid var(--ep-line);
  background: #fff;
}

.ep-main-nav a {
  padding: 12px 14px;
  color: #344054;
  font-weight: 900;
}

.ep-main-nav a:hover { color: var(--ep-red); }

.ep-home {
  padding: 16px 0 42px;
}

.ep-brand-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ep-brand-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ep-line);
  border-left: 5px solid var(--brand, var(--ep-orange));
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .07);
}

.ep-brand-card img {
  width: 108px;
  height: 44px;
  object-fit: contain;
}

.ep-brand-card strong,
.ep-brand-card span {
  display: block;
}

.ep-brand-card strong { font-size: 1.04rem; }
.ep-brand-card span { color: var(--ep-muted); font-size: .82rem; font-weight: 900; }

.ep-console {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.ep-sidebar,
.ep-reader,
.ep-info,
.ep-section {
  background: #fff;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  box-shadow: var(--ep-shadow);
  overflow: hidden;
}

.ep-sidebar-title {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  color: #fff;
  background: var(--ep-navy);
  font-weight: 900;
}

.ep-edition-list {
  display: grid;
  max-height: 500px;
  overflow: auto;
}

.ep-edition-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #eef1f5;
  color: var(--ep-ink);
  font-weight: 900;
}

.ep-edition-list a:hover {
  background: color-mix(in srgb, var(--ep-orange) 12%, #fff);
  box-shadow: inset 4px 0 0 var(--ep-orange);
}

.ep-edition-list small {
  color: var(--ep-muted);
  white-space: nowrap;
}

.ep-reader-head {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--ep-line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.ep-reader-head img {
  width: min(430px, 88vw);
  max-height: 105px;
  object-fit: contain;
}

.ep-reader-head span {
  color: var(--ep-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-reader-head h1 {
  margin: 3px 0 0;
  color: var(--ep-red);
  font-size: clamp(1.55rem, 4vw, 3rem);
  line-height: 1;
}

.ep-paper-stage {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 36px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.52) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.48) 1px, transparent 1px),
    #d7dde7;
  background-size: 30px 30px;
}

.ep-paper {
  width: min(350px, 78vw);
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid rgba(16,24,40,.16);
  border-radius: 4px;
  box-shadow: 0 28px 64px rgba(16,24,40,.34);
  overflow: hidden;
}

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

.ep-info {
  display: grid;
  align-content: start;
}

.ep-info-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-top: 1px solid #eef1f5;
}

.ep-info-card:first-child { border-top: 0; }
.ep-info-card span { color: var(--ep-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.ep-info-card strong { font-size: 1.08rem; }

.ep-section {
  margin-top: 14px;
}

.ep-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--ep-line);
}

.ep-section-head h2,
.ep-section-head p {
  margin: 0;
}

.ep-section-head p {
  color: var(--ep-muted);
  font-weight: 800;
}

.ep-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.ep-edition-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eef1f5;
}

.ep-edition-card img {
  width: 64px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--ep-line);
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(16,24,40,.12);
}

.ep-edition-card small,
.ep-empty {
  color: var(--ep-muted);
  font-weight: 800;
}

.ep-edition-card strong {
  display: block;
  margin: 2px 0;
  font-size: 1.05rem;
}

.ep-empty {
  padding: 28px;
  text-align: center;
  background: repeating-linear-gradient(135deg, #fbfcfe, #fbfcfe 12px, #f3f5f8 12px, #f3f5f8 24px);
}

.ep-footer {
  margin-top: 28px;
  padding: 28px 0;
  color: #c9d2df;
  background: var(--ep-navy);
}

.lk-page {
  min-height: 100vh;
  background: #f5f5f5;
  color: #1f2937;
}

.lk-wrap {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.lk-top {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.lk-top-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.lk-logo img {
  display: block;
  width: min(330px, 86vw);
  max-height: 72px;
  object-fit: contain;
}

.lk-date {
  justify-self: start;
  color: #374151;
  font-weight: 900;
}

.lk-redbar {
  background: #b1160e;
  color: #ffffff;
}

.lk-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.lk-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.22);
  color: #ffffff;
  font-weight: 900;
}

.lk-hero {
  padding: 22px 0 14px;
}

.lk-papers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lk-paper {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.lk-paper-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 11px 14px;
  color: #ffffff;
  background: #171717;
}

.lk-paper-title strong {
  font-size: 1.08rem;
}

.lk-paper-title span {
  font-size: .82rem;
  font-weight: 900;
  opacity: .82;
}

.lk-edition-list {
  display: grid;
  grid-template-columns: 1fr;
}

.lk-edition {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  color: #1f2937;
  border-top: 1px solid #ececec;
  background: #ffffff;
}

.lk-edition:hover {
  background: #fff7ed;
}

.lk-edition strong {
  font-size: .98rem;
}

.lk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #9f1d00;
  background: #fff1e7;
  border: 1px solid #ffd9bd;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.lk-section-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.lk-tab {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-weight: 900;
}

.lk-tab.active {
  color: #ffffff;
  background: #b1160e;
  border-color: #b1160e;
}

.lk-section {
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
}

.lk-section h2 {
  margin: 0;
  padding: 14px 16px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.lk-group-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.lk-group {
  padding: 14px;
  border-top: 1px solid #eeeeee;
}

.lk-group:first-child {
  border-top: 0;
}

.lk-group h3 {
  margin: 0 0 10px;
  color: #b1160e;
  font-size: 1rem;
}

.lk-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lk-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 4px;
  color: #1f2937;
  font-weight: 800;
}

.lk-empty {
  padding: 24px;
  color: #6b7280;
  font-weight: 800;
  text-align: center;
  background: #fafafa;
}

.dd-picker {
  padding: 22px 0 34px;
}

.dd-publications {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.dd-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

.dd-field {
  display: grid;
  gap: 6px;
}

.dd-field label {
  color: #6b7280;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dd-field select,
.dd-field input {
  min-height: 42px;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #1f2937;
  padding: 8px 10px;
  font-weight: 800;
}

.dd-pub-btn,
.dd-tab-btn {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #1f2937;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.dd-pub-btn {
  min-height: 82px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-left: 5px solid var(--brand, #b1160e);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.dd-pub-btn.active {
  background: #fff7ed;
  border-color: var(--brand, #b1160e);
  box-shadow: inset 0 0 0 1px var(--brand, #b1160e), 0 10px 24px rgba(0,0,0,.08);
}

.dd-pub-btn img {
  width: 96px;
  height: 46px;
  object-fit: contain;
}

.dd-pub-btn strong,
.dd-pub-btn small {
  display: block;
}

.dd-pub-btn small {
  margin-top: 3px;
  color: #6b7280;
}

.dd-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.dd-tab-btn {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.dd-tab-btn.active {
  color: #fff;
  background: #b1160e;
  border-color: #b1160e;
}

.dd-edition-panel {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
}

.dd-edition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.dd-edition-head h2,
.dd-edition-head p {
  margin: 0;
}

.dd-edition-head p {
  color: #6b7280;
  font-weight: 800;
}

.dd-edition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.dd-edition-card {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 14px;
  border-bottom: 1px solid #eeeeee;
  color: #1f2937;
  background: #fff;
}

.dd-edition-card:hover {
  background: #fff7ed;
}

.dd-edition-card small {
  color: #6b7280;
  font-weight: 900;
}

.dd-edition-card strong {
  font-size: 1.08rem;
}

.dd-open-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #9f1d00;
  background: #fff1e7;
  border: 1px solid #ffd9bd;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.dd-empty {
  padding: 30px;
  color: #6b7280;
  text-align: center;
  font-weight: 900;
  background: #fafafa;
}

.lm-page {
  min-height: 100vh;
  padding: 22px 0 36px;
  background: #f5f5f5;
}

.lm-board {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.lm-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: #ffffff;
  background: #171717;
}

.lm-board-head h1 {
  margin: 0;
  font-size: 1.25rem;
}

.lm-date {
  color: #ffe1d6;
  font-weight: 900;
}

.lm-sections {
  display: grid;
  grid-template-columns: 1fr;
}

.lm-section {
  border-top: 1px solid #e5e7eb;
}

.lm-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  color: #b1160e;
  background: #fff7ed;
  border-bottom: 1px solid #ffd9bd;
}

.lm-section-title h2 {
  margin: 0;
  font-size: 1.05rem;
}

.lm-section-title span {
  color: #9f1d00;
  font-size: .78rem;
  font-weight: 900;
}

.lm-paper-group {
  padding: 14px;
  border-bottom: 1px solid #eeeeee;
}

.lm-paper-group:last-child {
  border-bottom: 0;
}

.lm-paper-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lm-paper-name strong {
  color: #111827;
  font-size: 1rem;
}

.lm-paper-name small {
  color: #6b7280;
  font-weight: 900;
}

.lm-edition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.lm-edition-box {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 10px 12px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.lm-edition-box:hover {
  background: #fff7ed;
  border-color: #ffd9bd;
}

.lm-edition-box small {
  color: #6b7280;
  font-size: .78rem;
  font-weight: 900;
}

.lm-edition-box strong {
  font-size: 1rem;
}

.lm-pill {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #9f1d00;
  background: #fff1e7;
  border: 1px solid #ffd9bd;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
}

.lm-empty {
  padding: 20px;
  color: #6b7280;
  font-weight: 900;
  text-align: center;
  background: #fafafa;
}

.lok-root {
  padding: 18px 0 34px;
  background: #f5f5f5;
}

.lok-directory {
  background: #ffffff;
  border: 1px solid #dcdcdc;
}

.lok-paper-logo {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.lok-paper-logo img {
  width: min(310px, 84vw);
  max-height: 78px;
  object-fit: contain;
}

.lok-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lok-list > li {
  border-bottom: 1px solid #e7e7e7;
}

.lok-paper-title,
.lok-section-label,
.lok-group-label {
  display: block;
  padding: 12px 16px;
  font-weight: 900;
}

.lok-paper-title {
  color: #ffffff;
  background: #1f1f1f;
  font-size: 1.08rem;
}

.lok-section-label {
  color: #b20d0d;
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
}

.lok-group-label {
  color: #222222;
  background: #fff8f8;
}

.lok-editions {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lok-editions li {
  border-top: 1px solid #eeeeee;
}

.lok-edition {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 10px 16px 10px 28px;
}

.lok-edition:hover {
  background: #fff7ed;
}

.lok-edition strong {
  color: #222222;
}

.lok-edition span {
  width: fit-content;
  color: #b20d0d;
  font-size: .84rem;
  font-weight: 900;
}

.lok-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #444444;
  background: #ffffff;
  border-bottom: 3px solid #b20d0d;
  font-weight: 900;
}

@media (min-width: 720px) {
  .lok-editions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lok-editions li:nth-child(odd) {
    border-right: 1px solid #eeeeee;
  }
}

@media (min-width: 1080px) {
  .lok-editions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lok-editions li {
    border-right: 1px solid #eeeeee;
  }
}

@media (min-width: 720px) {
  .lm-edition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .lm-edition-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .dd-toolbar {
    grid-template-columns: 1fr 180px;
  }

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

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

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

  .dd-edition-card {
    border-right: 1px solid #eeeeee;
  }
}

@media (min-width: 1020px) {
  .dd-edition-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ep-brand-switcher {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.ep-brand-card {
  min-height: 74px;
}

.ep-console {
  display: block;
}

.ep-reader {
  margin-bottom: 16px;
}

.ep-reader-head {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.ep-paper-stage,
.ep-info {
  display: none !important;
}

.ep-inline-date {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 6px;
}

.ep-inline-date span {
  color: #667085;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-inline-date input {
  min-height: 36px;
  border: 0;
  color: #111827;
  background: transparent;
  font-weight: 900;
}

.ep-date-row {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 14px;
}

.dd-tabs {
  display: none !important;
}

.lk-logo img,
.ep-logo img {
  width: min(430px, 82vw);
  max-height: 118px;
  object-fit: contain;
}

.lk-top-inner {
  min-height: 124px;
}

.lk-logo {
  width: min(430px, 82vw);
}

@media (max-width: 760px) {
  .ep-brand-switcher {
    grid-template-columns: 1fr;
  }

  .ep-reader-head {
    grid-template-columns: 1fr;
  }

  .ep-inline-date {
    width: 100%;
    justify-content: space-between;
  }

  .ep-date-row {
    justify-content: stretch;
  }
}

@media (min-width: 720px) {
  .lk-top-inner {
    grid-template-columns: 1fr auto;
  }

  .lk-date {
    justify-self: end;
  }

  .lk-papers {
    grid-template-columns: 1.2fr .8fr;
  }

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

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

@media (min-width: 1020px) {
  .lk-papers {
    grid-template-columns: 1.35fr .85fr .85fr;
  }

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

@media (min-width: 760px) {
  .ep-brand-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep-console { grid-template-columns: 250px minmax(0, 1fr); }
  .ep-info { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep-reader-head { grid-template-columns: minmax(250px, .8fr) minmax(0, 1fr); align-items: center; }
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .ep-console { grid-template-columns: 270px minmax(0, 1fr) 230px; align-items: start; }
  .ep-sidebar, .ep-info { position: sticky; top: 98px; }
  .ep-info { grid-column: auto; grid-template-columns: 1fr; }
  .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .ep-topbar .ep-shell,
  .ep-header .ep-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

.dd-edition-grid {
  gap: 16px;
  padding: 16px;
  background: #f3f6fa;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dd-edition-card {
  min-height: auto;
  padding: 10px;
  gap: 0;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .08);
}

.dd-edition-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #d96800;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .14);
}

.dd-card-preview {
  position: relative;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr) 34px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #c7cfdb;
  border-radius: 6px;
  background: #e9eef5;
}

.dd-card-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.dd-preview-logo,
.dd-card-preview b,
.dd-card-preview em {
  z-index: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  color: #ffffff;
  border-radius: 4px;
  font-style: normal;
  text-align: center;
  line-height: 1.12;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.dd-preview-logo {
  display: none;
  position: absolute;
  left: 10px;
  right: 10px;
  top: 52px;
  min-height: 42px;
  background: rgba(255, 255, 255, .94);
}

.dd-preview-logo img {
  width: min(150px, 82%);
  height: 38px;
  object-fit: contain;
  background: transparent;
}

.dd-card-preview b {
  position: relative;
  inset: auto;
  background: rgba(7, 21, 39, .92);
  font-size: .9rem;
  font-weight: 900;
}

.dd-card-preview em {
  position: relative;
  inset: auto;
  align-self: end;
  background: rgba(159, 29, 0, .92);
  font-size: .78rem;
  font-weight: 900;
}

.dd-card-preview > img {
  grid-row: 2;
  align-self: stretch;
}

.dd-card-copy {
  display: grid;
  gap: 7px;
}

.dd-card-copy strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.dd-card-meta {
  color: #667085;
  font-size: .84rem;
  font-weight: 900;
}

.dd-edition-card .dd-card-preview:last-child {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .dd-edition-card {
    border-right: 1px solid #d8dee8;
  }
}

@media (min-width: 1020px) {
  .dd-edition-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.lk-menu .top-section-tab.active {
  color: #ffffff;
  background: rgba(7, 21, 39, .28);
  box-shadow: inset 0 -4px 0 #ffd2b8;
}

.dd-reader-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .10);
  overflow: hidden;
}

.dd-reader-panel[hidden] {
  display: none;
}

.dd-edition-panel[hidden] {
  display: none;
}

.dd-reader-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  color: #ffffff;
  background: #071527;
}

.dd-reader-titleline {
  min-width: 0;
}

.dd-reader-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: none;
}

.dd-reader-controls {
  display: grid;
  grid-template-columns: 160px minmax(190px, 260px);
  gap: 10px;
}

.dd-reader-controls label {
  display: grid;
  gap: 4px;
  color: #dbe4ef;
  font-size: .76rem;
  font-weight: 900;
}

.dd-reader-controls input,
.dd-reader-controls select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  font-weight: 900;
}

.dd-reader-controls option {
  color: #071527;
}

.dd-reader-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dd-reader-jump button {
  min-height: 38px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.dd-reader-jump button:hover,
.dd-reader-jump button:focus,
.dd-reader-jump button.active {
  background: #ffffff;
  color: #071527;
  outline: none;
}

.dd-reader-papers button.active {
  background: #ffd9bd;
  border-color: #ffd9bd;
  color: #9f1d00;
}

.dd-reader-close,
.dd-story-actions button {
  min-height: 36px;
  padding: 0 12px;
  color: #9f1d00;
  background: #fff1e7;
  border: 1px solid #ffd9bd;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.dd-page-viewer {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px;
  background: #eef3f8;
}

.dd-page-dialog {
  width: min(1280px, calc(100% - 18px));
  height: min(96vh, 980px);
  max-height: calc(100% - 18px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #071527;
  box-shadow: 0 30px 110px rgba(0, 0, 0, .42);
}

.dd-page-dialog::backdrop {
  background: rgba(7, 21, 39, .72);
}

.dd-page-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.dd-page-dialog .dd-reader-head {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.dd-page-viewer-full {
  min-height: 0;
  height: 100%;
  background: #111827;
}

.dd-page-back {
  min-width: 96px;
  min-height: 42px;
  color: #071527;
  background: #ffffff;
  border-color: #ffffff;
  font-size: .95rem;
}

.dd-page-stage {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.dd-page-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #071527;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font-weight: 900;
}

.dd-page-title span {
  color: #667085;
  font-size: .85rem;
}

.dd-page-paper {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) 38px;
  height: min(88vh, 920px);
  min-height: 640px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #c7cfdb;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .16);
  cursor: zoom-in;
}

.dd-page-paper-full {
  height: calc(96vh - 114px);
  min-height: 0;
  cursor: default;
}

.dd-page-paper b,
.dd-page-paper em {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #071527;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.dd-page-paper em {
  background: #9f1d00;
}

.dd-page-canvas {
  min-height: 0;
  overflow: auto;
  background: #ffffff;
}

.dd-page-sheet {
  position: relative;
  min-height: 1180px;
}

.dd-page-paper-full .dd-page-sheet,
.dd-page-paper-full .dd-page-sheet img {
  min-height: 1680px;
}

.dd-page-sheet img {
  width: 100%;
  min-height: 1180px;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: #ffffff;
}

.dd-news-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  padding: 0;
  background: rgba(255, 235, 213, .22);
  border: 2px solid rgba(217, 104, 0, .52);
  border-radius: 5px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dd-news-hotspot span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 6px;
  color: #ffffff;
  background: rgba(7, 21, 39, .86);
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
}

.dd-news-hotspot:hover,
.dd-news-hotspot:focus {
  background: rgba(255, 235, 213, .42);
  border-color: #9f1d00;
  box-shadow: 0 0 0 3px rgba(159, 29, 0, .12);
  outline: none;
}

.dd-news-hotspot:hover span,
.dd-news-hotspot:focus span {
  opacity: 1;
}

.dd-page-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 4px;
  position: sticky;
  top: 86px;
}

.dd-page-thumb {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  color: #071527;
}

.dd-page-thumb.active,
.dd-page-thumb:hover {
  border-color: #9f1d00;
  box-shadow: 0 12px 26px rgba(159, 29, 0, .14);
}

.dd-page-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f8fafc;
}

@media (max-width: 760px) {
  .dd-reader-head {
    grid-template-columns: 1fr;
  }

  .dd-reader-controls {
    grid-template-columns: 1fr;
  }

  .dd-page-viewer {
    grid-template-columns: 1fr;
  }

  .dd-page-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    position: static;
    order: -1;
  }
}

.dd-reader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  background: #f3f6fa;
}

.dd-story-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  cursor: pointer;
}

.dd-story-card:hover,
.dd-story-card:focus {
  border-color: #d96800;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
  outline: none;
}

.dd-story-card span,
.dd-story-dialog span {
  color: #667085;
  font-size: .82rem;
  font-weight: 900;
}

.dd-story-card h3,
.dd-story-card p {
  margin: 0;
}

.dd-story-card p,
.dd-story-dialog p {
  color: #344054;
  font-weight: 800;
  line-height: 1.55;
}

.dd-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dd-story-dialog {
  width: min(1100px, calc(100% - 24px));
  height: min(92vh, 920px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(7, 21, 39, .35);
}

.dd-story-dialog::backdrop {
  background: rgba(7, 21, 39, .55);
}

.dd-story-dialog article {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  padding: 18px;
  overflow: auto;
}

.dd-story-dialog h2 {
  margin: 0;
  color: #9f1d00;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
}

.dd-story-dialog p {
  min-height: 52vh;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.dd-story-dialog .dd-story-actions {
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  background: #ffffff;
}

@media (min-width: 760px) {
  .dd-reader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .dd-reader-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dd-tabs {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #ffffff;
  border-bottom: 1px solid #d8dee8;
  pointer-events: auto;
  isolation: isolate;
}

.dd-tab-btn {
  position: relative;
  z-index: 301;
  pointer-events: auto;
}
