/* Motorcycle tire pressure lookup — [mxrpm_tire_pressure] */
.mxrpm-tp {
	--tp-primary: var(--wp--preset--color--primary, #3fa9d6);
	--tp-tint: var(--wp--preset--color--primary-tint, #eaf6fc);
	--tp-slate: var(--wp--preset--color--secondary, #3a3e42);
	--tp-text: var(--wp--preset--color--text, #5c6066);
	--tp-off: var(--wp--preset--color--off-background, #f6f8f9);
	--tp-line: #dde3e7;
	color: var(--tp-text);
	font-family: var(--wp--preset--font-family--body, Roboto, sans-serif);
}
.mxrpm-tp *, .mxrpm-tp *::before, .mxrpm-tp *::after { box-sizing: border-box; }
.mxrpm-tp .tp-inner { max-width: 860px; margin: 0 auto; }

/* Form */
.mxrpm-tp .tp-form {
	background: var(--tp-off);
	border: 1px solid var(--tp-line);
	border-radius: 10px;
	padding: 28px;
}
.mxrpm-tp .tp-label { display: block; font-weight: 600; color: var(--tp-slate); margin: 0 0 6px; }
.mxrpm-tp [hidden] { display: none !important; }
.mxrpm-tp input[type="text"],
.mxrpm-tp select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--tp-slate);
	background: #fff;
	border: 1px solid #c9d2d8;
	border-radius: 8px;
}
.mxrpm-tp #tp-q { font-size: 1.1rem; min-height: 54px; padding-left: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c6066' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; }
.mxrpm-tp input[type="text"]:focus,
.mxrpm-tp select:focus { outline: 2px solid var(--tp-primary); outline-offset: 1px; border-color: var(--tp-primary); }
.mxrpm-tp .tp-combo { position: relative; }
.mxrpm-tp .tp-list {
	position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
	margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid #c9d2d8; border-radius: 8px;
	box-shadow: 0 10px 24px rgba(58, 62, 66, 0.14);
	max-height: 340px; overflow-y: auto;
}
.mxrpm-tp .tp-list li { padding: 10px 12px; border-radius: 6px; cursor: pointer; color: var(--tp-slate); line-height: 1.3; }
.mxrpm-tp .tp-list li[aria-selected="true"],
.mxrpm-tp .tp-list li[data-i]:hover { background: var(--tp-tint); }
.mxrpm-tp .tp-opt-make { font-weight: 700; }
.mxrpm-tp .tp-opt-years { color: var(--tp-text); font-size: 0.85rem; margin-left: 4px; }
.mxrpm-tp .tp-noresult { cursor: default; color: var(--tp-text); font-size: 0.95rem; }
.mxrpm-tp .tp-or { margin: 14px 0 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tp-text); }
.mxrpm-tp .tp-selects { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 14px; align-items: end; }
.mxrpm-tp .tp-submit {
	appearance: none; border: 0; border-radius: 8px; min-height: 48px; padding: 0 22px;
	background: var(--tp-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.mxrpm-tp .tp-submit:hover { background: var(--tp-slate); }
.mxrpm-tp .tp-submit.tp-submit-js { background: #fff; color: var(--tp-slate); border: 1px solid #c9d2d8; }

/* Result */
.mxrpm-tp .tp-result { margin-top: 28px; scroll-margin-top: 24px; }
.mxrpm-tp .tp-card { background: var(--tp-tint); border-radius: 10px; padding: 28px; }
.mxrpm-tp .tp-eyebrow { margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-primary); }
.mxrpm-tp .tp-name {
	margin: 0 0 18px; font-family: var(--wp--preset--font-family--heading, "Roboto Slab", serif);
	font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; color: var(--tp-slate);
}
.mxrpm-tp .tp-name:focus { outline: none; }
.mxrpm-tp .tp-years { font-size: 0.6em; font-weight: 400; color: var(--tp-text); white-space: nowrap; }
.mxrpm-tp .tp-row-label { margin: 0 0 8px; font-weight: 600; color: var(--tp-slate); }
.mxrpm-tp .tp-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.mxrpm-tp .tp-gauge { background: #fff; border-radius: 10px; padding: 18px 20px; text-align: center; border-top: 4px solid var(--tp-primary); }
.mxrpm-tp .tp-gauges-loaded .tp-gauge { border-top-color: var(--tp-slate); }
.mxrpm-tp .tp-gauge p { margin: 0; }
.mxrpm-tp .tp-gauge-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.mxrpm-tp .tp-gauge-psi { color: var(--tp-slate); line-height: 1.1; margin: 4px 0 !important; }
.mxrpm-tp .tp-num { font-family: var(--wp--preset--font-family--heading, "Roboto Slab", serif); font-size: clamp(2.6rem, 8vw, 3.4rem); font-weight: 700; }
.mxrpm-tp .tp-unit { font-size: 1.1rem; font-weight: 600; }
.mxrpm-tp .tp-gauge-alt { font-size: 0.9rem; }
.mxrpm-tp .tp-note { margin: 0 0 12px; padding: 12px 16px; background: #fff; border-radius: 8px; line-height: 1.5; }
.mxrpm-tp .tp-source { margin: 0 0 8px; font-size: 0.9rem; }
.mxrpm-tp .tp-source strong { color: var(--tp-slate); }
.mxrpm-tp .tp-check { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.mxrpm-tp .tp-empty { padding: 14px 18px; border-radius: 8px; background: #fdf0d3; color: #7a4b00; font-weight: 600; }
.mxrpm-tp .tp-empty p { margin: 0; }

/* Disclaimer */
.mxrpm-tp .tp-disclaimer {
	margin-top: 28px; padding: 20px 24px;
	border: 1px solid #f0d49b; border-left: 5px solid #e2a634; border-radius: 10px; background: #fffaf0;
}
.mxrpm-tp .tp-disclaimer-title { margin: 0 0 10px; font-weight: 700; color: var(--tp-slate); }
.mxrpm-tp .tp-disclaimer ul { margin: 0; padding-left: 20px; }
.mxrpm-tp .tp-disclaimer li { margin-bottom: 8px; line-height: 1.5; }
.mxrpm-tp .tp-disclaimer strong { color: var(--tp-slate); }
.mxrpm-tp .tp-disclaimer-foot { margin: 10px 0 0; font-size: 0.88rem; }

/* Chart */
.mxrpm-tp .tp-chart { margin-top: 28px; border: 1px solid var(--tp-line); border-radius: 10px; background: #fff; }
.mxrpm-tp .tp-chart > summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--tp-slate); }
.mxrpm-tp .tp-chart[open] > summary { border-bottom: 1px solid var(--tp-line); }
.mxrpm-tp .tp-table-wrap { overflow-x: auto; }
.mxrpm-tp table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.mxrpm-tp th, .mxrpm-tp td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--tp-line); }
.mxrpm-tp thead th { background: var(--tp-off); color: var(--tp-slate); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mxrpm-tp tbody th { font-weight: 600; }
.mxrpm-tp tbody th a { color: var(--tp-slate); }
.mxrpm-tp .tp-help { font-size: 0.85rem; padding: 0 20px 16px; margin: 12px 0 0; }

@media (max-width: 781px) {
	.mxrpm-tp .tp-form, .mxrpm-tp .tp-card { padding: 20px 16px; }
	.mxrpm-tp .tp-selects { grid-template-columns: 1fr; }
	.mxrpm-tp .tp-gauge { padding: 14px 10px; }
}
