/**
 * CheckMyRaise site shell — editorial "Mastercard-inspired" chrome.
 * Floating white pill navigation, warm cream canvas, ink-black footer.
 */
.cmr-shell-body {
	margin: 0;
	background: #f3f0ee;
	color: #141413;
	font-family: "Sofia Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	font-weight: 450;
	-webkit-font-smoothing: antialiased;
}

.cmr-shell-main {
	min-height: 60vh;
}

/* Skip link: visually hidden until focused, then a real, visible control. */
.cmr-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: #141413;
	color: #f3f0ee;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0 0 12px 0;
}

.cmr-skip-link:focus {
	left: 0;
	outline: 3px solid #3860be;
	outline-offset: 2px;
}

/* The main landmark takes focus from the skip link without an outline halo. */
#main:focus {
	outline: none;
}

/* Themes ship their own skip link. Ours is guaranteed styled (the shell
   dequeues theme CSS), so suppress any duplicate to leave exactly one. */
.cmr-shell-body .skip-link:not(.cmr-skip-link) {
	display: none !important;
}

/* Keep screen-reader-only text hidden even where theme CSS is dequeued. */
.cmr-shell-body .screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* WCAG 2.2 target size: give link lists a comfortable tap area. Links inside
   a sentence keep the specification's inline exception. Hub cards are excluded:
   they are already large targets, and this rule outranks the card rules on
   specificity, which would flatten their padding to 4px. */
.cmr-shell-content--prose li:not(.cmr-toolcard) > a,
.cmr-content .cmr-sources li a {
	display: inline-block;
	padding: 4px 0;
}

/* ---------- content wrappers ---------- */

.cmr-shell-content--full {
	width: 100%;
}

.cmr-shell-content--prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

/* Card hubs (/calculators/, /blog/) need room for a three-column grid.
   The intro copy stays at a readable measure inside the wider container. */
.cmr-shell-content--hub {
	max-width: 1140px;
}

.cmr-shell-content--hub .cmr-lead,
.cmr-shell-content--hub .cmr-hub-foot {
	max-width: 820px;
}

.cmr-shell-content--prose .cmr-prose-back {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 0.86rem;
	font-weight: 500;
	color: #a83a00;
	text-decoration: none;
}

.cmr-shell-content--prose .cmr-prose-byline {
	margin: -10px 0 26px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #696969;
}

.cmr-shell-content--prose .cmr-prose-title {
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.04;
	letter-spacing: -0.03em;
	font-weight: 500;
	margin: 0 0 24px;
	color: #141413;
}

.cmr-shell-content--prose h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 500;
	margin: 36px 0 12px;
	color: #141413;
}

.cmr-shell-content--prose h3 {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 26px 0 10px;
	color: #141413;
}

.cmr-shell-content--prose p,
.cmr-shell-content--prose li {
	font-size: 1.02rem;
	line-height: 1.72;
	font-weight: 450;
	color: #262627;
}

.cmr-shell-content--prose ul,
.cmr-shell-content--prose ol {
	padding-left: 22px;
	margin: 12px 0;
}

.cmr-shell-content--prose li {
	margin-bottom: 8px;
}

.cmr-shell-content--prose a {
	color: #a83a00;
	font-weight: 500;
}

.cmr-shell-content--prose code {
	background: #fcfbfa;
	border: 1px solid #e2dcd5;
	border-radius: 6px;
	padding: 1px 6px;
	font-size: 0.92em;
}

.cmr-shell-content--prose strong {
	font-weight: 700;
}

.cmr-shell-content--prose .cmr-lead {
	font-size: 1.2rem;
	line-height: 1.6;
	font-weight: 500;
	color: #141413;
	margin: 0 0 28px;
	padding: 20px 24px;
	background: #fcfbfa;
	border-left: 3px solid #a83a00;
	border-radius: 0 16px 16px 0;
}

