/**
 * EES trip assistant. Colors, fonts and radii come from the theme's presets
 * and its --wp--custom--tools--* properties, with the Route design system's
 * light values as fallbacks, so the card follows the site's Night theme too.
 * The tabs and questions show only once the page is scripted (html.th-js,
 * set before first paint); without scripting the <noscript> summary shows.
 */

.th-ees {
	--th-ees-ground: var(--wp--preset--color--ground, #f3f5f9);
	--th-ees-panel: var(--wp--preset--color--panel, #fff);
	--th-ees-line: var(--wp--preset--color--line, #d3dae6);
	--th-ees-field: var(--wp--preset--color--field, #6b7890);
	--th-ees-ink: var(--wp--preset--color--ink, #0d1526);
	--th-ees-ink-soft: var(--wp--preset--color--ink-soft, #2c3a55);
	--th-ees-ink-muted: var(--wp--preset--color--ink-muted, #4b5873);
	--th-ees-accent: var(--wp--preset--color--accent, #1f4fd8);
	--th-ees-on-accent: var(--wp--preset--color--on-accent, #fff);
	--th-ees-accent-tint: var(--wp--preset--color--accent-tint, #dce5fb);
	--th-ees-go: var(--wp--preset--color--go, #0f7b4f);
	--th-ees-on-go: var(--wp--custom--tools--on-go, #fff);
	--th-ees-limit: var(--wp--preset--color--limit, #f2b544);
	--th-ees-on-limit: var(--wp--custom--tools--on-limit, #0d1526);
	--th-ees-stop: var(--wp--preset--color--stop, #b3261e);
	--th-ees-on-stop: var(--wp--custom--tools--on-stop, #fff);
	--th-ees-display: var(--wp--preset--font-family--display, inherit);
	--th-ees-sans: var(--wp--preset--font-family--sans, inherit);
	--th-ees-radius-control: var(--wp--custom--radius--control, 14px);
	--th-ees-radius-card: var(--wp--custom--radius--card, 18px);
	--th-ees-radius-tag: var(--wp--custom--tools--tag-radius, 6px);
	--th-ees-ring: var(--wp--custom--tools--focus-ring, 0 0 0 2px var(--th-ees-panel), 0 0 0 5px var(--th-ees-accent));
	position: relative;
	display: grid;
	gap: 24px;
	box-sizing: border-box;
	min-width: 0;
	padding: 24px;
	border-top: 3px solid var(--th-ees-accent);
	border-radius: var(--th-ees-radius-card);
	background: var(--th-ees-panel);
	color: var(--th-ees-ink);
	font-size: 17px;
	line-height: 1.6;
	scroll-margin-top: 24px;
}

.th-ees *,
.th-ees *::before,
.th-ees *::after {
	box-sizing: border-box;
}

.th-ees [hidden] {
	display: none !important;
}

.th-ees :where(p, ul, dl, dd, pre, h2, form, fieldset) {
	margin: 0;
}

.th-ees a {
	color: var(--th-ees-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.th-ees a:hover {
	text-decoration-thickness: 2px;
}

.th-ees :is(.th-ees__tab, .th-ees__btn, .th-ees__link-btn, .th-ees__rm, .th-ees__letter, select, input, a):focus-visible {
	outline: 2px solid transparent;
	box-shadow: var(--th-ees-ring);
}

.th-ees .th-ees__choice input:focus-visible {
	box-shadow: none;
}

.th-ees .th-ees__choice:has(input:focus-visible) {
	box-shadow: var(--th-ees-ring);
}

.th-ees .th-ees__live,
.th-ees .th-ees__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The card's head. */
.th-ees .th-ees__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
}

.th-ees .th-ees__title {
	margin: 0;
	font-family: var(--th-ees-display);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--th-ees-ink);
}

/* "Checked <date>" with the logo's check, as on the other tools. */
.th-ees .th-ees__checked {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--th-ees-ink-muted);
}

.th-ees .th-ees__checked::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--wp--custom--tools--checked-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 18 18'%3E%3Cpath d='M3 8.4 6.4 11.8 13 4.6' fill='none' stroke='%231F4FD8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")) center / contain no-repeat;
}

/* Without scripting: the short summary. */
.th-ees .th-ees__nojs {
	display: grid;
	gap: 10px;
	color: var(--th-ees-ink-soft);
}

.th-ees .th-ees__nojs strong {
	color: var(--th-ees-ink);
}

/* With scripting: the tabs and the three parts. */
.th-ees .th-ees__app {
	display: none;
}

.th-js .th-ees .th-ees__app {
	display: grid;
	gap: 24px;
	min-width: 0;
}

/* The tabs, as three stops on a route. */
.th-ees .th-ees__tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.th-ees .th-ees__tabs::before {
	content: "";
	position: absolute;
	top: 13px;
	right: 16.66%;
	left: 16.66%;
	height: 3px;
	border-radius: 3px;
	background: var(--th-ees-line);
}

.th-ees .th-ees__tab {
	position: relative;
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 0 4px 6px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--th-ees-ink-muted);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
}

.th-ees .th-ees__dot {
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	border: 3px solid var(--th-ees-line);
	border-radius: 50%;
	background: var(--th-ees-panel);
	color: var(--th-ees-ink-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.th-ees .th-ees__tab:hover .th-ees__dot {
	border-color: var(--th-ees-accent);
}

.th-ees .th-ees__tab[aria-selected="true"] {
	color: var(--th-ees-ink);
}

.th-ees .th-ees__tab[aria-selected="true"] .th-ees__dot {
	border-color: var(--th-ees-accent);
	background: var(--th-ees-accent);
	color: var(--th-ees-on-accent);
}

.th-ees .th-ees__panel {
	display: grid;
	gap: 24px;
	min-width: 0;
	container-type: inline-size;
}

.th-ees .th-ees__intro {
	color: var(--th-ees-ink-soft);
}

/* Questions. */
.th-ees .th-ees__qs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 20px 24px;
}

.th-ees .th-ees__q {
	display: grid;
	align-content: start;
	gap: 8px;
	min-width: 0;
	padding: 0;
	border: 0;
}

.th-ees .th-ees__q legend,
.th-ees .th-ees__label {
	margin: 0 0 4px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__choice {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 8px 14px;
	border: 1.5px solid var(--th-ees-field);
	border-radius: var(--th-ees-radius-control);
	color: var(--th-ees-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.th-ees .th-ees__choice input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--th-ees-accent);
}

.th-ees .th-ees__choice:has(input:checked) {
	border-color: var(--th-ees-accent);
	background: var(--th-ees-accent-tint);
	font-weight: 600;
}

.th-ees .th-ees__field {
	display: grid;
	align-content: start;
	gap: 6px;
	min-width: 0;
}

.th-ees .th-ees__hint {
	margin: 0;
	font-size: 14px;
	color: var(--th-ees-ink-muted);
}

.th-ees :is(select, input[type="date"], input[type="text"]) {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1.5px solid var(--th-ees-field);
	border-radius: var(--th-ees-radius-control);
	background: var(--th-ees-panel);
	color: var(--th-ees-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

/* Answers. */
.th-ees .th-ees__result {
	display: grid;
	gap: 16px;
	min-width: 0;
	padding: 22px;
	border-left: 8px solid var(--th-ees-line);
	border-radius: var(--th-ees-radius-control);
	background: var(--th-ees-ground);
}

.th-ees .th-ees__result[data-tone="go"] {
	border-left-color: var(--th-ees-go);
}

.th-ees .th-ees__result[data-tone="limit"] {
	border-left-color: var(--th-ees-limit);
}

.th-ees .th-ees__result[data-tone="stop"] {
	border-left-color: var(--th-ees-stop);
}

.th-ees .th-ees__result[data-tone="mark"] {
	border-left-color: var(--th-ees-accent);
}

.th-ees .th-ees__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	min-height: 30px;
	padding: 0 12px;
	border-radius: var(--th-ees-radius-tag);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.th-ees .th-ees__pill::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: var(--th-ees-icon) center / contain no-repeat;
	mask: var(--th-ees-icon) center / contain no-repeat;
}

.th-ees [data-tone="go"] .th-ees__pill {
	--th-ees-icon: var(--wp--custom--tools--icon-go, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.8 2.6 8l1.4-1.4 2.4 2.4 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E"));
	background: var(--th-ees-go);
	color: var(--th-ees-on-go);
}

.th-ees [data-tone="limit"] .th-ees__pill {
	--th-ees-icon: var(--wp--custom--tools--icon-limit, 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 0 0 14A7 7 0 0 0 8 1zM7 4h2v5H7zm0 6h2v2H7z'/%3E%3C/svg%3E"));
	background: var(--th-ees-limit);
	color: var(--th-ees-on-limit);
}

.th-ees [data-tone="stop"] .th-ees__pill {
	--th-ees-icon: var(--wp--custom--tools--icon-stop, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 2.8 8 6.6l3.8-3.8 1.4 1.4L9.4 8l3.8 3.8-1.4 1.4L8 9.4l-3.8 3.8-1.4-1.4L6.6 8 2.8 4.2z'/%3E%3C/svg%3E"));
	background: var(--th-ees-stop);
	color: var(--th-ees-on-stop);
}

.th-ees [data-tone="mark"] .th-ees__pill {
	--th-ees-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 3h13v10h-13zm1.6 1.5 4.9 3.7 4.9-3.7zm10 1.4-5.1 3.8-5.1-3.8v5.6h10.2z'/%3E%3C/svg%3E");
	background: var(--th-ees-accent);
	color: var(--th-ees-on-accent);
}

.th-ees .th-ees__headline {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.42;
	text-wrap: pretty;
	color: var(--th-ees-ink);
}

/* The personal plan, as stops on a route going down. */
.th-ees .th-ees__route {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 0 0 0 26px;
	list-style: none;
}

.th-ees .th-ees__route::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 8px;
	width: 3px;
	border-radius: 3px;
	background: var(--th-ees-line);
}

.th-ees .th-ees__route li {
	position: relative;
	margin: 0;
	line-height: 1.5;
}

.th-ees .th-ees__route li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: -24px;
	width: 13px;
	height: 13px;
	border: 3px solid var(--th-ees-accent);
	border-radius: 50%;
	background: var(--th-ees-panel);
}

.th-ees .th-ees__route li.is-key::before {
	background: var(--th-ees-accent);
}

/* Buttons. */
.th-ees .th-ees__next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.th-ees .th-ees__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 10px 18px;
	border: 1.5px solid var(--th-ees-accent);
	border-radius: var(--th-ees-radius-control);
	background: var(--th-ees-accent);
	color: var(--th-ees-on-accent);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.th-ees .th-ees__btn.is-ghost {
	background: transparent;
	color: var(--th-ees-accent);
}

.th-ees .th-ees__btn.is-ghost:hover {
	background: var(--th-ees-accent-tint);
}

.th-ees .th-ees__btn.is-small {
	min-height: 40px;
	padding: 6px 14px;
	font-size: 15px;
}

.th-ees .th-ees__link-btn {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--th-ees-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Count my days. */
.th-ees .th-ees__example {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--th-ees-ink-muted);
}

.th-ees .th-ees__tag {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--th-ees-accent-tint);
	color: var(--th-ees-ink);
}

.th-ees .th-ees__stays {
	display: grid;
	gap: 12px;
}

.th-ees .th-ees__stay {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px;
}

.th-ees .th-ees__rm {
	min-width: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 12px;
	border: 1.5px solid var(--th-ees-line);
	border-radius: var(--th-ees-radius-control);
	background: transparent;
	color: var(--th-ees-ink-muted);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.th-ees .th-ees__rm:hover {
	border-color: var(--th-ees-stop);
	color: var(--th-ees-stop);
}

.th-ees .th-ees__trip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
}

.th-ees .th-ees__sub {
	font-family: var(--th-ees-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__err {
	color: var(--th-ees-stop);
	font-size: 15px;
	font-weight: 600;
}

.th-ees .th-ees__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(84px, 100%), 1fr));
	gap: 10px;
}

.th-ees .th-ees__facts > div {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--th-ees-panel);
}

.th-ees .th-ees__facts dt {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--th-ees-ink-muted);
}

.th-ees .th-ees__facts dd {
	font-family: var(--th-ees-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__facts dd small {
	font-family: var(--th-ees-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--th-ees-ink-muted);
}

.th-ees .th-ees__strip-wrap {
	display: grid;
	gap: 8px;
}

.th-ees .th-ees__strip {
	display: flex;
	height: 30px;
	overflow: hidden;
	border: 1px solid var(--th-ees-line);
	border-radius: 8px;
	background: var(--th-ees-line);
}

.th-ees .th-ees__strip span {
	flex: 1 1 0;
	min-width: 0;
}

.th-ees :is(.th-ees__strip span, .th-ees__legend i).is-free {
	background: var(--th-ees-panel);
}

.th-ees :is(.th-ees__strip span, .th-ees__legend i).is-past {
	background: var(--th-ees-ink-soft);
}

.th-ees :is(.th-ees__strip span, .th-ees__legend i).is-trip {
	background: var(--th-ees-accent);
}

.th-ees :is(.th-ees__strip span, .th-ees__legend i).is-over {
	background: var(--th-ees-stop);
}

.th-ees .th-ees__scale {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--th-ees-ink-muted);
}

.th-ees .th-ees__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--th-ees-ink-soft);
}

.th-ees .th-ees__legend li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.th-ees .th-ees__legend i {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1px solid var(--th-ees-line);
	border-radius: 4px;
}

.th-ees .th-ees__notes {
	display: grid;
	gap: 6px;
	padding-left: 18px;
	font-size: 15px;
	color: var(--th-ees-ink-soft);
}

.th-ees .th-ees__notes li {
	margin: 0;
}

.th-ees .th-ees__official {
	font-size: 15px;
	color: var(--th-ees-ink-soft);
}

/* Fix my record. */
.th-ees .th-ees__sendto {
	display: grid;
	gap: 6px;
}

.th-ees .th-ees__to {
	font-size: 18px;
	font-weight: 700;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__copybox {
	display: grid;
	gap: 8px;
}

.th-ees .th-ees__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.th-ees .th-ees__bar > span,
.th-ees .th-ees__after-label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--th-ees-ink-muted);
}

.th-ees .th-ees__letter {
	max-height: 420px;
	overflow: auto;
	padding: 16px;
	border: 1px solid var(--th-ees-line);
	border-radius: 12px;
	background: var(--th-ees-panel);
	color: var(--th-ees-ink);
	font-family: var(--th-ees-sans);
	font-size: 15px;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.th-ees .th-ees__checklist {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.th-ees .th-ees__checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.th-ees .th-ees__checklist li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	border: 2px solid var(--th-ees-accent);
	border-radius: 5px;
}

.th-ees .th-ees__after {
	display: grid;
	gap: 8px;
	padding: 16px;
	border-radius: 12px;
	background: var(--th-ees-panel);
}

.th-ees .th-ees__foot {
	font-size: 14px;
	color: var(--th-ees-ink-muted);
}

/* Calendar reminders, at the end of Count my days and of Fix my record. */
.th-ees .th-ees__cal {
	display: grid;
	gap: 14px;
	min-width: 0;
	padding: 20px;
	border: 1.5px solid var(--th-ees-line);
	border-radius: var(--th-ees-radius-control);
	background: var(--th-ees-panel);
}

.th-ees .th-ees__cal.is-inset {
	gap: 12px;
	padding: 16px;
	border: 0;
	border-radius: 12px;
}

.th-ees .th-ees__cal-title {
	font-family: var(--th-ees-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__cal-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-ees .th-ees__cal-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 14px;
	margin: 0;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--th-ees-line);
}

.th-ees .th-ees__cal-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

/* A calendar leaf: the month on the accent band, the day under it. */
.th-ees .th-ees__leaf {
	display: grid;
	width: 52px;
	overflow: hidden;
	border: 1.5px solid var(--th-ees-accent);
	border-radius: 10px;
	background: var(--th-ees-panel);
	text-align: center;
}

.th-ees .th-ees__leaf-m {
	padding: 2px 0;
	background: var(--th-ees-accent);
	color: var(--th-ees-on-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.th-ees .th-ees__leaf-d {
	padding: 1px 0 3px;
	font-family: var(--th-ees-display);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__cal-body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.th-ees .th-ees__cal-name {
	font-weight: 700;
	line-height: 1.4;
	text-wrap: pretty;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__cal-when {
	font-size: 14px;
	line-height: 1.45;
	color: var(--th-ees-ink-muted);
}

.th-ees .th-ees__cal-g {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 12px;
	border: 1.5px solid var(--th-ees-accent);
	border-radius: var(--th-ees-radius-control);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.th-ees .th-ees__cal-g:hover {
	background: var(--th-ees-accent-tint);
}

.th-ees .th-ees__cal-act {
	display: grid;
	justify-items: start;
	gap: 8px;
}

.th-ees .th-ees__btn.is-cal::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 1h2v1.5h4V1h2v1.5h2.5V15h-13V2.5H4zM3 6.5v7h10v-7zM5 8.5h2v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 1h2v1.5h4V1h2v1.5h2.5V15h-13V2.5H4zM3 6.5v7h10v-7zM5 8.5h2v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.th-ees .th-ees__cal-done {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--th-ees-ink);
}

.th-ees .th-ees__cal-done::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	background: var(--th-ees-go);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.8 2.6 8l1.4-1.4 2.4 2.4 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.8 2.6 8l1.4-1.4 2.4 2.4 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 560px) {
	.th-ees {
		padding: 18px 16px;
	}

	.th-ees .th-ees__result {
		padding: 18px 16px;
	}

	.th-ees .th-ees__cal {
		padding: 16px;
	}

	.th-ees .th-ees__tab {
		font-size: 14px;
	}

	.th-ees .th-ees__headline {
		font-size: 18px;
	}

	.th-ees .th-ees__facts dd {
		font-size: 22px;
	}

	.th-ees .th-ees__facts > div {
		padding: 10px 12px;
	}
}

/*
 * Date fields: a browser's date field will not shrink below its date and
 * calendar icon (about 170px in Chrome), so the stay rows follow the width of
 * the part, not of the screen. Wide: both dates and Remove on one line.
 * Medium: the dates side by side, Remove under them. Narrow, as on phones:
 * one date under the other.
 */
@container (max-width: 459px) {
	/* A reminder: the leaf and its text, the Google Calendar link under the text. */
	.th-ees .th-ees__cal-item {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
	}

	.th-ees .th-ees__cal-g {
		grid-column: 2;
		justify-self: start;
	}

	.th-ees .th-ees__stay {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.th-ees .th-ees__rm {
		grid-column: 1 / -1;
		justify-self: end;
		min-height: 36px;
		padding: 0 14px;
		font-size: 14px;
	}
}

@container (max-width: 379px) {
	.th-ees .th-ees__stay,
	.th-ees .th-ees__trip {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.th-ees .th-ees__result {
		transition: border-color 0.2s ease;
	}
}
