/**
 * UpResults main stylesheet.
 * Mobile-first, accessible, Core Web Vitals friendly.
 *
 * Color/width custom properties (--upr-primary, --upr-accent, --upr-alert,
 * --upr-max) are injected inline from theme options; sensible fallbacks below.
 */

/* -------------------------------------------------------------------------
 * Design tokens
 * ---------------------------------------------------------------------- */
:root {
	--upr-primary: #1d4ed8;
	--upr-primary-dark: #1740ad;
	--upr-accent: #0f9d58;
	--upr-alert: #d93025;
	--upr-max: 1200px;

	--upr-bg: #f4f6fb;
	--upr-surface: #ffffff;
	--upr-ink: #1a2233;
	--upr-muted: #5b6576;
	--upr-line: #e4e8f0;
	--upr-soft: #eef2fb;

	--upr-radius: 12px;
	--upr-radius-sm: 8px;
	--upr-gap: 16px;
	--upr-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
	--upr-shadow-sm: 0 1px 2px rgba(16, 24, 40, .08);

	--upr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--upr-header-h: 60px;
}

/* -------------------------------------------------------------------------
 * Reset & base
 * ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--upr-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--upr-ink);
	background: var(--upr-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a { color: var(--upr-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--upr-ink); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

table { border-collapse: collapse; width: 100%; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--upr-primary); outline-offset: 2px; }

/* -------------------------------------------------------------------------
 * Accessibility helpers
 * ---------------------------------------------------------------------- */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.upr-skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100000;
	background: var(--upr-primary); color: #fff; padding: 10px 16px; border-radius: var(--upr-radius-sm);
}
.upr-skip-link:focus { left: 8px; }

/* -------------------------------------------------------------------------
 * Layout
 * ---------------------------------------------------------------------- */
.upr-container { width: 100%; max-width: var(--upr-max); margin: 0 auto; padding: 0 16px; }

.upr-main { display: block; padding: 20px 0 32px; }

.upr-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 992px) {
	.upr-layout-right-sidebar .upr-wrap { grid-template-columns: minmax(0, 1fr) 320px; }
	.upr-layout-left-sidebar .upr-wrap { grid-template-columns: 320px minmax(0, 1fr); }
	.upr-layout-left-sidebar .upr-sidebar { order: -1; }
	.upr-no-sidebar .upr-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.upr-header { background: var(--upr-surface); box-shadow: var(--upr-shadow-sm); position: sticky; top: 0; z-index: 900; }
.upr-header-inner {
	display: flex; align-items: center; gap: 12px;
	min-height: var(--upr-header-h);
}
.upr-branding { display: flex; align-items: center; margin-right: auto; }
.upr-branding img { max-height: 44px; width: auto; }
.upr-site-title { font-size: 1.2rem; font-weight: 800; margin: 0; }
.upr-site-title a { color: var(--upr-ink); }
.upr-site-title a:hover { text-decoration: none; }
.upr-site-title .upr-title-accent { color: var(--upr-primary); }
.upr-site-desc { font-size: .72rem; color: var(--upr-muted); margin: 0; }

.upr-primary-nav { display: none; }
@media (min-width: 992px) { .upr-primary-nav { display: block; } }

.upr-menu, .upr-menu ul { list-style: none; margin: 0; padding: 0; }
.upr-menu { display: flex; align-items: center; gap: 2px; }
.upr-menu li { position: relative; }
.upr-menu a { display: block; padding: 10px 12px; color: var(--upr-ink); font-weight: 600; font-size: .95rem; border-radius: var(--upr-radius-sm); }
.upr-menu a:hover, .upr-menu .current-menu-item > a { color: var(--upr-primary); background: var(--upr-soft); text-decoration: none; }
.upr-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--upr-surface);
	box-shadow: var(--upr-shadow); border-radius: var(--upr-radius-sm); padding: 6px; display: none; z-index: 20;
}
.upr-menu li:hover > .sub-menu, .upr-menu li:focus-within > .sub-menu { display: block; }
.upr-menu .sub-menu a { padding: 8px 10px; }

