/*
 * PTweeduizend.nl — frontend design system
 * Version 1.0.7
 * Eén stylesheet, één componentset en dezelfde tokens voor licht/donker.
 */

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  color-scheme: light;

  --ptw-brand: #ef3340;
  --ptw-primary: #0874e8;
  --ptw-primary-hover: #0668d5;
  --ptw-primary-soft: #eaf3ff;
  --ptw-success: #0ca85a;

  --ptw-text: #10203a;
  --ptw-text-muted: #5a6f8c;
  --ptw-text-subtle: #7890aa;
  --ptw-bg: #f5f8fc;
  --ptw-surface: #ffffff;
  --ptw-surface-2: #f2f6fb;
  --ptw-surface-3: #eaf1f8;
  --ptw-field: #ffffff;
  --ptw-border: #dce6f1;
  --ptw-border-strong: #cbd8e6;
  --ptw-hover: #edf3f9;

  --ptw-header: #132840;
  --ptw-header-2: #1a3654;
  --ptw-header-text: #f4f8fd;
  --ptw-header-muted: #c4d3e3;
  --ptw-footer: #0d2137;
  --ptw-footer-text: #bdcce0;

  --ptw-warning-bg: #fff9e8;
  --ptw-warning-border: #ebcc72;
  --ptw-warning-text: #725816;

  --ptw-fire: #f23845;
  --ptw-ambulance: #ffc431;
  --ptw-police: #0c79e8;
  --ptw-trauma: #8057e4;
  --ptw-knrm: #f07727;
  --ptw-rescue: #00a39d;
  --ptw-other: #677b92;

  --ptw-radius-xs: 7px;
  --ptw-radius-sm: 9px;
  --ptw-radius: 12px;
  --ptw-radius-lg: 16px;
  --ptw-shadow: 0 8px 24px rgba(28, 54, 84, .055);
  --ptw-shadow-hover: 0 12px 30px rgba(28, 54, 84, .10);
  --ptw-focus: 0 0 0 3px rgba(8, 116, 232, .16);
  --ptw-max: 1460px;
  --ptw-header-height: 88px;
}

html[data-ptw-theme="dark"] {
  color-scheme: dark;

  --ptw-text: #eef5ff;
  --ptw-text-muted: #aebfd3;
  --ptw-text-subtle: #8397af;
  --ptw-bg: #0f1927;
  --ptw-surface: #162337;
  --ptw-surface-2: #1b2a40;
  --ptw-surface-3: #21334b;
  --ptw-field: #111e30;
  --ptw-border: #2a3d56;
  --ptw-border-strong: #3a526f;
  --ptw-hover: #21344e;
  --ptw-primary-soft: #152f4e;

  --ptw-header: #091624;
  --ptw-header-2: #10243a;
  --ptw-header-text: #f5f9ff;
  --ptw-header-muted: #b8c8da;
  --ptw-footer: #081522;
  --ptw-footer-text: #adbed1;

  --ptw-warning-bg: #352e1a;
  --ptw-warning-border: #695624;
  --ptw-warning-text: #f0d78f;

  --ptw-shadow: 0 8px 24px rgba(0, 0, 0, .20);
  --ptw-shadow-hover: 0 12px 30px rgba(0, 0, 0, .28);
  --ptw-focus: 0 0 0 3px rgba(78, 162, 248, .20);
}

/* =========================================================
   2. Base
   ========================================================= */
* { box-sizing: border-box; }
html { background: var(--ptw-bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ptw-bg);
  color: var(--ptw-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
input, select, textarea { color-scheme: inherit; }
select option { background: var(--ptw-field); color: var(--ptw-text); }
::selection { background: rgba(8, 116, 232, .22); }
:focus-visible { outline: 2px solid var(--ptw-primary); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ptw-skip-link {
  position: fixed;
  left: 18px;
  top: -90px;
  z-index: 99999;
  padding: 10px 14px;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius-xs);
  background: var(--ptw-surface);
  color: var(--ptw-text);
  box-shadow: var(--ptw-shadow-hover);
}
.ptw-skip-link:focus { top: 18px; }

.ptw-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.18em;
}

.ptw-container,
.ptw-header-inner,
.ptw-footer-grid,
.ptw-footer-bottom {
  width: min(calc(100% - 64px), var(--ptw-max));
  margin-inline: auto;
}
.ptw-main { min-height: 70vh; padding-bottom: 64px; }
.ptw-content-narrow { max-width: 1000px; padding-top: 40px; }

/* =========================================================
   3. Header / navigation
   ========================================================= */
.ptw-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  color: var(--ptw-header-text);
  background: linear-gradient(105deg, var(--ptw-header), var(--ptw-header-2));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 2px 12px rgba(7, 23, 40, .16);
}
.admin-bar .ptw-site-header { top: 32px; }

