/*!
 * advent-lite — the theme's own templates (GPL v3 or later).
 *
 * Editorial language: a white page ruled by hairlines. Page headers (a bold
 * title, a lead and a hairline; a dark band; posts centred over a framed
 * image, or as a cover), the filter row, outlined article cards (the first
 * one a full-image card with a round arrow button), pagination, the single
 * post (reading column, quotes, tags, share row, author card, prev/next
 * image cards, related grid), comments and empty states. Loaded after
 * advent-lite.css only when the theme renders the content itself. Tokens
 * live in advent-lite.css.
 */

/* Grid: every block of the template shares one gutter, the same the theme's
   header and footer use, so the logo, the title and the cards start on one
   line: the side padding, or whatever centres the wide size (1140px) in the
   six content columns. */
.adv-main {
  --adv-gut: max(var(--adv-pad-x), calc((100vw - var(--adv-col) - var(--adv-wide-size)) / 2));
  --adv-pad-l: var(--adv-gut);
  --adv-pad-r: var(--adv-gut);
  padding: 0 0 var(--adv-sec-y);
  background: var(--adv-page);
}
.adv-main > * { padding-inline: var(--adv-gut); }
.adv-elementor .adv-main { padding: 0; background: none; }
.adv-elementor .adv-main > .adv-page-content { padding-inline: 0; }
.adv-main > :not(.adv-pagehead):first-child { margin-top: var(--adv-space-5); }

.adv-page-content > *,
.adv-main > .comments-area > *,
.adv-post-footer > * { max-width: var(--adv-content-size); }
.adv-page-content > :is(p, ul, ol, dl, blockquote) { max-width: min(var(--adv-content-size), var(--adv-measure)); }
.adv-main--post :is(.adv-page-content, .comments-area, .adv-post-footer) > * { margin-inline: auto; }
.adv-page-content > .alignwide,
.adv-main--archive .adv-page-content > * { max-width: none; }
.adv-page-content > .alignfull { max-width: none; margin-inline: calc(-1 * var(--adv-gut)); }
.adv-page-content > .elementor { max-width: none; }

/* Page header: breadcrumbs or a spaced eyebrow, the title, a lead, the
   hairline. `--dark` fills the band with the night tone. */
.adv-pagehead {
  position: relative;
  margin-bottom: 3rem;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--adv-hairline);
  background: var(--adv-pagehead-bg);
  color: var(--adv-pagehead-ink);
}
.adv-pagehead__inner { display: grid; gap: 1.25rem; max-width: 54rem; }
.adv-pagehead .adv-page-title { margin: 0; color: inherit; font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; overflow-wrap: anywhere; }
/* Every page title (archives, blog, pages, posts, search, 404) is a statement:
   one voice, one size. `color: inherit` keeps the band's ink (dark band, cover). */
.adv-pagehead .adv-page-title.adv-statement { color: inherit; font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.022em; }
.adv-pagehead__kicker { margin: 0; }
.adv-pagehead__kicker a { color: inherit; text-decoration: none; }
.adv-pagehead__kicker a:hover { color: var(--adv-heading); }
.adv-pagehead__subtitle { max-width: 40rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--adv-text); }
.adv-pagehead__subtitle > :last-child { margin-bottom: 0; }
.adv-pagehead__count b { font-weight: inherit; }
.adv-pagehead--dark { --adv-pagehead-bg: var(--adv-night); --adv-pagehead-ink: var(--adv-night-ink); border-bottom: 0; }
.adv-pagehead--dark :is(.adv-eyebrow--spaced, .adv-crumbs, .adv-pagehead__subtitle, .adv-meta--hero):not(.adv-x) { color: color-mix(in srgb, var(--adv-night-ink) 82%, transparent); }
.adv-pagehead--dark :is(.adv-crumbs a, .adv-pagehead__kicker a):hover { color: #fff; }

/* Breadcrumbs: small spaced caps, a slash between items. */
.adv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; margin: 0; padding: 0; list-style: none; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; line-height: 1.5; text-transform: uppercase; color: var(--adv-muted); }
.adv-crumbs li { display: inline-flex; align-items: center; gap: 0.625rem; }
.adv-crumbs li + li::before { content: "/"; opacity: 0.6; }
.adv-crumbs a { color: inherit; text-decoration: none; }
.adv-crumbs a:hover { color: var(--adv-heading); }

