/* Refined, mobile-friendly calls to action. */
.button {
  gap: 0;
  justify-content: center;
  border-radius: 6px;
  padding-left: 28px;
  padding-right: 28px;
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

/* Align the homepage firm copy with, or just below, its section heading. */
.trust + #about .intro-copy {
  padding-top: 68px;
}

/* A quiet, dark underlined link for the Firm introduction. */
#about .firm-discover {
  display: inline-block;
  min-height: 0;
  padding: 8px 0;
  margin-top: 12px;
  color: #333;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}
#about .firm-discover:hover { color: #111; opacity: 1; }

@media (max-width: 800px) {
  .trust + #about .intro-copy {
    padding-top: 8px;
  }

  .firm-discover {
    width: auto;
    max-width: 100%;
  }
}

/* Match primary navigation to the 15px Firm body copy at every breakpoint. */
header #navigation,
header #navigation > .nav-group > .nav-trigger,
header #navigation > a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
header #navigation .firm-submenu a {
  font-size: 14px;
}
.text-link { gap: 0; }

/* Contact heading and inbox share the same centered desktop row. */
.enquiry-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 35px;
}
.enquiry-heading > div { display: contents; }
.enquiry-heading .eyebrow { grid-column: 1 / -1; }
.enquiry-heading h2 { grid-column: 1; grid-row: 2; }
.enquiry-heading > .email-address { grid-column: 2; grid-row: 2; }

/* Keep the guidance close to the four enquiry cards. */
.enquiry-section { padding-bottom: 48px; }
.enquiry-section > .small-note { margin-bottom: 0; }
.enquiry-guidance { padding-top: 48px; }
.enquiry-guidance .eyebrow { margin-bottom: 20px; }
.enquiry-guidance h2 { margin-bottom: 20px; }
.enquiry-guidance > p:last-child { margin-bottom: 0; }
@media (max-width: 1000px) {
  .enquiry-heading { display: block; }
  .enquiry-heading > div { display: block; }
}
@media (max-width: 800px) {
  .enquiry-section { padding-bottom: 36px; }
  .enquiry-guidance { padding-top: 36px; }
}

/* Use the homepage Firm spacing for paired introductions. */
.aligned-intro > .intro-copy {
  padding-top: 68px;
}
/* Service titles also have a breadcrumb above their section label. */
.service-hero > .service-intro {
  padding-top: 112px;
}
@media (max-width: 800px) {
  .aligned-intro > .intro-copy { padding-top: 8px; }
  .service-hero > .service-intro { padding-top: 8px; }
}

