/* ==========================================================================
   Morningside components
   Organic DS primitives (.btn .tag .input .card .washed) rebuilt from the
   mockups' inline styles, recolored with brand tokens, plus 1b sections.
   ========================================================================== */

html { background: var(--m-oat); }
body {
	background-color: var(--m-oat);
	color: var(--m-forest);
	-webkit-font-smoothing: antialiased;
	transition: background-color .6s, color .6s;
}
[data-mode="offline"] body {
	background-image: radial-gradient(ellipse 70% 40% at 30% 0%, rgba(224,140,70,.22), transparent 70%);
	background-repeat: no-repeat;
}

/* Focus: 2px Terracotta ring, everywhere ---------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--ms-focus);
	outline-offset: 3px;
	border-radius: 6px;
}
.btn:focus-visible, .wp-element-button:focus-visible, .ms-offline:focus-visible { border-radius: var(--radius-pill); }

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

/* Kicker ------------------------------------------------------------------ */
.ms-kicker, .is-style-kicker {
	font: 700 12px/1.3 var(--font-body);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--m-terra-text);
}

/* Buttons (Organic .btn) -------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 14px 26px;
	border-radius: var(--radius-pill); border: 0;
	font: 700 16px/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--m-mustard); color: var(--m-forest-fixed); }
.btn-primary:hover { background: #C4A65C; color: var(--m-forest-fixed); }
.btn-forest { background: var(--m-forest); color: var(--m-oat); }
.btn-forest:hover { background: var(--m-terra); color: var(--m-oat-fixed); }
.btn-secondary { background: transparent; color: var(--m-forest); box-shadow: inset 0 0 0 1.5px var(--m-forest); }
.btn-secondary:hover { background: var(--m-forest); color: var(--m-oat); }
.btn-ghost { background: transparent; color: var(--m-terra-text); padding-inline: 4px; }
.btn-ghost:hover { color: var(--m-forest); text-decoration: underline; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* core/button block styles map to the same pills */
.wp-block-button .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }
.wp-block-button.is-style-forest-pill .wp-block-button__link { background: var(--m-forest); color: var(--m-oat); }
.wp-block-button.is-style-forest-pill .wp-block-button__link:hover { background: var(--m-terra); color: var(--m-oat-fixed); }
.wp-block-button.is-style-outline-pill .wp-block-button__link { background: transparent; color: var(--m-forest); box-shadow: inset 0 0 0 1.5px var(--m-forest); }
.wp-block-button.is-style-outline-pill .wp-block-button__link:hover { background: var(--m-forest); color: var(--m-oat); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--m-terra-text); padding-inline: 4px; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { color: var(--m-forest); text-decoration: underline; }

/* Tags (Organic .tag) ----------------------------------------------------- */
.tag {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 14px; border-radius: var(--radius-pill);
	font: 700 13px/1.3 var(--font-body); white-space: nowrap;
	background: var(--m-surface); color: var(--m-forest);
}
.tag--mustard { background: var(--m-mustard); color: var(--m-forest-fixed); }
.tag--oat { background: var(--m-oat); color: var(--m-forest); }
.tag--line { background: transparent; box-shadow: inset 0 0 0 1px var(--m-line); }
.tag--gone { background: var(--m-forest); color: var(--m-oat); }

/* Inputs (Organic .input) ------------------------------------------------- */
.input,
.wp-block-search__input,
.wc-block-components-text-input input,
input[type="email"], input[type="text"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
	min-height: 46px; width: 100%; box-sizing: border-box;
	padding: 10px 20px; border-radius: var(--radius-pill);
	border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-forest);
	font: 400 15px/1.3 var(--font-body);
}
textarea { border-radius: 24px; }
::placeholder { color: color-mix(in srgb, var(--m-forest) 65%, transparent); }

/* Cards (Organic .card) --------------------------------------------------- */
.card, .is-style-ms-card {
	display: flex; flex-direction: column; gap: 10px;
	background: var(--m-surface); color: var(--m-forest);
	border-radius: 32px; padding: 28px;
}

