/* Blog-only styles. Colours, type, buttons, header and footer come from the main site stylesheet. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wrap--article { max-width: 860px; }

/* ---------- Blog hero ---------- */
.bhero { padding: 128px 0 40px; background: var(--mist); }
.bhero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.bsearch { position: relative; width: min(100%, 360px); }
.bsearch svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.bsearch input {
  width: 100%; height: 50px; padding: 0 18px 0 46px;
  font: 500 1rem var(--sans); color: var(--navy);
  background: var(--white); border: 1.5px solid var(--field-border); border-radius: 999px;
}
.bsearch input::placeholder { color: var(--muted); }
.bsearch input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--field-border);
  color: var(--navy); font-weight: 500; font-size: .92rem; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chips a:hover { border-color: var(--navy); }
.chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Post cards ---------- */
.blist { padding-top: 56px; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.bcard__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.bcard__media { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--mist); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.bcard__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--red)); }
.bcard__link:hover img { transform: scale(1.04); }
.bcard__body { padding-top: 16px; }
.bcard__meta { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); }
.bcard__title {
  margin-top: 8px; font-family: var(--serif); font-weight: 500;
  font-size: 1.35rem; line-height: 1.25; color: var(--navy);
  transition: color .2s;
}
.bcard__link:hover .bcard__title { color: var(--red); }
.bcard__excerpt { margin-top: 8px; color: var(--muted); font-size: .97rem; line-height: 1.6; }

/* ---------- Pagination ---------- */
.bpager { margin-top: 56px; }
.bpager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bpager .page-numbers {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.bpager a.page-numbers:hover { border-color: var(--navy); }
.bpager .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bpager .page-numbers.dots { border: 0; }

.bempty { text-align: center; display: grid; gap: 16px; justify-items: center; padding: 40px 0; }

/* ---------- Single article ---------- */
.article__head { padding: 128px 0 32px; }
.article__title {
  max-width: 22ch;
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.025em;
}
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.article__hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.article__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px);
  padding-top: 48px; padding-bottom: 32px; align-items: start;
}
.article__aside { position: sticky; top: 108px; display: grid; gap: 20px; }

.aside-cta { background: var(--red); color: var(--white); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
.aside-cta__title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.aside-cta .btn { width: 100%; }
.aside-cta__link { color: var(--white); font-weight: 600; text-align: center; }
.aside-list { border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.aside-list__title { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.aside-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.aside-list li:first-child { border-top: 0; }
.aside-list a { display: block; color: var(--navy); text-decoration: none; font-weight: 500; line-height: 1.4; }
.aside-list a:hover { color: var(--red); }
.aside-list time { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.article__aside .bsearch { width: 100%; }

.article__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.article__pager a {
  display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: var(--mist);
  color: var(--navy); font-weight: 600; text-decoration: none; line-height: 1.4;
}
.article__pager a:hover { background: var(--navy); color: var(--white); }
.article__pager small { font-weight: 500; font-size: .82rem; opacity: .7; }
.article__pager-next { grid-column: 2; text-align: right; }

.related { background: var(--mist); }
.related .h2 { margin-bottom: 40px; }

/* ---------- Article body ---------- */
.prose { font-size: 1.1rem; line-height: 1.8; color: var(--navy-ink); max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.2; letter-spacing: -.01em; margin-top: 1.8em; }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.2rem; }
.prose p, .prose li { color: #34324a; }
.prose a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-deep); }
.prose strong { color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose blockquote {
  margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--navy);
}
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: 16px; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--mist); color: var(--navy); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .4em 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-block-button__link { background: var(--red); color: var(--white); border-radius: 999px; padding: 12px 24px; text-decoration: none; }

/* ---------- Comments ---------- */
.comments-area, .comment-respond { margin-top: 48px; }
.comment-reply-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--navy); margin-bottom: 12px; }
.comment-form > p { margin-top: 14px; }
.article__layout { padding-bottom: var(--section); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--field-border); border-radius: 12px; font: inherit;
}
.comment-form .submit { background: var(--red); color: var(--white); border: 0; border-radius: 999px; padding: 12px 24px; font: 600 1rem var(--sans); cursor: pointer; }

@media (max-width: 67.5em) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { position: static; max-width: 560px; }
}
@media (max-width: 37.5em) {
  .bhero, .article__head { padding-top: 100px; }
  .bgrid { grid-template-columns: 1fr; }
  .bsearch { width: 100%; }
  .article__pager { grid-template-columns: 1fr; }
  .article__pager-next { grid-column: auto; }
  .prose { font-size: 1.05rem; }
}
