/* ============================================================
   ACTC-INC - African Canadian Trade Company Inc
   Design: the consignment note. Cool manifest paper, ink navy,
   port blue, signal red stamps. Archivo display + Newsreader body.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F5F6F4;
  --paper-2: #EDEFEC;
  --ink: #1B2A47;
  --ink-soft: #43536E;
  --blue: #1E46B0;
  --blue-deep: #16357F;
  --red: #C8231F;
  --rule: #C9CFC9;
  --rule-dark: #9FA89F;
  --white: #FFFFFF;
  --measure: 68ch;
  --space: clamp(3rem, 7vw, 5.5rem);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  z-index: 300;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: var(--white); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- header: the data plate ---------- */
.site-head {
  background: var(--white);
  border-bottom: 3px double var(--rule-dark);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 120;
  overflow-anchor: none;
  transition: box-shadow 0.25s ease;
}
.site-head.shrunk { box-shadow: 0 1px 0 rgba(40, 40, 40, 0.1); }
.site-head .plate { transition: padding 0.25s ease; }
.site-head.shrunk .plate { padding-top: 0.35rem; padding-bottom: 0.35rem; }
.plate {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.plate__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  order: 1;
}
.plate__brand .brand-full { height: 88px; width: auto; display: block; transition: height 0.25s ease; }
.site-head.shrunk .plate__brand .brand-full { height: 56px; }
.plate__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.15;
  max-width: 15rem;
}
.plate__name small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* staff actions, always visible top right */
.staff-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  order: 2;
}
.staff-links .login {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  padding: 0.5rem 1.15rem;
  text-decoration: none;
  border-radius: 3px;
}
.staff-links .login:hover { background: #A91B18; border-color: #A91B18; color: var(--white); }
.staff-links .invoice {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 0.5rem 0.95rem;
  text-decoration: none;
  border-radius: 3px;
  background: var(--white);
}
.staff-links .invoice:hover { background: var(--ink); color: var(--white); }

/* nav */
.nav-toggle {
  display: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.site-nav {
  flex: 1 1 100%;
  border-top: 1px solid var(--rule);
  order: 4;
}
.site-nav > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}
.site-nav > ul > li { position: relative; }
.site-nav a, .site-nav .drop-label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  background: none;
  border: 0;
}
.site-nav a:hover, .site-nav .drop-label:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.drop-label::after { content: " \25BE"; font-size: 0.75em; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16.5rem;
  background: var(--white);
  border: 1px solid var(--rule-dark);
  box-shadow: 0 10px 26px rgba(27, 42, 71, 0.14);
  list-style: none;
  display: none;
  z-index: 120;
}
.dropdown li { border-top: 1px solid var(--rule); }
.dropdown li:first-child { border-top: 0; }
.dropdown a { padding: 0.65rem 0.9rem; font-weight: 500; }
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { display: block; }

/* ---------- consignment header ---------- */
.consign {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}
.consign__box {
  border: 2px solid var(--ink);
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.consign__cell {
  padding: 0.65rem 0.9rem;
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.consign__cell:first-child { border-left: 0; }
.consign__label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.consign__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}

/* ---------- hero (home) ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.hero__doc {
  border: 2px solid var(--ink);
  background: var(--white);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  width: 100%;
}
.hero__doc::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.hero__kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.hero__lede { font-size: 1.18rem; max-width: 34rem; }
.hero__lede + .hero__lede { margin-top: 0.8rem; }
.hero__actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
}
.btn--fill { background: var(--blue); color: var(--white); }
.btn--fill:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn--line { background: var(--white); color: var(--blue); }
.btn--line:hover { background: var(--paper-2); color: var(--blue-deep); }

.hero__photo { position: relative; }
.stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  transform: rotate(6deg);
  background: rgba(245, 246, 244, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* framed images: frame hugs the photo, never a sibling's height */
.frame {
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 0.45rem;
  align-self: start;
}
.frame figcaption {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.2rem 0.2rem;
}

/* ---------- routing strip ---------- */
.route {
  max-width: 1240px;
  margin: var(--space) auto 0;
  padding: 0 1.25rem;
}
.route__inner {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-family: var(--display);
}
.route__title {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-right: 0.6rem;
}
.route__port { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.route__port small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--ink-soft); }
.route__leg { flex: 1 1 2.5rem; min-width: 2rem; border-top: 2px dashed var(--rule-dark); position: relative; }
.route__leg::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -6px;
  border-left: 9px solid var(--rule-dark);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* home animated route */
.route-map { max-width: 1240px; margin: 0 auto; padding: 1.2rem 1.25rem 0; }
.route-map svg { width: 100%; height: auto; display: block; }
.route-map .guide { stroke: var(--rule-dark); stroke-width: 2; stroke-dasharray: 3 9; opacity: 0.7; }
.route-map .draw { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.js .route-map.is-animating .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.route-map.is-drawn .draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.6s ease-out;
}
.js .route-map.is-animating .port-dot { opacity: 0; }
.route-map.is-drawn .port-dot { opacity: 1; transition: opacity 0.4s ease 2.2s; }

