/* Carreau Brno v5.9.2: isolated arc, photographic-band parity and heritage shirts.
   Last in layout.php, after all legacy rules. No changes to database or admin. */

/* 1. Kill the old pseudo-element, formerly overwritten across 4 stylesheets.
   The real .player-arc has stable geometry independent of the v5.9 cascade. */
.player .player-ring::before,
.board-player .player-ring::before { content:none!important;display:none!important; }
.player .player-ring::after,
.board-player .player-ring::after { content:none!important;display:none!important; }
.player .player-ring { isolation:isolate; }
.player .player-ring .player-arc {
  position:absolute;inset:-7px;z-index:2;display:block;border-radius:50%;
  pointer-events:none;opacity:0;transform:scale(.96);
  background:conic-gradient(from 0deg,#2e3192 0deg 90deg,transparent 90deg 360deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));
  transition:opacity .22s ease,transform .22s ease;
}
.player.arc-red .player-ring .player-arc {
  background:conic-gradient(from 0deg,transparent 0deg 135deg,#ed1c24 135deg 225deg,transparent 225deg 360deg);
}
.player:hover .player-ring .player-arc,
.player:focus-within .player-ring .player-arc {opacity:1;transform:scale(1);}
body.dark .player.arc-blue .player-ring .player-arc {
  background:conic-gradient(from 0deg,#9db3ff 0deg 90deg,transparent 90deg 360deg);
}
body.dark .player.arc-red .player-ring .player-arc {
  background:conic-gradient(from 0deg,transparent 0deg 135deg,#ff5964 135deg 225deg,transparent 225deg 360deg);
}
@media (hover:none) {
  /* Touch devices cannot hover. Keep the arc visible as a quiet static accent. */
  .player .player-ring .player-arc {opacity:.85;transform:none;}
}
@media (prefers-reduced-motion:reduce) {
  .player .player-ring .player-arc {transition:none;}
}

/* 2. Homepage's two real photographic bands share one height token,
   regardless of copy length or the older min-heights. */
:root { --carreau-event-image-height:clamp(310px,33vw,440px); }
.vars-feature {min-height:0;align-items:center;}
.vars-feature .vars-photo {
  height:var(--carreau-event-image-height);min-height:0;align-self:center;
}
.vars-feature .vars-photo>img {width:100%;height:100%;object-fit:cover;object-position:center 54%;}
.svitavka-section .svitavka-visual {
  height:var(--carreau-event-image-height);min-height:0!important;margin:0!important;
}
.svitavka-section .svitavka-visual .svitavka-venue {
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 47%;
}
/* Tighten only the desktop copy block so the fixed-height picture does not
   look stranded in an excessively tall navy panel. */
@media (min-width:1001px) {
  .vars-feature .vars-copy {padding-top:36px;padding-bottom:36px;}
  .vars-feature .vars-copy h2 {font-size:clamp(48px,4.5vw,68px);margin-bottom:15px;}
  .vars-feature .vars-copy h2 .vars-name {font-size:clamp(56px,5vw,78px);}
  .vars-feature .vars-copy>p {font-size:16px;line-height:1.45;margin:7px 0;}
  .vars-feature .vars-metrics {margin:14px 0 20px!important;}
  .vars-feature .vars-metrics>div {padding:12px 6px;}
  .vars-feature .vars-metrics strong {font-size:clamp(39px,3.2vw,50px)!important;}
}
/* VARS can remain a larger editorial block, but its photograph doesn't stretch. */
@media (max-width:1000px) {
  :root { --carreau-event-image-height:clamp(280px,43vw,400px); }
  .vars-feature {min-height:0;}
}
@media (max-width:760px) {
  :root { --carreau-event-image-height:clamp(235px,56vw,350px); }
  .vars-feature .vars-photo {order:0;}
  .svitavka-section .svitavka-visual {height:var(--carreau-event-image-height);}
}

/* 3. Quiet one-row clothesline, replacing all 19 mismatched photographic cutouts.
   SVG shape is monochromatic and rendered directly from index.php. */
.heritage-rail {padding:10px 0 4px;background:var(--bg);overflow:hidden;}
.heritage-rail-inner {width:min(1370px,100%);margin-inline:auto;position:relative;min-height:118px;padding:0 18px;}
.heritage-rail .heritage-rope {position:absolute;inset:0 0 auto;width:100%;height:56px;pointer-events:none;overflow:visible;}
.heritage-rail .heritage-rope path {stroke:#ad917b;stroke-width:1.65;stroke-linecap:round;fill:none;opacity:.8;}
.heritage-rail .heritage-shirts {position:relative;display:grid;grid-template-columns:repeat(19,minmax(0,1fr));gap:0;padding:0;align-items:start;}
.heritage-rail .heritage-shirt {
  display:flex;justify-content:center;align-items:flex-start;position:relative;min-width:0;min-height:0;
}
.heritage-rail .heritage-shirt::before {
  content:"";position:absolute;z-index:3;left:50%;top:calc(8px + var(--shirt-drop));
  width:3px;height:11px;transform:translateX(-50%) rotate(-5deg);
  border:1px solid #a98c6b;border-radius:1px;background:#c4aa8b;
  box-shadow:0 1px 1px #0002;
}
.heritage-rail .heritage-shirt:nth-child(3n)::before {transform:translateX(-50%) rotate(6deg);}
.heritage-rail .heritage-tee {
  width:min(82%,49px);height:auto;flex:none;display:block;
  margin-top:calc(13px + var(--shirt-drop));
  overflow:visible;filter:drop-shadow(0px 3px 2px #16203d26);
}
.heritage-tee .tee-fabric {fill:var(--shirt-color);stroke:#28334b;stroke-opacity:.23;stroke-width:.95;stroke-linejoin:round;}
.heritage-tee .tee-collar {fill:none;stroke:#172036;stroke-opacity:.3;stroke-width:2;stroke-linecap:round;}
.heritage-tee .tee-seam {fill:none;stroke:#111827;stroke-opacity:.13;stroke-width:.8;}
.heritage-tee .tee-print {fill:var(--shirt-print);}
.heritage-tee .tee-print-cutout {fill:var(--shirt-color);}
.heritage-tee .tee-print-line {fill:none;stroke:var(--shirt-print);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.heritage-tee .tee-print-type {fill:var(--shirt-print);font:700 4.3px 'Sofia Sans',Arial,sans-serif;letter-spacing:.15px;}
.heritage-tee .tee-print-year {fill:var(--shirt-print);font:700 4.5px 'Sofia Sans',Arial,sans-serif;}
body.dark .heritage-rail {background:var(--bg);}
body.dark .heritage-rail .heritage-rope path {stroke:#94a8d2;opacity:.75;}
body.dark .heritage-rail .heritage-shirt::before {background:#a9b3c5;border-color:#687790;}
body.dark .heritage-rail .heritage-tee {filter:drop-shadow(0 3px 2px #0007);}
body.dark .heritage-tee .tee-fabric {stroke:#e4e9ff;stroke-opacity:.2;}
@media (max-width:760px) {
  .heritage-rail {padding:8px 0 2px;}
  .heritage-rail-inner {padding:0 7px;min-height:81px;}
  .heritage-rail .heritage-rope {height:36px;}
  .heritage-rail .heritage-tee {width:min(92%,32px);margin-top:calc(8px + var(--shirt-drop) * .65);}
  .heritage-rail .heritage-shirt::before {top:calc(4px + var(--shirt-drop) * .65);height:8px;width:2px;}
  .heritage-rail .heritage-rope {transform-origin:top center;transform:scaleY(.65);}
}
@media (max-width:410px) {
  .heritage-rail-inner {padding:0 5px;min-height:71px;}
  .heritage-rail .heritage-tee {width:100%;}
}