.upr-header-actions { display: flex; align-items: center; gap: 4px; }
.upr-search-toggle, .upr-nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--upr-radius-sm); color: var(--upr-ink);
	font-size: 1.15rem;
}
.upr-search-toggle:hover, .upr-nav-toggle:hover { background: var(--upr-soft); }
@media (min-width: 992px) { .upr-nav-toggle { display: none; } }

.upr-nav-toggle { flex-direction: column; gap: 4px; }
.upr-nav-toggle-bar { width: 22px; height: 2px; background: var(--upr-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.upr-nav-toggle[aria-expanded="true"] .upr-nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.upr-nav-toggle[aria-expanded="true"] .upr-nav-toggle-bar:nth-child(2) { opacity: 0; }
.upr-nav-toggle[aria-expanded="true"] .upr-nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Search panel */
.upr-search-panel { border-top: 1px solid var(--upr-line); background: var(--upr-surface); padding: 12px 0; }
.upr-search-panel[hidden] { display: none; }

/* Search form */
.upr-search-form, .search-form { display: flex; gap: 8px; }
.upr-search-form input[type="search"], .search-form input[type="search"] {
	flex: 1; padding: 12px 14px; border: 1px solid var(--upr-line); border-radius: var(--upr-radius-sm); font-size: 1rem; background: #fff; color: var(--upr-ink);
}
.upr-search-form button, .search-form button {
	padding: 12px 18px; border: 0; border-radius: var(--upr-radius-sm); background: var(--upr-primary); color: #fff; font-weight: 700;
}
.upr-search-form button:hover, .search-form button:hover { background: var(--upr-primary-dark); }

/* -------------------------------------------------------------------------
 * Mobile navigation drawer
 * ---------------------------------------------------------------------- */
.upr-mobile-nav {
	position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 340px; background: var(--upr-surface);
	z-index: 1000; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--upr-shadow);
}
.upr-mobile-nav.is-open { transform: translateX(0); }
.upr-mobile-nav[hidden] { display: block; } /* JS toggles .is-open; keep animatable */
.upr-mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--upr-line); font-weight: 800; }
.upr-nav-close { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; border-radius: var(--upr-radius-sm); }
.upr-nav-close:hover { background: var(--upr-soft); }
.upr-mobile-menu, .upr-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.upr-mobile-menu a { display: block; padding: 13px 16px; border-bottom: 1px solid var(--upr-line); color: var(--upr-ink); font-weight: 600; }
.upr-mobile-menu .sub-menu a { padding-left: 30px; font-weight: 500; color: var(--upr-muted); }
.upr-nav-overlay { position: fixed; inset: 0; background: rgba(16, 24, 40, .5); z-index: 999; opacity: 0; transition: opacity .25s ease; }
.upr-nav-overlay[hidden] { display: none; }
.upr-nav-overlay.is-open { opacity: 1; }
body.upr-nav-open { overflow: hidden; }

/* -------------------------------------------------------------------------
 * Reading progress + back to top
 * ---------------------------------------------------------------------- */
.upr-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 950; background: transparent; }
.upr-progress span { display: block; height: 100%; width: 0; background: var(--upr-accent); transition: width .1s linear; }

.upr-to-top {
	position: fixed; right: 16px; bottom: 76px; z-index: 800; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: var(--upr-primary); color: #fff; font-size: 1.2rem; box-shadow: var(--upr-shadow);
}
.upr-to-top[hidden] { display: none; }
@media (min-width: 992px) { .upr-to-top { bottom: 24px; } }

/* -------------------------------------------------------------------------
 * Buttons & chips
 * ---------------------------------------------------------------------- */
