/* AR Studios News — design system
   1 Variables  2 Reset  3 Type  4 Layout  5 Header  6 Nav  7 Ticker
   8 Hero  9 Cards  10 Sections  11 Article  12 Ads  13 Footer
   14 A11y  15 Responsive  16 Utilities
*/

/* 1. Variables */
:root {
  --news-primary: #7a1f2b;
  --news-secondary: #15202b;
  --news-accent: #b0893e;
  --news-text: #1c1c1c;
  --news-muted: #5c6570;
  --news-background: #f6f3ee;
  --news-surface: #fffdf8;
  --news-border: #e2dcd1;
  --news-radius: 2px;
  --news-shadow: 0 10px 30px rgba(21, 32, 43, 0.08);
  --news-container: 1240px;
  --news-gap: 1.25rem;
  --news-header-height: 3.25rem;
  --news-header: #ffffff;
  --news-footer: #121820;
  --news-breaking: #7a1f2b;
  --ars-header-bg: var(--news-header);
  --ars-header-text: var(--news-secondary);
  --ars-header-logo-bg: var(--news-header);
  --ars-header-border: var(--news-border);
  --ars-nav-bg: var(--news-header);
  --ars-nav-text: var(--news-secondary);
  --ars-nav-hover-bg: var(--news-header);
  --ars-nav-hover-text: var(--news-primary);
  --ars-nav-active-bg: var(--news-header);
  --ars-nav-active-text: var(--news-primary);
  --ars-breaking-bg: var(--news-breaking);
  --ars-breaking-text: #ffffff;
  --ars-gtranslate-bg: var(--news-header);
  --ars-gtranslate-text: var(--news-secondary);
  --ars-gtranslate-border: var(--news-border);
  --ars-footer-bg: var(--news-footer);
  --ars-footer-text: #d8d3ca;
  --ars-footer-link: #f4f1ea;
  --ars-footer-link-hover: var(--news-accent);
  --ars-footer-border: #2a323c;
  --ars-accent: var(--news-accent);
  --ars-accent-secondary: var(--news-secondary);
  --ars-page-bg: var(--news-background);
  --ars-content-bg: var(--news-surface);
  --ars-text: var(--news-text);
  --ars-muted: var(--news-muted);
  --ars-link: var(--news-text);
  --ars-link-hover: var(--news-primary);
  --ars-section-heading: var(--news-secondary);
  --ars-section-divider: var(--news-secondary);
  --ars-epaper-toolbar-bg: #6a11cb;
  --ars-epaper-toolbar-text: #1a1a2e;
  --ars-epaper-active: var(--news-primary);
  --ars-epaper-thumb-active: var(--news-primary);
  --news-font: "Noto Sans Telugu", "Nirmala UI", "Gautami", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --news-measure: 42rem;
}

/* 2. Reset / base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--news-font);
  color: var(--ars-text);
  background: var(--ars-page-bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: anywhere;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }
a { color: var(--ars-link); }
a:hover { color: var(--ars-link-hover); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select { font: inherit; }

/* 3. Typography */
.ars-article__title,
.ars-hero-slide__title,
.ars-archive__title {
  font-weight: 700;
}

.ars-article__body {
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: var(--news-measure);
}

.ars-article__body p { margin-bottom: 1.15em; }

/* 4. Layout */
.ars-wrap {
  width: min(100% - 1.5rem, var(--news-container));
  margin-inline: auto;
}

.ars-main { min-height: 50vh; padding-bottom: 2.5rem; }

.ars-home-columns {
  display: grid;
  gap: var(--news-gap);
  margin-top: 1.5rem;
}

.ars-home-columns__side:empty { display: none; }

/* 5. Header */
.ars-site-header {
  background: var(--ars-header-bg);
  color: var(--ars-header-text);
  position: relative;
  z-index: 40;
}
.ars-site-header a { color: inherit; }

/* Keep chrome as one insertion surface; Auto Ads between logo and nav
   must not stick or consume the first viewport. Ads stay visible. */
