:root {
  --bg: #ffffff;
  --ink: #0f1a1d;
  --ink-2: #4f5b5e;
  --ink-3: #8a9598;
  --line: rgba(15, 40, 50, .09);
  --accent: #0e8a7e;
  --accent-2: #19b3a3;
  --star: #e0a100;
  --warn: #c2410c;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); font: 400 15px/1.5 var(--font);
  background: var(--bg);
}
/* a faint cold aurora so the glass has something to bend */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 30vw at 12% 18%, rgba(120, 214, 226, .16), transparent 70%),
    radial-gradient(36vw 28vw at 88% 30%, rgba(170, 196, 255, .14), transparent 70%),
    radial-gradient(44vw 30vw at 50% 100%, rgba(140, 228, 210, .12), transparent 70%),
    var(--bg);
}
main, .foot { width: 100%; max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
main { flex: 1; position: relative; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- liquid glass ---------- */
.glass, .chips button, .pill, .empty button {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -1px 2px rgba(20, 70, 90, .07),
    0 0 0 .5px rgba(20, 70, 90, .12),
    0 6px 18px -8px rgba(20, 70, 90, .3),
    0 1px 2px rgba(20, 70, 90, .06);
}
.glass::after, .chips button::after, .pill::after, .liquid::after, .empty button::after {
  content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  opacity: .6;
}
.liquid {
  position: relative; isolation: isolate; color: #fff;
  background: linear-gradient(180deg, rgba(38, 196, 180, .95), rgba(10, 128, 117, .92));
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .7),
    inset 0 -3px 6px rgba(0, 70, 64, .28),
    0 0 0 .5px rgba(8, 100, 92, .4),
    0 8px 20px -8px rgba(14, 138, 126, .65);
}
.liquid::after { opacity: .45; }
.glass, .chips button, .pill, .liquid, .empty button { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.chips button:hover, .glass:is(a, button):hover, .liquid:hover, .empty button:hover { transform: translateY(-1px); }
.chips button:active, .glass:is(a, button):active, .liquid:active, .empty button:active { transform: scale(.96); }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #fff; animation: intro-out .6s cubic-bezier(.6, 0, .3, 1) 2.15s forwards; cursor: pointer; }
.intro-mark { display: grid; justify-items: center; gap: 14px; animation: mark-out .6s cubic-bezier(.6, 0, .3, 1) 2.15s forwards; }
.intro .logo { width: 132px; height: 132px; overflow: visible; }
.intro .cube { transform-origin: 31px 33px; animation: cube-in .7s cubic-bezier(.2, 1.3, .4, 1) both; }
.intro .shine { animation: shine 1s ease-in-out .55s both; }
.intro .tooth { transform-origin: 31px 40px; animation: tooth-in .75s cubic-bezier(.3, 1.5, .5, 1) .3s both; }
.intro .tooth path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s ease .35s forwards; }
.intro .spark { transform-origin: 53px 10px; animation: spark-in .6s cubic-bezier(.3, 1.8, .5, 1) 1s both; }
.intro-word { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.intro-word span { display: inline-block; animation: word-in .55s cubic-bezier(.2, .9, .3, 1) both; }
.intro-word span:first-child { animation-delay: 1.05s; }
.intro-word span:last-child { animation-delay: 1.2s; color: var(--accent); }
@keyframes cube-in { from { opacity: 0; transform: scale(.5) rotate(-12deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shine { from { transform: skewX(-20deg) translateX(0); } to { transform: skewX(-20deg) translateX(110px); } }
@keyframes tooth-in { from { opacity: 0; transform: translateY(-34px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spark-in { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes mark-out { to { transform: scale(.85) translateY(-20px); } }

/* ---------- hero ---------- */
.hero { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; }
.top { position: absolute; z-index: 3; top: 26px; left: 34px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.slides { position: relative; height: clamp(260px, 44vh, 460px); margin: 10px 20px 0; border-radius: 26px; overflow: hidden; background: #eef6f7;
  box-shadow: 0 0 0 .5px rgba(20, 70, 90, .12), 0 18px 40px -24px rgba(20, 70, 90, .45); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-on img { transform: scale(1); }
.slides::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none; background: linear-gradient(transparent, rgba(255, 255, 255, .55)); }
.dots { position: absolute; z-index: 2; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; gap: 7px; padding: 6px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 .5px rgba(20, 70, 90, .12); }
.dots:empty { display: none; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(15, 40, 50, .25); cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-current="true"] { width: 22px; background: var(--accent); }

/* ---------- search ---------- */
.search { display: flex; margin-top: -34px; z-index: 4; border-radius: 18px; padding: 5px; }
.field { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; }
.field svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 11px 0; }
.field input::placeholder { color: var(--ink-3); }
.what { flex: 1.4; }
.where { flex: 1; border-left: 1px solid var(--line); }
.here { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-left: -4px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.here:hover { background: rgba(14, 138, 126, .08); }
.here svg { stroke: var(--accent); }
.go { flex: none; border-radius: 13px; padding: 0 22px; font-weight: 600; cursor: pointer; }

/* ---------- filters ---------- */
.filters { position: sticky; top: 0; z-index: 3; display: grid; gap: 10px; margin: 0 -20px; padding: 14px 20px 12px; }
.glass-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .7));
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 3px 2px 6px; margin: -3px 0 -6px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.chips button[aria-pressed="true"] {
  color: #fff; border-color: rgba(255, 255, 255, .55);
  background: linear-gradient(180deg, rgba(38, 196, 180, .95), rgba(10, 128, 117, .92));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(0, 70, 64, .28), 0 0 0 .5px rgba(8, 100, 92, .4), 0 8px 18px -8px rgba(14, 138, 126, .65);
}
.chips button[aria-pressed="true"]::after { opacity: .4; }
.selects { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 13px; border-radius: 999px; font-size: 13px; color: var(--ink-3); }
.pill select { border: 0; background: transparent; padding: 2px 2px; font-weight: 600; color: var(--ink); cursor: pointer; outline: none; }
.pill select:disabled { color: var(--ink-3); cursor: not-allowed; }

/* ---------- list ---------- */
.summary { margin: 20px 0 2px; font-size: 13.5px; color: var(--ink-3); }
.summary b { color: var(--ink); font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.clinic { display: grid; grid-template-columns: 28px 132px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: in .35s ease both; scroll-margin-top: 140px; }
.clinic.flash { animation: flash 1.4s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@keyframes flash { 0%, 60% { background: rgba(25, 179, 163, .1); } }
.rank { padding-top: 2px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.thumb { align-self: start; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: #eef6f7 url(/dentistnearby/icon.svg) center / 30% no-repeat; box-shadow: 0 0 0 .5px rgba(20, 70, 90, .12); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.thumb.ok img { opacity: 1; }
.thumb.none img { display: none; }
.name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.name a { text-decoration: none; }
.name a:hover { color: var(--accent); }
.name a::after { content: " ↗"; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.siteurl { display: inline-block; max-width: 100%; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.siteurl:hover { text-decoration: underline; text-underline-offset: 3px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.facts > span + span::before { content: "·"; margin: 0 7px; color: var(--ink-3); }
.facts .star { color: var(--star); }
.facts .rating { color: var(--ink); font-weight: 600; }
.facts .open { color: var(--accent); font-weight: 500; }
.facts .closed { color: var(--warn); }
.addr { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.links a { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; }
.links .glass { color: var(--ink-2); }
.links .glass:hover { color: var(--ink); }
.divider { padding: 28px 0 6px; font-size: 13.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.divider b { display: block; color: var(--ink); font-weight: 600; }

.skeleton { height: 136px; border-bottom: 1px solid var(--line); position: relative;
  background: linear-gradient(rgba(15, 40, 50, .06), rgba(15, 40, 50, .06)) 42px 18px / 132px 99px no-repeat; }
.skeleton::before, .skeleton::after { content: ""; position: absolute; left: 188px; height: 12px; border-radius: 6px; background: rgba(15, 40, 50, .06); animation: pulse 1.1s ease-in-out infinite alternate; }
.skeleton::before { top: 22px; width: 46%; height: 15px; }
.skeleton::after { top: 50px; width: 64%; }
@keyframes pulse { to { opacity: .35; } }

.empty { padding: 40px 0; text-align: center; color: var(--ink-2); }
.empty b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; font-weight: 600; }
.empty button { margin-top: 14px; border-radius: 999px; padding: 8px 18px; font-weight: 500; cursor: pointer; }

.foot { padding-top: 28px; padding-bottom: 32px; font-size: 12.5px; color: var(--ink-3); }
.foot p { margin: 0 0 4px; }
.gm { white-space: nowrap; color: var(--ink-2); }

/* desktop: the list fills the screen in two columns, matching the hero's width */
@media (min-width: 960px) {
  main, .foot { max-width: 1180px; }
  .list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .divider { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  main, .foot { padding-left: 16px; padding-right: 16px; }
  .clinic { grid-template-columns: 20px 84px 1fr; gap: 12px; }
  .thumb { aspect-ratio: 1; border-radius: 12px; }
  .skeleton { background-position: 32px 18px; background-size: 84px 84px; }
  .skeleton::before, .skeleton::after { left: 128px; }
  .top { left: 22px; top: 18px; }
  .slides { height: 280px; margin: 8px 12px 0; border-radius: 20px; }
  .search { flex-wrap: wrap; margin-top: -26px; }
  .what { flex: 1 1 100%; }
  .where { flex: 1; border-left: 0; border-top: 1px solid var(--line); }
  .go { margin-top: 4px; }
  .filters { margin: 0 -16px; padding: 12px 16px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
}

/* ---------- nav (both pages) ---------- */
.top { right: 34px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nav { display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav .glass { color: var(--ink-2); }

/* ---------- Dental Recruit ---------- */
.recruit-page .bar { width: 100%; max-width: 780px; margin: 0 auto; padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rhead { padding: 34px 0 22px; }
.rhead h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 600; letter-spacing: -.03em; }
.rhead p { max-width: 54ch; margin: 8px 0 18px; color: var(--ink-2); }
.post-btn { border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; }
.manage { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; }
.manage ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.manage li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
.manage li span { flex: 1 1 200px; font-weight: 500; }
.manage li button { border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.note { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.job { padding: 18px 0; border-bottom: 1px solid var(--line); animation: in .35s ease both; }
.job.filled { opacity: .55; }
.job-top { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.job .role { font-weight: 600; color: var(--accent); }
.job .badge { padding: 2px 9px; border-radius: 999px; background: rgba(14, 138, 126, .09); color: var(--accent); font-weight: 500; }
.job.filled .badge { background: rgba(194, 65, 12, .1); color: var(--warn); }
.job .name { margin: 4px 0 0; }
.job .details { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.job .report { border: 0; background: none; padding: 6px 4px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.job .report:hover { color: var(--warn); }

.sheet { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 22px; border-radius: 22px; color: var(--ink); overflow: auto; }
.sheet::backdrop { background: rgba(15, 30, 35, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .28s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 12px; }
.grid label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); grid-column: span 1; }
.grid label:has(textarea), .grid .wide { grid-column: 1 / -1; }
.grid input, .grid select, .grid textarea {
  display: block; width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; font-weight: 400; color: var(--ink);
  background: rgba(255, 255, 255, .75); outline: none; box-shadow: inset 0 1px 2px rgba(20, 70, 90, .05);
}
.grid input:focus, .grid select:focus, .grid textarea:focus { border-color: var(--accent); }
.grid textarea { resize: vertical; font: inherit; }
.opt { font-weight: 400; color: var(--ink-3); }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#post-form .permanent { display: none; }
#post-form.is-permanent .permanent { display: block; }
#post-form.is-permanent .locum { display: none; }
.form-error { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; background: rgba(194, 65, 12, .08); color: var(--warn); font-size: 13.5px; }
.submit { width: 100%; border-radius: 13px; padding: 12px; font-weight: 600; cursor: pointer; }
.submit:disabled { opacity: .6; cursor: progress; }
.posted h2 { margin: 0 0 6px; }
.posted p { color: var(--ink-2); }
.linkbox { display: flex; gap: 8px; margin: 12px 0 16px; }
.linkbox input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; font-size: 13px; background: rgba(255, 255, 255, .8); }
.linkbox button, .done { border-radius: 11px; padding: 9px 16px; font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
  .top { left: 22px; right: 22px; }
  .nav a { padding: 6px 11px; font-size: 12.5px; }
  .brand { font-size: 14px; }
  .recruit-page .bar { padding: 14px 16px 0; }
  .recruit-page .brand { padding: 7px; font-size: 0; gap: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}