/* Posts, centred: the header over the framed image. */
.adv-pagehead--centered .adv-pagehead__inner { justify-items: center; margin-inline: auto; text-align: center; }
.adv-pagehead--centered :is(.adv-crumbs, .adv-meta) { justify-content: center; }
.adv-pagehead--centered .adv-page-title { max-width: 22ch; }
.adv-pagehead--framed { padding-bottom: 0; border-bottom: 0; }
.adv-pagehead__figure { max-width: var(--adv-wide-size); margin: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) auto 0; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--adv-radius-lg); background: var(--adv-night); }
.adv-pagehead__figure .adv-pagehead__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .adv-pagehead__figure { aspect-ratio: 4 / 3; } }

/* Posts, cover: the text over the image (Customizer). `.adv-pagehead--image`
   marks any header that carries the image. */
.adv-main > .adv-pagehead--cover {
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 62vh, 42rem);
  margin: 1.5rem var(--adv-gut) 3rem;
  padding: clamp(6rem, 18vw, 10rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 0;
  border-radius: var(--adv-radius-lg);
  background: var(--adv-night);
  color: #fff;
}
.adv-pagehead--cover .adv-pagehead__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.adv-pagehead--cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(10, 12, 14, 0.4) 0%, rgba(10, 12, 14, 0.1) 30%, rgba(10, 12, 14, 0.45) 60%, rgba(10, 12, 14, 0.9) 100%); }
.adv-pagehead--cover :is(.adv-eyebrow--spaced, .adv-crumbs, .adv-pagehead__subtitle, .adv-meta--hero):not(.adv-x) { color: rgba(255, 255, 255, 0.88); }
.adv-pagehead--cover :is(.adv-crumbs a, .adv-pagehead__kicker a):hover { color: #fff; }
.adv-pagehead--cover .adv-page-title { max-width: 20ch; }
/* Under an overlay header the band starts under it (safe area). */
body:is(.adv-header--overlay, .adv-header--overlay-gradient) .adv-main > .adv-pagehead:first-child { padding-top: calc(max(var(--advent-safe-top), 5rem) + 1.5rem); }

/* Meta row: avatar (only when the author has one), author, date, reading
   time; a dot drawn by CSS between items, never dangling. */
.adv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500; color: var(--adv-muted); }
.adv-meta > * { display: inline-flex; align-items: center; gap: 0.5rem; }
.adv-meta > * + *::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.adv-meta--hero { font-size: 0.875rem; }
.adv-meta__author { color: var(--adv-heading); font-weight: 600; }
.adv-pagehead--dark .adv-meta__author, .adv-pagehead--cover .adv-meta__author { color: inherit; }
.adv-avatar, .comment-list .avatar { flex: 0 0 auto; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.adv-entry-meta { font-size: 0.875rem; color: var(--adv-muted); }

/* Date as a display block (kept for child themes): the day over the month. */
.adv-date { display: inline-flex; flex-direction: column; align-items: center; min-width: 4rem; padding: 0.625rem 0.625rem 0.5rem; border: 1px solid var(--adv-hairline); border-radius: var(--adv-radius-sm); background: var(--adv-paper); color: var(--adv-heading); text-align: center; line-height: 1; }
.adv-date b { font-family: var(--adv-font-numeral); font-size: 2.5rem; font-weight: 400; letter-spacing: 0.01em; }
.adv-date span { margin-top: 0.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* Filter row: categories, search, the count at the end. */
.adv-filters { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem 1rem; margin-bottom: 2.5rem; }
.adv-filters__select {
  flex: 0 1 17rem;
  min-width: min(100%, 12rem);
  padding-inline-end: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.25rem top 50%, right 0.9375rem top 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: var(--adv-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.adv-filters__search { flex: 1 1 16rem; max-width: 30rem; }
.adv-filters__submit { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.adv-filters .adv-filters__count.adv-eyebrow--spaced { align-self: center; margin-inline: auto 0; }
.adv-search-again { margin-bottom: 2.5rem; }

/* Cards: outlined, the image on top, the category after a bookmark, the
   serif title on two lines, the excerpt, a foot with the reading time and
   the date. The title link is stretched over the card. */
.adv-cards { display: grid; grid-auto-flow: row dense; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: var(--adv-space-4); }
@media (min-width: 700px) { .adv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .adv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.adv-card { position: relative; display: flex; flex-direction: column; min-width: 0; transition: border-color 0.3s, box-shadow 0.3s; }
.adv-card:hover, .adv-card:focus-within { border-color: var(--adv-field-line); box-shadow: var(--adv-shadow-2); }
.adv-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--adv-night); }
.adv-card__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.8s var(--adv-ease-out); }
.adv-card:hover .adv-card__media img { transform: scale(1.03); }
.adv-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.75rem; padding: 1.5rem 1.5rem 1.375rem; }
/* Three classes: the plugin's editorial.css (loaded after) sets the shared
   eyebrow with two. */
.adv-card .adv-card__cat.adv-eyebrow--spaced, .adv-card .adv-card__foot.adv-eyebrow--spaced { margin-inline-end: 0; font-size: 0.6875rem; letter-spacing: 0.2em; }
.adv-card .adv-card__cat .adv-glyph { width: 0.875rem; height: 0.875rem; }
.adv-card__cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-card .adv-card__title { display: -webkit-box; margin: 0; overflow: hidden; font-family: var(--adv-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.adv-card__link { color: var(--adv-heading); text-decoration: none; }
.adv-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.adv-card__link:focus-visible { outline: none; box-shadow: none; }
/* The ring goes on the card itself: `.adv-card--line` clips its children,
   and the clamped title traps the link's ::after. */
.adv-card:has(.adv-card__link:focus-visible) { outline: 2px solid var(--adv-focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--adv-focus-halo); }
.adv-card__excerpt { display: -webkit-box; margin: 0; overflow: hidden; font-size: 0.9375rem; line-height: 1.55; color: var(--adv-text); -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.adv-card__foot { flex-wrap: wrap; row-gap: 0.125rem; margin-top: auto; padding-top: 0.75rem; }
.adv-card__foot span + time::before { content: "\2022"; margin-inline-end: 0.625rem; }
.adv-card--no-media .adv-card__body { padding-top: 1.75rem; }

/* The featured card is the image itself: the category on top, the text and
   a round arrow button over a shade at the bottom. */
.adv-card--featured { isolation: isolate; min-height: 27rem; border-color: transparent; background: var(--adv-night); }
.adv-card--featured .adv-card__media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
/* Four classes: the plugin's chrome.css holds card images at 16:9 with three. */
.adv-cards .adv-card--featured .adv-card__media.adv-card__media img { height: 100%; aspect-ratio: auto; }
.adv-card--featured .adv-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 12, 14, 0.55) 0%, rgba(10, 12, 14, 0.1) 25%, rgba(10, 12, 14, 0.62) 55%, rgba(10, 12, 14, 0.94) 100%); }
.adv-card--featured .adv-card__body { gap: 0.875rem; padding: 1.75rem; color: #fff; }
.adv-card--featured :is(.adv-card__cat, .adv-card__foot).adv-eyebrow--spaced { color: rgba(255, 255, 255, 0.9); }
.adv-cards .adv-card--featured .adv-card__cat.adv-eyebrow--spaced { margin-bottom: auto; }
.adv-card--featured .adv-card__title { max-width: 22ch; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; -webkit-line-clamp: 3; line-clamp: 3; }
.adv-card--featured .adv-card__link { color: #fff; }
.adv-card--featured .adv-card__excerpt { max-width: 34rem; color: rgba(255, 255, 255, 0.88); -webkit-line-clamp: 2; line-clamp: 2; }
.adv-card--featured .adv-card__foot { order: -1; margin-top: 0; padding-top: 0; }
.adv-card--featured .adv-card__cat { order: -2; }
.adv-card__arrow { margin-top: 0.375rem; }
@media (min-width: 700px) { .adv-card--featured { grid-column: span 2; } .adv-card--featured .adv-card__body { padding: 2.25rem; } }

/* Pagination: boxed numbers, the current one filled with the ink. */
.adv-pagination { margin-top: var(--adv-space-4); }
.adv-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.adv-pagination .screen-reader-text + .nav-links, .adv-pagination h2 { margin: 0; }
.adv-pagination :is(.page-numbers, .post-page-numbers) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--adv-field-line);
  border-radius: var(--adv-radius-control);
  color: var(--adv-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.adv-pagination a:is(.page-numbers, .post-page-numbers):hover, .adv-pagination .current { border-color: var(--adv-heading); background: var(--adv-heading); color: var(--adv-page); }
.adv-pagination .dots { min-width: 1.5rem; padding: 0; border-color: transparent; }

/* Single: the reading column, optional drop cap, quotes, media, code,
   tables. */
.adv-main--post .adv-page-content { font-size: 1.0625rem; line-height: 1.7; letter-spacing: 0; }
@media (min-width: 1025px) { .adv-main--post .adv-page-content { font-size: 1.125rem; } }
.adv-main:not(.adv-main--archive) .adv-page-content :where(h2) { margin-top: 2em; font-family: var(--adv-font-display); font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); font-weight: 400; letter-spacing: -0.015em; }
.adv-main:not(.adv-main--archive) .adv-page-content :where(h3) { margin-top: 1.75em; font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.adv-main:not(.adv-main--archive) .adv-page-content :where(h4) { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.adv-dropcap .adv-main--post .adv-page-content > p:first-of-type::first-letter { float: left; margin: 0.08em 0.12em 0 0; font-family: var(--adv-font-display); font-size: 4.2em; line-height: 0.8; color: var(--adv-heading); }
.adv-page-content :where(.wp-block-image, .wp-block-embed, .wp-block-video, .wp-block-gallery, figure) :where(img:not(.emoji), video, iframe),
.adv-page-content > :where(img, video, iframe) { border-radius: var(--adv-radius); }
.adv-page-content :where(figcaption) { margin-top: 0.625rem; font-size: 0.875rem; color: var(--adv-muted); }
.adv-page-content :where(blockquote:not([class*="is-style-"]), .wp-block-pullquote) {
  margin-block: 2.5rem;
  padding: 1.75rem 0;
  border: 0;
  border-block: 1px solid var(--adv-hairline);
  font-family: var(--adv-font-display);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--adv-heading);
}
.adv-page-content :where(blockquote) > :last-child { margin-bottom: 0; }
.adv-page-content :where(blockquote cite, .wp-block-pullquote cite) { display: block; margin-top: 1rem; font-family: var(--adv-font-ui); font-size: 0.6875rem; font-style: normal; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--adv-muted); }
:where(pre) { overflow-x: auto; padding: 1rem 1.25rem; border-radius: var(--adv-radius-sm); background: var(--adv-chip); font-size: 0.875rem; }
:where(:not(pre) > code) { padding: 0.1em 0.4em; border-radius: 0.25rem; background: var(--adv-chip); font-size: 0.9em; }
.adv-page-content :where(table) { width: 100%; border: 1px solid var(--adv-hairline); border-radius: var(--adv-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 0.9375rem; }
.adv-page-content :where(th, td) { padding: 0.75rem 1rem; border-bottom: 1px solid var(--adv-hairline); text-align: start; }
.adv-page-content :where(tr:last-child > td) { border-bottom: 0; }
.adv-page-content :where(th) { color: var(--adv-heading); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.adv-page-content :where(hr) { height: 1px; margin-block: 2.5rem; border: 0; background: var(--adv-hairline); }

/* Tags as chips and the share row. */
.adv-post-tags, .adv-share { margin-top: 2.5rem; }
.adv-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.adv-tags a { min-height: 2.75rem; padding-inline: 0.875rem; }
.adv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.625rem; padding-top: 1.5rem; border-top: 1px solid var(--adv-hairline); }
.adv-share__label { margin-inline-end: 0.5rem; }
.adv-share__copy[data-copied] { border-color: var(--adv-heading); background: var(--adv-heading); color: var(--adv-page); }

/* Author card, prev/next image cards, related grid. */
.adv-post-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: var(--adv-space-5); }
.adv-post-footer > * { width: 100%; }
.adv-author { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; }
.adv-author .adv-avatar { width: 4rem; height: 4rem; }
.adv-author__eyebrow { margin-bottom: 0.5rem; }
.adv-author__name { margin: 0; color: var(--adv-heading); font-family: var(--adv-font-display); font-size: 1.5rem; line-height: 1.2; }
.adv-author__bio { margin: 0.375rem 0 0; font-size: 0.9375rem; color: var(--adv-text); max-width: 34rem; }
.adv-author__link { margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--adv-heading); }
.adv-author__link:hover { color: var(--adv-color-primary); }
.adv-post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.adv-post-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 15rem;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: var(--adv-radius-lg);
  background: var(--adv-night);
  color: #fff;
  text-decoration: none;
}
.adv-post-nav__link:hover { color: #fff; }
.adv-post-nav__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--adv-ease-out); }
.adv-post-nav__link:hover .adv-post-nav__img { transform: scale(1.03); }
/* Top stop 0.45 (was 0.3): the 11 px label sits there, AA on light photos. */
.adv-post-nav__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 12, 14, 0.45) 0%, rgba(10, 12, 14, 0.9) 100%); }
.adv-post-nav__link > :not(.adv-post-nav__img) { position: relative; z-index: 1; }
.adv-post-nav .adv-post-nav__label.adv-eyebrow--spaced { margin-inline-end: 0; color: #fff; font-size: 0.6875rem; }
.adv-post-nav__title { display: -webkit-box; overflow: hidden; font-family: var(--adv-font-display); font-size: 1.375rem; line-height: 1.2; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.adv-post-nav__arrow { margin-top: 0.5rem; width: 2.75rem; height: 2.75rem; }
.adv-post-nav__link--prev .adv-post-nav__arrow .adv-glyph { transform: scaleX(-1); }
.adv-post-nav__link--next { align-items: flex-end; text-align: end; }
.adv-related { margin-top: var(--adv-sec-y); padding-top: calc(var(--adv-sec-y) * 0.6); border-top: 1px solid var(--adv-hairline); }
.adv-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; margin-bottom: 2.5rem; }
.adv-related__head .adv-eyebrow--spaced { margin-bottom: 1rem; }
.adv-section-title { margin: 0; }
:is(.adv-related, .adv-comments) .adv-section-title.adv-statement { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem); }

