/*!
 * Lokadarshan — public site components. Requires base.css (tokens + base).
 * Sections: header · navigation · drawer · ticker · sections · story cards ·
 * lists · carousel · district desk · widgets · video · article · listing ·
 * breadcrumbs · pagination · page header · horoscope · landing · social hub ·
 * footer · dialog · misc.
 */

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: relative;
  z-index: var(--z-sticky);
  background: var(--c-surface);
}

.topbar {
  background: var(--c-navy);
  color: rgb(255 255 255 / 0.82);
  font-size: var(--t-xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 2.75rem;
  padding-block: 0.25rem;
}

.topbar__date {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  white-space: nowrap;
}

.topbar__date .fi {
  color: #ffc24b;
  font-size: 1rem;
}

.topbar__links {
  display: flex;
  gap: var(--s-4);
  margin-inline-start: auto;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: rgb(255 255 255 / 0.9);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  text-decoration: none;
  white-space: nowrap;
}

.topbar__links a:hover {
  color: #fff;
}

/* each quick link has its own colour on the navy bar */
.topbar__ic {
  --ic: #ffc24b;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ic) 20%, transparent);
  color: var(--ic);
  font-size: 1rem;
  transition: transform var(--d-base) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}

.tb-video .topbar__ic { --ic: #ff7a85; }
.tb-fellowship .topbar__ic { --ic: #5ee0cf; }
.tb-digital .topbar__ic { --ic: #b69cff; }

.topbar__links a:hover .topbar__ic {
  background: color-mix(in srgb, var(--ic) 32%, transparent);
  transform: translateY(-1px) scale(1.08);
}

/* social profiles in their brand colours */
.social-links {
  display: flex;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  --net: var(--c-navy-2);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--net);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.35);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), filter var(--d-fast) var(--ease-out);
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 16px -6px rgb(0 0 0 / 0.45);
  filter: brightness(1.08);
}

.social-links .is-facebook { --net: #1877f2; }
.social-links .is-x { --net: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); }
.social-links .is-instagram { background: radial-gradient(circle at 30% 107%, #fdd35c 0%, #fa7e1e 25%, #d62976 55%, #962fbf 78%, #4f5bd5 100%); }
.social-links .is-youtube { --net: #e00000; }
.social-links .is-whatsapp { --net: #128c7e; }

.topbar .social-links a {
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
}

.social-links--dark a {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-4);
}

.masthead__edition {
  display: grid;
  gap: 2px;
  font-size: var(--t-sm);
  color: var(--c-muted);
  line-height: 1.4;
}

.masthead__edition strong {
  color: var(--c-ink);
  font-weight: var(--w-semi);
}

.masthead__heritage {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  width: fit-content;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--c-gold);
  border-radius: var(--r-pill);
  color: var(--c-gold-deep);
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
}

.masthead__logo {
  display: block;
  width: clamp(200px, 30vw, 380px);
}

.masthead__logo img {
  width: 100%;
}

.masthead__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
}

/* sticky navigation bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgb(255 255 255 / 0.96);
  border-block: 1px solid var(--c-line);
  transition: box-shadow var(--d-base) var(--ease-out);
}

@supports (backdrop-filter: blur(8px)) {
  .navbar {
    background: rgb(255 255 255 / 0.86);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
  }
}

.navbar.is-stuck {
  box-shadow: 0 10px 24px -18px rgb(20 33 61 / 0.45);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--header-h);
}

.navbar__brand {
  display: none;
  align-items: center;
  flex: none;
}

.navbar__brand img {
  width: auto;
  height: 1.9rem;
}

.navbar__cta {
  margin-inline-start: auto;
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-weight: var(--w-semi);
  font-size: var(--t-sm);
}

.nav-toggle .fi {
  font-size: 1.1rem;
}

/* =========================================================================
   Primary navigation (desktop)
   ========================================================================= */
.primary-nav {
  display: none;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__item {
  position: relative;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-ink-2);
  font-size: var(--t-md);
  font-weight: var(--w-semi);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0.7rem 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}

.primary-nav__link:hover,
.primary-nav__link[aria-expanded="true"] {
  color: var(--c-brand);
  background: var(--c-brand-tint);
}

.primary-nav__link:hover::after,
.primary-nav__link[aria-current="page"]::after,
.primary-nav__link.is-active::after {
  transform: scaleX(1);
}

.primary-nav__link[aria-current="page"],
.primary-nav__link.is-active {
  color: var(--c-brand);
}

.primary-nav__link .fi-rr-angle-small-down {
  font-size: 0.9em;
  transition: transform var(--d-base) var(--ease-out);
}

.primary-nav__link[aria-expanded="true"] .fi-rr-angle-small-down {
  transform: rotate(180deg);
}

.primary-nav__home .fi {
  font-size: 1.15rem;
}

/* dropdown + mega panel */
.navbar__inner {
  /* the districts panel is positioned against the page container */
  position: relative;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: var(--z-dropdown);
  min-width: 15rem;
  padding: var(--s-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--d-base) var(--ease-out),
    transform var(--d-base) var(--ease-out),
    visibility 0s linear var(--d-base);
}

.menu-panel::before {
  /* hover bridge so the pointer can travel from the trigger to the panel */
  content: "";
  position: absolute;
  inset: -10px 0 auto;
  height: 10px;
}

.primary-nav__item.is-open > .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* "ವಿವಿಧ": two columns of coloured sections + a video row */
.menu-panel--misc {
  left: 50%;
  width: 29rem;
  padding: var(--s-3);
  transform: translate(-50%, -6px);
}

.primary-nav__item.is-open > .menu-panel--misc {
  transform: translate(-50%, 0);
}

@media (max-width: 1279px) {
  /* not enough room to centre it: align with the trigger's right edge */
  .menu-panel--misc {
    left: auto;
    right: 0;
    transform: translateY(-6px);
  }

  .primary-nav__item.is-open > .menu-panel--misc {
    transform: none;
  }
}

.menu-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px var(--s-2);
}

.menu-panel__link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-weight: var(--w-semi);
  text-decoration: none;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}

