/* ==========================================================================
   NeighbourhoodMums — theme.css
   Component layer for the block theme. theme.json ships design tokens as
   --wp--preset--* custom properties; this file bridges them to the --gm-*
   names used in the handover spec, then builds the DS components, the global
   header/footer, and "Fred" (the family-fridge homepage).
   British English throughout. No emoji.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token bridge  (spec --gm-* names → theme.json presets)
   -------------------------------------------------------------------------- */
:root {
	--gm-raspberry:       var(--wp--preset--color--raspberry);
	--gm-raspberry-dark:  var(--wp--preset--color--raspberry-dark);
	--gm-raspberry-tint:  var(--wp--preset--color--raspberry-tint);
	--gm-yellow:          var(--wp--preset--color--yellow);
	--gm-yellow-tint:     var(--wp--preset--color--yellow-tint);
	--gm-ink:             var(--wp--preset--color--ink);
	--gm-white:           var(--wp--preset--color--base);
	--gm-off-white:       var(--wp--preset--color--off-white);
	--gm-grey-050:        var(--wp--preset--color--grey-050);
	--gm-grey-200:        var(--wp--preset--color--grey-200);
	--gm-grey-400:        var(--wp--preset--color--grey-400);
	--gm-grey-700:        var(--wp--preset--color--grey-700);
	--gm-success:         var(--wp--preset--color--success);
	--gm-warning:         var(--wp--preset--color--warning);
	--gm-error:           var(--wp--preset--color--error);

	--gm-font-display:    var(--wp--preset--font-family--display);
	--gm-font-body:       var(--wp--preset--font-family--body);

	--gm-radius-sm:       2px;
	--gm-radius-md:       4px;
	--gm-radius-lg:       8px;

	--gm-ls-wide:         var(--wp--custom--tracking--wide, 0.06em);
	--gm-ls-wider:        var(--wp--custom--tracking--wider, 0.12em);

	--gm-ease:            var(--wp--custom--ease, cubic-bezier(0.2, 0.7, 0.3, 1));
	--gm-dur:             var(--wp--custom--duration--base, 200ms);
	--gm-dur-fridge:      var(--wp--custom--duration--fridge, 220ms);

	--gm-shadow-sm:       var(--wp--preset--shadow--sm);
	--gm-shadow-md:       var(--wp--preset--shadow--md);
	--gm-shadow-lg:       var(--wp--preset--shadow--lg);
	--gm-shadow-card:     var(--wp--preset--shadow--card);

	--gm-container-max:   1120px;
	--gm-container-pad:   40px;

	/* Door gradients (4 brand colours). */
	--gm-door-raspberry:  var(--wp--custom--door--raspberry);
	--gm-door-yellow:     var(--wp--custom--door--yellow);
	--gm-door-blue:       var(--wp--custom--door--blue);
	--gm-door-green:      var(--wp--custom--door--green);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
	font-family: var(--gm-font-body);
	font-weight: 300;
	color: var(--gm-ink);
	background: var(--gm-off-white);
	-webkit-font-smoothing: antialiased;
}

.nm-container {
	max-width: var(--gm-container-max);
	margin-inline: auto;
	padding-inline: var(--gm-container-pad);
}

/* --------------------------------------------------------------------------
   3. Chips  (nav items AND every filter — spec §Global header)
   Oswald 600, 13px, uppercase, .05em, padding 9/15, radius 2, sm shadow.
   -------------------------------------------------------------------------- */
.nm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--gm-font-display);
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 9px 15px;
	border-radius: var(--gm-radius-sm);
	border: 0;
	background: var(--gm-white);
	color: var(--gm-ink);
	box-shadow: 0 1px 2px rgba(34, 34, 34, 0.12);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--gm-dur) var(--gm-ease), color var(--gm-dur) var(--gm-ease);
}
.nm-chip:hover { filter: brightness(0.95); }
.nm-chip.is-active,
.nm-chip[aria-pressed="true"],
.nm-chip[aria-current="page"] {
	background: var(--gm-raspberry);
	color: var(--gm-white);
}

