/* Witney Map content office: the plugin's own screens, on WordPress's own admin.
 * WordPress 7.1 styles the admin bar, menu, buttons, fields, notices, tables and post editor (its 7.0 refresh); the
 * Witney colour scheme (scheme.css) sets their colours. This file styles only what the plugin adds: Home, Places,
 * the review queue, Insights, the guided Add a place, and the sign-in page. Values come from tokens.css, which reads
 * WordPress's design tokens (--wpds-*).
 *
 * Scoped to body.witney-app (everyone in wp-admin except the block editor) and the sign-in page.
 *
 * Rules: flat white panels with a 1px edge on the page grey, WordPress's spacing and radius, the Council green as the
 * one accent, no gradients, glass or glow. */

/* ================================================================= Base */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(> body.witney-app) { scroll-padding-top: calc(var(--wm-top) + 64px); scroll-padding-bottom: 88px; } /* focus never hides under sticky bars (WCAG 2.4.11) */
.wm-icon { width: 18px; height: 18px; flex: none; }
.witney-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wm-stat__num, .wm-seg__n, .witney-bars__value { font-variant-numeric: tabular-nums; }
.witney-app #wpbody-content { padding-bottom: 64px; }
.witney-app .wrap { margin: 24px 32px 0; }
.witney-app .wrap.witney-page { max-width: 1280px; margin: 0; padding: 24px 32px 40px; box-sizing: border-box; }
@media screen and (max-width: 782px) {
	.witney-app .wrap { margin: 16px 16px 0; }
	.witney-app .wrap.witney-page { padding: 16px 16px 32px; }
}

/* Count badge: the sidebar's (theme.css #adminmenu .awaiting-mod), so "1 waiting" looks the same on the Review button
   as beside Review in the menu; the quiet one (a count, not a call to act) is the same size in grey. */
.wm-count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #F9DE64; color: var(--wm-ink); font-size: var(--wm-fs-detail); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.wm-count-pill--quiet { background: var(--wm-bg); color: var(--wm-ink-2); }
.button .wm-count-pill { margin-left: 8px; }

/* ================================================================= Page titles */
.witney-app .wrap > h1, .wm-head h1, .witney-app .wrap h1.wp-heading-inline { margin: 0; padding: 0; font-size: var(--wm-fs-title); line-height: 1.3; font-weight: 700; color: var(--wm-ink); }
.witney-app .wrap h1.wp-heading-inline { margin-right: 12px; }
:where(.witney-app) h2 { color: var(--wm-ink); font-size: var(--wm-fs-body); font-weight: 600; }
.wm-head { margin: 0 0 20px; }
.wm-head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.wm-lede, .witney-app .wrap > p.description { margin: 4px 0 20px; color: var(--wm-muted); font-size: var(--wm-fs-body); } /* the full width, as the table or cards below it */
.wm-head .wm-lede { margin: 4px 0 0; }
.witney-app .description { color: var(--wm-muted); font-style: normal; font-size: var(--wm-fs-para); }
.wm-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ================================================================= Fields */
.witney-req { color: var(--wm-danger); }
.witney-app :is(.witney-form, .witney-field) :is(legend, label) { display: block; margin-bottom: 6px; font-size: var(--wm-fs-para); font-weight: 600; color: var(--wm-ink); }
.witney-app .witney-field { margin: 0 0 16px; }
.witney-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
/* ================================================================= Panels */
.wm-card { margin: 0 0 20px; padding: 20px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); box-shadow: none; }
.wm-card > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: var(--wm-fs-body); font-weight: 600; }
.wm-card--flush { padding: 0 !important; overflow: hidden; }
.wm-card--flush > h2 { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--wm-line); }
.wm-card__lede { margin: 12px 20px; font-size: var(--wm-fs-para); color: var(--wm-muted); }
.wm-cols { display: grid; gap: 20px; align-items: stretch; } /* cards side by side end level */
@media (min-width: 1100px) { .wm-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wm-cols > .wm-card { margin: 0; }
@media screen and (max-width: 782px) { .wm-card { padding: 16px; } .wm-card--flush > h2 { padding: 12px 16px; } .wm-card__lede { margin: 10px 16px; } }
@media (forced-colors: active) { .wm-card { border: 1px solid CanvasText; } }
/* Empty states */
.wm-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 20px; color: var(--wm-muted); font-size: var(--wm-fs-body); }
.wm-empty .wm-icon { color: var(--wm-green); } /* the one green accent; the brighter status-dot green is for status dots only */
.wm-empty-card { padding: 48px 24px; text-align: center; }
.wm-empty-card__art { display: inline-grid; }
.wm-empty-card h2 { justify-content: center; margin: 12px 0 4px; font-size: var(--wm-fs-card); }
.wm-empty-card p { margin: 0 auto; max-width: 46ch; color: var(--wm-muted); font-size: var(--wm-fs-body); }
.wm-empty-card p:last-child { display: flex; justify-content: center; margin-top: 20px; }
.wm-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--wm-muted)); }

/* Icons standing in for photos: a line icon on a neutral square */
.wm-ico { display: inline-grid; place-items: center; flex: none; color: var(--wm-muted); }
.wm-ico .wm-ico__svg { width: 20px; height: 20px; }
.wm-thumb { display: grid; place-items: center; width: 40px; height: 40px; flex: none; overflow: hidden; border-radius: var(--wm-radius-sm); background: var(--wm-bg); }
.wm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wm-ico.is-lg .wm-ico__svg { width: 32px; height: 32px; }
.wm-ico.is-xl .wm-ico__svg { width: 44px; height: 44px; }
.wm-tile-lg { display: grid; place-items: center; background: var(--wm-bg); }

/* ================================================================= Lists (Home, Places, phones) */
/* A live place the person can't edit: the row is plain and "Suggest an update" is its own button under the name */
/* Icon actions: a round 40px target, the name for screen readers in aria-label and on hover in a title. */
/* Status menu: a round icon button in the Actions column opens a short list of the changes this person may make. The
   status tag itself is never a button (GOV.UK Design System: Tag). */
.wm-status-menu { position: relative; display: inline-block; vertical-align: middle; }
.wm-status-menu > summary { list-style: none; }
.wm-status-menu > summary::-webkit-details-marker { display: none; }
.wm-status-menu[open] > summary { background: var(--wm-primary-soft); color: var(--wm-primary-dark); }
.witney-app .wm-status-menu > summary:focus-visible { outline: 2px solid var(--wm-focus); outline-offset: 2px; }
.wm-status-menu__list { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: grid; min-width: 240px; padding: 6px; border: 1px solid var(--wm-line); border-radius: 12px; background: var(--wm-surface); box-shadow: 0 12px 32px -12px rgba(28, 27, 58, .28); white-space: normal; }
.wm-status-menu__list :is(button, a) { box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 9px 16px; border: 0; border-radius: var(--wm-radius-xs); background: none; color: var(--wm-ink); font: 500 var(--wm-fs-body)/1.4 var(--wm-font); text-align: left; text-decoration: none; cursor: pointer; }
/* Phones and tablets: the Status column folds into "Show more details", so the tag shows beside the name instead. */
.wm-cell-name .wm-cell-name__status { display: none; } /* beats kit.css's .wm-status, which loads later */
.wm-list--items td.column-actions > * { vertical-align: middle; } /* Edit, View and the status menu on one line */
@media screen and (max-width: 782px) {
	.wm-cell-name .wm-cell-name__status { display: inline-flex; flex: none; margin: 0 28px 0 auto; } /* clear of the row's open button */
	/* larger text: the tag goes under the name, so the row never runs off the screen */
	.wm-text-large .wm-list--items td.column-primary { min-width: 0; }
	.wm-text-large .wm-cell-name { flex-wrap: wrap; padding-right: 28px; }
	.wm-text-large .wm-cell-name .wm-cell-name__status { margin: 0 0 0 calc(40px + 12px); }
	.wm-text-large .wm-cell-name__text { flex: 1 1 calc(100% - 52px); }
	.wm-text-large .wm-toolbar__form { flex-wrap: wrap; } /* search, then the layer filter, each the full width */
	.wm-text-large .wm-toolbar__form > :is(.wm-search, .wm-select) { flex: 1 1 100%; max-width: none; }
	/* the menu drops down across the row, never off the screen */
	/* the tick box level with the name (the row is a flex box here, so the cell is as tall as its line) */
	.wp-admin .wm-list--items tbody tr > .check-column { display: flex; align-items: center; }
	.wp-admin .wm-list--items tbody tr.is-expanded > .check-column { padding-top: 22px; } /* WordPress makes it a block when open: the same height by padding */
	.wp-admin .wm-list--items td.column-actions { position: relative; overflow: visible; }
	.wm-list--items td.column-actions:has(.wm-status-menu[open]) { z-index: 21; } /* above the rows after it */
	.wm-list--items .wm-status-menu { position: static; }
	.wm-list--items .wm-status-menu__list { left: 16px; right: 16px; top: calc(100% - 4px); min-width: 0; }
}
.wm-status-menu__list .wm-status-menu__view { margin-bottom: 4px; border-bottom: 1px solid var(--wm-line); border-radius: var(--wm-radius-xs) var(--wm-radius-xs) 0 0; } /* View, then the status changes */
.wm-status-menu__view .wm-icon { width: 16px; height: 16px; margin-left: auto; color: var(--wm-muted); }
.wm-status-menu__item .wm-icon { flex: none; width: 18px; height: 18px; color: var(--wm-muted); } /* People's menu: the icon before the words */
.wm-status-menu__list .wm-status-menu__danger, .wm-status-menu__list .wm-status-menu__danger .wm-icon { color: var(--wm-danger); }
.wm-status-menu__list a.wm-status-menu__danger:is(:hover, :focus-visible) { background: var(--wm-danger-soft); color: var(--wm-danger-dark); }
.wm-status-menu__list :is(button, a):hover, .wm-status-menu__list :is(button, a):focus-visible { background: var(--wm-hover); color: var(--wm-primary-dark); } /* as every pop-up menu and open list */

/* Places and stories: a table on desktop */
@media (min-width: 1280px) { /* the table needs about 1000px; a 1024px tablet with the menu open gets the list */
}

/* Toolbar: search, layer filter, status */
.wm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 0 0 12px; }
.wm-toolbar__form { display: flex; gap: 8px; flex: 1 1 420px; min-width: 0; }
.wm-search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 360px; }
.wm-search .wm-icon { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; color: var(--wm-muted); transform: translateY(-50%); pointer-events: none; }
.witney-app .wm-search input[type="search"] { width: 100%; padding-left: 40px; }
.wm-select { position: relative; flex: 0 1 220px; min-width: 0; }
.wm-select select { width: 100%; max-width: none; }
.wm-select.has-dot::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--dot); pointer-events: none; }
.witney-app .wm-select.has-dot select { padding-left: 26px; }
.witney-app.wp-core-ui.js .wm-toolbar__go { display: none; } /* filters apply on change; Enter searches */
.wm-toolbar[data-sticky] { position: sticky; top: var(--wm-top); z-index: 20; margin: 0 0 12px; padding: 10px 0; background: var(--wm-bg); box-shadow: 0 0 0 100vmax var(--wm-bg); clip-path: inset(0 -100vmax 0 -32px); } /* as it sticks, the band covers the content area to the right edge, never the menu */
@media screen and (max-width: 782px) { .wm-toolbar[data-sticky] { padding: 8px 0; clip-path: inset(0 -100vmax 0 -16px); } }
@media (max-width: 1023px) { .wm-toolbar__form { flex-basis: 100%; } .wm-search { max-width: none; } }
@media (max-width: 600px) { .wm-select { flex-basis: 150px; } }

/* Segmented control: WordPress's toggle group (a bordered row, the chosen option dark) */

