/* DaVinci Resolve Club: task-first Ghost theme */

:root {
  --resolve-blue: #21c8ff;
  --resolve-green: #30d47a;
  --resolve-orange: #ff8a1f;
  --resolve-red: #ff4e63;
  --resolve-purple: #8b7dff;
  --resolve-yellow: #ffd24a;

  --accent: var(--resolve-blue);
  --accent-hover: #74ddff;

  --bg: #070a0f;
  --panel: #0d1219;
  --panel-2: #121821;
  --panel-3: #1a222d;
  --text: #f6f9fd;
  --text-soft: #c4cfdb;
  --text-muted: #7d8998;
  --border: #26313f;
  --border-strong: #3a4859;
  --code-bg: #090e15;

  --font-sans: var(--gh-font-body, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  --font-heading: var(--gh-font-heading, var(--font-sans));
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --content: 780px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

[data-theme="light"] {
  --bg: #f2f6fa;
  --panel: #ffffff;
  --panel-2: #eef3f8;
  --panel-3: #e5ecf4;
  --text: #101820;
  --text-soft: #3d4957;
  --text-muted: #6d7988;
  --border: #c9d4df;
  --border-strong: #a8b6c5;
  --code-bg: #e8eef5;
  --shadow: 0 18px 38px rgba(17, 29, 43, .12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(33, 200, 255, .045), transparent 240px),
    linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .008) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 56px 56px, 56px 56px, auto;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  color: #051018;
  background: var(--resolve-blue);
}

.container {
  width: min(var(--container), calc(100vw - 40px));
  margin: 0 auto;
}

.site-main {
  min-height: 64vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.1;
  white-space: nowrap;
}

.btn-primary {
  color: #051018 !important;
  background: linear-gradient(135deg, var(--resolve-blue), var(--resolve-green));
  box-shadow: 0 0 0 1px rgba(33, 200, 255, .24), 0 12px 24px rgba(33, 200, 255, .12);
}

.btn-primary:hover {
  color: #051018 !important;
  background: linear-gradient(135deg, #78e2ff, #58e894);
}

.btn-ghost {
  color: var(--text-soft) !important;
  background: rgba(18, 24, 33, .64);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text) !important;
  background: var(--panel-3);
  border-color: var(--border-strong);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 292px;
  color: var(--text);
}

.site-brand:hover {
  color: var(--text);
}

.site-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #071018;
  box-shadow: 0 0 0 1px var(--border), 0 12px 24px rgba(0, 0, 0, .28);
}

.site-brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.08;
}

.site-brand-text strong {
  color: var(--text);
  font-size: .98rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-brand-text small {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 720;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.site-nav-link {
  padding: 7px 10px;
  color: var(--text-soft);
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 720;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: var(--text);
  background: var(--panel-2);
}

.site-nav-link:nth-child(1):hover { color: var(--resolve-blue); }
.site-nav-link:nth-child(2):hover { color: var(--resolve-orange); }
.site-nav-link:nth-child(3):hover { color: var(--resolve-red); }
.site-nav-link:nth-child(4):hover { color: var(--resolve-purple); }
.site-nav-link:nth-child(5):hover { color: var(--resolve-green); }
.site-nav-link:nth-child(6):hover { color: var(--resolve-yellow); }

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 20px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.site-nav-mobile.open {
  display: flex;
}

.site-nav-mobile .site-nav-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* Home: guide finder */
.finder-shell {
  padding: 30px 0 28px;
  border-bottom: 1px solid rgba(38, 49, 63, .72);
  background:
    linear-gradient(180deg, rgba(18, 24, 33, .24), rgba(7, 10, 15, .72)),
    rgba(7, 10, 15, .7);
}

.finder-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0;
  min-height: 342px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(33, 200, 255, .075), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 33, .95), rgba(9, 14, 21, .98));
  border: 1px solid color-mix(in srgb, var(--resolve-blue) 20%, var(--border));
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.finder-shell--no-rail .finder-layout {
  grid-template-columns: minmax(0, 1fr);
}

.resolve-pages,
.finder-main {
  min-width: 0;
  border: 0;
  background: transparent;
}

.resolve-pages {
  overflow: hidden;
  background: rgba(5, 9, 14, .44);
  border-right: 1px solid rgba(38, 49, 63, .82);
}

.finder-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 38px 42px;
}

