.wiwr,
.wiwr * { box-sizing: border-box; }

.wiwr {
	--wiwr-primary: #D93D34;
	--wiwr-ink: #1c1917;
	--wiwr-muted: #5e584f;
	--wiwr-line: #e6e1da;
	--wiwr-bg: #f4f1ed;
	--wiwr-card: #ffffff;
	--wiwr-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
	--wiwr-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	color: var(--wiwr-ink);
	font-family: var(--wiwr-body);
	font-size: 17px;
	line-height: 1.45;
	width: min(1040px, 100%);
	max-width: 100%;
	margin: 0 auto 48px;
	overflow-x: clip;
}

.wiwr a { color: var(--wiwr-primary); text-underline-offset: 3px; }
.wiwr h1, .wiwr h2, .wiwr .wiwr-board-score, .wiwr-dir-rec, .wiwr-record strong {
	font-family: var(--wiwr-display);
	letter-spacing: 0.01em;
}
.wiwr h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 0.95; font-weight: 800; margin: 8px 0 4px; text-transform: uppercase; }
.wiwr h2 { font-size: 1.7rem; line-height: 1; font-weight: 700; text-transform: uppercase; margin: 1.6rem 0 0.7rem; }
.wiwr h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.5rem; }

.wiwr-skip { position: absolute; left: 8px; top: 8px; transform: translateY(-120%); background: #fff; padding: 8px 12px; z-index: 50; }
.wiwr-skip:focus { transform: none; }

.wiwr-brand {
	background: var(--wiwr-ink);
	border-radius: 14px;
	min-height: 52px;
	display: flex;
	align-items: center;
	padding: 8px 16px;
}
.wiwr-brand img { height: 30px; width: auto; display: block; }

.wiwr-sticky {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(244, 241, 237, 0.94);
	backdrop-filter: blur(8px);
	padding: 12px 0 8px;
}
body.admin-bar .wiwr-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wiwr-sticky { top: 46px; } }

.wiwr-search label { display: block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.wiwr-search-row { display: flex; gap: 8px; }
.wiwr-search input[type="search"] {
	flex: 1; min-width: 0; min-height: 48px; font: inherit; font-size: 16px;
	padding: 0 14px; border: 0; border-radius: 999px; background: #fff;
	box-shadow: 0 1px 2px rgba(28,25,23,0.06), 0 0 0 1px var(--wiwr-line);
	color: var(--wiwr-ink);
}
.wiwr-search button, .wiwr-btn, .wiwr-save, .wiwr-arrow, .wiwr-chip, .wiwr-nav a {
	font: inherit; font-size: 16px; min-height: 44px; min-width: 44px;
}
.wiwr-search button {
	border: 0; border-radius: 999px; padding: 0 18px; background: var(--wiwr-ink); color: #fff; font-weight: 700; cursor: pointer;
}
.wiwr-search button:hover { background: #000; }
.wiwr-search { position: relative; }
.wiwr-suggest {
	list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0;
	background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(28,25,23,0.16); max-height: 60vh; overflow: auto; z-index: 40;
}
.wiwr-suggest[hidden] { display: none; }
.wiwr-suggest button { width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; min-height: 44px; padding: 8px 10px; cursor: pointer; color: inherit; font: inherit; }
.wiwr-suggest button[aria-selected="true"], .wiwr-suggest button:hover { background: #f6e4e1; }
.wiwr-suggest small { display: block; color: var(--wiwr-muted); }
.wiwr-suggest .wiwr-suggest-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wiwr-muted); padding: 8px 10px 2px; }

.wiwr-nav { display: flex; gap: 4px; overflow-x: auto; margin-top: 10px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(28,25,23,0.05); }
.wiwr-nav a {
	flex: 0 0 auto; padding: 0 14px; border-radius: 999px; color: var(--wiwr-ink); text-decoration: none; font-weight: 700;
	display: inline-flex; align-items: center;
}
.wiwr-nav a[aria-current="page"] { background: var(--wiwr-ink); color: #fff; }
.wiwr-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--wiwr-primary); }

