/* Design refresh v1.1.0 — admin-only; every rule scoped under body.kc-refresh. */
body.kc-refresh{--kc-red:#a4161a} /* 7:1 on #f4f1ea, AA */

/* 1) Verdict stamps — main content only; anything inside .kc-ticker is untouched. */
body.kc-refresh main .verdict:not(.kc-ticker *){--r:-3deg;display:inline-block;color:var(--kc-red);border:2px solid var(--kc-red);border-radius:3px;background:transparent;transform:rotate(var(--r));box-shadow:inset 0 0 0 1px rgba(164,22,26,.25);transition:transform .28s cubic-bezier(.3,1.6,.5,1),opacity .2s}
body.kc-refresh main .verdict:nth-child(2n):not(.kc-ticker *){--r:2deg}
body.kc-refresh main .verdict:nth-child(3n):not(.kc-ticker *){--r:-1.5deg}
body.kc-refresh main .verdict:nth-child(5n):not(.kc-ticker *){--r:3.5deg}
body.kc-refresh main .verdict.verdict-still-open:not(.kc-ticker *){background-color:var(--wp--preset--color--accent-2)}
body.kc-refresh main .verdict.verdict-newly-moved:not(.kc-ticker *){border-style:dashed}
/* SVG stamps: explicit box from the SVG aspect ratio (height 2em). Text stays in the DOM, transparent, for screen readers/copy. */
body.kc-refresh main .verdict:is(.verdict-confirmed,.verdict-falsified,.verdict-pass,.verdict-drop,.verdict-still-open):not(.kc-ticker *){box-sizing:border-box;height:2em;min-height:2em;width:5.154em;min-width:5.154em;padding:0;border:0;box-shadow:none;border-radius:0;color:transparent;text-decoration:none;white-space:nowrap;overflow:hidden;line-height:2em;vertical-align:middle;background:transparent no-repeat center/contain}
body.kc-refresh main .verdict.verdict-confirmed:not(.kc-ticker *){background-image:url(../refresh/stamp-confirmed.svg)}
body.kc-refresh main .verdict.verdict-falsified:not(.kc-ticker *){background-image:url(../refresh/stamp-falsified.svg)}
body.kc-refresh main .verdict.verdict-still-open:not(.kc-ticker *){background-image:url(../refresh/stamp-still-open.svg);width:5.59em;min-width:5.59em}
body.kc-refresh main .verdict.verdict-pass:not(.kc-ticker *){background-image:url(../refresh/stamp-pass.svg);width:3em;min-width:3em}
body.kc-refresh main .verdict.verdict-drop:not(.kc-ticker *){background-image:url(../refresh/stamp-drop.svg);width:3em;min-width:3em}
@media (forced-colors:active){body.kc-refresh main .verdict:not(.kc-ticker *){color:CanvasText;background-image:none;border:2px solid;width:auto;min-width:0;height:auto}}
/* 1.3.1: no hidden initial state. Stamps are always visible; JS's kc-in only adds a short scale 'thunk' (opacity stays 1), and only when motion is allowed. */
@media (prefers-reduced-motion:no-preference){body.kc-refresh main .verdict.kc-in:not(.kc-ticker *){animation:kc-thunk .28s cubic-bezier(.3,1.6,.5,1)}}
@keyframes kc-thunk{from{transform:scale(1.25) rotate(var(--r))}to{transform:rotate(var(--r))}}
@media (prefers-reduced-motion:reduce){body.kc-refresh main .verdict:not(.kc-ticker *){opacity:1!important;transform:rotate(var(--r))!important;transition:none;animation:none!important}}

/* 2) Single posts: paper, coffee rings, staple, confidential strip */
body.kc-refresh.single{background:#f4f1ea url(../refresh/paper-tile.webp) repeat;background-size:512px 512px}
body.kc-refresh.single main article.handoff-box{position:relative;overflow:visible;background-image:url(../refresh/coffee-ring-1.svg),url(../refresh/coffee-ring-2.svg);background-repeat:no-repeat;background-position:right -40px top -30px,left -50px bottom -40px;background-size:clamp(140px,22vw,240px) auto,clamp(110px,16vw,180px) auto}
body.kc-refresh.single main article.handoff-box::before{content:"";position:absolute;top:-14px;left:-14px;width:56px;height:56px;background:url(../refresh/staple.svg) no-repeat center/contain;pointer-events:none}
body.kc-refresh .kc-confidential{margin:0 0 .75rem;padding:.25rem .5rem;border-top:2px solid var(--kc-red);border-bottom:2px solid var(--kc-red);color:var(--kc-red);font-weight:700;font-size:.8125rem;letter-spacing:.18em;text-align:center}

/* 3) Odometer: one cell per meaningful digit, styled after odometer-bezel.svg (bezel #3A3A36->#1C1C1A, windows #141414 with top/bottom shade, amber centre line). */
body.kc-refresh .kc-odo{display:inline-block;vertical-align:middle;margin:0 .25em;line-height:1}
body.kc-refresh .kc-odo-d{display:inline-flex;gap:.3rem;padding:.35rem .45rem;border-radius:.45rem;background:linear-gradient(#3a3a36,#1c1c1a);box-shadow:inset 0 0 0 2px #0e0e0d,0 1px 2px rgba(0,0,0,.35)}
body.kc-refresh .kc-odo-w{position:relative;display:block;width:1.45rem;height:2.15rem;overflow:hidden;border-radius:4px;background:#141414;box-shadow:inset 0 0 0 1px #000}
body.kc-refresh .kc-odo-w::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(rgba(0,0,0,.7),transparent 25%,transparent 49%,rgba(224,160,48,.35) 50%,transparent 51%,transparent 75%,rgba(0,0,0,.7))}
body.kc-refresh .kc-odo-col{display:flex;flex-direction:column;height:1000%;transform:translateY(calc(var(--d) * -10%));transition:transform 1.4s cubic-bezier(.2,.8,.2,1)}
body.kc-refresh .kc-odo-col>span{flex:1;display:flex;align-items:center;justify-content:center;color:#f4f1ea;font-weight:700;font-size:1.25rem;line-height:1}
html.kc-js body.kc-refresh .kc-odo:not(.kc-go) .kc-odo-col{transform:translateY(0)}
@media (prefers-reduced-motion:reduce){html.kc-js body.kc-refresh .kc-odo .kc-odo-col{transform:translateY(calc(var(--d) * -10%));transition:none}}

/* 4) Desk scene */
body.kc-refresh .kc-desk{margin:1.5rem 0}
body.kc-refresh .kc-desk img{display:block;width:100%;height:auto}

/* 5) Trophy wall */
body.kc-refresh .kc-trophies{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;align-items:center;margin:0 0 2rem;padding:2rem 1.25rem;background:#2f4a36 url(../refresh/hall-felt-tile.webp) repeat;background-size:512px 512px;border-radius:4px}
body.kc-refresh .kc-plaque{display:block;flex:0 1 auto;line-height:0;border-radius:8px}
body.kc-refresh .kc-plaque-svg{display:block;width:min(100%,var(--w,560px));height:auto;transition:transform .15s}
body.kc-refresh .kc-plaque:first-child .kc-plaque-svg{aspect-ratio:650/150;--w:650px}
body.kc-refresh .kc-plaque:last-child .kc-plaque-svg{aspect-ratio:556/150;--w:556px}
body.kc-refresh .kc-plaque:hover .kc-plaque-svg{transform:translateY(-2px)}
body.kc-refresh .kc-plaque:focus-visible{outline:3px solid #fbf9f4;outline-offset:4px}
@media (prefers-reduced-motion:reduce){body.kc-refresh .kc-plaque-svg{transition:none}}

/* 6) Sparkline */
body.kc-refresh .kc-spark{margin:.25rem 0 .75rem}
body.kc-refresh .kc-spark img{display:block;width:min(100%,310px);height:auto}
body.kc-refresh .kc-spark figcaption{font-size:.75rem;color:var(--wp--preset--color--contrast-2)}
body.kc-refresh .kc-odo .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap}
