/* Design finishing layer (design review, 5 Dec 2026). Loaded last on every public page by qq-design.cjs.
   Brand only: green #005C45 / #00382B, orange #F59A16 for key actions, charcoal #363636, mint #E6F2EC. */

/* ---------- Everyday details */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
::selection{background:#CDE8DA;color:#00382B}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #F59A16;outline-offset:2px;border-radius:6px}
img{max-width:100%}
input[type=checkbox],input[type=radio],input[type=range],progress{accent-color:#005C45}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}

/* ---------- One footer for every page */
footer.sitefooter.qq-foot{display:block!important;position:relative;max-width:none!important;width:100%;margin:40px 0 0!important;padding:0!important;
  background:#00382B!important;color:#D9ECE3!important;border:0!important;box-shadow:none!important;clip-path:none!important;font-size:15px;line-height:1.7}
.qq-foot::before{content:"";display:block;height:4px;background:linear-gradient(90deg,#005C45 0%,#F59A16 50%,#005C45 100%)}
.qq-foot-in{max-width:1104px;margin:0 auto;padding:40px 24px 28px;display:grid;gap:28px;grid-template-columns:1fr}
@media (min-width:720px){.qq-foot-in{grid-template-columns:repeat(3,minmax(0,1fr))}.qq-foot-brand{grid-column:1/-1}}
@media (min-width:1024px){.qq-foot-in{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:40px;padding-top:48px}.qq-foot-brand{grid-column:auto}}
.qq-foot-brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.qq-foot-logo{display:inline-flex}
.qq-foot img{filter:brightness(0) invert(1);width:104px!important;height:auto;display:block}
.qq-foot-brand p{margin:0;max-width:34ch;color:#BFDCCF!important;font-size:14.5px}
a.qq-foot-sos{display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border-radius:999px;background:#F59A16;color:#1d1d1d!important;font-weight:700;text-decoration:none}
a.qq-foot-sos:hover{background:#FFB23E}
.qq-foot-col{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.qq-foot-col h2{margin:0 0 8px;font-size:13px;font-weight:700;letter-spacing:0;color:#F7C77A;text-transform:none}
.qq-foot-col a,.qq-foot-info .qq-fpages a{display:inline-flex;align-items:center;min-height:36px;color:#fff!important;font-weight:500;text-decoration:none;font-size:15px}
.qq-foot-col a:hover,.qq-foot-info .qq-fpages a:hover{color:#F7C77A!important;text-decoration:underline;text-underline-offset:4px}
.qq-foot-info .qq-fpages{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0;padding:0;border:0}
.qq-foot-bottom{max-width:1104px;margin:0 auto;padding:18px 24px 28px;border-top:1px solid rgba(255,255,255,.12);display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px}
.qq-foot-bottom p{margin:0;font-size:13px!important;color:#A9CBBC!important}
@media (max-width:719px){.qq-foot-in{grid-template-columns:repeat(2,minmax(0,1fr))}.qq-foot-brand{grid-column:1/-1}.qq-foot-bottom{flex-direction:column}}

/* ---------- Free tools: product choice as clear chips */
.qq-prod-pick label{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1.5px solid #D5E3DB;border-radius:999px;background:#fff;color:#363636;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.qq-prod-pick label:hover{border-color:#005C45}
.qq-prod-pick label:has(input:checked){background:#E6F2EC;border-color:#005C45;color:#00382B}
.qq-prod-pick input{width:18px;height:18px;margin:0}
#storageMsg:empty,.notice .smallstatus:empty{min-height:0;margin:0}

/* ---------- Urgent help button on the craving page: readable second line */
.nowbtn small{color:#3D2600!important;opacity:1!important}

/* ---------- Assessment: the site header already shows the logo; keep the progress bar only */
.shell > .header .brand{display:none}
.shell > .header{padding:0!important;background:transparent!important}
.shell > .header .progress-area:not([hidden]){padding:14px 4px 6px}

/* Assessment: its footer sits inside the narrow column; let it run edge to edge like on the other pages */
.shell > footer.qq-foot{width:100vw;max-width:100vw!important;margin-inline:calc(50% - 50vw)!important}
body:has(.shell > footer.qq-foot){overflow-x:clip}
.shell:has(> footer.qq-foot){padding-bottom:0!important}
.qq-foot-col a,.qq-foot-info .qq-fpages a{font-weight:600!important}

/* ---------- Reading pages: comfortable line length */
.qq-privacy p,.qq-privacy li,.qq-page p,.qq-page li{max-width:72ch}

/* Menus on the smallest phones (320px): the five links fit on one line */
@media (max-width:359px){html body .qqbar-nav,html body[data-qq-polish] .siteheader nav.mainnav,html body .siteheader nav.mainnav{gap:0!important;justify-content:space-between!important}html body .qqbar-nav a,html body[data-qq-polish] .siteheader nav.mainnav a,html body .siteheader nav.mainnav a{padding-inline:5px!important;font-size:12.5px!important}}

/* ---------- One typeface and one type scale on every page (5 Dec 2026)
   The same font stack everywhere: the phone's Arabic font first (SF Arabic on iPhone), as most pages already used
   and the founder prefers (a served Noto Sans Arabic was tried and not liked). Page titles: one scale. */
:root{--qq-font:"SF Arabic","Segoe UI","Noto Sans Arabic","Geeza Pro",Tahoma,system-ui,sans-serif}
body[data-qq-polish]{--qq-ui-font:var(--qq-font)}
html body:not(.qq-no-font),html body .qq-ann{font-family:var(--qq-font)!important}
html body :where(button,input,select,textarea,h1,h2,h3,h4,p,a,li,label,small,b,strong,span,summary,legend){font-family:inherit}
html body .shell,html body .shell *:not(svg):not(svg *){font-family:var(--qq-font)!important}

/* Page titles: one size in the dark hero of every page, one size on reading pages */
html body .site-main :is(.v4hero,.hero,.journeyhero,.qq-tools-intro) h1{font-size:clamp(1.9rem,1.2rem + 3vw,3.4rem)!important;line-height:1.25!important;font-weight:800!important}
html body .site-main :is(.v4hero,.hero,.journeyhero,.qq-tools-intro) > p:not(.eyebrow):not(.small),
html body .site-main :is(.v4hero,.hero,.journeyhero) .v4herotext > p:not(.eyebrow):not(.small){font-size:clamp(1.0625rem,1rem + .35vw,1.25rem)!important;line-height:1.85}
html body .site-main .qq-privacy h1,html body .site-main .qq-page h1,html body .site-main .member-login h1,html body .shell .panel > h1{font-size:clamp(1.75rem,1.25rem + 1.8vw,2.5rem)!important;line-height:1.3!important;font-weight:800!important}
/* Body text on the assessment matched to the rest of the site */
html body .shell .panel p.sub{font-size:17px!important;line-height:1.8}
/* Menu: the same weight on every page */
html body .siteheader .mainnav a,html body .qqbar-nav a{font-weight:600!important}
html body .siteheader .mainnav a[aria-current],html body .qqbar-nav a[aria-current]{font-weight:700!important}
html body .shell .panel :is(button,.btn,a.btn){font-size:16px}
html body .qqbar,html body .qqbar *,html body .siteheader,html body .siteheader *,html body .qq-foot,html body .qq-foot *{font-family:var(--qq-font)!important}
/* Tighter menu spacing on phones so all five links always fit */
@media (max-width:420px){html body[data-qq-polish] .qqbar-nav,html body[data-qq-polish] .siteheader nav.mainnav,html body .qqbar-nav,html body .siteheader nav.mainnav{gap:0!important;justify-content:space-between!important}
  html body[data-qq-polish] .qqbar-nav a,html body[data-qq-polish] .siteheader nav.mainnav a,html body .qqbar-nav a,html body .siteheader nav.mainnav a{padding-inline:6px!important;font-size:13px!important}}
@media (max-width:359px){html body[data-qq-polish] .qqbar-nav a,html body[data-qq-polish] .siteheader nav.mainnav a,html body .qqbar-nav a,html body .siteheader nav.mainnav a{padding-inline:3px!important;font-size:12px!important}}
