/* ==========================================================================
   Avenor Park — blog
   Deliberately the same navy-and-gold language as the rest of the site. The
   previous attempt rendered on a default theme template and looked off-brand.
   ========================================================================== */

/* ---- search -------------------------------------------------------------
   The form is JS-gated: js/blog-search.js does the filtering, so without it
   the control would be a lie. The wrapper keeps its height either way, so the
   page does not jump when the script upgrades it. The <noscript> fallback
   inside sends people to Google site search instead.
   ------------------------------------------------------------------------ */
.blog-search { margin-top: var(--s-5); min-height: 92px; }
.blog-search__form { display: none; }
.blog-search__hint { display: none; }
.js .blog-search__form { display: flex; }
.js .blog-search__hint { display: block; }
noscript .blog-search__hint { display: block; }

.blog-search__form {
  align-items: center;
  gap: var(--s-2);
  max-width: 640px;
  padding: 6px 6px 6px var(--s-3);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.blog-search__form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.10);
}
.blog-search__icon { width: 18px; height: 18px; flex: 0 0 auto; fill: var(--ink-muted); }
.blog-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  color: var(--ink);
  padding: 10px 0;
}
.blog-search__input::-webkit-search-cancel-button { display: none; }
.blog-search__clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-muted);
}
.blog-search__clear:hover { background: rgb(0 0 0 / 0.06); color: var(--ink); }
.blog-search__go { flex: 0 0 auto; border-radius: 999px; }

/* Results appear as you type, so on a narrow screen the button is just eating
   room the placeholder needs. Enter still submits. */
@media (max-width: 600px) {
  .blog-search__go { display: none; }
  .blog-search__form { padding-right: var(--s-3); }
}

.blog-search__hint { margin-top: var(--s-2); font-size: 13px; color: var(--ink-muted); }
.blog-search__hint kbd {
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.blog-search__hint a { color: var(--gold-ink); text-decoration: underline; }
.blog-search__status { margin-top: var(--s-1); font-size: 13px; color: var(--ink-muted); }

/* Results replace the card grid rather than being appended, so the page never
   shows two answers to the same question. */
.search-results { list-style: none; max-width: 760px; }
.js .search-results[hidden],
.js .post-grid[hidden],
.js .pager[hidden] { display: none; }

.search-result { padding: var(--s-4) 0; border-bottom: 1px solid var(--hairline); }
.search-result:first-child { padding-top: 0; }
.search-result__url {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.search-result__title {
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}
.search-result__title a { color: var(--teal); }
.search-result__title a:hover { text-decoration: underline; }
.search-result__snippet { font-size: var(--fs-body); color: var(--ink); }
.search-result__meta {
  display: flex;
  gap: var(--s-2);
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}
.search-result mark {
  background: rgb(203 165 43 / 0.28);
  color: inherit;
  font-weight: 600;
}
.search-result--empty { border-bottom: 0; }
.search-result--empty a { color: var(--gold-ink); text-decoration: underline; }

/* ---- listing ------------------------------------------------------------ */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin-top: var(--s-4);
}
.cat-nav a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: var(--fs-body);
  color: var(--gold-ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cat-nav a:hover { background: var(--gold); color: var(--navy); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  list-style: none;
}
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgb(0 0 0 / 0.12); }
.post-card a { display: block; height: 100%; }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card__body { padding: var(--s-4); }
.post-card__cat {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}
.post-card h2, .post-card h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--teal);
}
.post-card p { font-size: var(--fs-body); }
.post-card__meta { margin-top: var(--s-2); color: var(--ink-muted); font-size: 13px; }

.pager {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  justify-content: center;
  margin-top: var(--s-6);
  font-size: var(--fs-body);
}
.pager a { color: var(--gold-ink); font-weight: 600; }
.pager a:hover { text-decoration: underline; }
.pager span { color: var(--ink-muted); }

/* ---- post --------------------------------------------------------------- */
.post { max-width: 900px; }
.post__head { margin-bottom: var(--s-5); }
.post__meta { color: var(--ink-muted); font-size: var(--fs-body); display: flex; gap: var(--s-2); }

.post__hero { margin-bottom: var(--s-6); }
.post__hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.post__body { font-size: var(--fs-body-lg); line-height: 1.75; }
.post__body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: var(--s-6) 0 var(--s-3);
}
.post__body p { margin-bottom: var(--s-3); }
.post__body ul, .post__body ol { margin: 0 0 var(--s-3) var(--s-5); }
.post__body li { margin-bottom: var(--s-2); list-style: disc; }
.post__body ol li { list-style: decimal; }
.post__body a { color: var(--gold-ink); text-decoration: underline; }
.post__body strong { font-weight: 600; }

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: var(--s-6) 0;
}
.post__tags li {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgb(203 165 43 / 0.14);
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 600;
}

.post__tags a { color: inherit; text-decoration: none; }
.post__tags a:hover { text-decoration: underline; }

.post-seq {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  margin-bottom: var(--s-5);
}
.post-seq a {
  flex: 1 1 240px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--teal);
}
.post-seq a:hover { border-color: var(--gold); }
.post-seq a span {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 4px;
}
.post-seq__next { text-align: right; }

.post-allposts { margin-top: var(--s-5); font-size: var(--fs-body); }
.post-allposts a { color: var(--gold-ink); font-weight: 600; }
.post-allposts a:hover { text-decoration: underline; }

.post__head .eyebrow a { color: inherit; }
.post__head .eyebrow a:hover { text-decoration: underline; }

.post__author, .post__share {
  padding: var(--s-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  margin-bottom: var(--s-4);
}
.post__author h2, .post__share h2 { font-size: var(--fs-body-lg); margin-bottom: var(--s-2); }
.post__author a, .post__share a { color: var(--gold-ink); text-decoration: underline; }
.post__share ul { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; }
