/*
 * PayStar updates hub — compact dashboard on the PayStar DS colour tokens (paystar-colors.css).
 * Every rule is scoped to the public theme (.psh-public body class). Colours: only --color-*;
 * no opacity, color-mix or filters on colours (PayStar-Colors.md). The plugin keeps its own tokens.css.
 */

/* 1. Public root. Colours come only from the PayStar --color-* tokens (paystar-colors.css);
 * the --pub-* variables below are layout values, never colours. */
.psh-public {
	--pub-r-sm: 12px;
	--pub-r: 18px;
	--pub-r-lg: 20px;
	/* Shadows are tinted with navy/950 so they sit with the palette; they are not fills. */
	--pub-shadow: 0 1px 2px rgb(10 15 44 / 4%), 0 8px 24px rgb(10 15 44 / 5%);
	--pub-shadow-hover: 0 2px 4px rgb(10 15 44 / 5%), 0 14px 32px rgb(10 15 44 / 9%);
	--pub-shadow-lg: 0 24px 64px rgb(0 0 131 / 18%);
	--pub-ease: .18s cubic-bezier(.2, 0, 0, 1);
	--pub-sticky-top: var(--wp-admin--admin-bar--height, 0px);
	/* Distinct state shapes, so status never depends on colour alone. */
	--pub-i-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zM4.6 8.2l1-1 1.5 1.5 3.3-3.3 1 1-4.3 4.3z'/%3E%3C/svg%3E");
	--pub-i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1.2l7.2 13.2H.8zM7.2 5.8h1.6V10H7.2zM7.2 11h1.6v1.6H7.2z'/%3E%3C/svg%3E");
	--pub-i-partial: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 .6L15.4 8 8 15.4.6 8zM4.8 7.2h6.4v1.6H4.8z'/%3E%3C/svg%3E");
	--pub-i-major: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M5 1h6l4 4v6l-4 4H5l-4-4V5zM7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z'/%3E%3C/svg%3E");
	--pub-i-maint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zM7.2 4h1.6v3.6l2.5 1.5-.8 1.4-3.3-2z'/%3E%3C/svg%3E");
	--pub-i-unknown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='2' stroke-dasharray='2.6 2.1'/%3E%3Ccircle cx='8' cy='8' r='1.7'/%3E%3C/svg%3E");

	margin: 0;
	background: var(--color-base-200);
	color: var(--color-base-content);
	font-family: var(--psh-font-body);
	font-size: 16px;
	line-height: 1.85;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* 2. Base ------------------------------------------------------------------ */
.psh-public *,
.psh-public *::before,
.psh-public *::after { box-sizing: border-box; }
.psh-public :where(h1, h2, h3, h4) { margin: 0; color: var(--color-base-content); font-weight: 800; line-height: 1.55; }
.psh-public :where(p, ul, ol, dl, dd, figure, fieldset) { margin: 0; }
.psh-public :where(.psh-main, .psh-site-header, .psh-site-footer) :where(ul, ol) { padding: 0; list-style: none; }
.psh-public :where(a) { color: var(--color-primary-text); text-decoration-thickness: 1px; text-underline-offset: .4em; }
.psh-public :where(a:hover) { color: var(--color-primary-text); text-decoration-thickness: 2px; }
.psh-public ::selection { background: var(--color-secondary); color: var(--color-secondary-content); }
.psh-public :where(img) { max-width: 100%; height: auto; }
.psh-public :where(input, select, button, textarea) { font: inherit; color: inherit; }
.psh-public :where(button, summary) { cursor: pointer; }
.psh-public :focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }
.psh-public [hidden] { display: none !important; }
.psh-public :where(input[type=search], input[type=date], input[type=text], select) {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	padding: 8px 14px;
	border: 1px solid var(--color-field-border);
	border-radius: var(--pub-r-sm);
	background-color: var(--color-field);
	color: var(--color-base-content);
	font-size: 15px;
	line-height: 1.6;
	transition: border-color var(--pub-ease), background-color var(--pub-ease), box-shadow var(--pub-ease);
}
.psh-public :where(input[type=search], input[type=date], input[type=text], select):hover { border-color: var(--color-base-border-strong); }
.psh-public :where(input, select):focus { border-color: var(--color-field-border-focus); background-color: var(--color-base-100); }
.psh-public :where(select) {
	appearance: none;
	padding-inline-end: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350587E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	background-size: 16px;
}
.psh-public input::placeholder { color: var(--color-base-content-subtle); opacity: 1; }
.psh-public .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
}
.psh-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.psh-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.psh-main { min-height: 60vh; }
.psh-main:focus { outline: none; }
.psh-skip {
	position: fixed;
	z-index: 100000;
	top: 12px;
	inset-inline-start: 12px;
	padding: 10px 18px;
	border-radius: var(--pub-r-sm);
	background: var(--color-brand-midnight);
	color: var(--color-primary-content);
	font-weight: 800;
	transform: translateY(-200%);
}
.psh-public .psh-skip:focus { transform: none; color: var(--color-primary-content); }