.cmr-shell-content--prose .cmr-formula {
	margin: 16px 0;
	padding: 14px 18px;
	border-left: 3px solid #a83a00;
	border-radius: 0 12px 12px 0;
	background: #f3f0ee;
	color: #141413;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.cmr-shell-content--prose .cmr-guide-cta {
	margin: 24px 0;
}

.cmr-shell-content--prose .cmr-guide-cta a {
	display: inline-block;
	padding: 12px 26px;
	background: #141413;
	color: #f3f0ee;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: -0.01em;
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.16s ease;
}

.cmr-shell-content--prose .cmr-guide-cta a:hover,
.cmr-shell-content--prose .cmr-guide-cta a:focus-visible {
	background: #262627;
}

/* ---------- guides hub cards ---------- */

.cmr-guide-cards {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 18px;
	align-items: stretch;
}

/* Legacy .cmr-guide-card rules removed — both hubs now render .cmr-toolcard,
   whose heading is styled by .cmr-toolcard__title. A bare `.cmr-toolcard h2`
   rule here would outrank that class and undo it. */

.cmr-shell-content--prose .cmr-hub-group {
	margin: 34px 0 4px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a83a00;
}

.cmr-shell-content--prose .cmr-hub-group:first-of-type {
	margin-top: 20px;
}

.cmr-shell-content--prose .cmr-hub-foot {
	margin-top: 28px;
	padding: 16px 20px;
	background: #fcfbfa;
	border: 1px solid #e2dcd5;
	border-radius: 16px;
	font-size: 0.95rem;
	color: #262627;
}

/* ---------- branded 404 ---------- */

.cmr-404 {
	text-align: center;
	padding-top: 24px;
}

.cmr-404__code {
	font-size: 4rem;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.04em;
	color: #a83a00;
	margin: 0 0 4px;
}

.cmr-404 .cmr-prose-title {
	margin-bottom: 12px;
}

.cmr-404__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

.cmr-404__btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	background: #141413;
	color: #f3f0ee;
	font-weight: 500;
	text-decoration: none;
	border: 1.5px solid #141413;
}

.cmr-404__btn--ghost {
	background: #fff;
	color: #141413;
}

.cmr-404__btn:hover,
.cmr-404__btn:focus-visible {
	background: #262627;
	color: #f3f0ee;
}

.cmr-404__btn--ghost:hover,
.cmr-404__btn--ghost:focus-visible {
	background: #f3f0ee;
	color: #141413;
}

/* ---------- surface tokens ----------
   One definition of the card treatment, reused by every raised surface on the
   site so the calculators hub, guides hub, related links and 404 all match. */

.cmr-shell-body {
	--cmr-surface: #ffffff;
	--cmr-surface-sunken: #faf8f6;
	--cmr-line: #e2dcd5;
	--cmr-line-soft: #ece7e1;
	--cmr-ink: #141413;
	--cmr-muted: #696969;
	--cmr-accent: #a83a00;
	--cmr-accent-tint: rgba(168, 58, 0, 0.1);
	--cmr-radius: 16px;
	--cmr-radius-sm: 12px;
	--cmr-shadow: 0 1px 2px rgba(20, 20, 19, 0.05);
	--cmr-shadow-lift: 0 18px 40px rgba(20, 20, 19, 0.1);
	--cmr-lift: -4px;
}

/* ---------- tool cards (calculators hub + guides hub) ---------- */

/* Self-sufficient grid: this class is used both alongside .cmr-guide-cards on
   the hubs and on its own inside tool pages, so it must not rely on the othe
   class for its layout. */
.cmr-toolcards {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 24px;
	align-items: stretch;
}

