/* Shared progressive enhancement for the illustrated prototype. */
@view-transition { navigation: auto; }
:root { --ink: #211f1c; --blue: #175675; --gold: #dc9b28; --red: #b4422c; }
.deck-home, .deck-digest { color: var(--ink); background: #fcfaf6; }
.deck-home *, .deck-digest * { letter-spacing: 0; }
.deck-home .wrap { max-width: 1160px; padding-top: 22px; }
.deck-home .lang-toggle, .deck-digest .lang-toggle { text-align: right; margin-bottom: 18px; }
.lang-toggle a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); text-underline-offset: 5px; }
.deck-header { position: relative; margin-bottom: 42px; animation: none; }
.edition-label { margin: 0 0 18px; font-family: 'Antic', -apple-system, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--blue); -webkit-text-stroke: .15px currentColor; }
.deck-home h1 { max-width: 980px; margin: 0 auto 10px; font-size: 99px; line-height: 1.04; text-wrap: balance; color: var(--ink); -webkit-text-stroke: .3px currentColor; }
.deck-home .week-date { font-size: 21px; color: var(--blue); font-weight: 700; }
@media (min-width: 1200px) {
  .deck-home h1 { text-wrap: nowrap; }
}
.deck-home .subtitle { max-width: 520px; margin: 0 auto; font-size: 19px; line-height: 1.5; color: #754425; }
.deck-home .how-it-works-link { min-height: 44px; margin-top: 0; }
.opening-deck { position: relative; width: 100%; height: 270px; margin: 20px auto 0; isolation: isolate; }
.opening-card { position: absolute; width: 154px; height: 231px; object-fit: cover; border: 5px solid var(--ink); border-radius: 3px; left: calc(50% - 77px); top: 10px; transform: translate(var(--x), var(--y)) rotate(var(--angle)); box-shadow: 0 8px 10px #211f1c17; animation: deal-in .75s cubic-bezier(.2,.7,.2,1) both; }
.opening-pisces { --x: -123px; --y: 15px; --angle: -15deg; animation-delay: 70ms; }
.opening-leo { --x: 123px; --y: 15px; --angle: 15deg; animation-delay: 140ms; }
.opening-gemini { --x: 0px; --y: 0px; --angle: -3deg; }
.deck-home .grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 38px 24px; border-top: 1px solid #c9bda9; padding-top: 32px; }
.deck-home .sign-card { min-width: 0; border: 0; border-radius: 0; padding: 0; background: transparent; opacity: 1; animation: none; box-shadow: none; transition: transform 180ms ease; }
.card-art { aspect-ratio: 2/3; overflow: hidden; border: 5px solid var(--ink); border-radius: 3px; background: #efe8d9; position: relative; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.card-copy { padding: 14px 2px 0; }
.deck-home .sign-card-name { font-size: 30px; margin-bottom: 5px; }
.deck-home .sign-card-teaser { display: block; overflow: visible; font-size: 15px; line-height: 1.55; }
.simple-art { display: grid; place-items: center; background: #f0e6d3; color: var(--blue); border-color: #b9a588; }
.simple-art::before { content: ''; position: absolute; inset: 13px; border: 1px solid currentColor; border-radius: 46% 46% 0 0; opacity: .5; }
.simple-art::after { content: ''; position: absolute; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); bottom: 14%; }
.simple-art span { font-family: 'Segoe UI Symbol','Apple Symbols',serif; font-variant-emoji: text; font-size: 72px; line-height: 1; }
.simple-art i { position: absolute; width: 65%; height: 1px; background: currentColor; top: 28%; opacity: .25; transform: rotate(-22deg); }
.simple-1 { background: #e4ebea; color: #175675; }
.simple-2 { background: #f2ddb1; color: #563c24; }
.deck-home .modal-box { border-radius: 6px; }
.modal-overlay.open .modal-box { animation: section-in 180ms ease both; }
.deck-home a:focus-visible, .deck-home button:focus-visible, .deck-digest a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.deck-digest .wrap { max-width: 1000px; padding-top: 22px; }
.deck-digest .all-signs-button-wrap { text-align: left; margin-top: -62px; width: fit-content; }
.deck-digest .all-signs-button { border-radius: 3px; background: transparent; color: var(--ink); border: 1px solid #b9a588; box-shadow: none; }
.deck-digest header { padding-top: 10px; margin-bottom: 32px; animation: none; }
.digest-art { width: 154px; height: 231px; margin: 12px auto 30px; transform: rotate(-5deg); border: 5px solid var(--ink); box-shadow: 10px 9px 0 #dc9b28; animation: digest-open .65s ease both; }
.digest-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.deck-digest .sign-name { font-size: 104px; line-height: 1.04; animation: section-in .5s ease both; }
.deck-digest .week-line { font-size: 22px; }
.deck-digest .subheadline { font-size: 18px; }
.deck-digest .header-sparkle { display: none; }
.deck-digest .tone-section, .deck-digest .card, .deck-digest .readers-section { opacity: 1; animation: none; }
.deck-digest .tone-section { max-width: 760px; margin: 0 auto 42px; padding: 32px 0; border-top: 1px solid #b9a588; border-bottom: 1px solid #b9a588; }
.deck-digest .tone-section h2 { color: var(--blue); }
.deck-digest .tone-section p { font-size: 25px; line-height: 1.5; }
.deck-digest .cards { max-width: 700px; margin: auto; }
.deck-digest .card-title { font-size: 32px; }
.deck-digest .card-icon { color: var(--blue); }
.deck-digest .card-headline { font-size: 19px; line-height: 1.75; }
.deck-digest .callout-disagreement { border-radius: 0; background: #f4ede3; }
.deck-digest .callout-disagreement .callout-label { color: #904221; }
.deck-digest .readers-section { margin-top: 64px; }
.deck-digest .sign-pill { min-height: 44px; display: inline-flex; align-items: center; }
.reveal-enter { animation: section-in 450ms ease both !important; }
.deck-home .sign-card.reveal-enter { animation-name: card-in !important; }
.deck-home .sign-card:active { transform: translateY(1px) scale(.99); }
@media (hover:hover) and (pointer:fine) {
  .deck-home a.sign-card:hover { transform: translateY(-4px); box-shadow: none; }
  .deck-home a.sign-card:hover img { transform: scale(1.018); }
}
@keyframes deal-in { from { opacity: 0; transform: translate(0,25px) rotate(0); } to { opacity: 1; transform: translate(var(--x),var(--y)) rotate(var(--angle)); } }
@keyframes digest-open { from { opacity: 0; transform: translateY(14px) rotate(-10deg) scale(.96); } to { opacity: 1; transform: rotate(-5deg); } }
@keyframes section-in { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: .25; transform: translateY(10px) rotate(-1deg); } to { opacity: 1; transform: none; } }
::view-transition-group(*) { animation-duration: 300ms; }
@media (max-width: 760px) {
  .deck-home .grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 18px; }
  .deck-home h1 { font-size: 72px; }
}
@media (max-width: 540px) {
  .deck-home .wrap, .deck-digest .wrap { padding: 12px 18px 48px; }
  .deck-home .lang-toggle { margin-bottom: 0; }
  .edition-label { display: block; font-size: 16px; margin-bottom: 4px; }
  .deck-home h1 { font-size: 49px; line-height: .96; max-width: 360px; margin-bottom: 4px; }
  .deck-home .subtitle { font-size: 17px; max-width: 340px; line-height: 1.4; }
  .deck-home .week-date { font-size: 20px; margin-bottom: 3px; }
  .deck-header { margin-bottom: 10px; }
  .opening-deck { height: 154px; margin-top: -6px; }
  .opening-card { width: 90px; height: 135px; left: calc(50% - 45px); border-width: 3px; }
  .opening-pisces { --x: -70px; --y: 7px; }
  .opening-leo { --x: 70px; --y: 7px; }
  .deck-home .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; padding-top: 16px; }
  .card-art { border-width: 3px; width: min(100%,144px); margin-inline: auto; }
  .deck-home .sign-card-name { font-size: 25px; overflow-wrap: anywhere; }
  .deck-home .sign-card-teaser { font-size: 15px; color: #514b44; }
  .deck-home .how-it-works-link { font-size: 14px; color: #514b44; }
  .simple-art span { font-size: 54px; }
  .deck-digest .all-signs-button { padding: 9px 12px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
  .deck-digest .lang-toggle a { font-size: 14px; }
  .deck-digest .watch-link, .deck-digest .all-signs-link a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .deck-digest .agreement-pill, .deck-digest .tone-tag { font-size: 14px; }
  .deck-digest .callout-label { font-size: 14px; }
  .deck-digest td[data-label]::before { font-size: 12px; color: #514b44; }
  .deck-digest .digest-art { width: 108px; height: 162px; margin-bottom: 25px; }
  .deck-digest .sign-name { font-size: 66px; }
  .deck-digest.long-sign .sign-name { font-size: 44px; }
  .deck-digest .week-line { font-size: 19px; }
  .deck-digest .subheadline { font-size: 16px; }
  .deck-digest .tone-section p { font-size: 21px; }
  .deck-digest .card-headline { font-size: 18px; }
}
/* Editorial reading treatments retain the existing content order. */
.deck-digest .tone-section h2 { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 14px; }
.deck-digest .tone-section h2::before, .deck-digest .tone-section h2::after { content: ''; width: 28px; height: 1px; background: #b78a50; }
.deck-digest .card-icon { display: inline-flex; vertical-align: middle; margin: 0 10px 0 0; }
.deck-digest .card-icon svg { width: 26px; height: 26px; stroke-width: 2; }
.deck-digest .card-title { display: inline-block; vertical-align: middle; margin: 0 0 0; }
.deck-digest .card-headline { margin-top: 20px; }
.deck-digest .card-divider-sparkle { display: none; }
.deck-digest .agreement-pill { display: flex; align-items: center; gap: 12px; padding: 0; background: none; border-radius: 0; color: var(--blue); font-size: 14px; line-height: 1.5; }
.reader-tally { display: inline-flex; flex: 0 0 auto; gap: 4px; }
.tally-mark { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.tally-mark.is-filled { background: currentColor; }
.deck-digest .callout-disagreement { background: none; border-left: 2px solid var(--red); padding: 2px 0 2px 18px; margin-top: 24px; }
.deck-digest .callout-disagreement .callout-label { color: #a13b28; font-size: 14px; }
.deck-digest .callout-disagreement p { color: #514b44; line-height: 1.65; margin-top: 7px; }
.deck-digest .readers-section h2 { font-family: 'Macondo Swash Caps',cursive; font-size: 30px; }
.deck-digest .readers-section tbody tr { opacity: 1; animation: none; }
.deck-digest .readers-section th { color: var(--blue); border-color: #b78a50; }
.deck-digest .readers-section td { font-size: 16px; line-height: 1.6; }
.deck-digest .tone-tag { padding: 0; border-radius: 0; background: transparent; color: #514b44; font-size: 14px; white-space: normal; }
.deck-digest .watch-link { color: var(--blue); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.deck-digest .sign-selector { border-top: 1px solid #b9a588; padding-top: 20px; gap: 4px 14px; }
.deck-digest .sign-pill { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #514b44; padding: 8px 4px; }
.deck-digest .sign-pill-current { color: var(--ink); border-bottom-color: #a56c32; font-weight: 700; }
.deck-digest .sign-pill:hover { color: var(--blue); border-bottom-color: var(--blue); }
@media (max-width: 540px) {
  .deck-digest .readers-section tbody tr { padding: 16px 0; }
  .deck-digest .callout-disagreement { padding-left: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .deck-digest .card-icon.detail-enter { animation: ink-settle 320ms ease-out both; }
  .deck-digest .reader-tally.detail-enter .tally-mark { animation: echo-settle 240ms ease-out both; }
  .deck-digest .reader-tally.detail-enter .tally-mark:nth-child(2) { animation-delay: 35ms; }
  .deck-digest .reader-tally.detail-enter .tally-mark:nth-child(3) { animation-delay: 70ms; }
  .deck-digest .reader-tally.detail-enter .tally-mark:nth-child(4) { animation-delay: 105ms; }
  .deck-digest .reader-tally.detail-enter .tally-mark:nth-child(5) { animation-delay: 140ms; }
  .deck-digest .callout-disagreement.detail-enter { animation: ink-settle 380ms ease-out both; }
  .deck-digest .readers-section h2.detail-enter { animation: ink-settle 340ms ease-out both; }
  .deck-digest .readers-section table.detail-enter { animation: ledger-settle 400ms ease-out both; }
}
@keyframes ink-settle { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes echo-settle { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@keyframes ledger-settle { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
