/**
 * Help Center Component Styles
 * ════════════════════════════════════════════════════════════════════════════
 *
 * DESIGN REFERENCE: https://www.loveform.com/help
 *
 * This file implements an LoveForm-style Help Center. Before making changes,
 * ALWAYS check the LoveForm help page at different viewport sizes:
 *
 * VIEWPORT BREAKPOINTS:
 * ─────────────────────────────────────────────────────────────────────────────
 * Desktop:     1024px+ (full grid layouts, desktop search input)
 * Tablet:      744px - 1023px (2-column grids, mobile search button)
 * Mobile:      743px and below (single column, stacked layouts)
 *
 * CRITICAL MOBILE PATTERNS (iPhone SE 375px):
 * ─────────────────────────────────────────────────────────────────────────────
 * 1. TOP ARTICLES: Single column vertical list (flex column, NOT grid)
 *    - Class: .hc-articles-grid
 *    - ⚠️ NEVER use grid-template-columns on mobile - text becomes unreadable
 *
 * 2. GUIDES: List view with icons and chevrons
 *    - Hide: .school-cards-grid (desktop image cards)
 *    - Show: .hc-guides-list-mobile (mobile list)
 *
 * 3. EXPLORE MORE: Full-width stacked cards
 *    - Hide: .hc-explore-grid (desktop 2-column)
 *    - Show: .hc-explore-list-mobile (mobile cards)
 *
 * 4. SEARCH: Mobile button replaces desktop input at 769px
 *    - Hide: .hc-search-input-wrapper
 *    - Show: .hc-search-mobile-button
 *
 * 5. TAB SCROLL ARROWS: Hidden on desktop, visible on mobile when tabs overflow
 *    - Class: .tab-scroll-arrow
 *    - Hidden by default (display: none), shown at 768px breakpoint
 *
 * LAST VERIFIED AGAINST AIRBNB: 2025-12-19
 * ════════════════════════════════════════════════════════════════════════════
 */

/* ============================================
 * NAVIGATION - Match LoveForm 92px Header Height
 * ============================================ */

.navbar.fixed-top {
  height: 92px !important;
  max-height: 92px;
  padding: 0;
}

.navbar .container-fluid {
  height: 92px;
  max-height: 92px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

/* Help pages navbar bottom border (LoveForm-style separator) */
body#help .navbar.fixed-top {
  border-bottom: 1px solid var(--hc-border-subtle, #EBEBEB);
  box-shadow: none;
}

body#help .navbar.fixed-top > .container-fluid {
  padding-left: 24px;
  padding-right: 24px;
}

body#help .hc-nav-brand,
body#help .help-nav-right {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ============================================
 * LAYOUT & CONTAINER
 * ============================================ */

.hc-container {
  max-width: var(--hc-container-max-width);
  margin: 0 auto; /* Nav/layout already provides top offset; avoid double-spacing */
  padding: 0 var(--hc-container-padding-mobile); /* 0 top padding for flush design */
}

/* ============================================
 * AIRBNB BREADCRUMB RHYTHM (SHARED)
 * ============================================ */

.hc-content--with-breadcrumb {
  padding-top: 32px;
}

.hc-content--with-breadcrumb .hc-breadcrumb,
.hc-content--with-breadcrumb .ns-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
  color: #222222;
}

.hc-content--with-breadcrumb .hc-breadcrumb a,
.hc-content--with-breadcrumb .ns-breadcrumb a {
  color: #222222;
  text-decoration: none;
}

.hc-content--with-breadcrumb .hc-breadcrumb a:hover,
.hc-content--with-breadcrumb .ns-breadcrumb a:hover {
  text-decoration: underline;
}

.hc-content--with-breadcrumb .hc-breadcrumb-separator,
.hc-content--with-breadcrumb .ns-breadcrumb [aria-hidden="true"] {
  color: #b0b0b0;
}

.hc-content--with-breadcrumb .hc-breadcrumb-current,
.hc-content--with-breadcrumb .ns-breadcrumb > span:last-child {
  color: #717171;
}

/* ============================================
 * AIRBNB ARTICLE BREADCRUMB + TITLE (SCOPED)
 * ============================================ */

