/* ==========================================================================
   ETM Tabernacle — Components (block adapters)

   The look of every component is the approved reference, ported without
   change into reference.css (tools/port-reference-css.py), which loads first.
   That file also gives the registered block styles (is-style-etm-band-*,
   -card, -notice-*, -empty, -external-panel, -scripture, -name-list and the
   type styles) the reference declarations of the class they stand for, and
   gives a Query Loop's <li class="wp-block-post"> the .etm-row rules.

   This file holds only what block markup needs on top of that: places where
   a core block prints different elements from the reference (a button's
   wrapper, a list where the reference had a paragraph, ::before where it had
   a <span> or an inline SVG), and the few components the reference never
   drew (the live player, the audio element). No value here restates a
   reference rule. Tokens only.
   ========================================================================== */

/* ==== Icons drawn in CSS (core blocks cannot carry inline SVG) ========== */
:root {
  --etm-icon-info:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.6h.01'/%3E%3C/svg%3E");
  --etm-icon-headphones: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='2' y='14' width='5' height='7' rx='2'/%3E%3Crect x='17' y='14' width='5' height='7' rx='2'/%3E%3C/svg%3E");
  --etm-icon-external:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E");
  --etm-icon-calendar:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3.5v3M16 3.5v3'/%3E%3C/svg%3E");
  --etm-icon-heart:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.6-7-9.5A4.5 4.5 0 0 1 12 8a4.5 4.5 0 0 1 7 2.5C19 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --etm-icon-image:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m5 18 4.5-4.5 3 3L16 13l3.5 3.5'/%3E%3C/svg%3E");
}

/* A Button block with an icon class: the mark sits before the label, 18px,
   in the label's colour — the reference's <svg class="etm-icon"> in a button. */
.wp-block-button[class*="etm-icon--"] .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--2);
}
.wp-block-button[class*="etm-icon--"] .wp-block-button__link::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--etm-icon-mask) center / contain no-repeat;
  mask: var(--etm-icon-mask) center / contain no-repeat;
}
.etm-icon--play       { --etm-icon-mask: var(--etm-icon-play); }
.etm-icon--headphones { --etm-icon-mask: var(--etm-icon-headphones); }
.etm-icon--external   { --etm-icon-mask: var(--etm-icon-external); }
.etm-icon--calendar   { --etm-icon-mask: var(--etm-icon-calendar); }
.etm-icon--heart      { --etm-icon-mask: var(--etm-icon-heart); }
.etm-icon--image      { --etm-icon-mask: var(--etm-icon-image); }

/* A notice group: the reference's leading info icon. */
.is-style-etm-notice::before,
.is-style-etm-notice-info::before,
.is-style-etm-notice-success::before,
.is-style-etm-notice-warm::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  background: currentColor;
  -webkit-mask: var(--etm-icon-info) center / contain no-repeat;
  mask: var(--etm-icon-info) center / contain no-repeat;
}

/* The gold rules: reference.css carries their size and colour. */
.etm-section-head::before,
.etm-section-head--split > :first-child::before,
.etm-page-hero__inner::before { content: ""; }
.etm-section-head--split::before { content: none; }

/* ==== Page content made of bands ======================================== */
/* A seeded page body is a run of full-width sections inside Post Content,
   where the block gap is otherwise kept for editorial text. */
.wp-block-post-content > .alignfull { margin-block-start: 0; }

/* ==== Buttons: block styles on dark grounds (M3) ======================== */
.is-style-etm-band-ink .is-style-etm-accent .wp-block-button__link,
.is-style-etm-band-ink-deep .is-style-etm-accent .wp-block-button__link,
.etm-band--ink .is-style-etm-accent .wp-block-button__link,
.etm-band--ink-deep .is-style-etm-accent .wp-block-button__link {
  background: var(--wp--custom--action--accent);
  color: var(--wp--custom--action--on-accent);
}
.is-style-etm-band-ink .is-style-etm-secondary .wp-block-button__link,
.is-style-etm-band-ink-deep .is-style-etm-secondary .wp-block-button__link,
.etm-band--ink .is-style-etm-secondary .wp-block-button__link,
.etm-band--ink-deep .is-style-etm-secondary .wp-block-button__link {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--navy);
}
.is-style-etm-quiet .wp-block-button__link {
  background: var(--wp--preset--color--action-quiet);
  color: var(--etm-ink-strong);
  border-color: transparent;
}
.is-style-etm-quiet .wp-block-button__link:hover {
  background: var(--wp--preset--color--line);
  color: var(--etm-ink-strong);
}
.is-style-etm-inverse .wp-block-button__link {
  background: transparent;
  color: var(--etm-ink-inverse);
  border-color: var(--wp--preset--color--beige);
}
.is-style-etm-inverse .wp-block-button__link:hover {
  background: color-mix(in srgb, var(--wp--preset--color--surface) 10%, transparent);
  color: var(--etm-ink-inverse);
}
.is-style-etm-small .wp-block-button__link,
.etm-btn--sm .wp-block-button__link {
  min-height: 40px;
  padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
  font-size: var(--wp--preset--font-size--button-sm);
}
@media (max-width: 48.8125em) {
  .is-style-etm-small .wp-block-button__link,
  .etm-btn--sm .wp-block-button__link { min-height: var(--wp--custom--tap); }
}

