/* UWP Design: header & footer */
/* --- header fixes --- */
@media (min-width:861px){
  html body .uwp.uwp-header .uwp-brand{flex-shrink:0}
  html body .uwp.uwp-header .uwp-nav{min-width:0;flex:1 1 auto;display:flex;justify-content:center}
  html body .uwp.uwp-header .uwp-nav .uwp-menu{flex-wrap:nowrap;white-space:nowrap}
}
/* Nastaliq letters reach outside their box: keep a gap between the logo text and the menu */
html body .uwp.uwp-header .uwp-brand-text{padding-inline-end:14px}
@media (min-width:861px) and (max-width:1024px){
  html body .uwp.uwp-header .uwp-nav .uwp-menu>li.menu-item-gtranslate{display:none!important} /* the globe button does this job here */
}
@media (min-width:861px) and (max-width:1280px){
  html body .uwp.uwp-header .uwp-nav .uwp-menu>li>a{padding:4px 7px!important;font-size:14px!important}
}
@media (max-width:860px){
  /* phones: search + language + dark mode + menu. The pen (post) button and the profile photo are hidden,
     the bottom bar already has + (post) and Account. Rules sit in <head>, so nothing flashes while loading. */
  html body .uwp.uwp-header .uwp-search-toggle{display:inline-grid!important}
  html body .uwp.uwp-header .uwp-header-actions>.uwp-post-btn,
  html body .uwp.uwp-header .uwp-header-actions>.uwp-usermenu{display:none!important}
}
/* --- mobile menu --- */
.uwp.uwp-mm.uwd-mm{font-family:var(--uwp-font,"Plus Jakarta Sans"),system-ui,sans-serif}
.uwd-mm .uwd-mm-in{padding:0 20px 28px;max-width:560px}
.uwd-mm .uwd-mm-user{display:flex;align-items:center;gap:10px;margin:4px 0 8px;font-weight:700;font-size:15px}
.uwd-mm .uwd-mm-user img{border-radius:50%}
.uwd-mm .uwp-mm-search{margin:8px 0 12px}
.uwd-mm .uwp-mm-lang{margin-bottom:6px}
.uwd-mm .uwd-mm-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 4px}
.uwd-mm .uwd-mm-tiles a{display:flex;flex-direction:column;align-items:center;gap:6px;background:rgba(255,255,255,.16);border-radius:14px;padding:12px 4px;font-size:12.5px;font-weight:700;line-height:1.2;text-align:center}
.uwd-mm .uwd-mm-sec{margin-top:18px}
.uwd-mm .uwd-mm-sec h6{margin:0 0 4px!important;font:800 12px/1.6 var(--uwp-font,"Plus Jakarta Sans"),system-ui,sans-serif!important;letter-spacing:.18em!important;color:rgba(255,255,255,.75)!important;text-transform:uppercase}
.uwd-mm a.uwd-mm-row{display:flex;justify-content:space-between;align-items:center;padding:12px 2px;border-bottom:1px solid rgba(255,255,255,.22);font-size:16.5px;font-weight:700}
.uwd-mm a.uwd-mm-row svg{opacity:.7}
.uwd-mm .uwd-mm-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.uwd-mm .uwd-mm-btns a{display:flex!important;align-items:center;justify-content:center;height:48px;border-radius:999px;font-weight:800!important;font-size:15px!important;letter-spacing:0!important;text-transform:none!important;line-height:1.2!important}
.uwd-mm .uwd-mm-post{background:#fff;color:var(--uwp-mm-1,#ff0a7a)!important}
.uwd-mm .uwd-mm-btns .uwd-mm-donate{background:transparent;border:1.5px solid #fff;color:#fff!important;margin:0!important;padding:0!important}
.uwd-mm .uwd-mm-links{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:18px 0 0;padding:0;font-size:14px}
.uwd-mm .uwd-mm-links li{list-style:none}
.uwd-mm .uwd-mm-social{justify-content:center}
/* --- footer --- */
.uwd-footer{--f-bg:#faf6ee;--f-ink:#1f1a14;--f-ink2:#4a3f36;--f-mut:#8a7b6c;--f-line:#eadfd3;--f-card:#fff;--f-p:#ff0055;--f-pd:#c8003f;--f-soft:#ffe3ec;
  background:var(--f-bg);color:var(--f-ink);border-top:1px solid var(--f-line);font-family:var(--uwp-font,"Plus Jakarta Sans"),system-ui,sans-serif;padding:34px 0 calc(24px + env(safe-area-inset-bottom))}
[data-uwp-theme="dark"] .uwd-footer{--f-bg:#141015;--f-ink:#f3ece6;--f-ink2:#d6cbc2;--f-mut:#a89a8c;--f-line:#33292e;--f-card:#1e181d;--f-pd:#ff4d88;--f-soft:#2c1c22}
.uwd-footer *{box-sizing:border-box}
.uwd-footer a{color:inherit;text-decoration:none}
.uwd-f-wrap{max-width:1240px;margin:0 auto;padding:0 20px}
.uwd-f-top{display:grid;gap:26px}
.uwd-f-brand .uwp-brand{display:inline-flex;align-items:center;gap:10px}
.uwd-footer .uwd-f-about{font-size:14.5px;line-height:1.65;color:var(--f-ink2);margin:10px 0 4px;max-width:420px}
.uwd-footer .uwd-f-founder{font-size:13px;color:var(--f-mut);margin:0}
.uwd-f-soc{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.uwd-f-soc a{width:40px;height:40px;border-radius:50%;border:1px solid var(--f-line);background:var(--f-card);display:grid;place-items:center;color:var(--f-ink)!important;transition:transform .15s}
.uwd-f-soc a:hover{transform:translateY(-2px);color:var(--f-p)!important}
.uwd-f-soc svg{width:18px;height:18px}
.uwd-f-cols{border-top:1px solid var(--f-line)}
.uwd-f-col{border-bottom:1px solid var(--f-line)}
.uwd-f-col summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:15px 2px;cursor:pointer;font-weight:800;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--f-pd)}
.uwd-f-col summary::-webkit-details-marker{display:none}
.uwd-f-pm{position:relative;width:14px;height:14px}
.uwd-f-pm::before,.uwd-f-pm::after{content:"";position:absolute;left:0;top:6px;width:14px;height:2px;background:var(--f-ink);border-radius:2px}
.uwd-f-pm::after{transform:rotate(90deg);transition:transform .2s}
.uwd-f-col[open] .uwd-f-pm::after{transform:rotate(0)}
.uwd-f-col ul{list-style:none;margin:0;padding:2px 2px 16px;display:grid;grid-template-columns:1fr 1fr;gap:11px 14px}
.uwd-f-col li{margin:0;list-style:none}
.uwd-f-col a{font-size:15px;color:var(--f-ink2)}
.uwd-f-col a:hover{color:var(--f-p)}
.uwd-footer a.uwd-f-all{color:var(--f-p);font-weight:700}
.uwd-f-join{display:flex;flex-direction:column;gap:12px;text-align:center;background:var(--f-soft);border:1px solid rgba(255,0,85,.22);border-radius:18px;padding:18px;margin-top:26px}
.uwd-f-join b{display:block;font-size:18px;color:var(--f-ink)}
.uwd-f-join span{font-size:14px;color:var(--f-ink2)}
.uwd-f-btns{display:grid;gap:8px}
.uwd-footer .uwd-f-btn{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 22px;border-radius:999px;background:var(--f-p);color:#fff!important;font-weight:800;font-size:14.5px;box-shadow:0 8px 20px rgba(255,0,85,.22)}
.uwd-footer .uwd-f-wa{background:#25d366;box-shadow:0 8px 20px rgba(37,211,102,.22)}
.uwd-f-note{margin-top:16px;background:var(--f-card);border:1px solid var(--f-line);border-radius:14px;padding:12px 14px;font-size:13px;line-height:1.6;color:var(--f-ink2)}
.uwd-f-bottom{display:flex;flex-direction:column-reverse;gap:12px;align-items:center;text-align:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--f-line);font-size:12.5px;color:var(--f-mut);line-height:1.6}
.uwd-f-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;list-style:none;margin:0;padding:0}
.uwd-f-legal li{list-style:none;margin:0}
.uwd-f-legal a:hover{color:var(--f-p)}
@media (max-width:860px){.uwd-footer{padding-bottom:calc(96px + env(safe-area-inset-bottom))}} /* room for the bottom bar */
@media (min-width:861px){
  .uwd-footer{padding-top:46px}
  .uwd-f-top{grid-template-columns:minmax(240px,1.3fr) 4fr;gap:40px}
  .uwd-f-cols{border:0;display:grid;grid-template-columns:repeat(5,1fr);gap:24px}
  .uwd-f-col{border:0}
  .uwd-f-col summary{cursor:default;padding:4px 0 14px}
  .uwd-f-pm{display:none}
  .uwd-f-col ul{grid-template-columns:1fr;gap:10px;padding:0}
  .uwd-f-col a{font-size:14.5px}
  .uwd-f-join{flex-direction:row;justify-content:space-between;align-items:center;text-align:left;padding:18px 22px;margin-top:34px}
  .uwd-f-btns{display:flex}
  .uwd-f-bottom{flex-direction:row;justify-content:space-between;text-align:left}
  .uwd-f-legal{justify-content:flex-end}
}
@media (min-width:861px) and (max-width:1180px){
  .uwd-f-top{grid-template-columns:1fr;gap:28px}
  .uwd-f-brand{display:grid;grid-template-columns:auto 1fr;gap:6px 22px;align-items:center}
  .uwd-f-brand .uwd-f-about{max-width:none;margin:0}
  .uwd-f-brand .uwd-f-founder,.uwd-f-brand .uwd-f-soc{grid-column:2}
  .uwd-f-col summary{letter-spacing:.1em}
}
/* --- phone header: keep the menu (☰) button fully on screen with a gap from the left edge.
   Only the empty space between the search button and the logo is made smaller; icons, sizes and logo stay the same. --- */
@media (max-width:640px){
  html body .uwp.uwp-header .uwp-header-in{gap:6px!important}
  html body .uwp.uwp-header .uwp-header-actions{gap:6px!important}
  html body .uwp.uwp-header .uwp-brand-text{padding-inline-end:0}
  html body .uwp.uwp-header .uwp-wrap{padding-inline:14px!important}
}
/* Header pen (Post Poetry) button: hidden on every screen size; posting is done from the + button / menu. */
html body .uwp.uwp-header .uwp-header-actions>.uwp-post-btn{display:none!important}
