/* Built by tools/deploy.sh from mockups/assets/{style,pages,app}.css — edit those, not this file. */
/* GtmCamp — static mockups. Tokens map 1:1 to theme.json later. */
:root {
  --navy: #1b2e4a;
  --navy-soft: #33445f;
  --muted: #64748b;
  --line: #e5eaf1;
  --line-strong: #d3dbe6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --orange: #f5821f;
  --blue: #2f7de1;
  --teal: #1e8a8a;
  --bp-line: rgba(47, 125, 225, 0.10);
  --bp-line-strong: rgba(47, 125, 225, 0.22);
  --bp-ink: #3b6fb8;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
  --wrap: 1180px;
}

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

/* Blueprint surface: fine 8px grid + major 40px grid */
.blueprint {
  background-color: #f9fbfe;
  background-image:
    linear-gradient(var(--bp-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-strong) 1px, transparent 1px),
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
}

.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
@font-face { font-family: "GtmCamp Logo"; src: url("../fonts/gtmcamp-logo.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
/* Header logo. One knob: --logo-f (the lockup's base size). Tent = .98 × F, wordmark = .72 × F. */
.logo { flex: none; display: inline-flex; align-items: baseline; gap: .2em; font-size: var(--logo-f, 30px); line-height: 1; color: #182c44; white-space: nowrap; }
.logo .logo-tent { height: .98em; width: auto; flex: none; overflow: visible; position: relative; top: .05em; }
.logo .logo-word { font-family: "GtmCamp Logo", "Bricolage Grotesque", var(--sans); font-weight: 600; font-size: .72em; letter-spacing: -0.035em; position: relative; top: -.11em; }
.logo img { height: 36px; width: auto; max-width: none; } /* only when a custom logo image is uploaded in the Customizer */
@media (max-width: 640px) { .logo { font-size: 27px; } }
@media (max-width: 480px) { .logo .logo-word { display: none; } }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--orange); }
.social { display: flex; gap: 6px; padding-left: 24px; border-left: 1px solid var(--line); }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; color: var(--navy-soft); transition: background .15s, color .15s;
}
.social a:hover { background: var(--bg-soft); color: var(--blue); }
.social svg { width: 18px; height: 18px; }

