/* ═══════════════════════════════════════════
   Ramadan 2027 Timetable — Themed
   Uses shared theme variables (--t-*, --cal-*)
   ═══════════════════════════════════════════ */

/* ─── Page base ─── */
body.ramadan-page {
    background-color: var(--t-bg);
    color: var(--t-text);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.35s, color 0.35s;
}

/* ─── Theme switcher (top-right) ─── */
.ram-topbar-right {
    position: absolute;
    top: 0;
    right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Container ─── */
.ram-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 72px 96px 64px 16px;
    position: relative;
    z-index: 10;
}

/* ─── Hero ─── */
.ram-hero-search-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 45px;
    margin-bottom: 50px;
}
.ram-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 0 0 calc(66.666% - 14px);
    max-width: calc(66.666% - 14px);
    margin-bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.ram-hero-lantern {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    background-color: var(--t-accent);
    opacity: 0.85;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.ram-hero-text {
    flex: 1;
}
.ram-hero-tag {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--t-accent);
    padding: 5px 1px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.ram-hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--t-text);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.ram-hero-title #ram-h1-city {
    display: block;
    margin-top: 6px;
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.2;
    color: var(--t-text-secondary);
}
.ram-hero-subtitle {
    font-size: 14px;
    line-height: 1.65;
    color: var(--t-text-secondary);
    margin: 0;
    max-width: 600px;
}

/* ─── Location strip ─── */
.ram-location-strip {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    gap: 16px;
    margin-bottom: 0;
}

.ram-location-search {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.ram-location-form {
    width: 100%;
}

.ram-location-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--t-input-bg);
    border: 1px solid var(--t-border);
    border-radius: 1rem;
    padding: 15px 14px;
    cursor: text;
    transition: border-color 0.2s;
}
.ram-location-input-wrap:focus-within {
    border-color: var(--t-accent);
}
.ram-location-input-wrap svg {
    width: 16px;
    height: 16px;
    color: var(--t-text-secondary);
    flex-shrink: 0;
}
.ram-location-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--t-text);
    font-family: inherit;
}
.ram-location-input-wrap input::placeholder {
    color: var(--t-text-dim);
}

.ram-location-gps {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--t-text-secondary);
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.ram-location-gps:hover {
    color: var(--t-accent);
    background: var(--t-hover);
}
.ram-location-gps svg {
    width: 16px;
    height: 16px;
}

.ram-location-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--t-panel);
    border: 1px solid var(--t-border);
    border-radius: 10px;
    box-shadow: var(--t-shadow);
    max-height: 220px;
    overflow-y: auto;
    z-index: 200;
}
.ram-location-result-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--t-text);
    transition: background 0.15s;
    border-bottom: 1px solid var(--t-border);
}
.ram-location-result-item:last-child { border-bottom: none; }
.ram-location-result-item:hover { background: var(--t-hover); }
.ram-location-result-item .result-city { font-weight: 600; }
.ram-location-result-item .result-country { color: var(--t-text-secondary); margin-left: 6px; font-size: 12px; }

/* ─── Table section ─── */
.ram-table-wrap {
    background: var(--t-panel);
    border: 1px solid var(--t-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ram-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--t-border);
}
.ram-table-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--t-text);
    margin: 0;
}
.ram-table-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ram-table-date-line {
    margin: 0;
    font-size: 13px;
    color: var(--t-text-secondary);
    white-space: nowrap;
}
.ram-table-date-line span {
    font-weight: 700;
    color: var(--t-text);
}

.ram-legend {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ram-table-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ram-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ram-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--t-input-bg);
    color: var(--t-text);
    border: 1px solid var(--t-border);
    border-radius: 9px;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ram-action-btn svg {
    width: 14px;
    height: 14px;
}

.ram-action-btn:hover {
    background: var(--t-hover);
    border-color: rgba(var(--t-accent-rgb), 0.35);
}

.ram-action-btn-primary {
    background: var(--t-accent);
    color: var(--t-bg);
    border-color: transparent;
}