.cmr-toolcard {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 24px;
	background: var(--cmr-surface, #fff);
	border: 1px solid var(--cmr-line, #e2dcd5);
	border-radius: var(--cmr-radius, 16px);
	box-shadow: var(--cmr-shadow, 0 1px 2px rgba(20, 20, 19, 0.05));
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.cmr-toolcard,
.cmr-toolcard * {
	box-sizing: border-box;
}

/* The title link is stretched over the whole card, so the card is clickable
   while remaining a single link with a meaningful accessible name. */
.cmr-toolcard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.cmr-toolcard:hover,
.cmr-toolcard:focus-within {
	transform: translateY(var(--cmr-lift, -4px));
	box-shadow: var(--cmr-shadow-lift, 0 18px 40px rgba(20, 20, 19, 0.1));
	border-color: #d5ccc2;
}

.cmr-toolcard__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.cmr-toolcard__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border-radius: 12px;
	background: rgba(168, 58, 0, 0.1);
	color: #a83a00;
}

.cmr-toolcard__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	border: 1px solid #e2dcd5;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.5;
	color: #575757;
	white-space: nowrap;
}

/* Doubled class: prose heading rules like `.cmr-shell-content--prose h2` are
   (0,1,1) and would otherwise outrank a single class and resize card titles. */
.cmr-toolcard .cmr-toolcard__title {
	margin: 0 0 6px;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #141413;
}

.cmr-toolcard__title a {
	color: inherit;
	text-decoration: none;
}

.cmr-toolcard:hover .cmr-toolcard__title a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cmr-toolcard__title a:focus-visible {
	outline: 2px solid #a83a00;
	outline-offset: 3px;
	border-radius: 4px;
}

/* Description takes the slack so the rule and CTA sit on a shared baseline.
   Doubled class for the same reason as the title above. */
.cmr-toolcard .cmr-toolcard__desc {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	font-weight: 450;
	color: #696969;
}

.cmr-toolcard__rule {
	display: block;
	height: 1px;
	margin: 18px 0 14px;
	background: #ece7e1;
}

.cmr-toolcard__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.86rem;
	font-weight: 600;
	color: #a83a00;
}

.cmr-toolcard__arrow {
	transition: transform 0.18s ease;
}

.cmr-toolcard:hover .cmr-toolcard__arrow {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.cmr-toolcard,
	.cmr-toolcard__arrow {
		transition: none;
	}

	.cmr-toolcard:hover,
	.cmr-toolcard:focus-within {
		transform: none;
	}

	.cmr-toolcard:hover .cmr-toolcard__arrow {
		transform: none;
	}
}

/* ---------- floating pill header ---------- */

/* Light pill on the cream page — the original look. What changed is the
   layout: grouped dropdowns, descriptions, and a real action on the right. */
.cmr-shell-header {
	position: sticky;
	top: 0;
	z-index: 30;
	padding: 14px 24px 10px;
	background: linear-gradient(180deg, #f3f0ee 58%, rgba(243, 240, 238, 0) 100%);
}

.cmr-shell-header__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 9px 9px 9px 22px;
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 4px 24px rgba(20, 20, 19, 0.07);
	box-sizing: border-box;
}

.cmr-shell-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
	text-decoration: none;
	color: #141413;
}

.cmr-shell-brand__logo {
	display: block;
	max-height: 32px;
	width: auto;
}

.cmr-shell-brand__mark {
	display: inline-flex;
	color: #a83a00;
}

.cmr-shell-brand__name {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #141413;
}

.cmr-shell-nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Only shown inside the mobile drawer. */
.cmr-shell-nav__trust {
	display: none;
}

.cmr-shell-nav .cmr-shell-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cmr-shell-nav .cmr-shell-menu > li > a,
.cmr-shell-nav .cmr-shell-menu > li > .cmr-submenu-wrap > a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 4px 14px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: #141413;
	white-space: nowrap;
	transition: background 0.16s ease, color 0.16s ease;
}

.cmr-shell-nav .cmr-shell-menu > li > a:hover,
.cmr-shell-nav .cmr-shell-menu > li > a:focus-visible {
	background: #f3f0ee;
	color: #a83a00;
}

.cmr-shell-nav .cmr-shell-menu > .current-menu-item > a,
.cmr-shell-nav .cmr-shell-menu > .current_page_item > a,
.cmr-shell-nav .cmr-shell-menu > .current-menu-ancestor > a,
.cmr-shell-nav .cmr-shell-menu > .current-menu-parent > a {
	background: #141413;
	color: #f3f0ee;
}

