/* Country page (prayer-times.php, /prayer-times/{country}) — round 323.
   Logical properties only, so css/rtl/country.css is the same file. */

/* ── heading: flag + name, the city search ── */
.gr-cty-head { margin-bottom: 34px; }
.gr-cty-top { display: flex; align-items: flex-end; gap: 18px; }
.gr-cty-flag { flex: none; width: 64px; height: 48px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 20px -12px rgba(0, 0, 0, .4); margin-bottom: 10px; }
.gr-cty .gr-lead { font-size: 17px; }
.gr-cty-search { margin: 26px 0 0; max-width: 560px; }
.gr-cty-search + .gr-psearch-none { margin: 10px 0 0; }
.gr-cty-search .gr-psearch-res a { font-weight: 600; }

/* ── today in the largest cities: the style of the monthly vaktija on the city page ── */
.gr-cty-today h2, .gr-cty-all h2 { margin-bottom: 4px; }
.gr-table-cty { min-width: 720px; }
.gr-table-cty caption { text-align: start; white-space: normal; }
.gr-cty-legend { float: inline-end; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t-text-secondary); }
.gr-cty-legend i { width: 18px; height: 12px; border-radius: 4px; background: rgba(var(--t-accent-rgb), .16); box-shadow: inset 0 0 0 1px rgba(var(--t-accent-rgb), .45); }
.gr-table-cty thead th:nth-child(1) { width: 19%; }
.gr-table-cty thead th:nth-child(2) { width: auto; }
.gr-table-cty tbody th { font-size: 15px; padding-block: 12px; }
.gr-table-cty tbody th a { border-bottom: 0; }
.gr-table-cty tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gr-table-cty tbody td { font-size: 16.5px; padding-block: 12px; }
/* the month table styles its 2nd column as the Hijri date — here it is a time like the others */
.gr-table-cty tbody td:nth-child(2) { font: 600 16.5px/1.2 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; color: inherit; white-space: nowrap; }
.gr-table-cty tbody td[data-k="Sunrise"] { color: var(--t-text-secondary); font-weight: 500; }
.gr-table-cty tbody td.is-past { opacity: .5; }
.gr-table-cty tbody td.is-next { color: var(--t-accent); font-weight: 700; }
.gr-table-cty tbody td.is-next > b { display: inline-block; margin: -4px 0; padding: 4px 10px; border-radius: 9px; font-weight: inherit; background: rgba(var(--t-accent-rgb), .13); box-shadow: inset 0 0 0 1px rgba(var(--t-accent-rgb), .35); }
.gr-table-cty tr.is-cap > * { background: rgba(var(--t-accent-rgb), .045); }
.gr-table-cty tbody tr:hover > * { background: rgba(var(--t-accent-rgb), .07); }
/* the city stays in view when the table scrolls sideways on a phone */
.gr-table-cty tbody th, .gr-table-cty thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--t-bg); }
.gr-table-cty tr.is-cap th { background: color-mix(in srgb, var(--t-bg) 95%, rgb(var(--t-accent-rgb))); }

