/* Admin « Ma carte » — tokens and components from the validated mockup
   (specs/evidence/admin-carte-v2/maquette.html), system fonts only. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	color-scheme: light;
	--paper: oklch(99% 0.005 80);
	--paper-2: oklch(97% 0.012 80);
	--paper-3: oklch(94% 0.02 78);
	--line: oklch(89% 0.03 75);
	--line-strong: oklch(80% 0.035 70);
	--ink: oklch(16% 0.006 30);
	--ink-2: oklch(38% 0.045 50);
	--ink-3: oklch(55% 0.05 55);
	--anthracite: oklch(22% 0.005 30);
	--braise: oklch(46% 0.18 30);
	--braise-700: oklch(38% 0.15 28);
	--braise-50: oklch(97% 0.018 50);
	--braise-100: oklch(93% 0.04 45);
	--braise-200: oklch(86% 0.08 42);
	--ok: oklch(46% 0.1 150);
	--ok-bg: oklch(95.5% 0.035 150);
	--ok-line: oklch(84% 0.07 150);
	--shadow: 0 2px 4px oklch(0% 0 0 / 0.06), 0 12px 32px oklch(0% 0 0 / 0.12);
	--card: #fff;
	--serif: Fraunces, ui-serif, Georgia, "Times New Roman", serif;
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
	-webkit-text-size-adjust: 100%;
	/* Anchors (#plat-…, #rubrique-…) land below the sticky header. */
	scroll-padding-top: 130px;
	scroll-padding-bottom: 96px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px / 1.5 var(--sans);
	-webkit-font-smoothing: antialiased;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--braise);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0;
}

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Header */
.top {
	position: sticky;
	top: 0;
	z-index: 20;
	padding-top: env(safe-area-inset-top, 0px);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.top-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-block: 10px;
}

.brand {
	margin: 0 auto 0 0;
}

.brand b {
	display: block;
	font-family: var(--serif);
	font-weight: 500;
	font-size: 19px;
	line-height: 1.1;
	white-space: nowrap;
}

.brand span {
	font-size: 13px;
	color: var(--ink-2);
}

.icon-btn {
	width: 44px;
	height: 44px;
	flex: none;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--line-strong);
	background: var(--paper);
	color: var(--ink);
	border-radius: 10px;
	padding: 0;
	cursor: pointer;
}

/* « … » menu: a native <details>, usable without JavaScript */
.more {
	position: relative;
}

.more summary {
	list-style: none;
}

.more summary::-webkit-details-marker {
	display: none;
}

.menu-pop {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow);
	min-width: 250px;
	padding: 6px;
	z-index: 40;
}

.menu-pop form {
	margin: 0;
}

.menu-pop a,
.menu-pop button {
	display: block;
	width: 100%;
	min-height: 44px;
	text-align: left;
	background: none;
	border: 0;
	padding: 11px 12px;
	border-radius: 8px;
	font-size: 15px;
	color: var(--ink);
	text-decoration: none;
}

.menu-pop a:hover,
.menu-pop button:hover {
	background: var(--paper-2);
}

/* Sign-in screens */
.auth {
	max-width: 440px;
	padding-top: max(32px, env(safe-area-inset-top));
	padding-bottom: 48px;
}

.auth .brand {
	margin-bottom: 32px;
}

.auth h1 {
	font-size: 30px;
	line-height: 1.15;
}

.lead {
	color: var(--ink-2);
	margin: 10px 0 24px;
}

.lead strong {
	color: var(--ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.stack {
	display: grid;
	gap: 10px;
	margin: 0;
}

.stack label {
	font-weight: 600;
}

.secondary {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.input {
	width: 100%;
	min-height: 48px;
	font: 16px / 1.4 var(--sans);
	color: var(--ink);
	background: var(--card);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	padding: 11px 12px;
}

.input:focus {
	outline: 2px solid var(--braise);
	outline-offset: -1px;
}

.input.code {
	font-size: 24px;
	letter-spacing: 0.3em;
	font-variant-numeric: tabular-nums;
}

.btn {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	padding: 11px 16px;
	font-weight: 600;
	font-size: 16px;
	border: 1px solid transparent;
	text-decoration: none;
	white-space: nowrap;
}

.btn-braise {
	background: var(--braise);
	color: #fff;
}

.btn-braise:hover {
	background: var(--braise-700);
}

.btn-ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--ink);
}

.btn-danger {
	background: none;
	border: 0;
	color: var(--braise-700);
	font-weight: 500;
	padding-inline: 0;
}

.alert {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--braise-50);
	border: 1px solid var(--braise-200);
	color: var(--braise-700);
	font-weight: 500;
}