/* ---------- dropdown panel ---------- */

.cmr-shell-nav .cmr-shell-menu li {
	position: relative;
}

.cmr-shell-nav .cmr-shell-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 292px;
	margin: 10px 0 0;
	padding: 8px;
	list-style: none;
	background: #ffffff;
	border: 1px solid #e2dcd5;
	border-radius: 18px;
	box-shadow: 0 24px 48px rgba(20, 20, 19, 0.13);
}

/* Keeps the pointer bridge across the 10px gap so the panel does not close. */
.cmr-shell-nav .cmr-shell-menu .sub-menu::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

.cmr-shell-nav .cmr-shell-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 12px;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
	color: #141413;
	transition: background 0.14s ease, color 0.14s ease;
}

.cmr-shell-nav .cmr-shell-menu .sub-menu a:hover,
.cmr-shell-nav .cmr-shell-menu .sub-menu a:focus-visible {
	background: #f3f0ee;
	color: #a83a00;
}

.cmr-shell-menu__desc {
	display: block;
	margin-top: 2px;
	font-size: 0.78rem;
	font-weight: 450;
	line-height: 1.4;
	color: #696969;
}

.cmr-shell-nav .cmr-shell-menu li:hover > .sub-menu,
.cmr-shell-nav .cmr-shell-menu li:focus-within > .sub-menu,
.cmr-shell-nav .cmr-shell-menu li.cmr-submenu-open > .sub-menu {
	display: block;
}

.cmr-submenu-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0 8px 0 2px;
	min-height: 40px;
	font-size: 0.72rem;
	line-height: 1;
	color: #8a847c;
	border-radius: 999px;
	transition: color 0.16s ease;
}

.cmr-submenu-toggle:hover,
.cmr-submenu-toggle:focus-visible {
	color: #a83a00;
}

.cmr-submenu-toggle span {
	display: inline-block;
	transition: transform 0.18s ease;
}

.cmr-submenu-toggle[aria-expanded="true"] span {
	transform: rotate(180deg);
}

/* ---------- right-hand actions ---------- */

.cmr-shell-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.cmr-shell-trust {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #8a847c;
	white-space: nowrap;
}

.cmr-shell-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: #141413;
	color: #f3f0ee;
	font-size: 0.87rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.16s ease, transform 0.16s ease;
}

.cmr-shell-cta:hover,
.cmr-shell-cta:focus-visible {
	background: #a83a00;
	color: #fff;
	transform: translateY(-1px);
}

.cmr-shell-cta svg {
	opacity: 0.6;
}

.cmr-shell-burger {
	display: none;
	appearance: none;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #f3f0ee;
	color: #141413;
}

.cmr-shell-burger__close {
	display: none;
}

.cmr-shell-burger[aria-expanded="true"] .cmr-shell-burger__open {
	display: none;
}

.cmr-shell-burger[aria-expanded="true"] .cmr-shell-burger__close {
	display: block;
}

.cmr-shell-burger:focus-visible,
.cmr-shell-nav a:focus-visible,
.cmr-shell-cta:focus-visible {
	outline: 2px solid #3860be;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.cmr-shell-cta,
	.cmr-submenu-toggle span {
		transition: none;
	}
	.cmr-shell-cta:hover {
		transform: none;
	}
}

/* ---------- footer ---------- */

.cmr-shell-footer {
	margin-top: 72px;
	background: #141413;
	color: #ded8d0;
	border-radius: 40px 40px 0 0;
}

/* Light wordmark, sized like the header's but on the dark footer. */
.cmr-shell-footer__logo {
	display: block;
	max-height: 34px;
	width: auto;
	margin-bottom: 12px;
}

.cmr-shell-footer__inner {
	display: grid;
	grid-template-columns: 1.6fr repeat(4, 1fr);
	gap: 40px 32px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 60px 24px 40px;
	box-sizing: border-box;
}

