/* Approved nine-card composition; all canonical text remains in native details. */
#groups .group-heading { margin-bottom: 24px; }
#groups .group-heading .heading-aside { margin-top: 20px; font-size: 17px; line-height: 1.8; text-wrap: pretty; }
#groups .group-grid-note { margin: 0 0 12px; text-align: right; color: #bac3b3; font-size: 14px; }
#groups .group-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border: 0; }
#groups .group-card { position: relative; min-width: 0; border: 1px solid rgb(192 167 109 / 38%); background: #1d2e24; transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
#groups .group-card:hover, #groups .group-card:focus-within, #groups .group-card[open] { background: #263b2c; border-color: #c0a76d; box-shadow: 0 0 22px rgb(192 167 109 / 12%); }
#groups .group-card > summary { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 264px; padding: 18px 22px; background: transparent; }
#groups .group-card:not([open]) > summary { height:100%; }
#groups .group-card > summary:focus-visible { outline: 2px solid #e4cc8d; outline-offset: -5px; }
#groups .group-card > summary::after { content: attr(data-planet); position: absolute; right: 20px; top: 12px; color: rgb(192 167 109 / 9%); font-family: var(--serif); font-size: 90px; line-height: 1.2; pointer-events: none; }
#groups .group-card .card-index { align-self: auto; margin: 0 0 4px; color: #ccb77e; font-size: 14px; line-height: 1.5; }
#groups .group-card h3 { margin: 0; color: #f0eddb; font-size: 29px; line-height: 1.4; letter-spacing: .025em; }
#groups #group-09 h3 { text-wrap:balance; }
#groups .group-card .deity { margin: 2px 0 0; color: #bec7b7; font-size: 16px; line-height: 1.6; }
#groups .group-card .card-service { margin: 16px 0 0; color: #e2e5d5; font-size: 17px; line-height: 1.7; }
#groups .group-card .card-heart { position: relative; margin: 10px 0 16px; padding-left: 18px; color: #d7c28b; font-family: var(--serif); font-size: 17px; line-height: 1.7; }
#groups .group-card .card-heart::before { content: '♡'; position: absolute; left: 0; top: 0; font-family: var(--sans); font-size: 15px; }
#groups .group-card .card-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#groups .group-card .vacancy { position:absolute; right:22px; top:18px; width:auto; height:auto; margin:0; padding:2px 8px; overflow:visible; clip-path:none; white-space:nowrap; border:1px solid rgb(192 167 109 / 50%); color:#e4cc8d; font-size:14px; line-height:1.5; }
#groups .group-card .vacancy strong { font-size:18px; font-weight:500; font-variant-numeric:tabular-nums; }
#groups .work-community figcaption { position:absolute; left:8px; bottom:8px; margin:0; padding:3px 8px; background:rgb(18 40 28 / 92%); color:#f0eddb; font-size:14px; line-height:1.5; }
#groups .group-card .details-hint { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: none; margin: auto 0 0; padding: 0; border: 0; color: #bcc6b4; font-size: 14px; line-height: 1.7; }
#groups .group-card .details-hint b { color: #d7c28b; font-size: 20px; font-weight: 400; }
#groups .group-card .card-body { display: block; padding: 0 22px 20px; border: 0; }
#groups .group-card .card-body p { margin: 0; color: #e2e5d5; font-size: 16px; line-height: 1.8; }
#groups .group-card .card-body p + p { margin-top: 12px; }
#groups .group-card .card-body p > b { display: block; color: #c9bb92; font-size: 14px; font-weight: 500; }
#groups .group-card .card-body .obstacle { border-top: 1px solid rgb(192 167 109 / 26%); padding-top: 12px; }
#groups .shared-wish-lines { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: #e0c27c; }
#groups .shared-wish-path { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; filter: drop-shadow(0 0 3px rgb(228 204 141 / 65%)); }
#groups .shared-wish-node { fill: #e4cc8d; opacity: .45; filter: drop-shadow(0 0 4px #c0a76d); }
#groups .group-grid.is-lit .shared-wish-path { animation: shared-wish-draw 3.6s ease-out both; }
#groups .group-grid[data-wish-motion='paused'] .shared-wish-path { animation-play-state: paused; }
#groups .group-grid[data-wish-motion='complete'] .shared-wish-path,
#groups .group-grid[data-wish-motion='reduced'] .shared-wish-path { animation: none; stroke-dashoffset: 0; }
@keyframes shared-wish-draw { to { stroke-dashoffset: 0; } }