.menu-panel__link .icon-chip {
  --chip-size: 2.5rem;
  font-size: 1.2rem;
  transition: transform var(--d-base) var(--ease-out);
}

.menu-panel__link:hover,
.menu-panel__link:focus-visible,
.menu-panel__link[aria-current="page"] {
  background: var(--c-paper);
  color: var(--c-brand);
}

.menu-panel__link:hover .icon-chip {
  transform: scale(1.08) rotate(-4deg);
}

.menu-feature {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 60%, #4a1d57 100%);
  color: #fff;
  text-decoration: none;
}

.menu-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-brand-bright);
  box-shadow: 0 0 0 5px rgb(232 0 138 / 0.22);
  font-size: 1.2rem;
}

.menu-feature__text {
  display: grid;
  min-width: 0;
}

.menu-feature__title {
  font-weight: var(--w-bold);
  font-size: var(--t-md);
}

.menu-feature__desc {
  font-size: var(--t-xs);
  color: rgb(255 255 255 / 0.78);
}

.menu-feature__go {
  margin-inline-start: auto;
  font-size: 1.2rem;
  transition: transform var(--d-base) var(--ease-out);
}

.menu-feature:hover .menu-feature__go,
.menu-feature:focus-visible .menu-feature__go {
  transform: translateX(4px);
}

/* Districts mega panel: spans the page container, masonry columns so long
   and short taluk lists pack without gaps, each district in its own colour */
.primary-nav__item--mega {
  position: static;
}

.mega {
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: min(40rem, calc(100vh - var(--header-h) - 1.5rem));
  max-height: min(40rem, calc(100dvh - var(--header-h) - 1.5rem));
  padding: 0;
}

.mega__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(100deg, var(--c-navy-tint) 0%, var(--c-surface) 55%);
}

.mega__title {
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  line-height: 1.3;
}

.mega__sub {
  font-size: var(--t-sm);
  color: var(--c-muted);
}

.mega__all {
  margin-inline-start: auto;
}

.mega__grid {
  min-height: 0;
  padding: var(--s-4) var(--s-5) var(--s-2);
  overflow-y: auto;
  overscroll-behavior: contain;
  columns: 4 14rem;
  column-gap: var(--s-3);
}

.mega__district {
  --tone: var(--c-cat-state);
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  break-inside: avoid;
  transition: border-color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}

.mega__district:nth-child(8n + 2) { --tone: var(--c-cat-nation); }
.mega__district:nth-child(8n + 3) { --tone: var(--c-cat-world); }
.mega__district:nth-child(8n + 4) { --tone: var(--c-brand); }
.mega__district:nth-child(8n + 5) { --tone: var(--c-cat-sport); }
.mega__district:nth-child(8n + 6) { --tone: var(--c-cat-biz); }
.mega__district:nth-child(8n + 7) { --tone: var(--c-cat-opinion); }
.mega__district:nth-child(8n + 8) { --tone: var(--c-cat-ent); }

.mega__district:hover,
.mega__district:focus-within {
  border-color: color-mix(in srgb, var(--tone) 40%, transparent);
  background: color-mix(in srgb, var(--tone) 4%, #fff);
}

.mega__district-link {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-ink);
  font-size: var(--t-md);
  font-weight: var(--w-bold);
  text-decoration: none;
}

.mega__pin {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone) 14%, #fff);
  color: var(--tone);
  font-size: 1.1rem;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}

.mega__go {
  margin-inline-start: auto;
  color: var(--tone);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--d-fast) var(--ease-out), transform var(--d-base) var(--ease-out);
}

.mega__district-link:hover,
.mega__district-link:focus-visible,
.mega__district-link[aria-current="page"] {
  color: var(--tone);
}

.mega__district-link:hover .mega__pin,
.mega__district-link:focus-visible .mega__pin,
.mega__district-link[aria-current="page"] .mega__pin {
  background: var(--tone);
  color: #fff;
}

.mega__district-link:hover .mega__go,
.mega__district-link:focus-visible .mega__go {
  opacity: 1;
  transform: none;
}

.mega__taluks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega__taluks a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-ink-2);
  font-size: var(--t-sm);
  line-height: 1.5;
  text-decoration: none;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}

.mega__taluks a:hover,
.mega__taluks a:focus-visible,
.mega__taluks a[aria-current="page"] {
  background: color-mix(in srgb, var(--tone) 13%, #fff);
  color: var(--tone);
}

/* =========================================================================
   Mobile drawer — horizontal scroll-snap sheet (swipe to close), no popover
   dependency so it works on older iOS/Android browsers.
   ========================================================================= */
.drawer {
  --drawer-w: min(22rem, 86vw);
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(10 16 30 / 0.55);
  opacity: var(--drawer-progress, 0);
}

.drawer__scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-w) 100vw;
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.drawer__scroller::-webkit-scrollbar {
  display: none;
}

.drawer__scroller::after {
  content: "";
  scroll-snap-align: end;
}

@media (prefers-reduced-motion: no-preference) {
  .drawer__scroller {
    scroll-behavior: smooth;
  }
}

.drawer__sheet {
  display: flex;
  flex-direction: column;
  height: 100svh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-surface);
  box-shadow: 12px 0 32px -12px rgb(10 16 30 / 0.4);
  scroll-snap-align: start;
  outline: none;
}

.drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.drawer__head img {
  width: 9.5rem;
}

.drawer__body {
  flex: 1;
  padding: var(--s-3) var(--s-3) var(--s-6);
}