/* A Button block's className lands on its wrapper, so a reference button
   class used there (etm-btn--sm) must not size the wrapper as well. */
.wp-block-button[class*="etm-btn--"] {
  padding: 0;
  min-height: 0;
  font-size: inherit;
}

/* ==== Quote: scripture (core/quote carries its own borders) ============= */
.is-style-etm-scripture {
  margin: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}
.has-navy-background-color .is-style-etm-scripture p,
.has-ink-deep-background-color .is-style-etm-scripture p { color: var(--etm-ink-inverse); }
.has-navy-background-color .is-style-etm-scripture cite,
.has-ink-deep-background-color .is-style-etm-scripture cite { color: var(--wp--preset--color--gold); }

/* ==== Pagination (core/query-pagination prints .page-numbers) =========== */
.is-style-etm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--2);
  align-items: center;
  margin-top: var(--wp--preset--spacing--8);
}
.is-style-etm-pagination a,
.is-style-etm-pagination span[aria-current] {
  display: grid;
  place-items: center;
  min-width: var(--wp--custom--tap);
  height: var(--wp--custom--tap);
  padding-inline: var(--wp--preset--spacing--2);
  border-radius: var(--wp--custom--radius--sm);
  font-size: var(--wp--preset--font-size--button-sm);
  font-weight: var(--wp--custom--weight--bold);
  text-decoration: none;
}
/* Core wraps the numbers in their own div. Without this it is a plain block
   and every number - each a block-level box - starts a new line. The search
   template uses the reference's own class (.etm-pagination), same cure. */
.is-style-etm-pagination .wp-block-query-pagination-numbers,
.etm-pagination .wp-block-query-pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--2);
  align-items: center;
}
.is-style-etm-pagination .page-numbers.dots,
.etm-pagination .page-numbers.dots {
  color: var(--etm-ink-muted);
  padding-inline: var(--wp--preset--spacing--1);
}
.is-style-etm-pagination a { color: var(--etm-link); }
.is-style-etm-pagination a:hover { background: var(--wp--preset--color--action-quiet); }
.is-style-etm-pagination [aria-current="page"] {
  background: var(--wp--custom--action--primary);
  color: var(--wp--custom--action--on-primary);
}

/* ==== Resource list (core/list) ========================================= */
.is-style-etm-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
}
.is-style-etm-resource-list li {
  display: grid;
  gap: var(--wp--preset--spacing--3);
  padding-block: var(--wp--preset--spacing--5);
  border-bottom: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
}
.is-style-etm-resource-list li h3 {
  font-size: var(--wp--preset--font-size--heading-4);
  font-weight: var(--wp--custom--weight--semibold);
}
.is-style-etm-resource-list li p {
  color: var(--etm-ink-muted);
  font-size: var(--wp--preset--font-size--body-sm);
  margin-top: 4px;
}
/* The 404/About resource rows are groups with a Button block; below the
   two-column breakpoint the reference's button spans the row. */
@media (max-width: 48.8125em) {
  .etm-resource-list__item .wp-block-button,
  .etm-resource-list__item .wp-block-button__link { width: 100%; }
}
@media (min-width: 48.875em) {
  .is-style-etm-resource-list li {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--wp--preset--spacing--6);
  }
}

/* ==== Lists that stand where the reference had a line of links ========== */
/* "Who we are · What we believe · Plan your first visit": one list of links
   for a screen reader; the dots are the reference's .etm-hero__sep. */
.etm-hero__links,
.etm-inline-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.etm-hero__links li + li::before,
.etm-inline-links li + li::before {
  content: "\00B7";
  color: var(--etm-ink-muted);
  padding-inline: var(--wp--preset--spacing--3);
}
.etm-hero__identity h1 { color: var(--etm-ink-inverse); }

/* ==== Service Now ======================================================= */
.etm-service-now .etm-service-now__actions { display: grid; }
.etm-service-now__actions .wp-block-button,
.etm-service-now__actions .wp-block-button__link { width: 100%; }

/* ==== What's new (Query Loop) =========================================== */
.etm-whats-new__title,
.etm-whats-new__date { margin: 0; }
.etm-whats-new__title { font-size: inherit; line-height: inherit; letter-spacing: 0; }
/* The reference's `.etm-whats-new a` rule also reaches its "All notices"
   button (15px); the block button needs telling. */
.etm-whats-new__all .wp-block-button__link {
  display: inline-flex;
  font-size: var(--wp--preset--font-size--body-sm);
}

/* ==== Sermon rows (Query Loop) ========================================== */
/* The reference's .etm-row__title is the link itself; here it is the h3
   around core's link. */
.etm-row__title { margin: 0; line-height: var(--wp--custom--line-height--body); }
.etm-row__title a { display: block; color: inherit; text-decoration: none; }
.etm-row__title a:hover { text-decoration: underline; }

/* Bands that live inside a Post Template (they vanish with the result). */
.etm-featured-query__items > .wp-block-post { margin: 0; }

/* ==== Sermon single ===================================================== */
.etm-same-day:not(:has(.wp-block-post)) { display: none; }
.etm-same-day__title { margin: 0; }

