/* ------------------------------------------------------------
   Base (safe defaults)
------------------------------------------------------------ */
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid #e5e7eb; margin: 16px 0; }

.cms-p { margin: 0 0 12px; }


/* ------------------------------------------------------------
   Layout helpers
------------------------------------------------------------ */
.cols {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}

.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Ratios for 2 columns */
.cols--2-1 { grid-template-columns: 2fr 1fr; }
.cols--1-2 { grid-template-columns: 1fr 2fr; }

.col { min-width: 0; }

@media (max-width: 720px) {
  .cols--2,
  .cols--3,
  .cols--2-1,
  .cols--1-2 {
    grid-template-columns: 1fr;
  }
}

.tox.tox-tinymce-aux,
.tox .tox-menu,
.tox .tox-toolbar,
.tox .tox-toolbar__primary {
  z-index: 99999;
}

/* ------------------------------------------------------------
   Text helpers
------------------------------------------------------------ */
.txt-small { font-size: .875em; opacity: .9; }
.txt-highlight { background: #fff2a8; padding: 0 .15em; border-radius: 4px; }

.lettrine { display: inline; }
.lettrine { 
  margin: 5px 5px 0 0;
  padding: 5px;
  border: thin solid #900;
  font: bold 20px Matura_MT;
  vertical-align: text-bottom;
  color: #900;
 }

 /* Font sizes (CMS) */
.fs-xs { font-size: 12px; }
.fs-sm { font-size: 14px; }
.fs-md { font-size: 16px; }
.fs-lg { font-size: 18px; }
.fs-xl { font-size: 22px; }
.fs-xxl { font-size: 28px; }

/* ------------------------------------------------------------
   Badges
------------------------------------------------------------ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .85em;
  line-height: 1.4;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.badge--info { background: #eef6ff; border-color: #cfe3ff; }
.badge--warn { background: #fff1f2; border-color: #ffd0d6; }

/* ------------------------------------------------------------
   Callouts
------------------------------------------------------------ */
.callout {
  padding: 14px 16px;
  border-left: 4px solid #9ca3af;
  background: #f9fafb;
  border-radius: 12px;
  margin: 14px 0;
}
.callout--note { border-left-color: #3b82f6; background: #eff6ff; }
.callout--warn { border-left-color: #ef4444; background: #fff1f2; }

/* ------------------------------------------------------------
   Cards
------------------------------------------------------------ */
.card {
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  margin: 14px 0;
}
.card--soft { background: #f9fafb; box-shadow: none; }
.card--border { box-shadow: none; border: 1px solid #e5e7eb; }

/* ------------------------------------------------------------
   Divider
------------------------------------------------------------ */
.divider { border-top: 1px solid #e5e7eb; }

/* ------------------------------------------------------------
   Buttons (apply on <a>)
------------------------------------------------------------ */
a.btn--primary { background: #111; color: #fff; border-color: #111; }
a.btn--ghost { background: transparent; }

/* ------------------------------------------------------------
   Images helpers
------------------------------------------------------------ */
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: 16px; }
.shadow { box-shadow: 0 10px 25px rgba(0,0,0,.10); }
.float-left { float: left; margin: 0 14px 10px 0; max-width: 50%; }
.float-right { float: right; margin: 0 0 10px 14px; max-width: 50%; }
.w-100 { width: 100%; height: auto; }

/* ------------------------------------------------------------
   Columns layout (simple, responsive)
------------------------------------------------------------ */
.cols { display: grid; gap: 14px; margin: 14px 0; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { min-width: 0; }

@media (max-width: 720px) {
  .cols--2, .cols--3 { grid-template-columns: 1fr; }
  .float-left, .float-right { float: none; margin: 0 0 12px 0; max-width: 100%; }
}