/*
Theme Name: June Moore Website 2027
Purpose: Centralized Figma implementation layer.
Source: Figma Desktop 1440 / Tablet 834 / Mobile 390.
*/

:root {
  --jm-deep: #0e1613;
  --jm-forest: #2b3a34;
  --jm-ivory: #f3f1ec;
  --jm-neutral: #e7e0d7;
  --jm-stone: #c7b6a1;
  --jm-charcoal: #22221f;
  --jm-gold: #cdaa63;
  --jm-frame: 90rem;
  --jm-wide: 80rem;
  --jm-content: 75rem;
  --jm-display: "Playfair Display", Georgia, serif;
  --jm-sans: Inter, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.jm-site {
  margin: 0;
  overflow-x: hidden;
  background: var(--jm-ivory);
  color: var(--jm-charcoal);
  font-family: var(--jm-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.jm-site img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.jm-site h1,
body.jm-site h2,
body.jm-site h3,
body.jm-site h4 {
  margin: 0;
  color: inherit;
  font-family: var(--jm-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

body.jm-site p,
body.jm-site figure {
  margin: 0;
}

body.jm-site a {
  color: inherit;
  text-decoration: none;
}

body.jm-site a:focus-visible,
body.jm-site button:focus-visible,
body.jm-site input:focus-visible,
body.jm-site textarea:focus-visible {
  outline: 2px solid var(--jm-gold);
  outline-offset: 4px;
}

.jm-wrap {
  width: min(var(--jm-wide), calc(100% - 10rem));
  margin-inline: auto;
}

.jm-kicker,
.jm-index {
  color: var(--jm-gold);
  font: 400 11px/1.35 var(--jm-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jm-btn,
.wp-block-button__link.jm-btn {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0;
  font: 400 11px/1 var(--jm-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.jm-btn--gold,
.wp-block-button__link.jm-btn--gold {
  background: var(--jm-gold);
  color: var(--jm-deep);
}

.jm-btn--gold:hover,
.wp-block-button__link.jm-btn--gold:hover {
  background: var(--jm-ivory);
  color: var(--jm-deep);
}

/* Header */
.jm-header,
.home .jm-header {
  position: relative;
  inset: auto;
  z-index: 40;
  width: 100%;
  background: var(--jm-deep);
  color: var(--jm-ivory);
  backdrop-filter: none;
}

.jm-header__bar {
  display: flex;
  width: min(var(--jm-wide), calc(100% - 10rem));
  height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0;
}

.jm-logo {
  flex: 0 0 220px;
  font: 400 22px/1 var(--jm-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.jm-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.jm-nav a,
.jm-footer__nav a {
  padding: 0;
  color: var(--jm-ivory);
  font: 400 11px/1 var(--jm-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jm-nav a:hover,
.jm-footer__nav a:hover,
.jm-footer__social a:hover {
  color: var(--jm-gold);
}

.jm-header .jm-btn {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 126px;
}

.jm-menu-toggle,
.jm-mobile {
  display: none;
}

/* WordPress layout resets */
.jm-content {
  margin: 0;
  padding: 0;
}

.jm-content > .wp-block-group,
.jm-content > .wp-block-columns,
.jm-content .wp-block-columns {
  margin-top: 0;
  margin-bottom: 0;
}

.jm-content > .alignfull {
  width: 100%;
  margin-inline: 0;
}

/* 01 Header + Hero */
.jm-hero {
  width: 100%;
  background: var(--jm-deep);
  color: var(--jm-ivory);
}

body .jm-hero .wp-block-columns.jm-hero__grid,
body .jm-hero .jm-hero__grid {
  display: grid !important;
  width: min(var(--jm-frame), 100%) !important;
  max-width: var(--jm-frame) !important;
  min-height: 668px;
  grid-template-columns: minmax(0, 710fr) minmax(0, 730fr) !important;
  align-items: stretch !important;
  margin: 0 auto !important;
  gap: 0 !important;
}

.jm-hero__grid > .wp-block-column {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex-basis: auto !important;
  margin: 0 !important;
}

.jm-hero .jm-hero__copy,
.jm-hero .wp-block-column:first-child {
  display: flex;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 112px 64px 72px 80px !important;
}

.jm-hero .jm-kicker {
  width: min(520px, 100%);
  color: var(--jm-gold);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.jm-hero h1,
.jm-hero h2,
.jm-hero .jm-hero__copy h1,
.jm-hero .jm-hero__copy h2 {
  width: min(550px, 100%) !important;
  max-width: none !important;
  margin: 20px 0 0 !important;
  color: var(--jm-ivory);
  font-size: clamp(48px, 4.03vw, 58px) !important;
  line-height: 1.138 !important;
  text-wrap: balance;
}

.jm-hero .jm-lede,
.jm-hero .jm-hero-lede {
  width: min(500px, 100%);
  max-width: none;
  margin-top: 24px;
  color: var(--jm-ivory);
  font-size: 16px;
  line-height: 25px;
}

.jm-hero__actions {
  display: flex !important;
  align-items: center;
  gap: 28px !important;
  margin-top: 24px !important;
}

.jm-hero__actions .jm-textlink,
.jm-hero__worklink {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--jm-ivory);
  font: 400 12px/1.2 var(--jm-sans);
  white-space: nowrap;
}

.jm-hero__actions .jm-textlink:hover,
.jm-hero__worklink:hover {
  color: var(--jm-gold);
}

.jm-hero .wp-block-column:last-child,
.jm-hero .jm-hero__photo {
  position: relative !important;
  width: auto !important;
  min-height: 668px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.jm-hero .wp-block-column:last-child figure,
.jm-hero .jm-hero__photo figure {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.jm-hero .wp-block-column:last-child img,
.jm-hero .jm-hero__photo img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 18% !important;
}

/* 02 The Heart of the Work */
.jm-hero + .jm-band {
  padding: 0 !important;
  background: var(--jm-ivory);
}

.jm-hero + .jm-band > .jm-index {
  display: none;
}

/* Heart of the Work legacy rules removed; maintained in jm-handoff.css. */

/* 03 Themes
 * Exact homepage implementation is maintained in jm-handoff.css and the
 * page-level critical layout block. Keeping this stylesheet free of competing
 * selectors prevents the legacy theme grid from overriding the Figma geometry.
 */

/* 04 Lead magnet */
.jm-guide {
  width: 100%;
  padding: 54px 80px !important;
  background: var(--jm-forest);
  color: var(--jm-ivory);
}

body .jm-guide .jm-guide__grid {
  display: grid !important;
  width: min(80.5rem, 100%) !important;
  max-width: 80.5rem !important;
  grid-template-columns: 270px minmax(0, 1fr) 340px !important;
  align-items: stretch !important;
  gap: 54px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.jm-guide__grid > .wp-block-column {
  width: auto !important;
  min-width: 0 !important;
  flex-basis: auto !important;
  margin: 0 !important;
}

.jm-guide__book {
  position: relative;
  min-height: 282px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--jm-gold) 45%, transparent);
  background: var(--jm-stone);
}

.jm-guide__book figure,
.jm-guide__book img {
  display: none !important;
}

.jm-guide__book::before {
  content: "A FREE GUIDE";
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--jm-deep);
  font: 400 10px/1.3 var(--jm-sans);
  letter-spacing: 0.12em;
}

.jm-guide__book::after {
  content: "The Grief No One Sees";
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  color: var(--jm-deep);
  font: 400 30px/1.08 var(--jm-display);
}

.jm-guide__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 8px !important;
}

.jm-guide__copy .jm-kicker {
  color: var(--jm-gold);
  font-size: 11px;
}

.jm-guide__copy h2 {
  margin: 0 !important;
  color: var(--jm-ivory);
  font-size: 42px;
  line-height: 1.15;
}

.jm-guide__copy .jm-stone {
  margin: 0;
  color: var(--jm-ivory);
  font-family: var(--jm-display);
  font-size: 21px;
  line-height: 1.35;
}

.jm-guide__copy ul {
  margin: 0;
  padding: 0;
  color: var(--jm-ivory);
  font-size: 15px;
  line-height: 23px;
  list-style: none;
}

.jm-guide__copy li {
  display: none;
}

.jm-guide__copy li:first-child {
  display: block;
  padding: 0;
}

.jm-guide__copy li:first-child::before {
  display: none;
}

.jm-guide__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  padding-top: 28px !important;
}

.jm-guide .jm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.jm-guide input,
.jm-footer input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--jm-stone);
  border-radius: 0;
  background: transparent;
  color: var(--jm-ivory);
  font: 400 12px/1 var(--jm-sans);
}

.jm-guide input::placeholder,
.jm-footer input::placeholder {
  color: var(--jm-ivory);
  opacity: 0.9;
}

.jm-guide .jm-form .jm-btn,
.jm-guide button[type="submit"] {
  width: 100% !important;
  min-width: 0;
  min-height: 46px;
  color: var(--jm-deep);
  white-space: nowrap !important;
}

.jm-guide .jm-fine {
  margin-top: 0;
  color: var(--jm-ivory);
  font-size: 12px;
  line-height: 19px;
}

/* 05 Latest Ideas */
.jm-band--ideas {
  padding: 54px 80px 40px !important;
  background: var(--jm-ivory);
}

body .jm-band--ideas .jm-row,
body .jm-band--ideas .jm-essays {
  width: min(var(--jm-wide), 100%) !important;
  max-width: var(--jm-wide) !important;
  margin-inline: auto !important;
  padding-left: 0 !important;
}

.jm-band--ideas > .jm-index {
  display: none;
}

.jm-band--ideas .jm-row {
  display: flex !important;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px !important;
}

.jm-band--ideas .jm-row > .wp-block-column {
  flex-basis: auto !important;
}

.jm-band--ideas .jm-row h2 {
  color: var(--jm-charcoal);
  font-size: 42px;
  line-height: 1.2;
}

.jm-band--ideas .jm-rowlink {
  margin: 0;
  font-size: 12px;
}

body .jm-essays {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.jm-essay-card,
.jm-essay-card--overlay {
  position: relative;
  display: block !important;
  min-width: 0;
  min-height: 260px;
  flex-basis: auto !important;
  overflow: hidden;
  padding: 24px !important;
  background: #c8c0b4;
  color: var(--jm-deep);
}

.jm-essay-card:nth-child(2) {
  background: #d8d0c6;
}

.jm-essay-card figure,
.jm-essay-card img,
.jm-essay-card::after {
  display: none !important;
}

.jm-essay-card__overlay {
  position: static !important;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 !important;
  background: transparent !important;
  color: var(--jm-deep) !important;
}

.jm-essay-card .jm-kicker {
  color: var(--jm-deep);
  font-size: 10px;

  letter-spacing: 0.12em;
}

.jm-essay-card h3 {
  width: min(330px, 100%);
  margin: 0 !important;
  color: var(--jm-deep);
  font-size: 25px;
  line-height: 31px;
  text-shadow: none !important;
}

.jm-essay-card .jm-textlink {
  margin-top: auto;
  color: var(--jm-deep);
  font-size: 11px;
  text-shadow: none !important;
}

/* Ways to Engage legacy rules removed; maintained in jm-handoff.css. */

/* 07 About June */
.jm-about {
  padding: 52px 80px !important;
  background: var(--jm-deep);
  color: var(--jm-ivory);
}

.jm-about > .jm-index {
  display: none;
}

body .jm-about .jm-about__grid {
  display: grid !important;
  width: min(var(--jm-wide), 100%) !important;
  max-width: var(--jm-wide) !important;
  grid-template-columns: 300px minmax(0, 580px) minmax(0, 300px) !important;
  align-items: stretch !important;
  gap: 48px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.jm-about__grid > .wp-block-column {
  width: auto !important;
  min-width: 0 !important;
  flex-basis: auto !important;
  margin: 0 !important;
}

.jm-about__photo {
  min-height: 326px;
  overflow: hidden;
  background: var(--jm-stone);
}

.jm-about__photo figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.jm-about__photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 22% !important;
}

.jm-about__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 14px !important;
}

.jm-about__copy .jm-kicker {
  color: var(--jm-gold);
  font-size: 11px;
}

.jm-about__copy h2 {
  width: min(520px, 100%);
  margin: 0 !important;
  color: var(--jm-ivory);
  font-size: 40px;
  line-height: 48px;
}

.jm-about__copy .jm-stone {
  width: min(520px, 100%);
  margin: 0;
  color: var(--jm-ivory);
  font-size: 15px;
  line-height: 23px;
}

.jm-about__copy .jm-stone + .jm-stone {
  display: none;
}

.jm-about__aside {
  padding-top: 18px !important;
}

.jm-about__creds {
  display: flex !important;
  flex-direction: column;
  gap: 22px !important;
}

.jm-about__creds > .wp-block-column {
  flex-basis: auto !important;
}

.jm-about__creds .jm-icon {
  display: none;
}

.jm-about__creds .jm-cred {
  color: var(--jm-ivory);
  font-size: 12px;
  line-height: 1.4;
}

/* 08 Speaking */
.jm-band--speak {
  padding: 0 0 0 80px !important;
  background: var(--jm-ivory);
}

.jm-band--speak > .jm-index {
  display: none;
}

body .jm-band--speak .jm-speak__grid {
  display: grid !important;
  width: min(85rem, 100%) !important;
  max-width: 85rem !important;
  min-height: 330px;
  grid-template-columns: minmax(0, 820px) minmax(0, 540px) !important;
  grid-template-rows: auto auto;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}

.jm-speak__grid > .wp-block-column {
  min-width: 0;
  flex-basis: auto !important;
}

.jm-speak__intro {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  padding: 56px 80px 40px 70px !important;
}

.jm-speak__intro .jm-kicker {
  color: var(--jm-gold);
  font-size: 11px;
}

.jm-speak__intro h2 {
  margin: 0 !important;
  color: var(--jm-charcoal);
  font-size: 40px;
  line-height: 1.2;
}

.jm-speak__intro .jm-muted {
  width: min(610px, 100%);
  color: var(--jm-charcoal);
  font-size: 14px;
  line-height: 22px;
}

.jm-speak__intro .wp-block-buttons {
  margin: 0;
}

.jm-speak__topics {
  display: none;
}

.jm-speak__photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 330px;
  background: var(--jm-neutral);
}

.jm-speak__photo figure,
.jm-speak__photo img {
  display: none !important;
}

/* 09 Newsletter + Footer */
.jm-footer {
  padding: 44px 0 26px;
  background: var(--jm-deep);
  color: var(--jm-ivory);
}

.jm-footer__top {
  display: grid;
  width: min(var(--jm-wide), calc(100% - 10rem));
  min-height: 132px;
  grid-template-columns: minmax(0, 520px) minmax(0, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0;
}

.jm-footer__top h2 {
  width: min(500px, 100%);
  color: var(--jm-ivory);
  font-size: 32px;
  line-height: 1.18;
}

.jm-footer__top > div > p {
  width: min(470px, 100%);
  margin-bottom: 14px;
  color: var(--jm-ivory);
  font-size: 13px;
  line-height: 20px;
}

.jm-footer .jm-form {
  display: grid;
  grid-template-columns: minmax(0, 318px) 190px;
  gap: 12px;
}

.jm-footer .jm-form .jm-btn {
  width: 190px;
  min-height: 46px;
}

.jm-legal {
  display: grid;
  width: min(var(--jm-wide), calc(100% - 10rem));
  min-height: 84px;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  padding: 20px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--jm-ivory) 14%, transparent);
  color: var(--jm-stone);
  font-size: 10px;
}

.jm-legal > p:first-child {
  color: var(--jm-ivory);
  font-family: var(--jm-display);
  font-size: 14px;
}

.jm-footer__nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.jm-footer__nav a {
  color: var(--jm-stone);
  font-size: 10px;
}

.jm-footer__social {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

/* Interior-page floor */
.jm-page {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--jm-ivory);
}

.jm-page .jm-wrap {
  width: min(var(--jm-content), calc(100% - 10rem));
}

.jm-page h1 {
  max-width: 900px;
  color: var(--jm-charcoal);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.08;
}

.jm-page h2 {
  color: var(--jm-charcoal);
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.16;
}

.jm-article,
.single .jm-content {
  font-size: 17px;
  line-height: 1.7;
}

.jm-article > *,
.single .jm-content > * {
  max-width: 760px;
  margin-inline: auto;
}

/* Tablet: Figma 834 */
@media (min-width: 768px) and (max-width: 1099px) {
  .jm-wrap,
  .jm-header__bar,
  .jm-footer__top,
  .jm-legal {
    width: calc(100% - 80px);
  }

  .jm-header__bar {
    height: 84px;
  }

  .jm-logo {
    flex-basis: 130px;
    font-size: 20px;
  }

  .jm-nav,
  .jm-header .jm-btn {
    display: none;
  }

  .jm-menu-toggle {
    display: inline-flex;
    width: auto;
    height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--jm-ivory);
    font: 400 0/1 var(--jm-sans);
  }

  .jm-menu-toggle::before {
    content: "MENU";
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .jm-menu-toggle::after {
    content: "☰";
    color: var(--jm-gold);
    font-size: 16px;
  }

  .jm-mobile {
    display: none;
    width: calc(100% - 80px);
    margin-inline: auto;
    padding: 0 0 24px;
    border-top: 1px solid color-mix(in srgb, var(--jm-ivory) 16%, transparent);
  }

  .jm-mobile.is-open {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
  }

  body .jm-hero .wp-block-columns.jm-hero__grid,
  body .jm-hero .jm-hero__grid {
    width: calc(100% - 80px) !important;
    min-height: 500px;
    grid-template-columns: minmax(0, 420px) minmax(0, 308px) !important;
    gap: 26px !important;
    padding-bottom: 40px !important;
  }

  .jm-hero .jm-hero__copy,
  .jm-hero .wp-block-column:first-child {
    padding: 23px 0 !important;
  }

  .jm-hero h1,
  .jm-hero .jm-hero__copy h1 {
    width: 100% !important;
    margin-top: 18px !important;
    font-size: 48px !important;
    line-height: 1.06 !important;
  }

  .jm-hero .jm-lede,
  .jm-hero .jm-hero-lede {
    width: 100%;
    margin-top: 18px;
    font-size: 15px;
    line-height: 23px;
  }

  .jm-hero__actions {
    gap: 12px !important;
    margin-top: 18px !important;
  }

  .jm-hero__actions .jm-textlink,
  .jm-hero__worklink {
    min-height: 37px;
    padding: 11px 16px;
    border: 1px solid var(--jm-gold);
    color: var(--jm-gold);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .jm-hero .jm-btn {
    min-height: 37px;
    padding: 11px 16px;
    font-size: 10px;
  }

  .jm-hero .wp-block-column:last-child,
  .jm-hero .jm-hero__photo {
    min-height: 500px !important;
  }

  body .jm-hero + .jm-band .jm-split {
    width: calc(100% - 80px) !important;
    min-height: 410px;
    grid-template-columns: minmax(0, 410px) minmax(0, 312px) !important;
    gap: 32px !important;
  }

  .jm-hero + .jm-band > .jm-index {
    display: none;
  }

  .jm-hero + .jm-band .jm-split > .wp-block-column:first-child {
    gap: 16px;
    padding: 52px 0 !important;
  }

  .jm-hero + .jm-band .jm-split h2 {
    width: 100%;
    font-size: 40px;
    line-height: 48px;
  }

  .jm-hero + .jm-band .jm-split .jm-muted {
    width: 100%;
    font-size: 15px;
    line-height: 23px;
  }

  .jm-hero + .jm-band .jm-split > .wp-block-column:last-child {
    min-height: 300px;
    margin-block: 52px !important;
  }

  .jm-content > .jm-band:has(.jm-themes) {
    padding: 24px 40px 44px !important;
  }

  .jm-content > .jm-band:has(.jm-themes) > .jm-index {
    display: block;
    position: static;
    margin: 0 0 24px;
    transform: none;
    writing-mode: horizontal-tb;
  }

  body .jm-themes {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .jm-themes > .wp-block-column {
    min-height: 172px;
    gap: 10px;
    padding: 20px 18px !important;
    border: 1px solid var(--jm-stone) !important;
  }

  .jm-themes .jm-icon {
    display: none;
  }

  .jm-themes h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .jm-themes .jm-muted {
    font-size: 14px;
    line-height: 20px;
  }

  .jm-guide {
    padding: 46px 40px !important;
  }

  body .jm-guide .jm-guide__grid {
    grid-template-columns: 250px minmax(0, 476px) !important;
    gap: 28px !important;
  }

  .jm-guide__book {
    min-height: 310px;
  }

  .jm-guide__copy {
    gap: 14px;
    padding: 0 !important;
  }

  .jm-guide__copy h2 {
    font-size: 38px;
  }

  .jm-guide__copy .jm-stone {
    font-family: var(--jm-sans);
    font-size: 15px;
  }

  .jm-guide__form {
    grid-column: 2;
    padding: 0 !important;
    margin-top: -92px !important;
  }

  .jm-guide .jm-form {
    display: grid;
    grid-template-columns: minmax(0, 260px) 173px;
    gap: 8px;
  }

  .jm-guide .jm-form .jm-btn {
    width: 173px !important;
    min-height: 37px;
    align-self: start;
  }

  .jm-guide .jm-fine {
    display: none;
  }

  .jm-band--ideas {
    padding: 48px 40px !important;
  }

  .jm-band--ideas .jm-row {
    margin-bottom: 22px !important;
  }

  .jm-band--ideas .jm-row h2 {
    font-size: 40px;
  }

  body .jm-essays {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .jm-essay-card {
    min-height: 254px;
    background: var(--jm-deep);
    color: var(--jm-ivory);
  }

  .jm-essay-card:nth-child(2) {
    background: var(--jm-deep);
  }

  .jm-essay-card:nth-child(3) {
    min-height: 116px;
    grid-column: 1 / -1;
  }

  .jm-essay-card__overlay,
  .jm-essay-card h3,
  .jm-essay-card .jm-textlink {
    color: var(--jm-ivory) !important;
  }

  .jm-essay-card .jm-kicker {
    color: var(--jm-gold);
  }

  .jm-content > .jm-band:has(.jm-engage) {
    padding: 44px 40px !important;
  }

  .jm-content > .jm-band:has(.jm-engage) > .jm-index {
    display: block;
    position: static;
    margin: 0 0 20px;
    transform: none;
    writing-mode: horizontal-tb;
  }

  body .jm-engage {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .jm-engage > .wp-block-column {
    min-height: 120px;
    gap: 8px;
    padding: 20px 18px !important;
    border: 1px solid var(--jm-stone) !important;
  }

  .jm-engage .jm-icon,
  .jm-engage .wp-block-paragraph:last-child {
    display: none;
  }


  .jm-about {
    padding: 46px 40px !important;
  }

  body .jm-about .jm-about__grid {
    grid-template-columns: 260px minmax(0, 466px) !important;
    gap: 28px !important;
  }

  .jm-about__photo {
    min-height: 330px;
  }

  .jm-about__copy {
    padding: 0 !important;
  }

  .jm-about__copy h2 {
    font-size: 38px;
    line-height: 44px;
  }

  .jm-about__copy .jm-stone {
    font-size: 15px;
    line-height: 22px;
  }

  .jm-about__aside {
    display: none;
  }

  .jm-band--speak {
    padding: 46px 40px !important;
  }

  body .jm-band--speak .jm-speak__grid {
    width: 100% !important;
    min-height: 260px;
    grid-template-columns: minmax(0, 430px) minmax(0, 296px) !important;
    gap: 28px !important;
    margin: 0 !important;
  }

  .jm-speak__intro {
    min-height: 260px;
    padding: 0 !important;
  }

  .jm-speak__intro h2 {
    font-size: 38px;
  }

  .jm-speak__photo {
    min-height: 260px;
  }

  .jm-footer {
    padding: 42px 0 30px;
  }

  .jm-footer__top {
    display: block;
  }

  .jm-footer__top h2 {
    font-size: 34px;
  }

  .jm-footer__top > div > p {
    width: 600px;
    margin-top: 14px;
  }

  .jm-footer .jm-form {
    width: 100%;
    grid-template-columns: minmax(0, 500px) 162px;
    gap: 8px;
  }

  .jm-footer .jm-form .jm-btn {
    width: 162px;
    min-height: 37px;
  }

  .jm-legal {
    grid-template-columns: 1fr auto;
    min-height: 50px;
    margin-top: 18px;
  }

  .jm-footer__social {
    display: none;
  }
}

/* Mobile: Figma 390 */
@media (max-width: 767px) {
  body.jm-site {
    font-size: 16px;
  }

  .jm-wrap,
  .jm-header__bar,
  .jm-footer__top,
  .jm-legal,
  .jm-page .jm-wrap {
    width: calc(100% - 44px);
  }

  .jm-header__bar {
    height: 70px;
    gap: 1rem;
  }

  .jm-logo {
    flex: 0 1 auto;
    font-size: 18px;
  }

  .jm-nav,
  .jm-header .jm-btn {
    display: none;
  }

  .jm-menu-toggle {
    display: inline-flex;
    width: auto;
    height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--jm-ivory);
    font: 400 0/1 var(--jm-sans);
  }

  .jm-menu-toggle::before {
    content: "MENU";
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .jm-menu-toggle::after {
    content: "☰";
    color: var(--jm-gold);
    font-size: 14px;
  }

  .jm-mobile {
    display: none;
    width: calc(100% - 44px);
    margin-inline: auto;
    padding: 0 0 24px;
    border-top: 1px solid color-mix(in srgb, var(--jm-ivory) 16%, transparent);
  }

  .jm-mobile.is-open {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
  }

  body .jm-hero .wp-block-columns.jm-hero__grid,
  body .jm-hero .jm-hero__grid {
    display: flex !important;
    width: 100% !important;
    min-height: 0;
    flex-direction: column;
    gap: 22px !important;
    padding: 0 22px 30px !important;
  }

  .jm-hero .jm-hero__copy,
  .jm-hero .wp-block-column:first-child {
    padding: 0 !important;
  }

  .jm-hero .jm-kicker {
    width: 100%;
    font-size: 10px;
    line-height: 15px;
    letter-spacing: 0.12em;
  }

  .jm-hero h1,
  .jm-hero .jm-hero__copy h1 {
    width: 100% !important;
    margin-top: 22px !important;
    font-size: 38px !important;
    line-height: 44px !important;
    text-wrap: pretty;
  }

  .jm-hero .jm-lede,
  .jm-hero .jm-hero-lede {
    width: 100%;
    margin-top: 22px;
    font-size: 14px;
    line-height: 21px;
  }

  .jm-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px !important;
    margin-top: 22px !important;
  }

  .jm-hero .jm-btn {
    min-height: 38px;
    padding: 12px 14px;
    font-size: 10px;
  }

  .jm-hero__actions .jm-textlink,
  .jm-hero__worklink {
    min-height: 38px;
    padding: 11px 14px;
    border: 1px solid var(--jm-gold);
    color: var(--jm-gold);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .jm-hero .wp-block-column:last-child,
  .jm-hero .jm-hero__photo {
    order: 2;
    width: 100% !important;
    min-height: 430px !important;
    height: 430px !important;
    border: 1px solid var(--jm-gold);
  }

  .jm-hero .wp-block-column:last-child img,
  .jm-hero .jm-hero__photo img {
    object-position: 58% center !important;
  }

  .jm-hero + .jm-band {
    padding: 38px 22px !important;
  }

  .jm-hero + .jm-band > .jm-index {
    display: block;
    position: static;
    margin-bottom: 16px;
    transform: none;
    writing-mode: horizontal-tb;
    font-size: 9px;
  }

  body .jm-hero + .jm-band .jm-split {
    display: flex !important;
    width: 100% !important;
    min-height: 0;
    flex-direction: column;
    gap: 16px !important;
  }

  .jm-hero + .jm-band .jm-split > .wp-block-column:first-child {
    gap: 16px;
    padding: 0 !important;
  }

  .jm-hero + .jm-band .jm-split h2 {
    width: 100%;
    font-size: 34px;
    line-height: 41px;
  }

  .jm-hero + .jm-band .jm-split .jm-muted {
    width: 100%;
    font-size: 14px;
    line-height: 21px;
  }

  .jm-hero + .jm-band .jm-split > .wp-block-column:last-child {
    width: 100%;
    min-height: 220px;
    height: 220px;
    margin: 0 !important;
  }

  .jm-content > .jm-band:has(.jm-themes) {
    padding: 26px 22px 34px !important;
  }

  .jm-content > .jm-band:has(.jm-themes) > .jm-index {
    display: block;
    position: static;
    margin: 0 0 14px;
    transform: none;
    writing-mode: horizontal-tb;
    font-size: 9px;
  }

  body .jm-themes {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .jm-themes > .wp-block-column {
    min-height: 0;
    gap: 8px;
    padding: 16px !important;
    border: 1px solid var(--jm-stone) !important;
  }

  .jm-themes .jm-icon {
    display: none;
  }

  .jm-themes h3 {
    font-size: 23px;
    line-height: 29px;
  }

  .jm-themes .jm-muted {
    font-size: 13px;
    line-height: 20px;
  }

  .jm-guide {
    padding: 36px 22px !important;
  }

  body .jm-guide .jm-guide__grid {
    display: flex !important;
    width: 100% !important;
    flex-direction: column;
    gap: 16px !important;
  }

  .jm-guide__book {
    width: 210px !important;
    min-height: 260px;
  }

  .jm-guide__book::after {
    font-size: 26px;
  }

  .jm-guide__copy {
    gap: 16px;
    padding: 0 !important;
  }

  .jm-guide__copy h2 {
    width: 100%;
    font-size: 34px;
    line-height: 41px;
  }

  .jm-guide__copy .jm-stone {
    width: 100%;
    font-family: var(--jm-sans);
    font-size: 14px;
    line-height: 21px;
  }

  .jm-guide__copy ul {
    font-size: 14px;
    line-height: 21px;
  }

  .jm-guide__form {
    width: 100%;
    padding: 0 !important;
  }

  .jm-guide .jm-form {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .jm-guide .jm-form .jm-btn,
  .jm-guide button[type="submit"] {
    width: 170px !important;
    min-height: 38px;
    align-self: flex-start;
  }

  .jm-guide .jm-fine {
    display: none;
  }

  .jm-band--ideas {
    padding: 38px 22px !important;
  }

  .jm-band--ideas .jm-row {
    min-height: 0;
    margin-bottom: 14px !important;
  }

  .jm-band--ideas .jm-row h2 {
    font-size: 34px;
    line-height: 41px;
  }

  .jm-band--ideas .jm-rowlink {
    display: none;
  }

  body .jm-essays {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .jm-essay-card,
  .jm-essay-card:nth-child(2),
  .jm-essay-card:nth-child(3) {
    min-height: 216px;
    grid-column: auto;
    padding: 92px 18px 18px !important;
    background: var(--jm-deep);
    color: var(--jm-ivory);
  }

  .jm-essay-card__overlay {
    color: var(--jm-ivory) !important;
  }

  .jm-essay-card .jm-kicker {
    color: var(--jm-gold);
    font-size: 9px;
  }

  .jm-essay-card h3 {
    color: var(--jm-ivory);
    font-size: 23px;
    line-height: 29px;
  }

  .jm-essay-card .jm-textlink {
    margin-top: 0;
    color: var(--jm-ivory);
    font-size: 9px;
  }

  .jm-content > .jm-band:has(.jm-engage) {
    padding: 36px 22px !important;
  }

  .jm-content > .jm-band:has(.jm-engage) > .jm-index {
    display: block;
    position: static;
    margin: 0 0 12px;
    transform: none;
    writing-mode: horizontal-tb;
    font-size: 9px;
  }

  body .jm-engage {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .jm-engage > .wp-block-column {
    min-height: 0;
    gap: 8px;
    padding: 16px !important;
    border: 1px solid var(--jm-stone) !important;
  }

  .jm-engage .jm-icon,
  .jm-engage .wp-block-paragraph:last-child {
    display: none;
  }

  .jm-engage h3 {
    font-size: 22px;
    line-height: 28px;
  }

  .jm-engage .jm-muted {
    font-size: 13px;
    line-height: 20px;
  }

  .jm-about {
    padding: 36px 22px !important;
  }

  body .jm-about .jm-about__grid {
    display: flex !important;
    width: 100% !important;
    flex-direction: column;
    gap: 14px !important;
  }

  .jm-about__photo {
    width: 100%;
    min-height: 300px;
    height: 300px;
    order: 0;
  }

  .jm-about__photo img {
    object-position: center 20% !important;
  }

  .jm-about__copy {
    order: 1;
    gap: 14px;
    padding: 0 !important;
  }

  .jm-about__copy h2 {
    width: 100%;
    font-size: 32px;
    line-height: 39px;
  }

  .jm-about__copy .jm-stone {
    width: 100%;
    font-size: 14px;
    line-height: 21px;
  }

  .jm-about__aside {
    display: none;
  }

  .jm-band--speak {
    padding: 36px 22px !important;
  }

  body .jm-band--speak .jm-speak__grid {
    display: flex !important;
    width: 100% !important;
    min-height: 0;
    flex-direction: column;
    gap: 14px !important;
    margin: 0 !important;
  }

  .jm-speak__intro {
    min-height: 0;
    gap: 14px;
    padding: 0 !important;
  }

  .jm-speak__intro h2 {
    font-size: 32px;
    line-height: 39px;
  }

  .jm-speak__intro .jm-muted {
    font-size: 14px;
    line-height: 21px;
  }

  .jm-speak__photo {
    width: 100%;
    min-height: 220px;
    height: 220px;
  }

  .jm-footer {
    padding: 36px 0 26px;
  }

  .jm-footer__top {
    display: block;
    min-height: 0;
  }

  .jm-footer__top h2 {
    width: 100%;
    font-size: 30px;
    line-height: 37px;
  }

  .jm-footer__top > div > p {
    width: 100%;
    margin: 14px 0;
    font-size: 13px;
    line-height: 20px;
  }

  .jm-footer .jm-form {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .jm-footer .jm-form .jm-btn {
    width: 170px;
    min-height: 38px;
    align-self: flex-start;
  }

  .jm-legal {
    display: block;
    min-height: 0;
    margin-top: 24px;
    padding-top: 22px;
  }

  .jm-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
    margin-top: 14px;
  }

  .jm-footer__social {
    display: none;
  }

  .jm-page {
    padding: 56px 0;
  }

  .jm-page h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .jm-page h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}



/* 2027 semantic homepage template bridge */
.jm-home-2027 .jm-has-media {
  position: relative;
  overflow: hidden;
}
.jm-home-2027 .jm-has-media figure,
.jm-home-2027 .jm-has-media img {
  display: block !important;
}
.jm-home-2027 .jm-has-media figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.jm-home-2027 .jm-has-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jm-home-2027 .jm-guide__book.jm-has-media::before,
.jm-home-2027 .jm-guide__book.jm-has-media::after {
  display: none;
}
.jm-home-2027 .jm-guide__book.jm-has-media img {
  object-position: center;
}
.jm-home-2027 .jm-about__photo.jm-has-media img {
  object-position: center 24%;
}
.jm-home-2027 .jm-speak__photo.jm-has-media img,
.jm-home-2027 .jm-editorial-slot.jm-has-media img {
  object-position: center;
}
.jm-guide__body {
  width: min(520px, 100%);
  margin: 0;
  color: var(--jm-ivory);
  font-size: 14px;
  line-height: 21px;
}
.jm-content > .jm-themes-section,
.jm-content > .jm-engage-section {
  padding-top: 34px !important;
}
.jm-themes-section > .jm-kicker,
.jm-engage-section > .jm-kicker {
  display: block;
  width: min(var(--jm-wide), calc(100% - 10rem));
  margin: 0 auto 22px;
}
.jm-home-2027 .jm-about__copy .jm-btn--outline {
  min-width: 170px;
  border-color: var(--jm-gold);
  color: var(--jm-gold);
}
.jm-home-2027 .jm-speak__intro > .jm-btn {
  margin-top: 2px;
}
.jm-home-2027 .jm-speak__intro .jm-muted {
  width: min(650px, 100%);
}
@media (min-width: 768px) and (max-width: 1099px) {
  .jm-content > .jm-themes-section,
  .jm-content > .jm-engage-section {
    padding: 24px 40px 44px !important;
  }
  .jm-themes-section > .jm-kicker,
  .jm-engage-section > .jm-kicker {
    width: 100%;
    margin-bottom: 20px;
  }
  .jm-home-2027 .jm-about__copy .jm-btn--outline {
    padding: 11px 16px;
    font-size: 10px;
  }
}
@media (max-width: 767px) {
  .jm-content > .jm-themes-section,
  .jm-content > .jm-engage-section {
    padding: 28px 22px 36px !important;
  }
  .jm-themes-section > .jm-kicker,
  .jm-engage-section > .jm-kicker {
    width: 100%;
    margin-bottom: 18px;
  }
  .jm-guide__body {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Approved full-bleed portrait hero: live text over an art-directed forest blend. */
.jm-home-2027 .jm-hero__grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) !important;
}
.jm-home-2027 .jm-hero__photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: -2;
  min-height: 100% !important;
}
.jm-home-2027 .jm-hero__photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(14, 22, 19, 0.99) 0%, rgba(14, 22, 19, 0.96) 24%, rgba(14, 22, 19, 0.76) 43%, rgba(14, 22, 19, 0.28) 66%, rgba(14, 22, 19, 0.18) 100%),
    linear-gradient(180deg, rgba(14, 22, 19, 0.28) 0%, rgba(14, 22, 19, 0.04) 55%, rgba(14, 22, 19, 0.24) 100%);
  pointer-events: none;
}
.jm-home-2027 .jm-hero__photo img {
  object-position: center 36% !important;
}
.jm-home-2027 .jm-hero__copy {
  position: relative;
  z-index: 1;
  width: min(710px, 100%) !important;
}
.jm-menu-toggle::after {
  content: none !important;
}
.jm-menu-toggle__icon {
  display: block;
  flex: 0 0 24px;
  color: var(--jm-gold);
}

@media (min-width: 768px) and (max-width: 1099px) {
  body .jm-home-2027 .jm-hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }
  .jm-home-2027 .jm-hero__copy {
    width: min(560px, 72%) !important;
    padding: 56px 40px 64px !important;
  }
  .jm-home-2027 .jm-hero__photo img {
    object-position: 58% center !important;
  }
}

@media (max-width: 767px) {
  body .jm-home-2027 .jm-hero__grid {
    display: block !important;
    min-height: 650px;
    padding: 0 !important;
  }
  .jm-home-2027 .jm-hero__copy {
    width: 100% !important;
    min-height: 650px;
    justify-content: flex-end;
    padding: 84px 22px 42px !important;
  }
  .jm-home-2027 .jm-hero__photo {
    display: block !important;
  }
  .jm-home-2027 .jm-hero__photo::after {
    background:
      linear-gradient(180deg, rgba(14, 22, 19, 0.16) 0%, rgba(14, 22, 19, 0.34) 38%, rgba(14, 22, 19, 0.96) 82%, rgba(14, 22, 19, 1) 100%),
      linear-gradient(90deg, rgba(14, 22, 19, 0.64) 0%, rgba(14, 22, 19, 0.1) 100%);
  }
  .jm-home-2027 .jm-hero__photo img {
    object-position: 78% center !important;
  }
  .jm-menu-toggle__icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

/* 2027 final composition corrections — source: approved desktop mockup. */
@media (min-width: 1100px) {
  body .jm-home-2027 .jm-hero {
    width: 100vw !important;
    max-width: none !important;
    min-height: 0 !important;
    margin-left: 50% !important;
    transform: translateX(-50%);
    overflow: hidden !important;
  }

  body .jm-home-2027 .jm-hero__grid {
    width: 100% !important;
    max-width: none !important;
    height: clamp(540px, 61vh, 620px) !important;
    min-height: 540px !important;
    margin: 0 !important;
  }

  body .jm-home-2027 .jm-hero__copy {
    width: min(820px, 60vw) !important;
    max-width: 820px !important;
    min-height: 0 !important;
    justify-content: center !important;
    padding: 42px 0 44px max(72px, calc((100vw - var(--jm-frame)) / 2 + 120px)) !important;
  }

  body .jm-home-2027 .jm-hero__copy h1 {
    width: min(600px, 45vw) !important;
    max-width: 600px !important;
    font-size: clamp(48px, 3.25vw, 64px) !important;
    line-height: 1.06 !important;
  }

  body .jm-home-2027 .jm-hero__copy .jm-lede {
    width: min(520px, 41vw) !important;
    max-width: 520px !important;
  }

  body .jm-home-2027 .jm-hero__photo {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  body .jm-home-2027 .jm-hero__photo::after {
    background:
      linear-gradient(90deg,
        #0E1613 0%,
        rgba(14, 22, 19, 0.98) 22%,
        rgba(14, 22, 19, 0.84) 34%,
        rgba(14, 22, 19, 0.50) 48%,
        rgba(14, 22, 19, 0.14) 63%,
        rgba(14, 22, 19, 0.04) 100%),
      linear-gradient(180deg,
        rgba(14, 22, 19, 0.12) 0%,
        rgba(14, 22, 19, 0) 52%,
        rgba(14, 22, 19, 0.18) 100%) !important;
  }

  body .jm-home-2027 .jm-hero__photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 28% !important;
  }
}

/* Guide signup follows the compact Figma control, not a textarea-like field. */
body .jm-home-2027 .jm-guide__form .jm-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 344px !important;
}

body .jm-home-2027 .jm-guide__form .jm-form input[type="email"] {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border: 1px solid #C7B6A1 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #F3F1EC !important;
  box-shadow: none !important;
}

body .jm-home-2027 .jm-guide__form .jm-form input[type="email"]::placeholder {
  color: rgba(243, 241, 236, 0.82) !important;
  opacity: 1;
}

body .jm-home-2027 .jm-guide__form .jm-form button,
body .jm-home-2027 .jm-guide__form .jm-form .jm-btn {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 0 !important;
}

body .jm-home-2027 .jm-guide__form .jm-fine {
  max-width: 344px !important;
  margin-top: 14px !important;
}

/* Art-directed hero composition, centralized from the approved preview. */
@media (min-width: 768px) {
  body .jm-home-2027 .jm-hero {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body .jm-home-2027 .jm-hero__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 520px !important;
    margin: 0 !important;
  }

  body .jm-home-2027 .jm-hero__copy {
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    width: min(680px, 72vw) !important;
    max-width: 680px !important;
    min-height: 520px !important;
    justify-content: flex-start !important;
    padding: 52px 32px 38px clamp(40px, 6vw, 96px) !important;
  }

  body .jm-home-2027 .jm-hero__copy h1 {
    width: min(640px, 68vw) !important;
    max-width: 640px !important;
    margin-top: 15px !important;
    font-size: clamp(40px, 3.4vw, 48px) !important;
    line-height: 1.06 !important;
    text-wrap: balance !important;
  }

  body .jm-home-2027 .jm-hero__copy .jm-lede {
    width: min(510px, 56vw) !important;
    max-width: 510px !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  body .jm-home-2027 .jm-hero__actions {
    margin-top: 18px !important;
  }

  body .jm-home-2027 .jm-hero__photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
  }

  body .jm-home-2027 .jm-hero__photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

body .jm-home-2027 .jm-guide__form input[type="email"] {
  max-height: 48px !important;
}

/* Individual essays use the approved editorial image set. */
.jm-essay-feature {
  margin: 32px 0 0;
}

.jm-essay-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Keep the desktop hero copy aligned to the centered Figma frame.
   This must follow the broad tablet-and-up hero rules above. */
@media (min-width: 1100px) {
  body .jm-home-2027 .jm-hero__copy {
    width: min(820px, 60vw) !important;
    max-width: 820px !important;
    padding-left: max(120px, calc((100vw - var(--jm-frame)) / 2 + 120px)) !important;
    padding-right: 0 !important;
  }
}

body .jm-home-2027 .jm-hero + .jm-band .jm-split > .jm-editorial-slot.jm-has-media figure,
body .jm-home-2027 .jm-hero + .jm-band .jm-split > .jm-editorial-slot.jm-has-media img {
  display: block !important;
}

/* Interior Writing page: approved photography with a balanced two-by-two card grid. */
.jm-content:not(.jm-home-2027) .jm-essays .jm-essay-card {
  display: flex !important;
  min-height: 0;
  flex-direction: column;
  padding: 0 !important;
  background: var(--jm-ivory);
}

.jm-content:not(.jm-home-2027) .jm-essays .jm-essay-card figure {
  display: block !important;
  height: 220px;
  margin: 0 !important;
}

.jm-content:not(.jm-home-2027) .jm-essays .jm-essay-card img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jm-content:not(.jm-home-2027) .jm-essays .jm-essay-card .jm-kicker {
  margin: 22px 24px 0 !important;
}

.jm-content:not(.jm-home-2027) .jm-essays .jm-essay-card h3 {
  margin: 8px 24px 0 !important;
}

.jm-content:not(.jm-home-2027) .jm-essays .jm-essay-card .jm-muted {
  margin: 12px 24px 0 !important;
}

.jm-content:not(.jm-home-2027) .jm-essays .jm-essay-card .jm-textlink {
  margin: auto 24px 24px !important;
  padding-top: 18px;
}

@media (min-width: 900px) {
  body .jm-content:not(.jm-home-2027) .jm-essays {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }
}

/* Quiet section rhythm: thin warm-stone rules separate adjacent neutral bands. */
body .jm-home-2027 .jm-themes-section,
body .jm-home-2027 .jm-band--ideas,
body .jm-home-2027 .jm-engage-section {
  border-top: 1px solid rgba(117, 105, 91, 0.28) !important;
}

body .jm-home-2027 .jm-heart-continuity {
  background: #F3F1EC;
}

/* Search results and empty-state form */
.jm-page .search-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: min(100%, 640px);
  margin-top: 24px;
}

.jm-page .search-form label {
  flex: 1 1 auto;
  margin: 0;
}

.jm-page .search-field {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(43, 58, 52, 0.35);
  border-radius: 2px;
  background: #fff;
  color: var(--jm-charcoal);
  font: inherit;
}

.jm-page .search-field:focus-visible {
  outline: 2px solid var(--jm-gold);
  outline-offset: 2px;
  border-color: var(--jm-forest);
}

.jm-page .search-submit {
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--jm-forest);
  border-radius: 2px;
  background: var(--jm-forest);
  color: var(--jm-ivory);
  font: 600 13px/1 var(--jm-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.jm-page .search-submit:hover,
.jm-page .search-submit:focus-visible {
  background: var(--jm-deep);
}

@media (max-width: 600px) {
  .jm-page .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .jm-page .search-submit {
    width: 100%;
  }
}
