/* The Christmas dinner planner (/julemiddag/). Only what is this page's own; the page head, section heads,
   panel, rhythm, colours and type come from the skeleton in /styles.css (--sp-*, --page-top, --hairline …). */

.jm-page .sk-head-center { margin-bottom: var(--head-content-gap); }

/* A quiet shortcut down to «Sådan er det regnet», in the style of the page's other shortcuts. */
.jm-how-link { margin: var(--sp-3) 0 0; font: 600 .92rem/1.3 var(--sans); }
.jm-how-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--terra-deep); text-decoration: underline; text-decoration-color: rgba(184, 95, 40, .35); text-underline-offset: .2em; }
.jm-how { scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }

/* ── The tool: the choices on top in full width, the result under them in full width ── */
.jm-tool { width: 100%; }
.jm-form { display: grid; gap: var(--sp-5); padding: var(--sp-5); border: 1px solid var(--card-line); border-radius: var(--card-radius); background: var(--card-bg); box-shadow: var(--card-shadow); }
/* A wide screen: a compact band, guests, main course and time in one row, the sides in the next. */
@media (min-width: 961px) {
  .jm-form { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 200px); gap: var(--sp-4) var(--sp-6); align-items: start; }
  .jm-form-head, .jm-form .jm-sides { grid-column: 1 / -1; }
  .jm-form .jm-sides { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
  .jm-form .jm-sides .jm-label { margin: 0; }
  .jm-form .jm-sides .jm-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
  .jm-form .jm-sides .jm-hint { margin: 0; }
}
/* The form's head: «Middagen», and the choices in short to the right of it (under it when there is no room). */
.jm-form-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-5); }
.jm-form-title { margin: 0; font: 700 var(--h3-card)/1.2 var(--serif); color: var(--ink); }
.jm-summary { margin: 0; font: 600 .95rem/1.45 var(--sans); color: var(--deep-soft); }
.jm-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.jm-label { display: block; margin: 0 0 var(--sp-2); padding: 0; font: 600 .92rem/1.3 var(--sans); color: var(--deep); }
.jm-hint { margin: var(--sp-2) 0 0; font-size: .86rem; line-height: 1.4; color: var(--muted); }

/* Guests: − number + */
.jm-stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: stretch; border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: #fff; overflow: hidden; transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
/* The typing fields (guests, dinner time) show focus as the link import's field does: the frame turns terra with a
   soft halo, for mouse and keyboard alike. The buttons, the main course and the sides keep their outline for the keyboard. */
.jm-select:focus { outline: none; }
:root:not([data-input="mus"]) .jm-stepper:focus-within, :root:not([data-input="mus"]) .jm-select:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(212, 118, 58, .18); }
.jm-stepbtn { min-height: 48px; font: 500 1.5rem/1 var(--sans); color: var(--terra-deep); }
@media (hover: hover) { .jm-stepbtn:hover { background: var(--cream-warm); } }
.jm-stepbtn:focus-visible { outline-offset: -3px; }
.jm-stepper input { width: 100%; min-width: 0; min-height: 48px; border: 0; border-inline: 1px solid var(--hairline); background: transparent; font: 600 1.2rem/1 var(--sans); color: var(--ink); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.jm-stepper input::-webkit-outer-spin-button, .jm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jm-stepper input:focus, .jm-stepper input:focus-visible { outline: none; }

/* Main course: one segmented row */
.jm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-1); padding: var(--sp-1); border-radius: var(--radius-sm); background: var(--cream-warm); }
.jm-seg label { position: relative; display: block; }
.jm-seg input, .jm-chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.jm-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--sp-2); border-radius: 9px; font: 600 .92rem/1.2 var(--sans); color: var(--deep-soft); text-align: center; transition: background var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
/* .is-on is set by the script as well: WebKit does not restyle «:checked + span» when a radio is set from the address. */
.jm-seg input:checked + span, .jm-seg label.is-on span { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-sm); }
.jm-seg input:focus-visible + span, .jm-chips input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }

.jm-select { transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; width: 100%; min-height: 48px; padding: 0 var(--sp-7) 0 var(--sp-4); border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23b85f28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right var(--sp-4) center / 16px no-repeat; font: 600 1.05rem/1 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }


/* Sides: toggles */
.jm-chips { display: grid; gap: var(--sp-2); }
.jm-chips label { position: relative; display: block; }
.jm-chips span { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: #fff; font: 500 .95rem/1.3 var(--sans); color: var(--deep); transition: border-color var(--t-hover) ease, background var(--t-hover) ease; }
.jm-chips span::before { content: ""; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--hairline-strong); border-radius: 6px; background: #fff center / 14px no-repeat; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.jm-chips input:checked + span, .jm-chips label.is-on span { border-color: rgba(184, 95, 40, .45); background: #fffaf4; }
.jm-chips input:checked + span::before, .jm-chips label.is-on span::before { border-color: var(--terra-deep); background-color: var(--terra-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ── The plan ── */
.jm-result { min-width: 0; margin-top: var(--sp-6); }
/* Where the result starts, one line: the choices in short, the two shortcuts, print and copy. */
/* «Retterne»'s head line carries the shortcuts and the two buttons; the line under it is the only one here. */
.jm-dishes-block .sk-sec-head { align-items: center; }
.jm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); }
/* The hint and the copy status share one line of a fixed height, so the status never moves the cards. */
.jm-dishes-sub { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0 var(--sp-5); margin: 0 0 var(--sp-3); }
.jm-dishes-sub .jm-dishes-hint, .jm-dishes-sub .jm-status { margin: 0; font-size: .9rem; line-height: 1.4; min-height: 1.4em; }
.jm-result[hidden] { display: none; }
.jm-print-head { margin: 0 0 var(--sp-4); font: 600 .92rem/1.45 var(--sans); color: var(--deep-soft); }
.jm-screen-only { display: inline; }
.jm-print-only { display: none; }
.jm-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.jm-btn { min-height: 44px; padding-inline: var(--sp-5); }
.jm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jm-status { min-height: 1.4em; margin: var(--sp-2) 0 0; font-size: .9rem; color: var(--leaf); }
.jm-jump { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); margin: 0; font: 600 .92rem/1.3 var(--sans); }
.jm-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--terra-deep); text-decoration: underline; text-decoration-color: rgba(184, 95, 40, .35); text-underline-offset: .2em; }
.jm-copy-fallback { display: block; width: 100%; min-height: 160px; margin: var(--sp-2) 0 0; padding: var(--sp-3); border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); font: .9rem/1.5 var(--sans); }
.jm-block { margin-top: var(--sp-7); scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }
.jm-block:first-of-type { margin-top: 0; }
.jm-block .sk-sec-head h2 { font-size: var(--h2-section); }

