:root {
  --dot-red: #b91c1c;
  --dot-ink: #1c1917;
  --dot-line: #e7e5e4;
  --dot-muted: #78716c;
  --dot-bg: #ffffff;
  --dot-soft: #fafaf9;
  --dot-sans: 'Noto Sans Devanagari', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --dot-serif: 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--dot-sans);
  color: var(--dot-ink);
  background: var(--dot-bg);
  overflow-x: hidden;
}

main > :last-child {
  margin-bottom: 0 !important;
}

.dot-serif {
  font-family: var(--dot-serif);
}

.dot-no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dot-no-scrollbar::-webkit-scrollbar {
  display: none;
}

.dot-underline-hover:hover {
  text-decoration: underline;
  text-decoration-color: var(--dot-red);
  text-underline-offset: 4px;
}

.dot-clamp-2,
.dot-clamp-3,
.dot-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dot-clamp-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dot-clamp-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.dot-clamp-4 {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.dot-break-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dot-ticker-track {
  transition: transform 0.45s ease;
}

.dot-ticker-track.is-animating {
  transition: none;
}

/* Top-bar breaking ticker. The track holds the headline twice and slides from
   0 to -50%, so copy two enters exactly as copy one leaves: an endless
   right-to-left run with no visible seam. The per-item right padding is the
   gap between copies, and it is identical on both, which is what keeps the
   -50% step seamless. */
/* The rule sets display:flex from md up, which outranks the UA [hidden] style,
   so the hidden state needs its own guard or an empty strip stays in the bar. */
#breaking-marquee[hidden] {
  display: none !important;
}

.dot-marquee {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.dot-marquee-track {
  display: inline-flex;
  width: max-content;
  will-change: transform;
  animation: dotMarquee var(--dot-marquee-duration, 22s) linear infinite;
}

.dot-marquee-item {
  padding-right: 2.5rem;
  font-weight: 600;
  color: var(--dot-ink);
  cursor: pointer;
}

.dot-marquee-item:hover {
  color: var(--dot-red);
}

.dot-marquee:hover .dot-marquee-track {
  animation-play-state: paused;
}

@keyframes dotMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot-marquee-track {
    animation: none;
    transform: none;
  }
}

.dot-slide-fade {
  animation: dotFade 0.35s ease;
}

@keyframes dotFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dot-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--dot-line);
  background: #fff;
  color: var(--dot-ink);
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.dot-btn:hover {
  border-color: var(--dot-ink);
}

.dot-btn-primary {
  background: var(--dot-red);
  border-color: var(--dot-red);
  color: #fff;
}

.dot-btn-primary:hover {
  background: #991b1b;
  border-color: #991b1b;
}

.dot-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--dot-muted);
}

.dot-btn-ghost:hover {
  color: var(--dot-ink);
  border-color: var(--dot-line);
}

.dot-btn[aria-pressed='true'] {
  background: var(--dot-ink);
  border-color: var(--dot-ink);
  color: #fff;
}

.dot-btn:disabled,
.dot-btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

.dot-toast-root {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.dot-toast {
  background: var(--dot-ink);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: dotFade 0.2s ease;
  max-width: 22rem;
  text-align: center;
}

.dot-toast[data-tone='ok'] {
  background: #15803d;
}

.dot-toast[data-tone='warn'] {
  background: #b45309;
}

.dot-toast[data-tone='error'] {
  background: #b91c1c;
}

.dot-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 25, 23, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem;
}

.dot-overlay.is-open {
  display: flex;
}