/* All six recruitment institutions share the same card layout. */
.secondary-schools { margin-top: 28px; }
.priority-schools .text-link { align-self: flex-start; border-color: #aaa; }

/* Newsletter rhythm: tighter signup section, more room before the footer. */
.newsletter-page .newsletter-panel { padding-bottom: 72px; }
.newsletter-page .research-grid { padding-bottom: 132px; }

/* Underlined charity links retain a light, visible hover response. */
.charity-cards .charity-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 0;
  font-size: 12px;
  border-bottom-color: #555;
  transition: color .2s, border-color .2s, opacity .2s;
}
.charity-cards .charity-link:hover {
  color: #777;
  border-bottom-color: #aaa;
  opacity: 1;
}
.charity-section > .small-note { margin-top: 48px; }
@media (max-width: 800px) {
  .newsletter-page .newsletter-panel { padding-bottom: 44px; }
  .newsletter-page .research-grid { padding-bottom: 88px; }
  .charity-section > .small-note { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .charity-cards .charity-link { transition: none; }
}

/* Place newsletter signup alongside the editorial heading rather than its label. */
.newsletter-panel > .newsletter-signup { padding-top: 48px; }
.school-section > .recruitment-note { margin-top: 48px; }
@media (max-width: 800px) {
  .newsletter-panel > .newsletter-signup { padding-top: 28px; }
  .school-section > .recruitment-note { margin-top: 40px; }
}

/* Homepage photograph supplied on the Vident Group reference site. */
.hero{background:#11172e;background-image:linear-gradient(90deg,rgba(9,13,34,.92) 0%,rgba(18,19,47,.78) 42%,rgba(23,17,54,.28) 100%),url('assets/refinery-hero.jpg');background-size:cover;background-position:center 55%}
.hero-content{max-width:1020px}.hero h1{font-size:clamp(48px,5.7vw,84px);max-width:1020px;line-height:1.08}.hero h1 em{color:#d5d8ef}.hero-summary{max-width:680px;color:#d8dbea}.hero .architecture{display:none}
@media(max-width:800px){.hero{background-position:60% center;background-image:linear-gradient(90deg,rgba(9,13,34,.92),rgba(23,17,54,.66)),url('assets/refinery-hero.jpg')}.hero h1{font-size:clamp(43px,9vw,68px);letter-spacing:-1.7px}.hero-summary{font-size:14px}.services-submenu{max-width:calc(100vw - 32px)}.services-submenu a{white-space:normal}}

/* Firm introduction: broad reading column and a full-height photographic counterweight. */
#about.firm-composition{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.85fr);column-gap:8%;row-gap:30px;background:#fff;border-bottom:1px solid #ddd;align-items:start}
.firm-introduction{grid-column:1;grid-row:1}
.firm-introduction .eyebrow{margin-bottom:28px}
.firm-introduction h2{font-size:clamp(44px,4.8vw,69px);line-height:1.08;letter-spacing:-2px;margin-bottom:30px}
.firm-introduction h2 em{font-weight:400;font-style:normal;color:#8b8b88}
.firm-introduction .lead{font-size:clamp(22px,2vw,28px);line-height:1.45;max-width:650px;margin:0}
.firm-portrait{grid-column:2;grid-row:1 / 4;margin:0;width:100%;align-self:stretch;position:relative;min-height:440px}
.firm-portrait img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover;filter:grayscale(1);object-position:center}
.firm-columns{grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:30px;padding-top:28px;border-top:1px solid #c9c9c6}
.firm-columns p{font-size:14px;line-height:1.85;color:#666;margin:0}
#about .firm-discover{grid-column:1;grid-row:3;justify-self:start;margin-top:0}
/* A restrained, self-contained correspondence panel. */
.newsletter-panel:has(.homepage-letter){align-items:center}
.newsletter-panel>.homepage-letter{padding:38px 40px;background:#1b1c1e;color:#f7f7f2;border:0;display:flex;flex-direction:column;min-height:270px;align-items:flex-start}
.homepage-letter .letter-heading{width:100%}
.homepage-letter h3{font:400 34px/1.15 Georgia,serif;letter-spacing:-.5px;margin:0 0 22px}
.homepage-letter .letter-availability{font-size:14px;line-height:1.8;color:#c1c1bc;margin:0 0 34px}
.homepage-letter .letter-enquire{display:inline-block;min-width:112px;color:#fff;border-bottom-color:#b5b5b0;margin-top:auto;padding:12px 0;font-size:12px}
@media(max-width:1000px) and (min-width:801px){#about.firm-composition{column-gap:5%;grid-template-columns:1.5fr .8fr}.firm-columns{gap:22px}.firm-columns p{font-size:13px}.newsletter-panel>.homepage-letter{padding:32px 28px}}
@media(max-width:800px){
 #about.firm-composition{grid-template-columns:minmax(0,1fr) 150px;column-gap:26px;row-gap:28px}
 .firm-introduction{grid-column:1 / -1;grid-row:1}
 .firm-introduction h2{font-size:clamp(42px,8vw,60px)}
 .firm-introduction .lead{font-size:24px}
 .firm-columns{grid-column:1;grid-row:2;grid-template-columns:1fr;gap:22px;padding-top:0;border-top:0}
 .firm-portrait{grid-column:2;grid-row:2;min-height:0;align-self:start;aspect-ratio:2 / 3}
 #about .firm-discover{grid-row:3}
 .newsletter-panel>.homepage-letter{margin-top:0;padding:32px;min-height:250px}
}
@media(max-width:450px){#about.firm-composition{grid-template-columns:minmax(0,1fr) 95px;column-gap:20px}.firm-columns p{font-size:13px;line-height:1.8}.firm-introduction .lead{font-size:22px}.newsletter-panel>.homepage-letter{padding:28px}.homepage-letter h3{font-size:30px}}

/* Simple newsletter enquiry column. */
.newsletter-panel:has(.homepage-letter){align-items:stretch}
.newsletter-panel>.homepage-letter{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;align-self:stretch;min-height:0;background:transparent;color:#171717;border:0;border-left:1px solid #cececa;padding:12px 0 12px 48px}
.homepage-letter .letter-heading{display:block;width:100%}
.homepage-letter h3{font:400 34px/1.2 Georgia,serif;letter-spacing:-.5px;margin:0 0 18px;color:#171717}
.homepage-letter .letter-availability{font-size:14px;line-height:1.8;color:#666;margin:0}
.homepage-letter .letter-enquire{display:inline-flex;justify-content:center;align-items:center;min-width:140px;min-height:48px;padding:14px 28px;margin:34px 0 0;border:1px solid #242424;background:transparent;color:#171717;font-size:12px;line-height:1.4;letter-spacing:.2px}
.homepage-letter .letter-enquire:hover{background:#eeeee9}
@media(max-width:1000px) and (min-width:801px){.newsletter-panel>.homepage-letter{padding-left:30px}.homepage-letter h3{font-size:30px}}
@media(max-width:800px){.newsletter-panel>.homepage-letter{padding:32px 0 0;margin:0;border-left:0;border-top:1px solid #cececa;min-height:0}.homepage-letter h3{font-size:30px}.homepage-letter .letter-enquire{margin-top:28px}}

.homepage-letter .letter-action{width:max-content;max-width:100%}.homepage-letter .letter-action .letter-availability{width:max-content;max-width:100%}.homepage-letter .letter-action .letter-enquire{width:100%;min-width:0;box-sizing:border-box}
