/* Administrácia – rámec stránok (MD3). Farby sa riadia tokenmi z md3.css. */

:root {
  --md-sys-color-primary: #0b5cd5;
  --md-sys-color-on-primary: #fff;
  --md-sys-color-background: #eef2f6;
  --md-sys-color-card-mix: #fff;
}

.pl-body { background: var(--md-sys-color-background); display: flex; flex-direction: column; }
.pl-body { --pl-max: 1040px; --pl-pad: 16px; }   /* šírka obsahu; horná lišta sa podľa nej zarovná */
.pl-body > #obsah { flex: 1; width: 100%; max-width: var(--pl-max); margin: 0 auto; padding: var(--pl-pad); }

.pl-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 max(var(--pl-pad), calc((100% - var(--pl-max)) / 2 + var(--pl-pad)));
  background: var(--md-sys-color-surface);
  box-shadow: 0 1px 0 var(--md-sys-color-outline-variant);
}
.pl-bar__title { font: 500 1.25rem/1.75rem var(--md-font); color: var(--md-sys-color-on-surface); text-decoration: none; }
.pl-bar__actions { display: flex; align-items: center; gap: 8px; }
.pl-inline { display: inline; margin: 0; }
.pl-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.pl-menu { position: relative; }
.pl-menu summary { list-style: none; }
.pl-menu summary::-webkit-details-marker { display: none; }
.pl-menu summary svg { width: 20px; height: 20px; }
.pl-menu__list {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 180px; padding: 8px 0;
  background: var(--md-sys-color-surface); border-radius: var(--md-sys-shape-xs);
  box-shadow: var(--md-elev-3);
}
.pl-menu__list a { display: block; padding: 12px 16px; color: var(--md-sys-color-on-surface); text-decoration: none; font-size: .875rem; }
.pl-menu__list a:hover, .pl-menu__list a:focus-visible { background: var(--md-sys-color-surface-container); }
.pl-menu__list a[aria-current] { background: var(--md-sys-color-primary-container); }

.pl-main { padding: 24px 0 32px; }
.pl-panel {
  background: var(--md-sys-color-surface); border-radius: var(--md-sys-shape-lg);
  box-shadow: var(--md-elev-1); padding: 24px;
}
.pl-title { font: 400 1.75rem/2.25rem var(--md-font); margin: 24px 0 16px; text-align: center; }
.pl-narrow { max-width: 460px; margin: 0 auto; }

/* Karta prihlásenia */
.pl-login { margin-top: 48px; }
.pl-login .md-form { padding: 0; }

/* Taby */
.pl-tabs { display: flex; border-bottom: 1px solid var(--md-sys-color-outline-variant); margin-bottom: 16px; }
.pl-tab {
  flex: 1; max-width: 240px; padding: 14px 16px; border: 0; background: none; cursor: pointer;
  font: 500 .875rem/1.25rem var(--md-font); color: var(--md-sys-color-on-surface-variant);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.pl-tab[aria-selected="true"] { color: var(--md-sys-color-primary); border-bottom-color: var(--md-sys-color-primary); }
.pl-tab:hover { background: var(--md-sys-color-surface-container); }
.pl-tabpanel[hidden] { display: none; }

/* Zoznam súťaží */
.pl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-md); overflow: hidden; }
.pl-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; }
.pl-list > li + li { border-top: 1px solid var(--md-sys-color-outline-variant); }
.pl-list__name { font-weight: 500; }
.pl-list__meta { font-size: .875rem; color: var(--md-sys-color-on-surface-variant); }
.pl-list__side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pl-list__empty { padding: 16px; color: var(--md-sys-color-on-surface-variant); }

.pl-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px;
  font: 500 .75rem/1 var(--md-font); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface);
}
.pl-chip--lang { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); text-transform: lowercase; }
.pl-chip--warning { background: #ffe8a3; color: #4a3a00; }
.pl-chip--success { background: #bdecc9; color: #0a3d1c; }
.pl-chip--danger  { background: #ffd2d0; color: #6b0b08; }
.pl-chip--on { background: var(--md-sys-color-success); color: #fff; }

.pl-linkbtn {
  border: 0; background: none; padding: 4px 6px; cursor: pointer; border-radius: 6px;
  font: 500 .875rem/1.25rem var(--md-font); color: var(--md-sys-color-primary); text-decoration: underline; text-underline-offset: 2px;
}
.pl-linkbtn:hover { background: var(--md-sys-color-primary-container); }
.pl-linkbtn--danger { color: var(--md-sys-color-error); }

.pl-flash { margin: 0 0 16px; }
.pl-flash .md-banner { margin: 0; }

@media (max-width: 599px) {
  .pl-body { --pl-pad: 8px; }
  .pl-panel { padding: 16px; border-radius: var(--md-sys-shape-md); }
  .pl-bar__title { font-size: 1.125rem; }
  .pl-bar .md-btn span { display: none; }
}
.pl-legal { max-width: 760px; margin: 0 auto; line-height: 1.6; font-size: .92rem; } .pl-legal h1 { margin: 0 0 16px; }

/* zoznam súťaží: názov nie je výrazný odkaz */
.pl-list__name { color: var(--md-sys-color-on-surface); font-weight: 600; text-decoration: none; }
.pl-list__name:hover { text-decoration: underline; }

.pl-newlink { margin: 0 0 10px; font-size: .9rem; font-weight: 600; }