.drawer__nav {
  display: grid;
  gap: 2px;
}

.drawer__link,
.drawer__group > summary {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-size: var(--t-md);
  font-weight: var(--w-semi);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.drawer__group > summary::-webkit-details-marker {
  display: none;
}

.drawer__group > summary .fi-rr-angle-small-down {
  margin-inline-start: auto;
  transition: transform var(--d-base) var(--ease-out);
}

.drawer__group[open] > summary .fi-rr-angle-small-down {
  transform: rotate(180deg);
}

.drawer__link:hover,
.drawer__group > summary:hover,
.drawer__link[aria-current="page"] {
  background: var(--c-brand-tint);
  color: var(--c-brand);
}

.drawer__sub {
  display: grid;
  gap: 2px;
  margin: 2px 0 var(--s-2) 3.1rem;
  padding-left: var(--s-3);
  border-left: 2px solid var(--c-line);
}

.drawer__sub a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--c-ink-2);
  text-decoration: none;
}

.drawer__sub a:hover {
  color: var(--c-brand);
  background: var(--c-paper);
}

.drawer__extras {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
}

.drawer__extras .social-links a {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
}

.drawer-open {
  overflow: hidden;
}

/* =========================================================================
   Breaking-news ticker
   ========================================================================= */
.ticker {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 2.75rem;
}

.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
  padding: 0.2rem 0.75rem 0.1rem;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  line-height: 1.6;
}

.ticker__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker__pulse {
    animation: pulse 1.6s var(--ease-in-out) infinite;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.ticker__viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__item {
  display: flex;
  align-items: center;
  padding-inline: var(--s-4);
}

.ticker__item::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-end: var(--s-4);
  border-radius: 50%;
  background: var(--c-brand-line);
}

.ticker [data-ticker-toggle] {
  /* stack above the (clipped) scrolling headlines so it is never covered */
  position: relative;
  z-index: 1;
  margin-inline-start: var(--s-2);
}

.ticker__item a {
  color: var(--c-ink-2);
  font-weight: var(--w-medium);
  text-decoration: none;
  white-space: nowrap;
}

.ticker__item a:hover {
  color: var(--c-brand);
  text-decoration: underline;
}

.ticker.is-animated .ticker__track {
  animation: marquee var(--ticker-duration, 60s) linear infinite;
}

.ticker.is-animated:hover .ticker__track,
.ticker.is-animated:focus-within .ticker__track,
.ticker.is-paused .ticker__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.ticker:not(.is-animated) .ticker__viewport {
  overflow-x: auto;
  scrollbar-width: none;
}

/* =========================================================================
   Sections & section heads
   ========================================================================= */
.section {
  padding-block: var(--s-section);
}

.section--tight {
  padding-block: calc(var(--s-section) * 0.6);
}

/* Below-the-fold blocks: the browser skips their layout (costly for
   Kannada text, and repeated when web fonts load) until they near the
   viewport. The remembered size keeps the scrollbar stable. */
.section--lazy,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section--white {
  background: var(--c-surface);
  border-block: 1px solid var(--c-line);
}

.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
  color: rgb(255 255 255 / 0.86);
}

.section--dark :where(h1, h2, h3, h4) {
  color: #fff;
}

.section--first {
  padding-top: var(--s-6);
}

.page-body {
  padding-bottom: var(--s-section);
}

.crumb-bar {
  padding-block: var(--s-5) var(--s-4);
}

.section-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.section-head__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.section-head__title a {
  color: inherit;
  text-decoration: none;
}

.section-head__title a:hover {
  color: var(--c-brand);
}

.section-head__rule {
  flex: 1;
  height: 1px;
  min-width: var(--s-6);
  background: linear-gradient(90deg, var(--c-line-2), transparent);
}

.section--dark .section-head__rule {
  background: linear-gradient(90deg, rgb(255 255 255 / 0.25), transparent);
}

.section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  color: var(--c-brand);
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.section-head__more .fi {
  transition: transform var(--d-base) var(--ease-out);
}

.section-head__more:hover .fi {
  transform: translateX(3px);
}

.section--dark .section-head__more {
  color: #ffb3dc;
}

.section-head--sm {
  margin-bottom: var(--s-4);
}

.section-head--sm .section-head__title {
  font-size: var(--t-xl);
}

/* layout helpers */
.grid {
  display: grid;
  gap: var(--grid-gap, var(--s-6));
}

.grid--2,
.grid--3,
.grid--4 {
  grid-template-columns: minmax(0, 1fr);
}

.with-sidebar {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 21rem; }
  .sidebar--sticky { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

/* =========================================================================
   Story cards
   ========================================================================= */
.story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  isolation: isolate;
}

.story__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: var(--c-paper-2) url("../img/lokdarshan350.jpg") center / 45% auto no-repeat;
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  transition: transform 700ms var(--ease-out);
}

/* missing photo: let the branded placeholder background show */
.story__media img[data-broken] {
  visibility: hidden;
}

.story:hover .story__media img,
.story:focus-within .story__media img {
  transform: scale(1.045);
}

.story__cat {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 1;
}

.story__chip {
  width: fit-content;
}

.story__body {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-3);
}

.story__title {
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
}

.story__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color var(--d-fast) var(--ease-out), background-size var(--d-base) var(--ease-out);
}

