/* Fonts served by Dari itself (SIL Open Font License, see /fonts/OFL-*.txt). The Arabic one downloads only on pages with Arabic text. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url('/fonts/dm-sans.woff2') format('woff2-variations'),url('/fonts/dm-sans.woff2') 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:100 900;font-display:swap;src:url('/fonts/noto-sans-arabic.woff2') format('woff2-variations'),url('/fonts/noto-sans-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-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}
/* Dari charter (canvas « Charte ») — loaded last. One font, two corner sizes, one blue, one style per component.
   Every colour is a variable; the legacy names (--ink, --blue, --green…) point to the same values so older
   stylesheets follow. Dark values are ready in [data-theme=dark] but not switched on until every page is migrated. */
:root,.dari-v2{
 --ink:#092c60;--text:#092c60;--muted:#506984;--bg:#ffffff;--surface:#ffffff;--soft:#f2f7fb;--line:#e2eaf2;
 --primary:#0756b7;--primary-hover:#064a94;--primary-soft:#eef5ff;--on-primary:#ffffff;
 --success:#008c73;--success-soft:#e3f4ef;--success-text:#05604f;
 --warning-soft:#fff4e5;--warning-text:#6b3a00;--danger:#b42318;--danger-soft:#fdecec;
 --derja:#a75a20;--derja-on-dark:#ffd9b8;--focus:#007f6d;
 --r-s:12px;--r-l:20px;--r-full:999px;--shadow:0 12px 30px rgba(9,44,96,.08);
 --font:'DM Sans',Arial,sans-serif;--font-ar:'Noto Sans Arabic',Tahoma,sans-serif;
 /* legacy names */
 --blue:var(--primary);--green:var(--success);--light:var(--soft);--paper:var(--bg);--terra:var(--derja);
}
[data-theme=dark]{
 --ink:#e8f0fb;--text:#e8f0fb;--muted:#9fb3cc;--bg:#0b1a33;--surface:#12264a;--soft:#172e57;--line:#23406e;
 --primary:#4d9bff;--primary-hover:#79b4ff;--primary-soft:#173a6b;--on-primary:#06152d;
 --success:#2cc4a1;--success-soft:#0f3b3a;--success-text:#7fe3c9;
 --warning-soft:#3d2d12;--warning-text:#ffd28a;--danger:#ff8a80;--danger-soft:#3b1a22;--derja:#f0b27a;--shadow:0 12px 30px rgba(0,0,0,.35);
}

/* Type: DM Sans everywhere, Noto Sans Arabic for derja. */
body.dari-v2,.dari-v2 h1,.dari-v2 h2,.dari-v2 h3,.dari-v2 h4,.dari-v2 button,.dari-v2 input,.dari-v2 select,.dari-v2 textarea{font-family:var(--font)}
.dari-v2 [lang=ar-TN],.dari-v2 .derja{font-family:var(--font-ar)}
.derja{color:var(--derja)}
.btn.primary .derja,.wz-next .derja,.qs-go .derja,.toast .derja,.published-toast .derja,.on-dark .derja{color:var(--derja-on-dark)}

/* Buttons: 12 px corners, one primary per screen. */
.dari-v2 .btn{border-radius:var(--r-s);min-height:48px;font-weight:700}
.dari-v2 .btn.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.dari-v2 .btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.dari-v2 .btn.secondary{background:var(--surface);color:var(--primary);border:1.5px solid var(--line)}
.dari-v2 .btn.secondary:hover{border-color:var(--primary)}
.dari-v2 .btn:focus-visible,.dari-v2 a:focus-visible,.dari-v2 button:focus-visible,.dari-v2 input:focus-visible,.dari-v2 select:focus-visible,.dari-v2 textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* Fields and cards. */
.dari-v2 #workspace input:not([type=checkbox]):not([type=radio]):not([type=file]),.dari-v2 #workspace select,.dari-v2 #workspace textarea{border-radius:var(--r-s)}
.dari-v2 .item{border-radius:var(--r-l);border-color:var(--line)}

/* Messages: one component, four tones. .info is the neutral one; .msg-* are explicit. */
.dari-v2 .info,.msg{border-radius:var(--r-s);background:var(--primary-soft);color:var(--text);padding:13px 14px;font-size:14px;line-height:1.5}
.msg-ok{background:var(--success-soft);color:var(--success-text)}
.msg-warn{background:var(--warning-soft);color:var(--warning-text)}
.msg-err,.dari-v2 .status.error{color:var(--danger)}
.msg-err{background:var(--danger-soft)}
.dari-v2 .notice{font-size:12.5px;color:var(--muted);line-height:1.5}

