/* King of the Hill: the mark, the gold action, the King card, the rules sheet and status cards. Gold is only for the one primary action. */
:root { --gold:#f2c230; --gold-deep:#d9a400; --gold-ink:#3d2c00; --gold-soft:#fff1c2; }
.zonebanner[hidden] { display:none; }
.kmark { display:inline-flex; align-items:center; gap:.4em; font-family:Archivo,Manrope,system-ui,sans-serif; font-weight:900; font-stretch:80%; text-transform:uppercase; letter-spacing:.03em; line-height:1; color:inherit; }
.kmark .kcrown { flex:0 0 auto; width:1.7em; height:1.7em; }
.kmark-sm { font-size:11px; } .kmark-md { font-size:15px; } .kmark-lg { font-size:22px; }
.kband { margin:0 0 14px; padding:14px 64px 14px 16px; border-radius:18px; background:var(--brand-blue); color:#fff; }
.kband small { display:block; margin-top:6px; color:#ffffffe6; font:800 14px/1.35 Manrope,system-ui,sans-serif; letter-spacing:0; text-transform:none; overflow-wrap:anywhere; }
.crown-go { display:block; width:100%; box-sizing:border-box; min-height:48px; padding:13px 16px; border:0; border-radius:16px; background:var(--gold); color:var(--gold-ink); font-family:Archivo,Manrope,system-ui,sans-serif; font-weight:900; font-stretch:88%; text-transform:uppercase; font-size:17px; line-height:1.15; letter-spacing:.02em; text-align:center; text-decoration:none; cursor:pointer; box-shadow:0 8px 20px -8px #d9a400cc, inset 0 -3px 0 var(--gold-deep); transition:transform .12s; }
.crown-go:active { transform:translateY(1px); } .crown-go:disabled { opacity:.6; cursor:default; }
.crown-go.crown-big { min-height:60px; font-size:21px; }
.kghost { display:block; width:100%; box-sizing:border-box; min-height:48px; padding:12px 14px; border:2px solid var(--brand-blue); border-radius:14px; background:var(--paper); color:var(--brand-blue); font:inherit; font-weight:800; text-align:center; text-decoration:none; cursor:pointer; }
.kcall { display:block; box-sizing:border-box; min-height:48px; padding:13px 14px; margin:0 0 10px; border-radius:14px; background:var(--brand-blue); color:#fff; font-weight:800; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.crown-go:focus-visible, .kghost:focus-visible, .kcall:focus-visible, .kinfo:focus-visible, .kwhat:focus-visible { outline:3px solid var(--brand-blue); outline-offset:2px; }
.ktake { display:grid; gap:10px; margin:16px 0 8px; } .kyou { display:flex; align-items:center; gap:8px; margin:0; padding:14px; border-radius:16px; background:var(--gold-soft); border:1.5px solid var(--gold-deep); color:var(--gold-ink); font-weight:800; }
.kyou .kcrown { width:22px; height:22px; flex:0 0 auto; }
.kfoot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 14px; margin:4px 0 0; }
.kwhat { display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--brand-blue); font-weight:700; font-size:14px; text-decoration:underline; }
.kinfo { display:inline-grid; place-items:center; min-width:28px; min-height:28px; margin-left:4px; padding:0; border:1.5px solid var(--brand-blue); border-radius:50%; background:var(--paper); color:var(--brand-blue); font:italic 800 14px/1 Georgia,serif; vertical-align:middle; cursor:pointer; }
.kinfosheet p { margin:0 0 14px; font-size:16px; line-height:1.5; } .kreadlink { display:block; min-height:44px; padding:10px 0; color:var(--brand-blue); font-weight:800; }
.kline { margin:0; font-size:13.5px; line-height:1.5; color:var(--ink); overflow-wrap:anywhere; }
.kstatus { display:grid; gap:6px; margin:8px 0; padding:12px; border-radius:14px; background:#e8f7ef; color:#0f5c37; font-size:14px; line-height:1.45; } .kstatus p { margin:0; font-weight:800; overflow-wrap:anywhere; }
.kstatus-warn { background:var(--gold-soft); color:var(--gold-ink); } .kcount { font-weight:700; font-variant-numeric:tabular-nums; opacity:.85; }
.kstatus .kweekly { font-weight:700; }
.kstatus .linkbutton { min-height:44px; }
.boardsheet .boardphoto { margin-top:0; }
@media (prefers-reduced-motion: reduce) { .crown-go { transition:none; } }

/* The Seize the crown flow. */
.crownsheet { min-width:0; } .crownsheet .sheethead { align-items:flex-start; } #crownMark { display:block; margin:0 0 6px; } #crownTitle { overflow-wrap:anywhere; }
.kstep { margin:0 0 10px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.kpin { display:grid; gap:8px; padding:12px; border:1.5px dashed var(--brand-blue); border-radius:16px; background:var(--surface); } .kpin > b { font-size:14px; }
.kaddrhits { display:grid; gap:6px; } .kaddrhits:empty { display:none; } .kaddr { min-height:44px; padding:10px 12px; border:1.5px solid var(--line); border-radius:12px; background:var(--paper); color:var(--text); font:600 14px/1.3 inherit; text-align:left; cursor:pointer; } .kaddr:hover, .kaddr:focus-visible { border-color:var(--brand-blue); outline:none; }
.centrepin{position:absolute;left:50%;top:50%;z-index:850;width:30px;height:42px;margin:-42px 0 0 -15px;pointer-events:none;filter:drop-shadow(0 4px 6px #0004)} .centrepin span{display:block;width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#0a53ac;border:3px solid #fff;box-sizing:border-box} .centrepin:after{content:'';position:absolute;left:10px;bottom:-3px;width:10px;height:5px;border-radius:50%;background:#0004} .centrepin[hidden]{display:none}
.kpinbtns { display:grid; grid-template-columns:1fr 1fr; gap:8px; } @media (max-width:360px) { .kpinbtns { grid-template-columns:1fr; } }
.kspotline { display:grid; gap:4px; margin:0 0 12px; padding:12px; border-radius:14px; background:var(--gold-soft); } .kking { font-weight:800; color:var(--gold-ink); }
.kmore { margin:2px 0 0; } .kmore summary { min-height:44px; display:flex; align-items:center; }
#cbAmount { font-size:24px; font-weight:800; }
.crownsheet .error { margin:0; }

/* My spots: which business, when the account has more than one. */
.kbizrow { display:flex; flex-wrap:wrap; align-items:end; gap:8px 12px; margin:0 0 12px; }
.kbizpick { display:grid; gap:4px; flex:1 1 180px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.kbizpick select { min-height:44px; padding:0 12px; border:1.5px solid var(--line,#d9dde2); border-radius:12px; background:var(--surface); color:var(--ink); font:700 15px/1.2 inherit; letter-spacing:0; text-transform:none; }
.kbizrow .kghost { width:auto; flex:1 1 160px; min-height:44px; }

/* My spots. */
.khead { margin:18px 0 8px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
#advertiseTitle { margin-top:6px; }
.kspot { gap:6px; } .kspot .kstatus { margin:2px 0; } .kspot > b { font-size:16px; }
.kspot .kmore { margin:0; } .kspot .spotauto { flex-wrap:wrap; }
.spotnotes ul { list-style:none; padding:0; margin:0 0 6px; } .spotnotes li { padding:8px 0; border-top:1px solid var(--line); font-size:13px; line-height:1.45; }
.sronly { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* Hidden businesses in Layers. */
.hiddenbiz { margin:6px 0 12px; padding:10px 12px; border-radius:14px; background:var(--surface); } .hiddenbiz > b { display:block; margin-bottom:4px; font-size:13px; }
.hiddenbiz .alertrow label { min-width:0; overflow-wrap:anywhere; } .hiddenbiz small { display:block; color:var(--muted); }
.hiddenbiz .linkbutton { min-height:44px; }

/* Night mode: the shared tokens (--paper, --surface, --line, --ink, --muted) come from night.css. Only the colours that cannot be tokens are set here. Gold stays gold and text on it stays dark. */
html[data-mode="night"] { --gold-soft:#3a2f08; --knight-blue:#9cc4f7; --knight-gold:#ffe08a; }
html[data-mode="night"] .kghost, html[data-mode="night"] .kinfo, html[data-mode="night"] .kwhat, html[data-mode="night"] .kreadlink { color:var(--knight-blue); }
html[data-mode="night"] .kghost, html[data-mode="night"] .kinfo { border-color:var(--knight-blue); }
html[data-mode="night"] .crown-go:focus-visible, html[data-mode="night"] .kghost:focus-visible, html[data-mode="night"] .kinfo:focus-visible, html[data-mode="night"] .kwhat:focus-visible { outline-color:var(--knight-blue); }
html[data-mode="night"] .kpin { border-color:var(--knight-blue); }
html[data-mode="night"] .kyou, html[data-mode="night"] .kking, html[data-mode="night"] .kstatus-warn { color:var(--knight-gold); }
html[data-mode="night"] .kyou { border-color:var(--gold); }
html[data-mode="night"] .kstatus { background:#12301f; color:#9be3bd; } html[data-mode="night"] .kstatus-warn { background:var(--gold-soft); }
html[data-mode="night"] .boardcard.isspot { background:linear-gradient(180deg,#2b2410,var(--paper)); } html[data-mode="night"] .boardcard.isspot::after { background:var(--paper); }
html[data-mode="night"] .boardcard.isspot .boardtext b { color:var(--ink); } html[data-mode="night"] .boardchip.spot { background:var(--gold-soft); color:var(--knight-gold); }

/* Map pins: the mark on blue over the gold card. */
.kpinmark { display:inline-flex; align-items:center; gap:3px; justify-self:start; padding:1px 7px 1px 4px; border-radius:99px; background:var(--brand-blue); color:#fff; font:900 8.5px/1 Archivo,Manrope,system-ui,sans-serif; font-stretch:80%; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.kpinmark .kcrown { width:11px; height:11px; flex:0 0 auto; }
.boardcard.isspot { padding-top:6px; padding-bottom:6px; } .boardcard.isspot .boardtext { gap:2px; min-width:0; } .boardcard.isspot .boardtext b { -webkit-line-clamp:2; }
.boardcard.isspot .boardchip { padding-top:1px; padding-bottom:1px; } .boardcard.isspot .boardchip.spot { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* A house hold drawn as a ring: the show-pin ring in gold, the crown perched on top, the name on the badge. */
.showpin.kingring { height:88px; --show-color:var(--gold,#f2c230); --show-ink:#3b2a00; transform:scale(var(--board-scale,1)); transform-origin:50% 98%; }
.showpin.kingring .ring { top:16px; border-width:4px; }
.showpin.kingring .badge { top:66px; font-size:10.5px; max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.showpin.kingring .kringcrown { position:absolute; left:50%; top:-2px; z-index:1; width:32px; height:24px; transform:translateX(-50%); display:grid; place-items:center; }
.showpin.kingring .kringcrown .kcrown { width:32px; height:24px; filter:drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
html[data-mode="night"] .showpin.kingring { --show-color:var(--knight-gold,#f2c230); }

/* How it works: the first-time sheet and the step strip at the top of the flow. */
.khow { list-style:none; margin:0 0 16px; padding:0; display:grid; gap:10px; }
.khow-step { display:grid; grid-template-columns:56px 1fr; gap:12px; align-items:center; padding:10px; border-radius:16px; background:var(--surface); }
.khow-art svg { display:block; width:56px; height:56px; }
.khow-copy { display:grid; gap:2px; min-width:0; font-size:14.5px; line-height:1.4; overflow-wrap:anywhere; } .khow-copy b { font-size:15.5px; }
.khow-n { display:inline-grid; place-items:center; width:22px; height:22px; margin-right:4px; border-radius:50%; background:var(--brand-blue); color:#fff; font-size:12px; font-weight:800; }
.ka-bg { fill:#deebfc; stroke:var(--brand-blue); stroke-width:2; } .ka-line { fill:none; stroke:var(--brand-blue); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.ka-red { fill:var(--brand-red); } .ka-white { fill:#fff; } .ka-gold { fill:var(--gold); stroke:#7a5600; stroke-width:1.6; stroke-linejoin:round; } .ka-blue { fill:var(--brand-blue); }
.ka-mark { fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.ka-blade { fill:none; stroke:var(--brand-blue); stroke-width:4.5; stroke-linecap:round; } .ka-hilt { fill:none; stroke:#7a5600; stroke-width:4; stroke-linecap:round; }
.ksteps { list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:0 0 12px; padding:0; }
.ksteps li { display:flex; align-items:center; gap:5px; min-width:0; padding:6px 8px; border-radius:12px; background:var(--surface); color:var(--muted); font-size:12px; font-weight:700; line-height:1.2; overflow-wrap:anywhere; }
.ksteps-n { flex:0 0 auto; display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--line); color:var(--ink); font-size:11px; font-weight:800; }
.ksteps li.on { background:var(--brand-blue); color:#fff; } .ksteps li.on .ksteps-n { background:var(--gold); color:var(--gold-ink); }
.ksteps li.past { color:var(--ink); } .ksteps li.past .ksteps-n { background:var(--brand-blue); color:#fff; }
@media (max-width:360px) { .ksteps li { flex-direction:column; align-items:flex-start; gap:3px; } }
#howGot { margin:0 0 4px; }

/* The gentle shake: transform only, about 600 ms, never under reduced motion. */
@keyframes kshake { 0%,100% { transform:translateX(0) rotate(0); } 15% { transform:translateX(-4px) rotate(-1.2deg); } 30% { transform:translateX(4px) rotate(1.2deg); } 45% { transform:translateX(-3px) rotate(-.8deg); } 60% { transform:translateX(3px) rotate(.8deg); } 80% { transform:translateX(-1px); } }
.crown-go.kshake { animation:kshake 600ms ease-in-out 1; }
@media (prefers-reduced-motion: reduce) { .crown-go.kshake { animation:none; } }
html[data-mode="night"] .ka-bg { fill:#16263d; stroke:var(--knight-blue); } html[data-mode="night"] .ka-line, html[data-mode="night"] .ka-blade { stroke:var(--knight-blue); }
html[data-mode="night"] .ka-blue { fill:var(--knight-blue); } html[data-mode="night"] .khow-n { background:var(--knight-blue); color:#0b1626; }
html[data-mode="night"] .ksteps li.on, html[data-mode="night"] .ksteps li.past .ksteps-n { background:#1d4f94; }
html[data-mode="night"] .ksteps li.past { color:var(--ink); }

/* My spots: simple by default, every detail behind the i button */
#advertiseContent:not(.kshowall) .kdetail, #advertiseContent:not(.kshowall) .kspot [data-act="stepdown"] { display:none; }
.khrow { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0 4px; } .khrow .khead { margin:0 auto 0 0; } .khrow .kline { flex:1; }
.ktoggle { flex:0 0 auto; min-width:44px; min-height:44px; margin:0; }
.ktoggle[aria-expanded="true"] { background:var(--brand-blue); color:#fff; }
.ktoggle:focus-visible { outline:3px solid var(--brand-blue); outline-offset:2px; }
html[data-mode="night"] .ktoggle[aria-expanded="true"] { background:var(--knight-blue); color:var(--paper); }
html[data-mode="night"] .ktoggle:focus-visible { outline-color:var(--knight-blue); }

/* A King's own card: the same branded frame as the bid card (blue header, step strip, gold bar, plain input, gold button). */
.kwonbody { display:grid; gap:10px; }
.kwonbody .kspotline { margin:0; }
.kwonbody .kstatus { margin:0; padding:0; background:none; color:var(--ink); font-size:14px; }
.kwonbody .kstatus-warn, html[data-mode="night"] .kwonbody .kstatus, html[data-mode="night"] .kwonbody .kstatus-warn { background:none; color:var(--ink); }
.kwonbody [data-act="stepdown"] { display:none; }
.kdefend { display:grid; gap:10px; } .kdefendhead { font-size:16px; }
.kwonform { gap:10px; } .kwonform input { min-height:44px; } #cwMax { font-size:24px; font-weight:800; }
.kwonform .kline, .kwonbody .kmore .kwonform { margin:0; }
.kwarn { font-weight:800; }

/* The King sign on the map (crown.signPin): the picture is the sign; it scales with the map like the other pins. */
.ksign { position:absolute; left:50%; bottom:0; display:grid; justify-items:center; width:max-content; max-width:220px; transform:translateX(-50%) translateY(var(--lift,0px)) scale(var(--board-scale,1)); transform-origin:50% 100%; transition:transform .15s cubic-bezier(.16,1,.3,1); cursor:pointer; filter:drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.ksign:hover, .leaflet-marker-icon:focus-visible .ksign { --lift:-3px; }
.ksign-top { position:relative; display:block; }
.ksign-plate { display:grid; place-items:center; box-sizing:border-box; min-width:64px; max-width:220px; min-height:64px; padding:5px; border:3px solid var(--gold,#f2c230); border-radius:16px; background:#111; outline:2px solid #111; }
.ksign img { display:block; height:58px; width:auto; min-width:54px; max-width:206px; object-fit:contain; border-radius:10px; background:#fff; }
.ksign-name { display:block; max-width:206px; padding:4px 8px; color:#fff; font:900 19px/1.05 Archivo,Manrope,system-ui,sans-serif; font-stretch:80%; text-transform:uppercase; letter-spacing:.02em; text-align:center; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.ksign-crown { position:absolute; right:-14px; top:-16px; z-index:2; width:40px; height:30px; transform:rotate(12deg); filter:drop-shadow(0 2px 2px rgba(0,0,0,.4)); } .ksign-crown .kcrown { width:40px; height:30px; }
.ksign-note { margin-top:3px; padding:2px 7px; border-radius:99px; background:#fff; color:#4a5563; font:800 9px/1.3 Archivo,Manrope,system-ui,sans-serif; letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; }
.ksign-tail { width:0; height:0; margin-top:-1px; border-left:9px solid transparent; border-right:9px solid transparent; border-top:14px solid var(--gold,#f2c230); }
.ksign-dot { width:16px; height:16px; margin-top:-5px; box-sizing:border-box; border-radius:50%; border:3px solid #111; background:var(--gold,#f2c230); }
.ksign.ispreview .ksign-plate { border-style:dashed; opacity:.85; }
.ksign .spothide { top:-10px; left:-10px; right:auto; z-index:3; }
html[data-mode="night"] .ksign-plate { outline-color:#000; }

/* Sponsored boards (boards.js adSign): the same sign as a King pin, but a light runs round the edge instead of a crown. */
.ksign.isadsign { --ad-light:#ffe08a; }
.ksign.isadsign .ksign-top { padding:3px; }
.ksign.isadsign .ksign-plate { position:relative; z-index:1; border-color:#2a2a2a; outline:0; }
.ksign.isadsign .ksign-tail { border-top-color:#2a2a2a; } .ksign.isadsign .ksign-dot { background:#2a2a2a; border-color:var(--ad-light); }
.ksign.isadsign .ksign-note { background:#111; color:var(--ad-light); }
.adsign-light { position:absolute; inset:0; border-radius:19px; overflow:hidden; z-index:0; }
.adsign-light::before { content:''; position:absolute; left:50%; top:50%; width:320px; height:320px; margin:-160px 0 0 -160px; background:conic-gradient(from 0deg, transparent 0 62%, var(--ad-light) 82%, #fff 88%, transparent 100%); animation:adlight 2.6s linear infinite; }
.adsign-light::after { content:''; position:absolute; inset:0; border-radius:19px; box-shadow:inset 0 0 0 1px rgba(255,224,138,.35); }
@keyframes adlight { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .adsign-light::before { animation:none; background:var(--ad-light); opacity:.75; } }
/* A tiara for a Queen of the Hill ad, sitting on top of the sign. */
.ksign.hastiara { padding-top:16px; }
.ksign-tiara { position:absolute; left:50%; top:-20px; z-index:3; width:46px; height:29px; transform:translateX(-50%); filter:drop-shadow(0 2px 2px rgba(0,0,0,.4)); } .ksign-tiara svg { width:46px; height:29px; display:block; }
