.amc-block {
  --amc-bg: #f5f6fa;
  --amc-fg: #1a1f2e;
  --amc-muted: #5b6478;
  --amc-cell-bg: #ffffff;
  --amc-cell-bg-alt: #e8def8;
  --amc-cell-border: #dde1ec;
  --amc-accent: #3b5bdb;
  --amc-zodiac-fire: #fce4ec;
  --amc-zodiac-earth: #e0f2f1;
  --amc-zodiac-air: #fff3e0;
  --amc-zodiac-water: #e3f2fd;
  color: var(--amc-fg);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "header" "grid";
  gap: 0.75rem;
}

.amc-block.wp-block-astro-moon-month-view {
  max-width: 100%;
}

/* Deliberately OUTSIDE .amc-sidebar (not just visually pinned to its edge) — on desktop this
   gets its own grid row so its top edge lines up with the grid's own weekday-name row, rather
   than sitting inset inside the sidebar card's padding like the rest of the header does.
   Order: title (shrinks/truncates first if the row is tight, never grows), the language flags
   right after it, then "Сега"/"Now" pushed to the far right via its own margin-left:auto — so
   the flags always sit next to the title and never compete with Now for the same space, even
   when Now becomes visible after navigating away from the current month. */
.amc-block .amc-month-title-row {
  grid-area: title;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

/* .amc-sidebar wraps the rest of the header (nav + location search) and the desktop day-detail
   panel so they can share one "card" visually on desktop. Below the sidebar breakpoint (which
   now covers phone AND tablet widths, not just phone — see the media query below) it unwraps via
   display:contents — its children become direct grid items of .amc-block instead, placed by
   their own grid-area (see the two names below), and the panel hides in favor of the day-click
   modal. See render.php/class-shortcode.php for why the panel's own markup (templates/day-
   panel.php) is a sibling of .amc-grid-container rather than nested inside the grid HTML that
   gets replaced on every month-navigation fetch. */
.amc-block .amc-sidebar {
  display: contents;
}

.amc-grid-container {
  display: grid;
  row-gap: 1rem;
}

.amc-block .amc-calendar-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.amc-block .amc-grid-area {
  grid-area: grid;
  min-width: 0;
}

.amc-block .amc-day-panel {
  display: none;
}

/* Desktop: grid left (spanning both rows below — see grid-template-areas), .amc-month-title-row
   its own top row on the right, .amc-sidebar (a real card-styled column) underneath it instead
   of the day-click modal. Repeating "grid" across both template rows is what makes the grid area
   span them and start flush at the very top, level with .amc-month-title-row.
   1100px (not the old 600px) is deliberate: at 7 grid columns, the sidebar's own
   minmax(280px,340px) track needs to leave the grid area enough room per cell to stay roughly as
   wide as .amc-day-cell's min-height (6.5rem/104px) is tall, or cells read as cramped/narrow
   next to a full-height sidebar card. That doesn't hold at tablet widths (portrait OR landscape,
   up to and including 1024px) — only true desktop windows get the sidebar; everything at or
   below tablet-landscape (1024px) uses the same full-width grid + day-click modal as phones,
   just with the roomier (non-599.98px-compact) cell sizing below, since a full-width grid on a
   tablet already has plenty of room without needing the phone-specific shrink. Mirrored in
   class-shortcode.php's inline styles and assets/day-modal.js's matchMedia check — all three
   must stay in sync. */
@media (min-width: 1100px) {
  .amc-block {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "grid title"
      "grid sidebar";
    align-items: start;
  }

  .amc-block .amc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-area: sidebar;
    background: var(--amc-cell-bg);
    border: 1px solid var(--amc-cell-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 24, 38, 0.08);
    padding: 1.25rem;
  }

  .amc-block .amc-day-panel {
    display: block;
    border-top: 1px solid var(--amc-cell-border);
    padding-top: 1rem;
  }
}

.amc-block .amc-day-panel-empty {
  margin: 0;
  color: var(--amc-muted);
  font-size: 0.9rem;
  text-align: center;
}

.amc-block .amc-location-area {
  position: relative;
  width: 100%;
}