.rail-label,
.finder-topline {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 840;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rail-label {
  margin: 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(38, 49, 63, .86);
}

.resolve-pages a {
  position: relative;
  display: grid;
  gap: 1px;
  min-height: 42px;
  padding: 9px 14px 9px 31px;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(38, 49, 63, .74);
}

.resolve-pages a::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--resolve-blue);
}

.resolve-pages a.media::before,
.resolve-pages a.edit::before { background: var(--resolve-blue); }
.resolve-pages a.cut::before,
.resolve-pages a.fairlight::before { background: var(--resolve-green); }
.resolve-pages a.fusion::before { background: var(--resolve-purple); }
.resolve-pages a.color::before { background: var(--resolve-red); }
.resolve-pages a.deliver::before { background: var(--resolve-orange); }

.resolve-pages span {
  color: var(--text);
  font-size: .93rem;
  font-weight: 790;
  line-height: 1.1;
}

.resolve-pages small {
  color: var(--text-muted);
  font-size: .74rem;
  line-height: 1.2;
}

.resolve-pages a:hover {
  background: rgba(33, 200, 255, .065);
}

.finder-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.finder-topline span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--resolve-blue);
}

.finder-topline img {
  width: 20px;
  height: 20px;
}

.finder-main h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.04rem, 3.3vw, 3.02rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.finder-copy {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.finder-search {
  margin-top: 22px;
}

.finder-search button {
  width: min(650px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(var(--code-bg), var(--code-bg)) padding-box,
    linear-gradient(90deg, var(--resolve-blue), var(--resolve-green), var(--resolve-orange)) border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.finder-search span {
  color: var(--text);
  font-weight: 820;
}

.finder-search small {
  min-width: 0;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.problem-strip a {
  padding: 7px 10px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(58, 72, 89, .8);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 720;
}

.problem-strip a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--panel-2);
}


/* Guide list */
.guide-desk,
.feed-section {
  padding: 42px 0 84px;
}

.guide-desk-inner {
  display: grid;
  gap: 16px;
}

.desk-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.desk-kicker,
.archive-eyebrow {
  margin: 0 0 7px;
  color: var(--resolve-blue);
  font-size: .74rem;
  font-weight: 840;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.desk-header h2 {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.desk-all-link {
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 760;
}

.guide-list,
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.guide-card {
  position: relative;
  background: rgba(13, 18, 25, .55);
  border: 1px solid rgba(38, 49, 63, .82);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--resolve-blue) 60%, var(--border));
  box-shadow: 0 18px 32px -22px rgba(33, 200, 255, .35), 0 2px 0 0 rgba(33, 200, 255, .08) inset;
}

.guide-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text);
  text-decoration: none;
}

.guide-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(33, 200, 255, .14), rgba(13, 18, 25, .6));
  border-bottom: 1px solid rgba(38, 49, 63, .72);
}

.guide-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.guide-card:hover .guide-card-img {
  transform: scale(1.035);
}

.guide-card-img--placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 200, 255, .22), rgba(13, 18, 25, .65));
}

.guide-card-img--placeholder img {
  width: 56%;
  max-width: 180px;
  opacity: .55;
}

.guide-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
  flex: 1;
}

.guide-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: .76rem;
}

.guide-card-tag {
  color: var(--resolve-blue);
  font-weight: 840;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.guide-card-read {
  position: relative;
}

.guide-card-read::before {
  content: "·";
  margin-right: 8px;
  color: var(--text-muted);
}

.guide-card-title {
  margin: 2px 0 4px;
  color: var(--text);
  font-size: 1.14rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.guide-card-excerpt {
  display: block;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.5;
}

.guide-card.featured::after {
  content: "Featured";
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: rgba(13, 18, 25, .82);
  border: 1px solid color-mix(in srgb, var(--resolve-blue) 55%, var(--border));
  border-radius: 999px;
  color: var(--resolve-blue);
  font-size: .68rem;
  font-weight: 880;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* SEO content */
.seo-hub,
.faq-section {
  border-top: 1px solid rgba(38, 49, 63, .72);
}

.seo-hub {
  padding: 14px 0 52px;
}

.seo-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.seo-copy {
  max-width: 790px;
}

.seo-copy h2,
.faq-layout h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.seo-copy p {
  margin: 0 0 1em;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.68;
}

.seo-coverage {
  padding: 18px;
  background: rgba(13, 18, 25, .62);
  border: 1px solid rgba(38, 49, 63, .8);
  border-radius: 12px;
}

.seo-coverage h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.05rem;
}

.seo-coverage ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.seo-coverage li {
  position: relative;
  padding: 9px 0 9px 18px;
  color: var(--text-soft);
  border-top: 1px solid rgba(38, 49, 63, .72);
  font-size: .92rem;
  line-height: 1.38;
}

.seo-coverage li:first-child {
  border-top: 0;
}

.seo-coverage li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--resolve-blue);
}