/* --------------------------------------------------------------------------
   4. Buttons  (DS class + core/button style variations)
   Base: Oswald 600 uppercase .06em, 2px transparent border, radius 4.
   -------------------------------------------------------------------------- */
.nm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--gm-font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--gm-ls-wide);
	line-height: 1;
	border: 2px solid transparent;
	border-radius: var(--gm-radius-md);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background var(--gm-dur) var(--gm-ease), color var(--gm-dur) var(--gm-ease);
}
.nm-btn--sm { font-size: 13px; padding: 10px 16px; }
.nm-btn--md { font-size: 14px; padding: 14px 24px; }
.nm-btn--lg { font-size: 16px; padding: 16px 32px; }
.nm-btn--block { display: flex; width: 100%; }

.nm-btn--primary   { background: var(--gm-raspberry); color: #fff; }
.nm-btn--primary:hover { background: var(--gm-raspberry-dark); }
.nm-btn--secondary { background: var(--gm-yellow); color: var(--gm-ink); }
.nm-btn--secondary:hover { filter: brightness(0.96); }
.nm-btn--dark      { background: var(--gm-grey-700); color: #fff; }
.nm-btn--dark:hover { background: var(--gm-ink); }
.nm-btn--outline   { background: transparent; color: var(--gm-ink); border-color: var(--gm-ink); }
.nm-btn--outline:hover { background: var(--gm-ink); color: #fff; }
.nm-btn--ghost     { background: transparent; color: var(--gm-raspberry); border-color: transparent; }
.nm-btn--ghost:hover { color: var(--gm-raspberry-dark); }

/* core/button style variations registered in functions.php */
.wp-block-button.is-style-secondary .wp-block-button__link { background: var(--gm-yellow); color: var(--gm-ink); }
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--gm-grey-700); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--gm-ink); border: 2px solid var(--gm-ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--gm-ink); color: #fff; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--gm-raspberry); }

/* --------------------------------------------------------------------------
   5. Tags / eyebrows  (DS Tag; also paragraph style variations)
   Oswald 600 11px uppercase .06em, padding 5/9, radius 2.
   -------------------------------------------------------------------------- */
.nm-tag,
.is-style-nm-tag-raspberry,
.is-style-nm-tag-yellow,
.is-style-nm-tag-ink,
.is-style-nm-tag-outline {
	display: inline-block;
	font-family: var(--gm-font-display);
	font-weight: 600;
	font-size: 11px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: var(--gm-ls-wide);
	padding: 5px 9px;
	border-radius: var(--gm-radius-sm);
}
.nm-tag--raspberry, .is-style-nm-tag-raspberry { background: var(--gm-raspberry); color: #fff; }
.nm-tag--yellow,    .is-style-nm-tag-yellow    { background: var(--gm-yellow); color: var(--gm-ink); }
.nm-tag--ink,       .is-style-nm-tag-ink       { background: var(--gm-ink); color: #fff; }
.nm-tag--soft       { background: var(--gm-raspberry-tint); color: var(--gm-raspberry-dark); }
.nm-tag--outline,   .is-style-nm-tag-outline   { background: transparent; color: var(--gm-ink); box-shadow: inset 0 0 0 1px var(--gm-grey-200); }

/* --------------------------------------------------------------------------
   6. HeadlineStrip  (raspberry Oswald on a yellow strip)
   -------------------------------------------------------------------------- */
.is-style-nm-headline-strip {
	display: inline;
	background: var(--gm-yellow);
	color: var(--gm-raspberry);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	padding: 0.05em 0.22em;
	text-transform: uppercase;
	line-height: 1.25;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.is-style-nm-card {
	background: #fff;
	border: 1px solid var(--gm-grey-200);
	border-radius: var(--gm-radius-md);
	box-shadow: var(--gm-shadow-card);
}

/* ArticleCard */
.nm-article-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--gm-grey-200);
	border-radius: var(--gm-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.nm-article-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gm-grey-050); }
.nm-article-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nm-article-card__tag { position: absolute; top: 12px; left: 12px; }
.nm-article-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nm-article-card__title { margin: 0; font-family: var(--gm-font-display); font-weight: 500; font-size: 20px; line-height: 1.15; color: var(--gm-grey-700); }
.nm-article-card__excerpt { font-size: 14.5px; line-height: 1.55; color: var(--gm-ink); font-weight: 300; }
.nm-article-card__more { margin-top: auto; font-family: var(--gm-font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); color: var(--gm-raspberry); }

/* OfferCard */
.nm-offer-card { position: relative; background: #fff; border: 1px solid var(--gm-grey-200); border-radius: var(--gm-radius-md); padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.nm-offer-card__logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--gm-radius-sm); background: var(--gm-yellow-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--gm-font-display); font-weight: 700; font-size: 22px; color: var(--gm-raspberry); }
.nm-offer-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.nm-offer-card__business { font-family: var(--gm-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); font-size: 13px; }
.nm-offer-card__offer { font-family: var(--gm-font-display); font-weight: 700; font-size: 20px; color: var(--gm-raspberry); line-height: 1.1; margin: 2px 0; }
.nm-offer-card__detail { font-size: 14px; color: var(--gm-grey-400); }

/* EventItem */
.nm-event-item { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gm-grey-200); text-decoration: none; color: inherit; }
.nm-event-item__date { width: 58px; flex-shrink: 0; text-align: center; background: var(--gm-raspberry); color: #fff; border-radius: var(--gm-radius-sm); padding: 8px 0; font-family: var(--gm-font-display); line-height: 1; }
.nm-event-item__day { font-size: 26px; font-weight: 700; }
.nm-event-item__month { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.nm-event-item__title { font-family: var(--gm-font-display); font-weight: 500; font-size: 18px; color: var(--gm-grey-700); }
.nm-event-item__meta { font-size: 13px; color: var(--gm-grey-400); margin-top: 2px; }
.nm-event-item__save { margin-left: auto; }

/* Save button (What's On "Stick on Fred") */
.nm-save-btn { font-family: var(--gm-font-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); padding: 8px 11px; border: 1px solid var(--gm-grey-200); border-radius: var(--gm-radius-sm); background: #fff; color: var(--gm-ink); cursor: pointer; transition: all var(--gm-dur) var(--gm-ease); }
.nm-save-btn[aria-pressed="true"] { background: var(--gm-raspberry); border-color: var(--gm-raspberry); color: #fff; }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.nm-field { display: block; font-family: var(--gm-font-body); margin-bottom: 16px; }
.nm-field__label { display: block; font-family: var(--gm-font-display); text-transform: uppercase; letter-spacing: var(--gm-ls-wide); font-size: 12px; font-weight: 600; color: var(--gm-ink); margin-bottom: 6px; }
.nm-input, .nm-select { width: 100%; box-sizing: border-box; background: var(--gm-grey-050); border: 1px solid var(--gm-grey-200); border-radius: var(--gm-radius-md); padding: 14px 16px; font-size: 14px; font-family: var(--gm-font-body); color: var(--gm-ink); outline: none; }
.nm-input:focus, .nm-select:focus { border-color: var(--gm-ink); }
.nm-field--error .nm-input { border-color: var(--gm-error); }
.nm-field__hint { display: block; margin-top: 6px; font-size: 12px; color: var(--gm-grey-400); }
.nm-field--error .nm-field__hint { color: var(--gm-error); }

/* --------------------------------------------------------------------------
   9. Alert
   -------------------------------------------------------------------------- */
.nm-alert { border-left: 4px solid; border-radius: var(--gm-radius-sm); padding: 14px 16px; font-family: var(--gm-font-body); }
.nm-alert__title { font-family: var(--gm-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); font-size: 13px; margin-bottom: 4px; }
.nm-alert--info { background: var(--gm-yellow-tint); border-color: var(--gm-yellow); color: var(--gm-ink); }
.nm-alert--success { background: #EAF5EE; border-color: var(--gm-success); color: #1E5B38; }
.nm-alert--error { background: #FBEAE8; border-color: var(--gm-error); color: #8E271C; }
.nm-alert--brand { background: var(--gm-raspberry-tint); border-color: var(--gm-raspberry); color: var(--gm-raspberry-dark); }

/* --------------------------------------------------------------------------
   10. EditorialStamp
   -------------------------------------------------------------------------- */
.nm-stamp { display: inline-block; border: 3px solid var(--gm-ink); padding: 6px 10px; transform: rotate(-2deg); background: #fff; font-family: var(--gm-font-display); font-weight: 700; text-transform: uppercase; line-height: 0.95; text-decoration: none; color: var(--gm-ink); }
.nm-stamp__line { display: block; font-size: 18px; letter-spacing: 0.02em; }
.nm-stamp__suffix { display: block; font-size: 10px; font-weight: 600; letter-spacing: var(--gm-ls-wider); color: var(--gm-raspberry); }

/* --------------------------------------------------------------------------
   11. Global header
   -------------------------------------------------------------------------- */
.nm-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px dashed var(--gm-grey-200); }
.nm-header__bar { max-width: var(--gm-container-max); margin-inline: auto; padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nm-header__brand { position: relative; }
.nm-header__brand .nm-magnet { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); }
.nm-header__right { display: flex; align-items: center; gap: 16px; }
.nm-search { width: 210px; max-width: 40vw; background: var(--gm-grey-050); border: 1px solid var(--gm-grey-200); border-radius: var(--gm-radius-sm); padding: 8px 12px; font-size: 13px; font-family: var(--gm-font-body); }
.nm-signin { font-family: var(--gm-font-display); font-weight: 600; font-size: 13px; letter-spacing: var(--gm-ls-wide); text-transform: uppercase; color: var(--gm-ink); text-decoration: none; }
.nm-signin:hover { color: var(--gm-raspberry); }
.nm-fridge-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gm-grey-200); border-radius: 999px; padding: 6px 12px; font-family: var(--gm-font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; white-space: nowrap; text-decoration: none; color: var(--gm-ink); }
.nm-fridge-pill:hover { border-color: var(--gm-raspberry); }
.nm-fridge-pill__dot { width: 8px; height: 8px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #ff85a5, #D92A5D 60%, #a81e46); }
.nm-header__nav { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 40px 12px; max-width: var(--gm-container-max); margin-inline: auto; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.nm-footer { position: relative; background: var(--gm-ink); color: #fff; margin-top: 64px; }
.nm-footer__magnets { position: absolute; top: -9px; left: 0; right: 0; display: flex; justify-content: center; gap: 64px; }
.nm-footer__grid { max-width: var(--gm-container-max); margin-inline: auto; padding: 56px 40px 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.nm-footer a { color: #fff; }
.nm-footer h2, .nm-footer h3 { color: #fff; font-size: 14px; letter-spacing: var(--gm-ls-wide); }
.nm-footer__legal { max-width: var(--gm-container-max); margin-inline: auto; padding: 16px 40px 40px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 12px; color: var(--gm-grey-400); }

/* --------------------------------------------------------------------------
   13. Magnets  (shared by Fred items, header, footer, cards)
   -------------------------------------------------------------------------- */
.nm-magnet { width: 18px; height: 18px; border-radius: 999px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.nm-magnet--raspberry { background: radial-gradient(circle at 35% 30%, #ff85a5, #D92A5D 60%, #a81e46); }
.nm-magnet--yellow { background: radial-gradient(circle at 35% 30%, #ffe9a0, #FFD866 60%, #dcae2e); }
.nm-magnet--ink { background: radial-gradient(circle at 35% 30%, #666, #222 60%, #000); }

/* --------------------------------------------------------------------------
   14. Fred (the fridge)  — desktop
   Door: full-bleed, 884px tall, radius 34. Inner canvas inset 48/44/88/40.
   Items are absolutely positioned on .nm-fred__canvas.
   -------------------------------------------------------------------------- */
.nm-fred__wrap { background: #fff; padding: 24px 0 8px; }
.nm-fred {
	position: relative;
	height: 884px;
	border-radius: 34px;
	margin-inline: auto;
	max-width: 1360px;
	overflow: hidden;
	background: var(--gm-door-raspberry);
	box-shadow: inset 0 6px 14px rgba(255,255,255,0.3), inset 0 -34px 66px rgba(0,0,0,0.22);
}
.nm-fred[data-colour="yellow"] { background: var(--gm-door-yellow); }
.nm-fred[data-colour="blue"]   { background: var(--gm-door-blue); }
.nm-fred[data-colour="green"]  { background: var(--gm-door-green); }

/* highlight strip + chrome handle */
.nm-fred__highlight { position: absolute; left: 74px; top: 0; width: 100px; height: 100%; background: rgba(255,255,255,0.18); filter: blur(6px); pointer-events: none; }
.nm-fred__handle { position: absolute; right: 30px; top: 130px; width: 16px; height: 626px; border-radius: 8px; background: linear-gradient(90deg, #b9bdc4, #f6f8fa, #a9adb4); pointer-events: none; }

.nm-fred__canvas { position: absolute; left: 48px; top: 44px; right: 88px; bottom: 40px; }
.nm-fred__item { position: absolute; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28)); transition: transform var(--gm-dur-fridge) var(--gm-ease), filter var(--gm-dur-fridge) var(--gm-ease); }
.nm-fred__item:hover { transform: rotate(0deg) translateY(-5px); filter: drop-shadow(0 16px 26px rgba(0,0,0,0.34)); z-index: 6; }
.nm-fred__item > .nm-magnet { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); }

/* Magnet letters */
.nm-fred__letters { position: absolute; left: 0; top: 0; display: flex; gap: 6px; }
.nm-fred__letter { width: 62px; height: 62px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--gm-font-display); font-weight: 700; font-size: 36px; color: #fff; box-shadow: 0 6px 10px rgba(0,0,0,0.25); transition: transform var(--gm-dur-fridge) var(--gm-ease); }
.nm-fred__letter:hover { transform: rotate(0) scale(1.12); }
.nm-fred__letter:nth-child(6n+1) { background: var(--gm-raspberry); }
.nm-fred__letter:nth-child(6n+2) { background: var(--gm-yellow); color: var(--gm-ink); }
.nm-fred__letter:nth-child(6n+3) { background: var(--gm-ink); }
.nm-fred__letter:nth-child(6n+4) { background: #fff; color: var(--gm-ink); }
.nm-fred__letter:nth-child(6n+5) { background: var(--wp--preset--color--door-green); }
.nm-fred__letter:nth-child(6n+6) { background: var(--wp--preset--color--door-blue); }

/* Paper items */
.nm-paper { background: #fff; padding: 20px; border-radius: 2px; box-shadow: var(--gm-shadow-md); }
.nm-postit { width: 150px; min-height: 126px; padding: 14px; border-radius: 2px; box-shadow: 0 8px 14px rgba(0,0,0,0.2); font-family: var(--gm-font-body); }
.nm-postit--yellow { background: linear-gradient(160deg, #ffe07a, #FFD866); }
.nm-postit--pink   { background: linear-gradient(160deg, #ffd6e2, #f9bcd0); }
.nm-postit--white  { background: repeating-linear-gradient(#fff, #fff 23px, #eef0fb 24px); }
.nm-postit__rel { font-family: var(--gm-font-display); font-weight: 600; font-size: 11px; color: var(--gm-raspberry); text-transform: uppercase; letter-spacing: var(--gm-ls-wide); }
.nm-postit__title { font-family: var(--gm-font-display); font-weight: 600; font-size: 16px; margin: 4px 0; }
.nm-postit__venue { font-size: 12px; position: absolute; bottom: 12px; }
.nm-postit__remove { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }

/* Calendar */
.nm-cal { width: 150px; background: #fff; border-radius: 2px; box-shadow: var(--gm-shadow-md); overflow: hidden; text-align: center; }
.nm-cal__head { background: var(--gm-ink); color: #fff; font-family: var(--gm-font-display); font-size: 12px; letter-spacing: var(--gm-ls-wide); padding: 6px; text-transform: uppercase; }
.nm-cal__date { font-family: var(--gm-font-display); font-weight: 700; font-size: 48px; color: var(--gm-raspberry); line-height: 1.1; padding-top: 6px; }
.nm-cal__weekday { font-family: var(--gm-font-display); text-transform: uppercase; font-size: 13px; letter-spacing: var(--gm-ls-wide); padding-bottom: 10px; }

/* Flyer */
.nm-flyer { width: 452px; background: #fff; padding: 28px; border-radius: 2px; box-shadow: var(--gm-shadow-lg); }
.nm-flyer__h1 { font-family: var(--gm-font-display); font-weight: 700; font-size: 46px; color: var(--gm-ink); line-height: 1.02; margin: 8px 0 0; text-transform: uppercase; }
.nm-flyer__h2 { font-family: var(--gm-font-display); font-weight: 700; font-size: 46px; color: var(--gm-raspberry); background: var(--gm-yellow); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0.02em 0.18em; text-transform: uppercase; }
.nm-flyer__body { font-weight: 300; font-size: 16.5px; line-height: 1.5; margin: 12px 0 16px; }
.nm-flyer__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* "Coming up this week" list */
.nm-week { width: 276px; background: #fff; border-radius: 2px; box-shadow: var(--gm-shadow-md); overflow: hidden; }
.nm-week__head { background: var(--gm-raspberry); color: #fff; font-family: var(--gm-font-display); font-weight: 600; font-size: 14px; letter-spacing: var(--gm-ls-wide); text-transform: uppercase; padding: 8px 12px; }
.nm-week__row { display: flex; align-items: center; gap: 8px; height: 29px; padding: 0 12px; border-bottom: 1px solid #eef0fb; text-decoration: none; color: inherit; }
.nm-week__check { width: 16px; height: 16px; border: 1px solid var(--gm-grey-200); border-radius: 3px; flex-shrink: 0; }
.nm-week__check.is-saved { background: var(--gm-raspberry); border-color: var(--gm-raspberry); }
.nm-week__rel { width: 58px; flex-shrink: 0; font-family: var(--gm-font-display); font-weight: 600; font-size: 11px; color: var(--gm-raspberry); text-transform: uppercase; }
.nm-week__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* MumsCard */
.nm-mumscard { width: 252px; height: 150px; border-radius: 11px; background: linear-gradient(135deg, #e8558a, #D92A5D 60%, #b01f4a); color: #fff; padding: 16px; box-shadow: var(--gm-shadow-lg); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }

/* Paint swatch card */
.nm-paint { width: 110px; background: #fff; padding: 10px; border-radius: 2px; box-shadow: var(--gm-shadow-md); }
.nm-paint__label { font-family: var(--gm-font-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); margin-bottom: 6px; display: block; }
.nm-paint__swatch { display: block; width: 100%; height: 40px; border: 0; border-radius: 2px; cursor: pointer; margin-bottom: 6px; }
.nm-paint__swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #222; }
.nm-paint__swatch--raspberry { background: var(--gm-raspberry); }
.nm-paint__swatch--yellow { background: var(--gm-yellow); }
.nm-paint__swatch--blue { background: var(--wp--preset--color--door-blue); }
.nm-paint__swatch--green { background: var(--wp--preset--color--door-green); }

/* Nameplate */
.nm-nameplate { display: inline-flex; flex-direction: column; background: linear-gradient(90deg, #b9bdc4, #f6f8fa, #a9adb4); padding: 8px 14px; border-radius: 4px; box-shadow: var(--gm-shadow-sm); }
.nm-nameplate__name { font-family: var(--gm-font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.nm-nameplate__sub { font-size: 10px; color: var(--gm-grey-700); }

/* --------------------------------------------------------------------------
   15. Sign-in modal
   -------------------------------------------------------------------------- */
.nm-modal { position: fixed; inset: 0; background: rgba(34,34,34,0.6); overflow-y: auto; z-index: 100; display: none; }
.nm-modal.is-open { display: block; }
.nm-modal__card { position: relative; max-width: 420px; margin: 8vh auto 40px; background: #fff; border-radius: var(--gm-radius-md); padding: 32px 30px 26px; transform: rotate(-1deg); box-shadow: var(--gm-shadow-lg); }
.nm-modal__magnet { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; }
.nm-modal__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 22px; cursor: pointer; line-height: 1; }
.nm-modal__title { font-family: var(--gm-font-display); font-weight: 700; font-size: 34px; text-transform: uppercase; line-height: 1.05; margin: 8px 0; }
.nm-modal__divider { display: flex; align-items: center; gap: 10px; color: var(--gm-grey-400); font-size: 12px; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); margin: 16px 0; }
.nm-modal__divider::before, .nm-modal__divider::after { content: ""; flex: 1; height: 1px; background: var(--gm-grey-200); }

/* --------------------------------------------------------------------------
   16. Page sections (hero bands, grids)
   -------------------------------------------------------------------------- */
.nm-hero { padding: 56px 0; }
.nm-hero--yellow { background: var(--gm-yellow-tint); border-bottom: 3px solid var(--gm-yellow); }
.nm-hero--raspberry { background: var(--gm-raspberry); color: #fff; }
.nm-hero--white { background: #fff; }
.nm-hero--ink { background: var(--gm-ink); color: #fff; }

.nm-grid { display: grid; gap: 24px; }
.nm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.nm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nm-grid--2 { grid-template-columns: repeat(2, 1fr); }

.nm-section-head { display: flex; align-items: baseline; gap: 16px; }
.nm-section-head h2 { font-family: var(--gm-font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; }
.nm-section-head::after { content: ""; display: block; height: 3px; flex: 1; background: var(--gm-yellow); }

/* MumsCard band */
.nm-mumscard-band { background: var(--gm-raspberry); color: #fff; padding: 48px 0; }
.nm-mumscard-band h2 { color: var(--gm-yellow); }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
/* Right-hand post-its show only at >=1360px */
.nm-fred__postit-right { display: none; }
@media (min-width: 1360px) {
	.nm-fred__postit-right { display: block; }
}

@media (max-width: 1024px) {
	.nm-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.nm-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
	:root { --gm-container-pad: 16px; }
	.nm-grid--4, .nm-grid--3, .nm-grid--2 { grid-template-columns: 1fr; }
	.nm-footer__grid { grid-template-columns: 1fr; }
	.nm-header__nav { display: none; } /* replaced by bottom bar on mobile */
	/* Mobile Fred: "the screen is the door" — single column inside a 10px white margin */
	.nm-fred { position: static; height: auto; max-width: none; margin: 10px; border-radius: 28px; padding: 16px 30px 24px 16px; }
	.nm-fred__canvas { position: static; }
	.nm-fred__item { position: static !important; filter: none; margin-bottom: 16px; transform: none !important; }
	.nm-fred__handle { width: 11px; height: 300px; }
	.nm-fred__highlight { width: 40px; }
	.nm-flyer, .nm-week, .nm-mumscard, .nm-paper, .nm-cal { width: 100%; max-width: 100%; }
}

/* Mobile bottom bar (declared here; markup rendered by the header part on mobile) */
.nm-bottombar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--gm-grey-200); padding: 8px 0 22px; justify-content: space-around; }
@media (max-width: 767px) { .nm-bottombar { display: flex; } }
.nm-bottombar__item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--gm-font-display); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gm-ink); text-decoration: none; }
.nm-bottombar__item[aria-current="page"] { color: var(--gm-raspberry); }

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.nm-fred__item:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   19. Core Query Loop cards (Read this week, sections, search)
   Style core blocks so the default loop reads like the DS ArticleCard.
   -------------------------------------------------------------------------- */
.nm-posts-grid .wp-block-post {
	background: #fff;
	border: 1px solid var(--gm-grey-200);
	border-radius: var(--gm-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.nm-posts-grid .wp-block-post-featured-image { margin: 0; }
.nm-posts-grid .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.nm-posts-grid .wp-block-post-terms { padding: 14px 16px 0; font-family: var(--gm-font-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); }
.nm-posts-grid .wp-block-post-terms a { color: var(--gm-raspberry); }
.nm-posts-grid .wp-block-post-title { padding: 6px 16px 0; font-weight: 500; line-height: 1.15; }
.nm-posts-grid .wp-block-post-excerpt { padding: 6px 16px 16px; font-size: 14.5px; font-weight: 300; }
.nm-posts-grid .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 6px; font-family: var(--gm-font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: var(--gm-ls-wide); }

/* Join page two-column collapses on mobile */
@media (max-width: 767px) { .nm-join { grid-template-columns: 1fr !important; } }

/* Visually-hidden utility (a11y) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