.cmr-shell-footer__brand {
	max-width: 34ch;
}

.cmr-shell-footer__brand strong {
	display: block;
	margin-bottom: 10px;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.cmr-shell-footer__brand p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.6;
	font-weight: 450;
	color: #a9a39b;
}

/* Trust chips: the three things that actually differentiate a pay tool. */
.cmr-shell-footer__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.cmr-shell-footer__chips li {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border: 1px solid rgba(243, 240, 238, 0.16);
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 550;
	letter-spacing: 0.01em;
	color: #a9a39b;
}

.cmr-shell-footer__col h2 {
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f37338;
}

.cmr-shell-footer .cmr-shell-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cmr-shell-footer .cmr-shell-menu li {
	margin-bottom: 8px;
}

.cmr-shell-footer .cmr-shell-menu a {
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 450;
	color: #ded8d0;
	transition: color 0.16s ease;
}

.cmr-shell-footer .cmr-shell-menu a:hover,
.cmr-shell-footer .cmr-shell-menu a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

/* ---------- popular answers (internal links) ---------- */

.cmr-shell-popular {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px 8px;
	box-sizing: border-box;
}

.cmr-shell-popular__title {
	margin: 0 0 18px;
	padding-top: 28px;
	border-top: 1px solid rgba(243, 240, 238, 0.14);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f37338;
}

.cmr-shell-popular__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px 32px;
}

.cmr-shell-popular__group h3 {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	color: #ded8d0;
}

.cmr-shell-popular__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 7px;
}

.cmr-shell-popular__group a {
	text-decoration: none;
	font-size: 0.83rem;
	font-weight: 450;
	color: #a9a39b;
	transition: color 0.16s ease;
}

.cmr-shell-popular__group a:hover,
.cmr-shell-popular__group a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

/* ---------- bottom bar ---------- */

.cmr-shell-footer__bottom {
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px 24px 40px;
	box-sizing: border-box;
}

.cmr-shell-footer__disclaimer {
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid rgba(243, 240, 238, 0.14);
	font-size: 0.78rem;
	line-height: 1.55;
	font-weight: 450;
	color: #8a847c;
}

.cmr-shell-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	margin-top: 18px;
}

.cmr-shell-footer__copy {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 450;
	color: #8a847c;
}

.cmr-shell-footer__legal .cmr-shell-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cmr-shell-footer__legal .cmr-shell-menu li {
	margin: 0;
}

.cmr-shell-footer__legal .cmr-shell-menu a {
	font-size: 0.8rem;
	color: #8a847c;
}

.cmr-shell-footer__legal .cmr-shell-menu a:hover,
.cmr-shell-footer__legal .cmr-shell-menu a:focus-visible {
	color: #fff;
}

/* ---------- responsive ---------- */

/* The CTA is the first thing to go: on a narrow bar the logo, a tappable
   menu button and one clear action are all that fit honestly. */
@media (max-width: 1080px) {
	.cmr-shell-trust {
		display: none;
	}
}