/* Bulk actions: a bar stuck to the bottom of the list */
.wm-bulkbar { position: sticky; bottom: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 12px 0 0; padding: 10px 12px 10px 16px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); box-shadow: var(--wm-shadow-lg); }
.js .wm-bulkbar:not(.is-active) { display: none; }
.wm-bulkbar__count { flex: 1 1 160px; margin: 0; font-size: var(--wm-fs-body); font-weight: 600; }
.wm-bulkbar__return summary { list-style: none; }
.wm-bulkbar__return summary::-webkit-details-marker { display: none; }
.wm-bulkbar__return[open] { flex-basis: 100%; order: 3; }
.wm-bulkbar__return[open] summary { display: none; }
.wm-bulkbar__note { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 4px 0; }
.wm-bulkbar__note label { flex-basis: 100%; font-size: var(--wm-fs-para); font-weight: 600; }
.wm-bulkbar__note textarea { flex: 1 1 260px; }

/* ================================================================= Home */
.wm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 20px; padding: 0; overflow: hidden; list-style: none; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); }
@media (min-width: 900px) { .wm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wm-stat { margin: 0; border-left: 1px solid var(--wm-line); }
.wm-stat:nth-child(odd) { border-left: 0; }
.wm-stat:nth-child(n+3) { border-top: 1px solid var(--wm-line); }
@media (min-width: 900px) { .wm-stat:nth-child(odd) { border-left: 1px solid var(--wm-line); } .wm-stat:first-child { border-left: 0; } .wm-stat:nth-child(n+3) { border-top: 0; } }
.wm-stat__box { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 16px 20px; color: var(--wm-ink); text-decoration: none; }
/* The boxes in a row share their label, number and chart lines, so the numbers stay level when one label wraps
   ("Waiting for approval" on a phone or a small laptop pushed its number 18px below the others). */
@supports (grid-template-rows: subgrid) {
	.wm-stat { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
	.wm-stat__box { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 2px; align-content: start; height: auto; }
}
a.wm-stat__box:hover { background: var(--wm-surface-2); }
a.wm-stat__box:hover .wm-stat__label { color: var(--wm-primary); }
.witney-app a.wm-stat__box:focus-visible { outline-offset: -2px; }
.wm-stat__label { color: var(--wm-ink-2); font-size: var(--wm-fs-para); font-weight: 600; } /* the same figure as Insights: label, then number */
.wm-stat__num { font-size: var(--wm-fs-figure); font-weight: 700; line-height: 1.1; }
.wm-spark { display: block; width: 100%; height: 22px; margin-top: 6px; overflow: visible; }
.wm-spark polyline { fill: none; stroke: var(--wm-primary); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wm-home > .wm-card, .wm-home > section { margin-top: 20px; }
.wm-mapstatus { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; color: var(--wm-muted); font-size: var(--wm-fs-para); }
.wm-mapstatus__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wm-ok-dot); }
.wm-mapstatus__dot.is-bad { background: var(--wm-danger); }
.wm-mapstatus a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; }
.wm-mapstatus a:hover { text-decoration: underline; }
.wm-mapstatus a .wm-icon { width: 14px; height: 14px; }
/* "This week on the map": a small calendar date */
.wm-date { display: grid; place-items: center; align-content: center; gap: 1px; width: 40px; height: 40px; flex: none; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); background: var(--wm-surface); line-height: 1; }
.wm-date span { font-size: var(--wm-fs-detail); font-weight: 600; color: var(--wm-danger); }
.wm-date strong { font-size: var(--wm-fs-card); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 781px) { .wm-home .wm-head--row { align-items: stretch; } .wm-home .wm-actions { flex: 1 1 100%; } .wm-home .wm-actions .button { flex: 1 1 0; } }

/* Help */
.wm-help .wm-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.wm-help .wm-card h2 + p { margin-top: 0; }
.wm-help .wm-card p + h2 { margin-top: 20px; }

/* ================================================================= Forms (Quick add, settings, import) */
.witney-app .wrap.witney-quick { max-width: 760px; }
.witney-form { padding: 20px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); }
.witney-form .witney-field { margin: 0 0 20px; }
.witney-form fieldset.witney-field { min-width: 0; padding: 0; border: 0; }
.witney-form :is(input[type="text"], input[type="url"], select, textarea) { width: 100%; max-width: none; }
.witney-form .description { display: block; margin-top: 6px; }
.witney-locate .button { margin-bottom: 6px; }
.witney-locate .witney-picker { height: 280px; margin: 8px 0 12px; }
.witney-picker { height: 340px; overflow: hidden; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); }
.witney-picker--story { height: 300px; }
.witney-picker--small { height: 220px; margin-top: 6px; }
.witney-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.witney-coords .witney-field { margin: 0; }
.witney-location { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .witney-location { grid-template-columns: 1fr; } }

/* Bars of actions: Quick add and the phone post editor. Stuck to the bottom on phones. */
.witney-actionbar { display: flex; flex-wrap: wrap; gap: 8px; }
.witney-actionbar--static { position: sticky; bottom: 0; z-index: 5; align-items: center; justify-content: flex-end; margin: 24px -20px -20px; padding: 12px 20px; border-top: 1px solid var(--wm-line); border-radius: 0 0 var(--wm-radius) var(--wm-radius); background: var(--wm-surface); }
.witney-actionbar--proxy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989; justify-content: flex-end; flex-wrap: nowrap; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--wm-surface); box-shadow: var(--wm-shadow-island); }
@media (min-width: 1024px) { .witney-actionbar--proxy { display: none; } } /* desktop: the Publish box has the buttons */
@media (max-width: 781px) {
	.witney-actionbar--static { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; flex-wrap: wrap; box-shadow: var(--wm-shadow-island); }
}
@media (max-width: 1023px) { .witney-actionbar .button { flex: 1 1 0; min-height: 44px !important; } }
.wm-why { flex: 1 1 200px; margin: 0; align-self: center; font-size: var(--wm-fs-para); color: var(--wm-muted); }
@media (max-width: 781px) { .wm-why { flex-basis: 100%; } }
@media (forced-colors: active) { .witney-actionbar { border: 1px solid CanvasText; } }

/* ================================================================= Review queue */
/* Review uses the standard 1280px page width, as Places, Insights and the Activity log do. */
.edit-tags-php.taxonomy-witney_layer #wpbody-content > .wrap { max-width: 1280px; } /* Layers list: same width as the other lists */
.taxonomy-witney_layer #addtag .wm-pick--date { width: 100%; box-sizing: border-box; } /* Add a layer: date pickers full width, as on Edit layer */
/* Queue: one line per waiting item */
.wp-admin .wm-list--review { table-layout: fixed; }
.wm-list--review .column-org { width: 13%; } /* short names: WODC, Town Council, Chamber */
.wm-list--review .column-sent { width: 18%; } /* room for a full name without cutting it short */
.wm-list--review .column-waiting { width: 110px; color: var(--wm-muted); }
.wm-list--review .column-actions { width: 130px; } /* one Review button */
.wm-list--review td.column-actions > * { vertical-align: middle; }
@media (min-width: 783px) and (max-width: 1279px) {
	.wp-admin .wm-list--review > :is(thead, tbody) > tr > :is(th, td).column-sent { display: none; } /* it is on the item */
	.wm-list--review .column-org { width: 24%; }
}
/* One item: what visitors will see on the right, every detail on the left, the decision at the foot */
.witney-app .wrap.witney-review--item { max-width: 1240px; }
.wm-back { margin: 0 0 12px; }
.wm-back a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.wm-back .wm-icon { width: 16px; height: 16px; }
.wm-rhead { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.wm-rhead .wm-thumb { width: 56px; height: 56px; }
.wm-rhead__text { flex: 1 1 auto; min-width: 0; }
.witney-app .wm-rhead h1 { margin: 0; }
.wm-rhead__text p { margin: 2px 0 0; color: var(--wm-muted); font-size: var(--wm-fs-body); }
.wm-rhead__sent { flex: none; display: grid; margin: 0; font-weight: 500; text-align: right; }
.wm-rhead__sent span { color: var(--wm-muted); font-weight: 400; }
.witney-review--item > .notice.inline { margin: 0 0 12px; }
.wm-rgrid:not(:has(> .wm-rside)) { grid-template-columns: minmax(0, 1fr); } /* a walk: no card to preview */
.wm-rgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 8px; }
.wm-rmain { display: grid; gap: 16px; min-width: 0; }
.wm-rsec { padding: 20px; }
.wm-rsec > h2 { margin: 0 0 12px; font-size: var(--wm-fs-section); font-weight: 600; }
.wm-rside { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 32px) + 16px); }
.wm-rside > h2 { margin: 0 0 8px; }
.wm-rdl { display: grid; margin: 0; }
.wm-rdl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--wm-line); font-size: var(--wm-fs-body); }
.wm-rdl > div:first-child { border-top: 0; padding-top: 0; }
.wm-rdl dt { color: var(--wm-muted); }
.wm-rdl dd { margin: 0; color: var(--wm-ink); overflow-wrap: anywhere; }
.wm-rmissing { color: var(--wm-danger); font-weight: 600; }
.wm-rstops { margin: 0; padding-left: 20px; }
.wm-rstops li { margin: 0 0 6px; }
.wm-rphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wm-rphotos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wm-radius-sm); }
.wm-rphotos p { margin: 6px 0 0; font-size: var(--wm-fs-para); }
.wm-rpin { height: 280px; border-radius: var(--wm-radius-sm); overflow: hidden; }
.wm-ractions.witney-review-actions .button-link { margin-right: 16px; }
.wm-ractions.witney-review-actions .button-link:last-of-type { margin-right: auto; } /* the links together on the left, the decision on the right */
.wm-ractions { position: sticky; bottom: 0; z-index: 5; margin: 20px 0 0; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); box-shadow: 0 -8px 24px -16px rgba(28, 27, 58, .25); }
@media (max-width: 1099px) {
	.wm-rgrid { grid-template-columns: minmax(0, 1fr); }
	.wm-rside { position: static; order: -1; max-width: 420px; } /* the visitor's view first, then the details */
}
@media (max-width: 781px) {
	.wm-rhead { flex-wrap: wrap; align-items: flex-start; }
	.wm-rhead .wm-thumb { width: 48px; height: 48px; }
	.wm-rhead__text { flex: 1 1 0; } /* beside the picture, not under it */
	.wm-rhead__sent { flex-basis: 100%; display: block; padding-left: 62px; text-align: left; }
	.wm-ractions { position: static; box-shadow: none; } /* four rows on a phone: at the end of the page, not covering it */
	.wm-rhead__sent span::before { content: " · "; }
	.wm-rdl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.wm-rsec { padding: 16px; }
}
.wm-meta { display: grid; gap: 4px; margin: 0; }
.wm-meta > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: var(--wm-fs-body); }
.wm-meta dt { color: var(--wm-muted); }
.wm-meta dd { margin: 0; color: var(--wm-ink); }
.witney-return summary { cursor: pointer; }
.witney-review-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--wm-line); background: var(--wm-surface-2); }
.witney-review-actions .button-link { order: 0; margin-right: auto; font-size: var(--wm-fs-body); }
@media (max-width: 781px) { /* as the form's action bar: the link on its own line, the buttons sharing the width */
	.witney-review-actions .button-link { flex-basis: 100%; min-height: var(--wm-tap); display: inline-flex; align-items: center; }
	.witney-review-actions > :is(form, .button) { flex: 1 1 0; }
	.witney-review-actions > form .button { width: 100%; }
}
.witney-review-actions .witney-return { order: 1; }
.witney-review-actions > form { order: 2; margin: 0; }
.witney-return summary { list-style: none; }
.witney-return summary::-webkit-details-marker { display: none; }
.witney-return[open] { order: 3; flex-basis: 100%; }
.witney-return[open] summary { display: none; }
.witney-return textarea { width: 100%; margin: 0 0 8px; }
.witney-return form { display: flex; flex-direction: column; align-items: flex-end; }
.witney-return form label { align-self: stretch; }
@media (max-width: 600px) { .witney-review-actions > form, .witney-review-actions .witney-return, .witney-review-actions .witney-return summary, .witney-review-actions > form .button { width: 100%; } .witney-review-actions .button-link { flex-basis: 100%; } }
/* Suggested updates: what changes */
.witney-diff { margin: 10px 0; }
.witney-diff > div { padding: 8px 0; border-top: 1px solid var(--wm-line); }
.witney-diff dt { font-size: var(--wm-fs-para); font-weight: 600; }
.witney-diff dd { display: grid; gap: 4px; margin: 4px 0 0; font-size: var(--wm-fs-body); }
.witney-diff del { padding: 4px 8px; border-radius: var(--wm-radius-xs); background: var(--wm-danger-soft); color: var(--wm-danger-dark); }
.witney-diff ins { padding: 4px 8px; border-radius: var(--wm-radius-xs); background: var(--wm-ok-soft); color: var(--wm-ok); text-decoration: none; }

