/* Abel & Cole blog mirror — themed to echo the live site
 * Brand colours pulled from the live blog:
 *   - Deep brand green  #007A41 (post H1)
 *   - Sage green        #7e9268 (category labels, nav icons)
 *   - Mustard ochre     #d99a1c (the home page's hero heading)
 *   - Body grey         #333333
 *   - Soft grey         #565656
 *   - Cream divider     #e6dfca (dotted/solid hairlines)
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500;700;900&family=Bitter:wght@400;500;700&display=swap');

:root {
  --brand-green: #007a41;
  --brand-green-dark: #00582e;
  --sage: #7e9268;
  --sage-dark: #647653;
  --ochre: #d99a1c;
  --ochre-dark: #b67e0e;
  --ink: #333333;
  --ink-soft: #565656;
  --ink-muted: #8a8a8a;
  --line: #e6dfca;
  --line-soft: #efe9d8;
  --bg: #ffffff;
  --bg-cream: #fbf8ee;
  --max: 1180px;
  --serif: "Roboto Slab", "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* Read by screen readers, invisible on screen. Used for the heading on
   paginated listings, which are designed to open straight into the grid but
   still need a page heading to be navigable. `display: none` would hide it
   from assistive tech too, which is the opposite of the point. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ----- Header (sticky) -----
 * Mirrors the live site: the brand mark, tagline, and category nav stay pinned
 * at the top while the post grid scrolls underneath.
 */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  max-height: 100vh;
  overflow: visible;
}
.site-header .header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* shop on the left, brand centered, equal spacer on the right */
  align-items: center;
  gap: 16px;
  /* .header-inner is a centred flex column, so without this the grid shrinks to
     its contents and the 1fr columns collapse — pulling the van in beside the
     logo instead of out to the edge, as it sits on the live site. */
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.shop-link {
  justify-self: start;                   /* flush against the left edge of the header */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--sage-dark);
  transition: color 0.15s;
}
.shop-link:hover { color: var(--brand-green); }
.shop-link svg, .shop-link img { display: block; height: 44px; width: auto; }
.site-header .header-top .brand { justify-self: center; }
/* ----- Search, styled like the live blog -----
 * A magnifying glass in the header's third column (which also keeps the brand
 * centred), opposite the van. It opens a plain white bar under the category
 * nav, and turns into a cross while the bar is open. The live blog draws these
 * with pictures on Sitefinity; they are inline SVG here so nothing depends on
 * it. Without JavaScript the glass is an ordinary link to the search page.
 */
.search-toggle {
  justify-self: end;
  display: block;
  width: 30px;
  height: 30px;
  background: center / 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647653' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M15 15l6 6'/%3E%3C/svg%3E");
  border-radius: 3px;
}
.search-toggle[aria-expanded="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647653' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E");
}
.search-toggle:hover { opacity: 0.75; }

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  background: var(--bg);
}
.search-bar[hidden] { display: none; }
.search-bar { position: relative; }