/* Loading: the shape before the content (the text stays for screen readers). */
.dari-v2 .loading{position:relative;color:transparent;min-height:120px;margin:12px 0;border-radius:var(--r-l);background:linear-gradient(90deg,var(--soft) 0%,var(--line) 50%,var(--soft) 100%);background-size:200% 100%;animation:dari-shimmer 1.4s linear infinite;overflow:hidden;user-select:none}
@keyframes dari-shimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.dari-v2 .loading{animation:none}}

/* Toast: one style. */
.toast,.published-toast{border-radius:var(--r-full);background:var(--ink);color:var(--bg);font-weight:700;box-shadow:var(--shadow)}

/* Older rules with a higher specificity (app-theme.css, homepage.css, approved-home.css) aligned on the charter:
   the main action is blue; green stays for definitive successes (.btn.success). */
.dari-v2 :is(#workspace,dialog) .btn.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary);border-radius:var(--r-s);min-height:48px;font-weight:700}
.dari-v2 :is(#workspace,dialog) .btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.dari-v2 :is(#workspace,dialog) .btn.secondary{border-color:var(--line);border-radius:var(--r-s)}
.dari-v2 :is(#workspace,dialog) .btn.success,.dari-v2 .btn.success{background:var(--success);border-color:var(--success);color:#fff}
.dari-v2 :is(#workspace,dialog) .item{border-radius:var(--r-l)}
.dari-v2 #home .promise-actions .btn,.dari-v2 #home .searchbox>.btn,.dari-v2 #home .service-cards-compact .service-card>.btn{border-radius:var(--r-s)}

/* The swipe back is Dari's: stop the browser's own sideways "history" gesture (Chrome/Edge touch) from doubling it. */
html,body{overscroll-behavior-x:none}
.discover,.discover-feed,.discover-strip{overscroll-behavior-x:none}

/* Bottom bar (phones, signed in): Scroll · Échanges · Mes biens · Moi. */
.tabbar{display:none}
@media (max-width:760px){
 body.has-tabbar .tabbar:not([hidden]){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(64px + env(safe-area-inset-bottom));padding:6px 6px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
 .tabbar .tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;color:var(--muted);font:600 11.5px var(--font);text-decoration:none;cursor:pointer;padding:0}
 .tabbar .tab-ic{width:48px;height:28px;border-radius:14px;display:flex;align-items:center;justify-content:center}
 .tabbar .tab[aria-current=page]{color:var(--primary)}
 .tabbar .tab[aria-current=page] .tab-ic{background:var(--primary-soft)}
 body.has-tabbar{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
 body.has-tabbar .verify-banner{bottom:calc(80px + env(safe-area-inset-bottom))}
 /* The wizard's Précédent / Suivant sit just above the bar. */
 body.has-tabbar .wz-foot{bottom:calc(64px + env(safe-area-inset-bottom))}
 /* Focus mode: a wizard shows only its own ‹, its steps and the bar. */
 body.focus-mode>header,body.focus-mode .space-bar,body.focus-mode #journey-bar,body.focus-mode #verify-banner,body.focus-mode #email-banner{display:none!important}
 body.focus-mode #workspace{margin-top:12px}
 /* The menu's page links move to the bottom bar. */
 body.has-tabbar header .primary-nav{display:none}
}

/* « Moi » */
.me{max-width:560px;margin:0 auto}
.me h1{margin:0 0 14px}
.me-card{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);color:var(--text);text-decoration:none;margin-bottom:14px}
.me-card b{display:block;font-size:17px}
.me-card small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.me-card>svg,.me-row>svg{margin-left:auto;flex:none;color:var(--muted)}
.me-ring{--p:0;width:58px;height:58px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:conic-gradient(var(--success) calc(var(--p)*1%),var(--line) 0)}
.me-ring span{width:46px;height:46px;border-radius:50%;background:var(--surface);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.me-verified{color:var(--success)}
.me-group{border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);overflow:hidden;margin-bottom:12px}
.me-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}
.me-row:last-child{border-bottom:0}
.me-row b{display:block;font-size:15px;font-weight:600}
.me-row small{display:block;color:var(--muted);font-size:12.5px;margin-top:1px}
.me-label{margin:18px 4px 8px;font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:700;color:var(--muted)}
.me-logout{display:block;margin:18px auto 8px;border:0;background:none;color:var(--muted);font:600 15px var(--font);cursor:pointer;padding:10px 16px}

/* One search form, one look. On the home page the quick search replaces the full form; the full form lives
   on the search page, in the charter style (icon inside the field, blue button). */
body.dari-v2:not([data-route=home]) #home:not(.catalogue-mode) #results{display:none}
.dari-v2 #home.catalogue-mode .section-head-actions{display:none}
.dari-v2 #home.catalogue-mode #results>.section-head h2{font-size:26px;line-height:1.2;letter-spacing:-.5px;margin:4px 0 6px}
.dari-v2 #home.catalogue-mode .searchbox>.field{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:54px;padding:0 16px;border:1.5px solid var(--line);border-radius:var(--r-s);background:var(--surface)}
.dari-v2 #home.catalogue-mode .searchbox .field-icon{position:static;flex:none;width:20px;height:20px;color:var(--ink);transform:none}
.dari-v2 #home.catalogue-mode .searchbox>.field select{border:0;background:transparent;box-shadow:none;padding:0;margin:0;min-height:50px;width:100%;font-size:16px;color:var(--ink)}
.dari-v2 #home.catalogue-mode #search-form>.search-submit{background:var(--primary);border-color:var(--primary);color:var(--on-primary);border-radius:var(--r-s);min-height:52px}
.dari-v2 #home.catalogue-mode #search-form>.search-submit:hover{background:var(--primary-hover)}
@media (max-width:760px){.dari-v2 #home.catalogue-mode .searchbox{display:grid;grid-template-columns:1fr;gap:10px}.dari-v2 #home.catalogue-mode .searchbox>*{grid-column:1!important;grid-row:auto!important}}

/* Approved Phosphor Duotone search icons. One local sprite, the existing form and native checkboxes. */
.dari-v2 .search-icon{display:inline-block;width:24px;height:24px;flex:none;fill:currentColor;color:var(--primary);vertical-align:middle;pointer-events:none}
.dari-v2 .search-label{display:inline-flex;align-items:center;gap:8px;min-width:0;line-height:1.4}
.dari-v2 #home #search-form .advanced-grid label.search-label{display:flex;min-height:34px;font-size:13px}
.dari-v2 #home #search-form .advanced-grid label.search-label span{min-width:0}
.dari-v2 #home #search-form .advanced-grid :is(input,select){min-height:46px;height:auto;padding:10px;border:1px solid var(--line);border-radius:var(--r-s);background:var(--surface);font-size:16px}
.dari-v2 #home.catalogue-mode .searchbox .field-icon.search-icon{width:24px;height:24px;color:var(--primary)}
.dari-v2 #home #search-form .search-amenities{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0;padding-top:18px}
.dari-v2 #home #search-form .search-amenities legend{color:var(--ink);font-size:14px;font-weight:600;line-height:1.5}
.dari-v2 #home #search-form .search-amenities legend span{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.dari-v2 #home #search-form .search-amenity{position:relative;flex-direction:column;justify-content:center;gap:10px;min-width:0;min-height:108px;margin:0;padding:24px 8px 12px;border:1px solid var(--line);border-radius:var(--r-s);background:var(--surface);color:var(--ink);text-align:center;line-height:1.4;font-size:13px!important;font-weight:500;letter-spacing:0;cursor:pointer}
.dari-v2 #home #search-form .search-amenity .search-icon{width:34px;height:34px}
.dari-v2 #home #search-form .search-amenity input{position:absolute;top:9px;right:9px;width:16px;height:16px;min-width:16px;min-height:16px;margin:0;padding:0;accent-color:var(--primary);cursor:pointer}
.dari-v2 #home #search-form .search-amenity:has(input:checked){border-color:var(--primary);background:var(--primary-soft)}
.dari-v2 #home #search-form .search-amenity:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.dari-v2 #home #search-form .search-reset,.dari-v2 #home .qs-go,.dari-v2 #home .qs-options [data-other]{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.dari-v2 #home .qs-go .search-icon,.dari-v2 #home .search-submit .search-icon{color:inherit}
.dari-v2 #home #search-form .search-reset .search-icon,.dari-v2 #home .qs-options [data-other] .search-icon{width:20px;height:20px}
.dari-v2 #home .qs-fields .search-label{font-size:13px}
@media(max-width:760px){.dari-v2 #home #search-form .search-amenities{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(forced-colors:active){.dari-v2 #home #search-form .search-amenity:has(input:checked){border-color:Highlight;outline:2px solid Highlight;outline-offset:-3px}}

/* Review fixes: said once, shown once. */
.dari-v2 #home.catalogue-mode #dari-listing-count{display:none}
.dari-v2 #home .found-elsewhere{display:none}
/* Signed in, the home is for acting: Mon chemin, the quick search, the owner entry. The pages the menu and
   « Moi » point to (Comment ça marche, Nos services, Aide) keep their sections. */
body.signed-in[data-route=home] #home :is(#services,.client-satisfaction,#how-it-works,#home-faq,.sidi-hero),body.signed-in[data-route=home] #home .hero-copy>.eyebrow{display:none}
@media (max-width:760px){
 /* Help, the guide and the terms live in « Moi »: no help row, no site footer under the bar. */
 body.has-tabbar .space-bar,body.has-tabbar>footer.approved-footer,body.has-tabbar footer.approved-footer{display:none}
}
.account-fold summary{cursor:pointer;padding:4px 0;font-weight:700;font-size:16px}
.account-fold[open] summary{margin-bottom:10px}
.account-danger summary{color:var(--danger)}
.owner-profile-fold summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline}
.owner-profile-fold summary b{font-size:16px}
.owner-profile-fold summary small{color:var(--muted);font-size:13px}
.owner-profile-fold[open] summary{margin-bottom:12px}

/* « Tout mon profil de confiance »: compact header, folded sections, no duplicated card / percentage / guide. */
.pp-folded .passport-overview,.pp-folded #score-detail,.pp-folded .passport-nav,.pp-folded .passport-guide,.pp-folded .passport-account-action{display:none!important}
.pp-folded [role=tabpanel][hidden]{display:block!important}
.pp-folded .passport-layout{display:block;max-width:640px;margin:0 auto}
.pp-folded .passport-layout>aside{display:none}
.pp-head{display:flex;gap:12px;align-items:flex-start;max-width:640px;margin:0 auto 14px}
.pp-head h1{font-size:26px;margin:2px 0 4px}
.pp-head p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.pp-fold{border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);margin:0 0 10px;overflow:hidden}
.pp-fold>summary{cursor:pointer;list-style:none;padding:15px 16px;display:flex;flex-direction:column;gap:2px}
.pp-fold>summary::-webkit-details-marker{display:none}
.pp-fold>summary b{font-size:15.5px}
.pp-fold>summary small{color:var(--muted);font-size:12.5px}
.pp-fold[open]>summary{border-bottom:1px solid var(--line)}
.pp-fold>section,.pp-fold>div{border:0!important;box-shadow:none!important;margin:0!important;border-radius:0!important}

/* The home is short for everyone; « Nos services », « Comment ça marche » and « Aide » keep their sections. */
body[data-route=home] #home :is(.client-satisfaction,#how-it-works){display:none}
@media (max-width:760px){body[data-route=home] #home .sidi-hero{display:none}}
.pp-folded .pp-fold>summary{padding:15px 16px}
.pp-folded .pp-fold>summary b{color:var(--text)}
@media (max-width:760px){body[data-route=home] #home.home-discovery .brand-hero{padding-bottom:24px;min-height:0}}
.pp-folded .passport-layout .pp-fold{order:2}
.dari-v2 #workspace.pp-folded .pp-fold>summary,.dari-v2 #workspace .pp-fold>summary{padding:15px 16px}

/* « Écrire au support » */
.sp-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.faq-support{margin:18px 0 0;text-align:center;font-weight:600}
.faq-support a{color:var(--primary)}

/* Invitation access stays at the right edge, after the account actions. */
.dari-v2 header .actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.dari-v2 header .code-entry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:var(--r-s);border-color:var(--line);color:var(--muted);font-size:12px;padding:8px 12px}
@media (min-width:801px) and (max-width:1200px){.dari-v2 header{flex-wrap:wrap}.dari-v2 header>.primary-nav{order:3;width:100%;justify-content:flex-end;margin:0}}
@media (max-width:800px){.dari-v2 header{flex-wrap:wrap}.dari-v2 header .actions{gap:8px}.dari-v2 header .code-entry{font-size:12px}.dari-v2 header .logo{flex-shrink:0}}
@media (max-width:480px){.dari-v2 header .actions{flex:1 1 180px}.dari-v2 header .code-entry{order:5;margin-left:auto}.dari-v2 header #menu-toggle{order:3}}

/* Auth follows the approved home palette, with compact fields and clear actions. */
.dari-v2 #auth-dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);color:var(--text);overflow:auto}
.dari-v2 #auth-dialog .dialog-inner{padding:24px;background:var(--surface)}
.dari-v2 #auth-dialog .dialog-top{margin-bottom:14px}
.dari-v2 #auth-dialog h2{font-size:26px;margin:0 0 8px;line-height:1.25}
.dari-v2 #auth-description{margin:0 0 18px;font-size:14px;line-height:1.5;color:var(--muted)}
.dari-v2 #auth-dialog .form-grid{gap:12px;grid-template-columns:1fr}
.dari-v2 #auth-dialog label{display:block;font-size:13px;margin-bottom:5px}
.dari-v2 #auth-dialog input{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-s);background:var(--surface);font-size:16px}
.dari-v2 #auth-dialog .phone-input input{border:0;border-radius:0}
.dari-v2 #auth-dialog #register-phone-field p{font-size:12px;line-height:1.4;margin:5px 0 0;color:var(--muted)}
.dari-v2 #auth-error:empty{display:none}
.dari-v2 #auth-error:not(:empty){margin:12px 0;padding:10px;background:var(--danger-soft);border-radius:var(--r-s)}
.dari-v2 #auth-dialog #auth-submit{width:100%;margin-top:16px;background:var(--success);border-color:var(--success);position:sticky;bottom:0;box-shadow:0 0 0 6px var(--surface);z-index:1}
.dari-v2 #auth-dialog #auth-submit:hover{background:var(--success-text);border-color:var(--success-text)}
.dari-v2 .auth-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:12px}
.dari-v2 .auth-links .textbtn{min-height:44px;text-align:left;font-size:13px}
@media(max-width:480px){.dari-v2 #auth-dialog .dialog-inner{padding:20px}.dari-v2 #auth-dialog h2{font-size:23px}.dari-v2 .auth-links{flex-direction:column;gap:0}}
#home .qs-view{display:grid;margin-top:0}
.discover-feedback{position:absolute;bottom:90px;left:16px;right:16px;z-index:30;background:#fff;color:var(--danger);padding:12px 16px;border-radius:var(--r-s);box-shadow:var(--shadow);text-align:center}

/* Approved Dari Hub landing, using the existing catalogue, search and services. */
.hub-mark{position:relative;display:block;width:31px;height:36px;border:4px solid #092c60;border-bottom:0;border-radius:18px 18px 0 0;flex:none;box-sizing:border-box}
.hub-mark:after{content:'';position:absolute;height:4px;left:2px;right:2px;top:17px;background:#007d68;border-radius:2px}
.dari-v2 .logo .brand-word{font-size:28px;font-weight:800;letter-spacing:-1px;color:#092c60;white-space:nowrap}
.dari-v2 .logo .brand-word em{font-style:normal;color:#007d68;font-weight:500}
#home .hub-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px 32px;padding:32px 0 0}
#home .hub-intro{min-width:0}
#home .hub-intro h1{font-family:var(--font-ar);font-size:clamp(36px,4.5vw,60px);line-height:1.65;text-align:left;letter-spacing:0;margin:10px 0;color:#092c60}
#home .hub-intro h1 span{color:#007d68}
#home .hub-intro>p:not(.eyebrow){font-size:18px;line-height:1.65;color:var(--muted);max-width:480px}
#home .hub-hero-image{width:100%;height:auto;max-height:360px;object-fit:contain;display:block}
#home .hub-hero>.quick-search,#home .hub-sources{grid-column:1/-1}
#home .hub-sources{background:#e9f6f0;color:#086552;border-radius:12px;padding:14px;text-align:center;font-size:14px;margin:0 0 18px}
body[data-route=home] #home #results{display:block;margin-top:24px}
body[data-route=home] #home #results :is(#search-form,#advanced-filters,.search-preview,.search-preview-strip){display:none}
body[data-route=home] #home #pourquoi-dari{display:none}
#home.catalogue-mode :is(.hub-hero,.hub-publish){display:none}
#home .hub-publish{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#e9f6f0;border-radius:20px;padding:28px;margin:32px 0}
#home .hub-publish h2{margin:0 0 8px;font-size:24px}
#home .hub-publish p{margin:0;line-height:1.6;max-width:620px}
#home .hub-publish .btn{flex:none}
#home .service-cards-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-route=home] #home #services{display:block}
.lp-foot:has([data-contact]) .lp-cta{min-width:0;text-align:center;font-size:14px;padding:12px}
@media(max-width:650px){
 #home .hub-hero{grid-template-columns:1fr;gap:12px;padding-top:18px}
 #home .hub-intro{text-align:center}
 #home .hub-intro h1{text-align:center;font-size:38px;margin:4px 0}
 #home .hub-intro .eyebrow{font-size:10px;letter-spacing:.8px}
 #home .hub-intro>p:not(.eyebrow){font-size:15px;margin:8px auto;max-width:340px}
 #home .hub-hero-image{max-height:220px;grid-row:2}
 #home .hub-publish{display:block;padding:22px}
 #home .hub-publish .btn{margin-top:18px}
 #home .service-cards-compact{grid-template-columns:1fr}
}

.dari-v2 .logo .brand-word{display:inline-flex;flex-direction:row;align-items:baseline;gap:7px;line-height:1}
.photo-unavailable{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:100%;min-height:150px;background:linear-gradient(135deg,#eef5fa,#e9f6f0);color:#506984;text-align:center;padding:18px;box-sizing:border-box}
.photo-unavailable .hub-mark{margin-bottom:4px;transform:scale(1.1)}
.hub-placeholder-word{font:800 25px var(--font);color:#092c60;letter-spacing:-.7px}.hub-placeholder-word em{color:#007d68;font-weight:500;font-style:normal}
.photo-unavailable [lang=ar-TN]{font:600 22px var(--font-ar);color:#092c60}
.photo-unavailable>span:last-child{font-size:13px}
.hub-thinking{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:20px;min-height:180px;width:100%;background:var(--soft);border-radius:20px;padding:24px;color:var(--ink);box-sizing:border-box}
.hub-search-pending{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(246,249,253,.94);pointer-events:none}.hub-search-pending .hub-thinking{max-width:460px;box-shadow:0 12px 50px #092c601a}.hub-search-pending .hub-thinking>span:nth-child(2){min-width:0}.hub-search-pending .hub-thinking i{flex:none}
.hub-thinking>span:nth-child(2){display:flex;flex-direction:column;gap:8px}.hub-thinking b{font-size:20px}.hub-thinking [data-thinking]{font-size:14px;color:var(--muted)}
.hub-thinking .hub-mark{animation:hub-breathe 1.8s ease-in-out infinite}.hub-thinking i{font-style:normal;color:#007d68;letter-spacing:4px;animation:hub-breathe 1.8s ease-in-out infinite .3s}
@keyframes hub-breathe{50%{transform:translateY(-5px);opacity:.6}}
@media(prefers-reduced-motion:reduce){.hub-thinking .hub-mark,.hub-thinking i{animation:none}}
.source-publication{font-size:12px;line-height:1.7}
.source-publication time{white-space:nowrap}
.source-age{display:inline-block;padding:1px 7px;margin-left:4px;border-radius:6px;background:#e9f6f0;color:#086552;font-weight:600;white-space:nowrap}

.discover-info .selection-facts{color:inherit;font-size:12px;line-height:1.4;margin:6px 0;opacity:.95}
.search-results-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 16px}
#search-results-heading{margin:0;scroll-margin-top:100px}
#search-results-heading:focus-visible{outline:2px solid var(--brand,#16756b);outline-offset:6px}
.search-results-bar .textbtn{flex-shrink:0}
.search-reasons{margin:12px 0;font-size:13px;line-height:1.5}
.search-reasons summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;min-height:44px}
.search-reasons summary::-webkit-details-marker{display:none}
.search-reasons summary:focus-visible{outline:2px solid #16756b;outline-offset:3px;border-radius:8px}
.selection-category{display:inline-block;padding:4px 10px;border-radius:20px;background:#edf6f3;color:#21574c;font-size:12px;font-weight:600}
.selection-info{display:grid;place-items:center;min-width:44px;min-height:44px;font-size:22px;color:#21574c;border:1px solid #dbe7e1;border-radius:50%}
.selection-explanation{padding:12px;border:1px solid #dbe7e1;background:#f7faf8;border-radius:12px;color:#28483f;overflow-wrap:anywhere}
.selection-explanation ul{padding-left:18px;margin:8px 0}.selection-explanation p{margin:8px 0 0}
@media(max-width:480px){.search-results-bar{align-items:flex-start}.search-results-bar h3{font-size:18px}.search-results-bar .textbtn{font-size:12px}}
