/* Shared site footer. Loaded last on every page so it settles earlier, layered footer rules. */
.site-footer .footer-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.15fr);gap:40px;padding:56px 0 48px;align-items:start}
.site-footer .footer-grid>*{min-width:0}
.site-footer .footer-grid h3{margin:0 0 18px;font-size:16px;line-height:1.3;color:var(--footer-heading)}

/* Brand column */
.site-footer .footer-brand-link{display:inline-block;margin-bottom:18px}
.site-footer .footer-brand p{max-width:340px;margin:0 0 22px;font-size:14px;line-height:1.8;color:var(--footer-text)}
.site-footer .footer-name{color:var(--footer-heading);font-weight:600;text-decoration:underline;text-decoration-color:var(--accent-ink,var(--theme));text-decoration-thickness:1px;text-underline-offset:4px}
.site-footer .footer-name:hover,.site-footer .footer-name:focus-visible{color:var(--accent-ink,var(--theme))}
.site-footer .footer-connect{display:grid;grid-template-columns:repeat(5,40px);gap:10px}
.site-footer .footer-connect .social-link{width:40px;height:40px;border:1px solid var(--footer-border);color:var(--footer-heading);background:transparent}
.site-footer .footer-connect .social-link:hover,.site-footer .footer-connect .social-link:focus-visible{border-color:var(--accent-ink,var(--theme));background:var(--accent-ink,var(--theme));color:#0f1a14}

/* Link columns */
.site-footer .footer-links{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.site-footer .footer-links a{display:inline-block;padding:4px 0;font-size:14px;line-height:1.5;color:var(--footer-text)}

/* Contact column: icon and text share one centred row */
.site-footer .footer-contact-list{display:grid;gap:12px;margin:0;font-style:normal}
.site-footer .footer-contact-list>div{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;column-gap:12px;min-width:0}
.site-footer .footer-contact-list i{width:20px;margin:0;line-height:1;text-align:center;justify-self:center}
.site-footer .footer-contact-list :is(a,span){font-size:14px;line-height:1.6;color:var(--footer-text);overflow-wrap:anywhere}
.site-footer .footer-contact-list a:hover{color:var(--accent-ink,var(--theme))}

/* Bottom bar: policies on the left, copyright on the right. The bottom padding
   keeps the floating Back to top and Ask Yuvi buttons clear of footer text. */
.site-footer .footer-bottom-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px;padding:24px 0 calc(96px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--footer-border);font-size:14px}
.site-footer .footer-bottom-bar .footer-policy-links{display:flex;flex-wrap:wrap;gap:8px 24px;padding:0;border:0;font-size:14px;line-height:1.6}
.site-footer .footer-copy{margin:0;font-size:14px;line-height:1.6;color:var(--footer-text);text-align:right}
.site-footer .footer-copy a{color:var(--footer-heading);font-weight:600}
.site-footer .footer-copy a:hover,.site-footer .footer-copy a:focus-visible{color:var(--accent-ink,var(--theme))}
.site-footer .footer-tagline{display:block;font-size:13px}

@media (max-width:1199px){
  .site-footer .footer-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.1fr);gap:28px}
}
@media (max-width:991px){
  .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px;padding:44px 0 40px}
  .site-footer .footer-brand{grid-column:1/-1}
  .site-footer .footer-brand p{max-width:600px}
  .site-footer .footer-bottom-bar{flex-direction:column;align-items:flex-start}
  .site-footer .footer-copy{text-align:left}
}
@media (max-width:575px){
  .site-footer .footer-grid{gap:32px 20px;padding:36px 0 32px}
  .site-footer .footer-contact{grid-column:1/-1}
  .site-footer .footer-grid h3{margin-bottom:14px}
  .site-footer .footer-bottom-bar{gap:14px;padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
  .site-footer .footer-bottom-bar .footer-policy-links{gap:6px 20px}
}
@media (max-width:359px){
  .site-footer .footer-grid{grid-template-columns:minmax(0,1fr)}
}

/* Shared contact and profile icons (footer, mobile menu, homepage hero) */
.social-link{display:inline-grid;place-items:center;flex:none;border-radius:50%;text-decoration:none;transition:transform .2s,background-color .2s,border-color .2s,color .2s}
.social-link svg{width:18px;height:18px;fill:currentColor}
.social-link:hover{transform:translateY(-2px)}
.social-link:focus-visible{outline:2px solid var(--accent-ink,var(--theme));outline-offset:3px}
@media (prefers-reduced-motion:reduce){.social-link{transition:none}.social-link:hover{transform:none}}

/* Mobile menu */
.offcanvas-social{display:grid;grid-template-columns:repeat(5,40px);justify-content:center;gap:10px;margin-top:22px}
.offcanvas-social .social-link{width:40px;height:40px;border:1px solid var(--line,rgba(128,128,128,.3));background:var(--surface,transparent);color:var(--header,inherit)}
.offcanvas-social .social-link:hover{border-color:var(--accent-ink,var(--theme));color:var(--accent-ink,var(--theme))}

/* Homepage hero: one compact profile row under the main actions */
.intro-social{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin-top:24px}
.intro-social-label{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text,inherit)}
.intro-social-links{display:flex;flex-wrap:wrap;gap:8px}
.intro-social-links .social-link{width:var(--icon-btn,40px);height:var(--icon-btn,40px);border:1px solid var(--line,rgba(128,128,128,.3));background:var(--surface,transparent);color:var(--header,inherit)}
.intro-social-links .social-link svg{width:17px;height:17px}
.intro-social-links .social-link:hover{border-color:var(--accent-ink,var(--theme));color:var(--accent-ink,var(--theme))}
@media (max-width:767px){
  .intro-social{gap:10px;margin-top:20px}
  .intro-social-label{flex-basis:100%}
}
