:root {
  --brand-red: #b51d28;
  --brand-red-dark: #941722;
  --brand-navy: #172634;
  --bg-soft: #f5f6f7;
  --border: #e0e4e8;
  --text: #202b36;
  --text-muted: #596773;
  --radius: 8px;
  --radius-lg: 12px;
  --accent-2: #b51d28;
  --shadow-sm: 0 2px 8px rgba(20, 30, 40, .04);
  --shadow-md: 0 8px 24px rgba(20, 30, 40, .08);
  --font-body: Arial, 'Noto Sans Kannada', Helvetica, sans-serif;
  --font-display: var(--font-body);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%
}

a {
  color: inherit;
  text-underline-offset: 3px
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: var(--brand-navy)
}

::selection {
  background: var(--brand-red);
  color: #fff
}

.text-muted {
  color: var(--text-muted) !important
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  background: var(--brand-navy);
  color: white;
  padding: 10px 18px
}

.skip-link:focus {
  top: 12px
}

.btn {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 17px;
  line-height: 1.4;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px
}

.btn-lg {
  padding: 13px 21px;
  font-size: 16px
}

.btn-primary,
.btn-gradient {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff
}

.btn-primary:hover,
.btn-primary:focus,
.btn-gradient:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff
}

.btn-outline-secondary {
  border-color: #b8c1c9;
  color: var(--text)
}

.btn-outline-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--text);
  color: var(--text)
}

.form-control,
.form-select {
  border-color: #cbd2d8;
  border-radius: 6px;
  min-height: 43px;
  font-size: 14px
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(181, 29, 40, .1)
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px
}

.form-text {
  font-size: 13px
}

.site-utility-bar {
  background: #f5f6f7;
  border-top: 3px solid var(--brand-red);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 7px 0
}

.utility-edition {
  color: var(--brand-red);
  font-weight: 600
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border)
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 23px;
  padding-bottom: 23px
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 0
}

.site-brand>span:last-child {
  min-width: 0
}

.site-brand img {
  height: 52px;
  width: auto;
  max-width: 100px;
  object-fit: contain
}

.site-brand strong {
  display: block;
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: normal;
  overflow-wrap: anywhere
}

.site-brand small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 5px;
  max-width: 520px
}

.site-brand-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--brand-red);
  color: white;
  font-size: 25px;
  border-radius: 5px
}

.site-search {
  gap: 0;
  flex-shrink: 0
}

.site-search input {
  width: 250px;
  border-radius: 6px 0 0 6px;
  border-right: 0
}

.site-search button {
  border-radius: 0 6px 6px 0;
  min-width: 45px
}

#mobileNavToggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  font-size: 22px;
  padding: 0
}

.navigation-bar {
  border-top: 1px solid var(--border)
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px
}

.nav-link-custom {
  display: block;
  padding: 13px 0 11px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 3px solid transparent
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red)
}

.category-navigation {
  background: #fafbfc;
  border-top: 1px solid var(--border)
}

.category-links {
  display: flex;
  align-items: center;
  gap: 25px;
  overflow-x: auto;
  white-space: nowrap;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
  scrollbar-width: thin
}

.category-links>span {
  color: var(--brand-red);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px
}

.category-links a {
  text-decoration: none;
  color: var(--text-muted)
}

.category-links a:hover,
.category-links a[aria-current] {
  color: var(--brand-red)
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border)
}

.home-content {
  padding-top: 34px
}

.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px
}

.home-heading h1 {
  font-size: 32px;
  letter-spacing: normal;
  margin: 5px 0 0
}

.home-heading p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 330px;
  margin: 0 0 4px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-red)
}

.lead-edition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  padding: 27px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-navy);
  border-radius: 3px
}

.lead-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 350px;
  background: #eff1f3;
  text-decoration: none;
  padding: 22px 25px 46px
}

.lead-preview>img {
  display: block;
  width: 100%;
  height: 370px;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(20, 30, 40, .12))
}

.preview-caption {
  position: absolute;
  bottom: 14px;
  left: 10px;
  right: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted)
}

.lead-copy {
  padding: 8px 20px 8px 0;
  min-width: 0
}

.latest-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--brand-red)
}

.latest-label>span {
  width: 6px;
  height: 6px;
  background: var(--brand-red);
  border-radius: 50%
}

.edition-date {
  color: var(--text-muted);
  font-size: 13px;
  margin: 14px 0 9px
}

