/* =========================================================
   وظائف المغرب : feuille de style (RTL)
   Palette et structure inspirées des portails publics : bleu nuit, accent doré, cartes blanches arrondies.
   Aucun logo ni emblème d'une administration n'est repris : le site est indépendant.
   ========================================================= */
:root {
  --navy: #06306f;
  --navy-2: #0a3f8f;
  --navy-deep: #041f4a;
  --gold: #f2a900;
  --teal: #0f8f7e;
  --ink: #16233b;
  --muted: #5a6578;
  --bg: #eeeff2;
  --card: #ffffff;
  --line: #dfe3ea;
  --field: #f1f2f5;
  --urgent: #b42318;
  --urgent-tint: #fdeceb;
  --soon: #8a5300;
  --soon-tint: #fff3d6;
  --calm: #0a3f8f;
  --calm-tint: #e8effb;
  --over: #5a6578;
  --over-tint: #edeff3;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(6, 48, 111, .08);
  --font: "Poppins", "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
}
.lv-urgent { --tint: var(--urgent-tint); --fg: var(--urgent); }
.lv-soon   { --tint: var(--soon-tint);   --fg: var(--soon); }
.lv-calm   { --tint: var(--calm-tint);   --fg: var(--calm); }
.lv-over   { --tint: var(--over-tint);   --fg: var(--over); }
.tone-0 { --tone: #06306f; --tone-bg: #e6edf8; }
.tone-1 { --tone: #0b7a6b; --tone-bg: #e2f4f1; }
.tone-2 { --tone: #8a5300; --tone-bg: #fff0cc; }
.tone-3 { --tone: #5b3fa6; --tone-bg: #eee9fb; }
.tone-4 { --tone: #a1304a; --tone-bg: #fbe8ed; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--font); }
a { color: var(--navy-2); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.fr { direction: ltr; text-align: right; unicode-bidi: isolate; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; padding: 8px 16px; background: var(--navy-deep); color: #fff; border-radius: 0 0 10px 10px; }
.skip:focus { top: 0; }

/* ---------- Barre supérieure + en-tête ---------- */
.topbar { background: var(--navy-deep); color: #cdd8ee; font-size: .82rem; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; align-items: center; gap: 4px 16px; padding-block: 8px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #ffd466; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.site-header { background: #fff; box-shadow: 0 2px 12px rgba(6, 48, 111, .08); position: relative; z-index: 5; }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding-block: 12px; color: var(--navy); text-decoration: none; }
.brand-mark { position: relative; width: 38px; height: 38px; flex: none; isolation: isolate; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; }
.brand-mark::before { background: var(--navy); }
.brand-mark::after { background: var(--gold); transform: rotate(45deg); z-index: -1; inset: 3px; }
.brand-name { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.brand-sub { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 22px 14px; color: var(--navy); font-weight: 700; text-decoration: none; }
.nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: transparent; }
.nav a:hover::after, .nav a.is-active::after { background: var(--gold); }

/* ---------- Bandeau titre ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
/* Étoile à huit branches (zellige) : motif géométrique traditionnel, dessiné ici, sans emblème ni logo officiel */
.star { position: absolute; inset-block-start: 6px; inset-inline-end: 60px; width: 230px; aspect-ratio: 1; opacity: .9; pointer-events: none; }
.star svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.hero:not(.hero-slim) .star { display: none; } /* accueil : pas d'étoile, le bandeau des échéances occupe cet espace */
.star circle { fill: var(--gold); stroke: none; }
.star-a { transform-origin: 100px 100px; animation: spin 48s linear infinite; }
.star-b { transform-origin: 100px 100px; animation: spin 32s linear infinite reverse; stroke: #fff; stroke-opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-in { position: relative; z-index: 1; }
.band {
  height: 14px; border-block-end: 3px solid var(--gold);
  background: repeating-conic-gradient(from 45deg, var(--navy-2) 0 25%, var(--navy-deep) 0 50%) 0 0 / 14px 14px;
}
.hero-in { padding-block: 34px 14px; }
.hero h1, .hero .hero-title { margin: 0 0 10px; font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.3; font-weight: 700; text-wrap: balance; }
.hero-lede { margin: 0 0 14px; max-width: 60ch; color: #c9d6f0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #c9d6f0; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-slim .hero-in { padding-block: 26px 70px; }
.hero:has(.ticker[hidden]) { padding-bottom: 84px; } /* pas de bande : on garde la place de la carte de filtres */

/* ---------- Bande défilante des annonces (accueil) ---------- */
.ticker { position: relative; margin-top: 4px; padding-block: 6px 84px; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 16px; padding-inline-end: 16px; animation: tk-move var(--tk-time, 60s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes tk-move { to { transform: translateX(-50%); } } /* de droite à gauche */
.tk-card {
  direction: rtl; display: grid; gap: 12px; align-content: start; flex: none; width: 340px; padding: 16px 18px;
  border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none;
}
.tk-card:hover, .tk-card:focus-visible { background: rgba(255, 255, 255, .18); }
.slide-tag { justify-self: start; padding: 2px 14px; border-radius: 999px; background: var(--gold); color: #3a2a00; font-size: .78rem; font-weight: 700; }
.slide-main { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.soon-n { display: grid; justify-items: center; align-content: center; width: 64px; height: 64px; border-radius: 16px; background: var(--tint); color: var(--fg); line-height: 1; text-align: center; }
.soon-n b { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.soon-n small { margin-top: 3px; font-size: .72rem; font-weight: 600; }
.soon-txt { display: grid; min-width: 0; gap: 2px; }
.slide-title { font-weight: 700; font-size: .98rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soon-org { font-size: .82rem; color: #b9c8e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: #dbe5f7; }
.slide-meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) { .tk-card { width: 290px; } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; }
  .tk-card[aria-hidden="true"] { display: none; }
}

/* ---------- Carte de filtres (chevauche le bandeau) ---------- */
.main { position: relative; z-index: 2; }
.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  margin-top: -62px; padding: 22px; background: var(--card); border-radius: 22px; box-shadow: 0 12px 34px rgba(6, 48, 111, .16);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 180px; }
.field.grow { flex: 2 1 280px; }
.field > label { padding-inline: 10px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.pill {
  width: 100%; height: 52px; padding-inline: 22px; border: 2px solid transparent; border-radius: 999px;
  background-color: var(--field); color: var(--ink); font: inherit;
}
.pill:focus { border-color: var(--navy-2); background-color: #fff; outline: none; }
select.pill {
  appearance: none; -webkit-appearance: none; padding-inline-end: 22px; padding-inline-start: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2306306f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 20px center;
}
.search-btn {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--navy); color: #fff; cursor: pointer; transition: background .15s;
}
.search-btn:hover { background: var(--navy-2); }
.search-btn .ico { width: 22px; height: 22px; }

/* ---------- Résultats ---------- */
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 26px 4px 14px; }
.count { margin: 0; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border-radius: 999px;
  background: #dfe2e8; color: var(--ink); font-size: .88rem; font-weight: 500;
}
.chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .12); color: inherit; cursor: pointer; }
.chip button:hover { background: rgba(0, 0, 0, .22); }
.chip button .ico { width: 13px; height: 13px; stroke-width: 3; }
.chip-clear { padding: 6px 16px; border: 1.5px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.chip-clear:hover { background: var(--navy); color: #fff; }

.list { display: grid; gap: 16px; }
.job {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px;
  padding: 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.job:hover, .job:focus-within { box-shadow: 0 10px 30px rgba(6, 48, 111, .16); }
.job-logo {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 16px;
  background: var(--tone-bg); color: var(--tone); font-size: 1.35rem; font-weight: 700; direction: ltr; letter-spacing: .02em;
}
.job-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px; }
.job-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.5; color: var(--navy); text-wrap: balance; overflow-wrap: anywhere; }
.job-link { color: inherit; text-decoration: none; }
.job-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.job-link:focus-visible { outline: none; }
.job-link:focus-visible::after { outline: 3px solid var(--gold); outline-offset: -3px; }
.badge { flex: none; padding: 3px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600; }
.badge-gold { background: var(--gold); color: #3a2a00; }
.job-org { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.job-org .fr { min-width: 0; overflow-wrap: anywhere; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .93rem; }
.job-meta li { display: inline-flex; align-items: center; gap: 8px; }
.job-meta .ico { color: var(--navy-2); }
.job-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 16px; }
.chip-urgency {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px; border-radius: 999px;
  background: var(--tint); color: var(--fg); font-size: .84rem; font-weight: 600;
}
.pill-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 18px;
  border: 1.5px solid var(--teal); border-radius: 999px; color: var(--teal); font-size: .86rem; font-weight: 600; text-decoration: none;
}
.pill-link { white-space: nowrap; }
.pill-link:hover { background: var(--teal); color: #fff; }

.status { margin: 28px 0; text-align: center; color: var(--muted); }
.status p { margin: 0 0 14px; }
.more-wrap { display: flex; justify-content: center; margin-block: 22px 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 26px;
  border: 2px solid var(--navy); border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); }
.btn:hover { filter: brightness(.93); }
.btn-doc { justify-content: flex-start; padding: 12px 22px; border-radius: 18px; background: var(--navy); color: var(--gold); }
.btn-doc .ico { width: 34px; height: 34px; stroke-width: 1.6; }

/* ---------- Page de détail ---------- */
.detail { margin-top: -62px; padding: 26px; background: var(--card); border-radius: 22px; box-shadow: 0 12px 34px rgba(6, 48, 111, .16); }
.detail-head { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start; }
.detail-title { margin: 4px 0 10px; font-size: clamp(1.25rem, 3.6vw, 1.7rem); line-height: 1.45; font-weight: 700; color: var(--navy); text-wrap: balance; overflow-wrap: anywhere; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.deadline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 22px; padding: 16px 20px;
  border-radius: 16px; background: var(--tint); color: var(--fg);
}
.deadline .ico { width: 28px; height: 28px; }
.deadline-label { font-size: .86rem; opacity: .85; }
.deadline-big { font-size: 1.25rem; font-weight: 700; }
.deadline-note { padding: 2px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 24px; margin: 24px 0 0; padding: 0; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--calm-tint); color: var(--navy); }
.fact dt { font-size: .8rem; color: var(--muted); }
.fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.notice { margin: 24px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--field); color: var(--muted); font-size: .93rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.download-title { margin: 28px 0 10px; font-size: 1.05rem; color: var(--navy); }
.share { margin-top: 14px; }

.official { margin-top: 30px; }
.official-title { margin: 0 0 4px; font-size: 1.2rem; color: var(--navy); }
.official-hint { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.official-pages { display: grid; gap: 14px; max-width: 800px; margin-inline: auto; }
.official-pages a { display: block; }
.official-pages img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* ---------- Pages de texte ---------- */
.prose { margin-top: -62px; padding: 30px; background: var(--card); border-radius: 22px; box-shadow: 0 12px 34px rgba(6, 48, 111, .16); }
.prose h2 { margin: 28px 0 8px; font-size: 1.25rem; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 70ch; }
.prose ul { padding-inline-start: 22px; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 56px; background: var(--navy); color: #cdd8ee; }
.site-footer .band { border-block-end: 0; border-block-start: 3px solid var(--gold); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-block: 32px 22px; }
.footer-in h2 { margin: 0 0 10px; font-size: 1rem; color: #fff; }
.footer-in p { margin: 0; font-size: .9rem; }
.footer-in ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.footer-in a { color: #ffd466; text-decoration: none; }
.footer-in a:hover { text-decoration: underline; }
.footer-bottom { padding-block: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: #9fb2d8; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .star { width: 150px; inset-block-start: 10px; inset-inline-start: auto; inset-inline-end: -40px; opacity: .35; }
  .topbar-in { justify-content: center; text-align: center; }
  .nav a { padding: 12px 10px; }
  .nav a::after { inset-inline: 10px; }
  .hero-in { padding-block: 26px 12px; }
  .filters { padding: 16px; gap: 12px; }
  .field, .field.grow { flex: 1 1 100%; }
  .search-btn { width: 100%; border-radius: 999px; }
  .job { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .job-logo { width: 54px; height: 54px; border-radius: 12px; font-size: 1rem; }
  .job-title { font-size: 1.02rem; }
  .job-foot { flex-direction: column; align-items: flex-start; }
  .detail { padding: 18px; }
  .detail-head { grid-template-columns: 1fr; gap: 12px; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .star-a, .star-b { animation: none; } }

/* ---------- Publicité (Google AdSense) ---------- */
.ad-slot { margin: 6px 0; padding: 8px 12px 12px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-align: center; overflow: hidden; }
.ad-label { display: block; margin-bottom: 4px; font-size: .72rem; color: var(--muted); }
.ad-ins { display: block; min-height: 100px; }
.ad-demo { display: grid; place-items: center; min-height: 100px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .9rem; }
#homeAd:not(:empty) { margin-top: 22px; }
.seo-list { margin: 0; padding: 0 22px; list-style: none; display: grid; gap: 8px; }
.seo-list a { color: var(--navy); }
.linklike { padding: 0; border: 0; background: none; color: #ffd466; font: inherit; cursor: pointer; text-align: start; }
.linklike:hover { text-decoration: underline; }

.topbar-msg { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

.contact-mail { font-size: 1.3rem; font-weight: 700; direction: ltr; text-align: start; }

/* ---------- Pages outils : عطل مدرسية / أوقات الصلاة ---------- */
.tool { margin-top: -62px; padding: 26px; background: var(--card); border-radius: 22px; box-shadow: 0 12px 34px rgba(6, 48, 111, .16); }
.tool-h { margin: 26px 0 12px; font-size: 1.15rem; color: var(--navy); }
.tool-note { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--field); color: var(--muted); font-size: .9rem; }
.next-card { display: grid; gap: 4px; padding: 18px 22px; border-radius: 18px; background: var(--navy); color: #fff; border-inline-start: 6px solid var(--gold); }
.next-label { font-size: .85rem; color: #ffd466; font-weight: 600; }
.next-card strong { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.3; }
.next-left { color: #c9d6f0; }
.period-list { display: grid; gap: 10px; }
.period { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 14px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 16px; }
.period-name { display: block; color: var(--navy); font-size: 1.05rem; }
.period-dates { color: var(--muted); font-size: .92rem; }
.period-badge { padding: 3px 14px; border-radius: 999px; background: var(--calm-tint); color: var(--calm); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.period-len { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.period.is-now { border-color: var(--teal); background: #eef9f6; }
.period.is-now .period-badge { background: var(--teal); color: #fff; }
.period.is-past { opacity: .55; }
.period.is-past .period-badge { background: var(--over-tint); color: var(--over); }
.feast-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.feast-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 14px; border-radius: 12px; background: var(--field); }
.feast-list li.is-past { opacity: .5; }
.feast-list li > span:first-child { font-weight: 700; color: var(--navy); min-width: 12ch; }
.feast-date { color: var(--muted); font-size: .92rem; }
.tag-approx { padding: 0 10px; border-radius: 999px; background: var(--soon-tint); color: var(--soon); font-size: .76rem; font-weight: 700; }
.prayer-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-bottom: 18px; }
.prayer-top .field { flex: 0 1 280px; }
.p-date { margin: 0; color: var(--muted); font-weight: 600; }
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.ptime { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border-radius: 16px; background: var(--field); text-align: center; }
.ptime .p-name { color: var(--muted); font-weight: 600; }
.ptime .p-val { font-size: 1.7rem; color: var(--navy); font-variant-numeric: tabular-nums; direction: ltr; }
.ptime.is-next { background: var(--navy); }
.ptime.is-next .p-name { color: #ffd466; }
.ptime.is-next .p-val { color: #fff; }
.ptime.is-sun { opacity: .75; }
@media (max-width: 720px) { .tool { padding: 18px; } .period { grid-template-columns: 1fr auto; } .period-len { display: none; } }
