/*
 * horary-reading.css — Jamakkol horary reading display styles
 * Self-contained: defines its own custom properties so it works
 * in the standalone admin page without loading aom.css.
 * Used by: admin/horary-test.html
 * Will also be referenced from aom.css when wired into the Ask tab.
 */

:root {
  --hr-bg:      #F4EDE4;
  --hr-surface: #f7f4ef;
  --hr-border:  #e8e8ed;
  --hr-navy:    #1e2d5a;
  --hr-gold:    #c9922a;
  --hr-text:    #1e2d5a;
  --hr-muted:   #8a90a2;
  --hr-radius:  14px;
}

/* ─── Fade-in animation ──────────────────────────────────────────────── */

@keyframes hr-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Section ────────────────────────────────────────────────────────── */

.reading-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hr-border);
  animation: hr-fade-in 0.35s ease both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.reading-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* ─── Section title ──────────────────────────────────────────────────── */

.reading-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hr-muted);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hr-border);
}

/* ─── Body text ──────────────────────────────────────────────────────── */

.reading-body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--hr-text);
  line-height: 1.75;
  margin: 0 0 10px;
}

.reading-body:last-child {
  margin-bottom: 0;
}

.reading-body strong {
  font-weight: 600;
  color: var(--hr-navy);
}

.reading-body em {
  font-style: italic;
  color: var(--hr-muted);
}

/* ─── Callout ────────────────────────────────────────────────────────── */

.reading-callout {
  background: var(--hr-surface);
  border-left: 3px solid var(--hr-gold);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin: 12px 0;
}

.reading-callout .reading-body {
  margin: 0;
}


/* ─── Table ──────────────────────────────────────────────────────────── */

.reading-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0 14px;
}

.reading-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

.reading-table thead tr {
  border-bottom: 2px solid var(--hr-navy);
}

.reading-table th {
  text-align: left;
  padding: 6px 10px;
  font-weight: 600;
  color: var(--hr-navy);
  white-space: nowrap;
}

.reading-table td {
  padding: 7px 10px;
  color: var(--hr-text);
  border-bottom: 1px solid var(--hr-border);
}

.reading-table-alt td {
  background: var(--hr-surface);
}

.reading-table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── Follow-up separator ────────────────────────────────────────────── */

.followup-separator {
  border: none;
  border-top: 1px solid var(--hr-border);
  margin: 28px 0 20px;
}

/* ─── Follow-up counter ──────────────────────────────────────────────── */

.followup-counter {
  text-align: center;
  color: var(--hr-muted);
  margin-top: 8px;
  font-size: 11px;
}
