/* 2026-08 editorial-commerce visual refresh */
:root {
  --ink: #14201d;
  --ink-strong: #09130f;
  --muted: #5a6963;
  --line: #d9e0dc;
  --line-strong: #bbc8c2;
  --surface: #ffffff;
  --soft: #f4f6f3;
  --soft-strong: #eaf1ed;
  --brand: #08705a;
  --brand-dark: #054c3d;
  --brand-light: #ddf0e9;
  --grok: #242b31;
  --claude: #a34e33;
  --gemini: #176f80;
  --accent: #a95e12;
  --danger: #a33b31;
  --page-bg: #f7f8f5;
  --max-width: 1240px;
  --radius: 8px;
  --shadow-sm: 0 10px 28px rgba(20, 41, 34, .07);
  --shadow-md: 0 20px 50px rgba(20, 41, 34, .11);
}

body {
  background: var(--page-bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.68;
}

.site-header {
  border-bottom-color: rgba(207, 218, 212, .95);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 2px 16px rgba(16, 42, 33, .04);
}

.nav-shell {
  min-height: 72px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  font-size: 11px;
}

.site-nav {
  gap: 18px;
  font-size: 13px;
}

.site-nav .nav-cta {
  min-height: 40px;
  gap: 7px;
  padding: 8px 14px;
  box-shadow: 0 7px 18px rgba(8, 112, 90, .18);
}

.page-shell {
  padding: 0 0 96px;
}

.home-page .page-shell {
  width: min(calc(100% - 40px), var(--max-width));
}

.home-page .content {
  min-width: 0;
}

.commercial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, .94fr);
  gap: 38px;
  align-items: stretch;
  min-height: 560px;
  padding: 38px 0 30px;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 0;
}

.hero-main .eyebrow {
  margin-bottom: 14px;
}

.hero-main h1 {
  max-width: 720px;
  margin: 0;
  font-size: 60px;
  line-height: 1.08;
  font-weight: 840;
}

.hero-value {
  margin: 24px 0 8px;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 780;
}

.hero-summary {
  max-width: 690px;
  margin: 0;
  color: #4c5b55;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions .button-link {
  min-height: 48px;
  padding: 10px 17px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: #53625c;
  font-size: 13px;
}

.hero-facts span {
  position: relative;
  padding-left: 15px;
}

.hero-facts span::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-product-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 42px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.hero-panel-head .eyebrow {
  margin-bottom: 5px;
}

.hero-panel-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
}

.hero-panel-head > a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

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

