:root {
  --l51-bg: #10062f;
  --l51-bg-deep: #08031d;
  --l51-surface: #1b0e47;
  --l51-surface-2: #24115c;
  --l51-card: #26145d;
  --l51-card-warm: #3b1754;
  --l51-primary: #8b5cf6;
  --l51-primary-deep: #6334d8;
  --l51-saffron: #ffb21c;
  --l51-saffron-soft: #ffd166;
  --l51-emerald: #25c78f;
  --l51-emerald-light: #70e5b9;
  --l51-pink: #ef5da8;
  --l51-text: #fffaf0;
  --l51-muted: #c8bfe2;
  --l51-border: rgba(255, 211, 102, 0.22);
  --l51-border-soft: rgba(255, 255, 255, 0.10);
  --l51-danger: #ff7a8a;
  --l51-shadow: 0 24px 70px rgba(3, 0, 20, 0.38);
  --l51-shadow-soft: 0 14px 38px rgba(7, 2, 36, 0.28);
  --l51-radius-sm: 14px;
  --l51-radius: 22px;
  --l51-radius-lg: 32px;
  --l51-container: 1240px;
  --l51-header-height: 86px;
  --l51-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --l51-font-hi: "Noto Sans Devanagari", "Noto Sans", Mangal, var(--l51-font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 8%, rgba(239, 93, 168, 0.13), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(255, 178, 28, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--l51-bg) 0%, #130938 48%, var(--l51-bg-deep) 100%);
  color: var(--l51-text);
  font-family: var(--l51-font);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
.l51-lang-hi { font-family: var(--l51-font-hi); line-height: 1.82; }
html.l51-nav-open, body.l51-nav-open { overflow: hidden; overscroll-behavior: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--l51-saffron-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff2c0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--l51-saffron-soft); outline-offset: 4px; }
h1, h2, h3, h4 { margin: 0 0 0.7em; color: var(--l51-text); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.l51-lang-hi h1, .l51-lang-hi h2, .l51-lang-hi h3 { line-height: 1.32; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 5.15rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1.15rem; }
ul, ol { padding-inline-start: 1.3rem; }
.l51-container { width: min(calc(100% - 32px), var(--l51-container)); margin-inline: auto; min-width: 0; }
.l51-main { min-height: 65vh; }
.l51-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.l51-skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 10000; padding: 10px 16px; border-radius: 10px; background: #fff; color: #111; transform: translateY(-160%); }
.l51-skip-link:focus { transform: translateY(0); }

/* Header */
.l51-site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--l51-border-soft); background: rgba(13, 5, 41, 0.86); backdrop-filter: blur(18px); box-shadow: 0 8px 34px rgba(5, 0, 28, 0.18); }
.l51-header-band { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 3px; }
.l51-header-band span:nth-child(1) { background: #ff9933; }
.l51-header-band span:nth-child(2) { background: rgba(255,255,255,.92); }
.l51-header-band span:nth-child(3) { background: #138808; }
.l51-header-inner { min-height: var(--l51-header-height); display: grid; grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr); align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.l51-logo { display: inline-flex; justify-self: start; flex: 0 0 auto; text-decoration: none; }
.l51-logo-image { width: 180px; height: 60px; object-fit: contain; object-position: left center; }
.l51-desktop-nav { min-width: 0; justify-self: center; }
.l51-desktop-nav > ul { display: flex; align-items: center; justify-content: center; gap: clamp(2px, .35vw, 8px); min-width: 0; margin: 0; padding: 0; list-style: none; }
.l51-desktop-nav a, .l51-nav-group-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 9px 11px; border: 0; border-radius: 12px; background: transparent; color: #eee8ff; font-size: .91rem; font-weight: 690; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.l51-desktop-nav a:hover, .l51-nav-group-toggle:hover, .l51-desktop-nav [aria-current="page"], .l51-nav-group.is-current > .l51-nav-group-toggle { background: rgba(255, 178, 28, .12); color: #ffe6a6; }
.l51-nav-group { position: relative; }
.l51-submenu { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 20; width: 220px; margin: 0; padding: 9px; list-style: none; border: 1px solid var(--l51-border); border-radius: 18px; background: rgba(28, 13, 71, .98); box-shadow: var(--l51-shadow-soft); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.l51-submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.l51-submenu a { display: flex; width: 100%; padding: 11px 13px; white-space: normal; }
.l51-nav-group.is-open > .l51-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.l51-header-actions { display: flex; align-items: center; gap: 10px; }
.l51-language-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 13px; border: 1px solid var(--l51-border); border-radius: 999px; background: rgba(255,255,255,.045); color: #fff7dc; font-size: .88rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.l51-language-switch:hover { background: rgba(255,178,28,.12); color: #fff; }
.l51-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border: 0; border-radius: 14px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.l51-button-primary { background: linear-gradient(135deg, var(--l51-saffron) 0%, #ff7b29 100%); color: #241105; box-shadow: 0 11px 28px rgba(255, 144, 31, .23), inset 0 1px rgba(255,255,255,.35); }
.l51-button-primary:hover { color: #160802; box-shadow: 0 15px 35px rgba(255, 144, 31, .33); }
.l51-button-secondary { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.065); color: var(--l51-text); }
.l51-menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 1px solid var(--l51-border); border-radius: 14px; background: rgba(255,255,255,.05); cursor: pointer; }
.l51-menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--l51-text); }
.l51-mobile-drawer, .l51-drawer-overlay { display: none; }

/* Home hero */
.l51-home-hero { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 96px) 0 38px; overflow: hidden; }
.l51-home-hero::before { content: ""; position: absolute; z-index: -2; width: 650px; height: 650px; right: -210px; top: -210px; border: 1px solid rgba(255,211,102,.16); border-radius: 50%; box-shadow: 0 0 0 58px rgba(139,92,246,.05), 0 0 0 116px rgba(37,199,143,.035); }
.l51-home-hero::after { content: "✦"; position: absolute; z-index: -1; left: 4%; top: 18%; color: rgba(255,211,102,.23); font-size: 4rem; transform: rotate(12deg); }
.l51-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); align-items: center; gap: clamp(28px, 5vw, 74px); }
.l51-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--l51-saffron-soft); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.l51-lang-hi .l51-eyebrow { letter-spacing: .04em; }
.l51-eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--l51-saffron), var(--l51-emerald)); }
.l51-hero-copy h1 { max-width: 850px; }
.l51-gradient-text { color: var(--l51-saffron-soft); background: linear-gradient(90deg, #ffd166, #ff9b38 42%, #ff6fae); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.l51-hero-lead { max-width: 710px; color: #d9d0ed; font-size: clamp(1.05rem, 1.55vw, 1.25rem); }
.l51-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 28px 0 24px; }
.l51-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; color: var(--l51-muted); font-size: .88rem; list-style: none; }
.l51-hero-trust li::before { content: "✓"; margin-right: 7px; color: var(--l51-emerald); font-weight: 900; }
.l51-hero-media { position: relative; min-width: 0; padding: 12px; }
.l51-hero-media::before { content: ""; position: absolute; inset: 10% 5%; z-index: -1; background: radial-gradient(circle, rgba(255,178,28,.3), rgba(139,92,246,.22) 42%, transparent 70%); filter: blur(28px); }
.l51-hero-image { width: 100%; border: 1px solid rgba(255,211,102,.26); border-radius: 30px 30px 88px 30px; box-shadow: var(--l51-shadow); }
.l51-hero-float { position: absolute; right: 2%; bottom: 3%; width: min(220px, 48%); padding: 15px 17px; border: 1px solid rgba(255,255,255,.17); border-radius: 17px; background: rgba(17,6,46,.88); backdrop-filter: blur(12px); box-shadow: var(--l51-shadow-soft); }
.l51-hero-float strong { display: block; font-size: 1.28rem; color: var(--l51-saffron-soft); }
.l51-hero-float span { color: var(--l51-muted); font-size: .78rem; }
.l51-independent-notice { display: flex; align-items: flex-start; gap: 10px 18px; max-width: 760px; padding: 13px 16px; border: 1px solid rgba(255,211,102,.28); border-radius: 14px; background: rgba(255,178,28,.075); color: #f4ebff; font-size: .85rem; }
.l51-independent-notice strong { color: var(--l51-saffron-soft); white-space: nowrap; }

/* Sections and cards */
.l51-home-section, .l51-faq, .l51-related { padding: clamp(52px, 7vw, 88px) 0; }
.l51-section-heading { max-width: 780px; margin-bottom: 30px; }
.l51-section-heading > span { display: block; margin-bottom: 8px; color: var(--l51-emerald); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.l51-section-heading p { color: var(--l51-muted); font-size: 1.06rem; }
.l51-bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.l51-bento-card { position: relative; min-width: 0; overflow: hidden; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--l51-border-soft); border-radius: var(--l51-radius); background: linear-gradient(145deg, rgba(43,23,105,.91), rgba(27,13,68,.94)); box-shadow: var(--l51-shadow-soft); }
.l51-bento-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -55px; bottom: -65px; border: 1px solid rgba(255,211,102,.17); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,178,28,.025); }
.l51-bento-card:nth-child(1), .l51-bento-card:nth-child(4) { grid-column: span 7; }
.l51-bento-card:nth-child(2), .l51-bento-card:nth-child(3) { grid-column: span 5; }
.l51-bento-card h3 { max-width: 460px; }
.l51-bento-card p { color: var(--l51-muted); }
.l51-card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.l51-card-tag { display: inline-flex; padding: 5px 9px; margin-bottom: 16px; border-radius: 999px; background: rgba(37,199,143,.12); color: #73e9bd; font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.l51-media-section { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 6vw, 80px); padding: clamp(30px, 5vw, 62px); border: 1px solid var(--l51-border); border-radius: var(--l51-radius-lg); background: linear-gradient(135deg, rgba(91,38,141,.52), rgba(24,12,65,.82) 58%, rgba(8,67,64,.42)); overflow: hidden; }
.l51-media-section.is-reverse .l51-media-copy { order: -1; }
.l51-media-section figure { margin: 0; min-width: 0; }
.l51-media-section img { width: 100%; border-radius: 20px 20px 58px 20px; box-shadow: var(--l51-shadow-soft); }
.l51-media-copy p { color: #d8cfec; }
.l51-check-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.l51-check-list li { position: relative; padding: 12px 15px 12px 43px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.035); overflow-wrap: anywhere; }
.l51-check-list li::before { content: "✓"; position: absolute; left: 15px; color: var(--l51-emerald); font-weight: 900; }
.l51-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.l51-stat { padding: 23px; border: 1px solid var(--l51-border-soft); border-radius: 18px; background: rgba(255,255,255,.045); }
.l51-stat strong { display: block; color: var(--l51-saffron-soft); font-size: 1.7rem; }
.l51-stat span { color: var(--l51-muted); font-size: .88rem; }
.l51-info-table-wrap { overflow-x: auto; border: 1px solid var(--l51-border-soft); border-radius: 18px; }
.l51-info-table { width: 100%; min-width: 650px; border-collapse: collapse; background: rgba(19,8,54,.78); }
.l51-info-table th, .l51-info-table td { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
.l51-info-table th { color: var(--l51-saffron-soft); background: rgba(255,178,28,.07); }
.l51-info-table tr:last-child td { border-bottom: 0; }

/* Standard pages */
.l51-page-main { padding: 28px 0 72px; }
.l51-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 4px 0 30px; color: var(--l51-muted); font-size: .85rem; }
.l51-breadcrumb a { color: var(--l51-saffron-soft); text-decoration: none; }
.l51-page-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(340px, .76fr); align-items: center; gap: clamp(30px, 5vw, 68px); padding: clamp(32px, 5vw, 64px); border: 1px solid var(--l51-border); border-radius: var(--l51-radius-lg); background: linear-gradient(145deg, rgba(48,20,104,.88), rgba(22,10,58,.94) 62%, rgba(8,76,70,.48)); box-shadow: var(--l51-shadow); overflow: hidden; }
.l51-page-hero h1 { font-size: clamp(2.15rem, 4.5vw, 4.15rem); }
.l51-page-hero-copy > p { max-width: 760px; color: #dbd3ec; font-size: 1.08rem; }
.l51-page-hero-media { margin: 0; min-width: 0; }
.l51-page-image { width: 100%; max-height: 430px; object-fit: cover; border: 1px solid rgba(255,255,255,.15); border-radius: 18px 18px 60px 18px; box-shadow: var(--l51-shadow-soft); }
.l51-prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 34px; padding-top: 58px; }
.l51-prose { min-width: 0; }
.l51-content-section { padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid rgba(255,255,255,.09); }
.l51-content-section h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.l51-content-section p { color: #d5cce7; }
.l51-content-accent { padding: clamp(24px, 4vw, 40px); border: 1px solid rgba(255,211,102,.18); border-radius: 22px; background: linear-gradient(145deg, rgba(255,178,28,.075), rgba(139,92,246,.08)); }
.l51-page-aside { position: sticky; top: calc(var(--l51-header-height) + 24px); display: grid; gap: 14px; min-width: 0; }
.l51-aside-card { padding: 24px; border: 1px solid rgba(37,199,143,.3); border-radius: 20px; background: rgba(15,65,61,.31); }
.l51-aside-card > span { color: #70e5b9; font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.l51-aside-card h2 { margin-top: 8px; font-size: 1.3rem; }
.l51-aside-card p { margin: 0; color: var(--l51-muted); font-size: .9rem; }
.l51-aside-cta { width: 100%; }
.l51-faq { border-top: 1px solid rgba(255,255,255,.08); }
.l51-faq-list { display: grid; gap: 12px; max-width: 940px; }
.l51-faq-item { border: 1px solid var(--l51-border-soft); border-radius: 16px; background: rgba(255,255,255,.04); overflow: hidden; }
.l51-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; color: var(--l51-text); font-weight: 780; cursor: pointer; list-style: none; }
.l51-faq-item summary::-webkit-details-marker { display: none; }
.l51-faq-item summary::after { content: "+"; color: var(--l51-saffron-soft); font-size: 1.45rem; }
.l51-faq-item[open] summary::after { content: "−"; }
.l51-faq-item div { padding: 0 20px 18px; color: var(--l51-muted); }
.l51-faq-item p { margin: 0; }
.l51-related { border-top: 1px solid rgba(255,255,255,.08); }
.l51-related h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
.l51-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.l51-prediction-links { margin-top: 18px; }
.l51-related-card { display: flex; justify-content: space-between; gap: 15px; min-width: 0; padding: 18px; border: 1px solid var(--l51-border-soft); border-radius: 15px; background: rgba(255,255,255,.04); color: var(--l51-text); font-weight: 760; text-decoration: none; overflow-wrap: anywhere; }
.l51-related-card:hover { border-color: var(--l51-saffron); background: rgba(255,178,28,.08); }

/* Search, archive and 404 */
.l51-system-page { padding: clamp(64px, 10vw, 130px) 0; }
.l51-system-card { max-width: 880px; padding: clamp(30px, 6vw, 70px); border: 1px solid var(--l51-border); border-radius: 32px; background: linear-gradient(145deg, rgba(49,21,109,.86), rgba(19,7,54,.94)); box-shadow: var(--l51-shadow); }
.l51-system-card h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.l51-search-form { display: flex; gap: 10px; margin: 24px 0; }
.l51-search-form label { flex: 1; }
.l51-search-form input { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--l51-border); border-radius: 13px; background: rgba(255,255,255,.07); color: var(--l51-text); }
.l51-post-list { display: grid; gap: 16px; margin-top: 30px; }
.l51-post-card { padding: 24px; border: 1px solid var(--l51-border-soft); border-radius: 18px; background: rgba(255,255,255,.04); }
.l51-post-card a { color: var(--l51-text); text-decoration: none; }

