/*
 * JRS Centre Home: styles for the International Centre for Resistance Studies home page.
 * Loaded on the home page only (mu-plugin jrs-home.php). Tokens only from tokens-jrs.css.
 * Design: the "Centre Home Page" canvas agreed with Monica, 2026-10-14.
 * Source of truth: Workflows/jrs-site/bricks/install/jrs-home.css
 */

/* ------------------------------------------------------------------ HERO */
section.jrs-hhero { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; }
.jrs-hhero__stage { position: relative; min-height: 760px; display: flex; flex-direction: column; align-items: stretch; }
.jrs-hhero__grid { position: relative; z-index: 1; padding-block: 104px 140px; }
.jrs-hhero__text { max-width: 540px; align-self: flex-start; }
.jrs-hhero__title { margin: 0; color: var(--black); font-size: clamp(3.25rem, 2.2rem + 3.6vw, 5.5rem); line-height: .98; letter-spacing: -0.02em; font-weight: 700; }
.jrs-hhero__pre { display: block; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.875rem); line-height: 1.2; letter-spacing: 0; font-weight: 600; }
.jrs-hhero__lead { font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--black); }
.jrs-hhero__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-s); }



/* The ticker under the hero */
.jrs-ticker { background: var(--black); color: var(--brand); overflow: hidden; white-space: nowrap; }
.jrs-ticker__track { display: inline-flex; flex-direction: row; align-items: center; gap: 40px; padding: 18px 0 18px 40px; width: max-content; animation: jrs-ticker 40s linear infinite; }
.jrs-ticker__item { margin: 0; font-weight: 600; font-size: 1.125rem; display: inline-flex; align-items: center; gap: 40px; }
.jrs-ticker__item::after { content: ""; width: 9px; height: 9px; background: var(--white); border-radius: 0 100% 0 100%; transform: rotate(-45deg); }
@keyframes jrs-ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
	.jrs-hhero__grid { padding-block: 72px 120px; }
}
@media (prefers-reduced-motion: reduce) {
	.jrs-ticker__track { animation: none; }
}

/* ------------------------------------------------------------------ WHAT THE CENTRE DOES */
.jrs-hpillars { display: grid; grid-template-columns: var(--grid-auto-s); gap: var(--grid-gap); align-items: stretch; }
.jrs-hpillars > .jrs-hpillar { height: 100%; }
.jrs-hpillar { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); padding: var(--space-m); border: var(--box-quiet); border-top: 6px solid var(--brand); color: var(--ink); text-decoration: none; }
.jrs-hpillar:hover { border-color: var(--brand-deep); border-top-color: var(--brand); }
.jrs-hpillar__icon { color: var(--brand-deep); font-size: 2rem; }
.jrs-hpillar__title { margin: 0; font-size: var(--h4); color: var(--ink); }
.jrs-hpillar__text { margin: 0; font-size: var(--text-meta); line-height: var(--lh-meta); }
.jrs-hpillar__more { margin-top: auto; font-weight: 600; color: var(--brand-deep); font-size: var(--text-meta); }

/* ------------------------------------------------------------------ NETWORK: screenshot in a browser frame */
.jrs-shot { margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-xs); }
.jrs-shot__frame { border-radius: var(--box-radius); overflow: hidden; background: var(--white); box-shadow: 0 16px 36px rgba(31,45,32,.18); padding-top: 28px; position: relative; }
.jrs-shot__frame::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 28px; background: var(--neutral-300); }
.jrs-shot__frame::after { content: ""; position: absolute; top: 9px; left: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-400); box-shadow: 16px 0 0 var(--neutral-400), 32px 0 0 var(--neutral-400); }
.jrs-shot__frame img { display: block; width: 100%; height: auto; }
.jrs-shot__caption { margin: 0; font-size: var(--text-meta); color: var(--neutral-600); }

/* ------------------------------------------------------------------ BECOME A MEMBER (on --ink) */
.jrs-hjoin__benefits { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; color: var(--white); font-size: var(--text-meta); }
.jrs-hjoin__benefits > * { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.jrs-hjoin__benefits > *::before { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 0 100% 0 100%; transform: rotate(-45deg); flex: none; }
.jrs-hprices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-s); align-items: stretch; }
.jrs-hprices > .jrs-hprice { height: 100%; }
.jrs-hprice .jrs-hprice__cta { margin-top: auto; }
.jrs-hprice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--space-m); border: 1px solid var(--neutral-600); border-radius: var(--box-radius); color: var(--grey); text-decoration: none; }
.jrs-hprice__label { margin: 0; font-size: var(--text-micro); font-weight: var(--fw-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--brand); }
.jrs-hprice__from { margin: 0; font-size: var(--text-meta); }
.jrs-hprice__amount { margin: 0; font-size: 2.25rem; font-weight: 700; line-height: 1.1; color: var(--white); }
.jrs-hprice__note { margin: 0; font-size: var(--text-meta); color: var(--neutral-300); }
.jrs-hprice--feature { background: var(--brand); border-color: var(--brand); color: var(--black); }
.jrs-hprice--feature .jrs-hprice__label { color: var(--black); }
.jrs-hprice--feature .jrs-hprice__amount,
.jrs-hprice--feature .jrs-hprice__note { color: var(--black); }