.amc-block .amc-location-area label {
  position: relative;
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Bug fix: without box-sizing:border-box (not set anywhere in this stylesheet, and not
   guaranteed by every WP theme either), the default content-box model means width:100% sizes
   only the TEXT area — padding/border get added ON TOP of that 100%, so this input's real
   rendered box became wider than its container (overflowing the card to the right) AND, since
   content-box padding doesn't shrink the content area, long text could render all the way to
   the reload button's position before the padding-right buffer ever took effect. border-box
   makes width:100% include padding+border, so the text area correctly shrinks by the reserved
   amount instead. overflow:hidden on the <label> above is a defensive backstop — safe here since
   .amc-location-suggestions (the autocomplete dropdown) is a SIBLING of the label, not a child,
   so clipping the label's overflow never clips the dropdown. */
.amc-block .amc-location-search {
  box-sizing: border-box;
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--amc-cell-border);
  border-radius: 8px;
  background: var(--amc-cell-bg);
  color: var(--amc-fg);
  font: inherit;
  padding: 0 1.9rem 0 0.75rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.amc-block .amc-location-search:focus {
  outline: none;
  border-color: var(--amc-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--amc-accent) 20%, transparent);
}

/* Reload button: re-runs the same IP lookup used on first visit, regardless of what's
   currently typed in the search box — anchored to the <label> (not .amc-location-area), so it
   stays glued to the input's own right edge even when the input's width is capped/centered
   independently of its container (see the mobile max-width rule below). */
.amc-block .amc-location-reload {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--amc-muted);
  font-size: 1.05rem;
  line-height: 1;
}

.amc-block .amc-location-reload:hover,
.amc-block .amc-location-reload:focus-visible {
  opacity: 0.65;
  background: var(--amc-bg);
  outline: none;
}

.amc-block .amc-location-reload:disabled {
  cursor: default;
  opacity: 0.45;
}

.amc-block .amc-location-reload.is-loading {
  animation: amc-location-reload-spin 0.8s linear infinite;
}

@keyframes amc-location-reload-spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.amc-block .amc-location-suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 260px;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--amc-cell-bg);
  border: 1px solid var(--amc-cell-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 24, 38, 0.15);
  z-index: 100001;
  max-height: 16rem;
  overflow-y: auto;
}

.amc-block .amc-location-suggestion {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.amc-block .amc-location-suggestion:hover,
.amc-block .amc-location-suggestion:focus {
  background: var(--amc-bg);
  outline: none;
}

.amc-block .amc-location-suggestion-empty {
  color: var(--amc-muted);
  cursor: default;
}

.amc-block .amc-location-suggestion-empty:hover {
  background: none;
}

/* First-visit IP auto-detect's "detecting…"/"couldn't detect" status — visible feedback so a
   failed or slow lookup doesn't just leave the search box silently empty with no explanation. */
.amc-block .amc-location-status {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--amc-muted);
}

.amc-block .amc-location-status.amc-location-status-error {
  color: #b3261e;
}

/* .amc-calendar-header (inside .amc-sidebar) is always a narrow column now (full-width below the
   sidebar breakpoint, the sidebar's own width on desktop — see the grid-layout rules above) — just the
   prev/picker/forward row now that .amc-month-title-row lives outside .amc-sidebar entirely
   (see the top of this file). Every control below is sized for this narrow context (never a
   wide row spanning the full page) — there is no separate "shrunk for mobile" variant any more. */
.amc-block .amc-navigation-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.amc-block .amc-month-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sits immediately after the title (see .amc-month-title-row's own comment above); each button
   is a small flag toggle — the currently active locale is visually marked via aria-pressed. */
.amc-block .amc-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.amc-block .amc-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  opacity: 0.55;
}

.amc-block .amc-lang-btn svg {
  display: block;
  border-radius: 2px;
}

.amc-block .amc-lang-btn:hover {
  opacity: 0.85;
}

.amc-block .amc-lang-btn[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--amc-accent);
}

.amc-block .amc-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
}

.amc-block .amc-month-picker {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.amc-block .amc-month-picker label {
  display: inline-flex;
  align-items: center;
}

.amc-block .amc-nav-prev,
.amc-block .amc-nav-forward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--amc-cell-border);
  background: var(--amc-cell-bg);
  border-radius: 8px;
  padding: 0;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--amc-accent);
}

