/* Odgajanje sa muzikom — jedan stilski list za javni deo, portal i admin. */

:root {
  --ink: #2a3238;
  --ink-soft: #5c6b73;
  --ink-faint: #8a98a3;
  --paper: #ffffff;
  --canvas: #f4f8f6;
  --line: #dde8e4;
  --accent-blue: #cfdff1;
  --accent-green: #cce4c9;
  --brand: #3d6b8c;
  --brand-dark: #2f556f;
  --brand-soft: #cfdff1;
  --ok: #3a7a5c;
  --ok-soft: #cce4c9;
  --warn: #8a6420;
  --warn-soft: #faf0dc;
  --bad: #8f3131;
  --bad-soft: #fbe9e7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(42, 50, 56, 0.04), 0 6px 20px rgba(42, 50, 56, 0.05);
  --shadow-soft: 0 1px 3px rgba(42, 50, 56, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  min-height: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.55rem;
}

h2 {
  font-size: 1.12rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
}

small,
.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.875rem;
}

/* --- Raspored --- */

.topbar {
  background: var(--ink);
  color: #fff;
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__brand {
  color: #fff;
  font-weight: 650;
  font-size: 0.98rem;
}

.topbar__brand:hover {
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.topbar nav a {
  color: #ded9d1;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.topbar nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

main.narrow {
  max-width: 620px;
}

footer.sitefoot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* --- Kartice --- */

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 18px;
  margin-bottom: 16px;
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--line);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card__head h2,
.card__head h1 {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
}

.card__head .btn,
.card__head .pair {
  flex: 0 0 auto;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Statistika --- */

.stat {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  min-width: 0;
}

.stat__value {
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat__label {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.stat--alert .stat__value {
  color: var(--bad);
}

/* --- Forme --- */

.field {
  margin-bottom: 16px;
}

.field > label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.field__hint {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='time'],
input[type='number'],
input[type='search'],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: var(--bad);
  background: #fffafa;
}

.field__error {
  display: block;
  color: var(--bad);
  font-size: 0.84rem;
  margin-top: 5px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.94rem;
}

.check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--brand);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}

legend {
  font-weight: 650;
  font-size: 1rem;
  padding: 0;
  margin-bottom: 12px;
}

.formrow {
  display: grid;
  gap: 14px;
}

@media (min-width: 560px) {
  .formrow--2 {
    grid-template-columns: 1fr 1fr;
  }
  .formrow--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Dugmad --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--accent-blue);
  color: var(--ink);
  border-color: transparent;
}

.btn--danger {
  background: var(--bad);
}

.btn--danger:hover {
  background: #7a2929;
}

.btn--small {
  padding: 7px 13px;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

/* --- Obaveštenja --- */

.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.notice--ok {
  background: var(--ok-soft);
  border-color: #c9e0d3;
  color: #1f4f3a;
}

.notice--warn {
  background: var(--warn-soft);
  border-color: #eddcb8;
  color: #6c4d15;
}

.notice--bad {
  background: var(--bad-soft);
  border-color: #f0cdc8;
  color: #74282a;
}

.notice--info {
  background: var(--accent-blue);
  border-color: #b8cfe8;
  color: #2f556f;
}

/* --- Značke --- */

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #efece7;
  color: var(--ink-soft);
  white-space: nowrap;
}

.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge--bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.badge--brand {
  background: var(--accent-green);
  color: #2f5a45;
}

/* --- Tabele --- */

.tablewrap {
  overflow-x: auto;
  margin: 0 -6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 650;
  white-space: nowrap;
}

tbody tr:hover {
  background: #fbfaf8;
}

td.nowrap,
th.nowrap {
  white-space: nowrap;
}

td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table--tight td,
.table--tight th {
  padding: 7px 10px;
}

.waitlist-actions {
  min-width: 11.5rem;
  white-space: normal;
}

.waitlist-actions__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-actions__offer .field--compact {
  margin-bottom: 8px;
}

.waitlist-actions__offer input[type='text'] {
  width: 100%;
  min-width: 0;
  max-width: 15rem;
}

.waitlist-actions__note {
  margin: 0;
}

.field--compact > label {
  margin-bottom: 4px;
}

.waitlist-extra-groups {
  margin: 22px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.waitlist-extra-groups__title {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.waitlist-extra-groups__none {
  margin: 12px 0 0;
}

.waitlist-extra-groups__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.waitlist-extra-groups__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.waitlist-extra-groups__item input {
  margin-top: 4px;
}

/* --- Liste sa opisima --- */

.dl {
  display: grid;
  gap: 8px 16px;
  margin: 0;
}

@media (min-width: 560px) {
  .dl {
    grid-template-columns: max-content 1fr;
  }
}

.dl dt {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.dl dd {
  margin: 0;
  font-weight: 550;
}

/* --- Koraci --- */

.steps {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.8rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-faint);
  flex: 0 0 auto;
  white-space: nowrap;
  padding-right: 4px;
}

.steps li + li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--line);
  flex: none;
  margin-right: 7px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7e3dc;
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 0.78rem;
}

.steps li.is-current {
  color: var(--ink);
  font-weight: 600;
}

.steps li.is-current span {
  background: var(--brand);
  color: #fff;
}

.steps li.is-done span {
  background: var(--ok);
  color: #fff;
}

/* --- Izbor grupe --- */

.choices {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.choice {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 48px;
  background: #fff;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--brand);
}

.choice input {
  position: absolute;
  left: 17px;
  top: 19px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.choice__title {
  font-weight: 650;
  margin-bottom: 3px;
}

.choice__meta {
  color: var(--ink-soft);
  font-size: 0.89rem;
}

.choice__foot {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.choice--disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background: #faf9f7;
}

.choice--disabled:hover {
  border-color: var(--line);
}

.choice:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: #fffdfc;
}

form.choice {
  padding: 0;
  border: none;
  background: transparent;
}

.choice__button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.choice__button:hover {
  border-color: var(--brand);
}

.choice--waitlist .choice__button {
  border-style: dashed;
}

.choice__cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--brand);
}