.upr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: var(--upr-radius-sm); background: var(--upr-primary); color: #fff !important;
	font-weight: 700; border: 0; text-align: center; line-height: 1.2;
}
.upr-btn:hover { background: var(--upr-primary-dark); text-decoration: none; }
.upr-btn-accent { background: var(--upr-accent); }
.upr-btn-accent:hover { background: #0b7f46; }
.upr-btn-block { display: flex; width: 100%; }

.upr-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.upr-chip {
	display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--upr-soft); color: var(--upr-primary);
	font-weight: 600; font-size: .9rem; border: 1px solid var(--upr-line);
}
.upr-chip:hover { background: var(--upr-primary); color: #fff; text-decoration: none; }

.upr-badge {
	display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700;
	background: var(--upr-soft); color: var(--upr-primary); text-transform: uppercase; letter-spacing: .02em;
}
.upr-badge-live { background: rgba(217, 48, 37, .12); color: var(--upr-alert); }
.upr-badge-new { background: rgba(15, 157, 88, .14); color: #0b7f46; }

/* -------------------------------------------------------------------------
 * Sections
 * ---------------------------------------------------------------------- */
.upr-home-section { padding: 22px 0; }
.upr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.upr-section-title { font-size: 1.3rem; margin: 0; position: relative; padding-left: 12px; }
.upr-section-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 4px; background: var(--upr-primary); }
.upr-section-more { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* Grids */
.upr-grid { display: grid; gap: var(--upr-gap); grid-template-columns: 1fr; }
@media (min-width: 560px) { .upr-grid-2, .upr-grid-3, .upr-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .upr-grid-3 { grid-template-columns: repeat(3, 1fr); } .upr-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------------------
 * Post cards
 * ---------------------------------------------------------------------- */
.upr-card {
	background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius);
	overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--upr-shadow-sm);
}
.upr-card:hover { box-shadow: var(--upr-shadow); }
.upr-card-thumb { display: block; aspect-ratio: 16 / 9; background: var(--upr-soft); overflow: hidden; }
.upr-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upr-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.upr-card-cat { font-size: .72rem; font-weight: 700; color: var(--upr-primary); text-transform: uppercase; letter-spacing: .02em; }
.upr-card-title { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.upr-card-title a { color: var(--upr-ink); }
.upr-card-title a:hover { color: var(--upr-primary); text-decoration: none; }
.upr-card-excerpt { font-size: .9rem; color: var(--upr-muted); margin: 0; }
.upr-card-meta { margin-top: auto; font-size: .78rem; color: var(--upr-muted); display: flex; gap: 10px; align-items: center; }

.upr-featured-grid { display: grid; gap: var(--upr-gap); grid-template-columns: 1fr; }
@media (min-width: 860px) {
	.upr-featured-grid { grid-template-columns: 2fr 1fr 1fr; }
	.upr-featured-lead { grid-row: span 2; }
	.upr-featured-lead .upr-card-title { font-size: 1.4rem; }
}

/* Link / list styles */
.upr-link-list, .upr-recent-list { list-style: none; margin: 0; padding: 0; }
.upr-link-list li, .upr-recent-list li { border-bottom: 1px dashed var(--upr-line); }
.upr-link-list a { display: flex; gap: 8px; align-items: flex-start; padding: 11px 0; color: var(--upr-ink); font-weight: 600; }
.upr-link-list a::before { content: "\2192"; color: var(--upr-primary); font-weight: 700; }
.upr-link-list a:hover { color: var(--upr-primary); text-decoration: none; }
.upr-recent-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--upr-ink); font-weight: 600; }
.upr-recent-list time { color: var(--upr-muted); font-weight: 500; font-size: .8rem; white-space: nowrap; }

.upr-rank-list { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.upr-rank-list li { counter-increment: rank; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--upr-line); }
.upr-rank-list a { display: flex; gap: 12px; align-items: center; color: var(--upr-ink); font-weight: 600; }
.upr-rank-list a::before { content: counter(rank); flex: 0 0 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--upr-soft); color: var(--upr-primary); border-radius: 50%; font-weight: 800; }
.upr-rank-list img { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; }

/* -------------------------------------------------------------------------
 * Notification / alert bar
 * ---------------------------------------------------------------------- */
