/* myfarmmap.ie — its own brand, so its own sheet (templates/myfarmmap).
   Light by design: a present, and a first screen management want light,
   with ink for the header, one band lower down and the foot.
   Colours: the print's hedge green as the accent, gorse for the one thing
   to press on a screen. Type: Poppins for headings, as the print's title;
   Roboto for the rest.

   The system, so a new page doesn't invent its own:
   - spacing on a 4 px scale (--s1 … --s9); sections breathe --section;
   - one type scale (--fs-*), fluid between a phone and a desktop;
   - one page width (--wrap) that the header shares, and a narrow one
     (--narrow) for single-task pages;
   - two radii: --r-ctl for controls, --r-card for cards; pills are round;
   - one border (1 px --line); a selected thing gets 2 px of hedge green;
   - two shadows: --sh-sm for cards, --sh-lg for the map sheets and frames;
   - breakpoints at 600, 900 and 1200 (the maker keeps its own 768). */
.mfm {
  --ground: #FBFAF4; --surface: #FFFFFF; --soft: #EEF3E6; --wall: #EDEBE3;
  --ink: #17231B; --ink-2: #2C3A2F; --muted: #4A5749; --line: #DCE1D3; --line-2: #C9D0C2;
  --accent: #4E7F17; --accent-deep: #3B6112; --accent-light: #8CC63F;
  --gorse: #F2B82E; --gorse-deep: #C48E0E; --gorse-ink: #2A2104;
  --warn-bg: #FFF4D6; --warn-ink: #4A3700; --warn-line: #B45309;
  --display: Poppins, "Segoe UI", system-ui, sans-serif;
  --body: Roboto, "Segoe UI", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(48px, 7vw, 96px);
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1200px; --narrow: 640px;

  --fs-display: clamp(2.5rem, 1.55rem + 3.4vw, 4rem);
  --fs-h1: clamp(1.875rem, 1.45rem + 1.4vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 1.38rem + .45vw, 1.75rem);
  --fs-h3: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);
  --fs-lead: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);
  --fs-body: clamp(1rem, .97rem + .12vw, 1.0625rem);
  --fs-label: .9375rem;
  --fs-small: .875rem;
  --fs-micro: .8125rem;

  --r-ctl: 10px; --r-card: 16px;
  --sh-sm: 0 1px 2px rgba(23,35,27,.05), 0 6px 18px -12px rgba(23,35,27,.28);
  --sh-lg: 0 2px 6px rgba(23,35,27,.08), 0 28px 56px -28px rgba(23,35,27,.5);

  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.mfm *, .mfm *::before, .mfm *::after { box-sizing: border-box; }
/* hidden wins over any display a class gives. */
.mfm [hidden] { display: none !important; }
.mfm img { max-width: 100%; height: auto; display: block; }
.mfm h1, .mfm h2, .mfm h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.mfm h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
.mfm h2 { font-size: var(--fs-h2); }
.mfm h3 { font-size: var(--fs-h3); }
.mfm p { margin: 0; }
.mfm b, .mfm strong { font-weight: 600; }
/* :where keeps a plain link's colour below every button's. */
.mfm :where(a) { color: var(--accent-deep); font-weight: 500; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mfm :where(a):hover { color: var(--accent); }
.mfm :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mfm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The page's column, the header's too. */
.mfm-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* A site page: header, the page, and the foot held to the bottom. */
.mfm-site { min-height: 100dvh; display: flex; flex-direction: column; }
.mfm-main { flex: 1; width: 100%; }

/* ── Type ──────────────────────────────────────────────────────── */
.mfm-kick { font: 600 var(--fs-micro)/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.mfm-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.mfm-hint { color: var(--muted); font-size: var(--fs-small); }
.mfm-small { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.mfm-quiet { font-weight: 400; color: var(--muted); }
.mfm-label { font: 600 var(--fs-label)/1.25 var(--body); color: var(--ink); margin-bottom: -6px; }
.mfm-link { align-self: flex-start; font-weight: 600; }

/* ── Header ────────────────────────────────────────────────────── */
.mfm-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 64px; padding-block: 10px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: var(--ink); color: #F4F6EE; position: sticky; top: 0; z-index: 20; }
.mfm-name { display: flex; align-items: center; min-height: 44px; flex: none; }
/* The mark at 28 px, the colour-on-dark version: the greens sit better on
   ink than on the ground. */
.mfm-name img { height: 28px; width: auto; }
.mfm-top-nav { display: flex; align-items: center; gap: var(--s4); }
.mfm-top-link, .mfm-top-basket { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px;
  justify-content: center; font: 600 15px/1 var(--body); color: #F4F6EE; text-decoration: none; }
.mfm-top-link:hover, .mfm-top-basket:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mfm-top-basket svg { flex: none; }
.mfm-top-cta { font: 600 15px/1 var(--body); color: var(--gorse-ink); text-decoration: none; min-height: 44px; white-space: nowrap;
  display: inline-flex; align-items: center; border-radius: var(--r-ctl); padding: 0 16px; background: var(--gorse); }
/* On the way to paying the page has its own button. */
.mfm-funnel .mfm-top-cta, .mfm-funnel .mfm-menu-go { display: none; }
.mfm-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent-light); color: var(--ink); font: 700 13px/1 var(--body); }
/* The menu: on a phone only, where the guide and the maker's button
   don't fit beside the name. A sheet under the header. */
.mfm-menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  color: #F4F6EE; cursor: pointer; border-radius: var(--r-ctl); }
.mfm-menu > summary::-webkit-details-marker { display: none; }
.mfm-menu > summary:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.mfm-menu-shut, .mfm-menu[open] .mfm-menu-open { display: none; }
.mfm-menu[open] .mfm-menu-shut { display: block; }
.mfm-menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column;
  padding: var(--s3) var(--gutter) var(--s5); background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -12px rgba(20,30,20,.35); }
.mfm-menu-panel > a:not(.mfm-btn) { display: flex; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line);
  font: 600 18px/1.2 var(--body); color: var(--ink); text-decoration: none; }
.mfm-menu-go { margin-block: var(--s2) var(--s3); }
.mfm-menu-panel p { margin-top: var(--s4); font-size: 15px; color: var(--muted); }
/* Wide enough for all of it: the words beside the name, no menu. */
@media (max-width: 759px) {
  .mfm-wide { display: none !important; }
  .mfm-name img { height: 24px; }
  .mfm-top-nav { gap: var(--s2); }
  .mfm-top { min-height: 56px; padding-block: 6px; }
}
@media (min-width: 760px) { .mfm-menu { display: none; } }

/* ── Buttons ───────────────────────────────────────────────────── */
.mfm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 12px 24px; border-radius: var(--r-ctl); font: 600 17px/1.2 var(--body); text-decoration: none;
  border: 0; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.mfm-btn-go { background: var(--gorse); color: var(--gorse-ink); box-shadow: 0 3px 0 var(--gorse-deep); }
.mfm-btn-go:hover { background: #F5C247; color: var(--gorse-ink); }
.mfm-btn-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gorse-deep); }
.mfm-btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.mfm-btn-quiet:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }
.mfm-btn-small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.mfm-btn-wide { width: 100%; }
.mfm-btn:disabled { cursor: default; box-shadow: none; transform: none; }
.mfm-btn-go:disabled { background: #E4E6DF; color: #5C6158; }
.mfm-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.mfm-link-btn { align-self: flex-start; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
  font: 600 16px/1.2 var(--body); color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mfm-link-btn:hover { color: var(--accent); }
.mfm-link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; opacity: .6; }

/* ── Surfaces ──────────────────────────────────────────────────── */
.mfm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--sh-sm); }
@media (max-width: 599px) { .mfm-card { padding: var(--s4); } }
.mfm-note-box { background: var(--soft); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s1); font-size: 15px; }
.mfm-msg { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); font-size: 15px; }
.mfm-msg.mfm-msg-calm { background: var(--soft); color: var(--ink); }
.mfm-xmas { font-size: 15px; background: var(--soft); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); }
.mfm-note { display: flex; align-items: center; gap: var(--s2); font-size: 15px; }
.mfm-note svg { flex: none; }

/* ── Home ──────────────────────────────────────────────────────── */
.mfm-hero { display: grid; grid-template-columns: 1fr; gap: var(--s6); padding-block: var(--s6) var(--section); align-items: center; }
.mfm-hero-text { display: flex; flex-direction: column; gap: var(--s4); }
.mfm-hero h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.03em; }
.mfm-hero .mfm-actions { margin-top: var(--s2); }
/* On a phone and a tablet the picture comes first, and the words sit
   under it on the same centre line. */
.mfm-hero-art { order: -1; }
/* The framed print on the wall, and a mug of the same farm standing in
   front of it, bottom left, over the corner of the frame. */