.hc-content--article-airbnb {
  padding-top: 0;
  font-family: var(--hc-font-family-cereal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hc-content--article-airbnb .hc-breadcrumb,
.hc-content--article-airbnb .ns-breadcrumb {
  margin: 28px 0;
  font-size: 13px;
  line-height: 20.02px;
}

.hc-content--article-airbnb .hc-article-page-title {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 36px;
  font-weight: 500;
  color: var(--text-primary, #1A1A1A);
}

/* Shared article typography for Airbnb-style help pages */
.hc-content--article-airbnb .hc-article-type,
.hc-content--article-airbnb .ns-article-type {
  margin: 0 0 8px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 20.02px;
  font-weight: 400;
}

.hc-content--article-airbnb .hc-article-intro,
.hc-content--article-airbnb .ns-intro,
.hc-content--article-airbnb .ns-intro-muted {
  color: #222222;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
}

.hc-content--article-airbnb .hc-article-intro {
  margin: 0 0 24px;
}

.hc-content--article-airbnb .hc-article-featured-image {
  margin: 0 0 24px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* Keep non-image article title rhythm unchanged; title->image gap is 8px (Airbnb). */
.hc-content--article-airbnb .hc-article-page-title + .hc-article-featured-image {
  margin-top: -16px;
}

.hc-content--article-airbnb .hc-article-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.hc-content--article-airbnb .ns-intro {
  margin: 0 0 24px;
}

.hc-content--article-airbnb .ns-intro-muted {
  margin: 0 0 24px;
}

.hc-content--article-airbnb .ns-emergency p {
  margin: 0;
  color: #222222;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}

.hc-content--article-airbnb .hc-article-content {
  color: #222222;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  /* Contain child margin-collapsing so section spacing stays deterministic */
  display: flow-root !important;
}

.hc-content--article-airbnb .hc-article-content p {
  min-height: 1em;
  font-size: 15px;
  line-height: 22px;
  margin: 8px 0 16px;
}

.hc-content--article-airbnb .ns-section p,
.hc-content--article-airbnb .ns-question-block p {
  color: #222222;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  margin: 8px 0 16px;
}

.hc-content--article-airbnb .hc-related-card-summary,
.hc-content--article-airbnb .ns-related-item > p:not(.ns-related-meta) {
  color: #6a6a6a;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  margin: 0;
}

.hc-content--article-airbnb .hc-related-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Global Airbnb article rhythm for TOC, lists, device tabs, and feedback/related spacing */
.hc-content--article-airbnb .hc-article-toc {
  margin: 44px 0 44px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #dddddd !important;
  font-size: 14px !important;
  line-height: 20.02px !important;
}

.hc-content--article-airbnb .hc-article-toc-title {
  margin: 0 0 16px !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  color: #6b6b6b !important;
  letter-spacing: 0 !important;
}

.hc-content--article-airbnb .hc-article-toc-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.hc-content--article-airbnb .hc-article-toc-item {
  margin: 0 0 24px !important;
}

.hc-content--article-airbnb .hc-article-toc-item:last-child {
  margin-bottom: 24px !important;
}

.hc-content--article-airbnb .hc-article-toc-link {
  display: flex !important;
  align-items: center !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  gap: 8px !important;
}

.hc-content--article-airbnb .hc-article-toc-icon {
  width: 12px !important;
  height: 12px !important;
  margin-top: 0 !important;
  opacity: 1 !important;
}

.hc-content--article-airbnb .hc-article-content ul {
  margin: 16px 0 !important;
  padding-left: 40px !important;
}

.hc-content--article-airbnb .hc-article-content ol {
  margin: 16px 0 4px !important;
  padding-left: 40px !important;
}

.hc-content--article-airbnb .hc-article-content ul li {
  margin-bottom: 0 !important;
}

.hc-content--article-airbnb .hc-article-content ol li {
  margin-bottom: 4px !important;
}

.hc-content--article-airbnb .hc-article-content ol li:last-child {
  margin-bottom: 0 !important;
}

.hc-content--article-airbnb .hc-device-tabs,
.hc-content--article-airbnb .hc-device-section-tabs {
  align-items: flex-end !important;
  gap: 16px !important;
  margin: 24px 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #ebebeb !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.hc-content--article-airbnb .hc-device-section-tabs {
  display: flex !important;
  width: 100% !important;
}

.hc-content--article-airbnb .hc-device-tab,
.hc-content--article-airbnb .hc-device-section-tab {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6b6b6b !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  padding: 0 12px 10px !important;
  margin: 0 !important;
}

.hc-content--article-airbnb .hc-device-tab:hover,
.hc-content--article-airbnb .hc-device-section-tab:hover {
  background: transparent !important;
  color: #222222 !important;
}

.hc-content--article-airbnb .hc-device-tab.active,
.hc-content--article-airbnb .hc-device-section-tab.active {
  background: transparent !important;
  color: #222222 !important;
  border-bottom-color: #222222 !important;
  box-shadow: none !important;
  margin-bottom: -1px !important;
}

.hc-content--article-airbnb .hc-article-content h2 {
  margin: 44px 0 16px !important;
  padding-top: 0 !important;
  font-size: 22px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
  color: #222222 !important;
}

.hc-content--article-airbnb .hc-article-content h2:first-child {
  margin-top: 0 !important;
}

/* Normalize non-h2 headings so legacy article HTML still follows the global
   Airbnb-like heading rhythm after category/type reclassification. */
.hc-content--article-airbnb .hc-article-content h3 {
  margin: 44px 0 16px !important;
  padding-top: 0 !important;
  font-size: 22px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
  color: #222222 !important;
}

.hc-content--article-airbnb .hc-article-content h4 {
  margin: 34px 0 14px !important;
  padding-top: 0 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
  color: #222222 !important;
}

.hc-content--article-airbnb .hc-article-content h3:first-child,
.hc-content--article-airbnb .hc-article-content h4:first-child {
  margin-top: 0 !important;
}

.hc-content--article-airbnb .hc-device-sections {
  display: flex !important;
  flex-direction: column !important;
  gap: 34px !important;
}

.hc-content--article-airbnb .hc-device-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
  /* Prevent inner paragraph/list margins from escaping the section box */
  display: flow-root !important;
}

.hc-content--article-airbnb .hc-device-sections > .hc-device-section:last-child:not(:first-child) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hc-content--article-airbnb .hc-device-section-heading {
  margin: 0 0 16px !important;
  padding-top: 0 !important;
  font-size: 22px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
  color: #222222 !important;
}

.hc-content--article-airbnb .hc-device-panel-heading {
  margin: 44px 0 16px !important;
  font-size: 18px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
  color: #222222 !important;
}

.hc-content--article-airbnb .hc-device-section-body {
  /* Prevent child paragraph/list margins from collapsing outside the section body */
  display: flow-root !important;
}

.hc-content--article-airbnb .hc-device-section-body > *:first-child {
  margin-top: 0 !important;
}

.hc-content--article-airbnb .hc-device-section-body > *:last-child,
.hc-content--article-airbnb .hc-device-section-body > *:last-child > *:last-child {
  margin-bottom: 0 !important;
}

.hc-content--article-airbnb .hc-device-section-panel > *:last-child,
.hc-content--article-airbnb .hc-device-section-panel > *:last-child > *:last-child {
  margin-bottom: 0 !important;
}

.hc-content--article-airbnb .hc-device-section:first-of-type {
  margin-top: 0 !important;
}

/* Keep pre-feedback spacing consistent across legal/policy/how-to articles:
   remove trailing bottom margin from the final content block. */
.hc-content--article-airbnb .hc-article-content > *:last-child,
.hc-content--article-airbnb .hc-article-content > *:last-child > *:last-child {
  margin-bottom: 0 !important;
}

.hc-content--article-airbnb .hc-feedback {
  margin-top: 44px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  padding-bottom: 48px !important;
  border-bottom: 1px solid #dddddd !important;
}

.hc-content--article-airbnb #hc-feedback-state-initial {
  margin-bottom: 16px !important;
}

.hc-content--article-airbnb .hc-feedback-btn {
  font-size: 14px !important;
  line-height: 20.02px !important;
  font-weight: 400 !important;
}

.hc-content--article-airbnb .hc-related {
  margin-top: 48px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.hc-content--article-airbnb .hc-related-title {
  margin: 0 0 16px !important;
  font-size: 22px !important;
  line-height: 26px !important;
  font-weight: 500 !important;
}

@media (max-width: 640px) {
  .hc-content--article-airbnb .hc-article-intro,
  .hc-content--article-airbnb .ns-intro,
  .hc-content--article-airbnb .ns-intro-muted,
  .hc-content--article-airbnb .ns-section p,
  .hc-content--article-airbnb .ns-question-block p {
    font-size: 15px;
    line-height: 22px;
  }

  .hc-content--article-airbnb .hc-article-content {
    font-size: 16px;
    line-height: 24px;
  }

  .hc-content--article-airbnb .hc-article-content p {
    font-size: 15px;
    line-height: 22px;
  }

  .hc-content--article-airbnb .hc-related-card-summary,
  .hc-content--article-airbnb .ns-related-item > p:not(.ns-related-meta) {
    font-size: 13px;
    line-height: 18px;
  }
}


/* ============================================
 * HEADER SECTION
 * ============================================ */

.hc-header {
  text-align: center;
  margin-bottom: var(--hc-space-2xl);
}

.hc-title {
  font-size: var(--hc-font-size-hero);
  font-weight: var(--hc-font-weight-medium);
  color: var(--hc-color-primary);
  margin-bottom: var(--hc-space-md);
  font-family: var(--hc-font-family-cereal);
  line-height: var(--hc-line-height-hero);
  letter-spacing: -0.96px; /* LoveForm's tight letter spacing */
}

.hc-subtitle {
  font-size: var(--hc-font-size-h3);
  color: var(--hc-color-secondary);
  margin-bottom: var(--hc-space-xl);
  font-weight: var(--hc-font-weight-normal);
  line-height: var(--hc-line-height-base);
}


/* ============================================
 * SEARCH BOX
 * ============================================ */

.hc-search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto var(--hc-space-2xl);
  z-index: 20;
}

/* Home hero spacing parity: keep title -> search gap at 22px on desktop/tablet */
@media (min-width: 744px) {
  body#help:has([data-help-search-box="hero"]) .hc-header {
    margin-bottom: 22px !important;
  }
}

/* Desktop/tablet: add 22px extra space below hero search */
@media (min-width: 744px) {
  .hc-search-box:not(.hc-search-box--nav) {
    margin-top: 6px;
    margin-bottom: 78px !important;
  }

  .hc-search-box:not(.hc-search-box--nav) .hc-search-input-wrapper {
    height: 72px !important;
    min-height: 72px !important;
  }

  .hc-search-box:not(.hc-search-box--nav) .hc-search-input {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

.hc-search-form {
  margin: 0;
}

.hc-search-box--nav {
  max-width: 640px;
  width: 100%;
  margin: 0 0 var(--hc-space-xl);
  /* BUG-154: Pill search bar sizing - Match resource center/Airbnb (64px) */
  --hc-search-height: 64px;
  --hc-search-padding-vertical: 14px;
  --hc-search-padding-left: 24px;
  --hc-search-padding-right: 70px;  /* Room for 48px button + padding */
}

.hc-search-box--nav .hc-search-input-wrapper {
  --hc-submit-width: 30px;
  --hc-clear-offset: 44px;
  --hc-input-padding-right: 72px;
  --hc-clear-button-size: 20px;
  height: 50px;
  min-height: 50px;
  align-items: stretch;
}

.hc-search-box--nav .hc-search-button {
  width: 30px;
  height: 30px;
  right: 10px;
}

.hc-search-box--nav .hc-search-button svg {
  width: 14px;
  height: 14px;
}

.hc-search-box--nav .hc-search-input-wrapper.is-active {
  /* /help/* header search should stay icon-only (Airbnb behavior) */
  --hc-submit-width: 30px;
  --hc-clear-offset: 44px;
  --hc-input-padding-right: 72px;
  --hc-clear-button-size: 20px;
}

.hc-search-box--nav .hc-search-input-wrapper.is-active .hc-search-button {
  border-radius: 999px;
}

/* Keep nav search button icon-only even when active */
.hc-search-box--nav .hc-search-button-label {
  display: none !important;
}

.hc-search-box--nav .hc-search-input {
  padding-top: 14px;
  padding-bottom: 14px;
}

.hc-search-box--nav .hc-search-input-wrapper .modern-validation-field {
  height: 100%;
  display: flex;
  align-items: stretch;
}

/* BUG-154 FIX: Pill-shaped search bar like Airbnb/Resource Center */
.hc-search-input-wrapper {
  --hc-submit-width: 48px;
  --hc-clear-offset: 66px;
  --hc-input-padding-right: 86px;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;                                 /* Explicit 64px height */
  min-height: 64px;                             /* Prevent shrinking */
  background: rgb(247, 247, 247);               /* Light gray pill background */
  border: 1px solid rgb(221, 221, 221);         /* Subtle border all around */
  border-radius: 100px;                         /* Full pill shape */
  box-shadow: none;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.hc-search-input-wrapper:hover {
  border-color: rgb(176, 176, 176);  /* Darker border on hover */
}

.hc-search-input-wrapper.is-active {
  --hc-submit-width: 116px;
  --hc-clear-offset: 128px;
  --hc-input-padding-right: 152px;
}

/* Fix: Validation wrapper must expand in flex container */
.hc-search-input-wrapper .modern-validation-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0; /* Override default 1rem margin */
}

.hc-search-input {
  width: 100%;
  flex: 1; /* Fill available space in flex container */
  box-sizing: border-box; /* Include padding in width calculation */
  padding: var(--hc-search-padding-vertical) var(--hc-input-padding-right) var(--hc-search-padding-vertical) var(--hc-search-padding-left);
  font-size: var(--hc-search-font-size);
  font-weight: 500;
  line-height: 20px; /* Match LoveForm's line-height */
  border: none;
  border-radius: var(--hc-search-border-radius);
  outline: none;
  transition: box-shadow var(--hc-transition-base);
  background: transparent;
  color: var(--hc-color-primary);
  font-family: var(--hc-font-family-cereal);
  height: 100%;
  /* Ensure text renders above absolutely positioned button */
  position: relative;
  z-index: 1;
}

.hc-search-input::placeholder {
  color: #222;
  font-weight: 500;  /* LoveForm exact - now using Cereal font */
}

.hc-search-input:focus {
  box-shadow: none;
}

.hc-search-input-wrapper.is-active,
.hc-search-input-wrapper:focus-within {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hc-search-icon {
  display: none; /* Hide icon to match LoveForm's clean design */
  position: absolute;
  left: 10px;
  width: 20px;
  height: 20px;
  color: var(--hc-color-secondary);
  pointer-events: none;
}

.hc-search-button {
  position: absolute;
  right: 9px;  /* Match resource center positioning */
  top: 50%;
  transform: translateY(-50%);
  width: var(--hc-submit-width);
  height: 48px;
  border-radius: 999px;
  background: rgb(0, 166, 172);  /* Solid teal like resource center */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: width 0.16s ease-out, border-radius 0.16s ease-out, background-color 0.2s ease-out, padding 0.16s ease-out;
  padding: 0;
  z-index: 2; /* Above input text but clickable */
}

.hc-search-button:hover {
  background: rgb(0, 176, 181);  /* Lighter teal on hover */
}

.hc-search-button svg {
  width: 22px;  /* Proportional icon for 48px button */
  height: 22px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.hc-search-button-label {
  display: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.hc-search-input-wrapper.is-active .hc-search-button-label {
  display: inline;
}

.hc-search-clear {
  position: absolute;
  right: var(--hc-clear-offset);
  top: 50%;
  transform: translateY(-50%);
  width: var(--hc-clear-button-size);
  height: var(--hc-clear-button-size);
  border-radius: var(--hc-radius-circle);
  background: var(--hc-color-clear-button);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--hc-transition-base);
  padding: 0;
  z-index: 3;
}

.hc-search-clear.is-visible {
  display: flex;
}

.hc-search-clear:hover {
  background: var(--hc-color-clear-button-hover);
}

.hc-search-clear svg {
  width: 12px;
  height: 12px;
  stroke: var(--hc-color-primary);
  stroke-width: 2;
}

/* ============================================
 * MOBILE SEARCH BUTTON (LoveForm-style)
 * Replaces desktop search input on small screens
 * ============================================ */

.hc-search-mobile-button {
  display: none; /* Hidden on desktop by default */
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: var(--hc-bg-secondary); /* rgb(247, 247, 247) */
  border: 1px solid var(--hc-border-base); /* rgb(221, 221, 221) */
  border-radius: 24px;
  cursor: pointer;
  align-items: center;
  justify-content: center; /* Center content like LoveForm */
  gap: 8px;
  transition: box-shadow var(--hc-transition-base);
}

.hc-search-mobile-button:hover {
  box-shadow: var(--hc-shadow-sm);
}

.hc-search-mobile-button:active {
  background: var(--hc-bg-tertiary);
}

.hc-search-mobile-icon {
  width: 18px;
  height: 18px;
  color: rgb(0, 132, 137); /* Buggy brand teal */
  flex-shrink: 0;
  stroke-width: 2.5;
}

.hc-search-mobile-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--hc-color-primary); /* #222 - dark text like LoveForm */
  line-height: 1;
}

.hc-search-inline-back {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #222;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hc-search-inline-back svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.hc-mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1100;
  padding: 14px 16px 0;
  display: none;
}

.hc-mobile-search-overlay.is-open {
  display: block;
}

.hc-mobile-search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-mobile-search-overlay .hc-search-inline-back {
  display: flex;
}

.hc-search-input-wrapper--mobile {
  flex: 1;
  height: 42px;
  min-height: 42px;
  --hc-clear-offset: 12px;
  --hc-input-padding-right: 48px;
}

.hc-search-input--mobile {
  padding-top: 10px;
  padding-bottom: 10px;
}

.hc-mobile-search-overlay .hc-search-button,
.hc-mobile-search-overlay .hc-search-button-label {
  display: none !important;
}

.hc-mobile-search-overlay .hc-search-clear {
  right: 10px;
}

.hc-search-panel--mobile {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 10px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.hc-mobile-search-open {
  overflow: hidden;
}


/* ============================================
 * NAVBAR SEARCH (Help Layout)
 * Search bar positioned in navbar for /help/* pages
 * Hidden on homepage (has its own prominent search)
 * ============================================ */

/* Base navbar search box - hidden by default on all pages */
.navbar .hc-search-box--nav {
  display: none;
}

/* Show navbar search on help pages (except homepage with hero) */
body#help .navbar .hc-search-box--nav {
  display: block;
  flex: 0 0 auto;
  max-width: 440px;
  width: 380px;  /* BUG-154: Wider for 64px tall pill design */
  margin: 0 26px;
}

/* Hide navbar search on /help homepage (has hero section with its own search) */
body#help:has(.hc-hero-section) .navbar .hc-search-box--nav {
  display: none !important;
}

/* Responsive: Hide form on mobile/tablet (use mobile search button instead) */
@media (max-width: 769px) {
  body#help .navbar .hc-search-box--nav .hc-search-form {
    display: none;
  }
  body#help .navbar .hc-search-box--nav .hc-search-mobile-button {
    display: flex;
  }
}

/* Desktop: Hide mobile button, show form */
@media (min-width: 770px) {
  body#help .navbar .hc-search-box--nav .hc-search-mobile-button {
    display: none;
  }
  body#help .navbar .hc-search-box--nav .hc-search-form {
    display: block;
  }
}