.text-link {
	justify-self: center;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--braise);
	font-weight: 500;
	text-decoration: none;
}

.chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 10px;
	scrollbar-width: none;
}

.chips::-webkit-scrollbar {
	display: none;
}

.chips[hidden] {
	display: none;
}

.chips a {
	flex: none;
	text-decoration: none;
	color: var(--ink);
	font-size: 14px;
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
}

.icon-btn .lbl {
	display: none;
}

.icon-btn.wide {
	text-decoration: none;
}

@media (min-width: 640px) {
	.icon-btn.wide {
		width: auto;
		padding: 0 14px;
		display: inline-flex;
		gap: 8px;
		align-items: center;
		font-weight: 500;
		font-size: 15px;
	}

	.icon-btn.wide .lbl {
		display: inline;
	}
}

/* Reorganisation band */
.band {
	background: var(--braise-50);
	border-top: 1px solid var(--braise-100);
	font-size: 14.5px;
}

.band .wrap {
	padding-block: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
}

.band p {
	margin: 0;
}

.band .btn {
	min-height: 40px;
	padding: 7px 14px;
}

/* Carte: room for the bottom bar */
main.wrap {
	padding-bottom: 150px;
}

.empty {
	color: var(--ink-2);
	font-size: 14.5px;
	padding: 14px 0 2px;
	margin: 0;
}

.sec {
	padding-top: 30px;
}

.sec-head {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 6px;
}

.sec-head .t {
	flex: 1;
	min-width: 0;
}

.sec-head .t a {
	color: inherit;
	text-decoration: none;
}

.sec-head h2 {
	font-size: 30px;
	line-height: 1.1;
}

.sub {
	margin-top: 24px;
}

.sub .sec-head {
	border-bottom: 1px solid var(--line-strong);
}

.sub h3 {
	font-size: 22px;
	font-style: italic;
	font-weight: 400;
}

.text-btn {
	color: var(--braise);
	font-weight: 500;
	font-size: 14.5px;
	padding: 6px 0;
	white-space: nowrap;
	text-decoration: none;
}

/* Notes typed on several lines keep their lines, as on the site. */
.sec-note {
	margin: 8px 0 0;
	white-space: pre-line;
	font-family: var(--serif);
	font-style: italic;
	color: var(--ink-2);
	font-size: 16px;
}

