:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f3f6f8;
  --ink: #131722;
  --ink-soft: #333333;
  --muted: #6f7a8a;
  --accent: #054ada;
  --accent-hover: #0a416c;
  --accent-warm: #ff8800;
  --accent-soft: #e8f0ff;
  --line: #e1e0e0;
  --line-strong: #c8c8c8;
  --shadow: 0 18px 42px rgba(5, 74, 218, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  position: relative;
  flex: 0 0 auto;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: #fff;
  opacity: 0.85;
}

.brand img.logo {
  background: transparent;
  display: block;
  object-fit: contain;
}

.links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.links > a {
  color: var(--ink-soft);
}

.guide-menu {
  position: static;
}

.guide-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
}

.guide-menu-toggle:hover,
.guide-menu-toggle:focus,
.guide-menu.is-open .guide-menu-toggle {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--accent);
  outline: none;
}

.guide-menu-toggle:focus-visible {
  outline: 2px solid rgba(5, 74, 218, 0.28);
  outline-offset: 2px;
}

.guide-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: max(20px, calc((100vw - 1080px) / 2));
  z-index: 30;
  width: min(960px, calc(100vw - 40px));
}

.guide-menu-popover[hidden] {
  display: none;
}

.guide-menu-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(19, 23, 34, 0.16);
}

