/* This guide has its own reading layout; the shared footer is unchanged. */
body[data-page="codex-config-location"] .config-location-hero {
  padding: 34px 0 38px;
  background: #f5f8fa;
}

/* Keep the hero, path table, method choice and article grid on one readable track. */
body[data-page="codex-config-location"] .config-location-hero > .shell,
body[data-page="codex-config-location"] main > .shell.article-layout {
  width: min(1114px, calc(100% - var(--site-shell-gutter) * 2)) !important;
  max-width: 1114px !important;
}

body[data-page="codex-config-location"] .breadcrumbs {
  margin-bottom: 20px;
}

body[data-page="codex-config-location"] .config-location-hero h1 {
  max-width: 1100px;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.23;
  letter-spacing: -0.035em;
}

body[data-page="codex-config-location"] .article-deck {
  max-width: 960px;
  margin-top: 16px;
  font-size: 16px;
}

body[data-page="codex-config-location"] .article-meta {
  margin-top: 14px;
  gap: 8px 18px;
}

body[data-page="codex-config-location"] .direct-answer {
  max-width: none;
  margin-top: 22px;
  padding: 17px 20px;
  box-shadow: none;
}

body[data-page="codex-config-location"] .config-location-paths {
  margin-top: 20px;
  scroll-margin-top: 100px;
}

body[data-page="codex-config-location"] .config-location-paths table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

body[data-page="codex-config-location"] .config-location-paths caption {
  padding-bottom: 10px;
  text-align: left;
  font-weight: 700;
}

body[data-page="codex-config-location"] .config-location-paths th,
body[data-page="codex-config-location"] .config-location-paths td {
  padding: 12px 14px;
  border-bottom: 1px solid #d9e1e7;
  vertical-align: top;
}

body[data-page="codex-config-location"] .config-location-paths thead {
  background: #e9eff3;
  color: #3b4b58;
  font-size: 12px;
}

body[data-page="codex-config-location"] .config-location-paths th:first-child {
  width: 17%;
}

body[data-page="codex-config-location"] .config-location-paths td:nth-child(2) {
  width: 39%;
}

body[data-page="codex-config-location"] .config-location-paths tbody {
  background: #fff;
}

body[data-page="codex-config-location"] .config-location-method {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid #cbd8e2;
  border-radius: 4px;
  background: #fff;
  scroll-margin-top: 100px;
}

body[data-page="codex-config-location"] .config-location-method h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
}

body[data-page="codex-config-location"] .config-location-method p {
  margin: 0;
  color: #35434d;
  line-height: 1.75;
}

body[data-page="codex-config-location"] .config-location-method-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 12px;
}

body[data-page="codex-config-location"] .config-location-method-links a {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: center;
  padding: 4px 0;
  color: #1258a0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page="codex-config-location"] .config-location-method-links a:hover {
  color: #0c427b;
}

body[data-page="codex-config-location"] .config-location-method-note {
  color: #55626c;
  font-size: 13px;
}

body[data-page="codex-config-location"] .config-location-ide {
  margin-top: 18px;
  scroll-margin-top: 100px;
}

body[data-page="codex-config-location"] .config-location-ide h2 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.5;
}

body[data-page="codex-config-location"] .config-location-ide p {
  margin: 0;
  color: #35434d;
  font-size: 14px;
  line-height: 1.7;
}

body[data-page="codex-config-location"] .config-location-mobile-toc {
  display: none;
}

body[data-page="codex-config-location"] main code {
  overflow-wrap: anywhere;
}

body[data-page="codex-config-location"] .config-location-paths a,
body[data-page="codex-config-location"] .article-content a {
  color: #1258a0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page="codex-config-location"] .config-location-paths a {
  white-space: nowrap;
}

body[data-page="codex-config-location"] .article-layout {
  padding-top: 44px;
  gap: 54px;
}

body[data-page="codex-config-location"] .article-content {
  font-size: 16px;
  line-height: 1.9;
}

