/* ART_ENTRY_V2 */
.v21-gallery[hidden],.v21-reader[hidden],.v21-changes[hidden]{display:none!important}
.v21-gallery-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:36px;align-items:center;margin-top:28px}
.v21-gallery-figure{margin:0;min-width:0}.v21-gallery-image{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:10px;background:#faf9f5}
.v21-gallery-figure figcaption{font-size:12px;color:var(--muted);text-align:center;margin-top:10px}
.v21-art-eyebrow{font-size:12px!important;letter-spacing:2px;color:var(--wine)!important;margin:0 0 12px}
.v21-painting-copy h3{font-size:clamp(22px,2vw,28px);font-weight:500;line-height:1.55;margin:0 0 20px;letter-spacing:-.7px;color:var(--ink)}
.v21-painting-copy>p:not(.v21-art-eyebrow){font-size:16px;line-height:1.95;color:#5d5359;margin:0 0 18px;word-break:keep-all}
.v21-entry-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}.v21-entry-buttons button{min-height:48px;font-size:14px;gap:10px}
.v21-gallery-nav{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}.v21-gallery-nav>span{margin-inline:auto;font-size:13px;color:var(--muted)}.v21-gallery-nav>.text-link{margin-left:12px}
.v21-back-to-art{min-height:44px;display:inline-flex;margin:12px 0 18px;color:var(--wine)}
.v21-poem{font-size:clamp(19px,2vw,25px);line-height:1.8;color:var(--wine);margin:20px 0}.v21-theme{font-size:14px!important;color:var(--muted)!important}
.v21-detail{border-bottom:1px solid var(--line);padding:15px 0}.v21-detail summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:17px;color:var(--ink)}.v21-detail p{font-size:15px;line-height:1.9}
.v21-change-links{display:grid;gap:8px;margin:16px 0}.v21-change-links a{display:flex;align-items:center;min-height:48px;padding:10px 14px;border:1px solid #c9b5bd;border-radius:8px;background:#faf8f4;font-size:15px}.v21-change-links a:hover{background:#eee3e3}
.v21-credit{padding-top:18px;border-top:1px solid var(--line)}
.wisdom-detail-art:has(.v21-reading-art){aspect-ratio:1!important;padding:0!important;min-height:0!important;overflow:hidden;background:#faf9f5;border:0}
.wisdom-detail-art .v21-reading-art{aspect-ratio:1!important;width:100%;height:auto!important;max-height:none!important;object-fit:contain!important;animation:none!important}.wisdom-art-panel:has(.v21-reading-art){position:static!important}
#wisdom-dialog .wisdom-step p{font-size:15px;line-height:1.9}.v21-reader .wisdom-art-panel[hidden]{display:none!important}
@media(max-width:700px){.v21-gallery-grid{grid-template-columns:minmax(0,1fr);gap:24px;margin-top:22px}.v21-painting-copy h3{font-size:23px;margin-bottom:16px}.v21-painting-copy>p:not(.v21-art-eyebrow){font-size:15px;line-height:1.9}.v21-entry-buttons{display:grid;grid-template-columns:1fr;margin-top:22px}.v21-entry-buttons button{justify-content:center;width:100%}.v21-gallery-nav{gap:10px}.v21-gallery-nav .secondary{font-size:13px;min-height:44px;padding:10px 12px}.v21-gallery-nav>.text-link{margin-left:0;width:100%;justify-content:center}.v21-poem{font-size:20px}.v21-reader .wisdom-reading-layout{grid-template-columns:minmax(0,1fr)!important;gap:24px}}

/* ART_PROSE_V3: equal entry buttons and three prose paragraphs. */
.v21-entry-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px}
.v21-entry-buttons>.primary,.v21-entry-buttons>.secondary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:56px;min-height:56px;max-height:56px;margin:0;padding:12px 14px;border-radius:8px;font-size:14px;line-height:1.5;text-align:center}
.v21-painting-copy>.v21-art-prose{margin:0 0 14px;line-height:1.95}
@media(max-width:700px){.v21-entry-buttons{grid-template-columns:minmax(0,1fr)}.v21-entry-buttons>.primary,.v21-entry-buttons>.secondary{height:56px;min-height:56px;max-height:56px}}