.hero-product-item {
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hero-product-item.product-chatgpt,
.hero-product-item.product-grok,
.hero-product-item.product-claude,
.hero-product-item.product-gemini {
  border-top: 1px solid var(--line);
}

.hero-product-item.product-grok { border-left-color: var(--grok); }
.hero-product-item.product-claude { border-left-color: var(--claude); }
.hero-product-item.product-gemini { border-left-color: var(--gemini); }

.hero-product-item:hover {
  transform: translateY(-2px);
  border-top-color: var(--line-strong);
  border-right-color: var(--line-strong);
  border-bottom-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.hero-product-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.product-grok .hero-product-icon { background: var(--grok); }
.product-claude .hero-product-icon { background: var(--claude); }
.product-gemini .hero-product-icon { background: var(--gemini); }

.hero-product-copy {
  min-width: 0;
  display: grid;
  line-height: 1.3;
}

.hero-product-copy strong {
  font-size: 16px;
}

.hero-product-copy small {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.hero-product-arrow {
  color: var(--muted);
  font-size: 18px;
}

.assurance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.assurance-item {
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
}

.assurance-item + .assurance-item {
  border-left: 1px solid var(--line);
}

.assurance-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-light);
}

.assurance-icon svg {
  width: 20px;
  height: 20px;
}

.assurance-item > div {
  min-width: 0;
  display: grid;
  line-height: 1.35;
}

.assurance-item strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.assurance-item small {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.knowledge-search-band {
  display: grid;
  grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr);
  gap: 30px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid #bdd2c9;
  border-radius: var(--radius);
  background: #edf5f1;
}

.search-band-copy .eyebrow {
  margin-bottom: 5px;
}

.search-band-copy h2 {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  font-size: 22px;
}

.search-band-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.search-band-tools {
  min-width: 0;
}

.knowledge-search-band .hero-search {
  max-width: none;
  margin: 0;
}

.knowledge-search-band .hero-search-row {
  min-height: 52px;
  box-shadow: none;
}

.knowledge-search-band .hero-search input {
  height: 50px;
}

.knowledge-search-band .popular-searches {
  margin-top: 9px;
}

.knowledge-search-band .popular-searches a {
  background: rgba(255, 255, 255, .72);
}

.home-section {
  padding: 82px 0 0;
}

.home-section + .home-section {
  margin-top: 0;
}

.home-section h2 {
  font-size: 32px;
}

.section-heading {
  gap: 48px;
  margin-bottom: 26px;
}

.section-heading > p {
  font-size: 14px;
}

.product-grid {
  gap: 20px;
}

.product-card {
  min-height: 0;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-media {
  aspect-ratio: auto;
  height: 168px;
}

.product-media img {
  object-position: center;
}

.product-body {
  padding: 22px 23px 23px;
}

.product-card h3 {
  margin: 11px 0 7px;
  font-size: 22px;
}

.product-card p {
  margin-bottom: 14px;
  font-size: 14px;
}

.product-links {
  margin: 0 0 18px;
  padding: 12px 0;
  font-size: 13px;
}

.product-links li + li {
  margin-top: 6px;
}

.product-card .card-actions {
  margin-top: auto;
}

.product-card .button-link {
  flex: 1 1 165px;
}

.issue-grid,
.editorial-grid {
  display: grid;
  gap: 16px;
}

.issue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.issue-card,
.editorial-card {
  position: relative;
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.issue-card {
  padding-top: 54px;
}

.issue-number {
  position: absolute;
  top: 19px;
  right: 21px;
  color: #a5b1ac;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.issue-card h3,
.editorial-card h3 {
  margin: 6px 0 9px;
  font-size: 19px;
}

.issue-card p:not(.eyebrow),
.editorial-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
}

.issue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}

.issue-links a {
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.editorial-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--brand);
}

.editorial-card.grok {
  border-top-color: var(--grok);
}

.editorial-card h3 a {
  color: var(--ink-strong);
  text-decoration: none;
}

.editorial-card h3 a:hover {
  color: var(--brand);
}

.editorial-card .text-link {
  margin-top: auto;
  font-size: 13px;
}

.resource-grid {
  gap: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
}

.resource-media {
  display: grid;
  place-items: center;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: #f4f8f6;
}

.resource-media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.resource-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
}

.resource-body h3 {
  font-size: 20px;
}

.resource-body p {
  font-size: 14px;
}

.lab-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.lab-feature-body {
  padding: 36px;
}

.boundaries,
.faq-section {
  margin-top: 82px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.boundaries + .faq-section {
  margin-top: 18px;
}

.boundary-layout {
  gap: 32px;
}

.faq-list details {
  padding: 17px 0;
}

.home-updated {
  margin-top: 30px;
  text-align: right;
}

.site-footer {
  border-top-color: #cad6d0;
  background: #10241d;
}

.footer-shell {
  padding: 54px 0 34px;
  color: #b8c7c1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, .5fr));
  gap: 42px;
  align-items: start;
}

.footer-intro {
  align-items: flex-start;
}

.footer-intro .brand-mark {
  background: #fff;
  color: var(--brand-dark);
}

.footer-title {
  color: #fff;
  font-size: 17px;
}

.footer-intro p:not(.footer-title) {
  max-width: 420px;
  margin-top: 7px;
}

.footer-main-link {
  display: inline-block;
  margin-top: 15px;
  color: #d8eee5;
  font-weight: 740;
  text-decoration: none;
}

.footer-main-link:hover {
  color: #fff;
}

.footer-link-group {
  display: grid;
  gap: 8px;
}

.footer-link-group strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 13px;
}

.footer-link-group a {
  color: #b8c7c1;
  text-decoration: none;
}

.footer-link-group a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-note {
  max-width: 900px;
}

/* Shared inner-page reading shell */
.inner-page .page-shell {
  width: min(calc(100% - 40px), 1080px);
  padding-top: 62px;
}

.inner-page .content > .eyebrow:first-child {
  margin-bottom: 12px;
}

.inner-page .content > h1:first-of-type,
.inner-page .content > .eyebrow:first-child + h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.15;
}