/* ── nearest mosque ── */
.gr-cty-mq { margin-top: 8px; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(16, 147, 106, .28); background: linear-gradient(135deg, rgba(16, 147, 106, .09), rgba(16, 147, 106, .02) 60%); }
.gr-cty-mq-main { display: flex; align-items: center; gap: 18px; }
.gr-cty-mq .gr-mq-ic { width: 52px; height: 52px; border-radius: 14px; }
.gr-cty-mq .gr-mq-ic svg { width: 28px; height: 28px; }
.gr-cty-mq h2 { margin: 0 0 4px; font-size: 1.3rem; }
.gr-cty-mq .gr-mq-body p { margin: 0; max-width: 620px; opacity: .85; line-height: 1.55; }
.gr-seo-block a.gr-cty-mq-go { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; background: #10936a; color: #fff; font-weight: 650; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(16, 147, 106, .9); transition: background .2s, transform .2s; }
.gr-seo-block a.gr-cty-mq-go:hover, .gr-seo-block a.gr-cty-mq-go:focus-visible { background: #0c7d5a; transform: translateY(-1px); }
.gr-cty-mq-go svg { width: 18px; height: 18px; }
.gr-cty-mq-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(16, 147, 106, .18); }
.gr-cty-mq-cities span { font-size: 13px; color: var(--t-text-secondary); margin-inline-end: 4px; }
.gr-seo-block .gr-cty-mq-cities a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--t-border); background: var(--t-card, transparent); color: var(--t-text); font-size: 13.5px; text-decoration: none; }
.gr-seo-block .gr-cty-mq-cities a:hover { border-color: #10936a; color: #10936a; }
.gr-cty-mq-more { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(16, 147, 106, .18); font-size: 13.5px; }
.gr-seo-block .gr-cty-mq-more a { color: #10936a; font-weight: 600; text-decoration: none; }

/* ── all cities: letters in columns, readable size ── */
.gr-cty-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 22px; }
.gr-seo-block .gr-cty-az a { min-width: 34px; height: 34px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--t-border); color: var(--t-text); font: 600 14px/1 'Space Grotesk', sans-serif; text-decoration: none; }
.gr-seo-block .gr-cty-az a:hover { border-color: var(--t-accent); color: var(--t-accent); background: rgba(var(--t-accent-rgb), .06); }
.gr-cty-letters { columns: 4 200px; column-gap: 28px; }
.gr-cty-letter { break-inside: avoid; margin: 0 0 22px; scroll-margin-top: 90px; }
.gr-cty-letter h3 { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--t-border); color: var(--t-accent); font: 700 20px/1.1 'Space Grotesk', sans-serif; }
.gr-cty-letter ul { list-style: none; margin: 0; padding: 0; }
.gr-seo-block .gr-cty-letter a { display: block; padding: 5px 0; color: var(--t-text); font-size: 15.5px; line-height: 1.35; text-decoration: none; }
.gr-seo-block .gr-cty-letter a:hover { color: var(--t-accent); text-decoration: underline; text-underline-offset: 3px; }
.gr-seo-block .gr-cty-letter a.is-big { font-weight: 650; }

@media (max-width: 700px) {
    .gr-cty-top { gap: 12px; }
    .gr-cty-flag { width: 44px; height: 33px; margin-bottom: 6px; }
    .gr-cty .gr-lead { font-size: 15.5px; }
    .gr-cty-mq { padding: 18px 16px; }
    .gr-cty-mq-main { flex-wrap: wrap; }
    .gr-cty-mq .gr-mq-body { flex: 1 1 calc(100% - 70px); }
    .gr-seo-block a.gr-cty-mq-go { width: 100%; box-sizing: border-box; justify-content: center; }
    .gr-cty-letters { columns: 2 140px; column-gap: 18px; }
    .gr-seo-block .gr-cty-letter a { padding: 7px 0; }
}
.gr-cty-letter a small { font-size: 12.5px; color: var(--t-text-secondary); }

/* phones: the whole table on one screen — no sunrise column, smaller type */
@media (max-width: 600px) {
    .gr-table-cty { min-width: 0; table-layout: auto; }
    .gr-table-cty [data-k="Sunrise"] { display: none; }
    .gr-table-cty thead th { padding: 10px 2px 8px; font-size: 9px; letter-spacing: .02em; }
    .gr-table-cty thead th .gr-icon-mask { width: 17px; height: 17px; margin-bottom: 4px; }
    .gr-table-cty thead th:first-child, .gr-table-cty tbody th { padding-inline-start: 10px; padding-inline-end: 4px; }
    .gr-table-cty thead th:nth-child(1) { width: auto; }
    .gr-table-cty tbody th { font-size: 13px; white-space: normal; line-height: 1.2; }
    .gr-table-cty tbody td, .gr-table-cty tbody td:nth-child(2) { font-size: 13.5px; padding: 10px 1px; }
    .gr-table-cty tbody td.is-next > b { padding: 3px 5px; border-radius: 7px; }
    .gr-cty-legend { float: none; display: flex; margin-top: 4px; }
}

/* Ramadan country page (round 325): today's suhoor and iftar first while Ramadan lasts */
.gr-table-ram thead th { font-size: 10.5px; }
.gr-table-ram th.is-today, .gr-table-ram td.is-today { background: rgba(var(--t-accent-rgb), .08); }
.gr-table-ram td.is-today, .gr-table-ram tbody td.is-today:nth-child(2) { color: var(--t-accent); font-weight: 700; }
@media (max-width: 600px) {
    .gr-table-ram:has(th.is-today) th:nth-last-child(-n+2), .gr-table-ram:has(td.is-today) td:nth-last-child(-n+2) { display: none; }
}