.guide-menu-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.guide-menu-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guide-menu-tab {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.guide-menu-tab:hover,
.guide-menu-tab:focus,
.guide-menu-tab.is-active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.guide-menu-tab:focus-visible {
  outline: 2px solid rgba(5, 74, 218, 0.28);
  outline-offset: 2px;
}

.guide-menu-all {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.guide-menu-content {
  min-width: 0;
  padding: 24px;
}

.guide-menu-panel[hidden] {
  display: none;
}

.guide-menu-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.guide-menu-panel-head a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

.guide-menu-topic {
  display: block;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.guide-menu-topic:hover,
.guide-menu-topic:focus {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: 0 10px 26px rgba(5, 74, 218, 0.08);
  text-decoration: none;
  outline: none;
}

.guide-menu-topic:focus-visible {
  outline: 2px solid rgba(5, 74, 218, 0.28);
  outline-offset: 2px;
}

.guide-menu-topic span,
.guide-menu-topic strong {
  display: block;
}

.guide-menu-topic-kicker {
  color: var(--accent-warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-menu-topic strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.guide-menu-topic strong + span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero {
  padding: 58px 0 38px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero p,
.article-summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

main {
  padding: 44px 0 72px;
}

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.archive-heading {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.home-feed {
  min-width: 0;
}

.home-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.rail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.rail-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.rail-card p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.rail-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.rail-link-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.rail-link-list span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rail-more {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 700;
}

.rail-start a {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.hub-section {
  padding: 28px 0;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.hub-section > :first-child {
  margin-top: 0;
}

.hub-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.hub-section h3 {
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.hub-section p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discovery-hub,
.hub-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.hub-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.hub-action:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.hub-stat {
  min-width: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}

.hub-stat strong {
  display: block;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.hub-stat span {
  color: var(--muted);
  font-size: 13px;
}

.topic-pill-list,
.author-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-pill-list a,
.author-list-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
}

.topic-pill-list a:hover,
.author-list-item:hover {
  border-color: var(--line-strong);
  color: var(--accent);
  text-decoration: none;
}

.topic-pill-list a span:last-child,
.author-list-item strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.author-hub-profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.author-hub-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
}

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

.topic-index {
  display: grid;
  gap: 8px;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.topic-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
}

.topic-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.topic-card span,
.topic-card strong {
  display: block;
}

.topic-card span {
  color: var(--ink);
  font-weight: 700;
}

.topic-card strong {
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
}

.topic-card p {
  margin: 10px 0 0;
  font-size: 14px;
}

.post-grid {
  display: grid;
  gap: 18px;
}

.post-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(5, 74, 218, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.post-card:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.post-card-body {
  min-width: 0;
}

.post-card-cover-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 6px;
  background: var(--surface-soft);
}

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

.post-card:hover .post-card-cover {
  transform: scale(1.025);
}

.post-card h2,
.post-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.post-card-compact {
  padding: 16px;
}

.post-card-compact.post-card-has-cover {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
}

.post-card-compact.post-card-has-cover .post-card-cover-frame {
  height: 100%;
  min-height: 116px;
  margin-bottom: 0;
  aspect-ratio: auto;
}

.post-card-compact.post-card-has-cover .post-card-body {
  align-self: start;
}

.post-card-compact h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.post-card-compact .excerpt {
  display: none;
}

.post-meta,
.post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.post-card .excerpt {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.post-card .excerpt p {
  margin: 0;
}

.post-taxonomy {
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
}

a.tag:hover {
  text-decoration: none;
  background: #dce8ff;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
}

.pagination .disabled {
  color: var(--muted);
}

.article-hero {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--muted);
}

.article-shell {
  width: min(100% - 40px, 1320px);
  display: grid;
  grid-template-columns: 220px minmax(0, 720px) 300px;
  gap: 36px;
  align-items: start;
  justify-content: center;
}

.article-shell-no-toc {
  width: min(100% - 40px, 1056px);
  grid-template-columns: minmax(0, 720px) 300px;
}

.article-toc {
  grid-column: 1;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 4px 18px 12px 0;
  border-right: 1px solid var(--line);
  font-size: 14px;
}

.article-toc h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-toc ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  line-height: 1.35;
}

.article-toc a:hover,
.article-toc a.active {
  border-left-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.article-toc a.active {
  font-weight: 700;
}

.article-body {
  grid-column: 2;
  min-width: 0;
  max-width: 720px;
}

.article-shell-no-toc .article-body {
  grid-column: 1;
}

.article-body > .category-card {
  margin-top: 46px;
}

.article-meta {
  margin: 18px 0 0;
}

.featured-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.article-side {
  grid-column: 3;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.article-shell-no-toc .article-side {
  grid-column: 2;
}

.side-card,
.author-card,
.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.side-card h2,
.author-card h2,
.category-card h2,
.content-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.author-card {
  display: grid;
  gap: 12px;
}

.author-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.author-name {
  color: var(--ink);
  font-weight: 700;
}

.author-meta {
  color: var(--muted);
  font-size: 13px;
}

.social-share {
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(19, 23, 34, 0.08);
  color: var(--muted);
}

.social-share h2 {
  margin: 0;
  color: #666666;
  font-size: 19px;
  line-height: 1.2;
}

.social-share-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-share-side {
  width: 100%;
  padding: 0;
  justify-items: start;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.social-share-side .social-share-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 9px;
}

.social-share-end {
  margin-top: 46px;
  padding: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: stretch;
  align-items: center;
  border-radius: 8px;
  box-shadow: none;
}

.social-share-end h2 {
  color: var(--ink);
  font-size: 17px;
}

.social-share-end .social-share-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.social-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-share-side .social-share-link {
  width: 40px;
  height: 40px;
}

.social-share-side .social-share-link svg {
  width: 20px;
  height: 20px;
}

.social-share-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-share-link:hover,
.social-share-link:focus {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(19, 23, 34, 0.16);
  outline: none;
}

.social-share-link:focus-visible {
  outline: 3px solid rgba(5, 74, 218, 0.28);
  outline-offset: 3px;
}

.share-link-x {
  background: #000000;
}

.share-link-facebook {
  background: #1877f2;
}

.share-link-whatsapp {
  background: #25d366;
}

.share-link-linkedin {
  background: #0a66c2;
}

.share-link-reddit {
  background: #ff4500;
}

.category-list,
.category-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-directory {
  display: grid;
  grid-template-columns: 1fr;
}

.category-directory a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.category-directory a:hover {
  color: var(--accent);
  text-decoration: none;
}

.wp-content {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.wp-content h2,
.wp-content h3,
.wp-content h4 {
  margin: 34px 0 12px;
  line-height: 1.25;
  letter-spacing: 0;
}

.wp-content p,
.wp-content ul,
.wp-content ol,
.wp-content blockquote,
.wp-content pre,
.wp-content table {
  margin: 0 0 18px;
}

.wp-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wp-content figure {
  margin: 0 0 18px;
  width: 100%;
}

.wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.wp-content iframe {
  max-width: 100%;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.wp-content img.lightbox-trigger,
.featured-image.lightbox-trigger {
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.wp-content img.lightbox-trigger:hover,
.featured-image.lightbox-trigger:hover,
.wp-content img.lightbox-trigger:focus,
.featured-image.lightbox-trigger:focus {
  box-shadow: 0 12px 30px rgba(15, 24, 48, 0.16);
  filter: brightness(0.98);
  outline: 2px solid rgba(5, 74, 218, 0.24);
  outline-offset: 3px;
}

.image-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(7, 14, 28, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  width: auto;
  max-width: min(1120px, calc(100vw - 96px));
  max-height: calc(100vh - 120px);
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid rgba(255, 255, 255, 0.44);
  outline-offset: 3px;
}

.wp-content pre,
.wp-content table {
  max-width: 100%;
  overflow-x: auto;
}

.wp-content pre {
  padding: 16px;
  border-radius: 8px;
  background: #0a416c;
  color: #f3f6f8;
}

.content-section {
  margin-top: 46px;
}

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

.context-card {
  display: block;
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
}

.context-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(5, 74, 218, 0.06);
  text-decoration: none;
}

.context-card span,
.context-card strong {
  display: block;
}

.context-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-card strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

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

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
}

.video-guides-hero .hero-inner {
  max-width: 840px;
}

.video-guide-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.video-guide-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.video-guide-stats strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

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

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

.video-guide-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(5, 74, 218, 0.02);
}

.video-guide-toc-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.video-guide-toc nav {
  display: grid;
  gap: 8px;
}

.video-guide-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
}

.video-guide-tab:hover,
.video-guide-tab:focus,
.video-guide-tab.is-active {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  outline: none;
}

.video-guide-tab:focus-visible {
  outline: 2px solid rgba(5, 74, 218, 0.28);
  outline-offset: 2px;
}

.video-guide-tab span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.video-guide-tab strong {
  min-width: 28px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  text-align: right;
}

.video-guides {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.video-seo-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.video-seo-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.video-seo-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.video-seo-panel p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
}

.video-inline-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  color: var(--accent);
  font-weight: 700;
}

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

.video-learning-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 184px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.video-learning-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.video-learning-card p {
  font-size: 14px;
  line-height: 1.5;
}

.video-outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-outcome-list li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.video-faq-list {
  display: grid;
  gap: 10px;
}

.video-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.video-faq summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.video-faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.video-faq details p {
  padding: 14px 16px 16px;
  font-size: 15px;
}

.video-guide-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 96px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.video-guide-section:last-child {
  border-bottom: 0;
}

.video-card {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: 0 1px 0 rgba(5, 74, 218, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.video-card:hover,
.video-card:focus {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-1px);
  outline: none;
}

.video-card:focus-visible {
  outline: 2px solid rgba(5, 74, 218, 0.28);
  outline-offset: 3px;
}

.video-thumb-frame {
  position: relative;
  display: block;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  aspect-ratio: auto;
  background: #0a416c;
}

.video-card-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 34px;
  border-radius: 8px;
  background: rgba(19, 23, 34, 0.78);
  transform: translate(-50%, -50%);
}

.video-play::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

.video-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.video-card-body span,
.video-card-body strong {
  display: block;
}

.video-card-channel {
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.video-card-body strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.video-card-body strong + span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  padding: 34px;
  background: rgba(19, 23, 34, 0.62);
  backdrop-filter: saturate(130%) blur(10px);
}

.video-modal[hidden] {
  display: none;
}

body.video-modal-open {
  overflow: hidden;
}

.video-modal-frame {
  position: relative;
  width: min(100%, 1040px);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(19, 23, 34, 0.14);
}

.video-modal-close:hover,
.video-modal-close:focus {
  border-color: var(--line-strong);
  background: #fff;
  outline: none;
}

.video-modal-close:focus-visible {
  outline: 2px solid rgba(5, 74, 218, 0.32);
  outline-offset: 3px;
}

.video-modal-panel {
  display: none;
}

.video-modal-panel.is-active {
  display: grid;
}

.video-modal-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(19, 23, 34, 0.32);
}

.video-modal-media {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.video-modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a416c;
}

.video-modal-play-button {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0a416c;
  color: #fff;
  cursor: pointer;
}

.video-modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-player:not(.is-playing) iframe {
  display: none;
}

.video-modal-player.is-playing [data-video-modal-cover] {
  display: none;
}

.video-modal-player.is-playing [data-video-modal-play] {
  display: none;
}

.video-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-play-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 23, 34, 0.12), rgba(19, 23, 34, 0.52));
}

.video-modal-inline-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 50px;
  border-radius: 12px;
  background: rgba(19, 23, 34, 0.82);
  box-shadow: 0 12px 28px rgba(19, 23, 34, 0.28);
  transform: translate(-50%, -50%);
}

.video-modal-inline-play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.video-modal-play-label {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
}

.video-modal-play-button:hover .video-modal-inline-play,
.video-modal-play-button:focus .video-modal-inline-play {
  background: rgba(5, 74, 218, 0.92);
}

.video-modal-play-button:focus {
  outline: none;
}

.video-modal-play-button:focus-visible {
  outline: 3px solid rgba(5, 74, 218, 0.38);
  outline-offset: -3px;
}

.video-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 15px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.video-modal-cta:hover,
.video-modal-cta:focus {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.video-modal-cta:focus-visible {
  outline: 2px solid rgba(5, 74, 218, 0.32);
  outline-offset: 3px;
}

.video-modal-play-icon {
  position: relative;
  width: 28px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.video-modal-play-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

.video-modal-content {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  max-height: min(760px, calc(100vh - 96px));
  overflow-y: auto;
  padding: 28px 30px 30px;
}

.video-modal-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.video-modal-meta,
.video-modal-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-modal-meta span,
.video-modal-info-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.video-modal-section {
  display: grid;
  gap: 8px;
}

.video-modal-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.video-modal-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.58;
}

.video-modal-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-modal-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.video-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
}

@media (min-width: 901px) {
  .video-card-grid > .video-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: 264px minmax(0, 1fr);
    min-height: 198px;
  }
}

footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1340px) {
  .article-shell {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 760px);
    justify-content: stretch;
  }

  .article-toc {
    display: none;
  }

  .article-body,
  .article-shell-no-toc .article-body,
  .article-side,
  .article-shell-no-toc .article-side {
    grid-column: auto;
  }

  .article-body {
    max-width: none;
  }

  .article-side {
    position: static;
    grid-template-columns: 1fr;
    order: 2;
  }
}