/* ============================================
 * NAVBAR RESOURCE TABS (Resource Pages)
 * Airbnb-style icon-over-text tabs with generous spacing
 * ============================================ */

.navbar-resource-tabs {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  /* Hidden by default - shown via JavaScript on /resources pages */
  gap: 0;  /* Let container handle gaps */
  flex: 1;
  justify-content: center;
  min-width: 0;
  --navbar-tabs-offset: 0;  /* Reset for centered tabs */
}

/* Tab container - Airbnb-style with generous spacing */
.navbar-tabs-container {
  display: flex;
  gap: 32px;  /* Airbnb uses ~32-60px spacing between tabs */
  align-items: flex-end;  /* Align to bottom for underline effect */
  justify-content: center;
  width: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;  /* Space for underline */
  /* Hide scrollbar on all browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar in Chrome/Safari */
.navbar-tabs-container::-webkit-scrollbar {
  display: none;
}

/* Airbnb-style navbar tab - icon over text, no borders */
.navbar-tab {
  /* Remove pill styling completely */
  border: none;
  border-radius: 0;
  background: transparent;

  /* Airbnb layout: icon above text, vertically stacked */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;  /* Push content to bottom so highlight bar aligns with nav */
  gap: 6px;  /* Space between icon and text */

  /* Sizing - extend to nav bottom so highlight sits on nav border */
  padding: 12px 4px 12px;  /* Space above and below content */
  min-width: 64px;
  height: 92px;  /* Match nav height exactly */
  box-sizing: border-box;

  /* Typography - Airbnb uses 14px for tabs */
  font-size: 14px;
  font-weight: 400;  /* Airbnb: 400 (lighter) */
  color: rgb(113, 113, 113);  /* Airbnb inactive gray */
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease-out;
}

/* Tab icon container */
.navbar-tab-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out;
}

.navbar-tab-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: stroke-width 0.15s ease-out;
}

/* Navbar tab hover state - Airbnb style */
.navbar-tab:hover {
  color: rgb(34, 34, 34);  /* Darker on hover */
  background: transparent;
}

/* Navbar tab active state - Airbnb underline style */
.navbar-tab.is-active {
  color: rgb(34, 34, 34);  /* Black text when active */
  font-weight: 600;  /* Slightly bolder when active */
  background: transparent;
  /* Remove any border/outline - only bottom bar indicator */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Icon pops when active - Airbnb pattern */
.navbar-tab.is-active .navbar-tab-icon {
  transform: scale(1.08);  /* Slightly larger */
}

.navbar-tab.is-active .navbar-tab-icon svg {
  stroke-width: 2.2;  /* Bolder stroke when active */
}

/* Airbnb-style underline for active tab - ONLY bottom bar */
.navbar-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;  /* Airbnb measured: 3px thick */
  background: rgb(34, 34, 34);  /* Black underline like Airbnb */
  border-radius: 2px 2px 0 0;  /* Rounded top corners, flat bottom (sits on nav border) */
}

/* Navbar tab active hover state */
.navbar-tab.is-active:hover {
  color: rgb(34, 34, 34);
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Navbar tab focus state for accessibility */
.navbar-tab:focus {
  outline: none;
  /* Remove box-shadow border - only bottom bar indicates selection */
}

.navbar-tab:focus-visible {
  /* Subtle focus indicator for keyboard navigation only */
  outline: 2px solid rgba(34, 34, 34, 0.3);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
 * MOBILE TABS - Separate component (Airbnb pattern)
 * Text-only tabs for clean mobile layout
 * ============================================ */

/* Mobile tabs container - full width second row */
.navbar-resource-tabs-mobile {
  display: none;  /* Hidden by default, shown via JS on /resources pages */
  width: 100%;
  background: #fff;
  padding: 0;
}

.navbar-tabs-container-mobile {
  display: flex;
  gap: 32px;  /* Minimum gap between tabs */
  padding: 0;  /* Parent structure provides 24px offset, matching logo */
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;  /* Fill parent container */
  justify-content: space-between;  /* Spread tabs: first aligns with logo, last aligns with hamburger */
}

.navbar-tabs-container-mobile::-webkit-scrollbar {
  display: none;
}

/* Mobile tab - text-only like Airbnb */
.navbar-tab-mobile {
  display: flex;
  align-items: center;  /* Vertically center icon with text */
  gap: 8px;  /* Airbnb-style spacing between icon and text */
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgb(113, 113, 113);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: color 0.15s ease-out;
  line-height: 1;  /* Tight line height for better vertical alignment */
}

.navbar-tab-mobile:hover {
  color: rgb(34, 34, 34);
}

/* Mobile tab icon - hidden by default, shown only on active tab (Airbnb pattern) */
.navbar-tab-mobile-icon {
  display: none;  /* Hidden by default */
  width: 18px;  /* Match Airbnb's icon size */
  height: 18px;
  flex-shrink: 0;
  line-height: 0;  /* Remove any line-height influence */
}

.navbar-tab-mobile-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;  /* Slightly thicker strokes for visibility at small size */
  vertical-align: middle;
}

/* Show icon only on active tab */
.navbar-tab-mobile.is-active .navbar-tab-mobile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile tab active state */
.navbar-tab-mobile.is-active {
  color: rgb(34, 34, 34);
}

.navbar-tab-mobile.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgb(34, 34, 34);
  border-radius: 1px;
}