/* ------------------------------------------------------------------ WHAT'S NEW: two white panels on --brand */
.jrs-hnew { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--grid-gap); align-items: stretch; }
.jrs-hnew__panel { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-s); color: var(--ink); }
.jrs-ws { display: flex; flex-direction: column; gap: 4px; padding: var(--space-xs) 0; border-bottom: var(--rule-hairline); text-decoration: none; color: var(--ink); }
.jrs-ws__topic { margin: 0; font-size: var(--text-micro); font-weight: var(--fw-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--brand-deep); }
.jrs-ws__title { margin: 0; font-size: var(--h4); line-height: 1.35; font-weight: 600; color: var(--ink); }
.jrs-ws__date { margin: 0; font-size: var(--text-meta); color: var(--neutral-600); }



/* Newsletter band: the footer newsletter form, styled exactly as in the footer (rules copied from jrs-footer.css, rescoped) */
.jrs-hnews .jrs-foot-form .jet-form-builder {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  row-gap: 8px;
}
.jrs-hnews .jrs-foot-form .hidden-field,
.jrs-hnews .jrs-foot-form .jfb-user-info,
.jrs-hnews .jrs-foot-form .jet-form-builder__label { display: none; }

/* The base sheet sets `.jet-form-builder-row { width: 100% }`, which makes
   both rows fill the line and wrap however the flex basis is set. Width has
   to come off before flex can do anything. */
.jrs-hnews .jrs-foot-form .field-type-text-field { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }
.jrs-hnews .jrs-foot-form .field-type-submit-field { flex: 0 0 auto; width: auto; margin: 0; }
.jrs-hnews .jrs-foot-form .jet-form-builder-messages-wrap { flex: 1 0 100%; }
.jrs-hnews .jrs-foot-form .jet-form-builder__field-wrap { height: 100%; }

.jrs-hnews .jrs-foot-form input[type="email"],
.jrs-hnews .jrs-foot-form input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: transparent;
  color: var(--white);
  border: 1px solid #3A3A3A;
  border-right: 0;
  border-radius: 0;
}
.jrs-hnews .jrs-foot-form input[type="email"]::placeholder,
.jrs-hnews .jrs-foot-form input[type="text"]::placeholder { color: var(--on-black-mute); }

/* The Subscribe button gets the site's split wipe like every other button. */
.jrs-hnews .jrs-foot-form .jet-form-builder__submit,
.jrs-hnews .jrs-foot-form button[type="submit"] {
  height: 48px;
  width: auto;
  padding: 0 26px;
  background-color: var(--brand);
  background-image:
    linear-gradient(var(--primary-hover), var(--primary-hover)),
    linear-gradient(var(--primary-hover), var(--primary-hover));
  background-repeat: no-repeat;
  background-position: left top, right bottom;
  background-size: 0% 50%, 0% 50%;
  transition: background-size var(--motion-enter) var(--motion-ease),
              color var(--motion-fast) var(--motion-ease);
}
.jrs-hnews .jrs-foot-form .jet-form-builder__submit:hover,
.jrs-hnews .jrs-foot-form button[type="submit"]:hover {
  background-color: var(--brand);
  background-size: 100% 50%, 100% 50%;
  color: var(--white);
}

