/* The free word check (word-check.html / word-check.js). Light only, like the whole site; Arabic in Amiri (fonts.css). */
:root{
  --wc-bg:#F2F8FC; --wc-panel:#FBFDFE; --wc-ink:#24262B; --wc-soft:#5B6672;
  --wc-brand:#A9532F; --wc-brand-deep:#6B3420; --wc-tint:#EFE1D3;
  --wc-border:#C3D8E3; --wc-border-soft:#DCE9F0; --wc-radius:12px;
  --wc-ok-bg:#DCEEE1; --wc-ok:#2E6B47; --wc-no-bg:#F8E3E0; --wc-no:#A23B32; --wc-focus:#1F5F99;
}
body.wc-body{background:var(--wc-bg); color:var(--wc-ink); font-family:'Lora',Georgia,serif; margin:0; padding:0 0 64px;}
.wc-page{max-width:640px; margin:0 auto; padding:24px 16px 0; box-sizing:border-box;}
.wc-page:focus{outline:none;}
.wc-card{background:var(--wc-panel); border:1px solid var(--wc-border-soft); border-radius:var(--wc-radius); padding:24px 22px; box-sizing:border-box;}
.wc-card[hidden]{display:none;}

/* the start */
.wc-intro{text-align:center; padding:34px 22px 28px;}
.wc-eyebrow{display:inline-block; font-family:'Karla',sans-serif; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--wc-brand-deep);
  background:var(--wc-tint); border-radius:100px; padding:5px 14px; margin:0 0 16px;}
.wc-intro{border-top:4px solid var(--wc-brand);}
.wc-intro h1{font-size:32px; line-height:1.2; color:var(--wc-brand-deep); margin:0 auto 14px; font-weight:600; max-width:16em;}
.wc-lead{font-family:'Karla',sans-serif; font-size:16px; line-height:1.55; color:var(--wc-ink); margin:0 auto 22px; max-width:30em;}
.wc-status{font-family:'Karla',sans-serif; font-size:14px; color:var(--wc-soft); min-height:1.4em; margin:12px 0 0;}
.wc-best{font-family:'Karla',sans-serif; font-size:14px; color:var(--wc-soft); margin:10px 0 0;}
.wc-best:empty{display:none;}

/* buttons */
.wc-btn{display:inline-flex; align-items:center; justify-content:center; min-height:46px; box-sizing:border-box; font-family:'Karla',sans-serif;
  font-weight:700; font-size:16px; background:var(--wc-brand); color:#fff; border:1px solid var(--wc-brand); border-radius:100px; padding:10px 24px;
  cursor:pointer; text-decoration:none; text-align:center;}
.wc-btn:hover{background:var(--wc-brand-deep); border-color:var(--wc-brand-deep);}
.wc-btn-alt{background:none; color:var(--wc-brand-deep); border-color:var(--wc-border);}
.wc-btn-alt:hover{background:var(--wc-tint); border-color:var(--wc-brand); color:var(--wc-brand-deep);}
.wc-link{background:none; border:none; padding:10px 6px; font-family:'Karla',sans-serif; font-size:15px; font-weight:600; color:var(--wc-brand-deep);
  text-decoration:underline; text-underline-offset:2px; cursor:pointer; min-height:44px;}
.wc-btn:focus-visible, .wc-link:focus-visible, .wc-opt:focus-visible, .wc-dunno:focus-visible, .wc-how summary:focus-visible{outline:3px solid var(--wc-focus); outline-offset:2px;}
/* the headings the page moves the focus to (so a screen reader reads the new word or the result) show no ring */
.wc-qhead:focus, .wc-rhead:focus{outline:none;}

/* the words */
.wc-progress{display:flex; align-items:center; gap:12px; margin-bottom:14px;}
.wc-count{font-family:'Karla',sans-serif; font-size:14px; font-weight:700; color:var(--wc-soft); margin:0; white-space:nowrap;}
.wc-bar{flex:1; height:6px; background:var(--wc-border-soft); border-radius:6px; overflow:hidden;}
.wc-bar i{display:block; height:100%; width:0; background:var(--wc-brand); transition:width .25s;}
.wc-qhead{font-family:'Karla',sans-serif; font-size:16px; font-weight:700; color:var(--wc-ink); margin:4px 0 4px; text-align:center;}
.wc-ar{font-family:'Amiri','Amiri Quran',serif; font-weight:400; font-style:normal; font-size:56px; line-height:1.75; color:var(--wc-brand-deep);
  text-align:center; margin:0 0 12px; overflow-wrap:anywhere;}