/* Suggestions: a list of posts dropping down from the bar, over the page. */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 110;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  max-height: 60vh;
  overflow-y: auto;
}
.search-suggestions[hidden] { display: none; }
.search-suggestion {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 14px;
  cursor: pointer;
}
.search-suggestion[aria-selected="true"] { background: var(--bg-cream); }
.search-suggestion-text {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
}
.search-suggestion[aria-selected="true"] .search-suggestion-text { color: var(--brand-green); }
.search-suggestion-count {
  flex: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
}
.site-header .search-bar { margin-bottom: 8px; }
.search-bar-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0 4px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  color: #555;
  background: var(--bg);
  border: 0;
  border-radius: 4px;
}
.search-bar-input::placeholder { color: #232323; opacity: 1; }
/* The browser's own clear button sits badly beside the magnifying glass. */
.search-bar-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-bar-button {
  flex: none;
  width: 51px;
  height: 52px;
  border: 0;
  cursor: pointer;
  background: right center / 30px auto no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a41' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M15 15l6 6'/%3E%3C/svg%3E");
}
.search-bar-button:hover { opacity: 0.75; }
.search-toggle:focus-visible,
.search-bar-input:focus-visible,
.search-bar-button:focus-visible {
  outline: 2px solid var(--brand-green-dark);
  outline-offset: 2px;
}
/* Small screens keep the van, logo and glass on one row, as on desktop; the
   van is just smaller. Below 768px the logo is the narrow stacked one, so
   all three fit even on a phone. */
@media (max-width: 720px) {
  .site-header .header-top { gap: 10px; }
  .shop-link svg, .shop-link img { height: 36px; }
  .search-bar-input { height: 48px; font-size: 18px; }
}
/* When the user has scrolled, give the header a subtle drop-shadow for depth */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-shadow linear both;
    animation-timeline: scroll();
    animation-range: 0 80px;
  }
  @keyframes header-shadow {
    to { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
  }
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.brand {
  text-decoration: none;
  color: var(--sage-dark);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.brand picture { display: block; }
.brand-mark {
  display: block;
  height: 40px;                   /* the size the shop shows it at */
  width: auto;
  max-width: 100%;
}
.brand-sub {
  font-family: var(--sans);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .brand-sub { font-size: 13px; }
}

/* Category nav */
.nav-categories {
  width: 100%;
  border-top: 1px solid transparent;
  padding-top: 6px;
}
.nav-categories ul {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}
.nav-categories li { position: relative; }
.nav-categories a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  transition: color 0.15s ease;
}
.nav-categories a::before {
  content: "";
  width: 36px;
  height: 36px;
  display: block;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
/* Per-category icon images (PNG/JPG sourced from the live blog's assets) */
.nav-categories li[data-cat="from-the-field"] a::before {
  background-image: url("images/tales_from_the_field_green_b013d6c2.d7637fd1.jpg");
}
.nav-categories li[data-cat="whats-cooking"] a::before {
  background-image: url("images/whats_cooking_green_4f959de6.20d3a19d.jpg");
}
.nav-categories li[data-cat="craft-corner"] a::before {
  background-image: url("images/craftcorner_green_aced5892.a93daf3d.jpg");
}
.nav-categories li[data-cat="over-the-fence"] a::before {
  background-image: url("images/Overthefence_green_23a3a427.2d79b965.jpg");
}
.nav-categories li[data-cat="the-good-stuff"] a::before {
  background-image: url("images/thegoodstuff_green_06a5318f.001eb152.jpg");
}
.nav-categories li[data-cat="the-veg-club"] a::before {
  background-image: url("images/thevegclub_green_443cfaa5.84f68a1a.jpg");
}
.nav-categories a:hover { color: var(--brand-green); }
.nav-categories a:hover::before { opacity: 0.75; }
.nav-categories li.active a { color: var(--brand-green); }
.nav-categories li.active a::before { filter: brightness(0.85); }

/* Hairline below nav */
.site-header::after {
  content: "";
  display: block;
  height: 0;
  border-top: 1px solid var(--line);
  margin: 0 -24px;
}

/* ----- Main ----- */
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* Home hero */
.hero {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px dotted var(--line);
}
.hero-eyebrow { display: none; } /* not used in original look */
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: var(--ochre);
  margin: 0 0 18px;
  text-transform: uppercase;
  font-style: normal;
}

@media (min-width: 560px) {
  .hero-line { display: inline-block; }
}
.hero-lead {
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink);
  line-height: 1.7;
}

/* "Latest from the blog" heading on home: hidden — original goes straight into the grid */
.all-posts > h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 24px;
  text-align: center;
}

/* ----- Card grid (row flow, left-to-right) -----
 * Matches the live blog, which reads cards left-to-right across each row before
 * wrapping to the next. A CSS grid fills in document (row-major) order, so the
 * card sequence in the HTML is the reading order the visitor sees.
 */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  align-items: start;             /* cards top-align within each row */
}
@media (max-width: 780px)  { .post-grid { grid-template-columns: repeat(2, 1fr); column-gap: 18px; } }
@media (max-width: 480px)  { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: block;                 /* grid item */
  width: 100%;
  margin: 0 0 32px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
}
.post-card:hover { opacity: 0.92; }
.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.post-card-image {
  width: 100%;
  height: auto;                   /* preserves the source image's aspect ratio */
  display: block;
  background-color: var(--bg-cream);
  border-radius: 0;
}
.post-card-meta { padding: 12px 0 0; }
.post-card-category {
  display: block;
  font-family: var(--serif);     /* slab-serif gives the chunky look of the live site */
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  color: #5b816c;                /* matches the live site's computed green */
  margin-bottom: 4px;
  text-transform: none;
}
.post-card-title {
  font-family: var(--sans);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}