@media (max-width: 420px) {
  .jrs-hnews .jrs-foot-form .field-type-text-field,
  .jrs-hnews .jrs-foot-form .field-type-submit-field { flex: 1 0 100%; width: 100%; }
  .jrs-hnews .jrs-foot-form input[type="email"] { border-right: 1px solid #3A3A3A; }
  .jrs-hnews .jrs-foot-form .jet-form-builder__submit { width: 100%; }
}

/* ---------------------------------------------------------------

/* ------------------------------------------------------------------ ROOTS HERO (4 Nov 2026)
 * Photo: Unsplash mxxagbVu7Pg, tinted with --brand-deep. Files travel with this stylesheet in
 * jrs-design-system/img/, so the paths hold on staging and live. To go back to the tree: delete
 * this block and the pollen rules, and restore page 16097 from option jrs_home_tree_bak_20261104. */
.jrs-hhero__stage { background: var(--brand-deep) url(img/icrs-hero-roots-phone.webp) center / cover no-repeat; background-blend-mode: multiply; }
@media (min-width: 700px) { .jrs-hhero__stage { background-image: url(img/icrs-hero-roots-1920.webp); } }
@media (min-width: 1600px), (min-width: 1000px) and (min-resolution: 1.5dppx) { .jrs-hhero__stage { background-image: url(img/icrs-hero-roots-3840.webp); } }

.jrs-hhero .jrs-hero__eyebrow, .jrs-hhero .jrs-hhero__title, .jrs-hhero .jrs-hhero__pre, .jrs-hhero .jrs-hhero__lead { color: var(--white); }
.jrs-hhero .jrs-btn:not(.jrs-btn--ghost) { background-color: var(--brand); color: var(--black); background-image: linear-gradient(var(--white), var(--white)), linear-gradient(var(--white), var(--white)); }
.jrs-hhero .jrs-btn:not(.jrs-btn--ghost):hover { color: var(--black); }
.jrs-hhero .jrs-btn--ghost { background-color: transparent; color: var(--white); border-color: var(--white); background-image: linear-gradient(var(--white), var(--white)), linear-gradient(var(--white), var(--white)); }
.jrs-hhero .jrs-btn--ghost:hover { color: var(--black); }

/* The stage replaces the band as the box around the grid, so it carries the same side gutter */
.jrs-hhero__stage { padding-inline: var(--jrs-gutter); }
/* Phones: a responsive rule was wrapping the ticker into a tall column; it stays one moving line */
.jrs-ticker .jrs-ticker__track { display: inline-flex; flex-wrap: nowrap; width: max-content; max-width: none; }
.jrs-ticker .jrs-ticker__item { flex: 0 0 auto; width: auto; max-width: none; white-space: nowrap; }

/* Pollen drifting over the photo (jrs-home-pollen.js), fading out before it reaches the text */
.jrs-hhero__stage .jrs-hhero__art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.jrs-pollen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(to right, transparent 47%, #000 62%); mask-image: linear-gradient(to right, transparent 47%, #000 62%); }
@media (max-width: 900px) {
	.jrs-pollen { -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 72%); mask-image: linear-gradient(to bottom, transparent 55%, #000 72%); }
}

/* The ticker: light green, with a glowing dot like the pollen in the hero as its separator */
.jrs-hhero .jrs-ticker { background: var(--brand); color: var(--black); }
.jrs-ticker .jrs-ticker__item::after { width: 8px; height: 8px; background: var(--white); border-radius: 50%; transform: none; box-shadow: 0 0 8px 3px rgba(255, 255, 255, .7); }

/* What's new. Web series: image tiles with a dark overlay, newest large. The image comes from the
 * network post through the --ws-img attribute on the tile (listing 16094). */
.jrs-hnew a.jrs-ws { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; aspect-ratio: 16 / 10; padding: var(--space-s); border: 0; overflow: hidden; background: linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, .82)), var(--ws-img, none) center / cover no-repeat, var(--brand-deep); }
.jrs-hnew a.jrs-ws:hover .jrs-ws__title { text-decoration: underline; }
.jrs-hnew a.jrs-ws:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.jrs-hnew .jrs-ws__topic, .jrs-hnew .jrs-ws__date { color: var(--brand-soft); }
.jrs-hnew .jrs-ws__title { color: var(--white); font-size: 1.125rem; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__items { display: grid; grid-template-columns: 1fr; gap: 12px; }
.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item { width: auto; max-width: none; padding: 0; flex: none; }
@media (min-width: 901px) {
	.jrs-hnew { grid-template-columns: 3fr 2fr; }
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__items { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; align-content: start; }
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item:first-child { grid-row: span 2; }
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item:first-child a.jrs-ws { aspect-ratio: auto; min-height: 100%; }
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item:first-child .jrs-ws__title { font-size: 1.5rem; line-height: 1.2; }
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item:not(:first-child) a.jrs-ws { aspect-ratio: 1 / 1; padding: 10px; }
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item:not(:first-child) .jrs-ws__title { font-size: .875rem; -webkit-line-clamp: 3; }
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item:not(:first-child) .jrs-ws__topic,
	.jrs-hnew__panel:has(.jrs-ws) .jet-listing-grid__item:not(:first-child) .jrs-ws__date { font-size: .75rem; }
}
/* Upcoming: the 16:9 event card across the top of each entry (2026-11-11) */
.jrs-hnew .jrs-ev:has(.jrs-ev__img) { grid-template-columns: 68px 1fr; }
.jrs-hnew .jrs-ev__img { grid-column: 1 / -1; grid-row: 1; }
.jrs-hnew .jrs-ev__img, .jrs-hnew .jrs-ev__imgi, .jrs-hnew .jrs-ev__imgi img { width: 100%; height: auto; max-width: none; }