.wc-opts{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.wc-opt{display:flex; align-items:center; gap:10px; width:100%; min-height:52px; box-sizing:border-box; text-align:left; background:var(--wc-bg);
  border:1px solid var(--wc-border); border-radius:10px; padding:10px 14px; cursor:pointer; font-family:'Karla',sans-serif; font-size:16px;
  line-height:1.3; color:var(--wc-ink);}
.wc-opt:hover:not(:disabled){border-color:var(--wc-brand); background:var(--wc-tint);}
.wc-opt:disabled{cursor:default;}
.wc-opt.is-right{border-color:var(--wc-ok); background:var(--wc-ok-bg); color:var(--wc-ok); font-weight:700;}
.wc-opt.is-wrong{border-color:var(--wc-no); background:var(--wc-no-bg); color:var(--wc-no);}
.wc-opt-t{flex:1; min-width:0; overflow-wrap:anywhere;}
.wc-key{flex:none; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:6px;
  border:1px solid var(--wc-border); font-family:'Karla',sans-serif; font-size:13px; font-weight:700; color:var(--wc-soft); background:var(--wc-panel);}
.wc-dunno{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:48px; margin-top:10px; box-sizing:border-box;
  background:none; border:1px dashed var(--wc-border); border-radius:10px; font-family:'Karla',sans-serif; font-size:16px; color:var(--wc-soft); cursor:pointer;}
.wc-dunno:hover:not(:disabled){border-color:var(--wc-soft); color:var(--wc-ink);}
.wc-dunno:disabled{opacity:.5; cursor:default;}
.wc-feedback{font-family:'Karla',sans-serif; font-size:16px; min-height:1.5em; margin:14px 0 4px; text-align:center;}
.wc-feedback.is-right{color:var(--wc-ok); font-weight:700;}
.wc-feedback.is-wrong{color:var(--wc-ink);}
.wc-next{display:flex; margin:6px auto 0; scroll-margin-bottom:12px;}
.wc-next[hidden]{display:none;}
.wc-keys{font-family:'Karla',sans-serif; font-size:12.5px; color:var(--wc-soft); text-align:center; margin:16px 0 0; display:none;}
@media (hover:hover) and (pointer:fine){ .wc-keys{display:block;} }

/* the result */
.wc-result{text-align:center;}
.wc-rhead{font-size:26px; line-height:1.3; color:var(--wc-brand-deep); margin:4px 0 10px; font-weight:600;}
.wc-rline{font-family:'Karla',sans-serif; font-size:16px; line-height:1.55; margin:0 auto 14px; max-width:32em;}
.wc-miles-cap{font-family:'Karla',sans-serif; font-size:14px; font-weight:700; color:var(--wc-soft); margin:4px 0 8px;}
.wc-miles-cap[hidden]{display:none;}
.wc-miles{list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:10px; padding:0; margin:0 0 18px;}
.wc-miles[hidden]{display:none;}
.wc-miles li{display:flex; flex-direction:column; align-items:center; min-width:96px; padding:10px 14px; border:1px solid var(--wc-border-soft);
  border-radius:10px; background:var(--wc-bg); box-sizing:border-box;}
.wc-mile-w{font-family:'Karla',sans-serif; font-size:13px; color:var(--wc-soft);}
.wc-mile-p{font-family:'Karla',sans-serif; font-size:22px; color:var(--wc-brand-deep);}
.wc-reader{margin:6px 0 4px;}
.wc-small{font-family:'Karla',sans-serif; font-size:14px; line-height:1.5; color:var(--wc-soft); margin:6px auto 0; max-width:34em;}
.wc-small:empty{display:none;}
.wc-how{text-align:left; margin:18px 0 0; border-top:1px solid var(--wc-border-soft); padding-top:12px;}
.wc-how summary{font-family:'Karla',sans-serif; font-size:15px; font-weight:700; color:var(--wc-brand-deep); cursor:pointer; min-height:32px; display:list-item;}
.wc-how p{font-family:'Karla',sans-serif; font-size:15px; line-height:1.6; margin:8px 0 0;}
.wc-next-steps{display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:20px 0 0;}
.wc-share{display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; margin:18px 0 0;}

/* the skip link (keyboard users): off screen until it has the focus */
.wc-body .skip-link{position:absolute; left:12px; top:-120px; z-index:60; background:var(--wc-brand-deep); color:#fff; font-family:'Karla',sans-serif;
  font-weight:700; font-size:15px; padding:10px 16px; border-radius:8px; text-decoration:none;}
.wc-body .skip-link:focus{top:12px;}

@media (max-width:520px){
  .wc-page{padding:16px 16px 0;}
  .wc-card{padding:20px 16px;}
  .wc-intro h1{font-size:26px;}
  .wc-ar{font-size:46px;}
  .wc-opts{grid-template-columns:1fr;}
  .wc-rhead{font-size:22px;}
  .wc-next-steps .wc-btn, .wc-reader .wc-btn{width:100%;}
}
/* short phones (an iPhone in Safari, the SE, older Android): the word, its answers and Next fit above the tab bar
   (word-check.js also scrolls Next into view when a long meaning still pushes it down) */
@media (max-width:600px) and (max-height:760px){
  .wc-page{padding-top:10px;}
  .wc-card.wc-quiz{padding:14px 14px 16px;}
  .wc-progress{margin-bottom:6px;}
  .wc-qhead{margin:0 0 2px;}
  .wc-ar{font-size:40px; line-height:1.55; margin-bottom:8px;}
  .wc-opts{gap:8px;}
  .wc-opt{min-height:46px; padding:8px 12px;}
  .wc-dunno{min-height:44px; margin-top:8px;}
  .wc-feedback{margin:8px 0 2px;}
}
.wc-vh{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
