/* ==========================================================================
   Part3 Help Center — Custom Stylesheet
   Matches part3.io design system: Pathway Extreme headings, Lato body,
   navy + green palette, modern card layouts

   Add this to HelpScout Docs:
   Settings → Your Site → Custom Code → Head (CSS)
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Pathway+Extreme:wght@400;500;600;700;800&family=Lato:wght@300;400;700;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Navy palette — sourced from part3.io computed styles */
  --p3-navy:        #08416e;
  --p3-navy-dark:   #092c4f;
  --p3-navy-light:  #0f5a9e;
  --p3-blue:        #2d9edd;
  --p3-blue-light:  #e0f2fe;
  --p3-blue-bg:     #f0f6ff;

  /* Green accent — part3.io CTA color rgb(17,132,23) */
  --p3-green:       #118417;
  --p3-green-hover: #0e6e13;
  --p3-green-light: #e8f5e9;

  /* Neutrals */
  --p3-white:       #ffffff;
  --p3-off-white:   #f8f9fb;
  --p3-gray-50:     #f7f7f7;
  --p3-gray-100:    #f0f0f2;
  --p3-gray-200:    #e0e0e4;
  --p3-gray-300:    #dddde0;
  --p3-gray-500:    #696969;
  --p3-gray-700:    #4a4a4a;
  --p3-gray-900:    #272727;

  /* Text — from part3.io rgb(39,39,39) */
  --p3-text:        #272727;
  --p3-text-muted:  #696969;

  /* Status */
  --p3-orange:      #ee9022;
  --p3-red:         #db464a;

  /* Radii — from part3.io: 8, 12, 16, 20, 42 */
  --p3-radius-sm:   8px;
  --p3-radius-md:   12px;
  --p3-radius-lg:   16px;
  --p3-radius-xl:   20px;
  --p3-radius-pill: 42px;

  /* Shadows — from part3.io computed styles */
  --p3-shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --p3-shadow-md:   0 3px 20px rgba(212,212,212,0.25);
  --p3-shadow-lg:   0 8px 28px rgba(0,0,0,0.12);
  --p3-shadow-card: 0 4px 15px 2px rgba(0,0,0,0.06);

  --p3-transition:  all 0.2s ease;
}

/* ---------- Base Reset ---------- */
* {
  box-sizing: border-box;
}

a {
  cursor: pointer !important;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--p3-text) !important;
  background: var(--p3-off-white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Pathway Extreme', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--p3-gray-900) !important;
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: normal;
}

h1 { font-size: 2rem !important; }
h2 { font-size: 1.5rem !important; }
h3 { font-size: 1.25rem !important; }

p, li, td, th, label, span {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

a {
  color: var(--p3-navy) !important;
  text-decoration: none !important;
  transition: var(--p3-transition);
}

a:hover {
  color: var(--p3-green) !important;
}

/* ---------- Main Content Area ---------- */
/* Card container for all main content — consistent across category + article pages */
#main-content {
  background: var(--p3-white) !important;
  padding: 1.75rem !important;
  border-radius: var(--p3-radius-lg) !important;
  border: 1px solid var(--p3-gray-200) !important;
  box-shadow: var(--p3-shadow-sm) !important;
  margin: 25px 0 !important;
}