.amc-block .amc-nav-prev:hover,
.amc-block .amc-nav-forward:hover {
  border-color: var(--amc-accent);
  background: color-mix(in srgb, var(--amc-accent) 8%, var(--amc-cell-bg));
}

.amc-block .amc-nav-forward.amc-is-apply {
  color: #16803a;
  border-color: color-mix(in srgb, #16803a 45%, var(--amc-cell-border));
}

.amc-block .amc-nav-forward.amc-is-apply:hover {
  background: color-mix(in srgb, #16803a 8%, var(--amc-cell-bg));
}

.amc-block .amc-month-picker select,
.amc-block .amc-month-picker input[type="number"] {
  height: 2.25rem;
  border: 1px solid var(--amc-cell-border);
  border-radius: 8px;
  background: var(--amc-cell-bg);
  color: var(--amc-fg);
  font: inherit;
  padding: 0 0.35rem;
  font-size: 1rem;
  text-align: center;
  text-align-last: center;
}

.amc-block .amc-month-picker input[type="number"] {
  width: 4rem;
}

.amc-block .amc-month-picker select {
  min-width: 5.5rem;
}

.amc-block .amc-month-picker select:hover,
.amc-block .amc-month-picker input[type="number"]:hover {
  border-color: var(--amc-accent);
}

.amc-block .amc-nav-now {
  flex: 0 0 auto;
  margin-left: auto;
  cursor: pointer;
  border: 1px solid var(--amc-cell-border);
  background: var(--amc-cell-bg);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.78rem;
  color: var(--amc-muted);
}

.amc-block button.amc-nav-now {
  background: var(--amc-cell-bg-alt);
}

.amc-block .amc-nav-now:hover {
  border-color: var(--amc-accent);
  color: var(--amc-accent);
}

/* Standard visually-hidden-but-screen-reader-accessible pattern — kept
   independent of whatever the active theme defines for this class name, and
   deliberately wraps ONLY each label's descriptive text (never the
   select/input itself), so the control stays visible regardless of how this
   rule cascades against the theme's own. */
.amc-block .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Below the grid, not above it — an overlay ABOVE the grid pushed the whole grid down by its own
   height the instant it appeared, causing a visible jump on every month navigation. Always
   rendered (never `hidden`) so its box permanently reserves this height; only opacity toggles
   (via .is-visible, set by view.js), so the reserved space never itself appears/disappears. */
.amc-block .amc-loading-overlay {
  margin-top: 0.5rem;
  height: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.amc-block .amc-loading-overlay.is-visible {
  opacity: 1;
}

.amc-block .amc-progress-track {
  height: 4px;
  background: var(--amc-bg);
  border-radius: 2px;
  overflow: hidden;
}

.amc-block .amc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amc-accent);
  transition: width 0.2s ease;
}

.amc-block .amc-grid-container.is-loading {
  opacity: 0.5;
}

.amc-block .amc-weekday-row,
.amc-block .amc-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.amc-block .amc-weekday {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amc-muted);
  padding-bottom: 0.25rem;
}

.amc-block .amc-calendar-grid {
  margin: 0;
}

.amc-block .amc-day-cell {
  /* Bug fix: same content-box overflow as .amc-location-search above — width:100% without
	   border-box means this cell's 1px border + 0.5rem padding get added ON TOP of the grid
	   track's own allotted width, so the rendered box (and its border-radius corner) ran wider
	   than the track and visibly overlapped the column gap next to it. border-box makes
	   width:100% include the border+padding instead, so the cell now actually stops at the
	   track's edge. */
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  min-height: 6.5rem;
  background: var(--amc-cell-bg);
  border: 1px solid var(--amc-cell-border);
  border-radius: 8px;
  padding: 0.5rem;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.amc-block .amc-day-cell-empty {
  background: transparent;
  border: none;
  cursor: default;
}

.amc-block .amc-day-cell:hover,
.amc-block .amc-day-cell:focus-visible {
  border-color: var(--amc-accent);
}

.amc-block .amc-day-cell.amc-today {
  border-color: var(--amc-accent);
  box-shadow: 0 0 0 1px var(--amc-accent);
}

.amc-block .amc-day-cell.amc-today .amc-day-number {
  color: var(--amc-accent);
}

/* The day currently shown in the desktop sidebar panel — distinct from .amc-today (which always
   marks today's date, selected or not); a cell can carry both classes at once. Set only by
   assets/day-modal.js on an actual click, never server-rendered — a fresh month's grid (after
   navigation) starts with no cell carrying this class until the visitor picks one. */
.amc-block .amc-day-cell.amc-selected-day {
  border-color: var(--amc-accent);
  box-shadow: 0 0 0 2px var(--amc-accent);
  background: color-mix(in srgb, var(--amc-accent) 6%, var(--amc-cell-bg));
}

.amc-block .amc-day-number {
  font-weight: 600;
  font-size: 1rem;
}

.amc-block .amc-day-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
}

