/* =========================================================================
   RAISE concept — US distributor directory (isolated concept feature)
   Reuses the shared design tokens from styles.css (:root variables).
   ========================================================================= */
.dist { background: var(--paper-50); padding: 60px 0 78px; }
.dist__back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-muted-light); margin-bottom: 16px; }
.dist__back:hover { color: var(--gold-deep); }
.dist__back svg { flex: none; }
.dist__head { max-width: 760px; }
.dist__sub { margin: 12px 0 0; font-size: 15.5px; color: var(--text-muted-light); max-width: 60ch; }

/* Toolbar: search + state select + clear -------------------------------- */
.dist__toolbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 26px 0 6px; }
.dist__field { display: flex; flex-direction: column; gap: 6px; }
.dist__field-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--text-muted-light); }
.dist__search { position: relative; }
.dist__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--silver-3); }
.dist__search input { height: 46px; width: 340px; max-width: 100%; padding: 0 16px 0 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-on-light); outline: none; font-family: var(--body); transition: border-color .2s, box-shadow .2s; }
.dist__search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,168,40,.15); }
.dist__select { height: 46px; min-width: 230px; padding: 0 38px 0 14px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c727b' stroke-width='2.2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-on-light); font-family: var(--body); outline: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.dist__select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,168,40,.15); }
.dist__clear { height: 46px; }
.dist .result-count { margin: 16px 0 22px; }

/* Cards ------------------------------------------------------------------ */
.dist__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dist-card { background: #fff; border: 1px solid var(--paper-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease; }
.dist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--silver-2); }

/* Logo plate — consistent neutral-light stage; contain; never stretched */
.dist-card__logo { height: 98px; display: flex; align-items: center; justify-content: center; padding: 16px 22px; background: linear-gradient(180deg, #ffffff, #f3f5f7); border-bottom: 1px solid var(--paper-100); }
.dist-card__logo img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; }
.dist-card__logo-fallback { display: none; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .02em; color: var(--silver-3); text-align: center; line-height: 1.15; }
.dist-card__logo.is-fallback img { display: none; }
.dist-card__logo.is-fallback .dist-card__logo-fallback { display: block; }

.dist-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dist-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dist-card__name { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--text-on-light); line-height: 1.3; }
.dist-card__state { flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep); background: var(--paper-100); border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.dist-card__lines { display: flex; flex-direction: column; gap: 3px; }
.dist-card__line { font-size: 13px; color: var(--text-muted-light); line-height: 1.5; }
.dist-tel { font-family: var(--mono); font-size: 12.5px; color: var(--text-on-light); font-weight: 500; border-bottom: 1px solid transparent; }
.dist-tel:hover { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }
.dist-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--paper-200); }
.dist-card__site { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold-deep); word-break: break-word; }
.dist-card__site svg { flex: none; color: var(--silver-2); transition: color .2s, transform .2s; }
a.dist-card__site:hover { color: #6a5008; }
a.dist-card__site:hover svg { color: var(--gold-deep); transform: translate(1px,-1px); }
.dist-card__site--none { color: var(--silver-2); font-weight: 500; cursor: default; }
.dist-card__nolink { font-size: 10.5px; letter-spacing: .03em; color: var(--silver-3); font-weight: 500; border: 1px dashed var(--line); border-radius: var(--radius-pill); padding: 1px 7px; margin-left: 4px; }

/* Empty state ------------------------------------------------------------ */
.dist__empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--text-muted-light); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.dist__empty b { color: var(--text-on-light); display: block; margin-bottom: 6px; font-size: 15px; }
.dist__empty .clear-btn { margin-top: 14px; }
.dist__note { margin-top: 26px; font-size: 12px; color: var(--text-muted-light); max-width: 70ch; }

/* Focus visibility (keyboard) ------------------------------------------- */
.dist a:focus-visible, .dist button:focus-visible, .dist select:focus-visible, .dist input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) { .dist__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .dist__grid { grid-template-columns: 1fr; }
  .dist__toolbar { flex-direction: column; align-items: stretch; }
  .dist__field { width: 100%; }
  .dist__search input, .dist__select { width: 100%; }
}
