/* Service pages, matching the supplied PRHS reference. Shared chrome is in home.css. */
.page-banner {
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #102a55;
  color: #fff;
}
.page-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  position: absolute;
  inset: 0;
}
.banner-crime > img, .banner-our-standards > img {
  object-position: center 57%;
}
.banner-work-accidents > img {
  object-position: center 52%;
}
.banner-personal-injury > img {
  object-position: center 50%;
}
.banner-wills-and-probate > img, .banner-privacy-policy > img {
  object-position: center 45%;
}
.banner-about-us > img, .banner-contact-us > img {
  object-position: center 56%;
}
.banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #071c45e8 0%, #071c4599 55%, #071c453d 100%);
}
.banner-content {
  position: relative;
  padding-top: 25px;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #dce7f8;
  margin-bottom: 57px;
}
.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page-banner .eyebrow {
  color: #d5e3fc;
  font-size: 10px;
}
.page-banner .little-line {
  background: #a7c4fb;
}
.page-banner h1 {
  font-size: 60px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -2px;
  margin-top: 16px;
  margin-bottom: 18px;
}
.page-banner p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 610px;
  color: #e6edf8;
}
.page-reassurance {
  border-bottom: 1px solid var(--border);
  background: #f7f9fc;
}
.page-reassurance > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 75px;
}
.page-reassurance span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.page-reassurance svg {
  color: var(--blue);
}
.page-reassurance a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 85px;
  padding-top: 67px;
  padding-bottom: 75px;
  align-items: start;
}
.page-article {
  min-width: 0;
}
.page-article > .eyebrow {
  margin-bottom: 22px;
}
.source-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: break-word;
}
.source-content > p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.source-content > p:first-child {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.8;
}
.source-content h2, .source-content h3 {
  color: var(--ink);
  line-height: 1.3;
  font-weight: 600;
  margin-top: 38px;
  margin-bottom: 19px;
  scroll-margin-top: 125px;
}
.source-content h2 {
  font-size: 28px;
  letter-spacing: -0.75px;
}
.source-content h3 {
  font-size: 23px;
  letter-spacing: -0.4px;
}
.source-content h4, .source-content h5, .source-content h6 {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}
.source-content strong {
  color: var(--ink);
  font-weight: 600;
}
.source-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.source-content ul, .source-content ol, .standards-results ul {
  padding-left: 24px;
  margin: 18px 0 26px;
  font-size: 16px;
  line-height: 1.8;
}
.source-content li, .standards-results li {
  padding-left: 5px;
  margin: 8px 0;
}
.source-content ul, .standards-results ul {
  list-style: disc;
}
.source-content ol {
  list-style: decimal;
}
.source-table-wrap {
  overflow: auto;
  width: 100%;
  margin: 30px 0;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.source-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}
.source-content thead {
  background: #eaf0fa;
  color: var(--blue);
}
.source-content th {
  font-weight: 600;
  padding: 18px;
  font-size: 14px;
}
.source-content td {
  padding: 18px;
  vertical-align: top;
  border-top: 1px solid var(--border);
}
.source-content table tr:nth-child(even) {
  background: #f8fafc;
}
.source-content td > p {
  font-size: 16px;
  line-height: 1.7;
  margin: 8px 0;
  color: var(--ink);
  font-weight: 600;
}
.source-content td > li {
  display: list-item;
  margin-left: 15px;
  list-style: disc;
  font-size: 16px;
}
.source-content td:last-child {
  color: var(--ink);
  font-weight: 600;
}
.banner-driving-offences ~ .page-layout .source-content table {
  min-width: 650px;
}
.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-advice {
  background: #eef3fb;
  padding: 30px 26px;
  border-top: 3px solid var(--blue);
}
.sidebar-advice h2 {
  font-size: 31px;
  margin: 17px 0;
}
.sidebar-advice p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
}
.sidebar-advice .button {
  width: 100%;
  gap: 18px;
  font-size: 12px;
  padding: 15px 16px;
  justify-content: space-between;
}
.sidebar-phone {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 17px;
  color: var(--blue);
  margin-top: 23px;
}
.page-contents, .related-pages {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 25px;
}
.page-contents .eyebrow, .related-pages .eyebrow {
  margin-bottom: 14px;
}
.page-contents a, .related-pages a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}
.page-contents a:hover, .related-pages a:hover {
  color: var(--blue);
}
.sidebar-emergency {
  background: #073589;
  color: #fff;
  padding: 26px;
}
.sidebar-emergency h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 15px 0 10px;
}
.sidebar-emergency p {
  font-size: 16px;
  line-height: 1.7;
  color: #dce8fc;
}
.sidebar-emergency a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 18px;
  font-family: Arial, sans-serif;
}
.inner-bottom-cta {
  background: #073589;
  color: #fff;
  padding: 44px 0;
}
.inner-bottom-cta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.inner-bottom-cta .eyebrow {
  color: #bdd3fb;
  font-size: 9px;
}
.inner-bottom-cta h2 {
  font-size: 32px;
  margin: 13px 0;
}
.inner-bottom-cta p {
  font-size: 16px;
  color: #d4e3fa;
  line-height: 1.7;
}
.inner-bottom-cta .button {
  color: var(--blue);
  background: white;
  font-size: 13px;
  flex-shrink: 0;
}
.inner-bottom-cta .button:hover {
  background: #edf3ff;
}

