/* Approved class articles only; native artwork, parchment and live attribute panel. */
.as-class-native-layout .as-class-hero{position:relative;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);grid-template-rows:auto auto;column-gap:38px;row-gap:0;align-items:stretch;margin-top:52px}
.as-class-native-layout .as-class-detail-content{display:contents}
.as-class-native-layout .as-class-portrait-frame{box-sizing:border-box;position:relative;grid-column:1;grid-row:1;align-self:center;width:100%;max-width:430px;aspect-ratio:1/1;height:auto;min-height:0;border:26px solid transparent;border-image:none;outline:0;background:var(--as-bg);isolation:isolate;box-shadow:none}
.as-class-native-layout .as-class-portrait-frame::before{content:'';position:absolute;inset:-26px;pointer-events:none;background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(165,167,171,.12) 0%,rgba(18,18,19,.85) 40%,rgba(10,10,10,.3) 75%,transparent 100%);clip-path:none;mask-image:none;z-index:0}
.as-class-native-layout .as-class-portrait-frame::after{content:'';position:absolute;inset:-26px;box-sizing:border-box;width:auto;height:auto;transform:none;border:30px solid transparent;border-image:url('./class-selection-frame.webp') 100 / 30px / 0 stretch;background:none;pointer-events:none;mix-blend-mode:lighten;z-index:2}
.as-class-native-layout .as-class-detail-art-stage{position:absolute;inset:-26px;overflow:hidden;z-index:1;pointer-events:none}
.as-class-native-layout .as-class-detail-art-stage img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;transform-origin:50% 50%;z-index:1}
.as-class-native-layout .as-class-detail-panels{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:var(--class-panels-min-height,573.333333px);width:min(100%,var(--class-sheet-width,100%))}
.as-class-native-layout .as-class-detail-sheet{position:relative;box-sizing:border-box;flex:1;display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:100%;min-width:0;border:54px solid transparent;border-left-width:36px;border-right-width:36px;border-image:url('/skins/AshenborneDarkSouls/releases/wiki-parity-20261101-a/resources/class-description-parchment.webp') 120 100 fill / 54px 36px / 0 stretch;padding:8px 10px 12px}
.as-class-native-layout .as-class-detail-sheet>.as-eyebrow{position:absolute;top:calc(-54px - 12px);bottom:auto;left:-36px;margin:0;color:#b8bac0;white-space:nowrap;transform:translateY(-100%);z-index:1}
.as-class-native-layout .as-class-detail-sheet h1{position:relative;z-index:1;font-size:clamp(34px,4vw,52px);font-weight:400;line-height:1.1;color:#302617;margin:0 0 10px;text-shadow:0 1px #ffffff26}
.as-class-native-layout .as-class-detail-sheet .as-class-level{position:relative;z-index:1;display:inline-block;align-self:flex-start;margin:0 0 12px;background:#15130f;border-color:#6d5b3f;color:#e5d9bd;padding:6px 10px;font-size:12px}
.as-class-native-layout .as-class-detail-sheet .as-class-native-description{position:relative;z-index:1;margin:0 0 18px;padding:0;border:0;background:none;color:#302617;font:italic 400 20px/1.45 'Dark Souls Class Garamond',Georgia,serif;text-shadow:none}
.as-class-native-layout .as-class-detail-sheet .as-class-native-description::before{content:none}
.as-class-native-layout .as-class-detail-panels>#starting-attributes{flex:none;margin:18px 0 0;width:100%;min-width:0}
.as-class-native-layout .as-class-detail-panels>#starting-attributes>.as-class-native-stats{margin:0}
.as-class-native-layout .as-class-hero .as-class-native-stats dt,.as-class-native-layout .as-class-hero .as-class-native-stats dd{font:400 22px/1.2 'Dark Souls Class Garamond',Georgia,serif;color:#eee9df}
.as-class-native-layout .as-class-detail-content>.as-guide-shortcuts{grid-column:2;grid-row:2;margin:20px 0;width:100%}
@media(max-width:1000px){.as-class-native-layout .as-class-hero{grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);column-gap:22px}.as-class-native-layout .as-class-detail-sheet{border-left-width:28px;border-right-width:28px;border-image-width:54px 28px;padding:6px}.as-class-native-layout .as-class-detail-sheet>.as-eyebrow{left:-28px}}
@media(max-width:760px){.as-class-native-layout .as-class-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;margin-top:24px}.as-class-native-layout .as-class-portrait-frame{grid-column:1;grid-row:1;align-self:start;max-width:340px;margin:auto}.as-class-native-layout .as-class-detail-panels{grid-column:1;grid-row:2;min-height:0;width:100%;margin-top:52px}.as-class-native-layout .as-class-detail-sheet{min-height:340px}.as-class-native-layout .as-class-detail-sheet .as-class-native-description{font-size:18px}.as-class-native-layout .as-class-detail-content>.as-guide-shortcuts{grid-column:1;grid-row:3}}

/* Approved hybrid: full-width parchment above a lower native attribute sidebar. */
.as-class-hybrid-layout .as-class-hero{grid-template-rows:auto;align-items:start}
.as-class-hybrid-layout .as-class-portrait-frame{align-self:start;top:-27px}
.as-class-hybrid-layout .as-class-detail-content{display:block;grid-column:2;grid-row:1;position:relative}
.as-class-hybrid-layout .as-class-detail-panels{display:block;min-height:0;width:100%}
.as-class-hybrid-layout .as-class-detail-sheet{height:var(--class-sheet-height,403px);min-height:0}
.as-class-hybrid-layout .as-class-detail-content>.as-guide-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0;width:100%}
.as-class-hybrid-layout .as-class-body{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:32px;margin-top:64px;align-items:start}
.as-class-hybrid-layout .as-class-body-main{min-width:0}
.as-class-hybrid-layout .as-class-body-main>#starting-equipment{position:relative;padding-top:0;margin-top:0}
.as-class-hybrid-layout .as-class-equipment-layout[data-hover-preview=true]{position:static;grid-template-columns:minmax(0,1fr)}
.as-class-hybrid-layout .as-class-equipment-layout[data-hover-preview=true] .as-class-equipment-preview{position:absolute;top:0;right:0;width:290px;transform:translateX(calc(100% + 32px));z-index:3}
.as-class-hybrid-layout .as-class-attributes-panel{min-width:0;border:1px solid rgba(165,167,171,.24);background:#0b0b0c url('/skins/AshenborneDarkSouls/releases/wiki-parity-20261101-a/resources/planner/assets/native-menu/sidebar-leather.webp') center top/900px auto repeat-y}
.as-class-hybrid-layout .as-class-attributes-panel>h2{font:400 21px/1.3 var(--as-display);margin:0;padding:18px;color:#e6e8ee;border-bottom:1px solid rgba(165,167,171,.2);background:rgba(9,9,9,.45)}
.as-class-hybrid-layout .as-class-attributes-panel #starting-attributes{margin:0;padding:8px 18px 16px}
.as-class-hybrid-layout .as-class-attributes-panel .as-class-native-stats{display:block;margin:0;padding:0;border:0;background:none;clip-path:none}
.as-class-hybrid-layout .as-class-attributes-panel .as-class-native-stats>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border:0;border-bottom:1px solid rgba(165,167,171,.16);background:none}
.as-class-hybrid-layout .as-class-attributes-panel .as-class-native-stats>div:last-child{border-bottom:0}
.as-class-hybrid-layout .as-class-attributes-panel .as-class-native-stats dt,.as-class-hybrid-layout .as-class-attributes-panel .as-class-native-stats dd{font:400 19px/1.3 'Dark Souls Class Garamond',Georgia,serif;color:#eee9df;margin:0}
.as-class-hybrid-layout .as-class-attributes-panel .as-class-native-stats dt{display:flex;align-items:center;gap:8px}
.as-class-hybrid-layout .as-class-attributes-panel .as-class-native-stats dt img{width:22px;height:22px;object-fit:contain}
@media(max-width:1000px){.as-class-hybrid-layout .as-class-body{grid-template-columns:minmax(0,1fr) 260px;gap:24px}}
@media(max-width:760px){.as-class-hybrid-layout .as-class-portrait-frame{top:0}.as-class-hybrid-layout .as-class-detail-content{grid-column:1;grid-row:2;margin-top:52px}.as-class-hybrid-layout .as-class-detail-panels{margin-top:0}.as-class-hybrid-layout .as-class-detail-sheet{height:auto;min-height:340px}.as-class-hybrid-layout .as-class-body{display:flex;flex-direction:column;margin-top:48px;gap:32px}.as-class-hybrid-layout .as-class-body-main,.as-class-hybrid-layout .as-class-attributes-panel{width:100%}.as-class-hybrid-layout .as-class-attributes-panel{order:-1}}

/* Bound the shared preview artwork to the class sidebar rather than its 16:10 ratio. */
.as-class-hybrid-layout .as-class-equipment-preview .as-db-details{box-sizing:border-box;width:100%;min-width:0}
.as-class-hybrid-layout .as-class-equipment-preview .as-db-detail-art{box-sizing:border-box;width:100%;min-width:0;aspect-ratio:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.as-class-hybrid-layout .as-class-equipment-preview .as-db-detail-art img{position:static;inset:auto;display:block;min-width:0;max-width:100%}

/* Reuse the approved breathing media with identical still/video framing. */
.as-class-native-layout .as-class-detail-art-stage .as-class-article-loop{position:absolute;inset:0;width:100%;height:100%;max-height:none;max-width:none;object-fit:contain;transform-origin:50% 50%;opacity:0;z-index:1;pointer-events:none}
.as-class-native-layout .as-class-portrait-frame[data-loop-ready=true] .as-class-article-loop{opacity:1}
.as-class-native-layout .as-class-portrait-frame[data-loop-ready=true] .as-class-detail-art-stage img{opacity:0}
.as-class-native-layout .as-class-loop-control{position:absolute;top:6px;right:6px;z-index:3;padding:4px 8px;border:1px solid #a5a7ab55;background:#101011de;color:#ddd7ca;font:12px/1.2 var(--as-body);cursor:pointer}
.as-class-native-layout .as-class-loop-control[hidden]{display:none}
.as-class-native-layout .as-class-loop-control:focus-visible{outline:2px solid #d6c394;outline-offset:3px}
