/*
 * Trip planner, styles of the window of questions (.pl-) and of the page of the plan (.plr-).
 * Design by Lori, 28.11.2026 (canvas "מחולל הטיולים"). Brand values come from the theme (tripbagalil 1.5.1).
 * Rules of the design: text on orange is never white (2.6:1), a selected choice is shown by border, background and a check mark (not by
 * color alone), every target is 44px or more, and with "reduce motion" nothing moves.
 */
:root {
	--pl-ink: #063c30;
	--pl-green: #07513d;
	--pl-muted: #45665e;
	--pl-mint: #eefae8;
	--pl-chip: #d8faaa;
	--pl-map: #d9e9db;
	--pl-border: #dae5df;
	--pl-border-soft: #e6ece7;
	--pl-border-mid: #b7ccc4;
	--pl-input-border: #6f8a81; /* the edge of a field, 3.7:1 on white */
	--pl-orange: #ff7a05;
	--pl-orange-text: #a84300;
	--pl-warn-bg: #fff1e6;
	--pl-warn-border: #ffd2ad;
	--pl-err: #a32116;
	--pl-err-bg: #fdecea;
	--pl-err-border: #f1b3ad;
	--pl-shadow-card: 0 5px 10px rgba(13, 46, 36, 0.1);
	--pl-shadow-panel: 0 5px 24px rgba(13, 46, 36, 0.14);
	--pl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- the window ---------- */
.pl-root { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; direction: rtl; color: var(--pl-ink); font-family: inherit; }
.pl-root[hidden] { display: none; }
.pl-backdrop { position: absolute; inset: 0; background: rgba(6, 60, 48, 0.58); }
.pl-win { position: relative; display: flex; width: min(760px, calc(100vw - 32px)); height: min(700px, calc(100vh - 32px)); height: min(700px, calc(100dvh - 32px)); border-radius: 24px; background: #fff; box-shadow: var(--pl-shadow-panel), 0 24px 80px rgba(0, 0, 0, 0.28); overflow: hidden; animation: pl-rise 200ms var(--pl-ease); }
.pl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pl-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px 0 20px; min-height: 56px; }
.pl-step { font-size: 15px; font-weight: 700; color: var(--pl-muted); }
.pl-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--pl-mint); color: var(--pl-ink); cursor: pointer; }
.pl-bars { display: flex; gap: 6px; padding: 10px 28px 0; }
.pl-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--pl-border); }
.pl-bar.is-on { background: var(--pl-green); }
.pl-body { flex: 1; overflow-y: auto; padding: 26px 28px 16px; overscroll-behavior: contain; }
.pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px 22px; border-top: 1px solid var(--pl-border-soft); }
.pl-h { margin: 0 0 8px; font-size: 34px; line-height: 1.2; font-weight: 800; color: var(--pl-ink); }
.pl-h:focus { outline: none; }
.pl-help { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: var(--pl-muted); }
.pl-count { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--pl-green); }
.pl-sub { margin: 24px 0 10px; font-size: 17px; font-weight: 800; }
.pl-gap { margin-top: 18px; }

.pl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; }
.pl-chip, .pl-card, .pl-tile { font: inherit; color: var(--pl-ink); cursor: pointer; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--pl-border-mid); background: #fff; font-size: 16px; font-weight: 700; }
.pl-chip[aria-pressed="true"] { border: 2px solid var(--pl-green); background: var(--pl-mint); padding: 7px 19px; }
.pl-chip[aria-disabled="true"] { background: #f4f7f5; color: var(--pl-muted); border-color: var(--pl-border); cursor: not-allowed; }
.pl-cards { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; }
.pl-card { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 60px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--pl-border-mid); background: #fff; font-size: 18px; font-weight: 700; text-align: right; }
.pl-card[aria-pressed="true"] { border: 2px solid var(--pl-green); background: var(--pl-mint); padding: 11px 15px; }
.pl-card__label { flex: 1; }
.pl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.pl-tile { box-sizing: border-box; min-height: 78px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--pl-border-mid); background: #fff; text-align: center; }
.pl-tile[aria-pressed="true"] { border: 2px solid var(--pl-green); background: var(--pl-mint); padding: 9px 5px; }
.pl-tile__name { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 17px; font-weight: 800; }
.pl-tile__sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--pl-muted); }
.pl-tick { flex: none; }
.pl-ages { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--pl-mint); }
.pl-ages .pl-chips { margin-top: 10px; gap: 8px; }
.pl-ages__q { margin: 0; font-size: 16px; font-weight: 700; }
.pl-ages__help { margin: 6px 0 0; font-size: 13px; color: var(--pl-muted); }

