/* ==================================================================
   site-fixes.css
   Loaded last, after theme.css — so these rules win.
   1. horizontal scroll fixes
   2. header brand sizing
   3. the "Get a quote" modal
   ================================================================== */

/* ============ 1. no horizontal scrolling, ever ============ */
html { overflow-x: hidden; }
body { overflow-x: clip; max-width: 100%; }

/* the usual suspects: media and wide blocks inside content */
img, svg, video, iframe, table, pre { max-width: 100%; }
img, svg, video { height: auto; }
pre { overflow-x: auto; }

/* content tables scroll inside their own box instead of the page */
.page-content table,
.entry table { display: block; overflow-x: auto; }

/* flex children must be allowed to shrink, otherwise a long word or a
   long brand pushes the whole row past the viewport */
/* NOTE: .head-inner must NOT wrap — the search input grows on focus and a
   wrapping row drops it to a second line. The brand shrinks instead. */
.head-inner { min-width: 0; flex-wrap: nowrap; }
.head-inner > * { min-width: 0; }
.topbar-inner, .foot-inner { min-width: 0; flex-wrap: wrap; }

/* the search box never grows past the room it has */
.head-search { flex-shrink: 1; min-width: 0; }
.head-search input { width: 150px; max-width: 100%; }
.head-search input:focus { width: 180px; }
@media (max-width: 1320px) { .head-search { display: none; } }

/* ============ 2. header brand ============ */
/* site_title is long for SEO reasons; the header shows the short name.
   This caps it anyway so no title can ever break the header row. */
.brand { min-width: 0; flex-shrink: 1; }
.brand-text {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.25;
}
@media (max-width: 1200px) { .brand-text { max-width: 220px; font-size: 18px; } }
@media (max-width: 900px)  { .brand-text { max-width: 190px; font-size: 17px; } }
@media (max-width: 400px)  { .brand-text { max-width: 150px; font-size: 15px; } }

/* the search box shrinks before anything else does */
@media (max-width: 1150px) { .head-search input { width: 120px; } }

/* ============ 2b. mobile-only header blocks ============ */
/* These live inside .main-nav but must only ever appear in the mobile
   slide-in panel. Without this they render inside the desktop header. */
.nav-panel-head,
.nav-foot { display: none; }

/* ============ 3. quote modal ============ */
body.qm-open { overflow: hidden; }

.qm {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .2s ease;
}
.qm.is-open { opacity: 1; }
.qm[hidden] { display: none; }

.qm__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 18, 32, .72);
  backdrop-filter: blur(3px);
}

