/* Place map, PHONE ONLY (Camille 22 Oct 2026: "PHONE ONLY - start with the PLACE - location map", "NOT phone friendly at all -
   need to design"; 23 Oct 2026: "i think we need to go for some kind of full screen approach to first lock the map or we
   cannot control it"; "the category navigation is off the page - user doesn't know there are options"; "consider where the
   disclaimer go after full screen treatment and how the footer image plate appears"). DESIGN.md 3.7. Desktop is untouched:
   every rule sits under max-width 720px. Pairs with place-map-phone.js.
   Two states of one plate.
   In the page: one full screen plate of heading, the map as a still picture (Sable at the centre; every finger scrolls the
   page, so the plates snap on to the closing plate as on every other page), Open full screen, then the map credit.
   Full screen: the page locks and the map takes the screen. A head line with Around Sable and CLOSE X; the map, where one
   finger moves and two pinch, with one status line at the top left and the zoom column at the bottom right; every category
   at once in two columns; the map credit closes the foot, so the map is never shown without it. No dividers (1.3), no
   gradients, one calm curve. */
@media (max-width:720px) {
 /* ---------- The plate (both states) */
 .place-page #around-sable.place-map {
  position:relative; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto auto;
  width:100vw; height:100lvh; margin:0 calc(50% - 50vw); padding:0; overflow:hidden; background:var(--chalk);
 }
 .place-page #around-sable .place-map__head { grid-row:1; grid-column:1; position:relative; padding:112px var(--page) 20px; margin:0; }
 .place-page #around-sable .place-map__head h2 { margin:0; font:350 31px/1.05 var(--serif); letter-spacing:-.02em; }
 .place-page #around-sable .place-map__head p { margin:8px 0 0; max-width:32ch; font:300 15px/1.5 var(--sans); }
 .place-page #around-sable .place-map__frame { grid-row:2; grid-column:1; position:relative; width:100%; height:100%; min-height:0; margin:0; border:0; }
 .place-page #around-sable .place-map__stage { width:100% !important; height:100% !important; max-height:none !important; }
 /* The navigation block dissolves into the grid: its parts take their own cells. */
 .place-page #around-sable :is(.place-map__nav, .place-map__nav-row, .place-map__reading, .place-map__utilities) { display:contents; }
 .place-page #around-sable .place-map__toggles { display:none !important; }
 .place-page #around-sable .place-map__status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 /* Credit: the disclaimer text style, the last line of the plate in both states, clear of the foot (3.7 rule 3). */
 .place-page #around-sable .place-map__notes {
  grid-row:4; grid-column:1; position:relative; z-index:3; margin:0; padding:0 var(--page) max(24px, env(safe-area-inset-bottom)); background:var(--chalk);
 }
 .place-page #around-sable .place-map__notes .sable-disclaimer__title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .place-page #around-sable .place-map__notes .sable-disclaimer__text { margin:0; font:400 12px/1.45 var(--sans); color:#706C62; }
 /* Names: on phone only the chosen place (and Sable) carry a name on the map, so names never collide. */
 .place-page #around-sable.place-map .place-map__pin:not(.place-map__pin--home):not([aria-pressed="true"]) .place-map__tag { opacity:0 !important; transition-delay:0ms !important; }

 /* ---------- In the page: a still picture and one way in */
 .place-page #around-sable:not(.is-full) :is(.place-map__hint, .place-map__prompt, .place-map__readout, .place-map__zoom, .place-map__filters, .place-map__close) { display:none !important; }
 .place-page #around-sable:not(.is-full) .place-map__stage { touch-action:pan-y; cursor:pointer; }
 .place-page #around-sable:not(.is-full) .place-map__open { grid-row:3; grid-column:1; justify-self:start; position:relative; margin:16px var(--page) 12px calc(var(--page) - var(--fbtn-inset,14px)); } /* the drawn frame (14px inside the box) starts on the text margin (Camille 23 Oct 2026) */
 .place-page #around-sable.is-full .place-map__open { display:none !important; }

 /* ---------- Full screen */
 .place-page #around-sable.is-full {
  position:fixed !important; inset:0; z-index:1000; width:100vw; height:100dvh; margin:0;
 }
 html.place-map-full .site-header { visibility:hidden; }
 .place-page #around-sable.is-full .place-map__head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:max(20px, env(safe-area-inset-top)) var(--page) 12px; }
 .place-page #around-sable.is-full .place-map__head h2 { font-size:28px; }
 .place-page #around-sable.is-full .place-map__head p { display:none; }
 .place-page #around-sable.is-full .place-map__close { position:relative !important; inset:auto !important; transform:none !important; flex:none; min-height:44px; margin:0 calc(-1 * .14em) 0 0; }
 .place-page #around-sable.is-full .place-map__stage { touch-action:none; cursor:grab; }

 /* The status line: one chalk line at the top left of the map, one state at a time: Select a category, then Select + to
    show a place, then the chosen place and its distance. */
 .place-page #around-sable :is(.place-map__hint, .place-map__prompt, .place-map__readout) {
  grid-row:2; grid-column:1; align-self:start; justify-self:start; position:relative; z-index:3;
  display:flex; align-items:center; gap:12px; max-width:calc(100% - 2 * var(--page)); min-height:32px;
  margin:12px var(--page) 0; padding:0 12px; background:var(--chalk); color:var(--bark);
  font:400 12px/1.4 var(--sans); white-space:nowrap; pointer-events:none;
  opacity:0; visibility:hidden; transition:opacity var(--m-base,400ms) var(--m-curve,cubic-bezier(.45,0,.55,1)), visibility 0s linear var(--m-base,400ms);
 }
 .place-page #around-sable :is(.place-map__hint, .place-map__prompt, .place-map__readout) :is(span, p) { font:inherit; }
 .place-page #around-sable .place-map__hint { display:none !important; } /* one finger is natural in full screen; no hint needed */
 .place-page #around-sable .place-map__prompt { display:grid; }
 .place-page #around-sable .place-map__prompt .place-map__prompt-text { grid-area:1 / 1; align-self:center; opacity:0; }
 .place-page #around-sable.is-full:not(:has(.place-map__readout.is-on)) .place-map__prompt { opacity:1; visibility:visible; transition-delay:0s; }
 .place-page #around-sable:is([data-cat="none"], :not([data-cat])) .place-map__prompt .place-map__prompt-text[data-prompt="category"],
 .place-page #around-sable[data-cat]:not([data-cat="none"]) .place-map__prompt .place-map__prompt-text[data-prompt="place"] { opacity:1; }
 .place-page #around-sable .place-map__readout { justify-content:flex-start; column-gap:10px; }
 .place-page #around-sable.is-full .place-map__readout.is-on { opacity:1; visibility:visible; transition-delay:0s; }
 .place-page #around-sable .place-map__readout .place-map__readout-label { display:none; }
 .place-page #around-sable .place-map__readout .place-map__readout-name { font-weight:700; overflow:hidden; text-overflow:ellipsis; }

 /* Zoom: one column at the bottom right of the map. Back to Sable on its own square, then one box holding + over minus with
    a single 1px line between them (the desktop zoom box at phone size). Every square 44px. */
 .place-page #around-sable .place-map__zoom {
  grid-row:2; grid-column:1; align-self:end; justify-self:end; position:relative; z-index:3;
  display:grid; grid-template-columns:44px; width:auto; height:auto; margin:0 var(--page) 20px 0;
 }
 .place-page #around-sable .place-map__zoom :is(.place-map__zoom-label, .place-map__zoom-pair) { display:none; }
 .place-page #around-sable .place-map__zoom > button {
  display:grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px; margin:0; padding:0;
  background:var(--chalk); border:1px solid var(--bark); color:var(--bark); box-sizing:border-box;
 }
 .place-page #around-sable .place-map__zoom > button::after { display:none; }
 .place-page #around-sable .place-map__zoom > .place-map__home { order:1; margin-bottom:8px; }
 .place-page #around-sable .place-map__zoom > button[aria-label="Zoom in"] { order:2; }
 .place-page #around-sable .place-map__zoom > button[aria-label="Zoom out"] { order:3; border-top:0; }
 .place-page #around-sable .place-map__zoom > button:disabled { color:color-mix(in srgb, var(--bark) 35%, var(--chalk)); }
 .place-page #around-sable .place-map__zoom svg { width:14px; height:14px; }
 .place-page #around-sable .place-map__home .fbtn__label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .place-page #around-sable .place-map__home :is(.fbtn__frame, .fbtn__icon) { display:none; }
 .place-page #around-sable .place-map__home::before { content:""; grid-area:1 / 1; width:14px; height:14px; box-sizing:border-box; border:1px solid currentColor; border-radius:50%; }
 .place-page #around-sable .place-map__home::after { content:""; display:block !important; grid-area:1 / 1; width:4px; height:4px; border-radius:50%; background:currentColor; }

 /* Categories: every one in view at once, two columns of 44px rows, on the page margin. */
 .place-page #around-sable .place-map__filters {
  grid-row:3; grid-column:1; position:relative; z-index:3; display:grid; grid-template-columns:1fr 1fr; column-gap:16px; row-gap:0; align-content:start; align-items:center;
  height:auto; margin:0 !important; padding:8px var(--page) 8px !important; overflow:visible; background:var(--chalk); border:0;
 }
 .place-page #around-sable .place-map__filter { justify-self:start; min-height:44px; height:44px; margin:0; padding:0; white-space:nowrap; }
 .place-page #around-sable .place-map__category-frame { display:none; }
}
@media (max-width:720px) and (prefers-reduced-motion:reduce) {
 .place-page #around-sable :is(.place-map__hint, .place-map__prompt, .place-map__readout) { transition:none; }
}

