/* CTA arrows share a centered 32px circle, independent of font metrics. */
body[data-mobile-site] :is(.ref-nav-cta, .ref-pill, .hero-home-primary, .interior-cta, .btn-calc-submit, .home-footer-cta, .review-submit-button) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  box-sizing: border-box;
}

body[data-mobile-site] :is(.ref-nav-cta, .ref-pill, .hero-home-primary, .interior-cta, .home-footer-cta, .review-submit-button) {
  padding: 8px 8px 8px 20px !important;
}

body[data-mobile-site] :is(.ref-nav-cta, .ref-pill, .hero-home-primary, .interior-cta, .home-footer-cta, .review-submit-button) > :is(.button-arrow, .interior-cta-arrow, svg),
body[data-mobile-site] .home-footer-cta > span {
  display: grid !important;
  place-items: center;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  margin: 0 !important;
  border-radius: 50%;
  line-height: 1 !important;
  box-sizing: border-box;
}

body[data-mobile-site] :is(.hero-home-primary, .interior-cta, .review-submit-button) > svg {
  padding: 8px !important;
}

body[data-mobile-site] .button-arrow > svg,
body[data-mobile-site] .home-footer-cta > span > svg,
body[data-mobile-site] .calc-cta-icon > svg {
  display: block;
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: none !important;
}

body[data-mobile-site] .button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

body[data-mobile-site] .ref-nav-cta > .button-arrow {
  background: #fff;
  color: #293321;
}

body[data-mobile-site] .ref-pill > .button-arrow {
  background: #192015;
  color: #fff;
}

body[data-mobile-site] .calc-cta-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  margin: 0;
}

/* Outline icons align to the text on every footer menu row. */
body[data-mobile-site] :is(.home-footer-navigation > a, .home-footer-policies > button) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  text-align: left;
}

body[data-mobile-site] .home-footer-menu-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #c5d3aa;
}

body[data-mobile-site] :is(.home-footer-navigation > a, .home-footer-policies > button):hover .home-footer-menu-icon {
  color: #e7f449;
}