/* --- Kartice dece u portalu --- */

.childcard {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.childcard__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.childcard__name {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0 0 2px;
}

.childcard__group {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.datelist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.datelist li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.datelist li:first-child {
  border-top: 0;
}

.datelist__when {
  font-weight: 550;
}

.datelist__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.datelist__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.inlineform {
  display: inline;
}

/* --- Hero --- */

.hero {
  background: var(--paper);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  padding: 28px 24px;
  margin-bottom: 0;
}

.hero h1 {
  font-size: 1.85rem;
  max-width: 24ch;
}

.hero p {
  max-width: 52ch;
  color: var(--ink-soft);
}

.steplist {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steplist li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 12px;
}

.steplist li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #2f5a45;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

/* --- Filteri --- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 4px;
}

.filters .field {
  margin-bottom: 0;
  min-width: 150px;
}

.pair {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.spread {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-page-head {
  margin-bottom: 22px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stack > * + * {
  margin-top: 14px;
}

details.disclose {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #fff;
}

details.disclose > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}

details.disclose[open] > summary {
  margin-bottom: 12px;
}

/* --- Štampa --- */

@media print {
  body {
    background: #fff;
  }
  .topbar,
  .sitefoot,
  .noprint {
    display: none !important;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .card {
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  table {
    font-size: 11pt;
  }
  th,
  td {
    border-bottom: 1px solid #999;
  }
}

/* --- Javni sajt (moderno, tanak izgled) --- */

html.public-site,
html.portal-site {
  min-height: 100%;
}

html.public-site {
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(207, 223, 241, 0.55), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(204, 228, 201, 0.45), transparent 50%),
    var(--canvas);
  background-attachment: fixed;
}

html.portal-site {
  background:
    radial-gradient(ellipse 100% 70% at 100% 0%, rgba(207, 223, 241, 0.35), transparent 50%),
    var(--canvas);
  background-attachment: fixed;
}

.public-site,
.portal-site {
  min-height: 100vh;
  background: transparent;
}

.public-site .topbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.public-site .topbar__inner {
  padding: 12px 20px;
}

.public-site .topbar__brand {
  color: var(--ink);
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.public-site .topbar nav a {
  color: var(--ink-soft);
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.public-site .topbar nav a:hover {
  background: var(--accent-blue);
  color: var(--brand-dark);
}

.public-site .topbar nav a.is-active {
  background: var(--accent-green);
  color: #2f5a45;
}

.public-site main {
  padding: 24px 20px 56px;
}

.public-site main.narrow {
  max-width: 640px;
}

.public-site main.narrow--register {
  max-width: min(100%, 920px);
}

.public-site main.groups-page {
  max-width: 960px;
}

.public-site main.home {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.public-site .card--tint {
  box-shadow: none;
}

.public-site .card--blue {
  background: linear-gradient(145deg, rgba(207, 223, 241, 0.45), rgba(255, 255, 255, 0.92));
  border-color: rgba(207, 223, 241, 0.8);
}

.public-site .card--green {
  background: linear-gradient(145deg, rgba(204, 228, 201, 0.45), rgba(255, 255, 255, 0.92));
  border-color: rgba(204, 228, 201, 0.85);
}

.public-site .hero--split {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(207, 223, 241, 0.35) 0%,
    rgba(255, 255, 255, 0.95) 42%,
    rgba(204, 228, 201, 0.28) 100%
  );
}

.public-site .hero__content {
  padding: 28px 24px 8px;
}

.public-site .hero__intro {
  margin: 0 0 18px;
  max-width: 38rem;
  color: var(--ink-soft);
}

.public-site .home-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.public-site .home-benefits li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.45;
}

.public-site .home-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ok);
}

.public-site .home-info {
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.public-site .home-info__grid {
  display: grid;
  gap: 0;
}

.public-site .home-info__item {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.public-site .home-info__item:first-child {
  border-top: 0;
}

.public-site .home-info__label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}

.public-site .home-info__value {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.public-site .home-info__price {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.public-site .home-info__note {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.public-site .home-info__item--price {
  background: linear-gradient(
    145deg,
    rgba(204, 228, 201, 0.28),
    rgba(255, 255, 255, 0.95)
  );
}

.public-site .home-info__item--schedule {
  background: linear-gradient(
    145deg,
    rgba(207, 223, 241, 0.22),
    rgba(255, 255, 255, 0.95)
  );
}

.public-site .home-cta {
  padding: 8px 8px 0;
}

.public-site .home-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-site .home-cta__primary,
.public-site .home-cta__secondary {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.98rem;
}

.public-site .home-manage {
  margin-top: 0;
  padding: 18px 20px;
}

.public-site .home-manage__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.public-site .home-manage__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.public-site .home-manage__hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.public-site .hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.public-site .hero__media {
  margin: 0;
  line-height: 0;
}

.public-site .hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.public-site .home__grid {
  display: grid;
  gap: 14px;
}

.public-site .home__legal {
  margin: 0 4px;
}

@media (min-width: 720px) {
  .public-site .hero--split {
    grid-template-columns: 1fr 1.05fr;
  }

  .public-site .hero__content {
    padding: 34px 28px 34px 32px;
  }

  .public-site .hero__media img {
    min-height: 100%;
    max-height: 420px;
    object-position: center 20%;
  }

  .public-site .home-info__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-site .home-info__item {
    border-top: 0;
    border-left: 1px solid var(--line);
    min-height: 100%;
  }

  .public-site .home-info__item:first-child {
    border-left: 0;
  }

  .public-site .home-cta__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .public-site .home-cta__primary,
  .public-site .home-cta__secondary {
    width: auto;
    min-width: 11rem;
  }

  .public-site .home-manage__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .public-site .home__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.public-site .steps li.is-current span {
  background: var(--brand);
}

.public-site .steps li.is-done span {
  background: var(--ok);
}

.public-site .choice__button:hover,
.public-site .choice:hover {
  border-color: var(--brand);
  background: rgba(207, 223, 241, 0.18);
}

.public-site .choice:has(input:checked) {
  background: rgba(204, 228, 201, 0.25);
}

.public-site footer.sitefoot {
  max-width: 920px;
  padding-bottom: 32px;
}

/* --- Javna lista grupa (horizontalni scroll) --- */

.group-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 4px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: thin;
}

.group-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-card__name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.group-card__location {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.group-card__rows {
  display: grid;
  gap: 8px;
  margin: 0;
}

.group-card__rows div {
  display: grid;
  gap: 2px;
}

.group-card__rows dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-weight: 600;
}

.group-card__rows dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 550;
}

.group-card__status {
  margin-top: auto;
  padding-top: 4px;
}

.group-strip__hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
}

@media (min-width: 900px) {
  .group-strip {
    flex-wrap: nowrap;
  }

  .group-card {
    flex: 1 0 220px;
    min-width: 220px;
  }
}

.portal-site .topbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.portal-site .topbar__brand {
  color: var(--ink);
}

.portal-site .topbar nav a {
  color: var(--ink-soft);
}

.portal-site .topbar nav a.is-active,
.portal-site .topbar nav a:hover {
  background: var(--accent-blue);
  color: var(--brand-dark);
}

.portal-site main.narrow {
  max-width: 640px;
}

.portal-home__head {
  margin-bottom: 18px;
  align-items: center;
}

.portal-home__head h1 {
  margin: 0;
}

.portal-home__foot {
  margin-top: 8px;
}

.portal-children {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-child {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.portal-child__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.portal-child__summary::-webkit-details-marker {
  display: none;
}

.portal-child__summary::after {
  content: '';
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 4px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.portal-child[open] > .portal-child__summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.portal-child__summary-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-child__name {
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--ink);
}

.portal-child__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.portal-child__summary-side {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.portal-child__body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.portal-child__location {
  margin: 14px 0 0;
}

.portal-section__title {
  margin: 18px 0 10px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}

.portal-terms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-term {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 7.5rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(207, 223, 241, 0.14),
    rgba(255, 255, 255, 0.95)
  );
}

.portal-term__content {
  flex: 1 1 auto;
  min-height: 3.5rem;
}

.portal-term__when {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.portal-term__meta {
  margin: 0;
  line-height: 1.45;
}

.portal-term__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 1.6rem;
}

.portal-term__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 8px;
  align-items: start;
}

.portal-term__form {
  margin: 0;
  min-width: 0;
}

.portal-term__btn {
  width: 100%;
  min-height: 2.4rem;
  padding-left: 10px;
  padding-right: 10px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.portal-term__details {
  margin: 0;
  min-width: 0;
}

.portal-term__details > summary {
  list-style: none;
}

.portal-term__details > summary::-webkit-details-marker {
  display: none;
}

.portal-term__details[open] {
  grid-column: 1 / -1;
}

.portal-term__panel {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.portal-term__panel .field {
  margin-bottom: 10px;
}

@media (min-width: 560px) {
  .portal-term {
    flex-direction: row;
    align-items: stretch;
  }

  .portal-term__content {
    flex: 1 1 55%;
  }

  .portal-term__actions {
    flex: 0 1 16.5rem;
    align-self: center;
    grid-template-columns: 1fr;
  }
}

/* --- Admin --- */

.admin-site .topbar__inner {
  flex-wrap: nowrap;
  gap: 12px;
}

.admin-site .topbar__brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(240px, 36vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-site .topbar nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  justify-content: flex-end;
  padding-bottom: 2px;
}

.admin-site .topbar nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.84rem;
  padding: 5px 9px;
}

/* --- Registration flow --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.register-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.register-intro {
  margin: 0 0 20px;
  line-height: 1.55;
}

.notice--spaced {
  margin: 18px 0;
}

.register-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: -8px 0 18px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.register-context__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.register-context__item--cohort .cohort-icon {
  flex: none;
}

.register-context__sep {
  color: var(--ink-faint);
  user-select: none;
}

.cohort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--icon-size, 40px) + 16px);
  height: calc(var(--icon-size, 40px) + 16px);
  border-radius: 50%;
  color: var(--brand);
}

.cohort-icon svg {
  width: var(--icon-size, 40px);
  height: var(--icon-size, 40px);
}

.cohort-icon--blue {
  background: rgba(207, 223, 241, 0.55);
}

.cohort-icon--green {
  background: rgba(204, 228, 201, 0.55);
}

.cohort-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 8px;
}

@media (min-width: 560px) {
  .cohort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cohort-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cohort-card:hover {
  border-color: var(--brand);
  background: rgba(207, 223, 241, 0.12);
}

.cohort-card:has(:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: rgba(204, 228, 201, 0.22);
}

.cohort-card__icon {
  display: flex;
  justify-content: center;
}

.cohort-card__title {
  font-weight: 650;
  font-size: 1.02rem;
}

.cohort-card__range {
  line-height: 1.45;
  max-width: 16rem;
}

.choices--groups {
  margin-top: 4px;
}

.group-pick-card {
  text-align: left;
}

.group-pick-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.group-pick-card__day {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(207, 223, 241, 0.45);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.group-pick-card__title {
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.35;
}

.group-pick-card--static {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf9f7;
}

.register-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  padding: 18px 18px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.form-section--waitlist {
  padding: 18px;
  background: linear-gradient(
    145deg,
    rgba(250, 240, 220, 0.35),
    rgba(255, 255, 255, 0.95)
  );
  border-color: rgba(138, 100, 32, 0.2);
}

.form-section__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.form-section__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
}

.form-section--waitlist .form-section__num {
  background: var(--warn);
}

.form-section__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
}

.form-section__intro {
  margin: 6px 0 0;
}

.form-section__fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form-section__fields legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.waitlist-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-pick-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.waitlist-pick-card:hover {
  border-color: var(--brand);
  background: rgba(207, 223, 241, 0.1);
}

.waitlist-pick-card:has(:checked) {
  border-color: var(--brand);
  background: rgba(204, 228, 201, 0.2);
  box-shadow: 0 0 0 1px var(--brand);
}

.waitlist-pick-card input {
  margin-top: 4px;
  accent-color: var(--brand);
}

.waitlist-pick-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.waitlist-pick-card__name {
  font-weight: 600;
}

.review-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.review-block {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

.review-block__title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.register-success {
  text-align: center;
  padding: 28px 22px 22px;
}

.register-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(204, 228, 201, 0.45);
  color: var(--ok);
}

.register-success__icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

.register-success__eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ok);
}

.register-success h1 {
  margin: 0 0 10px;
}

.register-success__text {
  margin: 0 0 20px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.register-success .dl {
  text-align: left;
  margin-bottom: 16px;
}

.register-success__footnote {
  margin: 16px 0 0;
  text-align: left;
}

.public-site .cohort-card:hover {
  background: rgba(207, 223, 241, 0.18);
}

.public-site .cohort-card:has(:checked) {
  background: rgba(204, 228, 201, 0.25);
}

.public-site .waitlist-pick-card:hover {
  background: rgba(207, 223, 241, 0.15);
}

.public-site .waitlist-pick-card:has(:checked) {
  background: rgba(204, 228, 201, 0.25);
}