#assigned .mandala-entry { margin: 20px 0 22px; scroll-margin-top: 110px; }
#assigned .mandala-app { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
#assigned .mandala-app-icon { display: block; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; }
#assigned .mandala-app-name { margin: 0 0 2px; font-family: var(--sans); font-size: 20px; line-height: 1.4; color: var(--ink); }
#assigned .mandala-app-purpose { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
#assigned .mandala-store-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
#assigned .mandala-store-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 66px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; transition: background-color 140ms ease; }
#assigned .mandala-store-links img { display: block; width: auto; max-width: none; }
#assigned .mandala-app-store-badge { height: 44px; }
/* Google artwork includes 29px vertical clear space: keep visible badges 44px high. */
#assigned .mandala-google-play-badge { height: 57.292px; }
#assigned .mandala-store-links a:hover { background: rgb(255 255 255 / 15%); }
#assigned .mandala-store-links a:active { background: rgb(23 27 25 / 8%); }
#assigned .mandala-store-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
#assigned.practice-combined .practice-grid { grid-auto-rows: 1fr; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border: 0; }
#assigned.practice-combined .practice-grid article, #assigned.practice-combined .practice-grid article + article { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 16px; min-height: 190px; padding: 18px; border: 1px solid rgb(23 27 25 / 26%); background: rgb(255 255 255 / 5%); }
#assigned.practice-combined .practice-grid article:last-child { border: 1px solid rgb(23 27 25 / 26%); }
#assigned .practice-image { width: 88px; height: 110px; margin: 0; }
#assigned .practice-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
#assigned .practice-copy { min-width: 0; }
#assigned .practice-copy .micro-label { color: #554b2c; font-size: 14px; line-height: 1.5; letter-spacing: .04em; }
#assigned.practice-combined .practice-copy h3 { margin: 5px 0 9px; color: var(--ink); font-size: 23px; line-height: 1.5; }
#assigned.practice-combined .practice-copy p { margin: 0; color: #494837; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
#assigned .practice-copy .practice-seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; font-size: 16px; }
#assigned .practice-copy .type-phrase { white-space: normal; }
@media (min-width: 901px) { #groups #groups-title br { display: none; } }
@media (max-width: 1050px) {
  #groups .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #groups .group-card > summary { min-height: 302px; }
  #groups .group-card:last-of-type { grid-column: 1 / -1; width: calc((100% - 18px) / 2); justify-self: center; }
  #assigned.practice-combined .practice-grid { grid-template-columns: minmax(0, 1fr); }
  #assigned.practice-combined .practice-grid article, #assigned.practice-combined .practice-grid article + article { min-height: 148px; border: 1px solid rgb(23 27 25 / 26%); padding: 18px; }
}
@media (max-width: 650px) { #groups .group-card > summary { min-height: 344px; } }
@media (max-width: 500px) {
  #groups .group-grid { gap: 12px; }
  #groups .group-card > summary { min-height: 380px; padding: 14px; }
  #groups .group-card h3 { font-size: 24px; }
  #groups .group-card .deity, #groups .group-card .card-service, #groups .group-card .card-heart { font-size: 16px; }
  #groups .group-card .card-service { margin-top: 14px; }
  #groups .group-card .card-heart { padding-left: 16px; }
  #groups .group-card .card-body { padding: 0 14px 18px; }
  #groups .group-card .vacancy { position:static; align-self:flex-start; margin-top:8px; }
  #groups .group-card:last-of-type { width: calc((100% - 12px) / 2); }
  #groups .group-card > summary::after { right: 10px; font-size: 64px; }
  #assigned.practice-combined .practice-grid { gap: 12px; }
  #assigned.practice-combined .practice-grid article, #assigned.practice-combined .practice-grid article + article { grid-template-columns: 72px minmax(0, 1fr); padding: 14px; gap: 14px; }
  #assigned .practice-image { width: 72px; height: 90px; }
}
@media (max-width: 359px) {
  #groups .group-card > summary { min-height: 434px; padding: 12px; }
  #groups .group-card h3 { font-size: 23px; }
  #assigned.practice-combined .practice-grid article, #assigned.practice-combined .practice-grid article + article { grid-template-columns: 72px minmax(0, 1fr); }
  #assigned .practice-image { width: 72px; height: 90px; }
  #assigned .practice-copy .practice-seasons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #groups .shared-wish-path { animation: none !important; stroke-dashoffset: 0; }
  #groups .group-card, #assigned .mandala-store-links a { transition: none; }
  #assigned .mandala-store-links a:active { transform: none; }
}