@media (max-width: 900px) {
  .article-shell {
    grid-template-columns: 1fr;
  }

  .video-guides-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .video-guide-toc {
    top: 70px;
    z-index: 8;
    display: block;
    overflow-x: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
  }

  .video-guide-toc-title {
    display: none;
  }

  .video-guide-toc nav {
    display: flex;
    gap: 8px;
    min-width: max-content;
  }

  .video-guide-tab {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .video-guide-section {
    scroll-margin-top: 132px;
  }

  .video-learning-path,
  .video-outcome-list {
    grid-template-columns: 1fr;
  }

  .video-modal {
    align-items: start;
    padding: 22px;
  }

  .video-modal-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .video-modal-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .video-modal-content {
    max-height: none;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .article-body {
    max-width: none;
  }

  .article-side {
    position: static;
    grid-template-columns: 1fr;
    order: 2;
  }

  .video-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    background: #fff;
    backdrop-filter: none;
    position: fixed;
    right: 0;
    left: 0;
  }

  body {
    padding-top: 88px;
  }

  .wrap {
    width: min(100% - 28px, 1080px);
  }

  .nav {
    min-height: auto;
    padding: 10px 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 17px;
  }

  .links {
    flex: 1 1 220px;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
  }

  .links > a,
  .guide-menu-toggle {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 13px;
    line-height: 1.25;
  }

  .guide-menu-popover {
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    width: auto;
  }

  .guide-menu-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }

  .guide-menu-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-menu-tabs .guide-menu-label {
    display: none;
  }

  .guide-menu-tab {
    width: auto;
    min-width: 118px;
    min-height: 42px;
    flex: 0 0 auto;
  }

  .guide-menu-all {
    min-height: 42px;
    margin: 0;
    padding: 0 4px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .guide-menu-content {
    padding: 16px;
  }

  .guide-menu-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }

  .guide-menu-topic-grid {
    grid-template-columns: 1fr;
  }

  .guide-menu-topic {
    min-height: auto;
  }

  .hero,
  .article-hero {
    padding: 36px 0 28px;
  }

  main {
    padding: 28px 0 52px;
  }

  .archive-toolbar,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .discovery-hub,
  .hub-heading-row,
  .author-hub-profile {
    flex-direction: column;
  }

  .hub-section {
    padding: 22px 0;
  }

  .hub-section h2 {
    font-size: 24px;
  }

  .hub-stat {
    width: 100%;
    text-align: left;
  }

  .post-card {
    padding: 18px;
  }

  .post-card-compact.post-card-has-cover {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-card-compact.post-card-has-cover .post-card-cover-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-side,
  .home-rail,
  .rail-grid,
  .context-grid,
  .topic-card-grid,
  .video-card {
    grid-template-columns: 1fr;
  }

  .social-share-end {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .social-share-end .social-share-links {
    justify-content: center;
  }

  .video-card {
    min-height: auto;
  }

  .video-card .video-thumb-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .video-guide-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .video-guide-stats span {
    width: 100%;
  }

  .video-seo-panel {
    padding: 18px;
  }

  .video-seo-panel h2 {
    font-size: 22px;
  }

  .video-learning-card {
    min-height: auto;
  }

  .video-modal {
    padding: 14px;
  }

  .video-modal-frame {
    width: 100%;
  }

  .video-modal-shell {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .video-modal-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .video-modal-media,
  .video-modal-content {
    padding: 16px;
  }

  .video-modal-content {
    gap: 15px;
  }

  .video-modal-content h2 {
    padding-right: 38px;
    font-size: 22px;
    line-height: 1.24;
  }

  .video-modal-cta {
    width: 100%;
  }

  .wp-content {
    font-size: 16px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-image {
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 92px);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}