.upr-notification-bar { background: linear-gradient(90deg, var(--upr-primary), var(--upr-primary-dark)); color: #fff; }
.upr-notification-bar .upr-container { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.upr-notification-tag { background: rgba(255, 255, 255, .2); padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.upr-notification-bar a, .upr-notification-bar { color: #fff; }
.upr-notification-bar a { font-weight: 700; text-decoration: underline; }

/* Breaking ticker */
.upr-breaking { background: var(--upr-surface); border-bottom: 1px solid var(--upr-line); }
.upr-breaking .upr-container { display: flex; align-items: center; gap: 12px; padding: 8px 16px; overflow: hidden; }
.upr-breaking-label { background: var(--upr-alert); color: #fff; padding: 3px 10px; border-radius: var(--upr-radius-sm); font-size: .72rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.upr-breaking-track { display: flex; gap: 28px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.upr-breaking-track::-webkit-scrollbar { display: none; }
.upr-breaking-item { color: var(--upr-ink); font-weight: 600; font-size: .9rem; }

/* -------------------------------------------------------------------------
 * Hero + quick access cards
 * ---------------------------------------------------------------------- */
.upr-hero { background: linear-gradient(160deg, var(--upr-primary), var(--upr-primary-dark)); color: #fff; padding: 30px 0 26px; }
.upr-hero-title { color: #fff; font-size: 1.6rem; margin: 0 0 10px; }
@media (min-width: 768px) { .upr-hero-title { font-size: 2.1rem; } }
.upr-hero-subtitle { color: rgba(255, 255, 255, .92); font-size: 1rem; margin: 0 0 18px; max-width: 760px; }
.upr-hero-search { max-width: 640px; margin-bottom: 20px; }
.upr-hero-search input[type="search"] { border: 0; }

.upr-quick-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .upr-quick-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .upr-quick-cards { grid-template-columns: repeat(6, 1fr); } }
.upr-quick-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--upr-radius);
	padding: 16px 10px; color: #fff !important; font-weight: 700; font-size: .9rem; backdrop-filter: blur(2px);
}
.upr-quick-card:hover { background: #fff; color: var(--upr-primary) !important; text-decoration: none; }
.upr-quick-card .upr-quick-icon { font-size: 1.5rem; line-height: 1; }

/* -------------------------------------------------------------------------
 * How to check + steps
 * ---------------------------------------------------------------------- */
.upr-howto { background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 18px; }
.upr-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.upr-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; background: var(--upr-soft); border-radius: var(--upr-radius-sm); font-weight: 500; }
.upr-steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; background: var(--upr-primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }

/* Important / official links grid */
.upr-important-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .upr-important-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .upr-important-grid { grid-template-columns: repeat(3, 1fr); } }
.upr-important-link {
	display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--upr-surface);
	border: 1px solid var(--upr-line); border-left: 4px solid var(--upr-primary); border-radius: var(--upr-radius-sm);
	color: var(--upr-ink); font-weight: 700; box-shadow: var(--upr-shadow-sm);
}
.upr-important-link:hover { border-left-color: var(--upr-accent); color: var(--upr-primary); text-decoration: none; }
.upr-important-link::after { content: "\2197"; margin-left: auto; color: var(--upr-muted); }

/* -------------------------------------------------------------------------
 * FAQ
 * ---------------------------------------------------------------------- */
.upr-faq-item { background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius-sm); margin-bottom: 10px; overflow: hidden; }
.upr-faq-q { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.upr-faq-q::-webkit-details-marker { display: none; }
.upr-faq-q::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--upr-primary); }
.upr-faq-item[open] .upr-faq-q::after { content: "\2013"; }
.upr-faq-a { padding: 0 16px 14px; color: var(--upr-muted); }

/* -------------------------------------------------------------------------
 * Section wrappers on surface
 * ---------------------------------------------------------------------- */
.upr-cat-block { margin-bottom: 22px; }
.upr-cat-block:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
 * Single post / pages
 * ---------------------------------------------------------------------- */
.upr-article { background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 20px; box-shadow: var(--upr-shadow-sm); }
@media (min-width: 768px) { .upr-article { padding: 28px 32px; } }
.upr-entry-header { margin-bottom: 16px; }
.upr-entry-title { font-size: 1.6rem; margin: 6px 0 10px; }
@media (min-width: 768px) { .upr-entry-title { font-size: 2rem; } }
.upr-entry-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--upr-muted); font-size: .85rem; align-items: center; }
.upr-entry-meta a { color: var(--upr-muted); }
.upr-entry-meta .upr-updated { color: var(--upr-accent); font-weight: 700; }
.upr-featured-media { margin: 16px 0; border-radius: var(--upr-radius); overflow: hidden; }