/* header search + account */
.site-search { position: relative; display: flex; align-items: center; }
.site-search svg { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; z-index: 1; }
.site-search input {
  width: 170px; font: 400 14px var(--sans); color: var(--navy); padding: 8px 30px 8px 32px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-soft);
  transition: width .2s ease, background .15s, border-color .15s; -webkit-appearance: none; appearance: none;
}
.site-search input::-webkit-search-cancel-button { display: none; }
.site-search:focus-within input { width: 240px; background: #fff; border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.site-search kbd { position: absolute; right: 8px; font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; background: #fff; pointer-events: none; }
.site-search:focus-within kbd { display: none; }
.account { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 8px; white-space: nowrap; }
.account:hover, .account[aria-current="page"] { border-color: var(--navy); }
.avatar-sm { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 9.5px var(--mono); }
.nav { gap: 20px; }
.social { padding-left: 16px; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 0; }

/* ---------- Post cards ---------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; }
.card-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: grid; place-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover .card-cover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(27, 46, 74, .28); border-color: var(--bp-ink); }
.card-cover code {
  font-family: var(--mono); font-weight: 700; font-size: clamp(18px, 2.2vw, 26px);
  color: var(--navy); background: #fff; padding: 8px 14px;
  border: 1.5px solid var(--navy); border-radius: 6px; box-shadow: 4px 4px 0 var(--accent, var(--orange));
}
.card-cover .corner { position: absolute; font-family: var(--mono); font-size: 10px; color: var(--bp-ink); opacity: .8; }
.card-cover .corner.tl { top: 10px; left: 12px; }
.card-cover .corner.br { bottom: 10px; right: 12px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; }
.card-meta > * { white-space: nowrap; }
.tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent, var(--blue)); background: color-mix(in srgb, var(--accent, var(--blue)) 9%, white);
  padding: 3px 8px; border-radius: 4px;
}
.card-meta time, .card-meta .read { font-size: 13px; color: var(--muted); }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.card h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; margin: 10px 0 8px; }
.card h2 a { background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .2s; }
.card:hover h2 a { background-size: 100% 2px; }
.card p { margin: 0; color: var(--navy-soft); font-size: 15px; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pagination a { font-weight: 600; font-size: 15px; }
.pagination a:hover { color: var(--blue); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 40px; }
.sidebar-sticky { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 40px; }
.widget h3 { margin: 0 0 14px; }

.hero-card { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.hero-visual { position: relative; height: 280px; display: grid; place-items: end center; border-bottom: 1px solid var(--line-strong); overflow: hidden; }
.hero-visual .photo { width: 262px; height: auto; max-width: none; }
.hero-visual .dim { position: absolute; font-family: var(--mono); font-size: 10px; color: var(--bp-ink); }
.hero-visual .dim.w { top: 12px; left: 50%; transform: translateX(-50%); }
.hero-visual .dim.w::before, .hero-visual .dim.w::after { content: ""; position: absolute; top: 50%; width: 92px; border-top: 1px dashed var(--bp-ink); opacity: .6; }
.hero-visual .dim.w::before { right: calc(100% + 8px); }
.hero-visual .dim.w::after { left: calc(100% + 8px); }
.hero-visual .dim.id { top: 10px; left: 12px; }
.hero-visual .dim.rev { top: 10px; right: 12px; }
.hero-body { padding: 22px 22px 24px; }
.hero-body h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }
.hero-body p { margin: 0 0 18px; color: var(--navy-soft); font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 13px 18px; border-radius: 8px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer; transition: transform .12s, background .15s;
}
.btn:hover { background: #24406a; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.accent { background: var(--orange); border-color: var(--orange); }
.btn.accent:hover { background: #e2730f; }

.subscribe { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.subscribe p { margin: 0 0 14px; font-size: 14.5px; color: var(--navy-soft); }
.subscribe h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.field {
  width: 100%; font: 400 15px var(--sans); color: var(--navy);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; margin-bottom: 10px;
}
.field:focus { outline: 2px solid color-mix(in srgb, var(--blue) 35%, transparent); border-color: var(--blue); }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 10px !important; margin-bottom: 0 !important; }

.course-list, .cat-list { list-style: none; margin: 0; padding: 0; }
.course-list li + li, .cat-list li + li { border-top: 1px solid var(--line); }
.course-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; font-weight: 500; font-size: 15px; }
.course-list a:hover .name, .cat-list a:hover .name { color: var(--blue); }
.course-list .bar { width: 4px; height: 22px; border-radius: 2px; background: var(--accent); flex: none; }
.course-list .name { flex: 1; }
.price { font-family: var(--mono); font-size: 13px; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; }
.cat-list a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.cat-list .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.site-footer .left { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.site-footer .left img { height: 30px; width: auto; }
.site-footer .social { border: 0; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .site-header .social { display: none; }
  .layout { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .sidebar { order: -1; }
  .sidebar-sticky { position: static; }
  .sidebar .widget.secondary { display: none; } /* courses/categories move to footer area on mobile later */
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .posts { grid-template-columns: 1fr; }
  .site-header .wrap { height: 64px; }
  .nav { gap: 16px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav { gap: 10px; }
  .site-search { width: 36px; height: 36px; }
  .site-search svg { left: 10px; }
  .site-search kbd { display: none; }
  .site-search input { position: absolute; right: 0; top: 0; width: 36px; height: 36px; padding: 0 0 0 34px; cursor: pointer; }
  .site-search:focus-within input { width: min(250px, 52vw); padding-right: 10px; cursor: text; z-index: 0; }
  .site-search:focus-within svg { left: auto; right: calc(min(250px, 52vw) - 26px); }
  .account { padding: 7px 9px; }
  .account .avatar-sm + span { display: none; }
  .site-footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* GtmCamp mockups — inner pages (post, courses, course, lesson, about). Loaded after style.css. */

.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.025em; margin: 10px 0 12px; max-width: 760px; }
.page-head .lead { font-size: 18px; color: var(--navy-soft); max-width: 680px; margin: 0; }
.breadcrumb { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* ---------- Post ---------- */
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 72px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 104px; align-self: start; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 1px solid var(--line-strong); counter-reset: toc; }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--navy-soft); line-height: 1.4; }
.toc li a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero) "  "; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.toc li a:hover { color: var(--blue); }
.toc li a.active { border-color: var(--orange); color: var(--navy); font-weight: 600; }
.toc .toc-cta { margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); font-size: 14px; color: var(--navy-soft); }
.toc .toc-cta a { color: var(--blue); font-weight: 600; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0f1b2d; display: grid; place-items: center; color: #fff; }
.video .play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.5); display: grid; place-items: center; transition: transform .15s, background .15s; }
.video:hover .play { transform: scale(1.06); background: var(--orange); border-color: var(--orange); }
.video .play svg { width: 30px; height: 30px; margin-left: 3px; }
.video .cap { position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 12px; opacity: .75; }
.video .cap.r { left: auto; right: 16px; }
.video-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(#6ea8ff 1px, transparent 1px), linear-gradient(90deg, #6ea8ff 1px, transparent 1px); background-size: 40px 40px; }

.prose { font-size: 17px; line-height: 1.75; color: #24364f; }
.prose > * + * { margin-top: 1.25em; margin-bottom: 0; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; color: var(--navy); margin-top: 2.2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 20px; color: var(--navy); margin-top: 1.8em; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--blue); }
.prose :not(pre) > code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--orange); font-family: var(--mono); font-size: .9em; }
.codeblock { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #fbfcfe; }
.codeblock .bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); background: #fff; }
.codeblock .bar button { font: inherit; color: var(--navy-soft); background: none; border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px 9px; cursor: pointer; }
.codeblock .bar button:hover { border-color: var(--blue); color: var(--blue); }
.codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.65; color: var(--navy); }
.codeblock .k { color: #9b3fc4; }
.codeblock .s { color: var(--teal); }
.codeblock .c { color: #8a97a8; font-style: italic; }
.codeblock .n { color: #c2570c; }
/* ---------- Syntax highlighting (Prism tokens) — light theme in the site palette ---------- */
code, pre, kbd, samp { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; } /* no "<!--" → "←" surprises: code must look like what you type */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8a97a8; font-style: italic; }
.token.punctuation, .token.operator { color: #5b6b82; }
.token.keyword, .token.atrule, .token.attr-name, .token.selector, .token.important { color: #9b3fc4; }
.token.string, .token.attr-value, .token.char, .token.template-string, .token.inserted { color: #17767c; }
.token.number, .token.boolean, .token.constant, .token.symbol, .token.deleted { color: #c2570c; }
.token.function, .token.class-name, .token.builtin { color: #2f7de1; }
.token.tag, .token.property, .token.variable { color: #2456a6; }
/* Prism calls HTML tags ".token.tag" — keep the site's category pill style (.tag) out of code */
code .token.tag, pre .token.tag { font: inherit; letter-spacing: 0; text-transform: none; background: none; padding: 0; border-radius: 0; }
.token.tag .token.punctuation, .token.attr-value .token.punctuation { color: inherit; }
.token.regex, .token.url { color: #b65a08; }
.token.bold { font-weight: 700; }
.token.italic { font-style: italic; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--orange) 35%, white); background: color-mix(in srgb, var(--orange) 6%, white); border-radius: var(--radius); font-size: 16px; }
.callout .badge { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #b65a08; padding-top: 4px; }
figure { margin: 0; }
.figure { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.figure .shot { aspect-ratio: 16 / 8; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--bp-ink); }
.figure figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.download { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px; border: 1.5px dashed var(--bp-ink); border-radius: var(--radius); }
.download .ico { width: 56px; height: 56px; border-radius: 10px; background: #fff; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--blue); }
.download .ico svg { width: 28px; height: 28px; }
.download h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.download p { margin: 0 0 14px; font-size: 15px; color: var(--navy-soft); }
.download form { display: flex; gap: 10px; flex-wrap: wrap; }
.download .field { flex: 1 1 220px; margin: 0; }
.download .file { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; margin-top: 56px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-box .avatar { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line-strong); overflow: hidden; display: grid; place-items: end center; }
.author-box .avatar img { width: 120px; max-width: none; }
.author-box h3 { margin: 0 0 4px; font-size: 17px; }
.author-box p { margin: 0; font-size: 15px; color: var(--navy-soft); }
.related { border-top: 1px solid var(--line); padding: 56px 0 96px; }
.related .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.related .card h2 { font-size: 17px; }
.related .card-cover code { font-size: 16px; }

/* ---------- Courses catalog ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy-soft); background: #fff; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 72px; }
.course-card { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(27,46,74,.3); border-color: var(--bp-ink); }
.course-card .card-cover { border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; transform: none !important; box-shadow: none !important; }
.course-card .card-cover code { font-size: 20px; }
.course-card .body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.course-card h2 { font-size: 21px; letter-spacing: -0.015em; margin: 12px 0 8px; line-height: 1.25; }
.course-card p { margin: 0 0 18px; font-size: 15px; color: var(--navy-soft); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.course-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.price-lg { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price-lg small { display: block; font: 400 11px var(--mono); color: var(--muted); letter-spacing: 0; margin-top: 4px; }

.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: 96px; overflow: hidden; }
.perk { padding: 28px; }
.perk + .perk { border-left: 1px solid var(--line-strong); }
.perk .mono-label { color: var(--bp-ink); }
.perk h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.perk p { margin: 0; font-size: 15px; color: var(--navy-soft); }
.perk code { font-family: var(--mono); font-size: 13px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; }

/* ---------- Single course ---------- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.course-main section + section { margin-top: 56px; }
.course-main h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 18px; }
.learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.learn li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; color: var(--navy-soft); }
.learn svg { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.curriculum details { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.curriculum details + details { margin-top: 10px; }
.curriculum summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 600; background: var(--bg-soft); }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary .num { font-family: var(--mono); font-size: 12px; color: var(--bp-ink); }
.curriculum summary .meta { margin-left: auto; font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }
.curriculum summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--muted); width: 14px; text-align: center; }
.curriculum details[open] summary::after { content: "\2013"; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.lessons svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.lessons .dur { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lessons .free { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--teal); border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; }
.sandbox { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.sandbox .txt { padding: 28px; }
.sandbox .txt p { margin: 0 0 12px; color: var(--navy-soft); font-size: 15.5px; }
.sandbox .txt p:last-child { margin: 0; }
.sandbox .viz { border-left: 1px solid var(--line-strong); display: grid; place-items: center; padding: 24px; }
.browser { width: 100%; max-width: 300px; background: #fff; border: 1.5px solid var(--navy); border-radius: 8px; box-shadow: 5px 5px 0 var(--orange); overflow: hidden; }
.browser .url { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1.5px solid var(--navy); font-family: var(--mono); font-size: 11.5px; }
.browser .url i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.browser .url span { margin-left: 6px; }
.browser .url b { color: var(--orange); font-weight: 700; }
.browser .pg { padding: 14px; display: grid; gap: 8px; }
.browser .pg div { height: 9px; border-radius: 3px; background: var(--line); }
.browser .pg div:nth-child(1) { width: 60%; height: 14px; background: var(--line-strong); }
.browser .pg div:nth-child(3) { width: 80%; }
.browser .pg div:nth-child(4) { width: 34%; height: 22px; background: color-mix(in srgb, var(--blue) 22%, white); margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 10px 0 0; color: var(--navy-soft); font-size: 15.5px; }

.buy { position: sticky; top: 104px; align-self: start; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.buy .video { border-radius: 0; }
.buy .video .play { width: 56px; height: 56px; }
.buy .video .play svg { width: 24px; height: 24px; }
.buy .inner { padding: 24px; }
.buy .price-lg { font-size: 38px; }
.buy .btn { margin: 16px 0 10px; padding: 16px; font-size: 16px; }
.buy .note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 0 0 20px; }
.includes { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; color: var(--navy-soft); }
.includes li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.includes svg { width: 16px; height: 16px; color: var(--teal); margin-top: 3px; }

/* ---------- Lesson (LMS player) ---------- */
body.lms-player { height: 100vh; display: grid; grid-template-rows: 60px minmax(0, 1fr); overflow: hidden; }
.lms-bar { display: flex; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.lms-bar .mark img { height: 32px; width: auto; }
.lms-bar .title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lms-bar .progress { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.lms-bar .track { width: 140px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lms-bar .track i { display: block; height: 100%; width: 38%; background: var(--teal); }
.lms-bar .exit { font-size: 14px; font-weight: 500; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; white-space: nowrap; }
.lms-bar .exit:hover { background: var(--bg-soft); }
.lms { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 0; }
.lms-toc { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg-soft); }
.lms-toc .sec { padding: 18px 20px 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: 14px; }
.lms-toc .sec span { font: 400 11px var(--mono); color: var(--muted); white-space: nowrap; }
.lms-toc ul { list-style: none; margin: 0; padding: 0 0 8px; }
.lms-toc li a { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 10px 20px 10px 17px; font-size: 14px; line-height: 1.4; color: var(--navy-soft); border-left: 3px solid transparent; }
.lms-toc li a:hover { background: #fff; }
.lms-toc li a.current { background: #fff; border-left-color: var(--orange); color: var(--navy); font-weight: 600; }
.lms-toc .st { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; margin-top: 1px; background: #fff; color: transparent; }
.lms-toc .done .st { background: var(--teal); border-color: var(--teal); color: #fff; }
.lms-toc .st svg { width: 11px; height: 11px; }
.lms-toc .dur { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 2px; }
.lms-main { overflow-y: auto; }
.lms-content { max-width: 920px; margin: 0 auto; padding: 32px 32px 80px; }
.lms-content h1 { font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 0; }
.lesson-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 28px 0 28px; flex-wrap: wrap; }
.sandbox-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; padding: 8px 12px; border: 1px dashed var(--bp-ink); border-radius: 8px; color: var(--bp-ink); }
.sandbox-chip b { color: var(--navy); }
.sandbox-chip:hover { background: var(--bg-soft); }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 96px; align-items: start; }
.about .portrait { position: sticky; top: 104px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.about .portrait .hero-visual { height: 360px; border-bottom: 0; }
.about .portrait .photo { width: 340px; }
.about h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.12; margin: 10px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: var(--radius); margin: 36px 0; }
.stats div { padding: 20px; }
.stats div + div { border-left: 1px solid var(--line-strong); }
.stats b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.stats span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 1020px) {
  .post-layout, .course-layout, .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc, .buy, .about .portrait { position: static; }
  .toc .toc-cta { display: none; }
  .buy { order: -1; }
  .course-grid, .related .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms { grid-template-columns: minmax(0, 1fr); }
  .lms-toc { display: none; } /* becomes a slide-over drawer in the real theme */
  .lms-bar .track { width: 70px; }
}
@media (max-width: 640px) {
  .course-grid, .related .posts, .perks, .learn, .sandbox, .stats { grid-template-columns: minmax(0, 1fr); }
  .perk + .perk, .stats div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .sandbox .viz { border-left: 0; border-top: 1px solid var(--line-strong); }
  .download { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; }
  .lms-content { padding: 20px 16px 64px; }
  .lms-bar .title, .lms-bar .progress span:first-child { display: none; }
  .lms-bar { gap: 10px; padding: 0 12px; }
  .lesson-head, .lesson-head > * { min-width: 0; max-width: 100%; }
  .sandbox-chip { flex-wrap: wrap; }
  .page-head { padding: 36px 0 28px; }
  .about .portrait .photo { width: 300px; }
}
/* GtmCamp mockups — archive (category), search results, student dashboard. Loaded after pages.css. */

/* ---------- Archive (category) + search ---------- */
.archive-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.archive-head h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 10px; }
.archive-head p { margin: 0; color: var(--navy-soft); max-width: 620px; }
.archive-head .count { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 14px; }
.cat-list a.active .name { font-weight: 600; color: var(--navy); }
.cat-list a.active .name::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: middle; }
.search-big { position: relative; margin: 14px 0 0; }
.search-big svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search-big input { width: 100%; font: 500 18px var(--sans); color: var(--navy); padding: 15px 16px 15px 48px; border: 1.5px solid var(--navy); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--orange); -webkit-appearance: none; appearance: none; }
.search-big input:focus { outline: none; border-color: var(--blue); }
.archive-head .chips { margin-top: 22px; }
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 26px 0; border-bottom: 1px solid var(--line); }
.result:first-child { padding-top: 0; }
.result .kind { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.result h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; margin: 8px 0 6px; }
.result h2 a:hover { color: var(--blue); }
.result p { margin: 0; color: var(--navy-soft); font-size: 15.5px; }
.result .path { font-family: var(--mono); font-size: 12px; color: var(--bp-ink); margin-top: 8px; word-break: break-all; }
mark { background: color-mix(in srgb, var(--orange) 22%, white); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Student dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.dash-nav { position: sticky; top: 104px; align-self: start; }
.dash-user { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash-user .avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 14px var(--mono); flex: none; }
.dash-user b { display: block; font-size: 15px; line-height: 1.3; }
.dash-user span { font-size: 13px; color: var(--muted); word-break: break-all; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; }
.dash-nav li a { display: flex; justify-content: space-between; padding: 9px 12px; margin: 2px -12px; border-radius: 8px; font-size: 15px; color: var(--navy-soft); }
.dash-nav li a:hover { background: var(--bg-soft); }
.dash-nav li a.active { background: var(--bg-soft); color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.dash-nav li.sep { height: 1px; background: var(--line); margin: 10px 0; }
.dash-main > section + section { margin-top: 56px; }
.dash-main h1 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 32px; }
.dash-main h2 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dash-main h2 a { font: 500 14px var(--sans); color: var(--blue); letter-spacing: 0; }

.sandbox-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.sandbox-card .info { padding: 26px 28px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--teal); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.sandbox-url { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; font-family: var(--mono); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); letter-spacing: -0.01em; word-break: break-all; }
.sandbox-url b { color: var(--orange); }
.copy-btn { font: 500 11px var(--mono); color: var(--navy-soft); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px 8px; cursor: pointer; flex: none; }
.copy-btn:hover { border-color: var(--blue); color: var(--blue); }
.sandbox-card .info p { margin: 0 0 20px; font-size: 15px; color: var(--navy-soft); max-width: 480px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn svg { width: 16px; height: 16px; }
.btn.sm { padding: 10px 14px; font-size: 14px; }
.sandbox-card .viz { border-left: 1px solid var(--line-strong); display: grid; place-items: center; padding: 24px; }
.sandbox-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }

.enrolled { display: grid; gap: 14px; }
.enrolled-item { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .15s, box-shadow .2s; }
.enrolled-item:hover { border-color: var(--bp-ink); box-shadow: 0 10px 24px -16px rgba(27,46,74,.3); }
.enrolled-item .card-cover { transform: none !important; box-shadow: none !important; }
.enrolled-item .card-cover code { font-size: 12px; padding: 4px 8px; box-shadow: 3px 3px 0 var(--accent); }
.enrolled-item h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.01em; }
.enrolled-item .next { font-size: 14px; color: var(--navy-soft); margin: 0 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bar-row .track { flex: 1; max-width: 320px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 15px; color: var(--navy-soft); margin-top: 14px; }
.upsell a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.files li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 15px; }
.files li + li { border-top: 1px solid var(--line); }
.files svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.files .fname { font-family: var(--mono); font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .from { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.files .from + a.dl { margin-left: 0; }
.files a.dl { margin-left: auto; font: 500 12px var(--mono); color: var(--blue); white-space: nowrap; }

@media (max-width: 1020px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
  .dash-nav { position: static; min-width: 0; }
  .dash-user { display: none; }
  .dash-nav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .dash-nav li a { margin: 0; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
  .dash-nav li a.active { box-shadow: none; background: var(--navy); border-color: var(--navy); color: #fff; }
  .dash-nav li.sep { display: none; }
  .sidebar--compact { display: none; }
}
@media (max-width: 760px) {
  .sandbox-card { grid-template-columns: minmax(0, 1fr); }
  .sandbox-card .viz { display: none; }
  .enrolled-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .enrolled-item .btn { grid-column: 1 / -1; }
  .files .from { display: none; }
  .files a.dl { margin-left: auto !important; }
}