@media (max-width: 900px) {
	.cmr-shell-header__inner {
		padding: 8px 8px 8px 18px;
		gap: 8px;
	}

	.cmr-shell-actions {
		margin-left: auto;
	}

	.cmr-shell-cta {
		min-height: 38px;
		padding: 0 14px;
		font-size: 0.83rem;
	}

	.cmr-shell-burger {
		display: inline-flex;
	}

	.cmr-shell-nav {
		position: absolute;
		top: calc(100% + 8px);
		left: 24px;
		right: 24px;
		display: none;
		padding: 10px;
		background: #ffffff;
		border: 1px solid #e2dcd5;
		border-radius: 24px;
		box-shadow: 0 24px 48px rgba(20, 20, 19, 0.14);
		/* Every submenu is expanded in the drawer, so on a short phone the
		   panel scrolls itself rather than running off the viewport.
		   border-box so the cap includes padding and border. */
		box-sizing: border-box;
		max-height: calc(100vh - 110px);
		max-height: calc(100dvh - 110px);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.cmr-shell-nav.is-open {
		display: block;
	}

	.cmr-shell-nav .cmr-shell-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 0;
	}

	.cmr-shell-nav .cmr-shell-menu > li > a,
	.cmr-shell-nav .cmr-shell-menu > li > .cmr-submenu-wrap > a {
		min-height: 46px;
		padding: 6px 14px;
		border-radius: 14px;
		font-size: 0.95rem;
	}

	.cmr-shell-nav .cmr-shell-menu .sub-menu {
		display: block;
		position: static;
		transform: none;
		min-width: 0;
		margin: 0 0 4px;
		border: 0;
		background: transparent;
		box-shadow: none;
		padding: 0 0 0 12px;
	}

	.cmr-shell-nav .cmr-shell-menu .sub-menu::before {
		content: none;
	}

	.cmr-shell-nav__trust {
		display: block;
		margin: 8px 6px 2px;
		padding-top: 10px;
		border-top: 1px solid #e2dcd5;
		font-size: 0.7rem;
		font-weight: 700;
		letter-spacing: 0.07em;
		text-transform: uppercase;
		color: #8a847c;
	}

	.cmr-shell-footer {
		border-radius: 28px 28px 0 0;
	}

	.cmr-shell-footer__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px;
		padding: 44px 20px 32px;
	}

	.cmr-shell-footer__brand {
		grid-column: 1 / -1;
		max-width: none;
	}

	.cmr-shell-popular {
		padding: 0 20px 8px;
	}

	.cmr-shell-popular__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cmr-shell-footer__bottom {
		padding: 22px 20px 36px;
	}
}

/* ---------- touch tap targets ----------
   Applied to every width where the drawer nav is in use, AND to any coarse
   pointer regardless of width — an iPad in landscape is 1024px wide and still
   a thumb. 44px is the WCAG 2.5.5 / platform minimum; padding alone missed it
   (links were measuring 30px). */

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
	.cmr-shell-footer__inner {
		gap: 28px 20px;
	}

	.cmr-shell-footer .cmr-shell-menu li {
		margin-bottom: 0;
	}

	.cmr-shell-footer__col .cmr-shell-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 4px 0;
		font-size: 0.9rem;
	}

	.cmr-shell-popular__group ul {
		gap: 0;
	}

	.cmr-shell-popular__group a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 4px 0;
		font-size: 0.88rem;
	}

	.cmr-shell-footer__legal .cmr-shell-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
}

/* ---------- phone ---------- */

@media (max-width: 560px) {
	.cmr-shell-header {
		padding: 10px 14px 8px;
	}

	.cmr-shell-header__inner {
		padding: 7px 7px 7px 14px;
		gap: 6px;
	}

	.cmr-shell-brand__logo {
		max-height: 28px;
	}

	/* Below this width the logo, the action and the menu button cannot all sit
	   honestly on one row, so the label collapses to the arrow glyph. */
	.cmr-shell-cta {
		padding: 0 12px;
		font-size: 0;
		gap: 0;
		min-width: 40px;
		justify-content: center;
	}

	.cmr-shell-cta svg {
		width: 16px;
		height: 16px;
		opacity: 1;
	}

	.cmr-shell-nav {
		left: 14px;
		right: 14px;
	}

	.cmr-shell-footer {
		border-radius: 22px 22px 0 0;
	}

	.cmr-shell-footer__inner,
	.cmr-shell-popular__grid {
		grid-template-columns: 1fr;
	}

	.cmr-shell-footer__inner {
		padding: 36px 18px 26px;
		gap: 26px;
	}

	.cmr-shell-popular {
		padding: 0 18px 4px;
	}

	.cmr-shell-footer__bottom {
		padding: 20px 18px 32px;
	}

	.cmr-shell-footer__legal {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.cmr-shell-footer__legal .cmr-shell-menu {
		gap: 0 20px;
	}
}

@media print {
	.cmr-shell-header,
	.cmr-shell-footer {
		display: none !important;
	}
}
