.licence-page { --guide-paper:#fffefa; --guide-soft:#eaf0e7; }
.licence-page :is(.rent-section,.licence-weight-example) { scroll-margin-top:24px; }
.licence-page .rent-hero-inner { min-height:clamp(410px,40vw,555px); }
.licence-page .rent-hero-copy { width:min(47%,510px); }
.licence-page .rent-hero-copy h1 { max-width:13ch; }
.licence-page .rent-hero-photo img { object-position:61% center; }
.guide-contents { background:var(--rent-cream);border-block:1px solid var(--rent-line); }
.guide-contents .rent-wrap { display:flex;gap:6px 28px;flex-wrap:wrap;padding-block:10px; }
.guide-contents a {
  display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:3px 0;
  color:var(--rent-green);font-weight:600;text-decoration:none;text-underline-offset:4px;
}
.guide-contents a::after {
  content:"";width:6px;height:6px;margin-bottom:4px;border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;transform:rotate(45deg);
}
.guide-contents a:hover { text-decoration:underline; }

.guide-comparison,.licence-page .guide-related { background:var(--rent-sand); }
.licence-page .licence-examples {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.7vw,22px);margin-top:22px;
}
.licence-page :is(.licence-example,.licence-weight-example,.licence-other) {
  min-width:0;background:var(--guide-paper);border:1px solid var(--rent-line);border-radius:18px;
}
.licence-page .licence-example {
  display:flex;flex-direction:column;gap:12px;padding:clamp(15px,1.8vw,25px);
}
.licence-example header {
  display:flex;align-items:center;gap:10px;
}
.licence-page .licence-example h3 { margin:0; }
.licence-category {
  display:inline-grid;place-items:center;flex:0 0 auto;min-width:40px;height:40px;
  padding-inline:8px;border:1px solid var(--rent-line);color:var(--rent-green);border-radius:999px;font-size:.95rem;font-weight:700;
}
.licence-example figure { margin:0; }
.licence-example img { display:block;width:100%;height:auto;mix-blend-mode:multiply; }
.licence-vehicle-weights { margin:0; }
.licence-vehicle-weights>div,.licence-example .licence-total {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:6px 12px;
}
.licence-vehicle-weights>div { padding:3px 0; }
.licence-vehicle-weights dd { margin:0;white-space:nowrap;font-variant-numeric:tabular-nums; }
.licence-example .licence-total {
  padding-top:9px;margin:0;border-top:1px solid var(--rent-line);font-weight:650;
}
.licence-total strong {
  padding:3px 7px;border-radius:6px;background:var(--guide-soft);color:var(--rent-green);white-space:nowrap;
}
.licence-weight-parts span { color:var(--rent-copy);font-size:.85rem; }

