/* ============================================================
   Photo Transfer App — HelpScout Docs custom theme
   Matches the marketing site at phototransferapp.com.
   Loaded via Manage > Docs > Custom Code > Custom Stylesheet URL.
   ============================================================ */

/* ------------------------------------------------------------
   Design tokens — mirror src/styles/global.css
   ------------------------------------------------------------ */
:root {
  --pta-primary: #0761AC;
  --pta-primary-light: #3394FF;
  --pta-accent: #FFA400;
  --pta-background: #F8F9FA;
  --pta-surface: #FFFFFF;
  --pta-surface-dim: #F1F5F9;
  --pta-text: #1A365D;
  --pta-text-secondary: #4A6B8A;
  --pta-outline: #E2E8F0;
  --pta-outline-variant: #CBD5E1;

  --pta-radius-sm: 0.75rem;
  --pta-radius-md: 1rem;
  --pta-radius-lg: 1.5rem;
  --pta-radius-full: 9999px;

  --pta-shadow-sm: 0 2px 8px -2px rgba(7, 97, 172, 0.08);
  --pta-shadow-md: 0 8px 32px 0 rgba(26, 54, 93, 0.06);
  --pta-shadow-lg: 0 20px 40px -12px rgba(7, 97, 172, 0.15);
  --pta-shadow-cta: 0 8px 24px -4px rgba(7, 97, 172, 0.3);

  --pta-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --pta-font-body: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------
   Base / typography
   ------------------------------------------------------------ */
body {
  background: var(--pta-background);
  color: var(--pta-text);
  font-family: var(--pta-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga';
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pta-font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pta-text);
}

a {
  color: var(--pta-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--pta-primary-light);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Top navigation bar
   Replace the dark-blue Bootstrap navbar with a white glass bar
   matching the marketing site's scrolled-state header.
   ------------------------------------------------------------ */
#mainNav.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#mainNav .navbar-inner {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: var(--pta-shadow-md);
  border-radius: 0;
  padding: 0.625rem 0;
  min-height: 0;
}

/* Bootstrap 2 adds a 20px bottom margin on .navbar — kill it so the
   header sits flush against the hero gradient. */
#mainNav.navbar {
  margin: 0;
}

#mainNav .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Bootstrap 2 floats fight flexbox layout — kill them everywhere. */
#mainNav .brand,
#mainNav .nav-collapse,
#mainNav .nav,
#mainNav .nav li,
#mainNav .nav-collapse nav {
  float: none !important;
}

#mainNav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  font-family: var(--pta-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pta-text);
  text-shadow: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

#mainNav .brand:hover,
#mainNav .brand:focus {
  color: var(--pta-text);
  transform: none;
}

#mainNav .brand img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

#mainNav .brand:hover img {
  transform: scale(1.08);
}

/* Hide HelpScout's redundant "home" nav link — the logo already links home. */
#mainNav .nav li#home {
  display: none;
}

/* Center the menu group horizontally in the navbar. */
#mainNav .nav-collapse {
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#mainNav .nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

#mainNav .nav li {
  background: transparent;
  border: 0;
  margin: 0;
}

#mainNav .nav li a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  color: var(--pta-text-secondary);
  font-family: var(--pta-font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  text-shadow: none;
  border-radius: var(--pta-radius-full);
  transition: color 0.2s ease, background 0.2s ease;
}

#mainNav .nav li a:hover,
#mainNav .nav li a:focus {
  color: var(--pta-primary);
  background: rgba(7, 97, 172, 0.06);
}

#mainNav .nav li.active a,
#mainNav .nav .active a:hover,
#mainNav .nav .active a:focus {
  color: var(--pta-primary);
  background: rgba(7, 97, 172, 0.08);
}

#mainNav .nav .caret {
  display: none;
}

/* Make the "Contact" link look like the marketing site's CTA pill */
#mainNav .nav li#contact a,
#mainNav .nav li#contactMobile a {
  background: var(--pta-primary);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 14px -4px rgba(7, 97, 172, 0.4);
}

