/* Customer finder. Colors match the aibuild homepage (fh-* variables).
   Montserrat Latin 600 is OFL, self-hosted, one file. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-latin-600.woff2") format("woff2");
}

body.finder {
  --fh-bg: #14191b;
  --fh-panel: #202729;
  --fh-text: #f2eee5;
  --fh-muted: #bec6c5;
  --fh-line: #465150;
  --fh-gold: #d9b978;
  --fh-ink: #14191b;
  --fh-green: #009e60;
  margin: 0;
  min-height: 100vh;
  background: var(--fh-bg);
  color: var(--fh-text);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.finder h1,
body.finder h2,
body.finder h3,
body.finder .wordmark {
  font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fh-text);
}

body.finder a {
  color: var(--fh-gold);
}

body.finder :focus-visible {
  outline: 3px solid var(--fh-text);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--fh-gold);
  color: var(--fh-ink);
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--fh-bg);
  border-bottom: 1px solid var(--fh-line);
}

body.finder a.back-to-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
  background: var(--fh-gold);
  color: var(--fh-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.finder a.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--fh-text);
}

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  box-sizing: border-box;
}

body.finder h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.7rem, 6.4vw, 2.6rem);
}

.lede {
  margin: 0.75rem 0 0;
  color: var(--fh-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 36rem;
}

.tool {
  margin-top: 1.25rem;
}

.card {
  background: var(--fh-panel);
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  padding: 1.1rem 1rem 1.2rem;
}

.find-form,
.stack {
  display: grid;
  gap: 0.9rem;
}

.field-block {
  display: grid;
  gap: 0.35rem;
}

body.finder label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fh-text);
}

body.finder input,
body.finder select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid var(--fh-line);
  background: var(--fh-bg);
  color: var(--fh-text);
  padding: 0.55rem 0.75rem;
  font-size: 16px;
  line-height: 1.3;
  font-family: inherit;
}

.examples,
.hint,
.why,
.quiet,
.card-why {
  margin: 0;
  color: var(--fh-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.hint {
  margin-top: 0.15rem;
}

.serial-hint {
  font-size: 1.125rem;
  line-height: 1.45;
}

.serial-hint a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fh-gold);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.serial-hint a:hover,
.serial-hint a:focus-visible {
  color: var(--fh-text);
}

.serial-divider {
  margin: 0 0.15rem;
  color: var(--fh-muted);
  font-weight: 400;
}

.form-error {
  margin: 0;
  color: #ffd0c2;
  background: #3a2420;
  border: 1px solid #a85a48;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
}

body.finder .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

body.finder .btn-gold {
  background: var(--fh-gold);
  color: var(--fh-ink);
  border-color: var(--fh-gold);
}

body.finder button.btn.btn-primary,
body.finder a.btn.btn-primary {
  min-height: 64px;
  height: auto;
  max-width: 100%;
  padding: 1.1rem 0.75rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

body.finder .btn-line {
  background: transparent;
  color: var(--fh-text);
  border-color: var(--fh-line);
}

body.finder .btn-text {
  width: auto;
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  background: transparent;
  color: var(--fh-gold);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.choice-list,
.action-row,
.link-list,
.parts-slot {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.miss-actions {
  margin-top: 1.15rem;
}

.guitar-line {
  margin: 0 0 0.35rem;
  color: var(--fh-muted);
  font-size: 0.95rem;
}

.confirm-guitar {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

body.finder h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.ask-title,
.result-title {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
}

.setup {
  margin: 0.7rem 0 0;
  font-size: 1.05rem;
}

body.finder .bridge-question {
  display: block;
  width: 100%;
  margin: 1.15rem 0 0.9rem;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  color: var(--fh-text);
}

body.finder .how-to-tell {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--fh-text);
}

body.finder .year-note {
  margin: 0.35rem 0 0;
  text-align: center;
  color: var(--fh-muted);
}

@media (min-width: 800px) {
  body.finder .bridge-question {
    font-size: 1.6rem;
  }
}

.photo-columns {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.85rem;
  min-width: 0;
}

/* Several bridges share one screen. Phones stack them. Wide screens sit them side by side. */
.photo-columns.gallery {
  grid-template-columns: 1fr;
}

.bridge-column {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-width: 0;
}

.bridge-column.is-picked {
  outline: 2px solid var(--fh-gold);
  outline-offset: 4px;
  border-radius: 8px;
}

.bridge-shot {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  min-width: 0;
  max-width: 100%;
}

body.finder .bridge-shot img {
  display: block;
  width: auto;
  max-width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  background: var(--fh-bg);
}

body.finder .bridge-shot img.side {
  max-width: min(70%, 360px);
}

.photo-label {
  margin: 0.15rem 0 0;
  color: var(--fh-text);
  font-size: 1rem;
  line-height: 1.4;
}