.mfm-hero-wall { position: relative; max-width: 360px; margin-inline: auto; padding: 0 0 4% 22%; }
/* On a phone small enough that the words and the button still show on
   the first screen. */
@media (max-width: 599px) { .mfm-hero-wall { max-width: 270px; } .mfm-hero { padding-top: var(--s4); gap: var(--s4); } }
.mfm-hero-mug { position: absolute; left: 0; bottom: 0; width: 46%; height: auto; }
@media (min-width: 600px) and (max-width: 899px) {
  .mfm-hero-text { align-items: center; text-align: center; max-width: 34rem; margin-inline: auto; }
  .mfm-hero .mfm-actions { justify-content: center; }
  .mfm-hero-wall { max-width: 440px; }
}
@media (min-width: 900px) {
  .mfm-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); padding-block: var(--s8) var(--section); }
  .mfm-hero h1 { font-size: clamp(2.75rem, 1rem + 3.9vw, 4rem); }
  .mfm-hero-art { order: 0; }
  .mfm-hero-wall { max-width: 560px; }
}
@media (min-width: 1200px) { .mfm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
/* A frame: a thin black moulding round the print, as the framed print
   comes (its own white margin is in the picture). */
.mfm-frame { background: linear-gradient(145deg, #3A3530, #1F1C19 60%, #2B2723); padding: clamp(7px, 1.1vw, 12px); border-radius: 2px;
  box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255,255,255,.08); }
.mfm-frame img { display: block; width: 100%; height: auto; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

.mfm-how, .mfm-products { padding-block: 0 var(--section); }
.mfm-how h2, .mfm-products h2 { margin-bottom: var(--s5); }
.mfm-how ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--s5); }
.mfm-how li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; align-content: start; gap: 2px var(--s3);
  padding-top: var(--s4); border-top: 2px solid var(--line); }