/* Footer */
.l51-site-footer { position: relative; margin-top: 70px; padding-top: 42px; border-top: 1px solid var(--l51-border); background: radial-gradient(circle at 10% 20%, rgba(239,93,168,.12), transparent 30rem), linear-gradient(180deg, #0b0424, #050210); }
.l51-footer-topline { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #ff9933, #ffd66b 28%, #8b5cf6 52%, #25c78f 76%, #138808); }
.l51-footer-notices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 46px; }
.l51-footer-notices span { display: flex; align-items: center; min-width: 0; padding: 11px 13px; border: 1px solid rgba(255,211,102,.17); border-radius: 12px; background: rgba(255,178,28,.055); color: #e7def4; font-size: .8rem; overflow-wrap: anywhere; }
.l51-footer-notices b { margin-right: 7px; color: var(--l51-saffron-soft); }
.l51-footer-grid { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); gap: clamp(26px, 3vw, 46px); }
.l51-footer-brand p { color: var(--l51-muted); font-size: .9rem; }
.l51-footer-independent { padding-left: 12px; border-left: 3px solid var(--l51-saffron); color: #fff3c8 !important; }
.l51-footer-nav h2 { margin-bottom: 17px; color: var(--l51-saffron-soft); font-size: 1rem; letter-spacing: .01em; }
.l51-footer-nav ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.l51-footer-nav a { color: #cfc5e5; font-size: .86rem; text-decoration: none; }
.l51-footer-nav a:hover { color: #fff; }
.l51-footer-small { margin-top: 15px; color: #9f94b9; font-size: .74rem; line-height: 1.6; }
.l51-footer-responsible { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 48px 0 30px; padding: 24px; border: 1px solid rgba(37,199,143,.27); border-radius: 20px; background: rgba(13,68,60,.25); }
.l51-age-mark { display: grid; place-items: center; width: 62px; aspect-ratio: 1; border: 2px solid var(--l51-saffron); border-radius: 50%; color: var(--l51-saffron-soft); font-size: 1.25rem; font-weight: 900; }
.l51-footer-responsible h2 { margin-bottom: 6px; font-size: 1.18rem; }
.l51-footer-responsible p { margin: 0; color: var(--l51-muted); font-size: .84rem; }
.l51-footer-responsible > a { white-space: nowrap; font-weight: 800; }
.l51-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0 28px; border-top: 1px solid rgba(255,255,255,.08); color: #9286ab; font-size: .78rem; }
.l51-footer-bottom p { margin: 0; }
.l51-footer-bottom a { white-space: nowrap; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .l51-button:hover { transform: translateY(-2px); }
  .l51-bento-card, .l51-related-card { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
  .l51-bento-card:hover { transform: translateY(-4px); border-color: rgba(255,211,102,.38); }
  .l51-nav-group:hover > .l51-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

@media (max-width: 1240px) {
  :root { --l51-header-height: 76px; }
  .l51-desktop-nav, .l51-desktop-cta { display: none; }
  .l51-header-inner { grid-template-columns: auto 1fr; }
  .l51-header-actions { justify-self: end; }
  .l51-menu-toggle { display: block; }
  .l51-mobile-drawer { display: flex; position: fixed; inset: 0 0 0 auto; z-index: 100002; flex-direction: column; width: min(430px, 100%); height: 100vh; height: 100dvh; max-height: 100dvh; background: linear-gradient(160deg, #24115d, #0b0325); box-shadow: -24px 0 80px rgba(0,0,0,.5); overflow: hidden; overscroll-behavior: contain; touch-action: pan-y; transform: translateX(102%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .l51-mobile-drawer.is-open { transform: translateX(0); visibility: visible; }
  .l51-drawer-overlay { display: block; position: fixed; inset: 0; z-index: 100001; background: rgba(3,1,12,.72); opacity: 0; visibility: hidden; touch-action: none; transition: opacity .25s ease, visibility .25s; }
  .l51-drawer-overlay.is-open { opacity: 1; visibility: visible; }
  .l51-drawer-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) 18px 16px; border-bottom: 1px solid var(--l51-border-soft); }
  .l51-drawer-title { font-weight: 850; }
  .l51-drawer-close { width: 44px; height: 44px; border: 1px solid var(--l51-border); border-radius: 13px; background: rgba(255,255,255,.05); color: var(--l51-text); font-size: 1.8rem; cursor: pointer; }
  .l51-mobile-drawer > nav { flex: 1 1 auto; min-height: 0; padding: 0 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
  .l51-mobile-drawer nav > ul { display: grid; gap: 5px; margin: 14px 0; padding: 0; list-style: none; }
  .l51-mobile-drawer nav > ul > li > a, .l51-mobile-drawer .l51-nav-group-toggle { display: flex; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 13px; border: 0; border-radius: 12px; background: transparent; color: var(--l51-text); font-weight: 740; text-decoration: none; text-align: left; cursor: pointer; }
  .l51-mobile-drawer nav > ul > li > a:hover, .l51-mobile-drawer .l51-nav-group-toggle:hover { background: rgba(255,178,28,.08); }
  .l51-mobile-drawer .l51-submenu { position: static; display: none; width: 100%; padding: 4px 0 4px 15px; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .l51-mobile-drawer .l51-nav-group.is-open > .l51-submenu { display: grid; }
  .l51-mobile-drawer .l51-submenu a { display: flex; padding: 11px 14px; border-left: 2px solid rgba(255,211,102,.25); color: var(--l51-muted); text-decoration: none; }
  .l51-drawer-actions { display: grid; flex: 0 0 auto; gap: 12px; padding: 16px 18px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--l51-border-soft); background: rgba(8,3,29,.42); }
  .l51-drawer-language { width: 100%; }
  .l51-footer-grid { grid-template-columns: 1.35fr repeat(2, 1fr); }
  .l51-footer-brand { grid-row: span 2; }
}

@media (max-width: 900px) {
  .l51-hero-grid, .l51-page-hero, .l51-media-section, .l51-prose-layout { grid-template-columns: 1fr; }
  .l51-hero-media { max-width: 740px; margin-inline: auto; }
  .l51-page-hero-media { max-width: 680px; }
  .l51-media-section.is-reverse .l51-media-copy { order: 0; }
  .l51-page-aside { position: static; grid-template-columns: 1fr auto; }
  .l51-aside-cta { width: auto; min-width: 220px; }
  .l51-related-grid { grid-template-columns: repeat(2, 1fr); }
  .l51-stats-row { grid-template-columns: repeat(2, 1fr); }
  .l51-footer-notices { grid-template-columns: repeat(2, 1fr); }
  .l51-footer-responsible { grid-template-columns: auto 1fr; }
  .l51-footer-responsible > a { grid-column: 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .l51-container { width: min(calc(100% - 24px), var(--l51-container)); }
  .l51-logo-image { width: 145px; height: 48px; }
  .l51-header-inner { min-height: 70px; gap: 10px; }
  .l51-header-actions { gap: 7px; }
  .l51-header-actions > .l51-language-switch { min-height: 40px; padding: 7px 10px; font-size: .78rem; }
  .l51-menu-toggle { width: 42px; height: 42px; padding: 9px; }
  .l51-home-hero { padding-top: 38px; }
  .l51-hero-grid { gap: 24px; }
  .l51-hero-media { padding: 0; }
  .l51-hero-image { border-radius: 21px 21px 48px 21px; }
  .l51-hero-float { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -12px; }
  .l51-independent-notice { display: grid; gap: 2px; }
  .l51-independent-notice strong { white-space: normal; }
  .l51-hero-actions .l51-button { width: 100%; }
  .l51-bento-grid { grid-template-columns: 1fr; }
  .l51-bento-card:nth-child(n) { grid-column: auto; }
  .l51-media-section { padding: 22px; border-radius: 23px; }
  .l51-media-section img { border-radius: 15px 15px 42px 15px; }
  .l51-stats-row, .l51-related-grid, .l51-page-aside { grid-template-columns: 1fr; }
  .l51-page-main { padding-top: 18px; }
  .l51-page-hero { padding: 24px 20px; border-radius: 24px; }
  .l51-page-hero h1 { overflow-wrap: anywhere; }
  .l51-page-image { max-height: none; border-radius: 15px 15px 42px 15px; }
  .l51-prose-layout { padding-top: 42px; }
  .l51-content-section { padding-bottom: 31px; margin-bottom: 31px; }
  .l51-content-accent { padding: 21px 18px; }
  .l51-aside-cta { width: 100%; min-width: 0; }
  .l51-search-form { flex-direction: column; }
  .l51-footer-notices, .l51-footer-grid { grid-template-columns: 1fr; }
  .l51-footer-brand { grid-row: auto; }
  .l51-footer-nav { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
  .l51-footer-responsible { grid-template-columns: 1fr; text-align: left; }
  .l51-footer-responsible > a { grid-column: auto; white-space: normal; }
  .l51-age-mark { width: 54px; }
  .l51-footer-bottom { flex-direction: column; }
  .l51-mobile-drawer { width: 100%; }
}

@media (max-width: 390px) {
  .l51-header-actions > .l51-language-switch { display: none; }
  .l51-logo-image { width: 150px; }
  .l51-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.l51-generic-content, .l51-archive-header, .l51-not-found { max-width: 920px; margin: 0 auto 32px; }
.l51-generic-content h1, .l51-archive-header h1, .l51-not-found h1 { font-size: clamp(2rem, 5vw, 4rem); }
.l51-featured-media img { width: 100%; height: auto; border-radius: 22px; }
.l51-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.l51-post-card { min-width: 0; padding: 23px; border: 1px solid var(--l51-border-soft); border-radius: 19px; background: var(--l51-card); }
.l51-post-card > span, .l51-post-card p { color: var(--l51-muted); }
.l51-post-card h2 { font-size: 1.3rem; }
.l51-post-card h2 a { color: var(--l51-text); text-decoration: none; }
.l51-not-found { padding: clamp(40px, 8vw, 90px) 0; text-align: center; }
.l51-not-found-code { display: block; color: var(--l51-saffron); font-size: clamp(5rem, 18vw, 12rem); font-weight: 900; line-height: .82; opacity: .16; }
@media (max-width: 820px) { .l51-post-grid { grid-template-columns: 1fr; } }