.story__title a::after {
  /* whole card is clickable via the headline link */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story:hover .story__title a,
.story__title a:focus-visible {
  color: var(--c-brand);
}

.story__excerpt {
  color: var(--c-muted);
  font-family: var(--f-read);
  font-size: var(--t-sm);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  color: var(--c-muted);
  font-size: var(--t-xs);
}

.story__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* card surface variant */
.story--card {
  height: 100%;
  padding: var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: calc(var(--r-lg) + var(--s-2));
  background: var(--c-surface);
  box-shadow: var(--sh-1);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}

.story--card .story__body {
  padding: var(--s-3) var(--s-2) var(--s-2);
}

.story--card:hover {
  transform: translateY(-3px);
  border-color: var(--c-line-2);
  box-shadow: var(--sh-2);
}

/* lead story */
.story--lead .story__media {
  aspect-ratio: 16 / 10;
}

.story--lead .story__title {
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
}

/* overlay (image with headline on top) */
.story--overlay {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-navy);
}

.story--overlay .story__media {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.story--overlay .story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 16 30 / 0) 35%, rgb(10 16 30 / 0.55) 60%, rgb(10 16 30 / 0.92));
}

.story--overlay .story__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: var(--s-6) var(--s-5) var(--s-5);
  color: #fff;
}

.story--overlay .story__title {
  color: #fff;
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.35);
}

.story--overlay:hover .story__title a {
  color: #fff;
  background-size: 100% 2px;
}

.story--overlay .story__meta {
  color: rgb(255 255 255 / 0.75);
}

/* row (thumbnail left) */
.story--row {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}

.story--row .story__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
}

.story--row .story__body {
  padding-top: 0;
  gap: var(--s-1);
}

.story--row .story__title {
  font-size: var(--t-base);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .story--row-lg {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: var(--s-5);
  }

  .story--row-lg .story__title {
    font-size: var(--t-xl);
    line-height: var(--lh-snug);
  }

  .story--row-lg .story__media {
    aspect-ratio: 16 / 10;
    border-radius: var(--r-lg);
  }
}

/* text-only headline */
.story--text .story__title {
  font-size: var(--t-base);
  font-weight: var(--w-semi);
  line-height: 1.55;
}

/* =========================================================================
   Headline lists
   ========================================================================= */
.story-list {
  display: grid;
}

.story-list > li {
  padding-block: var(--s-3);
  border-top: 1px solid var(--c-line);
}

.story-list > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.story-list > li:last-child {
  padding-bottom: 0;
}

.story-list--divided > li:first-child {
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-3);
}

.story-list--roomy > li {
  padding-block: var(--s-5);
}

/* panel = white rounded block used for side columns */
.panel {
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}

.panel--flush {
  padding: 0;
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.panel__title {
  font-size: var(--t-xl);
  font-weight: var(--w-black);
}

.panel__title a {
  color: inherit;
  text-decoration: none;
}

.panel__title a:hover {
  color: var(--c-brand);
}

.panel__head .section-head__more {
  margin-inline-start: auto;
}

/* =========================================================================
   Home top: carousel + latest + Belagavi
   ========================================================================= */
.home-top {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .home-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-top__hero {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .home-top {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .home-top__hero {
    grid-column: auto;
  }
}

.home-top .panel {
  display: flex;
  flex-direction: column;
}

.home-top .panel .story-list {
  flex: 1;
}

/* carousel */
.carousel {
  position: relative;
  height: 100%;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__track {
    scroll-behavior: smooth;
  }
}

.carousel__slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel__slide .story--overlay {
  height: 100%;
  border-radius: 0;
}

.carousel__slide .story--overlay .story__media {
  height: 100%;
  min-height: 15rem;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .carousel__slide .story--overlay .story__media {
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 1200px) {
  .carousel__slide .story--overlay .story__media {
    aspect-ratio: auto;
    min-height: 30rem;
  }
}

.carousel__controls {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.carousel__btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  background: rgb(10 16 30 / 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}

.carousel__btn:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
}

.carousel__btn:active {
  transform: scale(0.94);
}

.carousel__dots {
  position: absolute;
  left: var(--s-5);
  top: var(--s-5);
  z-index: 2;
  display: flex;
  gap: 6px;
}

.carousel__dot {
  width: 1.75rem;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.45);
  overflow: hidden;
}

.carousel__dot[aria-current="true"] {
  background: #fff;
}

/* =========================================================================
   Category block (heading + lead + list)
   ========================================================================= */
.cat-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  height: 100%;
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}

.cat-block .story-list {
  flex: 1;
}

.cat-block__foot {
  padding-top: var(--s-3);
  border-top: 1px dashed var(--c-line-2);
}

/* =========================================================================
   District desk (tabs)
   ========================================================================= */
.desk {
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}

.desk__tabs {
  display: flex;
  gap: var(--s-2);
  margin: 0 calc(var(--s-5) * -1) var(--s-5);
  padding: 0 var(--s-5) var(--s-4);
  overflow-x: auto;
  border-bottom: 1px solid var(--c-line);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.desk__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-weight: var(--w-semi);
  scroll-snap-align: start;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}

.desk__tab:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.desk__tab[aria-selected="true"] {
  border-color: var(--c-navy);
  background: var(--c-navy);
  color: #fff;
}

.desk__tab .fi {
  font-size: 0.95em;
}

.desk__panel {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: minmax(0, 1fr);
}

.desk__panel + .desk__panel {
  margin-top: var(--s-8);
}

.desk.is-enhanced .desk__panel + .desk__panel {
  margin-top: 0;
}

.desk__panel-title {
  font-size: var(--t-xl);
  grid-column: 1 / -1;
}

.desk.is-enhanced .desk__panel-title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (min-width: 768px) {
  .desk__panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.motion-ok .desk.is-enhanced .desk__panel:not([hidden]) {
  animation: panel-in 420ms var(--ease-out);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* =========================================================================
   Widgets (sidebar)
   ========================================================================= */
.widget-subscribe {
  position: relative;
  overflow: hidden;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--c-navy);
  color: rgb(255 255 255 / 0.82);
}

.widget-subscribe::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(232 0 138 / 0.5), transparent 70%);
  pointer-events: none;
}

.widget-subscribe > * {
  position: relative;
}

.widget-subscribe__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
  color: #fff;
  font-size: var(--t-xl);
  font-weight: var(--w-black);
}