/* ---------- Header / Navbar ---------- */
.navbar {
  background: var(--p3-navy-dark) !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.navbar-inner {
  background: var(--p3-navy-dark) !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.5rem 1.5rem !important;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar .brand {
  padding: 12px 20px 12px 0 !important;
}

.navbar .brand img {
  max-height: 36px !important;
  width: auto !important;
  object-fit: contain !important;
  height: auto !important;
}

.navbar .nav > li > a {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 10px 16px !important;
  border-radius: var(--p3-radius-sm) !important;
  transition: var(--p3-transition);
  letter-spacing: 0;
}

.navbar .nav > li > a:hover,
.navbar .nav > li.active > a {
  color: var(--p3-white) !important;
  background: rgba(255,255,255,0.1) !important;
}

/* ---------- Hero / Search Section ---------- */
#docsSearch {
  background: linear-gradient(135deg, var(--p3-navy-dark) 0%, var(--p3-navy) 50%, var(--p3-navy-light) 100%) !important;
  padding: 3.5rem 1.5rem 3rem !important;
  text-align: center;
  position: relative;
  overflow: visible;
}

/* Subtle geometric texture overlay */
#docsSearch::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(45,158,221,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(17,132,23,0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}

#docsSearch h1 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-weight: 700 !important;
  color: var(--p3-white) !important;
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
  position: relative;
  z-index: 1;
}

/* Optional subtitle text under h1 */
#docsSearch p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 1.05rem !important;
  margin-bottom: 1.5rem !important;
  position: relative;
  z-index: 1;
}

/* The #searchBar is a <form> wrapping input + button */
#searchBar {
  position: relative;
  z-index: 9998;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

input.search-query,
#searchBar input[type="text"],
.search-query {
  font-family: 'Lato', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  padding: 14px 24px 14px 48px !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  border-right: none !important;
  border-radius: var(--p3-radius-pill) 0 0 var(--p3-radius-pill) !important;
  background: rgba(255,255,255,0.95) !important;
  color: var(--p3-text) !important;
  flex: 1 !important;
  min-width: 0 !important;
  max-width: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  transition: var(--p3-transition);
  outline: none !important;
  margin: 0 !important;
  display: block !important;
  height: 52px !important;
}

input.search-query:focus,
.search-query:focus {
  border-color: var(--p3-green) !important;
  background: var(--p3-white) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2) !important;
}

input.search-query::placeholder,
.search-query::placeholder {
  color: var(--p3-gray-500) !important;
  font-weight: 400 !important;
}

/* Search button — attached to the right of input */
#searchBar button,
.search-wrapper button {
  position: relative !important;
  top: 0 !important;
  bottom: 0 !important;
  background: var(--p3-green) !important;
  color: var(--p3-white) !important;
  border: 2px solid var(--p3-green) !important;
  border-radius: 0 var(--p3-radius-pill) var(--p3-radius-pill) 0 !important;
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 0 28px !important;
  height: 52px !important;
  transition: var(--p3-transition);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

#searchBar button:hover,
.search-wrapper button:hover {
  background: var(--p3-green-hover) !important;
  border-color: var(--p3-green-hover) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2) !important;
}

/* Search results dropdown */
#serp-dd {
  border-radius: var(--p3-radius-md) !important;
  border: 1px solid var(--p3-gray-200) !important;
  box-shadow: var(--p3-shadow-lg) !important;
  margin-top: 4px !important;
  overflow: hidden;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: var(--p3-white) !important;
}

#serp-dd .result {
  padding: 12px 20px !important;
  border-bottom: 1px solid var(--p3-gray-100) !important;
  transition: var(--p3-transition);
  background: var(--p3-white) !important;
}

#serp-dd .result:hover {
  background: var(--p3-gray-50, #f8f9fa) !important;
}

#serp-dd .result:last-child {
  border-bottom: none !important;
}

/* ---------- Content Wrapper ---------- */
.contentWrapper {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 25px !important;
  border-radius: 16px;
}

/* ---------- Category Page Header ---------- */
/* Sits inside #main-content card — just typography + bottom divider */
#categoryHead {
  background: transparent !important;
  padding: 0 1.75rem 1.25rem !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--p3-gray-100) !important;
  margin-bottom: 0 !important;
}

#categoryHead h1 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: var(--p3-gray-900) !important;
  margin: 0 0 0.35rem 0 !important;
}

#categoryHead p.descrip {
  color: var(--p3-text-muted) !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

#categoryHead .sort {
  margin-top: 0.75rem !important;
}

