/* Kolory z grafiki Agendy HITPOL 2026 */
:root {
  --navy: #111a3d;
  --gold: #d4a56e;
  --sky: #a7c4de;
  --sky-light: #e8f0f8;
  --yellow: #ffe000;
  --red: #e30613;
  --text: #111a3d;
  --muted: #56607a;
  --bg: #f4f7fb;
  --card: #fff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; padding: 12px 16px 0; padding-top: max(12px, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { display: block; width: 88px; height: 44px; flex: none; }
h1 { margin: 0; font-size: 19px; color: var(--gold); letter-spacing: .3px; }
.brand p { margin: 1px 0 0; font-size: 13px; color: #cfd6e6; }
.tabs { display: flex; margin-top: 10px; }
.tabs a { flex: 1; text-align: center; padding: 11px 4px 12px; color: #cfd6e6; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.tabs a[aria-selected="true"] { color: #fff; border-bottom-color: var(--gold); }

main { max-width: 760px; margin: 0 auto; padding: 14px 16px 24px; }

.search { position: relative; }
#q { width: 100%; font-size: 17px; padding: 13px 44px 13px 14px; border: 2px solid var(--sky); border-radius: var(--radius); background: #fff; color: var(--text); outline: none; -webkit-appearance: none; }
#q:focus { border-color: var(--navy); }
#q::-webkit-search-cancel-button { display: none; }
#clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sky-light); color: var(--navy); font-size: 22px; line-height: 1; }

.plan { margin: 12px 0 8px; background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: 0 1px 3px rgba(17,26,61,.08); }
.plan svg { display: block; width: 100%; height: auto; }

.room-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.room-buttons button { flex: 1 1 auto; min-height: 44px; padding: 8px 12px; border-radius: 22px; border: 2px solid var(--c); background: #fff; color: var(--navy); font: 600 15px system-ui, sans-serif; }
.room-buttons button.active { background: var(--c); color: #fff; }
.room-buttons button[data-room="Kominkowa"].active { color: var(--navy); }

.result-head { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 2px 8px; }
.result-head h2 { margin: 0; font-size: 18px; }
.result-head span { color: var(--muted); font-size: 14px; }
.group { margin: 14px 2px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(17,26,61,.07); cursor: pointer; }
.item .name { font-weight: 700; }
.item .stand { font-size: 13px; color: #8a5a1c; font-weight: 600; margin-top: 2px; }
.badge { flex: none; padding: 5px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff; background: var(--c); }
.badge[data-room="Kominkowa"] { color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }

.day { margin: 4px 0 18px; }
.day h2 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.event { display: grid; grid-template-columns: 110px 1fr; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(17,26,61,.07); border-left: 5px solid var(--gold); }
.event .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.event .title { font-weight: 700; }
.event .place { font-size: 14px; color: var(--muted); }

.switch { display: flex; background: var(--sky-light); border-radius: 24px; padding: 4px; margin-bottom: 12px; }
.switch button { flex: 1; min-height: 42px; border: 0; border-radius: 20px; background: transparent; color: var(--navy); font: 600 15px system-ui, sans-serif; }
.switch button[aria-checked="true"] { background: var(--navy); color: #fff; }
.card { background: var(--card); border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(17,26,61,.07); }
.card h3 { margin: 0 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: #8a5a1c; }
.card p { margin: 0; white-space: pre-line; }
.card.highlight { background: var(--sky); }
.card.highlight h3 { color: var(--navy); }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 24px; }

@media (min-width: 700px) {
  h1 { font-size: 22px; }
  .event { grid-template-columns: 140px 1fr; }
}
