/* Part p-guides: the Inherited Farmland and For Attorneys, Lenders, Trust Officers, and CPAs pages, as p-guides.php
   prints them. The gl-pg classes exist only on those pages, and the body carries gl-pg-page. The look follows Our History
   and About Us (l-history.css, n-about.css): headings in a rail, hairline rules, navy ink, no boxes or shadows. Until
   these pages get a kind in gl_page_kinds(), every part's stylesheet loads on them, so the rules carry #main and the
   body class to stay ahead of other parts' broad rules. */

.gl-pg { margin: 4px 0 32px; }
.gl-pg-sec + .gl-pg-sec { margin-top: 72px; }
#main .gl-pg .gl-pg-head h2 { margin: 0 0 16px; font-size: 1.625rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
#main .gl-pg .gl-pg-body > :first-child { margin-top: 0; }
#main .gl-pg .gl-pg-body > :last-child { margin-bottom: 0; }
/* 36em keeps a line of text under about 80 characters. */
/* About 68 characters a line, the same measure as Our History and Careers. */
#main .gl-pg p { max-width: 35em; margin: 0 0 18px; font-size: 17px; line-height: 1.65; color: var(--gl-ink); }
#main .gl-pg p.gl-pg-lede { font-size: 19px; line-height: 1.6; }
.gl-pg :is(p, li, h2, h3) { text-wrap: pretty; }
/* Links in the text keep the site's underline. */
#main .gl-pg-body p a:not(.gl-pg-btn, .gl-pg-more, .gl-pg-go-link) { color: var(--gl-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
#main .gl-pg .gl-pg-head h2 a.gl-pg-h-tel { color: var(--gl-navy); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; font-variant-numeric: tabular-nums lining-nums; }

/* Wording that Growthland hasn't approved, on the review copy only. */
#main .gl-pg p.gl-draft-note { max-width: none; margin: 0 0 32px; padding: 10px 14px; border: 1px dashed var(--gl-field); border-radius: var(--gl-radius); background: var(--gl-wash); font-size: 14px; line-height: 1.5; color: var(--gl-muted); }

/* 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-pg-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: start; }
  .gl-pg-body { grid-column: 2; }
  #main .gl-pg .gl-pg-head h2 { max-width: 13em; margin: 0; }
}

/* Group headings inside a section, such as "Purposes". */
#main .gl-pg h3 { text-transform: none; letter-spacing: 0; }
#main .gl-pg h3.gl-pg-sub { margin: 32px 0 10px; font-size: 1.125rem; line-height: 1.35; color: var(--gl-ink); }

