/* MFSA Hearing Schedule - Front-end styles - v30.0.0 */
.mfsa-h-wrap {
    --mfsa-h-teal: var(--mfsa-ui-teal, #00685e);
    --mfsa-h-teal-dark: var(--mfsa-ui-teal-dark, #00554d);
    --mfsa-h-navy: var(--mfsa-ui-navy, #172b4d);
    --mfsa-h-text: var(--mfsa-ui-text, #344054);
    --mfsa-h-border: var(--mfsa-ui-border, #9eabb5);
    --mfsa-h-border-light: var(--mfsa-ui-border-light, #c8d1d8);
    --mfsa-h-surface: var(--mfsa-ui-surface, #f5f8f8);
    width: 100%;
    color: var(--mfsa-h-navy);
}

.mfsa-h-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Toolbar */
.mfsa-h-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    margin: 0 0 18px;
    border: 1px solid var(--mfsa-h-border-light);
    border-radius: 6px;
    background: var(--mfsa-h-surface);
}

.mfsa-h-count {
    color: var(--mfsa-h-text);
    font-size: 15px;
    font-weight: 600;
    margin-right: auto;
    white-space: nowrap;
    flex: 1 1 190px;
}

.mfsa-h-search-wrap,
.mfsa-h-sort-wrap {
    flex: 1 1 210px;
    min-width: 180px;
    margin: 0;
}

.mfsa-h-search,
.mfsa-h-sort {
    height: 44px;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--mfsa-h-border) !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: var(--mfsa-h-navy) !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
}

.mfsa-h-export-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.mfsa-h-export,
.mfsa-h-print,
.mfsa-add-calendar,
.mfsa-h-pagination button {
    min-height: 44px;
    border: 1px solid var(--mfsa-h-teal) !important;
    background: #fff !important;
    color: var(--mfsa-h-teal-dark) !important;
    border-radius: 5px !important;
    padding: 9px 13px !important;
    line-height: 1.2 !important;
    cursor: pointer;
    text-decoration: none !important;
    font: inherit;
    font-size: 15px;
    font-weight: 600 !important;
}

.mfsa-h-icon-button {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mfsa-h-icon-button svg {
    width: 20px;
    height: 20px;
}

.mfsa-h-export:hover,
.mfsa-h-print:hover,
.mfsa-add-calendar:hover,
.mfsa-h-pagination button:hover:not(:disabled) {
    background: var(--mfsa-h-teal) !important;
    color: #fff !important;
}

.mfsa-h-search:focus-visible,
.mfsa-h-sort:focus-visible,
.mfsa-h-export:focus-visible,
.mfsa-h-print:focus-visible,
.mfsa-add-calendar:focus-visible,
.mfsa-h-pagination button:focus-visible,
.h-nav-link:focus-visible,
.col-matter a:focus-visible {
    outline: 3px solid var(--mfsa-ui-focus, #005fcc) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.mfsa-add-calendar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    min-height: 38px;
    padding: 7px 10px !important;
    font-size: 14px;
}

.mfsa-add-calendar svg {
    width: 16px;
    height: 16px;
}

/* Stream tabs */
.mfsa-h-nav {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    flex-wrap: wrap;
}

.h-nav-link {
    appearance: none;
    border: 1px solid var(--mfsa-h-border) !important;
    background: #fff !important;
    color: var(--mfsa-h-navy) !important;
    font: inherit;
    font-weight: 600 !important;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    border-radius: 5px;
    padding: 9px 13px;
    min-height: 44px;
}

.h-nav-link:hover {
    background: #e5f1ef !important;
    border-color: var(--mfsa-h-teal) !important;
    color: var(--mfsa-h-teal-dark) !important;
}

.h-nav-link.active,
.h-nav-link[aria-selected="true"] {
    background: var(--mfsa-h-teal) !important;
    border-color: var(--mfsa-h-teal) !important;
    color: #fff !important;
}

.h-nav-sep {
    display: none;
}

/* Table */
.mfsa-h-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--mfsa-h-border);
    margin-top: 10px;
    table-layout: fixed;
}

.mfsa-h-table thead th {
    background: var(--mfsa-h-teal) !important;
    color: #fff !important;
    padding: 12px 14px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 700 !important;
}

.mfsa-h-table td {
    padding: 15px;
    border: 1px solid var(--mfsa-h-border-light);
    vertical-align: top;
    overflow-wrap: anywhere;
    background: #fff;
    color: var(--mfsa-h-navy);
    font-weight: 400;
}

.mfsa-h-table tbody tr:nth-child(even) td {
    background: #f2f7f6;
}

.mfsa-h-table tbody tr.mfsa-h-row:hover td {
    background: #e7f2f0;
}

.h-icon {
    color: var(--mfsa-h-teal);
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 7px;
    position: relative;
    top: -1px;
    flex: 0 0 auto;
}

.hearing-date-block { margin-bottom: 0; }
.hearing-date-line { display: flex; align-items: flex-start; line-height: 1.45; }
.h-date-text { display: inline-block; }
.hearing-tba-text { font-weight: 600 !important; letter-spacing: .02em; }

.hearing-court-row {
    margin-top: 8px;
    font-size: .95em;
    color: var(--mfsa-h-text);
    line-height: 1.4;
    display: flex;
    align-items: center;
}

hr.h-date-separator {
    border: 0 !important;
    border-top: 1px dotted var(--mfsa-h-border) !important;
    margin: 12px 0 !important;
    width: 100%;
}

.col-matter a {
    color: #004a99 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 3px;
}

.col-matter a:hover { color: #002f66 !important; text-decoration-thickness: 2px !important; }
.mfsa-matter-act { margin-top: 7px; color: var(--mfsa-h-text); font-size: .95em; font-weight: 600 !important; line-height: 1.35; }

.mfsa-h-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.mfsa-h-page-status { color: var(--mfsa-h-text); font-size: 15px; font-weight: 600; }
.mfsa-h-pagination button:disabled { opacity: .55; cursor: not-allowed; }
.mfsa-h-empty-row td, .mfsa-h-static-empty td { color: var(--mfsa-h-text); font-style: italic; }

/* Mobile card view */
@media screen and (max-width: 768px) {
    .mfsa-h-toolbar { align-items: stretch; gap: 10px; padding: 12px; }
    .mfsa-h-count { width: 100%; flex: 1 0 100%; margin: 0; white-space: normal; }
    .mfsa-h-search-wrap, .mfsa-h-sort-wrap { width: 100%; min-width: 0; flex: 1 0 100%; }
    .mfsa-h-search, .mfsa-h-sort { width: 100%; min-height: 48px; font-size: 16px; }
    .mfsa-h-export-wrap { width: 100%; justify-content: flex-start; }
    .mfsa-h-icon-button { width: 48px; height: 48px; }
    .mfsa-h-nav { gap: 8px; }
    .h-nav-link { min-height: 48px; padding: 10px 15px; }

    .mfsa-h-table { border: 0; }
    .mfsa-h-table thead { display: none; }
    .mfsa-h-table tr.mfsa-h-row,
    .mfsa-h-table tr.mfsa-h-empty-row,
    .mfsa-h-table tr.mfsa-h-static-empty {
        display: block;
        margin-bottom: 18px;
        border: 1px solid var(--mfsa-h-border);
        border-left: 5px solid var(--mfsa-h-teal);
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(23, 43, 77, .08);
        background: #fff;
        overflow: hidden;
    }
    .mfsa-h-table td {
        display: block;
        text-align: left;
        padding: 12px 15px;
        border: 0;
        border-bottom: 1px solid var(--mfsa-h-border-light);
        position: relative;
    }
    .mfsa-h-table td:last-child { border-bottom: 0; }
    .mfsa-h-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700 !important;
        color: var(--mfsa-h-teal-dark);
        text-transform: uppercase;
        font-size: .85em;
        margin-bottom: 5px;
    }
    .mfsa-h-pagination { justify-content: center; flex-wrap: wrap; }
    .mfsa-h-pagination button { min-height: 48px; }
}

@media print {
    .mfsa-h-toolbar, .mfsa-h-nav, .mfsa-h-pagination, .mfsa-add-calendar { display: none !important; }
    .mfsa-h-pane { display: none !important; }
    .mfsa-h-pane[aria-hidden="false"] { display: block !important; }
    .mfsa-h-pane[aria-hidden="false"] tr.mfsa-h-row { display: table-row !important; }
    .mfsa-h-pane[aria-hidden="false"] tr.mfsa-h-row.mfsa-h-filtered-out { display: none !important; }
    .mfsa-h-table { table-layout: auto; margin-top: 0; }
    .mfsa-h-table thead th { background: #00685e !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mfsa-h-table td, .mfsa-h-table th { page-break-inside: avoid; }
}

/* Standalone detail/archive pages share the shortcode's existing presentation. */
.mfsa-hearing-public { width: 100%; min-width: 0; padding-block: 2rem; }
.mfsa-hearing-public h1 { overflow-wrap: anywhere; line-height: 1.3; }

/* High-contrast teal becomes cyan: pair that fill with black, not white. */
@media screen {
  html body.contrast #page #content .mfsa-h-wrap .mfsa-h-table thead th {
    background: #00ffff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    border-color: #000 !important;
  }
  html body.contrast #page #content .mfsa-h-wrap .mfsa-h-table thead th * {
    background: transparent !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
}
@media screen and (forced-colors: active) {
  html body.contrast #page #content .mfsa-h-wrap .mfsa-h-table thead th {
    background: Canvas !important;
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
    border-color: CanvasText !important;
  }
  html body.contrast #page #content .mfsa-h-wrap .mfsa-h-table thead th * {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
  }
}

@media screen {
  html body #page #content .mfsa-h-wrap .mfsa-add-calendar {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; gap: .4em !important;
    height: auto !important; white-space: normal !important;
  }
  html body #page #content .mfsa-h-wrap .mfsa-add-calendar svg {
    font-size: inherit !important;
    width: 1em !important; height: 1em !important;
    flex: 0 0 1em !important; margin: 0 !important;
  }
  html body #page #content .mfsa-h-wrap :is(.hearing-date-line,.hearing-court-row) {
    display: flex !important; align-items: flex-start !important; gap: .35em;
  }
  html body #page #content .mfsa-h-wrap :is(.hearing-date-line,.hearing-court-row) > .h-icon,
  html body #page #content .mfsa-h-wrap .hearing-tba-block > .h-icon {
    font-size: var(--mfsa-h-label-size, 1em) !important;
    width: 1em !important; height: 1em !important; line-height: 1 !important;
    flex: 0 0 1em !important; top: 0 !important;
    margin: calc((var(--mfsa-h-label-line, 1.45em) - 1em) / 2) 0 0 !important;
  }
  html body #page #content .mfsa-h-wrap :is(.h-date-text,.h-court-text) { min-width: 0; }
}
