/* Editorial article surfaces (P10/P11) */

/* Article card */
.article-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ded9cc;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(33, 47, 38, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.25rem 3rem rgba(33, 47, 38, 0.13);
}

.article-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.article-card__link:hover,
.article-card__link:focus {
  text-decoration: none;
}

.article-card__link:focus-visible {
  outline: 3px solid #c88343;
  outline-offset: -3px;
}

.article-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e4e6dd;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.035);
}

.article-card__media-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(145deg, transparent 52%, rgba(32, 63, 45, 0.18) 52%),
    linear-gradient(30deg, #b8c9ba 38%, #e7dfc9 38% 56%, #8ba78e 56%);
}

.article-card__media-fallback span {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(34, 55, 41, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem;
}

.article-card__category {
  margin: 0;
  color: #8b5d37;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card__title {
  margin: 0;
  color: #223629;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.article-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #59645c;
  font-size: 0.93rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.3rem;
  color: #7a857c;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Article meta line */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  color: #6a756c;
  font-size: 0.86rem;
}

.article-meta__author {
  font-weight: 700;
  color: #223629;
}

.article-meta__updated {
  color: #8b5d37;
  font-style: italic;
}

/* Related grids */
.article-related {
  margin-top: 2.75rem;
}

.article-related__title {
  margin: 0 0 0.6rem;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.article-related__lead {
  margin: 0 0 1.25rem;
  color: #5c675f;
}

.article-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .article-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .article-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Single article */
.article-single {
  background: #fffdf8;
}

.article-single__shell {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) 0;
}

.article-single__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  color: #8a938b;
  font-size: 0.82rem;
}

.article-single__breadcrumbs a {
  color: #315a40;
  text-decoration: none;
}

.article-single__breadcrumbs a:hover {
  text-decoration: underline;
}

.article-single__category {
  margin: 0 0 0.7rem;
}