/* The dishes: small cards. The card's top is a press button (it filters the shopping list), the link sits under it. */
.jm-dishes-hint { font-size: .9rem; color: var(--muted); }
.jm-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-3); }
.jm-dish { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--card-line); border-radius: var(--card-radius); background: var(--card-bg); transition: border-color var(--t-hover) ease, background var(--t-hover) ease; }
/* .is-on is set by the script: WebKit does not restyle «:has([aria-pressed])» after a change from the script. */
.jm-dish.is-on { border-color: var(--terra-deep); background: #fffaf4; box-shadow: inset 0 0 0 1px var(--terra-deep); }
.jm-dish-btn { display: grid; gap: 2px; width: 100%; min-height: 64px; padding: var(--sp-3) var(--sp-4) var(--sp-2); border-radius: var(--card-radius) var(--card-radius) 0 0; text-align: left; }
.jm-dish-btn:focus-visible { outline: 2px solid var(--terra); outline-offset: -2px; }
.jm-dish-name { font: 700 1rem/1.25 var(--serif); color: var(--ink); }
.jm-dish-amount { font-size: .9rem; line-height: 1.4; color: var(--deep-soft); }
.jm-dish-btn[aria-pressed="true"] .jm-dish-name::after { content: " ✓"; color: var(--terra-deep); }
.jm-recipe { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; padding: 0 var(--sp-4) var(--sp-1); font: 600 .86rem/1.3 var(--sans); color: var(--terra-deep); }
.jm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-4); margin: 0 0 var(--sp-3); font: 600 .95rem/1.4 var(--sans); color: var(--ink); }
.jm-filter[hidden] { display: none; }
.jm-filter-all { min-height: 44px; font: 600 .92rem/1 var(--sans); color: var(--terra-deep); text-decoration: underline; text-decoration-color: rgba(184, 95, 40, .35); text-underline-offset: .2em; }
.jm-recipe span { transition: transform var(--t-settle) var(--ease-land); }
@media (hover: hover) { .jm-recipe:hover span { transform: translateX(4px); } }
.jm-note { margin: var(--sp-2) 0 0; padding-left: var(--sp-3); border-left: 2px solid var(--peach); font-size: .88rem; line-height: 1.45; color: var(--deep-soft); }

/* Shopping list: departments, check boxes */
/* The cards in two columns of about the same height (the script splits them), so no card stands as a tall empty column. */
.jm-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); align-items: start; }
.jm-dept-col:empty { display: none; }
.jm-dept { break-inside: avoid; margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-5) var(--sp-2); border: 1px solid var(--card-line); border-radius: var(--card-radius); background: var(--card-bg); }
.jm-dept h3 { margin: 0; padding: var(--sp-1) 0 var(--sp-2); border-bottom: 1px solid var(--hairline-strong); font: 600 .74rem/1.35 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--terra-deep); }
.jm-dept ul { margin: 0; padding: 0; list-style: none; }
.jm-dept li:last-child label { border-bottom: 0; }
.jm-dept label { display: flex; align-items: flex-start; gap: var(--sp-3); min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: .97rem; line-height: 1.4; color: var(--deep); cursor: pointer; }
.jm-dept input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--terra-deep); }
.jm-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: var(--sp-3); flex: 1; min-width: 0; }
.jm-amt { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.jm-good { min-width: 0; overflow-wrap: break-word; }
.jm-pack { color: var(--muted); font-size: .9rem; }
.jm-dept input:checked + .jm-row, .jm-dept input:checked + .jm-row .jm-amt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-soft); }