.ars-header-chrome {
  display: flex;
  flex-direction: column;
  background: var(--ars-header-bg);
  border-bottom: 1px solid var(--ars-header-border);
}
.ars-brand-nav {
  display: contents;
}
.ars-header-chrome > .ars-utility { order: 1; }
.ars-header-chrome .ars-masthead { order: 2; }
.ars-header-chrome .ars-nav { order: 3; }
.ars-header-chrome .ars-ticker { order: 4; }
.ars-header-chrome .ars-lang { order: 5; }
.ars-header-chrome .ars-mobile-ctas { order: 6; }
.ars-header-chrome .google-auto-placed {
  order: 40;
}

.ars-header-compact .ars-tagline { display: none !important; }
.ars-header-compact .ars-masthead__inner { min-height: 52px; }
.ars-header-compact .ars-logo img { max-height: 36px; }

.ars-site-header.is-sticky .ars-masthead {
  box-shadow: 0 6px 18px rgba(21, 32, 43, 0.08);
}

.ars-utility {
  display: none;
  background: var(--news-secondary);
  color: #f4f1ea;
  font-size: 0.75rem;
}

.ars-utility a { color: inherit; }
.ars-utility__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2rem;
}

.ars-utility__right,
.ars-utility__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ars-masthead {
  background: var(--ars-header-logo-bg);
}
.ars-masthead__inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 56px;
  gap: 0.5rem;
}

.ars-masthead__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: visible;
  text-align: center;
}
.ars-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
.ars-logo img,
.ars-logo .custom-logo {
  display: block;
  max-height: 48px;
  width: auto;
  height: auto;
  max-width: min(180px, calc(100vw - 7.5rem));
  object-fit: contain;
  object-position: center;
  visibility: visible;
  opacity: 1;
}
.ars-logo__mobile { display: none; }
.ars-logo__desktop { display: block; }
.ars-logo__text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ars-header-text);
}

@media (max-width: 1023px) {
  .ars-logo:has(.ars-logo__mobile) .ars-logo__desktop { display: none; }
  .ars-logo__mobile { display: block; }
}
.ars-tagline { display: none; margin: 0; color: var(--ars-muted); font-size: 0.8rem; }

.ars-masthead__tools {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.ars-masthead__tools .ars-btn { display: none; }

.ars-icon-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ars-header-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ars-icon-btn:focus-visible,
.ars-btn:focus-visible,
.ars-menu a:focus-visible,
.ars-slider-btn:focus-visible {
  outline: 2px solid var(--news-accent);
  outline-offset: 2px;
}

.ars-menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.ars-menu-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ars-menu-toggle[aria-expanded="true"] .ars-menu-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ars-menu-toggle[aria-expanded="true"] .ars-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.ars-menu-toggle[aria-expanded="true"] .ars-menu-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ars-btn,
.ars-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  background: var(--news-secondary);
  color: #fff;
}
.ars-btn:hover,
.ars-chip:hover { color: #fff; filter: brightness(1.08); }
.ars-btn--live,
.ars-chip--live { background: var(--news-primary); }
.ars-btn--epaper,
.ars-chip--epaper { background: var(--news-accent); color: #1c1408; }
.ars-btn--ghost {
  background: transparent;
  color: var(--news-secondary);
  border: 1px solid var(--news-border);
}
.ars-btn--ghost:hover { color: var(--news-secondary); filter: none; background: rgba(21, 32, 43, 0.06); }
.ars-chip { min-height: 1.6rem; padding: 0 0.55rem; font-size: 0.68rem; }

.ars-mobile-ctas {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.75rem;
}
.ars-mobile-ctas .ars-btn { flex: 1; }

/* 6. Navigation */
.ars-nav {
  display: block;
  background: var(--ars-nav-bg);
  border-top: 1px solid var(--ars-header-border);
}
.ars-menu { list-style: none; display: flex; gap: 0.15rem; flex-wrap: nowrap; }
.ars-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ars-nav-text);
  border-bottom: 2px solid transparent;
}
.ars-menu a:hover {
  background: var(--ars-nav-hover-bg);
  color: var(--ars-nav-hover-text);
  border-bottom-color: var(--ars-nav-hover-text);
}
.ars-menu .current-menu-item > a,
.ars-menu .current-category-ancestor > a,
.ars-menu [aria-current="page"] {
  background: var(--ars-nav-active-bg);
  color: var(--ars-nav-active-text);
  border-bottom-color: var(--ars-nav-active-text);
}
.ars-menu .sub-menu {
  list-style: none;
  position: absolute;
  background: var(--news-surface);
  border: 1px solid var(--news-border);
  min-width: 12rem;
  padding: 0.35rem 0;
  display: none;
  z-index: 20;
}
.ars-menu li { position: relative; }
.ars-menu li:hover > .sub-menu,
.ars-menu li:focus-within > .sub-menu { display: block; }