/* ================================================================= Feed status, settings lists */
/* Longer labels (the feed card in Settings): a wider label column, one row under the other on a phone. */
.wm-meta dd { word-break: break-word; }
.wm-meta code { padding: 2px 6px; border-radius: var(--wm-radius-xs); background: var(--wm-bg); font-size: var(--wm-fs-para); }

/* ================================================================= Insights */
.witney-app .witney-insights .page-title-action { margin-left: 0; }
.witney-insights > .description { margin: 4px 0 20px; }
/* One date bar drives the page: quick ranges, then the exact dates (they apply as soon as they change). */
.wm-ins-range { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 20px; }
.wm-ins-range .wm-seg { margin: 0; }
.wm-ins-range__dates { display: flex; align-items: center; gap: 8px; color: var(--wm-muted); }
.wm-ins-range__dates input[type="date"] { width: 168px; }
.wm-ins-range__note { flex-basis: 100%; margin: -4px 0 0; color: var(--wm-muted); font-size: var(--wm-fs-detail); }
/* Headline totals: five tiles, the number first. */
/* Five totals: two wide on top (visits, page views) and three below; one row of five on wide screens. */
.wm-ins-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.wm-ins-kpis > li { grid-column: span 2; }
.wm-ins-kpis > li:nth-child(-n+2) { grid-column: span 3; }
@media (min-width: 1680px) { .wm-ins-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } .wm-ins-kpis > li:nth-child(n) { grid-column: auto; } }
/* Phones: two figures a row (three squeezed "4,927" out of its card), an odd last one full width; the two dates share
   the row instead of running off the screen. */
