/*
Theme Name: Dharmveer ePaper
Theme URI: https://epaper.dharmveer.news/
Author: Dainik Dharmveer
Description: WordPress ePaper portal for Dainik Dharmveer editions.
Version: 1.1.0
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #e8e8e8;
  color: #202020;
  font-family: Arial, "Nirmala UI", "Segoe UI", sans-serif;
  margin: 0;
}
a { color: inherit; text-decoration: none; }

.site-head {
  background: #fff;
  border-bottom: 1px solid #bebebe;
  box-shadow: 0 1px 5px rgb(0 0 0 / 12%);
}
.utility-bar {
  background: #262626;
  border-bottom: 3px solid #a51f1f;
  color: #fff;
}
.utility-inner {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 30px;
  padding: 0 18px;
}
.utility-inner a {
  font-size: 13px;
  font-weight: 700;
}
.masthead {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 98px;
  padding: 12px 18px;
}
.brand-mark {
  grid-column: 2;
  justify-self: center;
}
.brand-mark img {
  display: block;
  height: 72px;
  object-fit: contain;
  width: 380px;
}
.mast-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 7px;
  grid-column: 3;
  justify-self: end;
}
.mast-actions span {
  color: #9d1717;
  font-size: 18px;
  font-weight: 900;
}
.mast-actions a {
  border: 1px solid #d4d4d4;
  color: #333;
  font-size: 12px;
  font-weight: 800;
  min-width: 88px;
  padding: 6px 10px;
  text-align: center;
}
.primary-nav {
  background: #9f1d1d;
  display: flex;
  justify-content: center;
}
.primary-nav a {
  border-left: 1px solid rgb(255 255 255 / 25%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  min-width: 155px;
  padding: 13px 18px;
  text-align: center;
}
.primary-nav a:last-child { border-right: 1px solid rgb(255 255 255 / 25%); }

.portal-shell {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 292px minmax(0, 1fr);
  margin: 18px auto 0;
  max-width: 1180px;
  padding: 0 18px;
}
.edition-sidebar,
.portal-main,
.paper-section,
.selector-row a {
  background: #fff;
  border: 1px solid #c8c8c8;
}
.edition-sidebar {
  position: sticky;
  top: 10px;
}
.sidebar-brand {
  background: #333;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  padding: 13px 15px;
}
.edition-sidebar section { border-top: 1px solid #d8d8d8; }
.edition-sidebar h2 {
  background: #f1f1f1;
  color: #9f1d1d;
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  padding: 11px 15px;
}
.edition-sidebar a {
  border-top: 1px solid #eeeeee;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  padding: 10px 15px;
}
.edition-sidebar a:hover,
.edition-directory a:hover,
.selector-row a:hover {
  background: #fff4f4;
}
.edition-sidebar span {
  color: #707070;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.portal-main {
  padding: 0;
}
.edition-date-row {
  align-items: center;
  border-bottom: 1px solid #d5d5d5;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 15px;
}
.edition-date-row strong {
  color: #9f1d1d;
  font-size: 18px;
  font-weight: 900;
}
.edition-date-row div {
  display: flex;
  gap: 8px;
}
.edition-date-row a {
  border: 1px solid #d8d8d8;
  color: #333;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}
.selector-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 15px;
}
.selector-row a {
  border-top: 4px solid #9f1d1d;
  min-height: 86px;
  padding: 14px;
}
.selector-row b {
  color: #2d2d2d;
  display: block;
  font-size: 20px;
  line-height: 1.1;
}
.selector-row span {
  color: #666;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.paper-section {
  border-left: 0;
  border-right: 0;
  border-top: 1px solid #d5d5d5;
  padding: 16px;
}
.section-title {
  align-items: end;
  border-bottom: 2px solid #9f1d1d;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
}
.section-title h1 {
  color: #262626;
  font-size: 25px;
  line-height: 1.1;
  margin: 0;
}
.section-title span {
  color: #9f1d1d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.main-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.main-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paper-card {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 92%)),
    repeating-linear-gradient(90deg, #f0f0f0 0, #f0f0f0 1px, #fff 1px, #fff 12px);
  border: 1px solid #cfcfcf;
  display: flex;
  flex-direction: column;
  min-height: 154px;
  padding: 16px;
}
.paper-card.lead-card {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 80%), rgb(255 255 255 / 92%)),
    repeating-linear-gradient(0deg, #ededed 0, #ededed 1px, #fff 1px, #fff 13px);
}
.edition-type {
  color: #9f1d1d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.paper-card strong {
  color: #171717;
  display: block;
  font-size: 23px;
  line-height: 1.15;
  margin: 12px 0 auto;
}
.paper-card em {
  align-self: flex-start;
  background: #9f1d1d;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  margin-top: 16px;
  padding: 9px 13px;
}
.supplement-card strong { font-size: 20px; }
.edition-directory {
  border-left: 1px solid #d7d7d7;
  border-top: 1px solid #d7d7d7;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.edition-directory.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edition-directory a {
  border-bottom: 1px solid #d7d7d7;
  border-right: 1px solid #d7d7d7;
  min-height: 66px;
  padding: 12px;
}
.edition-directory strong {
  color: #222;
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.edition-directory span {
  color: #777;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
  text-transform: uppercase;
}
.site-footer {
  align-items: center;
  background: #262626;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 24px;
  padding: 18px;
}
.site-footer span {
  font-weight: 900;
}
.site-footer a {
  color: #f5dede;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
  }
  .brand-mark { grid-column: 1; }
  .brand-mark img {
    height: auto;
    max-width: 320px;
    width: 100%;
  }
  .mast-actions {
    align-items: center;
    grid-column: 1;
    justify-self: center;
  }
  .primary-nav,
  .utility-inner,
  .edition-date-row,
  .edition-date-row div,
  .site-footer {
    flex-wrap: wrap;
  }
  .primary-nav a { flex: 1 1 50%; }
  .portal-shell,
  .selector-row,
  .main-grid,
  .main-grid.three,
  .edition-directory,
  .edition-directory.compact {
    grid-template-columns: 1fr;
  }
  .edition-sidebar { position: static; }
}