.faq-section {
  padding: 46px 0 78px;
  background: rgba(5, 9, 14, .38);
}

.faq-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
}

.faq-list {
  border-top: 1px solid rgba(38, 49, 63, .78);
}

.faq-list details {
  border-bottom: 1px solid rgba(38, 49, 63, .78);
}

.faq-list summary {
  padding: 15px 0;
  color: var(--text);
  font-weight: 780;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.62;
}

/* Archives */
.archive-header {
  padding: 44px 0 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(33, 200, 255, .07), transparent 46%), var(--bg);
}

.archive-header-inner {
  max-width: var(--content);
}

.archive-title {
  margin: 0 0 9px;
  font-size: clamp(1.82rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.archive-description {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
}

.archive-count {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: .88rem;
}

.author-avatar-xl {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  object-fit: cover;
  border-radius: 50%;
}

/* Posts and pages */
.post-full-header {
  padding: 50px 0 26px;
}

.post-full-header-inner,
.post-content {
  max-width: var(--content);
  margin: 0 auto;
}

.post-full-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 4px 9px;
  color: var(--resolve-blue);
  background: var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--resolve-blue) 36%, var(--border));
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 840;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-full-title {
  margin: 0 0 15px;
  font-size: clamp(2rem, 4.1vw, 3.22rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.post-full-excerpt {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.55;
}

.post-full-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: .9rem;
}

.post-full-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  color: var(--text-soft);
  font-weight: 720;
}

.dot {
  opacity: .46;
}

.post-full-image {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto 40px;
}

.post-full-image img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-full-image figcaption {
  margin-top: 9px;
  color: var(--text-muted);
  text-align: center;
  font-size: .84rem;
}

.post-full-content {
  padding-bottom: 78px;
}

.post-content {
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.72;
}

.post-content > * + * {
  margin-top: 1.18em;
}

.post-content p {
  margin: 0 0 1.14em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text);
  line-height: 1.23;
  letter-spacing: 0;
}

.post-content h2 {
  position: relative;
  margin-top: 2.25em;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 1.68rem;
}

.post-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 126px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--resolve-blue), var(--resolve-green), var(--resolve-orange));
}

.post-content h3 {
  margin-top: 1.7em;
  font-size: 1.24rem;
}