.mfm-how li::before { content: counter(step); grid-row: span 2; font: 600 34px/1 var(--display); color: var(--accent); }
.mfm-how li b { display: block; font: 600 var(--fs-h3)/1.25 var(--display); }
.mfm-how li span { color: var(--muted); }
@media (min-width: 900px) { .mfm-how ol { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }

.mfm-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .mfm-tiles { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
@media (min-width: 1100px) { .mfm-tiles { grid-template-columns: repeat(4, 1fr); } }
.mfm-tiles .mfm-tile { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3);
  display: flex; flex-direction: column; gap: var(--s3); color: var(--ink); text-decoration: none; font-weight: 400;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.mfm-tiles a.mfm-tile:hover { color: var(--ink); border-color: var(--accent); box-shadow: var(--sh-sm); transform: translateY(-2px); }
/* The terms and privacy notice. */
.mfm-legal h2 { font-size: var(--fs-h3); margin: var(--s5) 0 var(--s2); }
.mfm-legal p, .mfm-legal li { max-width: 68ch; }
.mfm-legal ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.mfm-legal-table { overflow-x: auto; }
.mfm-legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.mfm-legal th, .mfm-legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mfm-legal th { font-weight: 600; }
.mfm-foot-legal { display: flex; gap: var(--s4); }
.mfm-foot-legal a { color: inherit; }
.mfm-pay-terms { margin: var(--s2) 0 0; }
/* The launching-soon page: its news, set off a little. */
.mfm-soon-note { font: 600 18px/1.4 var(--display); color: var(--ink); background: #E6F0D6; border-radius: var(--r-ctl); padding: 12px 16px; margin: 0; }
.mfm-soon .mfm-foot { padding-top: var(--s5); }
.mfm-products-text { display: flex; flex-direction: column; gap: 2px; padding-inline: var(--s1); }
.mfm-products-text span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.mfm-price { margin-top: auto; padding: 0 var(--s1) var(--s1); font: 600 18px/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* An offer beside the price: the mugs' four for less. */
.mfm-deal { font: 600 14px/1 var(--body); color: #2F5A12; background: #E6F0D6; border-radius: 99px; padding: 6px 10px; letter-spacing: .01em; }
/* The product tiles (ProductTiles, on the home page and in the guide).
   Five tiles: the three for the wall, then the two for the house, each of
   those as wide as one and a half, its picture beside its words (centred
   on it). On a tablet, the framed print across the top, the same way,
   and two rows of two. */
@media (min-width: 600px) and (max-width: 1099px) {
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:first-child { grid-column: 1 / -1; }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:first-child .mfm-tile { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: var(--s5); row-gap: var(--s3); }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:first-child .mfm-art { grid-row: 1 / -1; }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:first-child .mfm-products-text { grid-area: 2 / 2; }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:first-child .mfm-price { grid-area: 3 / 2; margin-top: 0; }
}
@media (min-width: 1100px) {
  .mfm-tiles:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: span 3; }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:nth-child(n+4) .mfm-tile { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: var(--s4); row-gap: var(--s3); }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:nth-child(n+4) .mfm-art { grid-row: 1 / -1; }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:nth-child(n+4) .mfm-products-text { grid-area: 2 / 2; }
  .mfm-tiles:has(> li:nth-child(5):last-child) > li:nth-child(n+4) .mfm-price { grid-area: 3 / 2; margin-top: 0; }
}

/* The one ink band. */
.mfm-band { background: var(--ink); color: #E7ECE2; padding-block: var(--section); }
.mfm-band h2 { color: #fff; margin-bottom: var(--s6); }
.mfm-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
@media (min-width: 900px) { .mfm-band ul { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.mfm-band li { display: flex; flex-direction: column; gap: var(--s2); padding-left: var(--s4); border-left: 3px solid var(--accent-light); }
.mfm-band li b { font: 600 var(--fs-h3)/1.25 var(--display); color: #fff; }
.mfm-band li span { color: #C8D1C3; }

.mfm-close { display: flex; flex-direction: column; align-items: center; gap: var(--s4); text-align: center; padding-block: var(--section); }
.mfm-close .mfm-btn { margin-top: var(--s2); min-width: 220px; }

/* ── Product pictures (Art) ────────────────────────────────────── */
/* The demo farm on each thing, on a wall-coloured tile the same shape, so
   a row of them lines up. */
.mfm-art { container-type: inline-size; position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: calc(var(--r-card) - 6px); background: radial-gradient(120% 90% at 50% 20%, #F6F4EE 0%, var(--wall) 70%, #E2DFD5 100%); }
.mfm-art img { display: block; width: 100%; height: auto; }
.mfm-art-obj { display: block; position: relative; }
/* A framed print: portrait, in a thin black frame. */
.mfm-art-framed .mfm-art-obj { width: 44%; padding: 1.3cqw; background: linear-gradient(145deg, #3A3530, #1F1C19 60%, #2B2723);
  box-shadow: 0 2cqw 4cqw -1.6cqw rgba(30,20,10,.5); }
.mfm-art-framed img { background: #fff; }
/* A print: the sheet, a little lifted off the wall. */
.mfm-art-print .mfm-art-obj { width: 80%; box-shadow: 0 1.8cqw 3.4cqw -1.6cqw rgba(30,30,30,.45), 0 0 0 1px rgba(0,0,0,.04); }
.mfm-art-print img { background: #fff; }
/* A canvas: the cloth's white side and bottom edge showing, its weave
   over the picture. */
.mfm-art-canvas .mfm-art-obj { width: 46%; margin: 0 1.1cqw 1.1cqw 0;
  box-shadow: .14cqw .14cqw 0 #F1EFEA, .28cqw .28cqw 0 #ECEAE4, .42cqw .42cqw 0 #E7E4DD, .56cqw .56cqw 0 #E2DFD7,
    .7cqw .7cqw 0 #DDDAD1, .84cqw .84cqw 0 #D8D5CC, .98cqw .98cqw 0 #D3D0C6, 1.1cqw 1.1cqw 0 #C9C5BB,
    2cqw 3cqw 4cqw -.6cqw rgba(30,20,10,.4); }
.mfm-art-canvas img { background: #fff; }
/* A whiteboard, landscape: aluminium frame, a marker tray under it. */
.mfm-art-whiteboard .mfm-art-obj { width: 74%; padding: 1.4cqw; background: #fff; border: 1.4cqw solid #C3C7CB; border-radius: 1cqw;
  box-shadow: 0 2cqw 4cqw -2cqw rgba(30,30,30,.45), inset 0 0 0 1px rgba(0,0,0,.05); margin-bottom: 3cqw; }
.mfm-art-whiteboard .mfm-art-obj::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -4cqw; height: 2cqw; border-radius: 0 0 1cqw 1cqw; background: #B8BDC2; }
/* The mug turning: a video with the tile in it, so it fills the tile.
   Without motion, its first picture stands still. */
.mfm-art-spin, .mfm-art .mfm-art-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mfm-art-spin { opacity: 0; transition: opacity .3s; }
.mfm-art-spin.is-playing { opacity: 1; }

/* ── Foot ──────────────────────────────────────────────────────── */
.mfm-foot { background: var(--ink); color: #C8D1C3; font-size: 15px; padding-block: var(--s8) var(--s6); }
.mfm-foot a { color: #fff; font-weight: 500; }
.mfm-foot a:hover { color: var(--accent-light); }
.mfm-foot-in, .mfm-foot-base { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mfm-foot-in { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 600px) { .mfm-foot-in { grid-template-columns: 1fr 1fr; } .mfm-foot-brand { grid-column: 1 / -1; } }
@media (min-width: 900px) { .mfm-foot-in { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } .mfm-foot-brand { grid-column: auto; } }
/* Before the site opens there's no "Make one" column: three across. */
@media (min-width: 900px) { .mfm-foot-in:not(:has(> nav[aria-label="The site"])) { grid-template-columns: 1.4fr 1fr 1.3fr; } }
.mfm-foot-brand { display: flex; flex-direction: column; gap: var(--s3); max-width: 34ch; }
.mfm-foot-mark img { height: 24px; width: auto; }
.mfm-foot-col { display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.mfm-foot-col h2 { font: 600 var(--fs-micro)/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8FA08A; margin-bottom: var(--s1); }
.mfm-foot-col a { text-decoration: none; }
.mfm-foot-col a:hover { text-decoration: underline; }
.mfm-foot-base { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s7); padding-top: var(--s5);
  font-size: var(--fs-micro); color: #8FA08A;
  /* The rule spans the column, not the padding either side of it. */
  background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
/* The maker's line, on a rule of its own above the credits. */
.mfm-foot-base .mfm-foot-maker { display: flex; align-items: flex-end; gap: .3em; font-size: 15px; color: #C8D1C3;
  padding-bottom: var(--s4); margin-bottom: var(--s2); border-bottom: 1px solid rgba(255,255,255,.08); }
.mfm-foot-maker a { display: block; line-height: 0; }
/* The line reads as one sentence, the lockup its last words: its capitals
   are 30% of its height and its baseline 1/12 up from its foot, so at 36px
   its letters stand as tall as 15px Roboto's and sit on the same line. */
.mfm-foot-maker span { line-height: 1; white-space: nowrap; }
.mfm-foot-maker img { height: 36px; width: auto; }

/* ── Shop pages ────────────────────────────────────────────────── */
.mfm-page { padding-block: var(--s6) var(--section); display: flex; flex-direction: column; gap: var(--s5); }
.mfm-narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mfm-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); padding: var(--s6) 0; }
/* Clear of the sticky header when a link or the browser scrolls to it. */
.mfm-field, .mfm-field input, .mfm-prod, .mfm-errsum, .mfm-form-card { scroll-margin-top: 88px; }

/* What to print it on: the map on a wall beside the choices. */
.mfm-print { display: grid; gap: var(--s5); padding-block: var(--s6) var(--section); grid-template-columns: minmax(0, 1fr); }
.mfm-print-head { display: flex; flex-direction: column; gap: var(--s2); }
.mfm-print-stage { margin: 0; display: flex; flex-direction: column; gap: var(--s3); }
.mfm-print-wall { background: radial-gradient(120% 100% at 50% 10%, #F6F4EE 0%, var(--wall) 70%, #E2DFD5 100%); border-radius: var(--r-card);
  padding: clamp(20px, 5vw, 56px); display: grid; place-items: center; }
.mfm-print-wall img { width: auto; max-width: 100%; max-height: 52vh; background: #fff; box-shadow: var(--sh-lg); }
/* The mug comes as its own picture, shadows and all. */
.mfm-print-wall-mug img { background: transparent; box-shadow: none; }
.mfm-print-stage figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4); font-size: var(--fs-small); color: var(--muted); }
.mfm-print-choose { display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 900px) {
  .mfm-print { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s6); align-items: start; }
  .mfm-print-head { grid-column: 1 / -1; }
  .mfm-print-stage { position: sticky; top: 88px; }
  .mfm-print-wall img { max-height: min(56vh, 580px); }
}
@media (min-width: 1200px) {
  .mfm-print { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .mfm-print-wall { min-height: min(62vh, 640px); }
}
/* A product: its picture, name and price; open, its choices. */
.mfm-prod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s, box-shadow .15s; }
.mfm-prod[open] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--sh-sm); }
.mfm-prod summary { list-style: none; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: var(--s3) var(--s4);
  padding: var(--s3); cursor: pointer; border-radius: var(--r-card); }
.mfm-prod summary::-webkit-details-marker { display: none; }
.mfm-prod summary:hover { background: #FAFBF7; }
.mfm-prod summary .mfm-art { border-radius: var(--r-ctl); }
.mfm-prod-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mfm-prod-text b { font: 600 var(--fs-h3)/1.2 var(--display); }
.mfm-prod-text span { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.mfm-prod-text .mfm-deal { align-self: flex-start; margin-top: 6px; }
.mfm-prod-from { font: 600 16px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; align-items: center; gap: var(--s2); }
.mfm-prod-from::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.mfm-prod[open] .mfm-prod-from::after { transform: rotate(225deg) translate(-2px, -2px); }
.mfm-prod-form { display: flex; flex-direction: column; gap: var(--s3); padding: 0 var(--s4) var(--s4); }
@media (max-width: 420px) {
  .mfm-prod summary { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .mfm-prod-text span { display: none; }
}
.mfm-print-options { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.mfm-print-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3); min-height: 52px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; font-size: 16px; background: var(--surface); }
.mfm-print-option:hover { border-color: var(--line-2); }
.mfm-print-option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--soft); }
.mfm-print-option b { font: 600 17px/1 var(--display); font-variant-numeric: tabular-nums; }
/* One option: shown as the price, not as a choice of one. */
.mfm-print-one .mfm-print-option { border: 0; box-shadow: none; background: var(--soft); cursor: default; }
.mfm-print-one input { position: absolute; opacity: 0; pointer-events: none; }
.mfm-print-option input, .mfm-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-deep); }
.mfm-check { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; font-size: 16px; cursor: pointer; padding-block: var(--s1); }
.mfm-check input { margin-top: 2px; }
.mfm-check small { display: block; color: var(--muted); font-size: var(--fs-small); }
/* The PDF add-on's price is the chosen option's: its prices are in the
   options' order, and only the checked one's shows. Nothing to add
   where the chosen option has no PDF add-on. */
.mfm-pdf-prices { white-space: nowrap; }
.mfm-pdf-prices > span { display: none; }
.mfm-prod:has(.mfm-print-option.no-pdf input:checked) .mfm-pdf-addon { display: none; }
.mfm-prod:has(.mfm-print-option:nth-of-type(1) input:checked) .mfm-pdf-prices > span:nth-of-type(1),
.mfm-prod:has(.mfm-print-option:nth-of-type(2) input:checked) .mfm-pdf-prices > span:nth-of-type(2),
.mfm-prod:has(.mfm-print-option:nth-of-type(3) input:checked) .mfm-pdf-prices > span:nth-of-type(3),
.mfm-prod:has(.mfm-print-option:nth-of-type(4) input:checked) .mfm-pdf-prices > span:nth-of-type(4),
.mfm-prod:has(.mfm-print-option:nth-of-type(5) input:checked) .mfm-pdf-prices > span:nth-of-type(5),
.mfm-prod:has(.mfm-print-option:nth-of-type(6) input:checked) .mfm-pdf-prices > span:nth-of-type(6),
.mfm-prod:has(.mfm-print-option:nth-of-type(7) input:checked) .mfm-pdf-prices > span:nth-of-type(7),
.mfm-prod:has(.mfm-print-option:nth-of-type(8) input:checked) .mfm-pdf-prices > span:nth-of-type(8) { display: inline; }

/* Order lines and sums. */
.mfm-lines { list-style: none; margin: 0; padding: 0; }
.mfm-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); align-items: start; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.mfm-lines li:first-child { padding-top: 0; }
.mfm-lines li.mfm-line-thumbed { grid-template-columns: 96px minmax(0, 1fr) auto; column-gap: var(--s4); }
.mfm-line-thumb { width: 96px; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.mfm-line-mug { object-fit: contain; aspect-ratio: 120 / 85; background: none; box-shadow: none; }
.mfm-line-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mfm-line-text b { font-weight: 600; }
.mfm-line-total { font: 600 16px/1.5 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mfm-line-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); margin-top: var(--s1); font-size: var(--fs-small); }
.mfm-line-acts .mfm-link-btn { padding: 6px 0; min-height: 36px; font-size: var(--fs-small); }
.mfm-line-acts a { font-weight: 600; padding-block: 6px; }
/* Part of the print above it: indented, no rule between them. */
.mfm-lines li:has(+ li.mfm-line-addon) { border-bottom: 0; padding-bottom: var(--s1); }
.mfm-lines li.mfm-line-addon { padding-top: 0; }
.mfm-lines li.mfm-line-thumbed + li.mfm-line-addon { padding-left: calc(96px + var(--s4)); }
.mfm-lines li.mfm-line-addon b { font-weight: 400; color: var(--muted); }
.mfm-lines li.mfm-line-addon .mfm-line-total { font-weight: 500; color: var(--muted); }
.mfm-sum { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.mfm-lines li:last-child { border-bottom: 0; }
.mfm-lines + .mfm-sum { margin-top: var(--s1); border-top: 1px solid var(--line); padding-top: var(--s3); }
.mfm-sum-total { border-top: 1px solid var(--line); margin-top: var(--s1); padding-top: var(--s3); font-size: 18px; }
.mfm-sum-total b { font: 600 22px/1.2 var(--display); }
.mfm-sums, .mfm-card:has(> .mfm-lines) { display: flex; flex-direction: column; gap: 0; }
.mfm-card > .mfm-small { margin-top: var(--s2); }

/* Checkout: the form in cards; the order beside it on a wide screen and
   folded above it on anything narrower. */
.mfm-checkout { display: grid; gap: var(--s5); align-items: start; grid-template-columns: minmax(0, 1fr); max-width: calc(1040px + 2 * var(--gutter)); }
@media (min-width: 900px) { .mfm-checkout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--s6); } }
@media (min-width: 600px) and (max-width: 899px) { .mfm-checkout { max-width: calc(var(--narrow) + 2 * var(--gutter)); } }
.mfm-checkout-form { display: flex; flex-direction: column; gap: var(--s4); }
.mfm-checkout-form:has(input[name=gift][value=no]:checked) .mfm-gift-only { display: none; }
.mfm-form-card { display: flex; flex-direction: column; gap: 20px; margin: 0; min-width: 0; }
.mfm .mfm-form-card h2, .mfm .mfm-summary-card h2 { font-size: var(--fs-h3); }
fieldset.mfm-form-card legend { padding: 0; margin-bottom: var(--s4); float: left; width: 100%; }
fieldset.mfm-form-card legend + * { clear: both; }
.mfm-field-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .mfm-field-row { grid-template-columns: 1fr 1fr; } }
.mfm-field-row > .mfm-gift-only { display: contents; }
.mfm-checkout-form:has(input[name=gift][value=no]:checked) .mfm-field-row > .mfm-gift-only { display: none; }
/* Below 900 the order is folded above the form (.mfm-peek) instead. */
@media (max-width: 899px) { .mfm-checkout > .mfm-summary-card { display: none; } }
@media (min-width: 900px) {
  .mfm-summary-card { display: flex; flex-direction: column; gap: var(--s2); position: sticky; top: 88px; }
  .mfm-summary-card h2 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
  .mfm-peek { display: none; }
}
.mfm-peek { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-sm); }
.mfm-peek summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); cursor: pointer; font-weight: 600; }
.mfm-peek summary::-webkit-details-marker { display: none; }
.mfm-peek summary b { font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: var(--s3); }
.mfm-peek summary b::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); }
.mfm-peek[open] summary b::after { transform: rotate(225deg); }
.mfm-peek-body { padding: 0 var(--s4) var(--s4); display: flex; flex-direction: column; }
.mfm-pay-go { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s2); }
.mfm-total-line { font-size: 18px; font-variant-numeric: tabular-nums; }
.mfm-total-line b { font: 600 22px/1 var(--display); }
@media (min-width: 900px) { .mfm-total-line { display: none; } }

/* Fields. */
.mfm-field { display: flex; flex-direction: column; gap: 6px; font: 600 var(--fs-label)/1.25 var(--body); min-width: 0; }
.mfm-field input, .mfm-field textarea { font: 400 17px/1.35 var(--body); color: var(--ink); width: 100%; min-height: 50px; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: #fff; transition: border-color .15s, box-shadow .15s; }
.mfm-field input:hover, .mfm-field textarea:hover { border-color: #AEB7A6; }
.mfm-field textarea { min-height: 104px; resize: vertical; }
.mfm-field input:focus, .mfm-field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(78,127,23,.18); }
.mfm-field input[aria-invalid=true] { border-color: var(--warn-line); }
.mfm-err { color: #8A4B00; font: 500 var(--fs-small)/1.3 var(--body); }
.mfm-ok { color: var(--accent-deep); font: 500 var(--fs-small)/1.3 var(--body); }
.mfm-errsum { display: flex; flex-direction: column; gap: 6px; }
.mfm-errsum ul { margin: 0; padding-left: 18px; }
.mfm-errsum a { color: inherit; }
.mfm-code-row { display: flex; gap: var(--s2); }
.mfm-code-row input { flex: 1; min-width: 0; }
.mfm-code-row .mfm-btn { min-height: 50px; padding: 8px 20px; }
.mfm-choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mfm-choice legend { margin-bottom: 8px; padding: 0; }
.mfm-seg { display: flex; flex-wrap: wrap; gap: 6px; }
/* Who it's for: two tabs; the chosen one outlined, not a slab of green. */
.mfm-seg-opt { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-ctl); cursor: pointer; font: 600 16px/1.1 var(--body); background: var(--surface); }
.mfm-seg-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--soft); color: var(--ink); }
.mfm-seg-opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.mfm-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mfm-hold { border: 1px solid var(--line); }
.mfm-radio { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; font-size: 16px; }
.mfm-radio:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--soft); }
.mfm-radio input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-deep); }
.mfm-radio small { display: block; color: var(--accent-deep); font-size: var(--fs-small); font-weight: 600; margin-top: 2px; }