/* Responsive: Show/hide appropriate tab version */
/* Mobile + iPad Mini/Air use mobile tabs (icons on side, below navbar) */
@media (max-width: 820px) {
  /* Hide desktop tabs on mobile and iPad Mini/Air */
  .navbar-resource-tabs--desktop {
    display: none !important;
  }

  /* Allow navbar to have auto height */
  body#help .navbar.fixed-top {
    height: auto !important;
    max-height: none !important;
  }

  /* Make container-fluid wrap so mobile tabs can be on second row */
  body#help .navbar .container-fluid {
    flex-wrap: wrap !important;
    height: auto !important;
    max-height: none !important;
    padding-bottom: 0 !important;
  }

  /* Mobile tabs: force to second row by taking full width */
  .navbar-resource-tabs-mobile {
    flex: 0 0 100% !important;  /* Take full width, don't grow/shrink */
    order: 99 !important;  /* Push to end (second row) */
    margin: 0 !important;
    border-top: none !important;
    border-bottom: 1px solid #EBEBEB !important;  /* Airbnb: border below tabs */
  }

  /* Show mobile tabs when JS enables them */
  .navbar-resource-tabs-mobile[style*="flex"],
  .navbar-resource-tabs-mobile[style*="block"] {
    display: flex !important;
  }
}

@media (min-width: 821px) {
  /* Hide mobile tabs on larger tablets and desktop (821px+) */
  .navbar-resource-tabs-mobile {
    display: none !important;
  }
}

/* iPad Mini/Air: Tighter mobile tabs spacing (744px - 820px) */
@media (min-width: 744px) and (max-width: 820px) {
  /* Mobile tabs container - Airbnb-matched spacing for iPad Mini/Air */
  .navbar-tabs-container-mobile {
    gap: 24px;  /* Airbnb-style spacing - not too tight, not too spread */
    justify-content: center;  /* Center tabs instead of space-between */
  }

  /* Mobile tabs - slightly smaller for iPad Mini/Air */
  .navbar-tab-mobile {
    font-size: 13px;
    padding: 14px 0;
  }

  /* Mobile tab icons - slightly smaller */
  .navbar-tab-mobile-icon {
    width: 16px;
    height: 16px;
  }

  .navbar-tab-mobile-icon svg {
    width: 16px;
    height: 16px;
  }
}


/* ============================================
 * SEARCH PANEL (Desktop + Mobile Inline)
 * ============================================ */

.hc-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  border: 1px solid #ebebeb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 40;
}

.hc-search-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hc-search-panel-title {
  padding: 18px 18px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.hc-search-panel-list {
  display: flex;
  flex-direction: column;
}

.hc-search-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid #f2f2f2;
  transition: background-color 0.16s ease-out;
}

.hc-search-panel-item:first-child {
  border-top: none;
}

.hc-search-panel-item:hover,
.hc-search-panel-item.is-key-selected {
  background: #f7f7f7;
}

.hc-search-panel-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #717171;
  flex-shrink: 0;
}

.hc-search-panel-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.hc-search-panel-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.hc-search-panel-item-text {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  line-height: 22px;
}

.hc-search-panel-item-meta {
  font-size: 13px;
  color: #717171;
  line-height: 18px;
}

.hc-search-panel-empty {
  padding: 16px 18px 18px;
  font-size: 15px;
  color: #717171;
}


/* ============================================
 * TOP ARTICLES SECTION
 * ============================================ */

.hc-top-articles {
  margin-top: var(--hc-space-2xl);
}

.hc-section-title {
  font-size: var(--hc-font-size-h2);
  font-weight: var(--hc-font-weight-semibold);
  color: var(--hc-color-primary);
  margin-bottom: var(--hc-space-lg);
  font-family: var(--hc-font-family-cereal);
}

/* Override K12 carousel padding for help center guides grid */
.hc-container .cards-container {
  padding: 0 !important;
  overflow: visible !important;
}

.hc-top-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--hc-space-lg);
}

.hc-top-article-card {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-md);
  padding: 20px;
  background: var(--hc-bg-primary);
  border: var(--hc-border-width-thin) solid var(--hc-border-base);
  border-radius: var(--hc-radius-md);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--hc-transition-base), transform var(--hc-transition-base);
}

.hc-top-article-card:hover {
  box-shadow: var(--hc-shadow-md);
  transform: translateY(-2px);
}

.hc-article-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--hc-radius-base);
  background: var(--hc-bg-tertiary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-article-icon svg {
  width: 24px;
  height: 24px;
  color: var(--hc-color-secondary);
}

.hc-top-article-text {
  flex: 1;
  min-width: 0;
}

.hc-top-article-title {
  font-size: var(--hc-font-size-base);
  font-weight: var(--hc-font-weight-medium);
  color: var(--hc-color-primary);
  line-height: var(--hc-line-height-base);
  margin-bottom: 4px;
}

.hc-top-article-category {
  font-size: var(--hc-font-size-xs);
  color: var(--hc-color-secondary);
}


/* ============================================
 * ARTICLE PAGE
 * ============================================ */

.hc-article-container {
  max-width: var(--hc-container-max-width);
  margin: 0 auto;
  padding: var(--hc-container-padding-desktop) var(--hc-container-padding-mobile);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--hc-space-2xl);
}

.hc-article-main {
  min-width: 0; /* Prevent grid overflow */
  width: 100%;
  max-width: var(--hc-article-readable-max-width, 632px);
  justify-self: start;
}

.hc-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}

/* Shared right-rail baseline (article + neighborhood support) */
.hc-article-sidebar,
.ns-article-sidebar {
  position: sticky;
  top: 24px;
  height: fit-content;
  align-self: start;
}

/* Keep right-rail CTA aligned with the primary article copy stack */
.hc-content--article-airbnb .hc-article-sidebar,
.hc-content--with-breadcrumb.neighborhood-support-page .ns-article-sidebar {
  margin-top: 20px;
}

.hc-sidebar-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 24px;
}

.hc-sidebar-title {
  margin: 0 0 16px;
  color: #222222;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.hc-sidebar-text {
  margin: 0 0 20px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 21px;
}

.hc-sidebar-btn {
  display: block;
  width: 100%;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hc-sidebar-btn:hover {
  background: #f7f7f7;
  color: #1a1a1a;
}

.hc-sidebar-btn-primary {
  display: block;
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  background: #008489;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.hc-sidebar-btn-primary:hover {
  background: #006c70;
  color: #ffffff;
  transform: scale(1.01);
}

.hc-sidebar-btn-primary:active {
  transform: scale(0.99);
}

.hc-sidebar-link {
  display: block;
  margin-top: 16px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 20px;
}

.hc-sidebar-link a {
  color: #1a1a1a;
  text-decoration: underline;
}

.hc-article-header {
  margin-bottom: var(--hc-space-xl);
}

.hc-article-title {
  font-size: var(--hc-font-size-hero);
  font-weight: var(--hc-font-weight-semibold);
  color: var(--hc-color-primary);
  margin-bottom: var(--hc-space-md);
  line-height: var(--hc-line-height-tight);
}

.hc-article-meta {
  display: flex;
  align-items: center;
  gap: var(--hc-space-md);
  font-size: var(--hc-font-size-small);
  color: var(--hc-color-secondary);
}

.hc-article-body {
  font-size: var(--hc-font-size-base);
  line-height: var(--hc-line-height-relaxed);
  color: var(--hc-color-primary);
}

.hc-article-body h2 {
  font-size: var(--hc-font-size-h2);
  font-weight: var(--hc-font-weight-semibold);
  color: var(--hc-color-primary);
  margin-top: var(--hc-space-xl);
  margin-bottom: var(--hc-space-md);
}

.hc-article-body h3 {
  font-size: var(--hc-font-size-h3);
  font-weight: var(--hc-font-weight-medium);
  color: var(--hc-color-primary);
  margin-top: var(--hc-space-lg);
  margin-bottom: var(--hc-space-sm);
}

.hc-article-body p {
  margin-bottom: var(--hc-space-md);
}

.hc-article-body ul,
.hc-article-body ol {
  margin-bottom: var(--hc-space-md);
  padding-left: var(--hc-space-lg);
}

.hc-article-body li {
  margin-bottom: var(--hc-space-sm);
}

.hc-article-body a {
  color: var(--hc-color-primary);
  text-decoration: underline;
  transition: color var(--hc-transition-fast);
}

.hc-article-body a:hover {
  color: var(--hc-color-secondary);
}

.hc-article-body code {
  background: var(--hc-bg-secondary);
  padding: 2px 6px;
  border-radius: var(--hc-radius-sm);
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.hc-article-body pre {
  background: var(--hc-bg-secondary);
  padding: var(--hc-space-md);
  border-radius: var(--hc-radius-base);
  overflow-x: auto;
  margin-bottom: var(--hc-space-md);
}


/* ============================================
 * FEEDBACK SECTION
 * ============================================ */

/* LoveForm-style: Question and buttons ALL on one line, left-aligned */
.hc-feedback {
  margin-top: var(--hc-space-2xl);
  padding-top: var(--hc-space-xl);
  border-top: var(--hc-border-width-thin) solid var(--hc-border-light);
}

/* Inline layout: "Did this article help? Yes No" all on one line */
#hc-feedback-state-initial {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-feedback-question {
  font-size: 16px;
  font-weight: 400;
  color: var(--hc-color-primary);
  margin: 0;
  text-align: left;
}

.hc-feedback-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

/* LoveForm-style: Simple underlined text links, not pill buttons */
.hc-feedback-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--hc-color-primary);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.hc-feedback-btn:hover {
  color: var(--hc-color-secondary);
}