#mainNav .nav li#contact a:hover,
#mainNav .nav li#contact a:focus,
#mainNav .nav li#contactMobile a:hover,
#mainNav .nav li#contactMobile a:focus {
  background: var(--pta-primary-light);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--pta-shadow-cta);
}

/* Mobile menu toggle */
#mainNav .btn-navbar {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: var(--pta-radius-sm);
}

#mainNav .btn-navbar:hover {
  background: rgba(7, 97, 172, 0.06);
}

#mainNav .btn-navbar .icon-bar {
  background: var(--pta-text);
  box-shadow: none;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   Hero search section
   Mirror the marketing-site hero: soft radial gradient,
   dotted overlay, large gradient heading, glass search input.
   ------------------------------------------------------------ */
#docsSearch {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, #E8F4FC 0%, #F8F9FA 70%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  /* No overflow: hidden here — the live search dropdown (#serp-dd) needs
     to extend past the hero's bottom edge. The dot-pattern overlay below
     is already constrained by position:absolute + inset:0. */
  border: 0;
  box-shadow: none;
}

/* Subtle dot pattern overlay (matches Hero.astro:9) */
#docsSearch::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #0761AC 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.03;
  pointer-events: none;
}

#docsSearch h1 {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 56rem;
  font-family: var(--pta-font-heading);
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--pta-primary) 0%,
    var(--pta-primary-light) 40%,
    var(--pta-accent) 70%,
    var(--pta-primary-light) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: pta-gradient-shift 6s ease-in-out infinite;
}

@keyframes pta-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  #docsSearch h1 { animation: none; }
}

/* Search form */
#searchBar {
  position: relative;
  /* Establish a stacking context so the dropdown overlays the category
     cards below (HelpScout's launch.css makes .collection position:relative,
     which puts cards in the same z-pool unless we isolate the search form). */
  z-index: 100;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--pta-radius-full);
  box-shadow: var(--pta-shadow-md);
  padding: 0.375rem 0.375rem 0.375rem 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#searchBar:focus-within {
  box-shadow: var(--pta-shadow-lg);
  transform: translateY(-1px);
}

#searchBar input.search-query {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  padding: 0.875rem 0.75rem !important;
  margin: 0 !important;
  font-family: var(--pta-font-body);
  font-size: 1.05rem;
  color: var(--pta-text);
  min-width: 0;
  width: auto !important;
  height: auto !important;
}

#searchBar input.search-query::placeholder {
  color: var(--pta-text-secondary);
  opacity: 0.75;
}

/* HelpScout's launch.css absolute-positions the button; force static so
   flexbox can place it correctly inside the form. */
#searchBar button {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pta-primary);
  color: #ffffff;
  border: 0;
  border-radius: var(--pta-radius-full);
  padding: 0.75rem 1.5rem;
  margin: 0;
  font-family: var(--pta-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px -4px rgba(7, 97, 172, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

/* Hide HelpScout's icon font glyph in the search button — we only want
   the "Search" text label. */
#searchBar button .icon-search,
#searchBar button .lp {
  display: none;
}

/* HelpScout's launch.css hides the "Search" text span at mobile widths,
   leaving an icon-only button. We hide the icon (above) so the span must
   always show or the button reads blank. */
#searchBar button span {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  text-indent: 0 !important;
}

#searchBar button:hover {
  background: var(--pta-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--pta-shadow-cta);
}

#searchBar button:active {
  transform: translateY(0) scale(0.98);
}

/* Live search results dropdown — absolute-position it under the form so it
   overlays content below instead of squeezing into the form's flex layout. */
#serp-dd {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--pta-surface);
  border: 1px solid var(--pta-outline);
  border-radius: var(--pta-radius-md);
  box-shadow: var(--pta-shadow-md);
  overflow: hidden;
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
}

#serp-dd .result li {
  margin: 0;
}

#serp-dd .result a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--pta-text);
  font-family: var(--pta-font-body);
  font-weight: 500;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

#serp-dd .result a:hover,
#serp-dd .result > li.active {
  background: rgba(7, 97, 172, 0.06);
  color: var(--pta-primary);
}