.upr-entry-content { font-size: 1.02rem; }
.upr-entry-content > * { margin-bottom: 1rem; }
.upr-entry-content h2 { font-size: 1.5rem; margin-top: 1.6em; scroll-margin-top: 80px; }
.upr-entry-content h3 { font-size: 1.2rem; margin-top: 1.3em; scroll-margin-top: 80px; }
.upr-entry-content img { border-radius: var(--upr-radius-sm); }
.upr-entry-content a { text-decoration: underline; }
.upr-entry-content ul, .upr-entry-content ol { padding-left: 1.4rem; }
.upr-entry-content li { margin-bottom: .4rem; }
.upr-entry-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--upr-primary); background: var(--upr-soft); border-radius: var(--upr-radius-sm); color: var(--upr-ink); }
.upr-entry-content table { margin: 1.2em 0; font-size: .95rem; }
.upr-entry-content th, .upr-entry-content td { border: 1px solid var(--upr-line); padding: 10px 12px; text-align: left; }
.upr-entry-content thead th { background: var(--upr-soft); }
.upr-entry-content figure { margin: 1.2em 0; }
.upr-entry-content figcaption { font-size: .82rem; color: var(--upr-muted); text-align: center; margin-top: 6px; }

/* -------------------------------------------------------------------------
 * Result summary box (result-detail template)
 * ---------------------------------------------------------------------- */
.upr-result-box { border: 1px solid var(--upr-line); border-radius: var(--upr-radius); overflow: hidden; margin: 0 0 20px; box-shadow: var(--upr-shadow-sm); }
.upr-result-box-head { background: var(--upr-primary); color: #fff; padding: 12px 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.upr-result-status { margin-left: auto; background: rgba(255, 255, 255, .2); padding: 3px 12px; border-radius: 999px; font-size: .78rem; }
.upr-result-status.is-declared { background: var(--upr-accent); }
.upr-result-table { width: 100%; }
.upr-result-table th, .upr-result-table td { padding: 11px 16px; border-bottom: 1px solid var(--upr-line); text-align: left; font-size: .95rem; vertical-align: top; }
.upr-result-table th { width: 42%; background: var(--upr-soft); font-weight: 700; color: var(--upr-ink); }
.upr-result-table tr:last-child th, .upr-result-table tr:last-child td { border-bottom: 0; }
.upr-result-cta { padding: 16px; display: grid; gap: 10px; }
@media (min-width: 560px) { .upr-result-cta { grid-auto-flow: column; grid-auto-columns: 1fr; } }

.upr-result-disclaimer { margin: 16px 0; padding: 12px 16px; background: rgba(217, 48, 37, .06); border: 1px solid rgba(217, 48, 37, .25); border-radius: var(--upr-radius-sm); color: #8a2018; font-size: .88rem; }

.upr-quicklinks-box { border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 16px; margin: 20px 0; background: var(--upr-surface); }
.upr-quicklinks-box h3 { margin-top: 0; }

/* -------------------------------------------------------------------------
 * Table of contents
 * ---------------------------------------------------------------------- */
.upr-toc { background: var(--upr-soft); border: 1px solid var(--upr-line); border-radius: var(--upr-radius-sm); padding: 14px 16px; margin: 0 0 20px; }
.upr-toc-title { font-weight: 800; margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; }
.upr-toc-toggle { border: 0; background: transparent; color: var(--upr-primary); font-weight: 700; }
.upr-toc ol { margin: 0; padding-left: 1.3rem; }
.upr-toc li { margin-bottom: 4px; }
.upr-toc a { color: var(--upr-ink); }
.upr-toc.is-collapsed ol { display: none; }

/* -------------------------------------------------------------------------
 * Breadcrumbs
 * ---------------------------------------------------------------------- */
.upr-breadcrumbs { font-size: .82rem; color: var(--upr-muted); padding: 12px 0 0; }
.upr-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.upr-breadcrumbs li { display: flex; gap: 6px; align-items: center; }
.upr-breadcrumbs li:not(:last-child)::after { content: "\203A"; color: var(--upr-line); }
.upr-breadcrumbs a { color: var(--upr-muted); }
.upr-breadcrumbs a:hover { color: var(--upr-primary); }

/* -------------------------------------------------------------------------
 * Social share
 * ---------------------------------------------------------------------- */
.upr-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0; }
.upr-share-label { font-weight: 800; margin-right: 4px; }
.upr-share a, .upr-share button {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--upr-line);
	background: var(--upr-surface); color: var(--upr-ink); font-weight: 600; font-size: .85rem;
}
.upr-share a:hover, .upr-share button:hover { background: var(--upr-primary); color: #fff; border-color: var(--upr-primary); text-decoration: none; }

/* -------------------------------------------------------------------------
 * Related posts / author box
 * ---------------------------------------------------------------------- */
.upr-related { margin-top: 28px; }
.upr-author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 16px; margin-top: 24px; }
.upr-author-box img { border-radius: 50%; flex: 0 0 auto; }
.upr-author-name { font-weight: 800; margin: 0 0 4px; }
.upr-author-bio { color: var(--upr-muted); font-size: .9rem; margin: 0; }