/* 3. Shared components ----------------------------------------------------- */
.psh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--pub-r-sm);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--pub-ease), border-color var(--pub-ease), color var(--pub-ease);
}
.psh-button .psh-icon { width: 18px; height: 18px; }
.psh-public .psh-primary { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-content); }
.psh-public .psh-primary:hover { border-color: var(--color-primary-hover); background: var(--color-primary-hover); color: var(--color-primary-content); }
.psh-public .psh-primary:active { border-color: var(--color-primary-active); background: var(--color-primary-active); }
.psh-public .psh-secondary { border-color: var(--color-base-border); background: var(--color-base-100); color: var(--color-primary-text); }
.psh-public .psh-secondary:hover { border-color: var(--color-primary-border); background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-public .psh-button:disabled,
.psh-public .psh-button[aria-disabled=true] { border-color: var(--color-disabled); background: var(--color-disabled); color: var(--color-disabled-content); cursor: not-allowed; }
.psh-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 800; text-decoration: none; }
.psh-public .psh-text-link:hover { text-decoration: underline; }
.psh-text-link .psh-icon { width: 18px; height: 18px; }
.psh-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--color-base-content); font-size: 13px; font-weight: 800; }
.psh-kicker::before { content: ''; width: 24px; height: 3px; border-radius: 2px; background: var(--color-secondary); }
.psh-icon-tile { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border: 1px solid var(--color-primary-border); border-radius: var(--pub-r-sm); background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-icon-tile .psh-icon { width: 20px; height: 20px; }

.psh-category,
.psh-kind,
.psh-manual,
.psh-incident-state,
.psh-severity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 1px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.9;
	white-space: nowrap;
}
.psh-category { background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-kind { border: 1px solid var(--color-base-border); background: var(--color-base-100); color: var(--color-base-content-muted); }
.psh-manual { border: 1px dashed var(--color-base-border-strong); background: var(--color-base-100); color: var(--color-base-content-muted); font-weight: 500; }
.psh-incident-state,
.psh-severity { --tone: var(--color-base-content-muted); --tone-bg: var(--color-neutral-soft); background: var(--tone-bg); color: var(--tone); }
.psh-incident-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.psh-incident-investigating,
.psh-severity-minor,
.psh-timeline-investigating { --tone: var(--color-warning-soft-content); --tone-bg: var(--color-warning-soft); }
.psh-incident-identified,
.psh-severity-major,
.psh-timeline-identified { --tone: var(--color-error-soft-content); --tone-bg: var(--color-error-soft); }
.psh-severity-critical { --tone: var(--color-error-content); --tone-bg: var(--color-error); }
.psh-incident-monitoring,
.psh-incident-maintenance,
.psh-timeline-monitoring { --tone: var(--color-info-soft-content); --tone-bg: var(--color-info-soft); }
.psh-incident-resolved,
.psh-timeline-resolved { --tone: var(--color-success-soft-content); --tone-bg: var(--color-success-soft); }

/* Recorded service states: text + shape + colour. */
.psh-status-badge {
	--tone: var(--color-base-content-muted);
	--tone-bg: var(--color-neutral-soft);
	--state-icon: var(--pub-i-unknown);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 12px 2px 10px;
	border-radius: 999px;
	background: var(--tone-bg);
	color: var(--tone);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.8;
	white-space: nowrap;
}
.psh-status-badge::before,
.psh-state-icon {
	content: '';
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background: currentColor;
	-webkit-mask: var(--state-icon) center / contain no-repeat;
	mask: var(--state-icon) center / contain no-repeat;
}
[data-status-tone] { --tone: var(--color-base-content-muted); --tone-bg: var(--color-neutral-soft); --state-icon: var(--pub-i-unknown); }
.psh-status-operational,
[data-status-tone=operational] { --tone: var(--color-success-soft-content); --tone-bg: var(--color-success-soft); --state-icon: var(--pub-i-ok); }
.psh-status-degraded,
[data-status-tone=degraded] { --tone: var(--color-warning-soft-content); --tone-bg: var(--color-warning-soft); --state-icon: var(--pub-i-warn); }
.psh-status-partial_outage,
[data-status-tone=partial_outage] { --tone: var(--color-error-soft-content); --tone-bg: var(--color-error-soft); --state-icon: var(--pub-i-partial); }
.psh-status-major_outage,
[data-status-tone=major_outage] { --tone: var(--color-error-content); --tone-bg: var(--color-error); --state-icon: var(--pub-i-major); }
.psh-status-maintenance,
[data-status-tone=maintenance] { --tone: var(--color-info-soft-content); --tone-bg: var(--color-info-soft); --state-icon: var(--pub-i-maint); }

/* Panels: the white cards of the reference design. */
.psh-panel {
	min-width: 0;
	padding: 18px 22px 10px;
	border: 1px solid var(--color-base-border);
	border-radius: var(--pub-r-lg);
	background: var(--color-base-100);
	box-shadow: var(--pub-shadow);
	transition: box-shadow var(--pub-ease);
}
.psh-panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--color-base-border); }
.psh-panel-head h2 { font-size: 17px; line-height: 1.5; }
.psh-panel-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 34px;
	margin-inline-start: auto;
	padding-inline: 12px 10px;
	border-radius: 999px;
	background: var(--color-primary-soft);
	color: var(--color-primary-soft-content);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--pub-ease), color var(--pub-ease);
}
.psh-panel-more .psh-icon { width: 16px; height: 16px; }
.psh-public .psh-panel-more:hover { background: var(--color-primary); color: var(--color-primary-content); }
.psh-public .psh-panel-more:active { background: var(--color-primary-active); color: var(--color-primary-content); }
.psh-panel-meta { margin-inline-start: auto; color: var(--color-base-content-muted); font-size: 13px; }
.psh-panel-empty { display: flex; align-items: flex-start; gap: 10px; padding-block: 16px 12px; color: var(--color-base-content-muted); font-size: 14px; line-height: 1.9; }
.psh-panel-empty .psh-icon { margin-top: 3px; color: var(--color-base-content-subtle); }
.psh-feed-item + .psh-feed-item { border-top: 1px solid var(--color-base-border); }
.psh-feed-item > a {
	display: grid;
	gap: 4px;
	margin-inline: -10px;
	padding: 11px 10px;
	border-radius: var(--pub-r-sm);
	text-decoration: none;
	transition: background-color var(--pub-ease);
}
.psh-public .psh-feed-item > a:hover { background: var(--color-primary-soft); }
.psh-feed-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--color-base-content);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.75;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.psh-feed-title .psh-icon { width: 14px; height: 14px; margin-inline-start: 4px; }
.psh-feed-item > a:hover .psh-feed-title { color: var(--color-primary-soft-content); text-decoration: underline; }
.psh-feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; color: var(--color-base-content-muted); font-size: 12.5px; line-height: 1.8; }
.psh-feed-cat { color: var(--color-base-content-muted); font-weight: 500; }
.psh-feed-cat:not(:last-child)::after { content: '·'; margin-inline-start: 10px; color: var(--color-base-border-strong); }

