/*
 * UPMED policies: /policies/ with one tab per policy.
 * The policy text keeps its .upm-pol markup; these styles used to sit inside each page.
 */

/* ---------- Tabs ---------- */

.upmed-pol-tabs { margin: 0 0 1.75rem; }
.upmed-pol-tabs ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.upmed-pol-tabs li { margin: 0; }
.upmed-pol-tabs a {
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 1px solid #dbe4ea;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--brand-deep, #005f87) !important;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none !important;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.upmed-pol-tabs a:hover { border-color: var(--wp--preset--color--brand, #00aeef); }
.upmed-pol-tabs a[aria-selected="true"] {
	background: var(--wp--preset--color--brand-dark, #0077a8);
	border-color: var(--wp--preset--color--brand-dark, #0077a8);
	color: #fff !important;
}
.upmed-pol-tabs a:focus-visible { outline: 2px solid var(--wp--preset--color--brand, #00aeef); outline-offset: 2px; }
.upmed-pol-panel[hidden] { display: none !important; }
.upmed-pol-panel:focus { outline: none; }

/* Phones: one scrollable row instead of several lines of pills. */
@media (max-width: 640px) {
	.upmed-pol-tabs { margin-right: -16px; }
	.upmed-pol-tabs ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 0.35rem 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.upmed-pol-tabs ul::-webkit-scrollbar { display: none; }
	.upmed-pol-tabs a { font-size: 0.85rem; padding: 0.4rem 0.85rem; }
}

/* ---------- Policy text ---------- */

.upm-pol {
	--b: var(--wp--preset--color--brand, #00aeef);
	--bd: var(--wp--preset--color--brand-dark, #0077a8);
	--bp: var(--wp--preset--color--brand-deep, #005f87);
	--ink: var(--wp--preset--color--ink, #2b2727);
	--mu: var(--wp--preset--color--muted, #6b6363);
	--ln: #dbe4ea;
	margin: 0 0 2.5rem;
	color: var(--ink);
	line-height: 1.7;
}
.upm-pol * { box-sizing: border-box; }
.upm-pol .upm-pol-nav { display: none; }
.upm-pol .upm-pol-lead { margin: 0 0 0.5rem; padding: 1.25rem 1.4rem; border-radius: 14px; background: #eef7fc; border: 1px solid #cfe6f3; font-size: 1.05rem; }
.upm-pol .upm-pol-meta { margin: 0 0 1.75rem; font-size: 0.85rem; color: var(--mu); }
.upm-pol .upm-pol-key { margin: 0 0 1.75rem; padding: 1.1rem 1.4rem; border-left: 4px solid var(--bd); border-radius: 0 12px 12px 0; background: #f6f9fb; font-weight: 600; }
.upm-pol section { padding: 1.25rem 0; border-top: 1px solid var(--ln); }
.upm-pol section:first-of-type { border-top: 0; }
.upm-pol h2 { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.35; color: var(--ink); }
.upm-pol.is-numbered { counter-reset: upmsec; }
.upm-pol.is-numbered section h2 { display: flex; align-items: baseline; gap: 0.65rem; }
.upm-pol.is-numbered section h2::before {
	counter-increment: upmsec;
	content: counter(upmsec);
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: #e3f3fb;
	color: var(--bp);
	font-size: 0.9rem;
	font-weight: 700;
	transform: translateY(-0.1rem);
}
.upm-pol p { margin: 0 0 0.75rem; }
.upm-pol ul, .upm-pol ol { margin: 0 0 0.75rem; padding-left: 1.3rem; }
.upm-pol li { margin: 0.3rem 0; }
.upm-pol li::marker { color: var(--bd); }
.upm-pol a { color: var(--bd); font-weight: 500; }
.upm-pol .upm-pol-form { margin: 0.5rem 0 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--ln); border-radius: 14px; background: #fff; }
.upm-pol .upmed-form-actions { margin: 1.5rem 0 0; }
.upm-pol .upmed-form .upmed-rc { margin: 1.25rem 0 0; }
.upm-pol .upm-pol-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--ln); border-radius: 14px; background: #fff; }
.upm-pol .upm-pol-contact h2 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.upm-pol .upm-pol-contact h2::before { content: none !important; }
.upm-pol .upm-pol-contact p { margin: 0; }
.upm-pol .upm-pol-btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: 999px; background: var(--bd); color: #fff !important; font-weight: 600; text-decoration: none !important; transition: background 0.15s; }
.upm-pol .upm-pol-btn:hover { background: var(--bp); }

@media (max-width: 600px) {
	.upm-pol .upm-pol-lead { padding: 1rem 1.1rem; }
	.upm-pol h2 { font-size: 1.1rem; }
}