.ptw-header-inner {
  min-height: var(--ptw-header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.ptw-brand {
  min-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.ptw-brand-logo {
  display: block;
  width: 250px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}
.ptw-brand-wordmark {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.ptw-brand-tagline {
  padding-left: 4px;
  color: var(--ptw-header-muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.ptw-primary-nav { margin-left: auto; }
.ptw-nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ptw-nav-list li { margin: 0; }
.ptw-nav-list .ptw-service-icon-image { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.ptw-nav-list a {
  position: relative;
  height: var(--ptw-header-height);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: #eaf2fb;
  font-size: 14px;
  white-space: nowrap;
}
.ptw-nav-list a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: #4da5ff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .16s ease;
}
.ptw-nav-list a:hover,
.ptw-nav-list .current-menu-item > a,
.ptw-nav-list a.is-active { color: #fff; }
.ptw-nav-list a:hover::after,
.ptw-nav-list .current-menu-item > a::after,
.ptw-nav-list a.is-active::after { transform: scaleX(1); }

.ptw-header-actions { display: flex; align-items: center; gap: 12px; }
.ptw-header-search {
  width: 300px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--ptw-radius-sm);
  background: rgba(255, 255, 255, .11);
  color: #d7e4f1;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ptw-header-search:focus-within {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .20);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .07);
}
.ptw-header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}
.ptw-header-search input::placeholder { color: #bed0e4; }

.ptw-theme-toggle,
.ptw-mobile-menu-toggle,
.ptw-icon-button {
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ptw-theme-toggle,
.ptw-mobile-menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.ptw-theme-toggle:hover,
.ptw-mobile-menu-toggle:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .10); }
.ptw-theme-icon-sun { display: none; }
html[data-ptw-theme="dark"] .ptw-theme-icon-sun { display: inline-grid; }
html[data-ptw-theme="dark"] .ptw-theme-icon-moon { display: none; }
.ptw-mobile-menu-toggle { display: none; }

/* =========================================================
   4. Headings / hero
   ========================================================= */
.ptw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 20px;
}
.ptw-hero h1,
.ptw-page-head h1 {
  margin: 0 0 6px;
  color: var(--ptw-text);
  font-size: clamp(36px, 3.15vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.ptw-hero p,
.ptw-page-head p {
  max-width: 900px;
  margin: 0;
  color: var(--ptw-text-muted);
  font-size: 19px;
  line-height: 1.45;
}
.ptw-page-head { padding-top: 42px; padding-bottom: 26px; }
.ptw-page-head h1 { font-size: clamp(34px, 2.8vw, 43px); }
.ptw-page-head p { font-size: 18px; }
.ptw-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--ptw-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ptw-live-card {
  justify-self: end;
  width: 100%;
  max-width: 410px;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius);
  background: linear-gradient(135deg, var(--ptw-surface-2), var(--ptw-surface));
  box-shadow: var(--ptw-shadow);
}
.ptw-live-dot {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--ptw-success);
  box-shadow: 0 0 0 4px rgba(12, 168, 90, .11);
}
.ptw-live-card > div { min-width: 0; display: flex; flex-direction: column; }
.ptw-live-card strong { color: var(--ptw-success); font-size: 20px; line-height: 1.2; }
.ptw-live-card small,
.ptw-live-card time { color: var(--ptw-text-muted); }
.ptw-live-card small { margin-top: 3px; font-size: 14px; }
.ptw-live-card time { margin-top: 3px; font-size: 13px; }

.ptw-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ptw-border);
  border-radius: 50%;
  background: var(--ptw-surface);
  color: var(--ptw-text);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ptw-icon-button:hover { background: var(--ptw-hover); border-color: var(--ptw-border-strong); transform: rotate(18deg); }
.ptw-icon-button.is-loading .ptw-icon { animation: ptw-spin .8s linear infinite; }
@keyframes ptw-spin { to { transform: rotate(360deg); } }

/* =========================================================
   5. Shared cards / layout
   ========================================================= */
.ptw-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(330px, 1fr);
  gap: 24px;
  align-items: start;
}
.ptw-home-grid.is-single { grid-template-columns: 1fr; }
.ptw-feed-panel { min-width: 0; }
.ptw-sidebar { position: sticky; top: 112px; min-width: 0; display: grid; gap: 14px; }
.admin-bar .ptw-sidebar { top: 144px; }

.ptw-side-card,
.ptw-detail-card,
.ptw-prose-card,
.ptw-chart-card,
.ptw-stat-card,
.ptw-map-page-panel,
.ptw-news-card,
.ptw-search-result,
.ptw-taxonomy-summary,
.ptw-seo-copy > div,
.ptw-seo-hub-head,
.ptw-seo-hub-grid {
  border: 1px solid var(--ptw-border);
  background: var(--ptw-surface);
  box-shadow: var(--ptw-shadow);
}
.ptw-side-card { padding: 18px; border-radius: var(--ptw-radius); }
.ptw-side-card h2,
.ptw-card-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ptw-text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
}
.ptw-side-card h2 .ptw-icon { width: 20px; height: 20px; }
.ptw-side-card p { margin: 12px 0 0; color: var(--ptw-text-muted); font-size: 14px; }
.ptw-side-card > a:not(.ptw-button) { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--ptw-primary); font-size: 14px; }
.ptw-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.ptw-card-heading > a,
.ptw-link-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ptw-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ptw-card-heading > a:hover,
.ptw-link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ptw-card-heading > a .ptw-icon { width: 16px; height: 16px; }

/* =========================================================
   6. Service tabs
   ========================================================= */