/* ---------- Category Cards ---------- */
.category-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 1.25rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* HelpScout category cards are <a> tags in a CSS grid — force them to fill cells */
.category-list .category,
.collection {
  background: var(--p3-white) !important;
  border: 1px solid var(--p3-gray-200) !important;
  border-radius: var(--p3-radius-lg) !important;
  padding: 1.75rem !important;
  transition: var(--p3-transition);
  box-shadow: var(--p3-shadow-sm) !important;
  position: relative;
  overflow: hidden;
  text-align: left !important;
  /* Force <a> tags to fill grid cells */
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}

.category-list .category:hover,
.collection:hover {
  border-color: var(--p3-gray-300) !important;
  box-shadow: var(--p3-shadow-card) !important;
  transform: translateY(-2px);
}

.category-list .category h2,
.category-list .category h3,
.collection h2,
.collection h3 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.5rem 0 !important;
  color: var(--p3-gray-900) !important;
}

.category-list .category a,
.collection a {
  color: var(--p3-gray-900) !important;
  font-weight: 700 !important;
}

.category-list .category a:hover,
.collection a:hover {
  color: var(--p3-green) !important;
}

/* Category descriptions */
.category-list .category p,
.collection p {
  color: var(--p3-text-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

/* Article count badges */
.article-count {
  font-size: 0.8rem !important;
  color: var(--p3-green) !important;
  font-weight: 700 !important;
  background: transparent !important;
  padding: 0 !important;
  display: inline-block;
}

/* ---------- Collection Section Headers ---------- */
.contentWrapper > div > h2,
.contentWrapper > h2,
#contentArea > div > h2,
#contentArea > h2 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: var(--p3-navy) !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px solid var(--p3-gray-100) !important;
}

/* Section header links inherit navy color */
#contentArea > div > h2 a,
.contentWrapper > div > h2 a {
  color: var(--p3-navy) !important;
}

/* ---------- Article Pages ---------- */
#fullArticle {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 800px;
  line-height: 1.75;
}

#fullArticle h1 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  color: var(--p3-gray-900) !important;
  margin-bottom: 0.5rem !important;
}

#fullArticle h2 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: var(--p3-gray-900) !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--p3-gray-100);
}

#fullArticle h3 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin-top: 1.5rem !important;
}

#fullArticle p {
  color: var(--p3-text) !important;
  font-size: 0.95rem !important;
  margin-bottom: 1rem !important;
}

#fullArticle img {
  border-radius: var(--p3-radius-md) !important;
  border: 1px solid var(--p3-gray-200) !important;
  margin: 1rem 0 !important;
  max-width: 100% !important;
}

#fullArticle ul,
#fullArticle ol {
  padding-left: 1.5rem !important;
  margin-bottom: 1rem !important;
}

#fullArticle li {
  margin-bottom: 0.4rem !important;
  font-size: 0.95rem !important;
  color: var(--p3-text) !important;
}

#fullArticle code {
  background: var(--p3-gray-50) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
  color: var(--p3-navy) !important;
  font-family: 'SF Mono', 'Fira Code', monospace !important;
}

#fullArticle pre {
  background: var(--p3-gray-900) !important;
  color: var(--p3-gray-100) !important;
  padding: 1.25rem !important;
  border-radius: var(--p3-radius-md) !important;
  overflow-x: auto;
  font-size: 0.85rem !important;
  line-height: 1.6;
}

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

#fullArticle blockquote {
  border-left: 3px solid var(--p3-green) !important;
  background: var(--p3-green-light) !important;
  padding: 1rem 1.25rem !important;
  margin: 1.25rem 0 !important;
  border-radius: 0 var(--p3-radius-sm) var(--p3-radius-sm) 0 !important;
  color: var(--p3-gray-900) !important;
  font-size: 0.95rem !important;
}

