/*
 * The main navigation (navigation/header-menu-v2.php and its panels, js/nav.js).
 *
 * Brand colours only: #FE415F for anything active or interactive, #231F20 for text. Nothing here
 * turns black on hover — the theme's default link colours do that, so every interactive thing in
 * here states its own hover colour rather than inheriting one.
 */

:root {
	--sc-nav-red: #FE415F;
	--sc-nav-ink: #231F20;
	--sc-nav-muted: #6b6466;
	--sc-nav-line: #efe9ea;
	/* Brand tints for the phone menu: the theme's cream, and two steps of blush derived from the
	   peach so the nesting reads as depth rather than as a different palette. */
	--sc-nav-cream: #FBF9F6;
	--sc-nav-blush: #FFF1F4;
	--sc-nav-blush-deep: #FFE4EA;
}

/* ── The bar ─────────────────────────────────────────────────────────────────────────────────── */

.sc-nav-list {
	list-style: none;
	gap: 1.75rem;
	padding: 0;
}

.sc-nav-item {
	position: static;   /* the panels span the whole bar, so they anchor to .sc-nav, not the item */
}

.sc-nav-link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .5rem 0;
	border: 0;
	background: none;
	color: var(--sc-nav-ink) !important;
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.sc-nav-link .bi {
	font-size: .7rem;
	transition: transform .18s ease;
}

.sc-nav-link:is(:hover, :focus-visible),
.sc-nav-item[data-sc-open] > .sc-nav-link {
	color: var(--sc-nav-red) !important;
}

.sc-nav-item[data-sc-open] > .sc-nav-link .bi {
	transform: rotate(180deg);
}

.sc-nav-link:focus-visible {
	outline: 2px solid var(--sc-nav-red);
	outline-offset: 3px;
	border-radius: .25rem;
}

/* The pink button. Also used for "Get a quote" in the events panel and on the phone menu. */
.sc-nav-book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .6rem 1.25rem;
	border: 1px solid var(--sc-nav-red);
	border-radius: 2rem;
	background: var(--sc-nav-red);
	color: #fff !important;
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.sc-nav-book:is(:hover, :focus-visible) {
	background: #fff;
	color: var(--sc-nav-red) !important;
}

.sc-nav-book:focus-visible {
	outline: 2px solid var(--sc-nav-red);
	outline-offset: 2px;
}

/* ── The dropdown panels ─────────────────────────────────────────────────────────────────────── */

.sc-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1200;
	background: #fff;
	border-top: 1px solid var(--sc-nav-line);
	box-shadow: 0 1.25rem 2.5rem rgba(35, 31, 32, .12);
}

/* [hidden] is set in the markup and removed by the script, so the panel is genuinely absent for
   a screen reader rather than merely transparent. */
.sc-panel[hidden] {
	display: none;
}

.sc-panel-inner {
	display: grid;
	gap: 2.5rem;
	max-width: 76rem;
	margin: 0 auto;
	padding: 2rem 1.5rem 2.25rem;
	/* The brief: the whole menu fits a 900px laptop screen. The bar and the pink strip take
	   roughly 150px, so the panel gets what is left and scrolls only if a column grows past it. */
	max-height: calc(100vh - 9.5rem);
	overflow-y: auto;
}

/* The class columns get the width; the shortcuts run along the bottom instead of taking a
   column of their own, and the card is narrower than it was. Named areas rather than counting
   columns, so the shortcut row spanning the full width is stated rather than inferred. */
.sc-panel-classes .sc-panel-inner {
	grid-template-columns: minmax(0, 1fr) 13rem;
	grid-template-areas: "columns next";
	gap: 1.75rem 2.25rem;
}

.sc-panel-classes .sc-panel-columns {
	grid-area: columns;
}

.sc-panel-classes .sc-panel-next {
	grid-area: next;
}


.sc-panel-heading {
	margin: 0 0 .75rem;
	color: var(--sc-nav-muted);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sc-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-panel a:not(.sc-nav-book) {
	color: var(--sc-nav-ink) !important;
	text-decoration: none;
}

.sc-panel a:not(.sc-nav-book):is(:hover, :focus-visible) {
	color: var(--sc-nav-red) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The bottom strip: a blush band across the panel, icon links on the left and the button on
   the right. As a plain row of text it read as a footnote rather than as somewhere to go — the
   tint gives it a floor to sit on, and the full-bleed negative margins let it run the width of
   the panel rather than stopping inside its padding. */
.sc-panel-shortcuts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem 1.75rem;
	margin: 0;
	padding: 1rem max(1.5rem, calc((100% - 76rem) / 2 + 1.5rem));
	background: var(--sc-nav-blush);
}

.sc-panel-shortcuts ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.75rem;
}

