
:root {
  --bg: #050814;
  --bg-card: #101521;
  --accent: #f5c84c;
  --accent-soft: rgba(245, 200, 76, 0.1);
  --text: #f5f7ff;
  --muted: #9aa0b8;
  --danger: #ff6b6b;
  --border: #232b3d;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius-xl: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2442 0, #050814 55%, #02030a 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 1.5rem 1.5rem 0.75rem;
  text-align: center;
}

.app-header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

.subtitle {
  margin: 0.5rem auto 0;
  max-width: 48rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-main {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background: linear-gradient(145deg, rgba(9, 14, 30, 0.98), rgba(11, 18, 39, 0.98));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row.two-col {
  flex-direction: row;
  gap: 0.75rem;
}

.form-row.two-col > div {
  flex: 1;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input {
  background: rgba(5, 8, 20, 0.9);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
  background: rgba(5, 8, 20, 0.98);
}

.primary-btn {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 0, #ffe18a 0, #f5c84c 40%, #f29726 100%);
  color: #2a1904;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.secondary-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(5, 8, 20, 0.9);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.secondary-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
}

#chart-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

#chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.table-wrapper {
  max-height: 220px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(9, 15, 30, 0.95);
  position: sticky;
  top: 0;
  z-index: 1;
}

th,
td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

th {
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

td {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.01);
}

.badge-sign {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 200, 76, 0.3);
  font-size: 0.75rem;
}

.badge-sign span.glyph {
  font-size: 0.9rem;
}

.aspects-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  max-height: 200px;
  overflow: auto;
}

.aspects-list li {
  padding: 0.25rem 0.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.aspects-list li span.aspect-type {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.4rem;
}

.dms-helper {
  margin-top: 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(5, 8, 20, 0.9);
  padding: 0.6rem 0.8rem;
}

.dms-helper > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dms-helper[open] > summary {
  color: var(--accent);
}

.dms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin-top: 0.6rem;
}

