/* Readable Persian text and contained layouts on desktop and mobile. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { line-height: 1.8; }
main, main > *, .min-h-screen > .w-full { min-width: 0; }
main { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, textarea):focus-visible {
    outline: 3px solid #3b82f6; outline-offset: 3px;
}
input[type="checkbox"], input[type="radio"] { accent-color: #2563eb; }
textarea { line-height: 2; text-align: start; unicode-bidi: plaintext; resize: vertical; }
textarea, [contenteditable="true"] { direction: rtl; }
input[readonly] { cursor: default; }
button:disabled { cursor: wait; opacity: .65; }
main :where(p, td, dd) { overflow-wrap: anywhere; }
main .overflow-x-auto { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
main table { width: 100%; border-collapse: separate; border-spacing: 0; }
main th { font-weight: 700; line-height: 1.9; vertical-align: middle; }
main :where(th, td) { padding-block: .8rem; }
main tbody tr { transition: background-color .15s ease; }
main tbody tr:hover { background-color: rgba(59, 130, 246, .045); }
main tbody tr + tr td { border-top: 1px solid rgba(148, 163, 184, .15); }
main td a { text-underline-offset: .22em; }
main td a:hover { text-decoration: underline; }
[dir="ltr"], bdi { unicode-bidi: isolate; }
.dark main tbody tr:hover { background-color: rgba(96, 165, 250, .08); }
.dark input::placeholder, .dark textarea::placeholder { color: #94a3b8; }
@media (max-width: 767px) {
    main { padding-inline: .75rem !important; padding-top: 1.5rem !important; }
    main input:not([type="checkbox"]):not([type="radio"]), main select, main textarea { min-height: 2.75rem; font-size: 16px; }
    main .overflow-x-auto table { min-width: 55rem; }
    main .overflow-x-auto { border-radius: .5rem; }
    main button { min-height: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; } }
main .council-meetings-table { table-layout: auto; min-width: 1180px; }
main .council-meetings-table :where(th, td) { white-space: nowrap; }
main .council-meetings-table td:nth-child(3) { white-space: normal; min-width: 220px; max-width: 320px; }
main .council-meetings-table td:nth-child(4) { white-space: normal; min-width: 120px; }
main .council-meetings-table th { font-size: .8125rem; }
main .council-meetings-table tbody :where(td, th) { font-size: .875rem; }
main .council-meetings-table tbody tr { color: #475569; }
.dark main .council-meetings-table tbody tr { color: #cbd5e1; }

.council-table-scroll { max-height: 72vh; }
.council-table-scroll thead { position: sticky; top: 0; z-index: 2; }
