.c212-prayer-times {
    --c212-pt-ink: #111827;
    --c212-pt-muted: #667085;
    --c212-pt-border: #e5e7eb;
    --c212-pt-border-strong: #d0d5dd;
    --c212-pt-accent: #d71920;
    --c212-pt-accent-dark: #aa1419;
    --c212-pt-accent-soft: #fff1f2;
    --c212-pt-surface: #ffffff;
    --c212-pt-surface-alt: #f7f8fa;
    --c212-pt-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    color: var(--c212-pt-ink);
    font-family: inherit;
}

.c212-prayer-times__hero {
    position: relative;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--c212-pt-border);
    border-top: 4px solid var(--c212-pt-accent);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--c212-pt-shadow);
}

.c212-prayer-times__hero--compact,
.c212-prayer-times__hero--month {
    margin-bottom: 24px;
}

.c212-prayer-times__topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.c212-prayer-times__topbar-copy {
    flex: 1 1 auto;
}

.c212-prayer-times__eyebrow {
    margin: 0 0 8px;
    color: var(--c212-pt-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.c212-prayer-times__title {
    margin: 0;
    color: var(--c212-pt-ink);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.08;
}

.c212-prayer-times__date {
    margin: 12px 0 0;
    color: var(--c212-pt-muted);
    font-size: 15px;
    font-weight: 600;
}

.c212-prayer-times__copy-shell {
    margin-top: 14px;
}

.c212-prayer-times__copy,
.c212-prayer-times__section-copy {
    margin: 10px 0 0;
    color: var(--c212-pt-muted);
    font-size: 15px;
    line-height: 1.7;
}

.c212-prayer-times__controls {
    display: flex;
    align-items: stretch;
    margin-top: 20px;
    border: 1px solid var(--c212-pt-border-strong);
    background: #fff;
}

.c212-prayer-times__controls:focus-within {
    border-color: var(--c212-pt-accent);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.c212-prayer-times__search-shell {
    position: relative;
    flex: 1 1 auto;
}

.c212-prayer-times__selector-shell {
    flex: 0 0 240px;
    min-width: 0;
    border-left: 1px solid var(--c212-pt-border);
}

.c212-prayer-times__search,
.c212-prayer-times__selector {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: none;
    background: transparent;
    color: var(--c212-pt-ink);
    font-size: 15px;
    font-weight: 600;
}

.c212-prayer-times__search:focus,
.c212-prayer-times__selector:focus {
    outline: none;
}

.c212-prayer-times__selector {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.c212-prayer-times__suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    overflow: hidden;
    border: 1px solid var(--c212-pt-border-strong);
    background: #fff;
    box-shadow: var(--c212-pt-shadow);
}

.c212-prayer-times__suggestions.is-visible {
    display: block;
}

.c212-prayer-times__suggestion {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid var(--c212-pt-border);
    color: var(--c212-pt-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.c212-prayer-times__suggestion:first-child {
    border-top: none;
}

.c212-prayer-times__suggestion:hover {
    background: var(--c212-pt-accent-soft);
    color: var(--c212-pt-accent-dark);
}

.c212-prayer-times__action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.c212-prayer-times__secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--c212-pt-accent);
    background: #fff;
    color: var(--c212-pt-accent);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.c212-prayer-times__secondary-link:hover {
    background: var(--c212-pt-accent-soft);
    color: var(--c212-pt-accent-dark);
}

.c212-prayer-times__section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--c212-pt-border);
    background: var(--c212-pt-surface-alt);
}

.c212-prayer-times__section-title {
    margin: 0;
    color: var(--c212-pt-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.c212-prayer-times__city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.c212-prayer-times__city-card {
    position: relative;
    display: block;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--c212-pt-border);
    background-color: #101828;
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.82)), var(--city-image);
    background-position: center;
    background-size: cover;
    box-shadow: var(--c212-pt-shadow);
    color: #fff;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.c212-prayer-times__city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.c212-prayer-times__city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.7));
}

.c212-prayer-times__city-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 20px;
}

.c212-prayer-times__city-kicker {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: rgba(215, 25, 32, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c212-prayer-times__city-name {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.c212-prayer-times__city-time {
    margin-top: 14px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.c212-prayer-times__table-shell {
    overflow: hidden;
    border: 1px solid var(--c212-pt-border);
    background: #fff;
    box-shadow: var(--c212-pt-shadow);
}

.c212-prayer-times__table-shell--daily {
    margin-bottom: 24px;
}

.c212-prayer-times__table-wrap {
    overflow-x: auto;
}

.c212-prayer-times__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.c212-prayer-times__table--daily {
    min-width: 0;
    table-layout: fixed;
}

.c212-prayer-times__table th,
.c212-prayer-times__table td {
    padding: 14px 16px;
    border-top: 1px solid var(--c212-pt-border);
    text-align: left;
}

.c212-prayer-times__table thead th {
    border-top: none;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c212-prayer-times__table tbody tr:nth-child(even) {
    background: #fbfbfc;
}

.c212-prayer-times__table tbody tr.is-today {
    background: var(--c212-pt-accent-soft);
    color: var(--c212-pt-accent-dark);
    font-weight: 800;
}

.c212-prayer-times__table--daily th,
.c212-prayer-times__table--daily td {
    text-align: center;
}

.c212-prayer-times__table--daily td {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
}

.c212-prayer-times__cta-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--c212-pt-border);
    background: #fff;
}

.c212-prayer-times__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    background: var(--c212-pt-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.c212-prayer-times__download:hover {
    background: var(--c212-pt-accent-dark);
    color: #fff;
}

.c212-prayer-times--error {
    padding: 18px;
    border: 1px solid #f1c0c3;
    background: #fff4f5;
    color: #8f2431;
}

@media (max-width: 1100px) {
    .c212-prayer-times__city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .c212-prayer-times__topbar,
    .c212-prayer-times__section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .c212-prayer-times__controls {
        flex-direction: column;
    }

    .c212-prayer-times__selector-shell {
        flex-basis: auto;
        border-top: 1px solid var(--c212-pt-border);
        border-left: none;
    }

    .c212-prayer-times__table--daily {
        min-width: 640px;
    }
}

@media (max-width: 640px) {
    .c212-prayer-times__hero {
        padding: 18px;
    }

    .c212-prayer-times__section-head,
    .c212-prayer-times__cta-shell {
        padding: 16px;
    }

    .c212-prayer-times__city-grid {
        grid-template-columns: 1fr;
    }

    .c212-prayer-times__city-card {
        min-height: 190px;
    }
}

@media print {
    .c212-prayer-times__controls,
    .c212-prayer-times__action-row,
    .c212-prayer-times__download,
    .c212-prayer-times__secondary-link {
        display: none !important;
    }

    .c212-prayer-times__hero,
    .c212-prayer-times__table-shell {
        box-shadow: none;
        border-color: #cfd5dc;
    }
}