.wiwr-banner { background: #fff; border-left: 4px solid var(--wiwr-primary); border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; color: var(--wiwr-ink); }
.wiwr-banner-warn { border-left-color: #a15c00; }
.wiwr-muted, .wiwr-kicker, .wiwr-lead, .wiwr-date-label { color: var(--wiwr-muted); }
.wiwr-kicker { margin: 0 0 2px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }

.wiwr-dateswitch { display: flex; align-items: center; gap: 8px; margin: 12px 0 18px; }
.wiwr-today { display: block; width: 100%; }
.wiwr-arrow, .wiwr-todaylink {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
	border-radius: 999px; background: #fff; color: var(--wiwr-ink); text-decoration: none; font-weight: 700;
	box-shadow: 0 1px 2px rgba(28,25,23,0.08);
}
.wiwr-arrow { font-size: 1.6rem; line-height: 1; }
.wiwr-todaylink { padding: 0 14px; color: var(--wiwr-primary); }
.wiwr-datebar input[type="date"] {
	min-height: 44px; border: 0; border-radius: 999px; padding: 0 12px; background: #fff; color: inherit; font: inherit; font-weight: 700;
	box-shadow: 0 1px 2px rgba(28,25,23,0.08);
}

.wiwr-event, .wiwr-form, .wiwr-secondary section, .wiwr-dircard {
	background: var(--wiwr-card);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(28,25,23,0.06);
}
.wiwr-event { padding: 16px 16px 8px; margin: 0 0 16px; width: 100%; max-width: 100%; }
.wiwr-event-head h2 { margin: 8px 0 4px; }
.wiwr-event-head h2 a { color: inherit; text-decoration: none; }
.wiwr-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.wiwr-badge, .wiwr-pill {
	display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 999px;
	background: var(--wiwr-bg); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.wiwr-badge-live { background: var(--wiwr-primary); color: #fff; }
.wiwr-pill-fall { background: var(--wiwr-primary); color: #fff; }

.wiwr-board {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center;
	margin: 14px 0 8px; padding: 12px; background: var(--wiwr-bg); border-radius: 16px; max-width: 100%;
}
.wiwr-board-side { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.wiwr-board-away { align-items: flex-end; }
.wiwr-board-name { color: inherit; text-decoration: none; font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.wiwr-board-side.is-win .wiwr-board-name { color: var(--wiwr-primary); }
.wiwr-board-score { margin: 0; display: flex; align-items: baseline; gap: 6px; font-family: var(--wiwr-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.wiwr-board-score .is-win { color: var(--wiwr-primary); }
.wiwr-board-dash { color: var(--wiwr-muted); font-size: 1.4rem; }

.wiwr-save {
	border: 0; background: transparent; color: #8a837b; border-radius: 999px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.wiwr-save svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wiwr-save[aria-pressed="true"] { color: var(--wiwr-primary); }
.wiwr-save[aria-pressed="true"] svg { fill: currentColor; }
.wiwr-save:hover { background: #fff; color: var(--wiwr-primary); }

.wiwr-boutlist { display: flex; flex-direction: column; }
.wiwr-bout { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--wiwr-line); }
.wiwr-weight { font-family: var(--wiwr-display); font-weight: 800; font-size: 1.15rem; min-width: 2.4rem; }
.wiwr-name { font-weight: 800; color: inherit; text-decoration: none; }
.wiwr-vs { margin: 2px 0 0; color: var(--wiwr-muted); }
.wiwr-vs a { font-weight: 700; }
.wiwr-table { display: none; width: 100%; border-collapse: collapse; }
.wiwr-dir { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wiwr-dircard { display: flex; align-items: center; gap: 4px; padding: 8px 10px; }
.wiwr-dircard-link {
	flex: 1; min-height: 56px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name rec" "meta rec";
	gap: 0 12px; align-items: center; text-decoration: none; color: inherit; padding: 6px;
}
.wiwr-dir-name { grid-area: name; font-weight: 800; }
.wiwr-dir-meta { grid-area: meta; color: var(--wiwr-muted); font-size: 0.92rem; }
.wiwr-dir-rec { grid-area: rec; font-weight: 800; font-size: 1.45rem; }

.wiwr-profile-head { display: flex; gap: 14px; align-items: center; margin: 8px 0 16px; }
.wiwr-avatar, .wiwr-avatar-fallback {
	width: 84px; height: 84px; border-radius: 20px; flex: 0 0 auto;
}
.wiwr-avatar-fallback {
	display: flex; align-items: center; justify-content: center; background: var(--wiwr-ink); color: #fff;
	font-family: var(--wiwr-display); font-weight: 800; font-size: 1.8rem;
}
.wiwr-record { margin: 4px 0 8px; }
.wiwr-record strong { font-size: 2.6rem; font-weight: 800; }
.wiwr-profile-actions, .wiwr-filter-row, .wiwr-weights, .wiwr-inline-saves { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wiwr-btn, .wiwr-chip {
	display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px;
	background: #fff; color: var(--wiwr-ink); text-decoration: none; font-weight: 700; border: 0;
	box-shadow: 0 1px 2px rgba(28,25,23,0.08); cursor: pointer;
}
.wiwr-chip[aria-current="true"] { background: var(--wiwr-ink); color: #fff; box-shadow: inset 0 -3px 0 var(--wiwr-primary); }
.wiwr-btn-ghost { background: #fff; }

.wiwr-secondary { margin-top: 28px; }
.wiwr-grid { display: flex; flex-direction: column; gap: 12px; }
.wiwr-grid section, .wiwr-form { padding: 16px; }
.wiwr-rank, .wiwr-places, .wiwr-eventlist { list-style: none; margin: 0; padding: 0; }
.wiwr-rank li, .wiwr-eventlist li, .wiwr-places li {
	display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--wiwr-line);
}
.wiwr-rank a, .wiwr-eventlist a, .wiwr-places a { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.wiwr-rank-name { font-weight: 800; }
.wiwr-rank-stat { font-family: var(--wiwr-display); font-weight: 800; font-size: 1.2rem; color: var(--wiwr-primary); }

.wiwr-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.wiwr-field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; flex: 1; min-width: min(100%, 180px); }
.wiwr-field input, .wiwr-field select, .wiwr-field textarea {
	min-height: 48px; border: 0; border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 500; width: 100%;
	box-shadow: 0 0 0 1px var(--wiwr-line); background: #fff; color: inherit;
}
.wiwr-check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.wiwr-check input { width: 22px; height: 22px; }
.wiwr-account { display: flex; flex-direction: column; gap: 12px; }
.wiwr-form + .wiwr-form { margin-top: 12px; }
.wiwr-hp { position: absolute; left: -9999px; }
.wiwr-footnote { margin-top: 28px; }
.wiwr-empty { padding: 8px 0; }
.wiwr-count { color: var(--wiwr-muted); }
.wiwr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wiwr :focus-visible { outline: 3px solid var(--wiwr-primary); outline-offset: 2px; }

.wiwr-skel {
	height: 72px; border-radius: 18px; margin: 10px 0;
	background: linear-gradient(90deg, #efeae4 25%, #f7f4f1 37%, #efeae4 63%);
	background-size: 400% 100%;
	animation: wiwr-shimmer 1.2s ease infinite;
}
@keyframes wiwr-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .wiwr-skel { animation: none; } }

@media (max-width: 799px) {
	.wiwr-table { display: none !important; }
	.wiwr-boutlist { display: flex !important; }
	.wiwr-board-score { font-size: 1.8rem; }
}
@media (min-width: 800px) {
	.wiwr-brand img { height: 34px; }
	.wiwr-boutlist { display: none; }
	.wiwr-table { display: table; }
	.wiwr-table th, .wiwr-table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--wiwr-line); }
	.wiwr-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
	.wiwr-account { display: grid; grid-template-columns: 1fr 1fr; }
	.wiwr-avatar, .wiwr-avatar-fallback { width: 104px; height: 104px; }
}

body.wiwr-active .wp-block-post-title, body.wiwr-active .entry-title {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
body.wiwr-active .entry-content, body.wiwr-active .wp-block-post-content { max-width: 1120px; }