.inner-page .content > .lead {
  max-width: 880px;
  margin-bottom: 34px;
  color: #45554f;
  font-size: 18px;
}

.inner-page h2 {
  margin-top: 58px;
  padding-top: 0;
  border-top: 0;
  font-size: 26px;
}

.inner-page h2::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 13px;
  background: var(--brand);
}

.inner-page h3 {
  margin-top: 32px;
  font-size: 19px;
}

.inner-page table {
  background: #fff;
}

.inner-page .search-panel,
.inner-page .search-result,
.inner-page .resource-feature,
.inner-page .check-card,
.inner-page .resource-preview {
  box-shadow: var(--shadow-sm);
}

.inner-page .search-panel {
  padding: 22px;
  background: #eef4f1;
}

.inner-page .search-result {
  transition: border-color .18s ease, transform .18s ease;
}

.inner-page .search-result:hover {
  transform: translateY(-1px);
  border-color: #a9beb5;
}

@media (max-width: 1120px) {
  .commercial-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
    gap: 26px;
  }

  .hero-main h1 {
    font-size: 48px;
  }

  .site-nav {
    gap: 11px;
    font-size: 12px;
  }

  .footer-top {
    gap: 28px;
  }
}

@media (max-width: 960px) {
  .commercial-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 38px;
  }

  .hero-main {
    padding-bottom: 0;
  }

  .hero-main h1 {
    max-width: 780px;
    font-size: 46px;
  }

  .hero-product-panel {
    margin: 0 0 10px;
  }

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

  .assurance-item:nth-child(3) {
    border-left: 0;
  }

  .assurance-item:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .knowledge-search-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

  .resource-media {
    height: auto;
    aspect-ratio: 1200 / 630;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .home-page .page-shell,
  .inner-page .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .home-page .page-shell {
    padding-bottom: 64px;
  }

  .commercial-hero {
    gap: 20px;
    padding: 28px 0 22px;
  }

  .hero-main h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero-value {
    margin-top: 18px;
    font-size: 19px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-actions .button-link {
    flex: 1 1 150px;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    font-size: 12px;
  }

  .hero-product-panel {
    padding: 17px;
  }

  .hero-panel-head {
    align-items: flex-start;
  }

  .hero-panel-head h2 {
    font-size: 18px;
  }

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

  .hero-product-item {
    min-height: 84px;
    padding: 13px;
  }

  .assurance-item {
    min-height: 90px;
    padding: 14px;
  }

  .assurance-item strong {
    font-size: 14px;
  }

  .knowledge-search-band {
    padding: 21px 18px;
  }

  .home-section {
    padding-top: 62px;
  }

  .home-section h2 {
    font-size: 27px;
  }

  .section-heading {
    gap: 10px;
  }

  .product-card {
    height: auto;
  }

  .product-media {
    height: 145px;
  }

  .product-card > .product-body > p:not(.eyebrow):not(.meta) {
    display: block;
    overflow: visible;
  }

  .product-card .card-actions .button-link {
    flex: 1 1 140px;
  }

  .issue-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    min-height: 0;
  }

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

  .lab-feature-body {
    padding: 23px;
  }

  .boundaries,
  .faq-section {
    margin-top: 62px;
    padding: 24px 20px;
  }

  .boundaries + .faq-section {
    margin-top: 14px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .footer-link-group:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .inner-page .page-shell {
    padding-top: 36px;
  }

  .inner-page .content > h1:first-of-type,
  .inner-page .content > .eyebrow:first-child + h1 {
    font-size: 34px;
  }

  .inner-page .content > .lead {
    font-size: 16px;
  }

  .inner-page h2 {
    margin-top: 46px;
    font-size: 23px;
  }
}

@media (max-width: 390px) {
  .hero-main h1 {
    font-size: 32px;
  }

  .hero-value {
    font-size: 18px;
  }

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

  .hero-panel-head > a {
    display: none;
  }

  .assurance-strip {
    grid-template-columns: 1fr;
  }

  .assurance-item + .assurance-item,
  .assurance-item:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .knowledge-search-band .hero-search-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .knowledge-search-band .hero-search button {
    grid-column: 1 / -1;
    width: calc(100% - 12px);
    margin: 0 6px 6px;
  }

  .home-section h2 {
    font-size: 25px;
  }

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

  .footer-intro,
  .footer-link-group:last-child {
    grid-column: 1;
  }

  .inner-page .content > h1:first-of-type,
  .inner-page .content > .eyebrow:first-child + h1 {
    font-size: 30px;
  }
}

/* Unified inner-page information architecture */
body.inner-page {
  --section-accent: var(--brand);
  background: #f7f9f7;
}

body.section-labs {
  --section-accent: #155a72;
}

body.section-english {
  --section-accent: #2c5b88;
}

body.section-search {
  --section-accent: #59649a;
}

body.section-about {
  --section-accent: var(--claude);
}

.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: #edf5f1;
}