.dish {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.dish-open {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: inherit;
	text-decoration: none;
}

.thumb {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.thumb.none {
	border: 1.5px dashed var(--line-strong);
	color: var(--line-strong);
}

.thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dish-txt {
	min-width: 0;
}

.dish-name {
	display: block;
	font-family: var(--serif);
	font-size: 18.5px;
	font-weight: 500;
	line-height: 1.25;
}

.dish-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin-top: 3px;
	font-size: 13.5px;
	color: var(--ink-2);
}

.dish-meta .code {
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.dish-meta .snip {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dish-side {
	flex: none;
	/* Long price labels wrap instead of squeezing the name. */
	max-width: 45%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 7px;
	text-align: right;
}

.dish-side form {
	margin: 0;
}

/* Amounts keep their « € » (no-break space) and wrap between them in a narrow column. */
.price {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.price small {
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	font-weight: 400;
	font-size: 12.5px;
	color: var(--ink-2);
}

.avail {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid;
	min-height: 36px;
	white-space: nowrap;
	position: relative;
}

/* The pill keeps the look of the maquette; a touch counts on 44 px of height around it. */
.avail::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: max(100%, 44px);
	transform: translateY(-50%);
}

.avail::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.avail.on {
	color: var(--ok);
	background: var(--ok-bg);
	border-color: var(--ok-line);
}

.avail.off {
	color: var(--braise-700);
	background: var(--braise-50);
	border-color: var(--braise-200);
}

/* A sold-out dish stays in the admin, greyed (R12). */
.dish.off .dish-name {
	color: var(--ink-3);
}

.dish.off .thumb {
	opacity: 0.5;
}

.add {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 44px;
	color: var(--braise);
	font-weight: 500;
	text-decoration: none;
	padding: 4px 0;
}

.foot-block {
	margin-top: 40px;
	border-top: 2px solid var(--ink);
	padding-top: 4px;
}

.foot-block .dish-open {
	display: block;
	padding: 10px 0;
}

.foot-block .k {
	display: block;
	font-size: 13px;
	color: var(--ink-2);
}

.add-sec {
	display: block;
	margin-top: 28px;
	border: 1.5px dashed var(--line-strong);
	border-radius: 12px;
	padding: 14px;
	text-align: center;
	color: var(--braise);
	font-weight: 500;
	text-decoration: none;
}

.arrows {
	display: flex;
	gap: 6px;
}

.arrows form {
	margin: 0;
}

.arrows button {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line-strong);
	background: var(--paper);
	border-radius: 10px;
	padding: 0;
}

.arrows button:disabled {
	opacity: 0.3;
	cursor: default;
}

/* Messages */
#toasts {
	position: fixed;
	left: 0;
	right: 0;
	/* Above the bottom bar. */
	bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: grid;
	justify-items: center;
	gap: 8px;
	pointer-events: none;
	padding: 0 16px;
}

.toast {
	pointer-events: auto;
	background: var(--ink);
	color: var(--paper);
	border-radius: 12px;
	padding: 6px 14px;
	min-height: 44px;
	font-size: 15px;
	display: flex;
	gap: 14px;
	align-items: center;
	max-width: 520px;
	box-shadow: var(--shadow);
	animation: toast-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast form {
	margin: 0;
}

.toast button {
	background: none;
	border: 0;
	color: var(--braise-200);
	font-weight: 600;
	text-decoration: underline;
	padding: 0;
	min-height: 40px;
}

@keyframes toast-in {
	from {
		transform: translateY(8px);
		opacity: 0;
	}
}

/* Sheets (dish, section, footer): a panel on the right over the dimmed carte, full screen
   on a phone (maquette .overlay / .sheet) */
body:has(#layer > .overlay) {
	overflow: hidden;
}

.overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	justify-content: flex-end;
	background: oklch(18% 0.01 40 / 0.45);
}

.sheet {
	width: min(520px, 100%);
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	animation: sheet-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheet-in {
	from {
		transform: translateX(28px);
		opacity: 0;
	}
}

.sheet-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
	border-bottom: 1px solid var(--line);
}

.sheet-head h2 {
	flex: 1;
	font-size: 22px;
	line-height: 1.2;
}

.sheet-head h2:focus {
	outline: none;
}

.sheet-body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 16px 28px;
}

.sheet-foot {
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.foot-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.foot-row[hidden] {
	display: none;
}

.spacer {
	flex: 1;
}

.confirm-q {
	margin: 0;
	font-weight: 600;
	flex-basis: 100%;
}

[data-confirm] .spacer {
	display: none;
}

[data-confirm] .btn {
	flex: 1 1 auto;
}

.field {
	margin: 0 0 24px;
	border: 0;
	padding: 0;
	min-width: 0;
}

.field > label,
.field > legend,
.lbl-like {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	padding: 0;
}

.opt {
	font-weight: 400;
	color: var(--ink-2);
	font-size: 14px;
}

.hint {
	display: block;
	margin: 6px 0 0;
	font-size: 13.5px;
	color: var(--ink-2);
}

.err {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--braise-700);
	font-weight: 500;
}

.sheet .alert {
	margin-bottom: 20px;
}

textarea {
	width: 100%;
	min-height: 84px;
	resize: vertical;
	font: 16px / 1.4 var(--sans);
	color: var(--ink);
	background: var(--card);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	padding: 11px 12px;
}

textarea:focus {
	outline: 2px solid var(--braise);
	outline-offset: -1px;
}

/* Native look aside (iOS ignores the padding of a native select), chevron of the mockup. */
select.input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background: var(--card)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23614536' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		no-repeat right 14px center;
}

.input[aria-invalid="true"] {
	border-color: var(--braise);
}

.short {
	max-width: 150px;
}

.money {
	position: relative;
}

.money .input {
	padding-right: 30px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.money span {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-2);
	pointer-events: none;
}