/* Core's Post Navigation Link: <div><a><span label><span title></a></div>. */
.etm-prevnext .post-navigation-link__label {
  display: block;
  font-size: var(--wp--preset--font-size--caption);
  line-height: 1.54;
  color: var(--etm-ink-muted);
  font-weight: var(--wp--custom--weight--regular);
}
@media (min-width: 48.875em) {
  .etm-prevnext .post-navigation-link-next { grid-column: 2; }
  .etm-prevnext .post-navigation-link-next a { text-align: right; }
}

/* ==== Missions ========================================================== */
/* The field filter is a row of Button blocks shown as the reference's plain
   links; reference.css styles `.etm-field-filter a`. */
.etm-field-filter__links { gap: var(--wp--preset--spacing--6); }
.etm-field-filter__links .wp-block-button__link {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

/* A card inside a Post Template: the <li> is the grid item, the card fills it. */
.etm-grid > .wp-block-post > .etm-card,
.etm-grid > .wp-block-post > .is-style-etm-card { height: 100%; }
.etm-article-figure { margin-inline: auto; }
.etm-article-figure img { width: 100%; height: auto; display: block; }

/* ==== Images inside Image blocks and figures ============================ */
.etm-mission-featured__media img,
.etm-gallery img,
.etm-media img,
.etm-show-art img,
.etm-pastor__portrait img,
.etm-leaders__portrait img,
.etm-memorial-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.etm-gallery img { border-radius: var(--wp--custom--radius--xs); }
/* The memorial text beside the portrait. The reference had one line there
   (the date), so nothing spaced a run of paragraphs; the church's own text is
   four of them. */
.etm-memorial-head .etm-measure { margin-top: var(--wp--preset--spacing--4); margin-bottom: 0; }
.etm-memorial-head .is-style-etm-body-lg + .etm-measure { margin-top: var(--wp--preset--spacing--6); }
.etm-memorial-head .etm-measure.etm-mt-8 { margin-top: var(--wp--preset--spacing--8); }

/* ==== Prose groups ======================================================= */
/* The reference gives every prose h2 40px above, including the first one. A
   layout's first child loses its top margin in WordPress at (0,2,0), so the
   rule is repeated at that weight. */
.etm-prose.is-layout-flow > h2:first-child,
.etm-prose.is-layout-constrained > h2:first-child { margin-block-start: var(--wp--preset--spacing--10); }

/* The reference puts .etm-img-round on the <img>; an Image block carries the
   class on its <figure>, so the picture itself must still fill the column. */
.wp-block-image.etm-img-round img {
  width: 100%;
  height: auto;
  border-radius: var(--wp--custom--radius--md);
}

/* ==== Captions and the core Gallery ===================================== */
/* Core gives an image caption .5em above and 1em below; the reference's
   figcaption sits 8px under the image and adds nothing beneath. */
.wp-block-image figcaption.wp-element-caption {
  margin: var(--wp--preset--spacing--2) 0 0;
  font-size: var(--wp--preset--font-size--caption);
  line-height: 1.54;
  color: var(--etm-ink-muted);
  text-align: left;
}
/* The core Gallery is a flex row of half-width figures with the caption laid
   over the photograph. The reference's .etm-gallery is a grid with the caption
   underneath, so core's widths, overlay and blur are undone here. Core writes
   these rules with :not(#individual-image); the same weight is needed. */
.wp-block-gallery.has-nested-images.etm-gallery {
  display: grid;
  align-items: start;
  gap: var(--wp--preset--spacing--4);
}
.wp-block-gallery.has-nested-images.etm-gallery figure.wp-block-image:not(#individual-image) {
  display: block;
  width: auto;
  margin: 0;
}
.wp-block-gallery.has-nested-images.etm-gallery figure.wp-block-image:not(#individual-image)::before {
  content: none;
}
.wp-block-gallery.has-nested-images.etm-gallery figure.wp-block-image:not(#individual-image) img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.wp-block-gallery.has-nested-images.etm-gallery figure.wp-block-image:not(#individual-image) figcaption {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0;
  margin: var(--wp--preset--spacing--2) 0 0;
  background: none;
  color: var(--etm-ink-muted);
  font-size: var(--wp--preset--font-size--caption);
  text-align: left;
  text-shadow: none;
}

/* ==== Visit band ======================================================== */
.etm-visit-grid .etm-service-times--list { font-size: var(--wp--preset--font-size--body-lg); }

/* ==== Table of contents ================================================= */
.etm-toc a[aria-current="true"] {
  font-weight: var(--wp--custom--weight--bold);
  color: var(--wp--custom--action--primary);
}

/* ==== Notices list ====================================================== */
.etm-condolences h2,
.etm-condolences h3 {
  font-size: var(--wp--preset--font-size--heading-5);
  margin-bottom: 2px;
}

/* ==== Podcast episode audio (not drawn in the reference) ================ */
.etm-episode__audio { width: 100%; margin-block: var(--wp--preset--spacing--2); }

/* ==== Live player (the reference draws only the offline state) ========== */
.etm-stream-live { display: grid; gap: var(--wp--preset--spacing--6); }
.etm-stream-live__player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--wp--custom--radius--md);
  overflow: hidden;
  background: rgb(0 0 0);
}
.etm-stream-live__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.etm-stream-live__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--4);
  align-items: center;
  justify-content: space-between;
}