.lead-copy h2 {
  font-size: clamp(25px, 2.9vw, 37px);
  letter-spacing: normal;
  margin-bottom: 14px;
  line-height: 1.3
}

.lead-subtitle {
  font-weight: 500;
  margin-bottom: 12px
}

.lead-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px
}

.edition-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px
}

.edition-facts i {
  margin-right: 4px
}

.edition-facts a {
  color: var(--brand-red);
  text-decoration: none
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.reading-note {
  font-size: 11px;
  color: var(--text-muted);
  margin: 12px 0 25px
}

.text-link {
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-red);
  text-decoration: none;
  line-height: 1.65
}

.text-link:hover {
  color: var(--brand-red-dark);
  text-decoration: underline
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 43px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border)
}

.section-heading h2 {
  font-size: 23px;
  letter-spacing: normal;
  margin: 3px 0 0
}

.section-heading>a {
  font-size: 13px;
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 26px
}

.book-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: white;
  transition: border-color .15s
}

.book-card:hover {
  border-color: #a5afb8
}

.book-cover {
  display: block;
  background: #f0f2f4;
  border-bottom: 1px solid var(--border)
}

.book-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16/24;
  object-fit: contain;
  transition: opacity .15s
}

.book-cover:hover img {
  opacity: .9
}

.book-cover-fallback {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  background: var(--bg-soft)
}

.book-cover-fallback i {
  font-size: 40px
}

.book-cover-fallback span {
  font-size: 12px
}

.lead-preview .book-cover-fallback {
  height: 370px;
  width: 100%
}

.book-card-body {
  padding: 17px 17px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 9px;
  flex-wrap: wrap
}

.book-title {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 9px;
  font-weight: 700
}

.book-title a {
  text-decoration: none
}

.book-title a:hover {
  color: var(--brand-red)
}

.book-category {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 14px
}

.book-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 12px 0
}

.edition-details {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none
}

.edition-details:hover {
  text-decoration: underline
}

.archive-callout {
  display: flex;
  align-items: center;
  gap: 23px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 27px 30px;
  margin: 40px 0;
  border-radius: 6px
}

.archive-callout-icon {
  font-size: 30px;
  color: var(--brand-red)
}

.archive-callout h2 {
  font-size: 21px;
  margin-bottom: 5px
}

.archive-callout p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0
}

.archive-callout .btn {
  margin-left: auto;
  flex-shrink: 0
}

.newsroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px
}

.newsroom-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none
}

.newsroom-card img {
  width: 95px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg-soft)
}

.newsroom-card h3 {
  font-size: 18px
}

.newsroom-card p {
  font-size: 13px;
  color: var(--text-muted)
}

.filter-bar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  margin: 0 0 25px
}

.filter-bar.row {
  margin-left: 0;
  margin-right: 0
}

.archive-heading {
  padding: 30px 0 22px
}

.archive-heading h1 {
  font-size: 30px;
  margin-bottom: 7px
}

.archive-heading p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px
}

.results-toolbar .form-select {
  width: 155px
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px
}

.pagination {
  flex-wrap: wrap;
  gap: 5px
}

.page-link {
  color: var(--brand-red);
  border-radius: 4px;
  min-width: 40px;
  text-align: center
}

.page-item.active .page-link {
  background: var(--brand-red);
  border-color: var(--brand-red)
}

.detail-cover {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  padding: 16px
}

.detail-cover img {
  width: 100%;
  display: block;
  object-fit: contain
}

.detail-meta-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 9px
}

.detail-meta-item i {
  color: var(--brand-red);
  width: 18px;
  flex-shrink: 0
}

.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border)
}

.page-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: normal
}

.page-hero p {
  font-size: 15px
}

.badge-soft {
  background: #fbecef;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 10px
}

.about-stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
  height: 100%
}

.about-stat i {
  font-size: 22px;
  color: var(--brand-red)
}

.about-stat-value {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 2px
}

.about-stat-label {
  font-size: 12px;
  color: var(--text-muted)
}

.about-content {
  line-height: 1.9;
  color: #374151
}

.about-content p {
  margin-bottom: 1.2em
}

.about-cta,
.contact-info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px
}

.about-cta {
  position: sticky;
  top: 20px
}

.contact-info-card a {
  text-decoration: none
}

.contact-social {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none
}

.contact-social:hover {
  background: var(--brand-red);
  color: white
}

.site-footer {
  background: var(--brand-navy);
  color: #d1d8df;
  margin-top: 60px;
  border-top: 4px solid var(--brand-red)
}

