/* targetace.app: shared page components (panels, pills, tables, app store links, the language
   menu). The tokens, base type, top bar, buttons and footer are in /site.css, which every page
   links after this file. */

h1 { line-height: 1.05; margin: 0; }
h2 { font-size: 28px; line-height: 1.15; margin: 0 0 10px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid #000; text-decoration: none; font-weight: 600; font-size: 16px;
}
.store:hover { background: #111a26; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 20px; }
@media (min-width: 900px) { .panel { padding: 24px; } }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .cols-3 { grid-template-columns: 1fr; } }

.pill { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.pill.open { background: var(--ok-soft); color: var(--ok); }
.pill.soon { background: var(--gold-soft); color: var(--gold-ink); }
.pill.done { background: var(--th-bg); color: var(--muted); }
/* An event's kind: a beginners' course or a have-a-go session (competitions have none). */
.pill.kind { background: #e6edf7; color: var(--navy); }
.pill + .pill.kind { margin-left: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--th-bg); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }

/* Search boxes on the listing and help pages. */
.search { font: inherit; width: 100%; max-width: 480px; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); }

/* Small inline flags (i18n.js flag()): scheme links, the calculator's scheme. */
.flag-inline { width: 21px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; margin-right: 7px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

.scheme-pick { display: flex; align-items: center; gap: 2px; }
.scheme-pick select { flex: 1; min-width: 0; }
#scheme-flag .flag-inline { width: 27px; height: 18px; margin-right: 8px; }

/* Language menu in the top bar (i18n.js): a flag and code, opening flags and names. */
.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.lang-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lang-menu summary:hover { border-color: var(--blue); }
.lang-menu .flag { width: 22px; height: 15px; flex: none; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.lang-menu li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-menu li a:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.lang-menu li a[aria-current] { font-weight: 700; background: color-mix(in srgb, var(--blue) 14%, transparent); }
.lang-switch a { color: inherit; }

/* "Updated 12:34" above a club's or an event's page (club.js, event.js). */
.page-status { display: flex; justify-content: flex-end; min-height: 1.5em; margin: -16px 0 6px; font-size: 13px; }
/* The 404 page's ways on. */
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; }
