:root {
  /* Logo palette: navy #002040 + gold #d8a040 on white */
  --pt-bg: #ffffff;
  --pt-surface: #ffffff;
  --pt-ink: #002040;
  --pt-muted: #5a6b7c;
  --pt-line: #e6ebf0;
  --pt-accent: #002040;
  --pt-accent-2: #d8a040;
  /* Gold as TEXT on white: #d8a040 is only 2.33:1 and fails WCAG AA.
     Use --pt-accent-ink (5.69:1) whenever gold is the foreground colour;
     keep --pt-accent-2 for borders, rails, backgrounds and gold-on-navy. */
  --pt-accent-ink: #8a5e12;
  --pt-accent-soft: #f7f0e0;
  --pt-next: #001a33;
  --pt-header: #002040;
  --pt-header-ink: #ffffff;
  --pt-shadow: 0 12px 40px rgba(0, 32, 64, 0.08);
  --pt-radius: 18px;
  --pt-display: "Fraunces", Georgia, "Times New Roman", serif;
  --pt-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pt-mono: ui-monospace, "Cascadia Mono", monospace;
  --pt-max: 1100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--pt-sans);
  color: var(--pt-ink);
  background: var(--pt-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pt-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pt-accent-ink); }
h1, h2, h3 {
  font-family: var(--pt-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.6em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
/* The skip link must become visible when focused, or keyboard users tab into nothing. */
.screen-reader-text:focus,
.screen-reader-text:focus-visible {
  position: fixed !important;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  width: auto; height: auto;
  clip: auto; clip-path: none;
  margin: 0;
  padding: 0.75rem 1.15rem;
  background: var(--pt-ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  z-index: 999;
  box-shadow: var(--pt-shadow);
}

/* Visible focus ring — the browser default is near-invisible on navy controls. */
:where(a, button, summary, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--pt-accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
.pt-btn:focus-visible,
.pt-city__tabs a.is-active:focus-visible,
.pt-lang:focus-visible {
  outline: 3px solid var(--pt-accent-2);
  outline-offset: 3px;
}

.pt-shell {
  width: min(100% - 2rem, var(--pt-max));
  margin-inline: auto;
}

/* Header — white bar, navy nav, gold accent rail (matches logo) */
.pt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pt-line);
  box-shadow: 0 1px 0 var(--pt-accent-2), 0 8px 24px rgba(0, 32, 64, 0.06);
}
.pt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}
.pt-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--pt-ink);
  text-decoration: none;
  font-weight: 600;
  min-width: 0;
}
.pt-brand__logo {
  height: 48px;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
}
.pt-brand__name { font-size: 1.05rem; letter-spacing: -0.01em; }
.pt-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.pt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-nav a {
  color: var(--pt-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.pt-nav a:hover,
.pt-nav .current-menu-item > a,
.pt-nav .current_page_item > a {
  color: var(--pt-accent-ink);
  border-bottom-color: var(--pt-accent-2);
}
.pt-header__nav { display: block; }
.pt-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--pt-ink);
  background: var(--pt-ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}
.pt-lang:hover {
  background: var(--pt-accent-2);
  border-color: var(--pt-accent-2);
  color: var(--pt-ink);
}
.pt-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--pt-line);
  background: var(--pt-surface);
  color: var(--pt-ink);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}
.pt-menu-toggle:hover {
  border-color: var(--pt-accent-2);
  color: var(--pt-accent-2);
}

/* Hero home */
.pt-hero {
  padding: 3.2rem 0 2rem;
}
.pt-hero__card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: calc(var(--pt-radius) + 6px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--pt-shadow);
  position: relative;
  /* No overflow:hidden here — it clipped the search autocomplete dropdown.
     The glow below is self-contained via inset:0 so no clipping is needed. */
}
.pt-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 70% 130%, rgba(216, 160, 64, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.pt-hero__card > * { position: relative; z-index: 1; }
.pt-search { position: relative; z-index: 30; }
.pt-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 14ch;
  margin-bottom: 0.5rem;
}
.pt-hero__lead {
  color: var(--pt-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0 0 1.5rem;
}
.pt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pt-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--pt-accent);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.pt-btn:hover { background: #00152c; color: #fff; transform: translateY(-1px); }
.pt-btn--ghost {
  background: transparent;
  color: var(--pt-ink);
  border: 1px solid var(--pt-line);
}
.pt-btn--ghost:hover { background: var(--pt-accent-soft); color: var(--pt-ink); border-color: var(--pt-accent-2); }

.pt-search { position: relative; max-width: 420px; }
.pt-search__input {
  width: 100%;
  border: 1px solid var(--pt-line);
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
}
.pt-search__results {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  box-shadow: var(--pt-shadow);
  z-index: 20;
}
.pt-search__results a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--pt-ink);
  text-decoration: none;
}
.pt-search__results a:hover { background: var(--pt-accent-soft); }

