@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');
:root{--ink:#142b4d;--brand:#1068f1;--action:#095bd8;--paper:#f7f9fd;--muted:#586a83;--line:#dce5f2;--soft:#eaf2ff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Kufi Arabic',Arial,sans-serif;line-height:1.8}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,select,input{outline-offset:5px}header{max-width:1320px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:22px 5%;border-bottom:1px solid var(--line)}.brand{font-size:42px;font-weight:800;line-height:1;display:flex;align-items:center;gap:12px}.brand span{font-size:11px;letter-spacing:3px;border-right:1px solid #bbb;padding-right:12px}nav{display:flex;gap:35px;font-size:14px}nav .active{color:var(--action)}.country{font-size:12px;color:var(--muted)}select{border:0;background:transparent;color:var(--ink);padding:8px;cursor:pointer}main{max-width:1200px;margin:auto;padding:0 28px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center;padding:65px 0}.eyebrow{font-size:12px;letter-spacing:1px;color:var(--action);font-weight:700}.hero h1{font-size:clamp(38px,4.5vw,64px);line-height:1.45;margin:20px 0}.hero h1 em{font-style:normal;color:var(--brand)}.hero p{max-width:460px;color:var(--muted);font-size:15px}.search{display:flex;background:white;border:1px solid var(--line);padding:7px;border-radius:8px;margin-top:27px;gap:7px}.search input{min-width:0;flex:1;border:0;padding:8px;background:transparent}.search button,.primary{background:var(--action);color:white;border:0;border-radius:5px;padding:10px 25px;cursor:pointer}.small{font-size:11px;color:var(--muted)}.hero-image{position:relative;height:435px;border-radius:120px 8px 8px 8px;background:#e3edfc url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1000&q=85') center/cover}.image-note{position:absolute;bottom:22px;right:-22px;background:var(--paper);border:1px solid var(--line);padding:17px 25px;border-radius:6px;box-shadow:0 10px 30px #142b4d12}.image-note strong{display:block}.image-note span{font-size:12px;color:var(--muted)}.principles{display:flex;justify-content:space-around;gap:20px;padding:21px 0;border-block:1px solid var(--line);font-size:13px}.principles b{font-size:19px;margin-left:9px;color:var(--brand)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:48px 0 22px}.section-head h2{font-size:26px;margin:0}.section-head p{margin:0;color:var(--muted);font-size:13px}.text-button{border:0;background:none;color:var(--action);cursor:pointer}.categories{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.category{border:1px solid var(--line);background:transparent;color:var(--ink);text-align:right;padding:20px 18px;border-radius:7px;cursor:pointer;transition:.2s}.category:hover,.category.selected{background:var(--soft);border-color:#9ebff5;transform:translateY(-2px)}.icon{font-size:25px;display:block;margin-bottom:12px}.category strong{display:block;font-size:14px}.category small{color:var(--muted);font-size:10px}.feature{display:grid;grid-template-columns:1.15fr 1fr;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff}.feature img{width:100%;height:350px;object-fit:cover}.feature-body{padding:36px}.tag{display:inline-block;background:var(--soft);color:#1456b3;border-radius:4px;padding:3px 10px;font-size:11px}.feature h3{font-size:27px;line-height:1.6;margin:14px 0}.feature p{font-size:13px;color:var(--muted)}.meta{font-size:12px;color:var(--muted);margin:18px 0}.learn{background:#eaf2ff;border-radius:8px;padding:35px;margin:45px 0;display:flex;align-items:center;justify-content:space-between}.learn h3{margin:0;font-size:23px}.learn p{font-size:13px;margin-bottom:0;color:var(--muted)}footer{margin:65px auto 0;border-top:1px solid var(--line);padding:35px 6%;display:flex;align-items:center;justify-content:space-between;gap:20px}footer p,footer span{font-size:11px;color:var(--muted)}.empty{padding:30px;border:1px dashed #9ebff5;border-radius:8px;margin-top:20px}.crumb{font-size:12px;margin:30px 0;color:var(--muted)}.article{max-width:850px;margin:auto}.article h1{font-size:40px;line-height:1.6}.article h2{margin-top:35px}.article .lead{color:var(--muted)}.article-hero{width:100%;height:330px;object-fit:cover;border-radius:8px}.article section{border-bottom:1px solid var(--line);padding-bottom:25px}.steps{display:grid;gap:20px}.step{display:grid;grid-template-columns:130px 1fr;gap:25px;align-items:center;padding:20px;background:#fff;border:1px solid var(--line);border-radius:8px}.step svg{width:120px;height:110px}.step h3{margin:0;font-size:17px}.step p{font-size:14px;margin-bottom:0}.shop{display:flex;flex-wrap:wrap;gap:12px}.shop a{border:1px solid var(--line);padding:12px;border-radius:5px;font-size:13px}.notice{padding:18px;background:#eaf2ff;font-size:13px;border-radius:6px}.video{aspect-ratio:16/9;width:100%;border:0;border-radius:8px}ul{padding-right:22px}.article a:not(.primary){text-decoration:underline}.source{font-size:12px}.back{display:inline-block;margin-top:30px}@media(max-width:800px){header{padding:20px}nav{gap:15px;font-size:12px}.brand{font-size:33px}.brand span{display:none}main{padding:0 20px}.hero{grid-template-columns:1fr;gap:28px;padding:35px 0}.hero-image{height:300px;margin-right:12px}.hero h1{font-size:42px}.principles{flex-wrap:wrap;justify-content:flex-start;font-size:11px}.categories{grid-template-columns:repeat(2,1fr)}.feature{grid-template-columns:1fr}.feature img{height:250px}.feature-body{padding:25px}.learn,footer{align-items:flex-start;flex-direction:column;gap:20px}.section-head h2{font-size:22px}.article h1{font-size:29px}.step{grid-template-columns:85px 1fr;padding:12px;gap:12px}.step svg{width:85px}.country{font-size:10px}nav a:last-child{display:none}}
.idea-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.idea{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.idea img{width:100%;height:190px;object-fit:cover}.idea>div{padding:20px}.idea h3{font-size:17px;margin:0}.idea p{font-size:13px;color:var(--muted)}.idea a{font-size:13px;color:var(--action)}[dir=ltr] .category{text-align:left}[dir=ltr] .hero-image{border-radius:8px 120px 8px 8px}[dir=ltr] .image-note{right:auto;left:-22px}[dir=ltr] ul{padding-left:22px;padding-right:0}header{gap:14px}nav{flex:1;justify-content:center}@media(max-width:800px){.idea-grid{grid-template-columns:1fr}.idea{display:grid;grid-template-columns:110px 1fr}.idea img{height:100%;min-height:180px}.idea>div{padding:16px}header{flex-wrap:wrap}nav{order:4;flex-basis:100%;justify-content:flex-start;border-top:1px solid var(--line);padding-top:12px}.country{margin-inline-start:auto}.section-head{gap:12px}.section-head .text-button{font-size:11px}.article-hero{height:220px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Original Waey identity: blue #1068f1 and white. */
.brand{gap:12px;flex-shrink:0}.brand .brand-mark{width:66px;height:66px;object-fit:contain;border-radius:0}.brand .brand-copy{display:flex;flex-direction:column;gap:6px;border:0;padding:0;letter-spacing:0;line-height:1.3}.brand-copy strong{font-size:25px;color:#1068f1}.brand-copy small{font-size:11px;font-weight:500;color:#1068f1;white-space:nowrap}footer .brand-mark{width:56px;height:56px}footer .brand-copy strong{font-size:23px}@media(max-width:800px){.brand .brand-mark{width:48px;height:48px}.brand .brand-copy{display:flex}.brand-copy strong{font-size:21px}.brand-copy small{font-size:9px}header{gap:10px}header>.text-button{font-size:12px;padding:3px}}

.brand .brand-lockup{width:128px;height:auto;display:block}.brand{line-height:1}header{padding-block:12px}footer .brand .brand-lockup{width:110px}@media(max-width:800px){.brand .brand-lockup{width:100px}header{padding-block:10px}}

/* Waey blue palette: clear surfaces, navy typography, accessible actions. */
header,footer{background:#fff}nav .active{font-weight:700}.category{background:#fff}.category.selected{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.category .icon{color:var(--brand)}.image-note{background:#fff}.search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #1068f11a}.search button:hover,.primary:hover{background:#084bb2}.text-button:hover,.idea a:hover{color:#084bb2}.shop a:hover{background:var(--soft);border-color:#9ebff5}.learn{border:1px solid #cfe0fc}.notice{color:#214b83}:focus-visible{outline:2px solid var(--brand)}::selection{background:#cfe0fc;color:#142b4d}

/* Unified category icons: abstract, monochrome, fixed optical canvas. */
.category .icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin-bottom:16px;color:var(--brand);font-size:0}.category .icon svg{display:block;width:56px;height:56px;flex:none}.category .icon svg *{vector-effect:non-scaling-stroke}.category{min-height:170px}@media(max-width:800px){.category .icon{width:60px;height:60px}.category .icon svg{width:56px;height:56px}}
.country button{border:0;background:transparent;color:var(--action);cursor:pointer}.guide-card{margin:20px 0}.category-guides{margin-top:32px}.pagination{justify-content:space-between;margin-block:24px}.category .icon img{width:56px;height:56px;display:block}.step>img{max-width:100%;height:auto}.article p{white-space:pre-line}.admin{max-width:1050px;margin:40px auto;padding:24px}.admin label{display:block;margin-block:14px}.admin input,.admin select,.admin textarea{display:block;width:100%;padding:10px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--ink)}.admin textarea{min-height:160px}.admin textarea.code{font:13px/1.6 monospace;min-height:420px;direction:ltr}.admin table{width:100%;border-collapse:collapse}.admin td,.admin th{text-align:start;padding:12px;border-bottom:1px solid var(--line)}.admin-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.admin .error{background:#fff0ed;padding:14px;color:#8b281b}.admin .success{background:var(--soft);padding:14px}.admin .check input{width:auto;display:inline}.admin .editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media(max-width:800px){.admin .editor-grid{grid-template-columns:1fr}.admin{padding:12px}.admin table{font-size:12px}}

/* Keep the homepage grid within iPhone WebKit's viewport; do not create a nested scroller. */
.hero>*{min-width:0}.search input{width:0;flex:1 1 0%}.back-to-top{display:none}
@media(max-width:800px){html{scroll-behavior:auto}.hero{grid-template-columns:minmax(0,1fr)}.hero .dynamic-hero .image-note{left:12px;right:12px;max-width:none;overflow-wrap:anywhere}.back-to-top:not([hidden]){position:fixed;inset-inline-end:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:#fff;color:#1068f1;border:1px solid #bdd3f5;border-radius:50%;box-shadow:0 4px 18px #142b4d26}.back-to-top:hover{background:#edf4ff}.back-to-top svg{width:22px;height:22px}}

@media(max-width:800px){.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.category{min-width:0}.category strong,.category small{overflow-wrap:anywhere;hyphens:auto}}