/* core/quote makes <cite> a block; the reference's sits on the text line. */
.is-style-etm-scripture cite { display: inline; }

/* ==== Carousel: the controls are printed hidden and shown by carousel.js;
   the reference gives them display:flex, which would beat the attribute. == */
.etm-carousel__controls[hidden] { display: none; }
/* The pause button (since 2 November 2026 the slides turn by themselves):
   the pause mark while they turn, the play mark when they are stopped. */
.etm-carousel__play .etm-carousel__icon-pause,
.etm-carousel__play[data-playing] .etm-carousel__icon-play { display: none; }
.etm-carousel__play[data-playing] .etm-carousel__icon-pause { display: inline-flex; }
.etm-carousel__play span { display: inline-flex; }

/* The resource list's own top margin is for the 404 page, where it follows
   a paragraph; as a grid column (homepage About band) the grid gap spaces it. */
.etm-grid > .etm-resource-list { margin-block-start: 0; }

/* ==== Member forms (M9) ================================================= */
/* The sign-in form (WP-Members) and the prayer request form (Formidable)
   are given the reference's .etm-field / .etm-input / .etm-btn classes by
   etm-core's integration layer, so reference.css styles them. What is left
   is what the plugins' own wrappers add. */
.frm_forms fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.frm_forms .frm_message p,
.frm_forms .frm_error_style p { margin: 0; }
.frm_forms .frm_message,
.frm_forms .frm_error_style { margin-bottom: var(--wp--preset--spacing--6); }
/* The reference's aside was as tall as the form beside it (it held the
   shared list that decision D10 removed); a shorter one starts at the top. */
.etm-grid--split-wide > aside { align-self: start; }
/* A sermon's title. The reference held it to 22 characters a line, which broke
   "Intelligence: Eternal or Artificial Pt.2" in two with most of the row empty.
   40 lets a title of ordinary length stay on one line; a longer one still
   wraps into balanced lines (base.css). */
.etm-sermon-head h1,
.etm-sermon-head .wp-block-post-title { max-width: 40ch; }
/* The speaker under a sermon's title (etm/sermon-meta, variant "speaker").
   The title keeps its own bottom margin; this line sits inside it. */
.etm-sermon-head .etm-sermon-speaker {
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: var(--wp--custom--line-height--body-lg);
	color: var(--etm-ink-muted);
	margin: calc(-1 * var(--wp--preset--spacing--2)) 0 var(--wp--preset--spacing--4);
}
/* The sermon filters draw only the drop-downs that have something in them,
   so the desktop grid is told how many there are (reference.css assumes 4). */
@media (min-width: 64em) {
	.etm-filters__grid--3 { grid-template-columns: 1.6fr 1fr 1fr .8fr auto; }
	.etm-filters__grid--2 { grid-template-columns: 1.6fr 1fr .8fr auto; }
	.etm-filters__grid--1 { grid-template-columns: 1.6fr .8fr auto; }
	.etm-filters__grid--0 { grid-template-columns: 1fr auto; }
}
/* A slide's picture fills its frame whatever its own shape (the frame is
   16:9 on the home page; a picture of another landscape shape is trimmed). */
.etm-slide__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A square or upright picture (an app icon, a book cover) is shown whole on
   the slide's own ground instead of losing its top and bottom to the frame
   (inc/featured-notice.php decides). */
.etm-slide--contain .etm-slide__media { background: var(--wp--preset--color--ink-deep); }
.etm-slide--contain .etm-slide__media img { object-fit: contain; padding: var(--wp--preset--spacing--4); box-sizing: border-box; }

/* ==== 0.21.0 — the church's walkthrough, 2 October 2026 ================== */

/* A thinner header. The bar with the menu was 88px on a wide screen and the
   strip above it 44px; the logo follows. Phones keep their height: the menu
   button needs a full-size tap target. */
.etm-site-header .etm-utility-bar__inner { min-height: 36px; padding-block: 2px; }
@media (min-width: 64em) {
	.etm-site-header .etm-header-main { min-height: 68px; }
	.etm-site-header .etm-logo img { height: 38px; }
}

/* A sermon row has no picture and no play mark: date, title, length. */
@media (min-width: 48.875em) {
	.etm-rows > .wp-block-post { grid-template-columns: 150px 1fr auto; }
}

/* The home page's opening without the introduction card: the slides, and a
   "Right now" box about half the size it was on a wide screen (it was 380px
   wide and as tall as the card beside it). Phones are unchanged. */
.etm-hero--slides .etm-hero__identity { padding-block: var(--wp--preset--spacing--8); }
.etm-hero--slides .etm-carousel { margin-top: 0; }
@media (min-width: 64em) {
	.etm-hero--slides .etm-hero__grid { grid-template-columns: 1fr 300px; }
	.etm-hero--slides .etm-hero__identity {
		padding-block: var(--wp--preset--spacing--10);
		padding-right: var(--wp--preset--spacing--8);
	}
	.etm-hero--slides .etm-service-now {
		padding: var(--wp--preset--spacing--6);
		gap: var(--wp--preset--spacing--3);
	}
	.etm-hero--slides .etm-service-now h2,
	.etm-hero--slides .etm-service-now h3 { font-size: var(--wp--preset--font-size--heading-4); }
}

