/* "What grade am I?" quiz, /what-grade-am-i/ (inc/what-grade-am-i.php). Mobile first. */
.wgai {
  --wgai-teal: #329387; --wgai-teal-dark: #10616B; --wgai-amber: #FFAA2B; --wgai-red: #EE4E43; --wgai-dark: #1A1A2E;
  --wgai-cream: #F6F3EC; --wgai-line: #E3DED2; --wgai-muted: #5d6470;
  --wgai-head: var(--wp--preset--font-family--heading-font, "Bricolage Grotesque", sans-serif);
  --wgai-body: var(--wp--preset--font-family--body-font, "Figtree", system-ui, sans-serif);
  background: var(--wgai-cream); color: var(--wgai-dark); font-family: var(--wgai-body); line-height: 1.5;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.wgai *, .wgai *::before, .wgai *::after { box-sizing: border-box; }
.wgai-wrap { max-width: 680px; margin: 0 auto; padding: 16px 12px 40px; }
.wgai-card { background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(26,26,46,.08); overflow: hidden; position: relative; scroll-margin-top: 90px; }
.wgai-pad { padding: 22px 18px; }
.wgai h1, .wgai h2, .wgai h3 { font-family: var(--wgai-head); color: var(--wgai-dark); }
.wgai h1 { font-size: clamp(32px, 8vw, 46px); line-height: 1.05; margin: 0 0 12px; font-weight: 800; letter-spacing: -.015em; }
.wgai h2 { font-size: clamp(22px, 5.4vw, 28px); line-height: 1.2; margin: 0 0 6px; font-weight: 700; }
.wgai h2:focus { outline: none; }
.wgai h3 { font-size: 18px; line-height: 1.3; margin: 0 0 4px; font-weight: 700; }
.wgai p { margin: 0 0 12px; }
.wgai a { color: var(--wgai-teal-dark); }
.wgai-small { font-size: 14px; color: var(--wgai-muted); }
.wgai-center { text-align: center; }

.wgai-btn { appearance: none; border: 0; border-radius: 999px; background: var(--wgai-teal); color: #fff !important; font-family: var(--wgai-body); font-weight: 700; font-size: 17px; line-height: 1.2; min-height: 54px; padding: 15px 26px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; transition: transform .12s, background .12s; }
.wgai-btn:hover { background: var(--wgai-teal-dark); transform: translateY(-1px); }
.wgai-btn:focus-visible, .wgai-opt:focus-visible, .wgai-back:focus-visible { outline: 3px solid var(--wgai-amber); outline-offset: 2px; }
.wgai-btn.wgai-amber { background: var(--wgai-amber); color: var(--wgai-dark) !important; }
.wgai-btn.wgai-amber:hover { background: #f39a10; }
.wgai-btn.wgai-ghost { background: transparent; color: var(--wgai-teal-dark) !important; border: 2px solid var(--wgai-teal); min-height: 48px; padding: 11px 20px; font-size: 15px; }
.wgai-btn.wgai-ghost:hover { background: #eef7f6; }
.wgai-wide { width: 100%; }
#wgai-skip { margin: 4px 0 4px; }

/* intro */
.wgai-hero { position: relative; height: 240px; background: #10616B 50% 35% / cover no-repeat; }
.wgai-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,46,0) 35%, rgba(26,26,46,.65) 100%); }
.wgai-tagline { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; font-weight: 700; font-size: 15px; z-index: 1; letter-spacing: .02em; }
.wgai-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--wgai-teal-dark); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.wgai-lede { font-size: 18px; color: #34384a; }
.wgai-ticks { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 16px 0 22px; font-size: 14px; color: #34384a; }
.wgai-ticks span::before { content: "✓ "; color: var(--wgai-teal); font-weight: 800; }
.wgai-intro .wgai-small { margin: 14px 0 0; }

/* questions */
.wgai-progress { height: 8px; background: #eee8dc; border-radius: 99px; overflow: hidden; margin: 0 0 8px; }
.wgai-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--wgai-teal), var(--wgai-amber)); border-radius: 99px; transition: width .35s ease; }
.wgai-step { font-size: 14px; color: var(--wgai-muted); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.wgai-back { background: none; border: 0; color: var(--wgai-muted); font-family: var(--wgai-body); font-weight: 600; font-size: 15px; cursor: pointer; min-height: 48px; padding: 0 12px 0 0; }
.wgai-back:hover { color: var(--wgai-dark); }
.wgai-opts { display: grid; gap: 10px; margin-top: 16px; }
.wgai-opts.wgai-two { grid-template-columns: 1fr 1fr; }
.wgai-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; text-align: left; border: 2px solid var(--wgai-line); background: #fff; border-radius: 16px; padding: 14px 16px; cursor: pointer; font-family: var(--wgai-body); font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--wgai-dark); transition: border-color .12s, background .12s, transform .12s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wgai-two .wgai-opt { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 14px 8px; min-height: 104px; }
.wgai-opt:hover { border-color: var(--wgai-teal); background: #f4faf9; }
.wgai-opt.wgai-sel { border-color: var(--wgai-teal); background: #e9f5f3; }
.wgai-em { font-size: 28px; width: 36px; text-align: center; flex: none; line-height: 1; }
.wgai-t { display: block; font-weight: 600; }
.wgai-d { display: block; font-size: 14px; color: var(--wgai-muted); font-weight: 400; }
.wgai-fade { animation: wgai-fade .35s ease; }
@keyframes wgai-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* grade card form */
.wgai-tease { display: flex; align-items: center; gap: 16px; background: var(--wgai-cream); border-radius: 18px; padding: 14px 16px; margin: 6px 0 16px; }
.wgai-tease h2, .wgai-tease p { margin: 0; }
.wgai-qmark { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--wgai-teal); color: #fff; font-weight: 800; font-size: 30px; display: flex; align-items: center; justify-content: center; animation: wgai-pulse 1.6s ease-in-out infinite; }
@keyframes wgai-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.wgai label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
.wgai input[type=text], .wgai input[type=email] { width: 100%; font-family: var(--wgai-body); font-size: 17px; min-height: 52px; padding: 12px 14px; border: 2px solid var(--wgai-line); border-radius: 12px; background: #fff; color: var(--wgai-dark); }
.wgai input:focus { outline: none; border-color: var(--wgai-teal); }
.wgai label.wgai-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: #34384a; margin: 16px 0 4px; cursor: pointer; }
.wgai-check input { margin-top: 2px; width: 24px; height: 24px; accent-color: var(--wgai-teal); flex: none; }
.wgai-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wgai-err { color: var(--wgai-red); font-size: 15px; min-height: 22px; margin-bottom: 6px; }
.wgai-legal { font-size: 12px; margin-top: 12px; }
.wgai-drum { text-align: center; padding: 60px 18px; }
.wgai-drum h2 { margin-top: 16px; }
.wgai-peak { display: inline-block; animation: wgai-bob .9s ease-in-out infinite; }
@keyframes wgai-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* result */
.wgai-photo { height: 180px; background: center / cover no-repeat; position: relative; }
.wgai-persona { position: absolute; left: 18px; bottom: -26px; }
.wgai-badge { width: 84px; height: 84px; border-radius: 50%; background: var(--wgai-teal); border: 5px solid #fff; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 6px 16px rgba(0,0,0,.15); flex: none; }
.wgai-badge small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.wgai-badge b { font-size: 36px; font-weight: 800; }
.wgai-reveal { margin-top: 30px; }
.wgai-plan { margin-top: 34px; }
.wgai-plan > .wgai-small { margin: 0 0 2px; }
.wgai .wgai-plan h2 { font-size: clamp(28px, 7vw, 36px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.wgai-plan + .wgai-reveal, .wgai-reveal + .wgai-plan { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--wgai-line); }
.wgai-plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wgai-pi { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid var(--wgai-line); border-radius: 18px; padding: 14px; }
.wgai-pi--first { border-color: var(--wgai-teal); background: #f4faf9; padding: 16px 14px; }
.wgai-pn { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wgai-teal); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.wgai-pb { flex: 1; min-width: 0; }
.wgai-pi .wgai-nm { font-family: var(--wgai-head); font-size: 18px; font-weight: 700; line-height: 1.25; margin: 2px 0; overflow-wrap: anywhere; }
.wgai-pi--first .wgai-nm { font-size: 22px; font-weight: 800; }
.wgai-pi .wgai-meta { font-size: 14px; color: var(--wgai-muted); margin-bottom: 8px; }
.wgai-pi .wgai-date { margin-bottom: 8px; }
.wgai-pi .wgai-btn { min-height: 50px; }
.wgai-see { display: flex; width: fit-content; align-items: center; min-height: 44px; margin-top: -4px; font-weight: 700; color: var(--wgai-teal-dark) !important; text-decoration: none !important; }
.wgai-see:hover { text-decoration: underline !important; }
.wgai-see:focus-visible { outline: 3px solid var(--wgai-amber); outline-offset: 2px; }
.wgai-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wgai-reveal .wgai-small { margin: 0 0 4px; }
.wgai .wgai-said { font-size: clamp(28px, 7vw, 38px); font-weight: 800; line-height: 1.1; margin: 0 0 6px; letter-spacing: -.01em; }
.wgai-said em { font-style: normal; color: var(--wgai-teal); }
.wgai-sub { margin: 0; font-size: 17px; }
.wgai-pname { display: inline-block; background: var(--wgai-amber); color: var(--wgai-dark); font-weight: 700; border-radius: 99px; padding: 5px 14px; font-size: 15px; margin: 8px 0 10px; }
.wgai-line { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.wgai-conf { background: #f4faf9; border: 2px solid #cfe7e3; border-radius: 18px; padding: 16px 14px 14px; margin: 18px 0 10px; }
.wgai-conf h3 { color: var(--wgai-teal-dark); font-size: 19px; }
.wgai-conf > .wgai-small { margin-bottom: 8px; }
.wgai-crow { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #d9ece9; font-size: 15px; }
.wgai-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--wgai-teal); }
.wgai-up .wgai-ic { background: var(--wgai-amber); color: var(--wgai-dark); }
.wgai-ck { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--wgai-muted); font-weight: 700; }
.wgai-cv { margin-top: 2px; font-weight: 600; color: var(--wgai-teal-dark); }
.wgai-up .wgai-cv { color: #8a5300; }
.wgai-conf-foot { margin: 10px 0 0; }
.wgai-note { background: #fff; border-radius: 16px; padding: 14px 16px; margin: 18px 0 6px; font-size: 15px; }
.wgai-card .wgai-note { background: #f3f1ea; }
.wgai-note--amber, .wgai-card .wgai-note--amber { background: #fff6e6; }
.wgai-note b { display: block; margin-bottom: 4px; }
.wgai-note p:last-child { margin-bottom: 0; }
.wgai-why { border-left: 4px solid var(--wgai-amber); padding: 4px 0 4px 14px; margin: 18px 0 6px; font-size: 16px; }
.wgai-tag { font-size: 12px; font-weight: 700; color: var(--wgai-teal-dark); text-transform: uppercase; letter-spacing: .06em; }
.wgai-date { display: inline-block; background: #fff; border: 1px solid var(--wgai-line); border-radius: 10px; padding: 4px 10px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.wgai-blocker { background: #e9f5f3; border-radius: 18px; padding: 18px; margin-top: 24px; }
.wgai-blocker h3 { color: var(--wgai-teal-dark); }
.wgai-blocker p:last-child { margin-bottom: 0; }
.wgai-app { margin-top: 24px; background: var(--wgai-dark); color: #fff; border-radius: 18px; padding: 20px 18px; }
.wgai .wgai-app h3 { color: #fff; }
.wgai-app p { color: #d9dbe6; font-size: 15px; }
.wgai-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.wgai-stores img { height: 44px; width: auto; display: block; }
.wgai-talk { margin-top: 24px; text-align: center; }
.wgai-talk p { font-weight: 600; margin-bottom: 10px; }
.wgai-talk-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wgai-footer-line { text-align: center; margin-top: 26px; color: var(--wgai-teal-dark); font-weight: 700; }
.wgai-footer-line span { display: block; color: var(--wgai-muted); font-weight: 400; font-size: 14px; }
.wgai-again { display: flex; justify-content: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

/* grade guide (server-rendered, readable without JS) */
.wgai-guide .wgai-wrap { padding-top: 8px; padding-bottom: 56px; }
.wgai-guide > .wgai-wrap > h2 { margin-bottom: 12px; }
.wgai-grade { background: #fff; border-radius: 18px; padding: 18px 16px; margin: 16px 0; }
.wgai-grade__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.wgai-grade__head .wgai-badge { width: 64px; height: 64px; border-width: 0; box-shadow: none; }
.wgai-grade__head .wgai-badge b { font-size: 26px; }
.wgai-grade__head .wgai-small { margin: 0; }
.wgai-trips { list-style: none; margin: 0; padding: 0; }
.wgai-trips li { padding: 8px 0; border-top: 1px solid var(--wgai-line); font-size: 15px; }
.wgai-trips a { font-weight: 600; text-decoration: none; }
.wgai-trips span { display: block; font-size: 13px; color: var(--wgai-muted); }

.wgai-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: #1A1A2E; color: #fff; padding: 10px 18px; border-radius: 18px; font-size: 14px; text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 9999; }
.wgai-toast.wgai-on { opacity: 1; }
.wgai-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9998; }
.wgai-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: wgai-fall 2.4s ease-in forwards; }
@keyframes wgai-fall { to { transform: translateY(110vh) rotate(540deg); opacity: .9; } }

@media (min-width: 560px) {
  .wgai-wrap { padding: 28px 16px 56px; }
  .wgai-pad { padding: 26px 24px; }
  .wgai-hero { height: 300px; }
  .wgai-tagline { left: 24px; right: 24px; }
  .wgai-photo { height: 220px; }
  .wgai-persona { left: 24px; }
  .wgai-grade { padding: 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wgai *, .wgai-confetti i { animation: none !important; transition: none !important; }
}

/* "Everything at your grade", collapsed under the plan (placements card 14ypaj0uxw8) */
.wgai-all { margin-top: 22px; border-top: 1px solid var(--wgai-line); border-bottom: 1px solid var(--wgai-line); }
.wgai-all summary { cursor: pointer; list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px; color: var(--wgai-teal-dark); }
.wgai-all summary::-webkit-details-marker { display: none; }
.wgai-all summary span { font-weight: 400; color: var(--wgai-muted); font-size: 14px; margin-left: 6px; margin-right: auto; }
.wgai-all summary::after { content: "+"; font-size: 22px; line-height: 1; }
.wgai-all[open] summary::after { content: "\2013"; }
.wgai-all summary:focus-visible, .wgai-row:focus-visible { outline: 3px solid var(--wgai-amber); outline-offset: 2px; }
.wgai-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; border-top: 1px solid var(--wgai-line); text-decoration: none !important; color: var(--wgai-dark) !important; }
.wgai-row .wgai-nm { font-weight: 600; }
.wgai-row .wgai-meta { font-size: 13px; color: var(--wgai-muted); }
.wgai-go { color: var(--wgai-teal-dark); font-weight: 700; flex: none; }
/* opened from a trip page: "Is this trip right for me?" first */
.wgai-verdict { border-radius: 18px; padding: 16px; margin: 36px 0 6px; border: 2px solid #cfe7e3; background: #f4faf9; }
.wgai-verdict--stretch { border-color: #f6d89c; background: #fff6e6; }
.wgai-verdict--no { border-color: var(--wgai-line); background: #f3f1ea; }
.wgai-verdict .wgai-tag { margin: 0 0 4px; }
.wgai .wgai-verdict h3 { font-size: 21px; }
.wgai-verdict ul { margin: 0 0 10px; padding-left: 20px; }
.wgai-verdict li { margin-bottom: 6px; }
.wgai-verdict .wgai-btn { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.wgai-verdict + .wgai-plan { margin-top: 22px; }

/* "Pick up to two" (19 Nov 2026): the Next button under a multi-pick question. */
.wgai-max { min-height: 1.2em; margin: 10px 0 0; }
.wgai-next { margin-top: 8px; }
.wgai-next:disabled { opacity: .45; cursor: not-allowed; }
/* Phones: the LiveChat bubble sits bottom right, so Next stays clear of it (Pixel check, 19 Nov 2026). */
@media (max-width: 559px) { .wgai-next.wgai-wide { display: block; width: 66%; margin-left: auto; margin-right: auto; } }
