/* ProximaNova — loaded from the PerkSpot CDN, same pattern psweb uses
   (psweb/src/app/styles/perkspot-base.scss:8-53). Requires the CDN origin
   to send `Access-Control-Allow-Origin` for this site's origin (CORS is
   mandatory on cross-origin @font-face loads). */
@font-face {
  font-family: "ProximaNova";
  src: url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-Regular.woff2") format("woff2"),
       url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ProximaNova";
  src: url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-RegularItalic.woff2") format("woff2"),
       url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-RegularItalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ProximaNova";
  src: url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-Bold.woff2") format("woff2"),
       url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ProximaNova";
  src: url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-BoldItalic.woff2") format("woff2"),
       url("https://psprods3ep.azureedge.net/cdn.perkspot.com/fonts/ProximaNova-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Body */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "ProximaNova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  html, body {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Layout container — replaces Bootstrap container/row/col */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.content-column {
  width: 100%;
}

@media (min-width: 640px) {
  .content-column {
    width: 90%;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .content-column {
    width: 83.333%;
    margin: 0 auto;
  }
}

/* Flex layout so footer sticks to bottom on short pages.
   Background matches PSC's $perx-background-dark (perxcss.scss:7). */
.loggedout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #201d52;
  color: #ffffff;
}

.loggedout-wrapper a {
  color: #ffffff;
}

/* Header / Brand */
.brand-wrapper {
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.23);
}

@media (min-width: 768px) {
  .brand-wrapper {
    padding: 15px;
  }
}

@media (min-width: 992px) {
  .brand-wrapper {
    padding: 20px;
  }
}

/* Center the logo horizontally — matches PSC's
   `.loggedout-wrapper .brand-wrapper .public-brand { display: flex; justify-content: center }`. */
.brand-wrapper .public-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.translate-widget {
  width: 100%;
  max-width: 200px;
  text-align: center;
}

@media (min-width: 768px) {
  .brand-wrapper .public-brand {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .translate-widget {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-45%);
  }
}

.brand-wrapper .public-brand img {
  height: 60px;
  max-width: 280px;
  object-fit: contain;
}

@media (min-width: 480px) {
  .brand-wrapper .public-brand img {
    height: 70px;
    max-width: 300px;
  }
}

@media (min-width: 768px) {
  .brand-wrapper .public-brand img {
    height: 90px;
    max-width: 320px;
  }
}

/* Content */
.content-wrapper {
  flex: 1;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .content-wrapper {
    margin: 30px 0;
  }
}

/* Punch Box */
.punch-box {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.23);
  padding: 20px 15px;
  margin-bottom: 20px;
  color: #0b1126 !important;
}

@media (min-width: 480px) {
  .punch-box {
    padding: 25px 20px;
  }
}

@media (min-width: 768px) {
  .punch-box {
    padding: 30px;
    margin-bottom: 30px;
  }
}

.punch-box a {
  color: #0b1126;
  min-height: 44px;
  display: inline-block;
  padding: 4px 0;
}

.punch-box a:hover,
.punch-box a:active,
.punch-box a:focus {
  color: #0066cc;
}

.punch-box p {
  margin: 0 0 1em 0;
}

.punch-box img {
  max-width: 40%;
}

@media (max-width: 480px) {
  .punch-box img {
    max-width: 60%;
  }
}

.punch-box ul,
.punch-box ol {
  margin: 0 0 1em 0;
  padding-left: 2em;
}

@media (max-width: 767px) {
  .punch-box ul,
  .punch-box ol {
    padding-left: 1.5em;
  }
}

/* Footer */
.loggedout-foot-wrapper {
  min-height: 50px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .loggedout-foot-wrapper {
    margin-bottom: 50px;
  }
}

.sub-footer {
  border-top: 0;
  padding: 20px 0;
  margin: 0;
  text-align: center;
  color: #fff;
}

.sub-footer a {
  color: #fff;
  text-decoration: underline;
  min-height: 44px;
  display: inline-block;
  padding: 8px 4px;
}

.sub-footer a:hover,
.sub-footer a:focus {
  color: #ffffff;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-separator {
  display: none;
}

@media (min-width: 640px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .footer-separator {
    display: inline;
    margin: 0 8px;
  }
  
  .sub-footer a {
    padding: 4px;
  }
}

/* Google Translate widget — match PSC's _rough-components.scss:928 */
#google_translate_element .goog-te-gadget {
  font-family: "ProximaNova", sans-serif;
}

/* Legal Table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1em;
}

.legal-table {
  border: 1px solid #0b1126;
  padding: 2px;
  min-width: 100%;
  width: auto;
}

.legal-table td,
.legal-table th {
  border: 1px solid #0b1126;
  padding: 8px;
  white-space: nowrap;
}

.legal-table th {
  background-color: #ccc;
}

@media (min-width: 768px) {
  .legal-table td,
  .legal-table th {
    white-space: normal;
  }
}
