/* The free member area and the free homepage, 9 October 2026. Card styling is
   taken from the six-result front section (../portrait/results-shape-shell.html);
   the member layout follows the 7 October canvas. Uses styles.css variables. */

[data-state][hidden], [data-view][hidden] { display: none; }
.me-h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.15; margin-bottom: 0.8rem; }
.me-birth { font-family: var(--serif); font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 2rem; }
.me-state { min-height: 50vh; display: flex; align-items: center; }
.me-state .narrow { width: 100%; }
.me-lead { font-size: 0.95rem; color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.2rem; }
.lede-left { font-size: 1.08rem; color: var(--ink-soft); max-width: 38rem; margin-bottom: 2rem; }

/* ---- the member layout: a menu beside the page ---- */
.member-shell { display: grid; grid-template-columns: 13.5rem 1fr; gap: 3rem; max-width: 1120px; margin: 0 auto; padding: 2.5rem 6vw 4rem; }
.member-nav { position: sticky; top: 1.2rem; align-self: start; display: flex; flex-direction: column; gap: 0.15rem; }
.member-nav a { text-decoration: none; padding: 0.42rem 0.7rem; border-radius: 8px; font-size: 0.93rem; color: var(--ink); }
.member-nav a:hover { background: rgba(35,44,71,.06); }
.member-nav a.active { background: var(--ink); color: var(--text-on-ink); }
.member-nav .nav-label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 0.3rem 0.7rem; }
.member-nav .nav-locked { color: var(--muted); }
.member-nav .nav-locked::after { content: " \1F512\FE0E"; font-size: 0.75em; opacity: 0.7; }
.member-nav .nav-locked.active { color: var(--text-on-ink); }
.member-main { min-width: 0; max-width: 46rem; }
.member-main .eyebrow { text-align: left; }

/* ---- the passage that reads them together ---- */
.together { background: var(--ink); color: var(--text-on-ink); border-radius: 16px; padding: 2rem 2.2rem 1.6rem; margin-bottom: 2.4rem; }
.together .eyebrow { color: var(--amber); }
.together h2 { color: var(--amber); font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 0.4rem 0 1.2rem; }
.together p { color: var(--text-on-ink); font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.1rem; }
.together .me-made { font-family: var(--sans); font-size: 0.8rem; color: rgba(242,233,212,.62); margin: 1.2rem 0 0; line-height: 1.5; }

/* ---- the two drawings ---- */
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 3rem; }
.chart-tile { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.2rem; border: 1px solid rgba(35,44,71,.18);
              border-radius: 14px; text-decoration: none; background: rgba(255,255,255,.28); }
.chart-tile:hover { border-color: var(--ink); }
.chart-tile > span { font-size: 0.9rem; font-weight: 500; }
.chart-svg { width: 100%; max-width: 240px; height: auto; }
.chart-tile .chart-svg[data-draw="bodygraph"] { aspect-ratio: 200 / 260; max-width: 185px; }
.chart-figure { margin: 2rem 0 0.6rem; text-align: center; }
.chart-svg-big { max-width: 380px; }
.chart-figure figcaption { max-width: 34rem; margin: 0.8rem auto 0; font-size: 0.85rem; line-height: 1.55; }

/* ---- the list of traditions on the front page ---- */
.section-h { font-size: 1.35rem; margin: 2.6rem 0 0.4rem; }
.trad-list { display: flex; flex-direction: column; gap: 0.6rem; }
.trad-row { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: center; padding: 0.8rem 1rem;
            border-left: 4px solid var(--result-colour, var(--ink)); background: rgba(255,255,255,.3); border-radius: 0 10px 10px 0; text-decoration: none; }
