/* The catalogue stays readable without scripts; both controls work independently. */
.direction-entry {
  border-bottom: 1px solid var(--line);
}
.direction-entry:first-child {
  border-top: 1px solid var(--line);
}
.direction-entry > .service-group {
  border: 0;
}
.direction-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 .4rem .65rem;
  padding-inline: .12rem;
  color: #145485;
  font-weight: 650;
  text-underline-offset: .22em;
  text-decoration: underline;
}
.direction-link:hover, .direction-link:focus-visible {
  text-decoration-thickness: 2px;
}

/* Service detail pages share typography, colours and base controls with the home page. */
.detail-header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-block: .4rem;
}
.detail-hero {
  padding-block: clamp(2rem, 5vw, 4.6rem);
  border-block: 1px solid #adc4d4;
  border-block-start: .24rem solid #194d70;
  background: linear-gradient(112deg, #f3f9fc 15%, #d9ebf7);
}
.detail-intro, .detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.7rem);
}
.detail-intro nav a, .detail-case h3 a {
  color: #145485;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.detail-intro h1 {
  margin-block: .45em .25em;
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
.detail-intro p {
  max-width: 55ch;
  color: #35556a;
  line-height: 1.6;
}
.detail-intro figure, .detail-scope figure {
  margin: 0;
  padding: .45rem;
  border: 1px solid #aec7d6;
  background: #fff;
  box-shadow: .35rem .35rem 0 #bfd6e4;
}
.detail-intro img, .detail-scope img {
  display: block;
  width: 100%;
  height: auto;
}
.detail-intro figcaption, .detail-scope figcaption {
  padding: .55rem .2rem .15rem;
  color: #345267;
  font-size: .9rem;
}
.detail-body {
  align-items: start;
  padding-block: clamp(2.3rem, 5vw, 4.5rem);
}
.detail-scope h2 {
  margin-bottom: .55em;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}
.detail-scope section {
  padding-block: 1.15rem;
  border-top: 1px solid #bdcfd9;
}
.detail-scope h3, .detail-case h3 {
  font-size: clamp(1.17rem, 1.7vw, 1.4rem);
  line-height: 1.35;
}
.detail-scope p, .detail-case p {
  max-width: 69ch;
  margin-top: .55rem;
  line-height: 1.65;
}
.detail-scope figure {
  max-width: 24rem;
  margin-top: 1.1rem;
}
.detail-case {
  padding: clamp(1rem, 2vw, 1.7rem);
  border-top: 3px solid #a46d48;
  background: #ecf4f8;
}
.detail-case h2 {
  margin-bottom: .85rem;
  color: #405e74;
  font-size: 1rem;
}
.detail-inquiry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  padding: .65rem 1rem;
  background: #1a5075;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.detail-inquiry:is(:focus-visible,:hover) {
  background: #123d5b;
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 43rem) {
  .detail-intro, .detail-body { grid-template-columns: minmax(0, 1fr); }
  .detail-intro figure { max-width: 28rem; }
  .detail-header .language-full { display: none; }
  .detail-header .language-short { display: inline; }
  .detail-header .language-switch > * { min-height: 44px; min-width: 40px; padding-inline: .3rem; }
  .detail-header .brand { font-size: 1rem; gap: .32rem; }
  .detail-header .brand-mark { width: 2rem; }
}
@media (max-width: 22rem) {
  .detail-header { width: calc(100% - 1rem); flex-wrap: wrap; }
}
@media print {
  .detail-body, .detail-intro { display: block; }
  .detail-hero, .detail-case { background: white; }
  .detail-intro figure { max-width: 12rem; }
  .detail-inquiry, .direction-link, .detail-intro nav { display: none; }
}