/* ---------- fields (sections) ---------- */
.field {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space) 1.25rem 0;
}
.field__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 3px double var(--rule-dark);
  padding-bottom: 0.7rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.field__tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 3px;
  padding: 0.16rem 0.55rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.field__head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
.field__note { margin-left: auto; font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }

.field__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.field__cols--wide-media { grid-template-columns: 0.9fr 1.1fr; }
.prose p { max-width: var(--measure); margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.35rem; }
.prose h3 { font-size: 1.2rem; margin: 1.4rem 0 0.5rem; }
.prose h3:first-child { margin-top: 0; }

/* ledger rows: services, no cards */
.ledger { border-top: 2px solid var(--ink); }
.ledger__row {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.ledger__no {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--red);
}
.ledger__row h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.25rem; }
.ledger__row h3 a { color: var(--ink); text-decoration-color: var(--rule-dark); }
.ledger__row h3 a:hover { color: var(--blue); }
.ledger__row p { font-size: 0.98rem; max-width: 60ch; }

/* document tables */
.doc-table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); background: var(--white); font-size: 0.98rem; }
.doc-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0.2rem;
}
.doc-table th, .doc-table td {
  border: 1px solid var(--rule);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.doc-table thead th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--paper-2);
}
.doc-table th[scope="row"] { font-family: var(--display); font-weight: 600; font-size: 0.9rem; width: 34%; }

/* two-up and three-up image rows: frames hug their own images */
.img-row { display: grid; gap: 1.2rem; align-items: start; }
.img-row--2 { grid-template-columns: 1fr 1fr; }
.img-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* gallery of small thumbs (Sri Lanka set: used at native small size) */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.thumbs .frame { padding: 0.3rem; }
.thumbs .frame figcaption { font-size: 0.72rem; padding-top: 0.35rem; }

/* day itinerary fields */
.day {
  border: 1px solid var(--rule-dark);
  background: var(--white);
  margin-bottom: 1rem;
}
.day summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  font-family: var(--display);
}
.day summary::-webkit-details-marker { display: none; }
.day summary .day__no { font-weight: 800; color: var(--red); font-size: 0.85rem; white-space: nowrap; }
.day summary .day__title { font-weight: 700; font-size: 1.02rem; }
.day summary .day__meta { margin-left: auto; font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; }
.day summary::after { content: "+"; font-weight: 700; color: var(--blue); margin-left: 0.6rem; }
.day[open] summary::after { content: "\2212"; }
.day__body { border-top: 1px solid var(--rule); padding: 1rem 1.1rem 1.2rem; }
.day__body p { margin-bottom: 0.8rem; max-width: var(--measure); }
.day__body ul { margin: 0 0 0.4rem 1.2rem; }

/* news cards: frame hugs image, text sits with its own card */
.news-grid { columns: 3; column-gap: 1.4rem; }
.news-grid .news-card { break-inside: avoid; margin-bottom: 1.4rem; }
.news-card__link { display: block; color: inherit; text-decoration: none; }
.news-card__link:hover h3 { color: var(--blue); text-decoration: underline; }
.news-grid--2 { grid-template-columns: 1fr 1fr; }
.news-card { border: 2px solid var(--ink); background: var(--white); align-self: start; }
.news-card img { width: 100%; height: auto; border-bottom: 1px solid var(--rule); }
.news-card__body { padding: 0.9rem 1rem 1.1rem; }
.news-card__date { font-family: var(--display); font-weight: 600; font-size: 0.75rem; color: var(--ink-soft); }
.news-card__body h3 { font-size: 1.05rem; margin: 0.3rem 0 0.45rem; }
.news-card__body p { font-size: 0.92rem; }

.news-list { border-top: 2px solid var(--ink); }
.news-list__row { padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--rule); }
.news-list__row h3 { font-size: 1.05rem; }
.news-list__date { font-family: var(--display); font-weight: 600; font-size: 0.75rem; color: var(--ink-soft); }
.news-list__row p { font-size: 0.94rem; margin-top: 0.3rem; max-width: 70ch; }

