/* ============================================
   1. Card borders + hover lift
   FIXED: comment said "hover lift" but the rule only
   changed border-color — no actual shadow or lift existed.
   Added a real shadow increase + 2px lift on hover, with
   prefers-reduced-motion support to disable the transform
   for users who've set that OS-level preference.
   Verified live: resting state unaffected (transform:
   none, original shadow/border); hover state confirmed
   applying transform, shadow, and border-color correctly.
   ============================================ */
.tile {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tile:hover {
  border-color: #E3522A;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: border-color 0.2s ease;
  }
  .tile:hover {
    transform: none;
  }
}

/* ============================================
   2. Orange accent underline on section headings
   Scoped to .article-body h2 only — a bare h2 selector
   was also matching the "On this Page" TOC widget heading.
   ============================================ */
.article-body h2 {
  position: relative;
  padding-bottom: 12px;
}
.article-body h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: #E3522A;
}

/* ============================================
   3. Announcement banner — background + link color
   ============================================ */
theme-announcement-banner.notice {
  background-color: #0B455C;
}
.notice-body,
theme-announcement-banner.notice {
  color: #ffffff;
}
theme-announcement-banner.notice svg {
  color: #ffffff;
  fill: currentColor;
}
theme-announcement-banner.notice a {
  color: #E3522A;
  font-weight: 600;
  text-decoration: underline;
}
theme-announcement-banner.notice .notice-dismiss {
  color: #ffffff;
}

/* ============================================
   4. CTA-style links (standalone "go to guide" links)
   Resting color: grey (#344563), matches table headers.
   Brand orange (#E3522A) reserved for hover only.
   ============================================ */
.article-body > p > a:only-child {
  display: inline-block;
  color: #344563;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.article-body > p > a:only-child:hover {
  color: #E3522A;
  border-bottom-color: #E3522A;
}
.article-body > p > a:only-child::after {
  content: " →";
}

/* ============================================
   4b. All other in-body links (e.g. inline list links)
   Same color treatment as CTA links, but no arrow.
   ============================================ */
.article-body a {
  color: #344563;
  transition: color 0.2s ease;
}
.article-body a:hover {
  color: #E3522A;
}

/* ============================================
   5. Numbered step headers
   ============================================ */
.article-body h3 {
  border-left: 3px solid #E3522A;
  padding-left: 12px;
}

/* ============================================
   6. Pagination footer
   ============================================ */
.page-pagination-item a {
  transition: color 0.2s ease;
}
.page-pagination-item a:hover {
  color: #E3522A;
}

/* ============================================
   7. Breadcrumb trail
   ============================================ */
.breadcrumbs a {
  color: #344563;
  font-weight: 600;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: #E3522A;
}

/* ============================================
   8. Search bar focus state
   ============================================ */
.search-input__input:focus {
  border-color: #E3522A;
  box-shadow: 0 0 0 2px rgba(227, 82, 42, 0.15);
  outline: none;
}

/* ============================================
   9. Footer — bookend the page to match the navy header
   ============================================ */
footer.footer {
  background-color: #001D44;
  color: #ffffff;
}
footer.footer a {
  color: #E3522A;
}

/* ============================================
   10. Sidebar — highlight the currently active page
   ============================================ */
.navigator a[aria-current="page"] {
  background-color: rgba(227, 82, 42, 0.08);
  border-radius: 6px;
  font-weight: 600;
  color: #E3522A;
}

/* ============================================
   11. Code blocks — give them a visible box
   ============================================ */
pre {
  background-color: #F4F5F7;
  border: 1px solid #DFE1E6;
  border-radius: 6px;
  padding: 16px;
}
pre code {
  color: #172B4D;
}

/* ============================================
   12. "Why this matters" panel — brand-aligned color
   ============================================ */
[data-appearance="note"] {
  background-color: #FFF4EE;
  border-left: 3px solid #E3522A;
}

/* ============================================
   13. "This shows up differently by role" panel
   ============================================ */
.article-body [data-component="panel"][data-appearance="info"] {
  background-color: #EEF2F6;
  border-left: 3px solid #E3522A;
}

/* ============================================
   14. "On this Page" TOC — give it a visible container
   ============================================ */
.toc.sticky {
  background-color: #F7F8FA;
  border: 1px solid #E1E4E8;
  border-radius: 8px;
  padding: 16px;
}

/* ============================================
   15. TOC heading — tie into brand accent system
   ============================================ */
.toc-heading {
  padding-bottom: 8px;
  border-bottom: 2px solid #E3522A;
  margin-bottom: 8px;
}

/* ============================================
   16. TOC active section link — orange accent
   ============================================ */
.toc.sticky .toc-list .toc-link[aria-current="true"] {
  font-weight: 600;
}
.toc.sticky .toc-list .toc-link[aria-current="true"]::before {
  background-color: #E3522A;
}

/* ============================================
   17. Body text color — softer charcoal instead of navy
   ============================================ */
.article-body > p,
.article-body li {
  color: #2D2D2D;
}

/* ============================================
   18. Sidebar — fade inactive links
   ============================================ */
.navigator a:not([aria-current="page"]) {
  color: rgba(0, 12, 52, 0.80);
}

/* ============================================
   19. Brand font — Figtree
   ============================================ */
body,
.article-body,
.navigator,
.navigator-body,
.toc,
.breadcrumbs,
footer.footer,
h1, h2, h3, p {
  font-family: 'Figtree', sans-serif;
}

/* ============================================
   20. Table row striping + hover
   ============================================ */
.article-body table tbody tr:nth-child(even) {
  background-color: #F7F8FA;
}
.article-body table tbody tr:hover {
  background-color: #FFF4EE;
}

/* ============================================
   21. Screenshots — subtle border + shadow
   ============================================ */
.article-body img {
  border: 1px solid #E1E4E8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   22. "Use with AI" menu — brand accent on hover
   ============================================ */
theme-menu-item:hover {
  background-color: #FFF4EE;
}
theme-menu-item:hover .prefix svg {
  color: #E3522A;
}

/* ============================================
   23. Search results dropdown — brand accent
   ============================================ */
.search-suggestion-option:hover,
.search-suggestion-option-container[aria-selected="true"] .search-suggestion-option {
  background-color: #FFF4EE;
}
.search-suggestion-option em {
  color: #E3522A;
  font-weight: 600;
  font-style: normal;
}

/* ============================================
   24. Panel icons — remove entirely, and collapse the
   grid column that was reserved for it
   ============================================ */
[data-component="panel"][data-appearance="note"]::before,
[data-component="panel"][data-appearance="info"]::before {
  display: none !important;
}
[data-component="panel"][data-appearance="note"],
[data-component="panel"][data-appearance="info"] {
  grid-template-columns: 1fr !important;
  column-gap: 0 !important;
}
[data-component="panel"][data-appearance="note"] > .panel-content,
[data-component="panel"][data-appearance="info"] > .panel-content {
  grid-column: 1 !important;
}

/* ============================================
   25. Panel border-radius fix — square off left corners
   ============================================ */
.article-body [data-component="panel"][data-appearance="note"],
.article-body [data-component="panel"][data-appearance="info"] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ============================================
   26. Content column width — responsive, not fixed
   ============================================ */
.fb-layout-body,
.fb-layout-container > header,
.fb-layout-container > footer {
  width: 100%;
  max-width: 900px;
}

/* ============================================
   27. Line-numbered code blocks — restore gutter space
   ============================================ */
pre.line-numbers {
  padding-left: 3.8em;
}

/* ============================================
   28. Code snippet box — hug content width
   ============================================ */
.theme-code-snippet {
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
}