/* Shared styles for /moon-sign-calculator and /sun-moon-rising-calculator.
   The first block is the calculator page layout used inline on the pet calculators. */
/* Calculator-specific add-ons */
.calc-hero { text-align: center; margin-bottom: 12px; }
.calc-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05; letter-spacing: -.02em;
}
.calc-hero h1 em { font-style: italic; color: var(--accent); }
.calc-hero .subtitle {
  margin-top: 16px; color: var(--muted);
  font-size: 16px; line-height: 1.5;
}

.result, .no-date-result {
  display: none;
  margin-top: 32px;
  padding: clamp(24px, 5vw, 36px);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--el-soft, rgba(183,157,255,.12)), var(--deep));
  border: 1px solid rgba(201,168,76,.32);
  text-align: center;
}
.result.visible, .no-date-result.visible { display: block; }
.result-sign-symbol {
  font-family: var(--serif); font-size: 56px;
  color: var(--accent);
  line-height: 1;
}
.result-sign-name {
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  margin-top: 8px;
  letter-spacing: -.01em;
  color: var(--accent2-bright);
}
.result-dates {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
  margin-top: 6px;
}
.result .divider, .no-date-result .divider {
  height: 1px; background: var(--line);
  margin: 24px auto;
  max-width: 160px; border: 0;
}
.result-personality {
  font-size: 16px; line-height: 1.65;
  color: rgba(255,255,255,.82);
}
.result-traits {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.result-traits span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--el-soft, rgba(183,157,255,.2));
  font-size: 12px; color: var(--el-strong, var(--accent));
  font-family: var(--mono); letter-spacing: .08em;
}
.result-cta-text {
  margin-top: 28px;
  font-size: 14px; color: var(--muted);
  line-height: 1.55;
}
.result-cta-link {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 26px;
  background: var(--ink); color: #0a0812;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .18s, box-shadow .18s;
}
@media (hover: hover) and (pointer: fine) {
  .result-cta-link:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(255,255,255,.35); }
}
.result-cta-link:active { transform: scale(0.97); }

.no-date-result h2 {
  margin-top: 12px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 3vw, 30px);
}
.no-date-result p {
  margin-top: 14px;
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,.82);
}

.chart-progress {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.chart-progress span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono); letter-spacing: .08em;
}
.chart-progress .done {
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.5);
  color: var(--accent2-bright);
}
.chart-progress .locked {
  border: 1px dashed rgba(255,255,255,.25);
  color: var(--muted);
}

.app-bridge {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center;
  gap: 30px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--velvet), #0f0a24);
  border: 1px solid rgba(183,157,255,.28);
  text-align: center;
}
/* Device showcase (.ds-show, styles.css "Editorial components"): give it air in the column layout */
.app-bridge .ds-show { margin-block: 4px; }
/* on a phone the back device would touch the panel edge; nudge the pair left (translate composes with the scale) */
@media (max-width: 420px) { .app-bridge .ds-float:not(.ds-pill) { left: 10px !important; } }
.app-bridge h2 {
  margin-top: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.1;
  letter-spacing: -.01em;
}
.app-bridge h2 em { font-style: italic; color: var(--accent); }
.app-bridge ul {
  margin: 22px auto 0; max-width: 470px;
  display: grid; gap: 12px; list-style: none; padding: 0;
  text-align: left;
}
.app-bridge li {
  font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.5;
  padding-left: 22px; position: relative;
}
.app-bridge li::before {
  content: '✦'; position: absolute; left: 0; top: 3px;
  color: var(--accent2); font-size: 12px;
}
.aetris-link {
  color: var(--accent2-bright); font-weight: 600;
  border-bottom: 1px dotted rgba(201,168,76,.55);
}
.aetris-link:hover { color: #f2d98c; }
.aetris-mark { color: var(--accent2-bright); font-weight: 600; }
.app-bridge .result-cta-link {
  display: block; width: fit-content;
  margin: 30px auto 0;
}
.app-bridge .cta-note {
  margin-top: 10px;
  text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
}
@media (min-width: 1024px) {
  .app-bridge {
    margin-inline: calc((100% - min(920px, 100vw - 64px)) / 2);
    flex-direction: row; flex-wrap: wrap;
    column-gap: 56px;   /* the tilted back phone reaches ~25px past its box */
    text-align: left;
  }
  .app-bridge > .kicker { width: 100%; }
  .app-bridge-copy { flex: 1; min-width: 0; }
  .app-bridge ul { margin: 22px 0 0; }
}

.seo-content {
  margin-top: 72px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.seo-content > h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -.015em;
  margin: 16px 0 14px;
}
.seo-lead {
  font-size: 16px; line-height: 1.7;
  color: var(--muted);
}
.seo-lead + p { margin-top: 14px; }
.seo-content > p {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,.74);
}

.seo-list { list-style: none; margin: 14px 0; display: grid; gap: 9px; }
.seo-list li {
  position: relative; padding-left: 18px;
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,.76);
}
.seo-list li::before {
  content: '\2726';
  position: absolute; left: 0; top: 1px;
  color: var(--accent2); opacity: .85; font-size: 11px;
}
.seo-list strong { color: var(--ink); font-weight: 500; }