/* Legacy button class (if still used elsewhere) */
.hc-feedback-button {
  padding: var(--hc-space-md) var(--hc-space-xl);
  font-size: var(--hc-font-size-base);
  font-weight: var(--hc-font-weight-medium);
  border: var(--hc-border-width-base) solid var(--hc-border-base);
  border-radius: var(--hc-radius-full);
  background: var(--hc-bg-primary);
  color: var(--hc-color-primary);
  cursor: pointer;
  transition: all var(--hc-transition-base);
}

.hc-feedback-button:hover {
  border-color: var(--hc-color-primary);
  background: var(--hc-bg-secondary);
}

.hc-feedback-button.is-selected {
  background: var(--hc-color-primary);
  color: var(--hc-bg-primary);
  border-color: var(--hc-color-primary);
}

.hc-feedback-thanks {
  font-size: var(--hc-font-size-base);
  color: var(--hc-color-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ============================================
 * RELATED ARTICLES SIDEBAR
 * ============================================ */

.hc-related-articles {
  background: var(--hc-bg-secondary);
  padding: var(--hc-space-lg);
  border-radius: var(--hc-radius-md);
}

.hc-related-title {
  font-size: 0.875rem; /* 14px - LoveForm spec */
  font-weight: var(--hc-font-weight-medium);
  color: #222222; /* LoveForm spec */
  margin-bottom: 8px; /* LoveForm spec */
  line-height: 1.125rem; /* 18px - LoveForm spec */
}

.hc-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px; /* LoveForm spec */
}

.hc-related-item {
  display: block;
  text-decoration: none;
  color: var(--hc-color-primary);
  font-size: var(--hc-font-size-small);
  font-weight: var(--hc-font-weight-normal);
  line-height: var(--hc-line-height-base);
  transition: color var(--hc-transition-fast);
}

.hc-related-item:hover {
  color: var(--hc-color-secondary);
}


/* ============================================
 * SEARCH RESULTS PAGE
 * ============================================ */

.hc-search-header {
  margin-bottom: var(--hc-space-xl);
}

.hc-search-query {
  font-size: var(--hc-font-size-h2);
  font-weight: var(--hc-font-weight-semibold);
  color: var(--hc-color-primary);
  margin-bottom: var(--hc-space-sm);
}

.hc-search-count {
  font-size: var(--hc-font-size-base);
  color: var(--hc-color-secondary);
}

.hc-device-tabs {
  display: flex;
  gap: var(--hc-space-sm);
  border-bottom: var(--hc-border-width-thin) solid var(--hc-border-light);
  margin-bottom: var(--hc-space-xl);
}

.hc-device-tab {
  padding: var(--hc-space-md) var(--hc-space-lg);
  font-size: var(--hc-font-size-base);
  font-weight: var(--hc-font-weight-medium);
  color: var(--hc-color-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--hc-transition-fast);
}

.hc-device-tab:hover {
  color: var(--hc-color-primary);
}

.hc-device-tab.is-active {
  color: var(--hc-color-primary);
  border-bottom-color: var(--hc-color-primary);
}

.hc-search-results {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-lg);
}

.hc-search-result {
  display: block;
  padding: var(--hc-space-lg);
  background: var(--hc-bg-primary);
  border: var(--hc-border-width-thin) solid var(--hc-border-base);
  border-radius: var(--hc-radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--hc-transition-base);
}

.hc-search-result:hover {
  box-shadow: var(--hc-shadow-base);
  border-color: var(--hc-border-dark);
}

.hc-result-title {
  font-size: var(--hc-font-size-h3);
  font-weight: var(--hc-font-weight-medium);
  color: var(--hc-color-primary);
  margin-bottom: var(--hc-space-sm);
}

.hc-result-snippet {
  font-size: var(--hc-font-size-base);
  color: var(--hc-color-secondary);
  line-height: var(--hc-line-height-base);
  margin-bottom: var(--hc-space-sm);
}

.hc-result-meta {
  font-size: var(--hc-font-size-small);
  color: var(--hc-color-tertiary);
}


/* ============================================
 * PAGINATION
 * ============================================ */

.hc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--hc-space-sm);
  margin-top: var(--hc-space-2xl);
}

.hc-pagination-button {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--hc-space-md);
  font-size: var(--hc-font-size-base);
  font-weight: var(--hc-font-weight-medium);
  color: var(--hc-color-primary);
  background: var(--hc-bg-primary);
  border: var(--hc-border-width-thin) solid var(--hc-border-base);
  border-radius: var(--hc-radius-base);
  cursor: pointer;
  transition: all var(--hc-transition-fast);
}

.hc-pagination-button:hover:not(:disabled) {
  background: var(--hc-bg-secondary);
  border-color: var(--hc-color-primary);
}

.hc-pagination-button.is-active {
  background: var(--hc-color-primary);
  color: var(--hc-bg-primary);
  border-color: var(--hc-color-primary);
}

.hc-pagination-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
 * HELP MODAL BACKDROPS
 * ============================================ */

.modal-backdrop.help-modal-backdrop {
  background-color: rgb(34, 34, 34);
}

.modal-backdrop.help-modal-backdrop.show {
  opacity: 0.18 !important;
}

body#help .hc-modal-overlay {
  background: rgba(34, 34, 34, 0.18) !important;
  backdrop-filter: blur(2px);
}


/* ============================================
 * LOADING STATES
 * ============================================ */

.hc-loading {
  text-align: center;
  padding: var(--hc-space-2xl);
  color: var(--hc-color-secondary);
  font-size: var(--hc-font-size-base);
}

.hc-skeleton {
  background: linear-gradient(
    90deg,
    var(--hc-bg-secondary) 25%,
    var(--hc-bg-tertiary) 50%,
    var(--hc-bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: hc-skeleton-loading 1.5s infinite;
  border-radius: var(--hc-radius-base);
}

@keyframes hc-skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.hc-skeleton-title {
  height: 32px;
  width: 60%;
  margin-bottom: var(--hc-space-md);
}

.hc-skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--hc-space-sm);
}

.hc-skeleton-text:last-child {
  width: 80%;
}

.hc-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--hc-border-base);
  border-top-color: var(--hc-color-primary);
  border-radius: 50%;
  animation: hc-spinner-rotate 0.8s linear infinite;
}

@keyframes hc-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}


/* ============================================
 * ERROR STATES
 * ============================================ */

.hc-error-state {
  text-align: center;
  padding: var(--hc-space-2xl);
  background: rgba(var(--hc-color-error), 0.05);
  border: var(--hc-border-width-thin) solid rgba(var(--hc-color-error), 0.2);
  border-radius: var(--hc-radius-md);
  margin: var(--hc-space-xl) 0;
}

.hc-error-title {
  font-size: var(--hc-font-size-h3);
  font-weight: var(--hc-font-weight-semibold);
  color: var(--hc-color-error);
  margin-bottom: var(--hc-space-sm);
}

.hc-error-message {
  font-size: var(--hc-font-size-base);
  color: var(--hc-color-secondary);
  margin-bottom: var(--hc-space-md);
}

.hc-error-button {
  padding: var(--hc-space-md) var(--hc-space-xl);
  font-size: var(--hc-font-size-base);
  font-weight: var(--hc-font-weight-medium);
  color: var(--hc-bg-primary);
  background: var(--hc-gradient-error);  /* Using Buggy teal gradient */
  border: none;
  border-radius: var(--hc-radius-full);
  cursor: pointer;
  transition: opacity var(--hc-transition-fast);
}

.hc-error-button:hover {
  opacity: 0.9;
}


/* ============================================
 * EMPTY STATES
 * ============================================ */

.hc-empty-state {
  text-align: center;
  padding: var(--hc-space-3xl) var(--hc-space-lg);
}

.hc-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--hc-space-lg);
  color: var(--hc-color-tertiary);
}

.hc-empty-title {
  font-size: var(--hc-font-size-h2);
  font-weight: var(--hc-font-weight-semibold);
  color: var(--hc-color-primary);
  margin-bottom: var(--hc-space-sm);
}

.hc-empty-message {
  font-size: var(--hc-font-size-base);
  color: var(--hc-color-secondary);
  margin-bottom: var(--hc-space-lg);
}


/* ============================================
 * RESPONSIVE DESIGN
 * ============================================ */

@media (max-width: 1024px) {
  .hc-article-container,
  .hc-article-layout {
    grid-template-columns: 1fr;
  }

  .hc-article-main {
    max-width: none;
  }

  .hc-article-sidebar,
  .ns-article-sidebar {
    position: static;
    margin-top: var(--hc-space-2xl);
  }

  .hc-content--article-airbnb .hc-article-sidebar,
  .hc-content--with-breadcrumb.neighborhood-support-page .ns-article-sidebar {
    order: -1;
    margin-top: 0;
    margin-bottom: 32px;
  }
}

/* ============================================
 * TABLET LAYOUT (744px - 1127px) - iPad Mini, iPad Pro, etc.
 * LoveForm uses tablet layout up to 1127px, desktop at 1128px+
 * Shows 2-column grids with mobile-style full-width CTA button
 * ============================================ */