@media (max-width: 1100px) {
  .page-layout {
    gap: 45px;
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 800px) {
  .page-banner {
    height: 360px;
  }
  .page-banner h1 {
    font-size: 49px;
  }
  .breadcrumbs {
    margin-bottom: 43px;
  }
  .page-banner p {
    max-width: 550px;
    font-size: 18px;
  }
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 45px;
    padding-top: 45px;
    padding-bottom: 50px;
  }
  .page-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .page-contents, .related-pages {
    padding-top: 20px;
  }
  .inner-bottom-cta > div {
    align-items: flex-start;
  }
  .inner-bottom-cta h2 {
    font-size: 28px;
  }
  .inner-bottom-cta .button {
    margin-top: 25px;
    font-size: 11px;
    padding: 16px 18px;
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .page-banner {
    height: auto;
    min-height: 360px;
  }
  .banner-content {
    padding-top: 22px;
    padding-bottom: 35px;
  }
  .breadcrumbs {
    font-size: 11px;
    margin-bottom: 41px;
    gap: 7px;
  }
  .page-banner .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .page-banner h1 {
    font-size: 43px;
    letter-spacing: -1.4px;
    margin-top: 17px;
  }
  .page-banner p {
    font-size: 18px;
  }
  .banner-scrim {
    background: #071c45ad;
  }
  .page-reassurance > div {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 19px 0;
    gap: 13px;
  }
  .page-reassurance span {
    font-size: 13px;
    line-height: 1.7;
  }
  .page-reassurance a {
    margin-left: 32px;
    font-size: 12px;
  }
  .page-layout {
    padding-top: 38px;
  }
  .source-content h2 {
    font-size: 25px;
  }
  .source-content h3 {
    font-size: 22px;
  }
  .source-content th, .source-content td {
    padding: 14px;
  }
  .source-content table {
    min-width: 340px;
  }
  .source-content > p, .source-content ul, .source-content ol {
    font-size: 16px;
  }
  .source-content > p:first-child {
    font-size: 18px;
  }
  .page-sidebar {
    display: flex;
    gap: 26px;
  }
  .sidebar-advice {
    padding: 27px;
  }
  .sidebar-advice h2 br {
    display: none;
  }
  .sidebar-advice h2 {
    font-size: 30px;
  }
  .inner-bottom-cta > div {
    flex-direction: column;
    gap: 20px;
  }
  .inner-bottom-cta h2 {
    font-size: 30px;
  }
  .inner-bottom-cta .button {
    margin-top: 0;
    font-size: 12px;
  }
}

/* Keep the article, sidebar and buttons within small viewports. */
.page-layout > *, .page-sidebar > *, .inner-bottom-cta > div > * { min-width: 0; }
.page-sidebar, .page-reassurance span, .inner-bottom-cta { overflow-wrap: anywhere; }
.page-sidebar svg, .page-reassurance svg { flex-shrink: 0; }
.inner-page .source-content a { scroll-margin-top: 125px; }
@media (max-width: 800px) {
  .page-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.related-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: var(--pale);
  border-left: 3px solid var(--blue);
  padding: 25px;
  margin-top: 35px;
  color: var(--blue);
}
.related-callout h3 {
  font-size: 23px;
  margin: 11px 0;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.related-callout p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.related-callout > span { min-width: 0; }
.related-callout svg { flex-shrink: 0; }
@media (max-width: 560px) {
  .related-callout { padding: 22px 19px; }
  .related-callout h3 { font-size: 22px; }
}

.content-review-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 19px 20px;
  border: 1px solid #d8e2f2;
  border-left: 3px solid var(--blue);
  background: #f3f6fb;
  margin: 0 0 27px;
}
.content-review-note svg {
  color: var(--blue);
  margin-top: 3px;
}
.content-review-note p {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5c78;
}

/* Accessible table regions contain their own horizontal scrolling on narrow screens. */
.source-table-wrap:focus-visible { outline: 3px solid #5f90f0; outline-offset: 3px; }
.prhs-driving-offences .source-content .fee-list { padding: 0 0 0 15px; margin: 0; line-height: 1.7; }
.content-review-note > svg { flex-shrink: 0; }
@media (max-width: 560px) {
  .content-review-note { padding: 17px 15px; gap: 10px; }
  .content-review-note p { font-size: 14px; }
}

.standards-results {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.standards-results p {
  font-size: 16px;
  line-height: 1.8;
  margin: 18px 0;
}
.standards-results .results-note {
  font-size: 14px;
}