.site-footer h5,
.site-footer h6 {
  color: #fff
}

.site-footer h5 {
  font-size: 22px
}

.site-footer h6 {
  font-size: 13px
}

.footer-muted {
  color: #bfc9d2;
  line-height: 1.8
}

.footer-credit {
  color: #e3e9ed
}

.site-footer hr {
  border-color: #71808c
}

.footer-link {
  color: #d1d8df;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 9px
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline
}

.footer-social {
  width: 34px;
  height: 34px;
  border: 1px solid #5b6b79;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none
}

.footer-social:hover {
  background: var(--brand-red)
}

.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fafbfc;
  margin: 20px 0
}

.empty-state>i {
  font-size: 38px
}

.empty-state h2 {
  font-size: 22px;
  margin-top: 18px
}

.empty-state p {
  margin: 10px 0 0;
  font-size: 14px
}

.pdf-fallback {
  width: 100%;
  height: 78vh;
  min-height: 450px;
  border: 1px solid var(--border);
  background: var(--bg-soft)
}

@media(min-width:1400px) {
  .container {
    max-width: 1240px
  }
}

@media(max-width:991px) {
  .masthead {
    padding-top: 18px;
    padding-bottom: 18px
  }

  .lead-edition {
    gap: 25px;
    padding: 20px
  }

  .lead-copy {
    padding-right: 0
  }

  .lead-preview {
    padding: 16px 14px 42px;
    min-height: 310px
  }

  .lead-preview>img {
    height: 330px
  }

  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px
  }

  .archive-callout {
    flex-wrap: wrap
  }

  .archive-callout .btn {
    margin-left: 52px
  }

  .about-cta {
    position: static
  }
}

@media(max-width:767px) {
  .home-content {
    padding-top: 24px
  }

  .home-heading {
    display: block;
    margin-bottom: 20px
  }

  .home-heading h1 {
    font-size: 27px
  }

  .home-heading p {
    font-size: 13px;
    margin-top: 9px;
    max-width: none
  }

  .lead-edition {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 16px
  }

  .lead-preview {
    min-height: 0
  }

  .lead-preview>img {
    height: 330px
  }

  .lead-copy {
    padding: 0 4px 5px
  }

  .lead-copy h2 {
    font-size: 27px
  }

  .lead-copy .edition-date {
    margin-top: 10px
  }

  .reading-note {
    margin-bottom: 16px
  }

  .section-heading {
    margin-top: 32px
  }

  .section-heading h2 {
    font-size: 21px
  }

  .section-heading>a {
    font-size: 11px
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px
  }

/*   .book-cover {
    padding: 9px
  } */

  .book-card-body {
    padding: 12px 12px 0
  }

  .book-title {
    font-size: 14px
  }

  .book-actions {
    gap: 6px
  }

  .book-actions .text-link {
    font-size: 11px
  }

  .book-meta {
    font-size: 10px
  }

  .archive-callout {
    padding: 22px;
    gap: 14px;
    margin: 30px 0
  }

  .archive-callout-icon {
    font-size: 24px
  }

  .archive-callout h2 {
    font-size: 18px
  }

  .archive-callout>div:nth-child(2) {
    flex: 1;
    min-width: 0
  }

  .archive-callout .btn {
    margin-left: 0;
    width: 100%;
    margin-top: 4px
  }

  .site-footer {
    margin-top: 40px
  }

  .filter-bar {
    padding: 17px
  }

  .category-links {
    gap: 20px
  }

  .site-brand small {
    font-size: 10px;
    max-width: 260px
  }

  .site-brand strong {
    font-size: 23px
  }

  .results-toolbar {
    align-items: flex-start
  }

  .results-toolbar>span {
    font-size: 12px
  }

  .detail-cover img {
    max-height: 55vh
  }

  .archive-heading h1 {
    font-size: 27px
  }
}

@media(max-width:380px) {
  .site-brand {
    gap: 9px
  }

  .site-brand strong {
    font-size: 20px
  }

  .site-brand-fallback {
    width: 38px;
    height: 38px;
    font-size: 20px
  }

  .site-brand small {
    max-width: 210px
  }

  .masthead {
    gap: 10px
  }

  .book-grid {
    gap: 10px
  }

  .book-card-body {
    padding: 10px 10px 0
  }

  .book-actions {
    flex-wrap: wrap
  }

  .home-heading h1 {
    font-size: 25px
  }

  .lead-actions .btn {
    width: 100%
  }

  .utility-edition {
    font-size: 10px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important
  }
}