.post-card:hover .post-card-title { color: var(--brand-green); }

/* ----- Category page ----- */
.category-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 2px dotted var(--line);
}
.category-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  margin: 0;
  color: var(--brand-green);
  text-transform: none;
  letter-spacing: 0;
}

/* ----- Search page ----- */
.search-form {
  max-width: 720px;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
}
.search-status {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.search-status:empty { display: none; }

/* ----- Post detail ----- */
.post {
  max-width: 760px;
  margin: 0 auto;
  background: transparent;
  padding: 16px 0 40px;
  border-radius: 0;
  box-shadow: none;
}
.post-header { margin-bottom: 20px; text-align: center; }
.post-category {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.post-category a { color: var(--ink); text-decoration: none; }
.post-category a:hover { color: var(--brand-green); }
.post-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  margin: 0;
  color: var(--brand-green);
}
.post-banner {
  margin: 0 0 30px;
  border-radius: 0;
  overflow: hidden;
}
.post-banner img { width: 100%; }

/* MOBILE: and DESKTOP: blocks in a post. 720px is the blog's phone width,
   and matches the MOBILE BANNER switch in build.ts. */
.mobile-only { display: none; }
@media (max-width: 720px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}
.post-body { font-size: 16px; line-height: 1.75; }
.post-body p { margin: 0 0 18px; }
.post-body strong { color: var(--ink); }
.post-body em { color: var(--ink-soft); }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--brand-green);
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  margin: 26px 0 10px;
  color: var(--brand-green-dark);
}
.post-body ul,
.post-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.post-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.post-body li::marker { color: var(--sage); }
.post-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--sage);
  color: var(--ink-soft);
  font-style: italic;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr {
  border: 0;
  border-top: 2px dotted var(--line);
  margin: 32px 0;
}
.post-body figure { margin: 28px 0; }
.post-body figure img {
  border-radius: 0;
  width: 100%;
}
/* A paragraph that held several images in a row. The live blog lets them sit
   inline — two photos side by side, 4px apart — so they are laid out as equal
   columns here rather than stacked, which is what the global
   `img { display: block }` would otherwise do. */
.post-figures {
  display: grid;
  gap: 4px;
}
.post-figures-2 { grid-template-columns: repeat(2, 1fr); }
.post-figures-3 { grid-template-columns: repeat(3, 1fr); }
/* Natural height, not a forced one: these pairs are photographs of unknown
   proportions and cropping them to a common aspect would cut heads off. */
