:root {
  --sidebar-width: 280px;
  --rail-width: 296px;
  --bg: #ffffff;
  --panel: #fbf8f3;
  --panel-soft: #f6f1ea;
  --text: #43403c;
  --muted: #827a72;
  --hairline: #eee3d9;
  --accent: #e86c35;
  --accent-2: #8b7d6b;
  --accent-soft: #fff5f0;
  --nav-title: #aaa29a;
  --nav-active: #43403c;
  --nav-text-active: #fffaf4;
  --search-soft: #aaa29a;
  --search-icon: #6f6862;
  --theme-switch-bg: #fdf1e8;
  --theme-switch-active: #ffffff;
  --theme-switch-text: #5f5851;
  --theme-switch-muted: #8b837b;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root.dark {
  --bg: #0f0e0d;
  --panel: #171513;
  --panel-soft: #211f1c;
  --text: #eee9e3;
  --muted: #aaa197;
  --hairline: #302d29;
  --accent: #ff8c5a;
  --accent-2: #b5a89a;
  --accent-soft: #2d2420;
  --nav-title: #716a63;
  --nav-active: #34302b;
  --nav-text-active: #fffaf4;
  --search-soft: #746d66;
  --search-icon: #bcb4ac;
  --theme-switch-bg: #221f1c;
  --theme-switch-active: #141210;
  --theme-switch-text: #eee9e3;
  --theme-switch-muted: #8f877f;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  transition: background 220ms ease, color 220ms ease;
  -ms-overflow-style: none;
}

:root.dark body {
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

body.is-nav-open,
body.is-search-open {
  overflow: hidden;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-shell {
  display: flex;
  min-height: 100vh;
}

.mobile-topbar {
  display: none;
}

.mobile-topbar-spacer {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: var(--sidebar-width);
  height: 100vh;
  flex: 0 0 var(--sidebar-width);
  padding: 0;
  background: var(--panel);
  border-right: 1px solid var(--hairline);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px 16px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-inner::-webkit-scrollbar,
.article-rail::-webkit-scrollbar,
.resource-rail::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sidebar-mobile-head {
  display: none;
}

.brand {
  display: block;
  width: 171px;
  height: 49px;
  margin-top: -4px;
  margin-bottom: 15px;
  margin-left: 0;
  overflow: hidden;
}

.brand img {
  width: 171px;
  height: 49px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
}

.sidebar-main {
  margin-top: 8px;
}

:root.dark .brand img,
:root.dark .mobile-logo {
  filter: none;
}

.search-trigger {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--search-soft);
  background: color-mix(in srgb, var(--bg) 74%, var(--panel));
  border: 1px solid var(--hairline);
  border-radius: 6px;
  text-align: left;
  font-size: 15px;
  font-weight: 400;
  transition: all 160ms ease;
}

.search-trigger:hover {
  color: var(--search-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--hairline));
  box-shadow: var(--shadow);
}

.search-trigger > span:not(.search-icon) {
  color: var(--search-soft);
}

.search-trigger .search-icon {
  color: var(--search-icon);
}

.search-icon,
.search-panel-head svg {
  display: inline-flex;
  width: 21px;
  height: 21px;
}

kbd {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--search-soft);
  background: color-mix(in srgb, var(--panel-soft) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--hairline) 72%, transparent);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.nav-block,
.theme-card {
  margin-top: 28px;
}

.nav-block-primary {
  margin-top: 20px;
}

.nav-block-section .nav-title {
  margin-left: 15px;
}

.nav-title {
  margin: 0 0 10px 12px;
  color: var(--nav-title);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.nav-link {
  display: grid;
  min-height: 42px;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  transition: all 160ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg);
  border-color: color-mix(in srgb, var(--hairline) 76%, transparent);
}

.nav-link.is-active {
  color: var(--nav-text-active);
  background: var(--nav-active);
  border-color: var(--nav-active);
  font-weight: 500;
}

.nav-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
  line-height: 1;
}

.ui-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.icon-accent {
  stroke: color-mix(in srgb, var(--accent) 70%, var(--muted));
}

.nav-link.is-active .nav-icon {
  color: var(--nav-text-active);
}

.nav-link.is-active .icon-accent {
  stroke: currentColor;
}

.nav-label {
  display: grid;
  min-width: 0;
}

.nav-label strong {
  overflow: hidden;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-products {
  display: grid;
  gap: 8px;
}

.nav-products .nav-title {
  margin-bottom: 2px;
}

.sidebar-product {
  display: grid;
  min-height: 46px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 6px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sidebar-product:hover {
  transform: translateX(2px);
  border-color: var(--hairline);
  box-shadow: 0 10px 26px rgba(57, 48, 38, 0.08);
}

.sidebar-product .resource-sprite {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.sidebar-product .gear-emoji {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 17px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 5px;
  background: var(--theme-switch-bg);
  border: 1px solid color-mix(in srgb, var(--hairline) 48%, transparent);
  border-radius: 7px;
}

.theme-options button {
  min-height: 30px;
  color: var(--theme-switch-muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-family: "Avenir Next", "SF Pro Display", var(--display-font);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  transition: all 200ms ease;
}

.theme-options button:hover {
  color: var(--theme-switch-text);
}

.theme-options button.is-active {
  color: var(--theme-switch-text);
  background: var(--theme-switch-active);
  box-shadow: 0 1px 2px rgba(67, 64, 60, 0.06);
}

.theme-card {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding-top: 18px;
  background: linear-gradient(180deg, transparent, var(--panel) 42%);
}

.main-view {
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  flex: 1;
}

.home-layout {
  max-width: 900px;
  margin: 48px auto 80px;
  padding: 0 40px;
}

.hero-banner {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

.hero-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3) 40%, transparent 65%);
  pointer-events: none;
}

:root.dark .hero-banner::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4) 40%, transparent 65%);
}

