/*
Theme Name: Runama My — Personal Reading Room
Theme URI: https://my.runama.com/
Author: Runama
Description: خانه شخصی رونما؛ داشبورد کاربر، خبرهای منتخب، علاقه‌مندی‌ها، ابزارک‌ها و پروفایل
Version: 6.1.1
Requires PHP: 7.4
Text Domain: runama-my-theme
*/
:root{--ink:#172334;--muted:#6c7788;--line:#e9edf1;--blue:#1767c2;--soft:#f6f8fb;--white:#fff}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:15px/1.85 Tahoma,Arial,sans-serif}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.topbar{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}.top-inner{height:65px;max-width:1600px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:22px;font-weight:800;white-space:nowrap}.brand b,.eyebrow,.link-button{color:var(--blue)}.top-actions{display:flex;gap:22px;font-size:13px;color:var(--muted)}.top-search-link{font-size:13px;color:var(--muted)}.app-shell{max-width:1450px;margin:auto;display:grid;grid-template-columns:248px minmax(0,1fr);gap:46px;padding:34px 30px 70px}.sidebar{position:sticky;top:100px;align-self:start;min-height:calc(100vh - 140px);border-left:1px solid var(--line);padding-left:24px}.side-user{display:flex;align-items:center;gap:12px;padding:8px 8px 28px}.side-user img{border-radius:50%;object-fit:cover}.side-user strong,.side-user small{display:block}.side-user small{font-size:12px;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:5px}.tab{border:0;background:none;border-radius:11px;padding:12px 16px;text-align:right;color:var(--ink);font-weight:500;display:flex;gap:15px;align-items:center}.tab:hover,.tab.active{background:#eef5fd;color:#125aa8}.tab.active{font-weight:700}.nav-icon{font-size:22px;line-height:1;width:25px;text-align:center}.side-bottom{display:flex;flex-direction:column;gap:14px;margin:35px 15px;font-size:13px;color:var(--muted)}.workspace{min-width:0;max-width:1040px;width:100%}.workspace-top{display:flex;justify-content:space-between;align-items:center;margin:2px 0 25px}.workspace-top h1{margin:0;font-size:clamp(23px,3vw,32px)}.eyebrow{font-size:12px;font-weight:700}.today{color:var(--muted);font-size:12px}.searchbar{display:flex;gap:10px;margin:0 0 25px}.searchbar input,.field{width:100%;min-width:0;border:1px solid #dde5ed;border-radius:11px;padding:11px 14px;background:#fff;color:var(--ink)}.field{display:block;margin:7px 0 16px}.searchbar button,.primary{border:0;background:var(--blue);color:#fff;padding:10px 20px;border-radius:10px}.secondary{background:#fff;border:1px solid var(--line);padding:10px 15px;border-radius:10px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.section-head h2{font-size:20px;margin:0}.panel{border:1px solid var(--line);border-radius:15px;padding:22px;margin:14px 0;background:#fff}.panel h2,.panel h3{margin-top:0}.muted,.sub,.story p{color:var(--muted)}.sub{font-size:12px}.story{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.story:last-child{border-bottom:0}.story img{width:142px;height:100px;object-fit:cover;border-radius:11px}.story>div:last-child{min-width:0}.story h3{font-size:17px;line-height:1.65;margin:3px 0}.story p{font-size:13px;margin:5px 0}.story-meta{font-size:12px;color:var(--muted)}.story-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}.link-button{background:none;border:0;padding:0;font-size:12px}.story-fallback{width:140px;height:90px;background:var(--soft);border-radius:11px;display:grid;place-items:center;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:24px;align-items:start}.widget-stack{display:grid;gap:15px}.widget{border:1px solid var(--line);border-radius:14px;padding:17px;background:#fff}.widget h3{font-size:15px;margin:0 0 12px}.widget p{margin:6px 0;font-size:13px;color:var(--muted)}.widget a{color:var(--blue);font-size:13px}.widget-value{font-size:24px;font-weight:800}.taglist{display:flex;flex-wrap:wrap;gap:9px}.tag{border:1px solid #dce5ed;background:#fff;border-radius:22px;padding:7px 13px;font-size:13px}.tag.on{background:#e9f3ff;border-color:#a7c8ed;color:#165aa7}.empty{padding:28px 8px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink)}.note{border-bottom:1px solid var(--line);padding:15px 0}.note:last-child{border:0}.note p{white-space:pre-wrap}.resume{padding:18px;background:#f3f7fd;border-radius:13px;margin:0 0 20px}.notice{padding:12px 16px;background:#fff3e6;border-radius:10px;margin:12px 0}.hide{display:none!important}.status{color:var(--muted);font-size:12px}.rmy-tools{margin:20px 0}.more{display:block;margin:20px auto}.profile-cover{height:160px;border-radius:15px;background:linear-gradient(125deg,#dceaf8,#f3f7fd);background-size:cover;background-position:center}.profile-head{display:flex;align-items:center;gap:16px;margin:-27px 18px 20px}.profile-head img{width:80px;height:80px;border:4px solid #fff;border-radius:50%}.profile-head strong{font-size:20px}.onboarding{position:fixed;inset:0;z-index:50;background:rgba(13,28,47,.55);display:flex;justify-content:center;align-items:center;padding:20px}.onboard-card{background:#fff;border-radius:20px;max-width:650px;width:100%;max-height:90vh;overflow:auto;padding:30px}.onboard-card h2{margin:0}.onboard-step{font-size:12px;color:var(--blue);font-weight:700}.onboard-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px}.public-home{max-width:850px;margin:90px auto;padding:0 25px;text-align:center}.public-home h1{font-size:clamp(29px,5vw,48px);line-height:1.5}.public-home>p{color:var(--muted)}.public-mark{font-size:12px;letter-spacing:4px;color:var(--blue);font-weight:bold}.login-box{max-width:470px;text-align:right;margin:48px auto;padding:28px;border:1px solid var(--line);border-radius:17px}.login-box p{font-size:13px;color:var(--muted)}.login-box input:not([type=checkbox]){max-width:100%}.footer{border-top:1px solid var(--line);padding:20px 30px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}:focus-visible{outline:3px solid #8db9e9;outline-offset:2px}
@media(max-width:1100px){.app-shell{gap:20px;grid-template-columns:210px minmax(0,1fr);padding:25px 18px}.dashboard-grid{grid-template-columns:1fr}.widget-stack{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.top-inner{padding:0 16px;height:57px}.top-search-link{display:none}.app-shell{display:block;padding:18px 15px 95px}.sidebar{position:fixed;bottom:0;top:auto;right:0;left:0;z-index:30;min-height:0;background:#fff;border-top:1px solid var(--line);border-left:0;padding:4px 5px}.side-user,.side-bottom{display:none}.nav{flex-direction:row;justify-content:space-around;gap:0}.tab{flex-direction:column;gap:2px;font-size:10px;padding:7px 2px;text-align:center;min-width:0}.nav-icon{font-size:19px}.workspace-top{margin-bottom:15px}.workspace-top h1{font-size:23px}.dashboard-grid{grid-template-columns:1fr}.widget-stack{grid-template-columns:1fr 1fr}.story{gap:10px}.story img,.story-fallback{width:90px;height:75px}.story h3{font-size:14px}.story p{display:none}.panel{padding:15px}.onboard-card{padding:20px}.footer{padding-bottom:90px}}
@media(max-width:410px){.tab{font-size:9px}.widget-stack{grid-template-columns:1fr}.searchbar button{padding:9px 12px}}

/* 5.0.1: usable compact mobile navigation */
@media(max-width:700px){.sidebar .nav{overflow-x:auto;justify-content:flex-start;scrollbar-width:thin;overscroll-behavior-x:contain}.sidebar .tab{flex:0 0 auto;min-width:65px;padding:8px 6px}.sidebar{padding-bottom:env(safe-area-inset-bottom)}.app-shell{padding-bottom:calc(110px + env(safe-area-inset-bottom))}}

/* Runama My 6.0 — visible dashboard experience */
:root{--ink:#14283b;--muted:#68798a;--line:#e6edf2;--blue:#1269bc;--soft:#f5f9fc}body{font-family:Tahoma,Arial,sans-serif;background:#fff}.topbar{box-shadow:0 2px 15px rgba(20,40,59,.035)}.brand{letter-spacing:-.6px}.app-shell{max-width:1540px;grid-template-columns:246px minmax(0,1fr);gap:36px;padding-top:28px}.sidebar{top:94px;padding-left:18px}.side-user{background:#f4f8fc;border-radius:17px;padding:14px;margin-bottom:19px}.side-user img{border:3px solid white;box-shadow:0 2px 8px #d6e4f1}.tab{transition:background .15s ease,transform .15s ease;font-size:14px}.tab:hover{transform:translateX(-2px)}.tab.active{background:#e8f2fc;box-shadow:inset -3px 0 0 #1470c4}.workspace{max-width:1120px}.workspace-top{margin-bottom:17px}.workspace-top h1{font-size:clamp(24px,3vw,33px);letter-spacing:-.4px}.workspace-intro{margin:2px 0 0;color:var(--muted);font-size:13px}.home-hero{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;min-height:230px;padding:30px 38px;border-radius:20px;background:linear-gradient(118deg,#102f52 0%,#15578c 62%,#237db6 100%);color:#fff;margin-bottom:18px}.hero-main{position:relative;z-index:2;max-width:620px}.hero-kicker{font-size:11px;letter-spacing:.4px;opacity:.85}.home-hero h2{font-size:clamp(24px,3.5vw,35px);margin:7px 0;line-height:1.6}.home-hero p{font-size:13px;line-height:2;opacity:.87;margin:4px 0 19px}.hero-actions{display:flex;gap:9px;flex-wrap:wrap}.hero-button,.hero-outline{border-radius:9px;padding:9px 16px;font-size:12px;font-weight:bold}.hero-button{background:white;color:#12558b;border:1px solid white}.hero-outline{background:transparent;color:white;border:1px solid #9cc5e0}.hero-decoration{width:195px;height:170px;border:1px solid #ffffff3d;border-radius:22px;transform:rotate(-9deg);display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffff10;box-shadow:18px 14px 0 #ffffff0b;flex-shrink:0}.hero-decoration span{font-size:12px;opacity:.7}.hero-decoration strong{font-family:Arial,sans-serif;font-size:66px;line-height:1.15;letter-spacing:-6px}.hero-decoration small{font-size:10px;opacity:.7}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:25px}.quick-actions button{display:flex;align-items:center;text-align:right;gap:11px;padding:15px 13px;border:1px solid var(--line);background:#fff;border-radius:14px;color:var(--ink);min-width:0;transition:box-shadow .2s,border-color .2s}.quick-actions button:hover{border-color:#a4c9e9;box-shadow:0 5px 18px #0d4c8c0d}.quick-actions strong,.quick-actions small{display:block}.quick-actions strong{font-size:12px;white-space:nowrap}.quick-actions small{font-size:11px;color:var(--muted)}.quick-icon{display:grid;place-items:center;background:#eaf3fb;color:#1769ad;width:36px;height:36px;flex-shrink:0;border-radius:11px;font-size:20px}.quick-arrow{margin-right:auto;color:#8ba2b5}.dashboard-grid{grid-template-columns:minmax(0,1fr) 285px;gap:18px}.panel,.widget{border-radius:15px;box-shadow:0 3px 16px rgba(18,52,81,.035)}.story h3 a:hover{color:var(--blue)}.story img{transition:transform .2s}.story img:hover{transform:scale(1.025)}.section-head h2{font-size:19px}.tag{transition:background .2s}.tag:hover{background:#edf5fc}@media(max-width:1100px){.app-shell{grid-template-columns:205px minmax(0,1fr);gap:20px}.dashboard-grid{grid-template-columns:1fr}.widget-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-decoration{width:125px;height:125px}.hero-decoration strong{font-size:43px}}@media(max-width:700px){.app-shell{display:block;padding:15px 14px 110px}.sidebar{top:auto;padding:4px 5px}.workspace-top{margin-bottom:14px}.workspace-intro{font-size:11px}.home-hero{min-height:0;padding:22px;border-radius:16px}.home-hero h2{font-size:23px}.home-hero p{font-size:12px}.hero-decoration{display:none}.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:17px}.quick-actions button{padding:11px 7px;flex-direction:column;text-align:center;gap:5px}.quick-actions strong{font-size:10px;white-space:normal}.quick-actions small,.quick-arrow{display:none}.quick-icon{width:30px;height:30px;font-size:17px}.dashboard-grid{grid-template-columns:1fr}.widget-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.story{padding:13px 0}}@media(max-width:370px){.quick-actions{grid-template-columns:1fr 1fr}.quick-actions button:last-child{grid-column:span 2}.widget-stack{grid-template-columns:1fr}}

.home-hero[hidden],.quick-actions[hidden]{display:none!important}

/* Guest-only page: preserve plugin original masonry composition. */
body:not(.logged-in) .rm-guest{min-height:calc(100vh - 130px)}
