/* Selected “课堂之外” layout, integrated into the horizontal About room. */
.yz-about .yz-practice {
  --yp-blue: var(--accent, #007aff);
  display: grid;
  grid-template-columns: minmax(300px, 26%) minmax(0, 1fr);
  gap: clamp(40px, 3.5vw, 64px);
  width: max(1060px, calc(100vw - 180px));
  max-width: none;
  height: 100%;
  position: relative;
  top: 0;
  margin-left: clamp(48px, 5vw, 90px);
  color: var(--bg);
}
.yz-practice .yp-index { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px 0 8px; }
.yz-practice .yp-heading { display: flex; align-items: center; gap: 20px; margin: 0; font: 600 clamp(26px, 1.8vw, 32px)/1.4 var(--sans); }
.yp-icon { flex: 0 0 auto; width: 32px; height: 32px; object-fit: contain; pointer-events: none; user-select: none; }
.yz-practice .yp-activities { display: flex; flex: 1; flex-direction: column; justify-content: space-evenly; min-height: 0; padding: 24px 0; }
.yp-tabs { display: contents; }
.yz-practice .yp-entry { position: relative; display: flex; align-items: flex-start; gap: 26px; width: 100%; min-height: 76px; margin: 0; padding: 10px 0 10px 32px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.yp-entry-copy { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.yp-entry-copy b { display: block; font-size: clamp(22px, 1.48vw, 26px); font-weight: 500; line-height: 1.4; }
.yp-entry-copy > span { display: block; color: var(--ink-muted); font-size: clamp(16px, 1.08vw, 19px); line-height: 1.5; }
.yp-entry > .yp-icon { margin-top: 4px; }
.yp-entry[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; background: var(--yp-blue); }
.yp-entry[aria-selected="true"] b { color: var(--yp-blue); font-weight: 600; }
.yp-entry:hover b { color: var(--yp-blue); }
.yp-school { display: flex; align-items: flex-start; gap: 26px; padding: 24px 0 0 4px; border-top: 1px solid rgba(100,100,100,.15); }
.yp-school > .yp-icon { margin-top: 5px; }
.yp-school .yp-entry-copy b { font-size: clamp(20px, 1.42vw, 25px); }
.yp-gallery { position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.yz-practice .yp-event-title { flex: 0 0 auto; min-height: 54px; margin: 18px 0 24px; font: 600 clamp(28px, 2.25vw, 40px)/1.35 var(--sans); letter-spacing: -.025em; }
.yp-stage { flex: 1; min-height: 0; position: relative; container-type: size; perspective: 1500px; }
.yp-flipper { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .68s cubic-bezier(.22,.8,.25,1); }
.yp-flipper.is-flipped { transform: rotateY(180deg); }
.yz-practice .yp-stack { --yp-card: min(74cqw, calc((100cqh - 60px) * 1.333)); --yp-offset: min(34cqw, calc((100cqh - 60px) * .74)); --yp-inset: max(0px, calc((100cqw - var(--yp-card) - var(--yp-offset)) / 2)); position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 4px; color: #151719; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.yp-print { position: absolute; display: block; box-sizing: border-box; width: min(var(--yp-card), calc((100cqh - 78px) * var(--yp-ratio) + 32px)); top: 50%; left: var(--yp-inset); padding: 16px 16px 0; border-radius: 3px; background: #fdfcf9; box-shadow: 0 15px 26px -12px rgba(20,40,50,.32), 0 1px 2px rgba(20,40,50,.10); transition: left .45s cubic-bezier(.2,.75,.25,1), transform .45s cubic-bezier(.2,.75,.25,1); }
.yp-print[data-front="true"] { z-index: 2; left: 0; transform: translateY(-50%); }
.yp-print[data-front="false"] { z-index: 1; left: calc(var(--yp-inset) + var(--yp-offset)); transform: translateY(-50%) rotate(5deg); }
.yp-print[data-front="false"] .yp-caption { visibility: hidden; }
.yp-print:not([data-slot="0"]):not([data-slot="1"]) { visibility: hidden; opacity: 0; pointer-events: none; }
.yp-image { position: relative; display: block; width: 100%; aspect-ratio: var(--yp-ratio); overflow: hidden; }
.yp-print .yp-photo, .yp-peek-paper .yp-photo { display: block; width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: contain; user-select: none; pointer-events: none; }
.yp-image[data-rotate="-90"] .yp-photo { position: absolute; left: 50%; top: 50%; width: calc(100% / var(--yp-ratio)); height: calc(100% * var(--yp-ratio)); transform: translate(-50%, -50%) rotate(-90deg); }
.yp-stack.is-single .yp-print { left: 0; transform: translateY(-50%); }
.yz-practice .yp-stack:disabled { cursor: default; opacity: 1; }
.yz-practice .yp-stack { backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none; opacity: 1; transition: opacity 0s .1s; }
.yz-practice .yp-flipper.is-flipped .yp-stack { opacity: 0 !important; }
.yp-print[data-front="true"] { pointer-events: auto; }
.yp-story { position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(860px, 100%); height: 100%; margin: 0; padding: 30px 32px 28px; border-radius: 3px; background: #fdfcf9; color: #202224; box-shadow: 0 15px 26px -12px rgba(20,40,50,.32), 0 1px 2px rgba(20,40,50,.10); transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; visibility: hidden; opacity: 0; transition: visibility 0s .68s, opacity 0s .1s; }
.yp-story[hidden] { display: none; }
.is-flipped .yp-story { visibility: visible; opacity: 1; transition-delay: 0s, .1s; }
.yp-story-header { flex: 0 0 auto; padding-bottom: 22px; cursor: pointer; }
.yp-story-header h3 { margin: 0; font: 600 clamp(24px, 1.7vw, 30px)/1.45 var(--sans); }
.yp-story-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: #b9bab7 #ededea; padding: 0 14px 8px 0; font: 400 18px/1.75 var(--sans); text-align: left; cursor: auto; }
.yp-story-scroll p { margin: 0 0 1em; max-width: 65ch; font: inherit; }
.yp-story-scroll p:last-child { margin-bottom: 0; }
.yp-story-scroll:focus-visible { outline: 2px solid var(--yp-blue); outline-offset: 3px; }
.yp-story { cursor: pointer; }
.yp-story:focus-visible { outline: 2px solid var(--yp-blue); outline-offset: 5px; }
.yp-caption { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 8px; color: #151719; font: 500 clamp(14px, 1vw, 18px)/1.45 var(--sans); }
.yp-pagination { position: relative; z-index: 3; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 44px; gap: 0; }
.yp-pagination[hidden] { display: none; }
.yz-practice .yp-dot { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.yp-dot span { display: block; width: 9px; height: 9px; border: 1.5px solid #9ba0a5; border-radius: 50%; }
.yp-dot[aria-current="true"] span { border-color: var(--yp-blue); background: var(--yp-blue); }
.yz-practice button:focus-visible { outline: 2px solid var(--yp-blue); outline-offset: 5px; }
[data-theme="night"] .yz-practice .yp-icon { filter: invert(1); }
[data-theme="night"] .yz-practice { --yp-blue: #6bb1ff; }
[data-theme="night"] .yp-story { background: #202326; color: #f0f0e9; }
[data-theme="night"] .yp-story-scroll { scrollbar-color: #737975 #303539; }
[data-theme="night"] .yp-school { border-color: rgba(240,240,240,.16); }
@media (min-width: 860px) and (min-height: 650px) {
  .room:has(.yz-practice) { overflow-clip-margin: 80px; }
  .yp-gallery { height: calc(100% + clamp(0px, calc(50vh - 350px), 80px)); }
}
@media (max-width: 859px) {
  .yz-about .yz-practice { grid-template-columns: max(280px, calc(100vw - 48px)) max(340px, calc(100vw - 48px)); gap: 44px; width: max-content; height: 100%; margin-left: 20px; top: 0; }
  .yz-practice .yp-heading { gap: 16px; font-size: 28px; }
  .yz-practice .yp-entry { gap: 20px; padding-left: 18px; }
  .yp-entry-copy b { font-size: 23px; }
  .yp-entry-copy > span { font-size: 16px; }
  .yp-school { gap: 20px; padding-top: 24px; }
  .yp-school .yp-entry-copy b { font-size: 22px; }
  .yz-practice .yp-event-title { min-height: 68px; margin: 14px 0 12px; font-size: 27px; }
  .yz-practice .yp-stack { --yp-card: min(86cqw, calc((100cqh - 72px) * 1.333)); --yp-offset: calc(100cqw - var(--yp-card)); --yp-inset: 0px; }
  .yp-print { padding: 10px 10px 0; }
  .yp-caption { min-height: 46px; padding: 8px 2px; font-size: 13px; }
  .yp-story { padding: 20px 18px; }
  .yp-story-header { padding-bottom: 18px; }
  .yp-story-header h3 { font-size: 24px; }
  .yp-story-scroll { padding-right: 10px; font-size: 16px; line-height: 1.75; }
}
@media (max-height: 540px) {
  .yz-about .yz-practice { height: 100%; top: 0; }
  .yz-practice .yp-index { padding-top: 0; padding-bottom: 0; }
  .yz-practice .yp-heading { font-size: 24px; }
  .yz-practice .yp-activities { padding: 8px 0; }
  .yz-practice .yp-entry { min-height: 36px; padding-top: 4px; padding-bottom: 4px; gap: 18px; }
  .yp-entry .yp-entry-copy > span { display: none; }
  .yp-entry-copy { gap: 2px; }
  .yp-entry-copy b { font-size: 20px; }
  .yp-entry-copy > span { font-size: 14px; }
  .yp-icon { width: 26px; height: 26px; }
  .yp-school { padding-top: 10px; gap: 18px; }
  .yp-school .yp-entry-copy b { font-size: 20px; }
  .yz-practice .yp-event-title { min-height: 36px; margin: 0 0 2px; font-size: 25px; }
  .yp-caption { min-height: 34px; padding: 6px 2px; font-size: 12px; }
  .yz-practice .yp-stack { --yp-card: min(70cqw, calc((100cqh - 24px) * 1.333)); --yp-offset: min(34cqw, calc((100cqh - 24px) * .74)); --yp-inset: max(0px, calc((100cqw - var(--yp-card) - var(--yp-offset)) / 2)); }
  .yp-print { padding: 8px 8px 0; }
  .yp-pagination { height: 34px; }
  .yp-story { padding: 12px 20px; }
  .yp-story-header { padding-bottom: 8px; }
  .yp-story-header h3 { font-size: 22px; }
  .yp-story-scroll { font-size: 16px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .yp-print, .yp-flipper, .yp-story, .yz-practice .yp-stack { transition: none; }
}
.yz-practice .yp-peek[hidden] { display: none; }
.yz-practice .yp-peek { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.yp-peek-name { position: absolute; top: 120px; left: 0; display: block; padding: 2px 0 2px 20px; border-left: 3px solid var(--yp-blue); color: var(--yp-blue); font: 500 20px/1.5 var(--sans); white-space: nowrap; }
.yp-peek-paper { position: absolute; top: 178px; left: 8px; display: block; width: min(430px, calc(360px * var(--yp-ratio))); padding: 16px 16px 52px; border-radius: 3px; background: #fdfcf9; box-shadow: 0 15px 26px -12px rgba(20,40,50,.32), 0 1px 2px rgba(20,40,50,.10); }
@media (min-width: 1100px) {
  .yz-about .yz-practice { margin-left: 24px; }
}
@media (min-width: 1100px) and (min-height: 650px) {
  .yz-practice.is-peeking .yp-index { padding-top: 54px; }
  .yz-practice.is-peeking .yp-activities, .yz-practice.is-peeking .yp-school { visibility: hidden; pointer-events: none; }
}