/* Photography -------------------------------------------------------------- */
.washed img, img.washed, .washed > .ms-photo, .washed.ms-photo,
.washed .wp-block-cover__image-background, .washed video {
	filter: var(--ms-wash);
	transition: filter .6s;
}
.ms-photo { position: relative; background: var(--m-photo); overflow: hidden; }
.ms-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-photo--empty::after {
	content: attr(data-placeholder);
	position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
	font: 600 13px/1.4 var(--font-body); color: color-mix(in srgb, var(--m-forest) 60%, transparent);
	border: 2px dashed var(--m-line); border-radius: inherit;
}
.is-style-grain, .ms-grain { position: relative; }
.is-style-grain::after, .ms-grain::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
	background-image: url("../img/grain.png"); background-size: 128px 128px;
	mix-blend-mode: overlay; opacity: .35; border-radius: inherit;
}

/* ==========================================================================
   Header (oat) + Outpost header (forest panel)
   ========================================================================== */
.ms-header { padding-inline: var(--wp--custom--gutter); position: sticky; top: 0; z-index: 50; background: var(--m-oat); border-bottom: 1px solid var(--m-line); }
.admin-bar .ms-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ms-header { top: 46px; } }
.ms-header__row { display: flex; align-items: center; gap: 32px; padding-block: 22px; max-width: 1280px; margin-inline: auto; }
.ms-wordmark { display: flex; align-items: baseline; gap: 10px; margin: 0; text-decoration: none; }
.ms-wordmark .wp-block-site-title, .ms-wordmark .wp-block-site-title a {
	font: 400 28px/1 var(--font-heading); color: var(--m-forest); text-decoration: none; margin: 0;
}
.ms-wordmark__kicker { font: 700 10px var(--font-body); letter-spacing: .2em; color: var(--m-terra-text); margin: 0; }
.ms-header .wp-block-navigation { flex: 1; gap: 32px; }
.ms-header .wp-block-navigation a { text-decoration: none; }
.ms-header__tools { display: flex; align-items: center; gap: 20px; margin-left: auto !important; }

.ms-outpost-head { background: var(--m-panel); color: var(--m-on-panel); position: relative; border-bottom: 0; }
.ms-outpost-head .ms-header__row { padding-block: 24px; }
.ms-outpost-head .wp-block-site-title, .ms-outpost-head .wp-block-site-title a { color: var(--m-mustard); }
.ms-outpost-head a:where(:not(.btn)) { color: var(--m-on-panel); }
.ms-outpost-head a:where(:not(.btn)):hover { color: var(--m-mustard); }
.ms-outpost-head .ms-offline { border-color: rgba(244,241,234,.3); }
.ms-outpost-head .ms-offline__track { background: rgba(244,241,234,.25); }
.ms-outpost-head .ms-offline__knob { background: var(--m-on-panel); }

/* Mobile nav overlay + 44px targets */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
}
.wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--m-oat) !important; color: var(--m-forest) !important; padding: 24px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font: 400 34px/1.2 var(--font-heading); color: var(--m-forest) !important; padding-block: 6px;
}

@media (max-width: 781px) {
	.ms-header__row { gap: 8px; padding-block: 12px; }
	.ms-header .wp-block-navigation { flex: 0 0 auto; order: 3; }
	.ms-header__tools { gap: 8px; }
	.ms-wordmark { margin-right: auto !important; }
	.ms-wordmark .wp-block-site-title, .ms-wordmark .wp-block-site-title a { font-size: 23px; }
	.ms-wordmark__kicker { display: none; }
}

