/* Grailwood Article Feeds 1.0 - scoped to this plugin only. */
.gwaf {
  --gwaf-ink: #18313b;
  --gwaf-teal: #007579;
  --gwaf-cream: #fff9ee;
  --gwaf-mint: #d7f0ec;
  --gwaf-stroke: #d7d9d1;
  font-family: 'Atkinson Hyperlegible Next', Arial, sans-serif;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: var(--gwaf-ink);
}
.gwaf *, .gwaf *::before, .gwaf *::after { box-sizing: border-box; }
.gwaf .gwaf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  width: 100%;
  min-width: 0;
}
.gwaf .gwaf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5d9d0;
  border-radius: 19px;
  background: #fffef9;
  box-shadow: 0 12px 24px rgba(24, 49, 59, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gwaf .gwaf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(24, 49, 59, .10);
}
.gwaf .gwaf-card__media {
  overflow: hidden;
  height: 195px;
  background: #daeee9;
}
.gwaf .gwaf-card__media > a { display: block; width: 100%; height: 100%; }
.gwaf .gwaf-card__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.gwaf .gwaf-card__fallback {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff9ee;
  background: radial-gradient(circle at 22% 20%, #317b7d, transparent 43%), linear-gradient(135deg, #18313b, #007579);
}
.gwaf .gwaf-card__fallback span { color: #ffe078; font-size: 2.3rem; line-height: 1; }
.gwaf .gwaf-card__fallback small { font-size: .66rem; letter-spacing: .16em; font-weight: 800; }
.gwaf .gwaf-card__copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 23px 24px;
  min-width: 0;
}
.gwaf .gwaf-card__eyebrow {
  margin: 0 0 10px !important;
  color: var(--gwaf-teal) !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.4;
  text-transform: uppercase;
}
.gwaf .gwaf-card h3 {
  font-family: 'Bricolage Grotesque', Arial, sans-serif;
  font-size: clamp(1.25rem, 1.75vw, 1.52rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
  margin: 0 0 10px !important;
  color: var(--gwaf-ink) !important;
  overflow-wrap: break-word;
}
.gwaf .gwaf-card h3 a { color: inherit !important; text-decoration: none !important; }
.gwaf .gwaf-card h3 a:hover { color: var(--gwaf-teal) !important; }
.gwaf .gwaf-card__excerpt {
  flex: 1 1 auto;
  margin: 0 0 20px !important;
  color: #415861 !important;
  font-size: .95rem !important;
  line-height: 1.62 !important;
}
.gwaf .gwaf-card__action {
  align-self: flex-start;
  color: var(--gwaf-teal) !important;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none !important;
}
.gwaf .gwaf-card__action:hover { text-decoration: underline !important; }
.gwaf .gwaf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 33px 26px;
  min-height: 155px;
  border: 1px dashed #a9c6bd;
  border-radius: 18px;
  background: linear-gradient(125deg, #edf6f2, #fff9ee);
  text-align: center;
  color: #385c60;
}
.gwaf .gwaf-empty > span { color: var(--gwaf-teal); font-size: 1.7rem; }
.gwaf .gwaf-empty p { margin: 0 !important; font-size: 1rem !important; line-height: 1.6 !important; }
.gwaf .gwaf-empty a { color: var(--gwaf-teal) !important; font-weight: 800; }
.gwaf .gwaf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 25px;
}
.gwaf .gwaf-filter {
  display: flex;
  align-items: end;
  gap: 11px;
  flex-wrap: wrap;
  margin: 0;
}
.gwaf .gwaf-filter label {
  display: block;
  width: 100%;
  color: var(--gwaf-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.gwaf .gwaf-filter select {
  min-width: 220px;
  max-width: 100%;
  min-height: 45px;
  padding: 9px 38px 9px 14px;
  border: 1px solid #acc9c2;
  border-radius: 11px;
  background: #fffef9;
  color: var(--gwaf-ink);
  font: inherit;
  font-size: .95rem;
}
.gwaf .gwaf-filter button {
  min-height: 45px;
  padding: 10px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--gwaf-teal);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
}
.gwaf .gwaf-filter button:hover { background: #00575a; }
.gwaf .gwaf-filter :focus-visible,
.gwaf .gwaf-card a:focus-visible,
.gwaf .gwaf-pagination a:focus-visible {
  outline: 3px solid #ff795b;
  outline-offset: 3px;
}
.gwaf .gwaf-count { margin: 0 0 8px !important; color: #527078 !important; font-size: .86rem !important; }
.gwaf .gwaf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 35px 0 0;
  padding: 21px 0 0;
  border-top: 1px solid #d7d9d1;
}
.gwaf .gwaf-pagination__status {
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 6px;
  font-size: .80rem;
  color: #526d73;
}
.gwaf .gwaf-pagination__number,
.gwaf .gwaf-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #bfd5cf;
  border-radius: 10px;
  color: var(--gwaf-teal) !important;
  background: #fffdf8;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
}
.gwaf .gwaf-pagination__arrow { min-width: 95px; }
.gwaf .gwaf-pagination__number.is-current,
.gwaf .gwaf-pagination a:hover {
  border-color: var(--gwaf-teal);
  color: white !important;
  background: var(--gwaf-teal);
}
.gwaf .gwaf-pagination__dots { color: #637c82; padding: 0 3px; }
.gwaf-resource-articles-section {
  padding-top: 80px;
  padding-bottom: 90px;
}
.gwaf-resource-articles-section .gwaf-resource-articles__heading { margin-bottom: 31px; }
.gwaf-resource-articles-section .gwaf-resource-articles__heading h2 { margin: 8px 0 12px; }
.gwaf-resource-articles-section .gwaf-resource-articles__heading > p:last-child {
  max-width: 700px;
  line-height: 1.7;
}
@media (max-width: 980px) {
  .gwaf .gwaf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gwaf .gwaf-grid { grid-template-columns: 1fr; gap: 16px; }
  .gwaf .gwaf-card__media { height: 205px; }
  .gwaf .gwaf-card__copy { padding: 20px; }
  .gwaf .gwaf-toolbar { align-items: stretch; }
  .gwaf .gwaf-filter { align-items: stretch; width: 100%; }
  .gwaf .gwaf-filter select { flex: 1 1 100%; min-width: 0; }
  .gwaf .gwaf-filter button { width: 100%; }
  .gwaf-resource-articles-section { padding-top: 54px; padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .gwaf .gwaf-card { transition: none; }
}

/* v1.1: Two independent filters in the combined article and resource library. */
.gwaf .gwaf-filter__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gwaf .gwaf-filter__field select { width: 100%; }
.gwaf .gwaf-filter__field label { width: auto; }
@media (max-width: 640px) {
  .gwaf .gwaf-filter__field { width: 100%; }
}