/* -------------------------------------------------------------------------
 * Sidebar & widgets
 * ---------------------------------------------------------------------- */
.upr-sidebar .widget, .upr-footer-col .widget { margin-bottom: 22px; }
.upr-sidebar .widget { background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 16px; box-shadow: var(--upr-shadow-sm); }
.widget-title, .upr-widget-title { font-size: 1.05rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--upr-soft); }
.upr-sidebar ul, .upr-footer-col ul { list-style: none; margin: 0; padding: 0; }
.upr-sidebar li, .upr-footer-col li { padding: 7px 0; border-bottom: 1px dashed var(--upr-line); }
.upr-sidebar.is-sticky { position: sticky; top: 76px; }

/* -------------------------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------------------- */
.upr-pagination { margin: 26px 0 0; }
.upr-pagination .nav-links, .upr-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.upr-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--upr-line); border-radius: var(--upr-radius-sm); background: var(--upr-surface); color: var(--upr-ink); font-weight: 700;
}
.upr-pagination .page-numbers.current { background: var(--upr-primary); color: #fff; border-color: var(--upr-primary); }
.upr-pagination a.page-numbers:hover { background: var(--upr-soft); text-decoration: none; }

/* -------------------------------------------------------------------------
 * Comments
 * ---------------------------------------------------------------------- */
.upr-comments { background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 20px; margin-top: 24px; }
.upr-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.upr-comments .comment-list ol.children { list-style: none; padding-left: 20px; }
.upr-comments .comment-body { padding: 12px 0; border-bottom: 1px solid var(--upr-line); }
.upr-comments .comment-author { font-weight: 700; }
.upr-comments .comment-form input[type="text"], .upr-comments .comment-form input[type="email"], .upr-comments .comment-form input[type="url"], .upr-comments .comment-form textarea {
	width: 100%; padding: 11px 13px; border: 1px solid var(--upr-line); border-radius: var(--upr-radius-sm); font: inherit; margin-bottom: 10px;
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.upr-footer { background: #0f1729; color: #c7d0e0; margin-top: 32px; padding: 32px 0 0; }
.upr-footer a { color: #c7d0e0; }
.upr-footer a:hover { color: #fff; }
.upr-footer-widgets { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 24px; }
@media (min-width: 560px) { .upr-footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .upr-footer-widgets { grid-template-columns: repeat(4, 1fr); } }
.upr-footer-col .widget-title { color: #fff; border-bottom-color: rgba(255, 255, 255, .12); }
.upr-footer-col li { border-bottom-color: rgba(255, 255, 255, .08); }
.upr-footer-social { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.upr-social { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: .82rem; font-weight: 600; }
.upr-social:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.upr-footer-nav { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.upr-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; font-size: .9rem; }
.upr-footer-bottom { padding: 16px 0 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.upr-copyright { margin: 0; }

/* -------------------------------------------------------------------------
 * Mobile bottom nav
 * ---------------------------------------------------------------------- */
.upr-bottom-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; background: var(--upr-surface);
	box-shadow: 0 -2px 12px rgba(16, 24, 40, .1); border-top: 1px solid var(--upr-line);
}
.upr-bottom-menu { list-style: none; display: flex; margin: 0; padding: 0; }
.upr-bottom-menu li { flex: 1; }
.upr-bottom-menu a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; color: var(--upr-muted); font-size: .68rem; font-weight: 600; text-align: center; }
.upr-bottom-menu a:hover, .upr-bottom-menu .current-menu-item > a { color: var(--upr-primary); text-decoration: none; }
body { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 991px) { body:has(.upr-bottom-nav) { padding-bottom: 62px; } .upr-to-top { bottom: 76px; } }
@media (min-width: 992px) { .upr-bottom-nav { display: none; } }

/* -------------------------------------------------------------------------
 * Ads
 * ---------------------------------------------------------------------- */
.upr-ad { margin: 18px auto; text-align: center; max-width: 100%; overflow: hidden; }
.upr-ad-label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--upr-muted); margin-bottom: 4px; }
.upr-ad-header { margin: 10px auto 0; }
.upr-ad-sidebar { position: sticky; top: 76px; }

/* -------------------------------------------------------------------------
 * 404 & misc states
 * ---------------------------------------------------------------------- */
.upr-page-hero { background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 26px; text-align: center; margin-bottom: 20px; }
.upr-404 { text-align: center; padding: 40px 16px; }
.upr-404-code { font-size: 4rem; font-weight: 900; color: var(--upr-primary); line-height: 1; }
.upr-none { background: var(--upr-surface); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); padding: 26px; }

/* Utility */
.upr-mt-0 { margin-top: 0; }
.upr-text-center { text-align: center; }
.upr-visually-fluid img { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------------
 * Progressive enhancement: keep navigation & search usable without JS
 * ---------------------------------------------------------------------- */
.no-js .upr-nav-toggle,
.no-js .upr-search-toggle,
.no-js .upr-to-top,
.no-js .upr-progress { display: none; }

.no-js .upr-search-panel[hidden] { display: block; }

.no-js .upr-mobile-nav[hidden] {
	position: static;
	transform: none;
	width: auto;
	max-width: none;
	box-shadow: none;
	border-bottom: 1px solid var(--upr-line);
}
.no-js .upr-mobile-nav-head .upr-nav-close { display: none; }
@media (min-width: 992px) { .no-js .upr-mobile-nav[hidden] { display: none; } }

/* -------------------------------------------------------------------------
 * Trending Topics grid (keyword-rich internal links)
 * ---------------------------------------------------------------------- */
.upr-topics-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .upr-topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .upr-topics-grid { grid-template-columns: repeat(3, 1fr); } }
.upr-topic-link {
	display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--upr-surface);
	border: 1px solid var(--upr-line); border-radius: var(--upr-radius-sm); color: var(--upr-ink); font-weight: 600; font-size: .92rem;
}
.upr-topic-link::before { content: "\203A"; color: var(--upr-primary); font-weight: 800; font-size: 1.1em; }
.upr-topic-link:hover { border-color: var(--upr-primary); color: var(--upr-primary); text-decoration: none; background: var(--upr-soft); }

/* Updates list: keep badge + title aligned */
.upr-recent-list .upr-recent-title { display: inline-flex; align-items: center; gap: 8px; flex: 1; }

/* -------------------------------------------------------------------------
 * Result/info page extras
 * ---------------------------------------------------------------------- */
.upr-info-block { margin: 22px 0; }
.upr-info-block h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.upr-doc-list { padding-left: 1.2rem; margin: 0; }
.upr-doc-list li { margin-bottom: .4rem; }
.upr-official-cta { margin: 26px 0 8px; text-align: center; padding: 20px; background: var(--upr-soft); border: 1px solid var(--upr-line); border-radius: var(--upr-radius); }
.upr-official-cta .upr-btn { font-size: 1.05rem; padding: 14px 26px; }
.upr-official-note { font-size: .8rem; color: var(--upr-muted); margin: 8px 0 0; }