.pl-alert { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--pl-err-bg); border: 1px solid var(--pl-err-border); color: var(--pl-err); font-size: 14px; font-weight: 700; }
.pl-alert:empty { margin: 0; padding: 0; border: 0; min-height: 0; } /* the box is in the page before it has a word, so that a screen reader hears the word; empty, it takes no room */
.pl-ts { margin-top: 14px; min-height: 0; }

.pl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 44px; border: 0; border-radius: 999px; background: var(--pl-green); color: #fff; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; text-decoration: none; }
.pl-btn[aria-disabled="true"] { background: var(--pl-border); color: var(--pl-muted); cursor: not-allowed; }
.pl-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border: 0; background: none; color: var(--pl-green); font: inherit; font-size: 16px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.pl-btn--wide { width: 100%; }

/* the form of registration, the code, signing in */
.pl-form { display: grid; gap: 14px; margin: 16px 0 0; }
.pl-field { display: grid; gap: 6px; }
.pl-label { font-size: 15px; font-weight: 700; color: var(--pl-ink); }
.pl-input { box-sizing: border-box; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--pl-input-border); border-radius: 12px; background: #fff; color: var(--pl-ink); font: inherit; font-size: 17px; font-weight: 500; }
.pl-input[dir="ltr"] { text-align: right; }
.pl-input[aria-invalid="true"] { border: 2px solid var(--pl-err); padding: 9px 13px; }
.pl-input:focus-visible, .pl-code:focus-visible, .pl-consent__row input:focus-visible { outline: 3px solid var(--pl-orange-text); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.pl-field__hint { font-size: 13px; color: var(--pl-muted); }
.pl-field__err { margin: 0; font-size: 14px; font-weight: 700; color: var(--pl-err); }
.pl-field__err[hidden] { display: none; }
.pl-consent { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--pl-mint); }
.pl-consent__row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; font-weight: 500; cursor: pointer; }
.pl-consent__row input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--pl-green); }
.pl-consent__links { margin: 0; font-size: 13px; color: var(--pl-muted); }
.pl-consent__links a { color: var(--pl-green); font-weight: 700; text-decoration: underline; }
.pl-code { box-sizing: border-box; width: 100%; min-height: 68px; margin-top: 8px; padding: 8px 14px; border: 2px solid var(--pl-green); border-radius: 14px; background: #fff; color: var(--pl-ink); font: inherit; font-size: 34px; font-weight: 800; letter-spacing: 14px; text-align: center; }
.pl-ltr { font-weight: 700; color: var(--pl-ink); unicode-bidi: isolate; }
.pl-resend { margin-top: 18px; font-size: 14px; color: var(--pl-muted); }
.pl-resend__text { margin: 0; }
.pl-link--small { min-height: 44px; font-size: 14px; }

/* building and finished */
.pl-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 28px; }
.pl-center .pl-h { font-size: 26px; margin-top: 22px; }
.pl-center .pl-help { margin-bottom: 18px; }
.pl-route-bg { stroke: var(--pl-border); }
.pl-route-fg { stroke: var(--pl-orange); stroke-dasharray: 320; animation: pl-draw 2.4s var(--pl-ease) infinite; }
.pl-done { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 999px; background: var(--pl-chip); animation: pl-pop 400ms var(--pl-ease); }
.pl-state-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 999px; background: var(--pl-mint); }
.pl-state-icon--warn { background: var(--pl-warn-bg); }
.pl-state-icon--err { background: var(--pl-err-bg); }
.pl-stack { display: grid; gap: 8px; width: 100%; max-width: 360px; }