.widget-subscribe p {
  font-size: var(--t-sm);
  line-height: 1.7;
}

.subscribe-form {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.subscribe-form .input {
  border-color: rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.subscribe-form .input::placeholder {
  color: rgb(255 255 255 / 0.55);
}

.subscribe-form .input:focus {
  border-color: #ff8fcf;
  box-shadow: 0 0 0 3px rgb(255 143 207 / 0.25);
}

.subscribe-form__msg {
  min-height: 1.5em;
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
}

.subscribe-form__msg.is-success {
  color: #8ee6b5;
}

.subscribe-form__msg.is-error {
  color: #ffb4ab;
}

.widget-epaper {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-surface), var(--c-brand-tint));
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-1);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.widget-epaper:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.widget-epaper img {
  width: 100%;
  aspect-ratio: 280 / 410;
  object-fit: cover;
  border-radius: var(--r-sm);
  box-shadow: 0 10px 20px -10px rgb(20 33 61 / 0.5);
  transform: rotate(-3deg);
  transition: transform var(--d-base) var(--ease-out);
}

.widget-epaper:hover img {
  transform: rotate(0deg) scale(1.03);
}

.widget-epaper__title {
  font-size: var(--t-lg);
  font-weight: var(--w-black);
}

.widget-epaper p {
  margin: var(--s-1) 0 var(--s-3);
  font-size: var(--t-sm);
  color: var(--c-muted);
  line-height: 1.6;
}

/* =========================================================================
   Video
   ========================================================================= */
.video-card {
  position: relative;
  display: grid;
  gap: var(--s-3);
}

.video-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: #000;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 700ms var(--ease-out), opacity var(--d-base) var(--ease-out);
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.05);
  opacity: 1;
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 0 0 8px rgb(255 255 255 / 0.18);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.play-badge .fi {
  margin-left: 3px;
}

.video-card:hover .play-badge {
  transform: scale(1.08);
  box-shadow: 0 0 0 12px rgb(255 255 255 / 0.22);
}

.video-card__title {
  font-size: var(--t-lg);
  line-height: var(--lh-snug);
}

.video-card__title a {
  color: inherit;
  text-decoration: none;
}

.video-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.video-card:hover .video-card__title a {
  color: var(--c-brand);
}

.section--dark .video-card:hover .video-card__title a {
  color: #ffb3dc;
}

.video-card__desc {
  color: var(--c-muted);
  font-size: var(--t-sm);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section--dark .video-card__desc {
  color: rgb(255 255 255 / 0.65);
}

/* click-to-load YouTube facade */
.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  background: #000;
  box-shadow: var(--sh-3);
}

.video-embed--block {
  width: 100%;
}

.video-embed iframe,
.video-embed__poster,
.video-embed__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed__poster {
  display: block;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.video-embed__poster img {
  object-fit: cover;
  opacity: 0.85;
}

.video-embed__poster:hover .play-badge {
  transform: scale(1.08);
}

/* =========================================================================
   Page header band (category, listings, static pages)
   ========================================================================= */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-8) var(--s-8);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.page-head::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -8rem;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-brand-tint), transparent 68%);
  pointer-events: none;
}

.page-head > * {
  position: relative;
  z-index: 1;
}

.page-head__title {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-3);
  font-size: var(--t-4xl);
  font-weight: var(--w-black);
}

.page-head__lead {
  max-width: 62ch;
  margin-top: var(--s-3);
  color: var(--c-muted);
  font-size: var(--t-md);
}

.page-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.page-head__chips .chip {
  padding: 0.35em 0.9em;
  font-size: var(--t-sm);
  background: var(--c-paper);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
}

.page-head__chips a.chip:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.page-head--dark {
  background: var(--c-navy);
  color: rgb(255 255 255 / 0.85);
  border-bottom: 0;
}

.page-head--dark .page-head__title {
  color: #fff;
}

.page-head--dark .page-head__lead {
  color: rgb(255 255 255 / 0.75);
}

.page-head--dark::after {
  background: radial-gradient(circle, rgb(232 0 138 / 0.35), transparent 68%);
}

/* breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
  font-size: var(--t-sm);
  color: var(--c-muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--c-brand);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-ink-2);
}

.page-head--dark .breadcrumbs,
.page-head--dark .breadcrumbs [aria-current="page"] {
  color: rgb(255 255 255 / 0.7);
}

/* =========================================================================
   Listing (category / tag / articles)
   ========================================================================= */
.listing {
  display: grid;
  gap: var(--s-4);
}

.listing > .story--row {
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}

.listing > .story--row:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--c-line-2);
}

.listing__lead {
  margin-bottom: var(--s-2);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  padding: var(--s-12) var(--s-6);
  border: 1px dashed var(--c-line-2);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  text-align: center;
  color: var(--c-muted);
}

.empty-state__title {
  color: var(--c-ink);
  font-size: var(--t-xl);
}

/* pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
}

.pagination li a,
.pagination li span {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-weight: var(--w-semi);
  text-decoration: none;
  transition: all var(--d-fast) var(--ease-out);
}

.pagination li a:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.pagination li.active a,
.pagination li.active span {
  border-color: var(--c-navy);
  background: var(--c-navy);
  color: #fff;
}

.pagination li.disabled a,
.pagination li.disabled span {
  opacity: 0.45;
  pointer-events: none;
}

.pagination__count {
  width: 100%;
  margin-top: var(--s-2);
  text-align: center;
  color: var(--c-muted);
  font-size: var(--t-sm);
}

/* =========================================================================
   Article
   ========================================================================= */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: calc(var(--z-sticky) + 1);
  height: 3px;
  background: linear-gradient(90deg, var(--c-brand-bright), var(--c-brand));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.article {
  padding: clamp(var(--s-5), 3vw, var(--s-10));
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}