.ram-action-btn-primary:hover {
    opacity: 0.9;
    background: var(--t-accent);
}
.ram-legend-item {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.ram-legend-sehur {
    background: rgba(138, 79, 255, 0.12);
    color: #7c3aed;
}
.ram-legend-iftar {
    background: rgba(236, 130, 30, 0.12);
    color: #d97706;
}
.ram-legend-today {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

/* ─── Loading state ─── */
.ram-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    gap: 16px;
    color: var(--t-text-secondary);
}
.ram-loading p { font-size: 14px; margin: 0; }

.ram-loading[hidden],
.ram-error[hidden],
.ram-table-scroll[hidden] {
    display: none !important;
}

.ram-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--t-border);
    border-top-color: var(--t-accent);
    border-radius: 50%;
    animation: ram-spin 0.8s linear infinite;
}
@keyframes ram-spin {
    to { transform: rotate(360deg); }
}

/* ─── Error state ─── */
.ram-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    gap: 12px;
    color: var(--t-text-secondary);
    text-align: center;
}
.ram-error svg {
    width: 40px;
    height: 40px;
    color: #ef4444;
    opacity: 0.7;
}
.ram-error p { font-size: 14px; margin: 0; }

.ram-btn-retry {
    margin-top: 4px;
    padding: 8px 20px;
    background: var(--t-accent);
    color: var(--t-bg);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}
.ram-btn-retry:hover { opacity: 0.85; }

/* ─── Table scroll wrapper ─── */
.ram-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── Table ─── */
.ram-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13.5px;
    white-space: normal;
}

.ram-table thead tr {
    background: var(--t-card, var(--t-panel));
    border-bottom: 2px solid var(--t-border);
}

.ram-table th {
    padding: 12px 14px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--t-text-secondary);
    white-space: normal;
    line-height: 1.15;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ram-table th .th-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 5px;
}

