/*
 * Wolf - Ligipaasetavuse parandused
 * Moodul: MEC uksiku sundmuse vaade
 *
 * WCAG 2.2 AA kriteerium 1.4.3, noue 4,5:1 (suur tekst 3:1).
 * Koik suhtarvud on arvutatud renderdatud lehelt voetud varvidest.
 *
 * 63 elementi, mida axe ja htmlcs molemad raporteerivad (126 leidu).
 * Suurim uksikrupp on inline-stiil style="color:#cea51c" MEC-i
 * kategooriavarvist - see annab valgel 2,33:1. Inline-stiili saab
 * ule kirjutada ainult tahtsuse margendiga.
 */

/* Kategooriavarv - inline style, vajab tahtsuse margendit */
#top .mec-single-event dd[style],
#top .mec-single-event dd[style] a,
#top .mec-single-event li[style],
#top .mec-single-event li[style] a,
#top .mec-wrap dd[style],
#top .mec-wrap dd[style] a,
#top .mec-wrap li[style],
#top .mec-wrap li[style] a {
	color: #7D640E !important;
}

/* Ulejaanud MEC-i uksikvaate meta-elemendid.
   Kõik olid alla 4,5:1; #6E6459 annab valgel 5,78:1. */
#top .mec-single-event .mec-events-event-cost,
#top .mec-single-event .author,
#top .mec-single-event .fn,
#top .mec-single-event .org,
#top .mec-single-event .mec-address,
#top .mec-single-event .mec-events-address,
#top .mec-single-event .mec-holding-status,
#top .mec-single-event .mec-events-meta-group dd,
#top .mec-single-event .mec-events-meta-group dt,
#top .mec-single-event .mec-events-meta-group li,
#top .mec-single-event .mec-single-event-date,
#top .mec-single-event .mec-single-event-time,
#top .mec-single-event .mec-single-event-location,
#top .mec-single-event abbr,
#top .mec-wrap .mec-events-event-cost,
#top .mec-wrap .author,
#top .mec-wrap .fn,
#top .mec-wrap .org,
#top .mec-wrap .mec-address,
#top .mec-wrap .mec-holding-status,
#top .mec-wrap .mec-events-meta-group dd,
#top .mec-wrap .mec-events-meta-group dt,
#top .mec-wrap .mec-events-meta-group li,
#top .mec-wrap abbr {
	color: #6E6459;
}

/* WCAG 1.4.1 - lingid sundmuselehe sisus.
   Sama probleem, mis pohilehtedel: link eristub ainult varvi jargi.
   enfold.css reegel piirdub .entry-content-wrapper-iga, mida MEC-i
   sundmuselehel ei ole - siin on konteiner .mec-single-event-description
   ja .mec-event-content. */
#top .mec-single-event-description a,
#top .mec-event-content a,
#top .mec-single-event .mec-events-content a,
#top .mec-single-event p a,
#top .mec-single-event li a {
	text-decoration: underline;
}

/* Nupud ja pealkirjalingid ei ole tekstilingid */
#top .mec-single-event .mec-booking-button,
#top .mec-single-event .mec-event-title a,
#top .mec-single-event h1 a,
#top .mec-single-event h2 a,
#top .mec-single-event h3 a,
#top .mec-single-event h4 a,
#top .mec-related-event-post a,
#top .mec-single-event figure a {
	text-decoration: none;
}

/* Markupi parandus muudab <dl><dd> loendiks <ul><li> (vt mec-single.php).
   Uus loend ei tohi kanda brauseri vaikimisi taandeid ega tapikesi -
   MEC-i kujundus eeldab dl-i valjanagemist. */
#top .mec-single-event .mec-events-meta-group ul,
#top .mec-wrap .mec-events-meta-group ul,
#top .mec-single-event .mec-event-meta ul,
#top .mec-wrap .mec-event-meta ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#top .mec-single-event .mec-events-meta-group ul > li,
#top .mec-wrap .mec-events-meta-group ul > li,
#top .mec-single-event .mec-event-meta ul > li,
#top .mec-wrap .mec-event-meta ul > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ------------------------------------------------------------------
   KALENDRI RUUDUSTIK PARAST DL -> UL TEISENDUST
   ------------------------------------------------------------------
   MEC kasutab <dl>-i tabelina: read on <dl class="mec-calendar-row">,
   lahtrid on <dt>. See ei ole kehtiv maaratlusloend (WCAG 1.3.1,
   7 definition-list leidu 45 lehel). mec-single.php teisendab need
   <ul>/<li>-ks; klassid ja data-atribuudid sailivad, seega enamik
   MEC-i kujundusest kandub li-le automaatselt.

   Siin taastatakse ainult see, mis oli seotud dt/dl elemendinimega.
   Vaartused on mootdetud renderdatud lehelt 10.08.2026 ENNE teisendust:

     .mec-calendar-row        display=table       350x50  table-layout:fixed
     .mec-calendar-row dt     display=table-cell   50x50
     .mec-calendar-table-head display=table       350x50

   Esimene katse jattis height maaramata ja lahtrid kokkusid 50 -> 26 px,
   kalender 587 -> 422 px. MEC-i reegel dt { height: 50px } ei kohaldu
   enam li-le, seega tuleb korgus siin uuesti anda.

   MEC-i uuendus voib need mootmed muuta - siis tuleb uuesti motta. */

#top .mec-calendar ul.mec-calendar-row,
#top .mec-calendar ul.mec-calendar-table-head,
#top .mec-wrap ul.mec-calendar-row,
#top .mec-wrap ul.mec-calendar-table-head {
	display: table;
	width: 100%;
	height: 50px;
	table-layout: fixed;
	margin: 0;
	padding: 0;
	list-style: none;
}

#top .mec-calendar ul.mec-calendar-row > li,
#top .mec-calendar ul.mec-calendar-table-head > li,
#top .mec-wrap ul.mec-calendar-row > li,
#top .mec-wrap ul.mec-calendar-table-head > li {
	display: table-cell;
	width: 14.2857%;
	height: 50px;
	margin: 0;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	list-style: none;
}

#top .mec-calendar ul.mec-calendar-row > li::marker,
#top .mec-calendar ul.mec-calendar-table-head > li::marker,
#top .mec-wrap ul.mec-calendar-row > li::marker,
#top .mec-wrap ul.mec-calendar-table-head > li::marker {
	content: none;
}
