/* Option A: Journey's medallions grow into a suggested branching practice tree. */
.st-tree{display:flex;flex-direction:column;gap:14px;min-width:0;container-type:inline-size;--st-disc:60px;--st-row-height:184px}
.st-reachable{margin:0;color:var(--muted);font-size:14px;line-height:20px;text-wrap:pretty}
.st-graphs{display:flex;flex-direction:column;gap:24px;min-width:0}
.st-graph{display:flex;flex-direction:column;gap:10px;min-width:0}
.st-heading{display:flex;flex-direction:column;gap:4px;margin:0;padding:0 0 8px;border-bottom:1px solid var(--hair);font:400 21px/1.2 var(--font-display);color:var(--ink)}
.st-graph-sub{font:400 14px/20px var(--font-ui);color:var(--muted);text-wrap:pretty}
.st-box{position:relative;min-width:0;--st-orient:v}
.st-lines{position:absolute;inset:0;display:block;pointer-events:none;z-index:0;overflow:visible}
.st-lines path{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke}
.st-lines .lit{stroke:var(--flame);stroke-width:3;opacity:.9}
.st-lines .dim{stroke:var(--line-deep);stroke-width:4;stroke-dasharray:1 9}
.st-lines .toward{stroke:var(--flame);stroke-width:3;stroke-dasharray:2 8;opacity:.75}
.st-lines .tie{stroke:var(--line-strong);stroke-width:1.5;stroke-dasharray:3 7;opacity:.7}
.st-lines .study{stroke:var(--line-deep);stroke-width:1.5;stroke-dasharray:7 6;opacity:.8}
.st-list{list-style:none;margin:0;padding:4px 0 0;position:relative;z-index:1;display:grid;row-gap:var(--sp-4);grid-template-columns:repeat(var(--st-cols),minmax(0,1fr));grid-auto-rows:minmax(var(--st-row-height),auto);align-items:start}
.st-node{grid-column:var(--st-col);grid-row:var(--st-row);display:flex;justify-content:center;align-items:start;min-width:0}
.st-button{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;min-width:min-content;max-width:164px;min-height:44px;margin:0;padding:0 2px;border:0;border-radius:10px;background:none;font:inherit;color:var(--ink);text-align:center;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.st-button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.st-button:active .st-orb{transform:scale(.96)}
.st-orb{position:relative;display:grid;place-items:center;flex:none;box-sizing:border-box;width:calc(var(--st-disc) + 12px);height:calc(var(--st-disc) + 12px);border-radius:50%;background:var(--surface);border:1px solid var(--hair);box-shadow:var(--card-shadow);transition:transform 120ms ease-out}
.st-orb .st-medal{--s:var(--st-disc)}
.st-disc{display:grid;place-items:center;width:var(--st-disc);height:var(--st-disc);border-radius:50%;background:radial-gradient(circle at 34% 28%,#F0CF8A 0%,#C99C4E 36%,#8C6326 76%,#6A4818 100%);box-shadow:inset 0 0 0 3px #7A5420,inset 0 0 0 5px #DDB66E,0 2px 4px rgb(60 36 10 / .28)}
.st-number{font:400 calc(var(--st-disc) * .4)/1 var(--font-display);color:#FFF3DC;text-shadow:0 1px 0 #4A2F0E}
/* the label under a medallion (the owner, 30 Oct 2026: "fix alignment of text and background white card… it looks very odd"):
   a soft glass card like Today's, its words clear of its edges and centred under the medallion */
.st-caption{display:flex;flex-direction:column;align-items:center;gap:3px;box-sizing:border-box;min-width:min-content;max-width:100%;padding:7px 12px 9px;border-radius:14px;border:1px solid rgb(255 255 255 / .9);background:var(--surface);box-shadow:0 4px 14px rgb(176 122 42 / .12)}
.st-name{font:400 15px/1.2 var(--font-display);color:var(--ink);text-wrap:balance;overflow-wrap:normal;word-break:normal;hyphens:none;max-width:100%}
.st-sub{font:400 14px/1.3 var(--font-ui);color:var(--muted);text-wrap:balance;overflow-wrap:normal;max-width:100%}
.st-start{margin-top:2px;padding:1px 10px;border:1px solid var(--flame);border-radius:999px;font-size:14px;line-height:20px;font-weight:600;color:var(--flame);background:var(--surface)}
.st-flag{margin-top:2px;padding:0 8px;border-radius:999px;font-size:14px;line-height:20px;font-weight:600;color:var(--ink-mid);background:var(--uma-measured-well);border:1px solid #EBD7B8}
.st-study-flag{background:var(--surface-2);border-color:var(--line);color:var(--muted)}
.st-check{position:absolute;right:-1px;bottom:-1px;display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border:2px solid var(--surface);border-radius:50%;background:var(--good);color:var(--on-good,#fff)}
.st-check svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.st-node.current .st-orb{border:3px solid var(--flame);outline:4px solid var(--surface);background:var(--uma-color-amber-soft);width:calc(var(--st-disc) + 20px);height:calc(var(--st-disc) + 20px);margin:-4px 0}
.st-node.current .st-name{color:var(--flame)}
.st-node.current .st-sub{color:var(--ink-mid)}
.st-node.next .st-orb{border:1.5px solid var(--flame)}
/* a place not started is open, never locked (a friend, 2 Nov 2026: the grey ones read as locked): its full-colour medal at rest, the same orb and card as Done and Under way but without their ring or tick, and no shadow */
.st-node.later .st-orb{box-shadow:none}
.st-node.later .st-caption{box-shadow:none}
/* Start here: the one place to begin when nothing in the door is begun, ringed like Under way and named in a filled pill */
.st-node.st-here .st-orb{border:3px solid var(--flame);outline:4px solid var(--surface);width:calc(var(--st-disc) + 20px);height:calc(var(--st-disc) + 20px);margin:-4px 0}
.st-node.st-here .st-name{color:var(--flame)}
.st-node.st-here .st-start{background:var(--flame);color:var(--on-flame)}
.st-state{margin-top:2px;font-size:14px;line-height:20px;font-weight:600}
.st-node.done .st-state{color:var(--good)}
.st-node.current .st-state{color:var(--flame)}
.st-node.study .st-orb{border:1.5px dashed var(--line-deep);background:var(--surface-2)}
.st-node.study .medal img{opacity:.8}
.st-node.study .st-name{color:var(--ink-mid)}
.st-foot{display:flex;flex-direction:column;align-items:start;gap:3px;min-height:64px;padding:12px 16px;border:1px solid var(--hair);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
/* Leave room around each phone label for its longest whole word without moving the medallion's grid position. */
@container (max-width:400px){
  .st-button{width:calc(100% - 4px);padding-inline:0}
  .st-caption{padding-inline:10px}
  /* a phone's discs and rows a little smaller (a friend, 2 Nov 2026: "a bit spaced out") */
  .st-graph{--st-disc:48px;--st-row-height:168px}
}
/* A room's width determines when seven columns have room for readable labels. */
@container (min-width:820px){
  .st-box{--st-orient:h}
  .st-list{grid-template-columns:repeat(var(--st-rows),minmax(0,1fr));grid-auto-rows:minmax(174px,auto)}
  .st-node{grid-column:var(--st-row);grid-row:var(--st-col)}
  .st-button{max-width:148px}
  .st-one-row .st-box{--st-orient:v}
  .st-one-row .st-list{grid-template-columns:repeat(var(--st-cols),minmax(0,1fr))}
  .st-one-row .st-node{grid-column:var(--st-col);grid-row:var(--st-row)}
  .st-forest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px;align-items:start}
  /* The Meditation door's own graph runs six places across: it takes the forest's whole width, the Buddhist and Inquiry graphs side by side under it. */
  .st-forest > [data-st-graph="door-meditation-meditation"]{grid-column:1/-1}
  /* Keep the two monthly observances side by side, as in the phone tree and mock A. */
  [data-st-graph="observances"] .st-box{--st-orient:v}
  [data-st-graph="observances"] .st-list{grid-template-columns:repeat(var(--st-cols),minmax(0,1fr))}
  [data-st-graph="observances"] .st-node{grid-column:var(--st-col);grid-row:var(--st-row)}
}
@media (prefers-reduced-motion:reduce){.st-orb{transition:none}.st-button:active .st-orb{transform:none}}

.p-tools{display:flex;justify-content:space-between;gap:12px;margin-block:var(--sp-3)} /* clear of today's line above and Your japa below */
.p-tools .btn{white-space:nowrap;padding-inline:14px} /* Commitments never breaks inside the word at 360 */
.p-tools .btn[aria-expanded="true"]{border-color:var(--flame);color:var(--flame)}
.p-common{padding:16px;background:var(--surface);border:1px solid var(--hair);border-radius:12px;box-shadow:var(--card-shadow)}
.st-sanskrit,.st-tradition{font:400 14px/1.3 var(--font-ui);color:var(--ink-mid);text-wrap:balance;overflow-wrap:normal;hyphens:none}
.st-tree{--st-row-height:208px}
@media(min-width:700px){.p-common{padding:20px}}

@container(max-width:819px){.st-wide{grid-column:1/-1}.st-wide .st-button{max-width:260px;width:100%}}

/* Approved A cards and V1 Today tiles. Supplied art retains its transparent canvas. */
.tile-medal{display:block;object-fit:contain;flex:none;max-width:100%}
span.tile-medal{aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ead09b,#9a692c)}
.pt-tail{white-space:nowrap}
#p-lib .pt b{max-width:100%;text-wrap:balance}
.p-room,.p-common{scroll-margin-top:72px}
@container(min-width:820px){.st-wide .st-button{max-width:240px}.st-wide .st-name{white-space:nowrap}}

#p-dh{scroll-margin-top:72px}
/* the desktop trees are denser: the labels keep their first width there, so neighbouring branches never overlap */
@media(min-width:1024px){.st-button{max-width:132px}.st-caption{padding-inline:8px}}