.post-content h4 {
  margin-top: 1.4em;
  font-size: 1.08rem;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 2rem auto;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.kg-gallery-image {
  flex: 1;
  min-width: 0;
}

.kg-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-bookmark-card {
  display: block;
  margin: 2rem 0;
  color: inherit;
  text-decoration: none;
}

.kg-bookmark-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.kg-bookmark-content {
  min-width: 0;
}

.kg-bookmark-title {
  color: var(--text);
  font-weight: 800;
}

.kg-bookmark-description {
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .78rem;
}

.kg-bookmark-icon {
  width: 18px;
  height: 18px;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kg-bookmark-thumbnail {
  min-height: 120px;
  border-radius: 6px;
  overflow: hidden;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content ul,
.post-content ol {
  padding-left: 1.25em;
  margin: 0 0 1.18em;
}

.post-content li {
  margin-bottom: .38em;
}

.post-content li::marker {
  color: var(--resolve-blue);
}

.post-content a {
  color: var(--resolve-blue);
  border-bottom: 1px solid rgba(33, 200, 255, .34);
}

.post-content a:hover {
  border-bottom-color: var(--resolve-blue);
}

.post-content strong {
  color: var(--text);
  font-weight: 760;
}

.post-content blockquote,
.kg-callout-card {
  margin: 1.6em 0;
  padding: 17px 19px;
  color: var(--text);
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border-left: 4px solid var(--resolve-orange);
  border-radius: 0 7px 7px 0;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content code {
  padding: 1px 6px;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: .88em;
}

.post-content pre {
  overflow-x: auto;
  margin: 1.6em 0;
  padding: 16px 18px;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .9em;
  line-height: 1.55;
}

.post-content pre code {
  padding: 0;
  background: transparent;
  border: 0;
}

.post-content hr {
  margin: 2.35em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.post-content figure,
.post-content img {
  border-radius: 8px;
}

.post-content figure.kg-image-card {
  width: min(100%, 980px);
  margin: 2em auto;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.post-content figure.kg-image-card img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.post-content figcaption,
.kg-card figcaption {
  margin: 9px 4px 0;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.kg-width-wide {
  position: relative;
  left: 50%;
  width: min(1060px, calc(100vw - 40px));
  transform: translateX(-50%);
}

.kg-width-full {
  position: relative;
  left: 50%;
  width: calc(100vw - 40px);
  max-width: 1360px;
  transform: translateX(-50%);
}

.post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .95rem;
}

.post-content th,
.post-content td {
  padding: 11px 13px;
  border: 1px solid var(--border);
  text-align: left;
}

.post-content th {
  color: var(--text);
  background: var(--panel-2);
}

.post-full-tags,
.related-section,
.subscribe-card,
.post-full-author-card {
  max-width: var(--content);
  margin: 28px auto 0;
}

.post-full-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--text-soft);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 720;
}

.chip:hover {
  color: var(--text);
  background: var(--panel-3);
}

.post-full-author-card,
.subscribe-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.post-full-author-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.author-avatar-lg {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.post-full-author-card h4,
.subscribe-card h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.post-full-author-card p,
.subscribe-card p {
  margin: 0;
  color: var(--text-muted);
}

.subscribe-card .btn {
  margin-top: 14px;
}

.related-section {
  padding: 0 0 72px;
}

.related-title {
  margin: 0 0 16px;
  font-size: 1.18rem;
}

.related-title a {
  color: var(--resolve-blue);
}

/* Footer */
.site-footer {
  padding: 40px 0 22px;
  background: #06090d;
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr 1fr;
  gap: 28px;
}

.site-footer-logo {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 850;
}

.site-footer-tagline,
.site-footer-cta p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

.site-footer-nav h4,
.site-footer-cta h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer-nav li + li {
  margin-top: 7px;
}

.site-footer-nav a,
.site-footer-legal a {
  color: var(--text-muted);
}

.site-footer-nav a:hover,
.site-footer-legal a:hover {
  color: var(--resolve-blue);
}

.site-footer-fineprint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 18px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: .86rem;
}

.site-footer-legal {
  display: flex;
  gap: 14px;
}

/* Misc */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--text-muted);
}

.pagination a {
  padding: 8px 12px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.error-section {
  padding: 90px 0;
  text-align: center;
}

.error-code {
  color: var(--resolve-blue);
  font-family: var(--font-mono);
}

.error-title {
  margin: 8px 0;
}

.error-description {
  color: var(--text-muted);
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

@media (max-width: 1040px) {
  .site-brand {
    min-width: 238px;
  }

  .site-nav-link {
    padding-inline: 8px;
  }

  .site-actions .btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .finder-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .resolve-pages,
  .finder-main {
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .resolve-pages {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .resolve-pages::-webkit-scrollbar {
    display: none;
  }

  .resolve-pages .rail-label {
    display: inline-flex;
    min-height: 38px;
    vertical-align: top;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .resolve-pages a {
    display: inline-grid;
    min-width: 126px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .seo-hub-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100vw - 28px), var(--container));
  }

  .site-header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 8px;
  }

  .site-brand-mark img {
    width: 29px;
    height: 29px;
  }

  .site-brand-text strong {
    font-size: .9rem;
    white-space: normal;
  }

  .site-brand-text small {
    display: none;
  }

  .finder-main {
    max-width: 100%;
    padding: 20px;
  }

  .finder-topline {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
  }

  .finder-main h1 {
    font-size: 1.56rem;
  }

  .finder-copy {
    font-size: .94rem;
    line-height: 1.47;
  }

  .finder-search button {
    min-height: 48px;
  }

  .finder-search small {
    display: none;
  }

  .problem-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    overflow: visible;
  }

  .problem-strip a {
    min-width: 0;
    text-align: center;
    border-radius: 12px;
    font-size: .82rem;
  }

  .desk-header {
    align-items: start;
    flex-direction: column;
  }

  .seo-hub {
    padding-bottom: 38px;
  }

  .seo-coverage {
    padding: 15px;
  }

  .faq-section {
    padding: 36px 0 58px;
  }

  .guide-list,
  .post-feed {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-card-body {
    padding: 14px 16px 18px;
  }

  .guide-card-title {
    font-size: 1.06rem;
  }

  .post-full-header {
    padding: 38px 0 22px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.42rem;
  }

  .post-full-author-card {
    align-items: start;
  }

  .site-footer-inner,
  .site-footer-fineprint {
    display: grid;
    grid-template-columns: 1fr;
  }
}
