/**
 * BEGIN TECH HELP CANADA - DIRECTORY FRONTEND
 */
.thc-dir-page,
.thc-dir-page * {
  box-sizing: border-box;
}

.thc-directory-route {
  width: 100%;
  min-width: 0;
}

/* Keep the directory homepage full width despite legacy mobile article padding. */
body.home.thc-directory-home-page .site-main .inside-article {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.thc-dir-page {
  --thc-dir-blue: #1a73e8;
  --thc-dir-blue-dark: #174ea6;
  --thc-dir-green: #4eb647;
  --thc-dir-orange: #e68a00;
  --thc-dir-black: #151415;
  --thc-dir-soft: #f7f9fc;
  --thc-dir-light: #f2f4f7;
  --thc-dir-border: rgba(15, 23, 42, 0.12);
  --thc-dir-text-soft: #5b6473;
  --thc-dir-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  overflow-x: hidden;
  color: var(--thc-dir-black);
  background: #fff;
}

.thc-dir-inner {
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.thc-dir-hero {
  padding: 76px 0 68px;
  color: #fff;
  background: linear-gradient(135deg, #174ea6 0%, #1a73e8 100%);
}

.thc-dir-hero-compact {
  padding: 58px 0 52px;
}

.thc-dir-hero h1 {
  max-width: 820px;
  margin: 0;
  color: inherit;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.thc-dir-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.65;
}

.thc-dir-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.thc-dir-section {
  padding: 62px 0;
}

.thc-dir-archive-header {
  padding: 36px 0 8px;
}

.thc-dir-archive-header .thc-dir-kicker {
  color: var(--thc-dir-blue-dark);
  border-color: rgba(26, 115, 232, 0.2);
  background: rgba(26, 115, 232, 0.08);
}

.thc-dir-browse-page {
  padding-bottom: 48px;
}

.thc-dir-soft {
  background: var(--thc-dir-soft);
}

.thc-dir-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.thc-dir-search-form {
  display: flex;
  gap: 12px;
  max-width: 820px;
  margin: 28px 0 12px;
}

.thc-dir-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--thc-dir-border);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}

.thc-dir-search-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.thc-dir-term-grid,
.thc-dir-card-grid,
.thc-dir-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.thc-dir-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thc-dir-pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.thc-dir-term-card,
.thc-dir-card,
.thc-dir-sidebar-card,
.thc-dir-pricing-card,
.thc-dir-form-panel,
.thc-dir-ad {
  border: 1px solid var(--thc-dir-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.thc-dir-term-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  color: var(--thc-dir-black);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.thc-dir-term-card:hover,
.thc-dir-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--thc-dir-shadow);
}

.thc-dir-term-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--thc-dir-blue-dark);
  background: rgba(26, 115, 232, 0.08);
  font-weight: 800;
}

.thc-dir-term-name {
  font-weight: 800;
}

.thc-dir-term-count,
.thc-dir-card-meta,
.thc-dir-rating,
.thc-dir-help,
.thc-dir-alt-price {
  color: var(--thc-dir-text-soft);
  font-size: 0.92rem;
}

.thc-dir-card {
  min-width: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.thc-dir-dashboard-card {
  display: grid;
  gap: 12px;
}

.thc-dir-dashboard-edit {
  justify-self: start;
}

.thc-dir-pending-label {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8a4f00;
  background: rgba(230, 138, 0, 0.15);
  font-size: 0.78rem;
  font-weight: 800;
}

.thc-dir-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--thc-dir-light);
}

.thc-dir-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thc-dir-card-placeholder {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--thc-dir-blue-dark);
}

.thc-dir-card-body,
.thc-dir-pricing-card,
.thc-dir-sidebar-card,
.thc-dir-form-panel,
.thc-dir-ad {
  padding: 22px;
}

.thc-dir-card-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.thc-dir-card h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
}

.thc-dir-card h3 a {
  color: var(--thc-dir-black);
  text-decoration: none;
}

.thc-dir-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thc-dir-badge,
.thc-dir-category-pill,
.thc-dir-popular {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.thc-dir-badge-verified {
  color: var(--thc-dir-blue-dark);
  background: rgba(26, 115, 232, 0.1);
}

.thc-dir-badge-pro {
  color: #8a4f00;
  background: rgba(230, 138, 0, 0.15);
}

.thc-dir-badge-claimed {
  color: #286e22;
  background: rgba(78, 182, 71, 0.15);
}

.thc-dir-category-pill {
  color: var(--thc-dir-blue-dark);
  background: rgba(26, 115, 232, 0.08);
  text-decoration: none;
}

.thc-dir-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.thc-dir-stars {
  color: var(--thc-dir-orange);
  letter-spacing: 1px;
  white-space: nowrap;
}

.thc-dir-rating,
.thc-dir-listing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.thc-dir-stars .is-empty {
  color: #d6dbe3;
}

.thc-dir-card-link,
.thc-dir-section-heading a,
.thc-dir-claim-link {
  color: var(--thc-dir-blue);
  font-weight: 800;
  text-decoration: none;
}

.thc-dir-cta {
  padding: 58px 0;
  color: #fff;
  background: var(--thc-dir-blue);
}

.thc-dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.thc-dir-button-white {
  color: var(--thc-dir-blue) !important;
  background: #fff !important;
}

.thc-dir-button-outline {
  color: var(--thc-dir-blue) !important;
  border: 1px solid rgba(26, 115, 232, 0.5) !important;
  background: transparent !important;
}

.thc-dir-button-outline-white {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  background: transparent !important;
}

.thc-dir-results-layout,
.thc-dir-listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 42px 0;
}

