/* Julkalendern (/julkalender). Self-contained: everything is scoped under .jk so the theme's
   heading/button rules and jQuery Mobile do not leak in, and the file goes when the season ends.
   Tokens: dusk sky, plaster facade, window light, the shop green. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
.jk {
  --jk-dusk: #1f3b63;
  --jk-dusk-deep: #162c4b;
  --jk-plaster: #e8e6d2;
  --jk-plaster-shade: #d6d3b8;
  --jk-lamp: #ffcf6b;
  --jk-green: #007f00;
  --jk-ink: #222;
  --jk-muted: #5b6270;
  --jk-display: "Bricolage Grotesque", Verdana, sans-serif;
  max-width: 980px; margin: 0 auto 32px; color: var(--jk-ink); font-size: 15px; line-height: 1.6; text-align: left;
}
.jk *, .jk *::before, .jk *::after { box-sizing: border-box; }
.jk-preview { background: #fff8d6; border: 1px solid #e4d89a; padding: 8px 12px; font-size: 13px; margin: 0 0 8px; border-radius: 4px; }

/* Scene: the painted house. Tokens from the painting: night sky, falu red, snow, candle gold. */
.jk-scene { background: linear-gradient(#1a2149, #232c5a 40%, #2b3566); border-radius: 6px 6px 0 0; padding: 32px 24px 28px; color: #fbfaf6; position: relative; overflow: hidden; }
.jk .jk-scene h1 { font: 800 clamp(34px, 6vw, 56px)/1 var(--jk-display); margin: 0 auto 8px; max-width: 720px; letter-spacing: -0.01em; color: #fff; text-align: left; border: 0; padding: 0; text-transform: none; }
.jk-lead { margin: 0 auto 22px; max-width: 720px; color: #cfd6ee; position: relative; }

/* The house: the dark painting as the base, hotspots positioned in % of it (928 x 1152 reference). */
.jk-stage { position: relative; max-width: 720px; margin: 0 auto; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px #0007; background: #2a3466; }
.jk .jk-house-img { display: block; width: 100%; height: auto; max-width: none; margin: 0; border: 0; }
.jk-snow, .jk-snow::after { position: absolute; top: -10%; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 3;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 60%, #fffd 50%, transparent 51%), radial-gradient(2.5px 2.5px at 55% 35%, #fffc 50%, transparent 51%), radial-gradient(1.5px 1.5px at 75% 80%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 10%, #fffd 50%, transparent 51%), radial-gradient(1px 1px at 45% 90%, #fff 50%, transparent 51%);
  background-size: 220px 260px; }
.jk-snow::after { content: ""; top: 0; background-size: 330px 300px; opacity: .7; }

/* Hotspots */
.jk .jk-spot { position: absolute; -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; min-width: 0; width: auto; height: auto; background: none; cursor: pointer; z-index: 4; font: inherit; color: inherit; text-shadow: none; box-shadow: none; border-radius: 4px; overflow: visible; touch-action: manipulation; }
.jk .jk-spot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.jk .jk-spot.jk-future { cursor: default; }
.jk .jk-spot.jk-obj { border-radius: 50%; }
/* Opened: the lit painting cropped into the window and faded in */
.jk .jk-lit { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; border-radius: 2px; opacity: 0; transition: opacity .9s ease; }
.jk .jk-lit img { position: absolute; max-width: none; pointer-events: none; display: block; margin: 0; border: 0; }
.jk .jk-spot.jk-past .jk-lit, .jk .jk-spot.jk-today.jk-opened .jk-lit { opacity: 1; }
.jk .jk-obj .jk-lit { border-radius: 50%; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.jk .jk-win.jk-past::after, .jk .jk-win.jk-today.jk-opened::after { content: ""; position: absolute; top: -30%; right: -30%; bottom: -30%; left: -30%; border-radius: 50%; background: radial-gradient(closest-side, #ffcf6b40, transparent); pointer-events: none; mix-blend-mode: screen; }
.jk .jk-obj.jk-past::before, .jk .jk-obj.jk-today.jk-opened::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; background: radial-gradient(closest-side, #ffd77a33, transparent 70%); }
.jk .jk-door.jk-past::before, .jk .jk-door.jk-today.jk-opened::before { content: ""; position: absolute; top: -6%; right: -10%; bottom: -6%; left: -10%; border-radius: 40% 40% 4px 4px; box-shadow: 0 0 30px 8px #ffcf6b66; pointer-events: none; }
/* Number tags, like small paper labels pinned to the painting */
.jk .jk-tag { position: absolute; left: -6px; top: -8px; min-width: 1.9em; height: 1.9em; padding: 0 .35em; display: grid; place-items: center; border-radius: 999px; font: 700 clamp(10px, 1.9vw, 15px)/1 var(--jk-display); background: #fffdf5e6; color: #a8261f; box-shadow: 0 1px 3px #0005; transition: background-color .4s, color .4s, transform .3s; }
.jk .jk-obj .jk-tag { left: auto; right: -8px; top: -6px; }
.jk .jk-spot.jk-past .jk-tag { background: #f6c453; color: #4a2a00; }
.jk .jk-spot.jk-today .jk-tag { background: #ffe39a; color: #4a2a00; transform: scale(1.18); }
.jk .jk-spot.jk-future .jk-tag { opacity: .82; }
.jk .jk-spot[aria-pressed="true"] .jk-tag { outline: 2px solid #fff; outline-offset: 2px; }
/* Today: a golden pulse until the door is opened */
.jk .jk-spot.jk-today:not(.jk-opened)::after { content: ""; position: absolute; top: -12%; right: -12%; bottom: -12%; left: -12%; border-radius: inherit; border: 2px solid #ffe39a; box-shadow: 0 0 18px 4px #ffcf6b88; pointer-events: none; }
.jk .jk-win.jk-today:not(.jk-opened)::after, .jk .jk-door.jk-today:not(.jk-opened)::after { border-radius: 6px; top: -8%; right: -8%; bottom: -8%; left: -8%; }

@media (prefers-reduced-motion: no-preference) {
  .jk-snow { animation: jk-fall 14s linear infinite; }
  .jk-snow::after { animation: jk-fall 22s linear infinite; }
  @keyframes jk-fall { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 30px 260px, -20px 260px, 15px 260px, -10px 260px, 25px 260px, 0 260px; } }
  .jk .jk-spot.jk-today:not(.jk-opened)::after { animation: jk-pulse 2.2s ease-in-out infinite; }
  @keyframes jk-pulse { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
}
@media (prefers-reduced-motion: reduce) {
  .jk-snow { display: none; }
  .jk .jk-lit { transition: none; }
}

/* Offer panel */
.jk-panels { max-width: 720px; margin: 22px auto 0; }
.jk-panel { background: #fbfaf6; color: var(--jk-ink); border-radius: 6px; padding: 22px 24px 26px; }
.jk-panel.jk-hidden { display: none; }
.jk-date { font-size: 13px; color: var(--jk-muted); margin: 0 0 6px; }
.jk .jk-panel h2 { font: 700 28px/1.15 var(--jk-display); margin: 0 0 12px; color: var(--jk-ink); text-align: left; border: 0; padding: 0; text-transform: none; text-wrap: balance; }
.jk-panel p { margin: 0 0 16px; max-width: 42ch; }
.jk-img { display: block; max-width: 100%; height: auto; border-radius: 4px; margin: 0 0 14px; }
.jk-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.jk-code { font: 700 20px/1 var(--jk-display); letter-spacing: .04em; border: 2px dashed var(--jk-green); color: var(--jk-green); padding: 8px 12px; border-radius: 4px; }
.jk .jk-copy { font: inherit; font-size: 13px; background: none; border: 0; color: var(--jk-green); text-decoration: underline; cursor: pointer; padding: 4px; margin: 0; box-shadow: none; }
.jk .jk-cta, .jk a.jk-cta { display: inline-block; background: var(--jk-green); color: #fff !important; text-decoration: none; font: bold 15px/1.3 Verdana, Arial, sans-serif; padding: 12px 20px; border-radius: 4px; border: 0; cursor: pointer; margin: 0; text-shadow: none; box-shadow: none; width: auto; height: auto; }
.jk .jk-cta:hover { background: #006800; }
.jk .jk-cta:focus-visible, .jk .jk-copy:focus-visible, .jk a.jk-link:focus-visible { outline: 3px solid var(--jk-lamp); outline-offset: 2px; }
.jk a.jk-link { color: var(--jk-green); text-decoration: underline; font-size: 14px; }
.jk-use { margin: 0; }
.jk-fine { font-size: 12px; color: var(--jk-muted); margin: 14px 0 0 !important; }
.jk-expired { display: inline-block; background: #eee; color: #555; font-size: 13px; padding: 4px 10px; border-radius: 3px; margin: 0 0 12px; }
.jk-note { font-size: 13px; background: #eef7ee; border-left: 3px solid var(--jk-green); padding: 8px 12px; }
.jk-replaces { font-size: 13px; color: var(--jk-muted); margin: -6px 0 12px !important; }

/* Reminder */
.jk-remind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 24px; margin-top: 20px; }
.jk .jk-remind h3 { font: 700 21px/1.2 var(--jk-display); margin: 0 0 4px; color: var(--jk-ink); text-align: left; text-transform: none; }
.jk-remind p { margin: 0; color: var(--jk-muted); font-size: 14px; }
.jk-remind-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.jk .jk-remind-form input[type=email] { font: inherit; padding: 11px 12px; border: 1px solid #bbb; border-radius: 4px; flex: 1; min-width: 0; height: auto; margin: 0; }
.jk-consent { flex-basis: 100%; font-size: 12px; color: var(--jk-muted); display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.jk-consent input { margin: 2px 0 0; }
.jk .jk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jk .jk-remind-msg { flex-basis: 100%; color: var(--jk-ink); }
.jk .jk-remind-msg.jk-error { color: #b00020; }

.jk-terms { font-size: 12px; color: var(--jk-muted); margin: 18px 4px 0; max-width: 80ch; }

@media (max-width: 760px) {
  .jk-scene { padding: 24px 14px 0; border-radius: 0; }
  .jk-stage { border-radius: 0; margin: 0 -14px; }
  .jk .jk-tag { font-size: 11px; }
  .jk-panel { border-radius: 0; margin: 0 -14px; }
  .jk-remind { grid-template-columns: 1fr; border-radius: 0; }
  .jk-terms { margin: 14px 12px 0; }
}