.trad-row:hover { background: rgba(255,255,255,.55); }
.trad-row img { width: 3.5rem; height: 3.5rem; object-fit: contain; }
.trad-headline { font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; }
.trad-go { font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; }
.trad-row-locked { border-left: 4px dashed #b9ad8f; }
.trad-row-locked img { opacity: 0.45; }
.trad-row-locked .trad-headline, .trad-row-locked .trad-go { color: var(--muted); }

/* ---- the life areas, locked ---- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.area-card { position: relative; padding: 1.1rem 1.2rem 1.2rem; border: 1px dashed #b9ad8f; border-radius: 12px; text-decoration: none; background: rgba(255,255,255,.22); }
.area-card:hover { border-style: solid; }
.area-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.area-card p { font-size: 0.9rem; color: var(--ink-soft); }
.area-card .lock { position: absolute; top: 1.1rem; right: 1.1rem; }

/* ---- cards ---- */
.result-kicker { font-size: 0.68rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--result-deep, var(--ink)); font-weight: 600; margin-bottom: 0.25rem; }
.result { display: grid; grid-template-columns: 8.4rem 1fr; gap: 1.3rem; align-items: start; padding: 1.2rem 0; border-top: 3px solid var(--result-colour); }
.result-mark { width: 7.6rem; height: 7.6rem; }
.result-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.result h3, .result .result-h { font-size: 1.32rem; line-height: 1.25; margin-bottom: 0.45rem; }
.result-big .result-h { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.result .answer { font-size: 0.88rem; line-height: 1.5; color: var(--result-deep); font-weight: 600; margin-bottom: 0.7rem; }
.result .plain { font-size: 1rem; line-height: 1.68; color: var(--ink-soft); }
.result .plain + .plain { margin-top: 0.7rem; }
.result-numbers { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--ink); letter-spacing: 0.05em; display: block; margin-bottom: 0.4rem; }
.back { display: inline-block; font-size: 0.88rem; margin-bottom: 1.2rem; color: var(--ink-soft); }

/* ---- the details under a tradition ---- */
.detail-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 1.4rem; }
.detail-table th { text-align: left; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 0.6rem 0.4rem 0; }
.detail-table td { padding: 0.55rem 0.6rem 0.55rem 0; border-top: 1px solid rgba(35,44,71,.12); vertical-align: top; color: var(--ink-soft); }
.detail-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.nudge { margin-top: 2rem; padding: 1.1rem 1.3rem; border-left: 4px solid var(--sys-depth); background: rgba(237,165,60,.1); border-radius: 0 10px 10px 0; }
.nudge p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.nudge-link { font-size: 0.88rem; }

/* ---- the offer and the small print ---- */
.offer { margin-top: 3.6rem; padding: 2.4rem 2.2rem; border-radius: 16px; background: var(--paper-deep); }
.offer h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 0.9rem; }
.offer > p { color: var(--ink-soft); margin-bottom: 0.6rem; }
.offer .btn { margin: 0.6rem 0 0.9rem; }
.offer .hero-process-note { font-size: 0.85rem; color: var(--muted); }
.locked-list { list-style: none; margin: 1.6rem 0 1.4rem; display: grid; gap: 0.8rem; }
.locked-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.8rem; align-items: start; }
.locked-list h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.locked-list p { font-size: 0.9rem; color: var(--ink-soft); }
.lock { display: inline-block; width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; background: var(--sys-depth);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.me-keep { margin-top: 2.4rem; }
.me-keep p { font-size: 0.82rem; line-height: 1.6; }
.me-keep p + p { margin-top: 0.7rem; }

/* ---- the free homepage ---- */
.free-hero { padding-bottom: 6vh; }
.free-gets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; margin-top: 2.4rem; }
.free-gets article { border-top: 4px solid var(--sys-hd); padding-top: 1rem; }
.free-gets article:nth-child(2) { border-top-color: var(--sys-gk); }
.free-gets article:nth-child(3) { border-top-color: var(--sys-depth); }
.free-gets h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.free-gets p { font-size: 0.95rem; color: var(--ink-soft); }
.free-sceptic { margin-top: 3rem; font-family: var(--serif); font-size: 1.15rem; }

/* ---- phones: the menu becomes a row you can swipe ---- */
@media (max-width: 820px) {
  .member-shell { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 0.6rem; }
  .member-nav { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; gap: 0.3rem; padding: 0.6rem 0;
                background: var(--paper); border-bottom: 1px solid rgba(35,44,71,.12); scrollbar-width: none; }
  .member-nav::-webkit-scrollbar { display: none; }
  .member-nav a { white-space: nowrap; flex: 0 0 auto; border: 1px solid rgba(35,44,71,.15); }
  .member-nav .nav-label { display: none; }
}
@media (max-width: 560px) {
  .together { padding: 1.5rem 1.3rem 1.2rem; }
  .chart-pair, .area-grid { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; gap: 0.4rem; }
  .result-mark { width: 4.6rem; height: 4.6rem; }
  .trad-row { grid-template-columns: 2.8rem 1fr; }
  .trad-row img { width: 2.8rem; height: 2.8rem; }
  .trad-go { grid-column: 2; }
  .offer { padding: 1.6rem 1.3rem; }
}

.back-form { display: flex; gap: 0.6rem; max-width: 30rem; margin: 1.6rem auto 0; }
.back-form input { flex: 1; }
.back-form .btn { margin: 0; padding: 0.8rem 1.4rem; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .back-form { flex-direction: column; } }