body[data-page="codex-config-location"] .article-content section {
  scroll-margin-top: 100px;
}

body[data-page="codex-config-location"] .article-content h2 {
  margin: 52px 0 18px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
}

body[data-page="codex-config-location"] .article-content > section:first-child > h2 {
  margin-top: 0;
}

body[data-page="codex-config-location"] .article-content h3 {
  margin-top: 26px;
  font-size: 1.14rem;
}

body[data-page="codex-config-location"] .article-content blockquote {
  margin: 20px 0;
  padding: 2px 18px;
  border-left: 3px solid #c8d5df;
  background: #f6f8fa;
}

body[data-page="codex-config-location"] .article-content pre {
  max-width: 100%;
  line-height: 1.65;
}

body[data-page="codex-config-location"] .article-content pre code {
  overflow-wrap: normal;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

body[data-page="codex-config-location"] .config-location-related {
  border-top: 1px solid #d9e1e7;
}

body[data-page="codex-config-location"] .config-location-related a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  padding: 17px 0;
  border-bottom: 1px solid #d9e1e7;
  text-decoration: none;
}

body[data-page="codex-config-location"] .config-location-related a > span:first-of-type {
  grid-row: 2;
  color: #55626c;
  font-size: 14px;
}

body[data-page="codex-config-location"] .config-location-related a > span:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

@media (max-width: 840px) {
  body[data-page="codex-config-location"] .config-location-mobile-toc {
    display: block;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #cbd8e2;
    border-radius: 4px;
    background: #fff;
  }

  body[data-page="codex-config-location"] .config-location-mobile-toc summary {
    cursor: pointer;
    color: #1258a0;
    font-weight: 700;
  }

  body[data-page="codex-config-location"] .config-location-mobile-toc summary span {
    margin-left: 12px;
    color: #55626c;
    font-size: 12px;
    font-weight: 400;
  }

  body[data-page="codex-config-location"] .config-location-mobile-toc nav {
    display: grid;
    gap: 3px;
    margin-top: 10px;
  }

  body[data-page="codex-config-location"] .config-location-mobile-toc nav a {
    padding: 8px 0;
    color: #1258a0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 760px) {
  body[data-page="codex-config-location"] .config-location-hero {
    padding-top: 24px;
  }

  body[data-page="codex-config-location"] .config-location-method {
    padding: 14px;
  }

  body[data-page="codex-config-location"] .config-location-method h2 {
    font-size: 19px;
  }

  body[data-page="codex-config-location"] .config-location-method p {
    font-size: 14px;
    line-height: 1.65;
  }

  body[data-page="codex-config-location"] .config-location-method-links {
    gap: 4px 16px;
    margin-top: 8px;
    font-size: 14px;
  }

  body[data-page="codex-config-location"] .config-location-paths thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  body[data-page="codex-config-location"] .config-location-paths tbody,
  body[data-page="codex-config-location"] .config-location-paths tr,
  body[data-page="codex-config-location"] .config-location-paths th,
  body[data-page="codex-config-location"] .config-location-paths td {
    display: block;
    width: auto;
  }

  body[data-page="codex-config-location"] .config-location-paths tr {
    padding: 12px 14px;
    border-bottom: 1px solid #d9e1e7;
  }

  body[data-page="codex-config-location"] .config-location-paths th,
  body[data-page="codex-config-location"] .config-location-paths td {
    padding: 2px 0;
    border: 0;
  }

  body[data-page="codex-config-location"] .config-location-paths td:nth-child(2) {
    width: auto;
  }

  body[data-page="codex-config-location"] .config-location-paths th:first-child {
    width: auto;
  }

  body[data-page="codex-config-location"] .config-location-paths td:last-child {
    margin-top: 3px;
    color: #55626c;
    font-size: 13px;
  }

  body[data-page="codex-config-location"] .article-layout {
    padding-top: 30px;
  }

  body[data-page="codex-config-location"] .article-content pre {
    padding: 16px;
    font-size: 12px;
  }
}