/* placeholder panels, rendered in site style */
.placeholder {
  border: 2px dashed var(--rule-dark);
  background: var(--paper-2);
  padding: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.placeholder strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* ink board (footer + call bar share this) */
.ink-board { background: var(--ink); color: #E8EBF2; }
.ink-board h2, .ink-board h3 { color: var(--white); }
.ink-board a:not(.btn) { color: #B9C8F2; }
.ink-board a:not(.btn):hover { color: var(--white); }

/* ---------- footer ---------- */
.site-foot { margin-top: var(--space); }
.site-foot__route {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem 1.6rem;
}
.site-foot__main { padding: 2.6rem 1.25rem 1.4rem; }
.site-foot__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-foot__brand img { width: 130px; background: var(--white); padding: 0.3rem; border: 1px solid var(--rule-dark); }
.site-foot__brand p { font-size: 0.9rem; margin-top: 0.8rem; max-width: 30ch; color: #C6CEDF; }
.site-foot h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 0.7rem; }
.site-foot ul { list-style: none; font-size: 0.92rem; }
.site-foot li { margin-bottom: 0.35rem; }
.site-foot address { font-style: normal; font-size: 0.92rem; color: #C6CEDF; }
.site-foot address strong { color: var(--white); font-family: var(--display); font-size: 0.85rem; }
.site-foot__received {
  max-width: 1240px;
  margin: 1.8rem auto 0;
  border-top: 1px solid #3A4A6B;
  padding: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  font-size: 0.85rem;
  color: #C6CEDF;
}
.site-foot__received .stamp-line {
  font-family: var(--display);
  font-weight: 700;
  color: #E8EBF2;
  border: 2px solid #E8EBF2;
  border-radius: 3px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-foot__legal {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid #3A4A6B;
  padding: 1rem 1.25rem 6rem;
  font-size: 0.82rem;
  color: #9FABCB;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.site-foot__legal a { color: #9FABCB; }
.site-foot__legal a:hover { color: var(--white); }

html, body { overflow-x: clip; }

/* ---------- sticky call bar (phones) ---------- */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--ink);
  padding: 0.55rem 0.8rem;
  gap: 0.6rem;
}
.call-bar a {
  flex: 1;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.65rem 0.4rem;
  border-radius: 3px;
}
.call-bar .call-bar__call { background: var(--red); color: var(--white); }
.call-bar .call-bar__mail { background: var(--white); color: var(--ink); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 46rem; }
.form-grid .full { grid-column: 1 / -1; }
label { font-family: var(--display); font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 0.3rem; }
input, textarea, select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  padding: 0.6rem 0.7rem;
}
textarea { min-height: 9rem; }
.form-honey { position: absolute; left: -9999px; }

/* ---------- reveal motion ---------- */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="stagger-1"] { transition-delay: 0.08s; }
.js [data-reveal="stagger-2"] { transition-delay: 0.16s; }
.js [data-reveal="stagger-3"] { transition-delay: 0.24s; }

/* ---------- inner page hero band ---------- */
.page-band { max-width: 1240px; margin: 0 auto; padding: 1.8rem 1.25rem 0; }
.page-band h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; margin-bottom: 0.7rem; }
.page-band .lede { font-size: 1.15rem; max-width: 46rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .field__cols, .field__cols--wide-media { grid-template-columns: 1fr; }
  .news-grid { columns: 2; }
  .news-grid--2 { grid-template-columns: 1fr 1fr; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .consign__box { grid-template-columns: 1fr 1fr; }
  .consign__cell:nth-child(3) { border-left: 0; }
  .consign__cell { border-top: 1px solid var(--rule); }
  .consign__cell:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 760px) {
  .plate { gap: 0.6rem; }
  .plate__brand .brand-full { height: 54px; }
  .site-head.shrunk .plate__brand .brand-full { height: 44px; }
  .plate__name { font-size: 0.85rem; max-width: 11rem; }
  .staff-links { order: 2; margin-left: auto; }
  .staff-links .invoice { display: none; }
  .nav-toggle { display: block; order: 3; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a, .site-nav .drop-label { padding: 0.7rem 0.4rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .has-drop .dropdown { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--rule); margin-left: 0.8rem; min-width: 0; }
  .has-drop.is-open .dropdown { display: block; }
  .has-drop:hover .dropdown, .has-drop:focus-within .dropdown { display: none; }
  .has-drop.is-open .dropdown { display: block; }
  .mobile-invoice { display: block; }
  .news-grid { columns: 1; }
  .news-grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .call-bar { display: flex; }
  body { padding-bottom: 3.6rem; }
  .site-foot li a, .site-foot__legal a { display: inline-block; padding: 0.45rem 0; }
  .route__leg { min-width: 1.2rem; }
  .field__note { margin-left: 0; flex-basis: 100%; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* invoice portal appears inside the open mobile nav */
.mobile-invoice { display: none; }
@media (max-width: 760px) {
  .site-nav .mobile-invoice a { color: var(--red); font-weight: 700; }
}

/* print: keep the document honest */
@media print {
  .site-nav, .call-bar, .nav-toggle, .staff-links { display: none; }
}

/* narrow phones: document tables fit the viewport */
@media (max-width: 480px) {
  .doc-table { font-size: 0.9rem; }
  .doc-table th, .doc-table td { padding: 0.45rem 0.5rem; }
  .doc-table th[scope="row"] { width: auto; }
}
