/* awqat.ir — styles
   Palette: lapis (Persian tile blue), firouzeh (turquoise), saffron (sun), cool mist paper.
   Signature: the live sky hero + 24h day ribbon. Everything else stays quiet. */

@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn-nl.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("/assets/fonts/lalezar.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #EEF3F3;
  --surface: #FFFFFF;
  --ink: #10202B;
  --ink-2: #4A5D69;
  --line: #D3DEDF;
  --lapis: #1B3F73;
  --firouzeh: #0B7F7D;
  --firouzeh-soft: #DDF1EF;
  --saffron: #C98F25;
  --row-alt: #F6F9F9;
  --fri: #FBF4E6;
  --focus: #0B7F7D;
  --radius: 14px;
  --font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1520; --surface: #102131; --ink: #E4ECEF; --ink-2: #9AB0BC; --line: #1F3447;
    --lapis: #7FA7E0; --firouzeh: #45C6BE; --firouzeh-soft: #12353A; --saffron: #E8B24E;
    --row-alt: #0E1D2B; --fri: #1C2219; --focus: #45C6BE; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1520; --surface: #102131; --ink: #E4ECEF; --ink-2: #9AB0BC; --line: #1F3447;
  --lapis: #7FA7E0; --firouzeh: #45C6BE; --firouzeh-soft: #12353A; --saffron: #E8B24E;
  --row-alt: #0E1D2B; --fri: #1C2219; --focus: #45C6BE; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--font); font-feature-settings: "ss01"; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: var(--firouzeh); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h2 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 10px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
time, .t-val, .mt td { font-variant-numeric: tabular-nums; }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 34px; height: 34px; }
.brand-word { font: 400 1.7rem/1 var(--display); color: var(--lapis); padding-top: 4px; }
.search { position: relative; flex: 1; max-width: 460px; margin-inline-start: auto; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 18px 0 40px; outline: none; transition: border-color .15s; }
.search input:focus { border-color: var(--firouzeh); box-shadow: 0 0 0 3px color-mix(in srgb, var(--firouzeh) 22%, transparent); }
.search::after { content: ""; position: absolute; left: 15px; top: 13px; width: 11px; height: 11px; border: 2px solid var(--ink-2); border-radius: 50%; pointer-events: none; }
.search::before { content: ""; position: absolute; left: 25px; top: 25px; width: 6px; height: 2px; background: var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.search-list { position: absolute; inset-inline: 0; top: 48px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(16, 32, 43, .28); max-height: 60vh; overflow: auto; }
.search-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.search-list li small { color: var(--ink-2); }
.search-list li[aria-selected="true"], .search-list li:hover { background: var(--firouzeh-soft); }
.search-list .empty { cursor: default; color: var(--ink-2); }
.head-nav { display: flex; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.icon-btn svg, .chip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }
.icon-btn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sky hero (the signature) */
.sky { --sky-top: #14284F; --sky-bot: #3B4E86; position: relative; color: #fff; background: linear-gradient(180deg, var(--sky-top), var(--sky-bot)); transition: background 1.2s; overflow: hidden; isolation: isolate; }
.sky-stars { position: absolute; inset: 0; z-index: -1; opacity: var(--stars, .0); transition: opacity 1.2s;
  background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 60%, transparent), radial-gradient(1px 1px at 28% 64%, #fff 60%, transparent), radial-gradient(1.4px 1.4px at 44% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 63% 42%, #fff 60%, transparent), radial-gradient(1.3px 1.3px at 78% 14%, #fff 60%, transparent), radial-gradient(1px 1px at 88% 58%, #fff 60%, transparent), radial-gradient(1px 1px at 6% 76%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 52% 80%, #fff 60%, transparent), radial-gradient(1px 1px at 35% 38%, #fff 60%, transparent), radial-gradient(1px 1px at 94% 30%, #fff 60%, transparent); }
.sky-inner { padding: 22px 0 18px; }
.sky.on-light { color: #0E2236; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .85rem; opacity: .85; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 4px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.sky-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: end; }
.sky h1 { margin: 0; font-weight: 400; }
.h1-pre { display: block; font: 700 1rem/1.4 var(--font); opacity: .85; }
.h1-city { display: block; font: 400 clamp(2.8rem, 7vw, 4.6rem)/1.1 var(--display); letter-spacing: 0; padding-top: 6px; }
.sky-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 14px; font-size: .9rem; opacity: .85; }
.dates { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.dates div { min-width: 0; }
.dates dt { font-size: .75rem; opacity: .7; }
.dates dd { margin: 0; font-weight: 700; }
.next { justify-self: end; text-align: start; min-width: 0; }
.next p { margin: 0; }
.next-label { font-size: 1rem; opacity: .9; }
.next-label b { font-weight: 800; }
.next-count { font: 400 clamp(3.4rem, 10vw, 6.2rem)/1 var(--display); letter-spacing: .02em; margin: 6px 0 4px !important; text-align: right; }
.next-at { font-size: .95rem; opacity: .9; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.next-at .now { opacity: .75; }

.ribbon-wrap { padding-bottom: 18px; }
.ribbon { position: relative; height: 16px; outline: 1px solid rgba(255,255,255,.35); outline-offset: 2px; border-radius: 999px; background: linear-gradient(90deg, #0E1B33, #3B4E86 25%, #A9D3EE 50%, #E58E62 72%, #0E1B33); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); direction: ltr; }
.ribbon .tick { position: absolute; top: -5px; width: 2px; height: 26px; background: rgba(255,255,255,.75); border-radius: 2px; transform: translateX(-1px); }
.ribbon .tick span { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: .68rem; white-space: nowrap; opacity: .85; }
.ribbon .tick.is-next { background: var(--saffron); }
.ribbon-sun { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3C4, #F5B93B 60%, #D98A12); box-shadow: 0 0 0 4px rgba(245,185,59,.25), 0 0 22px 6px rgba(245,185,59,.55); left: 50%; z-index: 2; transition: left 1s; }
.ribbon-sun.below { background: radial-gradient(circle at 35% 35%, #fff, #C9D6EA 60%, #8FA4C8); box-shadow: 0 0 0 4px rgba(201,214,234,.2), 0 0 16px 4px rgba(201,214,234,.4); }
.ribbon-scale { display: flex; justify-content: space-between; direction: ltr; font-size: .7rem; opacity: .65; margin-top: 30px; }
.sky.on-light .ribbon .tick { background: rgba(14,34,54,.55); }

/* ---------- today's times */
.times-sec { margin-top: -1px; }
.times { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.time { position: relative; padding: 16px 16px 14px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.time:first-child { border-inline-start: 0; }
.t-name { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.t-val { font-size: 1.9rem; font-weight: 800; letter-spacing: .01em; line-height: 1.25; text-align: right; }
.t-rel { font-size: .78rem; color: var(--ink-2); min-height: 1.3em; }
.time.past .t-val { color: var(--ink-2); font-weight: 600; }
.time.is-next { background: var(--firouzeh-soft); }
.time.is-next::after { content: ""; position: absolute; inset-inline: 14px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--firouzeh); }
.time.is-next .t-rel { color: var(--firouzeh); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; font-size: .88rem; }
.chip svg { width: 18px; height: 18px; }
.chip:hover { border-color: var(--firouzeh); }
.chip[aria-pressed="true"] { background: var(--firouzeh); border-color: var(--firouzeh); color: #fff; }

/* ---------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin: 28px auto 48px; align-items: start; }
.layout.single { grid-template-columns: minmax(0, 1fr); }
.col-main, .col-side { display: grid; gap: 24px; min-width: 0; }
.col-main > *, .col-side > *, .layout > * { min-width: 0; }
.panel, .month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.month { padding: 18px 0 6px; }
.month-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 0 20px 12px; }
.month-head h2 { margin: 0; }
.month-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.btn.primary { background: var(--lapis); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0A1520; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0A1520; } }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--firouzeh); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mt { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mt th, .mt td { padding: 9px 12px; text-align: center; white-space: nowrap; border-top: 1px solid var(--line); }
.mt thead th { font-size: .8rem; color: var(--ink-2); font-weight: 600; border-top: 0; position: sticky; top: 0; background: var(--surface); }
.mt tbody th { text-align: start; font-weight: 600; padding-inline-start: 20px; }
.mt tbody tr:nth-child(even) { background: var(--row-alt); }
.mt tr[data-fri] { background: var(--fri) !important; }
.mt tr.today { background: var(--firouzeh-soft) !important; box-shadow: inset -4px 0 0 var(--firouzeh); }

.d-n { display: inline-block; min-width: 1.6em; font-weight: 800; }
.d-w { color: var(--ink-2); font-weight: 400; font-size: .85rem; }
.city-table tbody th a { color: var(--ink); text-decoration: none; font-weight: 700; }
.city-table tbody th a:hover { color: var(--firouzeh); text-decoration: underline; }

/* qibla mini */
.qm-row { display: flex; gap: 16px; align-items: center; }
.qm-row > div { min-width: 0; }
.qm-row p { margin: 0 0 4px; font-size: .9rem; }
.qm-dial { width: 96px; height: 96px; flex: none; }
.qm-ring { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.qm-n { font: 700 9px var(--font); fill: var(--ink-2); text-anchor: middle; }
.qm-needle { fill: var(--firouzeh); }
.qm-kaaba { fill: var(--ink); }
.qm-hub { fill: var(--saffron); }
.qm-deg { margin: 0; }
.qm-deg b { font-size: 1.6rem; font-weight: 800; margin-inline-end: 4px; }
.link { font-weight: 700; }

.near-list { list-style: none; padding: 0; margin: 0; }
.near-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.near-list li:first-child a { border-top: 0; }
.near-list a:hover span { color: var(--firouzeh); }
.near-list small { color: var(--ink-2); }
.near-list time { font-weight: 700; }
.month-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.month-links a { text-align: center; padding: 7px 4px; border-radius: 9px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.month-links a:hover { border-color: var(--firouzeh); }
.month-links a[aria-current] { background: var(--lapis); border-color: var(--lapis); color: #fff; }
.link-cloud { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.link-cloud a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.link-cloud a:hover { color: var(--firouzeh); text-decoration: underline; }
.link-cloud.big a { font-weight: 700; font-size: 1rem; }
.tool-list { margin: 0; padding-inline-start: 18px; }

/* prose & faq */
.prose { max-width: 72ch; }
.prose h2 { margin-top: .4em; }
.prose p, .faq p { color: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.defs dt { font-weight: 800; margin-top: 12px; }
.defs dd { margin: 2px 0 0; color: var(--ink-2); }
.faq { max-width: 80ch; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--firouzeh); font-weight: 800; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; }

/* plain hero (secondary pages) */
.plain-hero { background: linear-gradient(180deg, var(--lapis), color-mix(in srgb, var(--lapis) 70%, var(--firouzeh))); color: #fff; padding: 22px 0 28px; }
:root[data-theme="dark"] .plain-hero { background: linear-gradient(180deg, #13294A, #0F3A44); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plain-hero { background: linear-gradient(180deg, #13294A, #0F3A44); } }
.plain-hero h1 { font: 400 clamp(2rem, 5vw, 3rem)/1.2 var(--display); margin: 0 0 .3em; }
.plain-hero .lead { max-width: 70ch; opacity: .92; }
.plain-hero a:not(.btn) { color: #fff; }
.plain-hero .btn.primary { background: #fff; color: var(--lapis); }
:root[data-theme="dark"] .plain-hero .btn.primary { color: #13294A; }
.plain-hero .field select { background: rgba(255,255,255,.95); color: #10202B; }
.today-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.today-big dt { opacity: .75; font-size: .85rem; }
.today-big dd { margin: 0; font: 400 clamp(1.4rem, 3.4vw, 2.2rem)/1.3 var(--display); }

.tile-list { list-style: none; padding: 0; margin: 24px 0 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile-list.compact { margin: 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile-list a { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.tile-list a:hover { border-color: var(--firouzeh); }
.tile-list small { grid-column: 1; color: var(--ink-2); font-size: .8rem; }
.tile-list time { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 800; color: var(--lapis); }

/* qibla app */
.qibla-app { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 28px; align-items: center; }
.compass svg { width: 100%; height: auto; display: block; }
#compass-rose { transition: transform .25s ease-out; transform-origin: 150px 150px; }
.c-ring { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.c-tick { stroke: var(--ink-2); stroke-width: 1.5; }
.c-card { font: 800 16px var(--font); fill: var(--ink); text-anchor: middle; direction: ltr; }
.c-needle { fill: var(--firouzeh); }
.c-kaaba { fill: var(--ink); }
.c-hub { fill: var(--saffron); }
.c-top { fill: var(--saffron); }
.q-big { display: flex; flex-direction: column; margin: 0 0 8px; }
.q-big b { font: 400 3.6rem/1.1 var(--display); color: var(--lapis); text-align: right; }
.compass.aligned .c-top { fill: var(--firouzeh); }

/* settings sheet */
.sheet { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink); width: min(520px, 100% - 24px); max-height: 90vh; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.sheet::backdrop { background: rgba(8, 18, 28, .5); backdrop-filter: blur(3px); }
.sheet-body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 700; font-size: .9rem; padding: 0; }
.field select, .field input[type="number"] { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--paper); }
.field small { color: var(--ink-2); font-size: .8rem; }
.field.checks label { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.field.inline, .field .inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--firouzeh); }
.sheet-actions { display: flex; gap: 8px; }

/* footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 34px 0 24px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 28px; }
.foot-h { font-size: .95rem; margin-bottom: .8em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fine { color: var(--ink-2); font-size: .8rem; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .head-row { gap: 6px; height: 58px; }
  .brand-word { display: none; }
  .search input { padding-inline: 14px 36px; height: 40px; font-size: 16px; }
  .icon-btn { width: 38px; height: 38px; }
  .sky-grid { grid-template-columns: 1fr; gap: 18px; }
  .next { justify-self: stretch; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); }
  .sky.on-light .next { border-top-color: rgba(14,34,54,.2); }
  .next-count { text-align: right; }
  .times { grid-template-columns: repeat(3, 1fr); }
  .time { border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); padding: 12px; }
  .time:nth-child(-n+3) { border-top: 0; }
  .t-val { font-size: 1.45rem; }
  .ribbon .tick span { display: none; }
  .ribbon-scale { margin-top: 10px; }
  .qibla-app { grid-template-columns: 1fr; }
  .today-big { grid-template-columns: 1fr; }
  .month-head { padding-inline: 14px; }
  .mt th, .mt td { padding: 8px 5px; font-size: .84rem; }
  .mt thead th { font-size: .7rem; white-space: normal; line-height: 1.3; }
  .mt tbody th { padding-inline-start: 12px; }
  .d-w { display: block; font-size: .72rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .times { grid-template-columns: repeat(2, 1fr); }
  .time:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .time:nth-child(-n+2) { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- print: a clean monthly timetable */
@media print {
  .site-head, .site-foot, .actions, .month-nav, .col-side, .faq, .prose, .sky-stars, .ribbon-wrap, .next, .crumbs, .plain-hero .btn, .times-sec { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sky, .plain-hero { background: none !important; color: #000 !important; padding: 0; }
  .layout { display: block; margin: 0; }
  .month { border: 0; padding: 0; }
  .mt th, .mt td { padding: 3px 6px; border-top: 1px solid #bbb; }
  .mt tbody tr:nth-child(even), .mt tr[data-fri] { background: none !important; }
}
