:root {
  --navy: #111f2d;
  --navy2: #223344;
  --ivory: #faf7f0;
  --gold: #dcbb82;
  --ink: #172535;
  --muted: #4f5a63;
  --line: #d9d0c1;
  --serif: Georgia, "Times New Roman", serif;
}
body { font-family: system-ui, -apple-system, sans-serif; }
.wrap { width: min(1140px, calc(100% - clamp(44px, 11vw, 150px))); }
.site-header { background: var(--ivory); }
.nav-wrap { min-height: 88px; gap: 26px; }
.wordmark > span { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.6px; }
.wordmark small { margin-top: 7px; text-transform: uppercase; letter-spacing: .15em; font-size: 9px; }
#navigation { gap: clamp(15px, 2vw, 28px); font-weight: 600; }
#navigation .nav-contact { border: 1px solid #8f7247; padding: 8px 19px; }
#navigation a:hover, #navigation a:focus-visible { text-decoration-color: #8f7247; }
.button { border-color: #8c6b40; padding: 13px 21px; font-size: .88rem; min-height: 47px; gap: 12px; }
.button.outline { background: transparent; }
.button.outline:hover { background: #f3ecdf; }
.button:not(.outline):hover { background: #efce94; }
.eyebrow { font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; }
.wave { bottom: -1px; height: 52px; color: var(--ivory); display: block; pointer-events: none; }

.home-hero {
  min-height: clamp(535px, 45vw, 690px);
  display: grid;
  align-items: center;
  padding: 64px 0 102px;
  isolation: isolate;
}
.home-hero > .wrap { margin-block: 0; }
.home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  z-index: -2;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101c29dc 0%, #101c29b5 39%, #101c2952 64%, #101c2926 100%);
}
.home-hero__copy { max-width: 625px; }
.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 7.2vw, 110px);
  line-height: .98;
  letter-spacing: -.054em;
  color: #fff8ec;
}
.home-hero .eyebrow { color: #f1d3a0; margin-bottom: 22px; }
.home-hero .lead { color: #f0eee9; font-size: clamp(16px, 1.55vw, 19px); max-width: 450px; line-height: 1.55; }
.home-hero .wave { z-index: 1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 27px; }
.hero-link { color: #fff8ec; font-weight: 600; font-size: .89rem; }
.hero-link span { color: var(--gold); margin-left: 5px; }

.bail-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 43px 0 66px;
}
.bail-feature .eyebrow { margin-bottom: 11px; }
.bail-feature p:not(.eyebrow) { color: var(--muted); margin: 0 0 12px; }
.section { padding-block: clamp(49px, 6vw, 85px); }
.section-heading { margin-bottom: 29px; }
.text-link { font-size: .83rem; }
.practice-band { background: #f1ece2; }
.practice-grid, .resource-list.topic-resources, .resource-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 25px);
}
.practice-grid {
  padding: 0;
  margin: 0;
  list-style: none;
}
.practice-grid li, .resource-list.topic-resources > article {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.resource-list.topic-resources > article { padding: 0; overflow-wrap: normal; }
.practice-grid a, .resource-links a {
  display: block;
  height: 100%;
  transition: background-color .2s ease;
}
.practice-grid a:hover, .practice-grid a:focus-visible { background: #e7ded08c; text-decoration: none; }
.topic-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #263440;
}
.topic-resources .topic-card-image[src*="/poa-courts/"] { object-position: center 70%; }
.topic-card-content { position: relative; padding: 20px; }
.practice-grid .topic-card-content, .resource-links .topic-card-content { padding-right: 43px; }
.topic-card-content h2, .topic-card-content h3 {
  font-size: clamp(22px, 2.1vw, 29px);
  letter-spacing: -.025em;
  line-height: 1.16;
  margin-bottom: 9px;
}
.topic-card-content p { color: var(--muted); margin: 0; font-size: .875rem; line-height: 1.55; }
.topic-resources .topic-card-content p { margin-bottom: 12px; }
.topic-card-arrow { position: absolute; top: 20px; right: 19px; color: #805c2a; }
.related-link { margin: 22px 0 0; }
.guide-list { margin-top: 50px; }
.guide-list ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; padding-left: 19px; }
.directory-search { max-width: 560px; }
.directory-search .text-link { margin-inline-start: 12px; }
.directory-results, .directory-source { margin-top: 21px; }
.poa-court-grid, .case-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.poa-court-grid { padding: 0; margin: 0; list-style: none; }
.poa-court-grid li, .case-groups section { border: 1px solid var(--line); }
.poa-court-grid a { display: block; height: 100%; }
.poa-court-grid img, .court-image-fallback { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.court-image-fallback { display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 2rem var(--serif); }
.poa-card-body, .case-groups section { padding: 20px; }
.poa-card-body .eyebrow { margin-bottom: 7px; }
.poa-card-body h2, .case-groups h2 { font-size: 1.48rem; letter-spacing: -.02em; }
.poa-card-body p:last-child { color: var(--muted); margin: 9px 0 0; }
.poa-court-image { width: 100%; border: 1px solid var(--line); }
.poa-contact, .case-groups { margin-top: 28px; }
.poa-office + .poa-office { border-top: 1px solid var(--line); }
.case-groups ul { padding-left: 18px; margin-bottom: 0; }
.case-groups li { margin: 12px 0; }
.case-groups li span { color: var(--muted); font-size: .82rem; }
.case-groups { align-items: start; }
.case-groups details { padding: 0; border: 0; }
.case-count { color: var(--muted); font: 0.8rem/1.4 system-ui, sans-serif; }
.worksheet-list { padding: 0; list-style: none; }
.worksheet-list label { display: flex; align-items: start; gap: 4px; font-size: 1rem; font-weight: 400; }
.worksheet-list input { margin-top: .5em; flex-shrink: 0; }
@media (max-width: 900px) {
  .poa-court-grid, .case-groups, .practice-grid, .resource-list.topic-resources, .resource-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .poa-court-grid, .case-groups, .practice-grid, .resource-list.topic-resources, .resource-links {
    grid-template-columns: 1fr;
  }
}
@media print {
  .site-header, footer, .consent, .bail-worksheet aside { display: none; }
  .bail-worksheet { display: block; }
  .page-hero { background: transparent; color: black; }
  .page-hero p { color: black !important; }
}

.court-band { position: relative; background: var(--navy); color: var(--ivory); }
.court-band > .section { padding-bottom: clamp(78px, 8vw, 125px); }
.court-band .wave { height: 34px; }
.resource-links a { border: 1px solid #ffffff43; background: #1a2939; }
.resource-links a:hover, .resource-links a:focus-visible { background: #223344; text-decoration: none; }
.resource-links .topic-card-content p { color: #cfdae3; }
.resource-links .topic-card-arrow { color: var(--gold); }
.closing { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.closing p { margin: 12px 0 0; color: var(--muted); }
.page-hero { background: var(--navy); }
.page-hero p.eyebrow:last-of-type { color: var(--gold); margin-top: 0; }
.page-hero--illustrated {
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(375px, 33vw, 540px);
  padding-block: clamp(62px, 6vw, 104px) clamp(85px, 8vw, 120px);
}
.page-hero--illustrated > .wrap { position: relative; z-index: 1; }
.page-hero--illustrated > .wrap :is(h1, p:last-of-type) { max-width: min(49%, 34rem); }
.page-hero__art { position: absolute; inset: 0 0 0 38%; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 15%, transparent 49%);
}
.page-hero--illustrated .wave { z-index: 2; height: clamp(31px, 4.1vw, 52px); }
@media (max-width: 760px) {
  .page-hero--illustrated { display: block; min-height: 0; padding-block: 0; }
  .page-hero--illustrated > .wrap { padding-block: 44px 8px; }
  .page-hero--illustrated > .wrap :is(h1, p:last-of-type) { max-width: none; }
  .page-hero__art { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .page-hero__art::after { background: linear-gradient(180deg, var(--navy), transparent 31%); }
}
@media print {
  .page-hero--illustrated { min-height: 0; background: transparent; }
  .page-hero--illustrated > .wrap :is(h1, p:last-of-type) { max-width: none; }
  .page-hero__art { display: none; }
}
.prose > h2:first-child { margin-top: 0; }
.service-panel { align-self: start; }
.service-panel .text-link { display: table; margin-top: 8px; }
.traffic-guide { grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: clamp(30px, 5vw, 70px); }
.traffic-guide .prose { min-width: 0; }
.guide-jump-links { display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 0 0 28px; font-size: .9rem; }
.guide-jump-links a { padding: 3px 0; }
.guide-jump-links + h2 { margin-top: 0; }
.guide-table { margin: 18px 0 26px; }
.guide-table th, .guide-table td { padding: 10px clamp(7px, 1.25vw, 14px); }
.guide-table thead { background: var(--navy); color: var(--ivory); }
.guide-table tbody th { font-weight: 600; }
.guide-table tbody tr:nth-child(even) { background: #f0ebe2; }
.guide-table .form-help { display: block; margin-top: 4px; font-weight: 400; }
.guide-table .offence-provision { width: 29%; overflow-wrap: anywhere; }
.traffic-guide .verified-date { font-size: .8rem; color: var(--muted); margin-top: 30px; }
.traffic-guide .service-panel .button { margin-bottom: 15px; }
.traffic-guide .service-panel h3 { margin-top: 21px; }
@media (max-width: 760px) {
  .traffic-guide { grid-template-columns: minmax(0, 1fr); }
  .guide-jump-links { width: auto; flex-direction: row; padding: 0; }
  .guide-jump-links a { border-top: 0; }
}
.preview-notice { border-left: 3px solid #947344; padding: 10px 15px; background: #f1ece2; }
.footer-grid { grid-template-columns: 1.15fr 1fr 1fr; gap: 38px; }
.footer-email { font-size: 12px; }
footer .wordmark > span { font-size: clamp(22px, 2.4vw, 28px); }

@media (max-width: 960px) {
  .nav-wrap { min-height: 72px; padding: 13px 0; flex-wrap: wrap; gap: 14px; }
  .menu-toggle { display: block; background: transparent; border: 1px solid #a89983; padding: 6px 13px; font-size: .83rem; min-height: 40px; }
  #navigation { display: none; width: 100%; gap: 0; padding: 0; }
  #navigation.open { display: flex; flex-direction: column; align-items: stretch; }
  #navigation a { display: block; padding: 11px 0; border-top: 1px solid var(--line); }
  #navigation .nav-contact { margin: 5px 0 0; text-align: center; }
  .home-hero h1 { font-size: clamp(57px, 9.2vw, 85px); }
  .home-hero { min-height: 520px; }
}
@media (max-width: 720px) {
  .bail-feature { grid-template-columns: 1fr; padding: 30px 0 47px; gap: 13px; }
  .guide-list ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 640px) {
  .home-hero { min-height: 475px; padding: 62px 0 74px; }
  .home-hero__image { object-position: 69% center; }
  .home-hero::before { background: linear-gradient(90deg, #0e1928e8 0%, #0e1928ad 74%, #0e19286b 100%); }
  .home-hero h1 { font-size: clamp(47px, 12.7vw, 71px); }
  .wave { height: 37px; }
  .court-band .wave { height: 25px; }
  .closing { align-items: start; flex-direction: column; }
}