@media (min-width: 744px) and (max-width: 1127px) {
  /* Hero heading - LoveForm uses 48px at tablet (larger than mobile) */
  .hc-title {
    font-size: 48px !important;           /* LoveForm: 48px at tablet */
    line-height: 56px !important;         /* LoveForm: 56px */
  }

  /* Top Articles - 2 column grid like LoveForm tablet */
  .hc-articles-grid,
  div.hc-articles-grid,
  .hc-articles-grid[style] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 32px !important;
    max-width: none !important;
  }

  /* Explore cards - 2 column grid */
  .hc-explore-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  .hc-explore-grid .hc-explore-card {
    width: 100% !important;
    aspect-ratio: 1.1 / 1 !important;  /* iPad Mini/Air: ~12% taller than LoveForm's 1.25 */
  }

  /* Show desktop guide cards, hide mobile list */
  .cards-container .school-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 24px !important;                 /* Row-gap: 0, Column-gap: 24px (card padding provides row spacing) */
  }

  .hc-guides-list-mobile {
    display: none !important;
  }

  /* Section heading wrapper - override inline margin to control gap */
  .tab-content > div:has(> .hc-section-heading) {
    margin-bottom: 0 !important;  /* Zero out wrapper's 24px inline margin */
  }

  /* Section headings - match LoveForm tablet typography */
  .hc-section-heading {
    font-size: 26px !important;           /* LoveForm: 26px */
    font-weight: 500 !important;          /* LoveForm: 500 */
    line-height: 30px !important;         /* LoveForm: 30px */
    letter-spacing: -0.52px !important;   /* LoveForm: -0.52px (tighter spacing) */
    margin-bottom: 32px !important;       /* LoveForm: 32px gap to first card */
  }

  /* Guide card titles - match Top Articles title typography (without underline) */
  .school-card-placeholder .school-name,
  .school-name {
    font-size: 18px !important;           /* Same as .hc-article-title */
    font-weight: 500 !important;          /* Same as .hc-article-title */
    line-height: 24px !important;         /* Same as .hc-article-title */
    text-decoration: none !important;     /* NO underline (unlike Top Articles) */
    margin: 12px 0 0 0 !important;        /* 12px from image, no bottom margin */
  }

  /* Card body - balanced padding for multi-line titles */
  .school-card-placeholder .card-body {
    padding: 0 0 24px 0 !important;       /* 24px bottom for 2-line titles + breathing room */
    height: auto !important;              /* Override K12 carousel's 52px fixed height */
    min-height: auto !important;          /* Let content determine height */
    overflow: visible !important;         /* Override K12 carousel's hidden overflow */
  }

  .hc-explore-heading {
    font-size: 32px !important;      /* LoveForm: 32px */
    font-weight: 500 !important;
    line-height: 36px !important;    /* LoveForm: 36px */
    margin: 80px 0 32px 0 !important; /* LoveForm: 80px above, 32px below to cards */
  }

  /* Footer spacing for tablet */
  footer {
    margin-top: 64px !important;
  }

  /* ============================================
   * iPad Mini LOGIN CTA - LoveForm Pattern
   * ============================================
   * AIRBNB BEHAVIOR (verified 2025-12-20):
   * - Below ~1128px: Full-width button ONLY, NO text
   * - iPad Mini shows same pattern as mobile for login CTA
   *
   * AIRBNB BUTTON SPECS (measured):
   * - Height: 48px
   * - Padding: 14px 24px
   * - Font: 16px / weight 600
   * - Border-radius: 8px
   * - Full-width within container
   *
   * This hides the desktop "We're here for you" card and
   * shows the full-width CTA button like mobile.
   * ============================================ */
  .hc-hero-section {
    display: none !important;
  }

  .hc-cta-mobile {
    display: block !important;
    margin: 0 0 48px 0;  /* LoveForm: 48px gap to "Guides for getting started" */
  }

  .hc-cta-mobile-btn {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 24px !important;
    background: linear-gradient(to right, #008489 0%, #00B0B5 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    line-height: 48px !important;
    text-decoration: none !important;
    transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  }

  .hc-cta-mobile-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white !important;
  }

  /* ============================================
   * iPad Mini CONTACT SECTION - LoveForm Pattern
   * ============================================
   * Show mobile-style contact section below explore cards
   * with slightly more spacing than mobile (56px vs 48px)
   * to match LoveForm's tablet spacing
   * ============================================ */
  .hc-contact-mobile {
    display: block !important;
    margin: 56px 0 0 0;  /* LoveForm tablet: ~56px top margin */
  }

  /* Hide inline contact box in explore grid on iPad Mini */
  .hc-explore-grid > div:last-child:not(.hc-explore-card) {
    display: none !important;
  }

  /* ============================================
   * Top Articles - iPad Mini/Air Spacing
   * ============================================
   * LoveForm iPad Mini: ~81px gap between articles
   * Fix: 40px padding each side = ~81px total gap
   * (iPad Pro overrides this to 48px in its own breakpoint)
   * ============================================ */
  .hc-article-item {
    padding: 40px 0 !important;  /* LoveForm iPad Mini: ~81px gap */
  }

  .hc-article-item:first-child {
    padding-top: 40px !important;
  }
}

/* ============================================
 * iPad Pro SPECIFIC OVERRIDES (1024px - 1127px)
 * ============================================
 * LoveForm uses different values for larger tablets:
 * - Explore cards: 1.75 ratio (wider) vs iPad Mini's 1.25
 * - Article gap: ~105px vs iPad Mini's ~81px
 * This breakpoint overrides the general tablet values above
 * ============================================ */
@media (min-width: 1024px) and (max-width: 1127px) {
  /* Explore cards - wider aspect ratio for iPad Pro */
  .hc-explore-grid .hc-explore-card {
    aspect-ratio: 1.6 / 1 !important;  /* LoveForm iPad Pro: 448×256 ≈ 1.75, we use 1.6 for ~10% taller */
  }

  /* Top Articles - larger spacing for iPad Pro */
  .hc-article-item {
    padding: 48px 0 !important;  /* LoveForm iPad Pro: ~105px gap */
  }

  .hc-article-item:first-child {
    padding-top: 48px !important;
  }
}

/* ============================================
 * DESKTOP-ONLY: Explore Section to Footer Spacing
 * ============================================
 * AIRBNB MEASUREMENT (2025-12-20):
 * - Desktop 1440px: 56px gap between Explore cards and footer
 * - Tablets already have proper spacing via footer margin-top
 *
 * Only applies to screens > 1127px (desktop)
 * ============================================ */
@media (min-width: 1128px) {
  .hc-title {
    font-size: calc(var(--hc-font-size-hero) + 2px);
    line-height: calc(var(--hc-line-height-hero) + 2px);
    margin-top: 2px;
    margin-bottom: calc(var(--hc-space-md) + 2px);
  }

  .hc-top-articles {
    margin-top: calc(var(--hc-space-2xl) - 12px);
  }

  .hc-explore-grid {
    margin-bottom: 56px; /* LoveForm: 56px gap to footer */
  }
}

/* ============================================
 * MOBILE SEARCH BREAKPOINT (≤769px)
 * LoveForm uses 770px as the breakpoint where search changes from
 * mobile button to desktop input. iPad Mini (768px) shows mobile search.
 * ============================================ */
@media (max-width: 769px) {
  /* Hide desktop search input wrapper, show mobile button */
  .hc-search-input-wrapper {
    display: none !important;
  }

  .hc-mobile-search-overlay .hc-search-input-wrapper--mobile {
    display: flex !important;
  }

  .hc-search-mobile-button {
    display: flex !important;
  }

  /* Hide keyboard shortcut on mobile/tablet search */
  .hc-search-shortcut {
    display: none !important;
  }
}