/* The home page (templates/page-home.html, main.etm-home): a thinner
   "What's new" strip and a smaller "Plan your visit" band. The same blocks
   on other pages, and on the earlier home layout, keep their size. */
.etm-home .etm-whats-new.etm-band { padding-block: var(--wp--preset--spacing--3); }
.etm-home .etm-whats-new__inner { gap: var(--wp--preset--spacing--3); }
.etm-home .etm-visit-band { padding-block: var(--wp--preset--spacing--10); }
.etm-home .etm-visit-band .etm-section-head { margin-bottom: var(--wp--preset--spacing--5); }
.etm-home .etm-visit-band .etm-section-head h2 { font-size: var(--wp--preset--font-size--heading-3); }
.etm-home .etm-visit-grid .etm-service-times--list,
.etm-home .etm-visit-grid .etm-times,
.etm-home .etm-visit-grid p { font-size: var(--wp--preset--font-size--body-sm); }
.etm-home .etm-visit-grid h3 { font-size: var(--wp--preset--font-size--body-lg); }
@media (min-width: 64em) {
	.etm-home .etm-whats-new__inner { gap: var(--wp--preset--spacing--6); }
	.etm-home .etm-visit-grid { gap: var(--wp--preset--spacing--8); }
}

/* Share, on a sermon: a button that opens a short list of places to send the
   link to. A <details>, so it works before any script has loaded. */
.etm-share { position: relative; }
.etm-share > summary { list-style: none; cursor: pointer; }
.etm-share > summary::-webkit-details-marker { display: none; }
.etm-share__menu {
	position: absolute;
	z-index: 10;
	top: calc(100% + var(--wp--preset--spacing--2));
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: var(--wp--preset--spacing--2) 0;
	list-style: none;
	background: var(--wp--preset--color--surface);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xs);
	box-shadow: var(--wp--preset--shadow--overlay);
}
.etm-share__menu a,
.etm-share__menu button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: var(--wp--custom--tap);
	padding: 0 var(--wp--preset--spacing--4);
	border: 0;
	background: none;
	font: inherit;
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--etm-ink-strong);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.etm-share__menu a:hover,
.etm-share__menu button:hover { background: var(--wp--preset--color--surface-muted); text-decoration: underline; }

/* The podcast apps the church suggests (Podcasts page). */
.etm-podcast-apps { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4); list-style: none; margin: var(--wp--preset--spacing--3) 0 0; padding: 0; }
.etm-podcast-apps a { font-weight: var(--wp--custom--weight--semibold); }

/* The map on Visit Us, and a calendar the church has published (members). */
.etm-map,
.etm-calendar-embed { display: block; width: 100%; border: 0; border-radius: var(--wp--custom--radius--xs); background: var(--wp--preset--color--surface-muted); }
.etm-map { aspect-ratio: 4 / 3; }
.etm-calendar-embed { height: min(80vh, 720px); margin-bottom: var(--wp--preset--spacing--8); }

/* ==== 0.21.1 ============================================================= */

/* "What's new" shows up to three notices. With one or two, they share the
   width instead of leaving an empty third column. */
@media (min-width: 64em) {
	.etm-whats-new ul {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}
}

/* ==== 0.22.0 — the church's feedback of 16 October 2026 ================== */

/* The header: the logo sits in the strip at the top, where the service times
   were (they are still in the Right now box, on Visit Us and in the footer),
   and the bar with the menu is thinner. Below 1024px the live link is on the
   left of that bar and the menu button on the right. */
.etm-site-header .etm-utility-bar__inner { min-height: 48px; padding-block: 6px; }
.etm-site-header .etm-utility-bar .etm-logo { flex: 0 1 auto; min-width: 0; }
.etm-site-header .etm-utility-bar .etm-logo a { display: flex; min-width: 0; }
.etm-site-header .etm-utility-bar .etm-logo img { height: 32px; max-width: 100%; object-fit: contain; object-position: left center; }
.etm-site-header .etm-header-main { min-height: 52px; }
@media (max-width: 63.9375em) {
	.etm-site-header .etm-header-actions { margin-left: 0; }
	.etm-site-header nav.etm-primary-nav { margin-left: auto; }
}
@media (min-width: 64em) {
	.etm-site-header .etm-header-main { min-height: 52px; }
	.etm-site-header .etm-utility-bar .etm-logo img { height: 36px; }
	.etm-site-header nav.etm-primary-nav { margin-left: 0; }
}

/* The home page's slides: the picture runs across the slide, with the words
   under it (the church: it was a small picture with the words beside it).
   Phones already stack. The frame is 16:9 on every screen, the shape of a
   service video and of the flyers the church makes; a fixed 340px height
   (0.22.0 to 0.33.1) cut the top and bottom off both on a wide screen. The
   box keeps its words at the top instead of pushing its buttons to the foot
   of the taller row. Every slide is as tall as the tallest (the track is a
   flex row); the spare height stays under the words. A stretched grid row
   would give it to the picture instead, overriding its 16:9 and cutting the
   sides off a flyer (0.33.2, the New Year's Eve flyer). */