.amc-block .amc-day-phase svg {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.amc-block .amc-day-phase-pct {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--amc-muted);
  text-align: center;
}

.amc-block .amc-day-corner-badges {
  display: flex;
  position: absolute;
  right: 0.2rem;
  gap: 0.1rem;
}

.amc-block .amc-day-corner-badges-top-right {
  top: 0.35rem;
}

.amc-block .amc-day-corner-badges-bottom-right {
  bottom: 0.35rem;
}

.amc-block .amc-day-corner-badge {
  display: inline-flex;
  color: var(--amc-muted);
}

.amc-block .amc-day-corner-badge svg {
  width: 14px;
  height: 14px;
}

.amc-block .amc-error {
  color: #c92a2a;
}

/* Phone-only compact sizing — independent of the 1100px sidebar/modal breakpoint above. Both the
   phone (<600px) and tablet (600-1099.98px) ranges use the same grid + day-click modal layout;
   this tier only shrinks fonts/spacing further for genuinely narrow phone widths, since the base
   (non-compact) sizing above is already comfortable once the grid has a full tablet-width row to
   itself. */
@media (max-width: 599.98px) {
  .amc-block .amc-weekday-row,
  .amc-block .amc-calendar-grid {
    gap: 0.2rem;
  }

  .amc-block .amc-day-cell {
    padding: 0.35rem 0.3rem;
    min-height: 4.5rem;
    gap: 0.15rem;
  }

  .amc-block .amc-day-phase svg {
    filter: grayscale(0.2);
    fill-opacity: 50%;
  }

  .amc-block .amc-day-phase-pct {
    font-size: 0.68rem;
    position: absolute;
    color: #040404;
  }

  /* Correction: an earlier fix put padding-right on .amc-day-phase itself, which shifted the
	   MOON ICON left too (it's the pct text's own sibling in that same centered column) — on
	   every single cell, even the ~29 out of ~30 days with no corner badge at all. The moon icon
	   must always stay centered, full stop; only the PERCENTAGE needs to move, and only on the
	   handful of days that actually carry a bottom-right badge (an eclipse — see
	   templates/month-grid.php's `null !== $amc_modal['solarEclipse'] || null !== …
	   ['lunarEclipse']` condition, the same one that decides whether that badge renders at all).
	   `.amc-day-phase-pct-shift` is added there, server-side, only for those specific days. The
	   top-right badge (void-of-course) is a different marker and never affects this. */
  .amc-block .amc-day-phase-pct.amc-day-phase-pct-shift {
    padding-right: 0;
  }

  .amc-block .amc-day-corner-badges {
    right: 0.1rem;
    gap: 0.05rem;
  }

  .amc-block .amc-day-corner-badges-top-right {
    top: 0.2rem;
  }

  .amc-block .amc-day-corner-badges-bottom-right {
    bottom: 0.2rem;
  }
  span.amc-day-corner-badges.amc-day-corner-badges-bottom-right svg {
    stroke: rgb(144, 0, 255);
  }

  .amc-block .amc-day-corner-badge svg {
    width: 10px;
    height: 10px;
  }

  .amc-block .amc-weekday {
    font-size: 0.8rem;
  }

  .amc-zodiac-transition {
    gap: 0.3rem;
  }

  .amc-zodiac-transition-marker {
    min-width: 1rem;
    padding-top: 1rem;
  }

  .amc-zodiac-transition-time {
    font-size: 0.65rem;
  }
  .amc-block .amc-location-area label {
    max-width: 100%;
  }
}