.sc-panel-shortcuts li a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	font-weight: 600;
}

.sc-panel-shortcuts li .bi {
	font-size: 1rem;
	color: var(--sc-nav-red);
}

/* The four class columns. */
.sc-panel-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, max-content));
	justify-content: space-between;
	gap: 1.75rem;
	padding-right: 2rem;
	border-right: 1px solid var(--sc-nav-line);
}

.sc-panel-column li + li {
	margin-top: .45rem;
}

.sc-panel-column a {
	font-size: .9rem;
	line-height: 1.35;
}

/* Private sewing and the overlocker: still there, just not competing with the levels. */
.sc-panel-column li.is-muted a {
	color: var(--sc-nav-muted) !important;
	font-size: .85rem;
}

.sc-panel-column li.is-muted:first-of-type {
	margin-top: .9rem;
}

.sc-panel-column li.is-muted a:is(:hover, :focus-visible) {
	color: var(--sc-nav-red) !important;
}

/* ── The "Next up" card ──────────────────────────────────────────────────────────────────────── */

.sc-next-card {
	overflow: hidden;
	border: 1px solid var(--sc-nav-line);
	border-radius: .75rem;
}

/* 16:10 rather than 4:3. The card was the tallest thing in the panel and set its height, which
   pushed the shortcut strip below the fold of a laptop screen; the panel should be as tall as its
   longest class column and no taller. */
.sc-next-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.sc-next-body {
	padding: .6rem .9rem .6rem;
}

.sc-next-title {
	margin: 0;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.3;
}

.sc-next-when,
.sc-next-seats {
	margin: .2rem 0 0;
	font-size: .85rem;
	line-height: 1.3;
	color: var(--sc-nav-muted);
}

.sc-next-seats.is-low {
	color: var(--sc-nav-red);
	font-weight: 600;
}

.sc-next-cta {
	display: inline-block;
	margin-top: .75rem;
	color: var(--sc-nav-red) !important;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Private events: the icon tiles ──────────────────────────────────────────────────────────── */

.sc-tiles {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
}

.sc-tiles a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .6rem;
	padding: 1.25rem .75rem;
	border: 1px solid var(--sc-nav-line);
	border-radius: .75rem;
	text-align: center;
	transition: border-color .15s ease, background-color .15s ease;
}

.sc-tiles a:is(:hover, :focus-visible) {
	border-color: var(--sc-nav-red);
	background: #fff5f7;
	text-decoration: none;
}

.sc-tile-icon .bi {
	font-size: 1.6rem;
	color: var(--sc-nav-red);
}

.sc-tile-label {
	font-size: .9rem;
	font-weight: 600;
}

.sc-panel-events-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.sc-panel-note {
	margin: 0;
	color: var(--sc-nav-muted);
	font-size: .9rem;
}

/* On a phone the note sits between the tiles and the button, so it needs air on both sides
   rather than being squeezed between two blocks of colour. */
.sc-mobile-nav .sc-panel-note {
	margin: 1.25rem 0;
	text-align: center;
}

/* ── The phone menu ──────────────────────────────────────────────────────────────────────────── */

/* Above the fixed header. The top strip inside it carries an inline z-index of 999999 from the
   original theme, and a Bootstrap modal is only 1055 — so without this the logo paints over the
   menu's own button. */
.sc-mobile-nav {
	z-index: 1000001;
}

.sc-mobile-nav .modal-content {
	background: #fff;
	color: var(--sc-nav-ink);
}

.sc-mobile-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border-bottom: 1px solid var(--sc-nav-line);
	/* Pinned, as asked: the book button stays reachable however far down the menu you are. */
	position: sticky;
	top: 0;
	z-index: 2;
	background: #fff;
}

.sc-mobile-book {
	flex: 1;
}

.sc-mobile-close {
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--sc-nav-line);
	border-radius: 50%;
	background: none;
	color: var(--sc-nav-ink);
}

.sc-mobile-close:is(:hover, :focus-visible) {
	border-color: var(--sc-nav-red);
	color: var(--sc-nav-red);
}

.sc-mobile-body {
	padding: .5rem 1rem 2.5rem;
	overflow-y: auto;
}