#fullArticle table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--p3-radius-md) !important;
  overflow: hidden;
  border: 1px solid var(--p3-gray-200) !important;
  margin: 1rem 0 !important;
}

#fullArticle th {
  background: var(--p3-gray-50) !important;
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: var(--p3-gray-700) !important;
  padding: 10px 14px !important;
  text-align: left !important;
  border-bottom: 2px solid var(--p3-gray-200) !important;
}

#fullArticle td {
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--p3-gray-100) !important;
  font-size: 0.9rem !important;
}

#fullArticle tr:last-child td {
  border-bottom: none !important;
}

/* Article links — green like part3.io CTAs */
#fullArticle a {
  color: var(--p3-green) !important;
  font-weight: 700 !important;
}

#fullArticle a:hover {
  color: var(--p3-green-hover) !important;
}

/* ---------- Sidebar Navigation ---------- */
/* "Categories" heading — space above to separate it from the search bar */
.sidebar-nav h3,
.category-nav h3,
aside h3 {
  margin-top: 1.5rem !important;
  padding-top: 0.25rem !important;
}

.sidebar-nav,
.category-nav {
  background: var(--p3-white) !important;
  border-radius: var(--p3-radius-lg) !important;
  border: 1px solid var(--p3-gray-200) !important;
  padding: 1rem !important;
  box-shadow: var(--p3-shadow-sm) !important;
}

.sidebar-nav a,
.category-nav a {
  padding: 8px 14px !important;
  border-radius: var(--p3-radius-sm) !important;
  display: block !important;
  color: var(--p3-text) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  transition: var(--p3-transition);
}

.sidebar-nav a:hover,
.category-nav a:hover {
  background: var(--p3-green-light) !important;
  color: var(--p3-green) !important;
}

.sidebar-nav .active a,
.category-nav .active a {
  background: var(--p3-green-light) !important;
  color: var(--p3-green) !important;
  font-weight: 700 !important;
}

/* ---------- Popular Articles ---------- */
.most-pop-articles {
  background: var(--p3-white) !important;
  border-radius: var(--p3-radius-lg) !important;
  padding: 1.75rem !important;
  border: 1px solid var(--p3-gray-200) !important;
  box-shadow: var(--p3-shadow-sm) !important;
}

.most-pop-articles h3,
.most-pop-articles h4 {
  font-family: 'Pathway Extreme', sans-serif !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--p3-text-muted) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

.popArticles li {
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--p3-gray-100) !important;
}

.popArticles li:last-child {
  border-bottom: none !important;
}

.popArticles a {
  color: var(--p3-text) !important;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
}

.popArticles a:hover {
  color: var(--p3-green) !important;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb,
.breadcrumbs {
  background: transparent !important;
  padding: 0.75rem 0 !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.85rem !important;
  border: none !important;
  box-shadow: none !important;
}

.breadcrumb li,
.breadcrumb a {
  color: var(--p3-text-muted) !important;
  font-weight: 400 !important;
}

.breadcrumb .active {
  color: var(--p3-text) !important;
}

.breadcrumb .divider,
.breadcrumb li::before {
  color: var(--p3-gray-300) !important;
}

/* ---------- Footer ---------- */
footer,
.footer {
  background: var(--p3-navy-dark) !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 2rem 1.5rem !important;
  margin-top: 4rem !important;
  text-align: center;
  font-size: 0.85rem !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
}

footer a,
.footer a {
  color: rgba(255,255,255,0.85) !important;
}

footer a:hover,
.footer a:hover {
  color: var(--p3-white) !important;
}

/* ---------- Buttons ---------- */
.btn,
button,
input[type="submit"] {
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 10px 24px !important;
  border-radius: var(--p3-radius-pill) !important;
  border: none !important;
  cursor: pointer;
  transition: var(--p3-transition);
}

.btn-primary,
.btn-main {
  background: var(--p3-green) !important;
  color: var(--p3-white) !important;
}

.btn-primary:hover,
.btn-main:hover {
  background: var(--p3-green-hover) !important;
  box-shadow: var(--p3-shadow-md) !important;
}

/* Secondary / outline buttons */
.btn-secondary,
.btn-default {
  background: var(--p3-white) !important;
  color: var(--p3-gray-900) !important;
  border: 1.5px solid var(--p3-gray-200) !important;
}

.btn-secondary:hover,
.btn-default:hover {
  border-color: var(--p3-gray-300) !important;
  box-shadow: var(--p3-shadow-sm) !important;
}

/* ---------- Contact Form / Related Articles ---------- */
.contact-form,
.related-articles {
  background: var(--p3-white) !important;
  border: 1px solid var(--p3-gray-200) !important;
  border-radius: var(--p3-radius-lg) !important;
  padding: 2rem !important;
  margin-top: 2rem !important;
  box-shadow: var(--p3-shadow-sm) !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
  font-family: 'Lato', sans-serif !important;
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  border: 1.5px solid var(--p3-gray-200) !important;
  border-radius: var(--p3-radius-sm) !important;
  transition: var(--p3-transition);
  width: 100% !important;
  background: var(--p3-white) !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--p3-green) !important;
  box-shadow: 0 0 0 3px rgba(17,132,23,0.1) !important;
  outline: none !important;
}