.inner-page .page-shell {
  width: min(calc(100% - 40px), 1240px);
  padding-top: 22px;
}

.inner-toolbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.breadcrumbs a,
.toolbar-search {
  color: #40504a;
  font-weight: 720;
  text-decoration: none;
}

.breadcrumbs a:hover,
.toolbar-search:hover {
  color: var(--section-accent);
}

.breadcrumb-current {
  min-width: 0;
  overflow: hidden;
  color: #718079;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-search {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  gap: 54px;
  align-items: start;
}

.inner-content {
  min-width: 0;
  padding-bottom: 34px;
}

.inner-content > .eyebrow:first-child {
  margin-bottom: 13px;
  color: var(--section-accent);
}

.inner-page .inner-content > h1:first-of-type,
.inner-page .inner-content > .eyebrow:first-child + h1 {
  max-width: 930px;
  margin-bottom: 20px;
  color: #0b1713;
  font-size: 44px;
  line-height: 1.14;
}

.inner-content > h1:first-of-type + p:not(.meta),
.inner-content > .eyebrow:first-child + h1 + p:not(.meta),
.inner-page .inner-content > .lead {
  max-width: 780px;
  margin-bottom: 38px;
  color: #465650;
  font-size: 18px;
  line-height: 1.82;
}

.inner-content > p,
.inner-content > ul,
.inner-content > ol,
.inner-content > blockquote {
  max-width: 78ch;
}

.inner-content > h2,
.inner-content > h3 {
  scroll-margin-top: 94px;
}

.inner-page .inner-content > h2 {
  position: relative;
  margin-top: 58px;
  padding-top: 31px;
  border-top: 1px solid #dde5e1;
  font-size: 27px;
}

.inner-page .inner-content > h2::before {
  width: 30px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 0;
  background: var(--section-accent);
}

.inner-page .inner-content > h3 {
  margin-top: 34px;
  font-size: 20px;
}

.inner-content blockquote {
  margin: 24px 0;
  padding: 17px 20px;
  border-left: 4px solid var(--section-accent);
  color: #3d4b46;
  background: #f0f5f2;
}

.inner-content blockquote > :last-child {
  margin-bottom: 0;
}

.inner-page .resource-hero,
.inner-page .lab-hero {
  gap: 34px;
  margin: 0 0 38px;
  padding: 30px;
  border: 1px solid #d8e2dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 48, 38, .07);
}

.inner-page .resource-hero h1,
.inner-page .lab-hero h1 {
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.16;
}

.inner-page .resource-hero .lead,
.inner-page .lab-hero .lead {
  color: #44544e;
  font-size: 17px;
}

.inner-page .resource-preview,
.inner-page .lab-preview {
  border-color: #cddbd5;
  box-shadow: none;
}

.inner-page .resource-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.inner-page .intro-actions {
  gap: 9px;
}

.inner-page .button-link {
  min-height: 44px;
}

.inner-page .answer-summary {
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid #c8dcd4;
  border-left: 5px solid var(--brand);
  border-radius: 0 7px 7px 0;
  color: #263a33;
  background: #edf7f3;
  font-size: 17px;
  line-height: 1.8;
}

.inner-page .answer-summary strong {
  color: #0f5f4d;
}

.inner-page .action-sequence {
  counter-reset: action-step;
  margin: 22px 0 36px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d7e1dc;
}

.inner-page .action-step {
  counter-increment: action-step;
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 19px 0 19px 52px;
  border-bottom: 1px solid #d7e1dc;
}

.inner-page .action-step::before {
  content: counter(action-step, decimal-leading-zero);
  position: absolute;
  top: 19px;
  left: 0;
  width: 36px;
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.6;
}

