/* TEK-1443/TEK-1452 — /dental is the search form and nothing else: headline,
   two fields, "Use my location", one full-width mint action. Uses the hub's
   dental accent tokens (hub.css). Mobile first, single column, logical
   properties so right-to-left input lays out correctly. The page scrolls
   naturally: nothing is forced into one viewport, so on a short phone the
   fields and the primary action come first. There is no footer on this
   screen: secondary links sit in the header's "More" disclosure. */

.dental-entry {
  max-width: 680px;
  padding: 16px clamp(16px, 5vw, 32px) 40px;
}

.dental-entry__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.hub--domain .dental-entry__crumbs { margin: 0; }
.dental-entry__links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; }
.dental-entry__links a,
.dental-entry__more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.dental-entry__links a:hover,
.dental-entry__more summary:hover { color: var(--accent-1); text-decoration: underline; text-underline-offset: .2em; }
.dental-entry a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.dental-search {
  margin: clamp(28px, 9vh, 96px) auto 0;
  text-align: center;
}
.dental-search h1 {
  margin: 0 0 .4em;
  font-family: var(--hub-sans);
  font-size: clamp(2rem, 6.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.dental-search__accent { color: var(--accent-2); }
.dental-search__lede { margin: 0 0 clamp(22px, 4vh, 36px); color: var(--muted); font-size: 1.08rem; }

.dental-search__form { display: grid; gap: 16px; text-align: start; }
.dental-search__field { display: grid; gap: 8px; }
.dental-search__field label { font-weight: 700; color: var(--ink); font-size: 1rem; }
.dental-search__field input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  /* 17px: readable, and at or above 16px so iOS does not zoom on focus. */
  font-size: 1.0625rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -18px rgba(0,0,0,.8);
}
.dental-search__field input::placeholder { color: #5b6b82; }
.dental-search__field input:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.dental-search__field input[aria-invalid="true"] { border-color: #f87171; }

.dental-search__locate {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-block: -4px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dental-search__locate:hover { color: var(--accent-1); }
.dental-search__locate[disabled] { opacity: .6; cursor: progress; }

.dental-search__submit {
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-2);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 36px -18px var(--accent-shadow);
  transition: filter .2s, transform .15s;
}
.dental-search__submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dental-search__submit[disabled] { opacity: .7; cursor: progress; transform: none; }

.dental-search__choice {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
  text-align: start;
  cursor: pointer;
}
.dental-search__choice:hover { border-color: var(--accent-2); }
.dental-search__choice:focus-visible,
.dental-search__locate:focus-visible,
.dental-search__submit:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 3px; }

.dental-search__status { margin: 0; min-height: 1.4em; color: var(--muted); font-size: .98rem; text-align: center; }
.dental-search__status:empty { min-height: 0; }
.dental-search__status.is-invalid { color: #fca5a5; }
.dental-search__fallback { margin: -6px 0 0; text-align: center; }
.dental-search__fallback a { color: var(--accent-1); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.dental-search__fallback[hidden],
.dental-search__choices[hidden] { display: none; }
.dental-search__choices { display: flex; flex-direction: column; gap: 8px; }

.dental-entry__links { align-items: center; }
.dental-entry__more { position: relative; }
.dental-entry__more summary { cursor: pointer; list-style: none; gap: 6px; }
.dental-entry__more summary::-webkit-details-marker { display: none; }
.dental-entry__more summary::after { content: "\25BE"; font-size: .8em; }
.dental-entry__more summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.dental-entry__menu {
  position: absolute; inset-inline-end: 0; top: 100%; z-index: 10; min-width: 200px;
  margin: 4px 0 0; padding: 6px; list-style: none;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel, #0f172a);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.dental-entry__menu a { display: flex; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink); }
.dental-entry__menu a:hover { background: rgba(255,255,255,.06); color: var(--accent-1); }
.dental-search__hint { margin: 0; color: var(--muted); font-size: .88rem; text-align: start; }

@media (min-width: 761px) {
  .dental-search__choices { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* Short or narrow phones: smaller headline and tighter rhythm so the two
   fields and the action sit close to the top; the rest scrolls. */
@media (max-width: 360px), (max-height: 680px) {
  .dental-search { margin-top: 20px; }
  .dental-search h1 { font-size: 1.8rem; }
  .dental-search__lede { margin-bottom: 18px; font-size: 1rem; }
  .dental-search__form { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .dental-search__submit { transition: none; }
  .dental-search__submit:hover { transform: none; }
}

/* TEK-1452 (owner 2026-10-14): the neutral market chooser. */
.dental-search[hidden] { display: none; }
.dental-chooser__markets { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.dental-market-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.04); color: var(--ink); text-decoration: none; text-align: start;
}
.dental-market-choice:hover { border-color: var(--accent-2); }
.dental-market-choice:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.dental-market-choice__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
/* One height for every row, with or without a country line. */
.dental-chooser__markets .dental-market-choice { min-height: 72px; }
.dental-market-choice__name { font-size: 1.12rem; font-weight: 700; }
.dental-market-choice__country { color: var(--muted); font-size: .9rem; }
.dental-market-choice__arrow { flex: none; color: var(--muted); font-size: 1.1rem; }
.dental-market-choice:hover .dental-market-choice__arrow { color: var(--accent-2); }
[dir="rtl"] .dental-market-choice__arrow,
[dir="rtl"] .dental-chooser__remembered-arrow { transform: scaleX(-1); }
.dental-chooser__remembered { margin: 0 0 6px; }
.dental-chooser__remembered a {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px;
  border-radius: 14px; background: var(--accent-2); color: #062b27; font-weight: 800; text-decoration: none;
}
.dental-chooser__remembered a { gap: 8px; }
.dental-chooser__remembered a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* TEK-1452 (owner final design 2026-10-15): "Use my location" sits below the
   three market choices, with the privacy note last — nothing follows it. */
.dental-chooser__locate { display: grid; justify-items: center; gap: 6px; margin-top: 18px; text-align: center; }
.dental-chooser__locate-button { justify-self: center; margin-block: 0; }
.dental-chooser__locate-button[aria-busy="true"] { cursor: progress; }
.dental-chooser__status { margin: 0; color: var(--ink); font-size: .95rem; }
.dental-chooser__status:empty { display: none; }
.dental-chooser__status.is-error { color: #fca5a5; }
.dental-chooser__privacy { max-width: 34ch; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.dental-chooser__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
