/* Ochrana obsahu a růst: Leak check, nejlepší čas na příspěvek, návratnost
   reklamy, opakování promo. Zvlášť od app.css, ať je vidět, co k sobě patří;
   staví jen na jeho tokenech (--brand, --surface, --line …), takže tmavý
   motiv přebírá sám. */

h3.sub {
    font-size: 15px;
    margin: 16px 0 6px;
}

/* --------------------------------------------- nejlepší čas na příspěvek -- */

/* Mapa týden × hodina. Jedna řada, jedna barva od podkladu po --brand
   (sekvenční škála, pět kroků). Mezi buňkami 2 px podkladu, ať se sousední
   plochy neslévají. Text nikdy nenese barvu řady — popisky jsou v barvách
   textu, čísla jsou v tooltipu a pro odečítač v buňce. */
.heat {
    border-collapse: separate;
    border-spacing: 2px;
    margin: 8px 0 12px;
    font-size: 12px;
}

.heat caption {
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 4px;
}

.heat th {
    color: var(--muted);
    font-weight: 400;
    padding: 0 2px;
    text-align: left;
}

.heat thead th { text-align: left; min-width: 14px; }
.heat tbody th { padding-right: 6px; white-space: nowrap; }

.heat td {
    width: 18px;
    min-width: 14px;
    height: 18px;
    border-radius: 3px;
    padding: 0;
}

.heat td.l0 { background: var(--surface-2); }
.heat td.l1 { background: color-mix(in oklab, var(--brand) 25%, var(--surface)); }
.heat td.l2 { background: color-mix(in oklab, var(--brand) 50%, var(--surface)); }
.heat td.l3 { background: color-mix(in oklab, var(--brand) 75%, var(--surface)); }
.heat td.l4 { background: var(--brand); }

/* Doporučené okno: obrys v barvě textu, ne další barva — barva je škála. */
.heat td.best { outline: 2px solid var(--text); outline-offset: -2px; }

.heat-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.heat-legend span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.heat-legend .l1 { background: color-mix(in oklab, var(--brand) 25%, var(--surface)); }
.heat-legend .l2 { background: color-mix(in oklab, var(--brand) 50%, var(--surface)); }
.heat-legend .l3 { background: color-mix(in oklab, var(--brand) 75%, var(--surface)); }
.heat-legend .l4 { background: var(--brand); }
.heat-legend .best { margin-left: 12px; outline: 2px solid var(--text); outline-offset: -2px; }

.slots {
    margin: 4px 0 8px;
    padding-left: 20px;
}

.slots li { margin: 4px 0; }

/* Rychlá volba času v editoru příspěvku. */
.best-picks { align-items: center; margin-top: 6px; }

/* --------------------------------------------------- návratnost reklamy -- */

.link-cost {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.link-cost label { margin: 0; }

.link-cost input[type="text"] {
    width: 7.5em;
    min-height: 36px;
    padding: 6px 8px;
}

.link-cost input[name="currency"] { width: 4.2em; text-transform: uppercase; }
.link-cost button { min-height: 36px; padding: 0 10px; font-size: 13px; }

.star-value { flex-wrap: wrap; margin-top: var(--gap); }
.star-value label { margin: 0; }
.star-value input[type="text"] { width: 8em; }

/* ------------------------------------------------------- opakování promo -- */

fieldset.networks {
    border: 0;
    padding: 0;
    margin: var(--gap) 0 0;
}

fieldset.networks legend {
    font-size: 14px;
    color: var(--muted);
    padding: 0;
}

/* ------------------------------------------------------------ Leak check -- */

.leak-match {
    border-top: 1px solid var(--line);
    padding-top: var(--gap);
    margin-top: var(--gap);
}

.leak-match:first-of-type { border-top: 0; padding-top: 0; }

.leak-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-field);
    overflow: hidden;
    background: var(--surface-2);
}

.leak-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.leak-fan {
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin-top: 8px;
}