/* First steps: numbered in navy in a rail, as Our History sets its years, with a hairline between steps. */
#main .gl-pg .gl-pg-steps { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--gl-rule); }
#main .gl-pg .gl-pg-step { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 16px; margin: 0; padding: 20px 0 6px; border-top: 1px solid var(--gl-rule); }
.gl-pg-num { font-size: 1.375rem; font-weight: 600; line-height: 28px; color: var(--gl-navy); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
#main .gl-pg h3.gl-pg-step-title, #main .gl-pg h3.gl-pg-row-title { margin: 0 0 8px; font-size: 1.1875rem; line-height: 28px; color: var(--gl-ink); }
#main .gl-pg .gl-pg-step-text p { margin-bottom: 14px; }

/* Choices and situations: ruled rows, each with a 26 px Lucide icon, white in a 48 px navy square, as the home page's
   Our Services shows them (the wash square vanished on Adam's screen, 11/4). */
#main .gl-pg .gl-pg-rows { margin: 0 0 24px; padding: 0; list-style: none; border-bottom: 1px solid var(--gl-rule); }
#main .gl-pg .gl-pg-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; margin: 0; padding: 22px 0 8px; border-top: 1px solid var(--gl-rule); }
.gl-pg-mark { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 48px; height: 48px; border: 0; border-radius: var(--gl-radius); background: var(--gl-navy); color: #fff; }
.gl-pg-mark .gl-i { width: 26px; height: 26px; }
#main .gl-pg .gl-pg-row-title { padding-top: 10px; }
#main .gl-pg .gl-pg-row-text p { margin-bottom: 14px; }
#main .gl-pg p.gl-pg-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
/* Each link is a 44 px tap. */
#main .gl-pg a.gl-pg-more { display: inline-block; padding-block: 10px; line-height: 24px; color: var(--gl-navy); font-weight: 600; text-decoration: none; }
.gl-pg-end { white-space: nowrap; }
.gl-pg-more .gl-i { width: 18px; height: 18px; margin-left: 8px; vertical-align: -3px; transition: transform var(--gl-fast); }

/* Plain lists, such as the purposes of an appraisal: a ruled grid, two across where they fit, as on Our History. */
#main .gl-pg .gl-pg-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); column-gap: 40px; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--gl-rule); list-style: none; }
#main .gl-pg .gl-pg-facts > li { margin: 0; padding: 12px 0 13px; border-top: 1px solid var(--gl-rule); font-size: 17px; line-height: 1.5; color: var(--gl-ink); }

/* Buttons: the site's navy button with an arrow, and an outlined one beside it. */
#main .gl-pg p.gl-pg-cta { display: flex; flex-wrap: wrap; gap: 12px 16px; max-width: none; margin: 28px 0 0; }
#main .gl-pg a.gl-pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--gl-navy); border-radius: var(--gl-radius); background: var(--gl-navy); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; font-variant-numeric: tabular-nums lining-nums; transition: background-color var(--gl-fast); }
#main .gl-pg a.gl-pg-btn--line { background: #fff; color: var(--gl-navy); }
.gl-pg-btn .gl-i { transition: transform var(--gl-fast); }

/* Offices: ruled rows, two across where they fit. The town opens Contact Us; the number places the call. */
#main .gl-pg .gl-pg-offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); column-gap: 40px; margin: 24px 0 0; padding: 0; border-bottom: 1px solid var(--gl-rule); list-style: none; }
#main .gl-pg .gl-pg-office { margin: 0; padding: 16px 0 10px; border-top: 1px solid var(--gl-rule); }
.gl-pg-office-name { display: flex; gap: 12px; font-size: 17px; line-height: 1.5; }
.gl-pg-office-name > .gl-i { margin-top: 3px; color: var(--gl-navy); }
.gl-pg-office-name > span { display: grid; }
#main .gl-pg .gl-pg-office-name a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; justify-self: start; color: var(--gl-navy); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.gl-pg-addr { font-size: 15px; line-height: 1.5; color: var(--gl-muted); }
#main .gl-pg a.gl-pg-call { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--gl-navy); font-size: 17px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; font-variant-numeric: tabular-nums lining-nums; }

/* Read next: ruled rows with an icon and an arrow. The row takes the click. */
#main .gl-pg .gl-pg-go { max-width: 39em; margin: 0; border-bottom: 1px solid var(--gl-rule); }
#main .gl-pg p.gl-pg-go-row { position: relative; display: flex; align-items: flex-start; gap: 14px; max-width: none; margin: 0; padding: 14px 4px 14px 0; border-top: 1px solid var(--gl-rule); }
.gl-pg-go-mark { flex: none; width: 20px; height: 28px; padding-top: 4px; color: var(--gl-navy); }
.gl-pg-go-text { flex: 1 1 auto; min-width: 0; }
.gl-pg-go-row > .gl-i { margin-top: 4px; color: var(--gl-navy); transition: transform var(--gl-fast); }
#main .gl-pg a.gl-pg-go-link { color: var(--gl-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.gl-pg-go-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--gl-radius); }
#main .gl-pg a.gl-pg-go-link:focus-visible { outline: 0; }
#main .gl-pg a.gl-pg-go-link:focus-visible::after { outline: 3px solid #5b7bd5; outline-offset: 2px; }

@media (hover: hover) {
  #main .gl-pg a.gl-pg-more:hover > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .gl-pg-more:hover .gl-i, .gl-pg-go-row:hover > .gl-i, .gl-pg-btn:hover .gl-i:last-child { transform: translateX(3px); }
  .gl-pg-go-row:hover .gl-pg-go-link { text-decoration-thickness: 2px; }
  #main .gl-pg a.gl-pg-btn:hover { background: var(--gl-navy-hover); color: #fff; }
  #main .gl-pg a.gl-pg-btn--line:hover { background: var(--gl-wash); color: var(--gl-navy); }
  .gl-pg-btn--line:hover .gl-i:last-child { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-pg-more .gl-i, .gl-pg-go-row > .gl-i, #main .gl-pg a.gl-pg-btn, .gl-pg-btn .gl-i { transition: none; }
  .gl-pg-more:hover .gl-i, .gl-pg-go-row:hover > .gl-i, .gl-pg-btn:hover .gl-i:last-child { transform: none; }
}

@media (max-width: 849px) {
  .gl-pg-sec + .gl-pg-sec { margin-top: 44px; }
  #main .gl-pg .gl-pg-head h2 { font-size: 1.5rem; }
}
@media (max-width: 549px) {
  #main .gl-pg p.gl-pg-lede { font-size: 18px; }
  #main .gl-pg .gl-pg-row { column-gap: 14px; }
  #main .gl-pg .gl-pg-step { grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: 12px; }
  #main .gl-pg a.gl-pg-btn { display: flex; width: 100%; }
  /* The number in the heading is a 44 px tap without moving the heading's lines. */
  #main .gl-pg .gl-pg-head h2 a.gl-pg-h-tel { display: inline-block; padding-block: 8px; margin-block: -8px; }
}

@media print {
  .gl-pg-sec + .gl-pg-sec { margin-top: 24pt; }
  .gl-pg-step, .gl-pg-row, .gl-pg-office { break-inside: avoid; }
  #main .gl-pg p.gl-draft-note { display: none; }
}