/* Offline Mode switch ------------------------------------------------------ */
.ms-offline {
	display: inline-flex; align-items: center; gap: 8px;
	background: transparent; color: inherit; cursor: pointer;
	border: 1px solid var(--m-line); border-radius: var(--radius-pill);
	padding: 6px 10px 6px 12px; min-height: 32px;
	font: 600 13px var(--font-body);
}
.ms-offline svg { width: 15px; height: 15px; flex: none; }
.ms-offline__track { width: 28px; height: 16px; border-radius: 999px; background: var(--m-line); position: relative; display: inline-block; flex: none; }
.ms-offline__knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--m-forest); transition: transform .3s; }
[data-mode="offline"] .ms-offline__knob { transform: translateX(12px); background: #E4C47C !important; box-shadow: 0 0 10px #E4C47C; }
@media (max-width: 781px) {
	.ms-offline { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
	.ms-offline svg { width: 18px; height: 18px; }
	.ms-offline__label, .ms-offline__track { display: none; }
	[data-mode="offline"] .ms-offline { color: #E4C47C; box-shadow: 0 0 12px rgba(228,196,124,.45); }
}

/* Bag link */
.ms-bag { font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.ms-bag svg { width: 20px; height: 20px; display: none; }
@media (max-width: 781px) {
	.ms-bag { width: 44px; justify-content: center; position: relative; }
	.ms-bag svg { display: block; }
	.ms-bag__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
	.ms-bag__dot { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--m-mustard); color: var(--m-forest-fixed); font: 700 10px/16px var(--font-body); text-align: center; }
	.ms-bag__dot[data-count="0"] { display: none; }
}
@media (min-width: 782px) { .ms-bag__dot { display: none; } }

/* ==========================================================================
   Merit badge
   ========================================================================== */
.ms-badge { display: inline-block; width: var(--ms-badge-size, 120px); height: var(--ms-badge-size, 120px); min-width: 64px; min-height: 64px; flex: none; transform: rotate(var(--ms-rot, 0deg)); line-height: 0; }
.ms-badge svg { display: block; width: 100%; height: 100%; overflow: visible; }
a.ms-badge { transition: transform .3s; }
a.ms-badge:hover { transform: rotate(calc(var(--ms-rot, 0deg) + 8deg)) scale(1.04); }

/* ==========================================================================
   1b hero: forest panel + drop ticket
   ========================================================================== */
.ms-hero-panel {
	background: var(--m-panel); color: var(--m-on-panel);
	border-radius: 0 0 var(--radius-panel) var(--radius-panel);
	padding: 56px var(--wp--custom--gutter) 96px !important;
	margin-top: 0 !important;
}
.ms-hero-panel__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; max-width: 1168px; margin-inline: auto; }
.ms-hero-panel h1 {
	font-size: var(--wp--preset--font-size--display); line-height: 1; letter-spacing: -.02em;
	margin: 0 0 24px; color: var(--m-on-panel); text-wrap: balance;
}
.ms-hero-panel h1 mark, .ms-hero-panel .ms-hl { background: none; color: var(--m-mustard); }
.ms-hero-panel__copy p { font-size: var(--wp--preset--font-size--lead); max-width: 500px; margin: 0; }
@media (max-width: 781px) {
	/* Mobile (mockup 390): the forest moves onto the copy column so the ticket
	   can straddle the panel's bottom edge by 56px without knowing its height. */
	.ms-hero-panel { background: transparent; color: var(--m-forest); padding: 0 !important; border-radius: 0; }
	.ms-hero-panel__grid { grid-template-columns: 1fr; gap: 0; }
	.ms-hero-panel__copy {
		background: var(--m-panel); color: var(--m-on-panel);
		padding: 24px var(--wp--custom--gutter) 84px;
		border-radius: 0 0 40px 40px;
	}
	.ms-hero-panel h1 { font-size: 46px; margin-bottom: 14px; }
	.ms-hero-panel__copy p { font-size: 15px; }
	.ms-hero-panel .ms-ticket { margin: -56px var(--wp--custom--gutter) 0; position: relative; }
}

.ms-ticket {
	position: relative; background: var(--m-oat); color: var(--m-forest);
	border-radius: 28px; padding: 28px 30px;
	display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
	transform: rotate(2deg); box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.ms-ticket::before, .ms-ticket::after {
	content: ""; position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px;
	border-radius: 50%; background: var(--m-panel);
}
.ms-ticket::before { left: -14px; }
.ms-ticket::after { right: -14px; }
.ms-ticket__title { font: 400 30px/1.1 var(--font-heading); margin: 8px 0 6px; }
.ms-ticket__meta { font-size: 15px; margin: 0; }
.ms-ticket__form { grid-column: 1 / -1; border-top: 2px dashed var(--m-line); padding-top: 18px; display: flex; gap: 10px; }
.ms-ticket__form .input { background: var(--m-surface); }
.ms-ticket__form .btn { padding: 0 20px; font-size: 15px; min-height: 46px; }
.ms-ticket__msg { grid-column: 1 / -1; margin: -6px 0 0; font-size: 14px; font-weight: 600; }
.ms-ticket__msg:empty { display: none; }
@media (max-width: 781px) {
	.ms-ticket { transform: none; border-radius: 24px; padding: 20px 22px; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
	.ms-ticket::before, .ms-ticket::after { display: none; }
	.ms-ticket .ms-kicker { font-size: 11px; }
	.ms-ticket__title { font-size: 22px; margin: 6px 0 4px; }
	.ms-ticket__meta { font-size: 13px; }
	.ms-ticket .ms-badge { --ms-badge-size: 72px !important; }
	.ms-ticket__form { border-top: 0; padding-top: 0; flex-direction: column; }
	.ms-ticket__form .btn { min-height: 48px; width: 100%; }
}

/* ==========================================================================
   Category row (badges as nav)
   ========================================================================== */
.ms-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1168px; margin: -64px auto 0 !important; position: relative; z-index: 2; }
.ms-cat {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
	text-decoration: none; color: inherit; background: var(--m-oat);
	border-radius: 40px; padding: 28px 28px 32px;
	box-shadow: 0 8px 24px rgba(44,76,59,.12);
	transition: transform .3s;
}
.ms-cat:hover { transform: translateY(-4px); color: inherit; }
.ms-cat__title { font: 400 34px/1.1 var(--font-heading); }
.ms-cat__text { margin: 0; font-size: 15px; max-width: 280px; }
.ms-cat__title, .ms-cat__short { display: block; }
.ms-cat__short { display: none; }
@media (max-width: 781px) {
	.ms-cats { grid-template-columns: 1fr; gap: 12px; margin-top: 32px !important; }
	.ms-cat { flex-direction: row; text-align: left; gap: 16px; border-radius: 999px; padding: 10px 22px 10px 10px; background: var(--m-surface); box-shadow: none; }
	.ms-cat .ms-badge { --ms-badge-size: 76px !important; --ms-rot: 0deg !important; }
	.ms-cat__title { font-size: 22px; }
	.ms-cat__text { display: none; }
	.ms-cat__short { display: block; font-size: 13px; }
}

/* ==========================================================================
   Fresh at the outpost (bento)
   ========================================================================== */
.ms-section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.ms-section-head h2 { font-size: var(--wp--preset--font-size--section); margin: 0; line-height: 1.05; }
.ms-section-head a { margin-left: auto; font-weight: 700; }
.ms-bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 20px; }
.ms-bento__cell { position: relative; display: block; border-radius: 32px; overflow: hidden; text-decoration: none; color: var(--m-forest); }
.ms-bento__cell:nth-child(1) { grid-row: 1 / 3; }
.ms-bento__cell:nth-child(4) { grid-column: 2 / 4; }
.ms-bento__cell .ms-photo { position: absolute; inset: 0; }
.ms-bento__label {
	position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3;
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	background: var(--m-oat); color: var(--m-forest); border-radius: 999px; padding: 10px 12px 10px 20px;
}
.ms-bento__name { font: 400 17px/1.2 var(--font-heading); }
.ms-price { font-weight: 700; font-size: 14px; background: var(--m-mustard); color: var(--m-forest-fixed); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.ms-bento__cell:hover .ms-photo img { transform: scale(1.03); }
.ms-bento__cell .ms-photo img { transition: transform .6s, filter .6s; }
@media (max-width: 781px) {
	.ms-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 200px 200px; gap: 12px; }
	.ms-bento__cell:nth-child(1) { grid-row: auto; grid-column: 1 / 3; }
	.ms-bento__cell:nth-child(4) { grid-column: 1 / 3; }
	.ms-bento__cell { border-radius: 24px; }
	.ms-bento__label { left: 10px; right: 10px; bottom: 10px; padding: 8px 8px 8px 14px; }
	.ms-bento__name { font-size: 15px; }
}

/* ==========================================================================
   Trail of the month (Denim panel)
   ========================================================================== */
.ms-trail {
	border-radius: 40px; background: var(--m-denim-panel); color: var(--m-on-denim);
	display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
	max-width: 1216px; margin-inline: auto;
}
.ms-trail__body { padding: 56px; display: flex; flex-direction: column; gap: 18px; }
.ms-trail .ms-kicker { color: var(--m-on-denim); }
.ms-trail__title { font: 400 52px/1.02 var(--font-heading); margin: 0; color: var(--m-on-denim); }
.ms-trail__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.ms-trail__tags .tag { background: rgba(244,241,234,.18); color: var(--m-on-denim); font-size: 13px; font-weight: 600; }
.ms-trail__text { margin: 0; font-size: 17px; max-width: 420px; }
.ms-trail .btn { align-self: flex-start; background: var(--m-oat-fixed); color: var(--m-forest-fixed); font-size: 15px; padding: 13px 24px; }
.ms-trail .btn:hover { background: var(--m-mustard); }
.ms-trail__media { position: relative; background: #5A6F84; min-height: 360px; }
.ms-trail__media .ms-photo { position: absolute; inset: 0; background: transparent; }
@media (max-width: 781px) {
	.ms-trail { grid-template-columns: 1fr; border-radius: 28px; }
	.ms-trail__body { padding: 24px; gap: 10px; }
	.ms-trail__title { font-size: 26px; line-height: 1.05; }
	.ms-trail__tags .tag { padding: 0; background: none; font-size: 14px; font-weight: 400; }
	.ms-trail__tags .tag + .tag::before { content: "·"; margin-right: 6px; }
	.ms-trail__tags { gap: 6px; }
	.ms-trail__text, .ms-trail .btn, .ms-trail__media { display: none; }
}

/* ==========================================================================
   Stays: postcards
   ========================================================================== */
.ms-stays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ms-postcard {
	display: flex; flex-direction: column; text-decoration: none; color: var(--m-forest);
	background: var(--m-surface); border-radius: 20px; padding: 12px 12px 14px;
	box-shadow: 0 6px 18px rgba(44,76,59,.12);
	transform: rotate(var(--ms-tilt, 0deg)); transition: transform .3s;
}
.ms-postcard:hover { transform: rotate(0deg) translateY(-4px); color: var(--m-forest); }
.ms-postcard .ms-photo { height: 220px; border-radius: 12px; }
.ms-postcard__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 16px 6px 4px; }
.ms-postcard__name, .ms-postcard__where { display: block; }
.ms-postcard__name { font: 400 20px/1.15 var(--font-heading); }
.ms-postcard__where { font-size: 13px; margin-top: 4px; }
.ms-postcard__via { font-weight: 700; font-size: 13px; color: var(--m-terra-text-2); white-space: nowrap; }
@media (max-width: 781px) {
	.ms-stays { grid-template-columns: 1fr; gap: 20px; }
	.ms-postcard__foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Trading Post drop grid
   ========================================================================== */
.ms-drop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ms-cols, 4), 1fr); gap: 24px; }
.ms-drop-card { display: flex; flex-direction: column; gap: 10px; color: var(--m-forest); text-decoration: none; }
.ms-drop-card .ms-photo { aspect-ratio: 4 / 5; border-radius: 28px; }
.ms-drop-card__link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.ms-photo-wrap { position: relative; display: block; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.ms-drop-status__remind { flex: 1 1 320px; }
.ms-drop-status__remind .ms-slowmail__form { max-width: 440px; }
.ms-drop-card__tags { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; gap: 6px; }
.ms-drop-card__name { font: 400 22px/1.2 var(--font-heading); margin: 4px 0 0; }
.ms-drop-card__era { font-size: 14px; margin: 0; }
.ms-drop-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-drop-card.is-gone .ms-photo img { opacity: .55; }
.ms-drop-card.is-gone .ms-drop-card__name { text-decoration: line-through; text-decoration-color: var(--m-terra); }
.ms-drop-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }
@media (max-width: 1024px) { .ms-drop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ms-drop-grid { gap: 14px; } .ms-drop-card__name { font-size: 18px; } }