.inner-page .action-step strong {
  color: #1b2c26;
  line-height: 1.7;
}

.inner-page .action-step span {
  min-width: 0;
  color: #44544e;
  line-height: 1.78;
}

.inner-page .intent-grid,
.inner-page .check-grid {
  gap: 16px;
}

.inner-page .intent-group,
.inner-page .check-card {
  border: 1px solid #dce4e0;
  border-left: 4px solid var(--brand);
  border-radius: 0 7px 7px 0;
  background: #fff;
  box-shadow: 0 7px 22px rgba(17, 48, 38, .045);
}

.inner-page .intent-group.grok {
  border-left-color: var(--grok);
}

.inner-page .intent-group.claude {
  border-left-color: var(--claude);
}

.inner-page .intent-group.gemini {
  border-left-color: var(--gemini);
}

.inner-page .intent-group h3,
.inner-page .check-card h3 {
  font-size: 18px;
}

.inner-page .notice {
  margin: 24px 0;
  border: 1px solid #ead4b7;
  border-left: 4px solid var(--accent);
  border-radius: 0 7px 7px 0;
}

.inner-page .notice.warning {
  border-color: #e9c9c5;
  border-left-color: var(--danger);
}

.inner-page table {
  margin: 24px 0 30px;
  border: 1px solid #d5dfda;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 48, 38, .035);
}

.inner-page th {
  color: #26352f;
  background: #edf3f0;
}

.inner-page th,
.inner-page td {
  border-color: #d9e2de;
}

.inner-page pre {
  border-color: #cbd8d2;
  border-radius: 7px;
  background: #eef3f1;
}

.inner-page .download-band {
  margin-top: 34px;
  padding: 22px;
  border-radius: 7px;
}

.reading-rail {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.rail-panel {
  overflow: hidden;
  margin: 0;
  border: 1px solid #d7e1dc;
  border-top: 3px solid var(--section-accent);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17, 48, 38, .055);
}

.toc-panel summary {
  position: relative;
  padding: 16px 42px 14px 17px;
  color: #24332e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  list-style: none;
}

.toc-panel summary::-webkit-details-marker {
  display: none;
}

.toc-panel summary::after {
  content: "+";
  position: absolute;
  top: 13px;
  right: 17px;
  color: var(--section-accent);
  font-size: 20px;
  line-height: 1;
}

.toc-panel[open] summary::after {
  content: "−";
}

.toc-list {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  margin: 0;
  padding: 0 10px 14px;
  list-style: none;
  scrollbar-width: thin;
}

.toc-list li + li {
  margin-top: 2px;
}

.toc-list a {
  display: block;
  padding: 8px 9px;
  border-left: 2px solid transparent;
  color: #586760;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a[aria-current="true"] {
  border-left-color: var(--section-accent);
  color: #17241f;
  background: #f0f5f2;
}

.discovery-panel {
  padding: 17px;
}

.rail-label {
  margin: 0 0 9px;
  color: #53625c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rail-primary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  padding: 11px 12px;
  border-radius: 5px;
  color: #fff;
  background: var(--section-accent);
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.rail-primary-link:hover {
  color: #fff;
  filter: brightness(.92);
}

.rail-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e1e7e4;
  border-radius: 5px;
  background: #e1e7e4;
}

.rail-link-list a {
  min-width: 0;
  padding: 9px 8px;
  color: #3d4c46;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.rail-link-list a:hover {
  color: var(--section-accent);
  background: #f2f6f4;
}

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

.directory-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid #d7e1dc;
  border-top: 4px solid var(--section-accent);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 48, 38, .05);
}

.directory-card:nth-child(2) {
  border-top-color: var(--grok);
}

.directory-card:nth-child(3) {
  border-top-color: var(--claude);
}

.directory-card .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.directory-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.directory-card > p {
  margin-bottom: 14px;
  color: #56655f;
  font-size: 14px;
}

.directory-meta {
  margin: auto 0 16px;
  padding: 0;
  color: #617069;
  font-size: 12px;
  list-style: none;
}

.directory-meta li + li {
  margin-top: 4px;
}

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