.ars-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 32, 0.45);
  z-index: 80;
}
.ars-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(88vw, 22rem);
  background: var(--news-surface);
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow: auto;
  padding: 0.75rem 0 1.5rem;
}
.ars-drawer.is-open { transform: translateX(0); }
.ars-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem 0.5rem 1rem;
  font-weight: 700;
}
.ars-menu--mobile { flex-direction: column; }
.ars-menu--mobile .sub-menu { position: static; display: block; border: 0; padding-left: 0.75rem; }
.ars-nav-open,
.ars-search-open { overflow: hidden; }

.ars-drawer[hidden],
.ars-drawer-backdrop[hidden],
.ars-search-overlay[hidden] {
  display: none !important;
}

.ars-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 32, 0.72);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ars-search-overlay__panel {
  width: min(100%, 36rem);
  background: var(--news-surface);
  padding: 1.25rem;
  position: relative;
}
.ars-search-form { display: flex; gap: 0.4rem; }
.ars-search-form__input,
.ars-search-form input[type="search"] {
  flex: 1;
  min-height: 48px;
  border: 1px solid var(--news-border);
  padding: 0 0.85rem;
  background: #fff;
}
.ars-search-close { position: absolute; top: 0.3rem; right: 0.3rem; }

/* 7. Ticker */
.ars-ticker {
  background: var(--ars-breaking-bg);
  color: var(--ars-breaking-text);
}
.ars-ticker__inner { display: flex; align-items: stretch; min-height: 2.4rem; padding-inline: 0; width: 100%; max-width: none; gap: 0; }
.ars-ticker .ars-wrap { display: flex; width: 100%; max-width: none; padding: 0; }
.ars-ticker__label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  z-index: 1;
}
.ars-ticker__viewport {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  padding-inline-start: 0.85rem;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 12px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 12px), transparent);
}
.ars-ticker__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  animation: ars-ticker 32s linear infinite;
  width: max-content;
  padding: 0.55rem 1.25rem 0.55rem 0;
  margin: 0;
}
.ars-ticker__list li { flex: 0 0 auto; white-space: nowrap; }
.ars-ticker__list a { color: var(--ars-breaking-text); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.ars-ticker:hover .ars-ticker__list,
.ars-ticker:focus-within .ars-ticker__list { animation-play-state: paused; }

@keyframes ars-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ars-lang {
  background: var(--ars-gtranslate-bg);
  color: var(--ars-gtranslate-text);
  border-bottom: 1px solid var(--ars-gtranslate-border);
}
.ars-lang__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding-block: 0.3rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}
.ars-lang__inner a,
.ars-lang__inner button,
.ars-lang__inner span,
.ars-lang__inner .glink,
.ars-lang__inner .gt-current-lang {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ars-gtranslate-text);
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--ars-gtranslate-border);
  background: var(--ars-content-bg);
  line-height: 1.2;
}
.ars-lang__inner a:hover,
.ars-lang__inner button:hover {
  color: var(--ars-nav-hover-text);
  border-color: var(--ars-nav-hover-text);
}
.ars-lang select {
  min-height: 32px;
  font-size: 0.78rem;
  border: 1px solid var(--news-border);
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .ars-ticker__list { animation: none; }
  html { scroll-behavior: auto; }
}