.ram-icon-mask {
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.ram-icon-mask-fajr {
    -webkit-mask-image: url('../assets/icon/fajr.svg');
    mask-image: url('../assets/icon/fajr.svg');
}

.ram-icon-mask-sunrise {
    -webkit-mask-image: url('../assets/icon/sunrise-alt.svg');
    mask-image: url('../assets/icon/sunrise-alt.svg');
}

.ram-icon-mask-maghrib {
    -webkit-mask-image: url('../assets/icon/sunset.svg');
    mask-image: url('../assets/icon/sunset.svg');
}

.ram-icon-mask-iftar {
    -webkit-mask-image: url('../assets/icon/iftar.svg');
    mask-image: url('../assets/icon/iftar.svg');
}

.ram-icon-mask-dhuhr {
    -webkit-mask-image: url('../assets/icon/dhuhr.svg');
    mask-image: url('../assets/icon/dhuhr.svg');
}

.ram-icon-mask-asr {
    -webkit-mask-image: url('../assets/icon/asr.svg');
    mask-image: url('../assets/icon/asr.svg');
}

.ram-icon-mask-isha {
    -webkit-mask-image: url('../assets/icon/isha.svg');
    mask-image: url('../assets/icon/isha.svg');
}

.ram-table td {
    padding: 10px 14px;
    text-align: center;
    color: var(--t-text);
    border-bottom: 1px solid var(--t-border);
    transition: background 0.15s;
}

.ram-cell-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ram-table th,
.ram-table td {
    overflow-wrap: anywhere;
}

/* Equal width for all prayer time columns */
.ram-table th.col-sehur,
.ram-table th.col-sunrise,
.ram-table th.col-dhuhr,
.ram-table th.col-asr,
.ram-table th.col-maghrib,
.ram-table th.col-isha,
.ram-table td.col-sehur,
.ram-table td.col-sunrise,
.ram-table td.col-dhuhr,
.ram-table td.col-asr,
.ram-table td.col-maghrib,
.ram-table td.col-isha {
    width: 9.5%;
    min-width: 0;
}

.ram-time-cell,
.ram-quick-time {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.ram-time-cell {
    font-size: clamp(15px, 1.35vw, 16px);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ram-table tbody tr:last-child td { border-bottom: none; }

.ram-table tbody tr:hover td {
    background: var(--t-hover);
}

/* ─── Day number cell ─── */
.col-day {
    width: 7%;
    font-weight: 700;
    color: var(--t-text-secondary) !important;
}

/* ─── Day + Date + Note cells ─── */
.col-weekday {
    width: 8%;
    font-size: 12px;
    font-weight: 700;
    color: var(--t-text);
}
.col-date {
    width: 9%;
    font-size: 12px;
    font-weight: 600;
    color: var(--t-text-secondary);
    font-variant-numeric: tabular-nums;
}
.col-note {
    width: 19%;
    min-width: 0;
    text-align: left !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--t-text-secondary);
}

/* ─── Sehur / Fajr highlight ─── */
.col-highlight-sehur,
th.col-highlight-sehur {
    background: rgba(138, 79, 255, 0.07) !important;
}
th.col-highlight-sehur {
    color: #7c3aed !important;
    border-bottom-color: rgba(138, 79, 255, 0.25) !important;
}
td.col-highlight-sehur {
    font-weight: 700;
    color: #7c3aed !important;
    background: rgba(138, 79, 255, 0.06) !important;
    max-height: 30px !important;
}

/* ─── Iftar / Maghrib highlight ─── */
.col-highlight-iftar,
th.col-highlight-iftar {
    background: rgba(16, 185, 129, 0.08) !important;
}
th.col-highlight-iftar {
    color: #059669 !important;
    border-bottom-color: rgba(16, 185, 129, 0.28) !important;
}
td.col-highlight-iftar {
    font-weight: 700;
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

/* ─── Friday row highlight ─── */
.ram-table tbody tr.row-friday td {
    background: rgba(59, 130, 246, 0.08) !important;
}
.ram-table tbody tr.row-friday td:first-child {
    border-left: 3px solid #3b82f6;
}
.ram-table tbody tr.row-friday .col-weekday {
    color: #2563eb !important;
}
/* Friday overlap accents for Sehur/Iftar cells */
.ram-table tbody tr.row-friday td.col-highlight-sehur {
    background: rgba(116, 98, 246, 0.14) !important;
}
.ram-table tbody tr.row-friday td.col-highlight-iftar {
    background: rgba(22, 163, 74, 0.14) !important;
}

/* ─── Today row highlight ─── */
.ram-table tbody tr.row-today td {
    background: rgba(16, 185, 129, 0.07) !important;
}
.ram-table tbody tr.row-today td:first-child {
    border-left: 3px solid #10b981;
}
.ram-table tbody tr.row-today .col-weekday {
    color: #059669 !important;
}
.ram-table tbody tr.row-today .col-day {
    color: #059669 !important;
}

/* Dark theme overrides */
[data-theme="midnight"] td.col-highlight-sehur,
[data-theme="slate"] td.col-highlight-sehur {
    color: #a78bfa !important;
    background: rgba(167, 139, 250, 0.08) !important;
}
[data-theme="midnight"] th.col-highlight-sehur,
[data-theme="slate"] th.col-highlight-sehur {
    color: #a78bfa !important;
}
[data-theme="midnight"] td.col-highlight-iftar,
[data-theme="slate"] td.col-highlight-iftar {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.12) !important;
}
[data-theme="midnight"] th.col-highlight-iftar,
[data-theme="slate"] th.col-highlight-iftar {
    color: #6ee7b7 !important;
}
[data-theme="midnight"] .ram-table tbody tr.row-friday td,
[data-theme="slate"] .ram-table tbody tr.row-friday td {
    background: rgba(96, 165, 250, 0.12) !important;
}
[data-theme="midnight"] .ram-table tbody tr.row-friday .col-weekday,
[data-theme="slate"] .ram-table tbody tr.row-friday .col-weekday {
    color: #93c5fd !important;
}
[data-theme="midnight"] .ram-table tbody tr.row-friday td.col-highlight-sehur,
[data-theme="slate"] .ram-table tbody tr.row-friday td.col-highlight-sehur {
    background: rgba(139, 116, 255, 0.2) !important;
}
[data-theme="midnight"] .ram-table tbody tr.row-friday td.col-highlight-iftar,
[data-theme="slate"] .ram-table tbody tr.row-friday td.col-highlight-iftar {
    background: rgba(16, 185, 129, 0.2) !important;
}

/* ─── Note ─── */
.ram-note {
    font-size: 12px;
    color: var(--t-text-dim);
    text-align: center;
    margin: 0;
    line-height: 1.6;
    padding: 0 16px;
}

.ram-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ram-quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--t-panel);
    border: 1px solid var(--t-border);
    border-radius: 14px;
}