/* Comments: ruled entries and a form with spaced-caps labels and the
   outline button. */
.adv-comments { margin-top: var(--adv-sec-y); }
.adv-comments__head { margin-bottom: 2rem; }
.adv-comments__head .adv-eyebrow--spaced { margin-bottom: 1rem; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-inline-start: clamp(1rem, 4vw, 3rem); }
.comment-body { padding: 1.5rem 0; border-top: 1px solid var(--adv-hairline); }
.bypostauthor > .comment-body { border-top-color: var(--adv-heading); }
.comment-author { display: flex; align-items: center; gap: 0.75rem; color: var(--adv-heading); font-weight: 600; }
.comment-author .fn a { color: inherit; text-decoration: none; }
.comment-author .says { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.comment-metadata { margin: 0.125rem 0 0; margin-inline-start: calc(48px + 0.75rem); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.comment-metadata a { color: var(--adv-muted); text-decoration: none; }
.comment-content { margin-top: 0.875rem; overflow-wrap: anywhere; }
.comment-content > :last-child { margin-bottom: 0; }
.comment-awaiting-moderation { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--adv-muted); }
.reply { margin-top: 0.75rem; }
.comment-reply-link, #cancel-comment-reply-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem; border: 1px solid var(--adv-field-line); border-radius: var(--adv-radius-control); color: var(--adv-heading); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-decoration: none; text-transform: uppercase; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
:is(.comment-reply-link, #cancel-comment-reply-link):hover { border-color: var(--adv-heading); background: var(--adv-heading); color: var(--adv-page); }
#cancel-comment-reply-link { margin-inline-start: 0.75rem; vertical-align: middle; font-family: var(--adv-font-ui); }
.comment-respond { margin-top: 1rem; padding-top: 2.5rem; border-top: 1px solid var(--adv-hairline); }
.comment-list .comment-respond { margin: 0 0 1.5rem; }
.adv-comments .comment-reply-title.adv-statement { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 1rem; }
.comment-form > p { margin: 0; }
.comment-form label { display: block; margin-bottom: 0.5rem; color: var(--adv-muted); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) { width: 100%; }
.comment-form textarea { min-height: 9rem; resize: vertical; }
.comment-notes, .logged-in-as { font-size: 0.875rem; color: var(--adv-muted); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.625rem; }
.comment-form-cookies-consent input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; }
.comment-form-cookies-consent label { margin: 0; color: var(--adv-text); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.comment-form .form-submit { margin-top: 0.25rem; }
.comment-form .submit { min-width: min(100%, 16rem); }
@media (min-width: 768px) { .comment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .comment-form > :is(.comment-notes, .logged-in-as, .comment-form-comment, .comment-form-url, .comment-form-cookies-consent, .form-submit) { grid-column: 1 / -1; } }
@media (max-width: 479px) { .comment-form .submit { width: 100%; } }

/* Empty states and the 404: a statement, the reason, the search field and
   three suggested links. */
.adv-empty { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: min(44rem, 100%); }
.adv-empty > *, .adv-empty__links > li { min-width: 0; max-width: 100%; }
.adv-empty .adv-eyebrow--spaced.adv-eyebrow { margin-bottom: -0.5rem; }
.adv-empty .adv-empty__title.adv-statement { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem); }
.adv-empty__text { margin: 0; max-width: 36rem; font-size: 1.125rem; color: var(--adv-text); }
.adv-empty__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.adv-empty__links .adv-button { max-width: 100%; text-align: start; }
.adv-empty__links .adv-button span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }

@media (prefers-reduced-motion: reduce) {
  .adv-card, .adv-card__media img, .adv-post-nav__img { transition: none; }
  .adv-card:hover .adv-card__media img, .adv-post-nav__link:hover .adv-post-nav__img { transform: none; }
}

/* Small phones: the centred meta row wraps; no leading dot on the new line. */
@media (max-width: 479px) {
  .adv-pagehead--centered .adv-meta { column-gap: 1rem; }
  .adv-pagehead--centered .adv-meta > * + *::before { display: none; }
}

/* Two-tone focus (advent-lite.css) for the news and single sheets, which are
   copies of the plugin's (news-index.css, news-single.css): their stretched
   links draw the ring on ::after, the halo goes there too (wider, for their
   4 px offset); the search box gets the full ring; the category links over a
   photo keep their white contour on a dark halo. */
.adv-news :is(.adv-news-card__link, .adv-news-lead__link):focus-visible, .adv-rel .adv-rel__link:focus-visible { box-shadow: none; }
.adv-news :is(.adv-news-card__link, .adv-news-lead__link):focus-visible::after, .adv-rel .adv-rel__link:focus-visible::after { box-shadow: 0 0 0 8px var(--adv-focus-halo); }
.adv-news .adv-news-search.adv-news-search:focus-within { outline: 2px solid var(--adv-focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--adv-focus-halo); }
.adv-news .adv-news-search .adv-news-search__submit:focus-visible, .adv-news .adv-news-drop__link:focus-visible { box-shadow: inset 0 0 0 6px var(--adv-focus-halo); }
.adv-news :is(.adv-news-card--overlay .adv-news-card__cat, .adv-news-lead:not(.adv-news-lead--noimg) .adv-news-lead__cat) a:focus-visible, :is(.adv-pagehead--cover, .adv-card--featured .adv-card__body) a:not(.adv-card__link):focus-visible { outline-color: var(--adv-ring-light); box-shadow: 0 0 0 6px var(--adv-ring-dark); }

