/* ================================================================
   MyCoverAdvisor — styles (mobile-first). Color = meaning only.
   ================================================================ */
:root {
  --bg:        #0a0f1c;
  --bg-soft:   #111a2e;
  --surface:   #0f1a30;   /* dark content card */
  --ink:       #eef3fb;
  --ink-soft:  #aab8d2;
  --ink-mute:  #74829f;
  --line:      #223049;
  --card:      #16223d;   /* topic cards */
  --card-hov:  #1c2b4b;
  --accent:    #2b53e6;
  --accent-2:  #3b82f6;
  --accent-ink:#ffffff;
  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      760px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

/* ---------- app shell (content + side poster) ---------- */
.cn-shell {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 70% -10%, #16223d 0%, var(--bg) 55%);
}
.cn-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px 64px;
}
.cn-container {
  width: 100%;
  max-width: var(--maxw);
}
.cn-aside {
  display: none;               /* mobile: hidden. desktop: shown */
  width: 340px;
  flex: 0 0 340px;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px 28px;
  color: #dbe4ff;
}
.cn-aside .cn-aside-art {
  width: 100%; border-radius: 20px; opacity: .95;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.cn-aside h4 { font-size: 22px; line-height: 1.3; margin: 24px 0 6px; font-weight: 700; }
.cn-aside .sub { color: var(--accent-2); font-weight: 600; margin: 0; }

/* ---------- content card ---------- */
.cn-sheet {
  background: var(--surface);
  border-radius: var(--radius);
  margin-top: 20px;
  padding: 26px 20px 8px;
  box-shadow: 0 20px 50px rgba(4, 10, 25, .45);
}
.cn-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  font-weight: 700; color: var(--ink-mute); margin: 0 0 8px;
}
h1.cn-h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
h2.cn-h2 { font-size: 22px; line-height: 1.25; margin: 28px 0 10px; font-weight: 750; }
h3.cn-h3 { font-size: 17px; margin: 18px 0 6px; font-weight: 700; }
p.cn-p  { color: var(--ink-soft); margin: 0 0 14px; }
.cn-lead { font-size: 17px; color: var(--ink-soft); }
ul.cn-list { margin: 0 0 16px; padding: 0; list-style: none; }
ul.cn-list li { position: relative; padding: 8px 0 8px 22px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
ul.cn-list li:before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
ul.cn-list li b { color: var(--ink); }
.cn-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* in-content "read full guide" rewarded gate button */
.cn-reveal-btn {
  display: block; width: 100%; margin: 22px 0; padding: 16px 18px;
  border: 0; border-radius: 14px; cursor: pointer; text-align: center;
  font-size: 16px; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 24px rgba(43, 83, 230, .35);
}
.cn-reveal-btn:active { transform: translateY(1px); }

/* ---------- topic cards ---------- */
.cn-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 8px 0 4px; }
.cn-card {
  display: block; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); transition: .15s ease;
}
.cn-card:hover { border-color: var(--accent-2); background: var(--card-hov); }
.cn-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cn-card-row p { margin: 0; font-weight: 700; color: var(--ink); }
.cn-chevron { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); transform: rotate(-45deg); }
.cn-excerpt { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- ad slots ---------- */
.cn-ad {
  display: flex; align-items: center; justify-content: center;
  margin: 20px 0; border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, #111c33, #111c33 12px, #0e192e 12px, #0e192e 24px);
}
.cn-ad:before { content: "advertisement"; position: absolute; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); transform: translateY(-120px); }
.gpt-slot { width: 100%; display: flex; justify-content: center; }

/* ---------- footer ---------- */
.cn-footer { margin: 30px -20px 0; padding: 26px 20px; background: #0e1730; color: #c7d2e8; border-radius: 0 0 var(--radius) var(--radius); }
.cn-footer .blurb { max-width: 460px; margin: 0 0 20px; font-size: 14px; color: #9fb0d0; }
.cn-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; }
.cn-footer .col-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #7f92b8; margin: 0 0 10px; }
.cn-footer ul { list-style: none; margin: 0; padding: 0; }
.cn-footer li { margin: 6px 0; }
.cn-footer a { color: #c7d2e8; font-size: 14px; }
.cn-footer a:hover { color: #fff; }
.cn-copy { margin-top: 22px; font-size: 12px; color: #6b7ea8; }

/* ---------- reward gate overlay ---------- */
.cn-gate { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.cn-gate-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 30, .72); backdrop-filter: blur(6px); }
.cn-gate-card {
  position: relative; width: 100%; max-width: 440px; background: #ffffff;
  border-radius: var(--radius); padding: 34px 28px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: cn-pop .22s ease;
}
.cn-gate .cn-gate-title { color: #0f172a; }
.cn-gate .cn-gate-eyebrow { color: #94a3b8; }
.cn-gate .cn-gate-desc { color: #475569; }
.cn-gate .cn-gate-desc strong { color: #0f172a; }
.cn-gate .cn-gate-note { color: #94a3b8; }
@keyframes cn-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cn-gate-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--ink-mute); margin: 0 0 10px; }
.cn-gate-title { font-size: 27px; line-height: 1.18; margin: 0 0 12px; font-weight: 800; }
.cn-gate-desc { color: var(--ink-soft); margin: 0 0 22px; }
.cn-gate-cta {
  width: 100%; border: 0; cursor: pointer; padding: 17px 20px; border-radius: 14px;
  font-size: 17px; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 24px rgba(43, 83, 230, .4);
}
.cn-gate-cta:disabled { opacity: .75; cursor: default; }
.cn-gate-note { font-size: 13px; color: var(--ink-mute); margin: 16px 0 0; }
body.cn-gate-open { overflow: hidden; }

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .cn-aside { display: block; }
  .cn-main { padding-top: 8px; }
  h1.cn-h1 { font-size: 36px; }
}

/* ================================================================
   BLOG (main domain) — separate site look
   ================================================================ */
.blog-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,15,28,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.blog-header-in {
  max-width: 1080px; margin: 0 auto; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.blog-logo { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.blog-logo span { color: var(--accent-2); }
.blog-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.blog-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.blog-nav a:hover { color: var(--ink); }
.blog-wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px 64px; }

.blog-hero {
  margin: 22px 0; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, #16223d, #0f1a30);
  border: 1px solid var(--line);
}
.blog-hero .kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.blog-hero h1 { font-size: 28px; line-height: 1.2; margin: 10px 0; font-weight: 800; color: var(--ink); }
.blog-hero p { color: var(--ink-soft); margin: 0 0 16px; }
.blog-btn {
  display: inline-block; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  color: var(--accent-ink); background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.blog-cat-title { font-size: 20px; font-weight: 750; color: var(--ink); margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.blog-card {
  display: block; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); transition: .15s ease;
}
.blog-card:hover { border-color: var(--accent-2); background: var(--card-hov); }
.blog-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); }
.blog-card h3 { font-size: 17px; line-height: 1.3; margin: 6px 0; font-weight: 700; color: var(--ink); }
.blog-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.blog-card .meta { font-size: 12px; color: var(--ink-mute); }

.blog-article { max-width: 760px; margin: 0 auto; }
.blog-article .crumb { font-size: 13px; color: var(--accent-2); font-weight: 600; margin: 20px 0 8px; }
.blog-article h1 { font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.blog-article .byline { font-size: 13px; color: var(--ink-mute); margin: 0 0 18px; }
.blog-article p { color: var(--ink-soft); margin: 0 0 16px; font-size: 16px; line-height: 1.7; }

@media (min-width: 720px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-hero h1 { font-size: 34px; }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr 1fr; }
}
