/* ==========================================================================
   OK Azimut - site styles
   Brand: blue #007dc2, yellow #ffd503, green #02904b
   ========================================================================== */

:root {
  --blue: #007dc2;
  --blue-dark: #005f94;
  --blue-deep: #0b2a3f;
  --yellow: #ffd503;
  --green: #02904b;

  --ink: #1d2733;
  --muted: #5b6b7a;
  --line: #e3e9ef;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 40, 60, .06), 0 8px 24px rgba(16, 40, 60, .08);
  --shadow-hover: 0 2px 4px rgba(16, 40, 60, .08), 0 16px 40px rgba(16, 40, 60, .14);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Raleway", var(--font-body);
  --container: 1200px;
}

/* --- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 16px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, iframe, video { max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 1.6em 0 .6em;
  font-variant-numeric: lining-nums;
}
.badge, .accordion__year { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.small { font-size: .875rem; color: var(--muted); }
.small p { margin: .4em 0; }
.meta { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin: 0 0 .5em; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 213, 3, .45); }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); box-shadow: none; }

.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; transition: margin .15s; }
.more:hover::after { margin-left: 4px; }

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.site-logo img { display: block; height: 46px; width: auto; }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; position: relative;
  padding: 10px 14px;
  font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  border-radius: 3px; background: var(--yellow);
  transform: scaleX(0); transition: transform .2s;
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  border: 0; border-radius: var(--radius-sm); background: var(--bg-soft); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .site-nav a { padding: 12px; }
  .site-nav a::after { left: 12px; right: auto; width: 32px; }
}

/* --- page hero ----------------------------------------------------------- */

.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(2, 144, 75, .55), transparent 60%),
    linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 44px 0 40px;
  overflow: hidden;
}
.page-hero::after {
  /* real contour lines of the terrain around Cerkno (50 m interval, 250 m index contours) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background: url("contours.svg") center / cover no-repeat;
}
.page-hero__title { color: #fff; margin: 6px 0 0; position: relative; z-index: 1; }
.page-hero__crumbs { position: relative; z-index: 1; }

.breadcrumbs { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.breadcrumbs li { color: rgba(255, 255, 255, .85); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --- main layouts -------------------------------------------------------- */

.site-main { padding: 48px 0 72px; }

.layout-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.layout-contact { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }

@media (max-width: 900px) {
  .layout-sidebar, .layout-contact { grid-template-columns: 1fr; gap: 32px; }
}

.sidebar { position: sticky; top: 100px; }
@media (max-width: 900px) { .sidebar { position: static; } }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav br { display: none; }
.side-nav .list-group-item {
  display: block; padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: .95rem;
  border-left: 3px solid transparent;
}
.side-nav .list-group-item:hover { background: var(--bg-soft); }
.side-nav .list-group-item.parent { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.side-nav .list-group-item.active { background: rgba(0, 125, 194, .08); color: var(--blue); font-weight: 600; border-left-color: var(--blue); }

@media (max-width: 900px) {
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-nav .list-group-item { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
  .side-nav .list-group-item.parent { font-size: .9rem; margin: 0; }
}

/* --- prose (CMS content) ------------------------------------------------- */

.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 { color: var(--blue-deep); }
.prose h2 { padding-bottom: .3em; border-bottom: 2px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--blue); }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--yellow); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose iframe { border: 0; border-radius: var(--radius-sm); }
.content .prose:empty { display: none; }

.videoWrapper { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; }
.videoWrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }

/* --- cards --------------------------------------------------------------- */

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card__title { font-size: 1.15rem; margin: 0 0 .5em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--blue); }

