/* Born Today (/born-today) — month grid + day accordion.
   Built on the site tokens in navtraq.css; loaded only on this page. */

.fyh-month-grid {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  max-width: var(--content);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fyh-month-grid li { display: flex; }
.fyh-month-btn {
  position: relative;
  width: 100%;
  min-height: 132px;
  margin: 0;
  padding: 22px 22px 20px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.fyh-month-name {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}
.fyh-month-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.fyh-month-badge {
  position: absolute;
  top: 20px;
  right: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--paper);
  padding: 4px 7px;
}
.fyh-month-btn:hover,
.fyh-month-btn.is-on { background: var(--ink); }
.fyh-month-btn:hover .fyh-month-name,
.fyh-month-btn:hover .fyh-month-meta,
.fyh-month-btn:hover .fyh-month-num,
.fyh-month-btn.is-on .fyh-month-name,
.fyh-month-btn.is-on .fyh-month-meta,
.fyh-month-btn.is-on .fyh-month-num { color: #fff; }
.fyh-month-btn:focus-visible,
.fyh-day-btn:focus-visible,
.fyh-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.fyh-month-panel {
  max-width: var(--content);
  margin: 56px auto 0;
  text-align: left;
  scroll-margin-top: 96px;
}
.fyh-month-head { align-items: center; }
.fyh-month-head h2 { margin: 0; font-size: 40px; }
.fyh-back {
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.fyh-back:hover { color: var(--accent); }

.fyh-days { margin-top: 4px; }
.fyh-day { border-bottom: 1px solid var(--line); }
.fyh-day-h { margin: 0; font-size: inherit; font-weight: inherit; }
.fyh-day-btn {
  width: 100%;
  margin: 0;
  padding: 16px 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  scroll-margin-top: 96px;
}
.fyh-day-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.fyh-day-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fyh-day-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0a0a0;
  white-space: nowrap;
}
.fyh-day.is-live .fyh-day-tag { color: var(--accent); }
.fyh-day.is-today .fyh-day-tag { background: var(--ink); color: #fff; padding: 4px 7px; }
.fyh-day.is-today .fyh-day-name { color: var(--accent); }
.fyh-day-icon { position: relative; width: 14px; height: 14px; justify-self: end; }
.fyh-day-icon::before,
.fyh-day-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.18s ease;
}
.fyh-day-icon::after { transform: rotate(90deg); }
.fyh-day-btn[aria-expanded="true"] .fyh-day-icon::after { transform: rotate(0deg); }
.fyh-day-btn:hover .fyh-day-name { color: var(--accent); }
.fyh-day.is-open { background: var(--soft); }
.fyh-day-panel {
  padding: 0 6px 22px 60px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.fyh .fyh-day-panel p {
  margin: 0 0 12px;
  max-width: 68ch;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.fyh-day-panel .continue { margin-top: 2px; color: var(--ink); }
.fyh-sign-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.fyh .fyh-day-panel p.fyh-born {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.fyh-born a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Ads reuse the site banner (.ad-wrap/.ad-box). Month-top banner sits between
   the month heading and the day list; the day banner closes the open panel.
   There is always day content (a day header + panel copy, or the month footer)
   between any two banners. */
.fyh-ad-slot:empty { display: none; }
.fyh-month-ad .ad-wrap { margin: 24px auto 20px; }
.fyh-day-ad .ad-wrap { margin: 22px 0 0; max-width: none; }

/* Month footer: real content between the last day (and its banner) and the
   page-end banner. */
.fyh-month-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  padding: 26px 0 12px;
  border-top: 1px solid var(--ink);
}
.fyh .fyh-month-foot p {
  margin: 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.fyh-month-foot a { color: var(--ink); border-bottom: 1px solid currentColor; }
.fyh-month-foot a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .fyh-day-icon::before,
  .fyh-day-icon::after { transition: none; }
}

@media (max-width: 980px) {
  .fyh-month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fyh-month-head h2 { font-size: 32px; }
}

.fyh-hint {
  margin: 18px auto 0;
  max-width: var(--content);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 560px) {
  .fyh-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .fyh-month-btn { min-height: 108px; padding: 18px 16px 16px; }
  .fyh-month-name { font-size: 26px; }
  .fyh-month-badge { position: static; margin-top: 4px; }
  .fyh-month-panel { margin-top: 40px; }
  .fyh-month-head h2 { font-size: 28px; }
  .fyh-day-btn { grid-template-columns: 28px minmax(0, 1fr) auto 14px; gap: 10px; padding: 15px 2px; }
  .fyh-day-name { font-size: 16px; }
  .fyh-day-panel { padding: 0 2px 20px 2px; font-size: 15px; }
  .fyh-month-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Sign profile table (e.g. Libra) inside an open day panel, between the
   "Born on X? Your sign is Y" line and the day ad. Data: app/zodiac_profiles.py.
   Dark card, red accent; labels sit in a fixed-width column and both cells share
   a baseline so every row lines up. No calc() here (see scripts/minify_static.py). */
.sign-profile {
  max-width: 640px;
  margin: 18px 0 0;
  background: #0b0b0b;
  border: 1px solid #232323;
  border-top: 2px solid var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  color: #ececec;
  font-family: var(--sans);
}
.sign-profile-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.5;
}
.sign-profile-table caption {
  caption-side: top;
  padding: 14px 20px 13px;
  text-align: left;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.18), rgba(225, 6, 0, 0) 72%);
  border-bottom: 1px solid rgba(225, 6, 0, 0.45);
}
.sign-profile-glyph {
  display: inline-block;
  min-width: 1.2em;
  margin-right: 8px;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", var(--sans);
  font-weight: 400;
  color: var(--accent);
}
.sign-profile-key { width: 230px; }
.sign-profile-table th,
.sign-profile-table td {
  padding: 12px 20px;
  text-align: left;
  vertical-align: baseline;
  overflow-wrap: anywhere;
}
.sign-profile-table th {
  padding-right: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9b9b9b;
}
.sign-profile-table td {
  padding-left: 0;
  font-weight: 500;
  color: #f4f4f4;
}
.sign-profile-table tr + tr > * { border-top: 1px solid #1d1d1d; }
.sign-profile-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.sign-profile-table tbody tr:hover th { color: var(--accent); }

@media (max-width: 600px) {
  .sign-profile { max-width: none; margin-top: 16px; }
  .sign-profile-table caption { padding: 12px 16px 11px; font-size: 21px; }
  /* Stack each label above its value: no horizontal overflow at any width. */
  .sign-profile-table colgroup { display: none; }
  .sign-profile-table tbody,
  .sign-profile-table tr,
  .sign-profile-table th,
  .sign-profile-table td { display: block; width: auto; }
  .sign-profile-table th { padding: 11px 16px 2px; font-size: 10px; }
  .sign-profile-table td { padding: 0 16px 11px; }
  .sign-profile-table tr + tr > td { border-top: 0; }
}