/* Classic editor alignment and captions (content migrated from another
   theme, the [caption] shortcode). The text column is centred with auto
   margins, so a float starts where that column starts, not at the edge. */
.adv-page-content .alignleft { float: left; margin: 0.375em 1.5em 1em 0; }
.adv-page-content .alignright { float: right; margin: 0.375em 0 1em 1.5em; }
.adv-page-content .aligncenter { display: block; clear: both; margin-inline: auto; }
.adv-main--post .adv-page-content > .alignleft { margin-left: max(0px, (100% - var(--adv-content-size)) / 2); }
.adv-main--post .adv-page-content > .alignright { margin-right: max(0px, (100% - var(--adv-content-size)) / 2); }
@media (min-width: 1180px) {
  /* Post with sidebar: the column is 42rem wide and starts at the left. */
  .adv-post-layout .adv-post-layout__main .adv-page-content > .alignleft { margin: 0.375em 1.5em 1em 0; }
  .adv-post-layout .adv-post-layout__main .adv-page-content > .alignright { margin: 0.375em max(0px, 100% - 42rem) 1em 1.5em; }
  .adv-post-layout .adv-post-layout__main .adv-page-content > .aligncenter { position: relative; left: min(0px, (42rem - 100%) / 2); margin-inline: auto; }
}
.adv-page-content :is(.alignleft, .alignright) { max-width: 50%; }
.adv-page-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; max-width: 100%; height: auto; }
.wp-caption-text, .gallery-caption { margin-top: 0.625rem; font-size: 0.875rem; color: var(--adv-muted); }
.sticky, .bypostauthor { /* WordPress marker classes: no style of their own. */ }