/* ------------------------------------------------------------
   Main content area
   ------------------------------------------------------------ */
#contentArea.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* ------------------------------------------------------------
   Homepage category grid (.threeCol .collection)
   Card-hover style matching the marketing site.
   ------------------------------------------------------------ */
.threeCol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
}

/* Bootstrap 2's .row-fluid (same element as .threeCol) injects ::before
   and ::after clearfix pseudo-elements. Under display: grid those become
   grid items and steal the first/last cells, shifting everything over.
   Force them out of the grid. */
.threeCol::before,
.threeCol::after,
.twoCol::before,
.twoCol::after {
  display: none !important;
  content: none !important;
}

@media (min-width: 720px) {
  .threeCol {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .threeCol {
    grid-template-columns: repeat(3, 1fr);
  }
}

.threeCol .collection,
.twoCol .collection {
  background: var(--pta-surface);
  border: 1px solid var(--pta-outline);
  border-radius: var(--pta-radius-lg);
  padding: 2rem;
  box-shadow: var(--pta-shadow-sm);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  margin: 0;
  width: auto;
  float: none;
  display: flex;
  flex-direction: column;
}

/* Only apply hover transforms on devices with a real hover capability —
   on touch devices :hover sticks after tap, leaving cards stuck "lifted"
   with a blue border. */
@media (hover: hover) {
  .threeCol .collection:hover,
  .twoCol .collection:hover {
    transform: translateY(-4px);
    box-shadow: var(--pta-shadow-lg);
    border-color: var(--pta-primary-light);
  }
}

.collection-head {
  border: 0;
  padding: 0 0 1.25rem;
  margin: 0 0 1.25rem;
  position: relative;
}

.collection-head::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pta-primary), var(--pta-primary-light));
  border-radius: 2px;
}

.collection-head h2 {
  margin: 0;
  font-family: var(--pta-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.collection-head h2 a {
  color: var(--pta-text);
}

.collection-head h2 a:hover {
  color: var(--pta-primary);
}

.collection-head p {
  margin: 0.5rem 0 0;
  color: var(--pta-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Popular articles list inside each category card */
.collection-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.popArticles {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.popArticles li {
  margin: 0;
  border-bottom: 1px solid var(--pta-outline);
}

/* Cap each card at 5 articles. JS in head.txt injects a .browse link
   for any collection where more articles were hidden. */
.popArticles li:nth-of-type(n+6) {
  display: none;
}

/* Recompute the "last visible item" border treatment. */
.popArticles li:nth-of-type(5),
.popArticles li:last-child {
  border-bottom: 0;
}

.popArticles a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--pta-text-secondary);
  font-family: var(--pta-font-body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease, padding 0.2s ease;
}

.popArticles a:hover {
  color: var(--pta-primary);
  padding-left: 0.25rem;
}

.popArticles a .icon-article-doc {
  color: var(--pta-primary);
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.popArticles a:hover .icon-article-doc {
  opacity: 1;
  transform: translateX(1px);
}

.popArticles a span {
  flex: 1;
}

/* "Browse all articles" chip at the bottom of each card */
.browse {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(7, 97, 172, 0.06);
  color: var(--pta-primary);
  font-family: var(--pta-font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--pta-radius-full);
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease;
}

.browse::after {
  content: '→';
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .browse:hover {
    background: rgba(7, 97, 172, 0.12);
    color: var(--pta-primary);
    transform: translateX(2px);
  }

  .browse:hover::after {
    transform: translateX(2px);
  }
}

/* Category article-count badge (on collection pages) */
.category-list .category .article-count,
.category-list .category:hover .article-count {
  color: var(--pta-primary);
  background: rgba(7, 97, 172, 0.08);
  border-radius: var(--pta-radius-full);
  padding: 0.125rem 0.625rem;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ------------------------------------------------------------
   Category page (single collection)
   ------------------------------------------------------------ */
.collection-page .collection-head {
  text-align: center;
  margin-bottom: 3rem;
}

.collection-page .collection-head h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.category-list {
  background: var(--pta-surface);
  border: 1px solid var(--pta-outline);
  border-radius: var(--pta-radius-lg);
  overflow: hidden;
  box-shadow: var(--pta-shadow-sm);
}

.category-list .category {
  border-bottom: 1px solid var(--pta-outline);
  transition: background 0.15s ease;
}

.category-list .category:last-child {
  border-bottom: 0;
}

.category-list .category:hover {
  background: rgba(7, 97, 172, 0.03);
}

.category-list .category a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  color: var(--pta-text);
  font-family: var(--pta-font-body);
  font-weight: 500;
  font-size: 1rem;
}

.category-list .category a:hover {
  color: var(--pta-primary);
}

/* ------------------------------------------------------------
   Article page
   ------------------------------------------------------------ */
#fullArticle {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--pta-surface);
  border: 1px solid var(--pta-outline);
  border-radius: var(--pta-radius-lg);
  box-shadow: var(--pta-shadow-sm);
  font-family: var(--pta-font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pta-text);
}

#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: var(--pta-text);
}

#fullArticle h1 {
  font-size: clamp(1.875rem, 3vw + 0.5rem, 2.5rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

#fullArticle h2 {
  font-size: 1.625rem;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}

#fullArticle h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

#fullArticle p {
  margin: 0 0 1.25rem;
}

#fullArticle a,
#fullArticle strong a,
#fullArticle a strong {
  color: var(--pta-primary);
  text-decoration: underline;
  text-decoration-color: rgba(7, 97, 172, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

#fullArticle a:hover,
#fullArticle a:focus {
  color: var(--pta-primary-light);
  text-decoration-color: var(--pta-primary-light);
}

#fullArticle ul,
#fullArticle ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

#fullArticle li {
  margin-bottom: 0.5rem;
}

#fullArticle blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--pta-surface-dim);
  border-left: 4px solid var(--pta-primary);
  border-radius: var(--pta-radius-sm);
  color: var(--pta-text-secondary);
  font-style: normal;
}

