/*
Theme Name: The Jewish Majority
Author: The Jewish Majority
Description: A clean, accessible advocacy theme created for The Jewish Majority.
Version: 1.6.1
Text Domain: jewish-majority
*/

:root {
  --jm-navy: #101e47;
  --jm-blue: #0a007e;
  --jm-teal: #00a9a5;
  --jm-ink: #172033;
  --jm-muted: #5f6877;
  --jm-wash: #f3f6fb;
  --jm-white: #fff;
  --jm-border: #dfe5ef;
  --jm-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--jm-ink); background: var(--jm-white); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.65; }
a { color: var(--jm-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--jm-teal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #f2c94c; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.jm-wrap { width: min(calc(100% - 40px), var(--jm-max)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16,30,71,.97); border-bottom: 3px solid var(--jm-teal); }
.site-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: inline-flex; align-items: center; color: white; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 21px; }
.site-branding img { width: 250px; max-height: 62px; object-fit: contain; object-position: left center; }
.primary-menu { display: flex; align-items: center; gap: 23px; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu a { color: white; text-decoration: none; font-size: 15px; font-weight: 700; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: #7de1dc; }
.primary-menu .menu-item-has-children > a::after { content: "\25BE"; margin-left: 6px; font-size: 11px; }
.primary-menu .sub-menu { display: none; position: absolute; top: calc(100% + 12px); left: -18px; min-width: 330px; margin: 0; padding: 10px 0; list-style: none; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: var(--jm-navy); box-shadow: 0 14px 34px rgba(0,0,0,.23); }
.primary-menu .sub-menu::before { content: ""; position: absolute; inset: -13px 0 auto; height: 13px; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 9px 18px; white-space: nowrap; }
.primary-menu .sub-menu .jm-menu-section-label { display: block; margin: 7px 18px 3px; padding: 8px 0 4px; border-bottom: 1px solid rgba(255,255,255,.25); color: #79dfd8; font-size: 12px; font-weight: 800; letter-spacing: .11em; line-height: 1.35; text-transform: uppercase; }
.primary-menu .sub-menu .jm-menu-heading:first-child .jm-menu-section-label { margin-top: 0; }
.primary-menu > li > a[href*="lp.constantcontactpages.com"] { padding: 9px 14px; border: 2px solid white; background: white; color: var(--jm-navy); }
.primary-menu > li > a[href*="lp.constantcontactpages.com"]:hover, .primary-menu > li > a[href*="lp.constantcontactpages.com"]:focus { background: #edf3ff; color: var(--jm-blue); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.5); background: transparent; color: white; padding: 8px 11px; border-radius: 5px; font: inherit; }
.submenu-toggle { display: none; }

.jm-hero { position: relative; overflow: hidden; color: white; background: linear-gradient(122deg, #101e47 0%, #183990 60%, #126f82 100%); padding: 96px 0 88px; }
.jm-hero::after { content: ""; position: absolute; inset: auto -10% -55% 40%; height: 420px; border: 74px solid rgba(255,255,255,.06); border-radius: 50%; }
.jm-hero__content { position: relative; z-index: 1; max-width: 850px; }
.jm-kicker { margin: 0 0 14px; color: #79dfd8; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; font-size: 14px; }
.jm-hero h1 { margin: 0; max-width: 820px; font-size: clamp(43px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.045em; }
.jm-hero__lede { margin: 25px 0 0; max-width: 760px; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.52; color: #edf3ff; }
.jm-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.jm-button { display: inline-block; padding: 12px 20px; border: 2px solid #ebebed; border-radius: 0; background: var(--jm-blue); color: #ebebed; text-decoration: none; font-weight: 800; }
.jm-button:hover { background: #2117a3; border-color: #fff; color: #fff; }
.jm-button--ghost { background: transparent; color: white; border-color: white; }
.jm-button--ghost:hover { background: white; color: var(--jm-navy); border-color: white; }

.jm-section { padding: 76px 0; }
.jm-section--wash { background: var(--jm-wash); }
.jm-section__heading { max-width: 760px; margin-bottom: 34px; }
.jm-section h2, .entry-header h1 { margin: 0 0 14px; color: var(--jm-navy); font-size: clamp(33px, 4vw, 50px); line-height: 1.1; letter-spacing: -.035em; }
.jm-section__heading p { margin: 0; color: var(--jm-muted); font-size: 19px; }
.jm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.jm-card { padding: 28px; border: 1px solid var(--jm-border); border-top: 5px solid var(--jm-teal); border-radius: 7px; background: white; box-shadow: 0 11px 32px rgba(16,30,71,.07); }
.jm-card h3 { margin: 0 0 10px; color: var(--jm-navy); font-size: 23px; line-height: 1.25; }
.jm-card p { color: var(--jm-muted); }
.jm-card__link { font-weight: 800; }
.jm-callout { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 42px; padding: 44px; border-radius: 9px; color: white; background: var(--jm-navy); }
.jm-callout h2 { color: white; }
.jm-callout p { color: #e8edfa; }

.jm-about { background: white; }
.jm-about-hero { position: relative; overflow: hidden; padding: 94px 0 88px; background: linear-gradient(122deg, #101e47 0%, #183990 62%, #126f82 100%); color: white; }
.jm-about-hero::after { content: ""; position: absolute; right: -110px; bottom: -220px; width: 560px; height: 560px; border: 82px solid rgba(255,255,255,.065); border-radius: 50%; }
.jm-about-hero__inner { position: relative; z-index: 1; }
.jm-about-hero h1 { max-width: 900px; margin: 0; color: white; font-size: clamp(43px, 6vw, 72px); line-height: 1.03; letter-spacing: -.045em; }
.jm-about-hero__lede { max-width: 790px; margin: 25px 0 0; color: #edf3ff; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.52; }
.jm-button--light { background: white; border-color: white; color: var(--jm-navy); }
.jm-button--light:hover { background: #edf3ff; border-color: #edf3ff; color: var(--jm-blue); }
.jm-kicker--dark { color: #087e7c; }
.jm-about-mission__grid { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); gap: clamp(42px, 8vw, 105px); align-items: start; }
.jm-about-mission h2, .jm-about-work h2 { margin: 0; color: var(--jm-navy); font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -.035em; }
.jm-about-mission__copy p { max-width: 720px; margin: 0 0 20px; color: var(--jm-muted); font-size: 18px; }
.jm-about-mission__copy .jm-about-lead { color: var(--jm-ink); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.45; }
.jm-proof { border-block: 1px solid var(--jm-border); background: #fff; }
.jm-proof__inner { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); gap: 18px 54px; align-items: center; padding-block: 35px; }
.jm-proof .jm-kicker { margin-bottom: 5px; }
.jm-proof h2 { margin: 0; color: var(--jm-navy); font-size: clamp(22px, 2.4vw, 31px); line-height: 1.18; letter-spacing: -.025em; }
.jm-proof__outlets { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; color: #46516a; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; font-weight: 700; }
.jm-proof__link { grid-column: 2; width: max-content; font-size: 15px; font-weight: 800; }
.jm-about-principles .jm-card { position: relative; min-height: 240px; padding-top: 34px; }
.jm-about-principles .jm-card h3 { font-size: 27px; }
.jm-about-principles .jm-card p { margin-bottom: 0; }
.jm-about-work__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(45px, 8vw, 110px); align-items: start; }
.jm-about-work__intro > p:last-child { max-width: 570px; color: var(--jm-muted); font-size: 19px; }
.jm-about-steps { margin: 0; padding: 0; list-style: none; }
.jm-about-steps li { display: grid; grid-template-columns: minmax(100px, .35fr) minmax(0, 1fr); gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--jm-border); }
.jm-about-steps li:first-child { padding-top: 0; }
.jm-about-steps strong { color: var(--jm-navy); font-size: 21px; }
.jm-about-steps strong a { color: inherit; text-decoration: none; }
.jm-about-steps strong a:hover, .jm-about-steps strong a:focus { color: var(--jm-teal); text-decoration: underline; text-underline-offset: 3px; }
.jm-about-steps span { color: var(--jm-muted); }
.jm-about-cta { padding-top: 26px; }
.jm-about-cta .jm-callout { position: relative; overflow: hidden; }
.jm-about-cta__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.site-main { min-height: 55vh; }
.entry-shell { width: min(calc(100% - 40px), 900px); margin: 66px auto 90px; }
.entry-header { padding-bottom: 24px; border-bottom: 3px solid var(--jm-teal); }
.entry-content { margin-top: 34px; }
.entry-content h2, .entry-content h3 { color: var(--jm-navy); line-height: 1.22; }
.entry-content h2 { margin-top: 45px; font-size: 34px; }
.entry-content h3 { margin-top: 32px; font-size: 25px; }
.entry-content p, .entry-content li { max-width: 78ch; }
.entry-content .wp-block-button__link { background: var(--jm-blue); border: 2px solid #ebebed; border-radius: 0; color: #ebebed; }
.jm-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 40px; }
.jm-content-card { padding: 24px; border: 1px solid var(--jm-border); border-top: 4px solid var(--jm-teal); border-radius: 7px; background: #fff; box-shadow: 0 8px 24px rgba(16,30,71,.06); }
.jm-content-card h2, .jm-content-card h3 { margin: 0 0 10px; font-size: 24px; }
.jm-content-card p { margin: 8px 0 18px; color: var(--jm-muted); }
.jm-press-list { display: grid; gap: 12px; margin-top: 26px; }
.jm-press-item { margin: 0; padding: 18px 20px; border: 1px solid var(--jm-border); border-radius: 6px; background: #fff; }
.jm-publication { display: block; margin-bottom: 2px; color: var(--jm-muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jm-press-item a { font-size: 18px; font-weight: 700; }
.jm-press-year { margin: 30px 0 3px !important; padding-bottom: 10px; border-bottom: 3px solid var(--jm-teal); font-size: 30px !important; }
.jm-press-year:first-child { margin-top: 0 !important; }
.jm-embed { width: 100%; height: 620px; min-height: 0; border: 1px solid var(--jm-border); border-radius: 6px; background: var(--jm-wash); }
.jm-social-block { margin: 28px 0 52px; }
.jm-feed-disclosure { margin: 24px 0 52px; border: 1px solid var(--jm-border); border-radius: 7px; background: white; box-shadow: 0 8px 24px rgba(16,30,71,.06); }
.jm-feed-disclosure summary { cursor: pointer; padding: 17px 20px; color: var(--jm-navy); font-weight: 800; }
.jm-feed-disclosure[open] summary { border-bottom: 1px solid var(--jm-border); }
.jm-feed-disclosure .jm-embed { display: block; border: 0; border-radius: 0 0 7px 7px; }
.jm-numbered-heading { margin-top: 38px !important; padding: 12px 16px; border-left: 6px solid var(--jm-teal); background: var(--jm-wash); }
.jm-memo-download { display: block; max-width: 680px; margin: 26px 0 14px; border: 1px solid var(--jm-border); }
.jm-memo-download img { display: block; width: 100%; }
.jm-social-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 30px; }
.jm-social-links form { margin: 0; }
.jm-social-links .jm-button { height: 100%; }
.jm-poll-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 42px; }
.jm-poll-doc { display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; border: 1px solid var(--jm-border); background: #fff; color: var(--jm-navy); text-decoration: none; box-shadow: 0 7px 22px rgba(16,30,71,.07); }
.jm-poll-doc img { display: block; width: 100%; height: 132px; object-fit: contain; background: #fff; }
.jm-poll-doc span { display: block; padding: 13px 15px; background: var(--jm-blue); color: #ebebed; font-weight: 800; }
.jm-poll-doc--text { min-height: 132px; align-items: center; justify-content: center; padding-top: 36px; background: var(--jm-wash); }
.jm-poll-doc--text span { width: 100%; margin-top: auto; }
.jm-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 28px 0 44px; }
.jm-archive-card { overflow: hidden; border: 1px solid var(--jm-border); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(16,30,71,.06); }
.jm-archive-card { display: flex; flex-direction: column; }
.jm-archive-card a { color: var(--jm-navy); text-decoration: none; }
.jm-archive-card__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: 10px; box-sizing: border-box; background: var(--jm-wash); overflow: hidden; isolation: isolate; }
.jm-archive-card__image { display: block; width: 82%; height: 66%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.jm-archive-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 20px; }
.jm-archive-card h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.jm-archive-card__reposts { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--jm-border); color: #4c566e; font-size: 14px; line-height: 1.5; }
.jm-archive-card__reposts a { color: var(--jm-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.jm-poll-card { position: relative; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.jm-poll-card:hover { transform: translateY(-3px); border-color: var(--jm-teal); box-shadow: 0 13px 30px rgba(16,30,71,.12); }
.jm-poll-card h2 a::after { content: ""; position: absolute; inset: 0; }
.jm-poll-card .jm-archive-card__body::after { content: "Explore polling \2192"; margin-top: 15px; color: var(--jm-blue); font-size: 14px; font-weight: 800; }
.jm-poll-card:focus-within { outline: 3px solid rgba(0,169,165,.32); outline-offset: 3px; }
.jm-donate-hero { position: relative; overflow: hidden; margin: -34px 0 34px; padding: 38px 42px 40px; border-radius: 8px; background: linear-gradient(125deg, var(--jm-navy) 0%, #183990 68%, #126f82 100%); color: white; }
.jm-donate-hero::after { content: ""; position: absolute; right: -85px; bottom: -125px; width: 280px; height: 280px; border: 48px solid rgba(255,255,255,.07); border-radius: 50%; }
.jm-donate-hero h2 { position: relative; z-index: 1; max-width: 700px; margin: 0 0 16px; color: white; font-size: clamp(34px, 4.7vw, 52px); letter-spacing: -.04em; }
.jm-donate-hero > p:last-child { position: relative; z-index: 1; max-width: 720px; margin: 0; color: #edf3ff; font-size: 19px; }
.jm-donate-kicker { position: relative; z-index: 1; margin: 0 0 10px; color: #79dfd8; font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.jm-donate-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; align-items: start; }
.jm-donate-form-card, .jm-donate-details { border: 1px solid var(--jm-border); border-radius: 8px; background: white; box-shadow: 0 11px 32px rgba(16,30,71,.07); }
.jm-donate-form-card { padding: 30px 32px 34px; border-top: 5px solid var(--jm-teal); }
.jm-donate-details { padding: 30px; background: var(--jm-wash); }
.entry-content .jm-donate-form-card h2, .entry-content .jm-donate-details h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.02em; }
.jm-donate-form-card > p { margin: 0 0 22px; color: var(--jm-muted); }
.jm-donate-widget { width: 100%; margin: 0 0 18px; }
.jm-donate-widget givebutter-widget { display: block; width: 100%; }
.jm-donate-form-card .jm-button { font-size: 14px; }
.jm-impact-list { display: grid; gap: 0; margin: 22px 0 30px; padding: 0; list-style: none; }
.jm-impact-list li { position: relative; padding: 0 0 19px 22px; border-left: 3px solid var(--jm-teal); }
.jm-impact-list li:last-child { padding-bottom: 0; }
.jm-impact-list li::before { content: ""; position: absolute; top: 7px; left: -7px; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: var(--jm-teal); }
.jm-impact-list strong, .jm-impact-list span { display: block; }
.jm-impact-list strong { color: var(--jm-navy); font-size: 18px; }
.jm-impact-list span { margin-top: 2px; color: var(--jm-muted); font-size: 15px; line-height: 1.5; }
.jm-donate-alternate { padding-top: 24px; border-top: 1px solid #cfd7e5; }
.entry-content .jm-donate-alternate h3 { margin: 0 0 12px; font-size: 20px; }
.jm-donate-alternate p { margin: 8px 0; color: #4d586c; font-size: 15px; line-height: 1.55; }
.jm-contact-form { max-width: 680px; }
.jm-contact-form label { color: var(--jm-navy); font-weight: 700; }
.jm-contact-form input, .jm-contact-form textarea { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #b7c0d0; border-radius: 4px; background: white; color: var(--jm-ink); font: inherit; }
.jm-contact-form input:focus, .jm-contact-form textarea:focus { outline: 3px solid rgba(0,169,165,.2); border-color: var(--jm-teal); }
.jm-contact-form .jm-hp { display: none !important; position: absolute; left: -9999px; }
.jm-form-notice { padding: 14px 16px; border-left: 5px solid var(--jm-teal); background: #edfafa; }
.jm-form-notice--error { border-left-color: #b3261e; background: #fff0ef; }

.jm-404 { max-width: 760px; padding: 92px 0 110px; text-align: center; }
.jm-404 .jm-kicker { color: #087e7c; }
.jm-404 h1 { margin: 0 0 18px; color: var(--jm-navy); font-size: clamp(42px, 6vw, 68px); line-height: 1.05; letter-spacing: -.04em; }
.jm-404 > p { max-width: 620px; margin: 0 auto; color: var(--jm-muted); font-size: 19px; }
.jm-404 .jm-actions { justify-content: center; }

.site-footer { padding: 50px 0 30px; color: #dce4f4; background: #0b1531; }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: start; }
.site-footer a { color: white; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__small { margin-top: 35px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; color: #aebbd3; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .primary-navigation { display: none; position: absolute; inset: 82px 0 auto; padding: 18px 20px 25px; background: var(--jm-navy); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 3px; }
  .primary-menu a { display: block; padding: 10px 0; }
  .primary-menu .sub-menu { display: none; position: static; min-width: 0; padding: 0 0 5px 18px; border: 0; box-shadow: none; }
  .primary-menu .submenu-open > .sub-menu { display: block; }
  .primary-menu .sub-menu a { padding: 8px 0; white-space: normal; }
  .primary-menu > li > a[href*="lp.constantcontactpages.com"] { display: inline-block; margin-top: 7px; padding: 9px 14px; }
  .submenu-toggle { display: block; position: absolute; top: 4px; right: 0; width: 42px; height: 42px; border: 0; background: transparent; color: white; font-size: 24px; line-height: 1; }
  .jm-proof__inner { grid-template-columns: 1fr; gap: 18px; }
  .jm-proof__link { grid-column: 1; }
  .jm-grid { grid-template-columns: 1fr; }
  .jm-content-grid { grid-template-columns: 1fr; }
  .jm-about-mission__grid, .jm-about-work__grid { grid-template-columns: 1fr; gap: 34px; }
  .jm-about-principles .jm-card { min-height: 0; }
  .jm-about-cta__actions { justify-content: flex-start; }
  .jm-poll-docs { grid-template-columns: 1fr; }
  .jm-archive-grid { grid-template-columns: 1fr; }
  .jm-donate-layout { grid-template-columns: 1fr; }
  .jm-callout { grid-template-columns: 1fr; padding: 30px; }
}

@media (max-width: 520px) {
  .jm-wrap, .entry-shell { width: min(calc(100% - 28px), var(--jm-max)); }
  .site-branding img { width: 190px; }
  .jm-hero { padding: 72px 0 66px; }
  .jm-about-hero { padding: 70px 0 64px; }
  .jm-about-steps li { grid-template-columns: 1fr; gap: 6px; }
  .jm-section { padding: 55px 0; }
  .jm-donate-hero { margin-top: -20px; padding: 30px 24px 32px; }
  .jm-donate-form-card, .jm-donate-details { padding: 24px 20px 28px; }
}