/* Navy status band, after the reference "features" section. */
.psh-band {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 20px 32px;
	align-items: start;
	padding: 24px 28px;
	border-radius: var(--pub-r-lg);
	background: var(--color-brand-midnight);
	box-shadow: var(--pub-shadow-lg);
	color: var(--color-primary-content);
}
.psh-band :focus-visible { outline-color: var(--color-secondary); }
.psh-band-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--color-primary-content); font-size: 13px; font-weight: 800; }
.psh-band-label > :first-child { display: inline-flex; align-items: center; gap: 10px; }
.psh-band-label > :first-child::before { content: ''; width: 24px; height: 3px; border-radius: 2px; background: var(--color-secondary); }
.psh-band .psh-manual { border-color: var(--color-primary-content); background: transparent; color: var(--color-primary-content); }
.psh-overall { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.psh-state-dot { display: grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; border-radius: var(--pub-r-sm); background: var(--tone-bg); color: var(--tone); }
.psh-state-dot .psh-state-icon { width: 24px; height: 24px; }
.psh-public .psh-band h2 { color: var(--color-primary-content); font-size: 23px; line-height: 1.5; }
.psh-unknown-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13.5px; line-height: 1.85; }
.psh-unknown-note .psh-icon { width: 17px; height: 17px; margin-top: 3px; }
.psh-band .psh-unknown-note { color: var(--color-primary-content); }
.psh-band .psh-unknown-note .psh-icon { color: var(--color-secondary); }
.psh-overall-note,
.psh-band-notes p { margin-top: 10px; color: var(--color-primary-content); font-size: 13px; line-height: 1.9; }
.psh-band-notes { align-self: center; padding: 14px 18px; border: 1px solid var(--color-primary-active); border-radius: var(--pub-r); background: transparent; }
.psh-band-notes p:first-child { margin-top: 0; color: var(--color-primary-content); font-weight: 700; }
.psh-public .psh-band-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; color: var(--color-secondary); font-size: 14px; font-weight: 800; text-decoration: none; }
.psh-public .psh-band-link:hover { color: var(--color-secondary); text-decoration: underline; }
.psh-band-link .psh-icon { width: 18px; height: 18px; }
.psh-service-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.psh-service-tiles > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-content: start;
	gap: 8px 10px;
	padding: 14px 16px;
	border: 1px solid var(--color-primary-active);
	border-radius: var(--pub-r);
	background: transparent;
	transition: background-color var(--pub-ease), border-color var(--pub-ease);
}
.psh-service-tiles > li:hover { border-color: var(--color-primary-hover); background: var(--color-primary-active); }
.psh-tile-name { color: var(--color-primary-content); font-size: 15px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.psh-service-tiles .psh-status-badge { align-self: start; }
.psh-service-tiles small { grid-column: 1 / -1; color: var(--color-primary-content); font-size: 12.5px; }
.psh-service-tiles .psh-tile-more { display: grid; place-items: center; }
.psh-public .psh-tile-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-secondary); font-weight: 800; text-decoration: none; }
.psh-band .psh-no-observation { display: flex; align-items: center; gap: 10px; align-self: center; padding: 18px; border: 1px dashed var(--color-primary-active); border-radius: var(--pub-r); color: var(--color-primary-content); font-size: 14px; }

/* 4. Header ---------------------------------------------------------------- */
.psh-design-banner { border-bottom: 1px solid var(--color-secondary); background: var(--color-secondary-soft); color: var(--color-secondary-soft-content); font-size: 13px; }
.psh-design-banner > .psh-container { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-block: 7px; }
.psh-design-banner .psh-icon { width: 18px; height: 18px; }
.psh-public .psh-design-banner a { margin-inline-start: auto; color: var(--color-secondary-soft-content); font-weight: 800; }

.psh-site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--color-base-border); background: var(--color-base-100); }
.psh-header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.psh-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; }
.psh-brand img { display: block; width: 136px; height: 34px; object-fit: contain; }
.psh-brand-label { padding-inline-start: 14px; border-inline-start: 1px solid var(--color-base-border); color: var(--color-base-content-muted); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.psh-site-nav { display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; }
.psh-nav-list { display: flex; align-items: center; gap: 4px; margin-inline-end: auto; }
.psh-nav-list a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-inline: 12px;
	border-radius: 10px;
	color: var(--color-base-content-muted);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--pub-ease), color var(--pub-ease);
}
.psh-public .psh-nav-list a:hover { background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-public .psh-nav-list a[aria-current] { color: var(--color-base-content); font-weight: 800; }
.psh-nav-list a[aria-current]::after { content: ''; position: absolute; inset-inline: 12px; bottom: -16px; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-secondary); }
.psh-official-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding-inline: 18px;
	border-radius: var(--pub-r-sm);
	background: var(--color-secondary);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--pub-ease);
}
.psh-public .psh-official-link { color: var(--color-secondary-content); }
.psh-public .psh-official-link:hover { background: var(--color-secondary-hover); color: var(--color-secondary-content); }
.psh-public .psh-official-link:active { background: var(--color-secondary-active); }
.psh-official-link .psh-icon { width: 16px; height: 16px; }
.psh-menu-button {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-inline-start: auto;
	padding-inline: 12px 14px;
	border: 1px solid var(--color-base-border);
	border-radius: var(--pub-r-sm);
	background: var(--color-base-100);
	color: var(--color-base-content);
	font-size: 14px;
	font-weight: 800;
	transition: background-color var(--pub-ease), border-color var(--pub-ease);
}
.psh-menu-button:hover,
.psh-menu-button[aria-expanded=true] { border-color: var(--color-primary-border); background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-menu-open,
.psh-menu-close { display: inline-flex; }
.psh-menu-close,
.psh-menu-button[aria-expanded=true] .psh-menu-open { display: none; }
.psh-menu-button[aria-expanded=true] .psh-menu-close { display: inline-flex; }

/* 5. Home dashboard -------------------------------------------------------- */
.psh-dash { padding-block: 24px 48px; }
.psh-dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 20px; }
.psh-dash-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.psh-pinned {
	display: grid;
	gap: 4px;
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--color-base-border);
	border-top: 3px solid var(--color-secondary);
	border-radius: 14px;
	background: var(--color-secondary-soft);
	text-decoration: none;
	transition: border-color var(--pub-ease);
}
.psh-public .psh-pinned:hover { border-color: var(--color-base-border-strong); border-top-color: var(--color-secondary); }
.psh-pinned-label { display: inline-flex; align-items: center; gap: 6px; color: var(--color-secondary-soft-content); font-size: 12px; font-weight: 800; }
.psh-pinned-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-secondary); }
.psh-pinned strong { color: var(--color-base-content); font-size: 15px; font-weight: 800; line-height: 1.75; overflow-wrap: anywhere; }
.psh-pinned:hover strong { color: var(--color-primary-text); text-decoration: underline; }
.psh-pinned + .psh-feed { margin-top: 4px; }

/* 6. Inner page intro and breadcrumb -------------------------------------- */
.psh-page-intro { padding-block: 20px 24px; border-bottom: 1px solid var(--color-base-border); background: var(--color-base-100); }
.psh-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 8px; color: var(--color-base-content-muted); font-size: 13px; }
.psh-breadcrumb li + li::before { content: '/'; margin-inline-end: 8px; color: var(--color-base-border-strong); }
.psh-public .psh-breadcrumb a { display: inline-block; padding-block: 3px; color: var(--color-base-content-muted); text-decoration: none; }
.psh-public .psh-breadcrumb a:hover { color: var(--color-primary-text); text-decoration: underline; }
.psh-page-intro h1 { font-size: clamp(24px, .6vw + 20px, 30px); line-height: 1.5; }
.psh-page-intro p { max-width: 70ch; margin-top: 4px; color: var(--color-base-content-muted); font-size: 15px; }