/* 8. Hero */
.ars-hero-band { padding-top: 1rem; }
.ars-hero-grid { display: grid; gap: 1rem; }
.ars-hero-slider { position: relative; background: var(--news-secondary); color: #fff; overflow: hidden; }
.ars-hero-slide { position: relative; }
.ars-hero-slide[hidden] { display: none !important; }
.ars-hero-slide__link { display: block; color: inherit; text-decoration: none; position: relative; z-index: 1; cursor: pointer; }
.ars-hero-slide__link:hover { color: inherit; }
.ars-hero-slide__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--news-secondary);
}
.ars-hero-slide__img,
.ars-hero-slide__media img:not(.ars-wm__mark) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.ars-hero-slide__media > .ars-wm {
  position: absolute;
  inset: 0;
  display: block;
}
.ars-hero-slide__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.75rem 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(8, 12, 18, 0.92));
}
.ars-hero-slide__copy .ars-kicker { color: var(--news-accent); }
.ars-hero-slide__title {
  font-size: 1.28rem;
  color: #fff;
  margin: 0.3rem 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ars-hero-slider .ars-date { color: #d7d2c8; font-size: 0.8rem; }
.ars-hero-slider__controls {
  position: absolute;
  inset: 42% 0.4rem auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.ars-slider-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}
.ars-hero-slider__dots {
  position: absolute;
  left: 0.85rem;
  bottom: 0.45rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  padding: 0;
  pointer-events: none;
}
.ars-hero-slider__dots .ars-hero-dot { pointer-events: auto; }
.ars-hero-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}
.ars-hero-dot.is-active { width: 1.4rem; background: var(--news-accent); }

.ars-secondary {
  background: var(--news-surface);
  border-top: 3px solid var(--news-primary);
  padding: 0.85rem 1rem 0.4rem;
  display: flex;
  flex-direction: column;
}
.ars-secondary .ars-story { flex: 1; }
.ars-section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--news-primary);
  margin: 0 0 0.65rem;
}

/* 9. Cards / stories */
.ars-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--news-primary);
  text-decoration: none;
  margin-bottom: 0.2rem;
}
.ars-story { padding: 0.7rem 0; border-bottom: 1px solid var(--news-border); }
.ars-story--row { display: grid; grid-template-columns: 96px 1fr; gap: 0.75rem; align-items: start; }
.ars-story__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.ars-story__thumb img:not(.ars-wm__mark) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ars-story__thumb > .ars-wm {
  position: absolute;
  inset: 0;
  display: block;
}
.ars-story__title {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ars-story__title a { text-decoration: none; }
.ars-story__title--lg { font-size: 1.28rem; -webkit-line-clamp: 4; }
.ars-story__excerpt { color: var(--news-muted); font-size: 0.92rem; margin: 0.35rem 0; }
.ars-date { color: var(--news-muted); font-size: 0.78rem; }
.ars-story--image { border: 0; padding: 0; }
.ars-story__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d9d3c8;
  margin-bottom: 0.55rem;
}
.ars-story__media img:not(.ars-wm__mark) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ars-story__media > .ars-wm {
  position: absolute;
  inset: 0;
  display: block;
}
.ars-story--feature { border: 0; padding: 0; }

.ars-list .ars-story:last-child { border-bottom: 0; }

/* 10. Category / homepage sections */
.ars-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 2px solid var(--ars-section-divider);
  margin: 1.5rem 0 0.85rem;
  padding-bottom: 0.35rem;
}
.ars-section-title { font-size: 1.2rem; margin: 0; color: var(--ars-section-heading); }
.ars-section-title a { text-decoration: none; }
.ars-more { font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--news-primary); }

.ars-trending__list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.ars-trending__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--news-border);
}
.ars-trending__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--news-accent);
  line-height: 1;
}

.ars-latest__grid,
.ars-archive__grid {
  display: grid;
  gap: 1.1rem;
}
.ars-archive__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  justify-content: start;
}
.ars-cat-block__split { display: grid; gap: 1rem; }

.ars-video__grid { display: grid; gap: 1rem; }
.ars-video-card__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.ars-video-card__play img:not(.ars-wm__mark) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ars-video-card__play > .ars-wm {
  position: absolute;
  inset: 0;
  display: block;
}
.ars-video-card__icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--news-primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.ars-video-embed { aspect-ratio: 16 / 9; }
.ars-video-embed iframe { width: 100%; height: 100%; border: 0; }