/* City page */
.pt-city { padding: 2rem 0 3rem; }
.pt-breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--pt-muted);
}
.pt-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
}
.pt-breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.pt-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--pt-line);
  margin-inline-start: 0.15rem;
}
.pt-breadcrumbs a { color: var(--pt-muted); text-decoration: none; }
.pt-breadcrumbs a:hover { color: var(--pt-accent); }
.pt-breadcrumbs [aria-current="page"] { color: var(--pt-ink); font-weight: 600; }
.pt-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--pt-accent-ink);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.pt-eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.pt-city__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.4rem; }
.pt-city__intro {
  color: var(--pt-muted);
  max-width: 62ch;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pt-city__times-heading {
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}
.pt-city__meta {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
}
.pt-city__snapshot {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.15rem;
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  background: #f8fafc;
  font-variant-numeric: tabular-nums;
  width: fit-content;
  max-width: 100%;
}
.pt-city__snap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
}
.pt-city__snap-label {
  color: var(--pt-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pt-city__snap-time {
  color: var(--pt-ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pt-city__snap-sep {
  width: 1px;
  align-self: stretch;
  margin: 0.35rem 0;
  background: var(--pt-line);
}
.pt-city__updated { color: var(--pt-muted); font-size: 0.85rem; }
.pt-related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pt-line);
}
.pt-related-tools a {
  color: var(--pt-accent);
  font-weight: 600;
  text-decoration: none;
}
.pt-related-tools a:hover { text-decoration: underline; }
.pt-city__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  color: var(--pt-muted);
  font-size: 0.9rem;
  margin: 0;
}
.pt-hijri { color: var(--pt-ink); font-weight: 600; }
.pt-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--pt-line); display: inline-block;
}
.pt-city__tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(20,24,31,0.04);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.pt-city__tabs a {
  text-decoration: none;
  color: var(--pt-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.pt-city__tabs a.is-active {
  background: var(--pt-ink);
  color: #fff;
  box-shadow: none;
}
.pt-city__tabs a.is-active:hover { color: #fff; }

.pt-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--pt-next);
  color: #fff;
  border-radius: var(--pt-radius);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1rem;
  border-inline-start: 4px solid var(--pt-accent-2);
}
.pt-next__label { margin: 0; opacity: 0.75; font-size: 0.85rem; }
.pt-next__name { margin: 0.15rem 0 0; font-size: 1.2rem; font-weight: 600; }
.pt-next__timer {
  font-variant-numeric: tabular-nums;
  font-family: var(--pt-mono);
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pt-accent-2);
  min-height: 1.2em;
}
@media (min-width: 801px) {
  .pt-next {
    position: sticky;
    top: 72px;
    z-index: 5;
  }
}

.pt-jummah, .pt-notice {
  background: var(--pt-accent-soft);
  border-inline-start: 3px solid var(--pt-accent-2);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--pt-ink);
  margin: 0 0 1rem;
}