/* Pay. */
.mfm-going { font-size: 16px; }
/* No min-height: Stripe sizes its own box, and a floor left a gap above
   Pay on a laptop. */
.mfm-card-box { margin-block: var(--s2) var(--s4); }
.mfm-trust { font-size: var(--fs-small); color: var(--muted); margin-top: var(--s3); display: flex; gap: var(--s2); align-items: flex-start; }
.mfm-done-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mfm-nudge { font-size: 15px; color: #6B4E0A; }

/* ── The map maker (templates/myfarmmap/make.templ) ─────────────── */
.mfm-app { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
/* Full width: the logo lines up with the panel's edge, not a page
   column; over the map and its panel, so the menu opens over them. */
.mfm-app .mfm-top { padding-inline: 16px; gap: 8px; z-index: 1200; min-height: 56px; padding-block: 6px; }
.mfm-app .mfm-name img { height: 24px; }
.mfm-app .mfm-menu-panel { padding-inline: 16px; }
/* Where you are in the three steps, at the top of the panel: plain
   words, not buttons; the ones done ticked, the one you're on in ink. */
.mfm-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 var(--s3); padding: 0; font: 600 13px/1 var(--body); color: var(--muted); }
.mfm-steps li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.mfm-steps .mfm-tick { display: none; color: var(--accent); margin-left: 2px; }
.mfm-steps li.done .mfm-tick { display: inline; }
.mfm-steps li.on { color: var(--ink); }
.mfm main.mfm-stage { position: relative; flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0; }
.mfm-map { position: absolute; inset: 0; background: #27321F; }
.mfm-map-under { visibility: hidden; }
.mfm-hint-pill { position: absolute; z-index: 900; top: 12px; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 7rem); width: max-content; text-align: center; pointer-events: none;
  background: rgba(23, 35, 27, .9); color: #fff; font: 500 14px/1.35 var(--body); padding: 8px 16px; border-radius: 16px; }
/* Beside the panel, clear of the zoom buttons. */
@media (min-width: 768px) { .mfm-hint-pill { left: calc(424px + (100% - 424px - 64px) / 2); max-width: min(28rem, calc(100% - 424px - 96px)); } }
.mfm-fencing .mfm-map { cursor: crosshair; }
.mfm-maplabel span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap;
  background: rgba(23, 35, 27, .78); color: #fff; font: 600 12px/1 var(--body); padding: 4px 7px; border-radius: 6px; }

/* the panel: a sheet along the bottom on a phone, a card on the left beyond */
.mfm-panel { position: absolute; z-index: 1000; left: 0; right: 0; bottom: 0; max-height: 58%;
  background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px -12px rgba(0,0,0,.45);
  display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .mfm-panel { left: 16px; right: auto; top: 16px; bottom: auto; width: 392px; max-height: calc(100% - 32px); border-radius: var(--r-card); box-shadow: var(--sh-lg); }
  .mfm-grip { display: none; }
}
.mfm-grip { width: 64px; height: 22px; margin: 2px auto 0; flex: none; cursor: pointer; position: relative; }
.mfm-grip::after { content: ""; position: absolute; left: 11px; right: 11px; top: 9px; height: 5px; border-radius: 3px; background: var(--line); }
@media (max-width: 767px) { .mfm-panel.mfm-panel-min { max-height: 96px; } .mfm-panel.mfm-panel-min .mfm-panel-body { overflow: hidden; } }
/* The panel scrolls by itself: quietly. */
.mfm-panel-body { overflow-y: auto; padding: var(--s4) 20px 20px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.mfm-step { display: flex; flex-direction: column; gap: var(--s3); }
.mfm-step[hidden] { display: none; }
.mfm-step h1 { font-size: 24px; letter-spacing: -.015em; }
/* The step's way on stays in reach at the foot of the panel while the
   choices scroll under it, on a white band so nothing shows through. */
#mfm-to-print, #mfm-to-fields { position: sticky; bottom: 0; z-index: 2; margin-top: var(--s4); box-shadow: 0 3px 0 var(--gorse-deep), 0 0 0 8px var(--surface), 0 -16px 16px 4px var(--surface); }
#mfm-to-fields:disabled { box-shadow: 0 0 0 8px var(--surface), 0 -16px 16px 4px var(--surface); }
.mfm-app input[type=text], .mfm-app input[type=search] { font: 400 17px/1.3 var(--body); color: var(--ink); width: 100%;
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: #fff; }
.mfm-app input[type=text]:focus, .mfm-app input[type=search]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(78,127,23,.18); }
.mfm #mfm-title.mfm-wants { border-color: var(--gorse-deep); background: #FFF9E8; }
.mfm-search { display: flex; flex-direction: column; gap: var(--s3); }
.mfm-search-row { display: flex; gap: var(--s2); }
.mfm-search-row .mfm-btn { padding-inline: 18px; min-height: 48px; }
.mfm-row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.mfm-row-split { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.mfm-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mfm-summary div { background: var(--soft); border-radius: var(--r-ctl); padding: 10px 12px; display: flex; flex-direction: column; }
.mfm-summary b { font: 600 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.mfm-summary span { font-size: var(--fs-small); color: var(--muted); }
.mfm-resume { gap: 10px; }
.mfm-seg button { flex: 1 1 auto; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctl); cursor: pointer;
  font: 600 15px/1.1 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); }
.mfm-seg button:hover { border-color: #AEB7A6; }
.mfm-seg button[aria-pressed=true] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.mfm-toggles { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mfm-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  border-bottom: 1px solid var(--line); cursor: pointer; font: 500 16px/1.25 var(--body); }
.mfm-toggle small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.mfm-toggle input { appearance: none; width: 48px; height: 28px; border-radius: 99px; background: #C9D0C2; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.mfm-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.mfm-toggle input:checked { background: var(--accent-deep); }
.mfm-toggle input:checked::after { left: 23px; }

/* the look: the preview picture where the map was */
.mfm-look { position: absolute; inset: 0; background: var(--wall); display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 12px 16px calc(var(--sheet-h, 0px) + 16px); overflow: auto; }
/* Centred by auto margins, not justify-content: a picture taller than the
   screen (an upright farm) then starts at the top and scrolls, where
   centring would push its top out of reach. */
@media (min-width: 768px) {
  .mfm-look { padding: 24px 32px 32px 440px; }
  .mfm-look > .mfm-look-bar { margin-top: auto; }
  .mfm-look > .mfm-look-sheet { margin-bottom: auto; }
}
.mfm-look-bar { width: 100%; max-width: 1100px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mfm-look-bar p { margin: 0; font-size: 15px; }
.mfm-look-bar .mfm-btn { white-space: nowrap; }
.mfm-look-tools { display: flex; gap: 8px; flex: none; }
/* On a desktop the picture fits the screen beside the choices: it takes
   the height that's left (--fit-h, from the script), the whole width but
   the panel's, with no bar over it (the panel says what to tap); the undo
   note floats over the picture's top. Phones keep the bar and "See it
   bigger". */
@media (min-width: 1024px) {
  .mfm-look { padding: 12px 20px 12px 440px; }
  .mfm-look > .mfm-look-bar { display: none; }
  .mfm-look > .mfm-look-sheet { margin-top: auto; }
  .mfm-look > .mfm-toast { position: absolute; top: 16px; left: 460px; right: 20px; width: auto; max-width: 520px; margin-inline: auto; z-index: 5;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
  .mfm-look.mfm-fit .mfm-look-sheet { width: auto; max-width: min(1100px, 100%); }
  .mfm-look.mfm-fit .mfm-look-sheet img { width: auto; max-width: 100%; max-height: calc(var(--fit-h, 70dvh) - 2 * var(--ring) - 10px); min-height: 0; }
  .mfm-look.mfm-fit .mfm-look-sheet img:not([src]) { height: var(--fit-h, 70dvh); width: auto; }
}
.mfm-toast { width: 100%; max-width: 1100px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink); color: #fff; border-radius: var(--r-ctl); padding: 4px 6px 4px 14px; font-size: 15px; }
.mfm-toast .mfm-link-btn { color: #F2D27A; padding: 8px; }
.mfm-look-sheet { position: relative; width: 100%; max-width: 1100px; background: #fff; box-shadow: var(--sh-lg); }
.mfm-look-sheet img { display: block; width: 100%; height: auto; min-height: 120px; }
/* No picture yet: a blank sheet the shape of the print, not a broken
   image with its alt text. */
.mfm-look-sheet img:not([src]) { visibility: hidden; aspect-ratio: 1.414; height: auto; }
.mfm-big img:not([src]) { visibility: hidden; }
.mfm-taps { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Four things to see it on: two by two, not three and one. */
#mfm-on { display: grid; grid-template-columns: 1fr 1fr; }
/* The mug comes as its own picture, with its own shadows. */
.mfm-look-sheet.mfm-look-sheet-mug { background: transparent; box-shadow: none; }
/* What it goes in, drawn round the picture so each thing reads as
   itself: the frame with its mount, the whiteboard's aluminium edge and
   marker tray. Rings, not padding, so the fields' tap shapes still sit on
   the picture; --ring is how far they reach, kept clear round it. */
.mfm-look-sheet { --ring: 0px; }
/* The frame as Printful makes it: no mount, a moulding about 1.9 cm wide
   whose lip covers 1.3 cm of the print all round. --cm is a centimetre
   on the picture (the script sets it from the picture's short side, 30
   cm), so what the frame hides is hidden here too. */
.mfm-look-sheet.mfm-on-framed { --cm: 8px; --ring: calc(0.6 * var(--cm));
  box-shadow: 0 0 0 var(--ring) #2B2723, 0 18px 30px 6px rgba(0,0,0,.35); }
.mfm-look-sheet.mfm-on-framed::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 calc(1.3 * var(--cm)) #2B2723, inset 0 0 0 calc(1.3 * var(--cm) + 1.5px) rgba(0,0,0,.35); }
.mfm-look-sheet.mfm-on-framed .mfm-taps { z-index: 2; }
.mfm-look-sheet.mfm-on-board { --ring: 14px;
  box-shadow: 0 0 0 3px #E9EBEC, 0 0 0 var(--ring) #B8BDC1, 0 0 0 calc(var(--ring) + 1px) #8F959A, 0 16px 26px 4px rgba(0,0,0,.28); }
.mfm-look-sheet.mfm-on-board::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: calc(-1 * var(--ring) - 9px); height: 9px;
  border-radius: 0 0 6px 6px; background: linear-gradient(#C9CDD0, #8F959A); box-shadow: 0 4px 6px rgba(0,0,0,.2); }
/* A canvas: cloth stretched over a wooden frame 3.2 cm deep, seen a
   little from the left and above, so its white side and bottom edge show
   (shadows stacked a step at a time, darker going round), and the cloth's
   weave over the picture. --cm is a centimetre on the picture. */
.mfm-look-sheet.mfm-on-canvas, .mfm-pp-sheet.is-canvas {
  --d: calc(0.55 * var(--cm, 8px));
  box-shadow:
    calc(var(--d) * .125) calc(var(--d) * .125) 0 #F1EFEA, calc(var(--d) * .25) calc(var(--d) * .25) 0 #ECEAE4,
    calc(var(--d) * .375) calc(var(--d) * .375) 0 #E7E4DD, calc(var(--d) * .5) calc(var(--d) * .5) 0 #E2DFD7,
    calc(var(--d) * .625) calc(var(--d) * .625) 0 #DDDAD1, calc(var(--d) * .75) calc(var(--d) * .75) 0 #D8D5CC,
    calc(var(--d) * .875) calc(var(--d) * .875) 0 #D3D0C6, var(--d) var(--d) 0 #C9C5BB,
    calc(var(--d) + 6px) calc(var(--d) + 12px) 22px 2px rgba(0,0,0,.28);
  margin: 0 var(--d) var(--d) 0;
}
.mfm-look-sheet.mfm-on-canvas::before, .mfm-pp-sheet.is-canvas::before, .mfm-art-canvas .mfm-art-obj::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply;
  /* A fine, uneven grain (noise) with the faintest thread each way, and
     the light falling off towards the bottom right. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(70,60,40,.028) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(70,60,40,.022) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(60,50,30,.06));
  opacity: .75;
}
.mfm-look-sheet.mfm-on-canvas .mfm-taps { z-index: 2; }
.mfm-look .mfm-look-sheet.mfm-on-framed, .mfm-look .mfm-look-sheet.mfm-on-board {
  margin-inline: var(--ring); max-width: calc(min(1100px, 100%) - 2 * var(--ring)); }
/* Room above and below too, except when the picture is fitted on a
   desktop: it's centred there with the room already left (--fit-h). */
@media (max-width: 1023px) { .mfm-look .mfm-look-sheet.mfm-on-framed, .mfm-look .mfm-look-sheet.mfm-on-board { margin-block: var(--ring); } }
@media (max-width: 1023px) {
  .mfm-look-sheet.mfm-on-board { --ring: 7px; }
  .mfm-look .mfm-look-sheet.mfm-on-framed, .mfm-look .mfm-look-sheet.mfm-on-board { margin-block: var(--ring) calc(var(--ring) + 10px); }
}
.mfm-taps polygon { fill: transparent; stroke: transparent; stroke-width: 3; cursor: pointer; }
.mfm-taps polygon:hover, .mfm-taps polygon.lit { fill: rgba(242, 184, 46, .22); stroke: var(--gorse); }
/* A choice that belongs to the one above it: set in under it, with a
   rule down its left, so "See it on" and its own choices read as one. */
.mfm-sub { margin-left: 4px; padding-left: 14px; border-left: 2px solid var(--line); }
.mfm-sub .mfm-label { font-size: 14px; }
.mfm-toggles.mfm-sub { border-top: 0; }
#mfm-units-row { margin-top: -4px; }
/* The out farms and fields lists in the look's panel. */
.mfm-listbox { border-top: 1px solid var(--line); padding-block: 4px; }
.mfm-listbox > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 6px; font: 600 16px/1.2 var(--body); list-style: none; }
.mfm-listbox > summary::-webkit-details-marker { display: none; }
.mfm-listbox > summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .15s; }
.mfm-listbox[open] > summary::after { transform: rotate(90deg); }
.mfm-listbox .mfm-small { margin: 0 0 8px; }
.mfm-fieldlist, .mfm-groups { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mfm-frow { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px; border-radius: var(--r-ctl); }
.mfm-frow-area { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); text-align: right; }
.mfm-frow input { min-height: 40px; padding: 6px 10px; font-size: 15px; }
.mfm-frow .mfm-link-btn { font-size: 14px; padding: 8px 4px; white-space: nowrap; }
.mfm-frow.is-out .mfm-frow-area, .mfm-frow.is-out input { opacity: .55; text-decoration: line-through; }
.mfm-frow.flash { animation: mfm-flash 1.4s ease-out; }
@keyframes mfm-flash { from { background: rgba(242, 184, 46, .45); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .mfm-frow.flash { animation: none; background: rgba(242, 184, 46, .25); } }
.mfm-grow { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.mfm-grow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mfm-grow-head small { display: block; font-size: 13px; color: var(--muted); }
.mfm-grow-place { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mfm-grow-place button { min-height: 40px; padding: 6px 4px; font-size: 14px; }
.mfm-grow.is-out .mfm-grow-head { opacity: .6; }
.mfm-grow input[type=text] { min-height: 40px; padding: 6px 10px; font-size: 15px; }
.mfm-mini-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; flex: none; }
.mfm-mini-switch input { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: #C9D0C2; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.mfm-mini-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.mfm-mini-switch input:checked { background: var(--accent-deep); }
.mfm-mini-switch input:checked::after { left: 19px; }
/* The home farm is the main map: no switch to box it. */
.mfm-mini-switch.is-home { display: none; }
/* Drawing: the whole sheet washes grey, so whatever part of it is on
   screen shows it's on its way. */
.mfm-look-busy { position: absolute; inset: 0; background: rgba(96,104,94,.38); display: flex; align-items: center; justify-content: center; animation: mfm-wash .2s ease-out; }
.mfm-look-busy span { background: rgba(23,35,27,.88); color: #fff; font: 500 15px/1 var(--body); padding: 10px 16px; border-radius: 99px; }
@keyframes mfm-wash { from { opacity: 0; } }
.mfm-look-busy[hidden] { display: none; }

/* The look on a phone and a tablet held upright: the picture and the
   choices share the screen, one above the other, rather than a drawer
   over the picture or a narrow column beside it. The picture runs edge
   to edge, capped so a portrait farm leaves the choices room; the
   choices scroll by themselves under it. */
@media (max-width: 1023px) {
  .mfm-looking main.mfm-stage { display: flex; flex-direction: column; }
  .mfm-looking .mfm-look { position: relative; inset: auto; flex: none; padding: 8px 8px 6px; gap: 6px; overflow: visible; }
  .mfm-looking .mfm-look-sheet { width: auto; max-width: 100%; box-shadow: 0 4px 14px -8px rgba(0,0,0,.45); }
  .mfm-looking .mfm-look-sheet img { width: auto; max-width: 100%; max-height: 44dvh; min-height: 0; }
  .mfm-looking .mfm-look-sheet img:not([src]) { width: calc(100vw - 16px); }
  .mfm-looking .mfm-look-bar { order: 2; padding-inline: 4px; max-width: 900px; }
  /* The panel says it too, just under: the bar keeps only its button. */
  .mfm-looking .mfm-look-bar p { display: none; }
  .mfm-looking .mfm-look-bar { justify-content: flex-end; }
  .mfm-looking .mfm-look-bar .mfm-btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }
  /* Over the foot of the picture, so the choices don't jump. */
  .mfm-looking .mfm-toast { position: absolute; left: 12px; right: 12px; bottom: 52px; z-index: 5; width: auto; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
  .mfm-looking .mfm-panel { position: relative; inset: auto; width: auto; flex: 1; min-height: 0; max-height: none; border-radius: 0; box-shadow: 0 -1px 0 var(--line); }
  .mfm-looking .mfm-grip { display: none; }
}
/* On a tablet the choices below the picture run in two columns' width:
   centred, not a 1000 px column of toggles. */
@media (min-width: 768px) and (max-width: 1023px) {
  .mfm-looking .mfm-panel-body { width: 100%; max-width: 640px; margin-inline: auto; }
  .mfm-looking .mfm-look-sheet img { max-height: 48dvh; }
}

/* ── The guide (templates/myfarmmap/guide.templ) ──────────────── */
.mfm-guide-head { display: flex; flex-direction: column; gap: var(--s4); padding-block: var(--s7) var(--s6); }
.mfm-guide-head h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); letter-spacing: -.025em; line-height: 1.06; max-width: 18ch; }
.mfm-guide-toc { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.mfm-guide-toc a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 6px 16px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 15px/1.2 var(--body); }
.mfm-guide-toc a:hover { border-color: var(--accent); color: var(--ink); }
.mfm-guide-toc span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--accent-deep); font: 700 14px/1 var(--display); }
.mfm-guide { display: flex; flex-direction: column; }
.mfm-guide-step { display: grid; gap: var(--s6); padding-block: var(--s7); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
@media (min-width: 900px) {
  .mfm-guide-step:not(.mfm-guide-wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
  /* Picture and words swap sides from one step to the next. */
  .mfm-guide-step:not(.mfm-guide-wide):nth-child(even) .mfm-guide-fig { order: -1; }
}
.mfm-guide-text { display: flex; flex-direction: column; gap: var(--s4); max-width: 62ch; }
.mfm-guide-num { font: 600 var(--fs-micro)/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.mfm-guide-text h2 { margin-top: calc(-1 * var(--s2)); }
.mfm-guide-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.mfm-guide-list li { padding-left: 22px; position: relative; }
.mfm-guide-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); }
.mfm-tip { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--r-ctl); border-left: 3px solid var(--accent); font-size: 15px; }
.mfm-guide-fig { margin: 0; display: flex; flex-direction: column; gap: var(--s3); }
.mfm-guide-fig figcaption, .mfm-guide-styles figcaption { font-size: var(--fs-small); color: var(--muted); }
.mfm-guide-art { display: block; width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--sh-sm); }
.mfm-guide-styles { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 600px) { .mfm-guide-styles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mfm-guide-styles { grid-template-columns: repeat(3, 1fr); } }
.mfm-guide-styles figure { margin: 0; display: flex; flex-direction: column; gap: var(--s3); }
.mfm-guide-styles img { background: #fff; box-shadow: var(--sh-lg); }
.mfm-guide-styles figcaption b { display: block; color: var(--ink); font: 600 16px/1.3 var(--display); }
.mfm-guide-note { padding: var(--s4); background: var(--soft); border-radius: var(--r-ctl); max-width: 62ch; }
.mfm-guide-time { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.mfm-guide-time li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 var(--s5) var(--s6); }
.mfm-guide-time li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.mfm-guide-time li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 24px; bottom: 0; width: 2px; background: var(--line-2); }
.mfm-guide-time li:last-child::before { background: var(--accent); }
.mfm-guide-time b { font: 600 var(--fs-h3)/1.25 var(--display); }
.mfm-guide-time span { color: var(--muted); }
.mfm-guide-faq { display: flex; flex-direction: column; padding-block: var(--s7) var(--s4); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.mfm-guide-faq h2 { margin-bottom: var(--s4); }
.mfm-guide-faq details { border-bottom: 1px solid var(--line); max-width: 780px; }
.mfm-guide-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 56px; padding-block: var(--s3); font: 600 17px/1.35 var(--body); }
.mfm-guide-faq summary::-webkit-details-marker { display: none; }
.mfm-guide-faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--display); color: var(--accent-deep); transition: transform .15s; }
.mfm-guide-faq details[open] summary::after { transform: rotate(45deg); }
.mfm-guide-faq details p { padding-bottom: var(--s4); color: var(--muted); max-width: 66ch; }
.mfm-how-more { display: inline-block; margin-top: var(--s5); }

/* ── What should we print it on? (shop.templ Print, myfarmmap-print.js) ── */
.mfm-added { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: #EEF5E3; border: 1px solid #CFE0B6; border-radius: var(--r-ctl); padding: 10px 14px; font-size: 15px; }
.mfm-added p { margin: 0; }
.mfm-added form { margin: 0; }
/* Something just taken out: calm, not good news. */
.mfm-removed { background: var(--surface); border-color: var(--line); }
/* The picture on what's chosen: a framed print in its frame, the frame's
   lip over 1.3 cm of the print (--cm from the script); the whiteboard in
   its aluminium; the mug as its own picture. */
.mfm-pp-sheet { position: relative; display: inline-block; max-width: 100%; line-height: 0; --cm: 8px; --ring: 0px; margin: var(--ring); }
.mfm-pp-sheet img { display: block; max-width: 100%; transition: opacity .2s; }
.mfm-pp-sheet.is-loading img { opacity: .55; }
.mfm-pp-sheet.is-framed { --frame: #2B2723; --ring: calc(0.6 * var(--cm)); box-shadow: 0 0 0 var(--ring) var(--frame), 0 18px 30px 6px rgba(0,0,0,.32); }
.mfm-pp-sheet.is-framed.is-wht { --frame: #F3F1EC; box-shadow: 0 0 0 var(--ring) var(--frame), 0 0 0 calc(var(--ring) + 1px) #CFCAC0, 0 18px 30px 6px rgba(0,0,0,.25); }
/* Oak, as Printful's natural oak frame: a light, warm wood with fine grain
   running along each side. Drawn as four strips over the frame's ring and
   lip, each with its grain the way that side's wood runs; the plain
   colour underneath shows only while it draws. */
.mfm-pp-sheet.is-framed.is-oak { --frame: #D2A775; }
.mfm-pp-sheet.is-framed.is-oak {
  --w: calc(var(--ring) + 1.3 * var(--cm));
  /* Grain: fine lines at three uneven spacings, laid over each other so
     they never line up into stripes; one set each way. */
  --h1: repeating-linear-gradient(180deg, transparent 0 2.3px, rgba(140,88,40,.14) 2.3px 2.8px, transparent 2.8px 5.9px);
  --h2: repeating-linear-gradient(180deg, transparent 0 4.1px, rgba(120,72,30,.11) 4.1px 4.5px, transparent 4.5px 9.7px);
  --h3: repeating-linear-gradient(180deg, transparent 0 1.3px, rgba(255,240,215,.18) 1.3px 1.9px, transparent 1.9px 7.1px);
  --v1: repeating-linear-gradient(90deg, transparent 0 2.3px, rgba(140,88,40,.14) 2.3px 2.8px, transparent 2.8px 5.9px);
  --v2: repeating-linear-gradient(90deg, transparent 0 4.1px, rgba(120,72,30,.11) 4.1px 4.5px, transparent 4.5px 9.7px);
  --v3: repeating-linear-gradient(90deg, transparent 0 1.3px, rgba(255,240,215,.18) 1.3px 1.9px, transparent 1.9px 7.1px);
}
/* Top and bottom pieces, the full width (::before); the sides fit between
   them (::after), as a frame's joints do. */
.mfm-pp-sheet.is-framed.is-oak::before, .mfm-pp-sheet.is-framed.is-oak::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none; inset: calc(-1 * var(--ring));
  background-repeat: no-repeat; box-shadow: none;
}
.mfm-pp-sheet.is-framed.is-oak::before {
  background-image: var(--h1), var(--h2), var(--h3), linear-gradient(90deg, #D9AF7D, #CC9D67 55%, #D6AA77),
    var(--h1), var(--h2), var(--h3), linear-gradient(90deg, #CFA16B, #D8AE7B 60%, #CA9A63);
  background-size: 100% var(--w), 100% var(--w), 100% var(--w), 100% var(--w),
    100% var(--w), 100% var(--w), 100% var(--w), 100% var(--w);
  background-position: top, top, top, top, bottom, bottom, bottom, bottom;
}
.mfm-pp-sheet.is-framed.is-oak::after {
  top: calc(var(--w) - var(--ring)); bottom: calc(var(--w) - var(--ring));
  background-image: var(--v1), var(--v2), var(--v3), linear-gradient(#D8AD7A, #C99A63 60%, #D3A672),
    var(--v1), var(--v2), var(--v3), linear-gradient(#CC9D68, #D9AF7C 45%, #CFA06A);
  background-size: var(--w) 100%, var(--w) 100%, var(--w) 100%, var(--w) 100%,
    var(--w) 100%, var(--w) 100%, var(--w) 100%, var(--w) 100%;
  background-position: left, left, left, left, right, right, right, right;
}

.mfm-pp-sheet.is-framed::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 calc(1.3 * var(--cm)) var(--frame), inset 0 0 0 calc(1.3 * var(--cm) + 1.5px) rgba(0,0,0,.28); }
.mfm-pp-sheet.is-board { --ring: 12px; box-shadow: 0 0 0 3px #E9EBEC, 0 0 0 var(--ring) #B8BDC1, 0 0 0 calc(var(--ring) + 1px) #8F959A, 0 16px 26px 4px rgba(0,0,0,.25); margin-bottom: calc(var(--ring) + 10px); }
.mfm-pp-sheet.is-board::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: calc(-1 * var(--ring) - 9px); height: 9px;
  border-radius: 0 0 6px 6px; background: linear-gradient(#C9CDD0, #8F959A); }
.mfm-print-wall .mfm-pp-sheet img { max-height: min(52vh, 560px); width: auto; box-shadow: none; }
.mfm-print-wall:not(.mfm-print-wall-mug) .mfm-pp-sheet:not(.is-framed):not(.is-board):not(.is-canvas) img { background: #fff; box-shadow: var(--sh-lg); }
/* Frame colours: a chip of each. */
.mfm-fcolours { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mfm-fcolours legend { width: 100%; margin-bottom: 6px; }
.mfm-fcolour { background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1.5px solid var(--line-2); border-radius: 99px; cursor: pointer; font-weight: 600; }
.mfm-fcolour input { position: absolute; opacity: 0; pointer-events: none; }
.mfm-fcolour-chip { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.mfm-fcolour-BLK .mfm-fcolour-chip { background: #2B2723; }
.mfm-fcolour-WHT .mfm-fcolour-chip { background: #F3F1EC; }
.mfm-fcolour-OAK .mfm-fcolour-chip { background: linear-gradient(135deg, #C79A63, #9E7140); }
.mfm-fcolour:has(input:checked) { border-color: var(--accent-deep); box-shadow: 0 0 0 1px var(--accent-deep); }
.mfm-fcolour:has(input:focus-visible) { outline: 3px solid var(--gorse); outline-offset: 2px; }
/* Mugs: how many, and what that comes to. */
.mfm-qty { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 14px; }
.mfm-qty .mfm-label { grid-column: 1 / -1; }
.mfm-stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); overflow: hidden; }
.mfm-step-btn { width: 48px; min-height: 48px; border: 0; background: var(--surface); font: 600 22px/1 var(--body); color: var(--ink); cursor: pointer; }
.mfm-step-btn:hover { background: #F2F4EE; }
.mfm-stepper input { width: 3.2em; border: 0; border-inline: 1.5px solid var(--line-2); text-align: center; font: 600 18px/1 var(--body); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.mfm-stepper input::-webkit-outer-spin-button, .mfm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mfm-qty-price { margin: 0; font-size: 16px; }
.mfm-qty-price span { color: var(--accent-deep); font-weight: 600; }
.mfm-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.mfm-ladder li { background: #F4F6F0; border-radius: 99px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.mfm-ladder b { color: var(--ink); }
/* The basket so far. */
.mfm-pp-basket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.mfm-pp-basket h2 { margin: 0; font-size: var(--fs-h3); }
.mfm-pp-basket ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mfm-pp-basket li, .mfm-pp-total, .mfm-pp-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; margin: 0; }
.mfm-pp-basket li { align-items: baseline; }
.mfm-pp-basket li > span { flex: 1; min-width: 0; }
.mfm-pp-remove { margin: 0; }
.mfm-pp-remove .mfm-link-btn { font-size: 14px; }
.mfm-pp-row { margin: 0; }
.mfm-pp-total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; }
.mfm-pp-free { margin: 0; color: var(--accent-deep); font-weight: 600; }
/* The print page's cards have no picture: the name takes the room. */
.mfm-print-choose .mfm-prod summary { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 480px) { .mfm-print-choose .mfm-prod summary { grid-template-columns: minmax(0, 1fr) auto; } }
/* The print page's choices: a label sits clear of the options under it,
   and each group of choices has room round it. */
.mfm-print-choose .mfm-prod-form { gap: var(--s4); }
.mfm-print-choose .mfm-prod-form .mfm-label { display: block; margin: 0 0 10px; padding: 0; font-size: 15px; }
.mfm-print-choose .mfm-prod-text b { font-size: 20px; }
.mfm-print-choose .mfm-prod-text span { font-size: 15px; }
.mfm-print-choose .mfm-small { margin: 0; }
.mfm-mug-have { margin: 0; background: #EEF5E3; border: 1px solid #CFE0B6; border-radius: var(--r-ctl); padding: 10px 14px; font-size: 15px; }
/* The basket, a card per map. */
.mfm-bgroup { display: flex; flex-direction: column; gap: var(--s3); }
.mfm-bgroup-head { padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.mfm-bgroup + .mfm-card .mfm-sum-total { border-top: 0; padding-top: 0; }
.mfm-bgroup-thumb { width: 96px; height: auto; border-radius: 4px; box-shadow: var(--sh-sm); background: #fff; }
.mfm-bgroup-title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mfm-bgroup-title b { font: 600 var(--fs-h3)/1.2 var(--display); }
.mfm-bgroup-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* The browser's maps with nothing in the basket, under it or in place of
   an empty one. */
.mfm-kept { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s4); }
.mfm-kept h2, .mfm-kept p { margin: 0; }
.mfm-kept-map { display: flex; gap: var(--s3); align-items: center; }
.mfm-kept-map img { width: 96px; height: auto; flex: none; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.mfm-kept-map > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mfm-bgroup .mfm-lines { margin: 0; }
.mfm-line-qty { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); overflow: hidden; }
.mfm-line-qty .mfm-step-btn { width: 40px; min-height: 40px; font-size: 20px; }
.mfm-line-qty .mfm-step-btn:disabled { color: #B7BDB2; cursor: default; }
.mfm-line-qty span { min-width: 4.2em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.mfm-line-acts { flex-wrap: wrap; align-items: center; }
/* One thing's settings (edit.templ). */
.mfm-edit { display: grid; gap: var(--s5); padding-block: var(--s6) var(--section); grid-template-columns: minmax(0, 1fr); }
.mfm-edit-back { justify-self: start; font-size: 15px; }
.mfm-edit-panel { display: flex; flex-direction: column; gap: var(--s4); }
.mfm-edit-form { display: flex; flex-direction: column; gap: var(--s4); }
.mfm-edit-form .mfm-label { display: block; margin: 0 0 10px; font-size: 15px; }
.mfm-edit-saved { margin: 0; min-height: 1.4em; color: var(--muted); }
.mfm-edit-more { display: flex; flex-direction: column; gap: var(--s3); }
.mfm-edit-more p { margin: 0; font-size: 15px; }
.mfm-seg-stack { flex-direction: column; }
@media (min-width: 900px) {
  .mfm-edit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s6); align-items: start; }
  .mfm-edit > .mfm-print-head { grid-column: 1 / -1; }
  .mfm-edit .mfm-print-stage { position: sticky; top: 88px; }
}
/* Basket lines: the picture large, as it will be. */
.mfm-blines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mfm-bline { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--line); }
.mfm-bline:first-child { border-top: 0; padding-top: var(--s2); }
.mfm-bline-pic { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 100% at 50% 10%, #F6F4EE 0%, var(--wall) 70%, #E2DFD5 100%);
  border-radius: var(--r-card); padding: 28px; min-height: 240px; }
.mfm-bline-pic.is-mug { padding: 12px; background: #F5F4F0; }
.mfm-bline-pic .mfm-pp-sheet { --cm: 6px; }
.mfm-bline-pic img { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; }
.mfm-bline-pic .is-sheet img { background: #fff; box-shadow: var(--sh-lg); }
.mfm-bline-pic.is-mug img { max-height: 300px; }
.mfm-bline-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 16px; align-content: start; }
.mfm-bline-name { font: 600 var(--fs-h3)/1.25 var(--display); }
.mfm-bline-total { font: 600 18px/1.25 var(--display); font-variant-numeric: tabular-nums; }
.mfm-bline-text > form.mfm-line-qty, .mfm-bline-text > .mfm-small, .mfm-bline-acts { grid-column: 1 / -1; justify-self: start; }
.mfm-bline-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mfm-bline-acts form { margin: 0; }
@media (min-width: 720px) {
  .mfm-bline { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
}
.mfm-page.mfm-narrow:has(.mfm-bgroup) { max-width: 960px; }
.mfm-bgroup { padding: var(--s5); gap: 0; }
.mfm-bgroup-head { padding-bottom: var(--s4); margin-bottom: var(--s2); }
/* The look's own settings: each label clear of what's above it. */
.mfm-own { display: flex; flex-direction: column; gap: var(--s3); }
.mfm-own .mfm-choice .mfm-label { display: block; margin: 6px 0 10px; }
/* A basket line's words, in order: name and price on one line, a line of
   detail, then its controls together along the foot. */
.mfm-bline-text { display: flex; flex-direction: column; gap: 6px; }
.mfm-bline-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mfm-bline-top b { font: 600 20px/1.25 var(--display); }
.mfm-bline-top .mfm-bline-total { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mfm-bline-sub { margin: 0; color: var(--muted); font-size: 15px; }
.mfm-bline-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: var(--s3); }
.mfm-bline-foot .mfm-bline-remove { margin: 0 0 0 auto; }
.mfm-bline-foot .mfm-line-qty span { min-width: 2.4em; }
.mfm-bline-text, .mfm-bline-top, .mfm-bline-foot { width: 100%; }
@media (min-width: 720px) {
  .mfm-bline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
}
.mfm-bline-foot { flex-wrap: nowrap; }
.mfm-bline-foot .mfm-btn { white-space: nowrap; }
@media (max-width: 460px) { .mfm-bline-foot { flex-wrap: wrap; } }
/* The picture's box holds its size while the picture loads, so nothing
   below it moves. */
.mfm-bline-pic { height: 340px; min-height: 0; }
.mfm-bline-pic img { max-height: 284px; }
.mfm-bline-pic.is-mug img { max-height: 316px; }
@media (max-width: 719px) { .mfm-bline-pic { height: 300px; } .mfm-bline-pic img { max-height: 244px; } }
.mfm-line-qty.is-busy { opacity: .6; }
/* The whiteboard's marker tray hangs below its frame: room for it too. */
@media (min-width: 1024px) {
  .mfm-look.mfm-fit .mfm-look-sheet.mfm-on-board img { max-height: calc(var(--fit-h, 70dvh) - 2 * var(--ring) - 30px); }
}
/* "See it bigger" (phones): the whole picture first, fitted; a tap goes
   in close at that point (is-zoomed), another back out. */
.mfm-big { position: fixed; inset: 0; z-index: 3000; background: var(--ink); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px calc(env(safe-area-inset-bottom, 0px) + 10px); gap: 10px; }
.mfm-big[hidden] { display: none; }
.mfm-big-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #E8EEE4; }
.mfm-big-bar p { margin: 0; font-size: 14px; color: #C9D3C4; }
.mfm-big-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 99px;
  background: #fff; color: var(--ink); font: 600 15px/1 var(--body); cursor: pointer; }
.mfm-big-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; border-radius: 8px; background: #F3F1EC;
  display: flex; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.mfm-big-scroll img { display: block; margin: auto; width: 100%; height: auto; max-width: none; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.mfm-big-scroll.is-zoomed { display: block; }
.mfm-big-scroll.is-zoomed img { width: 1400px; max-height: none; cursor: zoom-out; }
.mfm-big-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mfm-big-busy span { background: rgba(23,35,27,.88); color: #fff; font: 500 15px/1 var(--body); padding: 10px 16px; border-radius: 99px; }
.mfm-big-busy[hidden] { display: none; }