.sc-acc + .sc-acc,
.sc-mobile-simple,
.sc-mobile-next,
.sc-mobile-contact {
	border-top: 1px solid var(--sc-nav-line);
}

.sc-acc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 0;
	border: 0;
	background: none;
	color: var(--sc-nav-ink);
	font-size: 1.05rem;
	font-weight: 700;
	text-align: left;
}

.sc-acc-toggle[aria-expanded="true"] {
	color: var(--sc-nav-red);
}

.sc-acc-toggle[aria-expanded="true"] .bi {
	transform: rotate(180deg);
}

.sc-acc-toggle .bi {
	font-size: .8rem;
	transition: transform .18s ease;
}

.sc-acc-panel[hidden] {
	display: none;
}

.sc-acc-panel {
	padding-bottom: .75rem;
}

.sc-acc-sub .sc-acc-toggle {
	padding: .7rem 0;
	font-size: .95rem;
	font-weight: 600;
}

.sc-acc-sub {
	border-top: 1px solid var(--sc-nav-line);
}

.sc-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-mobile-nav a:not(.sc-nav-book) {
	color: var(--sc-nav-ink) !important;
	text-decoration: none;
}

.sc-mobile-nav a:not(.sc-nav-book):is(:hover, :focus-visible) {
	color: var(--sc-nav-red) !important;
}

.sc-mobile-shortcuts {
	margin-bottom: .5rem;
}

.sc-mobile-shortcuts li a {
	display: block;
	padding: .5rem 0;
	font-weight: 600;
}

.sc-acc-sub ul li a {
	display: block;
	padding: .45rem 0;
	font-size: .95rem;
}

.sc-acc-sub ul li.is-muted a {
	color: var(--sc-nav-muted) !important;
}

.sc-mobile-simple li a {
	display: block;
	padding: 1rem 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.sc-mobile-simple li + li {
	border-top: 1px solid var(--sc-nav-line);
}

.sc-mobile-quote {
	display: flex;
	margin-top: 1rem;
}

.sc-mobile-next,
.sc-mobile-contact {
	padding-top: 1.25rem;
	margin-top: .5rem;
}

.sc-mobile-contact li a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem 0;
	font-weight: 600;
}

/* Two columns of tiles on a phone, as asked. */
.sc-tiles-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (prefers-reduced-motion: reduce) {
	.sc-nav-link .bi,
	.sc-acc-toggle .bi,
	.sc-nav-book,
	.sc-tiles a {
		transition: none;
	}
}

/* ── The phone menu, dressed ──────────────────────────────────────────────── */

.sc-mobile-nav .modal-content {
	background: var(--sc-nav-cream);
}

/* The head is the same cream as the menu, so the top of the panel is one clean background.
   It was white with a wave handing over to the cream, which read as a rendering fault rather
   than as the section waves it was borrowed from — at this size the shape is too shallow to
   say anything. */
.sc-mobile-head {
	position: sticky;
	background: var(--sc-nav-cream);
	border-bottom: 0;
}

/* Barely any gap under the bar: the first section heading is the next thing to read, and 1.5rem
   of cream above it read as the menu not having started yet. */
.sc-mobile-body {
	padding-top: .25rem;
}

/* ── A section that is open is visibly INSIDE its heading ──
   Flat white sub-items read as more menu, which is how a shortcut gets tapped instead of a
   category. A blush panel, indented and rounded, says "this belongs to the thing above it". */
/* Edge to edge: the negative side margins cancel the body's own 1rem padding, so the blush
   reaches the screen on both sides and the open section reads as a band rather than a card
   floating in cream. The inner padding puts the contents back where they were. */
.sc-nest {
	margin: 0 -1rem .5rem;
	padding: 1rem 1rem 1.25rem;
	background: var(--sc-nav-blush);
}

/* ── The four categories, as picture cards ── */
.sc-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-cat-grid > li {
	display: flex;
}

.sc-cat-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: .85rem;
	background: #fff;
	text-align: left;
	transition: border-color .15s ease;
}

.sc-cat-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.sc-cat-name {
	/* Pushed to the bottom of the card, so names sit on one line across the row even when one
	   of them wraps. */
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .4rem;
	padding: .55rem .7rem .6rem;
	color: var(--sc-nav-ink);
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.25;
}

.sc-cat-name .bi {
	flex: none;
	font-size: .7rem;
	transition: transform .18s ease;
}

.sc-cat-card[aria-expanded="true"] {
	border-color: var(--sc-nav-red);
}

