/* SACC Gauteng Cat Clubs – site styles */
:root {
  --indigo-950: #120e2e;
  --indigo-900: #1d1645;
  --indigo-800: #2b2163;
  --indigo-700: #3b2f84;
  --indigo-100: #ebe8f8;
  --indigo-50:  #f5f3fc;
  --gold:       #d4a547;
  --gold-600:   #b8882c;
  --gold-100:   #fbf1da;
  --ink:        #1a1530;
  --text:       #3d3852;
  --muted:      #75708a;
  --line:       #e6e3ef;
  --bg:         #f8f7fc;
  --card:       #ffffff;
  --ok:         #15803d;
  --ok-bg:      #e7f6ec;
  --err:        #b42318;
  --err-bg:     #fdecea;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(26, 21, 48, .06), 0 1px 3px rgba(26, 21, 48, .05);
  --shadow:     0 10px 30px -12px rgba(29, 22, 69, .22), 0 2px 6px rgba(29, 22, 69, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--indigo-700); text-underline-offset: 3px; }
a:hover { color: var(--indigo-900); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2.4rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 2rem; padding-bottom: 4rem; }
.admin-main { padding-top: 1.5rem; padding-bottom: 4rem; }
.site-main { min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand img { width: auto; height: 48px; filter: drop-shadow(0 3px 6px rgba(29, 22, 69, .2)); }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: .2rem; }
.main-nav a { color: var(--text); text-decoration: none; padding: .5rem .85rem; border-radius: 999px; font-size: .93rem; font-weight: 600; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--indigo-50); color: var(--indigo-900); }
.main-nav a.active { background: var(--indigo-100); color: var(--indigo-900); }
.main-nav a.nav-cta { background: var(--indigo-900); color: #fff; margin-left: .4rem; padding: .55rem 1.1rem; box-shadow: var(--shadow-sm); }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta.active { background: var(--indigo-700); color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.is-admin .site-header { background: var(--indigo-950); border-bottom-color: transparent; }
.is-admin .brand, .is-admin .brand small { color: #fff; }
.is-admin .brand small { opacity: .7; }
.is-admin .main-nav a { color: rgba(255, 255, 255, .8); padding: .45rem .6rem; font-size: .86rem; white-space: nowrap; }
.is-admin .brand { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) { .is-admin .main-nav { gap: 0; } .is-admin .main-nav a { padding: .4rem .42rem; font-size: .8rem; } }
.is-admin .main-nav a:hover, .is-admin .main-nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.is-admin .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .25); }
.is-admin .nav-toggle span { background: #fff; }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .4rem 0 1rem; }
  .nav-open .main-nav { display: flex; }
  .main-nav a.nav-cta { margin: .4rem 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(212, 165, 71, .28), transparent 60%), radial-gradient(900px 600px at -10% 120%, rgba(88, 70, 190, .55), transparent 60%), linear-gradient(135deg, var(--indigo-900), var(--indigo-950)); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 4.5rem 20px 4rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; margin: .8rem 0 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #f6dd8f, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 560px; margin: 0 0 1.8rem; }
.hero .eyebrow { color: #f6dd8f; }
.hero-emblem { justify-self: center; width: 100%; max-width: 500px; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-clubs { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-clubs .wrap { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.hero-clubs span.label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 700; margin-right: .4rem; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; text-align: left; }
  .hero-emblem { order: -1; width: min(300px, 80vw); justify-self: center; }
}

/* ---------- club logo chips ---------- */
.club-chip { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; background: #fff; padding: 10px; box-shadow: var(--shadow-sm); }
.club-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.club-chip.round img { border-radius: 50%; }
.club-chip.sm { width: 56px; height: 56px; border-radius: 14px; padding: 6px; }
.club-chip:has(img[src*="logo-cfc"]) { padding: 3px; }
.club-chip:has(img[src*="logo-cfc"]) img { transform: scale(1.12); }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head h2 { margin: .3rem 0 0; }

/* ---------- cards & grid ---------- */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card.lift { transition: transform .2s, box-shadow .2s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.show-card { display: flex; flex-direction: column; gap: .5rem; position: relative; overflow: hidden; }
.show-card .date-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 68px; border-radius: 14px; background: var(--indigo-900); color: #fff; line-height: 1; }
.show-card .date-badge b { font-size: 1.6rem; }
.show-card .date-badge small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #f6dd8f; margin-top: 4px; }
.show-card .top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.show-card .date { font-weight: 700; color: var(--gold-600); }
.club-card { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.club-card .club-chip { width: 96px; height: 96px; }
.club-card .code { font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--gold-600); }
.club-card h3 { margin: 0; }
.club-card .actions { margin-top: auto; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; background: var(--indigo-100); color: var(--indigo-800); white-space: nowrap; }
.badge.green { background: var(--ok-bg); color: var(--ok); }
.badge.red { background: var(--err-bg); color: var(--err); }
.badge.grey { background: #eeedf2; color: #5b5770; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); color: var(--muted); font-size: .9rem; }
.stat b { display: block; font-size: 1.9rem; color: var(--ink); letter-spacing: -.02em; }

/* points promo */
.promo { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; background: linear-gradient(135deg, var(--indigo-900), var(--indigo-800)); color: rgba(255, 255, 255, .82); border-radius: 24px; padding: 2.4rem; box-shadow: var(--shadow); }
.promo h2 { color: #fff; margin-top: .3rem; }
.promo .quota { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.promo .quota div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: .9rem .4rem; text-align: center; font-size: .78rem; }
.promo .quota b { display: block; font-size: 1.8rem; color: #f6dd8f; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; padding: 1.6rem; } }

/* ---------- buttons ---------- */
.btn, button.btn { display: inline-flex; align-items: center; gap: .45rem; justify-content: center; background: var(--indigo-900); color: #fff; border: 1px solid transparent; padding: .7rem 1.25rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--indigo-700); color: #fff; transform: translateY(-1px); }
.btn.alt, .btn.gold { background: linear-gradient(180deg, #e7bd62, var(--gold)); color: var(--indigo-950); }
.btn.alt:hover, .btn.gold:hover { background: linear-gradient(180deg, #f0c970, #dcae50); color: var(--indigo-950); }
.btn.ghost { background: transparent; color: var(--indigo-900); border-color: #cfc9e3; box-shadow: none; }
.btn.ghost:hover { background: var(--indigo-50); color: var(--indigo-900); }
.btn.ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn.sm { padding: .38rem .8rem; font-size: .84rem; }
.btn.danger { background: var(--err); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }

/* ---------- forms ---------- */
form .row { display: grid; gap: 1rem 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
label .req { color: var(--err); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid #d8d4e6; border-radius: var(--radius-sm); font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo-700); box-shadow: 0 0 0 4px rgba(59, 47, 132, .14); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem .6rem; margin: 0 0 1.4rem; background: var(--card); box-shadow: var(--shadow-sm); }
legend { font-weight: 800; color: var(--ink); padding: .25rem .8rem; background: var(--indigo-50); border-radius: 999px; font-size: .9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--text); }
.check input { margin-top: .3rem; accent-color: var(--indigo-800); width: 18px; height: 18px; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.cat-block { position: relative; border-left: 4px solid var(--gold); }
.cat-block .remove-cat { position: absolute; top: 1rem; right: 1rem; }
.total-bar { position: sticky; bottom: 12px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; padding: .7rem .8rem .7rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.total-bar strong { font-size: 1.3rem; color: var(--ink); }

/* ---------- EMS colour code builder (entry form) ---------- */
.ems-box { background: var(--indigo-50); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.ems-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; color: var(--ink); }
.ems-code { margin-left: auto; font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; color: var(--indigo-900);
  background: #fff; border: 2px solid var(--gold); border-radius: 10px; padding: .25rem .8rem; min-width: 7rem; text-align: center; }
form .row.ems-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ---------- alerts ---------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0; font-weight: 500; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.table-wrap table { border: 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .93rem; }
tr:last-child td { border-bottom: 0; }
th { background: #faf9fd; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
tbody tr:hover td, table tr:hover td { background: #fcfbff; }
tr.rank-1 td { background: var(--gold-100) !important; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.card table th, .card table td { padding: .5rem .4rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.ref { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 1.02rem; letter-spacing: .05em; background: var(--indigo-50); padding: .1rem .45rem; border-radius: 6px; }
/* one line; scrolls sideways on a narrow screen instead of wrapping */
.tabs { display: inline-flex; gap: .15rem; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: thin; margin: 1rem 0 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem; box-shadow: var(--shadow-sm); }
.tabs a { padding: .45rem .75rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .86rem; white-space: nowrap; flex: none; }
.tabs a:hover { background: var(--indigo-50); }
.tabs a.active { background: var(--indigo-900); color: #fff; }
.inline { display: inline; }
.bank { border-left: 4px solid var(--gold); }

/* ---------- show page & winners ---------- */
.show-full { margin-bottom: 1.4rem; padding: 1.6rem; }
.show-head { display: flex; gap: 1.1rem; align-items: center; }
.show-head .date-badge { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 68px; height: 72px; border-radius: 16px; background: var(--indigo-900); color: #fff; line-height: 1; }
.show-head .date-badge b { font-size: 1.7rem; }
.show-head .date-badge small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #f6dd8f; margin-top: 4px; }
.show-head-text { flex: 1; min-width: 0; }
.show-head-text .date { font-weight: 700; color: var(--gold-600); font-size: .88rem; }
.show-head-text h2 { margin: .1rem 0 .15rem; }
.show-head-text p { margin: 0; }
.show-details { margin-top: 1rem; color: var(--muted); }
.winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.winner { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.winner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.winner-photo { position: relative; aspect-ratio: 4 / 5; background: var(--indigo-50); overflow: hidden; }
.winner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.winner:hover .winner-photo img { transform: scale(1.04); }
.winner-photo.empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a2d7a, var(--indigo-950)); }
.winner-photo.empty img.ph { width: 46%; height: auto; opacity: .55; }
.winner .ribbon { position: absolute; left: .7rem; top: .7rem; right: .7rem; width: fit-content; background: linear-gradient(180deg, #f0c970, var(--gold)); color: var(--indigo-950); font-weight: 800; font-size: .72rem; letter-spacing: .02em; padding: .3rem .65rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.winner figcaption { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.winner figcaption strong { color: var(--ink); line-height: 1.3; }
.winner figcaption span { font-size: .84rem; color: var(--muted); }
.winner figcaption .owner { color: var(--text); font-weight: 600; }
.winner figcaption .credit { font-size: .72rem; margin-top: .3rem; opacity: .8; }
.winner-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-top: .3rem; }
@media (max-width: 560px) { .winners { grid-template-columns: repeat(2, 1fr); gap: .7rem; } .show-full { padding: 1.1rem; } .show-head { flex-wrap: wrap; } }

/* fee tables */
table.fee-table { width: 100%; max-width: 420px; background: transparent; border-collapse: collapse; table-layout: auto; }
table.fee-table th, table.fee-table td { padding: .45rem .5rem; border-bottom: 1px dashed #d9d4ea; font-size: .9rem; vertical-align: middle; }
table.fee-table th:first-child, table.fee-table td:first-child { padding-left: 0; }
table.fee-table th:last-child, table.fee-table td:last-child { padding-right: 0; }
table.fee-table th { background: transparent; text-transform: none; letter-spacing: 0; font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
table.fee-table td.num { white-space: nowrap; font-weight: 600; color: var(--ink); }
table.fee-table tr:last-child td { border-bottom: 0; }
table.fee-table tr:hover td { background: transparent; }

/* clubs page */
.club-full { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.6rem; margin-bottom: 1.4rem; padding: 1.8rem; align-items: start; }
.club-full .club-chip { width: 120px; height: 120px; border-radius: 26px; padding: 12px; }
.club-full h2 { margin: .2rem 0 .3rem; }
.club-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.2rem; }
.club-cols > div { background: var(--indigo-50); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; min-width: 0; }
.club-cols h4 { margin: 0 0 .7rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-700); }
.club-cols .kv { font-size: .92rem; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem .9rem; }
.club-cols .kv dd { overflow-wrap: anywhere; }
.club-note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .club-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .club-cols > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; } }
@media (max-width: 700px) { .club-full { grid-template-columns: 1fr; padding: 1.2rem; gap: 1rem; } .club-full .club-chip { width: 88px; height: 88px; } .club-cols { grid-template-columns: 1fr; } .club-cols > div:nth-child(2) { grid-row: auto; } }

/* page title band for inner pages */
.page-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.page-title img { width: 56px; height: 56px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 4rem; background: var(--indigo-950); color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding-top: 3rem; padding-bottom: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-brand p { margin: .3rem 0 0; max-width: 460px; }
.footer-clubs { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-clubs .club-chip { width: 72px; height: 72px; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.2rem; padding-bottom: 1.6rem; font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-clubs { justify-content: flex-start; } }

/* ---------- catalogue (print) ---------- */
.catalogue { background: #fff; padding: 1.2rem; border-radius: var(--radius); color: var(--ink); }
/* catalogue cover */
.catalogue .cover { margin-bottom: 1.8rem; }
.catalogue .cover-frame { text-align: center; padding: 2.4rem 2rem 1.6rem; border: 2px solid var(--ink); border-radius: 14px; outline: 1px solid var(--gold); outline-offset: -9px;
  background: linear-gradient(180deg, #fff 0%, #fff 62%, #faf7ee 100%); display: flex; flex-direction: column; gap: .2rem; }
.catalogue .cover-logo { width: 150px; height: 150px; object-fit: contain; margin: 0 auto .6rem; display: block; }
.catalogue .cover-club { font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0; }
.catalogue .cover-kind { margin: .15rem 0 0; color: #8a6a10; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.catalogue .cover h1 { font-size: 2.5rem; line-height: 1.12; color: var(--ink); margin: 1rem auto .8rem; max-width: 15em; }
.catalogue .cover-date { display: inline-flex; flex-direction: column; align-self: center; background: var(--ink); color: #fff; border-radius: 10px; padding: .45rem 1.6rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.catalogue .cover-date span { font-size: 1.5rem; letter-spacing: .02em; text-transform: none; font-weight: 800; color: var(--gold); }
.catalogue .cover-venue { margin: .9rem 0 0; font-size: 1rem; line-height: 1.45; }
.catalogue .cover-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; margin: 1.6rem 0 0; text-align: left; }
@media (max-width: 760px) { .catalogue .cover-grid { grid-template-columns: 1fr; } }
.catalogue .cover-box { border: 1px solid #d9d4e8; border-radius: 10px; padding: .8rem 1rem; background: #fff; }
.catalogue .cover-box h3 { margin: 0 0 .45rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #8a6a10; }
.catalogue .cover-box p { margin: .1rem 0; }
.catalogue .cover-judges ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 1rem; }
.catalogue .cover-judges li { padding: .12rem 0; break-inside: avoid; }
.catalogue .cover-manager { font-weight: 800; font-size: 1.1rem; }
.catalogue .cover-stats { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.catalogue .cover-stats span { background: #f1eef9; border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; }
.catalogue .cover-sponsors { margin: 1.4rem 0 0; padding: .9rem 1rem; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.catalogue .cover-sponsor-label { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: #6b6785; }
.catalogue .cover-sponsor-main { margin: .2rem 0 0; font-size: 1.45rem; font-weight: 800; color: var(--ink); }
.catalogue .cover-sponsor-more { margin: .3rem 0 0; font-size: .95rem; }
.catalogue .cover-rules { font-style: italic; margin: 1.2rem 0 0; font-size: .85rem; color: #4a4868; }
/* judges' allocation page */
.catalogue .alloc-head { display: flex; align-items: center; gap: 1rem; border-bottom: 3px solid var(--ink); padding-bottom: .6rem; margin-bottom: 1rem; }
.catalogue .alloc-head img { width: 64px; height: 64px; object-fit: contain; }
.catalogue .alloc-head h2 { margin: 0; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .06em; }
.catalogue .alloc-head p { margin: .1rem 0 0; color: #4a4868; }
.catalogue .alloc-nice { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.catalogue .alloc-nice thead th { background: var(--ink); color: #fff; text-align: left; padding: .5rem .7rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.catalogue .alloc-nice thead th:first-child { border-radius: 8px 0 0 0; }
.catalogue .alloc-nice thead th:last-child { border-radius: 0 8px 0 0; }
.catalogue .alloc-nice .alloc-sec th { background: #f6f1df; color: #6b5310; text-align: left; padding: .4rem .7rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; border-top: 2px solid var(--gold); }
.catalogue .alloc-nice td { padding: .42rem .7rem; border-bottom: 1px solid #e4e1ee; }
.catalogue .alloc-nice tbody tr:not(.alloc-sec) td:first-child { font-weight: 700; width: 24%; }
.catalogue .alloc-nice tbody tr:nth-child(odd):not(.alloc-sec) td { background: #fbfaff; }
.catalogue .alloc-n { display: inline-block; min-width: 1.6em; text-align: center; font-size: .72rem; font-weight: 700; background: #ece9f6; color: #4a4868; border-radius: 999px; padding: 0 .35rem; margin-left: .3rem; }
.catalogue .alloc-none { color: #b4b0c8; }
.catalogue .alloc-notes { margin-top: 1rem; border: 1px solid #e4e1ee; border-left: 4px solid var(--gold); border-radius: 8px; padding: .6rem .9rem; }
.catalogue .alloc-notes h3 { margin: 0 0 .3rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.catalogue .alloc-notes ul { margin: 0; padding-left: 1.1rem; }
.catalogue .alloc-foot { margin-top: 1.2rem; font-size: .9rem; color: #4a4868; border-top: 1px solid #e4e1ee; padding-top: .6rem; }
.catalogue .alloc-foot p { margin: .15rem 0; }
.catalogue h2.section { background: var(--ink); color: #fff; padding: .45rem .8rem; font-size: 1.2rem; margin: 2rem 0 .8rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; break-after: avoid; }
.catalogue h3.breed { border-bottom: 3px solid var(--ink); color: var(--ink); margin: 1.4rem 0 .5rem; font-size: 1.25rem; padding-bottom: .15rem; break-after: avoid; }
.catalogue h4.class { margin: 1rem 0 .2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; break-after: avoid; }
.catalogue h4.class span { display: inline-block; background: var(--gold); color: var(--ink); border-radius: 4px; padding: .05rem .45rem; margin-right: .35rem; font-size: .85rem; }
.catalogue .sex-group { grid-column: 1 / -1; margin: .2rem 0 0; font-weight: 700; font-style: italic; color: #4a4868; break-after: avoid; }
.catalogue .cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .6rem; }
@media (max-width: 760px) { .catalogue .cat-grid { grid-template-columns: 1fr; } }
/* newspaper-style flow: cats run down column 1 then column 2 – no empty gaps */
.catalogue .cat-flow { column-count: 2; column-gap: .9rem; margin-bottom: .6rem; }
@media (max-width: 760px) { .catalogue .cat-flow { column-count: 1; } }
.catalogue .cat-flow > .cat, .catalogue .cat-flow > table { margin-bottom: .55rem; }
.catalogue .cat-flow h4.class { margin: .55rem 0 .35rem; break-after: avoid; page-break-after: avoid; break-inside: avoid; }
.catalogue .cat-flow h4.class:first-child { margin-top: 0; }
.catalogue .age { color: #4a4868; white-space: nowrap; }
.catalogue .cat { display: grid; grid-template-columns: 4.6rem 1fr; border: 1px solid #cfcbe0; border-radius: 8px; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
.catalogue .cat .no { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.catalogue .cat .no.none { background: #e9e7f2; color: #8b88a3; }
.catalogue .cat-body { padding: .5rem .7rem .55rem; font-size: .86rem; line-height: 1.35; }
.catalogue .cat .name { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.catalogue .cat .desc { margin: .1rem 0 .3rem; }
.catalogue .cat .ems { font-weight: 700; white-space: nowrap; }
.catalogue .facts { display: grid; grid-template-columns: auto 1fr; gap: .05rem .55rem; margin: 0; }
.catalogue .facts dt { font-weight: 700; color: #4a4868; }
.catalogue .facts dd { margin: 0; }
.catalogue .also { margin-top: .3rem; font-style: italic; color: var(--muted); }
.catalogue .rings { display: flex; flex-wrap: wrap; gap: .1rem .8rem; margin-top: .35rem; padding-top: .3rem; border-top: 1px dashed #d6d3e6; font-size: .8rem; }
.catalogue .alloc-page { margin-bottom: 1.5rem; }
.alloc-table, .book-table { width: 100%; border-collapse: collapse; }
.alloc-table th, .alloc-table td, .book-table th, .book-table td { border: 1px solid #b9b5cc; padding: .35rem .5rem; text-align: left; vertical-align: top; }
.alloc-table th, .book-table th { background: var(--indigo-50); }
.alloc-edit input, .alloc-edit select { min-width: 10rem; }
.alloc-edit td.alloc-warn { background: #fdecec; }
.alloc-edit td.alloc-warn select { border-color: #c0392b; }
.alloc-warn-note { display: block; color: #a3262a; font-weight: 700; margin-top: .2rem; }
.alloc-edit tr.muted td:first-child { color: var(--muted); }

/* ---------- judging pages ---------- */
.judge-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.judge-sheet { background: #fff; border: 1px solid #cfcbe0; border-radius: var(--radius-sm); padding: 1rem; break-inside: avoid; }
.judge-sheet h2 { margin: .2rem 0 .6rem; }
.judge-book { background: #fff; border: 1px solid #cfcbe0; border-radius: var(--radius-sm); padding: 1.2rem; margin-bottom: 1.2rem; }
.book-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border-bottom: 3px solid var(--ink); padding-bottom: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.book-head h2 { margin: .1rem 0 0; }
.book-head p { margin: 0; }
.book-judge { font-size: 1.1rem; }
.book-table tr { break-inside: avoid; }
.book-table .book-group td { background: #f3f1f9; font-weight: 700; font-size: .85rem; }
.book-table .book-no { font-size: 1.6rem; font-weight: 800; text-align: center; vertical-align: middle; }
.book-table .book-place { white-space: nowrap; font-size: 1.05rem; letter-spacing: .05em; }
.book-absent { font-weight: 800; color: #a3262a; text-align: center; }
.book-imperial { margin: 1rem 0 .4rem; font-size: 1rem; }
.book-sign { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
/* two-part judge's book: judge keeps the left part, the right part is torn off for the show manager */
.jb-cols, .jb-row { display: grid; grid-template-columns: minmax(0, 2fr) 1.6rem minmax(0, 1fr); }
.jb-cols span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #4a4868; padding-bottom: .3rem; }
.jb-group { background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; padding: .35rem .6rem; margin-top: 1.6rem; border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.jb-cols + .jb-grouprow .jb-group { margin-top: .2rem; }
.jb-grouprow { border-bottom: 2px solid var(--ink); break-after: avoid; page-break-after: avoid; }
.jb-row { border-bottom: 1px solid #b9b5cc; break-inside: avoid; page-break-inside: avoid; }
.jb-keep { display: grid; grid-template-columns: 3.4rem 1fr; gap: .6rem; padding: .45rem .4rem .45rem 0; font-size: .82rem; line-height: 1.35; }
.jb-no { font-size: 1.7rem; font-weight: 800; text-align: center; align-self: center; }
.jb-award, .jb-place { margin-top: .15rem; }
.jb-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; align-content: start; }
.jb-info > div { grid-column: 1; }
.jb-info > .jb-notes { grid-column: 2; grid-row: 1 / span 6; margin-top: 0 !important; }
.jb-notes { margin-top: .3rem; color: #4a4868; font-weight: 700; min-height: 3.1rem; background: repeating-linear-gradient(transparent 0 1.02rem, #c9c5da 1.02rem 1.08rem); }
.jb-cut { border-left: 2px dashed #6b6889; position: relative; margin-left: .75rem; }
.jb-cut span { position: absolute; top: .3rem; left: -.6rem; background: #fff; font-size: .9rem; line-height: 1; }
.jb-slip { padding: .45rem 0 .45rem .2rem; font-size: .82rem; line-height: 1.5; display: flex; flex-direction: column; }
.jb-slip-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.jb-slip-no { font-size: 1.3rem; }
.jb-sign { margin-top: auto; padding-top: 1.4rem; border-bottom: 1px solid #555; font-size: .72rem; color: #4a4868; display: flex; align-items: flex-end; }
/* entry form: find a cat by reg. no. */
.reg-find { display: flex; gap: .4rem; }
.reg-find input { flex: 1; min-width: 0; }
.reg-find .btn { white-space: nowrap; }
.cat-history { background: var(--indigo-50); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.cat-history .hist-head { margin-bottom: .4rem; }
.cat-history .hist-title { margin: .2rem 0 .5rem; }
.hist-table { font-size: .85rem; background: #fff; }
.age-out { display: block; margin-top: .25rem; color: var(--ink); font-weight: 600; }
.class-hint, .imperial-note { display: block; margin-top: .25rem; }
label.check.disabled { opacity: .45; }
.prev-awards { margin-top: .4rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; background: #fff; }
.prev-awards summary { cursor: pointer; font-weight: 700; }
.prev-awards .prev-row { margin-bottom: .5rem; grid-template-columns: 9.5rem minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 760px) { .prev-awards .prev-row { grid-template-columns: 1fr 1fr; } }

/* nomination sheet after each section in a judge's book */
.jb-nom { display: grid; grid-template-columns: minmax(0, 1fr) 2.4rem minmax(0, 1fr); margin: 1.6rem 0; border: 2px solid var(--ink); border-radius: 8px; padding: 1.2rem; background: #fff; break-inside: avoid; page-break-inside: avoid; }
.nom-half { display: flex; flex-direction: column; }
.nom-copy { margin: 0 0 .4rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #4a4868; }
.nom-half h3 { margin: .3rem 0 0; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; }
.nom-sec { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 800; }
.nom-meta { margin: .3rem 0 .8rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.nom-table { border-bottom: 1px solid #b9b5cc; }
.nom-table th { width: 50%; }
.nom-table td { height: 3.2rem; vertical-align: middle; }
.nom-table .book-no { font-size: 1.6rem; }
.nom-cut { border-left: 2px dashed #6b6889; position: relative; margin-left: 1.15rem; }
.nom-cut span { position: absolute; top: 0; left: -.65rem; background: #fff; font-size: 1rem; line-height: 1; }
.jb-nom-sign { margin: 1.6rem 0 0 auto; width: 14rem; border-bottom: 1px solid #555; padding-top: 1.2rem; font-size: .75rem; color: #4a4868; }

/* finals: nominations → judge-off */
.finals-cat { margin-bottom: 2rem; }
.finals-title { border-bottom: 3px solid var(--ink); padding-bottom: .3rem; }
.finals-cat tr.called td { background: #fff8e6; }
.finals-result li { margin: .2rem 0; font-size: 1.05rem; }
.finals-result li.through { font-weight: 600; }
.ring-tabs, .finals-tabs { margin: 1rem 0; }
tr.res-sec td { background: var(--ink); color: #fff; font-weight: 700; padding: .45rem .7rem; }
tr.res-sec .small { color: #e6e4f0; font-weight: 400; }
.nom-summary td { vertical-align: top; }
.finals-step { margin: 1.4rem 0 .6rem; font-size: 1.05rem; color: var(--indigo-800); }
/* two per row: P/E + M/H (L/H), then Foreign + S/O (S/H) */
.finals-divs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 760px) { .finals-divs { grid-template-columns: 1fr; } }
.finals-divs .card h4 { margin-top: 0; }
.finals-round h3 { margin-top: 0; }
.fo-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .5rem 0; }
.fo-choice { font-weight: 400; }
.fo-slips { display: grid; gap: 1rem; max-width: 210mm; }
/* judge-off slips: three per A4 page */
.fo-slip { background: #fff; border: 1px dashed #8a87a3; padding: 4mm 6mm; min-height: 88mm; box-sizing: border-box; break-inside: avoid; page-break-inside: avoid; display: flex; flex-direction: column; }
.fo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: .25rem; margin-bottom: .3rem; }
.fo-head h2 { margin: .1rem 0 0; font-size: 1.2rem; }
.fo-judge { font-size: .95rem; }
.fo-slip > p.small { margin: .1rem 0 .3rem; }
.fo-table { margin: 0; }
.fo-table th { padding: .15rem .5rem; }
.fo-table td { height: 6.5mm; padding: 0 .5rem; vertical-align: middle; line-height: 1.15; }
.fo-table .book-no { font-size: 1.25rem; }
.fo-table .book-place { font-size: 1.05rem; }
.fo-slip .jb-nom-sign { margin: auto 0 0 auto; padding-top: .6rem; }

/* judges: choose & invite */
.judge-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.judge-opt { display: flex; gap: .55rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem; cursor: pointer; margin: 0; font-weight: 400; }
.judge-opt.chosen { border-color: var(--ink); background: var(--indigo-50); }
.judge-opt input { width: auto; margin-top: .2rem; }
.judge-opt small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; margin-top: .1rem; }
.invite-card { max-width: 640px; margin: 1rem auto; }

/* exhibitor slips: three per A4 page, cut on the dashed lines */
.ex-slips { display: grid; max-width: 210mm; }
.ex-slips .ex-slip + .ex-slip { border-top: none; }
.ex-slip { background: #fff; border: 1px dashed #8a87a3; height: 93mm; box-sizing: border-box; padding: 4.5mm 6mm 4mm; display: flex; flex-direction: column; gap: 2.2mm; break-inside: avoid; page-break-inside: avoid; font-size: 9.5pt; line-height: 1.3; color: #1b1838; }
.ex-head { display: flex; align-items: center; gap: 3mm; padding-bottom: 2mm; border-bottom: 2px solid var(--ink); }
.ex-head img { width: 13mm; height: 13mm; object-fit: contain; }
.ex-show { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ex-show strong { font-size: 11pt; }
.ex-show span { color: #4a4868; }
.ex-title { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 8pt; color: #fff; background: var(--ink); padding: 1.2mm 3mm; border-radius: 4px; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ex-big { display: grid; grid-template-columns: 22mm 16mm minmax(0, 1fr) minmax(0, 1.25fr); gap: 2mm; }
.ex-big div { border: 1px solid #b9b5cc; border-radius: 5px; padding: 1mm 2.5mm; min-width: 0; }
.ex-big span, .ex-award span, .ex-comments > span, .ex-sign span { display: block; font-size: 6.5pt; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #4a4868; }
.ex-big b { font-size: 18pt; line-height: 1.05; }
.ex-big em { font-style: normal; font-weight: 700; font-size: 10pt; line-height: 1.2; display: block; }
.ex-age { display: block; font-size: 8pt; color: #4a4868; margin-top: .3mm; }
.ex-award { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2mm; }
.ex-award > div { border: 1px solid #b9b5cc; border-radius: 5px; padding: 1mm 2.5mm; font-size: 10pt; }
.ex-comments { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ex-lines { flex: 1; background: repeating-linear-gradient(transparent 0 6.2mm, #c9c5da 6.2mm 6.5mm); }
.ex-sign { align-self: flex-end; width: 70mm; border-bottom: 1px solid #555; padding-top: 5mm; }

@media print {
  .no-print, .site-header, .site-footer { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  main, .wrap { max-width: none; padding: 0; }
  /* catalogue: no page margin (so the browser prints no link / date / title), padding repeated on every page */
  .catalogue { padding: 12mm 12mm 10mm; border-radius: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .catalogue .cover { margin: 0; break-after: page; page-break-after: always; }
  .catalogue .cover-frame { min-height: 270mm; box-sizing: border-box; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .catalogue .cover-date, .catalogue .cover-stats span, .catalogue .alloc-nice th, .catalogue .alloc-nice td, .catalogue .alloc-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* judges' allocation: always one A4 page of its own */
  .catalogue .alloc-page { margin: 0; break-before: page; break-after: page; page-break-after: always; break-inside: avoid; page-break-inside: avoid; }
  .catalogue .alloc-head { padding-bottom: 2mm; margin-bottom: 3mm; }
  .catalogue .alloc-head img { width: 14mm; height: 14mm; }
  .catalogue .alloc-head h2 { font-size: 16pt; }
  .catalogue .alloc-head p { font-size: 9pt; }
  .catalogue .alloc-nice { font-size: 9.5pt; }
  .catalogue .alloc-nice thead th { padding: 1.6mm 2.5mm; font-size: 8pt; }
  .catalogue .alloc-nice .alloc-sec th { padding: 1.1mm 2.5mm; font-size: 7.5pt; }
  .catalogue .alloc-nice td { padding: 1.4mm 2.5mm; line-height: 1.2; }
  .catalogue .alloc-nice tr { break-inside: avoid; }
  .catalogue .alloc-notes { margin-top: 3mm; padding: 2mm 3mm; font-size: 8.5pt; }
  .catalogue .alloc-notes ul { columns: 2; column-gap: 6mm; }
  .catalogue .alloc-foot { margin-top: 3mm; padding-top: 2mm; font-size: 8.5pt; }
  .catalogue .cat .no { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .catalogue h2.section, .catalogue h4.class span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .catalogue .cat-body { font-size: 8.5pt; }
  .catalogue .alloc-page { break-after: page; }
  .judge-book { border: none; padding: 0; margin: 0; break-after: page; }
  .judge-sheet { border: 1px solid #999; }
  .jb-group { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fo-slips { display: block; max-width: none; }
  .fo-slip { height: 92mm; min-height: 0; margin: 0; overflow: hidden; }
  .fo-slip:nth-child(3n) { break-after: page; page-break-after: always; }
  .fo-big .fo-slip { height: 138mm; }   /* more than 6 cats: two slips per page */
  .fo-big .fo-slip:nth-child(3n) { break-after: auto; page-break-after: auto; }
  .fo-big .fo-slip:nth-child(2n) { break-after: page; page-break-after: always; }
  .jb-nom { break-before: page; page-break-before: always; break-after: page; page-break-after: always; margin: 0; border: none; padding: 0; min-height: 17cm; }
  .ex-slips { display: block; max-width: none; }
  .ex-slip { margin: 0; border-radius: 0; }
  .ex-slip + .ex-slip { border-top: none; }
  .ex-slip:nth-child(3n + 1) { border-top: 1px dashed #8a87a3; }
  .ex-slip:nth-child(3n) { break-after: page; page-break-after: always; }
  .tabs { display: none !important; }
  .catalogue .cat .name { font-size: 10pt; }
  .page-break { break-before: page; }
  a { color: inherit; text-decoration: none; }
  .card, fieldset, .table-wrap { border-color: #999; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- show finances ---------- */
.fin-print-head { display: none; }
.fin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 1rem 0; }
.fin-card { background: #fff; border: 1px solid #e4e1ee; border-radius: 12px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .15rem; border-top: 4px solid #8b88a3; }
.fin-card span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #6b6785; font-weight: 700; }
.fin-card strong { font-size: 1.55rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.fin-card small { color: #6b6785; }
.fin-card.in { border-top-color: #2f8f5b; }
.fin-card.out { border-top-color: #c0392b; }
.fin-card.profit { border-top-color: #2f8f5b; background: #f3fbf6; }
.fin-card.loss { border-top-color: #c0392b; background: #fdf3f2; }
.fin-compare h3, .fin-break + p { margin-top: 0; }
.fin-cmp { display: grid; grid-template-columns: 6rem 1fr 8rem; align-items: center; gap: .7rem; margin: .4rem 0; }
.fin-cmp div { background: #f1eef9; border-radius: 999px; height: 1.1rem; overflow: hidden; }
.fin-cmp i, .fin-bar span { display: block; height: 100%; border-radius: 999px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fin-cmp b { text-align: right; font-variant-numeric: tabular-nums; }
.fin-cmp .in, .fin-bar .in { background: #2f8f5b; }
.fin-cmp .out, .fin-bar .out { background: #c0392b; }
.fin-break { width: 100%; }
.fin-break td { padding: .3rem .4rem; border-bottom: 1px solid #efedf5; }
.fin-bar { width: 38%; }
.fin-bar span { height: .7rem; }
.fin-form { background: #faf9fd; border: 1px dashed #d6d3e6; border-radius: 10px; padding: .7rem .9rem; margin-bottom: .8rem; }
tr.fin-open td { background: #fffaf0; }
@media print {
  .fin-print-head { display: block; border-bottom: 2px solid #1d1645; margin-bottom: 4mm; }
  .fin-print-head h2 { margin: 0; }
  .fin-print-head p { margin: 1mm 0 2mm; color: #555; }
  .fin-card, .fin-cmp div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ---------- show day ---------- */
.prog { display: inline-block; width: 9rem; height: .55rem; background: #ece9f6; border-radius: 999px; overflow: hidden; vertical-align: middle; margin-right: .4rem; }
.prog i { display: block; height: 100%; background: #c9a227; border-radius: 999px; }
.prog i.done { background: #2f8f5b; }
.ring-card h3 { margin-top: 0; }
.checkin-bar { position: sticky; top: 0; z-index: 5; background: var(--bg, #f7f6fb); padding: .5rem 0; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.checkin-bar input { max-width: 26rem; font-size: 1.05rem; }
.checkin-list { display: grid; gap: .4rem; }
.ci-row { display: grid; grid-template-columns: 4.2rem 1fr auto; align-items: center; gap: .7rem; background: #fff; border: 1px solid #e4e1ee; border-left: 6px solid #d6d3e6; border-radius: 10px; padding: .45rem .6rem; }
.ci-row.present { border-left-color: #2f8f5b; background: #f3fbf6; }
.ci-row.absent { border-left-color: #c0392b; background: #fdf3f2; }
.ci-no { font-size: 1.9rem; font-weight: 800; text-align: center; color: var(--ink); }
.ci-btns { display: flex; gap: .35rem; margin: 0; }
.ci-btns button { border: 1px solid #d6d3e6; background: #fff; border-radius: 8px; padding: .6rem .8rem; font-weight: 700; cursor: pointer; font-size: .95rem; }
.ci-row.present .ci-in { background: #2f8f5b; color: #fff; border-color: #2f8f5b; }
.ci-row.absent .ci-out { background: #c0392b; color: #fff; border-color: #c0392b; }
.ci-reset { color: #6b6785; }
@media (max-width: 560px) { .ci-row { grid-template-columns: 3.2rem 1fr; } .ci-btns { grid-column: 1 / -1; } .ci-btns button { flex: 1; } }
.cage-cards { display: grid; gap: 5mm; max-width: 194mm; }
/* cage card: dark number panel on the left, breed / colour / class and the ring judges on the right */
.cage-card { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 10px; height: 90mm; box-sizing: border-box; display: grid; grid-template-columns: 58mm 1fr; break-inside: avoid; page-break-inside: avoid; overflow: hidden; }
.cc-no { background: #fff; color: var(--ink); border-right: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.cc-no span { font-size: 100pt; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cc-body { padding: 4mm 6mm; display: flex; flex-direction: column; min-width: 0; }
.cc-top { display: flex; align-items: center; gap: 2.5mm; font-size: 8pt; color: #6b6785; margin-bottom: 3mm; }
.cc-top img { width: 8mm; height: 8mm; object-fit: contain; }
.cc-breed { font-size: 26pt; font-weight: 800; line-height: 1.05; color: var(--ink); }
.cc-colour { font-size: 14pt; margin-top: 1.5mm; line-height: 1.2; }
.cc-sex { font-size: 12pt; color: #4a4868; margin-top: 1.5mm; }
.cc-class { display: block; margin-top: 1mm; font-size: 11pt; color: #6b5310; font-weight: 700; }
.cc-rings { margin-top: auto; padding-top: 2mm; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.5mm; }
.cc-rings div { border: 1px solid #9c98b5; border-radius: 6px; padding: 1.2mm 2mm; background: #fff; }
.cc-rings span { display: block; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: #6b6785; font-weight: 700; }
.cc-rings b { display: block; font-size: 10.5pt; color: var(--ink); line-height: 1.15; }
.cc-rings .cc-imp { border-style: dashed; }
.cc-absent { position: absolute; top: 38%; left: 0; right: 0; text-align: center; font-size: 40pt; font-weight: 800; color: rgba(192, 57, 43, .35); transform: rotate(-12deg); }
.num-tags { display: grid; grid-template-columns: repeat(3, 64mm); grid-auto-rows: 34mm; gap: 0; }
.num-tag { border: 1px dashed #8a87a3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; box-sizing: border-box; padding: 1mm; overflow: hidden; }
.nt-no { font-size: 36pt; font-weight: 800; line-height: 1; color: var(--ink); }
.nt-sub { font-size: 8.5pt; margin-top: 1mm; }
.nt-rings { display: flex; flex-wrap: wrap; justify-content: center; gap: .3mm 2.2mm; margin-top: 1mm; font-size: 9pt; color: var(--ink); }
.nt-rings b { font-weight: 800; color: #6b6785; }
.pen { display: inline-block; min-width: 2.2rem; text-align: center; font-weight: 800; border: 1px solid #d6d3e6; border-radius: 6px; padding: .1rem .3rem; margin: .1rem .2rem .1rem 0; background: #fff; }
.pen-absent { text-decoration: line-through; color: #b4b0c8; }
.check-group h3 { margin-top: 0; }
.check-group ul { margin: 0; padding-left: 1.1rem; }
.check-group li { margin: .15rem 0; }
.steward { max-width: 680px; margin: 0 auto; }
.st-sec { font-size: 1rem; background: var(--ink); color: #fff; padding: .4rem .7rem; border-radius: 8px; margin: 1.2rem 0 .5rem; }
.st-sec .small { color: #e6e4f0; }
.st-cat { display: grid; grid-template-columns: 3.6rem 1fr; gap: .6rem; background: #fff; border: 1px solid #e4e1ee; border-radius: 10px; padding: .5rem .6rem; margin-bottom: .4rem; }
.st-cat.st-done { border-left: 5px solid #2f8f5b; }
.st-no { font-size: 1.9rem; font-weight: 800; text-align: center; align-self: center; }
.st-fields { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.st-fields label { display: flex; flex-direction: column; font-size: .75rem; font-weight: 700; color: #4a4868; margin: 0; }
.st-fields select { min-width: 6.5rem; font-size: 1rem; padding: .45rem; }
.st-save { position: sticky; bottom: 0; background: var(--bg, #f7f6fb); padding: .7rem 0; }
.st-save .btn { width: 100%; font-size: 1.1rem; padding: .8rem; }
@media print {
  .cage-cards { display: block; }
  .cage-card { margin: 0 0 5mm; }
  .cage-card:nth-child(3n) { break-after: page; page-break-after: always; margin-bottom: 0; }
  .num-tags { grid-auto-rows: 34mm; }
  .num-tag:nth-child(24n) { break-after: page; }
  .checkin-bar { position: static; }
}
/* ---------- show day actions, results, my cats ---------- */
.checkin-bar input { width: 26rem; max-width: 100%; }
.sd-actions h3 { margin-top: 0; }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sd-grid > div { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.sd-grid form { margin: 0; }
.results-head { display: flex; align-items: center; gap: 1rem; }
.results-head img { width: 72px; height: 72px; object-fit: contain; }
.results-head h1 { margin: 0; }
.res-finals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.res-final h3 { margin: 0 0 .4rem; font-size: 1rem; }
.res-final ol { list-style: none; margin: 0; padding: 0; }
.res-final li { padding: .3rem 0; border-top: 1px solid #efedf5; }
.res-final.cotd { border: 2px solid var(--gold); background: #fffbef; }
.res-place { display: inline-block; min-width: 4.2rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8a6a10; }
.my-cats { display: grid; gap: .8rem; }
.my-cat h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.title-prog { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; background: #faf9fd; border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.tp-bar { display: flex; flex-direction: column; gap: .2rem; }
.tp-bar .prog { width: 14rem; }
.enter-again h3 { margin-top: 0; }
.pop-upload h3 { margin-top: 0; }
/* ---------- public show card ---------- */
.show-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem 2rem; margin-top: 1.2rem; align-items: start; }
@media (max-width: 760px) { .show-body { grid-template-columns: 1fr; } }
.show-sub { margin: 0 0 .55rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8a6a10; display: flex; align-items: center; gap: .4rem; }
.show-sub span { background: #f6f1df; color: #6b5310; border-radius: 999px; padding: 0 .45rem; font-size: .72rem; letter-spacing: 0; }
.judge-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .35rem; }
.judge-chips li { background: #f5f3fb; border: 1px solid #e7e3f3; border-radius: 8px; padding: .32rem .6rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.show-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 1rem 0 0; }
.show-facts div { min-width: 7rem; }
.show-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #6b6785; font-weight: 700; }
.show-facts dd { margin: .1rem 0 0; font-weight: 700; color: var(--ink); }
.show-fees { background: #faf9fd; border: 1px solid #ece9f6; border-radius: 12px; padding: .9rem 1rem; }
.show-fees table { width: 100%; }
.show-fees .actions { margin-top: .9rem; }

/* stud number after a male's name (Show Rule 6(g)) */
.stud { display: inline-block; margin-left: .35rem; font-size: .78em; font-weight: 700; color: #4a4868; border: 1px solid #c9c5dc; border-radius: 4px; padding: 0 .3rem; white-space: nowrap; }
.stud-row.stud-needed .f-stud { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, .15); }
.stud-help { align-self: end; }

/* ---------- judges' page, history, winner photos, renewals ---------- */
.judge-page { max-width: 820px; margin: 0 auto; }
.jp-ring h2 { margin-top: 0; }
.jp-ring h3 { font-size: 1rem; margin: 1rem 0 .3rem; color: #6b5310; }
.jp-classes { width: 100%; }
.jp-classes td { padding: .25rem .4rem; border-bottom: 1px solid #efedf5; }
.jp-classes td.num { width: 3rem; font-weight: 800; }
.history td { vertical-align: top; }
.photo-page { max-width: 760px; margin: 0 auto; }
.photo-cards { display: grid; gap: .7rem; }
.photo-card { display: grid; grid-template-columns: 120px 1fr; gap: .8rem; background: #fff; border: 1px solid #e4e1ee; border-radius: 12px; padding: .6rem; margin: 0; }
.photo-card.busy { opacity: .5; pointer-events: none; }
.pc-img { width: 120px; height: 120px; border-radius: 10px; overflow: hidden; background: #f1eef9; display: flex; align-items: center; justify-content: center; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-img.empty span { font-size: .8rem; color: #8b88a3; }
.pc-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.pc-award { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #8a6a10; font-weight: 800; }
.pc-take { text-align: center; padding: .7rem; font-size: 1rem; cursor: pointer; }
.photo-add { margin-top: 1rem; }
.photo-add h3 { margin-top: 0; }
.renewals summary { cursor: pointer; }
.renewals table { width: 100%; margin-top: .5rem; }
@media (max-width: 480px) { .photo-card { grid-template-columns: 90px 1fr; } .pc-img { width: 90px; height: 90px; } }
/* ---------- exhibitors: change entry, live show day, season points, title claim ---------- */
.change-entry h3 { margin-top: 0; }
.ce-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .45rem 0; border-top: 1px solid #efedf5; }
.ce-row strong { min-width: 14rem; }
.ce-row form { margin: 0; }
.live-cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; border-left: 4px solid var(--gold); }
.live-page { max-width: 1000px; margin: 0 auto; }
.live-mine h2 { margin-top: 0; }
.lm-cat { display: grid; grid-template-columns: 3.4rem 1fr; gap: .7rem; padding: .5rem 0; border-top: 1px solid #efedf5; }
.lm-no { font-size: 1.8rem; font-weight: 800; text-align: center; color: var(--ink); }
.lm-rings { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.lm-ring { border: 1px solid #d6d3e6; border-radius: 8px; padding: .3rem .55rem; font-size: .85rem; background: #fff; }
.lm-ring.done { border-color: #2f8f5b; background: #f3fbf6; }
.lm-ring.next { border-color: #c9a227; background: #fff8e1; font-weight: 700; }
.live-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; }
.live-rings h3 { margin-top: 0; }
.lr-judge { padding: .45rem 0; border-top: 1px solid #efedf5; }
.lr-head { display: flex; justify-content: space-between; }
.lr-judge .prog { width: 100%; margin: .25rem 0; }
.season-pts { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; background: #f6f9ff; border: 1px solid #e1e8f5; border-radius: 10px; padding: .55rem .8rem; margin: .5rem 0; }
.season-pts strong { font-size: 1.3rem; }
.title-claim { border: 2px solid var(--gold); background: #fffbef; border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.title-claim summary { cursor: pointer; }
.title-claim table { width: 100%; }
/* ---- show alerts, calendar, waiting list, judges' comments ---- */
.alert-signup { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; background: var(--gold-100); border: 1px solid #efdcae; border-radius: var(--radius-sm); padding: .6rem .9rem; margin: 0 0 1.25rem; }
.alert-signup span { flex: 1 1 260px; font-size: .92rem; color: var(--ink); }
.alert-signup input[type=email] { flex: 1 1 200px; max-width: 280px; margin: 0; }
.cal-links { margin: .6rem 0 0; color: var(--muted); }
.waitlist-box { border: 1px dashed var(--gold-600); background: var(--gold-100); }
em.judge-comment { display: block; margin-top: .2rem; font-size: .88rem; color: var(--indigo-700); }
textarea.comment-in { min-width: 180px; min-height: 2.2rem; margin: 0; font-size: .85rem; resize: vertical; }
.st-comment { width: 100%; margin-top: .5rem; font-size: .95rem; }

/* ---- public cat profile ---- */
.profile-edit { margin: .75rem 0; border-top: 1px solid var(--line); padding-top: .6rem; }
.profile-edit summary { cursor: pointer; font-weight: 600; }
.profile-edit form { margin-top: .6rem; }
.profile-thumb { display: block; width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); margin: .4rem 0; }
.cat-profile { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 1.5rem; align-items: start; }
.cp-photo { border-radius: var(--radius); overflow: hidden; background: var(--indigo-50); aspect-ratio: 1; }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-photo.empty img { object-fit: contain; padding: 18%; opacity: .5; }
.cp-text h1 { margin: 0 0 .3rem; }
.cp-title { margin: 0 0 .8rem; }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem 1rem; margin: 0 0 .8rem; }
.cp-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cp-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.cp-about { white-space: normal; border-left: 3px solid var(--gold); padding-left: .8rem; }
.cp-wins { margin: 0; padding-left: 0; list-style: none; }
.cp-wins li { padding: .25rem 0; }
@media (max-width: 700px) { .cat-profile { grid-template-columns: 1fr; } }

/* ---- People's Choice ---- */
.vote-page { max-width: 460px; margin: 0 auto; text-align: center; }
.vote-card { display: flex; align-items: center; gap: 1rem; text-align: left; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.vote-no { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--ink); min-width: 4.5rem; text-align: center; }
.vote-btn { width: 100%; font-size: 1.15rem; padding: .9rem; }
.vote-done { font-weight: 700; color: var(--ok); }
.vote-find { display: flex; gap: .5rem; justify-content: center; margin: 1.5rem 0 .5rem; }
.vote-find input { max-width: 150px; margin: 0; }
.cc-no { flex-direction: column; gap: 2mm; }
.cc-no:has(.cc-qr) span { font-size: 78pt; }
.cc-qr { width: 25mm; height: 25mm; }
.cc-qr img, .cc-qr canvas { width: 100% !important; height: 100% !important; }
.cc-no small { font-size: 7pt; line-height: 1.2; text-align: center; color: #6b6785; padding: 0 3mm; }
/* ---- entry form: find a cat by name or exhibitor ---- */
.cat-find { display: flex; gap: .4rem; margin-top: .4rem; }
.cat-find input { margin: 0; }
.cat-results { margin-top: .4rem; display: grid; gap: .35rem; }
.cat-pick { text-align: left; background: var(--indigo-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .45rem .7rem; cursor: pointer; font: inherit; color: var(--ink); }
.cat-pick:hover { border-color: var(--gold); background: var(--gold-100); }
/* ---- admin: correct an entry ---- */
.edit-entry { margin: 1rem 0; }
.edit-entry summary, .edit-cat summary { cursor: pointer; }
.edit-cat { margin-top: .4rem; }
.edit-cat form { margin-top: .5rem; min-width: 320px; }
/* ---- nominations sheet ---- */
.nom-block h2 { margin-top: 0; }
.nom-sheet { font-size: .88rem; }
.nom-sheet th { white-space: nowrap; }
.nom-sheet td { padding: .25rem .45rem; vertical-align: middle; }
.nom-cat td { font-weight: 800; letter-spacing: .02em; }
.nom-adult td { background: #e8eefc; color: #1d3a8a; }
.nom-neuter td { background: #e6f5ea; color: #166534; }
.nom-kitten td { background: #fde9e7; color: #9b1c12; }
.nom-hhp td { background: #f3ead6; color: #6b5310; }
.nom-in { width: 3.2rem; margin: 0; padding: .2rem .3rem; text-align: center; }
.nom-dup { border-color: var(--err) !important; background: var(--err-bg) !important; color: var(--err); font-weight: 700; }
.nom-top td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.nom-warn { background: var(--err-bg); color: var(--err); font-weight: 600; }
/* ---- awards list (results entry) ---- */
.awards-list { font-size: .82rem; }
.awards-list th { white-space: nowrap; font-size: .75rem; }
.awards-list td { padding: .2rem .4rem; vertical-align: middle; }
.awards-list .aw-j { text-align: center; color: var(--muted); font-weight: 700; background: var(--indigo-50); }
.aw-in { width: 6.2rem; margin: 0; padding: .2rem .35rem; text-transform: uppercase; font-weight: 700; }
.aw-bad { border-color: var(--err) !important; background: var(--err-bg) !important; }
.aw-absent td { opacity: .5; }
.aw-title { color: var(--ok); font-size: .78rem; letter-spacing: .03em; }
.aw-save { position: sticky; bottom: 0; background: var(--bg); padding: .6rem 0; }
/* ---- extra book lines / slips for possible class changes ---- */
.book-extra { margin: 1rem 0 .4rem; padding: .4rem .6rem; border: 2px dashed #b45309; color: #92400e; font-size: .95rem; }
.jb-extra .jb-keep, .jb-extra .jb-slip { background: repeating-linear-gradient(135deg, #fff, #fff 8px, #fff7ed 8px, #fff7ed 16px); }
.jb-if { font-weight: 700; color: #92400e; font-size: .8rem; }
.ex-extra { border-style: dashed !important; }
.ex-if { border: 2px solid #92400e; color: #92400e; font-weight: 800; font-size: 9pt; padding: 1.2mm 2mm; margin-bottom: 1.5mm; text-align: center; }
@media print {
  .awards-list .aw-in { border: none; background: none; padding: 0; width: auto; }
  .nom-in { border: none; background: none; }
}
/* wide spreadsheet pages: awards list and nominations use the full screen width */
main.admin-main:has(.awards-list), main.admin-main:has(.nom-sheet) { max-width: none; }
.awards-list td, .nom-sheet td { white-space: nowrap; }
.edit-row td { padding-top: 0; border-top: none; }
.edit-cat form { max-width: 900px; }
.badge.gold { background: var(--gold-100); color: #7a5a12; }
.reg-pend { margin-top: .3rem; }
.cat-find .cat-search { flex: 1; min-width: 0; }
.reg-no:disabled { background: var(--indigo-50); }
.pack-changes { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .8rem; font-size: .85rem; background: var(--bg); margin: .6rem 0; }
.pack-changes div { padding: .15rem 0; border-bottom: 1px dashed var(--line); }
.awards-list tr.aw-sec td { background: var(--gold-100); color: var(--ink); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; padding: .55rem .5rem .35rem; border-top: 3px solid var(--bg); }
select.rejudge { width: auto; min-width: 5.5rem; margin: 0; padding: .2rem .3rem; }
.aw-cell { display: inline-flex; align-items: center; gap: .35rem; }
.awards-list .aw-cell .aw-in { width: 3.4rem; text-align: center; }
.aw-tick { display: inline-flex; align-items: center; gap: .2rem; margin: 0; font-size: .74rem; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; }
.aw-tick input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: #15803d; }
.rule-clash { border: 2px solid var(--err); background: var(--err-bg); }
.rule-clash h3 { color: var(--err); margin-top: 0; }
.rule-clash select { width: auto; margin: 0; }
.aw-clash { color: var(--err); font-weight: 700; font-size: .76rem; white-space: nowrap; }
.st-clash { margin-top: .4rem; padding: .5rem .7rem; border-radius: var(--radius-sm); background: var(--err-bg); color: var(--err); font-weight: 700; font-size: .9rem; }