/* the green panel */
.pl-aside { display: flex; flex-direction: column; justify-content: space-between; width: 250px; flex: none; box-sizing: border-box; padding: 32px 26px; background: var(--pl-green); color: #fff; }
.pl-aside__title { margin: 0 0 10px; font-size: 24px; font-weight: 800; line-height: 1.25; }
.pl-aside__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pl-chip); }

@keyframes pl-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pl-draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes pl-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#tbg-trip-root button:focus-visible, #tbg-trip-root a:focus-visible, #tbg-trip-root [tabindex]:focus-visible, .dash button:focus-visible, .dash a:focus-visible, .dash [tabindex]:focus-visible, .pl-root button:focus-visible, .pl-root a:focus-visible, .plr button:focus-visible, .plr a:focus-visible, .plr [tabindex]:focus-visible, .plr-map:focus-visible { outline: 3px solid var(--pl-orange-text); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 8px; }
.plr-map:focus-visible { outline-offset: -3px; }
.pl-sr, .plr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html.pl-lock { overflow: hidden; }

@media (max-width: 900px) {
	.pl-body, .pl-win { scroll-padding-block-end: 96px; } /* a field that is scrolled into view is not left under the floating accessibility button */
	body:has(.a11y-widget) .pl-foot { padding-bottom: 84px; } /* the floating accessibility button sits above the window, so the buttons rise above it instead of under it */
}

/* A short screen (a phone on its side, or a page zoomed to 300%): the whole window scrolls, so no question is cut off. */
@media (max-height: 560px) {
	.pl-win { display: block; overflow-y: auto; }
	.pl-main { min-height: 100%; }
	.pl-body { overflow: visible; }
	.pl-aside { display: none; }
}