.sc-cat-card[aria-expanded="true"] .sc-cat-name {
	color: var(--sc-nav-red) !important;
}

.sc-cat-card[aria-expanded="true"] .sc-cat-name .bi {
	transform: rotate(180deg);
}

/* The open category's classes, below the grid so the cards never move. */
.sc-cat-list[hidden] {
	display: none;
}

.sc-cat-list {
	margin-top: .9rem;
	padding: .75rem .9rem .5rem;
	border-radius: .75rem;
	background: #fff;
}

.sc-cat-list-heading {
	margin: 0 0 .35rem;
	color: var(--sc-nav-muted);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sc-cat-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-cat-list li a {
	display: block;
	padding: .45rem 0;
	font-size: .95rem;
}

.sc-cat-list li.is-muted a {
	color: var(--sc-nav-muted) !important;
}

/* ── Shortcuts as pills, under the categories ──
   Pills rather than another list: they are a different kind of thing from a class, and they
   should not look like one more row to scroll past. */
/* Two small white cards side by side, then the catch-all as a plain pink link.
   Three large outline pills gave equal weight to three things that are not equally important,
   and took up most of the panel under the category cards. */
/* A clear gap and a hairline above these: they are a different kind of thing from the category
   cards above them — somewhere else to go rather than another category — and at .9rem they read
   as a fifth, oddly-shaped category. */
.sc-mobile-nav .sc-shortcut-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .6rem;
	margin: 1.6rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--sc-nav-blush-deep);
	list-style: none;
}

.sc-shortcut-cards a {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .7rem .8rem;
	border-radius: .75rem;
	background: #fff;
	font-size: .9rem;
	font-weight: 600;
}

.sc-shortcut-cards .bi {
	flex: none;
	font-size: 1.1rem;
	color: var(--sc-nav-red);
}

.sc-shortcut-more {
	display: inline-block;
	margin-top: .85rem;
	color: var(--sc-nav-red) !important;
	font-size: .9rem;
	font-weight: 700 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── The event tiles, tinted rather than white ── */
.sc-mobile-nav .sc-tiles a {
	border-color: transparent;
	background: var(--sc-nav-blush-deep);
}

.sc-mobile-nav .sc-tiles a:is(:hover, :focus-visible) {
	border-color: var(--sc-nav-red);
	background: var(--sc-nav-blush-deep);
}

/* ── The next class, with a real button ── */
.sc-mobile-next .sc-next-card {
	background: #fff;
	border-color: transparent;
}

.sc-next-button {
	margin-top: .65rem;
	padding: .4rem 1rem;
	font-size: .875rem;
}

/* ── The script line above the contact details ── */
.sc-mobile-script {
	margin: 1.5rem 0 0;
	font-family: var(--italic, "Sacramento", cursive);
	font-size: 2.25rem;
	line-height: 1.1;
	text-align: center;
	color: var(--sc-nav-red);
}

.sc-mobile-contact {
	border-top: 0;
	padding-top: .75rem;
	text-align: center;
}

.sc-mobile-contact li a {
	justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
	.sc-cat-card,
	.sc-cat-name .bi {
		transition: none;
	}
}

/* ── Nothing moves on hover ──
   The theme drops anchors to font-weight 300 when they are hovered. On a menu that means the
   word narrows — "Hens Parties" went from 97.3px to 94.1px — and because the row is centred,
   everything beside it slides sideways. Hover should change the colour and nothing else, so the
   weight is pinned in both states. !important because the rule being beaten has it too. */
.sc-nav-list .sc-nav-link,
.sc-nav-list .sc-nav-link:is(:hover, :focus, :focus-visible, :active) {
	font-weight: 600 !important;
}

.sc-nav-book,
.sc-nav-book:is(:hover, :focus, :focus-visible, :active) {
	font-weight: 700 !important;
}

/* Same for the links inside the panels and the phone menu. */
.sc-panel a,
.sc-panel a:is(:hover, :focus, :focus-visible, :active),
.sc-mobile-nav a,
.sc-mobile-nav a:is(:hover, :focus, :focus-visible, :active) {
	font-weight: inherit;
}

.sc-panel-shortcuts a,
.sc-panel-shortcuts a:is(:hover, :focus, :focus-visible, :active),
.sc-panel-heading {
	font-weight: 600 !important;
}

.sc-next-title,
.sc-pills a,
.sc-pills a:is(:hover, :focus, :focus-visible, :active) {
	font-weight: 700 !important;
}

/* ── Round two ───────────────────────────────────────────────────────────────── */

/* An events tile is a link rather than a button, so it needs the card's own colour stated. */
a.sc-cat-card {
	text-decoration: none;
}

a.sc-cat-card:is(:hover, :focus-visible) .sc-cat-name {
	color: var(--sc-nav-red) !important;
	text-decoration: none;
}

/* A tile with no photo keeps its icon, in the same space the photo would fill. */
.sc-cat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--sc-nav-blush);
}