@media (max-width: 743px) {
  /* ============================================
   * MOBILE LAYOUT - Match LoveForm iPhone SE exactly
   * Applies to screens 743px and below
   *
   * REFERENCE: https://www.loveform.com/help (mobile view)
   *
   * KEY MOBILE PATTERNS (DO NOT CHANGE WITHOUT CHECKING AIRBNB):
   * ─────────────────────────────────────────────────────────────
   * 1. Top Articles: SINGLE COLUMN vertical list (NOT grid)
   *    - Use flex + column, NOT grid-template-columns
   *    - Each item has border-bottom divider
   *    - 18px font, 500 weight, 24px line-height
   *
   * 2. Guides Section: List view with icons + chevrons
   *    - Hide desktop image cards (.school-cards-grid)
   *    - Show mobile list (.hc-guides-list-mobile)
   *
   * 3. Explore More: Full-width stacked cards
   *    - Hide desktop grid (.hc-explore-grid)
   *    - Show mobile cards (.hc-explore-list-mobile)
   *
   * 4. Search: Mobile button replaces desktop input
   *    - Handled by 769px breakpoint above
   * ============================================ */

  /* CRITICAL: Prevent horizontal scroll on entire page */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Navbar - auto height on mobile to allow second row for tabs */
  .navbar.fixed-top {
    height: auto !important;
    max-height: none !important;
    min-height: 64px;  /* Minimum height when no tabs */
  }

  .navbar .container-fluid {
    height: auto !important;
    max-height: none !important;
    min-height: 64px;
  }

  /* Container - margin-top must match navbar height */
  .hc-container {
    padding: 0 24px;
    margin-top: 0;
    padding-top: 0; /* Remove extra top gap; Airbnb mobile sits tighter under nav */
  }

  /* Title - match LoveForm mobile size */
  .hc-title {
    font-size: 32px;
    line-height: 36px;
    margin-bottom: 16px;
    margin-top: 0;
  }

  /* Header - less margin on mobile */
  .hc-header {
    margin-bottom: 16px;
  }

  /* Search box - spacing to tabs matches LoveForm (86px) */
  .hc-search-box {
    margin-bottom: 56px !important;  /* Reduce oversized gap to match Airbnb mobile */
  }

  /* Help pages: hide combo/hamburger menu icon on mobile */
  body#help .navbar-toggler,
  body#help .help-combo-toggler {
    display: none !important;
  }

  /* Note: Search visibility (input-wrapper, mobile-button, shortcut) is now
     controlled by the 769px breakpoint above to ensure iPad Mini shows mobile search */

  .hc-search-input {
    padding: 14px var(--hc-search-padding-right) 14px 45px;
    font-size: 15px;
  }

  .hc-search-clear {
    right: var(--hc-clear-button-right);
    width: var(--hc-clear-button-size);
    height: var(--hc-clear-button-size);
  }

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

  /* ============================================
   * MOBILE TOP ARTICLES - Single Column List
   * ============================================
   * AIRBNB REFERENCE: https://www.loveform.com/help (scroll to "Top articles")
   *
   * LoveForm Mobile Pattern:
   * - Vertical list, NOT a grid
   * - Each article is full-width
   * - Title: 18px, weight 500
   * - Description: below title
   * - Separator: 1px border-bottom between items
   *
   * ⚠️  WARNING: DO NOT USE grid-template-columns HERE!
   *     On iPhone SE (375px), grid columns will make items
   *     too narrow and text unreadable. Always use flex column.
   * ============================================ */
  .hc-articles-grid {
    display: flex !important;              /* REQUIRED: Use flex for vertical stack */
    flex-direction: column !important;     /* REQUIRED: Stack items vertically */
    grid-template-columns: unset !important; /* REQUIRED: Remove any grid columns */
    gap: 0 !important;                     /* No gap - borders handle spacing */
  }

  .hc-article-container {
    padding: var(--hc-space-lg) var(--hc-space-md);
  }

  .hc-device-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hc-device-tab {
    white-space: nowrap;
  }

  /* Section headings - LoveForm mobile style (use !important to override desktop styles defined later) */
  .hc-section-heading {
    font-size: 26px !important;       /* LoveForm: 26px */
    font-weight: 500 !important;
    line-height: 30px !important;
    margin-bottom: 12px !important;   /* 12px + item's 20px padding = 32px total (matches LoveForm) */
  }

  .hc-explore-heading {
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 26px !important;
    letter-spacing: -0.44px !important;
    margin: 80px 0 24px 0 !important;  /* 80px top from border, 24px bottom to first card (matches LoveForm) */
  }

  /* ============================================
   * Top Articles Heading - AIRBNB SPACING FIX
   * ============================================
   * AIRBNB MEASUREMENT (375px mobile):
   * - Gap from heading to first article container: 32px
   * - First article padding-top: 24px
   * - TOTAL gap from heading to text: 56px
   *
   * OUR IMPLEMENTATION:
   * - margin-bottom: 32px (this value)
   * - First article padding-top: 24px (in .hc-articles-grid > div)
   * - TOTAL: 32px + 24px = 56px ✅
   *
   * ⚠️ WARNING: Must use !important because desktop style
   *    at line ~1613 comes AFTER this media query in cascade
   * ============================================ */
  .hc-top-articles-heading {
    font-size: 22px !important;
    line-height: 26px !important;
    margin: 32px 0 24px 0 !important;  /* 24px bottom + 32px padding = 56px total (LoveForm match) */
  }

  /* ============================================
   * MOBILE ARTICLE ITEMS - LoveForm Pattern
   * ============================================
   * AIRBNB MEASUREMENTS (768px iPad Mini - verified 2025-12-20):
   * - Title: 18px, weight 500, line-height 24px
   * - Description: 16px, weight 400, line-height 24px, color #6A6A6A
   * - Padding: 24px top, 24px bottom
   * - Border: 1px solid #DDDDDD
   * ============================================ */
  .hc-article-item {
    padding: 32px 0 !important;  /* Increased from 24px to match LoveForm's 133px title-to-title gap */
    border-bottom: 1px solid #DDDDDD !important;
  }

  .hc-article-item:first-child {
    padding-top: 32px !important;  /* Mobile: ALL items have top padding */
  }

  .hc-article-title {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    margin: 0 0 8px 0 !important;
  }

  .hc-article-title a {
    font-weight: 500 !important;
    color: #222222 !important;
    text-decoration: underline !important;
  }

  .hc-article-description {
    font-size: 16px !important;      /* LoveForm: 16px (was 14px) */
    font-weight: 400 !important;
    line-height: 24px !important;    /* LoveForm: 24px (was 20px) */
    color: #6A6A6A !important;       /* LoveForm: rgb(106,106,106) = #6A6A6A */
    margin: 0 !important;
    /* LoveForm-style 2-line truncation - matches their description height */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Legacy support - in case old h3 selectors are still used */
  .hc-articles-grid h3 {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    margin: 0 0 8px 0 !important;
  }

  .hc-articles-grid h3 a {
    font-weight: 500 !important;
  }

  /* Legacy selector - now handled by .hc-article-item class */
  /* .hc-articles-grid > div - REMOVED to prevent conflict with .hc-article-item */

  /* Explore cards - full width stacked on mobile */
  .hc-explore-card {
    width: 100% !important;
    aspect-ratio: 1.5 / 1 !important;
  }

  /* Footer spacing - LoveForm has 314px gap from last content to footer */
  footer {
    margin-top: 92px !important;  /* Increased from 50px to match LoveForm's 314px gap */
  }

  /* Guide card images - HIDE on mobile (use list instead) */
  .school-card-placeholder .card-image {
    height: 200px;
  }

  /* Hide desktop image cards on mobile */
  .cards-container .school-cards-grid {
    display: none !important;
  }

  /* Show mobile list view */
  .hc-guides-list-mobile {
    display: block !important;
  }

  /* Hide "Browse all topics" link on mobile (it's in the list) */
  .hc-browse-link {
    display: none;
  }

  /* ============================================
   * MOBILE CTA BUTTON (LoveForm Style)
   * Full-width button, no card/title/description
   * ============================================ */

  /* Hide desktop "We're here for you" card on mobile */
  .hc-hero-section {
    display: none !important;
  }

  /* Show mobile full-width CTA button */
  .hc-cta-mobile {
    display: block !important;
    margin: 0 0 32px 0;
  }

  .hc-cta-mobile-btn {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(to right, #008489 0%, #00B0B5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    line-height: 48px;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
  }

  .hc-cta-mobile-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .hc-cta-mobile-btn:active {
    transform: scale(0.99);
  }

  /* Show mobile contact section */
  .hc-contact-mobile {
    display: block !important;
    margin: 48px 0;
  }
}

@media (min-width: 744px) {
  body#help .navbar.fixed-top > .container-fluid {
    padding-left: 69px;
    padding-right: 44px;
  }
}

/* ============================================
 * MOBILE CONTACT SECTION (LoveForm Style)
 * ============================================ */

/* Hidden by default on desktop */
.hc-contact-mobile {
  display: none;
}

.hc-contact-mobile-title {
  font-size: 22px;  /* LoveForm: 22px */
  font-weight: 500; /* LoveForm: 500 */
  line-height: 26px;
  color: #222;
  margin: 0 0 8px 0;  /* LoveForm: margin-bottom 8px */
}

.hc-contact-mobile-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;  /* LoveForm: 20px */
  color: #222;
  margin: 0 0 8px 0;  /* LoveForm: margin-bottom 8px */
}

.hc-contact-mobile-btn {
  display: block;
  width: 100%;           /* Full width to match container */
  max-width: 300px;      /* LoveForm: 300px max */
  height: 48px;          /* LoveForm: 48px */
  padding: 0 24px;
  border: 1px solid #222;
  background: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;      /* LoveForm: 500 */
  line-height: 48px;
  color: #222;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin: 16px 0;        /* LoveForm spacing */
  transition: background 0.15s ease;
}

.hc-contact-mobile-btn:hover {
  background: #f7f7f7;
}

.hc-contact-mobile-feedback {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #222;
  text-align: left;
}