.amc-day-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 1rem;
}

/* A normal author rule (the display:flex above) always beats the browser's own
   normal-origin `[hidden] { display: none }` UA rule, regardless of specificity —
   so without this override, the modal ignores the `hidden` attribute day-modal.js
   toggles and can never actually be closed. `!important` also guards against a
   host theme's own generic `div`/container display rules doing the same thing. */
.amc-day-modal-backdrop[hidden] {
  display: none !important;
}

.amc-day-modal {
  position: relative;
  background: var(--amc-cell-bg, #fff);
  color: var(--amc-fg, #1a1f2e);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(20, 24, 38, 0.25);
  padding: 1.5rem;
  width: 100%;
  max-width: 32rem;
  max-height: 85vh;
  overflow-y: auto;
}

.amc-day-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--amc-muted, #5b6478);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
}

.amc-day-modal-close:hover,
.amc-day-modal-close:focus-visible {
  color: var(--amc-fg, #1a1f2e);
  background: var(--amc-bg, #f5f6fa);
}

.amc-day-modal-date {
  margin: 0 1.5rem 1rem 0;
  font-weight: 600;
  color: var(--amc-muted, #5b6478);
  font-size: 0.9rem;
}

.amc-day-modal-phase {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.amc-day-modal-phase svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.amc-day-modal-phase-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.amc-day-modal-illumination {
  margin: 0.15rem 0 0;
  color: var(--amc-muted, #5b6478);
  font-size: 0.9rem;
}

.amc-day-modal-details {
  margin: 0;
  border-top: 1px solid var(--amc-cell-border, #dde1ec);
  padding-top: 0.75rem;
}

.amc-day-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}

.amc-day-modal-row dt {
  color: var(--amc-muted, #5b6478);
  font-size: 1rem;
}

.amc-day-modal-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

.amc-day-modal-section-start {
  border-top: 1px solid var(--amc-cell-border, #dde1ec);
  margin-top: 0.4rem;
  padding-top: 0.75rem;
}

.amc-day-modal-row small {
  display: block;
  max-width: 14rem;
  color: var(--amc-muted, #5b6478);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25;
}

.amc-zodiac-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.3rem;
  border-radius: 999px;
}

.amc-zodiac-chip.amc-zodiac-fire {
  background: var(--amc-zodiac-fire, #fce4ec);
}

.amc-zodiac-chip.amc-zodiac-earth {
  background: var(--amc-zodiac-earth, #e0f2f1);
}

.amc-zodiac-chip.amc-zodiac-air {
  background: var(--amc-zodiac-air, #fff3e0);
}

.amc-zodiac-chip.amc-zodiac-water {
  background: var(--amc-zodiac-water, #e3f2fd);
}

.amc-zodiac-chip svg {
  width: 1rem;
  height: 1rem;
}

.amc-day-modal-asterisk {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

/* Zodiac sign-change row: dt above, dd stretched to full row width below it (instead of the
   default dt-left/dd-right single line) — the transition graphic needs more horizontal room
   than a plain label:value pair. */
.amc-day-modal-row.amc-zodiac-transition-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.amc-day-modal-row.amc-zodiac-transition-row dd {
  width: 100%;
  justify-content: center;
}

.amc-zodiac-transition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.amc-zodiac-transition-sign {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.amc-zodiac-transition-sign .amc-zodiac-chip {
  flex-shrink: 0;
}

/* The time sits above a thin divider, both centered in the flexible space between the two
   signs, so it reads as "the moment of crossing" rather than being glued to either sign's name. */
.amc-zodiac-transition-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-width: 1.5rem;
  position: relative;
  padding-top: 1.15rem;
}

.amc-zodiac-transition-time {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amc-muted, #5b6478);
  white-space: nowrap;
}

.amc-zodiac-transition-divider {
  width: 100%;
  height: 1px;
  background: var(--amc-cell-border, #dde1ec);
}

.amc-day-modal-footnote {
  margin: 0.75rem 0 0;
  color: var(--amc-muted, #5b6478);
  font-size: 0.75rem;
  text-align: center;
}