/* 7. Archives, search, filters, pagination -------------------------------- */
.psh-archive-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 24px 56px; }
.psh-filters { border: 1px solid var(--color-base-border); border-radius: var(--pub-r-lg); background: var(--color-base-100); box-shadow: var(--pub-shadow); }
.psh-filters > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 20px; color: var(--color-base-content); font-size: 15px; font-weight: 800; list-style: none; }
.psh-filters > summary::-webkit-details-marker,
.psh-legend > summary::-webkit-details-marker { display: none; }
.psh-filters > summary::after,
.psh-legend > summary::after {
	content: '';
	width: 8px;
	height: 8px;
	margin-inline-start: auto;
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateY(-2px) rotate(-45deg);
	transition: transform .15s;
}
.psh-filters[open] > summary::after,
.psh-legend[open] > summary::after { transform: translateY(2px) rotate(135deg); }
.psh-filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--color-secondary); color: var(--color-secondary-content); font-size: 12px; line-height: 1; }
.psh-filters form { display: grid; gap: 14px; padding: 16px 20px 20px; border-top: 1px solid var(--color-base-border); }
.psh-field { display: grid; gap: 6px; color: var(--color-base-content-muted); font-size: 13.5px; font-weight: 700; }
.psh-date-filters { display: grid; gap: 12px; min-width: 0; padding: 0; border: 0; }
.psh-date-filters legend { margin-bottom: 4px; padding: 0; color: var(--color-base-content-muted); font-size: 13.5px; font-weight: 800; }
.psh-date-filters legend small { color: var(--color-base-content-muted); font-size: 12px; font-weight: 400; }
.psh-filter-actions { display: flex; flex-direction: column; gap: 4px; }
.psh-filter-actions .psh-button { width: 100%; }
.psh-reset { display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 14px; font-weight: 700; }
.psh-results-panel { overflow: hidden; border: 1px solid var(--color-base-border); border-radius: var(--pub-r-lg); background: var(--color-base-100); box-shadow: var(--pub-shadow); }
.psh-results-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 16px 24px; border-bottom: 1px solid var(--color-base-border); }
.psh-results-heading h2 { font-size: 18px; overflow-wrap: anywhere; }
.psh-results-heading p { color: var(--color-base-content-muted); font-size: 13.5px; }
.psh-active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--color-base-border); background: var(--color-base-200); }
.psh-active-filters a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	min-height: 34px;
	padding-inline: 12px 10px;
	border: 1px solid var(--color-base-border);
	border-radius: 999px;
	background: var(--color-base-100);
	color: var(--color-base-content);
	font-size: 13px;
	text-decoration: none;
	transition: border-color var(--pub-ease), background-color var(--pub-ease), color var(--pub-ease);
}
.psh-active-filters a > span { color: var(--color-base-content-muted); }
.psh-active-filters bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-active-filters .psh-icon { width: 14px; height: 14px; }
.psh-public .psh-active-filters a:hover { border-color: var(--color-primary-border); background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-results-panel .psh-empty { margin: 20px 24px 24px; }
.psh-error {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
	padding: 12px 16px;
	border: 1px solid var(--color-error-border);
	border-inline-start: 4px solid var(--color-error);
	border-radius: var(--pub-r-sm);
	background: var(--color-error-soft);
	color: var(--color-error-soft-content);
	font-size: 14px;
}
.psh-error .psh-icon { margin-top: 3px; }
.psh-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.psh-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; }
.psh-page-link,
.psh-page-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--color-base-border);
	border-radius: var(--pub-r-sm);
	background: var(--color-base-100);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--pub-ease), border-color var(--pub-ease), color var(--pub-ease);
}
.psh-page-step .psh-icon { width: 18px; height: 18px; }
.psh-public .psh-page-link:hover,
.psh-public .psh-page-step:hover { border-color: var(--color-primary-border); background: var(--color-primary-soft); }
.psh-public .psh-page-link[aria-current=page] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-content); font-weight: 800; }
.psh-page-gap { display: grid; place-items: center; min-width: 20px; color: var(--color-base-content-muted); }

/* Content rows (archives) and tiles. */
.psh-list { display: flex; flex-direction: column; }
.psh-content-card { position: relative; min-width: 0; }
.psh-card--row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; padding: 18px 24px; transition: background-color var(--pub-ease); }
.psh-card--row + .psh-card--row { border-top: 1px solid var(--color-base-border); }
.psh-card--row:hover { background: var(--color-primary-soft); }
.psh-card-date { display: flex; flex-direction: column; align-items: flex-start; color: var(--color-base-content-muted); font-size: 12.5px; line-height: 1.5; }
.psh-card-day { color: var(--color-primary-text); font-size: 26px; font-weight: 800; line-height: 1.25; }
.psh-card-month { color: var(--color-base-content-muted); font-weight: 700; }
.psh-card-time { font-size: 12px; }
.psh-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--color-base-content-muted); font-size: 12.5px; }
.psh-content-card h3 { margin-top: 6px; font-size: 16.5px; font-weight: 800; line-height: 1.75; overflow-wrap: anywhere; }
.psh-public .psh-card-link { color: var(--color-base-content); text-decoration: none; transition: color var(--pub-ease); }
.psh-card-link::after { content: ''; position: absolute; inset: 0; }
.psh-public .psh-content-card:hover .psh-card-link { color: var(--color-primary-soft-content); text-decoration: underline; }
.psh-public .psh-card-link:focus-visible { outline: none; }
.psh-card-link:focus-visible::after { outline: 3px solid var(--color-focus-ring); outline-offset: -3px; border-radius: var(--pub-r-sm); }
.psh-card-summary {
	display: -webkit-box;
	max-width: 76ch;
	margin-top: 4px;
	overflow: hidden;
	color: var(--color-base-content-muted);
	font-size: 14px;
	line-height: 1.9;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.psh-card-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--color-primary-text); font-size: 13px; font-weight: 800; }
.psh-card-source .psh-icon { width: 16px; height: 16px; }
.psh-card--tile { display: flex; flex-direction: column; }
.psh-card--tile .psh-card-body { order: 1; }
.psh-card--tile .psh-card-date { order: 2; flex-direction: row; gap: 0 6px; margin-top: 10px; }
.psh-card-image { margin-bottom: 14px; overflow: hidden; border-radius: var(--pub-r-sm); background: var(--color-base-200); aspect-ratio: 12 / 7; }
.psh-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 8. Empty states ---------------------------------------------------------- */
.psh-empty { display: flex; align-items: flex-start; gap: 16px; padding: 22px; border: 1px dashed var(--color-base-border-strong); border-radius: var(--pub-r); background: var(--color-base-200); }
.psh-empty-icon { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-primary-border); border-radius: var(--pub-r-sm); background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-empty h3 { font-size: 16px; font-weight: 800; }
.psh-empty p { max-width: 60ch; margin-top: 2px; color: var(--color-base-content-muted); font-size: 14.5px; }
.psh-empty-actions { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }

/* 9. Detail pages ---------------------------------------------------------- */
.psh-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-block: 24px 56px; }
.psh-article { padding: 26px 36px 30px; border: 1px solid var(--color-base-border); border-radius: var(--pub-r-lg); background: var(--color-base-100); box-shadow: var(--pub-shadow); }
.psh-article .psh-breadcrumb ol { margin-bottom: 16px; }
.psh-article-heading { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--color-base-border); }
.psh-article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.psh-article h1 { margin-top: 12px; font-size: clamp(23px, .8vw + 18px, 30px); line-height: 1.65; overflow-wrap: anywhere; }
.psh-article-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 14px; font-size: 13.5px; }
.psh-article-meta > div { display: flex; align-items: center; gap: 6px; }
.psh-article-meta dt { display: inline-flex; align-items: center; gap: 6px; color: var(--color-base-content-muted); }
.psh-article-meta dt::after { content: ':'; margin-inline-start: -4px; }
.psh-article-meta dd { color: var(--color-base-content); font-weight: 700; }
.psh-article-meta .psh-icon { width: 17px; height: 17px; }
.psh-incident-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin-top: 20px;
	overflow: hidden;
	border: 1px solid var(--color-base-border);
	border-radius: 14px;
	background: var(--color-base-border);
}
.psh-incident-facts > div { padding: 12px 16px; background: var(--color-base-200); }
.psh-incident-facts dt { color: var(--color-base-content-muted); font-size: 12.5px; }
.psh-incident-facts dd { margin-top: 2px; color: var(--color-base-content); font-size: 14.5px; font-weight: 800; line-height: 1.7; }
.psh-article-body { max-width: 70ch; color: var(--color-base-content); font-size: 17px; line-height: 2.1; overflow-wrap: anywhere; }
.psh-article-body p { white-space: pre-line; }
.psh-article-body p + p { margin-top: 1.1em; }
.psh-article-image { margin-bottom: 24px; overflow: hidden; border-radius: var(--pub-r); background: var(--color-base-200); }
.psh-article-image img { display: block; width: 100%; }
.psh-original,
.psh-related-cta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px 18px;
	margin-top: 28px;
	padding: 18px 20px;
	border: 1px solid var(--color-base-border);
	border-top: 3px solid var(--color-secondary);
	border-radius: var(--pub-r);
	background: var(--color-secondary-soft);
}
.psh-related-cta { grid-template-columns: auto minmax(0, 1fr); }
.psh-original-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--pub-r-sm); background: var(--color-brand-midnight); color: var(--color-secondary); }
.psh-original h2 { font-size: 16.5px; }
.psh-original p { color: var(--color-base-content-muted); font-size: 14px; }
.psh-url { margin-top: 2px; color: var(--color-base-content-muted); font-family: var(--psh-font-mono); font-size: 13px; overflow-wrap: anywhere; }
.psh-related-cta-label { color: var(--color-base-content-muted); font-size: 13px; }
.psh-related-cta a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.psh-related-cta a:hover { text-decoration: underline; }
.psh-related-cta a .psh-icon { width: 16px; height: 16px; }
.psh-incident-timeline { margin-top: 36px; }
.psh-incident-timeline h2 { font-size: 19px; }
.psh-incident-timeline > p { margin-top: 2px; color: var(--color-base-content-muted); font-size: 13.5px; }
.psh-incident-timeline ol { position: relative; margin-top: 20px; padding-inline-start: 30px; }
.psh-incident-timeline ol::before { content: ''; position: absolute; inset-inline-start: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--color-base-border); }
.psh-incident-timeline li { --tone: var(--color-primary); position: relative; padding-bottom: 22px; }
.psh-incident-timeline li:last-child { padding-bottom: 0; }
.psh-incident-timeline li::before { content: ''; position: absolute; inset-inline-start: -30px; top: 6px; width: 16px; height: 16px; border: 4px solid var(--tone); border-radius: 50%; background: var(--color-base-100); }
.psh-incident-timeline time { color: var(--color-base-content-muted); font-size: 12.5px; }
.psh-incident-timeline h3 { margin-top: 2px; font-size: 16px; font-weight: 800; }
.psh-incident-timeline li p { max-width: 64ch; margin-top: 2px; color: var(--color-base-content-muted); font-size: 14.5px; }
.psh-article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--color-base-border); color: var(--color-base-content-muted); font-size: 13px; }
.psh-article-footer > span { display: inline-flex; align-items: center; gap: 8px; }
.psh-article-footer > span .psh-icon { width: 17px; height: 17px; }
.psh-article-aside { display: grid; gap: 20px; }
.psh-aside-block { padding: 18px 20px 12px; border: 1px solid var(--color-base-border); border-radius: var(--pub-r-lg); background: var(--color-base-100); box-shadow: var(--pub-shadow); }
.psh-aside-block h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.psh-aside-block h2 .psh-icon { color: var(--color-primary-text); }
.psh-public .psh-related-link { color: var(--color-base-content); }
.psh-public .psh-related-link:hover { color: var(--color-primary-text); }
.psh-aside-block > p { margin-top: 4px; color: var(--color-base-content-muted); font-size: 13.5px; }
.psh-related-list { margin-top: 6px; }
.psh-related-list li + li { border-top: 1px solid var(--color-base-border); }
.psh-related-list li { padding-block: 10px; }
.psh-related-link { display: block; font-size: 14px; font-weight: 700; line-height: 1.8; text-decoration: none; overflow-wrap: anywhere; }
.psh-related-link:hover { text-decoration: underline; }
.psh-related-list time { display: block; color: var(--color-base-content-muted); font-size: 12.5px; }

/* 10. Service status ------------------------------------------------------- */
.psh-status-page { padding-block: 24px 56px; }
.psh-services-panel { margin-top: 20px; }
.psh-service-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 6px 28px; align-items: center; padding-block: 16px; }
.psh-service-card + .psh-service-card { border-top: 1px solid var(--color-base-border); }
.psh-service-name h3 { font-size: 16px; font-weight: 800; line-height: 1.7; }
.psh-service-name p { color: var(--color-base-content-muted); font-size: 12.5px; }
.psh-service-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.psh-service-card dt { color: var(--color-base-content-muted); font-size: 12px; }
.psh-service-card dd { color: var(--color-base-content); font-size: 14px; font-weight: 500; line-height: 1.75; }
.psh-service-card .psh-status-badge { justify-self: end; }
.psh-service-card > p { grid-column: 1 / -1; font-size: 13.5px; }
.psh-stale { padding: 8px 14px; border-radius: var(--pub-r-sm); background: var(--color-warning-soft); color: var(--color-warning-soft-content); }
.psh-service-note { color: var(--color-base-content-muted); }
.psh-legend { margin-block: 6px 10px; border-radius: 14px; background: var(--color-base-200); }
.psh-legend > summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px; color: var(--color-base-content); font-size: 14px; font-weight: 800; list-style: none; }
.psh-legend dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; padding: 4px 16px 16px; }
.psh-legend dl > div { display: grid; align-content: start; justify-items: start; gap: 4px; }
.psh-legend dd { color: var(--color-base-content-muted); font-size: 13px; line-height: 1.85; }