@media (max-width: 640px) {
	.pl-win { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
	.pl-aside { display: none; }
	.pl-top { padding: 12px 16px 0 12px; }
	.pl-bars { padding: 10px 16px 0; }
	.pl-body { padding: 22px 16px 16px; }
	.pl-foot { flex-direction: column-reverse; align-items: stretch; padding: 12px 16px 18px; gap: 6px; }
	.pl-h { font-size: 28px; }
	.pl-help { font-size: 15px; }
	.pl-btn { width: 100%; padding: 0 20px; }
	.pl-chip { padding: 8px 18px; }
	.pl-chip[aria-pressed="true"] { padding: 7px 17px; }
}

/* ---------- the page of the plan ---------- */
.tbg-trip { background: #f7faf6; color: var(--pl-ink); padding: 32px 0 60px; }
.tbg-trip__loading { margin: 40px 0; text-align: center; font-size: 18px; color: var(--pl-muted); }
.plr { display: grid; gap: 20px; }
.plr-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: 24px; background: var(--pl-green); color: #fff; }
.plr-hero__eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--pl-chip); }
.plr-hero__title { margin: 0 0 12px; font-size: 40px; line-height: 1.15; font-weight: 800; color: #fff; }
.plr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plr-tag { padding: 6px 14px; border-radius: 999px; background: var(--pl-chip); color: var(--pl-ink); font-size: 14px; font-weight: 700; }
.plr-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: var(--pl-warn-bg); border: 1px solid var(--pl-warn-border); font-size: 15px; line-height: 1.55; }
.plr-note svg { flex: none; margin-top: 1px; }
.plr-note p { margin: 0; }
.plr-messages { margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--pl-mint); font-size: 15px; line-height: 1.55; list-style: none; display: grid; gap: 6px; }
.plr-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.plr-list { flex: 1 1 640px; min-width: 0; display: grid; gap: 16px; }
.plr-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.plr-tab { min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--pl-border-mid); background: #fff; color: var(--pl-ink); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.plr-tab[aria-selected="true"] { border: 2px solid var(--pl-green); background: var(--pl-mint); }
.plr-day { display: grid; gap: 16px; }
.plr-day[hidden] { display: none; }
.plr-day__head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-size: 1rem; }
.plr-day__toggle { display: none; }
.plr-stop { display: flex; border-radius: 16px; background: #fff; box-shadow: var(--pl-shadow-card); overflow: hidden; border: 1px solid var(--pl-border-soft); }
.plr-stop__text { flex: 1; min-width: 0; padding: 20px 22px; }
.plr-stop__photo { width: 260px; flex: none; background: var(--pl-map); }
.plr-stop__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plr-stop__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.plr-num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--pl-green); color: #fff; font-size: 15px; font-weight: 800; }
.plr-slot { font-size: 14px; font-weight: 700; color: var(--pl-muted); }
.plr-kind { padding: 3px 12px; border-radius: 999px; background: var(--pl-chip); font-size: 13px; font-weight: 700; }
.plr-stop__name { margin: 0 0 4px; font-size: 22px; line-height: 1.3; font-weight: 800; }
.plr-place { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 14px; color: var(--pl-muted); }
.plr-why { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.plr-facts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.plr-fact { padding: 4px 12px; border-radius: 8px; background: var(--pl-mint); font-size: 14px; font-weight: 700; }
.plr-facts__go { margin-inline-start: auto; }
.plr-go { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 800; color: var(--pl-green); text-decoration: underline; }
.plr-travel { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 10px; font-size: 14px; color: var(--pl-muted); }
.plr-stay { display: grid; gap: 12px; padding-top: 8px; }
.plr-stay__h { margin: 0; font-size: 24px; font-weight: 800; }
.plr-stay__help { margin: 0; font-size: 15px; color: var(--pl-muted); }
.plr-safety { padding: 16px 20px; border-radius: 16px; background: var(--pl-mint); font-size: 15px; line-height: 1.55; }
.plr-safety a, .plr-note a, .plr-empty a { color: var(--pl-green); font-weight: 800; text-decoration: underline; }
.plr-side { flex: 0 1 400px; min-width: 300px; border-radius: 20px; overflow: hidden; border: 1px solid var(--pl-border-soft); background: #fff; }
.plr-map { height: 520px; background: var(--pl-map); position: relative; }
.plr-map__off { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; text-align: center; color: var(--pl-muted); font-size: 15px; }
.plr-side__text { margin: 0; padding: 16px 18px; font-size: 15px; color: var(--pl-muted); }
.plr-side__acts { display: grid; gap: 8px; padding: 0 18px 18px; }
.plr-side__acts .pl-btn { min-height: 52px; font-size: 17px; padding: 0 20px; }
.plr-empty { max-width: 560px; margin: 24px auto; padding: 28px; border-radius: 24px; background: #fff; box-shadow: var(--pl-shadow-panel); text-align: center; }
.plr-empty h1 { margin: 14px 0 8px; font-size: 26px; font-weight: 800; }
.plr-empty p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--pl-muted); }
.plr-empty .pl-state-icon { margin: 0 auto; }

.plr-pin { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; box-sizing: border-box; border-radius: 999px; background: var(--pl-green); color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; line-height: 1; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.plr-map .leaflet-container { direction: ltr; }
.plr-popup { direction: rtl; text-align: right; }

@media (min-width: 801px) and (min-height: 780px) {
	.plr-side { position: sticky; top: 20px; }
}

@media (max-width: 800px) {
	.tbg-trip { padding: 16px 0 40px; }
	.plr-hero { padding: 18px; border-radius: 24px; }
	.plr-hero__title { font-size: 26px; }
	.plr-tag { font-size: 13px; padding: 5px 12px; }
	.plr-tabs { display: none; }
	.plr-day { gap: 14px; }
	.plr-day--multi .plr-day__head { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
	.plr-day--multi .plr-day__label { display: none; }
	.plr-day__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; padding: 0 18px; border: 1px solid var(--pl-border-mid); border-radius: 16px; background: #fff; color: var(--pl-ink); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
	.plr-day__toggle[aria-expanded="true"] { background: var(--pl-mint); border-width: 2px; border-color: var(--pl-green); }
	.plr-day__toggle svg { flex: none; transition: transform 200ms var(--pl-ease); }
	.plr-day__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.plr-day__body { display: grid; gap: 14px; }
	.plr-day__body.is-collapsed { display: none; }
	.plr-day[hidden] { display: grid; } /* on a phone every day shows, and a day opens and closes by its own button; the tabs are for wide screens */
	.plr-stop { flex-direction: column-reverse; }
	.plr-stop__photo { width: 100%; height: 170px; }
	.plr-stop__text { padding: 14px 16px 16px; }
	.plr-stop__name { font-size: 19px; }
	.plr-why { font-size: 15px; line-height: 1.55; }
	.plr-fact { font-size: 13px; }
	.plr-side { flex: 1 1 100%; min-width: 0; position: static; border-radius: 16px; }
	.plr-map { height: 300px; }
	.plr-layout { gap: 16px; }
	.plr-list { flex-basis: 100%; }
	.plr-note { padding: 12px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.pl-win, .pl-done { animation: none; }
	.pl-route-fg { animation: none; stroke-dashoffset: 0; }
}

/* ---------- the area of the traveler: האזור שלי ---------- */
.dash { display: grid; gap: 26px; }
.dash h1:focus, .dash h2:focus { outline: none; }
.dash__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.dash__title { margin: 0 0 4px; font-size: 40px; line-height: 1.15; font-weight: 800; }
.dash__hello { margin: 0; font-size: 17px; color: var(--pl-muted); }
.dash__new { min-height: 52px; padding: 0 30px; font-size: 17px; }
.dash__grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.dash__main { flex: 1 1 640px; min-width: 0; display: grid; gap: 22px; }
.dash__latest { padding: 26px 28px; border-radius: 24px; background: var(--pl-green); color: #fff; }
.dash__latest-label { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--pl-chip); }
.dash__latest-title { margin: 0 0 12px; font-size: 32px; line-height: 1.2; font-weight: 800; color: #fff; }
.dash__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.dash__tag { padding: 5px 14px; border-radius: 999px; background: var(--pl-chip); color: var(--pl-ink); font-size: 14px; font-weight: 700; }
.dash__latest-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dash__white-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; background: #fff; color: var(--pl-ink); font-size: 17px; font-weight: 800; text-decoration: none; }
.dash__soon { font-size: 14px; color: var(--pl-chip); }
.dash__card { padding: 24px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--pl-border-soft); }
.dash__h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; color: var(--pl-ink); }
.dash__list { display: grid; margin: 0; padding: 0; list-style: none; }
.dash__item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--pl-border-soft); }
.dash__item-text { flex: 1; min-width: 0; }
.dash__item-title { font-size: 17px; font-weight: 800; }
.dash__item-meta { font-size: 14px; color: var(--pl-muted); }
.dash__ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--pl-border-mid); border-radius: 999px; background: #fff; color: var(--pl-ink); font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; }
.dash__ghost-btn--wide { width: 100%; min-height: 48px; }
.dash__ghost-btn[aria-disabled="true"] { color: var(--pl-muted); cursor: progress; }
.dash__keep { margin: 0; font-size: 13px; color: var(--pl-muted); }
.dash__empty { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 24px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--pl-border-soft); }
.dash__empty-text { flex: 1 1 360px; min-width: 0; }
.dash__empty-text .dash__h2 { margin-bottom: 4px; }
.dash__empty-text p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--pl-muted); }
.dash__title, .dash__details .dash__h2 { width: fit-content; scroll-margin-top: 110px; } /* a heading that the script focuses must not land under the sticky header of the site (84px) */ /* the ring of the focus that the script gives the heading hugs the words, not the whole column */
.dash__details { flex: 0 1 380px; min-width: 300px; display: grid; gap: 16px; }
.dash__details .dash__h2 { margin: 0; }
.dash__dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.dash__dl dt { font-weight: 700; color: var(--pl-muted); }
.dash__dl dd { margin: 0; overflow-wrap: anywhere; }
.dash__switchbox { padding: 12px 14px; border-radius: 14px; background: var(--pl-mint); }
.dash__switchrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15px; font-weight: 700; }
.dash__switchdesc { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--pl-muted); }
/* the button is 44px tall for the finger; the track Lori drew (52 by 30) is its ::before */
.dash__switch { position: relative; flex: none; width: 52px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.dash__switch::before { content: ""; position: absolute; top: 7px; right: 0; left: 0; height: 30px; border-radius: 999px; background: #6f8a81; transition: background-color 150ms var(--pl-ease); }
.dash__switch[aria-checked="true"]::before { background: var(--pl-green); }
.dash__knob { position: absolute; top: 10px; right: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; transition: right 150ms var(--pl-ease), left 150ms var(--pl-ease); }
.dash__switch[aria-checked="true"] .dash__knob { right: auto; left: 3px; }
.dash__status { margin: 0; font-size: 14px; font-weight: 700; color: var(--pl-green); }
.dash__status:empty { margin: 0; }
.dash__acts { display: grid; gap: 8px; }
.dash__danger { padding: 14px; border-radius: 14px; border: 1px dashed #e9a07a; font-size: 14px; line-height: 1.5; }
.dash__danger-title { margin-bottom: 6px; font-weight: 800; }
.dash__danger-text { margin: 0 0 10px; color: var(--pl-muted); }
.dash__danger-btn { min-height: 44px; padding: 0 18px; border: 2px solid var(--pl-err); border-radius: 999px; background: #fff; color: var(--pl-err); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.dash__danger-btn--solid { background: var(--pl-err); color: #fff; }
.dash__danger-btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.dash__confirm { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--pl-err-bg); }
.dash__confirm[hidden] { display: none; }
.dash__confirm-text { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--pl-err); }
.dash__confirm-text:empty { display: none; }
.dash__err { margin: 0; font-size: 14px; font-weight: 700; color: var(--pl-err); }
.dash__err:empty { display: none; }
.dash__latest a:focus-visible { outline-color: #fff; box-shadow: none; } /* the ring of the white button on the dark green card: white, not the dim orange */
.dash__confirm-acts { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 800px) {
	.dash { gap: 16px; }
	.dash__title { font-size: 30px; }
	.dash__hello { font-size: 15px; }
	.dash__new { width: 100%; min-height: 52px; }
	.dash__latest { padding: 18px; }
	.dash__latest-title { font-size: 23px; line-height: 1.25; }
	.dash__tag { padding: 4px 12px; font-size: 13px; }
	.dash__white-btn { width: 100%; }
	.dash__card { padding: 16px; }
	.dash__h2 { font-size: 19px; }
	.dash__item { display: block; padding: 12px 0; }
	.dash__item-title { font-size: 16px; }
	.dash__item-meta { margin-bottom: 8px; font-size: 13px; }
	.dash__details { flex: 1 1 100%; min-width: 0; }
	.dash__empty { padding: 18px; }
	.dash__empty .pl-btn { width: 100%; padding: 0 20px; }
}

/* Windows high contrast: backgrounds are replaced by the system colours, so the track and the knob of the switch get borders and system colours of their own. */
@media (forced-colors: active) {
	.dash__switch::before { background: ButtonFace; border: 2px solid ButtonText; box-sizing: border-box; }
	.dash__switch[aria-checked="true"]::before { background: Highlight; border-color: Highlight; }
	.dash__knob { background: ButtonText; }
	.dash__switch[aria-checked="true"] .dash__knob { background: HighlightText; }
	.pl-btn, .dash__white-btn, .dash__danger-btn--solid { border: 2px solid ButtonText; }
}
