/* OK7JN – Box Templates (shared helpers for Boxes Manager content)
   Safe: only affects elements with the ok7jn- prefix classes. */

:root{
  --ok7jn-card-bg: rgba(255,255,255,.78);
  --ok7jn-card-border: rgba(0,0,0,.08);
  --ok7jn-card-shadow: 0 6px 18px rgba(0,0,0,.08);
  --ok7jn-pill-bg: rgba(20,80,120,.22);
  --ok7jn-pill-bg-hover: rgba(20,80,120,.30);
  --ok7jn-text-muted: rgba(0,0,0,.68);
  --ok7jn-gap-sm: 8px;
  --ok7jn-gap-md: 12px;
  --ok7jn-gap-lg: 16px;
  --ok7jn-radius-md: 14px;
  --ok7jn-radius-lg: 18px;
}

/* Vertical stack with consistent spacing (replaces <br><br>) */
.ok7jn-stack{
  display:flex;
  flex-direction:column;
  gap: var(--ok7jn-gap-md);
}

/* Section header (replaces 'long white strip') */
.ok7jn-section{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:0;
}
.ok7jn-section h2,
.ok7jn-section h3{
  margin:0;
  line-height:1.15;
}
.ok7jn-section .ok7jn-sub{
  font-size:14px;
  opacity:.75;
  color: var(--ok7jn-text-muted);
}
.ok7jn-divider{
  border:0;
  border-top:1px solid var(--ok7jn-card-border);
  margin:0;
}

/* Pills / quick links */
.ok7jn-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ok7jn-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: var(--ok7jn-pill-bg);
  text-decoration:none;
  border:1px solid rgba(0,0,0,.06);
}
.ok7jn-pill:hover{
  background: var(--ok7jn-pill-bg-hover);
}

/* Cards */
.ok7jn-card{
  background: var(--ok7jn-card-bg);
  border:1px solid var(--ok7jn-card-border);
  border-radius: var(--ok7jn-radius-lg);
  padding:14px;
  box-shadow: var(--ok7jn-card-shadow);
}
.ok7jn-card h4{
  margin:0 0 6px 0;
}
.ok7jn-muted{
  opacity:.8;
  color: var(--ok7jn-text-muted);
}

/* 3-card grid (BOTA/TOTA/ARDOS) */
.ok7jn-grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
.ok7jn-grid-3 a{
  text-decoration:none;
}
@media (max-width: 900px){
  .ok7jn-grid-3{ grid-template-columns:1fr; }
}

/* Simple link list */
.ok7jn-links{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ok7jn-links a{
  text-decoration:none;
}

/* Two-column helper (text + media) */
.ok7jn-grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 900px){
  .ok7jn-grid-2{ grid-template-columns:1fr; }
}

/* Hero helper (equal height columns, logos can be packed) */
.ok7jn-hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:stretch;
}
.ok7jn-hero-right{
  display:flex;
  flex-direction:column;
  justify-content:center; /* change to space-evenly or space-between if you want more spread */
  gap:10px;               /* smaller = rows closer together */
  align-items:center;
  height:100%;
}
.ok7jn-hero-row{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
.ok7jn-hero-logo{
  width:150px;
  height:150px;
  object-fit:contain;
  border-radius:999px;
}
.ok7jn-hero-logo.square{
  border-radius:16px;
  background:#fff;
  padding:10px;
}
@media (max-width: 900px){
  .ok7jn-hero{ grid-template-columns:1fr; }
  .ok7jn-hero-right{ align-items:flex-start; }
}
/* Zarovnání šipky k pravému okraji obsahu (wrapu) */
:root{
  --ok7jn-wrap: 1300px; /* nastav podle .wrap max-width */
}

button#backToTop.back-to-top{
  right: max(14px, calc((100vw - var(--ok7jn-wrap)) / 2 + 14px)) !important;
}
 