.hc-contact-mobile-feedback a {
  color: #222;
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================
 * MOBILE GUIDES LIST (LoveForm Style)
 * ============================================ */

/* Hidden by default on desktop */
.hc-guides-list-mobile {
  display: none;
}

/* Mobile list item styling */
.hc-guide-list-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #EBEBEB;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

/* Removed: .hc-guide-list-item:first-child border-top - LoveForm has no line above first item */

/* No line below "Browse all topics" - matches LoveForm */
.hc-guide-list-item:last-child {
  border-bottom: none;
}

.hc-guide-list-item:hover {
  background-color: #F7F7F7;
}

.hc-guide-list-item:active {
  background-color: #EBEBEB;
}

/* Icon container */
.hc-guide-icon {
  width: 32px;
  height: 32px;
  margin-right: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-guide-icon svg {
  width: 24px;
  height: 24px;
  color: #222;
}

/* Ensure all inline SVG primitives in guide icons render consistently */
.hc-guide-icon svg path,
.hc-guide-icon svg polyline,
.hc-guide-icon svg line,
.hc-guide-icon svg circle,
.hc-guide-icon svg rect,
.hc-guide-icon svg polygon {
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  fill: none !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Title text - align with top-article heading typography */
.hc-guide-title {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #222;
  text-decoration: none !important;
}

/* Chevron arrow - LoveForm "Browse all topics": #222, stroke-width 4px at 16px */
.hc-guide-chevron {
  width: 16px;
  height: 16px;
  margin-left: 16px;
  flex-shrink: 0;
  color: #222;        /* LoveForm: rgb(34, 34, 34) - much darker than #717171 */
}

.hc-guide-chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 3;    /* Thick stroke like LoveForm (4px at 16px display) */
  fill: none;
}


/* ============================================
 * MOBILE EXPLORE MORE CARDS (LoveForm Style)
 * Full-width cards with image left, dark overlay text right
 * ============================================ */

/* Hidden by default on desktop */
.hc-explore-list-mobile {
  display: none;
}

/* Mobile full-width card with image overlay */
.hc-explore-card-mobile {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 16px;
  height: 100px;  /* LoveForm: 100px */
  background: #222;
}

.hc-explore-card-mobile:last-child {
  margin-bottom: 0;
}

/* Image section - left ~30% (LoveForm: 29.4%) */
.hc-explore-thumb {
  width: 30%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.hc-explore-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text content - right ~55% with dark background */
.hc-explore-content {
  flex: 1;
  min-width: 0;
  background: linear-gradient(90deg, rgba(34, 34, 34, 0.85) 0%, rgba(34, 34, 34, 0.95) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hc-explore-card-title {
  font-size: 14px;  /* LoveForm: 14px */
  font-weight: 400; /* LoveForm: 400 */
  line-height: 20px;
  color: #fff;
  margin: 0 0 4px 0;
}

.hc-explore-card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Show mobile explore on mobile (≤743px), hide desktop */
@media (max-width: 743px) {
  /* Hide desktop explore grid */
  .hc-explore-grid {
    display: none !important;
  }

  /* Show mobile explore list */
  .hc-explore-list-mobile {
    display: block !important;
  }
}


/* ============================================
 * ACCESSIBILITY
 * ============================================ */

/* Focus Styles */
.hc-search-input:focus-visible,
.hc-feedback-button:focus-visible,
.hc-device-tab:focus-visible,
.hc-pagination-button:focus-visible {
  outline: 3px solid rgba(34, 34, 34, 0.25);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .hc-search-input,
  .hc-feedback-button,
  .hc-top-article-card {
    border-width: var(--hc-border-width-base);
  }
}

/* Skip Link for Screen Readers - Visually hidden until focused (WCAG 2.4.1) */
.hc-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  /* Styling for when focused (visible) */
  background: var(--hc-color-primary);
  color: var(--hc-bg-primary);
  text-decoration: none;
  border-radius: var(--hc-radius-base);
  z-index: var(--hc-z-index-tooltip);
}

.hc-skip-link:focus {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: var(--hc-space-sm) var(--hc-space-md);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}


/* ============================================
 * TYPOGRAPHY UTILITY CLASSES
 * Extracted from inline styles for maintainability
 * Matches LoveForm Help Center typography patterns
 * ============================================ */

/* Section Headings - "Guides for getting started" */
.hc-section-heading {
  font-size: var(--hc-font-size-h2);          /* 26px (LoveForm-matched) */
  font-weight: var(--hc-font-weight-medium);   /* 500 */
  line-height: var(--hc-line-height-h2);      /* 30px */
  color: var(--hc-color-primary);             /* #222 */
  margin: 0;
}

/* "Explore more" Heading - Larger than other sections */
.hc-explore-heading {
  font-size: 32px;                             /* 32px - matches LoveForm's prominent Explore more heading */
  font-weight: var(--hc-font-weight-medium);   /* 500 */
  line-height: 1.2;
  color: var(--hc-color-primary);             /* #222 */
  margin: 0;
}

/* "Explore more" Image Cards - LoveForm dimensions (328.5px × 291px) */
.hc-explore-card {
  aspect-ratio: 1.13 / 1 !important;           /* Wider than tall - matches LoveForm */
  width: 100% !important;                      /* Fill grid column naturally */
  position: relative;
  border-radius: 12px !important;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* Explore card text overlay - darker gradient with more bottom coverage */
.hc-explore-card .hc-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
  color: #fff;
  padding: 16px;
}

.hc-explore-card .hc-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.hc-explore-card .hc-card-desc {
  font-size: 14px;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

/* Article Descriptions - Body text under article titles */
.hc-article-description {
  font-size: var(--hc-font-size-base);        /* 16px (UPDATED from 14px) */
  font-weight: var(--hc-font-weight-normal);   /* 400 */
  line-height: 1.5;                            /* 24px at 16px base */
  color: var(--hc-color-secondary);            /* #717171 */
  margin: 0;
}

/* Contact Section Heading - "We'll start with some questions..." */
.hc-contact-heading {
  font-size: var(--hc-font-size-h2);          /* 26px */
  font-weight: var(--hc-font-weight-medium);   /* 500 */
  line-height: 1.2;
  color: var(--hc-color-primary);
  margin: 8px 0 0 0;
}

/* Small Section Labels - "We're here for you", "Need to get in touch?" */
.hc-section-label {
  font-size: var(--hc-font-size-small);       /* 14px */
  font-weight: var(--hc-font-weight-normal);   /* 400 */
  color: var(--hc-color-primary);
  margin: 0;
}

/* ============================================
 * Top Articles Section Heading (DESKTOP)
 * ============================================
 * AIRBNB MEASUREMENT:
 * - Gap from heading to first article container: 32px
 * - First article padding-top: 24px
 * - TOTAL gap from heading to text: 56px
 *
 * ⚠️ NOTE: Mobile override is in @media (max-width: 743px)
 *    at line ~1162 with !important flags
 * ============================================ */
.hc-top-articles-heading {
  font-size: 26px;      /* Match LoveForm's actual visible heading */
  font-weight: 500;     /* Medium weight to match LoveForm */
  line-height: 30px;    /* Match LoveForm's line height */
  color: var(--hc-color-primary);
  margin: 36px 0 32px 0; /* reduced by 4px for tighter parity */
}

/* ============================================
 * TOP ARTICLES GRID & ITEMS (DESKTOP)
 * ============================================
 * AIRBNB PATTERN:
 * - Desktop: 3-column grid
 * - Mobile: Single column vertical list (handled in @media query)
 *
 * CLASSES:
 * - .hc-articles-grid: Container (grid on desktop, flex on mobile)
 * - .hc-article-item: Individual article row
 * - .hc-article-title: Article heading (h3)
 * - .hc-article-description: Article description (p)
 * ============================================ */
.hc-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 16px;
  max-width: 1064px;
}

.hc-article-item {
  padding: 24px 0;
  border-bottom: 1px solid #DDDDDD;
}

.hc-article-item:first-child {
  padding-top: 24px;  /* LoveForm uses consistent 24px padding on ALL items */
}

.hc-article-title {
  font-size: 18px;      /* LoveForm: 18px (was 16px) */
  font-weight: 500;     /* LoveForm: 500 (was 600) */
  line-height: 24px;    /* LoveForm: 24px (was 20px) */
  margin: 0 0 8px 0;
}

.hc-article-title a {
  color: #222222;
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

.hc-article-title a:hover {
  color: #000000;
}

.hc-article-description {
  font-size: 16px;       /* LoveForm: 16px (was 14px) */
  font-weight: 400;
  line-height: 24px;     /* LoveForm: 24px (was 20px) */
  color: #6A6A6A;        /* LoveForm: rgb(106,106,106) = #6A6A6A (was #717171) */
  margin: 0;
  /* LoveForm-style 2-line truncation for consistent item heights */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================
 * GUIDE CARDS STYLING (LoveForm-matched)
 * ============================================ */

/* Guide card images - Override carousel padding, use fixed height to match LoveForm */
.school-card-placeholder .card-image {
  position: relative;
  padding-top: 0 !important; /* Override carousel's 85% padding */
  height: 256px; /* Match LoveForm's exact image height */
  margin-bottom: 0; /* Remove gap, use card-body margin instead */
  border-radius: 12px;
  overflow: hidden;
}

.school-card-placeholder .card-image img {
  position: static; /* Override absolute positioning from carousel */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Guide card titles - match top-article title typography (non-underlined) */
.school-card-placeholder .school-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--hc-color-primary);
  line-height: 24px;
  text-decoration: none !important;
  margin: 16px 0 0 0; /* 16px top margin for spacing after image */
  /* Remove truncation - allow full text to display */
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Remove any default card styling that conflicts */
.school-card-placeholder {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.school-card-placeholder .card-body {
  padding: 0 0 36px 0; /* Add 36px bottom padding to match LoveForm's 344px total card height */
  min-height: 88px; /* Force expansion: 52px content + 36px padding = 88px */
  background: transparent;
}


/* ============================================
 * PRINT STYLES
 * ============================================ */

/* ============================================
 * LOCAL TABS (LoveForm underline style)
 * Moved from inline styles in help-center.ejs
 * ============================================ */

.local-tabs {
  display: flex;
  gap: 6px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: fit-content;
  margin: 32px 0 0 0;
  flex-wrap: wrap;
}

.local-tabs .nav-item {
  margin-bottom: 0;
}

.local-tab-link {
  padding: 10px 10px 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6A6A6A;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  position: relative;
  line-height: 18px;
}

.local-tab-link:hover {
  text-decoration: none;
  color: #222;
}

.local-tab-link.active {
  background: transparent;
  color: #222;
}

.local-tab-link.active::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -6px;
  left: 0px;
  right: 10px;
  height: 2px;
  background-color: #222;
}

/* ============================================
 * TAB SCROLL ARROWS (Mobile LoveForm Style)
 * Hidden by default, visible only on mobile with overflow
 * ============================================ */

/* Tab scroll arrows - base styles (hidden by default) */
.tab-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: none;  /* Hidden by default on desktop */
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tab-scroll-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.tab-scroll-arrow-left {
  left: -2px;
}

.tab-scroll-arrow-right {
  right: -2px;
}

.tab-scroll-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #222;
  stroke-width: 2.5;
  fill: none;
}

/* Tabs wrapper for arrow positioning */
.tabs-wrapper {
  position: relative;
}

.tabs-wrapper.has-left-arrow .local-tabs {
  padding-left: 28px;
}

.tabs-wrapper.has-right-arrow .local-tabs {
  padding-right: 28px;
}

/* Mobile - horizontal scrolling tabs like LoveForm */
@media (max-width: 768px) {
  .local-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .local-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .local-tabs .nav-item {
    flex-shrink: 0;
  }

  .local-tab-link {
    padding: 10px 16px 10px 0;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Show tab scroll arrows on mobile */
  .tab-scroll-arrow {
    display: flex;
  }
}


/* ============================================
 * PRINT STYLES
 * ============================================ */

@media print {
  .hc-header,
  .hc-search-box,
  .hc-feedback,
  .hc-related-articles,
  .hc-device-tabs {
    display: none;
  }

  .hc-article-container {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hc-article-body {
    color: #000;
  }

  .hc-article-body a {
    color: #000;
    text-decoration: underline;
  }
}