.ars-epaper {
  margin: 1.5rem 0;
  background: var(--news-secondary);
  color: #f4f1ea;
  padding: 1.25rem;
}
.ars-epaper__inner { display: flex; flex-direction: column; gap: 0.85rem; }
.ars-epaper__kicker { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; color: var(--news-accent); margin: 0; }
.ars-epaper h2 { color: #fff; }

/* 11. Article */
.ars-article-layout { padding-top: 1.25rem; }
.ars-article__title { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.ars-article__dek { font-size: 1.1rem; color: var(--news-muted); }
.ars-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--news-muted);
  font-size: 0.88rem;
  margin: 0.75rem 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--news-border);
}
.ars-article__figure { margin: 0 0 1.25rem; position: relative; }
.ars-article__figure img:not(.ars-wm__mark) { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ars-article__figure > .ars-wm { position: relative; display: block; width: 100%; }
.ars-article__figure figcaption { color: var(--news-muted); font-size: 0.82rem; margin-top: 0.4rem; }
.ars-share { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.ars-share__label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ars-share__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--news-secondary);
  color: #fff;
  text-decoration: none;
}
.ars-share__btn:hover { color: #fff; background: var(--news-primary); }
.ars-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; }
.ars-tags a {
  text-decoration: none;
  border: 1px solid var(--news-border);
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
}
.ars-post-nav {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--news-border);
}
.ars-post-nav a { text-decoration: none; font-weight: 700; }
.ars-breadcrumbs { font-size: 0.82rem; color: var(--news-muted); margin-bottom: 0.75rem; }
.ars-breadcrumbs a { text-decoration: none; }
.ars-archive { padding-top: 0.85rem; }
.ars-archive__head { margin-bottom: 0.75rem; }
.ars-archive__title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin: 0; }
.ars-empty {
  max-width: 36rem;
  padding: 0.35rem 0 2rem;
}
.ars-empty__lead {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.ars-empty__hint {
  margin: 0 0 1rem;
  color: var(--news-muted);
}
.ars-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ars-404, .ars-page { padding-top: 1.5rem; }
.ars-pagination { margin: 1.5rem 0; }
.ars-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 0 0.15rem;
  text-decoration: none;
  border: 1px solid var(--news-border);
}
.ars-pagination .current { background: var(--news-primary); color: #fff; border-color: var(--news-primary); }

/* 12. Ads */
.ars-ad {
  margin: 1rem 0;
  padding: 0.55rem 0.5rem;
  background: #f3efe8;
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid var(--news-border);
  position: relative;
  z-index: 0;
  isolation: isolate;
  pointer-events: auto;
}
.ars-ad__label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8378;
  margin-bottom: 0.35rem;
}
.ars-ad__inner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 50px;
}
.ars-ad__inner ins,
.ars-ad__inner iframe {
  max-width: 100%;
}
.ars-ad--sidebar { min-height: 250px; }
.ars-ad--article-top,
.ars-ad--article-bottom,
.ars-ad--article-middle { min-height: 100px; }
.ars-ad--header,
.ars-ad--homepage-top { min-height: 90px; }
.ars-ad--mobile-only { display: grid; }
.ars-ad--desktop-only { display: none; }

/* 13. Footer */
.ars-footer {
  background: var(--ars-footer-bg);
  color: var(--ars-footer-text);
  margin-top: 2rem;
  padding: 2rem 0 0;
}
.ars-footer a { color: var(--ars-footer-link); text-decoration: none; }
.ars-footer a:hover { color: var(--ars-footer-link-hover); }
.ars-footer__grid { display: grid; gap: 1.5rem; padding-bottom: 1.5rem; }
.ars-footer__title { color: #fff; font-size: 1rem; border-bottom: 1px solid var(--ars-footer-border); padding-bottom: 0.4rem; }
.ars-footer__links { list-style: none; }
.ars-footer__links li { margin: 0.4rem 0; }
.ars-footer__contact { list-style: none; }
.ars-footer__contact li { margin: 0.45rem 0; }
.ars-footer__legal {
  border-top: 1px solid var(--ars-footer-border);
  padding: 1rem 0 1.25rem;
  font-size: 0.82rem;
  text-align: center;
}
.ars-footer__legal-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.ars-footer__studio {
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--ars-footer-text);
}
.ars-social { display: flex; gap: 0.35rem; }
.ars-social__link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: inherit;
}
.ars-social--header .ars-social__link { width: 28px; height: 28px; background: rgba(255,255,255,0.12); }

/* 14. Accessibility */
.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 200;
  background: #fff;
  padding: 0.6rem 0.9rem;
  color: var(--news-secondary);
}

/* 15. Responsive */
@media (max-width: 359px) {
  .ars-story--row { grid-template-columns: 76px 1fr; }
  .ars-hero-slide__title { font-size: 1.15rem; }
}

