/* Tablet portrait, the footer: round 2A of the tablet-portrait polish.
   Owner instruction of 2026-11-02 (docs/rulings/2026-11-02_ruling-tablet-portrait-footer-r2a.txt).
   Linked from the twelve pages that carry the footer (Home, Buy, Sell, Sold, About, Areas, Videos, Contact, Privacy,
   Terms, Cookie Policy, Thank-you), last among each page's stylesheets, with the upright-tablet test as its media.
   Every rule stands inside the site's own upright-tablet test, the one tablet.css uses:
     (min-width: 720px) and (orientation: portrait) and (pointer: coarse)
   so a phone, a tablet on its side and any window on a desk keep exactly what they had. Every selector begins with
   .site-footer, so nothing above the footer can change. Only spacing, the link grid and the size of the touch
   targets change; no copy, colour, font, link, wordmark, hairline or motion. Round 1's footer rules for the six inner
   pages (tablet-portrait.css, section 4) stay as approved; sections 1 and 6 below repeat their values for all twelve
   pages. */

/* 1. Space above the name: the desktop's largest step to the next (space-6 to space-5), as approved in round 1. */
@media (min-width: 720px) and (orientation: portrait) and (pointer: coarse) {
  .site-footer {
    padding-top: var(--space-5);
  }
}

/* 2. Touch targets: every link in the footer, and the Cookie Settings button, at least 44 by 44 px on every upright
   tablet. Below 960 px footer.css already gives them 44 px of height; at 960 px and wider (the 12.9-inch iPad held
   upright) the page, social and legal links and the button were 36 px tall, and the shortest names narrower than
   44 px. The text keeps its place at the start of each box. */
@media (min-width: 720px) and (orientation: portrait) and (pointer: coarse) {
  .site-footer .site-footer__group a,
  .site-footer .site-footer__legal a,
  .site-footer .site-footer__legal .site-footer__cookie-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* 3. The link rows: the page and social links stand edge to edge, each a full 44 px target, without the 2.4 px
   step between them. */
@media (min-width: 720px) and (orientation: portrait) and (pointer: coarse) {
  .site-footer .site-footer__groups > .site-footer__group li + li {
    margin-top: 0;
  }
}

/* 4. Phone and email: the October 16 tightening pulled the email's 44 px target 5.6 px over the phone's. Here the two
   targets meet edge to edge and no longer overlap. The brokerage lines below them keep their own rhythm. */
@media (min-width: 720px) and (orientation: portrait) and (pointer: coarse) {
  .site-footer .site-footer__stack > .site-footer__group--plain:not(.site-footer__professional) li + li {
    margin-top: 0;
  }
}

/* 5. The space between the links and the hairline: space-5 to space-4, the footer's other inner step. */
@media (min-width: 720px) and (orientation: portrait) and (pointer: coarse) {
  .site-footer .site-footer__close {
    margin-top: var(--space-4);
  }
}

/* 6. Upright tablets narrower than 960 px. The links stand in three columns, as one row (round 1's arrangement, now
   on every page). The seven page links stand in two short columns, Buy to About and then Areas to Contact, so the
   page links take four rows, as the social links do; the phone and email above the brokerage lines then fill the
   same four rows (space-2 between them, not space-3), so the three columns end level, the brokerage's last line
   with the last page and social links, as it stood before. The sentence takes a wider measure and reads in three
   lines instead of four. The legal links and the copyright share one line, as they do at 960 px and wider. */
@media (min-width: 720px) and (orientation: portrait) and (pointer: coarse) and (max-width: 959px) {
  .site-footer .site-footer__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer .site-footer__stack {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-2);
  }
  .site-footer .site-footer__groups > nav > ul {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    column-gap: var(--space-3);
    justify-content: start;
  }
  .site-footer .site-footer__sentence {
    max-width: 34ch;
  }
  .site-footer .site-footer__close {
    flex-direction: row;
    align-items: center;
  }
}
