:root {
  color-scheme: dark;
  font: 16px/1.55 'Segoe UI', system-ui, sans-serif;
  color: #f4f6f4;
  background: #0a1418;
  --muted: #adbfbd;
  --mint: #83ead1;
  --line: #34484a;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 2; background: #122326; padding: 10px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.masthead { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 650; text-decoration: none; }
.brand img { border: 1px solid var(--line); border-radius: 12px; }
.brand b { color: var(--mint); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border: 1px solid #69543a; border-radius: 99px; background: #29241e; color: #ffda9c; white-space: nowrap; font-size: .68rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.signal { width: 6px; height: 6px; border-radius: 50%; background: #ffda9c; }
.hero { position: relative; overflow: hidden; isolation: isolate; border-block: 1px solid #2a4646; background: #0e2529; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #102427 8%, #102427ed 32%, #10242730 72%), url('/jaipur.svg') right 38% center / auto 112% no-repeat; }
.hero-copy { padding-block: 66px 109px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--mint); font-weight: 700; letter-spacing: .19em; text-transform: uppercase; font-size: .69rem; }
.eyebrow span, .hero-caption span { width: 22px; height: 1px; background: currentColor; }
h1 { font: 400 clamp(3rem, 7.3vw, 6.7rem)/.93 Georgia, serif; letter-spacing: -.06em; margin-block: 21px 25px; }
h1 em { color: #a8edd8; }
.hero-copy > p:last-child { color: #d0dfdc; max-width: 35ch; }
.hero-caption { position: absolute; bottom: 59px; right: max(24px, calc((100% - 1180px)/2)); display: flex; align-items: center; gap: 8px; color: #f2dbc3; font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; }
.content { position: relative; margin-top: -36px; }
.search-panel { background: #162628; padding: clamp(17px, 3vw, 30px); border: 1px solid #3f5654; border-radius: 19px; box-shadow: 0 20px 58px #0006; }
.search-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
h2 { font: 400 clamp(1.75rem, 3.5vw, 2.75rem)/1.13 Georgia, serif; letter-spacing: -.035em; }
.search-heading h2 { font-size: 1.7rem; }
.mode { color: var(--mint); font-size: .76rem; text-align: right; }
.search-grid { display: grid; grid-template-columns: minmax(130px, 1.4fr) repeat(2, minmax(129px, 1fr)) repeat(3, minmax(67px, .58fr)) auto; gap: 12px; align-items: end; }
label { display: grid; gap: 5px; min-width: 0; color: #c9d7d4; font-size: .76rem; font-weight: 650; }
input, select { width: 100%; min-width: 0; min-height: 47px; padding: 8px 10px; border: 1px solid #47605e; border-radius: 8px; background: #0c1b1e; color: #f4f6f4; font-size: .92rem; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border-radius: 8px; padding: 9px 14px; font-size: .86rem; font-weight: 700; }
.primary { min-height: 47px; border: 1px solid transparent; background: var(--mint); color: #102422; white-space: nowrap; }
.primary:hover { background: #b3f8e5; }
.secondary { border: 1px solid #4c6663; background: #182a2b; color: #e6f9f3; }
.secondary:hover { border-color: var(--mint); }
fieldset { min-width: 0; margin: 16px 0 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: 8px; }
legend, .form-note { font-size: .8rem; color: var(--muted); }
.ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: 10px; }
.form-note { margin-top: 13px; }
.form-note strong { color: #ffda9c; }
.results { padding-block: 56px; min-height: 265px; }
.results h2 { margin-block: 7px 10px; }
.muted, .status { color: var(--muted); }
.status { margin-block: 11px 16px; }
.matches, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(125deg, #172e30, #122023 68%); }
.card h3 { font: 400 1.55rem/1.2 Georgia, serif; }
.card .secondary { margin-top: auto; }
.more { margin-top: 18px; }
.footer { padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: clamp(18px, 4vw, 30px); border: 1px solid #4c6663; border-radius: 16px; background: #152629; color: inherit; overflow-wrap: anywhere; }
dialog::backdrop { background: #030b0cbd; }
dialog h2 { margin-block: 16px 10px; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#detail-content > * + * { margin-top: 10px; }
.tags { list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; font-size: .85rem; }
@media (max-width: 1000px) {
  .search-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .search-grid label { grid-column: span 2; }
  .primary { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 30px); }
  .masthead { min-height: 66px; }
  .hero-copy { padding-block: 45px 75px; }
  .hero::before { background-position: center, 60% center; opacity: .63; }
  .hero-caption { display: none; }
  .search-grid { gap: 10px; }
  .search-grid label:first-child { grid-column: 1 / -1; }
  .search-grid label:nth-child(2), .search-grid label:nth-child(3) { grid-column: span 3; }
  .search-grid input, .search-grid select, .ages select { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .results { padding-block: 36px; }
}
