/* Site footer (footer.php, template-parts/footer/). From 1200px a pitch: link columns on each half, the
   logo, social buttons and hours in the centre, lines drawn once by assets/js/footer.js. Below 1200px one
   centred column: a pitch band with the logo, the buttons and hours, accordions, the last line.
   Hover and the line drawing live in motion.css. */

.ft{background:var(--night);color:var(--on-night);font-size:14.5px;padding-top:28px}
.ft :focus-visible{outline-color:var(--paper)}
.ft-field{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
/* mowing stripes */
.ft-field,.ft-spot{--stripe:rgba(255,255,255,.022)}
.ft-field{background:linear-gradient(90deg,var(--stripe) 50%,transparent 50%) 0 0/calc(100% / 8) 100%}
.ft-lines{position:absolute;inset:0;pointer-events:none;overflow:visible}
.ft-lines path{stroke:rgba(255,255,255,.34);stroke-width:1.5;stroke-linecap:round}

/* halves: 32px top and bottom, 96px on the goal side (clear of the penalty area and its arc) */
.ft-half{display:grid;grid-template-columns:auto auto;align-content:start;justify-content:start;column-gap:clamp(40px,4.5vw,72px);padding-block:32px}
.ft-home{padding-inline:96px 32px}
.ft-away{justify-content:end;padding-inline:32px 96px}

/* link columns: the menu name is the heading */
.ft-h{margin:0 0 10px;color:var(--paper);font-size:15px;font-weight:700;white-space:nowrap}
.ft-col ul{list-style:none;margin:0;padding:0;display:grid}
.ft-col ul a{display:inline-flex;align-items:center;min-height:30px;color:var(--on-night);white-space:nowrap}
.ft-col > summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:var(--s-3)}
.ft-col > summary::-webkit-details-marker{display:none}
.ft-col > summary::after{content:"";width:8px;height:8px;border-inline-end:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);color:var(--on-night-mute)} /* closed: points to the reading direction; open: down */
.ft-col[open] > summary::after{transform:translateY(-2px) rotate(-45deg)}

