/* Closed-advert page v2: same container and header as job page v2. One column on phones,
   jobs left and search right from 900px. */
.cl2-page { padding-bottom: 0; }
.cl2 h1 { margin: 0 0 0.5rem; font-size: 1.65rem; line-height: 1.22; font-weight: 800; color: var(--heading, #111827); }
.cl2-note { margin: 0 0 1.4rem; font-size: 1.02rem; line-height: 1.5; }
.cl2 .jd2-similar { margin-top: 0; }
.cl2 .jd2-similar li { display: flex; align-items: center; gap: 0.75rem; }
.cl2 .jd3-sim-text { flex: 1 1 auto; min-width: 0; }
/* html body: list-v2.css sets .apply-now-btn to width 100% on phones; this must win */
html body .jd2.cl2 .jd2-similar li a.cl2-apply {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; box-sizing: border-box;
  width: auto; min-width: 0; max-width: none; margin: 0; padding: 0 1.1rem; border-radius: 0.4rem; color: #fff; font-size: 0.95rem; font-weight: 700; text-decoration: none;
}
.cl2-all { margin: 0.9rem 0 0; }
.jd2.cl2 .cl2-all a { font-weight: 600; color: var(--accent); }
.cl2-side { margin-top: 2rem; }
.cl2-search { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.cl2-search h2 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.cl2-search label { font-size: 0.9rem; color: #4b5563; }
.cl2-search input { height: 46px; box-sizing: border-box; padding: 0 0.75rem; border: 1px solid #9aa2ad; border-radius: 0.4rem; background: #fff; color: #111827; font: inherit; font-size: 1rem; }
.cl2-search button { height: 46px; margin-top: 0.4rem; border: 1px solid var(--heading, #111827); border-radius: 0.4rem; background: #fff; color: var(--heading, #111827); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.cl2-ref { margin: 1rem 0 0; color: #6b7280; font-size: 0.9rem; }

@media (min-width: 900px) {
  .cl2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 2.5rem; align-items: start; }
  .cl2-side { margin-top: 0; }
  .cl2 h1 { font-size: 2rem; }
}

/* Phones (under 480px wide): the logo and the two menu links stay on one line where they fit.
   Where they do not (Leicestershire needs 374px, Milton Keynes 380px), the menu links stack on
   the right instead of pushing the page sideways. Fixes a fault already on the live v2 pages
   (sideways scroll on narrow phones). The smaller gap is only a minimum; with room to spare the
   header looks as it does now. */
@media (max-width: 479.98px) {
  .jd2-page .site-header-inner { gap: 0.5rem; }
  .jd2-page .logo { flex: 0 0 auto; }
  .jd2-page .top-nav { flex: 0 1 auto; min-width: 0; }
  .jd2-page .top-nav ul { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
}
