/* Afordal theme for the Afordal Home Search help pages, taken from afordal.com and
   idx.homeasap.com (sites/new-www.afordal.com/shared/, sites/new-idx.homeasap.com/):
   Poppins headings, tabs and buttons; Nunito Sans body copy; brand blues, the mint
   accent, 16px corners and blue-tinted shadows. Opt in with class="theme-afordal" on
   <body>, after site.css. It styles <main> only: the HomeASAP header and footer stay. */

@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/poppins-400-latin.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/poppins-500-latin.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/poppins-600-latin.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/poppins-700-latin.woff2) format('woff2')}
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:200 1000;font-display:swap;src:url(../fonts/nunito-sans-latin.woff2) format('woff2')}
@font-face{font-family:'Nunito Sans';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/nunito-sans-italic-latin.woff2) format('woff2')}

.theme-afordal {
  --af-blue: #0063e9;
  --af-deep: #07448c;
  --af-navy: #161f40;
  --af-mint: #06eaa9;
  --af-mint-deep: #29c4a9;
  --af-sky: #7cc0ff;
  --af-tint: #eaf4ff;
  --af-ink: #221e1f;
  --af-body: #333;
  --af-muted: #595657;
  --af-surface: #f8f8f8;
  --af-line: #eee;
  --af-radius: 16px;
  --af-shadow: 0 4px 16px -2px rgba(108, 154, 208, .32);
  --af-shadow-blue: rgba(0, 99, 233, .4) 0 12px 18px -6px;
  --af-display: 'Poppins', Helvetica, Arial, sans-serif;
  --af-sans: 'Nunito Sans', Helvetica, Arial, sans-serif;
}

/* Type. */
.theme-afordal main { color: var(--af-body); font: 400 16px/1.7 var(--af-sans); }
.theme-afordal main :is(h1, h2, h3, h4, h5, h6) { color: var(--af-ink); font-family: var(--af-display); letter-spacing: -.01em; }
.theme-afordal main a { color: var(--af-blue); }
.theme-afordal main a:hover { color: var(--af-deep); }
.theme-afordal main strong, .theme-afordal main b { font-weight: 700; }
.theme-afordal main img { border-radius: 12px; }
.theme-afordal :focus-visible { outline: 3px solid var(--af-blue); outline-offset: 2px; }

/* Headline and eyebrow. */
.theme-afordal .af-h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.2; text-align: center; }
.theme-afordal .af-eyebrow { display: block; margin-bottom: 12px; color: var(--af-blue); font: 600 14px/1.4 var(--af-display); letter-spacing: .14em; text-transform: uppercase; text-align: center; }

/* Buttons: primary is navy on the mint gradient, secondary is white on brand blue. */
.theme-afordal .af-btn { display: inline-block; padding: 12px 24px; border-radius: var(--af-radius); font: 600 16px/1.4 var(--af-display); letter-spacing: .5px; text-align: center; text-decoration: none; transition: filter .15s ease; }
.theme-afordal .af-btn:hover { filter: brightness(.95); }
.theme-afordal .af-btn--primary { background: linear-gradient(var(--af-mint) 0%, var(--af-mint-deep) 100%); color: var(--af-navy); }
.theme-afordal .af-btn--secondary { background: var(--af-blue); color: #fff; }
.theme-afordal main .af-btn--primary:hover { color: var(--af-navy); }
.theme-afordal main .af-btn--secondary:hover { color: #fff; }

/* In-page nav bar. */
.theme-afordal .subnav { background-color: var(--af-navy); }
.theme-afordal .subnav a { color: #fff; font-family: var(--af-display); font-weight: 500; }
.theme-afordal .subnav a:hover { color: var(--af-mint); }
.theme-afordal .subnav-toggle { color: #fff; }

/* FAQ toggles: white cards, Poppins question, brand-blue chevron (afordal.com's af-toggle). */
.theme-afordal .faq > .toggle { padding: 20px 24px; margin-bottom: 16px; background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); box-shadow: var(--af-shadow); }
.theme-afordal .faq summary { padding-right: 44px; color: var(--af-ink); font: 600 17px/1.45 var(--af-display); letter-spacing: .15px; }
.theme-afordal .faq summary:hover, .theme-afordal .faq .toggle[open] > summary { color: var(--af-blue); }
.theme-afordal .faq summary::after { right: 6px; width: 10px; height: 10px; margin-top: -7px; background: none; border-right: 2px solid var(--af-blue); border-bottom: 2px solid var(--af-blue); -webkit-mask: none; mask: none; transform: rotate(45deg); transition: transform .15s ease; }
.theme-afordal .faq .toggle[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.theme-afordal .faq .toggle-body { padding-top: 14px; }
.theme-afordal .faq .toggle-body img { border: 1px solid var(--af-line); }

/* Tabs: a white card with a grey tab rail; the selected tab is marked in brand blue. */
.theme-afordal .tabs { background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); box-shadow: var(--af-shadow); overflow: hidden; }
.theme-afordal .tab-list { background: var(--af-surface); }
.theme-afordal .tab-list [role="tab"] { padding: 16px 24px; border-bottom: 1px solid var(--af-line); color: var(--af-ink); font: 500 15px/1.4 var(--af-display); }
.theme-afordal .tab-list [role="tab"]:hover { color: var(--af-blue); }
.theme-afordal .tab-list [role="tab"][aria-selected="true"] { background: #fff; box-shadow: inset 4px 0 0 var(--af-blue); color: var(--af-blue); font-weight: 600; }
.theme-afordal [role="tabpanel"] { padding: 28px 32px 36px; }
.theme-afordal [role="tabpanel"] img { border: 1px solid var(--af-line); }
.theme-afordal [role="tabpanel"] h2 { padding-top: 12px; color: var(--af-deep); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.3; }
@media (max-width: 767px) {
  .theme-afordal [role="tabpanel"] { padding: 20px 18px 28px; }
}

/* Icon cards. */
.theme-afordal .blurb-title { color: var(--af-ink); font: 600 18px/1.4 var(--af-display); }
.theme-afordal .blurb-text { color: var(--af-body); }