.ptw-service-tabs {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius) var(--ptw-radius) 0 0;
  background: var(--ptw-surface);
  box-shadow: var(--ptw-shadow);
}
.ptw-service-tabs::-webkit-scrollbar { display: none; }
.ptw-service-tab {
  flex: 0 0 auto;
  min-width: 0;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--ptw-radius-xs);
  background: var(--ptw-surface-2);
  color: var(--ptw-text-muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ptw-service-tab:hover { border-color: var(--ptw-border); background: var(--ptw-hover); color: var(--ptw-text); }
.ptw-service-tab.is-active {
  border-color: var(--ptw-primary);
  background: var(--ptw-primary);
  color: #fff;
  box-shadow: 0 5px 13px rgba(8, 116, 232, .18);
}
.ptw-service-tab[data-service-filter="brandweer"] .ptw-icon { color: var(--ptw-fire); fill: currentColor; stroke: currentColor; }
.ptw-service-tab[data-service-filter="ambulance"] .ptw-icon { color: #d39b00; }
.ptw-service-tab[data-service-filter="politie"] .ptw-icon { color: var(--ptw-police); fill: currentColor; }
.ptw-service-tab[data-service-filter="traumahelikopter"] .ptw-icon { color: var(--ptw-trauma); }
.ptw-service-tab[data-service-filter="knrm"] .ptw-icon { color: var(--ptw-knrm); }
.ptw-service-tab[data-service-filter="reddingsbrigade"] .ptw-icon { color: var(--ptw-rescue); }
.ptw-service-tab.is-active .ptw-icon { color: #fff; }
.ptw-custom-nav-icon,
.ptw-service-icon-image { width: 20px; height: 20px; object-fit: contain; display: block; flex: 0 0 auto; }
.ptw-service-tab .ptw-service-icon-image { width: 18px; height: 18px; }
.ptw-active-total { margin-left: auto; flex: 0 0 auto; color: var(--ptw-text-muted); font-size: 13px; white-space: nowrap; }
.ptw-active-total strong { color: var(--ptw-text); font-size: 14px; }
.ptw-service-tabs > .ptw-active-total { display: none; }

/* =========================================================
   7. Incident list
   ========================================================= */
.ptw-feed-status {
  margin: 10px 0;
  padding: 10px 13px;
  border: 1px solid var(--ptw-warning-border);
  border-radius: var(--ptw-radius-sm);
  background: var(--ptw-warning-bg);
  color: var(--ptw-warning-text);
  font-size: 14px;
}
.ptw-incident-list { display: grid; gap: 8px; }
.ptw-service-tabs + .ptw-incident-list { margin-top: 0; }
.ptw-incident-card {
  min-width: 0;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius-sm);
  background: var(--ptw-surface);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.ptw-incident-card:hover { border-color: var(--ptw-border-strong); box-shadow: var(--ptw-shadow-hover); transform: translateY(-1px); }
.ptw-incident-link {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 104px 160px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 11px 15px 11px 20px;
}
.ptw-incident-time { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ptw-incident-time strong { color: var(--ptw-text); font-size: 18px; font-weight: 780; font-variant-numeric: tabular-nums; }
.ptw-incident-time time { margin-top: 5px; color: var(--ptw-text-muted); font-size: 12.5px; }

.ptw-service-badge {
  width: 100%;
  max-width: 160px;
  min-width: 0;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  overflow: hidden;
  border-radius: var(--ptw-radius-xs);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.ptw-service-badge > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ptw-service-badge .ptw-icon,
.ptw-service-badge .ptw-service-icon-image { width: 15px; height: 15px; flex: 0 0 auto; }
.ptw-service-badge.is-fire { background: var(--ptw-fire); color: #fff; }
.ptw-service-badge.is-fire .ptw-icon { fill: currentColor; stroke: currentColor; }
.ptw-service-badge.is-ambulance { background: var(--ptw-ambulance); color: #17223a; }
.ptw-service-badge.is-police { background: var(--ptw-police); color: #fff; }
.ptw-service-badge.is-police .ptw-icon { fill: currentColor; }
.ptw-service-badge.is-trauma { background: var(--ptw-trauma); color: #fff; }
.ptw-service-badge.is-knrm { background: var(--ptw-knrm); color: #fff; }
.ptw-service-badge.is-rescue { background: var(--ptw-rescue); color: #fff; }
.ptw-service-badge.is-other { border: 1px solid var(--ptw-border); background: var(--ptw-surface-2); color: var(--ptw-text-muted); }

.ptw-incident-copy { min-width: 0; overflow: hidden; }
.ptw-incident-copy h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ptw-text);
  font-size: 16.5px;
  font-weight: 750;
  line-height: 1.23;
  letter-spacing: -.008em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptw-incident-subline {
  min-width: 0;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: var(--ptw-text-muted);
  font-size: 12.5px;
  line-height: 1.25;
}
.ptw-incident-location { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; }
.ptw-incident-location > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptw-incident-location .ptw-icon { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; stroke-width: 1.5; }
.ptw-incident-source {
  flex: 0 0 auto;
  padding-left: 9px;
  border-left: 1px solid var(--ptw-border);
  color: var(--ptw-text-subtle);
  font-size: 10.5px;
  white-space: nowrap;
}
.ptw-incident-subline > .ptw-incident-source:first-child { padding-left: 0; border-left: 0; }
.ptw-incident-arrow { justify-self: center; color: var(--ptw-text-muted); opacity: .9; }
.ptw-incident-arrow .ptw-icon { width: 23px; height: 23px; }

.ptw-empty-state {
  padding: 40px;
  border: 1px dashed var(--ptw-border-strong);
  border-radius: var(--ptw-radius);
  background: var(--ptw-surface);
  color: var(--ptw-text-muted);
  text-align: center;
}
.ptw-empty-state strong { display: block; margin-bottom: 5px; color: var(--ptw-text); font-size: 18px; }
.ptw-empty-state p { max-width: 650px; margin: 0 auto; }
.ptw-more-row { display: flex; justify-content: center; padding: 20px 0; }
.ptw-between-slot { margin: 20px 0; }
.ptw-incident-list.is-loading { opacity: .62; transition: opacity .15s; }
.ptw-incident-list.is-loading::after {
  content: "";
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 500;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(8, 116, 232, .18);
  border-top-color: var(--ptw-primary);
  border-radius: 50%;
  animation: ptw-spin .7s linear infinite;
}

/* =========================================================
   8. Sources / advertising
   ========================================================= */
.ptw-source-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius-sm);
  background: var(--ptw-surface-2);
  color: var(--ptw-text-muted);
}
.ptw-source-note-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--ptw-border);
  border-radius: 50%;
  background: var(--ptw-surface);
}
.ptw-source-note-icon .ptw-icon { width: 15px; height: 15px; }
.ptw-source-note strong { display: block; margin-bottom: 2px; color: var(--ptw-text); font-size: 12px; }
.ptw-source-note p { margin: 0; font-size: 11.5px; line-height: 1.45; }
.ptw-source-note a { color: var(--ptw-primary); text-decoration: underline; text-underline-offset: 2px; }
.ptw-source-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ptw-primary); font-weight: 650; }
.ptw-source-link .ptw-icon { width: 14px; height: 14px; }

.ptw-ad-shell {
  overflow: hidden;
  padding: 9px 11px 11px;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius);
  background: var(--ptw-surface);
  box-shadow: var(--ptw-shadow);
}
.ptw-ad-shell.is-inline { margin: 18px 0; }
.ptw-ad-shell.is-sidebar { margin: 0; }
.ptw-ad-label {
  display: block;
  margin: 1px 0 8px;
  color: var(--ptw-text-subtle);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}
.ptw-ad-content { min-height: 92px; max-width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.ptw-ad-shell.is-sidebar .ptw-ad-content { min-height: 145px; }
.ptw-ad-content > *,
.ptw-ad-content iframe,
.ptw-ad-content img,
.ptw-ad-content ins { max-width: 100% !important; }
.ptw-ad-content ins { width: 100%; }
.ptw-ad-shell.is-admin-placeholder { border-style: dashed; background: var(--ptw-surface-2); box-shadow: none; }
.ptw-ad-shell.is-admin-placeholder .ptw-ad-content { min-height: 64px; padding: 8px; color: var(--ptw-text-subtle); font-size: 11px; }

/* =========================================================
   9. Forms / buttons / filters
   ========================================================= */
.ptw-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 9px;
  padding: 0 2px;
  color: var(--ptw-text);
  font-size: 14px;
}
.ptw-filter-toolbar strong { font-size: 15px; }
.ptw-filter-reset { color: var(--ptw-primary); font-size: 12px; font-weight: 650; white-space: nowrap; }
.ptw-filter-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.ptw-filter-noscript { grid-column: 1 / -1; color: var(--ptw-text-muted); font-size: 11px; line-height: 1.4; }

.ptw-filter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ptw-filter-form label,
.ptw-inline-filter label { min-width: 0; display: grid; gap: 5px; color: var(--ptw-text-muted); font-size: 12px; }
.ptw-filter-form select,
.ptw-filter-form input,
.ptw-inline-filter select,
.ptw-inline-filter input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ptw-border-strong);
  border-radius: var(--ptw-radius-xs);
  outline: 0;
  background: var(--ptw-field);
  color: var(--ptw-text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ptw-filter-form select:hover,
.ptw-filter-form input:hover,
.ptw-inline-filter select:hover,
.ptw-inline-filter input:hover { border-color: var(--ptw-border-strong); }
.ptw-filter-form select:focus,
.ptw-filter-form input:focus,
.ptw-inline-filter select:focus,
.ptw-inline-filter input:focus { border-color: var(--ptw-primary); box-shadow: var(--ptw-focus); }
.ptw-filter-form input::placeholder,
.ptw-inline-filter input::placeholder { color: var(--ptw-text-subtle); opacity: .9; }
.ptw-filter-form .ptw-button { grid-column: 1 / -1; margin-top: 2px; }
.ptw-filter-card .ptw-card-heading h2 { font-size: 18px; }

.ptw-inline-filter {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr 1.3fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius);
  background: var(--ptw-surface);
  box-shadow: var(--ptw-shadow);
}
.ptw-inline-filter .ptw-button { height: 40px; min-height: 40px; }

.ptw-button {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ptw-primary);
  border-radius: var(--ptw-radius-xs);
  background: var(--ptw-primary);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(8, 107, 218, .13);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ptw-button:hover { border-color: var(--ptw-primary-hover); background: var(--ptw-primary-hover); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(8, 107, 218, .16); }
.ptw-button.is-secondary { border-color: var(--ptw-border); background: var(--ptw-surface); color: var(--ptw-primary); box-shadow: none; }
.ptw-button.is-secondary:hover { border-color: var(--ptw-border-strong); background: var(--ptw-hover); }
.ptw-button .ptw-icon { width: 16px; height: 16px; }

/* =========================================================
   10. Map
   ========================================================= */
.ptw-map-card { padding: 14px; }
.ptw-map {
  position: relative;
  isolation: isolate;
  height: 270px;
  overflow: hidden;
  border: 1px solid var(--ptw-border);
  border-radius: var(--ptw-radius-sm);
  background: #d9ebf8;
}
.ptw-map-loading { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #dceffa, #dcebdc); color: #47647c; font-size: 14px; }
.leaflet-container { font-family: inherit !important; background: #dce9f6 !important; }
.leaflet-control-attribution { font-size: 9px !important; }
.leaflet-control-zoom a,
.leaflet-control-layers,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip { border-color: var(--ptw-border) !important; background: var(--ptw-surface) !important; color: var(--ptw-text) !important; }
.leaflet-control-zoom a { color: var(--ptw-text) !important; border-color: var(--ptw-border) !important; }
.leaflet-control-zoom a:hover { background: var(--ptw-hover) !important; }
.leaflet-control-attribution { background: rgba(255,255,255,.88) !important; color: #5a6f8c !important; }
.leaflet-control-attribution a { color: #086acb !important; }
html[data-ptw-theme="dark"] .leaflet-control-attribution { background: rgba(22,35,55,.90) !important; color: var(--ptw-text-muted) !important; }
html[data-ptw-theme="dark"] .leaflet-control-attribution a { color: #6bb5ff !important; }
html[data-ptw-theme="dark"] .leaflet-tile-pane { filter: brightness(.68) contrast(1.08) saturate(.78); }

.ptw-map-marker { width: 32px; height: 38px; display: flex; align-items: flex-start; justify-content: center; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.ptw-map-marker span { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50% 50% 50% 4px; color: #fff; transform: rotate(-45deg); }
.ptw-map-marker .ptw-service-icon-image { width: 17px; height: 17px; object-fit: contain; transform: rotate(45deg); }
.ptw-map-marker b { font-size: 13px; line-height: 1; transform: rotate(45deg); }
.ptw-map-marker.is-fire span { background: var(--ptw-fire); }
.ptw-map-marker.is-ambulance span { background: #e8a800; color: #172132; }
.ptw-map-marker.is-police span { background: var(--ptw-police); }
.ptw-map-marker.is-trauma span { background: var(--ptw-trauma); }
.ptw-map-marker.is-knrm span { background: var(--ptw-knrm); }
.ptw-map-marker.is-rescue span { background: var(--ptw-rescue); }
.ptw-map-marker.is-other span { background: var(--ptw-other); }
.ptw-leaflet-popup { min-width: 180px; font-family: inherit; }
.ptw-leaflet-popup strong { display: block; margin-bottom: 3px; }
.ptw-leaflet-popup span { display: block; color: var(--ptw-text-muted); font-size: 12px; }
.ptw-leaflet-popup a { display: inline-block; margin-top: 6px; color: var(--ptw-primary); font-weight: 700; }

.ptw-map-page-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.ptw-map-page-panel { padding: 12px; border-radius: var(--ptw-radius); }
.ptw-map-large { height: 640px; }
.ptw-map-list-section { margin-top: 24px; }
.ptw-map-list-section > .ptw-card-heading { margin-bottom: 12px; }

/* =========================================================
   11. Archive / taxonomy / SEO pages
   ========================================================= */
.ptw-archive-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(280px, .75fr); gap: 24px; align-items: start; }
.ptw-archive-list { gap: 8px; }
.ptw-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0; }
.ptw-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ptw-border); border-radius: var(--ptw-radius-xs); background: var(--ptw-surface); color: var(--ptw-text-muted); }
.ptw-pagination .page-numbers:hover { border-color: var(--ptw-border-strong); background: var(--ptw-hover); color: var(--ptw-text); }
.ptw-pagination .page-numbers.current { border-color: var(--ptw-primary); background: var(--ptw-primary); color: #fff; }

.ptw-breadcrumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 12px; color: var(--ptw-text-muted); font-size: 12px; }
.ptw-breadcrumbs a { color: var(--ptw-primary); }
.ptw-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 2px; }

.ptw-taxonomy-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, .8fr); gap: 24px; align-items: start; }
.ptw-taxonomy-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; padding: 13px 16px; border-radius: var(--ptw-radius); }
.ptw-taxonomy-summary > div { display: flex; align-items: baseline; gap: 8px; }
.ptw-taxonomy-summary strong { font-size: 24px; }
.ptw-taxonomy-summary span { color: var(--ptw-text-muted); font-size: 12px; }
.ptw-taxonomy-summary > a { display: inline-flex; align-items: center; gap: 5px; color: var(--ptw-primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ptw-taxonomy-sidebar { position: sticky; top: 112px; }
.admin-bar .ptw-taxonomy-sidebar { top: 144px; }
.ptw-taxonomy-sidebar .ptw-side-card { padding: 18px; }
.ptw-side-card .ptw-side-intro { margin: -2px 0 12px; color: var(--ptw-text-muted); font-size: 13px; }
.ptw-related-group + .ptw-related-group { margin-top: 17px; }
.ptw-side-card .ptw-related-group h2 { margin: 0 0 8px; color: var(--ptw-text); font-size: 13px; }
.ptw-seo-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ptw-seo-chip { min-height: 31px; display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--ptw-border); border-radius: 999px; background: var(--ptw-surface-2); color: var(--ptw-text-muted); font-size: 12px; line-height: 1.2; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.ptw-seo-chip:hover { border-color: var(--ptw-border-strong); background: var(--ptw-hover); color: var(--ptw-primary); }

.ptw-seo-hub { margin-top: 32px; }
.ptw-seo-hub-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 30px; align-items: end; padding: 24px 26px 18px; border-bottom: 0; border-radius: var(--ptw-radius) var(--ptw-radius) 0 0; box-shadow: none; }
.ptw-seo-hub-head h2 { margin: 3px 0 0; font-size: 25px; line-height: 1.15; }
.ptw-seo-hub-head p { margin: 0; color: var(--ptw-text-muted); font-size: 14px; }
.ptw-seo-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border-radius: 0 0 var(--ptw-radius) var(--ptw-radius); box-shadow: none; }
.ptw-seo-hub-grid > .ptw-related-group { margin: 0; padding: 19px 24px; border-top: 1px solid var(--ptw-border); }
.ptw-seo-hub-grid > .ptw-related-group:nth-child(odd) { border-right: 1px solid var(--ptw-border); }
.ptw-seo-hub-grid .ptw-related-group h2 { font-size: 14px; }

.ptw-seo-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; margin-top: 28px; }
.ptw-seo-copy > div { padding: 24px; border-radius: var(--ptw-radius); }
.ptw-seo-copy h2 { margin: 4px 0 12px; font-size: 22px; line-height: 1.2; }
.ptw-seo-copy p { margin: 0 0 10px; color: var(--ptw-text-muted); font-size: 14px; line-height: 1.7; }
.ptw-seo-faq details { padding: 11px 0; border-top: 1px solid var(--ptw-border); }
.ptw-seo-faq details:last-child { padding-bottom: 0; }
.ptw-seo-faq summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.ptw-seo-faq details p { margin: 8px 0 0; font-size: 13px; }

/* =========================================================
   12. Incident detail
   ========================================================= */
.ptw-detail-wrap { padding-top: 24px; }
.ptw-detail-wrap > .ptw-breadcrumbs { margin-bottom: 22px; }
.ptw-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .75fr); gap: 24px; align-items: start; }
.ptw-detail-main > h1 { margin: 16px 0 10px; font-size: clamp(34px, 3vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
.ptw-detail-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ptw-detail-meta-row .ptw-service-badge { width: auto; max-width: 190px; }
.ptw-detail-meta-row time { color: var(--ptw-text-muted); font-size: 14px; }
.ptw-priority-pill { padding: 5px 9px; border: 1px solid var(--ptw-border); border-radius: 999px; background: var(--ptw-surface-2); color: var(--ptw-text-muted); font-size: 12px; font-weight: 800; }
.ptw-detail-location { display: flex; align-items: center; gap: 7px; margin: 0 0 22px; color: var(--ptw-text-muted); font-size: 16px; }
.ptw-detail-location .ptw-icon { fill: currentColor; }
.ptw-detail-card,
.ptw-prose-card,
.ptw-chart-card { margin-bottom: 16px; padding: 24px; border-radius: var(--ptw-radius); }
.ptw-detail-card h2,
.ptw-prose-card h2,
.ptw-chart-card h2 { margin: 0 0 14px; font-size: 20px; }
.ptw-detail-list { margin: 0; }
.ptw-detail-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--ptw-border); }
.ptw-detail-list > div:first-child { border-top: 0; }
.ptw-detail-list dt { color: var(--ptw-text-muted); }
.ptw-detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.ptw-original-message { margin: 0; padding: 16px; border-radius: var(--ptw-radius-sm); background: var(--ptw-surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-wrap: anywhere; }
.ptw-alert-note { margin: 18px 0; padding: 14px 16px; border-left: 4px solid #edaa12; border-radius: var(--ptw-radius-xs); background: var(--ptw-warning-bg); color: var(--ptw-warning-text); }
.ptw-alert-note strong { display: block; color: inherit; }
.ptw-alert-note p { margin: 4px 0 0; }

/* =========================================================
   13. Statistics
   ========================================================= */
.ptw-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.ptw-stat-card { padding: 22px; border-radius: var(--ptw-radius); display: flex; flex-direction: column; }
.ptw-stat-card span { color: var(--ptw-text-muted); font-size: 13px; }
.ptw-stat-card strong { margin-top: 5px; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ptw-stat-card small { margin-top: 6px; color: var(--ptw-text-muted); font-size: 12px; }
.ptw-chart-card { margin-bottom: 18px; }
.ptw-chart-card .ptw-card-heading span { color: var(--ptw-text-muted); font-size: 12px; }
.ptw-bar-chart { display: grid; gap: 12px; }
.ptw-bar-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 55px; gap: 12px; align-items: center; }
.ptw-bar-row > span { font-size: 14px; }
.ptw-bar-row > strong { text-align: right; }
.ptw-bar-track { height: 12px; overflow: hidden; border-radius: 999px; background: var(--ptw-surface-2); }
.ptw-bar-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ptw-primary), #4fa5ff); }

/* =========================================================
   14. Generic content / news / search
   ========================================================= */
.ptw-content-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .7fr); gap: 22px; align-items: start; }
.ptw-prose-side { position: sticky; top: 112px; }
.admin-bar .ptw-prose-side { top: 144px; }
.ptw-entry-content { font-size: 16px; line-height: 1.75; }
.ptw-entry-content h1 { margin: 0 0 22px; font-size: 40px; line-height: 1.1; }
.ptw-entry-content h2 { margin-top: 26px; }
.ptw-entry-content p { color: var(--ptw-text-muted); }
.ptw-entry-content a { color: var(--ptw-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ptw-entry-content hr { margin: 28px 0; border: 0; border-top: 1px solid var(--ptw-border); }
.ptw-entry-content blockquote { margin: 24px 0; padding: 10px 16px; border-left: 4px solid var(--ptw-border-strong); background: var(--ptw-surface-2); color: var(--ptw-text-muted); }
.ptw-entry-content pre,
.ptw-entry-content code { background: var(--ptw-surface-2); }
.ptw-featured-image { margin: 20px 0; }
.ptw-featured-image img { width: 100%; border-radius: var(--ptw-radius); }
.ptw-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ptw-news-card { overflow: hidden; border-radius: var(--ptw-radius); }
.ptw-news-image { display: block; aspect-ratio: 16 / 9; background: var(--ptw-surface-2); }
.ptw-news-image img { width: 100%; height: 100%; object-fit: cover; }
.ptw-news-card > div { padding: 18px; }
.ptw-news-card time { color: var(--ptw-text-muted); font-size: 12px; }
.ptw-news-card h2 { margin: 7px 0; font-size: 20px; line-height: 1.25; }
.ptw-news-card p { color: var(--ptw-text-muted); font-size: 14px; }
.ptw-text-link { display: inline-flex; align-items: center; color: var(--ptw-primary); font-size: 14px; font-weight: 700; }
.ptw-search-result { margin-bottom: 10px; padding: 20px; border-radius: var(--ptw-radius); }
.ptw-search-result h2 { margin: 0; font-size: 20px; }
.ptw-search-result p { margin: 8px 0 0; color: var(--ptw-text-muted); }

/* =========================================================
   15. Footer
   ========================================================= */
.ptw-site-footer { margin-top: 20px; padding: 46px 0 24px; background: var(--ptw-footer); color: var(--ptw-footer-text); }
.ptw-footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 60px; padding-bottom: 34px; }
.ptw-footer-grid h2 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.ptw-footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.ptw-footer-grid a { color: #c5d3e3; font-size: 14px; }
.ptw-footer-grid a:hover { color: #fff; }
.ptw-footer-brand p { max-width: 500px; color: #afc0d3; font-size: 14px; }
.ptw-footer-logo { display: inline-flex; align-items: center; }
.ptw-brand-logo--footer { width: 210px; height: 72px; object-fit: contain; object-position: left center; }
.ptw-footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa4bb; font-size: 12px; }
.ptw-footer-bottom p { margin: 0; }
.ptw-footer-bottom p:first-child { max-width: 900px; }
.ptw-source-credit a { color: #cfe2f6; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   16. Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .ptw-container,
  .ptw-header-inner,
  .ptw-footer-grid,
  .ptw-footer-bottom { width: min(calc(100% - 40px), var(--ptw-max)); }

  .ptw-brand { min-width: 270px; }
  .ptw-brand-logo { width: 220px; height: 50px; }
  .ptw-brand-wordmark { font-size: 25px; }
  .ptw-brand-tagline { font-size: 11px; }
  .ptw-header-search { width: 235px; }
  .ptw-nav-list a { padding-inline: 8px; }
  .ptw-nav-list a .ptw-icon { display: none; }
  .ptw-home-grid { grid-template-columns: minmax(0, 2fr) minmax(310px, .9fr); }
  .ptw-incident-link { grid-template-columns: 96px 150px minmax(0, 1fr) 22px; gap: 11px; padding-left: 16px; }
  .ptw-service-badge { max-width: 150px; }
  .ptw-inline-filter { grid-template-columns: 1fr 1fr 1fr; }
  .ptw-inline-filter .ptw-filter-search { grid-column: 1 / 3; }
}

@media (max-width: 1040px) {
  :root { --ptw-header-height: 74px; }
  .ptw-header-inner { min-height: var(--ptw-header-height); }
  .ptw-brand { min-width: auto; }
  .ptw-brand-logo { width: 190px; height: 44px; }
  .ptw-brand-wordmark { font-size: 23px; }
  .ptw-brand-tagline { display: none; }

  .ptw-primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ptw-header-height);
    display: none;
    margin-left: 0;
    padding: 10px 20px 16px;
    background: var(--ptw-header);
    box-shadow: 0 12px 20px rgba(0,0,0,.18);
  }
  .admin-bar .ptw-primary-nav { top: 106px; }
  .ptw-primary-nav.is-open { display: block; }
  .ptw-nav-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ptw-nav-list a { height: 50px; justify-content: center; }
  .ptw-nav-list a .ptw-icon { display: block; }
  .ptw-nav-list a::after { bottom: 2px; }
  .ptw-mobile-menu-toggle { display: grid; margin-left: auto; }
  .ptw-header-actions { margin-left: 0; }
  .ptw-header-search { width: 260px; }

  .ptw-hero { grid-template-columns: 1fr 340px; }
  .ptw-hero p { font-size: 17px; }

  .ptw-home-grid,
  .ptw-archive-grid,
  .ptw-detail-grid,
  .ptw-map-page-grid,
  .ptw-taxonomy-layout { grid-template-columns: 1fr; }

  .ptw-sidebar,
  .ptw-taxonomy-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .ptw-map-card { grid-column: 1 / -1; }
  .ptw-map { height: 340px; }
  .ptw-service-tabs { border-radius: var(--ptw-radius); }
  .ptw-incident-link { grid-template-columns: 100px 160px minmax(0, 1fr) 24px; gap: 14px; }
  .ptw-service-badge { max-width: 160px; }
  .ptw-stat-grid { grid-template-columns: 1fr 1fr; }
  .ptw-map-large { height: 560px; }
  .ptw-content-page { grid-template-columns: 1fr; }
  .ptw-prose-side { position: static; }
  .ptw-seo-copy { grid-template-columns: 1fr; }
  .ptw-seo-hub-head { grid-template-columns: 1fr; }
  .ptw-seo-hub-head p { max-width: 760px; }
}

@media (max-width: 782px) {
  .admin-bar .ptw-site-header { top: 46px; }
  .admin-bar .ptw-primary-nav { top: 120px; }
}

@media (max-width: 760px) {
  .ptw-container,
  .ptw-header-inner,
  .ptw-footer-grid,
  .ptw-footer-bottom { width: min(calc(100% - 28px), var(--ptw-max)); }

  .ptw-header-inner { gap: 10px; }
  .ptw-header-search { display: none; }
  .ptw-theme-toggle,
  .ptw-mobile-menu-toggle { width: 40px; height: 40px; }
  .ptw-nav-list { grid-template-columns: 1fr 1fr; }
  .ptw-nav-list a { justify-content: flex-start; }

  .ptw-hero { grid-template-columns: 1fr; padding-top: 26px; }
  .ptw-live-card { justify-self: start; max-width: none; }
  .ptw-hero p,
  .ptw-page-head p { font-size: 16px; }
  .ptw-home-grid { gap: 18px; }

  .ptw-service-tabs { min-height: 60px; padding: 8px; gap: 6px; }
  .ptw-service-tab { height: 40px; padding-inline: 11px; }
  .ptw-service-tab span { display: none; }
  .ptw-service-tab.is-active span { display: inline; }

  .ptw-incident-list { gap: 7px; }
  .ptw-incident-link {
    grid-template-columns: 74px minmax(0, 1fr) 22px;
    grid-template-areas:
      "time badge arrow"
      "copy copy copy";
    min-height: 96px;
    gap: 8px 10px;
    padding: 11px 13px;
  }
  .ptw-incident-time { grid-area: time; }
  .ptw-incident-time strong { font-size: 17px; }
  .ptw-incident-time time { font-size: 11px; }
  .ptw-service-badge { grid-area: badge; width: auto; max-width: 100%; justify-self: start; padding: 7px 9px; }
  .ptw-incident-copy { grid-area: copy; padding-top: 8px; border-top: 1px solid var(--ptw-border); }
  .ptw-incident-copy h3 { font-size: 15px; }
  .ptw-incident-subline { flex-wrap: wrap; gap: 7px; margin-top: 4px; overflow: visible; font-size: 12px; }
  .ptw-incident-source { padding-left: 7px; font-size: 10.5px; }
  .ptw-incident-arrow { grid-area: arrow; }
  .ptw-incident-arrow .ptw-icon { width: 20px; height: 20px; }

  .ptw-sidebar,
  .ptw-taxonomy-sidebar { grid-template-columns: 1fr; }
  .ptw-map-card { grid-column: auto; }
  .ptw-map { height: 300px; }
  .ptw-filter-form { grid-template-columns: 1fr 1fr; }
  .ptw-inline-filter { grid-template-columns: 1fr 1fr; }
  .ptw-inline-filter .ptw-filter-search,
  .ptw-inline-filter .ptw-button { grid-column: 1 / -1; }
  .ptw-detail-list > div { grid-template-columns: 120px 1fr; }
  .ptw-map-large { height: 480px; }
  .ptw-stat-grid { grid-template-columns: 1fr 1fr; }
  .ptw-news-grid { grid-template-columns: 1fr 1fr; }
  .ptw-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ptw-footer-brand { grid-column: 1 / -1; }
  .ptw-footer-bottom { flex-direction: column; gap: 10px; }
  .ptw-taxonomy-summary { align-items: flex-start; }
  .ptw-taxonomy-summary > div { display: block; }
  .ptw-taxonomy-summary span { display: block; margin-top: 1px; }
  .ptw-seo-hub-grid { grid-template-columns: 1fr; }
  .ptw-seo-hub-grid > .ptw-related-group:nth-child(odd) { border-right: 0; }
  .ptw-seo-hub-head { padding: 20px 18px 15px; }
  .ptw-seo-hub-grid > .ptw-related-group { padding: 16px 18px; }
  .ptw-seo-hub-head h2 { font-size: 22px; }
  .ptw-seo-copy > div { padding: 19px; }
}

@media (max-width: 560px) {
  .ptw-inline-filter,
  .ptw-filter-form { grid-template-columns: 1fr; }
  .ptw-inline-filter .ptw-filter-search,
  .ptw-inline-filter .ptw-button,
  .ptw-filter-form .ptw-button { grid-column: 1; }
  .ptw-filter-toolbar { margin-top: 2px; }
}

@media (max-width: 480px) {
  :root { --ptw-header-height: 68px; }
  .ptw-brand-logo { width: 165px; height: 38px; }
  .ptw-brand-wordmark { font-size: 21px; }
  .ptw-header-inner { min-height: var(--ptw-header-height); }
  .ptw-primary-nav { top: var(--ptw-header-height); }
  .admin-bar .ptw-primary-nav { top: 114px; }
  .ptw-hero { padding-top: 22px; }
  .ptw-live-card { min-height: 88px; padding: 14px; }
  .ptw-live-card strong { font-size: 18px; }
  .ptw-map { height: 260px; }
  .ptw-ad-shell.is-inline { margin: 14px 0; }
  .ptw-ad-content { min-height: 72px; }
  .ptw-ad-shell.is-sidebar .ptw-ad-content { min-height: 110px; }
  .ptw-source-note { padding: 10px 11px; }
  .ptw-source-note p { font-size: 11px; }
  .ptw-detail-card,
  .ptw-prose-card,
  .ptw-chart-card { padding: 18px; }
  .ptw-detail-list > div { grid-template-columns: 1fr; gap: 2px; }
  .ptw-map-large { height: 430px; }
  .ptw-stat-grid { grid-template-columns: 1fr; }
  .ptw-bar-row { grid-template-columns: 100px minmax(0, 1fr) 42px; }
  .ptw-news-grid { grid-template-columns: 1fr; }
  .ptw-footer-grid { grid-template-columns: 1fr; }
  .ptw-footer-brand { grid-column: auto; }
  .ptw-taxonomy-summary { display: block; }
  .ptw-taxonomy-summary > a { margin-top: 8px; }
  .ptw-seo-hub { margin-top: 24px; }
  .ptw-seo-chip { padding-inline: 9px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