.pt-times {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.pt-times__item {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 96px;
}
.pt-times__item.is-next {
  border-color: var(--pt-accent-2);
  background: var(--pt-accent-soft);
  /* Logical border, not a physical inset shadow — the shadow did not mirror in
     RTL and produced a gold bar on both sides of the card in Arabic. */
  border-inline-start: 3px solid var(--pt-accent-2);
  box-shadow: none;
}
.pt-times__item[data-prayer="Sunrise"] {
  opacity: 0.82;
}
.pt-times__item[data-prayer="Sunrise"] .pt-times__time {
  font-size: 1.25rem;
}
.pt-times__name { color: var(--pt-muted); font-size: 0.88rem; font-weight: 500; }
.pt-times__time {
  font-size: 1.55rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.pt-method { color: var(--pt-muted); font-size: 0.92rem; }
.pt-prose { margin: 2rem 0; }
/* Constrain the measure on text, not the container, so tables and figures
   stay full width. Unbounded, long-form pages ran to ~139 characters a line. */
.pt-prose > p,
.pt-prose > ul,
.pt-prose > ol,
.pt-prose > h2,
.pt-prose > h3,
.pt-prose > h4,
.pt-prose > blockquote { max-width: 68ch; }
.pt-prose p {
  color: var(--pt-ink);
  margin: 0 0 1.15rem;
  line-height: 1.7;
}
.pt-prose h2 { font-size: 1.6rem; margin: 2.6rem 0 0.75rem; }
.pt-prose h3 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.pt-prose ul,
.pt-prose ol { padding-inline-start: 1.35rem; margin: 0 0 1.15rem; }
.pt-prose li { margin-bottom: 0.45rem; line-height: 1.7; }
.pt-prose li::marker { color: var(--pt-accent-2); }
.pt-prose a { text-decoration: underline; text-underline-offset: 3px; }
.pt-lead { font-size: 1.08rem; line-height: 1.65; color: var(--pt-muted); }

/* Editor tables carry no class, so neither .pt-table nor block CSS applies. */
.pt-prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
}
.pt-prose table th,
.pt-prose table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--pt-line);
  text-align: start;
  vertical-align: top;
  min-width: 9.5rem;
}
.pt-prose table th {
  background: #f3f6f9;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pt-prose table tbody tr:nth-child(even) td { background: #fbfcfd; }
.pt-prose table tbody tr:last-child td { border-bottom: 0; }

/* Contact form */
.pt-contact { margin: 2rem 0; max-width: 42rem; }
.pt-form {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  padding: clamp(1.15rem, 3vw, 1.85rem);
  box-shadow: var(--pt-shadow);
}
.pt-form__row { margin-bottom: 1.1rem; }
.pt-form__row label {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 0.35rem;
  color: var(--pt-ink);
}
.pt-form__row input,
.pt-form__row select,
.pt-form__row textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--pt-ink);
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
}
.pt-form__row textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.pt-form__row input:focus,
.pt-form__row select:focus,
.pt-form__row textarea:focus { border-color: var(--pt-accent-2); }
.pt-form__row small {
  display: block;
  margin-top: 0.35rem;
  color: var(--pt-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.pt-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .pt-form__grid { grid-template-columns: 1fr; } }
/* Honeypot: off-screen rather than display:none, which some bots detect. */
.pt-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.pt-form button[type="submit"] { margin-top: 0.35rem; }
.pt-form__privacy {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--pt-muted);
  line-height: 1.55;
}
.pt-form-notice {
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  border-inline-start: 3px solid;
}
.pt-form-notice--ok {
  background: #eef7f0;
  border-color: #2f7d4f;
  color: #14532d;
}
.pt-form-notice--err {
  background: #fdf0ef;
  border-color: #b3261e;
  color: #7f1d1d;
}

.pt-figure {
  margin: 0 0 1.25rem;
  border-radius: calc(var(--pt-radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--pt-line);
  background: var(--pt-surface);
}
.pt-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.pt-figure--hero { margin: 1rem 0 1.25rem; }
.pt-figure--home { margin: 0 0 1.35rem; max-width: 100%; }
.pt-figure--inline { margin: 1.5rem 0; }
.pt-tool__head .pt-figure { margin-top: 1rem; }

.pt-faq details {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}
.pt-faq summary { cursor: pointer; font-weight: 600; }
.pt-faq p { margin: 0.6rem 0 0; color: var(--pt-muted); }

.pt-chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.pt-chip-list a {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  color: var(--pt-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.pt-chip-list a:hover { border-color: var(--pt-accent); color: var(--pt-accent); }

.pt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pt-surface);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.92rem;
}
.pt-table th, .pt-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--pt-line);
  text-align: start;
}
.pt-table th {
  background: #f3f6f9;
  color: var(--pt-ink);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pt-table--monthly { display: block; overflow-x: auto; }
.pt-table--monthly caption {
  caption-side: top;
  text-align: start;
  padding: 0.75rem 0.85rem;
  font-weight: 600;
  color: var(--pt-ink);
}
.pt-table--monthly tr.is-today td {
  background: var(--pt-accent-soft);
  font-weight: 600;
}

.pt-grid-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem;
}
.pt-city-card {
  display: block;
  padding: 1rem;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--pt-ink);
  transition: border-color .15s ease, transform .15s ease;
}
.pt-city-card:hover { border-color: var(--pt-accent); transform: translateY(-2px); color: var(--pt-ink); }
.pt-city-card strong { display: block; font-size: 1rem; }
.pt-city-card span { color: var(--pt-muted); font-size: 0.85rem; }