.sc-cat-icon .bi {
	font-size: 1.75rem;
	color: var(--sc-nav-red);
}

/* Desktop tiles: the same picture, small, where the icon used to be. */
.sc-tile-photo {
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	object-fit: cover;
	border-radius: 50%;
}

/* ── Hover belongs to pointers ──
   On a touch screen :hover sticks after a tap and does not clear until something else is
   tapped. The pink buttons invert on hover, so a tapped "Get a Quote" stayed white with a pink
   border — which is exactly what an outline button looks like. Everything that inverts is now
   behind a hover query; focus-visible stays outside it, so the keyboard keeps its feedback. */
@media (hover: none) {
	.sc-nav-book:hover {
		background: var(--sc-nav-red);
		color: #fff !important;
	}

	.sc-tiles a:hover,
	.sc-pills a:hover {
		background: #fff;
	}

	.sc-mobile-nav .sc-tiles a:hover {
		background: var(--sc-nav-blush-deep);
	}
}

/* ── Desktop event tiles: photo cards, four across ──
   The round thumbnails cropped group shots down to almost nothing. Full-width photos with the
   name underneath are the same card the phone menu uses, so the two read as one design. */
.sc-panel-events .sc-tiles {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.sc-panel-events .sc-tiles a {
	display: block;
	overflow: hidden;
	padding: 0;
	border-radius: .85rem;
	text-align: left;
}

.sc-panel-events .sc-tile-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.sc-panel-events .sc-tile-label {
	display: block;
	padding: .6rem .75rem .7rem;
	font-size: .95rem;
	font-weight: 700;
}

/* A tile with no photo keeps its icon, in the space the photo would have filled. */
.sc-panel-events .sc-tile-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--sc-nav-blush);
}

/* The card's heading keeps the SAME bottom margin as the column headings, so the top edge of the
   card lands on the first class in the columns beside it — Complete Sewing Bundle and Textured
   Paint & Sip — rather than floating above them.
   It was .15rem, to save panel height: the card was the tallest thing here and every pixel it
   spent pushed the shortcut strip towards the fold of a 900px laptop screen. That bought about
   10px and cost the alignment, which is the more visible of the two. The height it costs is paid
   for elsewhere — the photo is 21:9 and the body padding is tight — so the strip still clears
   the fold. If the panel ever stops fitting, take the height off the photo, not off here.
   Stated as a full declaration rather than deleting the override, because .sc-panel-heading is
   also redefined further down this file; inheriting from "whichever one wins" is how this came
   adrift in the first place. */
.sc-panel-next .sc-panel-heading {
	margin-bottom: .75rem;
}

/* ── The phone "Next Up" card, compact ──
   A thumbnail, two lines and a button, in one row. The previous card led with a wide photo across
   the full width and stood around 240px tall — a third of a phone screen for one session, which
   pushed the studio's phone number and address off the bottom of the menu. */
.sc-mobile-next .sc-next-compact {
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr) auto;
	align-items: center;
	gap: .75rem;
	padding: .55rem;
	border-radius: .9rem;
	background: #fff;
	color: var(--sc-nav-ink) !important;
	text-decoration: none;
}

.sc-next-thumb {
	display: block;
	width: 4.25rem;
	height: 4.25rem;
	object-fit: cover;
	border-radius: .65rem;
}

.sc-next-lines {
	display: block;
	min-width: 0;
}

