/* eMarigiti Events - lightweight, theme-neutral, no external resources. */
.emg-dash, .emg-events { max-width: 60rem; }
.emg-form .emg-field { margin: 0 0 1rem; }
.emg-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.emg-form input[type="text"], .emg-form input[type="url"], .emg-form input[type="date"], .emg-form input[type="search"], .emg-form select, .emg-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: .5rem; font: inherit; }
.emg-form input[type="checkbox"] { width: auto; margin-right: .25rem; }
.emg-form label[for="emg-f-salary_public"] { display: inline; font-weight: 400; }
.emg-req, .emg-help { font-weight: 400; font-size: .9em; }
.emg-field-error { display: block; color: #8a1f11; font-weight: 600; margin-top: .25rem; }
.emg-alert { border-left: 4px solid; padding: .5rem 1rem; margin: 1rem 0; }
.emg-alert--error { border-color: #8a1f11; background: #fdf0ee; color: #4a0f08; }
.emg-alert--ok { border-color: #1d6b34; background: #eef8f1; color: #0e3a1b; }
.emg-button { display: inline-block; padding: .6rem 1rem; border: 2px solid #1a1a1a; background: #1a1a1a; color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.emg-button--secondary { background: #fff; color: #1a1a1a; }
.emg-inline-form { display: inline-block; margin: .25rem .5rem .25rem 0; }
.emg-dash a:focus, .emg-dash button:focus, .emg-dash input:focus, .emg-dash select:focus, .emg-dash textarea:focus,
.emg-events a:focus, .emg-form button:focus, .emg-form input:focus, .emg-form select:focus, .emg-form textarea:focus { outline: 3px solid #0b57d0; outline-offset: 2px; }
.emg-table { width: 100%; border-collapse: collapse; }
.emg-table th, .emg-table td { text-align: left; padding: .5rem; border-bottom: 1px solid #ccc; vertical-align: top; }
.emg-tag { display: inline-block; padding: 0 .4rem; border: 1px solid currentColor; font-size: .85em; }
.emg-decision fieldset { border: 1px solid #ccc; padding: .75rem 1rem; margin: 0 0 1rem; }
.emg-dl dt { font-weight: 600; margin-top: .5rem; }
.emg-dl dd { margin: 0; }
.emg-prose { white-space: normal; overflow-wrap: anywhere; }
.emg-plain { list-style: none; padding-left: 0; }
.emg-pager ul { list-style: none; padding: 0; display: flex; gap: 1rem; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
@media (max-width: 40rem) {
  .emg-table thead { position: absolute; left: -9999px; }
  .emg-table, .emg-table tbody, .emg-table tr, .emg-table th, .emg-table td { display: block; width: 100%; box-sizing: border-box; }
  .emg-table tr { border: 1px solid #ccc; margin-bottom: .75rem; }
  .emg-table td[data-label]::before, .emg-table th[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
}
.emg-detail dt { font-weight: 600; margin-top: .5rem; }
.emg-detail dd { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.emg-report, .emg-organizer { border: 1px solid #c7c7c7; padding: .5rem 1rem; margin: 1rem 0; }

/* Public directory and detail pages (IR-04): mobile-first single column; grid only on wide screens. */
.emg-public { max-width: 60rem; }
.emg-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.emg-card { border: 1px solid #ccc; padding: 1rem; }
.emg-card h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.emg-card h3 a { display: inline-block; min-height: 2.75rem; line-height: 1.4; }
.emg-card p { margin: .25rem 0; overflow-wrap: anywhere; }
.emg-filters { margin: 0 0 1rem; }
.emg-filters summary { cursor: pointer; padding: .6rem 0; font-weight: 600; min-height: 2.75rem; }
.emg-public a:focus, .emg-public button:focus, .emg-public input:focus, .emg-public select:focus, .emg-public summary:focus { outline: 3px solid #0b57d0; outline-offset: 2px; }
.emg-public .emg-form input[type="search"], .emg-public .emg-form input[type="date"], .emg-public .emg-form select { width: 100%; max-width: 100%; box-sizing: border-box; padding: .6rem; font: inherit; min-height: 2.75rem; }
@media (min-width: 48rem) { .emg-cards { grid-template-columns: repeat(2, 1fr); } }
/* INBOX-1 (0.5.4): moderation inbox tabs and row actions; 44 px tap targets on every screen, wrapping tab strip on phones. */
.emg-inbox__tablist { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; }
.emg-inbox__tablist li { display: flex; align-items: center; gap: .35rem; border: 1px solid #c4c4c4; padding: 0 .6rem; }
/* body + element steps outrank the theme's ".wp-block-post-content :is(li,td,p) > a" (24 px inline links) */
body .emg-dash .emg-inbox__tablist li > a[href], body .emg-dash .emg-table td > a[href], body .emg-dash p > .emg-button, body .emg-dash .emg-button { display: inline-flex; align-items: center; min-height: 2.75rem; }
.emg-inbox__tablist a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.emg-inbox__me { font-size: .9rem; color: #444; }
/* Event page on phones: Take part and share buttons are full 44 px tap targets; the link field fits the screen. */
body .emg-takepart li > a.emg-button, body .emg-share p > a.emg-button, body .emg-evreg p > a.emg-button, body .emg-evreg li > a.emg-button, .emg-evreg button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; }
.emg-takepart li { margin: 0 0 .75rem; }
.emg-share p { display: flex; flex-wrap: wrap; gap: .5rem; }
.emg-share input[type="text"] { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 2.75rem; padding: .5rem; font: inherit; }
