/* Shared styles for the Abell policy pages. Tokens match the homepage. */
:root {
  --red: #ea3c38; --red-deep: #c4201c; --ink: #231f20; --asphalt: #2b2829; --mute: #5f5a5b;
  --line: #e6e1df; --sky: #f6f1ef; --paper: #ffffff;
  --display: "Overpass", "Arial Narrow", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red-deep); outline-offset: 2px; }
.wrap { max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.todo { background: #fff3a0; color: #231f20; border-radius: 3px; padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { height: 56px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { color: var(--ink); font: 800 16px/1 var(--display); text-decoration: none; padding-block: 8px; border-bottom: 3px solid transparent; }
.nav a:hover { border-color: var(--red); }
.tel { padding: 8px 16px; border-radius: 8px; background: var(--red-deep); box-shadow: 0 3px 0 #8c1412; font: 800 18px/1 var(--display); color: #fff; text-decoration: none; white-space: nowrap; }
.tel:hover { background: #a81916; }
.tel small { display: block; font: 600 11px/1.3 var(--body); color: #fff; }

/* Page title band */
.head { background: linear-gradient(120deg, var(--red-deep) 45%, #ad1a17 100%); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.head .eyebrow { font: 800 15px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.head h1 { margin-top: 10px; font-size: clamp(38px, 6vw, 68px); font-weight: 900; letter-spacing: -.02em; }
.head p.intro { margin-top: 14px; max-width: 60ch; font-size: 18px; }

/* Policy text with a list of the other policies alongside */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 88px); align-items: start; }
.side { position: sticky; top: 100px; }
.side h2 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: block; padding: 7px 10px; border-left: 3px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.side a:hover { border-color: var(--red); }
.side a[aria-current] { border-color: var(--red-deep); font-weight: 700; }
.doc { max-width: 72ch; min-width: 0; }
.doc h2 { margin-top: 34px; font-size: 26px; font-weight: 800; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin-top: 10px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc h3 { margin-top: 22px; font-size: 19px; font-weight: 800; }
.doc .clause { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px; }
.doc .clause .num { font-weight: 700; }
.doc .clause.sub { margin-left: 34px; grid-template-columns: 26px minmax(0, 1fr); }
.doc .chart { width: 100%; height: auto; }
.doc .note { margin-top: 26px; padding: 12px 14px; background: var(--sky); border-radius: 8px; }
.doc .updated { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }

/* Footer */
.foot { background: var(--ink); color: #e6e1df; font-size: 15px; border-top: 4px solid var(--red-deep); }
.foot .wrap { padding-block: clamp(40px, 5vw, 60px) 28px; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 80px); }
.foot .brand img { width: auto; height: 62px; padding: 7px 10px; background: #fff; border-radius: 8px; }
.foot .brand p { margin-top: 14px; color: #dbd6d4; }
.foot h3 { margin-bottom: 14px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot a:focus-visible { outline-color: #fff; }
.foot .phone { font: 900 24px/1.1 var(--display); color: #fff; }
.foot .hours small { display: block; margin-top: 2px; font-size: 13px; color: #b9b3b1; }
.foot .small { margin-top: 36px; padding-top: 18px; border-top: 1px solid #4d4849; font-size: 13px; color: #b9b3b1; }

@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .tel small { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .tel { margin-left: auto; }
  .top .wrap { gap: 14px; min-height: 64px; }
  .logo img { height: 44px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .brand { grid-column: 1 / -1; }
  .side { position: static; order: 2; padding-top: 22px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .foot .brand { grid-column: auto; }
  .doc .clause.sub { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
