/* Strengths and passions (PWA_V2). Colours come from the theme (config.yaml) and from the strength families (strengths.yaml);
   nothing here picks a colour for a strength. Marks are thin, touching fills are separated, text never wears a family colour. */

.s-sec .section-head { margin-bottom: 0.8rem; }
.s-sec .section-head h3 { font-size: var(--step-1); }
.s-sec h4 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
.small { font-size: 0.85rem; }

/* ------------------------------------------------------------------ top of the page */
.s-who { display: flex; align-items: flex-start; gap: 0.8rem; }
.s-who p { margin: 0; max-width: 78ch; }
.s-nudge { display: grid; gap: 0.8rem 1.5rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.1rem 1.3rem;
  background: var(--sun-soft); border: 2px solid var(--sun); border-radius: var(--radius); }
.s-nudge h3 { font-size: var(--step-1); }
.s-nudge .prompt { margin: 0.35rem 0 0.2rem; font-weight: 700; }
.s-nudge .s-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; max-width: 30rem; }
.s-chip { display: inline-flex; align-items: center; gap: 0.45rem; border: 2px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-weight: 700; font-size: 0.9rem; }
.s-chip:hover { border-color: var(--primary); background: var(--primary-soft); }
.s-chip .ic, .s-tile .ic, .s-signals .ic { display: inline-grid; place-items: center; }
.s-chip .icon, .s-signals .icon { width: 1.1em; height: 1.1em; }

.s-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s-stats .stat { flex: 1 1 7rem; background: var(--surface); border: 1px solid var(--line); }

/* ------------------------------------------------------------------ the three markers used everywhere */
.s-disc { flex: none; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.3rem; line-height: 1;
  background: color-mix(in srgb, var(--fam) 16%, var(--surface)); border: 2px solid var(--fam); }
.s-disc.big { width: 3.4rem; height: 3.4rem; font-size: 1.7rem; }
.s-disc .icon { width: 1.3rem; height: 1.3rem; }
.s-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 0.4rem; }
.s-dots i { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid var(--fam); background: transparent; }
.s-dots i.on { background: var(--fam); }
.s-dots.quiet i { border-style: dashed; }
.s-tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  background: var(--surface-soft); border: 1px solid var(--line-strong); color: var(--ink); }
.s-tag.both, .s-tag.ok { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.s-tag.open { background: var(--sun-soft); border-color: var(--sun); color: var(--sun-ink); }

/* ------------------------------------------------------------------ standing out right now */
.s-hl-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.s-hl { display: grid; gap: 0.35rem 0.8rem; grid-template-columns: auto 1fr; align-items: center; text-align: left; padding: 0.9rem 1rem; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--fam); border-radius: var(--radius-small); }
.s-hl:hover { border-color: var(--fam); box-shadow: 0 6px 18px rgba(27, 42, 28, 0.1); }
.s-hl .s-disc { grid-row: span 2; }
.s-hl strong { font-size: var(--step-1); font-family: var(--font-heading); }
.s-hl .lv { font-size: 0.85rem; color: var(--ink-soft); }
.s-hl .seen { grid-column: 1 / -1; font-size: 0.85rem; color: var(--ink-soft); }
.s-hl .s-tag { grid-column: 1 / -1; justify-self: start; }

/* the flower and the highlights sit side by side on a wide screen */
.s-hero { display: grid; gap: 1.1rem; align-items: start; }
.s-hero > .s-bloom { margin: 0; }
@media (min-width: 62rem) {
  .s-hero { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 1fr); }
  .s-hero .s-hl-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ the figures */
.s-fig .viz-body svg { display: block; margin: 0 auto; max-width: 100%; height: auto; overflow: visible; }
.s-fig svg text { font-family: var(--font-body); }
.s-fig svg .tick { font-size: 11px; font-weight: 600; fill: var(--viz-label); }
.s-fig svg .axis-title { font-size: 12px; font-weight: 700; fill: var(--ink-soft); }
.s-keys { display: grid; gap: 0.2rem; margin-bottom: 0.4rem; }
.s-keys .legend { margin-bottom: 0.3rem; }
.s-petal-key svg { display: block; }