.hero-banner-copy {
  position: absolute;
  inset: 40px auto auto 40px;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.hero-banner-copy span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-banner-copy strong {
  max-width: 400px;
  color: #ffffff;
  font-family: var(--display-font);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-banner-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-banner-copy em {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 760px;
  margin: 56px 0 0;
}

.hero-copy h1 {
  margin-bottom: 24px;
}

.hero-copy > p {
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.inline-link:hover {
  border-bottom-color: var(--accent);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  max-width: 520px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.hero-stats div {
  min-height: 88px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: all 200ms ease;
}

.hero-stats div:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.hero-stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 200ms ease;
}

.button-link:hover {
  transform: translateY(-2px);
  color: var(--nav-text-active);
  background: var(--nav-active);
  border-color: var(--nav-active);
  box-shadow: var(--shadow);
}

.section-band {
  margin-top: 72px;
  padding-top: 0;
}

.section-band + .section-band {
  border-top: 0;
  margin-top: 72px;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading-row h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.8vw, 32px);
}

.section-heading-row a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.section-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.intro-prose {
  max-width: 760px;
  margin-top: 56px;
}

.intro-prose h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 32px;
}

.intro-prose h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin-top: 48px;
  margin-bottom: 16px;
  font-weight: 700;
}

.intro-prose h2:first-of-type {
  margin-top: 32px;
}

.intro-prose p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.intro-prose ul {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.intro-prose li {
  position: relative;
  margin: 12px 0;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.7;
}

.intro-prose li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: bold;
}

.intro-prose li strong {
  font-weight: 600;
}

.intro-prose .button-link {
  margin-top: 22px;
}

.home-mini-heading {
  margin-bottom: 16px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  position: relative;
  min-height: 160px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: all 200ms ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.topic-card p,
.article-card p,
.resource-card p,
.home-resource-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.topic-meta {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.article-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 32px 20px;
  background: var(--panel);
  border-right: 1px solid var(--hairline);
}

.rail-title {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.rail-list {
  display: grid;
  gap: 2px;
}

.rail-item {
  display: block;
  width: 100%;
  padding: 14px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  transition: all 200ms ease;
}

.rail-item:hover {
  background: var(--panel-soft);
}

.rail-item.is-active {
  background: var(--panel);
  border: 1px solid var(--hairline);
}

.rail-item:hover .rail-item-title,
.rail-item.is-active .rail-item-title {
  color: var(--accent);
}

.rail-item-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.rail-item-date {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.overview-body > p:first-of-type {
  margin-top: 28px;
}

.principle-stack {
  display: grid;
  gap: 0;
  margin: 46px 0 62px;
  border-top: 1px solid var(--hairline);
}

.principle-card {
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}

.principle-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 13px;
}

.principle-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 36px);
}

.principle-card p {
  margin-bottom: 0;
}

.archive-section {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.archive-list {
  display: grid;
  gap: 2px;
}

.archive-row {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  transition: all 200ms ease;
}

.archive-row:hover {
  background: var(--panel-soft);
  margin: 0 -12px;
  padding: 20px 12px;
  border-radius: 8px;
}

.archive-row small,
.archive-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.archive-row strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.archive-rail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.archive-rail-stats div {
  min-height: 74px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.archive-rail-stats strong,
.archive-rail-stats span {
  display: block;
}

.archive-rail-stats strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.archive-rail-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.archive-summary-grid,
.archive-topic-grid,
.archive-link-grid {
  display: grid;
  gap: 12px;
}

.archive-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0 10px;
}

.archive-topic-grid,
.archive-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-summary-card,
.archive-link-grid a {
  display: block;
  min-height: 178px;
  padding: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-soft) 72%, transparent), transparent 70%),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.archive-summary-card span,
.archive-link-grid span {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.archive-summary-card strong {
  display: block;
  margin: 16px 0 12px;
  color: var(--text);
  font-family: var(--display);
  font-size: 54px;
  line-height: 0.9;
}

.archive-summary-card p,
.archive-link-grid small {
  color: var(--muted);
  line-height: 1.65;
}

.archive-link-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
}

.content-pane {
  min-width: 0;
  padding: 64px clamp(30px, 6vw, 92px) 70px;
}

.article-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta span {
  color: var(--accent);
}

.article-body {
  max-width: 760px;
}

.article-body h1 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.14;
}

.article-body p {
  margin: 20px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 58px;
}

.article-body h3 {
  margin-top: 34px;
}

.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-left: 1.3em;
}

.article-body li {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.82;
}

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.article-body a:hover {
  border-bottom-color: var(--accent);
}

.article-callout {
  margin: 34px 0;
  padding: 20px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--hairline));
  border-radius: 6px;
}

.article-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 36px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.article-meta-grid div {
  min-height: 0;
  padding: 14px 16px 14px 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hairline);
  border-radius: 0;
}

.article-meta-grid div:last-child {
  border-right: 0;
}

.article-meta-grid span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.article-meta-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.article-toolkit {
  display: grid;
  gap: 18px;
  margin: 26px 0 36px;
  padding: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-soft) 76%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.toolkit-title {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.toolkit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolkit-links a,
.toolkit-links span,
.toolkit-actions a,
.toolkit-actions button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
}

.toolkit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolkit-actions button {
  cursor: pointer;
}

.toolkit-links a:hover,
.toolkit-actions a:hover,
.toolkit-actions button:hover {
  color: var(--nav-text-active);
  background: var(--nav-active);
}

.article-toolkit small {
  min-height: 18px;
  color: var(--accent-2);
  font-size: 13px;
}

.article-video {
  margin: 52px 0 56px;
}

.article-video h2 {
  margin-top: 0;
}