.dms-block h3 {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.dms-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dms-row input {
  width: 4rem;
}

.dms-row select {
  background: rgba(5, 8, 20, 0.9);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.35rem 0.4rem;
  font-size: 0.85rem;
  color: var(--text);
}

.dms-row span {
  font-size: 0.85rem;
  color: var(--muted);
}

.dms-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.zodiac-card {
  margin-top: 0.5rem;
}

.zodiac-caption {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.zodiac-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.zodiac-text {
  flex: 1.2;
  min-width: 220px;
}

.zodiac-image-wrapper {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
}

.zodiac-sign-symbol {
  max-width: 180px;
  max-height: 180px;
  display: block;
}

.zodiac-sign-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.zodiac-sign-dates {
  font-size: 0.9rem;
  color: var(--muted);
}

.zodiac-sign-extra {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}

.scorpio-heart {
  animation: heartbeat 2.2s infinite;
  transform-origin: center;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.05); }
  20%  { transform: scale(0.98); }
  30%  { transform: scale(1.08); }
  45%  { transform: scale(0.96); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.interpretation-card {
  margin-top: 0.5rem;
}

.interp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.mode-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mode-btn {
  border: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.mode-btn:hover {
  transform: translateY(-0.5px);
}

.mode-btn.active {
  background: radial-gradient(circle at 30% 0, #ffe18a 0, #f5c84c 40%, #f29726 100%);
  color: #2a1904;
}

.interpretation-text {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

.app-footer {
  padding: 0.75rem 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

code {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .app-header {
    padding-inline: 1rem;
  }
  .app-main {
    padding-inline: 1rem;
  }
  .card {
    padding-inline: 1.1rem;
  }
  .form-row.two-col {
    flex-direction: column;
  }
}


/* === Module DMS : version "Organon" doré & harmonisé === */
.dms-helper {
  margin-top: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(245, 200, 76, 0.75);
  background:
    radial-gradient(circle at top left, rgba(245, 200, 76, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(114, 152, 255, 0.18), transparent 55%),
    rgba(5, 8, 20, 0.96);
  padding: 0.85rem 1rem 1rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.dms-helper::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  border: 1px solid rgba(10, 14, 32, 0.9);
  pointer-events: none;
}

.dms-helper > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dms-helper > summary::before {
  content: "▸";
  font-size: 0.8rem;
  transform-origin: center;
  transition: transform 0.18s ease;
}

.dms-helper[open] > summary::before {
  transform: rotate(90deg);
}

.dms-helper[open] {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.dms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
  margin-top: 0.75rem;
}

.dms-block h3 {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dms-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.dms-row input {
  width: 60px;
  padding: 0.45rem 0.5rem;
  text-align: center;
}

.dms-row select {
  width: 70px;
  padding: 0.45rem 0.5rem;
  text-align: center;
}

.dms-row span {
  color: var(--muted);
  font-size: 0.9rem;
  width: 12px;
  text-align: center;
}

.dms-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed rgba(245, 200, 76, 0.45);
  padding-top: 0.45rem;
}

@media (max-width: 720px) {
  .dms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


.forecast-card {
  margin-top: 1.5rem;
}

.forecast-intro {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.forecast-actions {
  margin: 0.5rem 0 1rem 0;
}

.forecast-block {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148,163,184,0.25);
}

.natal-status {
  margin-left: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.status.error {
  color: #ff9b9b;
}

.lunaison-card {
  margin-top: 1.5rem;
}

.lunaison-panel {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(148,163,184,0.25);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lunaison-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.lunaison-controls {
  display: flex;
  gap: 0.4rem;
}

.mini-btn {
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
}

.small-label,
.small-text {
  font-size: 0.8rem;
  opacity: 0.9;
}

.lunaison-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .lunaison-main {
    grid-template-columns: minmax(0,1fr);
  }
}

.phases-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.phase-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.3rem 0.5rem;
  border-radius: 0.6rem;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(148,163,184,0.35);
  font-size: 0.84rem;
}

.phase-row.current {
  border-color: #facc15;
  box-shadow: 0 0 0 1px rgba(250,204,21,0.4);
}

.phase-name {
  font-weight: 500;
}

.phase-time {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 0.8rem;
  opacity: 0.9;
}

.lunaison-info {
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reading-block {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  opacity: 0.95;
}

.lunaison-calendar {
  margin-top: 0.5rem;
}

.lunaison-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.lunaison-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 0.2rem;
}

.lunaison-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 0.15rem;
}

.month-cell {
  min-height: 1.9rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(15,23,42,0.9);
  background: rgba(15,23,42,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 0.78rem;
}

.month-cell .day-number {
  z-index: 1;
}

.month-cell.today {
  border-color: #facc15;
  box-shadow: 0 0 0 1px rgba(250,204,21,0.5);
}

.month-cell.phase-strong {
  background: radial-gradient(circle at center, rgba(250,204,21,0.45), rgba(15,23,42,0.9));
}

.month-cell.phase-medium {
  background: radial-gradient(circle at center, rgba(250,204,21,0.22), rgba(15,23,42,0.9));
}

.month-cell.phase-weak {
  background: rgba(15,23,42,0.8);
}


.orbit-wrapper {
position: relative;
width: 120px;
height: 120px;
margin: 0.25rem auto 0.4rem;
}
.orbit-center {
position: absolute;
width: 34px;
height: 34px;
border-radius: 999px;
background: radial-gradient(circle at 30% 20%, #facc15, #f97316 55%, #111827 100%);
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 0 18px rgba(250,204,21,0.6);
animation: spin-center 36s linear infinite;
}
.orbit-ring {
position: absolute;
width: 100%;
height: 100%;
border-radius: 999px;
border: 1px dashed rgba(148,163,184,0.5);
left: 0;
top: 0;
transform-origin: center center;
transform: rotate(var(--orbit-angle, 0deg));
transition: transform 0.6s ease-out;
}
.orbit-moon {
position: absolute;
width: 16px;
height: 16px;
border-radius: 999px;
background: radial-gradient(circle at 30% 20%, #e5e7eb, #9ca3af 55%, #020617 100%);
top: 50%;
right: -8px;
transform: translateY(-50%);
box-shadow: 0 0 12px rgba(148,163,184,0.8);
}
@keyframes spin-center {
from { transform: translate(-50%, -50%) rotate(0deg); }
to   { transform: translate(-50%, -50%) rotate(360deg); }
}




.forecast-interp {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 0.85rem;
}

.interp-header.small h3 {
  font-size: 0.95rem;
}

.mode-toggle.small {
  gap: 0.25rem;
}

.mode-btn.small {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
}

.forecast-timeline {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 0.85rem;
}

.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem 0;
}

.timeline-content {
  font-size: 0.85rem;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.5rem 0.7rem;
}

.timeline-content ul {
  padding-left: 1rem;
}

.timeline-content li {
  margin-bottom: 0.25rem;
}

.forecast-synth {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 0.85rem;
}

.forecast-synth h3 {
  font-size: 0.95rem;
}

.secondary-btn.mini {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
}



.zodiac-anim-wrapper {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

#zodiac-animation {
  display: block;
  margin: 0.5rem auto 0.5rem auto;
  max-width: 100%;
}



.app-header {
  margin-bottom: 1.5rem;
}

.app-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.app-title-block {
  flex: 1 1 auto;
}

.app-logo-wrapper {
  flex: 0 0 auto;
}

.app-logo-orbit {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.7),
    0 0 28px rgba(56, 189, 248, 0.65),
    0 0 52px rgba(59, 130, 246, 0.9);
  opacity: 0.75;
  animation: logo-pulse 2.6s ease-in-out infinite;
}

.app-logo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: block;
  animation: logo-spin 48s linear infinite;
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logo-pulse {
  0% {
    transform: scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.95;
  }
  100% {
    transform: scale(0.96);
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .app-header-main {
    flex-direction: row;
    align-items: flex-start;
  }
  .app-logo-orbit {
    width: 64px;
    height: 64px;
  }
  .app-logo {
    width: 50px;
    height: 50px;
  }
}



/* Black circle behind icon */
.app-logo-orbit::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: black;
  z-index: -1;
}


/* Syntonie Horloge ↔ Thème astral */
.astro-sync-card {
  margin-bottom: 1.5rem;
}

.astro-sync-banner {
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.95), transparent 65%),
              linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.85));
  border: 1px solid rgba(250, 250, 250, 0.08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.astro-sync-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.astro-sync-label {
  opacity: 0.85;
}

.astro-sync-value {
  font-weight: 600;
}

.astro-sync-summary {
  margin-top: 6px;
  font-style: italic;
  line-height: 1.35;
}

.astro-link-detail-toggle {
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.85);
  background: radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.35), transparent 70%);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fef9c3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.astro-link-detail-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.7);
}

.astro-link-detail {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.98), transparent 70%);
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.astro-link-detail h3 {
  font-size: 0.92rem;
  margin-top: 0;
  margin-bottom: 4px;
}

.astro-link-detail.expanded {
  max-height: 420px;
}