.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card--media:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card__media:empty { display: none; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card--media:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body p { margin: 0 0 .8em; }
.card__body .more { margin-top: auto; }

.card--accent-green { border-top: 5px solid var(--green); }
.card--accent-green h2 { color: var(--green); }
.card--accent-blue { border-top: 5px solid var(--blue); }
.card--accent-blue h1, .card--accent-blue h2 { color: var(--blue); font-size: 1.5rem; }
.card--accent-blue h4 { margin: .4em 0; font-weight: 600; }
.card--center { text-align: center; display: flex; flex-direction: column; justify-content: center; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* --- home ---------------------------------------------------------------- */

.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.home-grid + .home-grid { margin-top: 24px; }
.span-2 { grid-column: span 2; }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

.news-hero {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--yellow);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.news-hero .slider { aspect-ratio: 16 / 10; }
.news-hero__body { padding: 24px 28px 28px; }
.news-hero__title { margin: 0; font-size: 1.6rem; font-weight: 800; }
.news-hero__title a { color: var(--ink); text-decoration: none; }
.news-hero__subtitle { margin: .2em 0 .8em; font-weight: 600; color: rgba(29, 39, 51, .75); }
.news-hero .btn { background: var(--ink); color: #fff; }
.news-hero .btn:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

.news-card p { color: var(--muted); font-size: .95rem; }

.card--calendar, .card--facebook { align-self: start; }
.card--calendar .card__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.card--calendar .card__title:not(:first-child) { margin-top: 1.4em; }
.ul-calendar { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.ul-calendar li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ul-calendar li:last-child { border-bottom: 0; }
.font-cal-date { color: var(--green); font-weight: 600; }
.font-cal-organiser { color: var(--muted); font-size: .85em; }

:root { --fb: #1877f2; }
.card--facebook { display: flex; flex-direction: column; gap: 14px; }
.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-head .card__title { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.fb-head__icon { width: 22px; height: 22px; fill: var(--fb); flex: none; }
.fb-posts { display: flex; flex-direction: column; }
.fb-post {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.fb-post:first-child { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
.fb-post__media { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); aspect-ratio: 1; }
.fb-post__media:empty { display: none; }
.fb-post:first-child .fb-post__media { aspect-ratio: 16 / 10; }
.fb-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fb-post:hover .fb-post__media img { transform: scale(1.05); }
.fb-post:has(.fb-post__media:empty) { grid-template-columns: 1fr; }
.fb-post__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fb-post__text { font-size: .88rem; line-height: 1.5; }
.fb-post:hover .fb-post__text { color: var(--blue); }
.fb-post__date { font-size: .78rem; color: var(--muted); }
.btn--fb { background: var(--fb); color: #fff; justify-content: center; margin-top: auto; }
.btn--fb:hover { color: #fff; box-shadow: 0 6px 16px rgba(24, 119, 242, .35); }
.card--fb-follow { align-items: flex-start; }
.card--fb-follow p { color: var(--muted); font-size: .92rem; margin: 0; }
.card--fb-follow .btn--fb { align-self: stretch; }
.fb-follow__icon { width: 44px; height: 44px; fill: var(--fb); }


/* --- sections ------------------------------------------------------------ */

.section { padding: 64px 0; }
.site-main > .section:first-child { margin-top: -48px; }
.section--tint { background: var(--bg-soft); margin-top: 64px; }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section__header p { color: var(--muted); }
.section__title { margin: 0 0 .4em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section__title::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--yellow) 33% 66%, var(--green) 66%);
}
.section__title--small { font-size: 1.2rem; text-align: left; }
.section__title--small::after { margin-left: 0; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.result-card .badge {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-family: var(--font-head);
  padding: 4px 12px; border-radius: 999px; font-size: .9rem;
}
.result-card__achievement { color: var(--blue); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }

.sponsors { padding: 40px 0 0; }
.site-main > .sponsors:last-child { margin-bottom: -72px; padding-bottom: 40px; }
.sponsors__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 48px; list-style: none; margin: 0; padding: 0; }
.sponsors__list img { height: 88px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.sponsors__list a:hover img { filter: none; opacity: 1; }

/* --- news item ----------------------------------------------------------- */

.news-item .slider--gallery { margin: 24px 0; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.news-item .slider--gallery:has(.slider__track:empty) { display: none; }
.share { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--line); }

/* --- slider -------------------------------------------------------------- */

.slider { position: relative; overflow: hidden; background: var(--blue-deep); }
.slider__track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; object-fit: cover; display: block; }
a.slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.slider__dots button[aria-current="true"] { background: #fff; width: 22px; border-radius: 4px; }

/* --- club champions ---------------------------------------------------- */

:root { --gold: #f2c200; --silver: #b8c2cc; --bronze: #cd7f32; }

/* podium of the most titles */
.champ-hall {
  margin: 8px 0 48px; padding: 28px 28px 0; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, var(--blue) 0%, var(--blue-deep) 75%);
  color: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.champ-hall__title, .champ-list__title { margin: 0 0 20px; }
.champ-hall__title { color: #fff; text-align: center; font-size: 1.4rem; letter-spacing: .02em; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; max-width: 720px; margin: 0 auto; }
.podium__place { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; --medal: var(--gold); }
.podium__place--1 { order: 2; }
.podium__place--2 { order: 1; --medal: var(--silver); }
.podium__place--3 { order: 3; --medal: var(--bronze); }
.podium__photo { position: relative; width: 112px; height: 112px; flex: none; margin-bottom: 12px; }
.podium__place--1 .podium__photo { width: 140px; height: 140px; }
.podium__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block;
  border-radius: 50%; border: 4px solid var(--medal); background: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.podium__medal {
  position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--medal); color: var(--blue-deep);
  font: 800 1.1rem/1 var(--font-head); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.podium__name { font: 700 1.1rem/1.25 var(--font-head); }
.podium__titles { margin: 2px 0 8px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.podium__titles b { color: var(--yellow); font: 800 1.5rem/1 var(--font-head); margin-right: 2px; }
.podium__years { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 14px; }
.podium__years span { font-size: .75rem; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-variant-numeric: lining-nums tabular-nums; }
.podium__step { align-self: stretch; height: 56px; margin-top: auto; border-radius: 10px 10px 0 0; background: linear-gradient(var(--medal), color-mix(in srgb, var(--medal) 70%, #000)); opacity: .9; }
.podium__place--1 .podium__step { height: 96px; }
.podium__place--2 .podium__step { height: 72px; }
.champ-hall__others {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 -28px; padding: 16px 20px; background: rgba(0, 0, 0, .2); font-size: .88rem;
}
.champ-hall__others:empty { display: none; }
.champ-hall__others li { padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.champ-hall__others b { color: var(--yellow); }

@media (max-width: 640px) {
  .champ-hall { padding: 22px 12px 0; }
  .champ-hall__others { margin: 0 -12px; }
  .podium { gap: 8px; }
  .podium__photo { width: 76px; height: 76px; }
  .podium__place--1 .podium__photo { width: 92px; height: 92px; }
  .podium__medal { width: 28px; height: 28px; font-size: .9rem; }
  .podium__name { font-size: .95rem; }
  .podium__titles { font-size: .78rem; }
  .podium__titles b { font-size: 1.2rem; }
}

/* a card per year */
.champ-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .champ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .champ-grid { grid-template-columns: 1fr; } }

.champ-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.champ-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.champ-card[open] { box-shadow: var(--shadow-hover); }
.champ-card summary { display: block; cursor: pointer; list-style: none; }
.champ-card summary::-webkit-details-marker { display: none; }
.champ-card summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: var(--radius); }
.champ-card__top { position: relative; display: block; }
.champ-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.champ-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; transition: transform .4s; }
.champ-card:hover .champ-card__media img { transform: scale(1.05); }
.champ-card__year {
  position: absolute; left: 14px; bottom: -16px; padding: 4px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--blue-deep); font: 800 1.15rem/1.3 var(--font-head);
  font-variant-numeric: lining-nums; box-shadow: 0 4px 12px rgba(16, 40, 60, .25);
}
.champ-card--current .champ-card__top::before {
  content: "Aktualni prvak"; position: absolute; z-index: 1; top: 12px; right: 12px; padding: 3px 10px;
  border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.champ-card__head { position: relative; display: block; padding: 26px 52px 16px 18px; }
.champ-card__head::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -2px;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: translateY(-50%) rotate(45deg); transition: transform .2s;
}
.champ-card[open] .champ-card__head::after { transform: translateY(-20%) rotate(-135deg); }
.champ-card__name { display: block; font: 700 1.15rem/1.25 var(--font-head); color: var(--ink); }
.champ-card__meta { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.champ-card__body { padding: 0 18px 16px; animation: champ-open .25s ease-out; }
@keyframes champ-open { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .champ-card__body { animation: none; } }
.champ-card__number { margin: 0 0 6px; font-size: .82rem; color: var(--muted); }
.champ-card__desc { font-size: .88rem; }
.champ-card__desc p { margin: .5em 0 0; }
.champ-card__links { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.6; }
.champ-card__links:empty { display: none; }

.table-champion-results { width: 100%; border-collapse: collapse; margin: 0 0 10px; border-top: 1px solid var(--line); font-size: .84rem; font-variant-numeric: tabular-nums lining-nums; }
.table-champion-results td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.table-champion-results td:first-child { width: 1%; padding-left: 0; white-space: nowrap; }
.table-champion-results td:nth-child(3), .table-champion-results td:nth-child(4) { text-align: right; white-space: nowrap; }
.table-champion-results td:nth-child(4) { color: var(--muted); font-size: .78rem; }
.table-champion-results tr:last-child td { border-bottom: 0; }
.table-champion-results td:first-child::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%;
  background: var(--line); vertical-align: -1px;
}
.table-champion-results tr:nth-child(1) td:first-child::before { background: var(--gold); }
.table-champion-results tr:nth-child(2) td:first-child::before { background: var(--silver); }
.table-champion-results tr:nth-child(3) td:first-child::before { background: var(--bronze); }

/* --- contact ------------------------------------------------------------- */

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.icon-list .icon { margin-top: 4px; color: var(--blue); }
.contact-card { border-top: 5px solid var(--yellow); }
.map-embed { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

/* --- footer -------------------------------------------------------------- */

.brand-stripe { display: flex; height: 6px; }
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: var(--blue); }
.brand-stripe span:nth-child(2) { background: var(--yellow); }
.brand-stripe span:nth-child(3) { background: var(--green); }

.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 48px; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer__brand { margin: 0 0 16px; font-family: var(--font-head); font-size: 1.35rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.site-footer__brand strong { color: var(--yellow); font-weight: 800; }
.site-footer__title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer .icon { color: var(--yellow); }
.footer-category-list { list-style: none; margin: 0; padding: 0; }
.footer-category-list li { padding: 6px 0; }
.footer-category-list a { text-decoration: none; }
.footer-category-list a:hover { color: var(--yellow); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .82rem; text-align: center; }
.site-footer__bottom p { margin: 0; }

/* --- lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 20, 30, .92); padding: 40px 64px;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
main { scroll-margin-top: 90px; }
.font-cal-links { font-size: .85em; }

.card__media.card__media--contours { display: block; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.card__media--contours::before {
  content: ""; position: absolute; inset: 0; opacity: .3; transition: opacity .2s;
  background: url("contours.svg") 10% 30% / 300% no-repeat;
}
.card:nth-child(3n+1) .card__media--contours::before { background-position: 45% 80%; }
.card:nth-child(3n+2) .card__media--contours::before { background-position: 85% 20%; }
.card:nth-child(4n) .card__media--contours::before { background-size: 380%; }
.card--media:hover .card__media--contours::before { opacity: .45; }

/* --- Cerkno Cup promo card (home) ---------------------------------------- */

.card--promo {
  display: flex; flex-direction: column; gap: 14px; justify-content: flex-end;
  min-height: 360px; padding: 22px; border: 0; overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 42, 63, .15) 0%, rgba(11, 42, 63, .55) 45%, rgba(11, 42, 63, .92) 100%),
    url("cerkno-cup.jpg") center / cover no-repeat;
}
.card--promo__logo {
  align-self: flex-start; margin-bottom: auto;
  background: rgba(255, 255, 255, .94); border-radius: var(--radius-sm); padding: 8px 12px;
}
.card--promo__logo img { display: block; width: 170px; height: auto; }
.card--promo__text h1, .card--promo__text h2 {
  color: #fff; margin: 0 0 .3em; font-size: 1.6rem; text-align: left !important;
}
.card--promo__text h2 strong, .card--promo__text h1 strong { color: var(--yellow); }
.card--promo__text p { margin: 0 0 .4em; color: rgba(255, 255, 255, .92); text-align: left !important; }
.card--promo .btn { align-self: flex-start; }

/* --- trainings card (home) - green sibling of the promo card ------------- */

.card--training {
  /* lighter, green tint: calmer than the dark Cerkno Cup card */
  background:
    linear-gradient(180deg, rgba(2, 144, 75, .10) 0%, rgba(2, 144, 75, .55) 50%, rgba(1, 96, 50, .92) 100%),
    url("treningi.jpg") center 40% / cover no-repeat;
}
.card--training .card--promo__text h2 { font-size: 1.45rem; }
.card--training .card--promo__text p { margin: 0 0 .5em; font-size: .95rem; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { color: var(--green); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.card--promo__text { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