/* Timeline: the whole section (head and steps) at a reading width, in the middle of the page */
.jm-plan { max-width: 40rem; margin-inline: auto; }
.jm-day-card { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-5) var(--sp-1); border: 1px solid var(--card-line); border-radius: var(--card-radius); background: var(--card-bg); }
.jm-plan-day { margin: 0; padding: var(--sp-1) 0 var(--sp-2); border-bottom: 1px solid var(--hairline-strong); font: 600 .74rem/1.35 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--terra-deep); }
.jm-steps { margin: 0; padding: 0; list-style: none; }
.jm-step { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--hairline); }
.jm-step:last-child { border-bottom: 0; }
.jm-when { display: flex; flex-direction: column; margin: 0; }
.jm-time { font: 700 1.02rem/1.45 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.jm-dur { font: 600 .8rem/1.35 var(--sans); font-variant-numeric: tabular-nums; color: var(--terra-deep); }
.jm-day { display: block; font: 600 .72rem/1.3 var(--sans); color: var(--muted); }
.jm-step-body p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--deep); }
.jm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px !important; }
.jm-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 600 .74rem/1.4 var(--sans); white-space: nowrap; }
.jm-tag.is-oven { background: #f6e3d2; color: var(--terra-deep); }
.jm-tag.is-passive { background: var(--panel-bg); color: var(--muted); }
/* A passive step runs on in the background: a quiet line down its side, softer type, its span instead of a length. */
.jm-step.is-passive { margin-left: calc(-1 * var(--sp-5)); padding-left: calc(var(--sp-5) - 3px); border-left: 3px solid var(--hairline-strong); background: linear-gradient(90deg, rgba(236, 226, 211, .45), rgba(236, 226, 211, 0) 60%); }
.jm-step.is-passive .jm-time { color: var(--deep-soft); }
.jm-step.is-passive .jm-dur { color: var(--muted); }
.jm-step.is-passive .jm-text { color: var(--deep-soft); }
.jm-step.is-hale .jm-text { color: var(--deep); }
.jm-step.is-dinner .jm-step-body p { font: 700 1.1rem/1.4 var(--serif); color: var(--ink); }
.jm-empty { margin: 0; color: var(--muted); }
.jm-noscript { align-self: flex-start; max-width: var(--read-col); margin: var(--sp-5) 0 0; padding: var(--sp-4); border-radius: var(--radius-sm); background: var(--panel-bg); }

/* ── «Sådan er det regnet»: the same left edge as the rest; the text at a reading width, the tables full ── */
.jm-how { width: 100%; }
.jm-how .sk-sec-head h2 { font-size: var(--h2-section); }
.jm-how-text { max-width: var(--read-col); }
/* A wide screen: the prose on the left, the amounts per number of guests pressed together on the right. */
@media (min-width: 1180px) {
  .jm-how-grid { display: grid; grid-template-columns: minmax(0, var(--read-col)) minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
  .jm-how-data .jm-tables-lede { margin-bottom: var(--sp-4); font-size: .92rem; line-height: 1.55; }
  .jm-how-data .jm-table-wrap { margin-bottom: var(--sp-5); }
  .jm-how-data .jm-table { font-size: .86rem; line-height: 1.3; }
  .jm-how-data .jm-table caption { font-size: .84rem; }
  .jm-how-data .jm-table th, .jm-how-data .jm-table td { padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; }
  .jm-how-data .jm-table thead th { font-size: .76rem; vertical-align: bottom; }
}
.jm-how h3 { margin: var(--sp-6) 0 var(--sp-2); font: 700 1.2rem/1.3 var(--serif); color: var(--ink); }
.jm-how-text h3:first-child { margin-top: 0; }
.jm-how-text h3:not(:first-child) { padding-top: var(--sp-5); border-top: 1px solid var(--hairline); }
.jm-how-data { padding: var(--sp-4) var(--sp-5) var(--sp-2); border: 1px solid var(--card-line); border-radius: var(--card-radius); background: var(--card-bg); }
.jm-how-data .jm-how-tables { margin-top: 0; }
.jm-how-data .jm-table-wrap:last-child { margin-bottom: var(--sp-3); }
.jm-table tbody tr:last-child th, .jm-table tbody tr:last-child td { border-bottom: 0; }
.jm-how-text p { margin: 0 0 var(--sp-3); font-size: 1.03rem; line-height: 1.65; color: var(--deep-soft); }
.jm-tables-lede { max-width: var(--read-col); margin: 0 0 var(--sp-5); font-size: .98rem; line-height: 1.6; color: var(--deep-soft); }
.jm-tables-lede a { color: var(--terra-deep); text-decoration: underline; text-decoration-color: rgba(184, 95, 40, .35); text-underline-offset: .2em; }
.jm-table-wrap { margin: 0 0 var(--sp-6); max-width: 100%; overflow-x: auto; }
.jm-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.jm-table caption { caption-side: top; margin: 0 0 var(--sp-2); text-align: left; font-size: .9rem; color: var(--muted); }
.jm-table th, .jm-table td { padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.jm-table thead th { font: 600 .74rem/1.35 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--terra-deep); border-bottom: 1px solid var(--hairline-strong); }
.jm-table tbody th { font-weight: 700; color: var(--ink); }
.jm-table td { color: var(--deep); }

.jm-app { text-align: center; }
.jm-app > p { max-width: 52ch; margin: 0 auto var(--sp-5); font-size: 1.02rem; line-height: 1.6; color: var(--deep-soft); }
.jm-app .sk-panel > h2, .jm-app > h2 { margin-bottom: var(--sp-3); }
.jm-app-actions { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }

/* ── Phone ── */
@media (max-width: 640px) {
  .jm-form { padding: var(--sp-4); gap: var(--sp-4); }
  .jm-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .jm-dish-btn { padding: var(--sp-3) var(--sp-3) var(--sp-1); }
  .jm-recipe { padding: 0 var(--sp-3) var(--sp-1); }
  .jm-depts { grid-template-columns: minmax(0, 1fr); }
  .jm-table thead th { letter-spacing: 0; text-transform: none; font-size: .76rem; }
  .jm-dept, .jm-day-card { padding-inline: var(--sp-4); }
  .jm-row { grid-template-columns: 5.4rem minmax(0, 1fr); gap: var(--sp-2); }
  .jm-step.is-passive { margin-left: calc(-1 * var(--sp-4)); padding-left: calc(var(--sp-4) - 3px); }
  .jm-how-data { padding-inline: var(--sp-4); }
  .jm-dishes-block .jm-tools { flex: 1 1 100%; gap: var(--sp-2) var(--sp-4); }
  .jm-step { grid-template-columns: 4.4rem minmax(0, 1fr); gap: var(--sp-3); }
  .jm-table { font-size: .88rem; }
  .jm-table th, .jm-table td { padding-right: var(--sp-2); }
  .jm-table thead th { font-size: .76rem; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .jm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .jm-seg span, .jm-chips span, .jm-chips span::before, .jm-recipe span { transition: none; }
}

/* ── Print: two clean A4 pages, the shopping list and the timeline, with the choices on top ── */
@media print {
  /* No paper size: the reader's own (A4 in Denmark, US Letter in America); both fit the plan on two pages. */
  @page { margin: 10mm 12mm; }
  html, body { background: #fff !important; }
  body { font-size: 9.5pt; }
  .ed-header, .site-header, .footer, .sk-head, .jm-form, .jm-actions, .jm-jump, .jm-status, .jm-copy-fallback, .jm-how-link, .jm-dishes-block, .jm-filter, .jm-screen-only, .is-filtered #jm-indkoeb, .jm-js .jm-how, .jm-app, noscript { display: none !important; }
  .sk-main { padding: 0; }
  .container { max-width: none; padding: 0; }
  .jm-result { margin: 0; }
  #jm-tidsplan { max-width: none; }
  .jm-block, .jm-block:first-of-type { margin: 0; }
  span.jm-print-only { display: inline; margin: 0; font-size: inherit; }
  .jm-plan { max-width: none; }
  .jm-print-only { display: block; margin: 0 0 3mm; font-size: 8.5pt; line-height: 1.35; color: #000; }
  .jm-list { break-after: page; }
  .sk-sec-head { margin-bottom: 3mm; padding-bottom: 2mm; border-bottom-color: #000; }
  .jm-block .sk-sec-head h2 { font-size: 15pt; }
  .sk-sec-n { color: #333; }
  .jm-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10mm; }
  .jm-dept, .jm-day-card { margin: 0 0 4mm; padding: 0; border: 0; border-radius: 0; background: none; }
  .jm-day-card { margin: 0; }
  .jm-plan-day { border-bottom: 0; }
  .jm-dept h3 { padding: 0 0 1mm; border-bottom-color: #000; }
  .jm-row { grid-template-columns: 17mm minmax(0, 1fr); gap: 2mm; }
  .jm-pack { font-size: 8.5pt; color: #333; }
  .jm-step.is-passive { margin-left: 0; padding-left: 0; border-left: 0; background: none; }
  .jm-when { display: block; }
  .jm-dur { display: block; font-size: 6.6pt; color: #333 !important; }
  .jm-tag { padding: 0; font-size: 6.8pt; color: #333 !important; background: none !important; }
  .jm-tag.is-passive { display: none; }
  .jm-tags { display: inline !important; margin: 0 1.5mm 0 0 !important; }
  .jm-dept h3, .jm-plan-day { color: #000; }
  .jm-dept label { min-height: 0; padding: 1.4mm 0; font-size: 9.5pt; border-bottom-color: #ccc; }
  .jm-dept input { width: 11px; height: 11px; -webkit-appearance: none; appearance: none; border: 1px solid #000; border-radius: 2px; background: #fff; }
  .jm-dept input:checked + .jm-row, .jm-dept input:checked + .jm-row .jm-amt { color: #000; text-decoration: none; }
  /* The timeline in two columns, so a full juleaften (30-odd steps) stays on one page. */
  #jm-tidsplan { columns: 2; column-gap: 7mm; }
  .jm-plan-day { margin: 2mm 0 .5mm; font-size: 7.4pt; break-after: avoid; }
  .jm-step { grid-template-columns: 10mm minmax(0, 1fr); gap: 2mm; padding: .7mm 0; border-bottom-color: #ccc; break-inside: avoid; }
  .jm-time { font-size: 7.8pt; line-height: 1.22; color: #000; }
  .jm-step-body p { font-size: 7.4pt; line-height: 1.22; color: #000; }
  .jm-step-body { font-size: 7.4pt; line-height: 1.22; }
  .jm-step-body > p { display: inline; }
  .jm-step-body .jm-note { display: block; margin-top: .6mm; font-size: 7.4pt; line-height: 1.25; padding-left: 2mm; }
  .jm-day { font-size: 6.4pt; }
  .jm-step-body .jm-meta, .jm-step.is-oven .jm-meta { margin: 0 0 0 1.5mm; font-size: 7.2pt; color: #333; white-space: nowrap; }
  .jm-note { font-size: 8pt; border-left-color: #999; }
  .jm-step.is-dinner .jm-step-body p { font-size: 10pt; }
  a { color: #000 !important; }
}

/* ── The English page (zimmerfood.com/christmas-dinner-planner/): the US measure stands under the metric one in the
   amount column, so the column is a little wider than the Danish, and «about» fits on one line. ── */
.jm-nw { white-space: nowrap; }
.jm-us { display: block; font-weight: 500; font-size: .86rem; color: var(--muted); white-space: nowrap; }
html[lang="en"] .jm-row { grid-template-columns: 7.4rem minmax(0, 1fr); }
/* «until 12:25 pm» on one line under the time. */
html[lang="en"] .jm-step { grid-template-columns: 6.4rem minmax(0, 1fr); }
html[lang="en"] .jm-dur { white-space: nowrap; }
@media (max-width: 640px) {
  html[lang="en"] .jm-row { grid-template-columns: 6.6rem minmax(0, 1fr); }
  html[lang="en"] .jm-step { grid-template-columns: 5.6rem minmax(0, 1fr); }
}
@media print {
  html[lang="en"] .jm-row { grid-template-columns: 21mm minmax(0, 1fr); }
  /* On paper «until 12:25 pm» may take two lines; the text keeps its width, so the plan stays on one page. */
  html[lang="en"] .jm-step { grid-template-columns: 12.5mm minmax(0, 1fr); }
  html[lang="en"] .jm-dur { white-space: normal; }
  /* The English text runs longer (and US Letter is shorter than A4): a little tighter, same type. */
  html[lang="en"] .jm-step { padding: .4mm 0; }
  html[lang="en"] .jm-step-body, html[lang="en"] .jm-step-body p { font-size: 7.2pt; line-height: 1.15; }
  html[lang="en"] .jm-step-body .jm-note { margin-top: .3mm; font-size: 7.2pt; line-height: 1.15; }
  .jm-us { font-size: 7.6pt; color: #333; }
}
