/* Qnna News OS v1.72.118 — Customer area inspired by the requested auth layout.
 * Styling only; all OTP/Omdaa, membership policy and permissions remain in core.
 * Scoped to the public member modal to avoid modifying the newspaper design. */
.qnna-member-modal .qnna-auth-reference-dialog{
  --qnna-auth-ink:#040216;--qnna-auth-brand:var(--qnna-primary,#10132f);
  width:min(600px,calc(100vw - 24px))!important;max-width:600px!important;
  padding:28px 28px 26px!important;border:1px solid #e6edf1!important;
  border-radius:24px!important;background:#fff!important;color:var(--qnna-auth-ink)!important;
  box-shadow:0 26px 90px rgba(0,0,23,.28),0 0 0 1px rgba(255,255,255,.5)!important;
  max-height:calc(var(--qnna-auth-vh,100dvh) - 30px)!important;overflow:auto!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;
  box-sizing:border-box;direction:rtl;text-align:right;
}
.qnna-auth-reference-dialog *{box-sizing:border-box}
.qnna-member-modal .qnna-auth-reference-dialog .qnna-member-close{
  top:17px!important;left:17px!important;background:#f3f6f8!important;border:1px solid #e4ebef!important;
  border-radius:50%!important;width:38px!important;height:38px!important;z-index:3
}
.qnna-auth-ref-heading{display:flex;align-items:center;gap:15px;padding:1px 4px 20px;margin:0;border-bottom:1px solid #e9eff2}
.qnna-auth-ref-emblem{flex:0 0 53px;height:53px;border-radius:16px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,var(--qnna-auth-brand),#404160);box-shadow:0 9px 20px rgba(20,23,49,.16)}
.qnna-auth-ref-emblem .qnna-icon{width:27px;height:27px;stroke:currentColor;stroke-width:1.9}
.qnna-auth-ref-heading-copy{min-width:0;padding-left:27px}
.qnna-auth-ref-kicker{display:block;font-size:13px!important;font-weight:800;color:#5f5e6f;line-height:1.5;margin-bottom:2px}
.qnna-auth-ref-heading h2{font:900 25px/1.4 inherit!important;line-height:1.4!important;letter-spacing:0;margin:0!important;color:#030018!important}
.qnna-auth-ref-heading p{font-size:12px;line-height:1.7;color:#6f6e78;margin:2px 0 0}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;
  margin:18px 0 16px!important;padding:6px!important;
  background:#f2f6f8!important;border:1px solid #e8eef2;border-radius:15px!important;
  align-items:stretch!important;
}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs button,
.qnna-auth-reference-dialog .qnna-auth-ref-tabs .qnna-auth-ref-link-tab{
  min-height:69px!important;min-width:0;padding:9px 4px!important;
  border:1px solid transparent!important;border-radius:12px!important;
  background:transparent!important;box-shadow:none!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px!important;
  text-align:center!important;color:#363642!important;position:relative;
  font:800 12px/1.35 inherit!important;line-height:1.35!important;cursor:pointer;text-decoration:none!important;
  transition:background .16s ease,color .16s ease,border-color .16s ease
}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs button > span:first-child,
.qnna-auth-reference-dialog .qnna-auth-ref-link-tab > span:first-child{font-size:20px;line-height:1.2}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs .qnna-auth-tab-main{font:800 12px/1.35 inherit!important;line-height:1.4!important;white-space:normal!important;word-break:normal;color:inherit!important}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs button.is-active{
  background:#fff!important;color:var(--qnna-auth-brand)!important;
  border-color:#e9e8ef!important;box-shadow:0 4px 12px rgba(6,4,25,.09)!important;
}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs button:hover:not(.is-active),
.qnna-auth-reference-dialog .qnna-auth-ref-tabs a:hover{background:#e8eff3!important;color:#0b0820!important}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs [role="tab"]:focus-visible,
.qnna-auth-reference-dialog .qnna-auth-ref-tabs a:focus-visible{
  outline:3px solid rgba(57,58,93,.35)!important;outline-offset:2px
}
.qnna-auth-reference-dialog [data-qnna-auth-panel][hidden]{display:none!important}
.qnna-auth-ref-panel-heading{display:flex;align-items:center;gap:9px;font-size:16px;color:#08051a;font-weight:900;padding:1px 1px 12px}
.qnna-auth-ref-panel-heading > span{font-size:20px}
.qnna-auth-reference-dialog .qnna-member-form{margin-top:0!important;gap:13px!important}
.qnna-auth-reference-dialog .qnna-member-field{
  height:53px!important;padding:0 13px!important;border:1px solid #dce6ec!important;
  border-radius:11px!important;box-shadow:none!important;background:#fbfdfe!important
}
.qnna-auth-reference-dialog .qnna-member-field:focus-within{border-color:#707095!important;box-shadow:0 0 0 3px rgba(81,81,115,.11)!important}
.qnna-auth-reference-dialog .qnna-member-field input{font-size:15px!important;min-width:0!important}
.qnna-auth-reference-dialog .qnna-member-field .qnna-icon{color:#7a7987}
.qnna-auth-reference-dialog .qnna-member-row{font-size:12px!important;margin:0 3px 2px}
.qnna-auth-reference-dialog .qnna-member-remember{font-size:12px!important}
.qnna-auth-reference-dialog .qnna-member-submit{
  height:51px!important;min-height:51px!important;border-radius:11px!important;
  background:linear-gradient(135deg,var(--qnna-auth-brand),#383858)!important;
  box-shadow:0 8px 17px rgba(20,23,51,.13)!important;font-size:16px!important
}
.qnna-auth-reference-dialog .qnna-member-register{border:0;background:none;padding:6px 0;font:inherit;font-size:12px!important;cursor:pointer}
.qnna-auth-reference-dialog .qnna-member-register strong{color:var(--qnna-auth-brand)}
/* Retain the tested WhatsApp OTP input and the editorial member registration fields. */
.qnna-auth-reference-dialog .qnna-wa-auth{margin-top:0!important;gap:11px!important}
.qnna-auth-reference-dialog .qnna-wa-head{background:#f3faf7;border-color:#d9ede2;border-radius:11px;padding:10px 12px}
.qnna-auth-reference-dialog .qnna-wa-head strong{font-size:14px}
.qnna-auth-reference-dialog .qnna-wa-head small{font-size:11px}
.qnna-auth-reference-dialog .qnna-wa-mode{display:none!important} /* top four tabs replace duplicate subnavigation */
.qnna-auth-reference-dialog .qnna-wa-fallback{display:none!important}
.qnna-auth-reference-dialog .qnna-wa-register-fields{gap:10px!important}
.qnna-auth-reference-dialog .qnna-wa-register-fields input,
.qnna-auth-reference-dialog .qnna-wa-register-fields select,
.qnna-auth-reference-dialog .qnna-wa-phone>div,
.qnna-auth-reference-dialog .qnna-otp-email input{border-radius:11px!important;background:#fbfdfe!important}
.qnna-auth-reference-dialog .qnna-wa-send,
.qnna-auth-reference-dialog .qnna-otp-actions [data-qnna-wa-verify]{min-height:49px;border-radius:11px}
.qnna-auth-ref-recovery p{font-size:13px;line-height:1.9;color:#53525d;margin:0 0 18px}
.qnna-auth-ref-recovery-form{display:grid;gap:12px}
.qnna-auth-ref-recovery-form label{font-size:13px;font-weight:800;color:#1b1b2b}
.qnna-auth-ref-recovery-form input{height:53px;width:100%;border:1px solid #dce6ec;border-radius:11px;background:#fbfdfe;padding:0 13px;font:inherit;font-size:15px;outline:none}
.qnna-auth-ref-recovery-form input:focus{border-color:#58587c;box-shadow:0 0 0 3px rgba(81,81,115,.12)}
.qnna-auth-ref-return{display:block;margin:13px auto 0;background:transparent;border:0;color:var(--qnna-auth-brand);font:inherit;font-weight:800;font-size:13px;cursor:pointer;padding:8px 12px}
@media(max-width:600px){
  .qnna-member-modal .qnna-auth-reference-dialog{
    width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
    max-height:calc(var(--qnna-auth-vh,100dvh) - 16px)!important;
    padding:20px 15px 18px!important;border-radius:19px!important;
    scrollbar-gutter:auto!important
  }
  .qnna-auth-ref-heading{gap:11px;padding:0 2px 14px!important}
  .qnna-auth-ref-emblem{height:46px;flex-basis:46px;border-radius:13px}
  .qnna-auth-ref-emblem .qnna-icon{width:22px;height:22px}
  .qnna-auth-ref-heading h2{font-size:20px!important}
  .qnna-auth-ref-heading p{font-size:11px}
  .qnna-auth-reference-dialog .qnna-auth-ref-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;
    margin:13px 0 14px!important;padding:5px!important
  }
  .qnna-auth-reference-dialog .qnna-auth-ref-tabs button,
  .qnna-auth-reference-dialog .qnna-auth-ref-tabs a{min-height:54px!important;flex-direction:row!important;gap:6px!important;padding:7px 5px!important}
  .qnna-auth-reference-dialog .qnna-auth-ref-tabs button > span:first-child,
  .qnna-auth-reference-dialog .qnna-auth-ref-tabs a > span:first-child{font-size:17px}
  .qnna-auth-reference-dialog .qnna-auth-ref-tabs .qnna-auth-tab-main{font-size:12px!important}
  .qnna-auth-reference-dialog .qnna-member-field{height:52px!important}
  .qnna-auth-reference-dialog .qnna-member-submit{height:50px!important}
}
@media(max-width:340px){
  .qnna-member-modal .qnna-auth-reference-dialog{padding-inline:11px!important}
  .qnna-auth-reference-dialog .qnna-auth-ref-tabs .qnna-auth-tab-main{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.qnna-auth-reference-dialog .qnna-auth-ref-tabs button{transition:none!important}}

/* v1.72.118 — scoped usability upgrades: touch, focus, and narrow phones. */
.qnna-auth-reference-dialog .qnna-auth-ref-tabs button,
.qnna-auth-reference-dialog .qnna-auth-ref-tabs a{touch-action:manipulation}
.qnna-auth-reference-dialog .qnna-member-field input,
.qnna-auth-reference-dialog .qnna-wa-phone input,
.qnna-auth-reference-dialog .qnna-otp-email input,
.qnna-auth-reference-dialog .qnna-auth-ref-recovery-form input{font-size:16px!important}
.qnna-auth-reference-dialog .qnna-member-submit:focus-visible,
.qnna-auth-reference-dialog .qnna-wa-send:focus-visible,
.qnna-auth-reference-dialog .qnna-auth-ref-return:focus-visible,
.qnna-auth-reference-dialog .qnna-auth-ref-recovery-form input:focus-visible{outline:3px solid #56567e!important;outline-offset:3px}
.qnna-auth-reference-dialog [data-qnna-auth-panel][hidden],
.qnna-auth-reference-dialog [data-qnna-wa-register-fields][hidden]{display:none!important}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs [aria-selected="true"]{background:#fff!important;color:var(--qnna-auth-brand)!important;border-color:#e9e8ef!important}
@media(max-width:600px){
 .qnna-auth-reference-dialog .qnna-auth-ref-tabs button,
 .qnna-auth-reference-dialog .qnna-auth-ref-tabs a{min-height:48px!important}
 .qnna-auth-ref-panel-heading{padding-bottom:10px}
}

/* v1.72.151: one set of entry tabs and a compact mobile account form. */
.qnna-auth-reference-dialog .qnna-auth-ref-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr))!important;gap:7px;padding:7px}
.qnna-auth-reference-dialog .qnna-auth-ref-tabs>[role="tab"],.qnna-auth-reference-dialog .qnna-auth-ref-link-tab{min-width:0;min-height:54px!important;padding:8px!important;font-size:13px;white-space:normal}
.qnna-auth-reference-dialog .qnna-wa-head,.qnna-auth-reference-dialog .qnna-wa-mode{display:none}
.qnna-auth-reference-dialog .qnna-wa-auth{margin-top:0;gap:12px}
.qnna-auth-reference-dialog [data-qnna-auth-panel][hidden]{display:none!important}
@media(max-width:600px){
 .qnna-auth-reference-dialog .qnna-auth-ref-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px}
 .qnna-auth-reference-dialog .qnna-auth-ref-heading{margin-bottom:14px}
 .qnna-auth-reference-dialog .qnna-auth-ref-heading h2{font-size:22px!important}
 .qnna-auth-reference-dialog .qnna-auth-ref-tabs>[role="tab"]{min-height:48px!important;font-size:12px}
 .qnna-auth-reference-dialog .qnna-auth-ref-tabs>[role="tab"]>span:first-child{font-size:17px}
}