.video-card {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 290px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  color: #fff;
  background: #171614;
  border: 1px solid color-mix(in srgb, var(--hairline) 72%, #000);
  border-radius: 4px;
  box-shadow: 0 24px 58px rgba(30, 27, 22, 0.16);
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.72), rgba(23, 22, 20, 0.12) 44%, rgba(23, 22, 20, 0.46)),
    linear-gradient(180deg, transparent 48%, rgba(23, 22, 20, 0.82));
  pointer-events: none;
}

.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 300ms ease;
}

.video-card:hover img {
  transform: scale(1.06);
}

.play-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 76px;
  height: 52px;
  place-items: center;
  background: #dc3d2d;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.video-caption {
  position: absolute;
  z-index: 1;
  inset: auto 22px 22px;
  display: grid;
  width: calc(100% - 44px);
  gap: 4px;
}

.video-caption small {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 12px;
}

.video-caption strong {
  max-width: 620px;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.video-caption span {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.article-resources {
  margin: 52px 0 60px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.article-resources-head {
  display: grid;
  gap: 4px;
}

.article-resources-head h2 {
  margin: 0;
}

.article-resources-head p:last-child {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.article-resource-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px dashed var(--hairline);
}

.article-resource-row {
  display: grid;
  grid-template-columns: 120px minmax(160px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px dashed var(--hairline);
}

.article-resource-row span,
.article-resource-row small {
  color: var(--muted);
  font-size: 13px;
}

.article-resource-row span {
  font-family: var(--mono);
}

.article-resource-row strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.article-resource-row:hover strong {
  color: var(--accent);
}

.article-afterword {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.article-afterword h2 {
  margin-top: 0;
  font-size: clamp(32px, 3.4vw, 44px);
}

.article-afterword p {
  max-width: 760px;
}

.article-afterword a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
}

.article-related-panel {
  margin-top: 66px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.article-related-panel h2 {
  margin-top: 0;
}

.article-related-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.article-related-grid a {
  display: grid;
  min-height: 132px;
  align-content: start;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-related-grid a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
  box-shadow: 0 18px 42px rgba(57, 48, 38, 0.1);
}

.article-related-grid span,
.article-related-grid small {
  color: var(--muted);
  font-size: 13px;
}

.article-related-grid span {
  font-family: var(--mono);
}

.article-related-grid strong {
  display: block;
  margin: 9px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.article-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}

.article-footer-line div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.article-footer-line a:hover {
  color: var(--accent);
}

.footer-note {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.footer-copyright {
  color: var(--muted);
  font-size: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  transition: all 200ms ease;
}

.footer-social a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: block;
  min-height: 140px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: all 200ms ease;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.contact-card h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.author-box {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  margin-top: 62px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.author-box img {
  width: 110px;
  height: 86px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

:root.dark .author-box img {
  filter: invert(1) contrast(1.1);
  mix-blend-mode: screen;
}

.author-box h2 {
  margin: 0 0 10px;
}

.author-box p {
  margin: 0;
  color: var(--muted);
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.author-links a {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
}

.latest-list {
  display: grid;
  border-top: 0;
  gap: 4px;
}

.latest-row {
  display: grid;
  grid-template-columns: 120px minmax(180px, 0.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  transition: all 200ms ease;
}

.latest-row:hover {
  background: var(--panel-soft);
  margin: 0 -12px;
  padding: 18px 12px;
  border-radius: 8px;
}

.latest-row small,
.latest-row span,
.home-resource-card small {
  color: var(--muted);
  font-size: 13px;
}

.latest-row strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-row {
  display: block;
  min-height: 176px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.status-row:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
}

.status-row small,
.status-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.status-row strong {
  display: block;
  margin: 14px 0 9px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.4;
}

.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.core-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-resource-card {
  display: block;
  min-height: 180px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: all 200ms ease;
}

.home-resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.home-resource-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.home-resource-icon .ui-icon {
  width: 24px;
  height: 24px;
}

.home-resource-card .resource-sprite {
  margin-bottom: 18px;
}

.home-resource-card small {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.home-resource-card strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.page-simple {
  max-width: 860px;
  margin: 78px auto;
  padding: 0 40px;
}

.page-simple .simple-card {
  margin-top: 28px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.link-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--hairline);
}

.link-row strong {
  font-size: 17px;
}

.link-row span {
  color: var(--muted);
  font-size: 14px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.resource-card {
  min-height: 168px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}

.resource-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.resource-card li {
  padding: 8px 0;
  color: var(--text);
  border-top: 1px dashed var(--hairline);
  font-size: 14px;
}

.resource-card h2 {
  font-size: clamp(22px, 2.3vw, 30px);
}

.resource-card-link {
  display: block;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-card-link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--hairline));
  box-shadow: 0 16px 38px rgba(57, 48, 38, 0.1);
}

.resource-open {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.resource-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.resource-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 30px 24px;
  background: color-mix(in srgb, var(--panel) 76%, var(--panel-soft));
  border-right: 1px solid var(--hairline);
}

.resource-menu {
  display: grid;
  gap: 14px;
}

.resource-menu-card {
  display: grid;
  min-height: 78px;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gear-menu-card {
  display: grid;
  min-height: 84px;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.resource-menu-card:hover,
.resource-menu-card.is-active,
.gear-menu-card:hover,
.gear-menu-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
  box-shadow: none;
}

.resource-sprite {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  background-image: url("./assets/wang-resource-icons.png");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.gear-emoji {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 64%, transparent), transparent 68%),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.sprite-setup {
  background-position: 0 0;
}

.sprite-prompts {
  background-position: 100% 0;
}

.sprite-workflows {
  background-position: 0 100%;
}

.sprite-education {
  background-position: 100% 100%;
}

.resource-menu-card .resource-sprite {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
}

.resource-menu-card strong {
  font-size: 17px;
  line-height: 1.45;
}

.resource-menu-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.resource-menu-icon .ui-icon {
  width: 25px;
  height: 25px;
}

.gear-menu-card strong {
  font-size: 17px;
  line-height: 1.45;
}

.resource-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.resource-card-head .resource-sprite {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.resource-card-head .topic-meta {
  margin-bottom: 0;
}

.resource-pane .article-body {
  max-width: 780px;
}

.resource-section {
  margin-top: 62px;
  scroll-margin-top: 24px;
}

.resource-section:first-of-type {
  margin-top: 48px;
}

.resource-section > p {
  color: var(--text);
}

.gear-pane .article-body {
  max-width: 820px;
}

.gear-section {
  margin-top: 54px;
  padding: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-soft) 72%, transparent), transparent 74%),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  scroll-margin-top: 24px;
}

.gear-section:first-of-type {
  margin-top: 46px;
}

.gear-section-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.gear-section-head h2 {
  margin: 0 0 8px;
}

.gear-section-head p,
.gear-section > p {
  margin: 0;
}

.gear-section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.gear-section > p {
  margin-top: 18px;
  color: var(--text);
}

.gear-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.gear-chip-row span {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
}

.gear-section-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  font-family: var(--mono);
  font-size: 13px;
}

.resource-detail-body {
  max-width: 880px;
}

.resource-detail-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.resource-detail-head .resource-sprite {
  width: 68px;
  height: 68px;
}

.resource-detail-head h1 {
  max-width: 780px;
}

.resource-detail-card {
  margin-top: 44px;
  padding: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 44%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.resource-detail-card h2,
.resource-step-list h2,
.resource-template-list h2 {
  margin-bottom: 16px;
}

.resource-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.resource-chip-row span {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
}

.resource-step-list,
.resource-template-list {
  margin-top: 58px;
}

.resource-step {
  display: grid;
  grid-template-columns: 54px minmax(160px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px dashed var(--hairline);
}

.resource-step span,
.template-card span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.resource-step strong {
  font-size: 19px;
  line-height: 1.35;
}

.resource-step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.template-card {
  margin-top: 12px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.template-card p {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.8;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  margin-top: 74px;
  padding: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 58%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.newsletter-panel.compact {
  margin-top: 34px;
}

.newsletter-panel p {
  margin: 0;
  color: var(--muted);
}

.newsletter-form {
  display: grid;
  align-content: start;
  gap: 10px;
}

.newsletter-form.inline {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px;
  align-items: start;
}

.newsletter-form.inline small {
  grid-column: 1 / -1;
}

.newsletter-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--text);
  border-radius: 6px;
  outline: 0;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.newsletter-form button {
  min-height: 46px;
  color: var(--nav-text-active);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
}

.newsletter-form small {
  color: var(--muted);
  font-size: 13px;
}

.newsletter-form.is-submitted small {
  color: var(--accent-2);
}

.newsletter-body {
  max-width: 820px;
}

.newsletter-hero-copy {
  max-width: 760px;
  margin-top: 28px;
}

.newsletter-card {
  display: block;
  margin-top: 46px;
  padding: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 54%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.newsletter-card h2 {
  margin-bottom: 10px;
}

.newsletter-card p {
  margin: 0;
  color: var(--muted);
}

.newsletter-card .eyebrow {
  white-space: nowrap;
}

.newsletter-card .newsletter-form.inline {
  margin-top: 22px;
}

.newsletter-issues {
  margin-top: 72px;
}

.issue-body {
  max-width: 820px;
}

.issue-masthead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 38px;
}

.issue-masthead span {
  min-height: 64px;
  padding: 14px;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
}

.issue-note {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.issue-note > div {
  padding: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-soft) 78%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.issue-note span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.issue-note p {
  margin-bottom: 0;
}

.issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.changelog-rail-note {
  margin-bottom: 24px;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 44%, transparent), transparent 72%),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.changelog-rail-note span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.changelog-rail-note strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.changelog-rail-note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.changelog-list {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.changelog-date {
  position: sticky;
  top: 28px;
  padding-top: 8px;
}

.changelog-date span,
.changelog-date small {
  display: block;
}

.changelog-date span {
  color: var(--accent);
  font-family: var(--display);
  font-size: 44px;
  line-height: 0.92;
}

.changelog-date small {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.changelog-card {
  padding: 26px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-soft) 78%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.changelog-card .topic-meta {
  margin-bottom: 12px;
}

.changelog-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.changelog-card p {
  margin: 16px 0 0;
}

.changelog-card ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.changelog-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.changelog-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.reviews-shell {
  max-width: 900px;
  margin: 76px auto 80px;
  padding: 0 40px;
}

.reviews-head {
  max-width: 720px;
}

.review-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 46px 0 28px;
}

.review-filter-row a {
  min-height: 38px;
  padding: 8px 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel-soft) 74%, var(--panel));
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-weight: 700;
}

.review-filter-row a.is-active {
  color: var(--nav-text-active);
  background: var(--nav-active);
  border-color: var(--nav-active);
}

.review-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  min-height: 280px;
  padding: 26px;
  color: #fff7e8;
  background:
    radial-gradient(circle at 88% 12%, rgba(223, 156, 79, 0.2), transparent 10rem),
    #25262a;
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(30, 27, 22, 0.16);
}

.review-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.review-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  background: #3d7bed;
  border-radius: 50%;
  font-weight: 800;
}

.review-card-head strong,
.review-card-head small,
.review-tag {
  display: block;
}

.review-card-head strong {
  color: #fffdf8;
  font-size: 18px;
}

.review-card-head small {
  color: rgba(255, 247, 232, 0.65);
  font-size: 13px;
}

.review-stars {
  margin: 22px 0 12px;
  color: #ffc94d;
  letter-spacing: 2px;
}

.review-card p {
  margin: 0;
  color: #fff7e8;
  font-size: 17px;
  line-height: 1.75;
}

.review-tag {
  display: inline-flex;
  margin-top: 20px;
  padding: 4px 8px;
  color: #27231f;
  background: #fff1b8;
  border-radius: 4px;
  font-size: 13px;
}

.reviews-note {
  max-width: 740px;
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.reviews-note p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.85;
}

.templates-shell {
  max-width: 1080px;
  margin: 72px auto 86px;
  padding: 0 40px;
}

.templates-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
  align-items: end;
}

.templates-hero .lead {
  max-width: 760px;
}

.templates-hero-card {
  min-height: 190px;
  padding: 24px;
  color: #fff7e8;
  background:
    linear-gradient(135deg, rgba(197, 122, 44, 0.88), rgba(69, 111, 157, 0.86)),
    #2c2925;
  border: 1px solid rgba(255, 247, 232, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(57, 48, 38, 0.18);
}

.templates-hero-card span,
.templates-hero-card strong,
.templates-hero-card small {
  display: block;
}

.templates-hero-card span {
  font-family: var(--display-font);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.templates-hero-card strong {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.templates-hero-card small {
  margin-top: 18px;
  color: rgba(255, 247, 232, 0.74);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.template-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 18px;
}

.template-filter-row a {
  min-height: 38px;
  padding: 8px 16px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-weight: 750;
}

.template-filter-row a.is-active {
  color: var(--nav-text-active);
  background: var(--nav-active);
  border-color: var(--nav-active);
}

.template-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.template-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.template-product-card {
  display: grid;
  min-height: 410px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.template-product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline));
  box-shadow: 0 20px 48px rgba(57, 48, 38, 0.14);
}

.template-cover {
  position: relative;
  display: grid;
  min-height: 156px;
  align-content: space-between;
  padding: 18px;
  color: #fffaf1;
  background:
    linear-gradient(135deg, rgba(49, 80, 112, 0.96), rgba(203, 134, 55, 0.78)),
    #2a2d31;
}

.template-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 6px;
  pointer-events: none;
}

.template-cover span,
.template-cover strong {
  position: relative;
  z-index: 1;
}

.template-cover span {
  justify-self: start;
  padding: 4px 8px;
  background: rgba(255, 250, 241, 0.14);
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
}

.template-cover strong {
  font-family: var(--display-font);
  font-size: 54px;
  line-height: 0.9;
}

.template-ai .template-cover {
  background:
    linear-gradient(135deg, rgba(69, 111, 157, 0.95), rgba(232, 197, 132, 0.88)),
    #263747;
}

.template-work .template-cover {
  background:
    linear-gradient(135deg, rgba(52, 89, 75, 0.95), rgba(197, 122, 44, 0.86)),
    #26342d;
}

.template-creator .template-cover {
  background:
    linear-gradient(135deg, rgba(86, 66, 103, 0.96), rgba(218, 108, 82, 0.84)),
    #342a38;
}

.template-education .template-cover {
  background:
    linear-gradient(135deg, rgba(89, 84, 58, 0.95), rgba(86, 138, 153, 0.86)),
    #343425;
}

.template-product-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.template-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.template-product-meta strong {
  color: var(--text);
  font-size: 14px;
}

.template-product-body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.template-product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.template-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.template-chip-row span {
  min-height: 30px;
  padding: 4px 8px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
}

.templates-note {
  max-width: 760px;
  margin-top: 68px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.templates-note p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.85;
}

.template-detail-shell {
  max-width: 1080px;
  margin: 54px auto 86px;
  padding: 0 40px;
}

.template-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  font-family: var(--mono);
  font-size: 13px;
}

.template-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}

.template-detail-main {
  min-width: 0;
}

.template-detail-cover {
  margin-bottom: 42px;
}

.template-detail-cover .template-cover {
  min-height: 330px;
  border-radius: 8px;
}

.template-detail-cover .template-cover strong {
  font-size: clamp(72px, 10vw, 132px);
}

.template-detail-section {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.template-detail-section h2 {
  margin-top: 0;
}

.template-included-list {
  display: grid;
  gap: 14px;
}

.template-included-list > div {
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px dashed var(--hairline);
}

.template-included-list > div:first-child {
  border-top: 0;
}

.template-included-list span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.template-included-list strong {
  font-size: 19px;
  line-height: 1.35;
}

.template-included-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.template-checkout-card {
  position: sticky;
  top: 36px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(57, 48, 38, 0.12);
}

.template-checkout-card > span {
  color: var(--muted);
  font-size: 14px;
}

.template-checkout-card h2 {
  margin: 12px 0 4px;
  font-size: 38px;
}

.template-checkout-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.template-checkout-card .button-link {
  width: 100%;
  justify-content: center;
}

.template-secondary-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
}

.template-checkout-note {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--hairline);
}

.template-checkout-note strong {
  font-size: 15px;
}

.template-checkout-note small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.academy-shell {
  max-width: 1080px;
  margin: 70px auto 90px;
  padding: 0 40px;
}

.academy-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.academy-hero-copy h1 {
  max-width: 760px;
}

.academy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button-link.subtle {
  color: var(--text);
  background: var(--panel-soft);
  border-color: var(--hairline);
}

.button-link.subtle:hover {
  color: var(--text);
  background: var(--panel);
  border-color: var(--text);
}

.academy-hero-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #191816;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(57, 48, 38, 0.16);
}

.academy-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.academy-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 24, 22, 0.16), rgba(25, 24, 22, 0.84)),
    linear-gradient(90deg, rgba(69, 111, 157, 0.34), rgba(197, 122, 44, 0.22));
}