.article__header {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.article__header--after-media {
  margin-top: var(--s-6);
}

.article__title {
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
  line-height: 1.3;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-3);
  border-block: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: var(--t-sm);
}

.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article__byline {
  color: var(--c-ink);
  font-weight: var(--w-semi);
}

.share {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-inline-start: auto;
}

.share__btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-ink-2);
  text-decoration: none;
  transition: all var(--d-fast) var(--ease-out);
}

.share__btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: var(--share-c, var(--c-navy));
}

.share__btn--wa { --share-c: #128c4b; }
.share__btn--fb { --share-c: #1665d8; }
.share__btn--x { --share-c: #111; }
.share__btn--copy { --share-c: var(--c-brand); }

.share__status {
  font-size: var(--t-xs);
  color: var(--c-success);
}

.article__figure {
  margin: 0 0 var(--s-6);
}

.article__figure img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--c-paper-2);
}

.article__figure figcaption {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-2);
  color: var(--c-muted);
  font-size: var(--t-sm);
}

.prose {
  max-width: 70ch;
  font-family: var(--f-read);
  font-size: var(--t-md);
  line-height: var(--lh-read);
  color: var(--c-ink-2);
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose :where(h2, h3, h4) {
  margin-top: 1.6em;
  font-family: var(--f-ui);
}

.prose a {
  color: var(--c-brand);
}

.prose img {
  height: auto !important;
  max-width: 100% !important;
  margin-block: var(--s-4);
  border-radius: var(--r-md);
}

.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r-md);
}

.prose blockquote {
  padding: var(--s-3) var(--s-5);
  border-left: 4px solid var(--c-brand);
  background: var(--c-brand-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.prose table {
  width: 100%;
  display: block;
  overflow-x: auto;
  font-size: var(--t-sm);
}

.prose td,
.prose th {
  padding: var(--s-2);
  border: 1px solid var(--c-line);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
}

.article__tags .chip {
  padding: 0.3em 0.85em;
  font-size: var(--t-sm);
}

.ad-slot {
  margin-block: var(--s-6);
  min-height: 1px;
}

/* =========================================================================
   Horoscope
   ========================================================================= */
.week-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding: 0.35rem 1rem;
  border-radius: var(--r-pill);
  background: var(--c-gold-tint);
  color: var(--c-gold-deep);
  font-weight: var(--w-semi);
}

.zodiac-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.zodiac-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.zodiac-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}

.zodiac-card__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.zodiac-card__img {
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  background: var(--c-gold-tint);
  padding: var(--s-1);
}

.zodiac-card__name {
  font-size: var(--t-xl);
  font-weight: var(--w-black);
}

.zodiac-card__en {
  color: var(--c-muted);
  font-size: var(--t-sm);
}

.zodiac-card ul {
  display: grid;
  gap: var(--s-2);
}

.zodiac-card li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--f-read);
  font-size: var(--t-sm);
  line-height: 1.8;
  color: var(--c-ink-2);
}

.zodiac-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--c-gold);
  transform: rotate(45deg);
}

/* =========================================================================
   Landing pages (fellowship, digital connect)
   ========================================================================= */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(232 0 138 / 0.28), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgb(184 134 47 / 0.25), transparent 60%),
    var(--c-navy);
  color: rgb(255 255 255 / 0.85);
}

.landing-hero__grid {
  display: grid;
  gap: var(--s-10);
  align-items: center;
}

@media (min-width: 960px) {
  .landing-hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

.landing-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3rem 0.9rem;
  border: 1px solid rgb(184 134 47 / 0.6);
  border-radius: var(--r-pill);
  color: #f1d49b;
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
}

.landing-hero__title {
  margin-top: var(--s-5);
  color: #fff;
  font-size: var(--t-4xl);
  font-weight: var(--w-black);
  line-height: 1.22;
}

.landing-hero__tagline {
  margin-top: var(--s-3);
  color: #f1d49b;
  font-size: var(--t-xl);
  font-weight: var(--w-semi);
}

.landing-hero__text {
  max-width: 60ch;
  margin-top: var(--s-4);
  font-family: var(--f-read);
  line-height: 1.95;
}

.landing-hero__text strong {
  color: #fff;
}

.offer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}

.offer__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.45rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  font-weight: var(--w-semi);
}

.offer__item--gold {
  border-color: transparent;
  background: var(--c-gold);
}

.landing-hero__partner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font-size: var(--t-sm);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.landing-hero__note {
  margin-top: var(--s-4);
  color: rgb(255 255 255 / 0.6);
  font-size: var(--t-sm);
}

.portrait {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: var(--s-4) calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-4);
  border: 2px solid var(--c-gold);
  border-radius: var(--r-xl);
}

.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  filter: grayscale(0.15) contrast(1.02);
}

.portrait figcaption {
  position: relative;
  margin-top: var(--s-6);
  text-align: center;
  color: rgb(255 255 255 / 0.7);
  font-size: var(--t-sm);
}

.portrait--light figcaption {
  color: var(--c-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-brand);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.section--dark .eyebrow {
  color: #f1d49b;
}

.landing-title {
  margin-top: var(--s-3);
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
}

.landing-lead {
  max-width: 62ch;
  margin-top: var(--s-3);
  color: var(--c-muted);
  font-size: var(--t-md);
}

.section--dark .landing-lead {
  color: rgb(255 255 255 / 0.72);
}

.split {
  display: grid;
  gap: var(--s-10);
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .split--reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.callout {
  margin-top: var(--s-8);
  padding: var(--s-6) var(--s-8);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--c-brand-deep), var(--c-brand));
  color: #fff;
}