/* the flower */
.bloom .ring-guide { stroke: var(--viz-grid); stroke-width: 1; }
.bloom .petal { fill: var(--fam); stroke: var(--fam); stroke-width: 1.5; stroke-linejoin: round; cursor: pointer; transition: stroke-width 0.15s; }
.bloom .petal:hover { stroke-width: 3; }
.petal.steady { fill-opacity: 1; }
.petal.growing { fill-opacity: 0.55; }
.petal.hint { fill-opacity: 0.22; }
.petal.watch { fill: none; stroke-dasharray: 3 3; }
.petal.empty { fill: none; stroke: var(--line-strong); stroke-dasharray: 2 3; }
.petal.bud { fill: var(--surface); stroke: var(--fam); stroke-width: 1.5; stroke-dasharray: 2 2; opacity: 0.8; }
.petal.quiet { stroke-dasharray: 6 3; }
.s-petal-key .petal { stroke: var(--ink-soft); fill: var(--ink-soft); stroke-width: 1.5; }
.s-petal-key .petal.watch { fill: none; }
.bloom-label { font-size: 11.5px; font-weight: 700; fill: var(--ink); }
.bloom.compact .bloom-label { font-size: 11px; }
.bloom-label.steady { font-weight: 800; }
.bloom-label.watch, .bloom-label.empty { fill: var(--ink-faint); font-weight: 600; }
.bloom-core { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.bloom-num { font: 800 21px/1 var(--font-heading); fill: var(--ink); }
.bloom-unit { font-size: 9.5px; fill: var(--ink-soft); }
.bloom.grow .petal { animation: petal-in 0.8s var(--ease) both; animation-delay: calc(var(--i) * 45ms); transform-origin: var(--cx) var(--cy); }
@keyframes petal-in { from { transform: scale(0.05); opacity: 0; } to { transform: none; opacity: 1; } }

/* the map */
.map .quad { fill: transparent; }
.map .quad.both { fill: var(--primary-soft); }
.map .quad.loves, .map .quad.able { fill: var(--surface-soft); }
.map .cut { stroke: var(--viz-axis); stroke-width: 1; stroke-dasharray: 4 4; }
.map .frame { stroke: var(--line-strong); stroke-width: 1; }
.map .quad-label { font-size: 11px; font-weight: 800; fill: var(--ink-faint); }
.map .quad-label.both { fill: var(--primary-deep); }
.map .dot { fill: var(--fam); stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: stroke-width 0.15s; }
.map .dot.growing { fill-opacity: 0.7; }
.map .dot.hint { fill: var(--surface); stroke: var(--fam); stroke-width: 3; }
.map .dot.quiet { stroke-dasharray: 4 3; }
.map .dot:hover { stroke-width: 4; }
.map .dot-label { font-size: 11.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.s-quad-key .key.quad { border: 1px solid var(--line-strong); background: var(--surface-soft); }
.s-quad-key .key.quad.both { background: var(--primary-soft); border-color: var(--primary); }
.s-quad-key li { align-items: baseline; }

/* the weeks */
.weeks .wk:not(.on) { fill: var(--viz-track); }
.weeks .wk.now { stroke: var(--ink-soft); stroke-width: 1.5; }
.weeks .row-label { font-size: 11.5px; font-weight: 700; fill: var(--ink); }
.weeks .row-label.dim { fill: var(--ink-faint); font-weight: 600; }
.weeks .week-row:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.weeks-scroll { overflow-x: auto; }

/* ------------------------------------------------------------------ one strength */
.s-cards { display: grid; gap: 0.6rem; }
.s-card { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--fam); border-radius: var(--radius-small); min-width: 0; }
.s-card.dim { border-left-style: dashed; }
.s-card.flash { animation: s-flash 1.4s var(--ease); }
@keyframes s-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--sun); } 100% { box-shadow: 0 0 0 0 transparent; } }
.sc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 0.2rem 0.9rem; align-items: center; width: 100%; padding: 0.7rem 0.9rem;
  border: 0; background: none; text-align: left; color: inherit; border-radius: var(--radius-small); }