@media (min-width: 64em) {
	.etm-hero--slides .etm-slide { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; padding: 0; gap: 0; }
	.etm-hero--slides .etm-slide__media { aspect-ratio: 16 / 9; height: auto; border-radius: 0; }
	.etm-hero--slides .etm-slide__body { padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6) var(--wp--preset--spacing--6); }
	.etm-hero--slides .etm-service-now__actions { margin-top: 0; }
}

/* The home page's visit band is the heading and the Plan your visit button
   (etm_theme_visit_band(), compact): the service times, address, phone and
   email are in the footer just below it. Other pages keep the full band. */
.etm-visit-band--compact .etm-visit-band__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8);
}
.etm-visit-band--compact .etm-section-head { margin-bottom: 0; }
.etm-visit-band--compact .wp-block-buttons { margin: 0; }
.etm-home .etm-visit-band--compact { padding-block: var(--wp--preset--spacing--8); }

/* A photograph behind a page's title. etm-core (inc/page-picture.php) puts
   the picture's address on the band as --etm-page-photo and adds .etm-photo;
   the band keeps its navy, the picture shows through it like a watermark,
   and the white title keeps its contrast. */
.etm-page-hero.etm-photo {
	background-image:
		linear-gradient(color-mix(in srgb, var(--etm-tint-colour, var(--wp--preset--color--navy)) var(--etm-tint-title-top, 76%), transparent), color-mix(in srgb, var(--etm-tint-colour, var(--wp--preset--color--navy)) var(--etm-tint-title-bottom, 90%), transparent)),
		var(--etm-page-photo);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
/* The home page's opening has the page's picture too, under a lighter navy
   tint, 62% at the top to 78% at the bottom (Tim, 28 October 2026). The
   slides and the "Right now" box keep their own solid grounds. */
.etm-hero.etm-hero--slides.etm-photo {   /* beats .etm-photo-ground.etm-photo below */
	background-image:
		linear-gradient(color-mix(in srgb, var(--etm-tint-colour, var(--wp--preset--color--navy)) var(--etm-tint-home-top, 62%), transparent), color-mix(in srgb, var(--etm-tint-colour, var(--wp--preset--color--navy)) var(--etm-tint-home-bottom, 78%), transparent)),
		var(--etm-page-photo);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
/* "Slide 1 of 3" sits on the photograph itself: beige there is 3.4:1 over
   its brightest part (measured, 29 October 2026), so it is white. */
.etm-hero--slides.etm-photo .etm-carousel__status { color: var(--etm-ink-inverse); }
/* The same picture, faint, under the sign-in card (templates/page-sign-in.html). */
.etm-photo-ground.etm-photo {
	background-image:
		linear-gradient(color-mix(in srgb, var(--wp--preset--color--surface) 84%, transparent), color-mix(in srgb, var(--wp--preset--color--surface) 84%, transparent)),
		var(--etm-page-photo);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* ==== The church's meeting of 2 November 2026 =========================== */

/* The home page: "Come and worship with us" is a thinner band, and the
   footer under it is shorter. */
.etm-home .etm-visit-band--compact { padding-block: var(--wp--preset--spacing--5); }
.etm-home .etm-visit-band--compact .etm-section-head h2 { font-size: var(--wp--preset--font-size--heading-4); margin: 0; }
.etm-site-footer { padding-block: var(--wp--preset--spacing--10); }
.etm-site-footer .etm-footer-grid { gap: var(--wp--preset--spacing--6); }
.etm-site-footer .etm-footer__legal { margin-top: var(--wp--preset--spacing--6); padding-top: var(--wp--preset--spacing--4); }
@media (min-width: 48.875em) {
	.etm-site-footer .etm-footer-grid { gap: var(--wp--preset--spacing--8); }
}

/* The next two services, under the Right now buttons (etm/live-status,
   `next`). On the box's dark ground: beige month, white day and name. */
.etm-service-now .etm-upcoming--next {
	margin-top: var(--wp--preset--spacing--2);
	padding-top: var(--wp--preset--spacing--4);
	border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line-inverse);
}
.etm-service-now .etm-upcoming__heading {
	margin: 0 0 var(--wp--preset--spacing--3);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: var(--wp--custom--weight--semibold);
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	text-transform: uppercase;
	color: var(--etm-ink-inverse);
}
.etm-service-now .etm-upcoming__list { display: grid; gap: var(--wp--preset--spacing--3); margin: 0; padding: 0; list-style: none; }
.etm-service-now .etm-upcoming__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--wp--preset--spacing--3); align-items: center; margin: 0; }
.etm-service-now .etm-upcoming__date {
	display: flex;
	flex-direction: column;
	text-align: center;
	line-height: 1.1;
	padding: 4px 0;
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line-inverse);
	border-radius: var(--wp--custom--radius--xs);
}
.etm-service-now .etm-upcoming__month { font-size: var(--wp--preset--font-size--caption); text-transform: uppercase; color: var(--etm-ink-inverse-muted); }
.etm-service-now .etm-upcoming__day { font-size: var(--wp--preset--font-size--body-lg); font-weight: var(--wp--custom--weight--bold); color: var(--etm-ink-inverse); }
.etm-service-now .etm-upcoming__text p { margin: 0; font-size: var(--wp--preset--font-size--body-sm); }
.etm-service-now .etm-upcoming__name { color: var(--etm-ink-inverse); font-weight: var(--wp--custom--weight--semibold); }
.etm-service-now .etm-upcoming__zone { display: none; } /* the box above already says Mountain Time */