.callout h3 {
  color: #fff;
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.callout p {
  margin-top: var(--s-1);
  color: rgb(255 255 255 / 0.85);
  font-size: var(--t-lg);
}

.callout .btn {
  margin-top: var(--s-5);
}

.feature-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-3);
  height: 100%;
  padding: var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
  transform-style: preserve-3d;
}

.feature-card:hover {
  border-color: var(--c-brand-line);
  box-shadow: var(--sh-2);
}

.feature-card:hover .icon-chip {
  transform: rotate(-6deg) scale(1.06);
}

.feature-card__stat {
  color: var(--c-brand);
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.feature-card h3 {
  font-size: var(--t-xl);
}

.feature-card__sub {
  color: var(--c-ink-2);
  font-weight: var(--w-semi);
}

.feature-card p {
  color: var(--c-muted);
  font-family: var(--f-read);
  font-size: var(--t-sm);
  line-height: 1.85;
}

.check-list {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.check-list li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  font-family: var(--f-read);
  line-height: 1.85;
}

.check-list li .icon-chip {
  --chip-size: 2rem;
  --chip-c: var(--c-success);
  border-radius: 50%;
}

.quality-list {
  display: grid;
  gap: var(--s-3);
}

.quality-list li {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.04);
  transition: background-color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}

.quality-list li:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(241 212 155 / 0.4);
  transform: translateX(4px);
}

.quality-list .icon-chip {
  --chip-c: #f1d49b;
  background: rgb(241 212 155 / 0.12);
  box-shadow: none;
}

.quote-band {
  margin-top: var(--s-10);
  padding: var(--s-8);
  border: 1px solid rgb(241 212 155 / 0.35);
  border-radius: var(--r-xl);
  text-align: center;
}

.quote-band h3 {
  font-size: var(--t-2xl);
}

.quote-band__words {
  margin-top: var(--s-4);
  color: #f1d49b;
  font-size: var(--t-xl);
  font-weight: var(--w-bold);
}

.quote-band p {
  margin-top: var(--s-2);
  color: #fff;
  font-size: var(--t-lg);
}

.steps {
  position: relative;
  display: grid;
  gap: var(--s-5);
  counter-reset: step;
  margin-top: var(--s-8);
}

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

  .steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-line-2) 0 8px, transparent 8px 14px);
  }
}

.step {
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}

.step__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-size: var(--t-lg);
  font-weight: var(--w-black);
  box-shadow: 0 0 0 6px var(--c-paper);
}

.step h3 {
  font-size: var(--t-xl);
}

.step p {
  color: var(--c-muted);
  font-family: var(--f-read);
  font-size: var(--t-sm);
  line-height: 1.85;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--s-gutter);
  border-radius: var(--r-xl);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(255 255 255 / 0.14), transparent 60%),
    linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 45%, var(--c-brand-deep) 100%);
  color: rgb(255 255 255 / 0.85);
  text-align: center;
}

.cta-band h2 {
  max-width: 28ch;
  margin-inline: auto;
  color: #fff;
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
}

.cta-band p {
  max-width: 62ch;
  margin: var(--s-4) auto 0;
  font-family: var(--f-read);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.cta-band__note {
  margin-top: var(--s-5) !important;
  font-family: var(--f-ui) !important;
  font-size: var(--t-sm);
  color: rgb(255 255 255 / 0.65);
}

/* decorative shapes with optional parallax */
.deco {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.5;
}

.deco--ring {
  width: 18rem;
  aspect-ratio: 1;
  border: 1.5px solid rgb(241 212 155 / 0.35);
}

.deco--tr {
  top: -6rem;
  right: -4rem;
}

.deco--bl {
  bottom: -7rem;
  left: -5rem;
}

.deco--dot {
  width: 0.75rem;
  aspect-ratio: 1;
  background: var(--c-gold);
}

/* promo band (home → fellowship) */
.promo {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgb(232 0 138 / 0.3), transparent 60%),
    var(--c-navy);
  color: rgb(255 255 255 / 0.85);
}

@media (min-width: 900px) {
  .promo {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

.promo img {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--c-gold);
}

.promo h2 {
  color: #fff;
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.promo p {
  margin-top: var(--s-1);
  font-size: var(--t-sm);
}

/* social hub */
.platform-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}

.platform-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
}

.platform-card__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-xl);
}

.platform-card__body {
  flex: 1;
  display: grid;
  place-items: center;
  gap: var(--s-4);
  padding: var(--s-6);
  text-align: center;
}

.platform-card__body p {
  max-width: 40ch;
  color: var(--c-muted);
}