.sc-head:hover { background: var(--surface-soft); }
.sc-head .nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sc-head .nm strong { font-size: 1.02rem; }
.sc-head .nm small { color: var(--ink-soft); font-size: 0.82rem; }
.sc-head .lv { display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.sc-head .tr { min-width: 4.75rem; display: inline-flex; justify-content: center; }
.sc-head .chev { display: inline-grid; transition: transform 0.2s var(--ease); }
.sc-head .chev .icon { width: 1rem; height: 1rem; }
.s-card.open .chev { transform: rotate(180deg); }
.sc-body { padding: 0.2rem 1.1rem 1.2rem 1.1rem; border-top: 1px solid var(--line); }
.sc-body .means { margin: 0.8rem 0 0.4rem; font-size: var(--step-1); max-width: 62ch; }
.s-dates { margin-top: 0.4rem; }
.s-list, .s-paths { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.s-list li, .s-paths li { margin-bottom: 0.25rem; }
.s-paths { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.s-paths li { margin: 0; padding: 0.15rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-soft); font-weight: 700; font-size: 0.88rem; }

.s-ladder { list-style: none; display: flex; margin: 0.9rem 0 0.3rem; padding: 0; }
.s-ladder .s-step { position: relative; flex: 1; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 0.15rem; text-align: center; font-size: 0.85rem; }
.s-ladder .s-step::before { content: ""; position: absolute; top: 0.8rem; left: -50%; right: 50%; height: 3px; background: var(--line-strong); border-radius: 2px; }
.s-ladder .s-step:first-child::before { display: none; }
.s-ladder .s-step.done::before, .s-ladder .s-step.current::before { background: var(--fam); }
.s-ladder .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 3px dashed var(--line-strong); background: var(--surface); font-weight: 800; font-size: 0.8rem; }
.s-ladder .done .dot, .s-ladder .current .dot { border: 3px solid var(--fam); background: var(--fam); color: var(--on); }
.s-ladder .current .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fam) 25%, transparent); }
.s-ladder .nm { font-weight: 800; }
.s-ladder small { color: var(--ink-soft); min-height: 1.1em; font-size: 0.78rem; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; padding: 0 0.15rem; }

.s-quadnote { margin: 0.9rem 0 0.2rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-small); background: var(--surface-soft); border-left: 5px solid var(--line-strong); }
.s-quadnote.both { background: var(--primary-soft); border-left-color: var(--primary); }
.s-quadnote p { margin: 0.15rem 0 0; }
.s-firm h4 { margin-top: 1rem; }
.s-firm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.s-firm li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4.2rem; gap: 0.1rem 0.8rem; align-items: center; font-size: 0.9rem; }
.s-firm .nm { font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.s-firm .tickmark { display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--line-strong); font-size: 0.65rem; flex: none; }
.s-firm .done .tickmark { background: var(--good); border-color: var(--good); color: #fff; }
.s-firm .of { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.82rem; }
.s-firm .say { grid-column: 2 / -1; color: var(--ink-soft); font-size: 0.85rem; margin-top: -0.2rem; }

.s-ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.s-idea { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-soft); }
.s-idea p { margin: 0.2rem 0; }
.s-feel { margin-top: 1rem; }
.s-feel h4 { margin-top: 0; }

/* ------------------------------------------------------------------ notes, suggestions, experiments */
.s-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.s-note-item { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 0.3rem 0.9rem; padding: 0.7rem 0; border-top: 1px solid var(--line); align-items: start; }
.s-note-item:first-child { border-top: 0; }
.s-note-item time { font-weight: 700; color: var(--ink-soft); font-size: 0.85rem; }
.s-note-item p { margin: 0.1rem 0; }
.s-note-item .quote { padding-left: 0.7rem; border-left: 3px solid var(--line-strong); font-style: italic; color: var(--ink-soft); }
.s-note-item .pts { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.s-note-item.unplaced { background: var(--sun-soft); padding-inline: 0.7rem; border-radius: var(--radius-small); border-top: 0; margin-bottom: 0.4rem; }
.s-note-item .row-actions { margin: 0; justify-content: flex-end; }
.s-sugs, .s-trials, .s-held { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.s-sug, .s-trial, .s-held li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: center; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-soft); }
.s-sug .row-actions, .s-trial .row-actions { margin: 0; }
.s-sug p { margin: 0.2rem 0; }
.s-trial { grid-template-columns: auto minmax(0, 1fr) auto; }
.s-trial.late { border-color: var(--warn); background: var(--sun-soft); }
.s-trials.past .s-trial { opacity: 0.85; }
.s-monthly .s-month { padding: 1rem 1.2rem; border-radius: var(--radius-small); background: var(--sun-soft); border-left: 5px solid var(--sun); }
.s-month-text { font-size: var(--step-1); line-height: 1.65; max-width: 62ch; margin-bottom: 0.6rem; }
.s-month-pick select { min-width: 10rem; }
.s-rules { color: var(--ink-soft); font-size: 0.9rem; }
.s-rules summary { cursor: pointer; font-weight: 700; }