.ram-quick-card h2 {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--t-text-secondary);
}

.ram-quick-time {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    color: var(--t-text);
    letter-spacing: -0.02em;
}

.ram-quick-meta {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--t-text-secondary);
}

.ram-quick-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ram-quick-icon svg {
    width: 24px;
    height: 24px;
}

.ram-quick-icon-mask {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.ram-quick-sehur {
    border-color: rgba(124, 58, 237, 0.2);
}

.ram-quick-sehur .ram-quick-time,
.ram-quick-sehur .ram-quick-icon {
    color: #7c3aed;
}

.ram-quick-sehur .ram-quick-icon {
    background: rgba(124, 58, 237, 0.12);
}

.ram-quick-iftar {
    border-color: rgba(5, 150, 105, 0.25);
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.ram-quick-iftar .ram-quick-time,
.ram-quick-iftar .ram-quick-icon {
    color: #059669;
}

.ram-quick-iftar .ram-quick-icon {
    background: rgba(5, 150, 105, 0.12);
}

.ram-today-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.ram-seo-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 60px;
}

.ram-popular-block {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.ram-faq-block h2,
.ram-popular-block h3 {
    margin: 0 0 14px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 20px;
    color: var(--t-text);
}

.ram-faq-item {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--t-border);
    background: var(--t-input-bg);
    margin-bottom: 12px;
}

.ram-faq-item:last-child {
    margin-bottom: 0;
}

.ram-faq-toggle {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: var(--t-text);
}

.ram-faq-toggle::after {
    content: '+';
    float: right;
    color: var(--t-text-secondary);
    font-weight: 700;
}

.ram-faq-item.is-open .ram-faq-toggle::after {
    content: '−';
}

.ram-faq-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.22s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.ram-faq-panel.is-open {
    opacity: 1;
    margin-top: 10px;
}

.ram-faq-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--t-text-secondary);
}

.ram-city-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ram-city-cloud li {
    margin: 0;
}

.ram-city-link {
    display: inline-block;
    text-decoration: none;
    color: var(--t-accent);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    padding: 8px 0;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s, color 0.2s;
}

.ram-city-link:hover {
    color: color-mix(in srgb, var(--t-accent) 82%, var(--t-text) 18%);
    transform: translateY(-1px);
}

.ram-city-size-2 { font-size: 11px; font-weight: 600; }
.ram-city-size-3 { font-size: 13px; }
.ram-city-size-4 { font-size: 15px; }
.ram-city-size-5 { font-size: 17px; }
.ram-city-size-6 { font-size: 20px; }
.ram-city-size-7 { font-size: 24px; font-weight: 700; }

