/* kam-base.css (9 Nov 2026) — the shared base loaded LAST in every page of kamyeklaf.sa, phase 1 of the design unification.
   Scope on purpose: fonts that work from every folder, form controls that inherit the font, one FAQ component for the three
   families (details.kinfo / details.faq-q / details.privacy), one footer treatment. Colours, logo, page structure and the
   family stylesheets stay; this file only fills gaps and overrides the few rules that broke reading. */

/* 1) Fonts: the four faces of landing.css with absolute URLs, so /contractors, /account and every other folder get Noto instead of Tahoma/Georgia */
@font-face{font-family:"Noto Kufi Arabic";font-style:normal;font-weight:400 700;font-display:optional;src:url(/kamyeklaf/fonts/noto-kufi-arabic-arabic.woff2?v=1) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:"Noto Kufi Arabic";font-style:normal;font-weight:400 700;font-display:optional;src:url(/kamyeklaf/fonts/noto-kufi-arabic-latin.woff2?v=1) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:400 700;font-display:optional;src:url(/kamyeklaf/fonts/noto-sans-arabic-arabic.woff2?v=1) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:400 700;font-display:optional;src:url(/kamyeklaf/fonts/noto-sans-arabic-latin.woff2?v=1) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
body,body.member-page,.sbs-experience,.sbs-exp-launcher-mark,.sbs-exp-heading h2,.mode-tag{font-family:"Noto Sans Arabic","Kam Sans Fallback",Tahoma,Arial,sans-serif}
h1,h2,h3,h4,.steps b,.network-guide>span,.co-big,.intro-photo .photo-mark{font-family:"Noto Kufi Arabic","Kam Kufi Fallback","Noto Sans Arabic",Tahoma,Arial,sans-serif}
button,input,select,textarea{font-family:inherit}

/* 2) One FAQ component for the three families: a separator, breathing room, a readable summary with a turning arrow */
details.kinfo,details.faq-q,details.privacy{display:block;margin:0;padding:10px 0;border-top:1px solid #dfe3dc}
details.kinfo:first-of-type,details.faq-q:first-of-type,details.privacy:first-of-type{border-top:0}
details.kinfo>summary,details.faq-q>summary,details.privacy>summary{list-style:none;cursor:pointer;font-size:16px;font-weight:600;line-height:1.6;padding:6px 28px 6px 0;position:relative;opacity:1;color:#1b2a25;user-select:none}
details.kinfo>summary::-webkit-details-marker,details.faq-q>summary::-webkit-details-marker,details.privacy>summary::-webkit-details-marker{display:none}
details.kinfo>summary::before,details.faq-q>summary::before,details.privacy>summary::before{content:"";position:absolute;right:6px;top:14px;width:9px;height:9px;border-right:2px solid #8f6318;border-bottom:2px solid #8f6318;transform:rotate(45deg);transition:transform .2s}
details.kinfo[open]>summary::before,details.faq-q[open]>summary::before,details.privacy[open]>summary::before{transform:rotate(-135deg);top:18px}
details.kinfo>div,details.faq-q>div,details.privacy>div,details.kinfo>p,details.faq-q>p,details.privacy>p{margin:4px 0 6px;padding:0 28px 0 0;font-size:15px;line-height:1.85;color:#1b2a25}
details.kinfo>div p,details.faq-q>div p,details.privacy>div p{margin:0 0 8px;font-size:15px;line-height:1.85}
details.kinfo-small>summary{font-size:14px;font-weight:400;color:#55655d}
html[dir=ltr] details.kinfo>summary,html[dir=ltr] details.faq-q>summary,html[dir=ltr] details.privacy>summary{padding:6px 0 6px 28px}
html[dir=ltr] details.kinfo>summary::before,html[dir=ltr] details.faq-q>summary::before,html[dir=ltr] details.privacy>summary::before{right:auto;left:6px}

/* 3) Footer: readable sizes, links that wrap on one row with even gaps, the legal line in at most two lines */
footer{font-size:13px}
footer nav{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:13px;align-items:center}
footer nav a{white-space:nowrap;flex:0 0 auto;padding:6px 0;line-height:1.4}
footer .legal{font-size:12.5px;line-height:1.9;max-width:72ch}
footer .legal a{text-underline-offset:3px}
@media(max-width:650px){footer nav{gap:8px 18px}footer nav a{padding:8px 0}}

/* 4) Reading (phase 2, 9 Nov 2026): body copy never below 15px on the program and help pages, a readable measure for long
   content pages, one heading weight across the families; labels, tags and fine print keep their small sizes on purpose */
main.co ul>li,main.co td,main.co article>p,main.co .co-roi-row>span{font-size:15px}
main.co th{font-size:14px}
main.co .co-lead{font-size:16px}
details.privacy>a{font-size:15px}
.eyebrow{font-size:13px}
h1,h2,h3{font-weight:600!important} /* the families set 500 or 700 with heavier selectors (main.co h2 …); one weight needs the override */
body.about main>p,body.about main>ul,body.about main>ol,body.member-page .panel>p,body.member-page .panel>ul,body.member-page .panel>ol{max-width:70ch}
.welcome .intro{max-width:62ch;margin-left:auto;margin-right:auto}

/* 5) Mobile (phase 3, 9 Nov 2026): every link in the header, footer and fine print is a 44px tap target on phones, and the
   kam-family header (help, privacy, contractors, account) drops its links to one full-width row under the logo instead of
   stacking them beside it */
@media(max-width:650px){
header nav a,footer nav a,details.privacy>a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.fine a,.next a,.help-links a,p.legal a,.sec-note a,.info a,.sub-back,.sub-foot a,.kam-mail,.pay-go a,.faq a{display:inline-block;padding:10px 2px}
body.member-page header{flex-wrap:wrap;gap:8px 14px;align-items:center}
body.member-page header nav{width:100%!important;min-width:100%;flex:1 1 100%;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:2px 8px;font-size:14px}
body.member-page header nav a{white-space:nowrap;padding:0 2px}
body.member-page header nav .language-toggle{padding:6px 10px;min-height:40px}
}

/* 6) Harmony (phase 4, 9 Nov 2026): the three header shapes, the three footers, the three button systems and the page titles
   share one set of measures, so moving between the marketing pages, the help/account pages and the program pages feels like
   one site. Markup is untouched; only measures, colours of chrome and radii are aligned */
header{background:#f1f2ee;border-bottom:1px solid #cfd7d2;padding:14px 5%;min-height:82px;box-sizing:border-box;align-items:center}
header .brand img,header .kam-brand img,header .sub-brand img,header a.sbs img{width:170px;height:auto;max-width:48vw}
header nav a{font-size:14px!important;color:#1b2a25}
header nav a:hover{color:#8f6318}
.language-toggle{border-radius:30px}
footer{border-top:1px solid #cfd7d2;color:#55655d;padding:22px 5%}
/* the families set these with heavier selectors (.lane-actions .btn-primary, .plan-card .plan-tax …); one measure needs the override */
.btn-primary,.btn-ghost,.strip-button,a.primary,.primary,.secondary,.pay-go a{min-height:52px;border-radius:12px!important;font-size:16px!important;font-weight:700;box-sizing:border-box}
h1{font-size:44px}
.plan-tax{font-size:14px!important}
@media(max-width:650px){
header{padding:12px 16px;min-height:64px}
header nav{gap:2px 10px}
header nav a{padding:0 2px}
header .brand img,header .kam-brand img,header .sub-brand img,header a.sbs img{width:120px}
h1{font-size:30px}
footer{padding:18px 16px}
}

/* 7) Leftovers (10 Nov 2026): one title size on every page (the families used a fixed 44px or 3.4vw/3.5vw clamps, so the
   help page and the subscribe page differed by 8px at the same width), and the help/account wordmark at the shared 170px
   (member-visual.css sets 180px with !important and two classes, so the selector here carries two classes too). Nothing else changes */
h1{font-size:clamp(30px,3.5vw,44px)!important}
.member-page header .member-wordmark,header .member-wordmark{width:170px!important}
@media(max-width:650px){
h1{font-size:30px!important}
.member-page header .member-wordmark,header .member-wordmark{width:120px!important}
}

/* 8) Layout stability (10 Nov 2026, search plan 5.4; PageSpeed measured CLS 0.19 on a slow mobile connection): the phone header
   no longer flips between one and two rows of links when the web font replaces the system font (smaller gap, 13px links, a
   tighter language button); the logo carries its aspect ratio so it is sized before it loads; and on Windows the fallback font
   (Tahoma) is size-matched to the web fonts (measured: Noto Sans ≈ 0.93–0.98 of Tahoma, Noto Kufi ≈ 1.00–1.05) so the swap moves
   the text as little as possible. The English edition keeps its own body rule in ui-language.css (Latin text, small subsets). */
@font-face{font-family:"Kam Sans Fallback";src:local("Tahoma");size-adjust:94%}
@font-face{font-family:"Kam Kufi Fallback";src:local("Tahoma");size-adjust:103%}
img[src$="kamyeklaf-original-logo.png"]{aspect-ratio:554/161}
@media(max-width:650px){
header nav{gap:2px 8px}
header nav a{font-size:13px!important}
header nav .language-toggle{min-width:0;padding:8px 9px;gap:6px}
}

/* 7) Footer grid (13 Nov 2026): brand beside the links, legal block under a hairline, stacked on phones. Only footers that carry
   a nav (the shared public footer) take the grid; the others keep the flex treatment above. */
footer:has(>nav){display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-areas:"brand nav social" "legal legal legal";column-gap:28px;row-gap:10px;align-items:center;padding:24px 5% 92px}
footer:has(>nav)>span{grid-area:brand;white-space:nowrap;font-size:14px;font-weight:700;color:#123f35}
footer:has(>nav)>nav{grid-area:nav;justify-content:flex-start;gap:4px 18px;margin:0}
footer:has(>nav)>nav a{padding:0 2px}
footer:has(>nav)>.legal{grid-area:legal;margin:4px 0 0;padding-top:14px;border-top:1px solid #e1ddd0;text-align:start;max-width:none;font-size:12px;line-height:2;color:#55655d}
footer:has(>nav)>.legal a{text-decoration:underline;text-underline-offset:3px}
footer:has(>nav)>.social{grid-area:social}
footer .social{display:flex;align-items:center;gap:8px;margin:0}
footer .social-label{font-size:12px;color:#55655d;margin-inline-end:2px}
footer .social-link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1px solid #cfd7d2;background:#fffef9;color:#123f35;transition:background .15s,color .15s,border-color .15s}
footer .social-link:hover,footer .social-link:focus-visible{background:#123f35;color:#fffaf0;border-color:#123f35}
@media(max-width:650px){
footer:has(>nav){grid-template-columns:1fr;grid-template-areas:"brand" "nav" "social" "legal";row-gap:6px;padding:20px 16px 96px}
footer .social{margin:4px 0 2px}footer .social-link{width:44px;height:44px}
footer:has(>nav)>span{white-space:normal}
footer:has(>nav)>nav{gap:0 14px}
footer:has(>nav)>.legal{font-size:11.5px}
}