.placeholder-tag,
.preview-note {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.placeholder-tag {
  display: inline-block;
  width: auto;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--fh-line);
  border-radius: 3px;
}

button.photo-enlarge {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  box-sizing: border-box;
  overflow: auto;
  padding: 3.5rem 0.75rem 1.5rem;
  background: rgba(10, 12, 13, 0.92);
}

.lightbox-shots {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.photo-lightbox img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

button.lightbox-close {
  position: fixed;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 41;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fh-line);
  border-radius: 6px;
  background: var(--fh-panel);
  color: var(--fh-text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 800px) {
  .lightbox-shots.pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.sheraton-caution {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fh-gold);
  border-radius: 6px;
  background: #2a2418;
  color: var(--fh-text);
}

.bridge-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 280px);
  min-height: 9rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--fh-line);
  border-radius: 6px;
  background: var(--fh-bg);
  color: var(--fh-muted);
  text-align: center;
}

.preview-note {
  margin-bottom: 0.75rem;
}

body.finder button.quiet-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0.75rem 0 0;
  padding: 0.35rem 0;
  background: transparent;
  border: 0;
  color: var(--fh-gold);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.parts-slot:empty {
  display: none;
}

.prose {
  margin-top: 2.25rem;
}

.prose ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.prose h3 {
  margin: 1.15rem 0 0.3rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.prose p {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fh-line);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fh-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--fh-gold);
}

.noscript {
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  color: var(--fh-muted);
}

@media (min-width: 800px) {
  .wrap {
    padding-top: 2rem;
  }
  .card {
    padding: 1.4rem 1.4rem 1.5rem;
  }
  body.finder .btn-line,
  body.finder .btn-gold.inline {
    width: auto;
  }
  .action-row {
    grid-auto-flow: column;
    justify-content: start;
  }
  .action-row .btn {
    width: auto;
    min-width: 10rem;
  }
  .photo-columns.two {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .photo-columns.gallery {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: start;
  }
  /* A 2017-or-later reissue compares the two ABR-1 pictures one above the other. */
  .photo-columns.gallery.stack {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }
  body.finder .bridge-column .btn {
    width: 100%;
    min-width: 0;
  }
  body.finder button.btn.btn-primary,
  body.finder a.btn.btn-primary {
    min-height: 64px;
    height: auto;
    padding: 1.1rem 1.5rem;
    font-size: 1.9rem;
    font-weight: 800;
  }
}

.photo-columns.pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.photo-columns.trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

body.finder .photo-columns.pair .bridge-column .btn,
body.finder .photo-columns.trio .bridge-column .btn {
  width: 100%;
  min-width: 0;
}

body.finder .photo-columns.pair .bridge-column .btn.btn-primary,
body.finder .photo-columns.trio .bridge-column .btn.btn-primary {
  min-height: 48px;
  padding: 0.7rem 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

/* Round 13g (Larry 2026-10-20). On a picture gallery every card's photo sits in
   the same fixed box, scaled to fit (contain, never cropped), so the photos and
   the "This is my bridge" buttons line up at every width. */
body.finder .photo-columns.gallery .bridge-column {
  display: flex;
  flex-direction: column;
}
body.finder .photo-columns.gallery .bridge-shot {
  justify-items: stretch;
  width: 100%;
}
/* Round 13i: the box follows the photos' own 4:3 shape (every card photo is
   4:3), so a photo fills it instead of sitting as a strip in a tall frame. */
body.finder .photo-columns.gallery button.photo-enlarge {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fh-bg);
}
body.finder .photo-columns.gallery .bridge-shot img,
body.finder .photo-columns.gallery .bridge-shot img.side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
body.finder .photo-columns.gallery .bridge-column .gallery-pick {
  margin-top: auto;
}
@media (min-width: 800px) {
  body.finder .photo-columns.gallery {
    align-items: stretch;
  }
}

/* Finder v6 (2026-10-28): lean parts doors, same look as faberusa.com chooser doors. */
body.finder .faber-gibson-doors{display:flex;flex-direction:column;gap:.5rem;margin:1rem 0;}
body.finder .faber-gibson-doors .faber-gibson-door{display:block;padding:.7rem 1rem;background:#eee9df !important;color:#000 !important;border-bottom:2px solid #fff;text-decoration:none !important;font-weight:600;text-align:center;transition:background .15s ease;}
body.finder .faber-gibson-doors .faber-gibson-door:is(:hover,:focus-visible){background:#fcb800 !important;color:#000 !important;}
body.finder .bridge-column[hidden],body.finder .bridge-column.is-hidden,body.finder .choice-list.is-hidden,body.finder .btn.is-hidden,body.finder [hidden].is-hidden{display:none !important;}