@media (max-width: 1023px) {
  .ars-site-header {
    position: static;
  }
  .ars-masthead {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ars-header-bg);
    border-bottom: 1px solid var(--news-border);
  }
  .ars-site-header.is-sticky .ars-masthead {
    box-shadow: var(--news-shadow);
  }
  .ars-logo__text { font-size: 1.05rem; line-height: 1.2; }
  .ars-header-chrome .ars-ticker { order: 2; }
  .ars-ticker__label { font-size: 0.62rem; padding: 0 0.55rem; }
  .ars-header-chrome .ars-nav { order: 3; }
  .ars-nav > .ars-wrap {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }
  .ars-nav .ars-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 0 0.4rem;
  }
  .ars-nav .ars-menu > li { flex: 0 0 auto; }
  .ars-nav .ars-menu > li > a {
    min-height: 40px;
    padding: 0 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .ars-nav .ars-menu > li > .sub-menu {
    display: none;
  }
  .ars-header-chrome .ars-lang { order: 4; }
  .ars-header-chrome .ars-mobile-ctas { order: 5; }
}

@media (min-width: 768px) {
  .ars-logo img,
  .ars-logo .custom-logo { max-height: 56px; max-width: 220px; }
  .ars-hero-slide__title { font-size: 1.55rem; }
  .ars-latest__grid,
  .ars-video__grid { grid-template-columns: repeat(2, 1fr); }
  .ars-trending__list { grid-template-columns: 1fr 1fr; }
  .ars-footer__grid { grid-template-columns: 1fr 1fr; }
  .ars-article-layout:has(.ars-article-layout__side) { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; align-items: start; }
  .ars-more-news { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (min-width: 1024px) {
  .ars-utility { display: block; }
  .ars-menu-toggle { display: none; }
  .ars-nav { display: block; }
  .ars-nav .ars-menu { flex-wrap: wrap; overflow: visible; }
  .ars-mobile-ctas { display: none; }
  .ars-masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ars-header-logo-bg);
  }
  .ars-masthead__inner { grid-template-columns: auto 1fr auto; min-height: 72px; }
  .ars-masthead__tools .ars-btn { display: inline-flex; min-height: 40px; }
  .ars-masthead__brand { text-align: left; justify-content: flex-start; }
  .ars-logo__desktop { display: block; }
  .ars-logo__mobile { display: none; }
  .ars-tagline { display: block; }
  .ars-hero-grid { grid-template-columns: 7.2fr 4.8fr; align-items: stretch; }
  .ars-hero-slide__title { font-size: 1.7rem; }
  .ars-home-columns:has(.ars-home-columns__side) { grid-template-columns: minmax(0, 1fr) 300px; }
  .ars-cat-block__split { grid-template-columns: 1.15fr 0.85fr; }
  .ars-latest__grid { grid-template-columns: repeat(4, 1fr); }
  .ars-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
  .ars-ad--mobile-only { display: none; }
  .ars-ad--desktop-only { display: grid; }
  .ars-epaper__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1280px) {
  .ars-hero-slide__title { font-size: 2.05rem; }
}

@media (min-width: 1440px) {
  body { font-size: 1.02rem; }
}

@media (min-width: 1600px) {
  :root { --news-gap: 1.5rem; }
}

/* 16. Utilities */
.ars-widget { margin-bottom: 1.25rem; }
.ars-widget-title { font-size: 1rem; border-bottom: 2px solid var(--news-primary); padding-bottom: 0.3rem; }

/* 17. ePaper viewer presentation (plugin markup; processing untouched)
   Plugin CSS still owns crop/zoom/Jcrop. Theme only sizes chrome vs reading area. */
body.ars-epaper-view,
body:has(.ars-viewer-container) {
  min-height: 100svh;
}
body.ars-epaper-view .ars-main,
body:has(.ars-viewer-container) .ars-main {
  padding-bottom: 0;
}
body.ars-epaper-view .ars-footer,
body:has(.ars-viewer-container) .ars-footer {
  margin-top: 0;
}
.ars-page--epaper,
body.ars-epaper-view .ars-wrap.ars-page,
body:has(.ars-viewer-container) .ars-wrap.ars-page {
  width: 100%;
  max-width: none;
  padding: 0;
}
.ars-page--epaper .ars-article__body,
body.ars-epaper-view .ars-article__body,
body:has(.ars-viewer-container) .ars-article__body {
  max-width: none;
}
.ars-page--epaper .ars-article__header,
body.ars-epaper-view .ars-article__header,
body:has(.ars-viewer-container) .ars-article__header {
  display: none;
}

