/* ==========================================================================
   ChemSphere Monthly — front-end stylesheet
   Brand colours are injected as CSS variables from Admin → Settings (see layouts/main.php)
   ========================================================================== */
:root {
  --navy: #10243A; --blue: #1769AA; --gold: #D6A84F; --bg: #F5F7FA; --white: #fff; --text: #273444;
  --navy-2: #0B1A2B; --blue-50: #EAF2FA; --gold-50: #FBF4E6; --muted: #5E6E82; --line: #E2E8F0; --line-2: #EEF2F6;
  --success: #1E8E5A; --danger: #C0392B; --warning: #B7791F;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,36,58,.06), 0 1px 3px rgba(16,36,58,.05);
  --shadow: 0 6px 24px -8px rgba(16,36,58,.16), 0 2px 6px rgba(16,36,58,.05);
  --shadow-lg: 0 30px 60px -20px rgba(16,36,58,.35), 0 10px 24px -12px rgba(16,36,58,.25);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.bg-soft { background: var(--bg); }
.bg-navy { background: var(--navy); color: #C9D6E5; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------- eyebrow & section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.plain::before { display: none; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 640px; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 560px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; transition: all .22s var(--ease); white-space: nowrap; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -10px var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e3b964; color: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--gold); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost { background: transparent; color: var(--navy); padding-inline: 12px; }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c7c2; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.badge-success { background: #E3F5EC; color: #136B43; } .badge-warning { background: #FDF1DC; color: #8A5A12; }
.badge-danger { background: #FBE6E4; color: #9B2C20; } .badge-info { background: var(--blue-50); color: var(--blue); }
.badge-muted { background: #EDF1F5; color: #4A5A6E; } .badge-gold { background: var(--gold-50); color: #8C6420; }
.badge-premium { background: var(--navy); color: var(--gold); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.sample-flag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); background: #F1F4F8; border: 1px dashed #CBD5E1; padding: 3px 10px; border-radius: 999px; }

/* ---------- announcement & header ---------- */
.announce { background: var(--navy); color: #D3DEEA; font-size: .86rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; padding: 6px 0; }
.announce a { color: #fff; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.announce a:hover { color: var(--gold); }
.announce .pill { background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 999px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(16,36,58,.35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { position: relative; padding: 10px 14px; color: var(--navy); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: all .2s; }
.icon-btn:hover { border-color: var(--navy); }
.burger { display: none; }
.account-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); padding: 8px 12px; border-radius: 999px; }
.account-link:hover { background: var(--line-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; }
.search-panel { display: none; border-top: 1px solid var(--line); background: #fff; }
.search-panel.open { display: block; animation: drop .25s var(--ease); }
.search-panel form { display: flex; gap: 10px; padding: 18px 0; flex-wrap: wrap; }
.search-panel input { flex: 1 1 280px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1rem; }
.search-panel input:focus { outline: none; border-color: var(--blue); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mobile-nav { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgba(11,26,43,.55); opacity: 0; transition: opacity .3s; }
.mobile-nav .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 22px; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.mobile-nav.open { pointer-events: auto; }
.mobile-nav.open .scrim { opacity: 1; }
.mobile-nav.open .panel { transform: none; }
.mobile-nav .panel a.nav-link { padding: 14px 6px; border-bottom: 1px solid var(--line-2); color: var(--navy); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .panel .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, color-mix(in srgb, var(--blue) 55%, transparent), transparent 60%), linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, #143457 100%); color: #C9D6E5; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url("../img/pattern-hex.svg"); background-size: 64px; opacity: .07; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: clamp(56px, 8vw, 108px) 0 clamp(64px, 8vw, 112px); }
.hero h1 { color: #fff; font-weight: 500; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 560px; color: #B9C8D9; margin-bottom: 34px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--serif); font-size: 1.7rem; color: #fff; font-weight: 500; }
.hero-meta span { font-size: .82rem; color: #8FA3BA; letter-spacing: .02em; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; perspective: 1600px; }
.hero-visual .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 35%, transparent), transparent 65%); filter: blur(20px); }
.stack { position: relative; width: min(380px, 78%); aspect-ratio: 3/4; }
.stack .back { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg); }
.stack .back-1 { transform: translate(-22%, 6%) rotate(-9deg) scale(.88); opacity: .55; filter: saturate(.8); }
.stack .back-2 { transform: translate(20%, 4%) rotate(8deg) scale(.9); opacity: .7; }
.cover-3d { position: relative; width: 100%; height: 100%; transform: rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .7s var(--ease); border-radius: 4px 8px 8px 4px; box-shadow: 30px 40px 70px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.cover-3d img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px 8px 8px 4px; }
.cover-3d::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.18) 40%, rgba(0,0,0,0)); border-radius: 4px 0 0 4px; z-index: 2; }
.cover-3d::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 35%); border-radius: inherit; pointer-events: none; }
.hero-visual:hover .cover-3d { transform: rotateY(-4deg) rotateX(1deg) translateY(-6px); }
.float-card { position: absolute; background: rgba(255,255,255,.96); color: var(--text); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: .85rem; max-width: 250px; animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; color: var(--navy); font-size: .92rem; }
.float-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-50); color: #9A6E1C; display: grid; place-items: center; }
.float-card.fc-1 { left: -4%; bottom: 14%; }
.float-card.fc-2 { right: -6%; top: 2%; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- latest edition feature ---------- */
.edition-feature { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.edition-cover { position: relative; }
.edition-cover .cover-3d { transform: rotateY(-8deg); aspect-ratio: 3/4; }
.edition-cover:hover .cover-3d { transform: rotateY(0) translateY(-6px); }
.edition-cover .ribbon { position: absolute; top: 18px; right: -10px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .72rem; letter-spacing: .12em; padding: 6px 14px; border-radius: 4px; z-index: 3; box-shadow: var(--shadow); }
.edition-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.edition-meta span { display: inline-flex; gap: 6px; align-items: center; }
.inside-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.inside-list li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.inside-list li b { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; min-width: 30px; font-weight: 600; }
.inside-list li span { color: var(--navy); font-weight: 500; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card-pad { padding: 28px; }
.card:hover.lift, .lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.a-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%; }
.a-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.a-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.a-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.a-card:hover .thumb img { transform: scale(1.05); }
.a-card .thumb .badge { position: absolute; top: 14px; left: 14px; }
.a-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.a-card h3 { font-size: 1.16rem; margin: 10px 0 10px; line-height: 1.32; }
.a-card h3 a { color: var(--navy); }
.a-card h3 a:hover { color: var(--blue); }
.a-card p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.byline { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.byline .dot { width: 3px; height: 3px; background: #A9B6C6; border-radius: 50%; }

/* news lead + list */
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; }
.lead-story { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.lead-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.lead-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,43,0) 20%, rgba(11,26,43,.92) 85%); z-index: -1; }
.lead-story:hover img { transform: scale(1.04); }
.lead-story .inner { padding: 36px; }
.lead-story h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 12px 0; }
.lead-story h3 a { color: #fff; }
.lead-story p { color: #C9D6E5; max-width: 560px; }
.lead-story .byline { color: #9FB2C8; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.news-item:first-child { padding-top: 0; }
.news-item .thumb { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--navy); }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-item:hover .thumb img { transform: scale(1.06); }
.news-item h4 { font-size: 1.02rem; margin: 6px 0 8px; line-height: 1.35; font-family: var(--serif); font-weight: 600; }
.news-item h4 a { color: var(--navy); }
.news-item h4 a:hover { color: var(--blue); }

/* insight dark cards */
.insight-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #C9D6E5; display: flex; flex-direction: column; min-height: 460px; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s; }
.insight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.insight-card img { position: absolute; inset: 0; width: 100%; height: 58%; object-fit: cover; z-index: -2; opacity: .9; }
.insight-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,36,58,0) 10%, var(--navy) 56%); z-index: -1; }
.insight-card .body { margin-top: auto; padding: 30px; }
.insight-card h3 { color: #fff; font-size: 1.35rem; line-height: 1.3; }
.insight-card h3 a { color: #fff; }
.insight-card h3 a::after { content: ""; position: absolute; inset: 0; }
.insight-card .tag { color: var(--gold); }
.insight-card .byline { color: #8FA3BA; }

/* category tiles */
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: all .3s var(--ease); }
.cat-tile::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--blue-50); transition: transform .5s var(--ease); z-index: 0; }
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.cat-tile:hover::after { transform: scale(1.6); background: var(--gold-50); }
.cat-tile .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.cat-tile .ic .icon { width: 26px; height: 26px; }
.cat-tile h3 { margin: 0; font-size: 1.2rem; }
.cat-tile p { margin: 0; font-size: .92rem; color: var(--muted); }
.cat-tile .go { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--blue); }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.benefit { background: var(--navy); padding: 34px; transition: background .3s; }
.benefit:hover { background: #142c47; }
.benefit .ic { width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(214,168,79,.4); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.benefit h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.benefit p { margin: 0; font-size: .93rem; color: #9FB2C8; }
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.why-grid .sticky { position: sticky; top: calc(var(--header-h) + 30px); }

/* ad band */
.ad-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(120deg, var(--gold-50), #fff 60%); border: 1px solid #EFDDB8; display: grid; grid-template-columns: 1.1fr 1fr; }
.ad-band .copy { padding: clamp(32px, 5vw, 60px); }
.ad-band .formats { padding: clamp(28px, 4vw, 48px); background: var(--navy); color: #C9D6E5; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.ad-band .formats div { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: .9rem; color: #E1E9F2; }
.ad-band .formats .icon { color: var(--gold); }

/* newsletter */
.newsletter { border-radius: var(--radius-lg); background: radial-gradient(600px 300px at 90% 0%, color-mix(in srgb, var(--blue) 60%, transparent), transparent 70%), var(--navy); color: #C9D6E5; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 240px; padding: 15px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.newsletter input::placeholder { color: #8FA3BA; }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.newsletter .fine { font-size: .8rem; color: #8FA3BA; margin-top: 12px; }

/* events */
.event { display: flex; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .3s var(--ease); }
.event:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.event .date { flex: 0 0 74px; height: 84px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event .date b { font-family: var(--serif); font-size: 1.9rem; line-height: 1; font-weight: 500; }
.event .date span { font-size: .72rem; letter-spacing: .14em; color: var(--gold); font-weight: 700; margin-top: 4px; }
.event h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.event p { margin: 0; font-size: .9rem; color: var(--muted); }
.event .where { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.event .where span { display: inline-flex; gap: 5px; align-items: center; }

/* testimonials */
.quote-card { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.quote-card .mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--gold); height: 30px; }
.quote-card blockquote { margin: 14px 0 24px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; color: var(--navy); }
.quote-card .who { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.quote-card .who .avatar { width: 44px; height: 44px; font-size: .95rem; }
.quote-card .who strong { display: block; color: var(--navy); font-size: .95rem; }
.quote-card .who span { font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 22px 0; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: #91A4BA; padding: 80px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #B4C3D3; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand img { height: 42px; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: #fff; }
.socials a:hover { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-line .icon { color: var(--gold); margin-top: 3px; }
.footer-bottom { margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.demo-note { background: rgba(214,168,79,.1); color: #D9C08C; border: 1px solid rgba(214,168,79,.25); border-radius: 10px; padding: 10px 14px; font-size: .8rem; margin-top: 30px; display: flex; gap: 8px; align-items: center; }

/* ---------- page hero & breadcrumbs ---------- */
.page-hero { position: relative; background: linear-gradient(160deg, var(--navy-2), var(--navy) 60%, #16395e); color: #B9C8D9; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: url("../img/pattern-hex.svg"); background-size: 56px; opacity: .06; }
.page-hero .container { position: relative; padding: clamp(40px, 6vw, 76px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 { color: #fff; font-weight: 500; max-width: 860px; margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero p.lead { max-width: 680px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; margin-bottom: 22px; color: #8FA3BA; list-style: none; padding: 0; }
.crumbs a { color: #C9D6E5; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #5D7590; }
.crumbs.dark { color: var(--muted); }
.crumbs.dark a { color: var(--blue); }

/* ---------- filters & forms ---------- */
.filter-bar { position: relative; margin-top: -34px; z-index: 5; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr auto; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-size: .84rem; font-weight: 600; color: var(--navy); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; font-size: .95rem; }
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2310243A' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 42px; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; margin: 2px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }

/* ---------- magazine library ---------- */
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
.mag-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.mag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mag-card .cover-wrap { position: relative; padding: 34px 40px 0; background: linear-gradient(180deg, var(--bg), #E8EDF3); perspective: 1200px; }
.mag-card .cover-wrap .cover-3d { aspect-ratio: 3/4; transform: rotateY(-10deg); box-shadow: 18px 22px 40px -14px rgba(16,36,58,.55); border-radius: 3px 6px 0 0; }
.mag-card .cover-wrap .cover-3d img { border-radius: 3px 6px 0 0; }
.mag-card:hover .cover-wrap .cover-3d { transform: rotateY(0deg) translateY(-4px); }
.mag-card .flags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 3; }
.mag-card .info { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.mag-card .edition { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; margin: 0; }
.mag-card .vol { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.mag-card .story { font-weight: 600; color: var(--text); margin: 8px 0 6px; font-size: .96rem; }
.mag-card .desc { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.mag-card .pub { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 18px; }
.mag-card .actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mag-card .actions .btn { padding: 10px 12px; font-size: .85rem; }
.empty { text-align: center; padding: 70px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty .icon { width: 40px; height: 40px; color: var(--muted); margin: 0 auto 12px; display: block; }

/* ---------- reader ---------- */
.reader-head { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.reader-head .cover-3d { aspect-ratio: 3/4; transform: rotateY(-8deg); }
.reader-shell { background: #1A2635; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.reader-shell:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.reader-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0F1B29; color: #C9D6E5; flex-wrap: wrap; }
.reader-toolbar .grp { display: flex; align-items: center; gap: 4px; }
.reader-toolbar .sep { width: 1px; height: 24px; background: rgba(255,255,255,.12); margin: 0 6px; }
.rbtn { height: 38px; min-width: 38px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent; color: #C9D6E5; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: .85rem; font-weight: 600; text-decoration: none; }
.rbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.rbtn[disabled] { opacity: .35; pointer-events: none; }
.rbtn.gold { color: var(--gold); }
.page-input { width: 52px; height: 34px; text-align: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.reader-body { display: grid; grid-template-columns: 150px 1fr; height: min(86vh, 980px); }
.reader-shell:fullscreen .reader-body { flex: 1; height: auto; }
.thumbs { overflow-y: auto; padding: 14px; background: #142030; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.thumbs button { border: 2px solid transparent; padding: 0; background: #fff; border-radius: 4px; cursor: pointer; position: relative; display: block; width: 100%; }
.thumbs button canvas { width: 100%; display: block; border-radius: 2px; }
.thumbs button.active { border-color: var(--gold); }
.thumbs button span { position: absolute; bottom: 4px; right: 4px; background: rgba(16,36,58,.85); color: #fff; font-size: .68rem; padding: 1px 6px; border-radius: 4px; }
.stage { overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 28px; position: relative; }
.stage canvas { box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); background: #fff; max-width: none; }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; color: #9FB2C8; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.paywall { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #C9D6E5; display: grid; grid-template-columns: 1fr 1.1fr; min-height: 480px; }
.paywall .preview { position: relative; background: #0F1B29; display: grid; place-items: center; padding: 40px; overflow: hidden; }
.paywall .preview img { width: 62%; filter: blur(1px) brightness(.85); transform: rotate(-4deg); box-shadow: var(--shadow-lg); }
.paywall .preview .lock { position: absolute; width: 78px; height: 78px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(214,168,79,.2); }
.paywall .preview .lock .icon { width: 32px; height: 32px; }
.paywall .copy { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.paywall h2 { color: #fff; }
.paywall ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.paywall li { display: flex; gap: 10px; align-items: center; }
.paywall li .icon { color: var(--gold); }
.edition-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.edition-nav a { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--navy); }
.edition-nav a:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.edition-nav a.next { justify-content: flex-end; text-align: right; }
.edition-nav small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- article page ---------- */
.article-head { padding: clamp(36px, 5vw, 64px) 0 30px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; margin: 14px 0 18px; }
.article-head .standfirst { font-size: 1.18rem; color: var(--muted); font-family: var(--serif); line-height: 1.55; }
.author-row { display: flex; gap: 14px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 26px; flex-wrap: wrap; }
.author-row .avatar { width: 46px; height: 46px; font-size: 1rem; }
.author-row strong { color: var(--navy); display: block; }
.author-row .meta { font-size: .85rem; color: var(--muted); }
.author-row .share { margin-left: auto; display: flex; gap: 8px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); background: #fff; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; background: var(--navy); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 44px 0 80px; }
.prose { font-size: 1.08rem; line-height: 1.8; color: #2B3A4C; }
.prose > p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 3.6rem; line-height: .9; padding: 6px 10px 0 0; color: var(--navy); font-weight: 600; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.8em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--navy); font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.locked-fade { position: relative; }
.locked-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.premium-box { margin-top: 10px; padding: 36px; border-radius: var(--radius-lg); background: var(--navy); color: #C9D6E5; text-align: center; }
.premium-box h3 { color: #fff; font-size: 1.5rem; }
.sidebar-box { padding: 26px; border-radius: var(--radius); background: var(--bg); margin-bottom: 26px; }
.sidebar-box h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.mini-list { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.mini-list li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.4; }
.mini-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); color: var(--gold); font-weight: 600; }
.mini-list a { color: var(--navy); font-weight: 500; }
.mini-list a:hover { color: var(--blue); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: .86rem; font-weight: 500; transition: all .2s; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip small { opacity: .6; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }

/* pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a:hover { border-color: var(--navy); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.popular { background: var(--navy); color: #C9D6E5; border-color: var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan.popular:hover { transform: translateY(-14px); }
.plan.popular h3, .plan.popular .price strong { color: #fff; }
.plan .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .12em; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.plan .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.plan.popular .ic { background: rgba(214,168,79,.15); color: var(--gold); }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .tagline { font-size: .92rem; color: var(--muted); margin-bottom: 24px; min-height: 2.8em; }
.plan.popular .tagline { color: #9FB2C8; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price strong { font-family: var(--serif); font-size: 2.8rem; color: var(--navy); font-weight: 600; line-height: 1; }
.price span { color: var(--muted); }
.plan .equiv { font-size: .84rem; color: var(--muted); margin-bottom: 26px; min-height: 1.4em; }
.plan.popular .equiv, .plan.popular .price span { color: #9FB2C8; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: .94rem; }
.plan li .icon { color: var(--success); margin-top: 3px; }
.plan.popular li .icon { color: var(--gold); }
.plan .btn { margin-top: auto; }
.placeholder-note { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); background: #fff; border: 1px dashed #CBD5E1; padding: 6px 14px; border-radius: 999px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: .94rem; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--navy); font-weight: 500; }
.compare thead th { background: var(--bg); font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.compare thead th.hl { background: var(--navy); color: #fff; }
.compare td.hl { background: #F6F9FC; }
.compare .yes { color: var(--success); } .compare .no { color: #B8C2CE; }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- checkout ---------- */
.steps { display: flex; gap: 0; margin-bottom: 36px; counter-reset: step; }
.steps li { flex: 1; list-style: none; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); font-weight: 600; position: relative; }
.steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); margin: 0 12px; }
.steps li b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); flex-shrink: 0; }
.steps li.done b { background: var(--success); color: #fff; }
.steps li.current b { background: var(--navy); color: var(--gold); }
.steps li.current { color: var(--navy); }
.steps { padding: 0; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary .row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .95rem; }
.summary .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-top: 18px; }
.secure-note .icon { color: var(--success); margin-top: 2px; }
.demo-banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F3D79B; color: #7A5410; font-size: .9rem; margin-bottom: 24px; }
.demo-banner strong { color: #5E3F05; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; }
.result-icon .icon { width: 40px; height: 40px; }
.result-icon.ok { background: #E3F5EC; color: var(--success); box-shadow: 0 0 0 12px #F1FAF5; }
.result-icon.fail { background: #FBE6E4; color: var(--danger); box-shadow: 0 0 0 12px #FDF3F2; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: .94rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--navy); font-weight: 600; text-align: right; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 40px); }
.auth-art { position: relative; background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #C9D6E5; padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: url("../img/pattern-hex.svg"); background-size: 60px; opacity: .07; }
.auth-art > * { position: relative; }
.auth-art h2 { color: #fff; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-art .covers { display: flex; margin-top: 40px; }
.auth-art .covers img { width: 120px; border-radius: 4px; box-shadow: var(--shadow-lg); margin-right: -30px; transform: rotate(-6deg); border: 3px solid rgba(255,255,255,.1); }
.auth-art .covers img:nth-child(2) { transform: rotate(0) translateY(-14px); z-index: 2; }
.auth-art .covers img:nth-child(3) { transform: rotate(6deg); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 70px) 20px; background: var(--bg); }
.auth-card { width: min(460px, 100%); background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.demo-creds { background: var(--blue-50); border-radius: 12px; padding: 14px 16px; font-size: .84rem; margin-bottom: 22px; color: var(--navy); }
.demo-creds code { background: #fff; padding: 1px 6px; border-radius: 4px; font-size: .82rem; }
.demo-creds button { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.divider { text-align: center; font-size: .85rem; color: var(--muted); margin: 22px 0; }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding: 40px 0 90px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 14px; }
.account-nav .me { display: flex; gap: 12px; align-items: center; padding: 10px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.account-nav .me .avatar { width: 44px; height: 44px; font-size: 1rem; }
.account-nav .me strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.3; }
.account-nav .me span { font-size: .78rem; color: var(--muted); word-break: break-all; }
.account-nav a, .account-nav button { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .93rem; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--bg); color: var(--navy); }
.account-nav a.active { background: var(--navy); color: #fff; }
.account-nav a.active .icon { color: var(--gold); }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.stat .value { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin-top: 6px; font-weight: 600; line-height: 1.2; }
.stat .sub { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.sub-hero { border-radius: var(--radius-lg); padding: 30px; background: linear-gradient(120deg, var(--navy), #1b4370); color: #C9D6E5; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.sub-hero h2 { color: #fff; margin: 4px 0; font-size: 1.6rem; }
.sub-hero.none { background: linear-gradient(120deg, #2A3B4F, var(--navy)); }
.progress { height: 8px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin-top: 12px; width: min(340px, 100%); }
.progress span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 1.2rem; }
.mini-covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-cover { display: block; }
.mini-cover img { aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); transition: transform .3s var(--ease); width: 100%; }
.mini-cover:hover img { transform: translateY(-4px); }
.mini-cover span { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-top: 10px; }
.mini-cover small { color: var(--muted); font-size: .76rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FAFBFD; }

/* ---------- about / advertise ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.value-card { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.value-card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.value-card h3 { font-size: 1.2rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.industry-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-pills span { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 500; font-size: .92rem; }
.format-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: all .3s var(--ease); height: 100%; }
.format-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.format-card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--gold-50); color: #9A6E1C; display: grid; place-items: center; }
.format-card h3 { font-size: 1.12rem; margin: 6px 0 0; }
.format-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.format-card .channel { margin-top: auto; padding-top: 10px; font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat-strip div { background: #fff; padding: 26px; }
.stat-strip strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.stat-strip span { font-size: .86rem; color: var(--muted); }
.legal { padding: 50px 0 90px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: calc(var(--header-h) + 14px); right: 18px; z-index: 120; display: grid; gap: 10px; width: min(400px, calc(100vw - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); border-left: 4px solid var(--blue); font-size: .92rem; animation: toastIn .35s var(--ease); }
.toast.success { border-color: var(--success); } .toast.success .icon { color: var(--success); }
.toast.error { border-color: var(--danger); } .toast.error .icon { color: var(--danger); }
.toast.info .icon { color: var(--blue); }
.toast button { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.alert { padding: 14px 16px; border-radius: 12px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.alert-info { background: var(--blue-50); color: var(--navy); }
.alert-warn { background: #FFF6E5; color: #7A5410; border: 1px solid #F3D79B; }
.alert-success { background: #E3F5EC; color: #136B43; }
.alert a { font-weight: 600; word-break: break-all; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .main-nav a { padding: 10px 9px; }
}
@media (max-width: 1024px) {
  .main-nav, .header-actions .hide-md { display: none; }
  .burger { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { min-height: 440px; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .mag-grid, .plans { grid-template-columns: repeat(2, 1fr); }
  .news-layout, .why-grid, .faq-grid, .newsletter, .ad-band, .split, .article-layout, .list-layout, .checkout-grid, .account-grid, .paywall { grid-template-columns: 1fr; }
  .why-grid .sticky, .sticky-side, .summary, .account-nav { position: static; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .edition-feature { grid-template-columns: 260px 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .wide { grid-column: 1 / -1; }
  .reader-body { grid-template-columns: 1fr; }
  .thumbs { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .plan.popular { transform: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .account-nav .me { display: none; }
  .account-nav a, .account-nav button { white-space: nowrap; width: auto; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  :root { --header-h: 66px; }
  .brand img { height: 34px; }
  .grid-2, .grid-3, .grid-4, .mag-grid, .plans, .benefits, .stat-cards, .form-grid { grid-template-columns: 1fr; }
  .edition-feature, .reader-head { grid-template-columns: 1fr; }
  .edition-cover, .reader-head .cover-wrap { max-width: 260px; margin: 0 auto; }
  .lead-story { min-height: 420px; }
  .lead-story .inner { padding: 24px; }
  .news-item { grid-template-columns: 96px 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ad-band .formats { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .float-card { display: none; }
  .hero-visual { min-height: 360px; }
  .announce { font-size: .8rem; }
  .announce .pill { display: none; }
  .mini-covers { grid-template-columns: repeat(2, 1fr); }
  .edition-nav { grid-template-columns: 1fr; }
  .steps li span { display: none; }
  .header-actions .btn-gold { padding: 9px 14px; font-size: .85rem; }
  .stage { padding: 12px; }
  .stat-strip { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .announce, .site-footer, .toasts, .no-print { display: none !important; }
}
.why-grid .benefits { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .why-grid .benefits { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .reader-body { height: auto; min-height: 60vh; } .stage { max-height: 80vh; } .hide-sm { display: none; } }