.qm__dialog {
  position: relative;
  display: grid; grid-template-columns: 300px 1fr; grid-template-rows: minmax(0, 1fr);
  width: min(940px, 100%);
  /* a DEFINITE height, not just max-height: with an auto height the grid
     row is sized from its content and 1fr never resolves, which is why the
     form kept overflowing instead of scrolling. */
  height: min(760px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: var(--radius-xl, 18px);
  box-shadow: 0 30px 70px rgba(4, 14, 26, .45);
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.qm.is-open .qm__dialog { transform: none; }

.qm__x {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: #12202f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  transition: transform .15s ease, background .15s ease;
}
.qm__x:hover { transform: rotate(90deg); background: #fff; }

/* left panel */
.qm__aside {
  background: linear-gradient(160deg, var(--blue-dark, #073A75) 0%, var(--blue, #0B4F9C) 100%);
  color: #fff; padding: 34px 28px; display: flex; flex-direction: column;
  min-height: 0; overflow-y: auto;
}
.qm__brand { font-family: var(--font-head); font-size: 22px; margin: 0 0 10px; color: #fff; }
.qm__pitch { margin: 0 0 20px; font-size: 14.5px; line-height: 1.75; opacity: .85; }
.qm__points { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.6; }
.qm__points li { position: relative; padding: 0 0 12px 22px; opacity: .92; }
.qm__points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #F5A623);
}
.qm__phone {
  margin-top: auto; padding-top: 18px; color: var(--accent, #F5A623);
  font-size: 18px; font-weight: 700; text-decoration: none; direction: ltr;
}

/* right panel */
.qm__main {
  padding: 30px 30px 26px;
  min-height: 0; max-height: 100%; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.qm__title { font-family: var(--font-head); font-size: 24px; margin: 0 0 6px; }
.qm__sub   { margin: 0 0 20px; font-size: 14px; color: var(--text-muted, #7E8DA1); }
.qm__sub span { color: #c0392b; }

.qm__alert { border-radius: var(--radius, 10px); padding: 13px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.7; }
.qm__alert--error { background: #fdeaea; border: 1px solid #f2c9c9; color: #8a2020; }
.qm__alert--ok    { background: #e8f7ee; border: 1px solid #bfe6cd; color: #12673a; }

.qm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qm__field--full  { grid-column: 1 / -1; }
.qm__field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qm__field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; color: var(--text, #12202F); }
.qm__field label span { color: #c0392b; }
.qm__field input,
.qm__field select,
.qm__field textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border, #DFE7F0); border-radius: var(--radius, 10px);
  padding: 11px 13px; font: inherit; font-size: 14.5px;
  background: #fff; color: var(--text, #12202F);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qm__field input:focus,
.qm__field select:focus,
.qm__field textarea:focus {
  outline: 0; border-color: var(--blue, #0B4F9C);
  box-shadow: 0 0 0 3px rgba(11, 79, 156, .14);
}
.qm__field textarea { resize: vertical; min-height: 84px; }

.qm__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.qm__btn {
  position: relative; border: 0; cursor: pointer; font: inherit;
  font-weight: 700; font-size: 15px; padding: 13px 26px;
  border-radius: var(--radius, 10px);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter .12s ease, transform .12s ease;
}
.qm__btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.qm__btn--primary { background: var(--blue, #0B4F9C); color: #fff; }
.qm__btn--wa      { background: #25d366; color: #06301a; }

.qm__spin { display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: qmspin .7s linear infinite; }
@keyframes qmspin { to { transform: rotate(360deg); } }
.qm__form.is-busy .qm__btn { pointer-events: none; opacity: .72; }
.qm__form.is-busy .qm__spin { display: inline-block; }

.qm__note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-muted, #7E8DA1); }

/* ---- modal on small screens ---- */
@media (max-width: 860px) {
  .qm { padding: 0; align-items: stretch; }
  .qm__dialog {
    grid-template-columns: 1fr;
    width: 100%; max-height: 100vh; border-radius: 0;
  }
  .qm__aside { padding: 24px 22px 20px; }
  .qm__points, .qm__phone { display: none; }
  .qm__pitch { margin-bottom: 0; }
  .qm__main { padding: 22px 20px 26px; }
}
@media (max-width: 560px) {
  .qm__grid { grid-template-columns: 1fr; }
  .qm__btn { flex: 1 1 100%; }
}


/* the form column gets a slim, visible scrollbar */
.qm__main::-webkit-scrollbar { width: 10px; }
.qm__main::-webkit-scrollbar-track { background: #f2f5f9; }
.qm__main::-webkit-scrollbar-thumb {
  background: #c7d3e2; border-radius: 999px; border: 3px solid #f2f5f9;
}
.qm__main::-webkit-scrollbar-thumb:hover { background: #a9bacd; }
.qm__main { scrollbar-width: thin; scrollbar-color: #c7d3e2 #f2f5f9; }

/* the buttons stay pinned to the bottom of the form column so "Send request"
   is reachable without scrolling to the very end */
.qm__actions {
  position: sticky; bottom: -26px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 22%);
  padding: 16px 0 10px; margin-top: 18px;
}

@media (max-width: 860px) {
  .qm__dialog {
    max-height: 100dvh; height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .qm__aside { overflow: visible; }
}


/* ==================================================================
   4. MOBILE HEADER
   Target: reads like an international freight forwarder, not a blog.
   ================================================================== */

@media (max-width: 960px) {

  /* ---- topbar: one tidy line, phone is what matters on a phone ---- */
  .topbar { font-size: 12.5px; }
  .topbar-inner {
    flex-wrap: nowrap; gap: 10px;
    min-height: 38px; align-items: center;
  }
  .topbar-left  { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
  /* email is long and rarely tapped on mobile — the phone stays */
  .topbar-left .tb-item[href^="mailto"] { display: none; }
  .topbar-left .tb-item {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 600; letter-spacing: .01em;
  }
  .tb-soc { width: 26px; height: 26px; font-size: 13px; }

  /* ---- header row: brand | quote pill | burger ---- */
  .site-head,
  .site-head.is-sticky { position: sticky; top: 0; z-index: 210; }
  .head-inner {
    min-height: 62px; gap: 10px;
    display: flex; align-items: center; flex-wrap: nowrap;
  }
  .brand { margin-right: auto; }
  .head-actions { gap: 8px; margin-left: 0; }

  /* the CTA is hidden on mobile in theme.css — it is the main
     conversion point of a freight site, so bring it back, compact */
  .btn-cta {
    display: inline-flex !important;
    height: 36px; padding: 0 14px;
    font-size: 13px; font-weight: 700; letter-spacing: .01em;
  }

  .nav-burger {
    width: 40px; height: 40px; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(255, 255, 255, .09);
    padding: 0; gap: 5px;
  }
  .nav-burger span { width: 18px; }

  /* ---- slide-in panel ---- */
  .main-nav {
    width: min(340px, 90vw);
    padding: 0 0 24px;
    display: flex; flex-direction: column;
    background: var(--hd-bg);
  }
  .nav-panel-head {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .nav-panel-head .nav-panel-brand {
    color: var(--hd-text); font-family: var(--font-head);
    font-size: 17px; font-weight: 800; text-decoration: none;
  }
  .nav-close {
    position: static !important; width: 34px; height: 34px;
    display: grid !important; place-items: center; border-radius: 9px;
    background: rgba(255, 255, 255, .1); color: var(--hd-text); font-size: 16px;
  }
  .nav-list { padding: 10px 12px; }
  .nav-li > a {
    padding: 14px 14px; font-size: 15.5px; font-weight: 600;
    border-radius: 10px;
  }
  .nav-li > a:hover, .nav-li > a:focus { background: rgba(255, 255, 255, .07); }

  /* ---- action block at the bottom of the panel ---- */
  .nav-foot {
    display: flex !important;
    margin-top: auto; padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    flex-direction: column; gap: 10px;
  }
  .nav-foot__btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; border-radius: 12px; text-decoration: none;
    font-weight: 700; font-size: 14.5px; letter-spacing: .01em;
  }
  .nav-foot__btn--quote { background: var(--accent); color: #fff; }
  .nav-foot__btn--track {
    background: rgba(255, 255, 255, .1); color: var(--hd-text);
    border: 1px solid rgba(255, 255, 255, .18);
  }
  .nav-foot__btn--wa { background: #25d366; color: #06301a; }
  .nav-foot__meta {
    margin-top: 4px; color: var(--hd-text); opacity: .62;
    font-size: 12.5px; line-height: 1.85;
  }
  .nav-foot__meta a { color: inherit; text-decoration: none; display: block; }
  .nav-foot__meta strong { display: block; opacity: .8; font-weight: 600; }
}

@media (max-width: 420px) {
  .head-inner { min-height: 56px; }
  .btn-cta { padding: 0 11px; font-size: 12.5px; height: 34px; }
  .topbar-left .tb-item { font-size: 12px; }
}

/* the floating WhatsApp button must not sit on top of the mobile CTA */
@media (max-width: 640px) {
  .wa-float span { display: none; }
  .wa-float { width: 54px; height: 54px; justify-content: center; padding: 0; border-radius: 50%; }
}


/* ==================================================================
   5. SHRINKING HEADER
   Logo is 20% larger than the theme default; once the page is
   scrolled it drops back by 20% so the header takes less room.
   Driven by .is-scrolled, added in assets/js/header.js.
   ================================================================== */

.site-head {
  transition: box-shadow .22s ease, background-color .22s ease;
}
.head-inner {
  transition: min-height .22s ease;
}
.brand img,
.brand-text {
  transform-origin: left center;
  transition: height .22s ease, font-size .22s ease, transform .22s ease;
  will-change: height;
}

/* ---- resting size: theme default + 20% ---- */
.brand img        { height: 65px; }          /* 54 → 65 */
.brand-text       { font-size: 24px; }       /* 20 → 24 */
.head-inner       { min-height: 84px; }      /* 76 → 84 */

/* ---- scrolled: 20% smaller than the resting size ---- */
.site-head.is-scrolled .brand img  { height: 52px; }
.site-head.is-scrolled .brand-text { font-size: 19px; }
.site-head.is-scrolled .head-inner { min-height: 64px; }
.site-head.is-scrolled {
  box-shadow: 0 2px 14px rgba(8, 25, 43, .22);
}

/* The sticky header must stay ABOVE .nav-backdrop (z-index 190 in
   theme.css), otherwise the dark overlay of the mobile menu covers the
   menu itself and swallows every tap.
   Note the selector: it has to match .site-head.is-sticky specifically,
   because a (0,2,0) rule beats a (0,1,0) one even when the latter sits
   inside a media query — media queries do not add specificity. */
.site-head,
.site-head.is-sticky { z-index: 210; }

@media (max-width: 960px) {
  .brand img        { height: 53px; }        /* 44 → 53 */
  .brand-text       { font-size: 20px; }
  .head-inner       { min-height: 68px; }
  .site-head.is-scrolled .brand img  { height: 42px; }
  .site-head.is-scrolled .brand-text { font-size: 16px; }
  .site-head.is-scrolled .head-inner { min-height: 56px; }
}

@media (max-width: 420px) {
  .brand img        { height: 46px; }
  .brand-text       { font-size: 18px; }
  .head-inner       { min-height: 62px; }
  .site-head.is-scrolled .brand img  { height: 37px; }
  .site-head.is-scrolled .brand-text { font-size: 15px; }
  .site-head.is-scrolled .head-inner { min-height: 52px; }
}

/* respect the visitor's motion preference */
@media (prefers-reduced-motion: reduce) {
  .site-head, .head-inner, .brand img, .brand-text { transition: none; }
}


:root {
  /* the amber/secondary colour, whatever the admin set it to */
  --hl: var(--hd-hover, #F5A623);
}

/* ==================================================================
   6. HOMEPAGE — SERVICES
   The old strip used fixed-width cards (clamp 180–230px) inside a
   1200px container, so four cards left ~230px of dead space on each
   side. This is a grid that always fills the row.
   ================================================================== */

.home-band { padding: 76px 0 84px; }

.band-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 34px;
}
.band-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hl); margin-bottom: 10px;
}
.band-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--hl);
}
.home-band .band-title {
  margin: 0; text-align: left; opacity: 1;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.2;
}
.band-all {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--hd-text, #fff); text-decoration: none;
  font-size: 14px; font-weight: 600; padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 255, 255, .28); transition: .2s;
}
.band-all:hover { color: var(--hl); border-bottom-color: var(--hl); gap: 12px; }

.svc-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.svc-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg, 14px); overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none; isolation: isolate;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.svc-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--hl); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .09); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: rgba(0, 0, 0, .25); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 20, 36, 0) 45%, rgba(6, 20, 36, .78) 100%);
}
.svc-num {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(6, 20, 36, .62); color: var(--hl);
  backdrop-filter: blur(3px);
}

.svc-body { display: flex; flex-direction: column; gap: 9px; padding: 18px 18px 20px; flex: 1; }
.svc-title {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  line-height: 1.35; color: var(--hd-text, #fff);
}
.svc-text { font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .68); }
.svc-more {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--hl);
  transition: gap .2s ease;
}
.svc-card:hover .svc-more { gap: 11px; }

/* Between tablet and small laptop, auto-fit lands on 3 columns and the
   fourth service drops onto a row of its own. Two even columns look far
   better than 3 + 1 orphan. */
@media (max-width: 1100px) and (min-width: 641px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .home-band { padding: 52px 0 58px; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .svc-body { padding: 14px 14px 16px; gap: 7px; }
  .svc-title { font-size: 15px; }
  .svc-text { display: none; }
}
@media (max-width: 380px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-text { display: block; }
}


/* ==================================================================
   7. HOMEPAGE — ABOUT
   Was a bare title + paragraph + button across the full width.
   Now a two-column block with a side panel built from real data.
   ================================================================== */

.home-intro { padding: 84px 0; }

.home-intro.no-media .intro-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 52px; align-items: start;
}
.home-intro.no-media .intro-body { max-width: none; }

.intro-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue, #0B4F9C); margin-bottom: 12px;
}
.intro-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--hl); }

.intro-title { position: relative; padding-bottom: 18px; margin-bottom: 20px; }
.intro-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 58px; height: 3px; border-radius: 2px; background: var(--hl);
}
.intro-text { font-size: 16px; line-height: 2; color: var(--text-light, #46586E); }
.intro-text p { margin: 0 0 14px; }

.intro-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border-radius: 999px;
  border: 2px solid var(--blue, #0B4F9C); color: var(--blue, #0B4F9C);
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn-line:hover { background: var(--blue, #0B4F9C); color: #fff; transform: translateY(-2px); }

/* ---- side panel ---- */
.intro-panel { display: flex; flex-direction: column; gap: 16px; }
.ip-card {
  background: var(--bg-section, #F4F7FB);
  border: 1px solid var(--border, #DFE7F0);
  border-radius: var(--radius-lg, 14px);
  padding: 24px 24px 22px;
}
.ip-card--contact {
  background: linear-gradient(160deg, var(--blue-dark, #073A75), var(--blue, #0B4F9C));
  border-color: transparent; color: #fff;
}
.ip-title {
  margin: 0 0 14px; font-family: var(--font-head);
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: inherit;
}
.ip-card--contact .ip-title { color: #fff; opacity: .9; }

.ip-list { list-style: none; margin: 0; padding: 0; }
.ip-list li + li { border-top: 1px solid var(--border, #DFE7F0); }
.ip-list a {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  font-size: 15px; font-weight: 600; color: var(--text, #12202F);
  text-decoration: none; transition: color .18s, padding .18s;
}
.ip-list a::before {
  content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%;
  background: var(--hl);
}
.ip-list a:hover { color: var(--blue, #0B4F9C); padding-left: 6px; }

.ip-line {
  display: block; padding: 11px 0; text-decoration: none; color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.ip-line:first-of-type { border-top: 0; }
.ip-line--static { cursor: default; }
.ip-label {
  display: block; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; opacity: .62; margin-bottom: 3px;
}
.ip-line strong { font-size: 15px; font-weight: 600; line-height: 1.6; }
a.ip-line:hover strong { color: var(--hl); }

@media (max-width: 900px) {
  .home-intro { padding: 52px 0; }
  .home-intro.no-media .intro-grid { grid-template-columns: 1fr; gap: 30px; }
}


/* ==================================================================
   8. ABOUT SECTION — alignment corrections
   Found by measuring the rendered page, not by eye:

   a) theme.css gives .btn-solid a margin-top of 22px. Inside the new
      flex row that pushed the filled button 22px lower than the
      outlined one — the two buttons sat on different lines.
   b) .intro-text was text-align: justify. On a 632px column that
      stretches the word gaps and makes every line ragged.
   c) The list rows measured 50 / 51 / 51 / 51px, because the 1px
      separator was a real border and added to the row height. The
      separator is now painted absolutely, so every row is identical.
   ================================================================== */

/* a) both buttons on one line, same box */
.intro-actions { align-items: center; }
.intro-actions .btn-solid,
.intro-actions .btn-line {
  margin: 0; height: 46px; box-sizing: border-box;
  line-height: 1; flex: 0 0 auto;
}

/* b) justified text creates rivers of white space in a narrow column */
.intro-text { text-align: left; }
.intro-text > *:last-child { margin-bottom: 0; }

/* c) identical row height everywhere in the panel */
.ip-card { padding: 24px; }

/* the earlier rule is `.ip-list li + li` (specificity 0,1,2) — a plain
   `.ip-list li` reset (0,1,1) loses to it, so match it exactly. */
.ip-list li,
.ip-list li + li { border-top: 0; }
.ip-list a { position: relative; padding: 14px 0; min-height: 0; }
/* The separator uses ::after — ::before is already the bullet dot on
   these links, and one element only gets one ::before. */
.ip-list li + li a::after,
.ip-line + .ip-line::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--border, #DFE7F0);
}

.ip-card--contact .ip-line { position: relative; border-top: 0; padding: 13px 0; }
.ip-card--contact .ip-line + .ip-line::after { background: rgba(255, 255, 255, .18); }
/* No first/last exceptions: every row keeps the same padding, so the
   rhythm is identical top to bottom. (`.ip-list a:first-child` would have
   matched EVERY row anyway — the <a> is the only child of its <li>.) */