.pt-tool { padding: 2rem 0 3rem; }
.pt-tool__head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pt-tool__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 1.25rem 0;
}
.pt-tool label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.pt-tool select, .pt-tool input {
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  min-width: 220px;
  background: #fff;
}
.pt-compass {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 2px solid var(--pt-line);
  margin: 1rem auto;
  position: relative;
  background: conic-gradient(from 0deg, #fff, #f7f0e0, #fff);
}
.pt-compass__needle {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 4px; height: 60px;
  margin-inline-start: -2px;
  margin-top: -60px;
  background: var(--pt-accent-2);
  transform-origin: bottom center;
  border-radius: 4px;
  transition: transform .4s ease;
}
.pt-qibla-deg { text-align: center; font-size: 2rem; font-weight: 700; margin: 0; }

.pt-ad {
  margin: 1.25rem 0;
  min-height: 0;
}
.pt-ad:empty { display: none; margin: 0; padding: 0; }
.pt-ad--placeholder {
  display: none;
  border: 1px dashed var(--pt-line);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: var(--pt-muted);
  font-size: 0.85rem;
  background: rgba(255,255,255,.5);
}

.pt-footer {
  border-top: 1px solid var(--pt-line);
  box-shadow: 0 -1px 0 var(--pt-accent-2);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  color: var(--pt-muted);
  font-size: 0.9rem;
  background: #fff;
}
.pt-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.75rem 2rem;
  align-items: start;
}
/* Footer nav stacks vertically — a 7-item row overflows the viewport below ~730px. */
.pt-footer nav .pt-nav {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}
.pt-footer nav .pt-nav a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 0;
  font-weight: 500;
}
.pt-footer nav .pt-nav a:hover,
.pt-footer nav .pt-nav a:focus-visible {
  color: var(--pt-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pt-footer__grid > p:last-child { align-self: end; }
.pt-footer a { color: var(--pt-muted); }
.pt-footer a:hover { color: var(--pt-accent-ink); }
.pt-footer__brand {
  display: inline-block;
  margin-bottom: 0.5rem;
  text-decoration: none;
}
.pt-footer__brand img {
  height: 40px;
  width: auto;
}

.pt-section-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.pt-home-tools { margin: 0 0 2rem; }
.pt-home-tools .pt-chip-list { margin-top: 0.25rem; }

@media (max-width: 800px) {
  .pt-header__nav { display: none; }
  .pt-header.is-open .pt-header__nav {
    display: block;
    position: absolute;
    inset-inline: 1rem;
    top: 100%;
    margin-top: 6px;
    z-index: 50;
  }
  .pt-header.is-open .pt-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    background: #fff;
    border: 1px solid var(--pt-line);
    border-top: 2px solid var(--pt-accent-2);
    border-radius: 14px;
    padding: 0.4rem;
    box-shadow: var(--pt-shadow);
  }
  /* Full-width rows so the tap target is the row, not just the text. */
  .pt-header.is-open .pt-nav a {
    display: block;
    padding: 0.75rem 0.7rem;
    border-bottom: 0;
    border-radius: 8px;
  }
  .pt-header.is-open .pt-nav a:hover,
  .pt-header.is-open .pt-nav a:focus-visible { background: var(--pt-accent-soft); }
  .pt-header.is-open .pt-nav li + li { border-top: 1px solid var(--pt-line); }
  .pt-menu-toggle { display: inline-flex; }
  .pt-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-next { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .pt-times__item { padding: 0.75rem 0.85rem; min-height: 4.5rem; }
  .pt-times__time { font-size: 1.35rem; }
}