@media (max-width: 760px) {
    .ram-table-wrap {
        padding: 18px;
    }

    .ram-table-header {
        gap: 16px;
        margin-bottom: 18px;
    }

    .ram-table-scroll {
        overflow: visible;
    }

    .ram-table,
    .ram-table tbody {
        display: block;
    }

    .ram-table thead {
        display: none;
    }

    .ram-table tr {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
        padding: 12px;
        border: 1px solid var(--t-border);
        border-radius: 16px;
        background: var(--t-card, var(--t-panel));
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    }

    .ram-table td.col-day,
    .ram-table td.col-weekday,
    .ram-table td.col-date {
        grid-column: span 2;
    }

    .ram-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .ram-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
        padding: 6px 2px;
        text-align: left;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .ram-table td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--t-text-secondary);
    }

    .ram-table td.col-note {
        grid-column: 1 / -1;
    }

    .ram-table td.col-day {
        padding: 4px 2px 6px;
    }

    .ram-table td.col-weekday,
    .ram-table td.col-date {
        padding-bottom: 6px;
    }

    .ram-table td.col-day::before {
        margin-bottom: 2px;
    }

    .ram-cell-day-value {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    .ram-table td.col-day .ram-today-badge {
        margin-left: 2px;
    }

    .ram-table td.col-note {
        white-space: normal;
        padding-top: 4px;
        padding-bottom: 8px;
    }

    .ram-table td.col-sehur,
    .ram-table td.col-sunrise,
    .ram-table td.col-dhuhr,
    .ram-table td.col-asr,
    .ram-table td.col-maghrib,
    .ram-table td.col-isha {
        grid-column: span 3;
        padding: 8px 10px;
        border: 1px solid var(--t-border);
        border-radius: 12px;
        background: var(--t-input-bg, rgba(255, 255, 255, 0.5));
    }

    .ram-table td.col-note.is-empty {
        display: none;
    }

    .ram-table td.col-note .ram-cell-value {
        line-height: 1.45;
    }

    .ram-table .col-day,
    .ram-table .col-weekday,
    .ram-table .col-date,
    .ram-table .col-note,
    .ram-table th.col-sehur,
    .ram-table th.col-sunrise,
    .ram-table th.col-dhuhr,
    .ram-table th.col-asr,
    .ram-table th.col-maghrib,
    .ram-table th.col-isha,
    .ram-table td.col-sehur,
    .ram-table td.col-sunrise,
    .ram-table td.col-dhuhr,
    .ram-table td.col-asr,
    .ram-table td.col-maghrib,
    .ram-table td.col-isha {
        width: auto;
    }

    .ram-time-cell {
        font-size: 18px;
        letter-spacing: -0.04em;
    }

    .ram-quick-grid {
        grid-template-columns: 1fr;
    }

    .ram-seo-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .ram-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ram-table-wrap {
        padding: 16px;
    }

    .ram-table tr {
        gap: 8px;
        padding: 10px;
    }

    .ram-table td {
        padding: 5px 2px;
    }
}

@media print {
    #menu-toggle,
    #sidebar,
    #sidebar-overlay,
    #site-header,
    #site-footer,
    .ram-topbar-right,
    .ram-location-strip,
    .ram-actions,
    .ram-seo-grid,
    .ram-note {
        display: none !important;
    }

    .ram-container {
        max-width: 100%;
        padding: 0;
    }

    .ram-table-wrap,
    .ram-quick-card,
    .ram-hero,
    .ram-stats-bar .ram-stat {
        border-color: #bbb !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .ram-table th,
    .ram-table td {
        color: #111 !important;
        background: #fff !important;
    }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .ram-container {
        padding: 64px 16px 48px 16px;
    }
    .ram-hero-search-row {
        flex-direction: column;
        gap: 18px;
        margin-top: 32px;
    }
    .ram-hero {
        flex: 1 1 auto;
        max-width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }
    .ram-location-strip {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .ram-hero-lantern {
        width: 72px;
        height: 72px;
    }
    .ram-topbar-right {
        right: 20px;
    }
    .ram-quick-grid,
    .ram-seo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ram-stats-bar {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }
    .ram-table th,
    .ram-table td {
        padding: 9px 10px;
        font-size: 12.5px;
    }
    .ram-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ram-actions {
        width: 100%;
    }
    .ram-action-btn {
        flex: 1;
        justify-content: center;
    }
}