body.ars-epaper-view,
body:has(.ars-viewer-container) {
  overflow-x: hidden;
}

.ars-viewer-container {
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.ars-viewer-container .ars-header-bar {
  order: 1;
  flex: 0 0 auto;
  position: relative;
  top: auto;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0;
  gap: 0.4rem;
  border-radius: 0;
}
.ars-viewer-container .ars-header-logo {
  height: 28px;
  max-width: 110px;
}
.ars-viewer-container .ars-header-title {
  font-size: 0.82rem;
}
.ars-viewer-container .ars-current-date-badge {
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
}
.ars-viewer-container .ars-edition-select {
  min-width: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.ars-viewer-container .ars-main-layout {
  order: 2;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  gap: 0 !important;
}

/* Horizontal strip of ALL page thumbs (plugin mobile used width:100% per thumb). */
.ars-viewer-container .ars-sidebar {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  position: relative !important;
  top: auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 0.4rem !important;
  padding: 0.35rem 0.5rem !important;
  margin: 0 !important;
  border-right: 0;
  border-bottom: 1px solid var(--news-border);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  white-space: nowrap;
}
.ars-viewer-container .ars-thumb-link {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: unset !important;
  max-width: none !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  white-space: nowrap;
  box-sizing: content-box;
}
.ars-viewer-container .ars-thumb-image {
  display: block !important;
  width: auto !important;
  height: 88px !important;
  max-height: 88px !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: top center;
  margin: 0 auto 0.15rem !important;
}
.ars-viewer-container .ars-thumb-link span {
  font-size: 0.62rem;
  line-height: 1.1;
  padding: 0.1rem 0.25rem;
  min-width: 0 !important;
}
.ars-viewer-container .ars-thumb-link.active,
.ars-viewer-container .ars-thumb-link.ars-active,
.ars-viewer-container .ars-thumb-link.current {
  outline: 2px solid var(--ars-epaper-thumb-active);
  outline-offset: 1px;
}

.ars-viewer-container .ars-content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0 !important;
}
.ars-viewer-container .ars-slider-wrapper {
  width: 100%;
  min-height: 0;
  height: auto;
  border-radius: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
/* Crop mode: plugin uses overflow hidden + Jcrop pixel boxes. Do not scroll-offset the selection. */
.ars-viewer-container .ars-slider-wrapper.ars-cropping {
  overflow: hidden !important;
}
.ars-viewer-container .ars-slider-container,
.ars-viewer-container #ars-slider-container {
  min-height: 0;
}
.ars-viewer-container .ars-slide {
  padding: 0.15rem 0.25rem;
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}
.ars-viewer-container .ars-slide .ars-image-wrapper,
.ars-viewer-container .ars-image-wrapper {
  width: 92% !important;
  max-width: min(94vw, 100%) !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block;
  position: relative;
  background: transparent;
  box-shadow: none;
}
.ars-viewer-container .ars-image-wrapper > .ars-page-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  min-height: unset !important;
  object-fit: fill;
  object-position: center top;
  margin: 0 auto;
}

/* Let Jcrop own overlay, handles, and image box. Theme must not force 100% width. */
.ars-viewer-container .jcrop-holder,
.ars-viewer-container .jcrop-holder *,
.ars-viewer-container .jcrop-tracker,
.ars-viewer-container .jcrop-selection,
.ars-viewer-container .jcrop-handle,
.ars-viewer-container .jcrop-vline,
.ars-viewer-container .jcrop-hline,
.ars-viewer-container #ars-floating-toolbar,
.ars-viewer-container #ars-floating-toolbar * {
  box-sizing: content-box;
  max-width: none !important;
  pointer-events: auto;
  object-fit: unset;
}
.ars-viewer-container .jcrop-holder img,
.ars-viewer-container .jcrop-holder .ars-page-image {
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: fill !important;
}

.ars-viewer-container .ars-toolbar {
  order: 3;
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  top: auto;
  z-index: 30;
  gap: 0.3rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0;
}