#fullArticle code {
  background: var(--pta-surface-dim);
  color: var(--pta-text);
  padding: 0.15em 0.4em;
  border-radius: 0.375rem;
  font-size: 0.92em;
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

#fullArticle pre {
  background: var(--pta-text);
  color: #f8f9fa;
  padding: 1.25rem;
  border-radius: var(--pta-radius-md);
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.6;
}

#fullArticle pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

#fullArticle img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pta-radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--pta-shadow-sm);
}

#fullArticle table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--pta-radius-md);
  overflow: hidden;
  border: 1px solid var(--pta-outline);
}

#fullArticle table th {
  background: var(--pta-surface-dim);
  font-family: var(--pta-font-heading);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pta-outline);
}

#fullArticle table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pta-outline);
}

#fullArticle table tr:last-child td {
  border-bottom: 0;
}

/* Last-updated timestamp */
.articleFoot time.lu,
.articleFoot {
  color: var(--pta-text-secondary);
  font-size: 0.875rem;
  font-family: var(--pta-font-body);
}

/* Article feedback widget ("Was this article helpful?") */
.article-feedback,
#articleFeedback {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--pta-surface-dim);
  border-radius: var(--pta-radius-lg);
  text-align: center;
}

.article-feedback button,
#articleFeedback button {
  background: var(--pta-surface);
  border: 1px solid var(--pta-outline);
  border-radius: var(--pta-radius-full);
  padding: 0.5rem 1.25rem;
  font-family: var(--pta-font-heading);
  font-weight: 600;
  color: var(--pta-text);
  margin: 0 0.25rem;
  transition: all 0.2s ease;
}

.article-feedback button:hover,
#articleFeedback button:hover {
  border-color: var(--pta-primary);
  color: var(--pta-primary);
  transform: translateY(-1px);
  box-shadow: var(--pta-shadow-sm);
}

/* Related articles */
.relatedArticles,
.related-articles {
  max-width: 48rem;
  margin: 2rem auto 0;
}

.relatedArticles h3,
.related-articles h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   Sidebar (article navigation, on article pages)
   ------------------------------------------------------------ */
