/* Mount Hope Newsletter: signup form, archive, preference center. Uses theme colors with fallbacks. */
.mhnl-signup, .mhnl-page, .mhnl-archive {
	--mh-navy: var(--wp--preset--color--navy, #0B1D35);
	--mh-mid: var(--wp--preset--color--midnight, #19192E);
	--mh-indigo: var(--wp--preset--color--indigo, #202074);
	--mh-orange: var(--wp--preset--color--orange, #FFA920);
	--mh-orange-d: var(--wp--preset--color--orange-dark, #B36B00);
	--mh-mist: var(--wp--preset--color--mist, #F4F5F8);
	--mh-silver: var(--wp--preset--color--silver, #E6E6E6);
	--mh-h: var(--wp--preset--font-family--poppins, Poppins, system-ui, sans-serif);
	--mh-b: var(--wp--preset--font-family--montserrat, Montserrat, system-ui, sans-serif);
	font-family: var(--mh-b);
}
.mhnl-signup { position: relative; background: #fff; border-radius: 18px; border-top: 4px solid var(--mh-orange); box-shadow: 0 14px 40px rgba(11,29,53,.10); padding: clamp(22px, 4vw, 40px); max-width: 760px; margin: 0 auto; }
.mhnl-inline { box-shadow: none; border: 0; padding: 0; background: transparent; }
.mhnl-title { font-family: var(--mh-h); font-weight: 700; color: var(--mh-indigo); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 8px; text-transform: capitalize; }
.mhnl-intro { margin: 0 0 22px; color: #3b3f4a; font-size: 16px; line-height: 1.6; }
.mhnl-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.mhnl-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; font-weight: 600; font-size: 14px; color: var(--mh-navy); }
.mhnl-field em, .mhnl-chips legend em { font-style: normal; font-weight: 500; color: #6a6f7c; }
.mhnl-field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 2px solid var(--mh-silver); border-radius: 10px; font: 500 16px var(--mh-b); color: #030303; background: #fff; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.mhnl-field input:focus { outline: none; border-color: var(--mh-navy); box-shadow: 0 0 0 4px rgba(255,169,32,.35); }
.mhnl-field input[aria-invalid="true"] { border-color: #C2410C; }
.mhnl-chips { border: 0; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mhnl-chips legend { font-family: var(--mh-h); font-weight: 600; font-size: 15px; color: var(--mh-navy); margin-bottom: 10px; padding: 0; }
.mhnl-chip { position: relative; cursor: pointer; }
.mhnl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mhnl-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 2px solid var(--mh-navy); border-radius: 999px; font: 600 14px var(--mh-h); color: var(--mh-navy); background: #fff; transition: background .18s, color .18s, transform .12s, border-color .18s; user-select: none; }
.mhnl-chip span::before { content: "+"; font-weight: 700; transition: transform .2s; }
.mhnl-chip:hover span { transform: translateY(-1px); }
.mhnl-chip input:checked + span { background: var(--mh-orange); border-color: var(--mh-orange); color: var(--mh-mid); }
.mhnl-chip input:checked + span::before { content: "✓"; }
.mhnl-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,169,32,.45); }
.mhnl-roles .mhnl-chip span { border-color: #9aa0ad; color: #3b3f4a; }
.mhnl-consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 18px; font-size: 14px; line-height: 1.5; color: #3b3f4a; cursor: pointer; }
.mhnl-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--mh-orange-d); flex: none; }
.mhnl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border: 2px solid var(--mh-orange); border-radius: 8px; background: var(--mh-orange); color: var(--mh-mid); font: 700 16px var(--wp--preset--font-family--roboto, var(--mh-h)); cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .2s, background .2s; }
.mhnl-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,169,32,.35); }
.mhnl-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.mhnl-btn-lg { width: 100%; }
.mhnl-btn-outline { background: #fff; border-color: var(--mh-navy); color: var(--mh-navy); }
.mhnl-btn-outline:hover { background: var(--mh-navy); color: #fff; box-shadow: none; }
.mhnl-btn.is-loading::after { content: ""; width: 16px; height: 16px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mhnl-spin .7s linear infinite; }
@keyframes mhnl-spin { to { transform: rotate(360deg); } }
.mhnl-msg { min-height: 1.2em; margin: 12px 0 0; font-weight: 600; font-size: 14px; }
.mhnl-msg.is-error { color: #B42318; }
.mhnl-fine { margin: 6px 0 0; font-size: 12px; color: #6a6f7c; }
.mhnl-fine a { color: var(--mh-orange-d); }
.mhnl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mhnl-compact .mhnl-row .mhnl-btn, .mhnl-inline .mhnl-row .mhnl-btn { flex: 0 0 auto; }
.mhnl-done { text-align: center; padding: 10px 0; animation: mhnl-pop .5s ease both; }
.mhnl-done-text { color: #3b3f4a; font-size: 16px; line-height: 1.6; margin: 0; }
.mhnl-check svg { width: 72px; height: 72px; margin: 0 auto 14px; display: block; }
.mhnl-check circle { fill: none; stroke: var(--mh-orange); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: mhnl-draw .6s ease forwards; }
.mhnl-check path { fill: none; stroke: var(--mh-indigo); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: mhnl-draw .4s .5s ease forwards; }
@keyframes mhnl-draw { to { stroke-dashoffset: 0; } }
@keyframes mhnl-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mhnl-done, .mhnl-check circle, .mhnl-check path { animation: none; stroke-dashoffset: 0; } }

/* Archive */
.mhnl-archive-title { font-family: var(--mh-h); color: var(--mh-indigo); text-transform: capitalize; }
.mhnl-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.mhnl-issue { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border-radius: 14px; border-top: 3px solid var(--mh-orange); box-shadow: 0 6px 20px rgba(11,29,53,.07); text-decoration: none; transition: transform .2s, box-shadow .2s; color: inherit; }
.mhnl-issue:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,29,53,.13); }
.mhnl-issue-date { font: 600 12px var(--mh-h); letter-spacing: 1.5px; text-transform: uppercase; color: var(--mh-orange-d); }
.mhnl-issue-title { font: 700 19px/1.3 var(--mh-h); color: var(--mh-indigo); }
.mhnl-issue-pre { font-size: 14px; color: #4a4f5c; line-height: 1.5; }
.mhnl-issue-more { margin-top: auto; padding-top: 8px; font: 700 14px var(--mh-h); color: var(--mh-orange-d); }
.mhnl-archive-empty p { color: #4a4f5c; }

/* Preference center */
.mhnl-page { background: var(--mh-mist); padding: clamp(40px, 7vw, 96px) 20px; }
.mhnl-page-card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 20px; border-top: 4px solid var(--mh-orange); box-shadow: 0 14px 40px rgba(11,29,53,.10); padding: clamp(24px, 5vw, 48px); }
.mhnl-eyebrow { font: 600 13px var(--mh-h); letter-spacing: 2px; text-transform: uppercase; color: var(--mh-orange-d); margin: 0 0 8px; }
.mhnl-page-title { font-family: var(--mh-h); font-weight: 800; color: var(--mh-indigo); font-size: clamp(30px, 4vw, 44px); margin: 0 0 18px; text-transform: capitalize; line-height: 1.1; }
.mhnl-pref-who { color: #3b3f4a; margin: 0 0 22px; }
.mhnl-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12px var(--mh-h); background: var(--mh-mist); color: var(--mh-navy); }
.mhnl-status-subscribed { background: #E7F6EC; color: #1E6B3A; }
.mhnl-status-unsubscribed { background: #FDECEA; color: #8A1C12; }
.mhnl-notice { padding: 14px 18px; border-radius: 12px; margin: 0 0 22px; font-weight: 600; animation: mhnl-pop .4s ease both; }
.mhnl-notice-ok { background: #E7F6EC; color: #1E6B3A; }
.mhnl-notice-warn { background: #FFF4E0; color: #7A4A00; }
.mhnl-prefs .mhnl-btn-lg { margin-top: 24px; }
.mhnl-unsub-all { margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--mh-silver); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.mhnl-unsub-all p { margin: 0; color: #3b3f4a; }
.mhnl-unsub-all.is-focus { background: #FFF8EC; border-radius: 12px; padding: 18px; border-top: 0; outline: 2px solid var(--mh-orange); }
.mhnl-page .mhnl-btn { text-decoration: none; }

/* ---------- Compact signup with dropdowns (v1.1) ---------- */
.mhnl-signup { padding: clamp(20px, 3vw, 30px); }
.mhnl-signup .mhnl-title { font-size: clamp(22px, 2.4vw, 28px); }
.mhnl-signup .mhnl-intro { margin-bottom: 16px; }
.mhnl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mhnl-signup .mhnl-row { gap: 10px; align-items: stretch; }
.mhnl-row-2 { margin-top: 10px; }
.mhnl-signup .mhnl-field { gap: 0; }
.mhnl-signup .mhnl-email { flex: 2 1 260px; }
.mhnl-signup .mhnl-name { flex: 1 1 180px; }
.mhnl-row .mhnl-btn { flex: 0 0 auto; }
.mhnl-dd { position: relative; flex: 1 1 190px; }
.mhnl-dd-btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 2px solid var(--mh-silver); border-radius: 10px; background: #fff; font: 600 15px var(--mh-h); color: var(--mh-navy); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, box-shadow .2s; }
.mhnl-dd-btn:hover { border-color: #9aa0ad; }
.mhnl-dd-btn:focus-visible, .mhnl-dd-btn[aria-expanded="true"] { outline: none; border-color: var(--mh-navy); box-shadow: 0 0 0 4px rgba(255,169,32,.35); }
.mhnl-dd.has-value .mhnl-dd-btn { border-color: var(--mh-orange); background: #FFF8EC; }
.mhnl-dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mhnl-dd-caret { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--mh-navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.mhnl-dd-btn[aria-expanded="true"] .mhnl-dd-caret { transform: rotate(180deg); }
.mhnl-dd-panel { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max-content; min-width: 100%; max-width: min(520px, 92vw); background: #fff; border: 1px solid var(--mh-silver); border-radius: 14px; box-shadow: 0 18px 50px rgba(11,29,53,.18); padding: 12px; animation: mhnl-pop .18s ease both; }
.mhnl-dd-help { margin: 2px 6px 8px; font-size: 12px; color: #6a6f7c; }
.mhnl-dd-list { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 2px 8px; max-height: 300px; overflow: auto; }
.mhnl-dd-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: 600 14px var(--mh-h); color: var(--mh-navy); }
.mhnl-dd-opt:hover { background: var(--mh-mist); }
.mhnl-dd-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--mh-orange-d); flex: none; }
.mhnl-dd-opt input:checked + span { color: var(--mh-orange-d); }
.mhnl-dd-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--mh-silver); margin-top: 8px; padding-top: 10px; }
.mhnl-dd-clear, .mhnl-dd-done { border: 0; background: none; font: 700 14px var(--mh-h); cursor: pointer; padding: 6px 10px; border-radius: 6px; }
.mhnl-dd-clear { color: #6a6f7c; }
.mhnl-dd-done { background: var(--mh-orange); color: var(--mh-mid); padding: 8px 16px; }
.mhnl-signup .mhnl-consent { margin: 12px 0 0; font-size: 13px; }
.mhnl-signup .mhnl-consent input { width: 18px; height: 18px; }
.mhnl-signup .mhnl-fine { margin-top: 4px; }
@media (max-width: 600px) {
	.mhnl-dd-list { grid-template-columns: 1fr; }
	.mhnl-dd-panel { width: 100%; }
	.mhnl-row .mhnl-btn { flex: 1 1 100%; }
}

/* Newsletter page: magazine layout */
.mhnl-mag { font-family: var(--mh-b, Montserrat, sans-serif); color: #121B31; }
.mhnl-mag .mhnl-eyebrow { color: #9A5C00; }
.mhnl-mag-latest { background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(18,27,49,.10); overflow: hidden; margin-top: 14px; }
.mhnl-mag-latest > img { width: 100%; aspect-ratio: 21/8; object-fit: cover; display: block; }
.mhnl-mag-body { padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px); }
.mhnl-mag-title { font-family: var(--mh-h, Poppins, sans-serif); font-weight: 700; color: #202074; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 6px 0 12px; text-transform: capitalize; }
.mhnl-mag-pre { font-size: 18px; color: #4A5563; max-width: 780px; margin: 0 0 8px; line-height: 1.6; }
.mhnl-mag-in { margin: 22px 0 28px; border-top: 1px solid #E3E5EA; }
.mhnl-mag-in a { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #E3E5EA; text-decoration: none; color: #121B31; }
.mhnl-mag-in b { font: 700 13px var(--mh-h, Poppins, sans-serif); color: #9A5C00; min-width: 120px; letter-spacing: .08em; text-transform: uppercase; }
.mhnl-mag-in span { font: 600 18px/1.35 var(--mh-h, Poppins, sans-serif); }
.mhnl-mag-in a:hover span, .mhnl-mag-in a:focus-visible span { color: #202074; text-decoration: underline; }
.mhnl-mag .mhnl-btn-outline { background: transparent; border-color: #202074; color: #202074; }
.mhnl-mag .mhnl-btn-outline:hover { background: #202074; color: #fff; }
.mhnl-mag-past { margin-top: clamp(48px, 7vw, 80px); }
.mhnl-mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.mhnl-mag-card { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: #121B31; box-shadow: 0 4px 18px rgba(18,27,49,.07); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.mhnl-mag-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(18,27,49,.13); }
.mhnl-mag-card img, .mhnl-mag-noimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.mhnl-mag-noimg { display: flex; align-items: center; justify-content: center; background: #F3F4F7; color: #202074; font: 800 40px var(--mh-h, Poppins, sans-serif); }
.mhnl-mag-card-b { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.mhnl-mag-card small { color: #4A5563; font-size: 14px; }
.mhnl-mag-card strong { font: 700 20px/1.3 var(--mh-h, Poppins, sans-serif); color: #202074; }
@media (max-width: 820px) { .mhnl-mag-grid { grid-template-columns: 1fr; } .mhnl-mag-in a { flex-direction: column; gap: 4px; } }

/* Signup on a navy band (Newsletter page hero) */
.mh-on-navy .mhnl-signup.mhnl-inline .mhnl-field input { background: transparent; color: #fff; border-color: #fff; }
.mh-on-navy .mhnl-signup.mhnl-inline .mhnl-field input::placeholder { color: #CFD3DC; }
.mh-on-navy .mhnl-signup.mhnl-inline .mhnl-btn { background: transparent; color: #FFA920; border-color: #FFA920; }
.mh-on-navy .mhnl-signup.mhnl-inline .mhnl-btn:hover { background: #FFA920; color: #121B31; }
.mh-on-navy .mhnl-signup.mhnl-inline .mhnl-fine, .mh-on-navy .mhnl-signup.mhnl-inline .mhnl-msg { color: #E6E8EE; }
.mh-on-navy .mhnl-signup.mhnl-inline .mhnl-fine a { color: #FFA920; }
.mh-on-navy .mhnl-signup.mhnl-inline .mhnl-done-text, .mh-on-navy .mhnl-signup.mhnl-inline .mhnl-title { color: #fff; }
.mh-on-navy .mhnl-signup.mhnl-inline { max-width: 640px; margin: 0; }
