/* Silwad App unified web identity v5.7.0 — light only, RTL-first */
:root{
  color-scheme:light;
  --sw-bg:#fbfaf0;
  --sw-surface:#fffef8;
  --sw-surface-soft:#f2f3e6;
  --sw-green:#16420f;
  --sw-green-2:#24591c;
  --sw-green-soft:#eaf0dc;
  --sw-gold:#e2b637;
  --sw-gold-soft:#fbf2d3;
  --sw-ink:#173216;
  --sw-muted:#7a806f;
  --sw-line:#e4dfcf;
  --sw-shadow:0 14px 38px rgba(31,55,25,.08);
  --sw-radius:24px;
}
html,body{background:var(--sw-bg)!important;color:var(--sw-ink)}
body{font-family:"Tajawal",system-ui,-apple-system,"Segoe UI",sans-serif}
.container{width:min(1180px,calc(100% - 36px))}

/* Support strip */
.silwad-support-bar{background:#11380d!important;color:#fff!important;border:0!important;padding:6px 0!important}
.silwad-support-inner{display:flex;justify-content:space-between;align-items:center;gap:18px}
.silwad-support-copy{display:flex;align-items:center;gap:10px;font-size:12px}.silwad-support-copy span{opacity:.72}
.silwad-support-contacts{display:flex;gap:7px}.silwad-support-contacts a{background:rgba(255,255,255,.12);color:#fff;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:800}

/* Header mirrors the mobile app wordmark */
.silwad-platform-header{position:sticky;top:0;z-index:190;background:rgba(251,250,240,.94)!important;border-bottom:1px solid rgba(22,66,15,.08)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.silwad-platform-header-inner{height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px}
.silwad-header-side{display:flex;align-items:center;gap:12px}.silwad-header-side-end{justify-content:flex-end}.silwad-header-side-start{justify-content:flex-start}
.silwad-platform-wordmark{font-size:25px;font-weight:900;color:var(--sw-green);letter-spacing:-1px;line-height:1;transform:skewX(-6deg);white-space:nowrap}
.silwad-platform-nav{gap:20px!important}.silwad-platform-nav a{font-size:13px;color:#68705f!important}.silwad-platform-nav a:hover{color:var(--sw-green)!important}
.silwad-round-action{width:39px;height:39px;border:1px solid var(--sw-line);border-radius:50%;display:grid;place-items:center;background:#fffef8;color:var(--sw-green);font-weight:900;box-shadow:0 5px 16px rgba(31,55,25,.05)}
.silwad-language-switch{display:flex;border:1px solid var(--sw-line);border-radius:999px;padding:3px;background:#fff}.silwad-language-switch a{min-width:29px;height:28px;padding:0 7px;display:grid;place-items:center;border-radius:999px;font-size:10px;font-weight:900;color:#7d8276}.silwad-language-switch a.active{background:var(--sw-green);color:#fff}
.silwad-platform-mobile-menu{background:#fffef8!important;border-top:1px solid var(--sw-line)!important;padding:12px 18px 18px}.silwad-platform-mobile-menu a{border-bottom:1px solid #efebdf;padding:11px 3px!important}

/* App-like home */
.silwad-app-home-hero{padding:34px 0 28px;background:linear-gradient(180deg,#fbfaf0 0%,#f8f7ec 100%)}
.silwad-app-home-shell{display:grid;gap:20px}
.silwad-home-welcome{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;background:var(--sw-surface);border:1px solid var(--sw-line);border-radius:28px;padding:22px 24px;box-shadow:var(--sw-shadow)}
.silwad-home-emblem{width:82px;height:82px;border-radius:50%;padding:6px;background:#fff;border:1px solid #d9dcc8;box-shadow:0 9px 24px rgba(30,62,19,.1)}.silwad-home-emblem img{width:100%;height:100%;object-fit:contain;border-radius:50%}
.silwad-home-kicker{display:block;font-size:11px;color:var(--sw-gold);font-weight:900;margin-bottom:4px}.silwad-home-welcome h1{margin:0;font-size:clamp(26px,4vw,42px);line-height:1.15;color:var(--sw-ink)}.silwad-home-welcome p{margin:8px 0 0;color:var(--sw-muted);font-size:15px;max-width:760px}
.silwad-quick-circles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:760px;margin-inline:auto;width:100%}.silwad-quick-circles a{display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--sw-ink);font-size:12px}.quick-circle-icon{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:var(--sw-surface);border:2px solid #e8e3d5;color:var(--sw-green);font-size:27px;font-weight:900;box-shadow:0 6px 18px rgba(30,62,19,.06);transition:.2s}.silwad-quick-circles a:hover .quick-circle-icon{transform:translateY(-2px);border-color:#bdc9a8;background:var(--sw-green-soft)}

.silwad-family-gateway{background:var(--sw-surface);border:1px solid var(--sw-line);border-radius:28px;padding:0;box-shadow:var(--sw-shadow);overflow:hidden}
.silwad-family-gateway summary{list-style:none;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:20px 22px;cursor:pointer}.silwad-family-gateway summary::-webkit-details-marker{display:none}.silwad-gateway-icon{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:var(--sw-green-soft);color:var(--sw-green);font-size:24px;font-weight:900}.silwad-family-gateway summary strong,.silwad-family-gateway summary small{display:block}.silwad-family-gateway summary strong{font-size:23px}.silwad-family-gateway summary small{font-size:12px;color:var(--sw-muted);margin-top:3px}.silwad-gateway-chevron{color:var(--sw-gold);font-size:22px;transition:.2s}.silwad-family-gateway:not([open]) .silwad-gateway-chevron{transform:rotate(180deg)}
.silwad-gateway-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:0 20px 20px}.silwad-gateway-grid>a{min-height:100px;display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border:1px solid var(--sw-line);border-radius:20px;transition:.2s}.silwad-gateway-grid>a:hover{transform:translateY(-2px);border-color:#c6d1b7;box-shadow:0 10px 24px rgba(30,62,19,.07)}.silwad-gateway-grid>a>span{width:42px;height:42px;border-radius:13px;background:var(--sw-gold-soft);color:var(--sw-green);display:grid;place-items:center;font-size:20px;font-weight:900}.silwad-gateway-grid b,.silwad-gateway-grid small{display:block}.silwad-gateway-grid b{font-size:15px}.silwad-gateway-grid small{font-size:11px;color:var(--sw-muted);margin-top:3px}
.silwad-home-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.silwad-home-stat-row>div{display:flex;align-items:baseline;justify-content:center;gap:7px;padding:12px 15px;border:1px solid var(--sw-line);border-radius:16px;background:rgba(255,255,255,.62)}.silwad-home-stat-row b{font-size:22px;color:var(--sw-green)}.silwad-home-stat-row span{font-size:11px;color:var(--sw-muted);font-weight:800}

/* Shared section language */
.silwad-platform-section-heading{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px!important;max-width:900px!important;margin:0 auto 20px!important;text-align:start!important}.silwad-platform-section-heading.compact{margin-inline:0!important}.silwad-section-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--sw-green-soft);color:var(--sw-green);font-size:23px;font-weight:900}.silwad-platform-section-heading small{color:var(--sw-muted);font-size:11px;font-weight:900}.silwad-platform-section-heading h2{font-size:clamp(24px,3vw,34px)!important;margin:2px 0 3px!important;color:var(--sw-ink)}.silwad-platform-section-heading p{margin:0!important;font-size:13px!important;color:var(--sw-muted)!important}.silwad-platform-section-heading .silwad-main-search{grid-column:1/-1;margin-top:6px}
.silwad-main-search{background:#fff!important;border:1px solid var(--sw-line)!important;border-radius:18px!important;box-shadow:none!important;min-height:58px}.silwad-main-search:focus-within{border-color:#aeba9e!important;box-shadow:0 0 0 4px rgba(22,66,15,.06)!important}

/* Tree feels like a focused app workspace */
.silwad-platform-tree{padding:30px 0 0!important;background:transparent!important}.silwad-tree-topbar,.silwad-public-toolbar,.silwad-foundation-strip,.generation-strip{width:min(1180px,calc(100% - 36px));margin-inline:auto}.silwad-tree-topbar{background:#fffef8;border:1px solid var(--sw-line);border-radius:22px 22px 0 0;padding:14px 17px}.silwad-public-toolbar{background:#f6f3e8;border-inline:1px solid var(--sw-line);padding:8px 12px}.silwad-foundation-strip{background:#fff;border-inline:1px solid var(--sw-line);padding:10px 14px}.silwad-foundation-strip>small{display:none}.silwad-foundation-strip button{border-radius:999px!important}.silwad-foundation-strip button.is-active{background:var(--sw-green)!important;color:#fff!important}.silwad-tree-workspace{width:min(1180px,calc(100% - 36px));margin-inline:auto!important;border:1px solid var(--sw-line)!important;border-radius:0 0 24px 24px!important;overflow:hidden;background:#fdfcf6!important;box-shadow:var(--sw-shadow)}
.tree-node,.person-node{border-radius:18px!important}.tree-help-chip{border-radius:999px!important}

/* CTA and memory cards */
.silwad-request-section{padding:50px 0!important}.silwad-platform-cta{background:linear-gradient(135deg,#123a0e,#1d5216)!important;border:0!important;border-radius:28px!important;color:#fff!important;box-shadow:0 18px 42px rgba(22,66,15,.18)!important}.silwad-platform-cta h2,.silwad-platform-cta p,.silwad-platform-cta .eyebrow{color:#fff!important}.silwad-platform-cta p{opacity:.8}.silwad-platform-cta .btn-soft{background:#fff;color:var(--sw-green);border-color:#fff}
.silwad-platform-memory{padding:54px 0!important;background:#f4f3e8!important}.silwad-memory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.silwad-memory-grid article{display:flex;gap:13px;background:#fffef8;border:1px solid var(--sw-line);border-radius:22px;padding:19px}.silwad-memory-grid article>span{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:var(--sw-gold-soft);color:var(--sw-green);font-size:21px}.silwad-memory-grid small{color:var(--sw-gold);font-size:10px;font-weight:900}.silwad-memory-grid h3{font-size:18px;margin:2px 0 5px}.silwad-memory-grid p{font-size:12px;color:var(--sw-muted);margin:0;line-height:1.7}
.silwad-families-section{padding:52px 0!important}.silwad-platform-family-grid{gap:12px!important}.silwad-platform-family-grid .silwad-family-primary{background:#fffef8!important;border:1px solid var(--sw-line)!important;border-radius:22px!important;box-shadow:none!important}.silwad-platform-family-grid .family-letter{background:var(--sw-green-soft)!important;color:var(--sw-green)!important;border-radius:16px!important}

/* Forms / account pages / common cards */
.member-auth-card,.member-panel,.family-section,.dashboard-card,.settings-card,.modal-card,.drawer-panel,.prose-card,.tree-card{border-color:var(--sw-line)!important;border-radius:22px!important;box-shadow:0 10px 30px rgba(31,55,25,.06)!important;background:#fffef8!important}.btn-primary{background:var(--sw-green)!important;border-color:var(--sw-green)!important;color:#fff!important}.btn-primary:hover{background:var(--sw-green-2)!important}.btn-soft{background:#f4f2e8!important;border-color:var(--sw-line)!important;color:var(--sw-ink)!important}.btn,.tool-btn{border-radius:14px!important}input,select,textarea{border-radius:14px!important}

/* Footer */
.silwad-platform-footer{background:#12340f!important;margin-top:20px!important;padding:34px 0 18px!important}.silwad-platform-footer-grid{display:flex;align-items:center;justify-content:space-between;gap:24px}.silwad-footer-brand-block{display:flex;align-items:center;gap:12px}.silwad-footer-brand-block img{width:50px;height:50px;border-radius:50%}.silwad-footer-brand-block strong,.silwad-footer-brand-block span{display:block}.silwad-footer-brand-block strong{font-size:17px;color:#fff}.silwad-footer-brand-block span{font-size:10px;color:#bdcbb8}.silwad-footer-links{display:flex;gap:18px;flex-wrap:wrap}.silwad-footer-links a{margin:0!important;color:#dce7d8!important;font-size:12px}.silwad-platform-footer .footer-bottom{margin-top:24px!important;color:#9fb29a!important}

/* RTL discipline */
html[dir="rtl"] body{text-align:right}.silwad-platform-header-inner,.silwad-gateway-grid,.silwad-memory-grid,.silwad-home-stat-row{direction:rtl}html[dir="ltr"] .silwad-platform-header-inner,html[dir="ltr"] .silwad-gateway-grid,html[dir="ltr"] .silwad-memory-grid,html[dir="ltr"] .silwad-home-stat-row{direction:ltr}

@media(max-width:900px){
  .silwad-support-bar{display:none!important}
  .silwad-platform-header-inner{height:62px;grid-template-columns:44px 1fr 88px;gap:8px}
  .silwad-header-side-start .desktop-nav{display:none!important}.mobile-menu-btn{display:grid!important}
  .silwad-platform-wordmark{text-align:center;font-size:21px;justify-self:center}
  .silwad-language-switch{display:none!important}.silwad-header-side-end{gap:6px}
  .silwad-app-home-hero{padding-top:18px}.silwad-home-welcome{padding:18px;border-radius:22px}.silwad-home-emblem{width:66px;height:66px}.silwad-home-welcome h1{font-size:25px}.silwad-home-welcome p{font-size:12px}
  .silwad-gateway-grid{grid-template-columns:repeat(2,1fr)}
  .silwad-memory-grid{grid-template-columns:1fr}
  .silwad-platform-footer-grid{align-items:flex-start;flex-direction:column}.silwad-footer-links{gap:12px}
}
@media(max-width:620px){
  .container{width:min(100% - 22px,1180px)}
  .silwad-platform-header-inner{padding-inline:2px}.silwad-platform-wordmark{font-size:19px}.silwad-round-action{width:36px;height:36px}
  .silwad-app-home-shell{gap:14px}.silwad-home-welcome{grid-template-columns:auto 1fr;gap:12px;padding:14px}.silwad-home-emblem{width:58px;height:58px}.silwad-home-kicker{font-size:9px}.silwad-home-welcome h1{font-size:20px}.silwad-home-welcome p{font-size:11px;line-height:1.6}
  .silwad-quick-circles{gap:7px}.quick-circle-icon{width:55px;height:55px;font-size:22px}.silwad-quick-circles a{font-size:10px}
  .silwad-family-gateway{border-radius:22px}.silwad-family-gateway summary{padding:15px}.silwad-gateway-icon{width:46px;height:46px;border-radius:14px}.silwad-family-gateway summary strong{font-size:19px}.silwad-family-gateway summary small{font-size:10px}.silwad-gateway-grid{gap:8px;padding:0 12px 12px}.silwad-gateway-grid>a{min-height:88px;padding:11px;gap:9px;border-radius:17px}.silwad-gateway-grid>a>span{width:36px;height:36px;border-radius:11px}.silwad-gateway-grid b{font-size:13px}.silwad-gateway-grid small{font-size:9px}
  .silwad-home-stat-row{gap:6px}.silwad-home-stat-row>div{padding:9px 6px;display:block;text-align:center}.silwad-home-stat-row b{display:block;font-size:18px}.silwad-home-stat-row span{font-size:9px}
  .silwad-platform-section-heading{grid-template-columns:auto 1fr!important;gap:10px!important}.silwad-section-icon{width:44px;height:44px;border-radius:14px}.silwad-platform-section-heading h2{font-size:22px!important}.silwad-platform-section-heading p{font-size:11px!important}.silwad-main-search{min-height:54px}
  .silwad-tree-topbar,.silwad-public-toolbar,.silwad-foundation-strip,.generation-strip,.silwad-tree-workspace{width:calc(100% - 14px)!important}.silwad-tree-topbar{border-radius:18px 18px 0 0}.silwad-tree-workspace{border-radius:0 0 18px 18px!important}
  .silwad-memory-grid article{padding:15px;border-radius:18px}.silwad-platform-footer{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
}

/* Mobile website uses the same shell as app, but with the refreshed identity */
html.silwad-app-mode .site-header{background:rgba(251,250,240,.96)!important}html.silwad-app-mode .silwad-platform-wordmark{display:block!important}html.silwad-app-mode .silwad-brand{display:none!important}
html.silwad-app-mode .silwad-app-nav{background:rgba(255,254,248,.97)!important;border-color:#dfdbc9!important;box-shadow:0 11px 34px rgba(31,55,25,.14)!important}html.silwad-app-mode .silwad-app-nav a.is-active,html.silwad-app-mode .silwad-app-nav button.is-active{background:var(--sw-green-soft)!important;color:var(--sw-green)!important}html.silwad-app-mode .silwad-app-nav .app-nav-primary{background:var(--sw-green)!important;border-radius:50%!important;box-shadow:0 8px 20px rgba(22,66,15,.26)!important}

/* =========================================================
   Silwad App unified web identity v5.8.0
   Official logo + exact app wordmark + responsive refinement
   ========================================================= */
:root{
  --sw-bg:#fbfaf2;
  --sw-surface:#ffffff;
  --sw-surface-soft:#f5f4e8;
  --sw-green:#18340b;
  --sw-green-2:#102507;
  --sw-green-soft:#e9eedb;
  --sw-gold:#e8ba3f;
  --sw-gold-soft:#f5eacb;
  --sw-ink:#1b2a13;
  --sw-muted:#687260;
  --sw-line:#e5dec7;
  --sw-shadow:0 12px 34px rgba(24,52,11,.07);
  --sw-shadow-soft:0 5px 16px rgba(24,52,11,.05);
  --sw-radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{overflow-x:hidden;background:var(--sw-bg)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg,video,canvas{max-width:100%}
a{-webkit-tap-highlight-color:transparent}
.container{width:min(1200px,calc(100% - 40px));margin-inline:auto}

/* Cleaner utility strip on desktop; hidden on tablets/phones. */
.silwad-support-bar{padding:5px 0!important;background:var(--sw-green-2)!important}
.silwad-support-inner{min-height:27px}
.silwad-support-copy strong{font-size:11px}.silwad-support-copy span{font-size:10px}
.silwad-support-contacts a{font-size:10px;padding:4px 9px;border:1px solid rgba(255,255,255,.08)}

/* Header: exact app wordmark asset, not a simulated font. */
.silwad-platform-header{top:0;background:rgba(251,250,242,.97)!important;border-bottom:1px solid rgba(24,52,11,.08)!important;box-shadow:0 3px 15px rgba(24,52,11,.025)}
.silwad-platform-header-inner{height:68px;grid-template-columns:minmax(280px,1fr) 190px minmax(280px,1fr);gap:14px}
.silwad-platform-wordmark{display:flex;align-items:center;justify-content:center;transform:none!important;line-height:1!important;min-width:0}
.silwad-platform-wordmark img{display:block;width:172px;height:auto;max-height:36px;object-fit:contain}
.silwad-platform-wordmark strong{font-size:23px;color:var(--sw-green);font-weight:900}
.silwad-platform-nav{gap:16px!important}.silwad-platform-nav a{font-size:12px!important;font-weight:800!important;padding:9px 2px;position:relative}
.silwad-platform-nav a:after{content:"";position:absolute;left:50%;right:50%;bottom:2px;height:2px;border-radius:999px;background:var(--sw-gold);transition:.18s}
.silwad-platform-nav a:hover:after{left:0;right:0}
.silwad-round-action{width:38px;height:38px;min-width:38px;box-shadow:none;background:#fff;border-color:var(--sw-line)}
.mobile-menu-btn{padding:0!important}.silwad-menu-lines{width:17px;display:grid;gap:3px}.silwad-menu-lines i{display:block;height:2px;border-radius:999px;background:currentColor}
.silwad-platform-mobile-menu{border-radius:0 0 22px 22px!important;box-shadow:0 18px 30px rgba(24,52,11,.08)}
.silwad-mobile-menu-brand{display:flex;align-items:center;gap:10px;padding:4px 0 12px;border-bottom:1px solid var(--sw-line);margin-bottom:2px}
.silwad-mobile-menu-brand>img:first-child{width:42px;height:42px;object-fit:contain}.silwad-mobile-menu-brand .menu-wordmark{width:122px;height:auto}
.silwad-mobile-lang{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:10px}.silwad-mobile-lang a{text-align:center!important;border:1px solid var(--sw-line)!important;border-radius:12px!important;padding:9px!important}.silwad-mobile-lang a.active{background:var(--sw-green)!important;color:#fff!important}

/* Homepage hierarchy: fewer competing elements, cleaner spacing. */
.silwad-app-home-hero{padding:26px 0 26px!important;background:linear-gradient(180deg,#fbfaf2 0%,#f8f6eb 100%)!important}
.silwad-app-home-shell{gap:16px!important}
.silwad-home-welcome{grid-template-columns:78px minmax(0,1fr);gap:18px;padding:18px 20px;border-radius:24px;box-shadow:var(--sw-shadow-soft);align-items:center}
.silwad-home-emblem{width:78px;height:78px;padding:0;border:0;background:transparent;box-shadow:none}.silwad-home-emblem img{width:78px;height:78px;object-fit:contain;border-radius:0}
.silwad-home-welcome h1{font-size:clamp(25px,3.4vw,38px);letter-spacing:-.3px}.silwad-home-welcome p{font-size:13px;line-height:1.75;margin-top:5px}.silwad-home-kicker{font-size:10px}
.silwad-quick-circles{max-width:640px;gap:10px}.quick-circle-icon{width:60px;height:60px;font-size:24px;border-width:1px;box-shadow:var(--sw-shadow-soft)}
.silwad-quick-circles a{font-size:11px;font-weight:800}
.silwad-family-gateway{border-radius:24px;box-shadow:var(--sw-shadow-soft)}
.silwad-family-gateway summary{padding:17px 18px}.silwad-gateway-icon{width:50px;height:50px;border-radius:15px}.silwad-family-gateway summary strong{font-size:21px}
.silwad-gateway-grid{gap:10px;padding:0 16px 16px}.silwad-gateway-grid>a{min-height:92px;border-radius:18px;padding:14px;box-shadow:none}.silwad-gateway-grid>a:hover{box-shadow:var(--sw-shadow-soft)}
.silwad-home-stat-row{max-width:760px;margin-inline:auto;width:100%}.silwad-home-stat-row>div{background:rgba(255,255,255,.78);border-radius:14px;padding:10px 12px}

/* Section rhythm */
.section{scroll-margin-top:92px}.silwad-public-tree{scroll-margin-top:92px}
.silwad-platform-tree{padding-top:24px!important}.silwad-platform-section-heading{margin-bottom:16px!important}.silwad-platform-section-heading h2{font-size:clamp(23px,2.8vw,32px)!important}.silwad-platform-section-heading p{max-width:720px;line-height:1.65}
.silwad-section-icon{width:48px;height:48px;border-radius:15px}
.silwad-main-search{min-height:56px;border-radius:16px!important}

/* Tree controls must fit tablets/phones without horizontal page overflow. */
.silwad-tree-topbar,.silwad-public-toolbar,.silwad-foundation-strip,.generation-strip,.silwad-tree-workspace{width:min(1200px,calc(100% - 40px))}
.silwad-tree-topbar{padding:12px 14px;border-radius:20px 20px 0 0;gap:10px}
.silwad-public-toolbar{overflow:hidden}.silwad-public-toolbar .toolbar-group{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:1px}.silwad-public-toolbar .toolbar-group::-webkit-scrollbar{display:none}.silwad-public-toolbar .tool-btn{flex:0 0 auto}
.silwad-foundation-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.silwad-foundation-strip>div{display:flex;gap:6px;flex-wrap:wrap}
.generation-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.silwad-tree-workspace{box-shadow:var(--sw-shadow-soft)}

/* CTA / memory / family roots */
.silwad-request-section{padding:38px 0!important}.silwad-platform-cta{border-radius:24px!important;padding:24px!important}
.silwad-platform-memory{padding:42px 0!important}.silwad-memory-grid{gap:12px}.silwad-memory-grid article{border-radius:19px;padding:17px}
.silwad-platform-family-grid{gap:12px!important}.silwad-family-primary{border-radius:20px!important;min-height:112px!important}

/* Footer uses the same official assets. */
.silwad-platform-footer{background:var(--sw-green-2)!important;padding:30px 0 16px!important}
.silwad-footer-brand-block{gap:13px}.silwad-footer-brand-block .footer-emblem{width:54px;height:54px;object-fit:contain;border-radius:0;background:transparent}
.silwad-footer-brand-copy{display:grid;gap:3px}.silwad-footer-brand-block .footer-wordmark{display:block;width:142px;height:auto;max-height:30px;object-fit:contain}.silwad-footer-brand-block strong{font-size:18px}.silwad-footer-brand-block span{font-size:10px;color:#bdcbb8}
.silwad-footer-links a{font-weight:800}.silwad-platform-footer .footer-bottom{padding-top:13px;border-top:1px solid rgba(255,255,255,.07)}

/* General responsive hygiene across all theme pages. */
.silsila-theme input,.silsila-theme select,.silsila-theme textarea,.silsila-theme button{max-width:100%}
.silsila-theme .modal-card{width:min(680px,calc(100% - 24px))}
.silsila-theme .modal-card-xl{width:min(1080px,calc(100% - 24px))}
.silsila-theme table{max-width:100%}

@media(max-width:1100px){
  .container{width:min(100% - 30px,1200px)}
  .silwad-platform-header-inner{grid-template-columns:minmax(180px,1fr) 170px minmax(180px,1fr)}
  .silwad-platform-nav{gap:12px!important}.silwad-platform-nav a{font-size:11px!important}
  .silwad-gateway-grid{grid-template-columns:repeat(2,1fr)}
  .silwad-memory-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:900px){
  .silwad-support-bar{display:none!important}
  .container{width:min(100% - 24px,1200px)}
  .silwad-platform-header-inner{height:58px;grid-template-columns:42px minmax(0,1fr) 42px;gap:8px;padding-inline:0}
  .silwad-header-side-start .desktop-nav{display:none!important}.mobile-menu-btn{display:grid!important}
  .silwad-header-side-end .silwad-language-switch{display:none!important}
  .silwad-platform-wordmark{justify-self:center;min-width:0}.silwad-platform-wordmark img{width:145px;max-height:30px}.silwad-platform-wordmark strong{font-size:20px}
  .silwad-header-side-end{justify-content:flex-end}.silwad-round-action{width:36px;height:36px;min-width:36px}
  .silwad-app-home-hero{padding-top:14px!important}.silwad-home-welcome{grid-template-columns:64px minmax(0,1fr);padding:15px 16px;border-radius:20px}.silwad-home-emblem,.silwad-home-emblem img{width:64px;height:64px}.silwad-home-welcome h1{font-size:23px}.silwad-home-welcome p{font-size:11px}
  .silwad-gateway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .silwad-memory-grid{grid-template-columns:1fr}
  .silwad-platform-footer-grid{align-items:flex-start;flex-direction:column;gap:18px}.silwad-footer-links{gap:10px 15px}
  .silwad-tree-topbar,.silwad-public-toolbar,.silwad-foundation-strip,.generation-strip,.silwad-tree-workspace{width:calc(100% - 24px)!important}
}

@media(max-width:620px){
  .container{width:min(100% - 18px,1200px)}
  .silwad-platform-header-inner{height:56px}.silwad-platform-wordmark img{width:132px;max-height:28px}.silwad-round-action{width:34px;height:34px;min-width:34px}
  .silwad-app-home-shell{gap:11px!important}.silwad-home-welcome{grid-template-columns:54px minmax(0,1fr);gap:10px;padding:12px;border-radius:18px}.silwad-home-emblem,.silwad-home-emblem img{width:54px;height:54px}.silwad-home-welcome h1{font-size:18px;line-height:1.3}.silwad-home-welcome p{font-size:10px;line-height:1.55;margin-top:3px}.silwad-home-kicker{font-size:8px;margin-bottom:2px}
  .silwad-quick-circles{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.quick-circle-icon{width:49px;height:49px;font-size:20px}.silwad-quick-circles a{font-size:9px;gap:5px}
  .silwad-family-gateway{border-radius:19px}.silwad-family-gateway summary{padding:12px;gap:9px}.silwad-gateway-icon{width:42px;height:42px;border-radius:13px}.silwad-family-gateway summary strong{font-size:17px}.silwad-family-gateway summary small{font-size:9px}.silwad-gateway-grid{gap:7px;padding:0 9px 9px}.silwad-gateway-grid>a{min-height:82px;padding:10px;gap:8px;border-radius:15px}.silwad-gateway-grid>a>span{width:34px;height:34px}.silwad-gateway-grid b{font-size:12px}.silwad-gateway-grid small{font-size:8.5px;line-height:1.45}
  .silwad-home-stat-row{gap:5px}.silwad-home-stat-row>div{padding:8px 4px}.silwad-home-stat-row b{font-size:17px}.silwad-home-stat-row span{font-size:8.5px}
  .silwad-platform-section-heading{grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;margin-bottom:12px!important}.silwad-section-icon{width:40px;height:40px;border-radius:12px;font-size:19px}.silwad-platform-section-heading h2{font-size:19px!important;line-height:1.35}.silwad-platform-section-heading p{font-size:10px!important;line-height:1.55}.silwad-main-search{min-height:50px;border-radius:14px!important}
  .silwad-tree-topbar,.silwad-public-toolbar,.silwad-foundation-strip,.generation-strip,.silwad-tree-workspace{width:calc(100% - 10px)!important}.silwad-tree-topbar{border-radius:15px 15px 0 0;display:flex!important;flex-direction:column;align-items:stretch}.silwad-tree-topbar .tree-title-wrap{width:100%}.silwad-tree-topbar .tree-top-actions{width:100%;display:flex;gap:6px}.silwad-tree-topbar .tree-top-actions>*{flex:1}.silwad-tree-workspace{border-radius:0 0 15px 15px!important}
  .silwad-foundation-strip{padding:8px 9px}.silwad-foundation-strip>span{font-size:10px}.silwad-foundation-strip button{font-size:10px!important;padding:7px 10px!important}
  .silwad-platform-cta{padding:18px 15px!important;border-radius:19px!important}.silwad-platform-cta h2{font-size:20px!important}.silwad-platform-cta p{font-size:11px!important}
  .silwad-platform-memory{padding:32px 0!important}.silwad-memory-grid article{padding:13px;border-radius:16px}.silwad-memory-grid article>span{width:39px;height:39px;border-radius:12px}.silwad-memory-grid h3{font-size:16px}.silwad-memory-grid p{font-size:10px}
  .silwad-platform-footer{padding:26px 0 calc(90px + env(safe-area-inset-bottom,0px))!important}.silwad-footer-brand-block .footer-emblem{width:48px;height:48px}.silwad-footer-brand-block .footer-wordmark{width:126px}.silwad-footer-links{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px}.silwad-footer-links a{padding:8px 10px;border:1px solid rgba(255,255,255,.08);border-radius:11px;text-align:center}.silwad-platform-footer .footer-bottom{font-size:9px!important;display:flex;gap:8px;justify-content:space-between}
  .silsila-theme .modal-card,.silsila-theme .modal-card-xl{width:calc(100% - 12px);max-height:calc(100dvh - 14px);border-radius:18px}
}

@media(max-width:390px){
  .silwad-platform-wordmark img{width:118px}.silwad-home-welcome{grid-template-columns:48px minmax(0,1fr)}.silwad-home-emblem,.silwad-home-emblem img{width:48px;height:48px}.silwad-home-welcome h1{font-size:16px}.silwad-home-welcome p{display:none}
  .quick-circle-icon{width:44px;height:44px}.silwad-quick-circles a{font-size:8px}
  .silwad-gateway-grid>a{padding:8px;min-height:78px}.silwad-gateway-grid>a>span{display:none}.silwad-gateway-grid b{font-size:11px}.silwad-gateway-grid small{font-size:8px}
}

/* Keep the app-style bottom navigation clear of content on mobile. */
html.silwad-app-mode body{padding-bottom:calc(var(--app-nav-h) + var(--app-safe-bottom) + 12px)!important}
html.silwad-app-mode .site-header{background:rgba(251,250,242,.97)!important}
html.silwad-app-mode .silwad-app-nav{left:8px!important;right:8px!important;border-radius:20px!important;background:rgba(255,255,255,.97)!important}