.sidebar,
#sidebar {
  font-family: var(--pta-font-body);
}

.sidebar a,
#sidebar a {
  color: var(--pta-text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--pta-radius-sm);
  display: block;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar a:hover,
#sidebar a:hover,
.sidebar a.active,
#sidebar a.active {
  background: rgba(7, 97, 172, 0.06);
  color: var(--pta-primary);
}

/* ------------------------------------------------------------
   Search results page
   ------------------------------------------------------------ */
#contentArea ul.search-results {
  max-width: 48rem;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

#contentArea ul.search-results li {
  background: var(--pta-surface);
  border: 1px solid var(--pta-outline);
  border-radius: var(--pta-radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#contentArea ul.search-results li:hover {
  transform: translateY(-2px);
  box-shadow: var(--pta-shadow-md);
  border-color: var(--pta-primary-light);
}

#contentArea ul.search-results h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

#contentArea ul.search-results h3 a {
  color: var(--pta-text);
}

#contentArea ul.search-results h3 a:hover {
  color: var(--pta-primary);
}

#noResults {
  text-align: center;
  padding: 3rem 1.5rem;
  font-family: var(--pta-font-heading);
  font-size: 1.25rem;
  color: var(--pta-text-secondary);
}

/* ------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------ */
#breadCrumbs,
.breadcrumb {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  padding: 0;
  background: transparent;
  font-family: var(--pta-font-body);
  font-size: 0.9rem;
  color: var(--pta-text-secondary);
}

#breadCrumbs a,
.breadcrumb a {
  color: var(--pta-text-secondary);
}

#breadCrumbs a:hover,
.breadcrumb a:hover {
  color: var(--pta-primary);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer.center,
#site-footer,
.docs-footer {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--pta-outline);
  text-align: center;
  font-family: var(--pta-font-body);
  font-size: 0.9rem;
  color: var(--pta-text-secondary);
}

footer.center a,
#site-footer a,
.docs-footer a {
  color: var(--pta-text-secondary);
}

footer.center a:hover,
#site-footer a:hover,
.docs-footer a:hover {
  color: var(--pta-primary);
}

/* ------------------------------------------------------------
   Beacon (chat widget) — keep brand-aligned
   The Beacon iframe is mostly themed via the Beacon dashboard,
   but the launcher button respects this for safety.
   ------------------------------------------------------------ */
.BeaconFabButtonFrame,
#beacon-container {
  --beacon-primary-color: var(--pta-primary);
}

/* ------------------------------------------------------------
   Responsive tweaks
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  #docsSearch {
    padding: 4.5rem 1rem 3.5rem;
  }

  #docsSearch h1 {
    font-size: clamp(1.875rem, 6vw, 2.5rem);
  }

  #searchBar {
    flex-direction: row;
    padding: 0.3rem 0.3rem 0.3rem 1.25rem;
  }

  #searchBar button {
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }

  #contentArea.container-fluid {
    padding: 2.5rem 1rem 3rem;
  }

  .threeCol .collection,
  .twoCol .collection {
    padding: 1.5rem;
  }

  #fullArticle {
    padding: 1.5rem;
  }

  /* Mobile navbar layout — allow the menu to drop to its own row below
     the brand instead of being a flex sibling that vertically centers
     against the open menu's height. */
  #mainNav .container-fluid {
    flex-wrap: wrap;
    row-gap: 0;
  }

  #mainNav .brand {
    margin-right: auto;
  }

  /* Collapse-style mobile nav — HelpScout's Bootstrap collapse
     hides this by default until the toggle is tapped. */
  #mainNav .nav-collapse.collapse:not(.in) {
    display: none;
  }

  #mainNav .nav-collapse.in {
    display: block;
    flex-basis: 100%;
    width: 100%;
    margin: 0.5rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pta-outline);
  }

  #mainNav .nav-collapse.in .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  #mainNav .nav li a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  /* Contact CTA on mobile — full-width pill, not stretched-narrow. */
  #mainNav .nav li#contact a,
  #mainNav .nav li#contactMobile a {
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }
}