.platform-card--fb { --chip-c: #1665d8; }
.platform-card--ig { --chip-c: #c13584; }
.platform-card--yt { --chip-c: #d71e1e; }
.platform-card--wa { --chip-c: #128c4b; }

.platform-card .icon-chip {
  --chip-c: inherit;
}

.btn--platform {
  --btn-bg: var(--chip-c);
  --btn-fg: #fff;
  --btn-bd: var(--chip-c);
}

.btn--platform:hover {
  --btn-bd: var(--chip-c);
  filter: brightness(0.92);
}

.fb-embed {
  width: 100%;
  min-height: 410px;
  display: grid;
  place-items: center;
}

/* weather widget wrapper */
.widget-frame {
  display: grid;
  place-items: center;
  min-height: 10rem;
  padding: var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
  overflow: hidden;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  position: relative;
  margin-top: var(--s-section);
  background: var(--c-navy);
  color: rgb(255 255 255 / 0.72);
  font-size: var(--t-sm);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--c-brand-bright), var(--c-brand) 40%, var(--c-gold));
}

.footer-cta {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  padding-block: var(--s-8);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

@media (min-width: 900px) {
  .footer-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.footer-cta__title {
  color: #fff;
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.footer-cta p {
  margin-top: var(--s-1);
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.footer-main {
  display: grid;
  gap: var(--s-8);
  padding-block: var(--s-10);
}

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

@media (min-width: 1100px) {
  .footer-main {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
}

.footer-brand img {
  width: 13rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 42ch;
  margin-top: var(--s-4);
  font-family: var(--f-read);
  line-height: 1.9;
}

.footer-brand .masthead__heritage {
  margin-top: var(--s-4);
  border-color: rgb(241 212 155 / 0.5);
  color: #f1d49b;
}

.footer-brand .social-links {
  margin-top: var(--s-5);
}

.footer-col__title {
  margin-bottom: var(--s-4);
  color: #fff;
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
}

.footer-links {
  display: grid;
  gap: var(--s-2);
}

.footer-links--spaced {
  margin-top: var(--s-5);
}

.footer-links--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s-4);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: inherit;
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: var(--s-4);
  font-style: normal;
}

.footer-contact__row {
  display: flex;
  gap: var(--s-3);
  line-height: 1.7;
}

.footer-contact__row .fi {
  margin-top: 0.3em;
  color: #ff8fcf;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--t-xs);
  color: rgb(255 255 255 / 0.55);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footer-bottom a {
  color: inherit;
}

.footer-bottom a:hover {
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: var(--z-sticky);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), visibility 0s linear var(--d-base), background-color var(--d-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.back-to-top:hover {
  background: var(--c-brand);
}

/* =========================================================================
   Dialog (push notification)
   ========================================================================= */
.dialog {
  width: min(92vw, 28rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--sh-3);
}

.dialog::backdrop {
  background: rgb(10 16 30 / 0.55);
  backdrop-filter: blur(2px);
}

.dialog__body {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6);
  text-align: center;
  justify-items: center;
}

.dialog__body img {
  max-width: 100%;
  max-height: 12rem;
  border-radius: var(--r-md);
}

.dialog__title {
  font-size: var(--t-xl);
}

.dialog__actions {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 var(--s-6) var(--s-6);
}

.motion-ok .dialog[open] {
  animation: dialog-in 280ms var(--ease-out);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

/* =========================================================================
   Error page
   ========================================================================= */
.error-page {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding-block: var(--s-16);
  text-align: center;
}

.error-page__code {
  color: var(--c-brand);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: var(--w-black);
  line-height: 1;
  font-stretch: 80%;
}

.error-page__title {
  font-size: var(--t-3xl);
}

.error-page p {
  max-width: 50ch;
  color: var(--c-muted);
}

/* =========================================================================
   Tilt (pointer:fine only, set by motion.js)
   ========================================================================= */
.motion-ok [data-tilt] {
  transform-style: preserve-3d;
  will-change: auto;
}

.motion-ok [data-tilt].is-tilting {
  transition: transform 120ms linear, box-shadow var(--d-base) var(--ease-out);
}

/* =========================================================================
   Responsive switches
   ========================================================================= */
@media (max-width: 959px) {
  /* tablets: the coloured icons alone, names kept for screen readers */
  .topbar__links {
    gap: var(--s-2);
  }

  .topbar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .topbar__ic {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 767px) {
  .topbar__links {
    display: none;
  }

  .topbar .social-links {
    margin-inline-start: auto;
  }

  .masthead__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: var(--s-3);
    gap: var(--s-2);
  }

  .masthead__edition,
  .masthead__actions {
    display: none;
  }

  .masthead__logo {
    width: min(78vw, 300px);
  }

  .story--overlay .story__title {
    font-size: var(--t-xl);
  }

  .story--overlay .story__body {
    padding: var(--s-5) var(--s-4) var(--s-4);
  }

  .carousel__btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .article {
    padding: var(--s-4);
    border-radius: var(--r-lg);
  }

  .share {
    width: 100%;
    margin-inline-start: 0;
  }

  .desk {
    padding: var(--s-4);
  }

  .desk__tabs {
    margin-inline: calc(var(--s-4) * -1);
    padding-inline: var(--s-4);
  }
}

@media (min-width: 1000px) {
  .primary-nav {
    display: block;
  }

  .primary-nav__link {
    padding-inline: clamp(0.4rem, 0.9vw - 0.15rem, 0.7rem);
  }

  .nav-toggle {
    display: none;
  }

  .navbar.is-stuck .navbar__brand {
    display: inline-flex;
  }
}

@media (max-width: 999px) {
  .navbar__inner {
    justify-content: space-between;
  }

  .navbar.is-stuck .navbar__brand {
    display: inline-flex;
  }

  .navbar__cta {
    margin-inline-start: 0;
  }
}

@media (max-width: 380px) {
  .navbar__cta .btn__label {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar__date {
    font-size: var(--t-xs);
  }

  .topbar .social-links {
    gap: 0.3rem;
  }

  .topbar .social-links a {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 374px) {
  .topbar__date {
    display: none;
  }
}

@media (max-width: 420px) {
  .ticker__label {
    padding: 0.35rem;
  }

  .ticker__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story__media img,
  .story--card,
  .listing > .story--row,
  .zodiac-card,
  .feature-card,
  .video-card__thumb img,
  .widget-epaper,
  .widget-epaper img,
  .menu-panel,
  .menu-panel__link .icon-chip,
  .menu-feature__go,
  .mega__go,
  .topbar__ic,
  .back-to-top,
  .quality-list li,
  .social-links a,
  .footer-links a,
  .share__btn {
    transition: none;
  }

  .story:hover .story__media img,
  .video-card:hover .video-card__thumb img {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .share,
  .ad-slot,
  .back-to-top,
  .reading-progress {
    display: none !important;
  }

  .article {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