.thc-dir-results-layout > *,
.thc-dir-listing-layout > * {
  min-width: 0;
}

.thc-dir-results-list {
  display: grid;
  gap: 18px;
}

.thc-dir-card-layout-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.thc-dir-sidebar,
.thc-dir-listing-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.thc-dir-filter-card label,
.thc-dir-contact-form label,
.thc-dir-submit-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-weight: 700;
}

.thc-dir-filter-card select,
.thc-dir-contact-form input,
.thc-dir-contact-form textarea,
.thc-dir-submit-form input,
.thc-dir-submit-form select,
.thc-dir-submit-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--thc-dir-border);
  border-radius: 8px;
  font: inherit;
}

.thc-dir-listing-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--thc-dir-border);
}

.thc-dir-listing-header h1 {
  margin: 12px 0 8px;
}

.thc-dir-listing-section {
  padding: 34px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.thc-dir-listing-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.thc-dir-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--thc-dir-text-soft);
  font-size: 0.92rem;
}

.thc-dir-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.thc-dir-steps li {
  padding: 12px;
  border-radius: 8px;
  background: var(--thc-dir-light);
  color: var(--thc-dir-text-soft);
  font-weight: 800;
  text-align: center;
}

.thc-dir-steps .is-active {
  color: #fff;
  background: var(--thc-dir-blue);
}

.thc-dir-form-panel + .thc-dir-form-panel {
  margin-top: 22px;
}

.thc-dir-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.thc-dir-radio,
.thc-dir-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.thc-dir-radio input,
.thc-dir-checkbox input {
  width: auto !important;
}

.thc-dir-checkbox {
  align-items: flex-start;
}

.thc-dir-checkbox input {
  flex: 0 0 auto;
  margin: 0.35em 0 0;
}

.thc-dir-checkbox > span {
  min-width: 0;
}

.thc-dir-hp {
  position: absolute;
  left: -9999px;
}

.thc-dir-notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 8px;
}

.thc-dir-notice-success {
  color: #235d1f;
  background: #e9f8e7;
}

.thc-dir-notice-error {
  color: #8a2d20;
  background: #fff0ed;
}

.thc-dir-pricing-card.is-highlighted {
  border-color: rgba(26, 115, 232, 0.45);
  box-shadow: var(--thc-dir-shadow);
}

.thc-dir-price {
  margin: 12px 0;
  color: var(--thc-dir-blue-dark);
  font-size: 2.3rem;
  font-weight: 900;
}

.thc-dir-price span {
  color: var(--thc-dir-text-soft);
  font-size: 1rem;
}

.thc-dir-review-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.thc-dir-plan-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.thc-dir-dashboard-meta,
.thc-dir-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.thc-dir-dashboard-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--thc-dir-border);
  border-radius: 999px;
  color: var(--thc-dir-text-soft);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.thc-dir-social-links,
.thc-dir-feed-list {
  display: grid;
  gap: 12px;
}

.thc-dir-social-links {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.thc-dir-social-links a,
.thc-dir-feed-item {
  padding: 14px 16px;
  border: 1px solid var(--thc-dir-border);
  border-radius: 8px;
  background: #fff;
}

.thc-dir-feed-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.thc-dir-feed-item p {
  margin: 0;
  color: var(--thc-dir-text-soft);
  font-size: 0.9rem;
}

.thc-dir-locked-section {
  border: 1px dashed rgba(26, 115, 232, 0.35);
  background: #f7fbff;
}

.thc-dir-ad {
  background: #fbfcff;
}

.thc-dir-ad-label {
  margin-bottom: 10px;
  color: var(--thc-dir-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thc-dir-empty-state,
.thc-dir-map-placeholder {
  padding: 34px;
  border: 1px dashed var(--thc-dir-border);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

@media (max-width: 1024px) {
  .thc-dir-term-grid,
  .thc-dir-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thc-dir-results-layout,
  .thc-dir-listing-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .thc-dir-search-form,
  .thc-dir-actions {
    flex-direction: column;
  }

  .thc-dir-search-form .button {
    justify-content: center;
    width: 100%;
  }

  .thc-dir-term-grid,
  .thc-dir-card-grid,
  .thc-dir-pricing-grid,
  .thc-dir-form-grid,
  .thc-dir-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .thc-dir-card-layout-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
/**
 * END TECH HELP CANADA - DIRECTORY FRONTEND
 */