.academy-hero-media div {
  position: absolute;
  z-index: 1;
  inset: auto 24px 24px;
  display: grid;
  gap: 8px;
  color: #fff7e8;
}

.academy-hero-media span {
  font-family: var(--mono);
  font-size: 13px;
}

.academy-hero-media strong {
  font-size: 24px;
  line-height: 1.25;
}

.academy-section {
  margin-top: 86px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.academy-section h2 {
  max-width: 820px;
  margin-top: 0;
}

.academy-problem-grid,
.academy-outcome-grid,
.academy-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.academy-problem-grid > div,
.academy-outcome-grid > div,
.academy-plan-card {
  min-height: 210px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.academy-problem-grid strong,
.academy-outcome-grid strong,
.academy-plan-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.35;
}

.academy-problem-grid p,
.academy-outcome-grid p,
.academy-plan-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.academy-module-list {
  display: grid;
  margin-top: 32px;
}

.academy-module {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px dashed var(--hairline);
}

.academy-module:first-child {
  border-top: 0;
}

.academy-module > span {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.academy-module small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.academy-module h3 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.academy-module p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.academy-lesson-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.academy-lesson-row em {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
}

.academy-plan-card {
  display: grid;
  align-content: start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.academy-plan-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline));
  box-shadow: 0 20px 48px rgba(57, 48, 38, 0.12);
}