/* 11. Not found ------------------------------------------------------------ */
.psh-not-found { max-width: 760px; padding-block: 48px 72px; text-align: center; }
.psh-404-number { color: var(--color-primary-border); font-size: clamp(60px, 5vw + 30px, 88px); font-weight: 800; line-height: 1.2; }
.psh-not-found h1 { margin-top: 4px; font-size: clamp(24px, 1vw + 18px, 32px); }
.psh-lead { max-width: 52ch; margin-top: 8px; color: var(--color-base-content-muted); font-size: 16px; line-height: 1.95; }
.psh-not-found .psh-lead { margin-inline: auto; }
.psh-search-field { display: flex; align-items: center; gap: 6px; max-width: 560px; margin: 24px auto 0; padding: 5px; border: 1px solid var(--color-base-border); border-radius: var(--pub-r); background: var(--color-base-100); box-shadow: var(--pub-shadow); text-align: start; transition: border-color var(--pub-ease), box-shadow var(--pub-ease); }
.psh-search-field:focus-within { border-color: var(--color-field-border-focus); box-shadow: 0 0 0 1px var(--color-field-border-focus); }
.psh-search-icon { display: grid; place-items: center; padding-inline-start: 8px; color: var(--color-base-content-muted); }
.psh-public .psh-search-field input { flex: 1; min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-size: 15px; }
.psh-public .psh-search-field input:focus-visible { outline: none; }
.psh-search-field .psh-button { flex-shrink: 0; }
.psh-not-found-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; text-align: start; }
.psh-not-found-links a {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--color-base-border);
	border-radius: var(--pub-r);
	background: var(--color-base-100);
	box-shadow: var(--pub-shadow);
	text-decoration: none;
	transition: border-color var(--pub-ease), box-shadow var(--pub-ease);
}
.psh-public .psh-not-found-links a:hover strong { color: var(--color-primary-text); }
.psh-public .psh-not-found-links a:hover { border-color: var(--color-primary-border); box-shadow: var(--pub-shadow-hover); }
.psh-not-found-links .psh-icon { box-sizing: content-box; padding: 10px; border-radius: var(--pub-r-sm); background: var(--color-primary-soft); color: var(--color-primary-soft-content); }
.psh-not-found-links strong { display: block; color: var(--color-base-content); font-size: 15px; font-weight: 800; }
.psh-not-found-links small { display: block; color: var(--color-base-content-muted); font-size: 13px; }

/* 12. Footer --------------------------------------------------------------- */
.psh-site-footer { border-top: 1px solid var(--color-base-border); background: var(--color-base-100); }
.psh-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 22px; }
.psh-footer-brand { display: flex; align-items: center; gap: 12px; }
.psh-footer-brand img { width: auto; height: 38px; flex-shrink: 0; }
.psh-footer-brand p { display: grid; line-height: 1.7; }
.psh-footer-brand strong { color: var(--color-base-content); font-size: 14.5px; font-weight: 800; }
.psh-footer-brand span { color: var(--color-base-content-muted); font-size: 12.5px; }
.psh-footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.psh-footer-nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--color-base-content-muted); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.psh-public .psh-footer-nav a:hover { color: var(--color-primary-text); text-decoration: underline; }
.psh-footer-nav .psh-icon { width: 14px; height: 14px; }

