/* Part l-history: the Our History page (page 18139), as l-history.php lays out its text. The gl-hx classes exist only
   on that page. The style follows DESIGN.md: navy ink on white, hairline rules, figures in tabular digits, no boxes. */

.gl-hx { --gl-hx-rail: 5.25rem; --gl-hx-line: calc(var(--gl-hx-rail) + 22px); margin: 4px 0 32px; }
.gl-hx-sec + .gl-hx-sec { margin-top: 72px; }
.gl-hx .gl-hx-head h2 { margin: 0 0 16px; font-size: 1.625rem; line-height: 1.25; }
.gl-hx-body > :first-child { margin-top: 0; }
.gl-hx-body > :last-child { margin-bottom: 0; }
/* About 68 characters a line, the same measure as Careers and the guides. 40em let a line run to 74. */
.gl-hx-body p { max-width: 35em; margin: 0 0 18px; font-size: 17px; line-height: 1.65; color: var(--gl-ink); }
/* No paragraph, fact, or entry ends on one word alone. */
.gl-hx :is(p, li, .gl-hx-what) { text-wrap: pretty; }
/* The opening paragraphs, and the paragraph that follows the timeline, read a size up. */
.gl-hx-sec:first-child .gl-hx-body > p,
.gl-hx-body .gl-hx-tl + p { font-size: 18px; line-height: 1.65; }
/* Links in the text keep the site's underline. They get no tap padding: inside a sentence they're exempt from the
   44 px rule, and padded boxes on neighboring lines overlapped, so a tap on "Our Team" could start a phone call. */
/* The phone link that l-history.php adds looks like the page's other links. */
.gl-hx-body a.gl-hx-tel { white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* Wide screens: each section's heading sits in a narrow column beside its text, on the listing page's 4 and 8 grid. */
@media (min-width: 1000px) {
  .gl-hx-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: start; }
  .gl-hx-body { grid-column: 2; }
  .gl-hx .gl-hx-head h2 { max-width: 13em; margin: 0; }
}

/* Growthland by the numbers: the facts in a ruled grid, two across where they fit, with each figure in navy. */
.gl-hx .gl-hx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); column-gap: 40px; margin: 0; padding: 0; border-bottom: 1px solid var(--gl-rule); list-style: none; }
/* The theme indents list items 1.3em. */
.gl-hx .gl-hx-facts > li { margin: 0; padding: 14px 0 16px; border-top: 1px solid var(--gl-rule); font-size: 17px; line-height: 1.55; color: var(--gl-ink); }
.gl-hx-fig { font-weight: 600; color: var(--gl-navy); font-variant-numeric: tabular-nums lining-nums; }

/* Our Story: a timeline. The years sit in a rail on the left in tabular digits, and a hairline joins a small open
   square at each year, as a plat marks a survey corner. The last entry's square is filled. */
