/* Directory-first homepage. Everything is scoped under .hd-root. */
.hd-root {
  --hd-navy: #16324f;
  --hd-teal: #147d83;
  --hd-orange: #f59e0b;
  --hd-bg: #f8fafc;
  --hd-surface: #fff;
  --hd-text: #1e293b;
  --hd-muted: #64748b;
  --hd-border: #e2e8f0;
  background: var(--hd-bg);
  color: var(--hd-text);
}
.hd-root a { color: var(--hd-teal); }
.hd-root a:focus-visible, .hd-root input:focus-visible, .hd-root select:focus-visible, .hd-root button:focus-visible {
  outline: 3px solid var(--hd-orange);
  outline-offset: 2px;
}
.hd-root .container { max-width: 1240px; }

/* Buttons */
.hd-root .hd-btn { display: inline-block; padding: .65rem 1.25rem; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.hd-root .hd-btn--primary { background: var(--hd-teal); color: #fff; }
.hd-root .hd-btn--primary:hover { background: #0f6a6f; color: #fff; }
.hd-root .hd-btn--accent { background: var(--hd-orange); color: #1e293b; }
.hd-root .hd-btn--accent:hover { background: #d98a06; color: #1e293b; }
.hd-root .hd-btn--ghost { border-color: #fff; color: #fff; margin-left: .5rem; }
.hd-root .hd-btn--ghost:hover { background: #fff; color: var(--hd-navy); }

/* Hero */
.hd-hero { background: var(--hd-navy); color: #fff; padding: 3rem 0 2.5rem; }
.hd-hero__title { font-size: 2rem; font-weight: 600; line-height: 1.25; max-width: 780px; margin: 0 0 .75rem; }
.hd-hero__sub { max-width: 760px; color: #dbe5ee; margin-bottom: 1.5rem; }
.hd-hero__hint { margin: .75rem 0 0; font-size: .85rem; color: #c3d1de; }
.hd-search { display: flex; flex-wrap: wrap; gap: .75rem; background: var(--hd-surface); padding: 1rem; border-radius: 10px; align-items: flex-end; box-shadow: 0 4px 16px rgba(15, 23, 42, .25); }
.hd-search__field { flex: 1 1 200px; min-width: 0; }
.hd-search__field--q { flex: 2 1 320px; }
.hd-search__field label { display: block; margin: 0 0 .25rem; font-size: .8rem; font-weight: 600; color: var(--hd-muted); }
.hd-search__field input, .hd-search__field select { width: 100%; height: 44px; padding: 0 .75rem; border: 1px solid #94a3b8; border-radius: 6px; color: var(--hd-text); background: #fff; }
.hd-search__submit { height: 44px; flex: 0 0 auto; }

/* Sections */
.hd-section { padding: 2.5rem 0; }
.hd-section--tight { padding: 1.5rem 0; }
.hd-section--alt { background: var(--hd-surface); border-top: 1px solid var(--hd-border); border-bottom: 1px solid var(--hd-border); }
.hd-section__title { font-size: 1.5rem; font-weight: 600; color: var(--hd-navy); margin: 0 0 1.25rem; }
.hd-section__more { margin: 1.25rem 0 0; font-weight: 500; }

/* Stats */
.hd-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.hd-stats__item { background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: 8px; padding: 1rem; text-align: center; }
.hd-stats__value { display: block; font-size: 1.75rem; font-weight: 600; color: var(--hd-navy); }
.hd-stats__label { color: var(--hd-muted); font-size: .85rem; }

/* Cards and grids */
.hd-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.hd-card { background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: 8px; padding: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.hd-section--alt .hd-card { background: var(--hd-bg); }
.hd-root .hd-card--link { display: block; text-decoration: none; color: inherit; }
.hd-card--link:hover { border-color: var(--hd-teal); box-shadow: 0 4px 12px rgba(15, 23, 42, .1); }
.hd-card__title { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; color: var(--hd-navy); }
.hd-card__title a { color: inherit; text-decoration: none; }
.hd-card__title a:hover { color: var(--hd-teal); }
.hd-card__meta { margin: 0 0 .35rem; font-size: .85rem; color: var(--hd-muted); }
.hd-card__text { margin: 0 0 .5rem; font-size: .9rem; }
.hd-card__more { font-weight: 600; font-size: .9rem; }
.hd-company { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.hd-company .hd-card__title { margin: 0; }
.hd-company__logo { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; border: 1px solid var(--hd-border); background: #fff; flex: 0 0 56px; }
.hd-company__logo--fallback { display: flex; align-items: center; justify-content: center; background: var(--hd-navy); color: #fff; font-weight: 600; font-size: 1.25rem; border: 0; }
.hd-tags { margin: 0 0 .5rem; }
.hd-tag { display: inline-block; margin: 0 .25rem .25rem 0; padding: .1rem .5rem; border-radius: 4px; background: #e6f4f4; color: #0f5f64; font-size: .75rem; font-weight: 600; }
.hd-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.hd-list li { margin-bottom: .35rem; }
.hd-news__img { width: 100%; height: auto; border-radius: 6px; margin-bottom: .6rem; aspect-ratio: 16 / 9; object-fit: cover; }

/* CTA */
.hd-cta { background: var(--hd-teal); color: #fff; padding: 3rem 0; text-align: center; }
.hd-cta__title { font-size: 1.6rem; font-weight: 600; margin: 0 0 .75rem; }
.hd-cta__text { max-width: 680px; margin: 0 auto 1.5rem; }

@media (min-width: 576px) {
  .hd-grid--3, .hd-grid--4, .hd-grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .hd-hero { padding: 4rem 0 3rem; }
  .hd-hero__title { font-size: 2.5rem; }
  .hd-stats { grid-template-columns: repeat(4, 1fr); }
  .hd-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .hd-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .hd-grid--5 { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .hd-card--link { transition: border-color .15s, box-shadow .15s; }
}