.price-row {
	display: grid;
	grid-template-columns: 1fr 120px 44px;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

.price-row.single {
	grid-template-columns: 150px;
}

.link-btn {
	background: none;
	border: 0;
	color: var(--braise);
	font-weight: 500;
	padding: 6px 0;
	min-height: 44px;
}

.allergens {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

/* An allergen is a real checkbox, invisible, over its chip. */
.alg {
	position: relative;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 40px;
	padding: 7px 13px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
	font-size: 14.5px;
	cursor: pointer;
	user-select: none;
}

.alg input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.alg svg {
	display: none;
}

.alg:has(input:checked) {
	background: var(--anthracite);
	color: var(--paper);
	border-color: var(--anthracite);
}

.alg:has(input:checked) svg {
	display: block;
}

.alg:has(input:focus-visible) {
	outline: 2px solid var(--braise);
	outline-offset: 2px;
}

/* Photo of the dish: the file field is hidden behind its labels (« Ajouter une photo »,
   « Changer »); the preview is cropped, « Agrandir » shows it whole (.viewer). */
.photo {
	position: relative;
	overflow: hidden;
	height: 150px;
	border-radius: 14px;
	background: var(--paper-2);
	border: 1.5px dashed var(--line-strong);
	display: grid;
	place-items: center;
}

.photo.has {
	height: auto;
	aspect-ratio: 4 / 3;
	border-style: solid;
	border-color: var(--line);
}

.photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-zoom {
	position: absolute;
	inset: 0;
	cursor: zoom-in;
}

/* A label of the field, but laid out as the mockup's slot (not as a field label). */
.field > label.photo-add {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 6px;
	padding: 24px;
	margin: 0;
	color: var(--ink-2);
	font-size: 14.5px;
	font-weight: 400;
	text-align: center;
	cursor: pointer;
}

#photo:has(#f-photo:focus-visible) .photo {
	outline: 2px solid var(--braise);
	outline-offset: 2px;
}

#photo[aria-busy="true"] .photo {
	opacity: 0.6;
}

.photo-actions {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	gap: 8px;
}

.photo-actions > * {
	display: grid;
	place-items: center;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: oklch(100% 0 0 / 0.94);
	box-shadow: 0 1px 3px oklch(0% 0 0 / 0.2);
	color: var(--ink);
	font: 500 14px / 1 var(--sans);
	text-decoration: none;
	cursor: pointer;
}

.photo-busy[hidden] {
	display: none;
}

.photo-add strong {
	color: var(--ink);
	font-size: 16px;
}

/* « Disponible »: a real checkbox, invisible, over its switch. */
.field > .switch-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	font-weight: 400;
	margin: 0;
	cursor: pointer;
}

.switch-row .hint {
	margin: 0;
}

.switch-row input {
	position: absolute;
	right: 14px;
	width: 52px;
	height: 32px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.switch {
	position: relative;
	flex: none;
	width: 52px;
	height: 32px;
	border-radius: 999px;
	background: var(--line-strong);
}

.switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--card);
	box-shadow: 0 1px 3px oklch(0% 0 0 / 0.25);
	transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.switch-row input:checked + .switch {
	background: var(--ok);
}

.switch-row input:checked + .switch::after {
	transform: translateX(20px);
}

.switch-row input:focus-visible + .switch {
	outline: 2px solid var(--braise);
	outline-offset: 2px;
}

/* Bottom bar: what is not online yet (maquette 01, 07) */
.bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.bar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bar.dark {
	background: var(--anthracite);
	color: var(--paper);
}

.bar.light {
	background: var(--paper-2);
	color: var(--ink-2);
	border-top: 1px solid var(--line);
	font-size: 14.5px;
}

.bar p {
	margin: 0;
}

.bar form {
	margin: 0;
	flex: none;
}

.bar .btn {
	flex: none;
}

.bar-link {
	display: inline-block;
	margin-top: 2px;
	padding-block: 6px;
	color: var(--braise-200);
	font-size: 14.5px;
	text-underline-offset: 3px;
}

.bar small {
	display: block;
	opacity: 0.75;
	font-size: 13px;
}

.progress {
	height: 4px;
	width: min(320px, 60vw);
	margin-top: 8px;
	border-radius: 4px;
	overflow: hidden;
	background: oklch(100% 0 0 / 0.18);
}

.progress i {
	display: block;
	height: 100%;
	width: 35%;
	border-radius: 4px;
	background: var(--braise-200);
	animation: progress 1.6s ease-in-out infinite alternate;
}