.post-figures img { width: 100%; height: auto; }
/* One above the other on a phone, where a half-width photo is too small. */
@media (max-width: 560px) {
  .post-figures { grid-template-columns: 1fr; }
}
.post-body a {
  color: var(--brand-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-body a:hover { color: var(--brand-green-dark); }
/* BUTTON: lines. The link colour and underline above would otherwise win. */
.post-body .post-button { margin: 24px 0; text-align: center; }
.post-body a.btn,
.post-body a.btn:hover { color: #fff; text-decoration: none; }


/* "See more" — shown below 640px, where the live blog uses a button rather
   than loading on scroll. Above that the next page arrives as you reach the
   bottom and this stays hidden. */
.load-more {
  display: block;
  margin: 36px auto 0;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-green);
  background: transparent;
  border: 1px solid var(--brand-green);
  padding: 12px 28px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.load-more:hover:not(:disabled),
.load-more:focus-visible {
  color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}
.load-more:disabled { opacity: 0.55; cursor: default; }
/* display: block above would otherwise beat the hidden attribute, which the
   scripts use to put the button away. */
.load-more[hidden] { display: none; }

/* A zero-height element is an unreliable IntersectionObserver target — give it
   real extent so the browser always reports it crossing the viewport. */
.listing-sentinel {
  height: 1px;
  width: 100%;
}

.listing-status {
  margin: 20px 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  min-height: 1em;
}

/* Pagination — homepage, category and tag listings.
   Hidden once the script takes over; the sole navigation without JavaScript. */
.pager {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 2px dotted var(--line);
}
.pager ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.pager a,
.pager span {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.pager a:hover,
.pager a:focus-visible {
  color: var(--brand-green-dark);
  border-color: var(--brand-green);
}
.pager .current {
  color: var(--bg);
  background: var(--brand-green);
  border-color: var(--brand-green);
  font-weight: 600;
}
.pager-step { font-weight: 500; }
@media (max-width: 600px) {
  /* Keep the prev/next controls; drop the numbers, which wrap badly. */
  .pager .pager-num:not(.current) { display: none; }
}

/* Post tags — each chip links to /blog/tag/<slug>/ */
.post-tags {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dotted var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tag {
  font-family: var(--sans);
  font-size: 16px;
  background: transparent;
  /* Same green as the "Watch" heading above. */
  color: var(--brand-green);
  padding: 3px 10px;
  border: 1px solid var(--brand-green);
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.tag:hover,
.tag:focus-visible {
  color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}

/* Related posts */
.related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px dotted var(--line);
  /* Breaks out of the 760px post column. The live blog runs this strip at the
     full article width (1009px) while keeping body text narrow (673px) for
     reading, so the related cards there are noticeably larger than the text
     column would allow. Capped to the viewport so it never causes sideways
     scrolling on a phone. */
  width: min(1009px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.related h2 {
  font-family: var(--serif);
  font-weight: 700;
  /* 20px, as the live blog sets it. */
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}
/* Sized from the live blog, measured on a post page: cards 258px wide with a
   16px gap, no padding and no separators, so the thumbnail spans the full
   card. Card text then sits 5px below the image and 5px apart. Padding the
   card — as this used to — insets the thumbnail by 36px and makes the whole
   section noticeably smaller than the original. */
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.related li a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
.related li a:hover { color: var(--brand-green); }
.related-thumb {
  display: block;
  width: 100%;
  /* The live thumbnails measure 258x170 — a ratio of 1.515. */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0;
  background: var(--line);
}
.related-cat {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--sage-dark);
  font-weight: 500;
}
.related-title {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.43;
  color: var(--ink);
  font-weight: 400;
}
/* Stub (post we didn't fully mirror) */
.post-stub .post-body {
  text-align: center;
  padding: 40px 0;
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
  margin: 30px 0;
}
.stub-message {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 24px;
  font-style: italic;
}
.btn {
  display: inline-block;
  background: var(--brand-green);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: background 0.15s;
}
.btn:hover { background: var(--brand-green-dark); }

/* ----- Footer ----- */
/* ----- Responsive ----- */
@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .post-header h1 { font-size: 28px; }
  .nav-categories ul { gap: 18px; }
  .nav-categories a { font-size: 13px; }
  .nav-categories a::before { width: 22px; height: 22px; }
  .post-grid { gap: 28px 16px; }
  .related ul { grid-template-columns: 1fr; }
  .related li a { border-right: none; border-bottom: 1px dotted var(--line); }
  .related li:last-child a { border-bottom: none; }
}

@media (min-width: 721px) and (max-width: 800px) {
  .nav-categories ul { gap: 20px; }
}
@media (max-width: 620px) {
  .nav-categories ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 14px 18px;
  }
}

/* Video embeds */
.post-videos {
  max-width: 760px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 2px dotted var(--line);
}
/* The embedded player. A 16:9 box with the iframe filling it, so the video
   scales with the column instead of needing a fixed height. */
.video-embed {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-link {
  margin: 0 0 18px;
  text-align: center;
}

/* 404 page — mirrors the shop's ErrorPage component so a mistyped blog URL
   looks like the rest of abelandcole.co.uk rather than a different site.
   Values are taken from Strawberry's _theme.scss and ErrorPage styles:
   tangerine #ff913d, sunshine #fdc500, and the 480px mobile breakpoint. */
.error-page {
  display: grid;
  grid-template-rows: 1fr auto;
  max-width: 600px;
  margin: 0 auto;
  gap: 22px;
  justify-items: center;
  padding: 40px 20px;
  text-align: center;
}
.error-heading {
  font-size: 92px;
  line-height: 92px;
  letter-spacing: 0.22px;
  border-bottom: 7px solid #fdc500;
  margin: 0;
}
.error-subheading {
  font-size: 28px;
  line-height: 40px;
  margin: 0;
}
.error-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  justify-items: center;
}
@media (min-width: 480px) {
  .error-links { grid-template-columns: repeat(2, 1fr); }
}
.error-link {
  background-color: #ff913d;
  color: #fff;
  text-decoration: none;
  width: 100%;
  max-width: 328px;
  height: 48px;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border-radius: 4px;
}
.error-link:hover { background-color: #f8a261; }
.error-link:active { background-color: #e68237; }