/* ---------- Article List Items (category pages) ---------- */
/* Modern compact row layout — sits inside #main-content card */
.articleList,
.article-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
}

.articleList li,
.article-list li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--p3-gray-100) !important;
}

.articleList li:last-child,
.article-list li:last-child {
  border-bottom: none !important;
}

/* Flex row: icon + title text side by side */
.articleList li a,
.article-list li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 1.75rem !important;
  color: var(--p3-text) !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: var(--p3-transition) !important;
  border-radius: var(--p3-radius-sm) !important;
}

.articleList li a:hover,
.article-list li a:hover {
  background: var(--p3-green-light) !important;
  color: var(--p3-green) !important;
  padding-left: calc(1.75rem + 6px) !important;
}

/* Doc icon — muted by default, green on hover */
.articleList li a i,
.article-list li a i {
  flex-shrink: 0 !important;
  color: var(--p3-gray-300) !important;
  font-size: 14px !important;
  width: 16px !important;
  text-align: center !important;
  transition: var(--p3-transition) !important;
}

.articleList li a:hover i,
.article-list li a:hover i {
  color: var(--p3-green) !important;
}

.articleList li a span,
.article-list li a span {
  flex: 1 !important;
}

/* ---------- Last updated ---------- */
.articleFoot time.lu {
  color: var(--p3-text-muted) !important;
  font-size: 0.8rem !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .category-list {
    grid-template-columns: 1fr !important;
  }

  #fullArticle {
    padding: 1.5rem !important;
  }

  .navbar-inner {
    padding: 0.5rem 1rem !important;
  }

  #docsSearch {
    padding: 2.5rem 1rem 2rem !important;
  }

  #docsSearch h1 {
    font-size: 1.5rem !important;
  }

  #searchBar {
    max-width: 100% !important;
  }

  input.search-query,
  .search-query {
    font-size: 0.95rem !important;
    padding: 12px 16px 12px 42px !important;
    height: 48px !important;
  }

  #searchBar button {
    padding: 0 16px !important;
    height: 48px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.25rem !important; }

  .category-list .category,
  .collection {
    padding: 1.25rem !important;
  }
}

/* ---------- Misc Overrides ---------- */

/* Remove old Bootstrap-style shadows/borders */
.navbar-inner,
.well,
.panel {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color matching brand green */
::selection {
  background: var(--p3-green-light);
  color: var(--p3-gray-900);
}

/* Soften "Powered by" footer text */
.footer .powered-by,
footer .powered-by {
  opacity: 0.5;
  font-size: 0.75rem !important;
}
