.weekly-page {
  min-height: 100vh;
}

.weekly-brand {
  color: var(--ink);
  text-decoration: none;
}

.weekly-brand:hover {
  text-decoration: none;
}

.weekly-brand .brand-mark {
  color: var(--gold);
}

.weekly-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 112px) 0 104px;
}

.weekly-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  min-height: 470px;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.weekly-kicker {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.weekly-hero h1 {
  max-width: 760px;
  margin: 17px 0 25px;
  color: #f2edde;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.weekly-hero-copy > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.weekly-orbit {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  width: min(100%, 340px);
  margin-inline: auto;
}

.weekly-orbit::before,
.weekly-orbit::after,
.weekly-orbit-ring {
  position: absolute;
  border: 1px solid rgba(211, 184, 119, .34);
  border-radius: 50%;
  content: "";
}

.weekly-orbit::before {
  inset: 0;
}

.weekly-orbit::after {
  inset: 18%;
  border-color: rgba(141, 147, 173, .28);
}

.weekly-orbit-ring {
  inset: 34%;
  background: rgba(211, 184, 119, .035);
}

.weekly-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.weekly-orbit i:nth-of-type(1) { left: 50%; top: 0; }
.weekly-orbit i:nth-of-type(2) { left: 89%; top: 19%; }
.weekly-orbit i:nth-of-type(3) { left: 99%; top: 61%; }
.weekly-orbit i:nth-of-type(4) { left: 72%; top: 95%; }
.weekly-orbit i:nth-of-type(5) { left: 28%; top: 95%; }
.weekly-orbit i:nth-of-type(6) { left: 1%; top: 61%; }
.weekly-orbit i:nth-of-type(7) { left: 11%; top: 19%; }

.weekly-orbit i:nth-of-type(4) {
  width: 12px;
  height: 12px;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(211, 184, 119, .7);
}

.weekly-orbit strong {
  color: #f2dfab;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.weekly-orbit small {
  position: absolute;
  bottom: 20%;
  width: 72%;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-align: center;
}

.weekly-profile-panel {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: clamp(36px, 7vw, 88px);
  margin: 0;
  padding: clamp(52px, 7vw, 82px) 0;
  border-bottom: 1px solid var(--line);
}

.weekly-panel-index {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: .75rem;
  letter-spacing: .16em;
}

.weekly-profile-panel h2,
.weekly-empty h2,
.weekly-result-heading h2 {
  margin: 0;
  color: #f1e7c7;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.25;
}

.weekly-profile-panel form {
  align-self: end;
}

.weekly-profile-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .05em;
}

.weekly-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.weekly-form-row select {
  min-width: 0;
  width: 100%;
}

.weekly-form-row .btn {
  min-width: 220px;
}

.weekly-profile-panel small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .73rem;
}

.weekly-status {
  margin: 12px 0 0;
  color: var(--gold);
  font-size: .82rem;
}

.weekly-status.is-error {
  color: #e68a83;
}

.weekly-empty {
  max-width: 760px;
  margin: 72px auto 0;
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(circle at 90% 10%, rgba(211, 184, 119, .11), transparent 36%),
    rgba(17, 22, 43, .72);
  border: 1px solid rgba(211, 184, 119, .3);
}

.weekly-empty > p:not(.weekly-kicker) {
  max-width: 610px;
  margin: 20px 0 28px;
  color: var(--muted);
  line-height: 1.8;
}

.weekly-results {
  padding-top: clamp(74px, 9vw, 116px);
}

.weekly-result-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  align-items: end;
  gap: 48px;
}

.weekly-result-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}

.weekly-summary {
  position: relative;
  overflow: hidden;
  margin: clamp(36px, 6vw, 68px) 0 22px;
  padding: clamp(34px, 6vw, 68px);
  background:
    linear-gradient(105deg, rgba(211, 184, 119, .09), transparent 58%),
    rgba(17, 22, 43, .72);
  border: 1px solid rgba(211, 184, 119, .38);
}

.weekly-summary::after {
  position: absolute;
  right: -72px;
  top: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(211, 184, 119, .22);
  border-radius: 50%;
  content: "";
}

.weekly-summary time {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.weekly-summary h3 {
  max-width: 780px;
  margin: 20px 0 16px;
  color: #f3ead0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.weekly-summary p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.weekly-days {
  border-top: 1px solid var(--line);
}

.weekly-day {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.weekly-day-heading {
  padding: 29px 22px 29px 0;
  border-right: 1px solid var(--line);
}

.weekly-day-heading time {
  display: block;
  color: #f1e7c7;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.weekly-day-heading span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
}

.weekly-aspects {
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekly-aspect + .weekly-aspect {
  border-top: 1px solid var(--line-soft);
}

.weekly-aspect-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 90px;
  padding: 22px 0 22px 30px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.weekly-aspect-button:hover .weekly-aspect-name,
.weekly-aspect-button[aria-expanded="true"] .weekly-aspect-name {
  color: var(--gold);
}

.weekly-aspect-name {
  color: #e9e4d5;
  font-family: var(--serif);
  font-size: 1.1rem;
  transition: color .2s ease;
}

.weekly-phase,
.weekly-orb {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .05em;
  white-space: nowrap;
}

.weekly-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .2s ease, border-color .2s ease;
}

.weekly-aspect-button[aria-expanded="true"] .weekly-toggle {
  border-color: var(--gold);
  transform: rotate(45deg);
}

.weekly-detail {
  margin: 0 0 24px 30px;
  padding: 0 30px 26px;
  border-left: 1px solid rgba(211, 184, 119, .45);
}

.weekly-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.weekly-detail h4 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.weekly-detail p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.75;
}

.weekly-reminder {
  margin-top: 22px;
  padding: 8px 0;
  color: var(--gold);
  font: 700 .76rem/1.2 var(--sans);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(211, 184, 119, .45);
  cursor: pointer;
}

.weekly-day-empty {
  margin: 0;
  padding: 31px 0 31px 30px;
  color: var(--muted);
  font-size: .85rem;
}

.weekly-full-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 22px 0;
  color: #f1e7c7;
  border-bottom: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.weekly-full-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.weekly-full-link span {
  color: var(--gold);
}

@media (max-width: 800px) {
  .weekly-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .weekly-orbit {
    width: 240px;
  }

  .weekly-profile-panel,
  .weekly-result-heading {
    grid-template-columns: 1fr;
  }

  .weekly-result-heading {
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .weekly-main {
    width: calc(100% - 28px);
    padding-top: 42px;
  }

  .weekly-hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .weekly-form-row {
    grid-template-columns: 1fr;
  }

  .weekly-form-row .btn {
    min-width: 0;
    width: 100%;
  }

  .weekly-day {
    grid-template-columns: 1fr;
  }

  .weekly-day-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0 13px;
    border-right: 0;
  }

  .weekly-day-heading span {
    margin-top: 0;
  }

  .weekly-aspect-button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-left: 0;
  }

  .weekly-phase {
    grid-column: 1;
    grid-row: 2;
  }

  .weekly-orb {
    grid-column: 2;
    grid-row: 2;
  }

  .weekly-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .weekly-detail {
    margin-left: 0;
    padding-right: 0;
    padding-left: 18px;
  }

  .weekly-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .weekly-day-empty {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weekly-toggle,
  .weekly-aspect-name {
    transition: none;
  }
}