.gl-hx .gl-hx-tl { margin: 0 0 44px; padding: 0; list-style: none; }
.gl-hx .gl-hx-tl > .gl-hx-ev { position: relative; display: grid; grid-template-columns: var(--gl-hx-rail) minmax(0, 1fr); column-gap: 44px; margin: 0; padding: 0 0 26px; }
.gl-hx .gl-hx-tl > .gl-hx-ev:last-child { padding-bottom: 0; }
/* The line runs from this year's square to the next one's. */
.gl-hx-ev::before { content: ""; position: absolute; top: 14px; bottom: -14px; left: var(--gl-hx-line); width: 1px; background: var(--gl-rule); }
.gl-hx-ev:last-child::before { content: none; }
.gl-hx-ev::after { content: ""; position: absolute; top: 9px; left: calc(var(--gl-hx-line) - 5px); box-sizing: border-box; width: 11px; height: 11px; border: 2px solid var(--gl-navy); border-radius: 1px; background: #fff; }
.gl-hx-ev:last-child::after { background: var(--gl-navy); }
.gl-hx-yr { font-size: 1.375rem; font-weight: 600; line-height: 28px; color: var(--gl-navy); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.gl-hx-what { max-width: 40em; font-size: 17px; line-height: 28px; color: var(--gl-ink); }

@media (max-width: 849px) {
  .gl-hx-sec + .gl-hx-sec { margin-top: 44px; }
  .gl-hx .gl-hx-head h2 { font-size: 1.5rem; }
}
/* Phones: the year becomes a label above each entry, and the line runs down the left edge. */
@media (max-width: 549px) {
  .gl-hx { --gl-hx-line: 5px; }
  .gl-hx .gl-hx-tl > .gl-hx-ev { grid-template-columns: minmax(0, 1fr); padding: 0 0 22px 28px; }
  .gl-hx .gl-hx-tl > .gl-hx-ev:last-child { padding-bottom: 0; }
  .gl-hx-yr { margin-bottom: 2px; font-size: 1.25rem; text-align: left; }
}

@media print {
  .gl-hx-sec + .gl-hx-sec { margin-top: 24pt; }
  .gl-hx-ev { break-inside: avoid; }
}

/* Each sentence of a two-sentence heading stays together, so a narrow screen breaks between them. */
.gl-hx .gl-hx-head .gl-hx-s { display: inline-block; }

/* ---------- More to look at (Adam, 11/4: "this page still looks very boring") ----------
   The opening gets the Marion office photo under its heading, a drawing of the four legacy firms joining into one name
   follows it, the numbers sit on the page's one deep navy band, and the timeline marks its milestones in gold. */
.gl-hx { --gl-hx-gold: var(--gl-accent, #c8952b); --gl-hx-gold-ink: var(--gl-accent-strong, #9a6f14); --gl-hx-gap: 88px; }
.gl-hx-sec + .gl-hx-sec, .gl-hx-roots + .gl-hx-sec { margin-top: var(--gl-hx-gap); }

/* The opening: a larger heading, and the photo under it in the left column. */
.gl-hx .gl-hx-sec--lead .gl-hx-head h2 { font-size: 2rem; line-height: 1.2; }
.gl-hx-photo { margin: 28px 0 0; }
.gl-hx-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gl-radius); }

/* The four roots: each firm's year, name, and town, with a line down from each that joins one rule, and one line from
   there down to the Growthland mark. --gl-hx-c is the first and last columns' centers, so the joining rule ends at them. */
.gl-hx-roots { --gl-hx-cols: 4; --gl-hx-cg: 24px; --gl-hx-c: calc((100% - (var(--gl-hx-cols) - 1) * var(--gl-hx-cg)) / var(--gl-hx-cols) / 2); margin: var(--gl-hx-gap) 0 0; padding: 40px 0 0; border-top: 1px solid var(--gl-navy); }
.gl-hx .gl-hx-roots-list { position: relative; display: grid; grid-template-columns: repeat(var(--gl-hx-cols), minmax(0, 1fr)); column-gap: var(--gl-hx-cg); row-gap: 40px; margin: 0; padding: 0 0 36px; list-style: none; }
.gl-hx-roots-list::after { content: ""; position: absolute; right: var(--gl-hx-c); bottom: 0; left: var(--gl-hx-c); height: 2px; background: var(--gl-navy); }
.gl-hx .gl-hx-roots-list > .gl-hx-root { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0 0 36px; text-align: center; }
.gl-hx-root::after { content: ""; position: absolute; bottom: -36px; left: 50%; width: 2px; height: 72px; margin-left: -1px; background: var(--gl-navy); }
.gl-hx-root-yr { color: var(--gl-hx-gold-ink); font-size: 2.25rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.gl-hx-root-name { max-width: 14em; margin-top: 8px; color: var(--gl-navy); font-size: 17px; font-weight: 600; line-height: 1.35; }
.gl-hx-root-town { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--gl-ink); font-size: 15px; }
.gl-hx-root-pin { width: 16px; height: 16px; color: var(--gl-navy); }
.gl-hx-one { position: relative; display: flex; justify-content: center; padding-top: 36px; }
.gl-hx-one::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 36px; margin-left: -1px; background: var(--gl-navy); }
.gl-hx-one-mark { display: inline-flex; align-items: baseline; gap: 14px; padding: 14px 28px; border-radius: var(--gl-radius); background: var(--gl-navy); color: #fff; }
.gl-hx-one-name { font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.gl-hx-one-yr { color: var(--gl-hx-gold); font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 699px) {
  .gl-hx-roots { --gl-hx-cols: 2; }
  /* Two rows of two: the top row's lines run down past the second row to the joining rule, behind its text. */
  .gl-hx .gl-hx-roots-list > .gl-hx-root:nth-child(-n + 2)::after { content: none; }
  .gl-hx-root-yr { font-size: 1.875rem; }
}

/* Growthland by the Numbers on the deep navy band, full width, with the figures in gold. The band reaches the window's
   edges with a shadow the clip trims to its own height, as on About Us, so the page never scrolls sideways. */
.gl-hx-sec--band { padding-block: 64px; background: var(--gl-navy-deep); box-shadow: 0 0 0 100vmax var(--gl-navy-deep); clip-path: inset(0 -100vmax); }
.gl-hx .gl-hx-sec--band .gl-hx-head h2 { color: #fff; }
.gl-hx .gl-hx-sec--band .gl-hx-facts { border-bottom-color: rgba(255, 255, 255, .3); }
.gl-hx .gl-hx-sec--band .gl-hx-facts > li { border-top-color: rgba(255, 255, 255, .3); color: #fff; }
.gl-hx-sec--band .gl-hx-fig { color: var(--gl-hx-gold); font-size: 1.25em; font-weight: 700; }

/* The timeline: larger years, a darker line, and gold squares on the milestones and the last row. */
.gl-hx-yr { font-size: 1.5rem; }
.gl-hx-ev::before { width: 2px; background: rgba(24, 42, 97, .35); }
.gl-hx-ev--key::after, .gl-hx-ev:last-child::after { border-color: var(--gl-hx-gold-ink); background: var(--gl-hx-gold); transform: scale(1.3); }
.gl-hx-ev--key .gl-hx-yr, .gl-hx-ev:last-child .gl-hx-yr { color: var(--gl-hx-gold-ink); }
.gl-hx-ev:last-child .gl-hx-what { color: var(--gl-navy); font-size: 18px; font-weight: 600; }

@media (max-width: 999px) {
  .gl-hx { --gl-hx-gap: 64px; }
  .gl-hx-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 549px) {
  .gl-hx { --gl-hx-gap: 48px; }
  .gl-hx .gl-hx-sec--lead .gl-hx-head h2 { font-size: 1.625rem; }
  .gl-hx-sec--band { padding-block: 44px; }
  .gl-hx-one-name { font-size: 1.25rem; }
}
@media print {
  .gl-hx-sec--band { padding-block: 0; background: none; box-shadow: none; clip-path: none; }
  .gl-hx .gl-hx-sec--band :is(h2, li), .gl-hx-sec--band .gl-hx-fig { color: var(--gl-ink); }
}

/* The full-width navy band read as the footer, so the page seemed to end there (Adam, 11/4). The numbers sit in a navy
   panel inside the page's margins instead; the white on both sides shows the page goes on, and the footer stays the
   only full-width navy. */
.gl-hx-sec--band { padding: 56px; border-radius: var(--gl-radius); box-shadow: none; clip-path: none; }
@media (max-width: 849px) { .gl-hx-sec--band { padding: 40px 32px; } }
@media (max-width: 549px) { .gl-hx-sec--band { padding: 32px 20px; } }

/* ---------- 11/4 /ui review ("do all") ---------- */

/* Our Story's heading stays in view beside the timeline, under the stuck header, instead of leaving an empty column. */
@media (min-width: 1000px) {
  .gl-hx-sec--story .gl-hx-head { position: sticky; top: calc(var(--gl-sticky-top, 70px) + 32px); }
}

/* The numbers panel: the heading across the top, the six facts three across, so no row holds one fact alone. */
.gl-hx .gl-hx-sec--band { display: block; }
.gl-hx .gl-hx-sec--band .gl-hx-head h2 { max-width: none; margin: 0 0 28px; }
.gl-hx .gl-hx-sec--band .gl-hx-body { grid-column: auto; }
@media (min-width: 1000px) {
  .gl-hx .gl-hx-sec--band .gl-hx-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Era breaks in the timeline: a navy name in the text column with a rule above, and space around it. The line keeps
   running through, so the timeline still reads as one. */
.gl-hx .gl-hx-tl > .gl-hx-era { position: relative; display: grid; grid-template-columns: var(--gl-hx-rail) minmax(0, 1fr); column-gap: 44px; margin: 0; padding: 12px 0 22px; }
.gl-hx .gl-hx-tl > .gl-hx-era:first-child { padding-top: 0; }
.gl-hx-era::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--gl-hx-line); width: 2px; background: rgba(24, 42, 97, .35); }
.gl-hx-era:first-child::before { top: 14px; }
.gl-hx-era-name { grid-column: 2; padding-top: 10px; border-top: 1px solid var(--gl-navy); color: var(--gl-navy); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

/* The closing links as ruled onward rows, as on About Us: icon square, the link and its line, and an arrow. */
.gl-hx .gl-hx-go { max-width: 36em; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--gl-navy); list-style: none; }
.gl-hx .gl-hx-go > .gl-hx-go-row { position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px 4px 16px 0; border-bottom: 1px solid rgba(24, 42, 97, .3); }
.gl-hx .gl-hx-go > .gl-hx-go-row:last-child { border-bottom: 0; }
.gl-hx-go-mark { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--gl-radius); background: var(--gl-navy); color: #fff; }
.gl-hx-go-i { width: 22px; height: 22px; }
.gl-hx-go-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.gl-hx-body a.gl-hx-go-link { color: var(--gl-navy); font-size: 17px; font-weight: 600; text-decoration: none; }
.gl-hx-go-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--gl-radius); }
.gl-hx-go-link:focus-visible { outline: 0; }
.gl-hx-go-link:focus-visible::after { outline: 3px solid #5b7bd5; outline-offset: 2px; }
.gl-hx-go-note { color: var(--gl-ink); font-size: 15px; line-height: 1.4; }
.gl-hx-go-arrow { flex: none; width: 20px; height: 20px; color: var(--gl-navy); transition: transform var(--gl-fast); }
@media (hover: hover) {
  .gl-hx-go-row:hover .gl-hx-go-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .gl-hx-go-row:hover .gl-hx-go-arrow { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .gl-hx-go-arrow { transition: none; } .gl-hx-go-row:hover .gl-hx-go-arrow { transform: none; } }

/* Phones: the roots drawing moves up between the opening's two paragraphs, so the first screens aren't one long block
   of text. The opening section and its body step aside (display: contents) so their pieces can take an order. */
@media (max-width: 599px) {
  .gl-hx { display: flex; flex-direction: column; }
  .gl-hx > * { order: 5; }
  .gl-hx > .gl-hx-sec--lead, .gl-hx-sec--lead > .gl-hx-body { display: contents; }
  .gl-hx-sec--lead > .gl-hx-head { order: 1; margin-bottom: 20px; }
  .gl-hx-sec--lead > .gl-hx-body > * { order: 4; }
  .gl-hx-sec--lead > .gl-hx-body > :first-child { order: 2; }
  .gl-hx > .gl-hx-roots { order: 3; margin: 16px 0 40px; }
  .gl-hx-sec--lead > .gl-hx-body > :last-child { margin-bottom: 0; }
}

/* ---------- The page's ending (CTA review, 11/4) ----------
   The Get Started rows (gl_a_next_steps, styled in a-global.css) close the page under the About Us and Our Team rows,
   in the text column. They sit closer to those rows than a new section would, since they finish the same thought. */
.gl-hx > .gl-hx-sec--next { margin-top: 28px; }
/* One column at the onward rows' width: two columns in the text column wrapped every label onto two lines. */
.gl-hx .gl-hx-next { max-width: 36em; }
.gl-hx .gl-hx-next .gl-a-next-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
@media print { .gl-hx > .gl-hx-sec--next { display: none; } }

/* 11/11 page review: on phones the era names kept the desktop's year column and sat pushed to the right. They start
   where the years do, at the line's indent. */
@media (max-width: 549px) {
  .gl-hx .gl-hx-tl > .gl-hx-era { grid-template-columns: minmax(0, 1fr); padding: 12px 0 22px 28px; }
  .gl-hx .gl-hx-tl > .gl-hx-era:first-child { padding-top: 0; }
  .gl-hx-era-name { grid-column: 1; }
}