.licence-page .licence-example-note,.licence-page .licence-transporter-note p {
  margin:0;font-size:.96rem;line-height:1.55;
}
.licence-page .licence-transporter-note p+p { margin-top:8px; }
.licence-page .licence-weight-example {
  display:grid;grid-template-columns:minmax(0,1fr);align-items:start;
  gap:14px clamp(16px,2.3vw,32px);margin-top:clamp(14px,2vw,24px);padding:clamp(15px,2vw,27px);
}
.licence-weight-heading {
  grid-column:1/-1;justify-self:start;display:grid;max-inline-size:100%;
}
.licence-page .licence-weight-heading h3,
.licence-page .guide-related h2 {
  margin:0;
  font:700 clamp(1.35rem,2.15vw,1.85rem)/1.1 var(--sans);
  letter-spacing:-.022em;
}
.licence-page .licence-weight-heading h4 {
  /* The main heading determines the subtitle's available inline size. */
  container-type:inline-size;
  margin:0;
  font:450 1.16rem/1.05 "DHT Caveat",DHTBrand,cursive;
  letter-spacing:normal;
}
.licence-page .licence-weight-heading h4 span {
  /* The Caveat lettering measures 11.83em, including its final overhang. */
  font-size:8.41cqi;
  font-kerning:none;
  font-variant-ligatures:none;
}
.licence-weight-figure,.licence-weight-terms { margin:0; }
.licence-weight-explanation h4 { margin:0 0 10px;font-weight:650; }
.licence-weight-figure {
  /* Trailer, cargo and remaining capacity share the 750:600:150 scale. */
  --weight-columns:minmax(0,5fr) minmax(0,5fr) minmax(0,4fr) minmax(0,1fr);
  container-type:inline-size;
}
.licence-weight-parts,.licence-load-bar { display:grid;grid-template-columns:var(--weight-columns); }
.licence-weight-parts { text-align:center; }
.licence-weight-parts>div { padding:8px;background:#f7f6f0;border-radius:8px; }
.licence-weight-parts img {
  display:block;width:min(100%,310px,calc(26.6667cqw - 8px));height:auto;
  margin:0 auto 7px;mix-blend-mode:multiply;
}
.licence-weight-parts>div { padding-inline:4px; }
.licence-weight-parts :is(strong,b,span) { display:block; }
.licence-weight-parts strong { font-size:.85rem; }
.licence-weight-parts span { line-height:1.35; }
.licence-weight-parts .licence-vehicle-limit { margin-top:4px; }
.licence-vehicle-limit strong { display:inline;white-space:nowrap; }
.licence-page .licence-weight-summary { margin:8px 0 0;font-size:.95rem; }
.licence-weight-category {
  grid-column:1/-1;
  padding-block:12px;border-block:1px solid var(--rent-line);
}
.licence-weight-category h4 { margin:0 0 5px;font-weight:650; }
.licence-page .licence-weight-category p { max-width:105ch;font-size:.95rem;line-height:1.55; }
.licence-page .licence-weight-category p+p { margin-top:7px; }
.licence-weight-terms>div { display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:6px 0;border-top:1px solid var(--rent-line);font-size:.88rem;line-height:1.4; }
.licence-weight-terms :is(dt,.licence-weight-value) { font-weight:650; }
.licence-weight-terms dd { margin:0; }
.licence-weight-terms dd:not(.licence-weight-value) { grid-column:1;color:var(--rent-copy); }
.licence-weight-terms .licence-weight-value { grid-column:2;grid-row:1/3;align-self:center; }
.licence-horse-caption {
  /* The visible horse is slightly right of the image canvas centre. */
  position:relative;inset-inline-start:8%;
}
.licence-page .licence-horse-faq {
  margin-top:clamp(14px,2vw,24px);background:transparent;
}
.licence-page .licence-horse-faq .licence-other {
  margin:0;padding:0 clamp(14px,2vw,24px);background:var(--rent-cream);
}
.licence-horse-faq .licence-other summary::after { content:none; }
.licence-horse-methods {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(10px,1.5vw,18px);padding-bottom:clamp(14px,2vw,24px);
}
.licence-horse-methods article {
  padding:clamp(12px,2vw,20px);
  background:var(--guide-paper);border:1px solid var(--rent-line);border-radius:14px;
}
.licence-horse-methods img {
  display:block;width:min(100%,240px);height:auto;aspect-ratio:16/9;
  object-fit:contain;margin:0 auto 12px;mix-blend-mode:multiply;
}
.licence-page .licence-horse-methods h3 { margin:0 0 5px;font-size:1rem;letter-spacing:normal; }
.licence-page .licence-horse-methods p { margin:0;font-size:.9rem;line-height:1.5; }
@media(max-width:600px) {
  .licence-horse-methods { grid-template-columns:1fr; }
}
.licence-load { margin-top:4px;min-width:0; }
.licence-load-bar { row-gap:3px;margin-top:3px; }
.licence-load-total {
  grid-area:1 / 2 / 2 / 4;
  display:grid;justify-items:center;
  border-bottom:1px solid var(--rent-green);
  font-size:clamp(.75rem,2cqw,.95rem);
  line-height:1.25;
  padding-bottom:3px;
  position:relative;
}
.licence-load-total::before,.licence-load-total::after {
  content:"";position:absolute;bottom:-1px;height:7px;border-left:1px solid var(--rent-green);
}
.licence-load-total::before { left:0; }
.licence-load-total::after { right:0; }
.licence-load-bar>span {
  grid-row:2;min-height:34px;display:grid;place-items:center;
  background:var(--load-color);color:var(--rent-green);
  font-size:clamp(.69rem,2cqw,.88rem);font-weight:650;white-space:nowrap;
}
.licence-load-bar .licence-load-car { grid-column:1;margin-inline-end:4px;border-radius:5px;color:white; }
.licence-load-bar .licence-load-empty { grid-column:2;border-radius:5px 0 0 5px;color:white; }
.licence-load-bar .licence-load-cargo,.licence-load-bar .licence-load-spare { border-inline-start:1px solid var(--guide-paper); }
.licence-load-bar .licence-load-cargo { grid-column:3; }
.licence-load-bar .licence-load-spare { grid-column:4;border-radius:0 5px 5px 0; }
.licence-load-car { --load-color:#425a75; }
.licence-load-empty { --load-color:#164b3c; }
.licence-load-cargo { --load-color:#a8bd9b; }
.licence-load-spare { --load-color:#e8ddc8; }
@container (width < 540px) {
  .licence-load-spare span { display:none; }
}
.licence-load-legend { display:flex;flex-wrap:wrap;gap:6px 18px;margin:10px 0 0;padding:0;list-style:none;font-size:.9rem; }
.licence-load-legend li { display:flex;align-items:center;gap:5px; }
.licence-load-legend li::before { content:"";width:10px;height:10px;border-radius:2px;background:var(--load-color); }

.licence-page .guide-transporter { background:var(--rent-cream); }
.guide-transporter .licence-total strong { background:var(--rent-sand); }
.guide-transporter .licence-transporter-example {
  display:grid;grid-template-columns:minmax(125px,1fr) minmax(0,1.4fr);
  gap:12px clamp(16px,4vw,45px);margin-top:22px;
}
.guide-transporter .licence-transporter-example header { grid-column:1/-1; }
.guide-transporter .licence-transporter-example figure { grid-area:2 / 1 / span 3;align-self:center; }
.guide-transporter .licence-transporter-example figcaption {
  margin-top:6px;text-align:center;font-size:.9rem;color:var(--rent-copy);
}
.guide-transporter .licence-vehicle-weights { grid-area:2 / 2; }
.guide-transporter .licence-transporter-example .licence-total { grid-area:3 / 2; }
.guide-transporter .licence-transporter-note { grid-area:4 / 2; }
.guide-transporter .licence-vehicle-weights>div:last-child {
  border-top:1px solid var(--rent-line);padding-top:8px;font-weight:650;
}
.licence-page .guide-related .guide-related-subtitle {
  margin:2px 0 0;
  font:450 clamp(1.25rem,2vw,1.65rem)/1.15 "DHT Caveat",DHTBrand,cursive;
}
.guide-related .rent-related-cards { grid-template-columns:1fr;margin-top:14px; }
.guide-related .rent-related-card {
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
  gap:clamp(10px,1.4vw,18px);padding:10px clamp(12px,1.6vw,20px);
  min-height:76px;border-color:#bbcbbd;background:#fff;font-weight:400;text-align:left;
}
.guide-related .rent-related-card:hover { border-color:#648674;background:#fff; }
.guide-related-art {
  display:grid;place-items:center;flex:0 0 clamp(62px,7vw,94px);min-height:50px;
}
.guide-related .rent-related-card img {
  width:100%;height:50px;object-fit:contain;mix-blend-mode:multiply;
}
@media(min-width:881px) {
  .guide-related .rent-related-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(min-width:1101px) {
  .licence-page .guide-comparison .rent-intro { max-width:min(100%,105ch); }
  .licence-page .licence-weight-example {
    gap:18px;
    padding:clamp(22px,2.8vw,36px);
  }
  .licence-weight-parts>div { background:transparent; }
  .licence-weight-explanation { margin-top:6px; }
  .licence-weight-terms {
    display:grid;
    grid-template-columns:minmax(10rem,1fr) minmax(0,2.5fr) max-content;
    column-gap:clamp(12px,2vw,24px);
  }
  .licence-weight-terms>div {
    grid-column:1/-1;
    grid-template-columns:subgrid;
    column-gap:inherit;
    padding:9px 0;
  }
  .licence-weight-terms dd:not(.licence-weight-value) { grid-column:2; }
  .licence-weight-terms .licence-weight-value { grid-column:3;grid-row:1;text-align:right; }
}

@media(max-width:900px) {
  .licence-page .licence-examples { grid-template-columns:1fr; }
  .licence-example figure img { max-width:475px;margin-inline:auto; }
}
@media(max-width:760px) {
  .licence-page .rent-wrap { width:calc(100% - 2 * clamp(12px,4vw,24px)); }
  .licence-page .rent-section { padding-block:32px; }
  .licence-page .rent-hero-inner { min-height:0;padding-block:26px 22px; }
  .licence-page .rent-hero-copy { width:100%; }
  .licence-page .rent-hero-copy h1 {
    max-width:none;font-size:clamp(2rem,8.3vw,2.65rem);text-wrap:balance;
  }
  .licence-page .rent-hero-photo { aspect-ratio:1.8; }
  .licence-page :is(.guide-comparison,.guide-transporter) h2 {
    font-size:clamp(1.68rem,6.8vw,2.15rem);overflow-wrap:anywhere;
  }
  .guide-contents .rent-wrap { gap:0 12px;padding-block:3px; }
  .guide-contents a { min-height:44px;font-size:.875rem;gap:5px; }
  .licence-page :is(.licence-example,.licence-weight-example) { padding:clamp(12px,3.65vw,18px); }
  .licence-weight-parts { grid-template-columns:minmax(0,1fr);gap:8px;text-align:start; }
  .licence-weight-parts>div {
    display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);
    align-items:center;gap:10px;padding:8px;
  }
  .licence-weight-parts img { width:100%;margin:0; }
  .licence-horse-caption { inset-inline-start:0; }
  .licence-load-legend {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;
  }
  .licence-load-legend li { flex-wrap:wrap;column-gap:5px;row-gap:2px; }
  .licence-load-legend li::before { flex:0 0 10px; }
  .licence-load-legend strong { white-space:nowrap; }
  .licence-page .licence-horse-methods article { padding:12px; }
  .guide-transporter .licence-transporter-example { grid-template-columns:1fr; }
  .guide-transporter .licence-transporter-example :is(figure,.licence-total,.licence-vehicle-weights,.licence-transporter-note) { grid-area:auto; }
  .guide-transporter .licence-transporter-example img { width:min(340px,100%); }
}

@media(min-width:1101px) {
  .welcome-page #welcome-nav>.phone-nav-extra,
  .welcome-page #welcome-nav>.nav-questions .phone-nav-glyph { display:none; }
}
