/*
 * usatechdeals-core block styles (front end and editor).
 * Colours and spacing come from the theme's CSS variables with plain fallbacks, so the blocks
 * still look right if the theme ever changes.
 */
:root {
	--utd-navy: var(--wp--preset--color--navy, #0A2A66);
	--utd-deep: var(--wp--preset--color--deep-navy, #071D47);
	--utd-red: var(--wp--preset--color--red, #D7262E);
	--utd-blue: var(--wp--preset--color--blue, #1E6FD9);
	--utd-yellow: var(--wp--preset--color--yellow, #FFD23F);
	--utd-text: var(--wp--preset--color--text, #1F2937);
	--utd-muted: var(--wp--preset--color--muted, #5B6472);
	--utd-blue-dark: var(--wp--preset--color--blue-dark, #1B64C4);
	--utd-light: var(--wp--preset--color--light, #EEF3FB);
	--utd-cream: var(--wp--preset--color--cream, #FFF6D6);
	--utd-border: var(--wp--preset--color--line, #E5E9F2);
	--utd-soft: var(--wp--preset--color--navy-soft, #DCE5F5);
	--utd-footer-text: var(--wp--preset--color--footer-text, #B8C6E3);
	--utd-radius: 18px;
	--utd-pill: 999px;
}

/* ---------- Shared bits ---------- */
.utd-eyebrow { display: inline-block; color: var(--utd-red); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.utd-meta { font-size: 13px; color: var(--utd-muted); }
.utd-pill-button, .utd-product__button, .utd-pin__button, .utd-embedbox__copy {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px;
	border-radius: var(--utd-pill); border: 0; background: var(--utd-red); color: #fff; font: inherit; font-weight: 600; font-size: 15px;
	text-decoration: none; cursor: pointer; line-height: 1.2; box-sizing: border-box;
}
.utd-pill-button:hover, .utd-product__button:hover, .utd-pin__button:hover:hover, .utd-embedbox__copy:hover { background: var(--utd-navy); color: #fff; text-decoration: none; }

/* ---------- Boxes: quick answer, own setup, research, part of ---------- */
.utd-box { border-radius: 14px; padding: 20px 24px; margin: 28px 0; }
.utd-box__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--utd-navy); }
.utd-box__body > :first-child { margin-top: 0; }
.utd-box__body > :last-child { margin-bottom: 0; }
.utd-box__body ul, .utd-box__body ol { margin: 0; padding-left: 20px; }
.utd-box__body li { margin: 6px 0; line-height: 1.55; }
.utd-box__body p { margin: 0 0 10px; line-height: 1.65; }
.utd-box__note { margin: 12px 0 0; font-size: 13px; color: var(--utd-muted); }
.utd-box--quick { background: var(--utd-cream); border-left: 4px solid var(--utd-yellow); }
.utd-box--quick .utd-box__label { color: var(--utd-navy); }
.utd-box--cream { background: var(--utd-cream); border-left: 4px solid var(--utd-yellow); }
.utd-box--cream .utd-box__label { color: #7A5A00; }
.utd-box--research { background: #fff; border: 1px solid var(--utd-border); border-left: 4px solid var(--utd-blue); }
.utd-box--research .utd-box__label { color: var(--utd-blue); }
.utd-box--partof { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--utd-border); border-left: 4px solid var(--utd-red); text-decoration: none; color: var(--utd-navy); }
.utd-box--partof .utd-box__label { color: var(--utd-red); margin: 0; }
.utd-box--partof .utd-box__title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.utd-box--partof:hover .utd-box__title { text-decoration: underline; }

/* ---------- Stat strip ---------- */
.utd-stats { margin: 0; }
.utd-stats--dark { background: var(--utd-deep); color: #fff; }
.utd-stats__inner { max-width: 1240px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.utd-stats--light .utd-stats__inner { padding: 0; }
.utd-stat { display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--utd-yellow); padding-left: 16px; }
.utd-stat__big { font-size: 34px; font-weight: 800; color: var(--utd-yellow); line-height: 1.1; }
.utd-stat__text { font-size: 15px; line-height: 1.45; }
.utd-stat__source { font-size: 12px; color: var(--utd-footer-text); }
.utd-stats--light .utd-stat { background: #fff; border: 1px solid var(--utd-border); border-left: 4px solid var(--utd-navy); border-radius: 14px; padding: 18px 20px; color: var(--utd-text); }
.utd-stats--light .utd-stat__big { color: var(--utd-navy); font-size: 30px; }
.utd-stats--light .utd-stat__source { color: var(--utd-muted); }

/* ---------- FAQ ---------- */
.utd-faq { margin: 40px 0; }
.utd-faq__heading { margin: 0 0 14px; }
.utd-faq__list { display: flex; flex-direction: column; gap: 12px; }
.utd-faq__item { background: #fff; border: 1px solid var(--utd-border); border-radius: 14px; padding: 0; }
.utd-faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; color: var(--utd-navy); display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.utd-faq__item summary::-webkit-details-marker { display: none; }
.utd-faq__item summary::before { content: ""; flex: none; width: 0; height: 0; margin-top: 7px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--utd-navy); transition: transform 0.15s; }
.utd-faq__item[open] summary::before { transform: rotate(90deg); }
.utd-faq__item summary:focus-visible { outline: 3px solid var(--utd-blue); outline-offset: -3px; border-radius: 14px; }
.utd-faq__answer { padding: 0 22px 18px 42px; color: #374151; line-height: 1.65; }
.utd-faq__answer > :first-child { margin-top: 0; }
.utd-faq__answer > :last-child { margin-bottom: 0; }
.utd-faq--light .utd-faq__item { background: #fff; }

/* ---------- Sources ---------- */
.utd-sources { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--utd-border); font-size: 14px; color: #4B5563; }
.utd-sources__heading { font-size: 14px; margin: 0 0 8px; color: var(--utd-navy); }
.utd-sources__list ul { margin: 0; padding-left: 18px; }
.utd-sources__list li { margin: 4px 0; }
.utd-sources__note { margin: 12px 0 0; font-size: 13px; color: var(--utd-muted); }

/* ---------- Lead magnet ---------- */
/* ---------- Author box and byline ---------- */
.utd-author { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--utd-border); border-radius: 16px; padding: 22px; margin: 36px 0; background: #fff; }
.utd-author-photo { border-radius: 50%; object-fit: cover; flex: none; }
.utd-author-photo--placeholder { display: inline-flex; align-items: center; justify-content: center; background: #C9D7EF; color: var(--utd-navy); font-size: 11px; font-weight: 600; }
.utd-author__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--utd-red); }
.utd-author__name { margin: 2px 0 6px; font-size: 18px; font-weight: 700; color: var(--utd-navy); }
.utd-author__bio { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: #374151; }
.utd-author__link { font-weight: 600; font-size: 14px; }
.utd-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--utd-muted); margin: 0; }
.utd-byline__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.utd-byline__name { font-weight: 700; color: var(--utd-navy); }
.utd-byline__name a { color: var(--utd-navy); text-decoration: none; }
.utd-byline__name a:hover { text-decoration: underline; }
.utd-byline__item a { color: var(--utd-blue-dark); }

/* ---------- Pin It ---------- */
.utd-pin { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin: 24px 0; }
.utd-pin__figure { margin: 0; max-width: 320px; }
.utd-pin__img { width: 100%; height: auto; border-radius: 14px; display: block; }
.utd-pin__img--hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.utd-pin__placeholder { width: 100%; max-width: 320px; aspect-ratio: 2 / 3; border-radius: 14px; background: var(--utd-navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; box-sizing: border-box; }
.utd-pin__ph-title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.utd-pin__ph-note { font-size: 13px; color: var(--utd-soft); }
.utd-pin__button { background: #E60023; padding: 10px 18px; font-size: 14px; }
.utd-pin__button:hover { background: #AD081B; }
.utd-pin--hidden { margin: 12px 0; }

/* ---------- Product card ---------- */
.utd-product { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 24px; border: 1px solid var(--utd-border); border-radius: 20px; padding: 24px; margin: 28px 0; background: #fff; }
.utd-product__media { align-self: start; }
.utd-product__img { width: 100%; height: auto; border-radius: 14px; display: block; }
.utd-product__placeholder { aspect-ratio: 1; border-radius: 14px; background: var(--utd-light); color: var(--utd-navy); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.utd-product__label { display: inline-block; background: var(--utd-navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 12px; border-radius: var(--utd-pill); margin-bottom: 10px; }
.utd-product__name { margin: 0 0 8px; font-size: 22px; }
.utd-product__bestfor, .utd-product__skip { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.utd-product__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 6px 0 12px; }
.utd-product__h { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.utd-product__pros .utd-product__h { color: #15803D; }
.utd-product__cons .utd-product__h { color: var(--utd-red); }
.utd-product__cols ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.utd-product__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; margin: 0 0 14px; padding: 12px 16px; background: var(--utd-light); border-radius: 12px; font-size: 14px; }
.utd-product__specs div { display: flex; gap: 8px; }
.utd-product__specs dt { font-weight: 600; color: var(--utd-navy); }
.utd-product__specs dd { margin: 0; }
.utd-product__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.utd-product__button--off { background: var(--utd-light); color: var(--utd-muted); cursor: default; }
.utd-product__price { font-size: 14px; color: var(--utd-muted); }
@media (max-width: 640px) { .utd-product { grid-template-columns: 1fr; } .utd-product__media { max-width: 240px; } }

/* ---------- Comparison table ---------- */
.utd-compare { margin: 28px 0; border: 1px solid var(--utd-border); border-radius: 14px; overflow: hidden; background: #fff; }
.utd-compare__title { margin: 0; padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--utd-navy); border-bottom: 1px solid var(--utd-border); }
.utd-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.utd-compare__scroll:focus-visible { outline: 3px solid var(--utd-blue); outline-offset: -3px; }
.utd-compare table, .utd-compare .wp-block-table { margin: 0; width: 100%; border-collapse: collapse; min-width: 520px; font-size: 14px; }
.utd-compare .wp-block-table { overflow: visible; }
.utd-compare th, .utd-compare td { padding: 12px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--utd-border); vertical-align: top; line-height: 1.45; }
.utd-compare--navy th { background: var(--utd-navy); color: #fff; font-weight: 600; }
.utd-compare--light th { background: var(--utd-light); color: var(--utd-navy); font-weight: 700; }
.utd-compare tr:last-child td { border-bottom: 0; }
.utd-compare tbody tr:nth-child(even) td { background: #FAFBFE; }

/* ---------- Option switcher ---------- */
.utd-switcher { margin: 32px 0; }
.utd-switcher__question { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--utd-navy); }
.utd-switcher__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.utd-switcher__btn { min-height: 44px; padding: 10px 18px; border-radius: var(--utd-pill); border: 2px solid var(--utd-navy); background: #fff; color: var(--utd-navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.utd-switcher__btn[aria-pressed="true"] { background: var(--utd-navy); color: #fff; }
.utd-switcher__btn:hover { border-color: var(--utd-blue); color: var(--utd-blue); }
.utd-switcher__btn[aria-pressed="true"]:hover { color: #fff; background: var(--utd-blue); border-color: var(--utd-blue); }
.utd-switcher__panels { margin-top: 18px; }
.utd-switcher__plabel { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--utd-red); }
.utd-switcher__panel { background: #fff; border: 1px solid var(--utd-border); border-radius: 18px; padding: 24px 26px; margin-bottom: 14px; }
.utd-switcher.is-enhanced .utd-switcher__panel { margin-bottom: 0; }
.utd-switcher.is-enhanced .utd-switcher__heading--nojs { display: none; }
.utd-switcher__heading { margin: 0 0 12px; font-size: 22px; }
.utd-switcher__content > :first-child { margin-top: 0; }
.utd-switcher__content > :last-child { margin-bottom: 0; }
.utd-switcher__content ol { counter-reset: utd-steps; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.utd-switcher__content ol > li { counter-increment: utd-steps; display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; font-size: 15px; }
.utd-switcher__content ol > li::before { content: counter(utd-steps); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--utd-yellow); color: var(--utd-navy); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.utd-switcher__content ul { padding-left: 0; list-style: none; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.utd-switcher__content ul > li { display: flex; gap: 10px; line-height: 1.55; font-size: 15px; }
.utd-switcher__content ul > li::before { content: "\2713"; color: #15803D; font-weight: 700; flex: none; }
.utd-switcher--list { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 24px; align-items: start; }
.utd-switcher--list .utd-switcher__buttons { flex-direction: column; }
.utd-switcher--list .utd-switcher__btn { text-align: left; border-radius: 14px; border: 1px solid var(--utd-border); background: #fff; font-weight: 600; padding: 14px 18px; color: var(--utd-text); }
.utd-switcher--list .utd-switcher__btn[aria-pressed="true"] { background: var(--utd-navy); color: #fff; border-color: var(--utd-navy); }
.utd-switcher--list .utd-switcher__panels { margin-top: 0; }
.utd-switcher--list .utd-switcher__panel { background: var(--utd-light); border: 0; padding: 28px; }
@media (max-width: 800px) { .utd-switcher--list { grid-template-columns: 1fr; } .utd-switcher--list .utd-switcher__buttons { flex-direction: row; } }
.utd-switcher__content .utd-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* ---------- Filter grid ---------- */
.utd-filter { margin: 8px 0 40px; }
.utd-filter__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.utd-filter__btn { min-height: 44px; padding: 10px 18px; border-radius: var(--utd-pill); border: 2px solid var(--utd-navy); background: #fff; color: var(--utd-navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.utd-filter__btn[aria-pressed="true"] { background: var(--utd-navy); color: #fff; }
.utd-filter__items { display: flex; flex-direction: column; gap: 28px; }
.utd-filter__item[hidden] { display: none; }

/* ---------- Blog filter ---------- */
.utd-blogfilter { margin: 20px 0 24px; }
.utd-blogfilter__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.utd-blogfilter__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--utd-pill); border: 2px solid var(--utd-navy); background: #fff; color: var(--utd-navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.utd-blogfilter__btn.is-current { background: var(--utd-navy); color: #fff; }
.utd-blogfilter__btn:hover { border-color: var(--utd-blue); color: var(--utd-blue); text-decoration: none; }
.utd-blogfilter__btn.is-current:hover { color: #fff; background: var(--utd-blue); border-color: var(--utd-blue); }
.utd-blogfilter__count { font-weight: 600; opacity: 0.85; margin-left: 4px; }
.utd-blogfilter__status { margin: 14px 0 0; font-size: 14px; color: var(--utd-muted); }

/* ---------- Pillar posts ---------- */
.utd-pillar-posts { margin: 40px 0; }
.utd-pillar-posts__heading { margin: 0 0 14px; }
.utd-pillar-posts__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.utd-pillar-posts__list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--utd-border); border-radius: 14px; background: #fff; text-decoration: none; color: var(--utd-text); min-height: 44px; }
.utd-pillar-posts__list a:hover .utd-pillar-posts__title { color: var(--utd-blue); text-decoration: underline; }
.utd-pillar-posts__title { font-weight: 600; font-size: 15px; line-height: 1.4; }
.utd-pillar-posts__meta { font-size: 13px; color: var(--utd-muted); white-space: nowrap; }
.utd-pillar-posts__empty { color: var(--utd-muted); font-size: 15px; }

/* ---------- Breadcrumb ---------- */
.utd-breadcrumb { font-size: 13px; color: var(--utd-muted); margin: 0 0 14px; }
.utd-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.utd-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--utd-muted); }
.utd-breadcrumb a { color: var(--utd-blue-dark); }
.utd-toc__list a, .utd-box--quick a, .utd-compact a { color: var(--utd-blue-dark); }

/* ---------- Embed box ---------- */
.utd-embedbox { border: 2px dashed #C5CFE2; border-radius: 16px; padding: 22px 24px; margin: 36px 0; background: #fff; }
.utd-embedbox__heading { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--utd-navy); }
.utd-embedbox__text { margin: 0 0 12px; font-size: 14px; color: #4B5563; }
.utd-embedbox__code { width: 100%; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--utd-border); background: var(--utd-navy); color: #fff; resize: vertical; }
.utd-embedbox__copy { margin-top: 12px; padding: 10px 18px; font-size: 14px; min-height: 40px; }
.utd-embedbox__done { margin-left: 12px; font-size: 13px; color: #15803D; }

/* ---------- Cards (shared with theme patterns) ---------- */
.utd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.utd-card--post { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--utd-border); border-radius: 20px; overflow: hidden; background: #fff; text-decoration: none; color: var(--utd-text); }
.utd-card__img { height: 190px; width: 100%; object-fit: cover; display: block; }
.utd-card__img--ph { background: var(--utd-soft); color: var(--utd-navy); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.utd-card__body { padding: 0 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.utd-card__title { font-size: 19px; font-weight: 700; line-height: 1.35; }

/* ---------- Tools: shared layout ---------- */
.utd-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 32px; align-items: start; }
.utd-tool--single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .utd-tool { grid-template-columns: 1fr; } }
.utd-tool__inputs { border: 2px solid var(--utd-navy); border-radius: 22px; padding: 26px; background: #fff; display: flex; flex-direction: column; gap: 20px; }
.utd-tool__results { background: var(--utd-navy); color: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.utd-tool__field { display: flex; flex-direction: column; gap: 10px; }
.utd-tool__label { margin: 0; font-size: 15px; font-weight: 700; color: var(--utd-navy); }
.utd-tool__hint { margin: 0; font-size: 13px; color: var(--utd-muted); line-height: 1.5; }
.utd-tool__note { margin: 0; font-size: 13px; color: var(--utd-muted); line-height: 1.5; }
.utd-tool__note.is-error { color: #B91C1C; font-weight: 600; }
.utd-tool__nojs { margin: 0; padding: 12px 14px; background: var(--utd-cream); border-radius: 10px; font-size: 14px; }
.utd-tool__direct { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--utd-muted); }
.utd-tool__direct input { width: 90px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--utd-border); font: inherit; font-size: 15px; }
.utd-tool__more { border: 1px solid var(--utd-border); border-radius: 14px; padding: 0 16px; }
.utd-tool__more summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--utd-navy); min-height: 44px; display: flex; align-items: center; }
.utd-tool__more[open] summary { border-bottom: 1px solid var(--utd-border); margin-bottom: 16px; }
.utd-tool__more .utd-tool__field { margin-bottom: 18px; }
.utd-tool__results-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--utd-yellow); }
.utd-tool__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.utd-tool__tiles--3 { grid-template-columns: repeat(3, 1fr); }
.utd-tool__tiles--1 { grid-template-columns: 1fr; }
@media (max-width: 480px) { .utd-tool__tiles, .utd-tool__tiles--3 { grid-template-columns: 1fr; } }
.utd-tile { background: #1E3F86; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.utd-tile__label { font-size: 13px; color: var(--utd-soft); }
.utd-tile__value { font-size: 28px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.utd-tile__value--small { font-size: 18px; }
.utd-tile__sub { font-size: 13px; color: var(--utd-soft); line-height: 1.45; }
.utd-tool__results-note { margin: 0; font-size: 14px; line-height: 1.55; color: #fff; }
.utd-tool__results-small { margin: 0; font-size: 13px; line-height: 1.55; color: var(--utd-soft); }
.utd-tool__cta { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 44px; padding: 12px 22px; border-radius: var(--utd-pill); border: 0; background: var(--utd-yellow); color: var(--utd-navy); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.utd-tool__cta:hover { background: #fff; color: var(--utd-navy); }
.utd-tool__inputs .utd-tool__cta { background: var(--utd-red); color: #fff; }
.utd-tool__inputs .utd-tool__cta:hover { background: var(--utd-navy); }
.utd-tool__cta--ghost { background: transparent; border: 2px solid currentColor; color: inherit; }
.utd-tool__inputs .utd-tool__cta--ghost { background: #fff; color: var(--utd-navy); border-color: var(--utd-navy); }
.utd-tool__inputs .utd-tool__cta--ghost:hover { background: var(--utd-light); color: var(--utd-navy); }
.utd-tool__results .utd-tool__cta--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.utd-tool__cta[disabled] { opacity: 0.5; cursor: default; }
.utd-tool__row { display: flex; flex-wrap: wrap; gap: 10px; }
.utd-tool__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.utd-tool__share-done { font-size: 13px; color: var(--utd-soft); }
/* Stepper */
.utd-stepper { display: flex; align-items: center; gap: 12px; }
.utd-stepper__btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--utd-navy); background: #fff; color: var(--utd-navy); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; flex: none; }
.utd-stepper__btn:hover { background: var(--utd-navy); color: #fff; }
.utd-stepper__value { font-size: 26px; font-weight: 800; color: var(--utd-navy); min-width: 110px; text-align: center; }
.utd-stepper__input { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--utd-navy); font-size: 20px; }
.utd-stepper__input input { width: 110px; min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--utd-border); font: inherit; font-size: 22px; font-weight: 800; color: var(--utd-navy); text-align: center; -moz-appearance: textfield; }
.utd-stepper__input input::-webkit-outer-spin-button, .utd-stepper__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.utd-stepper__suffix { font-size: 15px; font-weight: 600; color: var(--utd-muted); }
.utd-stepper__prefix { font-size: 18px; }
/* Toggle group */
.utd-toggle { display: flex; flex-wrap: wrap; gap: 10px; }
.utd-toggle button { min-height: 44px; padding: 10px 20px; border-radius: var(--utd-pill); border: 2px solid var(--utd-navy); background: #fff; color: var(--utd-navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.utd-toggle button[aria-pressed="true"] { background: var(--utd-navy); color: #fff; }
.utd-toggle button:hover { border-color: var(--utd-blue); color: var(--utd-blue); }
.utd-toggle button[aria-pressed="true"]:hover { background: var(--utd-blue); border-color: var(--utd-blue); color: #fff; }
.utd-tool__custom { flex-direction: row; flex-wrap: wrap; gap: 14px; }
.utd-tool__custom label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--utd-navy); }
.utd-tool__custom input { width: 120px; min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--utd-border); font: inherit; font-size: 16px; }
/* Monitor compare visual */
.utd-compare-visual { display: flex; align-items: flex-end; gap: 12px; padding: 12px 0 0; }
.utd-compare-visual__box { border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; font-size: 12px; font-weight: 700; padding-bottom: 4px; min-width: 40px; }
.utd-compare-visual__box--a { background: var(--utd-yellow); color: var(--utd-navy); }
.utd-compare-visual__box--b { background: #fff; color: var(--utd-navy); border: 2px dashed var(--utd-soft); }
/* Dead pixel */
.utd-tool__stage { height: 320px; border-radius: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--utd-border); user-select: none; }
.utd-tool__stage:focus-visible { outline: 3px solid var(--utd-blue); outline-offset: 3px; }
.utd-tool__stage-label { background: rgba(0,0,0,0.45); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.utd-tool__stage.is-full, .utd-tool__stage.is-fixed { border-radius: 0; border: 0; }
.utd-tool__stage.is-fixed { position: fixed; inset: 0; height: auto; z-index: 100000; }
.utd-tool__stage.is-full .utd-tool__stage-label, .utd-tool__stage.is-fixed .utd-tool__stage-label { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); opacity: 0.6; }
/* Mouse */
.utd-mouse__pad { height: 220px; border-radius: 18px; border: 2px dashed var(--utd-navy); background: var(--utd-light); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; user-select: none; cursor: crosshair; }
.utd-mouse__pad:focus-visible { outline: 3px solid var(--utd-blue); }
.utd-mouse__pad-title { font-weight: 700; color: var(--utd-navy); font-size: 17px; }
.utd-mouse__pad-last { font-size: 14px; color: var(--utd-muted); }
.utd-mouse__buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 480px) { .utd-mouse__buttons { grid-template-columns: repeat(3, 1fr); } }
.utd-mouse__btn { background: #1E3F86; border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: background 0.15s; }
.utd-mouse__btn.is-on { background: var(--utd-yellow); color: var(--utd-navy); }
.utd-mouse__btn.is-used { box-shadow: inset 0 0 0 2px var(--utd-yellow); }
.utd-mouse__btn-name { font-size: 12px; }
.utd-mouse__btn-count { font-size: 22px; font-weight: 800; }
.utd-mouse__dpi { display: flex; flex-direction: column; gap: 8px; }
.utd-mouse__ruler { position: relative; height: 44px; border-radius: 10px; border: 2px solid var(--utd-navy); background: repeating-linear-gradient(90deg, #fff 0 23px, var(--utd-border) 23px 24px); overflow: hidden; cursor: ew-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.utd-mouse__ruler-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 210, 63, 0.6); }
.utd-mouse__ruler-text { position: relative; font-size: 13px; font-weight: 600; color: var(--utd-navy); }
/* Webcam */
.utd-cam__preview { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; background: #0B1A3A; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.utd-cam__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.utd-cam__idle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px; color: #fff; }
.utd-cam__idle-title { font-weight: 700; font-size: 17px; }
.utd-cam__idle-text { font-size: 13px; color: var(--utd-soft); }
.utd-cam__devices { display: flex; flex-wrap: wrap; gap: 14px; }
.utd-cam__devices label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--utd-navy); flex: 1 1 200px; }
.utd-cam__devices select { min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--utd-border); font: inherit; font-size: 14px; }
.utd-cam__meter { display: flex; gap: 4px; align-items: flex-end; height: 28px; margin: 6px 0; }
.utd-cam__meter span { flex: 1; height: 100%; background: rgba(255,255,255,0.15); border-radius: 3px; }
.utd-cam__meter span.is-lit { background: var(--utd-yellow); }
.utd-cam__meter span:nth-child(n+13).is-lit { background: var(--utd-red); }

/* ---------- Table of contents and related guides ---------- */
.utd-toc { background: var(--utd-light); border-radius: 16px; padding: 20px 22px; margin: 0 0 20px; }
.utd-toc__heading { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--utd-navy); }
.utd-toc__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.utd-toc__list a { color: var(--utd-blue); }
.utd-related { background: var(--utd-light); margin: 48px 0 0; }
.utd-related__inner { max-width: 1240px; margin: 0 auto; padding: 72px 24px; }
.utd-related__heading { margin: 0 0 20px; }
.utd-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.utd-related__card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--utd-border); text-decoration: none; color: var(--utd-navy); }
.utd-related__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--utd-light); }
.utd-related__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.utd-related__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.utd-related__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--utd-red); }
.utd-related__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.utd-related__card:hover .utd-related__title { color: var(--utd-blue); text-decoration: underline; }
@media (max-width: 819px) { .utd-related__inner { padding: 48px 24px; } }

/* ---------- Tools 9 to 13 ---------- */
.utd-kb { border: 2px dashed var(--utd-navy); border-radius: 16px; padding: 14px; background: var(--utd-light); outline: none; }
.utd-kb:focus-visible { outline: 3px solid var(--utd-blue); }
.utd-kb__hint { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--utd-navy); text-align: center; }
.utd-kb__rows { display: flex; flex-direction: column; gap: 5px; }
.utd-kb__row { display: flex; gap: 5px; }
.utd-kb__key { min-height: 34px; border-radius: 6px; background: #fff; border: 1px solid #C5CFE2; font-size: 11px; font-weight: 600; color: var(--utd-navy); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px; overflow: hidden; }
.utd-kb__key.is-used { background: var(--utd-yellow); border-color: var(--utd-yellow); }
.utd-kb__key.is-down { background: var(--utd-navy); color: #fff; border-color: var(--utd-navy); }
@media (max-width: 640px) { .utd-kb__key { font-size: 9px; min-height: 28px; } }
.utd-ups__devices { display: flex; flex-direction: column; gap: 8px; }
.utd-ups__device { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--utd-border); border-radius: 12px; font-size: 15px; }
.utd-ups__device input[type="checkbox"] { width: 20px; height: 20px; }
.utd-ups__watts { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--utd-muted); }
.utd-ups__watts input { width: 70px; min-height: 36px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--utd-border); font: inherit; font-size: 14px; text-align: right; }
.utd-tz__picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.utd-tz__chip { display: inline-flex; align-items: center; gap: 6px; background: var(--utd-navy); color: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; font-size: 14px; font-weight: 600; }
.utd-tz__remove { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.utd-tz__remove:hover { background: var(--utd-red); }
.utd-tz__add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.utd-tz__add select, .utd-tz__range select, .utd-tz__range input { min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--utd-border); font: inherit; font-size: 15px; }
.utd-tz__range { display: flex; flex-wrap: wrap; gap: 14px; }
.utd-tz__range label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--utd-navy); }
.utd-tz__grid { overflow-x: auto; display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.utd-tz__row { display: grid; grid-template-columns: 90px repeat(24, minmax(26px, 1fr)); gap: 2px; align-items: center; min-width: 760px; }
.utd-tz__city { font-weight: 700; font-size: 12px; padding-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utd-tz__cell { height: 28px; border-radius: 4px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--utd-soft); }
.utd-tz__cell.is-work { background: rgba(255,255,255,0.28); color: #fff; }
.utd-tz__cell.is-overlap { outline: 2px solid var(--utd-yellow); }
.utd-tz__cell.is-work.is-overlap { background: var(--utd-yellow); color: var(--utd-navy); font-weight: 700; }
.utd-tz__cell--head { background: none; height: 18px; font-size: 10px; color: var(--utd-soft); outline: none !important; }
.utd-tz__row--head .utd-tz__city { font-size: 10px; color: var(--utd-soft); }
.utd-ergo__list { margin: 0; padding: 0; list-style: none; counter-reset: ergo; display: flex; flex-direction: column; gap: 12px; }
.utd-ergo__q { counter-increment: ergo; border: 1px solid var(--utd-border); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.utd-ergo__q::before { content: counter(ergo); grid-row: 1 / span 1; position: absolute; left: -9999px; }
.utd-ergo__text { margin: 0; font-size: 15px; line-height: 1.5; }
.utd-ergo__text::before { content: counter(ergo) ". "; font-weight: 700; color: var(--utd-navy); }
@media (max-width: 560px) { .utd-ergo__q { grid-template-columns: 1fr; } }
.utd-ergo__fixes ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.utd-ergo__fixes a { color: var(--utd-yellow); }
.utd-ergo__email { border: 1px solid rgba(255,255,255,0.25); border-radius: 14px; padding: 0 14px; }
.utd-ergo__email summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.utd-ergo__email[open] summary { border-bottom: 1px solid rgba(255,255,255,0.25); margin-bottom: 12px; }
.utd-ergo__email .utd-sub { margin-bottom: 12px; }

/* ---------- Lightweight YouTube embed ---------- */
.utd-yt { margin: 28px 0; }
.utd-yt__link { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.utd-yt__thumb { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.utd-yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%); background: var(--utd-red); border-radius: 14px; }
.utd-yt__play::after { content: ""; position: absolute; left: 29px; top: 14px; border-left: 20px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.utd-yt__link:hover .utd-yt__play, .utd-yt__link:focus-visible .utd-yt__play { background: var(--utd-navy); }
.utd-yt__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.utd-yt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact form ---------- */
.utd-contact { max-width: 760px; }
.utd-contact__form p { margin: 0 0 16px; }
.utd-contact__form label { display: block; font-weight: 600; font-size: 14px; color: var(--utd-navy); margin-bottom: 6px; }
.utd-contact__form input[type="text"], .utd-contact__form input[type="email"], .utd-contact__form textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border: 1px solid var(--utd-border); border-radius: 12px; font: inherit; font-size: 16px; color: var(--utd-text); background: #fff; }
.utd-contact__form textarea { min-height: 160px; resize: vertical; }
.utd-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .utd-contact__row { grid-template-columns: 1fr; } }
.utd-contact__hp { position: absolute; left: -9999px; }
.utd-contact__ok { background: #DCFCE7; color: #166534; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.utd-contact__err { background: #FEE2E2; color: #991B1B; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.utd-contact__intro { font-size: 16px; color: #374151; }
.utd-contact__note { font-size: 13px; color: var(--utd-muted); }

/* ---------- Editor only ---------- */
.utd-editor-block { border: 1px dashed #B8C6E3; border-radius: 12px; padding: 12px 14px 14px; margin: 12px 0; background: #FAFBFE; }
.utd-editor-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #0A2A66; margin-bottom: 8px; }
.utd-editor-summary { font-size: 13px; color: #374151; margin-bottom: 8px; }
.utd-editor-summary__row { margin: 2px 0; }

/* Subscriber form (every sign-up on the site) */
.utd-toc--inline { margin: 0 0 28px; }
.utd-toc--inline .utd-toc__list { columns: 2; column-gap: 24px; }
@media (max-width: 600px) { .utd-toc--inline .utd-toc__list { columns: 1; } }
.utd-author__meta { margin: 0 0 6px; font-size: 13px; color: var(--utd-muted); }
.utd-product--no-image { grid-template-columns: 1fr; }
.utd-product--no-image .utd-product__body { grid-column: 1 / -1; }
.utd-stats__note { max-width: 1240px; margin: -20px auto 0; padding: 0 24px 28px; font-size: 13px; color: var(--utd-footer-text); text-align: right; }
.utd-stats__note a { color: var(--utd-footer-text); text-decoration: underline; }
.utd-stats__note a:hover { color: #fff; }
.utd-infographic { margin: 32px 0; }
.utd-infographic__heading { margin: 0 0 10px; font-weight: 700; color: var(--utd-navy); font-size: 18px; }
.utd-infographic__link { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--utd-border); }
.utd-infographic__img { width: 100%; height: auto; display: block; }
.utd-infographic__caption { margin: 8px 0 0; font-size: 13px; color: var(--utd-muted); }
.utd-embedbox--infographic { margin-top: 14px; }
.utd-cam__playback { margin-top: 16px; }
.utd-cam__video--playback { width: 100%; border-radius: 12px; background: #000; display: block; }
.utd-cam__tips { margin-top: 18px; background: #fff; border: 1px solid var(--utd-border); border-radius: 12px; padding: 14px 16px; }
.utd-cam__tips ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--utd-text); }
.utd-cam__tips li { margin: 0 0 6px; }
.utd-cam__tips strong { color: var(--utd-navy); }
.utd-nl--compact .utd-nl__fine, .utd-nl--cta .utd-nl__fine { color: var(--utd-muted); }
.utd-cam__tips .utd-tool__results-label, .utd-cam__playback .utd-tool__results-label { color: var(--utd-navy); }

/* ---------- Shared sign-up form (revision 2) ----------
   Hidden fields and the honeypot sit off screen (never display:none). Inputs 48 px tall, 12 px radius, 12 px gaps.
   Order: fields, consent, button. Fields side by side above a 520 px container width, stacked below. */
.utd-sub { position: relative; width: 100%; max-width: 640px; margin: 0; text-align: left; display: flex; flex-direction: column; gap: 12px; color: var(--utd-text); container-type: inline-size; box-sizing: border-box; }
.utd-sub__hidden { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.utd-sub__card-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--utd-navy); }
.utd-sub__fields { display: flex; gap: 12px; align-items: flex-end; }
.utd-sub__field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.utd-sub__field label { font-size: 13px; font-weight: 600; color: var(--utd-navy); line-height: 1.3; }
.utd-sub__field input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--utd-border); font: inherit; font-size: 16px; color: var(--utd-text); background: #fff; box-sizing: border-box; }
.utd-sub__field input:focus-visible, .utd-sub__consent input:focus-visible { outline: 3px solid var(--utd-blue); outline-offset: 2px; }
.utd-sub__field input[aria-invalid="true"] { border: 2px solid var(--utd-red); }
.utd-sub__button { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 48px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--utd-red); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; line-height: 1.2; box-sizing: border-box; }
.utd-sub__button:hover { background: var(--utd-navy); color: #fff; }
.utd-sub__button:focus-visible { outline: 3px solid var(--utd-blue); outline-offset: 2px; }
.utd-sub__button[disabled] { opacity: 0.6; cursor: wait; }
.utd-sub__fields .utd-sub__button { width: auto; flex: 0 0 auto; }
.utd-sub__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--utd-text); }
.utd-sub__consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--utd-navy); }
.utd-sub__consent label { font-weight: 400; }
.utd-sub__consent a { color: var(--utd-blue-dark); text-decoration: underline; }
.utd-sub__status { margin: 0; font-size: 14px; font-weight: 600; color: var(--utd-text); }
.utd-sub__status.is-error { color: #B91C1C; }
.utd-sub--card { background: #fff; border: 1px solid var(--utd-border); border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(7, 29, 71, 0.12); }
.utd-sub--stack .utd-sub__fields { flex-direction: column; align-items: stretch; }
.utd-sub--stack .utd-sub__fields .utd-sub__button { width: 100%; }
@container (max-width: 519px) {
	.utd-sub__fields { flex-direction: column; align-items: stretch; }
	.utd-sub__fields .utd-sub__button { width: 100%; }
}
@media (max-width: 560px) {
	.utd-sub__fields { flex-direction: column; align-items: stretch; }
	.utd-sub__fields .utd-sub__button { width: 100%; }
}
.utd-sub__thanks { padding: 20px 22px; border-radius: 16px; background: #fff; color: var(--utd-text); border: 2px solid var(--utd-yellow); }
.utd-sub__thanks:focus { outline: none; }
.utd-sub__thanks-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--utd-navy); }
.utd-sub__thanks-text { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.utd-sub__download { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--utd-navy); color: #fff; font-weight: 700; text-decoration: none; }
.utd-sub__download:hover { background: var(--utd-red); color: #fff; }
.utd-sub__fine { margin: 12px 0 0; font-size: 13px; color: var(--utd-muted); }

/* Compact cream box: heading and one line left, name, email and navy button in one row right, consent under */
.utd-compact { background: var(--utd-cream); border: 1px solid #F0D98C; border-radius: 16px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin: 0; box-sizing: border-box; container-type: inline-size; }
/* Inside an article (under 900 px wide) the copy sits above the form so the three fields still fit on one row. */
@container (max-width: 899px) { .utd-compact__copy { flex-basis: 100%; } }
.utd-compact__copy { flex: 1 1 260px; min-width: 0; }
.utd-compact__heading { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--utd-navy); line-height: 1.25; }
.utd-compact__text { margin: 0; font-size: 15px; line-height: 1.5; color: #374151; }
.utd-compact .utd-sub { flex: 1 1 440px; max-width: none; }
.utd-compact .utd-sub__button { background: var(--utd-navy); border-radius: 999px; }
.utd-compact .utd-sub__button:hover { background: var(--utd-red); }
.utd-magnet { margin: 32px 0; }
.utd-nl { margin: 0; }
.utd-nl__inner { max-width: 1080px; margin: 0 auto; }
.utd-nl__fine { margin: 10px 0 0; font-size: 13px; color: var(--utd-muted); }
.utd-nl--compact { margin: 32px 0; }
.utd-nl--cta { background: #fff; padding: 72px 24px; }
.utd-nl--band { background: var(--utd-light); padding: 72px 24px; }
.utd-nl--band .utd-nl__inner { max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.utd-nl--band .utd-nl__copy { max-width: 720px; }
.utd-nl--band .utd-nl__heading { margin: 0 0 8px; font-size: 32px; font-weight: 800; color: var(--utd-navy); line-height: 1.15; }
.utd-nl--band .utd-nl__text { margin: 0; font-size: 17px; line-height: 1.6; color: #374151; }
.utd-nl--band .utd-sub--card { margin: 0 auto; }
.utd-nl--page .utd-nl__inner { max-width: none; }
.utd-nl--popup .utd-nl__inner { max-width: none; }
@media (max-width: 819px) { .utd-nl--cta, .utd-nl--band { padding: 48px 24px; } }
@media (max-width: 480px) { .utd-compact { padding: 18px; } }

/* ---------- Pop-up (revision 2) ---------- */
.utd-pop__overlay { position: fixed; inset: 0; background: rgba(7, 29, 71, 0.55); z-index: 899; opacity: 0; transition: opacity 0.2s ease; }
.utd-pop__overlay.is-open { opacity: 1; }
.utd-pop { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 380px; max-width: calc(100vw - 32px); background: #fff; color: var(--utd-text); border-radius: 16px; border-top: 8px solid var(--utd-yellow); padding: 20px 22px 22px; box-sizing: border-box; box-shadow: 0 18px 48px rgba(7, 29, 71, 0.3); transform: translateY(16px); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.utd-pop.is-open { transform: none; opacity: 1; }
.utd-pop__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--utd-navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.utd-pop__close:hover { background: var(--utd-light); }
.utd-pop__title { margin: 0 36px 6px 0; font-size: 20px; font-weight: 800; color: var(--utd-navy); line-height: 1.25; }
.utd-pop__text { margin: 0 0 14px; font-size: 14px; color: #4B5563; line-height: 1.5; }
.utd-pop .utd-sub { max-width: none; }
@media (prefers-reduced-motion: reduce) { .utd-pop, .utd-pop__overlay { transition: none; } }
@media (max-width: 600px) { .utd-pop { right: 0; bottom: 0; left: 0; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; } }

/* ---------- HTML sitemap ---------- */
.utd-sitemap__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.utd-sitemap__group h2 { margin: 0 0 12px; font-size: 20px; }
.utd-sitemap__group h3 { margin: 24px 0 8px; font-size: 16px; }
.utd-sitemap__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.utd-sitemap__list a { color: var(--utd-blue-dark); }
.utd-sitemap__list--posts { columns: 2; column-gap: 32px; display: block; }
.utd-sitemap__list--posts li { break-inside: avoid; margin: 0 0 6px; }
.utd-sitemap__group--posts { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--utd-border); }
.utd-sitemap__xml { margin: 14px 0 0; font-size: 14px; color: var(--utd-muted); }
@media (max-width: 600px) { .utd-sitemap__list--posts { columns: 1; } }

/* The DPI, polling and double-click notes sit on the white inputs panel, so they use the dark muted colour there (AA contrast). */
.utd-tool__inputs .utd-tool__results-small { color: var(--utd-muted); }

/* Links inside the navy results panel (for example "See the fixes" under the webcam test) use yellow for AA contrast. */
.utd-tool__results a:not(.utd-tool__cta) { color: var(--utd-yellow); }
.utd-tool__results a:not(.utd-tool__cta):hover { color: #fff; }
