/* ═══════════════════════════════════════════
   Article / Detail Page Styles
   OneTimeRegistration.co.in
   ═══════════════════════════════════════════ */

/* ── Info Tables ── */
.art-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  margin: 16px 0 24px;
  -webkit-overflow-scrolling: touch;
}
.art-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-primary);
  min-width: 380px;
  font-size: .875rem;
}
.art-table thead tr { background: var(--navy); }
.art-table th {
  padding: 11px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.82);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.art-table th:first-child { border-radius: var(--r-lg) 0 0 0; }
.art-table th:last-child  { border-radius: 0 var(--r-lg) 0 0; }
.art-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  line-height: 1.5;
}
.art-table tbody tr:nth-child(even) td { background: rgba(13,27,42,.025); }
.art-table tbody tr:hover td { background: rgba(13,27,42,.045); }
.art-table tbody tr:last-child td { border-bottom: none; }
.art-table tr.row-total td {
  background: rgba(13,27,42,.07) !important;
  font-weight: 700;
  border-top: 2px solid var(--border-color);
}
.art-table tr.row-urgent td { background: rgba(192,57,43,.05) !important; }
.art-table td strong { color: var(--navy); }

/* Scrollbar hint on mobile */
.art-table-wrap::after {
  content: '';
  display: none;
}
@media (max-width: 480px) {
  .art-table-wrap {
    position: relative;
  }
  .art-table-wrap::before {
    content: '← scroll →';
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--text-muted);
    padding: 4px;
    background: var(--cream2);
  }
}

/* ── Callout Boxes ── */
.art-callout {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  margin: 20px 0;
  font-size: .9rem;
  line-height: 1.65;
  align-items: flex-start;
}
.art-callout.warning {
  background: rgba(217,119,6,.08);
  border: 1px solid rgba(217,119,6,.3);
  color: #78350f;
}
.art-callout.success {
  background: rgba(22,163,74,.07);
  border: 1px solid rgba(22,163,74,.25);
  color: #14532d;
}
.art-callout.info {
  background: rgba(29,78,216,.07);
  border: 1px solid rgba(29,78,216,.2);
  color: #1e3a8a;
}
.art-callout.danger {
  background: rgba(192,57,43,.07);
  border: 1px solid rgba(192,57,43,.25);
  color: #7f1d1d;
}

/* ── Steps List ── */
.steps-list {
  list-style: none;
  counter-reset: steps-counter;
  padding-left: 0;
  margin-bottom: 20px;
}
.steps-list > li {
  counter-increment: steps-counter;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  font-size: .9rem;
  line-height: 1.65;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.steps-list > li:hover {
  border-color: rgba(13,27,42,.25);
  box-shadow: var(--shadow-sm);
}
.steps-list > li::before {
  content: counter(steps-counter);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}
.steps-list > li a { color: var(--vermilion); font-weight: 500; }

/* ── Post Content Body Extended ── */
.post-content-body h2 {
  scroll-margin-top: 80px;
  position: relative;
}
.post-content-body h2::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--vermilion);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.post-content-body h2:target::before,
.post-content-body h2:hover::before { opacity: 1; }

.post-content-body ul,
.post-content-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.post-content-body ul li,
.post-content-body ol li {
  margin-bottom: 7px;
  line-height: 1.7;
  font-size: .95rem;
}
.post-content-body ul li strong { color: var(--navy); }

/* ── Badge variants in tables ── */
.badge-open    { background:#dcfce7; color:#166534; padding:2px 8px; border-radius:20px; font-size:.72rem; font-family:var(--font-mono); }
.badge-closed  { background:#f1f5f9; color:#64748b; padding:2px 8px; border-radius:20px; font-size:.72rem; font-family:var(--font-mono); }
.badge-upcoming{ background:#fef9c3; color:#713f12; padding:2px 8px; border-radius:20px; font-size:.72rem; font-family:var(--font-mono); }
.badge-result  { background:#ede9fe; color:#4c1d95; padding:2px 8px; border-radius:20px; font-size:.72rem; font-family:var(--font-mono); }

/* ── Table of Contents (auto-generated) ── */
.toc-box {
  background: var(--cream2);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin: 0 0 28px;
}
.toc-box-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc-box ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 560px) {
  .toc-box ol { grid-template-columns: 1fr 1fr; }
}
.toc-box li { counter-increment: toc; }
.toc-box a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t-fast);
}
.toc-box a::before {
  content: counter(toc);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .65rem;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toc-box a:hover { color: var(--vermilion); }

/* ── Reading Progress Bar ── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--vermilion);
  width: 0%;
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Compact header on scroll ── */
.site-header.compact .header-top { display: none !important; }
.site-header.compact .hdr-main-inner { height: 52px; }
.site-header.compact .logo-tagline { display: none; }
