/* The guide pages (src/seo/pages.tsx): a flow's or a pose's own page, read top to bottom.
   On top of the app's stylesheet, for its colours, type and the footer. --accent is the
   flow's colour on a flow's page; the app's default elsewhere. */

.guide { --accent-bg: color-mix(in srgb, var(--accent) 13%, var(--bg)); max-width: 760px; margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-7); }
.guide a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.guide a:hover { text-decoration-color: var(--muted); }
.guide h2 { margin: var(--space-7) 0 var(--space-3); }
.guide p { max-width: 62ch; }


.guide-kicker { margin: 0 0 var(--space-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.guide-title { display: flex; align-items: center; gap: var(--space-3); margin: 0; font-size: var(--text-2xl); line-height: 1.2; font-weight: 700; }
.guide-icon { flex: none; display: inline-flex; color: var(--tone, var(--accent)); }
.guide-title .guide-icon svg { width: 1em; height: 1em; }
.guide-also { margin: var(--space-1) 0 0; font-style: italic; color: var(--muted); }
.guide-meta { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--muted); }
.guide-lede { margin: var(--space-4) 0 0; font-size: var(--text-lg); line-height: 1.55; color: var(--soft); }
.guide-note { font-size: var(--text-sm); color: var(--muted); }

/* The way into the app: the play button's look, the flow's colour on its triangle. */
.guide .guide-play { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; margin-top: var(--space-5); padding: 0 var(--space-5) 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
.guide-play svg { color: var(--accent); }
.guide .guide-play:hover { color: var(--accent); background: var(--accent-bg); border-color: var(--accent); }

/* Every step in order: drawing, the move and the pose, breaths at the end. */
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.guide-steps li { counter-increment: step; display: grid; grid-template-columns: 2.2em 56px 1fr auto; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.guide-steps li::before { content: counter(step); font-size: var(--text-sm); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.guide-steps .pose-figure, .guide-moves .pose-figure { color: var(--accent); }
.guide-step-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); min-width: 0; }
.guide-step-move { flex-basis: 100%; font-size: var(--text-sm); color: var(--muted); }
/* In the sequence, larger: it's the heart of the page. */
.guide-steps .guide-step-move { font-size: var(--text-md); }
.guide-steps .guide-step-pose { font-size: var(--text-lg); }
.guide-steps .guide-side { font-size: var(--text-sm); }
.guide .guide-step-pose { font-weight: 600; text-decoration: none; }
.guide a.guide-step-pose:hover { text-decoration: underline; }
.guide-side { font-size: var(--text-xs); padding: 1px 6px; border-radius: 4px; color: var(--accent); background: var(--accent-bg); }
.guide-breaths { font-size: var(--text-md); color: var(--muted); white-space: nowrap; }


/* A few poses as drawings, on the flows' index. */
.guide-pose-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.guide .guide-pose-grid a { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-2); border-radius: var(--radius-lg); font-size: var(--text-sm); text-align: center; text-decoration: none; }
.guide .guide-pose-grid a:hover { background: var(--surface); }
.guide-pose-grid .pose-figure { color: var(--text); }

/* A pose's page: its drawing (both sides for a one-sided pose) beside its names. */
.guide-pose-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); }
.guide-pose-figures { display: flex; gap: var(--space-3); }
.guide-pose-figures .pose-figure { color: var(--accent); }
.guide-moves { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; }
.guide .guide-moves a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); margin-left: calc(-1 * var(--space-2)); border-radius: var(--radius-sm); text-decoration: none; }
.guide .guide-moves a:hover { background: var(--surface); }
.guide-moves a > span { display: flex; flex-direction: column; }

/* Flows as cards, like the app's: icon and title in the flow's colour (to its page),
   length, description, then Play (into the app) and the way to its steps. */
.guide-flow-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.guide-flow-list li { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.guide .guide-flow-name { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; text-decoration: none; }
.guide a.guide-flow-name:hover { text-decoration: underline; text-decoration-color: var(--muted); }
.guide-flow-name .guide-icon svg { width: 20px; height: 20px; }
.guide-flow-meta { font-size: var(--text-sm); color: var(--muted); }
.guide-flow-desc { flex: 1; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--soft); }
.guide-flow-actions { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-3); font-size: var(--text-sm); }
.guide .guide-flow-actions a { color: var(--muted); text-decoration: none; }
.guide .guide-flow-actions a:hover { color: var(--text); }
.guide .guide-flow-actions .guide-flow-play { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3) 0 var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.guide-flow-play svg { color: var(--tone); }
.guide .guide-flow-actions .guide-flow-play:hover { color: var(--tone); border-color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, var(--bg)); }

@media (max-width: 480px) {
  .guide-pose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-steps li { grid-template-columns: 1.6em 44px 1fr auto; gap: var(--space-3); }
  .guide-steps .pose-figure { width: 44px; height: 44px; }
  /* The breaths a step smaller, so the names have the width. */
  .guide-breaths { font-size: var(--text-sm); }
  .guide-pose-figures .pose-figure { width: 120px; height: 120px; }
}
