/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --black: #0b0b0b;
  --grey: #333;
  --light-grey: #f5f5f5;
  --green: #71A941;
  --green-dark: #5a8f30;
  --lime: #c5e600;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--grey);
  line-height: 1.6;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Site header ────────────────────────────────────────────────────────── */
.site-header {
  background: #424242;
  color: white;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo { height: 80px; }

.site-header nav a {
  color: white;
  margin-left: 1.25rem;
  text-decoration: none;
  font-weight: 500;
}

/* ── Homepage / listing sections ────────────────────────────────────────── */
.hero { padding: 4rem 0; }

.hero h1 {
  font-size: 2.2rem;
  max-width: 700px;
}

.hero-sub {
  max-width: 700px;
  font-size: 1.1rem;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.features {
  background: var(--light-grey);
  padding: 3rem 0;
}

.grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.guides { padding: 3rem 0; }
.guide-card { margin-bottom: 1.5rem; }
.guide-card a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ── Motorway listing ───────────────────────────────────────────────────── */
.motorway-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 2rem;
}

.motorway-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: var(--grey);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.motorway-card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.motorway-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.2rem 0.6rem;
  align-self: flex-start;
}

.motorway-card-body h2 { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--black); }
.motorway-route { font-size: 0.875rem; color: #666; margin: 0 0 0.4rem; }
.motorway-card-body p { margin: 0; font-size: 0.9rem; }
.motorway-cta { font-size: 0.875rem; font-weight: 600; color: var(--green); margin-top: auto; }

/* ── Ad placeholders ────────────────────────────────────────────────────── */
.ad-leaderboard-wrap {
  background: #fff;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.ad-placeholder {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder span {
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Named ad sizes */
.ad-970x250 { width: 100%; max-width: 970px; height: 250px; margin: 0 auto; }
.ad-728x90  { width: 100%; max-width: 728px; height: 90px;  margin: 0 auto; }
.ad-320x50  { width: 320px; height: 50px; margin: 0 auto; }
.ad-300x600 { width: 300px; height: 600px; }
.ad-300x250 { width: 300px; height: 250px; }

/* Responsive ad visibility — default is desktop */
.ad-mobile-only       { display: none !important; }
.ad-tablet-only       { display: none !important; }
.ad-mobile-tablet-only{ display: none !important; }
.ad-desktop-only      { display: flex !important; }  /* flex matches .ad-placeholder */

@media (min-width: 640px) and (max-width: 959px) {
  .ad-mobile-only        { display: none  !important; }
  .ad-tablet-only        { display: flex  !important; }
  .ad-mobile-tablet-only { display: flex  !important; }
  .ad-desktop-only       { display: none  !important; }
}

@media (max-width: 639px) {
  .ad-mobile-only        { display: flex  !important; }
  .ad-tablet-only        { display: none  !important; }
  .ad-mobile-tablet-only { display: flex  !important; }
  .ad-desktop-only       { display: none  !important; }
}

/* Sticky bottom bar — mobile only */
.ad-sticky-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 6px 0;
  text-align: center;
}

@media (max-width: 639px) {
  .ad-sticky-bottom { display: block; }
  /* Push page content above the sticky bar */
  body { padding-bottom: 64px; }
}

/* ── Page body + layout ─────────────────────────────────────────────────── */
.mw-body {
  background: #fff;
  padding: 2.5rem 0 3rem;
}

.mw-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: #ccc; }

/* ── Intro ──────────────────────────────────────────────────────────────── */
.mw-intro { margin-bottom: 1.75rem; }

.mw-intro h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.mw-intro-route {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 0.9rem;
}

.mw-intro-desc {
  color: var(--grey);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

/* ── Stats strip ────────────────────────────────────────────────────────── */
.mw-stats-strip {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.9rem 0.75rem;
  border-right: 1px solid #e0e0e0;
  gap: 0.1rem;
}

.stat:last-child { border-right: none; }
.stat-icon { font-size: 1.3rem; margin-bottom: 0.2rem; color: #555; }
.stat-value { font-size: 1rem; font-weight: 700; color: var(--black); line-height: 1.2; }
.stat-label { font-size: 0.7rem; color: #888; line-height: 1.3; }

/* ── Explore info box ────────────────────────────────────────────────────── */
.mw-explore-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
}

.explore-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 2px;
}

.explore-icon.warn { border-color: #d97706; color: #d97706; }

.explore-text strong { display: block; color: var(--black); font-size: 1rem; margin-bottom: 0.3rem; }
.explore-text p { margin: 0; font-size: 0.875rem; color: var(--grey); line-height: 1.5; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.mw-section { margin-bottom: 2.5rem; }

.mw-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.3rem;
}

.mw-section-sub { font-size: 0.875rem; color: #777; margin: 0 0 1.1rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.section-head h2 { margin: 0; }

.view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.view-all:hover { text-decoration: underline; }

/* ── Accordion ───────────────────────────────────────────────────────────── */
.accordion { border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid #e8e8e8; }
.accordion-item:last-child { border-bottom: none; }
.accordion-item.js-hidden { display: none; }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: white;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.1s;
}

.accordion-trigger:hover { background: #f9f9f9; }
.accordion-item.open > .accordion-trigger { background: #f4faf0; }

.jn-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  min-width: 2.8rem;
  text-align: center;
  flex-shrink: 0;
  border-radius: 3px;
}

.jn-name { flex: 1; font-weight: 500; color: var(--black); }
.jn-meta { font-size: 0.78rem; color: #999; flex-shrink: 0; }

.accordion-chevron { font-size: 1rem; color: #bbb; transition: transform 0.2s; flex-shrink: 0; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 1rem 1rem 1.25rem;
  background: #fafafa;
  border-top: 1px solid #ececec;
}

.accordion-item.open .accordion-body { display: block; }

/* ── Junction tiles ──────────────────────────────────────────────────────── */
.junction-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.jt-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: var(--grey);
  font-size: 0.82rem;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jt-tile:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

.jt-tile-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.jt-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }

.jt-cat-pin {
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 5px;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
}
.jt-cat-pin svg { transform: rotate(45deg); display: block; color: white; }
.jt-label { font-weight: 700; color: var(--black); font-size: 0.9rem; line-height: 1.2; }
.jt-desc { font-size: 0.78rem; color: #777; line-height: 1.35; margin-bottom: 0.3rem; }
.jt-arrow { font-size: 0.82rem; color: var(--green); font-weight: 600; margin-top: auto; }

.jt-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--green);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 18px;
  text-align: center;
  line-height: 18px;
}

.junction-map-cta {
  display: block;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: #f0f7f2;
  border: 1px solid #b8ddc8;
  border-radius: 6px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.junction-map-cta:hover { background: #ddf0e5; }

.jn-coords { margin: 0.75rem 0 0; font-size: 0.8rem; }
.jn-coords a { color: var(--green); }

/* ── Show more ───────────────────────────────────────────────────────────── */
.show-more-wrap { margin-top: 0.75rem; text-align: left; }

.show-more-btn {
  background: none;
  border: none;
  color: var(--green);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.show-more-btn::before { content: '...'; font-weight: 400; color: #999; }
.show-more-btn:hover { text-decoration: underline; }
.show-more-btn span { font-weight: 400; color: #999; }

/* ── Service stations ────────────────────────────────────────────────────── */
.services-section-sub { font-size: 0.875rem; color: #777; margin: 0.2rem 0 1.1rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}

.service-card { border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; transition: box-shadow 0.15s; }
.service-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }

.service-photo {
  background: #e8f0e0;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-photo-placeholder { font-size: 2.5rem; }

.service-card-body { padding: 0.8rem 0.9rem 0.9rem; }
.service-card-body h3 { margin: 0 0 0.1rem; font-size: 0.92rem; font-weight: 700; color: var(--black); }
.service-junction { font-size: 0.78rem; color: #999; margin: 0 0 0.6rem; }
.service-amenities { display: flex; gap: 0.35rem; font-size: 0.95rem; margin-bottom: 0.7rem; }
.service-link { font-size: 0.83rem; font-weight: 600; color: var(--green); text-decoration: none; }
.service-link:hover { text-decoration: underline; }

/* ── Feature tiles ───────────────────────────────────────────────────────── */
.feature-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.25rem 1.1rem 1.1rem;
  background: #fafafa;
  border-radius: 6px;
  text-decoration: none;
  color: var(--grey);
  border: 1px solid #e8e8e8;
  transition: border-color 0.15s, background 0.15s;
}

.feature-tile:hover { background: #f0f7e8; border-color: var(--green); }
.ft-icon { font-size: 1.6rem; margin-bottom: 0.2rem; }
.feature-tile strong { font-size: 0.92rem; color: var(--black); line-height: 1.3; }
.feature-tile p { font-size: 0.8rem; color: #777; margin: 0 0 0.4rem; line-height: 1.4; flex: 1; }
.feature-tile-link { font-size: 0.82rem; font-weight: 600; color: var(--green); }

/* ── Junction header block ───────────────────────────────────────────────── */
.jn-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.jn-badge-large {
  background: var(--green);
  color: white;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 80px;
}

.jn-badge-large .motorway-code { font-size: 1.6rem; line-height: 1; display: block; }
.jn-badge-large .junction-num { font-size: 0.85rem; opacity: 0.85; display: block; margin-top: 2px; }

.jn-title-block { flex: 1; }

.jn-title-block h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.jn-descriptor { font-size: 1rem; font-weight: 600; color: var(--grey); margin: 0 0 0.75rem; }
.jn-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pill { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 3px; }
.pill-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.pill-info { background: #e8f5e0; color: #3a6b1a; border: 1px solid #c3dfa6; }

/* ── Stop cards ──────────────────────────────────────────────────────────── */
.stops-grid { display: grid; gap: 1rem; }

.stop-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  transition: box-shadow 0.15s;
}

.stop-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

.stop-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.stop-name { font-size: 1rem; font-weight: 700; color: var(--black); margin: 0 0 0.3rem; }
.stop-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-supermarket { background: #d1fae5; color: #065f46; }
.cat-shopping    { background: #ede9fe; color: #4c1d95; }
.cat-hotel       { background: #dbeafe; color: #1e3a8a; }
.cat-transport   { background: #fef3c7; color: #78350f; }
.cat-petrol      { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

.stop-meta { font-size: 0.78rem; color: #999; white-space: nowrap; flex-shrink: 0; }
.stop-desc { font-size: 0.875rem; color: var(--grey); margin: 0 0 0.75rem; line-height: 1.55; }
.stop-facilities { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }

.fac-chip {
  font-size: 0.75rem;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
}

.directions-link { font-size: 0.83rem; font-weight: 600; color: var(--green); text-decoration: none; }
.directions-link:hover { text-decoration: underline; }

/* ── Worth knowing ───────────────────────────────────────────────────────── */
.wk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.wk-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.55;
}

.wk-item:last-child { border-bottom: none; }

.wk-dot {
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
  font-weight: 700;
}

/* ── Fuel placeholder ────────────────────────────────────────────────────── */
.fuel-placeholder {
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  background: #fafafa;
}

.fuel-placeholder-title { font-size: 0.92rem; font-weight: 700; color: #777; margin-bottom: 0.3rem; }
.fuel-placeholder-body { font-size: 0.82rem; color: #aaa; }

/* ── Junction prev/next nav ──────────────────────────────────────────────── */
.junction-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin-top: 0.5rem;
  gap: 1rem;
}

.jnav-prev { font-size: 0.83rem; color: #aaa; font-style: italic; }

.jnav-next {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.jnav-next:hover { color: var(--green-dark); text-decoration: none; }

.jnav-badge {
  background: var(--green);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
}

.jnav-note { font-size: 0.75rem; color: #aaa; font-weight: 400; }

/* ── Junction mini-ladder (sidebar) ─────────────────────────────────────── */
.jn-ladder { display: flex; flex-direction: column; gap: 0.4rem; }

.ladder-current {
  background: var(--green);
  color: white;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
}

.ladder-gap {
  margin-left: 1.1rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
  border-left: 2px solid #e0e0e0;
}

.ladder-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--grey);
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  transition: border-color 0.15s;
}

.ladder-link:hover { border-color: var(--green); color: var(--green); }
.ladder-link span:last-child { color: var(--green); }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.mw-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  border-top: 3px solid var(--lime);
  padding: 1.1rem 1.25rem 1.25rem;
}

.widget-title { font-size: 1rem; font-weight: 700; color: var(--black); margin: 0 0 0.9rem; }

.quick-facts-table { width: 100%; font-size: 0.83rem; border-collapse: collapse; }
.quick-facts-table tr + tr td { padding-top: 0.6rem; }
.quick-facts-table td:first-child { color: #888; width: 42%; vertical-align: top; padding-right: 0.5rem; }
.quick-facts-table td:last-child { color: var(--black); font-weight: 500; }

.widget-post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.widget-post-list li { border-bottom: 1px solid #f0f0f0; padding: 0.5rem 0; }
.widget-post-list li:first-child { padding-top: 0; }
.widget-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-post-list a { font-size: 0.875rem; color: var(--grey); text-decoration: none; line-height: 1.4; }
.widget-post-list a:hover { color: var(--green); }

.widget-category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.widget-category-list li { border-bottom: 1px solid #f0f0f0; padding: 0.45rem 0; }
.widget-category-list li:first-child { padding-top: 0; }
.widget-category-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-category-list a { font-size: 0.875rem; color: var(--grey); text-decoration: none; display: block; }
.widget-category-list a:hover { color: var(--green); }

.muted { color: #999; font-size: 0.9rem; }

/* ── Category pin strip ──────────────────────────────────────────────────── */
.cat-strip {
  background: #f7f7f7;
  border-top: 1px solid #e8e8e8;
  padding: 2.5rem 0 2rem;
}

.cat-strip-head {
  margin-bottom: 1.25rem;
}

.cat-strip-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.2rem;
}

.cat-strip-head p {
  font-size: 0.875rem;
  color: #777;
  margin: 0;
}

.cat-pin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.cat-pin-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.1rem 0.5rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.cat-pin-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.09);
  border-color: #ccc;
  color: inherit;
}

.cat-pin {
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 5px;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-pin svg {
  transform: rotate(45deg);
  display: block;
}

.cat-pin-label {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: #222;
}

@media (max-width: 900px) {
  .cat-pin-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 500px) {
  .cat-pin-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.trust {
  border-top: 1px solid #e8e8e8;
  padding: 1rem 0;
}

.trust p { font-size: 0.82rem; color: #888; margin: 0; text-align: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer nav a {
  color: #aaa;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.83rem;
}

.site-footer nav a:hover { color: white; }

.site-footer {
  background: #424242;
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p { font-size: 0.82rem; color: #999; margin: 0; line-height: 1.5; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { font-size: 0.83rem; color: #aaa; text-decoration: none; }
.footer-col a:hover { color: white; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 0.25rem; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #444;
  border-radius: 50%;
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.15s, color 0.15s;
}

.footer-social a:hover { border-color: #aaa; color: white; }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: #666;
  text-align: center;
}

.footer-attribution { font-size: 0.75rem; color: #555; margin-top: 0.5rem; }
.footer-attribution a { color: #666; text-decoration: none; }
.footer-attribution a:hover { color: #aaa; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mw-layout { grid-template-columns: 1fr; }
  .mw-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-tile-grid { grid-template-columns: 1fr 1fr; }
  .ad-300x600, .ad-300x250 { width: 100%; max-width: 300px; }
  .ad-leaderboard { height: 90px; }
}

@media (max-width: 600px) {
  .jn-title-block h1 { font-size: 1.5rem; }
  .mw-stats-strip { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; border-right: none; border-bottom: 1px solid #e0e0e0; }
  .stat:nth-child(odd) { border-right: 1px solid #e0e0e0; }
  .stat:last-child { border-bottom: none; }
  .junction-tiles { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .jt-tile { min-width: 0; }
  .feature-tile-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav { display: none; }
}