.directory-actions a {
  padding: 7px 9px;
  border: 1px solid #c8d5cf;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.directory-actions a:first-child {
  color: #fff;
  border-color: var(--section-accent);
  background: var(--section-accent);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.search-suggestions a {
  padding: 6px 10px;
  border: 1px solid #cbd7d1;
  border-radius: 999px;
  color: #40504a;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.search-suggestions a:hover {
  color: var(--section-accent);
  border-color: var(--section-accent);
}

.search-discovery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.search-discovery a {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid #d8e1dd;
  border-top: 3px solid var(--brand);
  border-radius: 6px;
  color: #26352f;
  background: #fff;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.search-discovery a:nth-child(2) {
  border-top-color: var(--grok);
}

.search-discovery a:nth-child(3) {
  border-top-color: var(--claude);
}

.search-discovery a:nth-child(4) {
  border-top-color: var(--gemini);
}

.search-discovery span {
  color: #75817c;
  font-size: 11px;
  font-weight: 650;
}

.inner-page .search-panel {
  padding: 24px;
  border-color: #cedbd5;
  background: #edf4f1;
}

.inner-page .search-results {
  gap: 14px;
}

.inner-page .search-result {
  padding: 20px;
  border-left: 4px solid var(--section-accent);
}

.inner-page .search-result h2 {
  margin: 2px 0 7px;
  padding: 0;
  border: 0;
  font-size: 18px;
}

.inner-page .search-result h2::before {
  display: none;
}

.section-labs .lab-list {
  border-top: 0;
}

.section-labs .lab-list-item {
  gap: 28px;
  padding: 24px;
  border: 1px solid #d6e0dc;
  border-top: 4px solid var(--section-accent);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 48, 38, .06);
}

.section-labs .lab-list-media {
  border: 1px solid #d9e2de;
  border-radius: 5px;
}

.section-not-found .inner-content {
  min-height: 440px;
}

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

@media (max-width: 1080px) {
  .inner-layout {
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 36px;
  }

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

@media (max-width: 960px) {
  .inner-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reading-rail {
    position: static;
    order: -1;
  }

  .discovery-panel {
    display: none;
  }

  .toc-list {
    max-height: 320px;
  }

  .inner-page .resource-hero,
  .inner-page .lab-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .inner-page .page-shell {
    width: min(calc(100% - 28px), 1240px);
    padding-top: 12px;
  }

  .inner-toolbar {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 11px;
  }

  .breadcrumb-current {
    max-width: 38vw;
  }

  .toolbar-search {
    font-size: 12px;
  }

  .inner-page .inner-content > h1:first-of-type,
  .inner-page .inner-content > .eyebrow:first-child + h1 {
    font-size: 34px;
  }

  .inner-content > h1:first-of-type + p:not(.meta),
  .inner-content > .eyebrow:first-child + h1 + p:not(.meta),
  .inner-page .inner-content > .lead {
    margin-bottom: 30px;
    font-size: 16px;
  }

  .inner-page .inner-content > h2 {
    margin-top: 46px;
    padding-top: 26px;
    font-size: 23px;
  }

  .inner-page .inner-content > h3 {
    font-size: 18px;
  }

  .inner-page .resource-hero,
  .inner-page .lab-hero {
    gap: 22px;
    padding: 20px;
  }

  .inner-page .resource-hero h1,
  .inner-page .lab-hero h1 {
    font-size: 30px;
  }

  .inner-page .answer-summary {
    padding: 17px 18px;
    font-size: 16px;
  }

  .inner-page .action-step {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 17px 0 17px 42px;
  }

  .inner-page .action-step::before {
    top: 17px;
  }

  .directory-grid,
  .search-discovery {
    grid-template-columns: 1fr;
  }

  .directory-card {
    padding: 18px;
  }

  .section-labs .lab-list-item {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .inner-page .search-panel {
    padding: 18px;
  }
}

@media (max-width: 390px) {
  .breadcrumbs {
    gap: 6px;
  }

  .breadcrumb-current {
    display: none;
  }

  .breadcrumbs span[aria-hidden="true"]:last-of-type {
    display: none;
  }

  .inner-page .inner-content > h1:first-of-type,
  .inner-page .inner-content > .eyebrow:first-child + h1,
  .inner-page .resource-hero h1,
  .inner-page .lab-hero h1 {
    font-size: 29px;
  }

  .inner-page .resource-hero,
  .inner-page .lab-hero {
    padding: 17px;
  }
}