.article-single__category a {
  color: #8b5d37;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.article-single__title {
  margin: 0;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.article-single__deck {
  margin: 1.1rem 0 1.25rem;
  color: #46544b;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.article-single__featured {
  margin: 0 0 2rem;
}

.article-single__featured img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.article-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.article-single__toc {
  padding: 1.25rem 1.4rem;
  border: 1px solid #e2dccd;
  border-radius: 0.9rem;
  background: #f8f5ed;
}

.article-single__toc-title {
  margin: 0 0 0.7rem;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.article-single__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-single__toc-list li {
  margin: 0.35rem 0;
}

.article-single__toc-list a {
  color: #315a40;
  font-size: 0.9rem;
  text-decoration: none;
}

.article-single__toc-list a:hover {
  text-decoration: underline;
}

.article-single__content {
  min-width: 0;
}

.article-single__body {
  color: #3d4a41;
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.article-single__body > * {
  max-width: 100%;
}

.article-single__body h2 {
  margin: 2.25rem 0 0.9rem;
  color: #1f4b35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.article-single__body h3 {
  margin: 1.75rem 0 0.7rem;
  color: #254b35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.article-single__body p {
  margin: 0 0 1.25rem;
}

.article-single__body a {
  color: #0b5e5e;
  text-decoration: underline;
}

.article-single__body img {
  height: auto;
  border-radius: 0.75rem;
}

.article-single__body figure {
  margin: 1.5rem 0;
}

.article-single__body ul,
.article-single__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.article-single__body blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid #b86835;
  color: #5c675f;
  font-style: italic;
}

.article-single__sources {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee9dd;
}

.article-single__sources h2 {
  margin: 0 0 0.8rem;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.article-single__sources ul {
  margin: 0;
  padding-left: 1.3rem;
}

.article-single__sources a {
  color: #0b5e5e;
  word-break: break-all;
}

.article-single__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee9dd;
}

.article-single__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.article-single__share-label {
  font-weight: 800;
  color: #223629;
}

.article-single__share a {
  padding: 0.45rem 0.8rem;
  border: 1px solid #ddd6c8;
  border-radius: 999px;
  color: #223629;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.article-single__share a:hover {
  background: #f1eee4;
}

.article-single__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.article-single__prev,
.article-single__next {
  max-width: 46%;
  color: #315a40;
  font-weight: 700;
  text-decoration: none;
}

.article-single__prev:hover,
.article-single__next:hover {
  text-decoration: underline;
}

@media (min-width: 960px) {
  .article-single__layout:has(.article-single__toc) {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: start;
  }

  .article-single__layout:has(.article-single__toc) .article-single__toc {
    order: 2;
    position: sticky;
    top: 1.5rem;
  }
}

/* Search form */
.search-form {
  width: 100%;
  max-width: 560px;
}

.search-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.search-form__row {
  display: flex;
  gap: 0.5rem;
}

.search-form__field {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid #ddd6c8;
  border-radius: 999px;
  background: #fff;
  color: #223629;
}

.search-form__submit {
  min-height: 46px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #1d3e2b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Guides hub */
.guides-hub {
  background: #fffdf8;
}

.guides-hub__header {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.7), transparent 26%),
    linear-gradient(145deg, #f8f3e7 0%, #e8eadb 52%, #c7d5c4 100%);
}

.guides-hub__header-inner {
  width: min(860px, 100%);
  margin: 0 auto;
}

.guides-hub__eyebrow {
  margin: 0 0 0.8rem;
  color: #b86835;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guides-hub__title {
  margin: 0;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.guides-hub__intro {
  max-width: 620px;
  margin: 1.25rem 0 1.75rem;
  color: #4e5d52;
  font-size: 1.1rem;
}

.guides-hub__section {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}

.guides-hub__section + .guides-hub__section {
  border-top: 1px solid #f0ede5;
}

.guides-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.guides-hub__heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.guides-hub__kicker {
  margin: 0 0 0.5rem;
  color: #b86835;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guides-hub__section-title {
  margin: 0;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.guides-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.guides-hub__empty,
.guides-hub__spotlight-empty {
  padding: 2rem;
  border: 1px dashed #b9c2b7;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
  color: #667067;
  text-align: center;
}

.guides-hub__empty p,
.guides-hub__spotlight-empty {
  margin: 0;
}

.guides-hub__topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-topic {
  border: 1px solid #ded9cc;
  border-radius: 1rem;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guides-topic:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.5rem rgba(33, 47, 38, 0.1);
}

.guides-topic a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.guides-topic__name {
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.guides-topic__description {
  color: #5c675f;
  font-size: 0.9rem;
}

.guides-topic__count {
  color: #8b5d37;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 2.5rem 0 0;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border: 1px solid #ddd6c8;
  border-radius: 0.5rem;
  color: #315a40;
  font-weight: 700;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background: #f1eee4;
}

.pagination .page-numbers.current {
  border-color: #1d3e2b;
  background: #1d3e2b;
  color: #fff;
}

@media (min-width: 700px) {
  .guides-hub__grid--3,
  .guides-hub__topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .guides-hub__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guides-hub__topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Article archives (category + generic) */
.article-archive {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: #fffdf8;
}

.article-archive__header {
  width: min(1180px, 100%);
  margin: 0 auto 2rem;
}

.article-archive__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: #8a938b;
  font-size: 0.82rem;
}

.article-archive__breadcrumbs a {
  color: #315a40;
  text-decoration: none;
}

.article-archive__eyebrow {
  margin: 0 0 0.6rem;
  color: #b86835;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-archive__title {
  margin: 0;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.article-archive__description {
  max-width: 720px;
  margin: 1rem 0 0;
  color: #5c675f;
  font-size: 1.05rem;
}

.article-archive__grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.article-archive__empty {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2rem;
  border: 1px dashed #b9c2b7;
  border-radius: 1rem;
  color: #667067;
  text-align: center;
}

/* Search results */
.search-page {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: #fffdf8;
}

.search-page__header {
  width: min(860px, 100%);
  margin: 0 auto 2rem;
}

.search-page__eyebrow {
  margin: 0 0 0.6rem;
  color: #b86835;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-page__title {
  margin: 0;
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.search-page__query {
  margin: 0.8rem 0 1.5rem;
  color: #5c675f;
}

.search-page__count {
  width: min(1180px, 100%);
  margin: 0 auto 1rem;
  color: #667067;
  font-size: 0.9rem;
}

.search-page__grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.search-page__empty {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2rem;
  border: 1px dashed #b9c2b7;
  border-radius: 1rem;
  color: #667067;
  text-align: center;
}

@media (min-width: 700px) {
  .article-archive__grid,
  .search-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .article-archive__grid,
  .search-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Homepage editorial sections */
.home-featured-guides__grid,
.home-latest-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.home-featured-guides__empty,
.home-latest-articles__empty {
  padding: 2rem;
  border: 1px dashed #b9c2b7;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
  color: #667067;
  text-align: center;
}

.home-featured-guides__empty p,
.home-latest-articles__empty p {
  margin: 0;
}

.home-topics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-topic {
  border: 1px solid #ded9cc;
  border-radius: 1rem;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-topic:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.5rem rgba(33, 47, 38, 0.1);
}

.home-topic a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.home-topic__name {
  color: #1d3e2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.home-topic__description {
  color: #5c675f;
  font-size: 0.9rem;
}

.home-topic__count {
  color: #8b5d37;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-community {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  background: #1d3e2b;
  color: #d9e4da;
}

.home-community__inner {
  display: grid;
  gap: 1.5rem;
}

.home-community__copy .home-eyebrow {
  color: #efd2b2;
}

.home-community__copy h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.home-community__copy p {
  margin: 0.75rem 0 0;
  color: #becdc0;
}

.home-community__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.home-community .home-button--primary {
  background: #efd2b2;
  color: #1d3e2b;
}

.home-community .home-button--secondary {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
}

@media (min-width: 700px) {
  .home-featured-guides__grid,
  .home-latest-articles__grid,
  .home-topics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-community__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .home-featured-guides__grid,
  .home-latest-articles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-topics__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card__media img,
  .guides-topic,
  .home-topic {
    transition: none;
  }
}