@media (max-width: 600px) {
	.wm-ins-kpis > li:nth-child(n) { grid-column: span 3; }
	.wm-ins-kpis > li:last-child:nth-child(odd) { grid-column: span 6; }
	.wm-ins-range__dates { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
	.wm-ins-range__dates > .wm-pick { flex: 1 1 100%; min-width: 0; } /* one field a row: side by side, "Thu 22 Oct 2026" wrapped inside its field */
	.wm-ins-range__dates > span[aria-hidden] { display: none; }
}
/* Insights tables: a row's name in the same weight as every table's names, and the figures in narrow columns so the
   name has the room ("Holy Trinity Church, Wood G…" beside half-empty number columns) */
.witney-insights .wm-list tbody td.column-primary { color: var(--wm-ink); font-weight: 600; }
.witney-insights .wm-list :is(th, td).num { width: 104px; }
.wm-ins-kpis > li.wm-card { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 20px; }
.wm-ins-kpis__label { color: var(--wm-ink-2); font-size: var(--wm-fs-para); font-weight: 600; }
.wm-ins-kpis__num { color: var(--wm-ink); font-size: var(--wm-fs-figure); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wm-ins-kpis__sub { display: inline-flex; align-items: center; gap: 4px; color: var(--wm-muted); font-size: var(--wm-fs-detail); }
.wm-ins-kpis__sub.is-up { color: var(--wm-ok); }
.wm-ins-kpis__sub.is-down { color: var(--wm-danger); }
.wm-ins-kpis__sub.is-up::before { content: "↑"; font-weight: 600; }
.wm-ins-kpis__sub.is-down::before { content: "↓"; font-weight: 600; }
/* Section headings and their card grids. */
.witney-insights .wm-card > h2 { margin: 0 0 16px; font-size: var(--wm-fs-card); }
.wm-ins-h { margin: 32px 0 12px; color: var(--wm-ink); font-size: var(--wm-fs-section); font-weight: 600; }
.wm-ins-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; } /* cards in a row are the same height */
@media (min-width: 900px) { .wm-ins-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wm-ins-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .wm-ins-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1279px) { .wm-ins-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.witney-insights .wm-card--flush + .wm-ins-grid { margin-top: 16px; }
.wm-ins-card { margin: 0; }
.wm-ins-card h3 { margin: 0 0 14px; color: var(--wm-ink); font-size: var(--wm-fs-card); font-weight: 600; }
.wm-ins-note { margin: -8px 0 14px; color: var(--wm-muted); font-size: var(--wm-fs-detail); overflow-wrap: anywhere; }
/* The visits chart: taller, light gridlines, the value on hover. */
.wm-chart { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 4px 0 8px; }
.wm-chart__y { display: flex; flex-direction: column; justify-content: space-between; height: 200px; margin: -7px 0; color: var(--wm-muted); font-size: var(--wm-fs-detail); text-align: right; font-variant-numeric: tabular-nums; }
.witney-spark { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 200px; margin: 0; padding: 0; background: linear-gradient(var(--wm-line), var(--wm-line)) top / 100% 1px no-repeat, linear-gradient(var(--wm-line), var(--wm-line)) center / 100% 1px no-repeat, linear-gradient(var(--wm-line-2), var(--wm-line-2)) bottom / 100% 1px no-repeat; }
.witney-spark span { flex: 1 1 0; min-width: 2px; border-radius: 3px 3px 0 0; background: var(--wm-primary); opacity: .85; transition: opacity var(--wm-fast); }
.witney-spark span:hover { opacity: 1; background: var(--wm-primary-dark); }
.wm-chart__x { grid-column: 2; display: flex; justify-content: space-between; margin-top: 8px; color: var(--wm-muted); font-size: var(--wm-fs-detail); }
.witney-insights details:not(.wm-info) > summary { display: inline-flex; align-items: center; min-height: 32px; color: var(--wm-primary-dark); font-size: var(--wm-fs-para); font-weight: 600; cursor: pointer; }
.witney-insights details table { margin-top: 8px; }
/* Top places: the numbers line up on the right. */
.wm-list--ins :is(th, td):not(.column-place) { width: 110px; text-align: right; }
/* Devices and time spent: one bar split by share, then a key with the percentages. */
.wm-stack { display: flex; gap: 2px; height: 14px; margin: 2px 0 16px; overflow: hidden; border-radius: 7px; }
.wm-stack__part { min-width: 3px; }
.wm-stack__key { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wm-stack__key li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin: 0; font-size: var(--wm-fs-body); }
.wm-stack__dot { width: 10px; height: 10px; border-radius: 3px; }
.wm-stack__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-stack__pct { color: var(--wm-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wm-stack__n { min-width: 48px; color: var(--wm-muted); font-size: var(--wm-fs-detail); text-align: right; font-variant-numeric: tabular-nums; }
:is(.wm-stack__part, .wm-stack__dot).is-0 { background: #2F5E36; }
:is(.wm-stack__part, .wm-stack__dot).is-1 { background: #4E8A57; }
:is(.wm-stack__part, .wm-stack__dot).is-2 { background: #7FB086; }
:is(.wm-stack__part, .wm-stack__dot).is-3 { background: #B2D2B6; }
:is(.wm-stack__part, .wm-stack__dot).is-4 { background: #D9E9DB; }
:is(.wm-stack__part, .wm-stack__dot).is-5 { background: #A9B7C6; }
:is(.wm-stack__part, .wm-stack__dot).is-6 { background: #C9D2DC; }
:is(.wm-stack__part, .wm-stack__dot).is-7, :is(.wm-stack__part, .wm-stack__dot).is-8, :is(.wm-stack__part, .wm-stack__dot).is-9 { background: #E3E8EE; }
:is(.wm-stack__part, .wm-stack__dot).is-x { background: #CFCDD8; } /* Direct or unknown: a neutral grey, not a source */
.wm-ins-kpis__label .wm-info, .wm-ins-card h3 .wm-info { font-weight: 400; }
.wm-ins-card h3.wm-label-row { margin: 0 0 14px; }
.witney-bars { margin: 0; padding: 0; list-style: none; }
.witney-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; margin: 0 0 10px; font-size: var(--wm-fs-body); }
.witney-bars__label { min-width: 0; overflow-wrap: anywhere; } /* wraps rather than cutting a page name short ("Suggest a cha…") */
.witney-bars__bar { grid-column: 1 / -1; height: 4px; min-width: 4px; border-radius: 2px; background: var(--wm-primary); }
.witney-bars__value { color: var(--wm-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.witney-bars__pct { margin-left: 6px; color: var(--wm-muted); font-weight: 500; }
.witney-bars__bar { opacity: .85; }
.wm-quarter .wm-toolbar { justify-content: space-between; }

/* ================================================================= Tables (activity log, import preview) */


/* Layers screen: the add form beside the list */
.witney-app #col-container { display: grid; gap: 20px; }
@media (min-width: 1100px) { .witney-app #col-container { grid-template-columns: 340px minmax(0, 1fr); } }
.witney-app #col-left, .witney-app #col-right { float: none; width: auto; }
.witney-app #col-left .col-wrap { padding: 16px 20px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); }
.witney-app #col-left .col-wrap h2 { margin-top: 4px; }
.witney-app #col-left .form-field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select) { width: 100%; }
.witney-app #col-left .form-field label:has(input[type="checkbox"]) { display: flex; align-items: center; font-weight: 600; }
.witney-app .form-field label, .witney-app .form-table th { font-size: var(--wm-fs-para); font-weight: 600; color: var(--wm-ink); }
.witney-app.taxonomy-witney_layer .search-form, .witney-app.taxonomy-witney_layer .tablenav.bottom .actions { display: none; } /* bulk actions at the top, where people look first */
.taxonomy-witney_layer .term-parent-wrap, .taxonomy-witney_layer .term-description-wrap, .taxonomy-witney_layer .column-description { display: none; }

/* ================================================================= Post editor (places, stories) */
.witney-app #poststuff { min-width: 0; padding-top: 0; }
.witney-app #titlediv { margin-bottom: 20px; }
.witney-app #edit-slug-box, .witney-app #preview-action, .witney-app #witney_layer-adder { display: none; }
@media (min-width: 851px) { .witney-app #poststuff #post-body.columns-2 { margin-right: 320px; } .witney-app #post-body.columns-2 #postbox-container-1 { width: 300px; margin-right: -320px; } }
@media (max-width: 850px) {
	.witney-app #post-body { display: flex; flex-direction: column; }
	.witney-app #post-body-content { order: 0; }
	.witney-app #postbox-container-2 { order: 1; }
	.witney-app #postbox-container-1 { order: 2; }
}
.witney-app .meta-box-sortables { min-height: 0; }
.witney-app .sortable-placeholder { display: none; }
/* Layers box: a list with colour dots */
.witney-app .category-tabs { display: none; }
.witney-app .categorydiv div.tabs-panel { max-height: none; margin: 0; padding: 0; overflow: visible; border: 0; background: none; }
.witney-app .categorydiv #witney_layer-all { display: block !important; }
.witney-app .categorydiv #witney_layer-pop { display: none !important; }
.witney-app .categorychecklist { margin: 0; }
.witney-app .categorychecklist li { margin: 0; }
.witney-app .categorychecklist label { display: flex; align-items: center; min-height: 30px; font-size: var(--wm-fs-body); }
.witney-app .categorychecklist .wm-dot { margin-right: 8px; }
@media (max-width: 1023px) { .witney-app .categorychecklist label { min-height: var(--wm-tap); } }
/* On the map: today's state, take off / put back, the walks it is on */
.wm-onmap { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; }
.wm-onmap::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--wm-ok-dot); }
.wm-onmap.is-off::before { background: var(--wm-faint); }
.wm-onmap__h { margin: 16px 0 6px; font-size: var(--wm-fs-para); font-weight: 600; }
.wm-onmap__walks { margin: 0 0 8px; padding: 0; list-style: none; }
.wm-onmap__walks li { margin: 0; padding: 4px 0; font-size: var(--wm-fs-body); }
/* Section links and live preview */
.witney-app #witney_place_preview .inside { padding-top: 12px; }
.witney-app #witney_place_preview .description { margin: 10px 0 0; }
.wm-pcard { overflow: hidden; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); }
.wm-pcard__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.wm-pcard__body { padding: 12px 14px 14px; }
.wm-pcard__layer { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--wm-fs-para); color: var(--wm-muted); }
.wm-pcard h3 { margin: 0 0 6px; font-size: var(--wm-fs-card); font-weight: 600; }
.wm-pcard p { margin: 0 0 10px; font-size: var(--wm-fs-body); color: var(--wm-ink-2); }
.wm-pcard ul { margin: 0 0 12px; padding: 0; list-style: none; }
.wm-pcard li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; font-size: var(--wm-fs-para); }
.wm-pcard li .wm-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--wm-muted); }
.wm-pcard__actions .button { pointer-events: none; }
.wm-pcard [hidden] { display: none !important; }
.wm-dialog { width: min(440px, calc(100% - 32px)); padding: 16px; border: 0; border-radius: var(--wm-radius); background: var(--wm-surface); box-shadow: var(--wm-shadow-lg); color: var(--wm-ink); }
.wm-dialog::backdrop { background: var(--wm-scrim); }
.wm-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wm-dialog__head h2, #wpbody .wm-dialog .wm-dialog__head h2 { margin: 0; padding: 0; color: var(--wm-ink); font-size: var(--wm-fs-section); font-weight: 600; line-height: 1.3; } /* every dialog's title, as Help and the pickers (17.5px); the id beats WordPress's #poststuff h2 on edit screens */
.wm-dialog .wm-pcard { margin-top: 12px; }
/* Story stops */
.witney-stops-wrap { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
@media (max-width: 960px) { .witney-stops-wrap { grid-template-columns: 1fr; } }
.witney-stops-wrap > * { min-width: 0; }
.witney-stops { margin: 0; padding: 0; list-style: none; }
.witney-stops__summary { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid var(--wm-warn-line); background: var(--wm-warn-soft); font-size: var(--wm-fs-body); }
.witney-stops__summary:empty { display: none; }
.witney-stops__summary.is-hidden { border-left-color: var(--wm-danger); background: var(--wm-danger-soft); font-weight: 600; }
.witney-stop { margin: 0 0 10px; padding: 12px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); background: var(--wm-surface); }
.witney-stop.is-off { border-color: var(--wm-warn-line); background: var(--wm-warn-soft); }
.witney-stop__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.witney-stop__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wm-ink-2); color: #fff; font-size: var(--wm-fs-detail); font-weight: 600; }
.witney-stop.is-off .witney-stop__num { background: var(--wm-faint); }
.witney-stop__place { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.witney-stop__remove { margin-left: auto; color: var(--wm-danger); }
.witney-stop__status { margin: 0 0 8px; font-size: var(--wm-fs-para); color: var(--wm-warn); font-weight: 600; }
.witney-stop__status:empty { display: none; }
.witney-stop__label { display: block; margin-bottom: 4px; font-size: var(--wm-fs-para); font-weight: 600; color: var(--wm-ink-2); }
.wm-route-ok { margin: 6px 0 0; font-size: var(--wm-fs-para); color: var(--wm-ok); font-weight: 600; }
.witney-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.witney-gallery li { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; }
.witney-gallery img { width: 96px; height: 96px; border-radius: var(--wm-radius-sm); object-fit: cover; }
.witney-org { margin-top: 12px; }
/* Profile */
.witney-app #your-profile, .witney-app #createuser { max-width: 860px; }
.witney-app #your-profile .form-table { margin-bottom: 20px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); border-collapse: separate; }
.witney-app #your-profile .form-table th { padding: 14px 20px; }
.witney-app #your-profile .form-table td { padding: 10px 20px; }
.witney-app #your-profile h2 { margin: 32px 0 12px; font-size: var(--wm-fs-section); font-weight: 600; } /* a section heading above its card, as on Insights */
@media (max-width: 781px) {
	.witney-skin .witney-grid, .witney-skin .witney-location, .witney-skin .witney-stops-wrap { grid-template-columns: 1fr; }
	.witney-skin .form-table th, .witney-skin .form-table td { display: block; width: auto; }
	.witney-app .postbox .inside { padding: 12px; }
}

/* ================================================================= Guided "Add a place" */
.wm-js .wm-nojs, .js .wm-guided .wm-nojs { display: none; } /* hidden from the first paint: WordPress marks the page .js before it draws */
.wm-guided { padding: 0; }
.wm-step { padding: 20px 20px 4px; border-top: 1px solid var(--wm-line); }
.wm-guided > .wm-step:first-of-type { border-top: 0; }
.wm-step > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: var(--wm-fs-card); }
.wm-step__n { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--wm-ink-2); color: #fff; font-size: var(--wm-fs-detail); font-weight: 600; }
.wm-optional, .wm-legend-hint { font-size: var(--wm-fs-para); font-weight: 400; color: var(--wm-muted); }
.wm-dates[hidden], .wm-step[hidden], .wm-hours-more[hidden], .wm-hours [hidden] { display: none; }
.wm-help-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.wm-help-row .description { margin: 0; }
.wm-count { flex: none; font-size: var(--wm-fs-detail); color: var(--wm-muted); font-variant-numeric: tabular-nums; }
/* Checklist */
.wm-check__bar { height: 4px; margin: 10px 0; overflow: hidden; border-radius: 2px; background: var(--wm-bg); }
.wm-check__bar span { display: block; width: 100%; height: 100%; background: var(--wm-primary); transform: scaleX(0); transform-origin: left center; transition: transform var(--wm-med) var(--wm-ease); }
.wm-check__list { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--wm-fs-para); color: var(--wm-muted); }
.wm-check__list li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.wm-check__list li::before { content: ""; width: 12px; height: 12px; box-sizing: border-box; border: 1.5px solid var(--wm-field); border-radius: 50%; }
.wm-check__list li.is-optional:not(.is-done)::before { border-style: dashed; }
.wm-check__list li.is-done { color: var(--wm-ok); }
.wm-check__list li.is-done::before { border: 0; background: var(--wm-ok-dot) no-repeat center/8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='36' stroke-linecap='round' stroke-linejoin='round' d='M40 136l56 56L216 72'/%3E%3C/svg%3E"); }
/* Layer choice: bordered options with the layer's icon and colour mark */
.wm-tiles { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.wm-tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
@media (max-width: 600px) { .wm-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wm-tile { position: relative; display: flex !important; align-items: center; gap: 10px; min-height: 48px; margin: 0 !important; padding: 8px 12px; border: 1px solid var(--wm-line-2); border-radius: var(--wm-radius-sm); background: var(--wm-surface); font-size: var(--wm-fs-body) !important; font-weight: 500 !important; cursor: pointer; transition: border-color var(--wm-fast), background-color var(--wm-fast); }
.wm-tile:hover { border-color: var(--wm-field); background: var(--wm-surface-2); }
.wm-tile input { position: absolute; opacity: 0; pointer-events: none; }
.wm-tile .wm-ico { color: var(--c, var(--wm-muted)); }
.wm-tile:has(input:checked) { border-color: var(--wm-primary); background: var(--wm-primary-soft); box-shadow: inset 0 0 0 1px var(--wm-primary); }
.wm-tile:has(input:checked)::after { content: ""; position: absolute; top: 50%; right: 10px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--wm-primary) no-repeat center/9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='36' stroke-linecap='round' stroke-linejoin='round' d='M40 136l56 56L216 72'/%3E%3C/svg%3E"); }
.wm-tile:has(input:checked) .wm-tile__name { padding-right: 20px; }
.wm-tile:has(input:focus-visible) { outline: 2px solid var(--wm-focus); outline-offset: 2px; }
/* Photo uploader */
.witney-app label.wm-drop__zone { display: flex; margin: 0; font-size: var(--wm-fs-para); font-weight: 400; }
#wm-files:focus-visible + .wm-drop__zone { outline: 2px solid var(--wm-focus); outline-offset: 2px; }
.wm-drop__errors { margin: 8px 0 0; color: var(--wm-danger); font-size: var(--wm-fs-body); font-weight: 600; }
.wm-drop__errors:empty { display: none; }
.wm-photos { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.wm-photo { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; margin: 0; padding: 10px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); background: var(--wm-surface); }
.wm-photo.is-dragging { opacity: .5; }
.wm-photo.is-leaving { opacity: 0; transition: opacity 150ms; }
.wm-photo__img { width: 88px; height: 88px; border-radius: var(--wm-radius-xs); object-fit: cover; cursor: grab; }
.wm-photo__head { display: flex; justify-content: space-between; gap: 8px; font-size: var(--wm-fs-para); font-weight: 600; }
.wm-photo__state { color: var(--wm-muted); font-weight: 400; }
.wm-photo.is-done .wm-photo__state { color: var(--wm-ok); }
.wm-photo__bar { width: 100%; height: 4px; margin: 8px 0 10px; overflow: hidden; border: 0; border-radius: 2px; background: var(--wm-bg); }
.wm-photo__bar span { display: block; height: 100%; background: var(--wm-primary); transform: scaleX(0); transform-origin: left center; transition: transform var(--wm-med) var(--wm-ease); }
.wm-photo.is-done .wm-photo__bar { display: none; }
.witney-app .wm-photo label { display: block; margin: 0 0 4px; font-size: var(--wm-fs-para); font-weight: 600; }
.wm-photo input[type="text"] { width: 100%; }
.wm-photo__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.witney-app .wm-photo label.wm-photo__cover { display: inline-flex; align-items: center; min-height: 32px; margin: 0 auto 0 0; font-size: var(--wm-fs-para); font-weight: 500; }
.witney-app.wp-core-ui .wm-photo__btn { min-width: 32px; min-height: 32px; padding: 0 8px; line-height: 30px; }
.witney-app.wp-core-ui .wm-photo__btn:disabled { opacity: .4; }
@media (max-width: 600px) {
	.wm-photo { grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; row-gap: 0; }
	.wm-photo__img { width: 72px; height: 72px; grid-column: 1; grid-row: 1 / span 2; align-self: start; }
	.wm-photo__body { display: contents; }
	.wm-photo__head, .wm-photo__bar, .wm-photo__tools { grid-column: 2; }
	.wm-photo__body > label, .wm-photo__body > input[type="text"], .wm-photo__body > .wm-help-row, .wm-photo__body > .wm-photo__tools { grid-column: 1 / -1; }
	.witney-app .wm-photo__body > label { margin-top: 10px; }
	.wm-photo__body > .wm-help-row { flex-direction: column; gap: 2px; }
	.witney-app.wp-core-ui .wm-photo__btn { min-width: var(--wm-tap); min-height: var(--wm-tap); }
}
/* Location */
.wm-inline { display: flex; gap: 8px; }
.wm-inline input { flex: 1; min-width: 0; }
.wm-inside { margin: 0 0 8px; font-size: var(--wm-fs-para); font-weight: 600; color: var(--wm-ok); }
.wm-inside.is-bad { color: var(--wm-danger); }
.wm-inside:empty { display: none; }
.wm-coords summary, .wm-hours-more > summary { display: inline-flex; align-items: center; min-height: var(--wm-tap); color: var(--wm-primary); font-size: var(--wm-fs-body); font-weight: 500; cursor: pointer; }
.wm-coords[open] summary, .wm-hours-more[open] > summary { margin-bottom: 8px; }
.wm-js .witney-locate .witney-coords + .description { display: none; }
.witney-grid > .wm-hours-more { grid-column: 1 / -1; margin: 0 0 12px; }
/* Opening hours */
.wm-hours { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.wm-hours__rows { display: grid; gap: 8px; margin-bottom: 10px; }
.wm-hours__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 12px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); background: var(--wm-surface-2); }
.wm-hours__days { display: flex; flex-wrap: wrap; padding: 2px; border: 1px solid var(--wm-field); border-radius: var(--wm-pill); background: var(--wm-surface); }
.wm-day { min-width: 40px; min-height: calc(var(--wm-tap) - 6px); padding: 0 6px; border: 0; border-radius: 2px; background: transparent; color: var(--wm-ink-2); font: 500 var(--wm-fs-para) var(--wm-font); cursor: pointer; }
.wm-day:hover { background: var(--wm-surface-2); color: var(--wm-ink); }
.wm-day[aria-pressed="true"] { background: var(--wm-ink); color: #fff; }
.wm-hours__times { display: flex; align-items: flex-end; gap: 8px; }
.wm-hours__time label { display: block; margin: 0 0 6px !important; font-size: var(--wm-fs-para) !important; font-weight: 600; color: var(--wm-ink-2) !important; }
.witney-app .wm-hours__time input { width: 136px; }
@media (max-width: 600px) {
	.wm-hours__row { gap: 12px; padding: 10px; }
	.wm-hours__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
	.wm-day { min-width: 0; padding: 0; font-size: var(--wm-fs-para); }
	.wm-hours__times { flex: 1 1 100%; min-width: 0; }
	.wm-hours__time { flex: 1 1 0; min-width: 0; }
	.witney-app .wm-hours__row .wm-hours__time input { width: 100%; min-width: 0; }
}
/* Pin icon picker */
.wm-iconpick { min-width: 0; margin: 4px 0 16px; padding: 0; border: 0; }
.wm-iconpick__grid { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-iconpick__opt { position: relative; display: inline-grid !important; place-items: center; width: 40px; height: 40px; margin: 0 !important; border: 1px solid var(--wm-line-2); border-radius: var(--wm-radius-sm); background: var(--wm-surface); color: var(--wm-ink-2); cursor: pointer; }
.wm-iconpick__opt--wide { width: auto; padding: 0 12px; font-size: var(--wm-fs-para) !important; font-weight: 500 !important; }
.wm-iconpick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.wm-iconpick__opt .wm-icon { width: 20px; height: 20px; }
.wm-iconpick__opt:has(input:focus-visible) { outline: 2px solid var(--wm-focus); outline-offset: 2px; }
@media (max-width: 1023px) { .wm-iconpick__opt { width: 44px; height: 44px; } }
/* Import */
.wm-import__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wm-import__form label { flex-basis: 100%; font-size: var(--wm-fs-para); font-weight: 600; }
.wm-import__run { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--wm-line); background: var(--wm-surface-2); }
.wm-import__run .description { flex: 1 1 260px; margin: 0; }
.wm-restore p { margin: 4px 0; }
.wm-restore__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ================================================================= Feedback */
/* Toasts: WordPress's snackbar */
.wm-toasts { position: fixed; z-index: 100001; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
@media (min-width: 1024px) { .wm-toasts { left: auto; right: 24px; bottom: 24px; transform: none; } }
@media (max-width: 1023px) { body:has(.witney-actionbar) .wm-toasts { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.wm-toast { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: var(--wm-radius-sm); background: var(--wm-ink); color: #fff; box-shadow: var(--wm-shadow-lg); pointer-events: auto; opacity: 0; transition: opacity var(--wm-med); }
.wm-toast.is-in { opacity: 1; }
.wm-toast p { flex: 1; margin: 0; font-size: var(--wm-fs-body); }
.wm-toast--ok::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--wm-ok-dot); }
.wm-toast__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: var(--wm-radius-sm); background: none; color: #fff; font-size: calc(18px * var(--wm-ts)); line-height: 1; cursor: pointer; }
.wm-toast__close:hover { background: rgba(255, 255, 255, .12); }
.wm-toast__close:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: none; } /* white on the dark toast: 15:1 (WCAG 1.4.11) */
/* Loading placeholders */
@keyframes wm-shimmer { to { background-position: -200% 0; } }
[data-skeleton].is-loading { pointer-events: none; }
.witney-insights [data-skeleton].is-loading > * { opacity: .3; }
/* Session expired: WordPress's re-login window */
#wp-auth-check-wrap #wp-auth-check { max-width: 420px; overflow: hidden; border-radius: var(--wm-radius); box-shadow: var(--wm-shadow-lg); }
#wp-auth-check-wrap #wp-auth-check-bg { background: var(--wm-scrim); }
#wp-auth-check-wrap .wp-auth-fallback { padding: 24px; font-family: var(--wm-font); }

@media (prefers-reduced-motion: reduce) {
	.witney-app *, .witney-app *::before, .witney-app *::after, .login.witney-skin *, .login.witney-skin *::before, .login.witney-skin *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	.witney-app .button.is-loading::before { animation: none; border-right-color: currentColor; opacity: .5; }
}
@media print {
	#wpadminbar, #adminmenumain, .wm-noprint, #wpfooter, #screen-meta-links, .notice { display: none !important; }
	.witney-app #wpcontent { margin-left: 0 !important; }
	.witney-app .wrap { max-width: none; padding: 0; }
	body.witney-app { background: #fff; }
	.wm-card, .wm-stats { break-inside: avoid; }
	/* The quarterly summary as a report: colours kept, no on-screen controls, sections kept whole. */
	.witney-insights { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.witney-insights :is(.wm-info, details, .page-title-action) { display: none !important; }
	.witney-insights .wm-ins-h { break-after: avoid; }
	.witney-insights :is(.wm-ins-kpis, .wm-ins-grid) { break-inside: avoid; }
	.witney-insights .wm-ins-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
	.witney-insights .wm-ins-kpis > li { grid-column: span 2; }
	.witney-insights .wm-ins-kpis > li:nth-child(-n+2) { grid-column: span 3; }
	.witney-insights .wm-ins-kpis__num { font-size: calc(22px * var(--wm-ts)); }
	.witney-insights .wm-ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================= Sign-in */
/* The Buttercross photo on the left (a band on phones), a plain white panel on the right. */
body.login.witney-skin { position: relative; min-height: 100vh; background: var(--wm-bg); color: var(--wm-ink); font-family: var(--wm-font); font-size: var(--wm-fs-body); --wm-art: 46vw; }
body.login.witney-skin:not(.interim-login) { padding-top: 200px; overflow-x: hidden; }
@media (min-width: 960px) { body.login.witney-skin:not(.interim-login) { padding-top: 0; padding-left: var(--wm-art); } }
.wm-login-art { position: absolute; top: 0; left: 0; right: 0; height: 200px; overflow: hidden; background: var(--wm-navy); color: #fff; }
.wm-login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.wm-login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 18, .88) 0%, rgba(10, 14, 18, .55) 45%, rgba(10, 14, 18, 0) 80%); }
.wm-login-art__text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 32px; }
.wm-login-art__title { margin: 0; color: #fff; font-size: calc(20px * var(--wm-ts)); font-weight: 600; line-height: 1.2; }
.wm-login-art__lede { max-width: 46ch; margin: 4px 0 0; color: #EEF0F1; font-size: var(--wm-fs-body); line-height: 1.45; }
.wm-login-art__partners { display: none; margin: 16px 0 0; color: #EEF0F1; font-size: var(--wm-fs-para); }
.wm-login-art__credit { position: absolute; z-index: 1; top: 12px; right: 12px; display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; max-width: calc(100% - 40px); color: #fff; font-size: max(12px, var(--wm-fs-detail)); }
.wm-login-art__credit summary { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .32); opacity: .9; cursor: pointer; list-style: none; }
.wm-login-art__credit summary::-webkit-details-marker { display: none; }
.wm-login-art__credit summary::before { content: ""; position: absolute; inset: -10px; } /* 44px tap area */
.wm-login-art__credit summary:hover, .wm-login-art__credit[open] summary { opacity: 1; }
.wm-login-art__credit summary .wm-icon { width: 16px; height: 16px; }
.wm-login-art__credit p { margin: 0; padding: 3px 9px; border-radius: 12px; background: rgba(0, 0, 0, .5); line-height: 18px; }
.wm-login-art__credit a { color: #fff; text-decoration: underline; }
.login.witney-skin .wm-login-art__credit summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.login.witney-skin .wm-login-art a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 960px) {
	.wm-login-art { position: fixed; top: 0; bottom: 0; width: var(--wm-art); height: auto; right: auto; }
	.wm-login-art__text { left: 48px; right: 48px; bottom: 72px; }
	.wm-login-art__title { font-size: calc(32px * var(--wm-ts)); }
	.wm-login-art__lede { margin-top: 10px; font-size: calc(16px * var(--wm-ts)); }
	.wm-login-art__partners { display: block; }
	.wm-login-art__credit { top: 20px; right: 20px; }
}
.login.witney-skin #login { position: relative; width: min(380px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 40px; }
@media (min-width: 960px) { .login.witney-skin:not(.interim-login) #login { padding-top: max(14vh, 40px); } }
.login.witney-skin h1 a { width: 44px; height: 44px; margin: 0 auto 16px; background: url(../img/logo.webp) center / contain no-repeat; }
@media (min-width: 960px) { .login.witney-skin:not(.interim-login) h1 a { margin-left: 0; } .login.witney-skin:not(.interim-login) .wm-login-head { text-align: left; } }
.login.witney-skin .wm-login-head { margin: 0 0 20px; text-align: center; }
.login.witney-skin .wm-login-title { margin: 0; color: var(--wm-ink); font-size: var(--wm-fs-title); font-weight: 700; line-height: 1.2; }
.login.witney-skin .wm-login-sub { margin: 6px 0 0; color: var(--wm-muted); font-size: var(--wm-fs-body); }
.login.witney-skin form { margin: 0; padding: 24px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); box-shadow: none; }
.login.witney-skin form p { margin-bottom: 4px; }
.login.witney-skin label { display: inline-block; margin-bottom: 6px; color: var(--wm-ink); font-size: var(--wm-fs-para); font-weight: 600; }
.login.witney-skin form .input, .login.witney-skin input[type="text"], .login.witney-skin input[type="password"] { width: 100%; min-height: 44px; margin: 0 0 16px; padding: 8px 12px; background: var(--wm-surface); font-size: calc(16px * var(--wm-ts)); }
.login.witney-skin .wp-pwd { position: relative; }
.login.witney-skin .wp-pwd input[type="password"], .login.witney-skin .wp-pwd input[type="text"] { padding-right: 48px; }
.login.witney-skin .wp-pwd .button.wp-hide-pw { position: absolute; top: 1px; right: 1px; width: 42px; min-height: 42px; padding: 0; border: 0; background: none; color: var(--wm-muted); }
.login.witney-skin .wp-pwd .button.wp-hide-pw:hover { color: var(--wm-ink); }
.login.witney-skin .wp-pwd .button.wp-hide-pw .dashicons { top: 0; }
.login.witney-skin .forgetmenot { display: none; } /* No "Remember me": a sign-in lasts an hour, renews itself, and ends after 24 hours (mu-plugins/witney-sessions.php). */
.login.witney-skin input[type="checkbox"] { position: relative; flex: none; width: 20px; height: 20px; min-width: 20px; margin: 0 10px 0 0; border: 1.5px solid var(--wm-field); border-radius: 6px; box-shadow: none; }
.login.witney-skin input[type="checkbox"]:checked { background: var(--wm-primary); border-color: var(--wm-primary); }
.login.witney-skin input[type="checkbox"]:checked::before { content: "" !important; position: absolute; inset: 0; width: auto; height: auto; margin: 0 !important; float: none; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='32' stroke-linecap='round' stroke-linejoin='round' d='M40 136l56 56L216 72'/%3E%3C/svg%3E"); }
.login.witney-skin .submit { margin: 0; }
.login.witney-skin .button-primary, .login.witney-skin #wp-submit, .login.witney-skin form input[type="submit"] { float: none; width: 100%; min-height: 44px; font-size: var(--wm-fs-body); }
.login.witney-skin .wp-tooltip { display: none; }
.login.witney-skin #nav { margin: 14px 0 0; padding: 0; text-align: center; font-size: var(--wm-fs-body); }
.login.witney-skin #nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--wm-primary); text-decoration: none; }
.login.witney-skin #nav a:hover { text-decoration: underline; }
.login.witney-skin #backtoblog { display: none; } /* WordPress's own front page is not the public map */
.login.witney-skin :is(.message, .notice, #login_error) { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--wm-line); border-left: 4px solid var(--wm-info); border-radius: var(--wm-radius-sm); background: var(--wm-surface); box-shadow: none; font-size: var(--wm-fs-body); }
.login.witney-skin .notice-success, .login.witney-skin .message.notice-success { border-left-color: var(--wm-ok-dot); }
.login.witney-skin .wm-caps { min-height: 0; margin: -10px 0 12px; color: var(--wm-warn); font-size: var(--wm-fs-para); font-weight: 600; }
.login.witney-skin .wm-caps:empty { display: none; }
/* Error summary (GOV.UK pattern): a red-edged box that takes focus */
.login.witney-skin #login_error { border: 2px solid var(--wm-danger); border-left-width: 2px; color: var(--wm-ink); }
.login.witney-skin #login_error:focus { outline: none; } /* focus is moved here for screen readers only; the red box is the visible signal */
.login.witney-skin .wm-login-error-title { margin: 0 0 4px; color: var(--wm-danger); font-size: var(--wm-fs-card); font-weight: 600; }
.login.witney-skin #login_error a { color: var(--wm-danger-dark); font-weight: 600; }
/* Two-step code: one large, spaced field */
.login.witney-skin #authcode, .login.witney-skin input.authcode { min-height: 52px; font-size: calc(24px * var(--wm-ts)); font-weight: 600; letter-spacing: .35em; text-align: center; text-indent: .35em; font-variant-numeric: tabular-nums; }
.login.witney-skin .two-factor-prompt { margin: 0 0 14px; color: var(--wm-ink-2); font-size: var(--wm-fs-body); }
.login.witney-skin .backup-methods-wrap { margin: 16px 0 0; padding: 0; text-align: center; font-size: var(--wm-fs-body); }
.login.witney-skin .backup-methods-wrap a { color: var(--wm-primary); }
.login.witney-skin .language-switcher { display: none; }
.login.witney-skin .privacy-policy-page-link { text-align: center; }
.login.witney-skin.interim-login #login { width: min(340px, calc(100% - 32px)); padding: 20px 0; }
.login.witney-skin.interim-login h1 a { margin: 0 auto 10px; }
.login.witney-skin.interim-login .wm-login-head { text-align: center; }
@media (prefers-reduced-motion: reduce) { .login.witney-skin .shake { animation: none !important; } }
@media (forced-colors: active) { .login.witney-skin form { border: 1px solid CanvasText; } }

/* WordPress's menu: entries the plugin keeps registered (so WordPress authorises those screens) but doesn't list */
#adminmenu .wp-submenu li.wm-menu-hidden { display: none; }
/* Layers table: each layer's pin icon in its colour, a narrow column */
.wm-ico[style*="--c"] { color: var(--c); }
.wm-ico.wm-thumb[style*="--c"] { background: color-mix(in srgb, var(--c) 12%, #fff); }
/* ================================================================= The map's look on the plugin's screens */
/* Chosen option: a green pill on a light track, as on the map */
/* Card headings and the date leaf, as on the map */
.wm-card > h2, .wm-card--flush > h2 { font-size: var(--wm-fs-card); font-weight: 600; letter-spacing: -.01em; }
.wm-date span { color: var(--wm-primary); font-weight: 700; }
.wm-stat__num { font-weight: 700; letter-spacing: -.02em; }
/* Guided "Add a place": green step numbers; days as separate round chips */
.wm-step__n { background: var(--wm-primary); }
.wm-hours__row { border-radius: var(--wm-radius-sm); background: #F6F8F5; }
.wm-hours__days { gap: 6px; padding: 0; border: 0; background: none; }
.wm-day { min-width: 48px; min-height: 36px; border: 1px solid #CCD2CA; border-radius: 999px; background: #fff; font-weight: 600; }
.wm-day:hover { border-color: var(--wm-primary); background: var(--wm-primary-soft); }
.wm-day[aria-pressed="true"] { border-color: var(--wm-primary); background: var(--wm-primary); color: #fff; }
/* Import: room between the two steps */
.wm-import h2 + p, .wm-card h2 ~ form { margin-top: 0; }
.wm-card :is(form, .button) + h2 { margin-top: 28px; }
/* "Nothing here" lines up with its card's heading: a padded card already has the gutter; a flush card (Home's lists,
   Insights' tables) has none, so the line takes the heading's own 20px (16px on phones), not the card's edge */
.wm-card .wm-empty { padding-left: 0; padding-right: 0; }
.wm-card--flush .wm-empty { padding-left: 20px; padding-right: 20px; }
@media screen and (max-width: 782px) { .wm-card--flush .wm-empty { padding-left: 16px; padding-right: 16px; } }
/* Layers: row actions under the name don't push it up; editors never need the "slug" (it follows the name) */
.taxonomy-witney_layer :is(.term-slug-wrap, .form-field.term-slug-wrap) { display: none; }
.taxonomy-witney_layer input#witney_order, .taxonomy-witney_layer input[name="witney_order"] { width: 96px; }
/* Media: WordPress's toolbar on a card, select text clear of its arrow */
/* Screen Options: nothing to arrange on the map's screens */
body:is(.post-type-witney_place, .post-type-witney_story, .taxonomy-witney_layer, .post-type-witney_suggestion, [class*="witney-map_page_"], .toplevel_page_witney-map) #screen-meta-links { display: none; }
/* Pages of a list: how many you're seeing and how many are left, numbered pages, Previous and Next */

/* Sample figures are said to be samples, under the number they belong to */
/* Empty WordPress lists (Visitor suggestions, Layers): one plain sentence, not a header, an empty row and a footer */
.wm-tile-lg__note { color: var(--wm-muted); font-size: var(--wm-fs-para); }
/* Profile: no front-end toolbar, language, nickname, website or biography (the office has no public pages); the
   nickname field stays in the form, hidden, because WordPress requires it */
.witney-app #your-profile :is(.user-admin-bar-front-wrap, .user-infinite-scrolling-wrap, .user-language-wrap, .user-nickname-wrap, .user-url-wrap, .user-description-wrap) { display: none; }
.witney-app #your-profile h2:has(+ .form-table :is(.user-admin-bar-front-wrap, .user-description-wrap)),
.witney-app #your-profile .form-table:has(:is(.user-admin-bar-front-wrap, .user-description-wrap)),
.witney-app #your-profile #application-passwords-section { display: none; }
/* Add User: no website or language either */
.witney-app #createuser :is(tr:has(#url), .user-language-wrap) { display: none; }
/* A text button looks the same whether it is a link or a button (Preview the map card next to Duplicate) */
/* Map forms: no Visibility (everything on the map is public) and no Move up / Move down on the panels */
body:is(.post-type-witney_place, .post-type-witney_story) #submitdiv #visibility,
body:is(.post-type-witney_place, .post-type-witney_story) .postbox :is(.handle-order-higher, .handle-order-lower) { display: none; }

/* Walk editor: each stop shows the place's photo and type; a long name stays on one line (the whole name on hover);
 * the map takes the right-hand column, taller, and stays in view while you work down the stops. */
.witney-stops-wrap { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
#witney_story_stops .inside { container-type: inline-size; }
@container (max-width: 760px) { .witney-stops-wrap { grid-template-columns: minmax(0, 1fr); } .witney-stops-side { position: static !important; } .witney-picker--story { height: 360px !important; } } /* a narrow box: the map goes under the stops, which get the full width for their names */
.witney-stop__head { flex-wrap: nowrap; }
.witney-stop__thumb { flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--wm-hover, #F2F4F0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.witney-stop__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.witney-stop__thumb.is-empty { background: var(--wm-hover, #F2F4F0) center / 20px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path fill='%2398A09A' d='M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z'/></svg>"); }
.witney-stop__place { flex: 1 1 auto; min-width: 0; height: var(--wm-tap, 44px); padding-right: 40px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.witney-stop__num { flex: none; }
.witney-stop__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin: 0 0 10px; padding-left: 84px; }
.witney-stop__type { flex: 1 1 140px; margin: 0; min-width: 0; color: var(--wm-muted, #5E5D75); font-size: var(--wm-fs-para); } /* wraps: "Accessibility and facilities" in full */
.witney-stop__actions { display: flex; flex: none; align-items: center; gap: 6px; margin-left: auto; }
.witney-stop__actions .witney-stop__remove { margin-left: 4px; }
.witney-stops-side { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 46px) + 16px); }
.witney-stops__empty { margin: 0 0 12px; padding: 16px; border: 1px dashed var(--wm-line); border-radius: 12px; color: var(--wm-ink-2); }
.witney-stops:not(:empty) + .witney-stops__empty { display: none; }
.witney-picker--story { height: clamp(280px, calc(100vh - 360px), 520px); }
.wm-route-live { margin: 10px 0 0; font-size: var(--wm-fs-body); font-weight: 600; color: var(--wm-primary-dark, #2C5A31); }
.wm-route-live:empty { display: none; }
.wm-route-live.is-wait { color: var(--wm-muted, #5E5D75); font-weight: 500; }
.wm-route-live.is-down { color: #8A5300; font-weight: 500; }
@media (max-width: 960px) { .witney-stops-side { position: static; } .witney-picker--story { height: 320px; } }


/* ---------------------------------------------------------------- Layers: a list, and adding a layer on its own page */
.wm-layer-list #col-left, .wm-layer-add #col-right { display: none; }
.wm-layer-list #col-right { width: 100%; }
.wm-layer-add #col-left { max-width: 720px; }
.wm-layer-add #col-left .col-wrap { padding: 24px 28px; }
.wm-layer-add #col-left .col-wrap > h2 { display: none; } /* the page heading already says Add a layer */
.wm-layer-add .form-field { margin: 0 0 18px; }
.wm-layer-add p.submit { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.wm-add-layer { margin-left: 12px; }
/* the table: breathing room at the edges, one row height, the checkbox with its row */

/* Layer icon: the chosen icon in the layer's colour, and a dialog with every icon to choose from */
.wm-icon-field { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px 6px 6px; border: 1px solid var(--wm-field, #78837B); border-radius: var(--wm-radius-sm); background: #fff; color: var(--wm-ink, #1C1B3A); font: 600 var(--wm-fs-body)/1.2 var(--wm-font); cursor: pointer; }
.wm-icon-field:hover { border-color: var(--wm-field-hover); }
.wm-icon-field:focus-visible { outline: 2px solid var(--wm-green, #396A3F); outline-offset: 2px; }
.wm-icon-swatch { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--wm-tint, #396A3F) 14%, #fff); }
.wm-icon-glyph { display: block; width: 22px; height: 22px; background: var(--wm-tint, #396A3F); -webkit-mask: var(--wm-ico) center / contain no-repeat; mask: var(--wm-ico) center / contain no-repeat; }
.wm-icon-change { margin-left: 8px; color: var(--wm-primary-dark, #2C5A31); font-weight: 600; font-size: var(--wm-fs-para); }
.wm-icon-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--wm-shadow-lg); color: var(--wm-ink, #1C1B3A); font-family: var(--wm-font); }
.wm-icon-dialog::backdrop { background: rgba(28, 27, 58, .35); }
.wm-icon-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; }
.wm-icon-dialog__head h2 { margin: 0; font-size: var(--wm-fs-section); }
.wm-icon-dialog__hint { margin: 0 20px 12px; color: var(--wm-muted, #5E5D75); font-size: var(--wm-fs-para); }
.wm-icon-find { display: block; width: calc(100% - 40px); height: 40px; margin: 0 20px 8px; padding: 0 14px; border: 1px solid var(--wm-line, #E1E5DF); border-radius: 999px; font: var(--wm-fs-body) var(--wm-font); }
.wm-icon-find:focus { border-color: var(--wm-green, #396A3F); box-shadow: 0 0 0 1px var(--wm-green, #396A3F); outline: 0; }
.wm-icon-groups { max-height: min(60vh, 480px); overflow-y: auto; padding: 0 20px 20px; }
.wm-icon-group h3 { margin: 16px 0 8px; color: var(--wm-ink-2); font: 600 var(--wm-fs-para)/1.3 var(--wm-font); }
.wm-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wm-icon-none { margin: 24px 0; color: var(--wm-muted, #5E5D75); text-align: center; }
.wm-icon-tile[hidden], .wm-icon-group[hidden] { display: none; }
.wm-icon-tile { display: grid; justify-items: center; gap: 8px; padding: 14px 6px 10px; border: 1px solid var(--wm-line, #E1E5DF); border-radius: 14px; background: #fff; color: var(--wm-ink-2, #42415C); font: 500 var(--wm-fs-para)/1.2 var(--wm-font); text-align: center; cursor: pointer; }
.wm-icon-tile .wm-icon-glyph { width: 26px; height: 26px; }
.wm-icon-tile:focus-visible { outline: 2px solid var(--wm-green, #396A3F); outline-offset: 2px; }
@media (min-width: 1100px) { .wm-layer-list #col-container, .wm-layer-add #col-container { grid-template-columns: minmax(0, 1fr); } } /* one view at a time */

/* Edit a layer: the same card as Add a layer, each label above its field (not a column of labels beside them) */
.taxonomy-witney_layer #edittag { max-width: 720px; padding: 24px 28px; border: 1px solid var(--wm-line, #E1E5DF); border-radius: var(--wm-radius, 20px); background: #fff; box-sizing: border-box; }
.taxonomy-witney_layer #edittag .form-table, .taxonomy-witney_layer #edittag .form-table :is(tbody, tr, th, td) { display: block; width: auto; margin: 0; padding: 0; }
.taxonomy-witney_layer #edittag .form-table tr { margin: 0 0 18px; }
.taxonomy-witney_layer #edittag .form-table th { margin: 0 0 6px; color: var(--wm-ink, #1C1B3A); font-size: var(--wm-fs-body); font-weight: 600; }
.taxonomy-witney_layer #edittag .form-table td :is(input[type="text"], select, textarea) { width: 100%; max-width: none; }
.taxonomy-witney_layer #edittag .form-table td .description { margin-top: 6px; }
.taxonomy-witney_layer #edittag .edit-tag-actions, .taxonomy-witney_layer #addtag p.submit { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--wm-line, #E1E5DF); } /* the same footer on Add and Edit */
.taxonomy-witney_layer #edittag .edit-tag-actions #delete-link { margin-left: auto; }

/* Pin colour: the chosen colour as a pin, its name and code; a palette of colours that work as map pins */
.wm-colour-field { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px 6px 6px; border: 1px solid var(--wm-field, #78837B); border-radius: var(--wm-radius-sm); background: #fff; color: var(--wm-ink, #1C1B3A); font: 600 var(--wm-fs-body)/1.2 var(--wm-font); cursor: pointer; }
.wm-colour-field:hover { border-color: var(--wm-field-hover); }
.wm-colour-field:focus-visible { outline: 2px solid var(--wm-green, #396A3F); outline-offset: 2px; }
.wm-colour-pin { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wm-c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 1px 3px rgba(0, 0, 0, .2); }
.wm-colour-pin .wm-icon-glyph { width: 20px; height: 20px; background: #fff; }
.wm-colour-code { color: var(--wm-muted, #5E5D75); font: 500 var(--wm-fs-para)/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.wm-colour-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 4px 20px 12px; }
.wm-colour-swatch { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border: 1px solid var(--wm-line, #E1E5DF); border-radius: 14px; background: #fff; color: var(--wm-ink-2, #42415C); font: 500 var(--wm-fs-para)/1.2 var(--wm-font); cursor: pointer; }
.wm-colour-swatch:focus-visible { outline: 2px solid var(--wm-green, #396A3F); outline-offset: 2px; }
.wm-colour-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 20px; padding: 14px 0 20px; border-top: 1px solid var(--wm-line, #E1E5DF); }
.wm-colour-custom label { font-weight: 600; font-size: var(--wm-fs-para); }
.wm-colour-custom input[type="color"] { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--wm-field, #78837B); border-radius: 12px; background: #fff; cursor: pointer; }
.wm-colour-custom input[type="text"] { width: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.wm-colour-check { flex-basis: 100%; margin: 0; font-size: var(--wm-fs-para); color: var(--wm-muted, #5E5D75); }
.wm-colour-check.is-low { color: #8A5300; font-weight: 600; }

/* Layers have no parents on the map, so the parent field is hidden. Show it again if nested layers arrive. */
.taxonomy-witney_layer #edittag .form-field.term-parent-wrap, .taxonomy-witney_layer #addtag .form-field.term-parent-wrap { display: none; }
.taxonomy-witney_layer #edittag [hidden], .taxonomy-witney_layer #addtag [hidden] { display: none !important; } /* the native select and colour input behind the pickers */

/* Guide: one card per topic, each question an accordion */
.wm-guide { display: grid; gap: 16px; max-width: 820px; }
.wm-guide__section { margin: 0; padding: 8px 20px 12px; }
.wm-guide__section h2 { margin: 12px 0 4px; font-size: var(--wm-fs-card); }

/* Layers list: kind as a pill with its intro under it, when visitors see the layer, and an edit button on the right */
.wm-sub { display: block; margin-top: 4px; color: var(--wm-muted, #5E5D75); font-size: var(--wm-fs-para); line-height: 1.4; }

/* Layers: bulk actions only once something is ticked, in the same bar as Review (see .wm-bulkbar) */
.wm-layer-list .tablenav.top .bulkactions { display: none; }
.wp-core-ui .wm-bulkbar .button.wm-danger, .wp-core-ui .wm-bulkbar .button.wm-danger:hover { border-color: var(--wm-danger); color: var(--wm-danger); }
/* Phones and small tablets: WordPress's own phone table (the first column, and a button that shows the rest with a
   label beside each value), without a label over the first column or the drag handle, and the button in our style. */
@media (max-width: 782px) {
	.witney-app .wp-list-table tr:not(.inline-edit-row):not(.no-items) :is(td, th):is(.column-primary, .column-move, .column-witney_move)::before { content: none; }
	.witney-app .wp-list-table .toggle-row { top: 50%; right: 8px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; }
	.witney-app .wp-list-table tr.is-expanded .toggle-row { top: 12px; margin-top: 0; }
	.witney-app .wp-list-table .toggle-row::before { content: ""; top: 8px; left: 8px; width: 16px; height: 16px; padding: 0; border-radius: 0; box-shadow: none; background: var(--wm-muted); -webkit-mask: url(../icons/caret-down-regular.svg) center / contain no-repeat; mask: url(../icons/caret-down-regular.svg) center / contain no-repeat; }
	.witney-app .wp-list-table tr.is-expanded .toggle-row::before { content: ""; transform: rotate(180deg); }
	.witney-app .wp-list-table .toggle-row:hover { background: var(--wm-surface-2); }
	/* opened: each detail on its own full-width line, the label on the left and the value after it */
	.witney-app .wp-list-table tr.is-expanded > :is(td, th):not(.check-column) { flex: 1 1 100%; }
	.witney-app .wp-list-table tr.is-expanded > .check-column + .column-primary { flex: 1 1 0; min-width: 0; } /* stays beside its tick box */
	.witney-app .wp-list-table tr.is-expanded > td:not(.column-primary) { text-align: left; }
	.witney-app .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before { left: 16px; color: var(--wm-muted); font-weight: 500; text-align: left; }
}

/* Add a place: one column on phones and tablets (checklist on top, as before); from 1200px the steps on the left and,
   on the right, the checklist and the card visitors will see, kept in view while you fill the form in. */
.wm-side__preview { display: none; }
@media (min-width: 1200px) {
	.witney-app .wrap.witney-quick { max-width: 1180px; }
	.witney-quick > .description { max-width: none; }
	.wm-guided { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; align-items: start; overflow: visible !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
	.wm-guided > :not(.wm-side) { grid-column: 1; background: var(--wm-surface); border-left: 1px solid var(--wm-line); border-right: 1px solid var(--wm-line); }
	.wm-guided > .wm-step:first-of-type { border-top: 1px solid var(--wm-line) !important; border-radius: var(--wm-radius) var(--wm-radius) 0 0; }
	.wm-side { grid-column: 2; grid-row: 1 / span 20; position: sticky; top: calc(var(--wm-top, 32px) + 16px); display: grid; gap: 16px; }
	.wm-side .wm-check__list { flex-direction: column; gap: 8px; }
	.wm-side__preview { display: block; }
	.wm-side__label { margin: 0 0 8px; color: var(--wm-ink-2); font-size: var(--wm-fs-para); font-weight: 600; }
}
.wm-acc__fig { margin: 0 0 14px; }
.wm-acc__fig img { display: block; width: auto; max-width: min(100%, 560px); height: auto; border: 1px solid var(--wm-line, #E1E5DF); border-radius: 12px; background: #F7F8F6; }
.wm-help-dialog .wm-acc__fig img { max-width: 100%; }
/* The colour and icon fields hold the height of the pickers that replace them, so the form doesn't jump on load */
.js :is(#addtag, #edittag) :is(#witney_colour, #witney_icon):not([hidden]) { display: block; height: 54px; visibility: hidden; }

/* ================================================================= Share */
.wm-share > .description { margin: 4px 0 20px; }
.wm-share__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) { .wm-share__grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.wm-share__form, .wm-share__qr { margin: 0; }
.wm-share__form .witney-field { margin: 0 0 20px; }
.wm-share__welcome { margin: 20px 0 0; }
.wm-share__welcome .witney-field { margin: 0 0 20px; }
.wm-share__welcome :is(input[type="text"], input[type="email"], input[type="url"], textarea) { width: 100%; max-width: 640px; box-sizing: border-box; }
.wm-share__welcome .notice { margin: 0 0 16px; }
.wm-share__form select, .wm-share__form input[type="text"] { width: 100%; max-width: none; }
.wm-share__where { margin: 0 0 20px; padding: 0; border: 0; }
.witney-app .wm-share__where legend { margin: 0 0 8px; padding: 0; color: var(--wm-ink); font-size: var(--wm-fs-para); font-weight: 600; }
.wm-share__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-share__chip { position: relative; display: inline-flex; cursor: pointer; }
.wm-share__chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wm-share__chip span { display: inline-flex; align-items: center; min-height: var(--wm-tap); padding: 0 16px; border: 1px solid var(--wm-line-2); border-radius: var(--wm-pill); background: var(--wm-surface); color: var(--wm-ink); font-size: var(--wm-fs-body); font-weight: 500; transition: background-color var(--wm-fast), border-color var(--wm-fast); }
.wm-share__chip:hover span { border-color: var(--wm-field-hover); }
.wm-share__chip input:checked + span { border-color: var(--wm-primary); background: var(--wm-primary); color: #fff; font-weight: 600; }
.wm-share__chip input:focus-visible + span { outline: 2px solid var(--wm-focus); outline-offset: 2px; }
.wm-share__result { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--wm-line); }
.witney-app .wm-share__result > label { display: block; margin: 0 0 6px; color: var(--wm-ink); font-size: var(--wm-fs-para); font-weight: 600; }
.wm-share__copy { display: flex; gap: 8px; }
.wm-share__copy input { flex: 1 1 auto; min-width: 0; background: var(--wm-surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--wm-fs-para); }
.wm-share__copy .button { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.wm-share__copy .button .wm-icon, .wm-share__qr .button .wm-icon { width: 18px; height: 18px; }
.wm-share__result .description { margin-top: 8px; }
.wm-share__result strong { color: var(--wm-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.wm-share__qr h2 { margin: 0 0 16px; font-size: var(--wm-fs-card); }
.wm-share__qr canvas { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 16px; border-radius: 22px; box-shadow: 0 1px 2px rgba(28, 27, 58, .08), 0 16px 36px -12px rgba(28, 27, 58, .3); }
.wm-share__qr .button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.wm-share__qr .description { margin: 10px 0 0; text-align: center; }

/* ================================================================= Visitor reports */
.wm-reports > .description { margin: 4px 0 20px; }
.witney-app .wm-reports .wm-seg.wm-reports__kinds { margin: 0 0 16px; }
.wm-reports__errors { margin-top: 24px; }
.wm-reports__errors h2 { margin: 0 0 16px; font-size: var(--wm-fs-card); }
.wm-reports__ok { margin: 0; color: var(--wm-muted); }
/* What the visitor wrote is the point of the row: it wraps in full, never cut to one line. */
.wp-admin .wm-list--suggestions td.column-what { white-space: normal; overflow: visible; text-overflow: clip; vertical-align: top; }
.wp-admin .wm-list--suggestions .wm-cell-sub.wm-reports__note { display: block; margin-top: 4px; overflow: visible; white-space: pre-line; text-overflow: clip; overflow-wrap: anywhere; }

.wm-activity .wm-activity__what { display: block; color: var(--wm-ink); font-weight: 600; white-space: normal; }
.wm-activity .wm-activity__details { margin: 6px 0 0; white-space: normal; }
.wp-admin .wm-activity .wp-list-table td.column-what { white-space: normal; overflow: visible; text-overflow: clip; }
.wm-activity .wm-activity__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-activity .wm-activity__search input[type="search"] { width: 280px; max-width: 100%; }
.wp-admin .wm-activity .wp-list-table .column-who { width: 260px; } /* "West Oxfordshire District Council" on one line */
.wp-admin .wm-activity .wp-list-table .column-area { width: 220px; }
.wp-admin .wm-activity .wp-list-table .column-when { width: 140px; }
.wp-admin .wm-activity .wp-list-table td.column-when { white-space: nowrap; } /* "Thu 19 Nov, 4:34pm" on one line */
/* Laptops: Who, Area and When narrower (the organisation may wrap), so What happened keeps its room. Small laptops and
   tablets: Area gives way, as it is one of the filters above the list. Phones stack each entry (WordPress). */
@media (min-width: 783px) and (max-width: 1399px) {
	.wp-admin .wm-activity .wp-list-table .column-who { width: 200px; }
	.wp-admin .wm-activity .wp-list-table .column-area { width: 160px; }
}
@media (min-width: 783px) and (max-width: 1099px) {
	.wp-admin .wm-activity .wp-list-table :is(th, td).column-area { display: none; }
	.wp-admin .wm-activity .wp-list-table .column-who { width: 170px; }
}
@media (max-width: 782px) { .wm-activity .wm-activity__filters, .wm-activity .wm-activity__filters > *, .wm-activity .wm-activity__search input[type="search"] { width: 100%; } }

/* Setting up two-step sign-in, on the sign-in screen (includes/twofactor-setup.php): a wider card, three numbered steps. */
.login.witney-skin.wm-enrol #login { width: min(520px, calc(100% - 32px)); }
.login.witney-skin .wm-setup__done { padding: 24px; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); background: var(--wm-surface); }
.wm-setup h3 { margin: 4px 0 8px; color: var(--wm-ink); font: 700 var(--wm-fs-card)/1.3 var(--wm-font); }
.wm-setup h3 label { font: inherit; color: inherit; }
.wm-setup p, .wm-setup li { color: var(--wm-ink-2); font-size: var(--wm-fs-body); line-height: 1.5; }
.wm-setup__steps { margin: 0; padding: 0; list-style: none; counter-reset: wm-step; }
.wm-setup__steps > li { position: relative; margin: 0; padding: 0 0 20px 44px; counter-increment: wm-step; }
.wm-setup__steps > li + li { padding-top: 20px; border-top: 1px solid var(--wm-line); }
.wm-setup__steps > li::before { content: counter(wm-step); position: absolute; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wm-primary-soft); color: var(--wm-primary-dark); font: 700 var(--wm-fs-body)/1 var(--wm-font); }
.wm-setup__steps > li + li::before { top: 20px; }
.wm-setup__steps p { margin: 0 0 8px; }
.wm-setup__qr { width: 208px; max-width: 100%; margin: 8px 0 12px; padding: 8px; border: 1px solid var(--wm-line-2); border-radius: var(--wm-radius-sm); background: #fff; } /* a QR code needs a light square around it */
.wm-setup__qr svg { display: block; width: 100%; height: auto; }
.wm-setup__qr:empty { display: none; }
.wm-setup__key { display: inline-block; padding: 8px 12px; font-size: var(--wm-fs-body); letter-spacing: 0.08em; overflow-wrap: anywhere; }
.login.witney-skin .wm-setup #wm-setup-code { max-width: 200px; margin: 0 0 6px; letter-spacing: 0.15em; }
.wm-setup .submit { margin: 4px 0 0; }
.wm-setup__codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.wm-setup__codes code { display: block; padding: 8px 12px; text-align: center; font-size: var(--wm-fs-body); letter-spacing: 0.08em; }
.wm-setup__actions { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.wm-setup__actions .button { width: 100%; justify-content: center; text-align: center; }
@media print { .wm-login-art, .wm-setup__actions, #backtoblog, .language-switcher { display: none !important; } }

/* A walk's own stop: its name in place of the place menu, and the big dialog that adds or edits it. */
.witney-stop__name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--wm-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.witney-stops__add { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-dialog.wm-spot-dialog { box-sizing: border-box; width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 20px; }
.wm-spot-dialog .description { display: block; margin: 6px 0 12px; }
.wm-spot-dialog__grid { display: grid; gap: 20px; }
@media (min-width: 782px) { .wm-spot-dialog__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wm-spot-dialog .witney-field { margin: 0 0 16px; }
.wm-spot-dialog .witney-field > label, .wm-spot-dialog .wm-label-row label { display: block; margin: 0 0 6px; font-weight: 600; }
.wm-spot-dialog__map .witney-picker { height: 380px; }
.wm-spot-dialog__error { margin: 0; color: var(--wm-danger); font-weight: 600; }
/* Photo tiles (a place's photos, a walk stop's photos): same-size squares, the main photo labelled, a star (make it the
   main photo) and a cross (remove) on each, always visible so they work on touch screens too. */
.witney-gallery.wm-ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 4px 0 12px; padding: 0; list-style: none; }
.wm-ptiles .wm-ptile { position: relative; display: block; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: var(--wm-radius-sm); background: var(--wm-line); }
.wm-ptiles .wm-ptile img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.wm-ptile.is-next-main { outline: 3px solid var(--wm-primary); outline-offset: 2px; }
.wm-ptile__acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.wm-ptile__btn.wm-iconbtn { width: 32px; height: 32px; background: rgb(255 255 255 / 0.94); color: var(--wm-ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); }
.wm-ptile__btn.wm-iconbtn .wm-icon { width: 18px; height: 18px; }
.wm-ptile__btn.witney-gallery-main:hover, .wm-ptile__btn.witney-gallery-main[aria-pressed="true"] { background: var(--wm-primary); color: #fff; }
.wm-ptile__btn.witney-gallery-remove:hover { background: var(--wm-danger-soft); color: var(--wm-danger); }
.wm-ptile__btn[hidden] { display: none; }
.wm-ptile__badge { position: absolute; bottom: 6px; left: 6px; padding: 2px 8px; border-radius: var(--wm-pill); background: var(--wm-primary); color: #fff; font: 600 var(--wm-fs-detail)/1.5 var(--wm-font); }
.wm-ptile__badge[hidden] { display: none; }
.wm-ptiles__note { margin: -4px 0 12px; }
/* Access and features (Layers > Access and features): one table of the options, then adding one, then removed ones. */
.wm-features .wm-features__card { padding: 20px; }
.wm-features__table { width: 100%; border-collapse: collapse; }
.wm-features__table th, .wm-features__table td { padding: 8px; border-bottom: 1px solid var(--wm-line); text-align: left; vertical-align: middle; }
.wm-features__table th { color: var(--wm-ink-2); font: 600 var(--wm-fs-detail)/1.4 var(--wm-font); }
.wm-features__table select { max-width: 100%; }
.wm-features__move { width: 88px; white-space: nowrap; }
.wm-features__move .wm-iconbtn { width: 36px; height: 36px; font-size: var(--wm-fs-card); }
.wm-features__check input { width: 18px; height: 18px; margin: 0; }
.wm-features__h { margin: 24px 0 8px; font: 600 var(--wm-fs-card)/1.3 var(--wm-font); }
.wm-features__new { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.wm-features__new .witney-field { margin: 0; }
.wm-features__newfilter { padding-bottom: 10px; }
.wm-features__off { margin: 0; padding: 0; list-style: none; }
.wm-features__off li { margin: 0 0 8px; }
.wm-features__save { margin: 20px 0 0; }
.wm-features-link { margin-left: 8px; }
.wm-features__mlabel { display: none; }
/* Phones: each option a small stacked card (name, icon, its two ticks with visible labels, then order and use). */
@media (max-width: 782px) {
	.wm-features__new { grid-template-columns: 1fr; }
	.wm-features__table thead { display: none; }
	.wm-features__table, .wm-features__table tbody { display: block; }
	.wm-features__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--wm-line); }
	.wm-features__table td { display: flex; align-items: center; padding: 0; border: 0; }
	.wm-features__table td:nth-child(2), .wm-features__table td:nth-child(3) { grid-column: 1 / -1; }
	.wm-features__table td:nth-child(2) { order: -2; }
	.wm-features__table td:nth-child(3) { order: -1; }
	.wm-features__table td:nth-child(1), .wm-features__table td:nth-child(5) { order: 1; }
	.wm-features__table td:nth-child(5) { justify-content: flex-end; }
	.wm-features__table td:nth-child(3) select { width: 100%; }
	.wm-features__mlabel { display: inline; }
	.wm-features__check { display: flex; align-items: center; gap: 8px; }
}
/* Add a place, step 5: the access and features tick boxes, as on the full place form. */
.witney-app .wm-step-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.witney-app .wm-step-checks > .description { grid-column: 1 / -1; margin: 0 0 8px; }
.witney-app .wm-step-checks .wm-check-opt { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; color: var(--wm-ink); }
/* New stop for a walk: the ways to place the pin, as on Add a place. */
.wm-spot-dialog__locate { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.wm-spot-dialog .wm-coords { margin-top: 8px; }
.wm-spot-dialog .wm-inside { margin: 6px 0 0; }
/* The new-stop dialog scrolls on short screens, with Save stop and Cancel always in view at the bottom. */
.wm-dialog.wm-spot-dialog { overflow-y: auto; padding-bottom: 0; }
.wm-spot-dialog .wm-dialog__actions { position: sticky; z-index: 5; bottom: 0; margin: 12px -20px 0; padding: 12px 20px 16px; border-top: 1px solid var(--wm-line); background: var(--wm-surface); }
.wm-spot-dialog .wm-dialog__actions { align-items: center; }
.wm-spot-dialog .wm-spot-dialog__error { flex: 1 1 200px; margin: 0; }
/* Phones: one column that never grows past the dialog; Find on map wraps under the address when there's no room. */
.wm-spot-dialog__grid { grid-template-columns: minmax(0, 1fr); }
.wm-spot-dialog .wm-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-spot-dialog .wm-inline input { flex: 1 1 200px; min-width: 0; }
@media (min-width: 782px) { .wm-spot-dialog__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wm-ptile__warn { position: absolute; bottom: 6px; left: 6px; padding: 2px 8px; border-radius: var(--wm-pill); background: var(--wm-surface); color: var(--wm-danger); font: 600 var(--wm-fs-detail)/1.5 var(--wm-font); box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); }
.wm-ptile__badge + .wm-ptile__warn, .wm-ptile__warn ~ .wm-ptile__badge { bottom: 34px; }
.wm-doclink { margin-top: 6px; }
