/* Shared actions and language selector for Sumright's public pages. */
.sra-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 19px;
  gap: 10px;
  border: 1px solid #0b274c;
  border-radius: 8px;
  background: #0b274c;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.sra-button:hover { background: #183c60; border-color: #183c60; color: #fff; }
.sra-button--secondary {
  background: #f7fbfc;
  border-color: #64818f;
  color: #0b274c;
}
.sra-button--secondary:hover { color: #0b274c; background: #eaf5f6; border-color: #165868; }
.sra-button:focus-visible, .sra-language .language-option:focus-visible {
  outline: 3px solid #087886;
  outline-offset: 3px;
}
.sra-button:disabled { opacity: .6; cursor: wait; }
/* Colour rule: navy buttons stay on sum-right.com; teal buttons with ↗ open the secure tax portal. */
.sra-button.sra-button--portal { background: #087f8d; border-color: #087f8d; color: #fff; }
.sra-button.sra-button--portal:hover { background: #066b77; border-color: #066b77; color: #fff; }
.sra-button--portal::after { content: "↗"; font-weight: 700; }
/* Use the deeper teal from the pricing CTA for legible white header text. */
.sra-button.sra-sign-in {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: #08254d;
  border-color: #08254d;
  box-shadow: 0 4px 12px rgb(7 36 78 / 14%);
}
.sra-button.sra-sign-in:hover { background: #183c60; border-color: #183c60; color: #fff; }
.sra-sign-in:focus-visible { outline: 3px solid #08254d; outline-offset: 3px; }
.footer-grid .sra-sign-in:focus-visible { outline-color: #9ee4e4; }
/* A compact language link pair with larger, invisible touch targets on phones. */
.sra-language { display:inline-flex; align-items:center; flex-shrink:0; gap:2px; }
.sra-language .language-option {
  display:inline-flex; justify-content:center; align-items:center; min-height:32px; min-width:32px;
  padding:0 5px; margin:0; border:0; border-radius:4px; background:transparent;
  font-family:inherit; font-weight:600; font-size:12px; line-height:1;
  color:#506677; text-decoration:none; cursor:pointer;
}
.sra-language .language-option:hover { color:#085f6b; background:#eff6f6; }
.sra-language .language-option:is([aria-current="page"],[aria-pressed="true"]) {
  color:#25455b; text-decoration:underline; text-decoration-color:#27808b; text-decoration-thickness:2px; text-underline-offset:5px;
}
@media (pointer:coarse) {
  .sra-language .language-option { min-height:44px; min-width:40px; }
}

#how-it-works { scroll-margin-top: 105px; }
@media (max-width: 960px) {
  .container.nav > .sra-language { margin-left: auto; }
}
@media (max-width: 600px) {
  .container.nav > .sra-language { grid-column: 2; grid-row: 1; margin: 0; }
  .container.nav > .sra-sign-in { grid-column: 1/-1; grid-row: 2; justify-self: end; margin-bottom: 6px; }
  .nav-right > .sra-language { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-right > .sra-sign-in { grid-column: 2; grid-row: 2; padding-inline: 7px; }
  #how-it-works { scroll-margin-top: 120px; }
}

/* Give the longer Spanish navigation room at small laptop widths. */
@media (min-width: 961px) and (max-width: 1100px) {
  header .container.nav .menu-toggle { display: block; min-width: 44px; min-height: 44px; }
  header .container.nav .sra-sign-in { margin-left: auto; }
  header .container.nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px 28px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    box-shadow: 0 12px 20px rgba(11, 39, 76, .12);
  }
  header .container.nav .nav-links.is-open { display: flex; }
}