.academy-plan-card span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.academy-plan-card small {
  display: inline-flex;
  justify-self: start;
  margin-top: 20px;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  font-family: var(--mono);
  font-size: 13px;
}

.command-shell {
  max-width: 1080px;
  margin: 70px auto 90px;
  padding: 0 40px;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.command-hero > * {
  min-width: 0;
}

.command-hero h1 {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.command-preview {
  min-height: 410px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(69, 111, 157, 0.18), rgba(197, 122, 44, 0.16)),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(57, 48, 38, 0.16);
}

.command-window-bar {
  display: flex;
  gap: 7px;
  padding: 2px 0 18px;
}

.command-window-bar span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.72;
}

.command-window-bar span:nth-child(2) {
  background: #d9b56f;
}

.command-window-bar span:nth-child(3) {
  background: var(--accent-2);
}

.command-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.command-preview-grid > div {
  min-height: 150px;
  padding: 16px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.command-preview-grid small,
.command-preview-grid em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
}

.command-preview-grid strong {
  display: block;
  margin: 12px 0 18px;
  font-size: 21px;
  line-height: 1.28;
}

.command-preview-grid em {
  display: inline-flex;
  padding: 4px 8px;
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 64px;
}

.command-metrics div {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.command-metrics strong,
.command-metrics span {
  display: block;
}

.command-metrics strong {
  font-family: var(--display-font);
  font-size: 44px;
  line-height: 1;
}

.command-metrics span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.command-section {
  margin-top: 86px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.command-section h2 {
  max-width: 820px;
  margin-top: 0;
}

.command-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.command-panel-card {
  min-height: 260px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.command-panel-card span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.command-panel-card h3 {
  margin: 12px 0 10px;
  font-size: 28px;
}

.command-panel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.command-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.command-chip-row em {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
}

.cowork-shell {
  max-width: 1080px;
  margin: 70px auto 90px;
  padding: 0 40px;
}

.cowork-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.74fr);
  gap: 46px;
  align-items: center;
}

.cowork-hero > * {
  min-width: 0;
}

.cowork-hero h1 {
  max-width: 780px;
  overflow-wrap: anywhere;
}

.cowork-board {
  min-height: 430px;
  padding: 20px;
  background:
    linear-gradient(160deg, rgba(244, 223, 196, 0.9), rgba(69, 111, 157, 0.14)),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(57, 48, 38, 0.15);
}

.cowork-board-top {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}

.cowork-board-top span,
.cowork-board-top strong,
.cowork-context-stack small,
.cowork-context-stack em {
  font-family: var(--mono);
  font-size: 12px;
}

.cowork-board-top span {
  color: var(--accent);
}

.cowork-board-top strong {
  color: var(--muted);
  font-weight: 700;
}

.cowork-context-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cowork-context-stack div {
  min-height: 104px;
  padding: 16px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.cowork-context-stack small,
.cowork-context-stack em,
.cowork-signal-row span {
  color: var(--muted);
}

.cowork-context-stack strong {
  display: block;
  margin: 10px 0 12px;
  font-size: 21px;
  line-height: 1.32;
}

.cowork-context-stack em {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-style: normal;
}

.cowork-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 58px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.cowork-signal-row span,
.cowork-signal-row strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.cowork-signal-row span {
  margin-right: 4px;
  font-size: 13px;
}

.cowork-signal-row strong {
  padding: 5px 11px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 14px;
}

.cowork-section {
  margin-top: 86px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.cowork-section h2,
.cowork-cta h2 {
  max-width: 820px;
  margin-top: 0;
}

.cowork-problem-grid,
.cowork-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.cowork-problem-grid > div,
.cowork-outcome-card {
  min-height: 230px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.cowork-problem-grid strong,
.cowork-outcome-card h3 {
  display: block;
  font-size: 21px;
  line-height: 1.35;
}

.cowork-problem-grid p,
.cowork-outcome-card p,
.cowork-schedule-list p,
.cowork-cta p {
  color: var(--muted);
  line-height: 1.75;
}

.cowork-problem-grid p,
.cowork-outcome-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.cowork-outcome-card span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.cowork-outcome-card h3 {
  margin: 12px 0 10px;
}

.cowork-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cowork-chip-row em {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
}

.cowork-schedule-list {
  display: grid;
  margin-top: 32px;
}

.cowork-schedule-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px dashed var(--hairline);
}

.cowork-schedule-list article:first-child {
  border-top: 0;
}

.cowork-schedule-list span {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.cowork-schedule-list h3 {
  margin: 4px 0 10px;
  font-size: 28px;
}

.cowork-schedule-list p {
  max-width: 740px;
  margin: 0;
  font-size: 17px;
}

.cowork-cta {
  margin-top: 86px;
  padding: 30px 0 0;
  border-top: 1px solid var(--hairline);
}

.cowork-cta p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.home-contact-list {
  display: grid;
  margin-top: 14px;
  border-top: 1px dashed var(--hairline);
}

.home-contact-row {
  display: grid;
  grid-template-columns: 110px minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--hairline);
}

.home-contact-row span,
.home-contact-row small {
  color: var(--muted);
  font-size: 13px;
}

.home-contact-row strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
}

.home-contact-row:hover strong {
  color: var(--accent);
}

.contact-tile {
  min-height: 132px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.contact-tile span,
.contact-tile small,
.related-card small,
.related-card span,
.reading-row span,
.reading-row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-tile strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 18px;
}

.related-posts {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.related-grid {
  display: grid;
  gap: 12px;
}

.related-card,
.reading-row {
  display: block;
  padding: 16px 0;
  border-bottom: 1px dashed var(--hairline);
}

.related-card strong,
.reading-row strong {
  display: block;
  margin: 5px 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.newsletter-reading-list {
  margin-top: 10px;
}

.about-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.about-stack > div {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.profile-layout .article-rail {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 34%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 74%, var(--panel-soft));
}

.profile-rail-list {
  display: grid;
  gap: 12px;
}

.profile-rail-card {
  padding: 16px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.profile-rail-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.profile-rail-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.profile-body {
  max-width: 840px;
}

.profile-statement {
  margin-top: 42px;
  padding: 30px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-soft) 78%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.profile-statement p:first-child {
  margin-top: 0;
}

.profile-statement p:last-child {
  margin-bottom: 0;
}

.profile-grid,
.contact-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.profile-card,
.contact-note-grid > div {
  min-height: 220px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.profile-card h2,
.contact-note-grid h2 {
  font-size: clamp(24px, 2.5vw, 34px);
}

.profile-card p,
.contact-note-grid p {
  color: var(--muted);
}

.belief-list {
  display: grid;
  gap: 0;
  border-top: 1px dashed var(--hairline);
}

.belief-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--hairline);
}

.belief-list strong {
  font-size: 18px;
  line-height: 1.5;
}

.belief-list span {
  color: var(--muted);
}

.contact-panel {
  display: grid;
  gap: 0;
  margin-top: 42px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 130px minmax(150px, 0.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px dashed var(--hairline);
}

.contact-channel:last-child {
  border-bottom: 0;
}

.contact-channel span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.contact-channel strong {
  font-size: 18px;
}

.contact-channel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.footer-note {
  margin-top: 64px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 44px 28px 22px;
  background: rgba(23, 22, 20, 0.22);
  backdrop-filter: blur(8px);
}

.search-modal.is-open {
  display: block;
}

.search-panel {
  width: min(1026px, 100%);
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.search-panel-head {
  display: grid;
  min-height: 104px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px 48px;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(31, 28, 24, 0.16);
}

.search-panel-head svg {
  width: 34px;
  height: 34px;
  color: #151515;
  stroke-width: 2.15;
}

.search-panel-head input {
  width: 100%;
  min-height: 48px;
  color: #34302c;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

.search-panel-head input::placeholder {
  color: #9ca1ad;
}

.search-panel-head button {
  display: none;
}

.search-results {
  max-height: min(58vh, 520px);
  overflow-y: auto;
  margin-top: 12px;
  padding: 0;
}

.search-results:not(:empty) {
  overflow: hidden auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(238, 227, 217, 0.72);
  border-radius: 10px;
  box-shadow: 0 18px 54px rgba(31, 28, 24, 0.12);
}

.search-panel-summary {
  padding: 14px 24px 10px;
  color: #8a8179;
  font-size: 14px;
  line-height: 1.6;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 0 12px;
}

.search-suggestions button {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
}

.search-suggestions button:hover {
  color: var(--nav-text-active);
  background: var(--nav-active);
}

.search-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.search-quick-grid a {
  display: grid;
  min-height: 126px;
  align-content: start;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.search-quick-grid a:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
}

.search-quick-grid span,
.search-quick-grid small {
  color: var(--muted);
  font-size: 12px;
}

.search-quick-grid span {
  font-family: var(--mono);
}

.search-quick-grid strong {
  display: block;
  margin: 9px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.search-result-group {
  padding-top: 4px;
}

.search-section-title {
  padding: 14px 2px 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.search-result {
  display: block;
  padding: 15px 24px;
  border-top: 1px solid rgba(238, 227, 217, 0.78);
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover {
  background: #fbf8f3;
}

.search-result-meta {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.search-result-meta small {
  display: block;
  color: #b96a42;
  font-family: var(--mono);
  font-size: 12px;
}

.search-result-meta em {
  display: none;
}

.search-result strong {
  display: block;
  color: #3f3b36;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.search-result p {
  margin: 4px 0 0;
  color: #817971;
  font-size: 14px;
  line-height: 1.55;
}

.search-empty {
  display: grid;
  gap: 6px;
  padding: 24px;
  color: #817971;
}

.search-empty strong {
  color: #3f3b36;
  font-size: 17px;
}

.sidebar-backdrop {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1180px) {
  .article-layout,
  .resource-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .article-rail,
  .resource-rail {
    padding-inline: 20px;
  }
}

@media (max-width: 980px) {
  body {
    padding-top: 62px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 20rem),
      var(--bg);
  }

  :root.dark body {
    background:
      linear-gradient(180deg, rgba(255, 154, 74, 0.055), transparent 18rem),
      #181612;
  }

  .mobile-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 55;
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    border-bottom: 1px solid var(--hairline);
    backdrop-filter: blur(14px);
  }

  .mobile-topbar-spacer {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .mobile-logo {
    width: 128px;
    height: 40px;
    object-fit: contain;
    filter: invert(1);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    transform: translateX(-102%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: none;
    background: rgba(23, 22, 20, 0.3);
  }

  .sidebar-backdrop.is-open {
    display: block;
  }

  .main-view {
    width: 100%;
  }

  .search-modal {
    padding: 44px 16px 12px;
  }

  .search-panel {
    max-height: none;
    display: block;
  }

  .search-panel-head {
    min-height: 74px;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 11px;
  }

  .search-panel-head svg {
    width: 26px;
    height: 26px;
  }

  .search-panel-head input {
    min-height: 38px;
    font-size: 21px;
  }

  .search-results {
    max-height: calc(100dvh - 142px);
  }

  .search-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-layout {
    margin-top: 34px;
    padding-inline: 22px;
  }

  .article-layout,
  .resource-layout {
    display: block;
  }

  .article-rail,
  .resource-rail {
    position: relative;
    height: auto;
    max-height: none;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .rail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .rail-item,
  .resource-menu-card,
  .gear-menu-card {
    width: 245px;
    flex: 0 0 245px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 13px;
  }

  .resource-menu {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .rail-list,
  .resource-menu,
  .profile-rail-list {
    scrollbar-width: none;
  }

  .rail-list::-webkit-scrollbar,
  .resource-menu::-webkit-scrollbar,
  .profile-rail-list::-webkit-scrollbar {
    display: none;
  }

  .content-pane {
    padding: 38px 22px 60px;
  }

  .reviews-shell {
    margin-top: 44px;
    padding-inline: 22px;
  }

  .templates-shell {
    margin-top: 44px;
    padding-inline: 22px;
  }

  .academy-shell {
    margin-top: 44px;
    padding-inline: 22px;
  }

  .command-shell {
    margin-top: 44px;
    padding-inline: 22px;
  }

  .cowork-shell {
    margin-top: 44px;
    padding-inline: 22px;
  }

  .template-detail-shell {
    margin-top: 36px;
    padding-inline: 22px;
  }

  .academy-hero {
    grid-template-columns: 1fr;
  }

  .command-hero {
    grid-template-columns: 1fr;
  }

  .cowork-hero {
    grid-template-columns: 1fr;
  }

  .academy-hero-media {
    min-height: 320px;
  }

  .command-preview {
    min-height: 0;
  }

  .cowork-board {
    min-height: 0;
  }

  .templates-hero {
    grid-template-columns: 1fr;
  }

  .template-detail-grid {
    grid-template-columns: 1fr;
  }

  .template-checkout-card {
    position: static;
  }

  .templates-hero-card {
    min-height: 150px;
  }

  .topic-grid,
  .resource-grid,
  .newsletter-panel,
  .newsletter-card,
  .home-contact-grid,
  .home-resource-grid,
  .review-card-grid,
  .template-product-grid,
  .academy-problem-grid,
  .academy-outcome-grid,
  .academy-plan-grid,
  .command-metrics,
  .command-panel-grid,
  .cowork-problem-grid,
  .cowork-outcome-grid,
  .archive-summary-grid,
  .archive-topic-grid,
  .archive-link-grid,
  .status-list,
  .article-meta-grid,
  .issue-masthead,
  .profile-grid,
  .contact-note-grid {
    grid-template-columns: 1fr;
  }

  .article-meta-grid div {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px dashed var(--hairline);
  }

  .article-meta-grid div:last-child {
    border-bottom: 0;
  }

  .latest-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .article-resource-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .home-contact-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .home-resource-card {
    min-height: 0;
  }

  .archive-summary-card,
  .archive-link-grid a,
  .status-row {
    min-height: 0;
  }

  .changelog-entry {
    grid-template-columns: 1fr;
  }

  .changelog-date {
    position: static;
    display: flex;
    gap: 12px;
    align-items: baseline;
  }

  .profile-rail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .profile-rail-card {
    width: 245px;
    flex: 0 0 245px;
  }

  .newsletter-form.inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  .command-hero h1 {
    font-size: 34px;
    line-height: 1.12;
    word-break: break-all;
  }

  .cowork-hero h1 {
    font-size: 34px;
    line-height: 1.12;
    word-break: break-all;
  }

  .lead,
  .article-body p {
    font-size: 17px;
  }

  .hero-banner img {
    height: 180px;
    object-position: 62% center;
  }

  .hero-banner {
    min-height: 180px;
  }

  .hero-banner-copy {
    inset: 22px auto auto 20px;
  }

  .hero-banner-copy strong {
    display: none;
  }

  .hero-banner-copy div {
    display: none;
  }

  .article-video {
    margin: 42px 0 48px;
  }

  .article-afterword {
    margin-top: 54px;
  }

  .article-footer-line {
    display: grid;
    gap: 10px;
  }

  .video-card {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .video-caption {
    inset: auto 16px 16px;
    width: calc(100% - 32px);
  }

  .video-caption strong {
    font-size: 22px;
  }

  .video-caption span {
    font-size: 13px;
  }

  .play-mark {
    width: 64px;
    height: 44px;
    border-radius: 12px;
  }

  .home-actions {
    display: grid;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .button-link {
    justify-content: center;
  }

  .section-heading-row {
    display: grid;
    gap: 6px;
  }

  .template-toolbar {
    display: grid;
    gap: 4px;
  }

  .template-product-card {
    min-height: 0;
  }

  .command-preview-grid {
    grid-template-columns: 1fr;
  }

  .command-preview-grid > div,
  .command-panel-card,
  .command-metrics div,
  .cowork-problem-grid > div,
  .cowork-outcome-card {
    min-height: 0;
  }

  .page-simple {
    margin: 44px auto;
    padding-inline: 22px;
  }

  .link-row {
    display: grid;
  }

  .belief-list > div,
  .contact-channel,
  .resource-step,
  .resource-detail-head,
  .academy-module,
  .cowork-schedule-list article,
  .template-included-list > div,
  .gear-section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .profile-statement,
  .profile-card,
  .gear-section,
  .contact-note-grid > div,
  .contact-channel {
    padding: 20px;
  }
}