/* WISDOM_REVIEW: consistent labels, readable cards and touch controls. */
#wisdom .section-heading p{line-height:1.9;text-wrap:pretty}
#wisdom .wisdom-art-card h3{line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
#wisdom .wisdom-art-card .mini-label{font-size:11px;line-height:1.6}
#wisdom .wisdom-art-card .text-link{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:16px;padding:10px 12px;border:1px solid #cdb9c0;border-radius:8px;font-size:14px;line-height:1.5}
#wisdom .wisdom-open-row{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:12px;align-items:start}
#wisdom .wisdom-open-row>button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:56px;min-height:56px;margin:0;padding:12px 14px;border-radius:8px;font-size:15px;line-height:1.5}
#wisdom .wisdom-open-row>.fine{grid-column:1/-1;margin:2px 0 0;line-height:1.8}
#wisdom .wisdom-search input,#wisdom .wisdom-search select{box-sizing:border-box;min-height:48px;font-size:16px}
#wisdom .wisdom-search label{font-size:14px;line-height:1.6}
#wisdom-dialog .wisdom-view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#wisdom-dialog .wisdom-view-switch button{box-sizing:border-box;width:100%;min-height:56px;padding:12px 10px;font-size:14px;line-height:1.5;border-radius:8px}
#wisdom-dialog .v21-gallery-nav,#wisdom-dialog .wisdom-detail-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center}
#wisdom-dialog .v21-gallery-nav>.secondary,#wisdom-dialog .wisdom-detail-nav>.secondary{box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:10px;font-size:14px;line-height:1.5;border-radius:8px}
#wisdom-dialog .v21-gallery-nav>.text-link{grid-column:1/-1;justify-self:center;min-height:44px;margin:0}
#wisdom-dialog .v21-back-to-art{min-height:44px;line-height:1.6}
#wisdom-dialog .close{min-width:44px;min-height:44px}
#wisdom button:focus-visible,#wisdom-dialog button:focus-visible{outline:2px solid var(--wine);outline-offset:4px}
@media(max-width:700px){
 #wisdom .wisdom-featured,#wisdom .wisdom-grid{grid-template-columns:minmax(0,1fr)}
 #wisdom .wisdom-art-featured{grid-template-columns:minmax(0,1fr);min-height:0}
 #wisdom .wisdom-art-card .wisdom-art-copy{padding:20px}
 #wisdom .wisdom-art-card h3{font-size:19px}
 #wisdom .wisdom-art-card p{font-size:15px;line-height:1.8;min-height:0}
 #wisdom .wisdom-art-card .mini-label{font-size:12px}
 #wisdom .wisdom-open-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 #wisdom .wisdom-open-row>button{font-size:14px;padding:10px 8px}
 #wisdom-dialog .wisdom-view-switch{grid-template-columns:minmax(0,1fr)}
 #wisdom-dialog .v21-gallery-nav,#wisdom-dialog .wisdom-detail-nav{gap:8px}
 #wisdom-dialog .v21-gallery-nav>.secondary,#wisdom-dialog .wisdom-detail-nav>.secondary{font-size:13px;padding:10px 6px}
}

/* Natural card height; equal-row copy fills the available space above its action. */
#wisdom .wisdom-art-copy{display:flex;flex-direction:column;align-items:stretch;min-width:0}
#wisdom .wisdom-grid .wisdom-art-card{display:flex;flex-direction:column;min-height:0;height:auto}
#wisdom .wisdom-art-card .wisdom-art-copy{flex:1}
#wisdom .wisdom-art-card .text-link{margin-top:auto}
#wisdom .wisdom-art-card p{overflow:visible;white-space:normal}
/* Flex layout prevents paragraph margins from collapsing into the exact gap. */
#wisdom-dialog .v21-painting-copy{display:flex;flex-direction:column;min-width:0}
#wisdom-dialog .v21-painting-copy>.v21-art-prose:last-of-type{margin-bottom:0}
#wisdom-dialog .v21-entry-buttons{margin-top:32px}
.v21-meditation{margin:24px 0;padding:20px;border:1px solid #ded3cd;border-radius:12px;background:#fffdf8}
.v21-meditation h3{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px;margin:0;font-size:19px;font-weight:500}
.v21-audio-kind{font-size:13px;color:#70354d}
#wisdom-dialog .v21-audio-guide{display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 0 18px;font-size:12px;color:#786b71;line-height:1.7}
.v21-audio-controls{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px 16px;align-items:center}
#wisdom-dialog .v21-audio-play{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:0;border:1px solid #70354d;border-radius:50%;background:#70354d;color:#fff}
.v21-play-icon{position:relative;display:block;width:18px;height:20px}
.v21-play-icon:before{content:'';position:absolute;left:5px;top:3px;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:11px solid currentColor}
.is-playing .v21-play-icon:before,.is-playing .v21-play-icon:after{content:'';position:absolute;top:3px;width:4px;height:14px;background:currentColor;border:0}
.is-playing .v21-play-icon:before{left:3px}.is-playing .v21-play-icon:after{left:11px}
.v21-audio-clock{font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap;color:#66585f}
.v21-audio-controls input[type=range]{grid-column:1/-1;min-width:0;width:100%;height:24px;margin:0;appearance:none;background:transparent;accent-color:#70354d;cursor:pointer}
.v21-audio-controls input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,#70354d 0 var(--progress,0%),#e4dcd5 var(--progress,0%) 100%)}
.v21-audio-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;margin-top:-5px;border:1px solid #70354d;border-radius:50%;background:#70354d}
.v21-audio-controls input[type=range]::-moz-range-track{height:4px;border-radius:4px;background:#e4dcd5}
.v21-audio-controls input[type=range]::-moz-range-progress{height:4px;border-radius:4px;background:#70354d}
.v21-audio-controls input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#70354d}
.v21-audio-controls input[type=range]:focus-visible{outline:2px solid #70354d;outline-offset:4px}
.v21-meditation audio[hidden]{display:none!important}
@media(max-width:700px){#wisdom-dialog .v21-entry-buttons{margin-top:24px}.v21-meditation{padding:18px 16px}.v21-audio-controls{gap:12px 14px}}
