/* Shared site styles: phone layout fixes + mobile menu. Loaded on every page. */

/* Phone layout safety net: stops fixed-column grids and wide tables from widening the page,
   and keeps text, form fields and buttons at comfortable phone sizes */
@media(max-width:768px){
  [style*="display:grid"]>*,[style*="display: grid"]>*{min-width:0}
  h1,h2,h3,p,li,td,th{overflow-wrap:break-word}
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select,textarea{font-size:16px!important}
  header nav .btn-nav[style*="margin-right"]{display:none}
  header nav .btn-nav:not([style*="margin-right"]),header nav .btn-nav-cta:not(.nav-login-btn){min-height:36px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
  .modal-close{min-width:44px;min-height:44px}
}
@media(max-width:600px){
  table.vat-table,table.comp-table,.article-wrap table,.content-wrap table,section table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  [style*="grid-template-columns:repeat("],[style*="grid-template-columns: repeat("],[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
  .trust-grid{grid-template-columns:1fr!important}
  .rc-label,.related-card .rc-label,.related-tag,.card-tag,.post-tag,.f-badge,.tl-label,.pill,.mod-card .tag,.footer-office-label,.ci,.tag-exempt,.tag-9,.step-tag,.price-badge,.price-for,.price-alt,.plan-price-tag small,.plan-feats li,.field-hint,.field-error,.dir-section-title,.check-box,.badge,.copy-btn,.hrms-hl-item span,.tl-desc,.trust span,.trust-item,.label-chip,.buyer-kicker,.plan-hot-badge,.plan-enterprise-badge,.eyebrow-dot{font-size:12px!important}
  [style*="font-size:10px"],[style*="font-size:10.5px"],[style*="font-size:11px"],[style*="font-size:11.5px"],[style*="font-size: 10px"],[style*="font-size: 11px"],[style*="font-size: 11.5px"]{font-size:12px!important}
}

.mnav-toggle{display:none;background:none;border:1px solid #d4dae8;border-radius:8px;width:40px;height:38px;font-size:20px;line-height:1;color:#0C1630;cursor:pointer;margin-left:8px;flex-shrink:0}
.mnav-toggle.mnav-show{display:inline-flex;align-items:center;justify-content:center}
.mnav{display:none;position:fixed;top:68px;left:0;right:0;max-height:calc(100vh - 68px);overflow-y:auto;background:#fff;border-bottom:1px solid #d4dae8;box-shadow:0 12px 32px rgba(7,61,127,.14);z-index:250;padding:10px 6% 18px;flex-direction:column}
.mnav.open{display:flex}
.mnav a{display:block;padding:12px 4px;font-size:15px;font-weight:500;color:#3A4D6E;text-decoration:none;border-bottom:1px solid #eef1f7}
.mnav a:hover{color:#073D7F;text-decoration:none}
.mnav-regions{display:flex;gap:8px;padding:14px 0 6px}
.mnav-regions a{flex:1;text-align:center;border:1px solid #d4dae8;border-radius:8px;padding:8px;font-size:13px;font-weight:600}
.mnav-regions a.cur{background:#e4eaf5;color:#073D7F;border-color:#b8c1d8}
.mnav .mnav-cta{margin-top:12px;background:linear-gradient(135deg,#6491DE 0%,#073D7F 100%);color:#fff;text-align:center;border-radius:10px;font-weight:600;border:none}
.mnav .mnav-cta:hover{color:#fff;opacity:.92}
@media(max-width:420px){header .logo img{width:112px;height:36px;object-fit:contain}header nav .btn-nav{white-space:nowrap;padding:8px 12px;font-size:12px}}

/* ---- Site footer (shared by every page; markup in deploy/partials/footer-*.html) ---- */
footer.sf{display:block;background:#fff;border-top:1px solid #d4dae8;padding:56px 5% 28px;margin:0;text-align:left;color:#3A4D6E;font-family:'Inter',system-ui,sans-serif;max-width:none}
footer.sf .sf-inner{max-width:1180px;margin:0 auto}
footer.sf .sf-top{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:32px}
footer.sf .sf-logo img{width:120px;height:40px;object-fit:contain;object-position:left;display:block}
footer.sf .sf-brand p{font-size:14px;line-height:1.65;color:#3A4D6E;margin:14px 0 12px;max-width:300px}
footer.sf a{color:#3A4D6E;text-decoration:none}
footer.sf a:hover{color:#073D7F;text-decoration:underline}
footer.sf .sf-mail{font-size:14px;font-weight:600;color:#073D7F}
footer.sf .sf-social{display:flex;gap:8px;margin:16px 0}
footer.sf .sf-social a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #d4dae8;border-radius:50%;color:#073D7F}
footer.sf .sf-social a:hover{background:#e4eaf5;text-decoration:none}
footer.sf .sf-regions{display:inline-flex;border:1px solid #d4dae8;border-radius:8px;overflow:hidden}
footer.sf .sf-regions a{padding:7px 14px;font-size:13px;font-weight:600;border-right:1px solid #d4dae8}
footer.sf .sf-regions a:last-child{border-right:none}
footer.sf .sf-regions a.cur{background:#e4eaf5;color:#073D7F}
footer.sf .sf-regions a:hover{text-decoration:none;background:#f1f4fa}
footer.sf h3{font-family:'Space Grotesk','Inter',sans-serif;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#0C1630;margin:4px 0 14px}
footer.sf ul{list-style:none;margin:0;padding:0}
footer.sf li{margin:0 0 9px}
footer.sf .sf-col a{font-size:14px;line-height:1.5}
footer.sf .sf-offices{display:flex;flex-wrap:wrap;gap:16px 48px;margin-top:40px;padding-top:24px;border-top:1px solid #e4eaf5}
footer.sf .sf-office{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
footer.sf .sf-office strong{color:#0C1630;font-size:13px}
footer.sf .sf-office a{font-weight:600;color:#073D7F}
footer.sf .sf-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e4eaf5}
footer.sf .sf-bottom p{font-size:13px;color:#7A8DAD;margin:0}
footer.sf .sf-legal{display:flex;flex-wrap:wrap;gap:20px}
footer.sf .sf-bottom{padding-right:84px}  /* keep clear of the floating chat button */
footer.sf .sf-legal a{font-size:13px;color:#7A8DAD}
@media(max-width:1000px){footer.sf .sf-top{grid-template-columns:repeat(2,1fr)}footer.sf .sf-brand{grid-column:1/-1}}
@media(max-width:600px){footer.sf{padding:40px 20px 24px}footer.sf .sf-top{grid-template-columns:1fr 1fr;gap:28px 20px}footer.sf .sf-col a,footer.sf .sf-office{font-size:14px}footer.sf li{margin-bottom:11px}footer.sf .sf-bottom{flex-direction:column;align-items:flex-start;padding-right:0;padding-bottom:64px}}
@media(max-width:340px){footer.sf .sf-top{grid-template-columns:1fr}}