/* centre: the logo in the centre circle, then the buttons and the hours */
.ft-centre{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:24px 20px}
.ft-spot{display:grid;place-items:center}
.ft-circle{width:112px;height:112px;border-radius:50%;display:grid;place-items:center}
.ft-logo{display:inline-block}
.ft-logo img{height:26px;width:auto}
.ft-kick{display:grid;justify-items:center;gap:10px}
/* the WhatsApp button stays on the centre line, the profiles split around it */
.ft-act{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.ft-socs{display:flex;gap:8px;justify-content:flex-end}
.ft-socs:last-child{justify-content:flex-start}
.ft-wa{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 20px;border:1px solid var(--night-edge);border-radius:var(--pill);color:var(--paper);font-size:14px;font-weight:500;white-space:nowrap}
.ft-wa svg{width:20px;height:20px;color:var(--wa)}
.ft-soc{width:44px;height:44px;border-radius:50%;border:1px solid var(--night-edge);display:grid;place-items:center;color:var(--paper)}
.ft-soc svg{width:20px;height:20px}
.ft-hours{display:flex;align-items:center;gap:8px;min-height:24px;margin:0;font-size:13.5px;color:var(--on-night-mute)}
.ft-hours .ic{width:16px;height:16px}
.ft-hours b{font-weight:400;color:var(--on-night)}

/* last line: legal | ways to pay | credit, 28px over and under */
.ft-base{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;padding:28px 0;font-size:12.5px;color:var(--paper)}
.ft-base a{color:var(--paper)}
.ft-legal{display:flex;flex-wrap:wrap;align-items:center}
.ft-legal > * + *::before{content:"|";display:inline-block;margin-inline:12px;opacity:.45}
.ft-legal a{display:inline-flex;align-items:center;min-height:28px}
.ft-pay{list-style:none;margin:0;padding:0;display:flex;gap:6px}
.ft-pay li{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 8px;border-radius:5px;background:#ececec;color:#1a1a1a;font-size:12px;font-weight:700;white-space:nowrap}
.ft-pay .ic{width:15px;height:15px}
/* the marks of jny_payment_marks() in their brand colours, outside the tokens */
.pay-pp{font-style:italic;font-weight:800}
.pay-pp b{color:#003087}
.pay-pp i{color:#009cde}
.pay-ap{font-weight:600;color:#000;letter-spacing:-.2px}
.pay-gp{font-weight:600;color:#5f6368}
.pay-gp i{font-style:normal}
.pay-gp .b{color:#4285f4}.pay-gp .r{color:#ea4335}.pay-gp .y{color:#fbbc05}.pay-gp .g{color:#34a853}
.ft-credit-l{margin:0}
.ft-copy-m{display:none}
.ft-nw{white-space:nowrap}
.ft-credit{display:inline-flex;align-items:center;min-height:28px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 60%,transparent)}

/* 1200-1279: tighter halves and centre (the buttons in one plain row), the ways to pay under the legal line */
@media (min-width:1200px) and (max-width:1279px){
  .ft-half{column-gap:36px}
  .ft-home{padding-inline-end:20px}
  .ft-away{padding-inline-start:20px}
  .ft-centre{padding-inline:12px}
  .ft-act{display:flex}
  .ft-wa{padding:0 16px}
  .ft-base{display:grid;grid-template-columns:1fr auto;grid-template-areas:"legal credit" "pay pay";row-gap:12px}
  .ft-legal{grid-area:legal} .ft-credit-l{grid-area:credit} .ft-pay{grid-area:pay}
}

/* from 1200px the columns are always open (ui.js); the headings are not buttons */
@media (min-width:1200px){
  .ft-col > summary{pointer-events:none;cursor:default}
  .ft-col > summary::after{display:none}
  .ft-col::details-content{content-visibility:visible;block-size:auto}
}

/* below 1200px: one centred column */
@media (max-width:1199px){
  .ft{padding-top:24px}
  .ft > .wrap{max-width:calc(560px + 2 * var(--gut))}
  .ft-field{display:flex;flex-direction:column;background:none}
  .ft-centre{display:contents}
  .ft-spot{order:1;position:relative;height:116px;background:linear-gradient(90deg,var(--stripe) 50%,transparent 50%) 0 0/calc(100% / 6) 100%}
  .ft-circle{width:88px;height:88px}
  .ft-logo img{height:20px}
  .ft-kick{order:2;padding:20px 0 24px}
  .ft-half{display:block;padding:0}
  .ft-home{order:3}
  .ft-away{order:4}
  .ft-col{border-top:1px solid var(--night-line)}
  .ft-away .ft-col:last-child{border-bottom:1px solid var(--night-line)}
  .ft-col > summary{min-height:52px;cursor:pointer}
  .ft-h{margin:0}
  .ft-col ul{padding-bottom:8px}
  .ft-col ul a{min-height:44px}
  .ft-base{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:14px;padding:24px 0 28px}
  .ft-pay{order:1;flex-wrap:wrap;justify-content:center;row-gap:8px;max-width:100%}
  .ft-legal{order:2;display:grid;grid-template-columns:auto auto;justify-content:center;gap:0 32px}
  .ft-legal a{min-height:44px;justify-content:center}
  .ft-legal .ft-copy{display:none}
  .ft-legal > * + *::before{display:none}
  .ft-credit-l{order:3;display:grid;justify-items:center;gap:2px}
  .ft-copy-m{display:inline}
}
/* phones: with two profiles on one side the WhatsApp button takes its own row, the profiles a row under it */
@media (max-width:479px){
  .ft-act:has(.ft-socs > :nth-child(2)){grid-template-columns:auto auto;grid-template-areas:"wa wa" "lead trail";justify-content:center;row-gap:12px}
  .ft-act:has(.ft-socs > :nth-child(2)) .ft-wa{grid-area:wa;justify-self:center}
  .ft-act:has(.ft-socs > :nth-child(2)) .ft-socs:first-child{grid-area:lead}
  .ft-act:has(.ft-socs > :nth-child(2)) .ft-socs:last-child{grid-area:trail}
}