/* Complaint forums keep readable column widths and separate their source notes. */
.resolution-forums .center-narrow { max-width: 760px; }
.resolution-forums-panel {
  border: 1px solid #dce1d3;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.resolution-forums-scroll { overflow-x: auto; }
.resolution-forums-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
}
.resolution-forums-table :is(th, td) {
  padding: 22px 24px !important;
  text-align: left;
  vertical-align: top;
  color: #293321 !important;
  border-bottom: 1px solid #e3e7db;
  overflow-wrap: break-word;
}
.resolution-forums-table thead th {
  padding-block: 17px !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #edf1e4 !important;
}
.resolution-forums-table tbody th {
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: #fff;
}
.resolution-forums-table tbody tr:nth-child(even) :is(th, td) { background: #fafbf7; }
.resolution-forums-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.resolution-limit { display: block; margin: 0 0 4px; }
.resolution-forums-notes {
  padding: 22px 24px;
  border-top: 1px solid #e3e7db;
  background: #f6f7f0;
}
.resolution-forums-notes p { margin: 0 0 12px; color: #66705a; }
.resolution-forums-notes p:last-child { margin-bottom: 0; }
.resolution-forums-notes a { color: #536a2c; text-decoration: underline; text-underline-offset: 3px; }

body[data-mobile-site] .contact-channel,
body[data-mobile-site] .contact-channel-top,
body[data-mobile-site] .contact-form-panel {
  min-width: 0;
}
body[data-mobile-site] .contact-channel :is(h2, h3, p) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 768px) {
  body[data-mobile-site] .ref-nav-cta { display: none; }
}

@media (max-width: 700px) {
  .resolution-forums-table colgroup { display: none; }
  .resolution-forums-table thead { display: none; }
  .resolution-forums-table,
  .resolution-forums-table tbody,
  .resolution-forums-table tr,
  .resolution-forums-table :is(th, td) { display: block; width: 100%; }
  .resolution-forums-table tbody tr { padding: 20px; border-bottom: 1px solid #dce1d3; }
  .resolution-forums-table tbody tr:nth-child(even) { background: #fafbf7; }
  .resolution-forums-table tbody tr:last-child { border-bottom: 0; }
  .resolution-forums-table tbody tr :is(th, td) { background: transparent !important; border: 0; padding: 0 !important; }
  .resolution-forums-table tbody th { margin-bottom: 16px; }
  .resolution-forums-table tbody td {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }
  .resolution-forums-table tbody td::before { content: attr(data-label); color: #788168; font-size: 13px; }
  .resolution-forums-table td:has(.resolution-limit) { display: block; padding-left: 86px !important; position: relative; }
  .resolution-forums-table td:has(.resolution-limit)::before { position: absolute; left: 0; top: 0; }
  .resolution-forums-notes { padding: 20px; }
  body[data-mobile-site] .ref-nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-mobile-site] .button-arrow { transition: none !important; }
}

body[data-mobile-site] :is(.review-submit-button, .btn.btn-primary, .btn-navy, .faq-support-button, .hero-home-primary, .ref-pill, .policyholder-reasons-cta, .btn-calc-submit){
  background:#e7f449!important;
  color:#171d16!important;
  border-color:transparent!important;
}
body[data-mobile-site] :is(.review-submit-button, .btn.btn-primary, .btn-navy, .faq-support-button, .hero-home-primary, .ref-pill, .policyholder-reasons-cta, .btn-calc-submit):hover{
  background:#2c3422!important;
  color:#e7f449!important;
}
body[data-mobile-site] .review-submit-button>svg{
  background:#171d16!important;
  color:#fff!important;
}
body[data-mobile-site] .review-submit-button:hover>svg{
  background:#e7f449!important;
  color:#171d16!important;
}
body[data-mobile-site] .review-submit-row{justify-content:flex-end}
.home-footer-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.home-footer-social a{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #c5d3aa40;border-radius:50%;color:#c5d3aa;text-decoration:none;transition:color .2s,background .2s,border-color .2s}
.home-footer-social a:is(:hover,:focus-visible){color:#192015;background:#e7f449;border-color:#e7f449}
.home-footer-social a:focus-visible{outline:2px solid #e7f449;outline-offset:3px}
.home-footer-social svg{display:block;flex:0 0 20px;width:20px;height:20px}
/* Footer link colors must reach the SVG stroke on hover and keyboard focus. */
body[data-mobile-site] .home-footer .home-footer-social a:is(:hover,:focus-visible),
body[data-mobile-site] .home-footer .home-footer-social a:is(:hover,:focus-visible) svg {
  color: #000 !important;
}
body[data-mobile-site] .home-footer .home-footer-social a:is(:hover,:focus-visible) {
  background: #e7f449 !important;
  border-color: #e7f449 !important;
}

/* Article subsections use reading rhythm rather than landing-page section padding. */
html body[data-mobile-site] main .managed-article section {
  padding: 0 !important;
  min-height: 0 !important;
  margin: 28px 0 !important;
}
html body[data-mobile-site] main .managed-article .article-quick-answer {
  padding: 20px !important;
  margin-top: 0 !important;
}
html body[data-mobile-site] main .managed-article :is(h2,h3,h4) {
  max-width: none !important;
  margin: 28px 0 14px !important;
  line-height: 1.35 !important;
  text-align: left;
}
html body[data-mobile-site] main .managed-article h2 { font-size: clamp(23px,2.2vw,28px) !important; }
html body[data-mobile-site] main .managed-article h3 { font-size: 22px !important; }
html body[data-mobile-site] main .managed-article h4 { font-size: 19px !important; }
html body[data-mobile-site] main .managed-article section > :first-child { margin-top: 0 !important; }
html body[data-mobile-site] main .managed-article p { margin: 0 0 14px; }
html body[data-mobile-site] main .managed-article :is(ul,ol) { margin: 12px 0 18px; padding-left: 24px; }
html body[data-mobile-site] main .managed-article li { margin: 7px 0; padding-left: 3px; }

/* Legal documents need a reading hierarchy below the marketing-page scale. */
html body.site-interior[data-mobile-site]:is([data-page="privacy-policy"],[data-page="terms-condition"]) main > .page-hero h1 {
  font-size: clamp(30px, 3.5vw, 44px) !important;
  line-height: 1.2 !important;
}
html body[data-mobile-site] main .legal-document h2 {
  font-size: 24px !important;
  line-height: 1.4 !important;
  margin: 0 0 12px !important;
  text-align: left;
  text-wrap: pretty;
}
html body[data-mobile-site] main .legal-document h3 { font-size: 20px !important; }
html body[data-mobile-site] main .legal-document h4 { font-size: 18px !important; }
html body[data-mobile-site] main .legal-sidebar .legal-contents-title {
  font-size: 13px !important;
  line-height: 1.5 !important;
  letter-spacing: .08em !important;
  margin: 0 0 14px !important;
}
html body[data-mobile-site] main .legal-sidebar .legal-assistance-title {
  font-size: 18px !important;
  line-height: 1.4 !important;
  margin: 0 0 10px !important;
}
html body[data-mobile-site] main .legal-sidebar :is(li,a) { font-size: 14px !important; line-height: 1.7 !important; }
.legal-sidebar nav li + li { margin-top: 8px; }
.legal-sidebar a { overflow-wrap: anywhere; }
body[data-mobile-site] main .legal-layout {
  grid-template-columns: 240px minmax(0,1fr) !important;
  gap: 36px !important;
}
body[data-mobile-site] main .legal-document { min-width: 0; padding: 32px !important; }
body[data-mobile-site] main .legal-document :is(p,li) { text-align: left; }
.legal-document > div[id] { margin-bottom: 28px !important; }
.legal-document > div[id]:last-child { margin-bottom: 0 !important; }
@media(max-width:900px) {
  body[data-mobile-site] main .legal-layout { grid-template-columns: minmax(0,1fr) !important; gap: 28px !important; }
  body[data-mobile-site] main .legal-sidebar { position: static !important; }
}
@media(max-width:600px) {
  body[data-mobile-site] main .legal-document { padding: 22px !important; }
  html body[data-mobile-site] main .legal-document h2 { font-size: 22px !important; }
}

/* Keep the percentage within the donut and reserve its column as amounts change. */
body[data-mobile-site] #payout-calculator .calc-visual-result {
  --calc-chart-size: 126px;
  display: grid;
  grid-template-columns: var(--calc-chart-size) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}
body[data-mobile-site] #payout-calculator .calc-share-chart {
  width: var(--calc-chart-size);
  height: var(--calc-chart-size);
  min-width: var(--calc-chart-size);
  margin: 0;
  isolation: isolate;
}
body[data-mobile-site] #payout-calculator .calc-share-chart figcaption {
  inset: 19%;
  gap: 4px;
  text-align: center;
}
html body[data-mobile-site] main #payout-calculator .calc-share-chart strong {
  display: block;
  font-size: calc(var(--calc-chart-size) * .175) !important;
  line-height: 1.1 !important;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body[data-mobile-site] main #payout-calculator .calc-share-chart figcaption > span {
  font-size: 8px !important;
  line-height: 1.25 !important;
  letter-spacing: .04em;
  white-space: nowrap;
}
body[data-mobile-site] #payout-calculator .calc-big-payout {
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  white-space: nowrap;
}
@media(max-width:600px) {
  body[data-mobile-site] #payout-calculator .calc-visual-result { --calc-chart-size: 108px; gap: 16px; }
  body[data-mobile-site] #payout-calculator .calc-big-payout { font-size: 26px; }
}
@media(max-width:380px) {
  body[data-mobile-site] #payout-calculator .calc-visual-result { --calc-chart-size: 108px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body[data-mobile-site] #payout-calculator .calc-share-chart { justify-self: center; }
  body[data-mobile-site] #payout-calculator .calc-result-copy { text-align: center; }
  body[data-mobile-site] #payout-calculator .calc-ratio-legend { justify-content: center; }
}
