/*
 * Custom footer layout (landing doc root.props.footerLayout === 'custom').
 * Runtime-linked by <Footer> ONLY for projects whose doc selects it, so every
 * other project fetches zero bytes and nothing here can leak.
 *
 * Geometry is the COMPUTED layout of estrentals.com.au's footer (read off the
 * live site at 1440 and 430 wide, 2026-08-28), written in px: shell 1440 max
 * with 24px gutters, main 35/28 padding, a 130px logo 140px clear of a 526px
 * address column, 132x42 action pills, and a bottom link row indented 270px so
 * it lines up under that column; mobile (<=1023px) stacks the lot with 58px
 * main padding and an 84px logo.
 *
 * Every colour reads a `--ft-*` var that CustomFooter.tsx emits inline only when
 * the author set it, so an unset colour falls back to the Est value here.
 * Specificity: element resets are `.ft a` / `.ft p` (0,1,1); component rules are
 * `.ft .ft-*` (0,2,0) so they out-rank them and globals.css.
 */
footer.ft {
  background: var(--ft-bg, #350305);
  color: var(--ft-text, #fff);
  font-family: var(--ls-body-font, inherit);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}
/* Est resets font smoothing to the platform default, so its footer text renders
   with subpixel AA — noticeably heavier on macOS than the site body's
   `antialiased`. Match it, or the same font file draws visibly thinner. */
.ft, .ft * { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
.ft a { color: inherit; text-decoration: none; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft p, .ft h2 { margin: 0; }

.ft .ft-shell { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.ft .ft-main { max-width: 1368px; padding: 35px 0 28px; }

/* Top row — content column left, action pills right. */
.ft .ft-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 100px; }
.ft .ft-content { display: flex; align-items: flex-start; min-width: 0; }
/* Est: a block anchor holding an inline-block image; the 140px right margin on
   the IMAGE is what sets the 270px gutter the address column and the bottom link
   row both start after. */
.ft .ft-logo { flex: 0 0 auto; display: block; }
.ft .ft-logo img { display: block; width: 130px; height: auto; margin: 5px 140px 0 0; }
.ft .ft-address { flex: 0 1 auto; max-width: 526px; font-size: 16px; line-height: 1.4; }
.ft .ft-phone, .ft .ft-email { line-height: 20px; margin: 0; }
.ft .ft-phone { font-size: 20px; font-weight: 300; }
.ft .ft-phone a, .ft .ft-email a { display: inline-block; margin-bottom: 6px; }
.ft .ft-phone a { line-height: 20px; }
/* The email closes the contact block: 28px of air before the acknowledgement. */
.ft .ft-email { font-size: 16px; font-weight: 400; margin-bottom: 28px; }
.ft .ft-email a { line-height: 16px; vertical-align: top; margin-top: 4px; }
.ft .ft-address a:hover { text-decoration: underline; }
/* Weight-500/700 elements use the HEADING face: custom fonts are one file per
   name, so the medium/bold cut lives under the heading token while the body
   token carries the light/regular cut. */
.ft .ft-headline { font-family: var(--ls-heading-font, var(--ls-body-font, inherit)); font-size: 20px; line-height: 28px; font-weight: 700; margin: 0 0 28px; }
.ft .ft-body { font-size: 20px; line-height: 28px; font-weight: 300; letter-spacing: normal; margin-bottom: 28px; }
.ft .ft-body:last-child { margin-bottom: 0; }
/* Est's address ends with an empty paragraph (26px + its 28px margin). */
.ft .ft-address { padding-bottom: 54px; }

/* Action pills — Est's footer buttons measure 132x42 with this copy, so the
   width is a MINIMUM (longer labels grow past it on the 20px padding) and the
   height comes from the 12px padding on a 16px line box. */
.ft .ft-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ft .ft-pill {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-width: 132px; padding: 12px 20px; border-radius: 65px;
  font-family: var(--ls-heading-font, var(--ls-body-font, inherit));
  font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -.64px; white-space: nowrap;
  background: var(--ft-pill-bg, #f3f2f0); color: var(--ft-pill-text, #1e1f21);
  border: 1px solid var(--ft-pill-bg, #f3f2f0);
  transition: background-color .4s, color .4s, border-color .4s;
}
.ft .ft-pill--outline { background: transparent; color: var(--ft-outline, #f3f2f0); border-color: var(--ft-outline, #f3f2f0); }
.ft .ft-pill:hover { background: var(--ft-outline, #f3f2f0); color: var(--ft-pill-text, #1e1f21); border-color: var(--ft-outline, #f3f2f0); }

/* Bottom link rows — indented by the logo gutter so they line up under the
   address column. */
.ft .ft-bottom { display: flex; align-items: flex-start; justify-content: space-between; padding-left: 270px; }
.ft .ft-links { display: flex; flex-wrap: wrap; align-items: center; font-size: 16px; line-height: 1.4; font-weight: 300; }
.ft .ft-links li { padding: 0 18px; margin-bottom: 10px; }
.ft .ft-links li:first-child { padding-left: 0; }
.ft .ft-links li:last-child { padding-right: 0; }
.ft .ft-links a:hover { text-decoration: underline; }

.ft .ft-copyright { margin-top: 24px; font-size: 14px; opacity: .6; }

@media (max-width: 1023px) {
  .ft .ft-main { padding: 58px 0; }
  .ft .ft-top { display: block; margin-bottom: 54px; }
  .ft .ft-content { display: block; }
  .ft .ft-logo img { width: 84px; margin: 5px 0 26px; }
  .ft .ft-address { max-width: none; margin-bottom: 48px; }
  .ft .ft-actions { margin-bottom: 45px; flex-wrap: wrap; }
  /* Est stacks the two lists 100px apart measured start-to-start; with each row
     11px tall-plus-gap that reads as 24px of air between the lists. */
  .ft .ft-bottom { display: block; padding-left: 0; }
  .ft .ft-links { display: block; }
  .ft .ft-links li { padding: 0; margin-bottom: 11px; }
  .ft .ft-links li:last-child { margin-bottom: 0; }
  .ft .ft-links--primary + .ft-links--secondary { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ft .ft-pill { transition: none; }
}