@media (max-width:720px) { .place-page #around-sable.is-full:focus, .place-page #around-sable.is-full:focus-visible { outline:0; } }

/* Full screen map without the credit line (Camille 23 Oct 2026: "opening into full map - remove disclaimer line"); the credit
   stays under the map in the page. */
@media (max-width:720px) { .place-page #around-sable.is-full .place-map__notes { display:none !important; } .place-page #around-sable.is-full .place-map__filters { padding-bottom:max(16px, env(safe-area-inset-bottom)) !important; } }

/* Full screen map, second pass (Camille 23 Oct 2026: "group all the category like website - to have sliding black box - and add
   in instruction line - select a category to view. delete around sable - so map goes full edge - under close button";
   "the frame should NOT move"). The map runs from the top edge with CLOSE X over it; under the map, the instruction line and
   the six categories grouped in the desktop's hairline box, two to a row, the chosen one held by the desktop's hairline
   frame, which slides to a new choice. The whole full screen takes every gesture, so the frame never moves (no rubber band,
   no page zoom); only the map inside it moves. */
@media (max-width:720px) {
 .place-page #around-sable.is-full { grid-template-rows:0 minmax(0,1fr) auto auto; touch-action:none; overscroll-behavior:none; }
 .place-page #around-sable.is-full .place-map__head { grid-row:1; position:absolute; top:0; right:0; left:auto; z-index:6; display:block; padding:max(16px, env(safe-area-inset-top)) var(--page) 0; background:none; }
 .place-page #around-sable.is-full .place-map__head h2 { display:none; }
 /* The status line clears CLOSE X on the same row; before a category it is empty (the instruction line below says it). */
 .place-page #around-sable.is-full :is(.place-map__prompt, .place-map__readout) { margin-top:max(22px, calc(env(safe-area-inset-top) + 6px)); /* +4px: the strip's centre on CLOSE X's centre (Codex register, 23 Oct 2026); CLOSE X unmoved */ max-width:calc(100% - 2 * var(--page) - 96px); }
 .place-page #around-sable.is-full:is([data-cat="none"], :not([data-cat])) .place-map__prompt { opacity:0 !important; visibility:hidden !important; }
 .place-page #around-sable .place-map__catline { display:none; }
 .place-page #around-sable.is-full .place-map__catline { display:block; grid-row:3; grid-column:1; margin:16px var(--page) 10px; font:400 12px/1.4 var(--sans); color:var(--bark); }
 /* The grouped categories: the desktop box (a hairline round all), two to a row, 44px rows. */
 .place-page #around-sable.is-full .place-map__filters {
  grid-row:4; position:relative; display:grid; grid-template-columns:1fr 1fr; column-gap:0; row-gap:0;
  margin:0 var(--page) max(20px, env(safe-area-inset-bottom)) !important; padding:0 !important;
  box-shadow:inset 0 0 0 var(--hairline,.5px) rgba(51,47,36,.35); background:var(--chalk);
 }
 .place-page #around-sable.is-full .place-map__filter { position:relative; z-index:1; justify-self:stretch; display:flex; align-items:center; justify-content:center; height:44px; padding:0 8px; opacity:.55; transition:opacity var(--m-base,400ms) var(--m-curve,cubic-bezier(.45,0,.55,1)); }
 .place-page #around-sable.is-full .place-map__filter[aria-pressed="true"], .place-page #around-sable.is-full .place-map__filter[aria-checked="true"] { opacity:1; }
 .place-page #around-sable.is-full .place-map__filter .place-map__cat-text::after { content:none !important; display:none !important; }
 /* The sliding frame: the desktop's hairline frame, moved in both directions by transform only, on the calm curve. */
 .place-page #around-sable .pm-catbox { display:none; }
 .place-page #around-sable.is-full .pm-catbox { display:block; position:absolute; z-index:0; left:0; top:0; height:44px; pointer-events:none; opacity:0; transition:opacity var(--m-base,400ms) var(--m-curve,cubic-bezier(.45,0,.55,1)); }
 .place-page #around-sable.is-full .pm-catbox.is-on { opacity:1; }
 .place-page #around-sable .pm-catbox > span { position:absolute; left:0; top:0; height:44px; transform-origin:0 0; transition:transform var(--m-move,700ms) var(--m-curve,cubic-bezier(.45,0,.55,1)); }
 .place-page #around-sable .pm-catbox.is-placing > span { transition:none; }
 .place-page #around-sable .pm-catbox__lines { width:100px; box-shadow:inset 0 var(--hairline,.5px) 0 var(--bark), inset 0 calc(-1 * var(--hairline,.5px)) 0 var(--bark); }
 .place-page #around-sable .pm-catbox__edge { width:var(--hairline,.5px); background:var(--bark); }
}
@media (max-width:720px) and (prefers-reduced-motion:reduce) { .place-page #around-sable .pm-catbox > span { transition:none; } }

/* The still map in the page: Sable at the centre (place-map-phone.js sets the offset), no place pins, only the drawing and its
   street and suburb lettering. Interaction is in full screen only. Phone only. */
@media (max-width:720px) {
 .place-page #around-sable:not(.is-full) .place-map__pin:not(.place-map__pin--home), .place-page #around-sable:not(.is-full) .place-map__leaders { visibility:hidden !important; }
}

/* No distances on the phone map (Camille 23 Oct 2026: "inside map - NO NEED FOR km disstance details"): the scale bar and the
   chosen place's distance from Sable are not shown; the place reads by its name. No outer box on the categories ("the category
   control bar - NO need for the outer box"): the chosen one keeps its sliding hairline frame. Phone only. */
@media (max-width:720px) {
 .place-page #around-sable .place-map__scale { display:none !important; }
 .place-page #around-sable .place-map__readout .place-map__readout-dist { display:none !important; }
 .place-page #around-sable.is-full .place-map__filters { box-shadow:none !important; }
}

/* The chosen category on olive (Camille 23 Oct 2026: "make the selction part olive backgroiund"): the sliding frame becomes a
   flat olive block (the same move, transform only, on the calm curve) and the chosen name is gold on it (7.75:1). Phone only. */
@media (max-width:720px) {
 .place-page #around-sable.is-full .pm-catbox__lines { box-shadow:none; background:var(--sable-green); }
 .place-page #around-sable.is-full .pm-catbox__edge { display:none; }
 .place-page #around-sable.is-full .place-map__filter:is([aria-pressed="true"], [aria-checked="true"]) { color:var(--film-yellow); opacity:1; }
 .place-page #around-sable.is-full .place-map__filter:is([aria-pressed="true"], [aria-checked="true"]) .place-map__cat-text { color:var(--film-yellow); }
 /* The name turns gold as the block arrives, not before (Camille 23 Oct 2026: "animation on this is not working - we see the
    text turning yellow before the block arrives"): the block moves for --m-move (700ms); the gold fades in over its last
    300ms. The name it leaves returns to bark at once over 300ms, as the block slides off it. */
 .place-page #around-sable.is-full .place-map__filter, .place-page #around-sable.is-full .place-map__filter .place-map__cat-text { transition:opacity var(--m-base,400ms) var(--m-curve,cubic-bezier(.45,0,.55,1)), color 300ms var(--m-curve,cubic-bezier(.45,0,.55,1)) 0ms; }
 .place-page #around-sable.is-full .place-map__filter:is([aria-pressed="true"], [aria-checked="true"]), .place-page #around-sable.is-full .place-map__filter:is([aria-pressed="true"], [aria-checked="true"]) .place-map__cat-text { transition-delay:0ms, calc(var(--m-move,700ms) - 300ms); }
}
@media (max-width:720px) and (prefers-reduced-motion:reduce) { .place-page #around-sable.is-full .place-map__filter, .place-page #around-sable.is-full .place-map__filter .place-map__cat-text { transition:none !important; } }

/* The still's street names: only the chosen twelve (place-map-phone.js marks them), shown whatever the map's own tier rule;
   every other street name rests. Suburb names follow the map. Full screen is unchanged. Phone only. */
@media (max-width:720px) {
 .place-page #around-sable:not(.is-full) .place-map__art--labels text.lbl--street.still-drop { opacity:0 !important; visibility:hidden !important; }
 .place-page #around-sable:not(.is-full) .place-map__art--labels text.lbl--street.still-keep { opacity:1 !important; visibility:visible !important; }
}

/* The still's two suburb names, set by the site (the map's suburb lettering: DM Sable 500, capitals, wide tracking, eucalypt).
   Every other suburb or area name rests in the still, so no name is cut at its edge. Full screen shows the map's own. */
@media (max-width:720px) {
 .place-page #around-sable:not(.is-full) .place-map__art--labels text.lbl:not(.lbl--street) { opacity:0 !important; visibility:hidden !important; }
 .place-page #around-sable .still-suburb { position:absolute; z-index:2; pointer-events:none; font:500 12px/1 var(--sans); letter-spacing:.32em; text-transform:uppercase; color:#85825D; white-space:nowrap; }
 .place-page #around-sable.is-full .still-suburb { display:none; }
 .place-page #around-sable .still-suburb--north { top:22px; left:50%; transform:translateX(-50%); }
 .place-page #around-sable .still-suburb--east { right:calc(var(--page,20px) - .32em); top:40%; }
}

/* No suburb names in the still (Camille 23 Oct 2026: "remove jolimont - remove floreat"): the still names the twelve streets
   only. Phone only. */
@media (max-width:720px) { .place-page #around-sable .still-suburb { display:none !important; } }

/* Smaller street names in the still (Camille 23 Oct 2026: "reduce street name label font size"): three quarters of the map's
   size, set on each kept name by place-map-phone.js (it measures them after, for the collision check). Phone only. */
@media (max-width:720px) {
}

/* Olive category panel (Camille 23 Oct 2026: "Whole panel olive, including the instruction. Instruction and unselected names in
   chalk. Selected name in gold, with a fine gold outline gliding around it. Remove the travelling filled block."). Phone only.
   The full screen's ground under the map is the plate olive, so the instruction line and the six categories sit on it; the
   sliding frame returns to a hairline, now gold, moving by transform only on the calm curve as before; the chosen name is
   gold (its colour still arrives with the frame). Unselected names are chalk at full strength. */
@media (max-width:720px) {
 .place-page #around-sable.is-full { background:var(--sable-green); }
 .place-page #around-sable.is-full .place-map__catline { color:var(--white); }
 .place-page #around-sable.is-full .place-map__filters { background:none; box-shadow:none !important; }
 .place-page #around-sable.is-full .place-map__filter, .place-page #around-sable.is-full .place-map__filter .place-map__cat-text { color:var(--white); opacity:1; }
 .place-page #around-sable.is-full .place-map__filter:is([aria-pressed="true"], [aria-checked="true"]),
 .place-page #around-sable.is-full .place-map__filter:is([aria-pressed="true"], [aria-checked="true"]) .place-map__cat-text { color:var(--film-yellow); }
 .place-page #around-sable.is-full .pm-catbox__lines { background:none; box-shadow:inset 0 var(--hairline,.5px) 0 var(--film-yellow), inset 0 calc(-1 * var(--hairline,.5px)) 0 var(--film-yellow); }
 .place-page #around-sable.is-full .pm-catbox__edge { display:block; background:var(--film-yellow); }
}
/* The credit breaks after "indicative only." on phone (Camille 23 Oct 2026: "line break after full stop"). */
@media (max-width:720px) { .place-page .place-map__credit-break { display:block; height:0; overflow:hidden; } }

/* Full screen map without the "Select (+) a place" strip (Camille 23 Oct 2026: "delete the instruction line", then chose this
   line). The chosen place's name and details still show in the same top left strip once a place is selected. Phone only. */
@media (max-width:720px) { .place-page #around-sable.is-full .place-map__prompt { display:none !important; } }
