/* v37.2 L: the city picker (options under a text box) and the "Where are you?" card.
   Logical properties only (start/end), so right-to-left pages mirror by themselves. Touch targets are at least 44px. 320px wide is the floor. */
.cp-list {
  list-style: none; margin: 8px 0 0; padding: 0; box-sizing: border-box; width: 100%;
  background: var(--surface, #1b1b1b); border: 1px solid var(--gold-dim, #8a7a3a); border-radius: 14px; overflow: hidden;
}
.cp-list[hidden] { display: none; }
.cp-opt {
  display: flex; align-items: center; min-height: 48px; padding: 10px 16px; box-sizing: border-box;
  font-size: 17px; line-height: 1.35; color: var(--text, #f2f2f2); text-align: start; overflow-wrap: anywhere; cursor: pointer;
  border-block-start: 1px solid var(--line, #333);
}
.cp-opt:first-child { border-block-start: 0; }
.cp-opt:hover, .cp-opt.on { background: var(--surface-2, #262626); color: var(--gold-bright, #f0d060); }
.cp-opt.on { outline: 2px solid var(--gold-bright, #f0d060); outline-offset: -2px; }

/* a row of text box and Go button (the Home card) */
.cp-row { display: flex; gap: 8px; min-width: 0; }
.cp-input {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 48px; padding: 10px 16px; font: inherit; font-size: 17px;
  color: var(--text, #f2f2f2); background: var(--surface-2, #262626); border: 1px solid var(--line, #333); border-radius: 999px;
}
.cp-input:focus-visible { outline: 2px solid var(--gold-bright, #f0d060); outline-offset: 2px; }
.cp-note { font-size: 17px; line-height: 1.45; margin: 0; color: var(--text-dim, #b5b5b5); }
.cp-note:empty { display: none; }
.pc-form .pc-go { flex: none; width: auto; min-height: 48px; padding-inline: 20px; }

/* "Where are you?" */
.pa {
  margin: 12px 0 14px; padding: 16px; box-sizing: border-box; max-width: 100%;
  background: var(--surface, #1b1b1b); border: 2px solid var(--gold-dim, #8a7a3a); border-radius: 18px; color: var(--text, #f2f2f2);
}
.pa[hidden] { display: none; }
.pa-title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; color: var(--text, #f2f2f2); }
.pa-line { margin: 0 0 10px; font-size: 17px; line-height: 1.45; color: var(--text-dim, #b5b5b5); }
.pa-form { display: flex; gap: 8px; min-width: 0; margin: 0; }
.pa-input {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 48px; padding: 10px 16px; font: inherit; font-size: 17px;
  color: var(--text, #f2f2f2); background: var(--surface-2, #262626); border: 1px solid var(--line, #333); border-radius: 999px;
}
.pa-input:focus-visible, .pa-btn:focus-visible { outline: 2px solid var(--gold-bright, #f0d060); outline-offset: 2px; }
.pa-btn {
  min-height: 48px; padding: 10px 18px; box-sizing: border-box; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  color: var(--text, #f2f2f2); background: var(--surface-2, #262626); border: 1px solid var(--line, #333); border-radius: 999px;
  max-width: 100%; overflow-wrap: anywhere; text-align: center;
}
.pa-btn:hover { color: var(--gold-bright, #f0d060); border-color: var(--gold-dim, #8a7a3a); }
.pa-go { flex: none; color: var(--bg, #111); background: var(--gold, #d4af37); border-color: var(--gold-dim, #8a7a3a); }
.pa-go:hover { color: var(--bg, #111); background: var(--gold-bright, #f0d060); }
.pa-note { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: var(--text-dim, #b5b5b5); }
.pa-note:empty { display: none; }
.pa-note.warn { color: var(--gold-bright, #f0d060); }
.pa-btns, .pa-default { margin-block-start: 10px; }
.pa-default .pa-btn { width: 100%; }
.pa-for { margin: 10px 0 0; font-size: 16px; line-height: 1.45; color: var(--text-dim, #b5b5b5); }

/* the compass: the card sits above the dial, inside its own narrow column */
#view-qibla .q3-ask { width: min(880px, 100%); box-sizing: border-box; padding: 0 16px; margin: 0 auto; }
#view-qibla .q3-ask:empty { display: none; }
#view-qibla .pa { margin-block: 12px 4px; text-transform: none; letter-spacing: normal; font-family: inherit; }
#view-qibla .pa *, #view-qibla .cp-list, #view-qibla .cp-opt { text-transform: none; letter-spacing: normal; font-family: inherit; }

/* the Home card keeps its own look; the box and button sit on one row down to 320px */
.place-card .cp-list { margin-block-start: 0; }

@media (max-width: 360px) {
  .pa { padding: 14px 12px; }
  .pa-title { font-size: 20px; }
  .pa-btn { padding: 10px 14px; }
}

/* the gold fill takes the ink made for gold in the four light themes (same rule as .pl-go in ease.css) */
html[data-theme="v1"] .pa-go, html[data-theme="v2"] .pa-go, html[data-theme="v3"] .pa-go, html[data-theme="v4"] .pa-go,
html[data-theme="v1"] .pa-go:hover, html[data-theme="v2"] .pa-go:hover, html[data-theme="v3"] .pa-go:hover, html[data-theme="v4"] .pa-go:hover { color: var(--on-gold); }
.cp-hint { margin: 6px 2px 0; font-size: 1rem; color: var(--text-dim, #4d5a73); }
.cp-hint[hidden] { display: none; }

/* v37.3: the Did you mean question (location.js askYesNo): above the setup sheet, two large buttons */
.yn-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 20, 40, .55); }
.yn-box { width: 100%; max-width: 420px; padding: 20px 18px; border-radius: 18px; background: var(--surface, #fffdf8); color: var(--text, #10245c); border: 1px solid var(--gold-dim, #c9a86a); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.yn-q { margin: 0 0 16px; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.yn-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn-btns button { min-height: 52px; font: inherit; font-size: 1.05rem; font-weight: 600; border-radius: 999px; cursor: pointer; border: 1px solid var(--gold-dim, #9c8140); }
.yn-yes { background: var(--gold, #8a6a1f); color: #fff; }
.yn-no { background: transparent; color: var(--gold, #8a6a1f); }