/* 13. Responsive ----------------------------------------------------------- */
@media (min-width: 1100px) {
	.psh-site-header { position: sticky; top: var(--pub-sticky-top); }
	/* The filter box shows in full and scrolls with the page; no inner scrollbar. */
	.psh-article-aside { position: sticky; top: calc(var(--pub-sticky-top) + 96px); }
	html:has(.psh-public) { scroll-padding-top: calc(var(--pub-sticky-top) + 92px); }
}
/* The header needs ~760px for brand, four links and the official link, so it folds into the menu only below 900px. */
@media (max-width: 899px) {
	.psh-header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 64px; }
	.psh-menu-button { display: inline-flex; }
	.psh-site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-block: 8px 16px; border-top: 1px solid var(--color-base-border); }
	.psh-nav-closed .psh-site-nav { display: none; }
	.psh-nav-list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.psh-nav-list a { min-height: 48px; font-size: 16px; }
	.psh-nav-list a[aria-current]::after { inset-inline: 0 auto; top: 12px; bottom: 12px; width: 3px; height: auto; border-radius: 3px; }
	.psh-official-link { justify-content: center; }
}
@media (max-width: 1099px) {
	.psh-band { grid-template-columns: 1fr; }
	.psh-dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psh-dash-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.psh-archive-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
	.psh-filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psh-field-wide,
	.psh-date-filters,
	.psh-filter-actions { grid-column: 1 / -1; }
	.psh-date-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psh-date-filters legend { grid-column: 1 / -1; }
	.psh-filter-actions { flex-direction: row; align-items: center; gap: 16px; }
	.psh-filter-actions .psh-button { width: auto; }
	.psh-article-layout { grid-template-columns: minmax(0, 1fr); }
	.psh-article-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psh-legend dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
	.psh-service-card { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
	.psh-service-card .psh-status-badge { grid-row: 1; grid-column: 2; align-self: start; }
	.psh-service-card dl { grid-column: 1 / -1; }
	.psh-incident-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
	.psh-public { font-size: 15.5px; }
	.psh-container { width: calc(100% - 32px); }
	.psh-brand { gap: 10px; }
	.psh-brand img { width: 112px; height: 28px; }
	.psh-brand-label { padding-inline-start: 10px; font-size: 12px; }
	.psh-design-banner { font-size: 12px; }
	.psh-band { gap: 16px; padding: 18px; }
	.psh-public .psh-band h2 { font-size: 19px; }
	.psh-state-dot { width: 40px; height: 40px; }
	.psh-overall { margin-top: 12px; }
	.psh-service-tiles { grid-template-columns: 1fr; gap: 8px; }
	.psh-service-tiles > li { padding: 12px 14px; }
	.psh-dash-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
	.psh-panel { padding: 14px 16px 6px; }
	.psh-panel-head { padding-bottom: 10px; }
	.psh-feed .psh-feed-item:nth-child(n+4) { display: none; }
	.psh-dash { padding-block: 14px 32px; }
	.psh-page-intro { padding-block: 14px 18px; }
	.psh-page-intro h1 { font-size: 23px; }
	.psh-page-intro p { font-size: 14.5px; }
	.psh-archive-layout { padding-block: 14px 40px; }
	.psh-filters form { grid-template-columns: 1fr; padding-inline: 16px; }
	.psh-filters > summary { padding-inline: 16px; }
	.psh-filter-actions { flex-direction: column; align-items: stretch; gap: 4px; }
	.psh-filter-actions .psh-button { width: 100%; }
	.psh-results-heading { padding: 14px 16px; }
	.psh-results-heading h2 { font-size: 16.5px; }
	.psh-active-filters { padding-inline: 16px; }
	.psh-card--row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
	.psh-card-date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 5px; font-size: 12.5px; }
	.psh-card-day { color: var(--color-base-content-muted); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
	.psh-card-time::before { content: '· '; }
	.psh-content-card h3 { margin-top: 4px; font-size: 15.5px; }
	.psh-card-summary { font-size: 14px; }
	.psh-results-panel .psh-empty { margin: 14px 16px 16px; }
	.psh-page-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.psh-page-step { padding-inline: 0; }
	.psh-empty { flex-direction: column; gap: 10px; padding: 18px; }
	.psh-article-layout { gap: 14px; padding-block: 14px 40px; }
	.psh-article { padding: 18px 16px 20px; }
	.psh-article h1 { font-size: 22px; }
	.psh-article-meta { flex-direction: column; gap: 0; font-size: 13px; }
	.psh-article-body { font-size: 16px; line-height: 2.05; }
	.psh-original { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
	.psh-original .psh-button { grid-column: 1 / -1; width: 100%; }
	.psh-related-cta { padding: 16px; }
	.psh-article-footer { flex-direction: column; align-items: flex-start; }
	.psh-article-aside { grid-template-columns: 1fr; gap: 14px; }
	.psh-status-page { padding-block: 14px 40px; }
	.psh-services-panel { margin-top: 14px; }
	.psh-service-card dl { grid-template-columns: 1fr; }
	.psh-service-card dl > div { display: flex; flex-wrap: wrap; gap: 0 8px; }
	.psh-service-card dt::after { content: ':'; }
	.psh-legend dl { grid-template-columns: 1fr; }
	.psh-not-found { padding-block: 28px 48px; }
	.psh-not-found-links ul { grid-template-columns: 1fr; }
	.psh-footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 18px; }
}
@media (max-width: 420px) {
	.psh-menu-button { padding-inline: 10px; }
	.psh-menu-button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.psh-search-field .psh-search-icon { display: none; }
}
@media (max-width: 359px) {
	.psh-incident-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.psh-public *,
	.psh-public *::before,
	.psh-public *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
	.psh-status-badge,
	.psh-incident-state,
	.psh-category,
	.psh-band,
	.psh-panel { border: 1px solid CanvasText; }
	.psh-status-badge::before,
	.psh-state-icon { background: CanvasText; }
}
.psh-public :where(h1, h2, .psh-content-card h3) { text-wrap: balance; }
.psh-public :where(.psh-lead, .psh-page-intro p, .psh-card-summary, .psh-article-body p, .psh-empty p) { text-wrap: pretty; }

/* 14. Dashboard refinements ------------------------------------------------ */
.psh-band { align-items: center; }
.psh-service-tiles > li { grid-template-columns: 1fr; gap: 6px; }
.psh-service-tiles .psh-status-badge { justify-self: start; }
.psh-service-tiles small { grid-column: auto; }
.psh-dash-grid:not(.psh-dash-grid-2) { align-items: stretch; }
@media (max-width: 719px) {
	.psh-service-tiles > li { grid-template-columns: minmax(0, 1fr) auto; }
	.psh-service-tiles .psh-status-badge { justify-self: end; }
	.psh-service-tiles small { grid-column: 1 / -1; }
}
/* Keep the footer at the bottom when a page is short. */
body.psh-public { display: flex; flex-direction: column; min-height: 100vh; }
.psh-main { flex: 1 0 auto; }

/* 15. Compact header, title inside the status box, preview scenarios -------- */
.psh-header-inner { gap: 24px; min-height: 64px; }
.psh-brand img { width: 116px; height: 29px; }
.psh-brand-label { padding-inline-start: 12px; font-size: 12.5px; }
.psh-nav-list a { min-height: 40px; padding-inline: 10px; font-size: 14px; }
.psh-nav-list a[aria-current]::after { inset-inline: 10px; bottom: -12px; }
.psh-official-link { min-height: 38px; padding-inline: 14px; font-size: 13px; }
.psh-official-link .psh-icon { width: 15px; height: 15px; }
.psh-article-aside { top: calc(var(--pub-sticky-top) + 84px); }
.psh-public .psh-band h1 { color: var(--color-primary-content); font-size: 15px; font-weight: 800; line-height: 1.6; }
.psh-band-sub { margin-top: 14px; color: var(--color-primary-content); font-size: 13px; font-weight: 700; }
.psh-band-sub + .psh-overall { margin-top: 6px; }
.psh-design-banner > .psh-container { gap: 6px 14px; }
.psh-scenario-switch { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.psh-scenario-switch > span { font-weight: 700; }
.psh-scenario-switch ul { display: flex; padding: 3px; border: 1px solid var(--color-secondary); border-radius: 999px; background: var(--color-base-100); list-style: none; margin: 0; }
.psh-public .psh-scenario-switch a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding-inline: 12px;
	border-radius: 999px;
	color: var(--color-secondary-soft-content);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.psh-scenario-switch a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-control-off); }
.psh-scenario-switch .psh-scenario-healthy::before { background: var(--color-success); }
.psh-scenario-switch .psh-scenario-outage::before { background: var(--color-error); }
.psh-public .psh-scenario-switch a:hover { background: var(--color-secondary-soft); }
.psh-public .psh-scenario-switch a[aria-current] { background: var(--color-neutral); color: var(--color-neutral-content); }
.psh-public .psh-scenario-switch a[aria-current]::before { box-shadow: 0 0 0 2px var(--color-neutral-content); }
.psh-public .psh-design-banner .psh-preview-exit { margin-inline-start: 0; }
@media (max-width: 899px) {
	.psh-header-inner { min-height: 60px; }
}
@media (max-width: 719px) {
	.psh-brand img { width: 108px; height: 27px; }
	.psh-scenario-switch { flex-basis: 100%; margin-inline-start: 0; }
	.psh-scenario-switch ul { flex: 1; }
	.psh-public .psh-scenario-switch a { flex: 1; justify-content: center; padding-inline: 6px; }
	.psh-scenario-switch li { display: flex; flex: 1; }
	.psh-public .psh-band h1 { font-size: 14px; }
}