.seo-links { margin-top: 32px; }
.seo-links-label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.seo-links ul { list-style: none; }
.seo-links li { border-bottom: 1px solid var(--line); }
.seo-links li:first-child { border-top: 1px solid var(--line); }
.seo-links a {
  display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap;
  padding: 13px 4px;
  font-size: 15px; color: var(--accent2-bright);
  transition: color .2s, padding-left .2s;
}
.seo-links a em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.seo-links a::after {
  content: '\2192'; margin-left: auto;
  color: var(--accent2); opacity: .55;
}
@media (hover: hover) and (pointer: fine) {
  .seo-links a:hover { color: #fff; padding-left: 10px; }
}

.seo-content p a, .faq-body-d a {
  color: var(--accent2-bright);
  border-bottom: 1px solid rgba(201,168,76,.35);
}

.faq-block {
  margin-top: 72px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.faq-block-head { text-align: center; margin-bottom: 22px; }
.faq-block-head h2 {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -.015em;
}
.faq-block .faq-body-d { color: rgba(255,255,255,.74); }

/* ── Added for the two human calculators (2026-11-13) ── */
.sc-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.sc-row .calc-field { min-width: 0; }
@media (max-width: 520px) { .sc-row { grid-template-columns: 1fr; gap: 0; } }
.calc-field input[type="time"] { color-scheme: dark; }
.sc-hint { margin-top: -14px; margin-bottom: 20px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sc-optional { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.sc-combo { position: relative; }
.sc-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  list-style: none; margin: 0; padding: 6px;
  max-height: 290px; overflow-y: auto;
  background: #120e22; border: 1px solid rgba(201,168,76,.35); border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.8);
}
.sc-list li { padding: 10px 12px; border-radius: 9px; font-size: 14.5px; line-height: 1.35; color: rgba(255,255,255,.86); cursor: pointer; }
.sc-list li[aria-selected="true"] { background: rgba(201,168,76,.16); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sc-list li:hover { background: rgba(255,255,255,.06); } }

.b3-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b3-cell {
  padding: 16px 10px 14px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(201,168,76,.28);
}
.b3-cell.is-open { border-style: dashed; border-color: rgba(255,255,255,.22); }
.b3-label { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.b3-glyph { margin-top: 8px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); }
.b3-sign { margin-top: 6px; font-family: var(--serif); font-size: 19px; color: var(--accent2-bright); }
.b3-kind { margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.b3-line { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.8); }
.b3-line:empty { display: none; }
@media (max-width: 560px) {
  .b3-grid { grid-template-columns: 1fr; }
  .b3-cell { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; text-align: left; padding: 14px; }
  .b3-cell > * { grid-column: 2; }
  .b3-glyph { grid-column: 1; grid-row: 1 / span 4; align-self: center; margin-top: 0; text-align: center; }
  .b3-cell .b3-label { margin-top: 0; }
}
.r-notes { margin: 20px auto 0; max-width: 520px; list-style: none; padding: 0; display: grid; gap: 9px; text-align: left; }
.r-notes li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.8); }
.r-notes li::before { content: "✦"; position: absolute; left: 0; top: 2px; color: var(--accent2); font-size: 11px; }
.chart-progress a.locked { text-decoration: none; }
.sc-credit { margin-top: 40px; text-align: center; font-size: 12px; color: var(--muted); }
.sc-credit a { color: var(--muted); border-bottom: 1px solid var(--line); }

.mm-list { margin-top: 56px; }
.mm-list > h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.015em; margin-bottom: 8px; }
.mm { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mm h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--accent2-bright); }
.mm p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.76); }
.seo-content .chapter p a { color: var(--accent2-bright); border-bottom: 1px solid rgba(201,168,76,.35); }

/* The Rising pill is a link to the other calculator: same look as the pills beside it (calc-moment.css styles span/button only). */
.chart-progress a.locked {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--muted); border: 1px dashed rgba(255,255,255,.25);
}
@media (hover: hover) and (pointer: fine) { .chart-progress a.locked:hover { color: var(--ink); border-color: rgba(229,200,118,.6); } }
.chart-progress a.locked:focus-visible { outline: 2px solid var(--accent2-bright); outline-offset: 2px; }
/* Here the meaning is the answer itself, so it stays upright and whole on a phone. */
.result .result-personality { font-style: normal; }
@media (max-width: 620px) {
  .result .chart-progress a.locked { padding: 6px 10px; font-size: 10.5px; letter-spacing: .02em; }
  .result .result-personality {
    max-width: none; text-align: left; text-wrap: pretty;
    font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.6;
    color: rgba(255,255,255,.84);
  }
}

/* Result heading is an h2 that takes focus after a result (so screen readers read it); keep the old look. */
.result h2.result-sign-name { margin-bottom: 0; }
.result h2.result-sign-name:focus { outline: none; }
/* Placeholder at 4.28:1 on the field was under AA; the muted token gives about 7.6:1. */
.calc-field input::placeholder { color: var(--muted); opacity: 1; }
