/*
Theme Name: SVG Adventists ALPS Child
Description: Site-specific page templates for SVG Adventists, inheriting ALPS for WordPress.
Version: 1.4.0
Author: SVG Adventists
Template: alps-wordpress-v3
Text Domain: svgadventists
Requires PHP: 8.1
*/

/* Editor-entered names and assignments stay within their directory cards. */
.svg-pastoral-card__body h3,
.svg-pastoral-card__assignment {
  overflow-wrap: anywhere;
}

/* Optional homepage story, immediately after the introductory banner. */
.svg-home-feature {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.svg-home-feature__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: #fff;
  border: 1px solid var(--svg-border);
  border-top: 4px solid var(--svg-denim-700);
  box-shadow: 0 1rem 2.5rem rgba(0, 31, 51, .07);
}
.svg-home-feature__card--text {
  grid-template-columns: minmax(0, 1fr);
}
.svg-home-feature__media {
  position: relative;
  min-height: 20rem;
  margin: 0;
}
.svg-home-feature__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svg-home-feature__body {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  overflow-wrap: anywhere;
}
.svg-home-feature__body h2 {
  margin-top: .65rem;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}
.svg-home-feature__summary {
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .svg-home-feature__card {
    grid-template-columns: minmax(0, 1fr);
  }
  .svg-home-feature__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Keep News links in the normal flow below summaries of any length. */
.svg-post-card.svg-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.svg-news-card > p {
  margin-bottom: 1.25rem;
}
.svg-news-card > .svg-post-card__link {
  position: static;
  margin-top: auto;
}

/* ALPS's zero-sides utility clears vertical padding too. Restore reading space. */
body.svg-template-standard .l-main__content {
  width: var(--svg-shell);
  margin-left: auto;
  margin-right: auto;
  padding-top: 3rem !important;
  padding-bottom: 4rem !important;
}

.svg-identity-intro.svg-template-intro--single {
  grid-template-columns: minmax(0, 1fr);
}
.svg-template-intro--single .svg-identity-copy {
  max-width: 52rem;
}
.svg-template-worship .svg-child-article__content > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-top: 1.5rem;
  padding: 0 !important;
  list-style: none;
}
.svg-template-worship .svg-child-article__content > ul > li {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--svg-border);
  border-left: 4px solid var(--svg-denim-700);
  background: var(--svg-surface-soft);
  break-inside: avoid;
}
@media (max-width: 900px) {
  .svg-template-worship .svg-child-article__content > ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Standard articles use a compact header; Feature retains the ALPS editorial hero. */
.svg-template-article-hero--standard,
.svg-template-article-hero--standard .svg-article-hero__inner {
  min-height: 19rem;
}
.svg-template-article-hero--standard .svg-article-hero__inner {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.svg-template-article-hero--standard .svg-article-hero__content {
  width: min(100%, 58rem);
}
.svg-template-article-hero--standard .svg-article-hero__content h1 {
  max-width: 26ch;
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  line-height: 1.08;
}
.svg-template-article-hero--standard::after {
  background: linear-gradient(90deg, rgba(1, 20, 34, .95), rgba(1, 24, 41, .78) 55%, rgba(2, 26, 43, .38));
}
.svg-template-article-hero--standard .svg-article-hero__media img {
  object-position: center 45%;
}
.svg-template-article-hero--standard .svg-article-meta a,
.svg-template-article-hero--feature .svg-article-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.svg-template-article-intro--single {
  grid-template-columns: minmax(0, 1fr);
}
.svg-template-article-intro--single .svg-article-intro__copy h2 {
  max-width: 28ch;
}
.svg-template-article--standard .svg-section {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.svg-template-article--standard .svg-template-article-introduction {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.svg-template-article--standard .svg-child-breadcrumbs:last-child {
  margin-bottom: 0;
}
.svg-template-article--standard .svg-article-intro__copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}
.svg-template-article--standard .svg-article-body {
  padding: clamp(1.3rem, 3vw, 2.75rem);
}
.svg-template-article--standard .svg-article-body__content > p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.svg-template-article .svg-template-article-comments {
  margin-top: 2.5rem;
  padding: clamp(1.3rem, 3vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--svg-border);
}
.svg-template-article-comments input:not([type="checkbox"]):not([type="radio"]),
.svg-template-article-comments textarea {
  max-width: 100%;
}
.svg-template-article-comments textarea {
  width: 100%;
}
.svg-template-article .svg-article-tags,
.svg-template-article .svg-article-pagination {
  margin-top: 1.25rem;
}
.svg-template-article .svg-article-body__content > :first-child {
  margin-top: 0;
}
@media (max-width: 600px) {
  .svg-template-article-hero--standard,
  .svg-template-article-hero--standard .svg-article-hero__inner {
    min-height: 16rem;
  }
  .svg-template-article-hero--standard .svg-article-hero__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .svg-template-article-hero--standard .svg-article-hero__content h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
  .svg-template-article .svg-article-body__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