/* "Watch Live" at the end of the menu bar looks like a button: the gold of
   the home page's Watch Live button. */
.etm-site-header .is-style-etm-live-action .wp-block-button__link {
	background: var(--wp--custom--action--accent);
	color: var(--wp--custom--action--on-accent);
	border-radius: var(--wp--custom--radius--xs);
	padding-inline: var(--wp--preset--spacing--4);
	min-height: 40px;
	font-weight: var(--wp--custom--weight--semibold);
}
.etm-site-header .is-style-etm-live-action .wp-block-button__link:hover {
	background: var(--wp--custom--action--accent-hover);
	color: var(--wp--custom--action--on-accent);
	text-decoration: none;
}
@media (max-width: 23.5em) {
	.etm-site-header .is-style-etm-live-action .wp-block-button__link { padding-inline: var(--wp--preset--spacing--2); }
}

/* Our Assembly: the pastor's photograph framed higher, so his eyes are in
   the top third; everyone else in two columns with larger photographs. */
.etm-pastor__portrait { width: 200px; }
.etm-pastor__portrait img { object-position: 50% 18%; }
.etm-leaders {
	display: grid;
	column-gap: var(--wp--preset--spacing--8);
	border-top: 0;
}
.etm-leaders > .etm-leaders__item { grid-template-columns: 96px 1fr; }
.etm-leaders__portrait { width: 96px; }
.etm-leaders__portrait img { object-position: 50% 25%; }
.etm-leaders__item p { margin: 0; }
@media (min-width: 37.5em) {
	.etm-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48.875em) {
	.etm-pastor { grid-template-columns: 200px 1fr; }
}

/* Family Altar: the app's icon beside its store buttons, and the two
   Vision Books links side by side. */
.etm-app-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wp--preset--spacing--5); margin-block: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8); }
.etm-app-row__icon { margin: 0; flex: none; }
.etm-app-row__icon img { border-radius: 20%; }
.etm-app-row__stores > * { margin: 0 0 var(--wp--preset--spacing--3); }
.etm-app-row__stores .etm-contact-details--link { display: inline-block; margin-right: var(--wp--preset--spacing--3); }
.etm-link-row { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--3); }
.etm-link-row > * { margin: 0; }

/* Memorial: the two services side by side from 782px. */
.etm-memorial-services .etm-media { margin-top: var(--wp--preset--spacing--3); }

/* Give: on a phone the Tithe.ly box comes first, before the text. */
@media (max-width: 63.9375em) {
	.etm-give-grid > aside { order: -1; }
}

/* Phones: a shorter title band. Several pages lost their label and lead
   line for the same reason (the church: the banners were too large). */
@media (max-width: 47.9375em) {
	.etm-page-hero { padding-block: var(--wp--preset--spacing--8); }
	.etm-page-hero .wp-block-post-title,
	.etm-page-hero .is-style-etm-display-2 { margin-bottom: var(--wp--preset--spacing--2); }
}

/* ==== The church's notes of 7 November 2026 ============================== */

/* Phones and small tablets (below 782px, where the strip's search and sign-in
   are hidden): "Watch Live" sits in the strip with the logo, at its right,
   above the menu button. It is the same button as on a computer, lifted into
   the strip, so there is only one to change (Appearance → Editor → Patterns →
   Header). The logo gives way before the button does. */
@media (max-width: 48.8125em) {
	.etm-site-header { position: relative; }
	/* The strip and the menu row are each positioned, so the button would
	   be placed against its own row; here it is placed against the header.
	   (Below 782px the menu opens as a full-screen overlay, so neither row
	   needs it.) */
	.etm-site-header .etm-utility-bar,
	.etm-site-header .etm-header-band,
	.etm-site-header .etm-header-main { position: static; }
	.etm-site-header .etm-header-actions {
		position: absolute;
		top: 0;
		right: var(--etm-gutter);
		height: 48px; /* the strip's height (min-height 48px, logo 32px) */
		display: flex;
		align-items: center;
		margin: 0;
	}
	.etm-site-header .etm-header-actions .is-style-etm-live-action .wp-block-button__link { min-height: 36px; }
	.etm-site-header .etm-utility-bar .etm-logo { max-width: calc(100% - 9.5rem); }
	.etm-site-header .etm-header-main { justify-content: flex-end; min-height: 48px; }
}

/* The top strip's links, from the "Top strip" menu (inc/menus.php). */
.etm-utility-bar__nav { margin: 0; }
.etm-utility-bar__links { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--4); margin: 0; padding: 0; list-style: none; }
.etm-utility-bar__links a { display: inline-flex; align-items: center; gap: var(--wp--preset--spacing--2); }
.etm-utility-bar__links .etm-menu-link--signin::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--etm-icon-person) center / contain no-repeat;
	mask: var(--etm-icon-person) center / contain no-repeat;
}