.sc-mobile-next .sc-next-title {
	margin: 0;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.25;
	/* Two lines at most: "Polymer Clay Earrings & Keyrings" is a real class name. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sc-mobile-next .sc-next-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .3rem;
	margin: .2rem 0 0;
	color: var(--sc-nav-muted);
	font-size: .8rem;
	line-height: 1.3;
}

.sc-mobile-next .sc-next-seats.is-low {
	color: var(--sc-nav-red);
	font-weight: 600;
}

/* Small enough to sit in the row rather than set its height. */
.sc-mobile-next .sc-next-button {
	display: inline-flex;
	align-items: center;
	flex: none;
	padding: .45rem .85rem;
	border-radius: 2rem;
	background: var(--sc-nav-red);
	color: #fff !important;
	font-size: .8rem;
	font-weight: 700;
	white-space: nowrap;
}

/* The full-width photo rule must not reach the compact card. */
.sc-mobile-next .sc-next-photo {
	display: none;
}

/* The separator belongs to the thing after it, so a wrap carries it along. */
.sc-mobile-next .sc-next-meta > span + span::before {
	content: '\00b7';
	margin-right: .3rem;
	color: var(--sc-nav-line);
}

/* "View All Classes" is a link, and should look like one: pink and underlined. It was being
   painted charcoal by .sc-mobile-nav a:not(.sc-nav-book), which is more specific than the rule
   that styles it — !important does not help when the loss is on specificity. */
.sc-mobile-nav a.sc-shortcut-more:not(.sc-nav-book) {
	color: var(--sc-nav-red) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* ── THE PHONE MENU'S CLASS LIST ──────────────────────────────────────────────────────────────
   Replaces .sc-cat-grid / .sc-cat-card / .sc-cat-list on a phone: a heading per category with
   its classes under it, no photographs and no second tap. Sophie, 21 November 2026.

   The old rules are left in nav.css untouched — the DESKTOP panels still use .sc-cat-card and
   the photos, and this menu is the only thing that stopped using them. */
.sc-cat-plain {
	margin: 0;
}

.sc-cat-plain-heading {
	margin: 1.1rem 0 .35rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--grey);
}

.sc-cat-plain > p:first-child {
	margin-top: .2rem;
}

.sc-cat-plain ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-cat-plain li + li {
	border-top: 1px solid rgba(35, 31, 32, .08);
}

.sc-cat-plain a {
	display: block;
	padding: .6rem 0;
	color: var(--dark);
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none;
}

/* The private lessons, as the desktop panel mutes them. */
.sc-cat-plain li.is-muted a {
	color: var(--grey);
	font-size: .92rem;
}

/* ── Class Schedule, at the top ───────────────────────────────────────────────────────────── */
.sc-mobile-schedule {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .85rem 0;
	border-bottom: 1px solid rgba(35, 31, 32, .12);
	color: var(--dark);
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
}

.sc-mobile-schedule .bi:first-child {
	color: var(--red);
}

.sc-mobile-schedule-go {
	margin-left: auto;
	font-size: .85rem;
	color: var(--grey);
}

/* ── THE PHONE MENU'S CATEGORY ACCORDIONS ─────────────────────────────────────────────────────
   One per category, closed, with an arrow — Sophie, 21 November 2026. The flat list that
   replaced the photo grid was thirty-odd rows, which is its own kind of wall; four headings and
   the classes under whichever one you asked for is the shape she wanted.

   js/nav.js drives them with the same data-sc-acc pattern as the sections above, so opening one
   closes the others and aria-expanded stays honest. */
.sc-cat-accs {
	margin: 0;
}

.sc-cat-acc + .sc-cat-acc {
	border-top: 1px solid rgba(35, 31, 32, .08);
}

.sc-cat-acc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	width: 100%;
	padding: .85rem 0;
	border: 0;
	background: none;
	color: var(--dark);
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.sc-cat-acc-toggle .bi {
	flex: 0 0 auto;
	font-size: .8rem;
	color: var(--grey);
	transition: transform .2s ease;
}

.sc-cat-acc-toggle[aria-expanded="true"] {
	color: var(--red);
}

.sc-cat-acc-toggle[aria-expanded="true"] .bi {
	transform: rotate(180deg);
	color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
	.sc-cat-acc-toggle .bi { transition: none; }
}

.sc-cat-acc-panel[hidden] {
	display: none;
}

.sc-cat-acc-panel ul {
	margin: 0 0 .6rem;
	padding: 0;
	list-style: none;
}

.sc-cat-acc-panel a {
	display: block;
	padding: .45rem 0 .45rem .9rem;
	color: var(--dark);
	font-size: .95rem;
	line-height: 1.3;
	text-decoration: none;
}

/* The private lessons, muted as the desktop panel mutes them. */
.sc-cat-acc-panel li.is-muted a {
	color: var(--grey);
	font-size: .9rem;
}

/* ── Three Next Up cards, not one ─────────────────────────────────────────────────────────── */
.sc-mobile-next .sc-next-card + .sc-next-card {
	margin-top: .5rem;
}