@keyframes progress {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(290%);
	}
}

/* Sheets « Mettre en ligne » and « Annuler mes changements » */
.sheet-text {
	margin: 0;
}

.changes {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.changes li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}

/* Aperçu client (maquette 08) */
.preview {
	min-height: 100vh;
	background: var(--paper-3);
}

.pv-bar {
	position: sticky;
	top: 0;
	z-index: 2;
	padding-top: env(safe-area-inset-top, 0px);
	background: var(--anthracite);
	color: var(--paper);
}

.pv-bar .wrap {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-block: 10px;
}

.pv-bar strong {
	margin-right: auto;
	font-weight: 600;
}

.pv-bar a {
	background: var(--paper);
	color: var(--ink);
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
	text-decoration: none;
}

.pv-note {
	text-align: center;
	font-size: 14px;
	color: var(--ink-2);
	margin: 14px 16px;
}

.phone {
	max-width: 430px;
	min-height: 80vh;
	margin: 0 auto;
	padding: 30px 20px calc(40px + env(safe-area-inset-bottom, 0px));
	background: var(--paper);
}

@media (min-width: 640px) {
	.phone {
		margin-bottom: 48px;
		border-radius: 28px;
		border: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
}

.pv-head {
	text-align: center;
	margin-bottom: 8px;
}

.pv-head .r {
	margin: 0;
	font-family: var(--serif);
	font-size: 34px;
	line-height: 1.1;
}

.pv-head .s {
	color: var(--braise);
	font-style: italic;
	font-size: 19px;
	font-weight: 400;
}

.phone h2 {
	font-size: 25px;
	text-align: center;
	margin: 32px 0 4px;
}

.phone h3 {
	font-size: 19px;
	font-style: italic;
	font-weight: 400;
	color: var(--braise-700);
	margin: 22px 0 2px;
}

.pv-sn {
	text-align: center;
	white-space: pre-line;
	font-style: italic;
	color: var(--ink-2);
	font-size: 14px;
	margin: 0 0 6px;
}

.pv-dish {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 11px 0;
	border-bottom: 1px dotted var(--line-strong);
}

.pv-ph {
	flex: none;
	line-height: 0;
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
}

.pv-ph img {
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.pv-dish .tx {
	flex: 1;
	min-width: 0;
}

.pv-dish p {
	margin: 0;
}

.pv-dish .n {
	font-weight: 500;
	line-height: 1.35;
}

.pv-dish .code {
	margin-right: 0.5em;
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.pv-dish .d {
	font-size: 14px;
	color: var(--ink-2);
	margin-top: 2px;
}

.pv-dish .a {
	font-size: 12.5px;
	color: var(--ink-3);
	margin-top: 3px;
}

.pv-dish .p {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.pv-dish .p span {
	display: block;
}

.pv-dish .p small {
	font-weight: 400;
	color: var(--ink-2);
	font-size: 13px;
	margin-right: 2px;
}

.pv-foot {
	margin-top: 28px;
	text-align: center;
	font-size: 13px;
	color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
	.toast {
		animation: none;
	}

	.progress i {
		animation: none;
		width: 100%;
		opacity: 0.6;
	}

	.switch::after {
		transition: none;
	}

	.sheet {
		animation: none;
	}
}

/* Photo in full screen, whole, with the name of the dish just under it (maquette
   04-photo-agrandie): any touch closes it. The image box keeps the photo's own proportions. */
.viewer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	border: 0;
	padding: calc(64px + env(safe-area-inset-top, 0px)) 16px
		calc(24px + env(safe-area-inset-bottom, 0px));
	background: oklch(12% 0.005 30 / 0.94);
	color: var(--paper);
	cursor: zoom-out;
}

.viewer[open] {
	display: grid;
	/* The photo takes the height it needs, up to what the name leaves; both centred together. */
	grid-template-rows: minmax(0, max-content) auto;
	align-content: center;
	justify-items: center;
	gap: 12px;
}

.viewer::backdrop {
	background: transparent;
}

.viewer img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.viewer-caption {
	margin: 0;
	font-family: var(--serif);
	font-size: 18px;
	text-align: center;
	text-wrap: balance;
}

.viewer-close {
	position: absolute;
	top: calc(12px + env(safe-area-inset-top, 0px));
	right: 12px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
}