/* ------------------------------------------------------------------ the dialogs */
.s-tiles { display: grid; gap: 0.45rem; grid-template-columns: repeat(auto-fill, minmax(8.3rem, 1fr)); }
.s-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; min-height: 4.6rem; padding: 0.5rem 0.4rem; text-align: center;
  border: 2px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); font-weight: 700; font-size: 0.82rem; line-height: 1.2; }
.s-tile .ic { font-size: 1.5rem; line-height: 1; }
.s-tile .icon { width: 1.5rem; height: 1.5rem; }
.s-tile:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.s-tile[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.s-tile[aria-checked="true"]::after { content: "✓"; font-weight: 800; color: var(--primary-deep); font-size: 0.8rem; }
.s-tile:disabled { opacity: 0.45; cursor: not-allowed; }
.s-child .s-tile { min-height: 6rem; font-size: 0.95rem; }
.s-child .s-tile .ic { font-size: 2.1rem; }
.s-signals { display: grid; gap: 0.6rem; }
.s-sig-group { border: 0; padding: 0; margin: 0; }
.s-sig-group legend { font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); padding: 0; margin-bottom: 0.3rem; }
.s-signals label.off { opacity: 0.45; }
.s-signals label .s-hint { color: inherit; opacity: 0.75; font-size: 0.78rem; }
.s-other { margin-top: 0.6rem; }
.s-other summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--primary-deep); }
.s-other input { margin-top: 0.4rem; width: 100%; }
.s-check { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.s-outcomes { display: grid; gap: 0.5rem; }
.s-outcome { display: grid; gap: 0.1rem; text-align: left; padding: 0.7rem 0.9rem; border: 2px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); }
.s-outcome small { color: var(--ink-soft); }
.s-outcome[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.s-count { font-weight: 800; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 40rem) {
  .s-nudge { grid-template-columns: 1fr; }
  .s-nudge .s-chips { justify-content: flex-start; }
  .sc-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sc-head .lv { grid-column: 2 / 3; grid-row: 2; }
  .sc-head .tr { display: none; }
  .sc-head .chev { grid-column: 3; grid-row: 1; }
  .s-firm li { grid-template-columns: minmax(0, 1fr) 4.2rem; }
  .s-firm li .nm { grid-column: 1 / -1; }
  .s-firm .say { grid-column: 1 / -1; }
  .s-note-item { grid-template-columns: minmax(0, 1fr); }
  .s-note-item .row-actions { justify-content: flex-start; }
  .s-sug, .s-trial { grid-template-columns: minmax(0, 1fr); }
  .s-trial { grid-template-columns: auto minmax(0, 1fr); }
  .s-trial .row-actions { grid-column: 1 / -1; }
  .s-tiles { grid-template-columns: repeat(auto-fill, minmax(5.9rem, 1fr)); gap: 0.35rem; }
  .s-tile { min-height: 4rem; font-size: 0.76rem; padding: 0.4rem 0.25rem; }
  .s-tile .ic { font-size: 1.35rem; }
  .s-child .s-tile { min-height: 5rem; font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bloom.grow .petal, .s-card.flash { animation: none; }
  .sc-head .chev { transition: none; }
}
@media (forced-colors: active) {
  .petal.hint, .petal.growing { fill-opacity: 0.4; }
  .map .dot { stroke: CanvasText; }
}
@media print {
  .s-nudge, .s-fig .viz-tools { display: none !important; }
  .bloom.grow .petal { animation: none; }
}