/* 16. PayStar DS polish ------------------------------------------------------ */
.psh-panel:hover,
.psh-aside-block:hover { box-shadow: var(--pub-shadow-hover); }
.psh-aside-block { transition: box-shadow var(--pub-ease); }
.psh-panel-head h2 { color: var(--color-base-content); }
.psh-public .psh-band-link:hover { color: var(--color-secondary-hover); }
.psh-public .psh-tile-more a:hover { color: var(--color-secondary-hover); text-decoration: underline; }

/* 17. Limited edition home and admin edit link ----------------------------- */
.psh-home { padding-block: 28px 56px; }
.psh-home-hero {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 32px;
	overflow: hidden;
	padding: 26px 32px;
	border-radius: var(--pub-r-lg);
	background: var(--color-brand-midnight);
	color: var(--color-primary-content);
	box-shadow: var(--pub-shadow-lg);
}
.psh-home-hero-text { position: relative; z-index: 1; max-width: 660px; }
.psh-public .psh-home-hero h1 { color: var(--color-primary-content); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.5; }
.psh-home-hero-text p { margin-top: 8px; color: var(--color-primary-content); font-size: 15px; line-height: 1.9; }
.psh-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-top: 22px; }
/* Both boxes keep the same size, also when one is empty or shorter. */
.psh-home-grid > .psh-home-panel { display: flex; flex-direction: column; }
.psh-home-grid > .psh-home-panel > .psh-panel-empty { flex: 1; align-items: center; justify-content: center; }
/* An open incident is the most urgent thing on the page: its box moves to the start (right in RTL, first on mobile). */
.psh-home-grid:has(.psh-home-incident-list .is-open) > .psh-home-incidents { order: -1; }
.psh-home-panel,
.psh-home-news { min-width: 0; padding: 20px 22px; border: 1px solid var(--color-base-border); border-radius: var(--pub-r-lg); background: var(--color-base-100); box-shadow: var(--pub-shadow); }
.psh-home-news { margin-top: 20px; }
.psh-home-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--color-base-border); }
.psh-public .psh-home-panel-head h2 { color: var(--color-base-content); font-size: 17px; line-height: 1.5; }
.psh-home-panel-head .psh-panel-more { margin-inline-start: auto; }
.psh-home-feature { display: grid; gap: 6px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--color-base-border); border-inline-start: 4px solid var(--color-secondary); border-radius: 14px; background: var(--color-secondary-soft); text-decoration: none; }
.psh-home-feature strong { color: var(--color-base-content); font-size: 16.5px; font-weight: 800; line-height: 1.7; overflow-wrap: anywhere; }
.psh-public .psh-home-feature:hover strong { color: var(--color-primary-text); text-decoration: underline; }
.psh-home-feature-summary,
.psh-home-item-summary,
.psh-news-card-summary { display: -webkit-box; overflow: hidden; color: var(--color-base-content-muted); font-size: 13.5px; line-height: 1.85; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.psh-home-list,
.psh-home-incident-list,
.psh-news-cards { margin: 0; padding: 0; list-style: none; }
.psh-home-list,
.psh-home-incident-list { display: grid; gap: 10px; }
.psh-home-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--color-base-border); border-radius: 14px; text-decoration: none; transition: background-color var(--pub-ease); }
.psh-public .psh-home-list a:hover,
.psh-public .psh-home-incident-list a:hover { background: var(--color-primary-soft); }
.psh-date-badge { display: grid; place-items: center; align-content: center; height: 56px; border-radius: 12px; background: var(--color-primary-soft); color: var(--color-primary-soft-content); line-height: 1.25; text-align: center; }
.psh-date-badge span { font-size: 20px; font-weight: 800; }
.psh-date-badge small { color: var(--color-primary-soft-content); font-size: 10.5px; font-weight: 700; }
.psh-home-item { display: grid; gap: 3px; min-width: 0; }
.psh-home-item-title { color: var(--color-base-content); font-size: 15px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.psh-public a:hover .psh-home-item-title { color: var(--color-primary-soft-content); text-decoration: underline; }
.psh-home-item .psh-feed-cat { color: var(--color-base-content-muted); font-size: 12px; }
.psh-home-incident-list a { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--color-base-border); border-inline-start: 3px solid var(--color-base-border-strong); border-radius: 14px; text-decoration: none; transition: background-color var(--pub-ease); }
.psh-home-incident-list li.is-open a { border-color: var(--color-error-border); border-inline-start-color: var(--color-error); background: var(--color-error-soft); }
.psh-home-incident-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.psh-home-incident-time { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--color-base-content-muted); font-size: 12.5px; }
.psh-home-incident-time .psh-icon { width: 14px; height: 14px; }
.psh-home-incident-time span::before { content: '·'; margin-inline-end: 10px; color: var(--color-base-border-strong); }
.psh-news-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.psh-news-cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border: 1px solid var(--color-base-border); border-radius: 14px; background: var(--color-base-200); text-decoration: none; transition: border-color var(--pub-ease), box-shadow var(--pub-ease); }
.psh-public .psh-news-cards a:hover { border-color: var(--color-base-border-strong); box-shadow: var(--pub-shadow-hover); }
.psh-public .psh-news-cards a:hover strong { text-decoration: underline; }
.psh-news-cards time { color: var(--color-base-content-muted); font-size: 12px; font-weight: 700; }
.psh-news-cards strong { display: -webkit-box; overflow: hidden; color: var(--color-base-content); font-size: 15px; font-weight: 800; line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.psh-news-card-source { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--color-primary-text); font-size: 12.5px; font-weight: 700; }
.psh-news-card-source .psh-icon { width: 14px; height: 14px; }
.psh-admin-edit { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 8px 14px; border-radius: 999px; background: var(--color-primary); color: var(--color-primary-content); font-size: 13px; font-weight: 700; text-decoration: none; }
.psh-public .psh-admin-edit:hover { background: var(--color-primary-hover); color: var(--color-primary-content); }
.psh-admin-edit .psh-icon { width: 15px; height: 15px; }
/* Touch screens: the small "همه" pills get a full 44px target. */
@media (pointer: coarse) {
	.psh-panel-more { min-height: 44px; padding-inline: 14px 12px; }
}
@media (max-width: 1099px) {
	.psh-news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
	.psh-home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
	.psh-home { padding-block: 16px 36px; }
	/* Keep the hero short so the first announcement shows on the first screen. */
	.psh-home-hero { padding: 16px 18px; }
	.psh-public .psh-home-hero h1 { font-size: 19px; line-height: 1.6; }
	.psh-home-hero-text p { margin-top: 4px; font-size: 13.5px; line-height: 1.8; }
	.psh-home-grid { margin-top: 16px; }
	.psh-home-panel,
	.psh-home-news { padding: 16px; }
	.psh-news-cards { grid-template-columns: 1fr; }
	.psh-home-list a { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
	.psh-date-badge { height: 48px; }
}