/* Announcement bar */
.ms-announce { background: var(--m-panel); color: var(--m-on-panel); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 9px 20px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-align: center; }
.ms-announce a { color: var(--m-mustard); }

/* ==========================================================================
   Packing List (flat-lay + hotspots)
   ========================================================================== */
.ms-pack { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.ms-pack__media { position: relative; aspect-ratio: 1; border-radius: 40px; overflow: hidden; }
.ms-pack__media .ms-photo { position: absolute; inset: 0; }
.ms-pack__dot {
	position: absolute; z-index: 3; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
	display: grid; place-items: center; font-weight: 700; font-size: 15px;
	background: var(--m-oat-fixed); color: var(--m-forest-fixed); pointer-events: none;
	transition: transform .25s, background .25s, box-shadow .25s;
}
.ms-pack__dot.is-on { background: #D4B872; transform: scale(1.35); box-shadow: 0 0 0 8px rgba(212,184,114,.35); }
.ms-pack__list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ms-pack__row {
	display: grid; grid-template-columns: 30px 1fr auto 72px; gap: 14px; align-items: center;
	padding: 12px 16px; border-radius: 999px; color: inherit; text-decoration: none; min-height: 44px;
	transition: background .2s;
}
.ms-pack__row.is-on, .ms-pack__row:hover, .ms-pack__row:focus-visible { background: var(--m-surface); color: inherit; }
.ms-pack__n { font: 400 20px var(--font-heading); color: var(--m-terra-text); }
.ms-pack__name { font-weight: 600; }
.ms-pack__price { font-weight: 700; }
.ms-pack__tag { justify-self: end; }
@media (max-width: 781px) {
	.ms-pack { grid-template-columns: 1fr; gap: 24px; }
	.ms-pack__media { border-radius: 28px; }
	.ms-pack__row { grid-template-columns: 26px 1fr auto; }
	.ms-pack__tag { display: none; }
}

/* ==========================================================================
   Slow mail
   ========================================================================== */
.ms-slowmail { display: flex; flex-direction: column; gap: 14px; }
.ms-slowmail--panel { background: var(--m-panel); color: var(--m-on-panel); border-radius: 40px; padding: clamp(28px, 5vw, 56px); }
.ms-slowmail--panel .ms-slowmail__title { color: var(--m-mustard); }
.ms-slowmail__title { font: 400 var(--wp--preset--font-size--heading)/1.1 var(--font-heading); margin: 0; }
.ms-slowmail__text { margin: 0; max-width: 520px; }
.ms-slowmail__form { display: flex; gap: 10px; max-width: 520px; }
.ms-slowmail--panel .input { background: var(--m-oat); }
.ms-slowmail__msg { margin: 0; font-weight: 600; font-size: 14px; }
.ms-slowmail__msg:empty { display: none; }
.ms-hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 480px) { .ms-slowmail__form, .ms-ticket__form { flex-direction: column; } .ms-slowmail__form .btn { width: 100%; min-height: 48px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.ms-footer { background: var(--m-panel); color: var(--m-on-panel); border-radius: var(--radius-panel) var(--radius-panel) 0 0; padding: 48px var(--wp--custom--gutter) 32px !important; margin-top: 0 !important; }
.ms-footer a { color: inherit; }
.ms-footer a:hover { color: var(--m-mustard); }
.ms-footer__main { display: flex; align-items: center; gap: 28px; font-size: 14px; flex-wrap: wrap; max-width: 1168px; margin-inline: auto; }
.ms-footer__brand { font: 400 30px var(--font-heading); color: var(--m-mustard); margin: 0; }
.ms-footer__links { margin-left: auto; display: flex; gap: 28px; flex-wrap: wrap; }
.ms-footer__links a { min-height: 44px; display: inline-flex; align-items: center; }
.ms-footer__fine { max-width: 1168px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(244,241,234,.18); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ms-footer__fine p { margin: 0; }
@media (max-width: 781px) {
	.ms-footer { border-radius: 40px 40px 0 0; padding: 36px 24px 28px !important; }
	.ms-footer__main { flex-direction: column; align-items: flex-start; gap: 12px; }
	.ms-footer__links { margin-left: 0; gap: 4px 20px; }
}

/* ==========================================================================
   Journal / posts / archives
   ========================================================================== */
.ms-post-card { display: flex; flex-direction: column; gap: 10px; }
.ms-post-card .wp-block-post-featured-image { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 28px; margin: 0; }
.ms-post-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
.ms-post-card .wp-block-post-title { font-size: 22px; margin: 0; }
.ms-post-card .wp-block-post-title a { text-decoration: none; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 999px; }
.wp-block-query-pagination .current { background: var(--m-forest); color: var(--m-oat); }
.entry-content > * + * { margin-block-start: 1.2em; }
.entry-content a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.wp-block-separator { border-color: var(--m-line); }
.wp-block-quote { border-left: 0; padding: 0; }
.wp-block-table table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--m-line); border-radius: 20px; overflow: hidden; }
.wp-block-table td, .wp-block-table th { border-color: var(--m-line); padding: 12px 16px; }
.wp-block-table thead { background: var(--m-surface); border-bottom: 0; }

/* AffiliateX blocks inside existing Journal posts: pull them onto tokens. */
.affx-btn-inner .affiliatex-button, .affiliatex-button {
	border-radius: 999px !important; background: var(--m-mustard) !important; color: var(--m-forest-fixed) !important;
	font-family: var(--font-body) !important; font-weight: 700 !important;
}
[class*="affiliatex"] :where(h2, h3, h4) { font-family: var(--font-heading) !important; font-weight: 400 !important; }
[class*="affx-"], [class*="affiliatex-"] { border-radius: 28px; }
.affx-single-product-wrapper, .affx-cta-block-container, .affx-pros-cons-inner-wrapper {
	background: var(--m-surface) !important; color: var(--m-forest) !important; border-color: var(--m-line) !important;
}

/* ==========================================================================
   Custom cursor (desktop, fine pointer only)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
	body.ms-cursor-pinecone {
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 1.5v4' stroke='%232C4C3B' stroke-width='2.4' stroke-linecap='round'/%3E%3Cellipse cx='14' cy='15.5' rx='7.5' ry='10.5' fill='%23B76E58' stroke='%232C4C3B' stroke-width='2'/%3E%3Cpath d='M7.5 11.5q6.5 4 13 0M6.8 16.5q7.2 4 14.4 0M8.5 21.5q5.5 3 11 0' fill='none' stroke='%232C4C3B' stroke-width='1.6'/%3E%3C/svg%3E") 14 2, auto;
	}
	body.ms-cursor-compass {
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11.5' fill='%23F4F1EA' stroke='%232C4C3B' stroke-width='2.4'/%3E%3Cpath d='M14 4.5l3 9.5h-6z' fill='%23B76E58'/%3E%3Cpath d='M14 23.5l-3-9.5h6z' fill='%232C4C3B'/%3E%3C/svg%3E") 14 14, auto;
	}
	/* Interactive elements keep the pointer affordance; text fields keep the I-beam. */
	body[class*="ms-cursor-"] :where(a, button, [role="button"], label, summary, select) { cursor: pointer; }
	body[class*="ms-cursor-"] :where(input:not([type="submit"]):not([type="button"]), textarea) { cursor: text; }
}

/* ==========================================================================
   Reduced motion: no tilt hovers, no theme fade
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.ms-cat:hover, .ms-postcard:hover, a.ms-badge:hover, .ms-bento__cell:hover .ms-photo img { transform: none; }
	.ms-postcard:hover { transform: rotate(var(--ms-tilt, 0deg)); }
	a.ms-badge:hover { transform: rotate(var(--ms-rot, 0deg)); }
}

/* Layout helpers ----------------------------------------------------------- */
.ms-wrap { max-width: 1168px; margin-inline: auto; }
.ms-section { padding-top: var(--wp--preset--spacing--60) !important; }
.ms-section--last { padding-bottom: clamp(32px, 7vw, 96px) !important; }
.wp-site-blocks > main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ==========================================================================
   Outpost page rhythm (front page): sections set their own spacing
   ========================================================================== */
.ms-outpost-content > * { margin-block-start: 0 !important; }
.ms-outpost-content > .ms-cats-wrap { position: relative; z-index: 2; }
.ms-trail-wrap { padding-inline: clamp(20px, 2.5vw, 32px) !important; }
.ms-section-title { font-size: var(--wp--preset--font-size--section) !important; line-height: 1.05; margin: 0 0 8px; }
.ms-section-intro { font-size: 17px; margin: 0 0 40px !important; }
.ms-section-title + .ms-section-intro { margin-top: 0 !important; }
.ms-pack__title { font-size: var(--wp--preset--font-size--section); margin: 6px 0 10px; }
.ms-pack__intro { margin: 0 0 24px; font-size: 17px; }
.ms-only-mobile { display: none; }
@media (max-width: 781px) {
	.ms-only-desktop { display: none; }
	.ms-only-mobile { display: inline; }
	.ms-section-intro { margin-bottom: 24px !important; }
	/* Mockup 390 trims the trail panel to a teaser; keep the button so the trail stays reachable. */
	.ms-trail .btn { display: inline-flex; margin-top: 6px; }
}

/* Grid/flex containers built from core groups: kill flow-layout block gaps. */
.ms-cats > *, .ms-hero-panel__grid > *, .ms-hero-panel > *, .ms-hero-panel__copy > *,
.ms-footer > *, .ms-footer__main > *, .ms-footer__fine > *, .ms-header > *, .ms-wordmark > * { margin-block-start: 0 !important; }
.ms-trail .ms-photo--empty::after { color: var(--m-on-denim); border-color: rgba(244,241,234,.35); }

/* 44px minimum touch targets on mobile (prompt requirement; WCAG 2.5.8 needs 24). */
@media (max-width: 781px) {
	.ms-wordmark .wp-block-site-title a,
	.ms-section-head a,
	.ms-footer__fine a,
	.wp-block-woocommerce-customer-account a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
	.ms-footer__fine { gap: 0 16px; }
	.ms-footer__fine p { line-height: 1.2; }
	.wp-block-woocommerce-customer-account a { justify-content: center; }
}
/* The Outpost header isn't sticky, so it takes no admin-bar offset. */
.admin-bar .ms-outpost-head { top: 0; }

/* Coming-soon banner (no drop yet): Mustard bar, Forest text (4.94:1). */
.ms-announce--soon { background: var(--m-mustard); color: var(--m-forest-fixed); }
.ms-announce--soon a { color: var(--m-forest-fixed); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ms-announce a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 781px) { .ms-announce { font-size: 12px; padding: 6px 16px; } .ms-announce a { min-height: 44px; } }
.ms-announce-top { margin: 0 !important; }
