/* Metablis CMS — styles for page blocks, announcement bar and popup. Built on the site's own tokens. */

/* ---------- announcement bar ---------- */
.cms-ann { display: none; }
html.has-ann { --ann-h: 42px; }
html.has-ann .cms-ann { display: flex; position: fixed; inset: 0 0 auto 0; height: var(--ann-h); z-index: 70; align-items: center; justify-content: center; gap: 12px; padding: 0 44px; font-weight: 800; font-size: .92rem; color: var(--on-accent); background: var(--grad); }
html.has-ann .cms-ann p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.has-ann .cms-ann a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.cms-ann-accent { background: var(--accent) !important; }
.cms-ann-dark { background: #05021A !important; color: #fff !important; box-shadow: 0 1px 0 var(--line); }
.cms-ann-light { background: #fff !important; color: var(--ink) !important; }
.cms-ann-cd { font-variant-numeric: tabular-nums; background: rgba(0,0,0,.14); padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.cms-ann-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.14); color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
html.has-ann .site-header { top: var(--ann-h); }
html.has-ann body { padding-top: var(--ann-h); }
html.has-ann .drawer { top: var(--ann-h); }
@media (max-width: 640px) { html.has-ann { --ann-h: 48px; } html.has-ann .cms-ann { font-size: .8rem; padding: 0 40px 0 12px; justify-content: flex-start; } html.has-ann .cms-ann p { white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* ---------- popup ---------- */
.cms-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(5, 2, 26, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.cms-pop[hidden] { display: none; }
.cms-pop.on { opacity: 1; }
.cms-pop-card { position: relative; width: min(460px, 100%); padding: 34px 30px 28px; border-radius: var(--r-xl); text-align: left; transform: translateY(18px) scale(.97); transition: transform .45s cubic-bezier(.2,.9,.2,1.2); background: color-mix(in srgb, var(--bg) 88%, #fff 4%); max-height: calc(100vh - 40px); overflow: auto; }
.cms-pop.on .cms-pop-card { transform: none; }
.cms-pop-card h3 { font-size: var(--t-xl); margin: 0 0 .3em; }
.cms-pop-img { width: 96px; height: 96px; object-fit: contain; float: right; margin: -10px -6px 4px 12px; animation: cms-float 4s ease-in-out infinite; }
.cms-pop-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); color: var(--text); font-size: 1.4rem; cursor: pointer; z-index: 2; }
.cms-pop-form { clear: both; margin-top: 12px; }
.cms-pop-form .btn { width: 100%; justify-content: center; }
@keyframes cms-float { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* ---------- blocks ---------- */
.cms-block .cms-b-text { max-width: 760px; }
.cms-rich > :first-child { margin-top: 0; }
.cms-rich p { color: var(--muted); font-size: var(--t-l); line-height: 1.6; }
.cms-rich a { color: var(--accent); }
.day .cms-rich a { color: var(--blue); }
.lede-ish p { font-size: var(--t-l); }
.jc-c { justify-content: center; }
.cms-b-img img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); object-fit: cover; max-height: 560px; }
.cms-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.cms-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.cms-ticks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; background: var(--grad); color: var(--on-accent); }
.day .cms-ticks li::before { background: var(--ink); color: #fff; }
.cms-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: calc(var(--r-l) - 8px); margin-bottom: 8px; }
.cms-block .feature { padding: 28px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--r-l); }
.cms-block .feature h3 { margin: 0; }
.cms-block .feature p { color: var(--muted); margin: 0; }
.cms-block .feature .link-arrow { margin-top: auto; }
.cms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 28px; border-radius: var(--r-xl); margin-top: 24px; }
.cms-stat { text-align: center; padding: 8px; }
.cms-stat b { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.day .cms-stat b { background: none; color: var(--ink); }
.cms-stat span { color: var(--muted); font-weight: 700; }
.cms-quote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.cms-quote blockquote { margin: 0; font-size: 1.12rem; line-height: 1.6; font-weight: 600; }
.cms-quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.cms-quote figcaption img, .cms-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.cms-av { display: grid; place-items: center; background: var(--grad); color: var(--on-accent); font-weight: 900; font-size: 1.2rem; }
.cms-quote b { display: block; } .cms-quote small { color: var(--muted); }
.cms-stars { color: var(--spark); letter-spacing: 2px; font-size: 1.1rem; }
.cms-plans { align-items: stretch; }
.cms-plan { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--r-l); }
.cms-plan.is-hl { box-shadow: 0 0 0 2px var(--accent), 0 30px 60px -30px var(--glow); }
.day .cms-plan.is-hl { box-shadow: 0 0 0 2px var(--ink), 0 30px 60px -30px rgba(46,10,117,.5); }
.cms-plan h3 { margin: 0; font-size: var(--t-xl); }
.cms-plan .muted { margin: 0; }
.cms-plan-badge { position: absolute; top: -14px; right: 20px; }
.cms-price b { font-family: var(--f-display); font-size: 2.4rem; }
.cms-price span { color: var(--muted); margin-left: 6px; font-weight: 700; }
.cms-plan .btn { margin-top: auto; align-self: flex-start; }
.cms-plan .cms-ticks { margin: 6px 0 14px; }
.cms-video { padding: 10px; border-radius: var(--r-xl); max-width: 980px; margin: 0 auto; }
.cms-video iframe, .cms-video video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: calc(var(--r-xl) - 10px); display: block; background: #000; }
.cms-gal { margin: 0; overflow: hidden; border-radius: var(--r-l); position: relative; }
.cms-gal img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s; display: block; }
.cms-gal:hover img { transform: scale(1.05); }
.cms-gal figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.cms-person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cms-person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; box-shadow: 0 0 0 4px var(--glass-line); }
.cms-person h3 { margin: 0; } .cms-role { color: var(--accent); font-weight: 800; margin: 0; } .day .cms-role { color: var(--blue); }
.cms-logos { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: center; align-items: center; margin-top: 18px; }
.cms-logos img { height: 44px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; transition: .3s; }
.day .cms-logos img { filter: grayscale(1); }
.cms-logos a:hover img, .cms-logos span:hover img { filter: none; opacity: 1; }
.cms-cd { text-align: center; max-width: 760px; margin: 0 auto; }
.cms-cd .countdown { justify-content: center; }
.cms-notice { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: var(--r-l); }
.cms-notice h3 { margin: 0 0 4px; }
.cms-n-ic { font-size: 2rem; line-height: 1; }
.cms-notice.cms-warn { box-shadow: inset 4px 0 0 var(--spark); }
.cms-notice.cms-success { box-shadow: inset 4px 0 0 var(--lime); }
.cms-notice.cms-info { box-shadow: inset 4px 0 0 var(--accent); }
.cms-map { padding: 8px; border-radius: var(--r-l); }
.cms-map iframe { width: 100%; height: 360px; border: 0; border-radius: calc(var(--r-l) - 8px); display: block; }
.cms-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r-l); }
.cms-night-wrap { background: var(--bg); color: var(--text); --muted: #B9B2DC; --line: rgba(190,175,255,.18); color-scheme: dark; }
.cms-day-wrap { padding: 1px 0; }
.article-cover { width: 100%; border-radius: var(--r-l); margin-bottom: 24px; }
@media (max-width: 900px) { .cms-b-steps .steps { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .cms-b-steps .steps { grid-template-columns: 1fr !important; } }