.dot-panel {
  background: #fff;
  border-radius: 0.75rem;
  width: min(40rem, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.dot-panel-wide {
  width: min(56rem, 100%);
}

.dot-prose {
  font-family: var(--dot-serif);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #292524;
}

.dot-prose p {
  margin: 0 0 1.15rem;
}

.dot-prose h3 {
  font-family: var(--dot-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}

.dot-prose h4 {
  font-family: var(--dot-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.dot-prose ul,
.dot-prose ol {
  margin: 0 0 1.15rem 1.25rem;
}

.dot-prose ul {
  list-style: disc;
}

.dot-prose ol {
  list-style: decimal;
}

.dot-prose li {
  margin-bottom: 0.4rem;
}

.dot-prose blockquote {
  border-left: 3px solid var(--dot-red);
  background: var(--dot-soft);
  padding: 0.875rem 1rem;
  margin: 1.25rem 0;
  font-style: normal;
}

.dot-prose blockquote p:last-child {
  margin-bottom: 0;
}

.dot-prose strong {
  font-weight: 700;
}

.dot-prose a {
  color: var(--dot-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dot-prose img {
  width: 100%;
  border-radius: 0.5rem;
  margin: 1rem 0 0.35rem;
}

.dot-figure figcaption {
  font-family: var(--dot-sans);
  font-size: 0.75rem;
  color: var(--dot-muted);
  margin-top: 0.4rem;
}

.dot-search-field {
  width: 100%;
  border: 1px solid var(--dot-line);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: var(--dot-sans);
}

.dot-search-field:focus {
  outline: 2px solid var(--dot-red);
  outline-offset: 1px;
}

.dot-result {
  display: block;
  border-top: 1px solid var(--dot-line);
  padding: 0.85rem 1rem;
  color: inherit;
}

.dot-result:hover {
  background: var(--dot-soft);
}

.dot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--dot-soft);
  border: 1px solid var(--dot-line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--dot-muted);
}

.dot-chip button {
  border: 0;
  background: transparent;
  color: var(--dot-muted);
  cursor: pointer;
  line-height: 1;
  font-size: 0.875rem;
}

.dot-chip button:hover {
  color: var(--dot-red);
}

.dot-stat {
  border: 1px solid var(--dot-line);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.dot-stat b {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
}

.dot-stat span {
  font-size: 0.6875rem;
  color: var(--dot-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dot-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--dot-line);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #fff;
}

.dot-row:hover {
  border-color: var(--dot-muted);
}

.dot-row.is-active {
  border-color: var(--dot-red);
  box-shadow: 0 0 0 1px var(--dot-red) inset;
}

.dot-row img {
  width: 4.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  flex-shrink: 0;
  background: var(--dot-soft);
}

.dot-row-meta {
  font-size: 0.6875rem;
  color: var(--dot-muted);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.dot-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid var(--dot-line);
}

.dot-badge-live {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.dot-badge-draft {
  background: #f5f5f4;
  color: #57534e;
}

.dot-badge-pub {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.dot-editable[contenteditable='true']:focus,
.dot-editable:focus {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

.dot-dropzone {
  border: 1.5px dashed var(--dot-line);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--dot-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dot-dropzone:hover,
.dot-dropzone.is-over {
  border-color: var(--dot-red);
  background: #fef2f2;
}

.dot-kbd {
  border: 1px solid var(--dot-line);
  border-bottom-width: 2px;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--dot-soft);
}

.dot-empty {
  border: 1px dashed var(--dot-line);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--dot-muted);
  font-size: 0.875rem;
}

.dot-coming {
  cursor: pointer;
}

.dot-hero-media {
  transition: transform 0.5s ease;
}

.dot-hero-media:hover {
  transform: scale(1.02);
}

.dot-skeleton {
  background: linear-gradient(90deg, #f5f5f4 25%, #ececea 37%, #f5f5f4 63%);
  background-size: 400% 100%;
  animation: dotShimmer 1.4s ease infinite;
  border-radius: 0.5rem;
}

@keyframes dotShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.dot-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dot-muted);
}

.dot-meta {
  font-size: 0.8125rem;
  color: var(--dot-muted);
}

.dot-poll-option {
  width: 100%;
  text-align: right;
  border: 1px solid var(--dot-line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dot-poll-option:hover {
  border-color: var(--dot-ink);
}

.dot-poll-option .dot-poll-fill {
  position: absolute;
  inset: 0;
  background: #fef2f2;
  z-index: 0;
  transition: width 0.4s ease;
}

.dot-poll-option > span {
  position: relative;
  z-index: 1;
}

.dot-poll-option:disabled {
  cursor: default;
}

.dot-countdown {
  font-variant-numeric: tabular-nums;
}

.dot-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ef4444;
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@media (max-width: 640px) {
  .dot-prose {
    font-size: 1rem;
    line-height: 1.8;
  }

  .dot-row img {
    width: 3.5rem;
    height: 2.75rem;
  }
}

@media print {
  header,
  footer,
  aside,
  nav,
  .dot-no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .dot-prose {
    font-size: 12pt;
  }
}

.dot-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--dot-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.dot-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.dot-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--dot-muted);
}

.dot-breadcrumb a:hover {
  color: var(--dot-red);
}

.dot-breadcrumb-sep {
  color: var(--dot-line);
}

.dot-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: var(--dot-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dot-icon-btn:hover {
  background: var(--dot-soft);
  color: var(--dot-red);
}

.dot-link {
  color: var(--dot-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.dot-link:hover {
  text-decoration-thickness: 2px;
}

.dot-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--dot-line);
  font-size: 0.875rem;
  color: var(--dot-ink);
  background: var(--dot-bg);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dot-tab:hover {
  border-color: var(--dot-red);
  color: var(--dot-red);
}

.dot-tab-active {
  background: var(--dot-red);
  border-color: var(--dot-red);
  color: #fff;
  font-weight: 600;
}

.dot-tab-active:hover {
  color: #fff;
}

.dot-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--dot-line);
  border-radius: 0.5rem;
  background: var(--dot-bg);
  color: var(--dot-ink);
  font-size: 0.9375rem;
}

.dot-input:focus {
  outline: 2px solid var(--dot-red);
  outline-offset: 1px;
  border-color: var(--dot-red);
}

.dot-breaking {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--dot-red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dot-h2 {
  font-family: var(--dot-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.75rem 0 0.75rem;
}

.dot-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dot-list li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.75;
}

.dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--dot-red);
}

.dot-blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--dot-red);
  font-family: var(--dot-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--dot-ink);
}

.dot-note {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--dot-soft);
  border: 1px solid var(--dot-line);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--dot-muted);
}

.dot-pager-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--dot-line);
  border-radius: 0.75rem;
  background: var(--dot-bg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dot-pager-card:hover {
  border-color: var(--dot-red);
  background: var(--dot-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
