/* SSP Pathways – uses the theme's colour tokens, with fallbacks. */
.pw { margin: 1.5rem 0 2.5rem; }
.pw .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Without JS: both lists show one after the other. */
.pw-tabs, .pw-tools { display: none; }
.pw-nojs-h { margin-top: 2.5rem; }
.pw.is-js .pw-nojs-h { display: none; }
.pw.is-js .pw-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pw.is-js .pw-tools { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 1.25rem 0 .5rem; }
.pw.is-js .pw-tools[hidden] { display: none; }
.pw.is-js .pw-panel[hidden] { display: none; }

.pw-tabs button {
	flex: 1 1 14rem; padding: .9rem 1.1rem; font: 700 1.15rem/1.2 var(--display, sans-serif);
	text-transform: uppercase; letter-spacing: .02em; cursor: pointer;
	background: var(--surface, #fff); color: var(--ink, #003058);
	border: 2px solid var(--line, #cfdfea); border-radius: var(--radius, 6px);
}
.pw-tabs button[aria-selected="true"] { background: var(--navy, #003058); color: var(--navy-ink, #fff); border-color: var(--navy, #003058); }
.pw-tabs button:hover:not([aria-selected="true"]) { border-color: var(--blue, #0b6ea6); }

.pw-tools input[type="search"] {
	flex: 1 1 18rem; min-width: 0; padding: .7rem .9rem; font: inherit; color: var(--ink, #003058);
	background: var(--surface, #fff); border: 2px solid var(--line, #cfdfea); border-radius: var(--radius, 6px);
}
.pw-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pw-chip {
	padding: .45rem .85rem; font: 600 .95rem/1 var(--font, sans-serif); cursor: pointer; border-radius: 999px;
	background: var(--surface, #fff); color: var(--ink, #003058); border: 1px solid var(--line, #cfdfea);
}
.pw-chip[aria-pressed="true"] { background: var(--sky, #5bbde9); color: var(--sky-ink, #003058); border-color: var(--sky, #5bbde9); }

.pw-lead { color: var(--muted, #4f6478); margin: 1rem 0 1.25rem; max-width: 46rem; }

.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; align-items: start; }
.pw-card { background: var(--surface, #fff); border: 1px solid var(--line, #cfdfea); border-radius: var(--radius, 6px); }
.pw-card[open] { grid-column: 1 / -1; border-color: var(--blue, #0b6ea6); }
.pw-card[hidden] { display: none; }
.pw-card summary {
	display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; cursor: pointer; list-style: none;
}
.pw-card summary::-webkit-details-marker { display: none; }
.pw-card summary:hover .pw-title { text-decoration: underline; }
.pw-logo-wrap { flex: 0 0 4.25rem; width: 4.25rem; height: 4.25rem; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; overflow: hidden; }
.pw-logo-wrap img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.pw-mono { background: var(--tint, #e9f4fa); color: var(--navy, #003058); font: 700 1.5rem/1 var(--display, sans-serif); }
.pw-text { flex: 1 1 auto; min-width: 0; display: block; }
.pw-title { display: block; font: 700 1.3rem/1.2 var(--display, sans-serif); color: var(--ink, #003058); }
.pw-region { display: inline-block; margin: .25rem 0; padding: .1rem .55rem; font-size: .8rem; font-weight: 600; color: var(--muted, #4f6478); background: var(--tint, #e9f4fa); border-radius: 999px; }
.pw-summary { display: block; color: var(--muted, #4f6478); font-size: .98rem; line-height: 1.45; }
.pw-more { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .2rem; position: relative; }
.pw-more::before, .pw-more::after { content: ""; position: absolute; left: 50%; top: 50%; width: .9rem; height: 2px; background: var(--blue, #0b6ea6); transform: translate(-50%, -50%); }
.pw-more::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s; }
.pw-card[open] .pw-more::after { transform: translate(-50%, -50%) rotate(0); }

.pw-detail { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--line, #cfdfea); max-width: 52rem; }
.pw-detail > :first-child { margin-top: 1.1rem; }
.pw-detail h3 { margin-top: 1.5rem; }
.pw-official a { font-weight: 600; }
.pw-checked { font-size: .9rem; color: var(--muted, #4f6478); margin-bottom: 0; }
.pw-empty { padding: 1.5rem; text-align: center; color: var(--muted, #4f6478); }
@media (prefers-reduced-motion: reduce) { .pw-more::after { transition: none; } }

.pw-flag { display: inline-block; height: .8em; width: auto; vertical-align: baseline; margin: 0 .35em 0 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.pw-caveat { background: #fff6dc; border-left: 4px solid #d99a00; padding: .6rem .9rem; border-radius: 4px; font-size: .95rem; }
.pw-single-logo img { max-width: 14rem; height: auto; background: #fff; border-radius: 4px; }
.pw-others { columns: 2; padding-left: 1.2rem; }
.pw-fullpage { margin: .5rem 0 0; }
.pw-local { list-style: none; padding: 0; display: grid; gap: .75rem; }
.pw-local a { display: flex; gap: .9rem; align-items: center; padding: .75rem; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; text-decoration: none; color: inherit; }
.pw-local a:hover strong { text-decoration: underline; }
.pw-local-logo { flex: 0 0 4rem; width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; overflow: hidden; }
.pw-local-logo img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.pw-based { font-weight: 600; }