@media (max-width: 1023px) {
  .ars-viewer-container .ars-header-title {
    display: none;
  }
  .ars-viewer-container .ars-toolbar {
    padding: 0.25rem 0.3rem;
    gap: 0.2rem;
  }
  .ars-viewer-container .ars-toolbar button {
    min-height: 34px;
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
  }
  .ars-viewer-container .ars-sidebar {
    padding: 0.3rem 0.4rem !important;
    gap: 0.35rem !important;
  }
  .ars-viewer-container .ars-thumb-image {
    height: 88px !important;
    max-height: 88px !important;
    max-width: none !important;
  }
  .ars-viewer-container .ars-slide {
    padding: 0.1rem 0.15rem;
  }
}

@media (min-width: 1024px) {
  .ars-viewer-container .ars-thumb-image {
    height: 92px !important;
    max-height: 92px !important;
    max-width: none !important;
  }
  .ars-viewer-container .ars-slide .ars-image-wrapper,
  .ars-viewer-container .ars-image-wrapper {
    width: 94% !important;
    max-width: 94% !important;
  }
}

@media (min-width: 1440px) {
  .ars-viewer-container .ars-thumb-image {
    height: 96px !important;
    max-height: 96px !important;
  }
}

/* 15. News image watermark overlay + copy deterrence (does not alter originals or ePaper files) */
.ars-wm {
  --ars-wm-size: 12%;
  --ars-wm-opacity: 0.7;
  --ars-wm-mx: 16px;
  --ars-wm-my: 16px;
  --ars-wm-pad-x: max(8px, var(--ars-wm-mx));
  --ars-wm-pad-y: max(8px, var(--ars-wm-my));
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.ars-wm__mark {
  position: absolute;
  z-index: 1;
  width: var(--ars-wm-size);
  height: auto;
  max-height: 32%;
  opacity: var(--ars-wm-opacity);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ars-wm--top-left .ars-wm__mark { top: var(--ars-wm-pad-y); left: var(--ars-wm-pad-x); }
.ars-wm--top-center .ars-wm__mark { top: var(--ars-wm-pad-y); left: 50%; transform: translateX(-50%); }
.ars-wm--top-right .ars-wm__mark { top: var(--ars-wm-pad-y); right: var(--ars-wm-pad-x); }
.ars-wm--center-left .ars-wm__mark { top: 50%; left: var(--ars-wm-pad-x); transform: translateY(-50%); }
.ars-wm--center .ars-wm__mark { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ars-wm--center-right .ars-wm__mark { top: 50%; right: var(--ars-wm-pad-x); transform: translateY(-50%); }
.ars-wm--bottom-left .ars-wm__mark { bottom: var(--ars-wm-pad-y); left: var(--ars-wm-pad-x); }
.ars-wm--bottom-center .ars-wm__mark { bottom: var(--ars-wm-pad-y); left: 50%; transform: translateX(-50%); }
.ars-wm--bottom-right .ars-wm__mark { bottom: var(--ars-wm-pad-y); right: var(--ars-wm-pad-x); }
@media (max-width: 640px) {
  .ars-wm {
    --ars-wm-pad-x: max(8px, calc(var(--ars-wm-mx) * 0.7));
    --ars-wm-pad-y: max(8px, calc(var(--ars-wm-my) * 0.7));
  }
}
.ars-article__body .ars-wm { display: inline-block; }
.ars-article__body .ars-wm > img:not(.ars-wm__mark) { max-width: 100%; height: auto; }
.ars-viewer-container .ars-wm__mark { display: none !important; }

.ars-protected-article .ars-article__title,
.ars-protected-article .ars-article__dek,
.ars-protected-article .ars-article__body,
.ars-protected-article .ars-article__body *:not(input):not(textarea):not(select):not([contenteditable]),
.ars-protected-article .ars-article__figure {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
.ars-protected-article .ars-article__figure img,
.ars-protected-article .ars-article__body img,
.ars-protected-article .ars-article__image {
  -webkit-user-drag: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
.ars-protected-article input,
.ars-protected-article textarea,
.ars-protected-article select,
.ars-protected-article [contenteditable] {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

.ars-hero-slider__controls,
.ars-hero-slider__dots {
  z-index: 3;
}
