/*
 * WordPress-specific additions on top of site.css (the site's main
 * stylesheet). Search form/results, classic-editor content helpers.
 */

/* Search (dialog + results page) */
.site-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.site-search__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
.site-search__btn {
  white-space: nowrap;
}
.site-search--page {
  max-width: 640px;
  margin-bottom: 36px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 72ch;
}
.results__item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.results__item:last-child {
  border-bottom: 1px solid var(--line);
}
.results__title {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--green-deep);
  text-decoration: none;
}
.results__title:hover {
  text-decoration: underline;
}
.results__num {
  font-weight: 600;
  color: var(--body);
  font-size: 1rem;
}
.results__text {
  margin: 6px 0 4px;
  color: var(--body);
}
.results__meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
}
.pagination {
  margin-top: 32px;
  font-family: var(--f-disp);
  font-weight: 600;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 6px 10px;
  color: var(--ink);
  text-decoration: none;
}
.pagination .page-numbers.current {
  border-bottom: 2px solid var(--green);
}

/* Classic editor content: images and alignment classes WordPress emits. */
.prose img {
  max-width: 100%;
  height: auto;
}
.prose .alignleft {
  float: left;
  margin: 0.4em 1.5em 1em 0;
}
.prose .alignright {
  float: right;
  margin: 0.4em 0 1em 1.5em;
}
.prose .aligncenter {
  display: block;
  margin: 1em auto;
}
.prose .wp-caption {
  max-width: 100%;
}
.prose .wp-caption-text {
  font-size: 0.9rem;
  color: var(--body);
  margin-top: 6px;
}
.prose .table-scroll {
  overflow-x: auto;
}

/* Admin bar: keep the sticky header below it when logged in. */
.admin-bar .site-head {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-head {
    top: 46px;
  }
}

/* A form plugin's form inside the theme's white card. */
.contact-form--plugin input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form--plugin select,
.contact-form--plugin textarea {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.contact-form--plugin input[type="submit"],
.contact-form--plugin button[type="submit"] {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding: 14px 22px;
  font-family: var(--f-disp);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
}

/* -------------------------------------------------------------------------
 * Blog: index grid, category filter, single post. Same card language as the
 * wash-system lineup (2px ink border, green deep titles, green underline on hover).
 * ---------------------------------------------------------------------- */
.blog__intro {
  margin-bottom: 36px;
}
.post-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.post-filters a {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 14px;
  border: 2px solid var(--line);
}
.post-filters a:hover {
  border-color: var(--ink);
}
.post-filters a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.post-grid__h {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 32px;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.post-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.post-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}
.post-card__body {
  display: block;
  padding: 18px 20px 22px;
}
.post-card__meta,
.post__meta,
.post-card__cats {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
}
.post-card__meta {
  display: block;
}
.post-card__t {
  display: block;
  color: var(--green-deep);
  margin: 8px 0;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.post-card__d {
  display: block;
  color: var(--body);
  line-height: 1.6;
}
.post-card__link:hover,
.post-card__link:focus-visible {
  border-color: var(--green-deep);
  box-shadow: inset 0 -4px 0 var(--green);
}
.post-card__link:hover .post-card__t {
  text-decoration: underline;
}
.post-card__cats {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.post-card__cats a {
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--ink);
}
.post-card__cats a:hover {
  background: var(--green);
  border-color: var(--green);
}

/* Single post (an <article>, so it does not get the section padding by itself) */
.post {
  padding: 74px 0 80px;
}
.post__meta {
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  max-width: 72ch;
}
.post__body {
  font-size: 1.12rem;
}
.post__body p {
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.post__body h2 {
  margin-top: 2.6rem;
}
.post__body ul,
.post__body ol {
  margin-bottom: 1.5rem;
}
.post__body li {
  margin: 0.5rem 0;
  line-height: 1.7;
}
.post__meta a {
  color: var(--green-deep);
  text-decoration: none;
}
.post__meta a:hover {
  text-decoration: underline;
}
.post__body figure,
.post__body iframe,
.post__body video {
  max-width: 100%;
}
.post__body iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  margin: 1.6rem 0;
  border: 0;
}
.post__body blockquote {
  margin: 1.6rem 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--green);
  color: var(--ink);
  font-size: 1.12rem;
}
.post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.98rem;
}
.post__body th,
.post__body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.post__body th {
  color: var(--ink);
}
.post__body hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 2.2rem 0;
}
.post__back {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 72ch;
  font-family: var(--f-disp);
  font-weight: 600;
}
.post__back a {
  color: var(--green-deep);
}
.blog--more .post-card__link {
  background: var(--white);
}

@media (max-width: 860px) {
  .post {
    padding: 52px 0 60px;
  }
}
@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer credit line is editable HTML (Site Settings), so its link has no scope attribute. */
.foot-legal a {
  color: var(--dim);
  text-decoration: underline;
}
.foot-legal a:hover,
.foot-legal a:focus-visible {
  color: var(--white);
}
