/* Eight approved, reusable article card variants. */
.styles-lab { padding: 112px var(--gutter) 0; }
.styles-intro { margin-bottom: clamp(36px,4vw,64px); }
.styles-back { display: inline-block; color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.styles-back:hover { color: var(--violet); }
.styles-intro h1 { margin: 0; font-size: clamp(48px,6vw,112px); line-height: .94; letter-spacing: -.05em; font-weight: 500; }
.styles-intro h1 em { color: var(--violet); font-style: normal; }
.styles-intro__bottom { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px; margin-top: 30px; }
.styles-intro__bottom > p { margin: 0; max-width: 38em; font-size: clamp(17px,1.3vw,22px); line-height: 1.4; color: var(--muted); }
.styles-choice { border-left: 1px solid var(--line); padding-left: 24px; display: grid; gap: 5px; font-size: 16px; }
.styles-choice__label { font-size: 12px; color: var(--muted); }
#style-reset { width: fit-content; margin-top: 5px; color: var(--violet); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
#style-reset[hidden] { display: none; }
.styles-gallery { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 36px var(--gap); align-items: start; }
.style-option { grid-column: span 2; min-width: 0; scroll-margin-top: 90px; }
.style-option:last-child { grid-column: span 2; }
.style-option__heading { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 12px; }
.style-option__heading > span { display: grid; place-items: center; width: 34px; height: 28px; border-radius: 9px; background: var(--paper-2); font-size: 13px; font-variant-numeric: tabular-nums; transition: background .25s,color .25s; }
.style-option__heading h3 { margin: 0; font-size: clamp(15px,1.25vw,20px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.style-card { --sc-text: var(--ink); --sc-muted: var(--muted); --sc-border: var(--line); display: flex; flex-direction: column; height: 500px; min-width: 0; padding: clamp(22px,1.8vw,30px); background: var(--white); border: 1px solid transparent; border-radius: 28px; color: var(--sc-text); transition: transform .35s var(--ease),border-color .3s; overflow: hidden; }
.style-card:hover { transform: translateY(-4px); border-color: var(--sc-border); }
.style-card h2 { margin: 0; font-size: clamp(24px,1.8vw,28px); font-weight: 500; letter-spacing: -.032em; line-height: 1.06; }
.style-card > p { margin: 14px 0 0; font-size: 15px; line-height: 1.4; color: var(--sc-muted); }
.sc-category { font-size: 14px; color: var(--sc-muted); }
.sc-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--sc-muted); }
.sc-open { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 12px; background: var(--paper); color: var(--violet); font-size: 21px; transition: transform .3s; }
.style-option__bottom > p { min-height: 54px; font-size: 14px; color: var(--muted); line-height: 1.35; margin: 16px 4px 12px; }
.style-select { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; transition: background .25s,color .25s,border-color .25s; }
.style-select > span { font-size: 21px; line-height: 1; }
.style-select:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.style-option.is-selected .style-card { outline: 2px solid var(--violet); outline-offset: 3px; }
.style-option.is-selected .style-option__heading > span { background: var(--violet); color: var(--white); }
.style-select[aria-pressed="true"] { background: var(--violet); color: var(--white); border-color: var(--violet); }
.style-select:focus-visible,.style-card:focus-visible,#style-reset:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
/* 01. Type carries the image: no illustration panel. */
.style-card--type .sc-category { padding-bottom: 24px; }
.style-card--type h2 { font-size: clamp(28px,2.1vw,34px); letter-spacing: -.045em; }
.sc-type-formula { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: auto 0 8px; padding-top: 26px; font-size: clamp(15px,1.2vw,18px); letter-spacing: -.025em; }
.sc-type-formula i { font-style: normal; color: var(--muted); }
.sc-type-formula b { font-weight: 500; color: var(--violet); padding-bottom: 4px; border-bottom: 3px solid var(--lime); }
/* 03. Magazine rhythm: rules, outline type and a clear reading order. */
.style-card--editorial { background: var(--lilac); }
.sc-editorial-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid rgba(88,28,135,.2); font-size: 13px; color: var(--violet); }
.sc-editorial-top .sc-category { color: var(--violet); }
.sc-outline { font-size: clamp(76px,6.3vw,112px); font-weight: 500; line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.3px var(--violet); margin: 25px 0; }
.style-card--editorial h2 { font-size: clamp(25px,1.9vw,30px); }
.style-card--editorial > p { color: rgba(14,12,18,.6); }
.sc-editorial-read { color: var(--violet); font-size: 13px; white-space: nowrap; }
.style-card--editorial .sc-footer { border-top: 1px solid rgba(88,28,135,.2); padding-top: 16px; margin-top: auto; }
/* 04. A poster in the feed: one sign and a sharp contrast. */
.style-card--poster { --sc-text: var(--white); --sc-muted: rgba(251,250,247,.6); --sc-border: rgba(251,250,247,.2); background: var(--ink); }
.sc-poster-sign { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 4px 0 30px; }
.sc-poster-sign > span { color: var(--lime); font-size: clamp(88px,7vw,120px); font-weight: 500; letter-spacing: -.075em; line-height: .85; }
.sc-poster-sign > b { display: grid; place-items: center; width: 52px; height: 58px; border-radius: 17px; background: var(--violet); color: var(--lilac); font-size: 43px; line-height: 1; font-weight: 400; transform: rotate(7deg); }
.style-card--poster h2 { font-size: clamp(25px,1.9vw,30px); }
.style-card--poster .sc-open { background: var(--lime); color: var(--ink); }
/* 05. An explainer: two inputs become one meaningful result. */
.style-card--diagram { background: #E5F59D; }
.sc-diagram { display: grid; align-items: center; flex: 0 0 176px; margin-bottom: 24px; }
.sc-diagram svg { width: 100%; height: auto; overflow: visible; }
.sc-diagram svg > rect { fill: var(--white); }
.sc-diagram text { fill: var(--ink); font: 400 14px var(--f-sans); }
.sc-diagram__route { stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; }
.sc-diagram svg > .sc-diagram__operator { fill: var(--ink); }
.sc-diagram__minus { stroke: var(--lime); stroke-width: 2; stroke-linecap: round; }
.sc-diagram svg > .sc-diagram__result { fill: var(--violet); }
.sc-diagram text.sc-diagram__result-text { fill: var(--white); font-size: 16px; }
.style-card--diagram .sc-open { background: var(--ink); color: var(--lime); }
.style-card--diagram:hover .sc-diagram__route { animation: styleRoute 3s linear infinite; }
@keyframes styleRoute { to { stroke-dashoffset: -40; } }
/* 07. Layered documents, built with flat native shapes. */
.style-card--layers { background: #EAE5DE; }
.sc-layers { position: relative; flex: 0 0 180px; margin: 0 0 24px; }
.sc-layer { position: absolute; border-radius: 16px; padding: 12px 16px; font-size: 11px; }
.sc-layer--back { inset: 0 34px 30px 0; background: var(--violet); color: var(--white); }
.sc-layer--middle { inset: 29px 17px 15px; background: var(--lilac); color: var(--violet); }
.sc-layer--front { inset: 58px 0 0 34px; background: var(--white); }
.sc-layer--front > span { display: block; font-size: 13px; margin-bottom: 10px; }
.sc-layer b { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 7px 0; font-size: 10px; font-weight: 400; color: var(--muted); }
.sc-layer b i { display: block; height: 5px; width: 38%; border-radius: 4px; background: var(--lilac); }
.sc-layer b:nth-of-type(2) i { width: 24%; }
.sc-layer strong { display: flex; justify-content: space-between; align-items: center; font-size: 12px; border-top: 1px solid var(--line); padding-top: 8px; font-weight: 500; }
.sc-layer em { font-style: normal; background: var(--lime); border-radius: 6px; padding: 0 5px; }
.style-card--layers:hover .sc-layer--front { transform: translateY(-3px); }
.sc-layer--front { transition: transform .3s var(--ease); }
/* 08. An actionable checklist with a prominent count. */
.sc-check-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 28px; }
.sc-check-top > span { max-width: 80px; font-size: 13px; color: var(--muted); }
.sc-check-top > b { display: flex; align-items: flex-end; gap: 7px; font-size: 64px; letter-spacing: -.06em; line-height: .8; font-weight: 500; color: var(--violet); }
.sc-check-top b span { font-size: 12px; line-height: 1; letter-spacing: 0; font-weight: 400; }
.sc-checks { display: grid; gap: 9px; margin: auto 0 4px; padding-top: 24px; }
.sc-checks > span { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sc-checks i { display: grid; place-items: center; width: 24px; height: 24px; font-size: 14px; font-style: normal; border-radius: 8px; background: var(--lime); }
.style-card--checklist .sc-footer { margin-top: 16px; }
/* 09. Smooth curves, no surrounding interface panel. */
.style-card--curve { background: #28143C; --sc-text: var(--white); --sc-muted: #C6B8D4; }
.sc-curve { flex: 0 0 180px; margin-bottom: 24px; }
.sc-curve > div { display: flex; justify-content: space-between; font-size: 11px; color: var(--lilac); margin-bottom: 12px; }
.sc-curve > div span:last-child { color: var(--lime); }
.sc-curve svg { width: 100%; height: 130px; overflow: visible; }
.sc-curve-grid { stroke: var(--lilac); stroke-opacity: .1; }
.sc-curve-base { stroke: var(--lilac); stroke-opacity: .6; stroke-width: 1.5; stroke-dasharray: 4 6; }
.sc-curve-fill { fill: var(--lime); fill-opacity: .1; }
.sc-curve-live { stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; }
.sc-curve circle { fill: var(--lime); stroke: #28143C; stroke-width: 3; }
.sc-curve-caption { display: block; color: var(--lilac); font-size: 11px; margin-top: 6px; }
.style-card--curve .sc-open { background: var(--lime); color: var(--ink); }
/* 10. A centered instrument with a single highlighted segment. */
.style-card--focus { background: var(--lilac); }
.sc-focus { position: relative; flex: 0 0 210px; margin-bottom: 24px; }
.sc-focus-label { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--violet); }
.sc-focus svg { display: block; width: 100%; height: 210px; }
.sc-focus-orbit { stroke: var(--violet); stroke-opacity: .2; stroke-dasharray: 2 6; }
.sc-focus-ring { stroke: var(--white); stroke-width: 12; }
.sc-focus-arc { stroke: var(--violet); stroke-width: 12; stroke-linecap: round; }
.sc-focus-dot { fill: var(--lime); stroke: var(--lilac); stroke-width: 3; }
.sc-focus-copy { position: absolute; top:105px; left:50%; transform:translate(-50%,-50%); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; color: var(--violet); text-align: center; width:156px; }
.sc-focus-copy b { font-size: 42px; line-height: 1; letter-spacing: -.035em; font-weight: 500; margin:0; }
.sc-focus-copy > span { font-size: 16px; line-height: 1.25; }
.style-card--focus:hover .sc-focus-orbit { transform: rotate(20deg); transform-origin: 120px 105px; }
.sc-focus-orbit { transition: transform .7s var(--ease); }
.styles-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 24px 0 36px; margin-top: 56px; font-size: 15px; color: var(--muted); }
.styles-footer a:hover { color: var(--violet); }
@media (min-width: 1700px) {
  .styles-gallery { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .style-option,.style-option:last-child { grid-column: auto; }
}
@media (max-width: 1000px) {
  .styles-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .style-option,.style-option:last-child { grid-column: span 2; }
  .styles-intro__bottom { grid-template-columns: 1fr; gap: 24px; }
  .styles-choice { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .styles-lab { padding-top: 110px; }
  .styles-intro h1 { font-size: clamp(43px,9vw,64px); }
  .styles-gallery { grid-template-columns: 1fr; gap: 32px; }
  .style-option,.style-option:last-child { grid-column: 1; }
  .style-card { height: 500px; padding: 24px; }
  .style-card--type h2 { font-size: 32px; }
  .style-card--editorial h2,.style-card--poster h2 { font-size: 27px; }
  .style-option__bottom > p { min-height: 0; }
  .styles-footer { flex-direction: column; gap: 12px; }
}

/* Production journal shares the exact card library. */
.journal-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.journal-cards .style-card { position:relative; height: auto; min-height: 480px; padding-bottom:100px; }
.journal-cards .sc-footer { position:absolute; bottom:28px; left:28px; right:28px; padding:0; min-height:44px; font-size:14px; }
.journal-cards .sc-open { width:44px; height:44px; flex-basis:44px; font-size:26px; border-radius:15px; }
.journal-cards .style-card>p,.journal-copy>p { font-size:16px; line-height:1.45; }
.journal-cards .journal-wide { grid-column:span 2; display:grid; grid-template-columns:1.15fr 1fr; gap:28px; align-items:center; padding:32px 32px 100px; }
.journal-copy,.journal-art { min-width:0; }
.journal-copy .sc-category { display:block; margin-bottom:28px; font-size:16px; }
.journal-cards .journal-wide h2 { font-size:clamp(30px,2.7vw,48px); line-height:1.05; letter-spacing:-.04em; }
.journal-copy>p { color:var(--sc-muted); margin:22px 0 0; }
.journal-art { display:flex; flex-direction:column; justify-content:center; }
.journal-art .sc-type-formula { margin:0; padding:0; justify-content:center; gap:12px; font-size:clamp(20px,1.8vw,30px); line-height:1.5; }
.journal-art .sc-type-formula b { font-size:clamp(30px,3vw,54px); border-bottom-width:4px; }
.journal-art .sc-diagram { flex-basis:auto; margin:0; }
.journal-art .sc-diagram svg { width:100%; }
.styles-intro__bottom { grid-template-columns: 1fr; }
.style-card:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
@media (max-width: 1099px) { .journal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }.journal-cards .journal-wide{min-height:360px}.journal-cards .journal-wide h2{font-size:36px} }
@media (max-width: 640px) { .journal-cards { grid-template-columns: 1fr; }.journal-cards .journal-wide{grid-column:auto;display:flex;align-items:stretch;gap:32px;padding:26px 26px 100px;min-height:480px}.journal-cards .journal-wide h2{font-size:32px}.journal-art .sc-type-formula{font-size:20px}.journal-art .sc-type-formula b{font-size:32px}.journal-art .sc-diagram{max-width:340px;width:100%;margin:auto}.journal-cards .sc-footer{left:26px;right:26px;bottom:26px} }
@media (prefers-reduced-motion: reduce) {
 .style-card, .sc-layer--front, .sc-focus-orbit { transition: none; }
 .style-card:hover { transform: none; }
 .style-card--diagram:hover .sc-diagram__route { animation: none; }
}
/* Article-specific previews keep the shared card composition. */
.sc-curve--forecast{flex-basis:auto;margin-bottom:26px}
.sc-curve--forecast>div{font-size:14px;margin-bottom:10px}
.sc-curve--forecast svg{display:block;width:100%;height:170px}
.sc-curve--forecast .sc-curve-live{stroke-width:3.5;vector-effect:non-scaling-stroke}
.sc-curve--forecast .sc-curve-base{stroke-width:2;stroke-opacity:.8;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sc-curve--forecast .sc-curve-fill{fill:var(--lilac);fill-opacity:.12}
.sc-curve-gap{stroke:var(--lime);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.sc-curve--forecast circle.sc-curve-predicted{fill:var(--lilac);stroke:#28143C;stroke-width:2}
.sc-curve--forecast .sc-curve-caption{font-size:14px;line-height:1.4;margin-top:12px}
.sc-promo-impact{width:100%;max-width:340px;margin:0 auto;color:var(--violet)}
.sc-promo-impact__title{display:block;font-size:18px;line-height:1.3;margin-bottom:24px;color:var(--ink)}
.sc-promo-impact__chart{display:grid;grid-template-columns:minmax(70px,100px) minmax(0,1fr);gap:22px;min-height:230px}
.sc-promo-impact__bar{display:grid;grid-template-rows:1fr 1.4fr;gap:8px}
.sc-promo-impact__bar i{display:block;border-radius:20px;background:var(--lime)}
.sc-promo-impact__bar i:last-child{background:var(--lilac)}
.sc-promo-impact__labels{display:grid;grid-template-rows:1fr 1.4fr;gap:8px}
.sc-promo-impact__labels>span{display:flex;flex-direction:column;justify-content:center;gap:9px;font-size:15px;line-height:1.35;color:var(--muted)}
.sc-promo-impact__labels b{font-size:clamp(25px,2.3vw,38px);line-height:1.05;letter-spacing:-.035em;font-weight:500;color:var(--violet)}
@media(max-width:640px){.sc-promo-impact{max-width:340px}.sc-promo-impact__chart{min-height:190px;grid-template-columns:80px minmax(0,1fr)}.sc-promo-impact__labels b{font-size:30px}}
.sc-promo-widget { display:block;width:100%;max-width:400px;height:auto;margin:auto; }
/* A calm, centered focus ring shared by the preview library. */
.sc-focus { display:grid;place-items:center;flex-basis:246px;margin-bottom:24px;padding:20px 0 0; }
.sc-focus-label { font-size:14px; }
.sc-focus-dial { position:relative;width:min(100%,240px);aspect-ratio:1; }
.sc-focus-dial svg { width:100%;height:auto;display:block; }
.sc-focus-center { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--violet);text-align:center; }
.sc-focus-center b { font-size:44px;font-weight:500;line-height:1;letter-spacing:-.035em; }
.sc-focus-center span { font-size:18px;line-height:1.25; }
/* Article previews: clean edges and metadata aligned with the arrow base. */
.style-card:not(.case-card),.style-card:not(.case-card):hover{border:0}
.style-card:not(.case-card) .sc-footer{align-items:flex-end}
.style-card:not(.case-card) .sc-footer>span:first-child{padding-bottom:3px;line-height:1.35}
/* The ring and its labels share one SVG coordinate system. */
.sc-focus-dial{width:240px;max-width:100%;aspect-ratio:1;flex-shrink:0}
.sc-focus-dial svg{width:100%;height:auto;aspect-ratio:1;overflow:visible}
#bento .home-article-card .sc-focus{flex:0 0 260px;min-height:260px}