/* Family Altar: the covers of the three printed volumes, side by side. */
.etm-book-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--4); max-width: 30rem; margin-block: var(--wp--preset--spacing--4) var(--wp--preset--spacing--6); }
.etm-book-covers__item { margin: 0; }
.etm-book-covers__item img { width: 100%; height: auto; display: block; border-radius: var(--wp--custom--radius--xs); box-shadow: 0 2px 8px rgb(0 0 0 / 0.18); }
.etm-book-covers__item figcaption { margin-top: var(--wp--preset--spacing--2); text-align: center; font-size: var(--wp--preset--font-size--body-sm); color: var(--etm-ink-muted); }

/* In the strip the button has room for its words even on the narrowest
   phones, so the older rule that cut it to its play symbol below 352px
   (when it shared the row with the menu button) no longer applies. */
@media (max-width: 22em) {
	.etm-site-header .is-style-etm-live-action .wp-block-button__link { font-size: var(--wp--preset--font-size--body-sm); padding-inline: var(--wp--preset--spacing--3); gap: var(--wp--preset--spacing--1); }
	.etm-site-header .is-style-etm-live-action .wp-block-button__link::before { width: 16px; height: 16px; }
	.etm-site-header .etm-utility-bar .etm-logo { max-width: calc(100% - 8rem); }
}

/* The menu button says "Menu", with the three lines beside it (site owner,
   7 November 2026). The word is shown with CSS; the button's spoken name stays
   core's "Open menu", which contains it. The button keeps its 44px height and
   grows to fit the word. Above 1023px the menu is inline and the button hidden
   (layout.css), so display is left alone here. */
.etm-site-header nav.etm-primary-nav .wp-block-navigation__responsive-container-open {
	width: auto;
	min-width: var(--wp--custom--tap);
	padding: 0 var(--wp--preset--spacing--1);
	grid-auto-flow: column;
	gap: var(--wp--preset--spacing--2);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: var(--wp--custom--weight--bold);
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	line-height: 1;
}
.etm-site-header nav.etm-primary-nav .wp-block-navigation__responsive-container-open::after {
	content: "Menu";
	content: "Menu" / "";
	order: -1;
	text-transform: uppercase;
}

/* ==== 0.28.0: the church's requests of 10 November 2026 ================== */

/* The tint over a photograph is the design's (above) until "Choose the tint
   myself" is switched on in ETM Site Settings, Pictures: etm-core then sets
   --etm-tint-colour and the four strengths on :root. */

/* Our Assembly: a leader without a portrait. The row keeps a column for the
   portrait; with the portrait taken out, the name fell into that narrow
   column and broke over two lines ("Marion / Perozok"). Alone in its row,
   the name now takes the whole width. */
.etm-leaders > .etm-leaders__item > :only-child { grid-column: 1 / -1; }

/* Missions: the list of fields beside the reports, in the manner of "On
   this page" (etm/mission-fields). On a phone it comes between the heading
   and the reports; on a computer it stands to their left. */
.etm-missions-layout { display: grid; gap: var(--wp--preset--spacing--6); }
.etm-missions-layout > * { margin-block: 0; min-width: 0; }
.etm-field-nav { margin-bottom: 0; }
.etm-field-nav .etm-field-nav__sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.etm-field-nav .etm-field-nav__sub a { padding-left: calc(var(--wp--preset--spacing--4) * 2); }
.etm-field-nav .etm-field-nav__sub .etm-field-nav__sub a { padding-left: calc(var(--wp--preset--spacing--4) * 3); }
.etm-field-nav a.is-ancestor { color: var(--etm-ink-strong); }
.etm-field-nav__count { color: var(--etm-ink-muted); font-weight: var(--wp--custom--weight--regular, 400); }
.etm-field-nav__total { margin: var(--wp--preset--spacing--3) 0 0; padding-left: var(--wp--preset--spacing--4); }
@media (min-width: 64em) {
	.etm-missions-layout {
		grid-template-columns: 240px minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--16);
		align-items: start;
	}
	.etm-missions-layout > .etm-section-head { grid-column: 2; grid-row: 1; }
	.etm-missions-layout > .etm-field-nav { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: var(--wp--preset--spacing--6); }
	.etm-missions-layout > .etm-mission-query { grid-column: 2; grid-row: 2; }
	.etm-missions-layout .etm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 80em) {
	.etm-missions-layout .etm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Upcoming services: a cancelled service stays, marked Cancelled with its
   note; a special service is marked so (Changes to the timetable). White
   on the critical red is 7.4:1; navy on gold 5.1:1. */
.etm-upcoming__flag {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 6px;
	border-radius: var(--wp--custom--radius--xs);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--weight--bold);
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: 0.1em;
}
.etm-upcoming__flag--cancelled { background: var(--wp--preset--color--status-critical, #9a3324); color: #ffffff; }
.etm-upcoming__flag--special { background: var(--wp--preset--color--gold, #c09551); color: var(--wp--preset--color--navy, #212a4a); }
.etm-upcoming__item--cancelled .etm-upcoming__time { text-decoration: line-through; }
.etm-upcoming__note { font-style: italic; }
.etm-service-now .etm-upcoming__note { color: var(--etm-ink-inverse-muted); }

/* 0.29.0: "By" and the writer's name under a mission report's summary. */
.etm-card p.etm-mission-writer,
.etm-mission-writer{font-size:var(--wp--preset--font-size--caption);font-weight:var(--wp--custom--weight--medium);margin-top:var(--wp--preset--spacing--2);}
