/* KasH Universe 3.5 — mobile-only reading and learning navigation.
   Desktop features remain unchanged. All components respect existing KasH state. */
.k35-news-shelf,.k35-learning-hub,.k35-home-bridge{display:none;}
@media (max-width:860px){
  #newsView,#exploreView{min-width:0;}
  #newsView .page-intro h1,#exploreView .page-intro h1{font-size:clamp(24px,6.5vw,32px);line-height:1.2;}
  .k35-news-shelf,.k35-learning-hub,.k35-home-bridge{display:block;min-width:0;color:var(--ink);}
  .k35-news-shelf,.k35-learning-hub{margin:7px 0 18px;padding:20px 17px;background:var(--panel-solid);border:1px solid #e3d8f4;border-radius:23px;box-shadow:0 8px 24px #34235b11;}
  .k35-learning-hub{background:linear-gradient(140deg,#f3ecff 0%,#fefcff 70%);}
  .k35-news-shelf{background:linear-gradient(140deg,#f6f0ff 0%,#fffaf5 95%);}
  .k35-eyebrow{display:block;font-size:10px;letter-spacing:1.1px;font-weight:900;color:#7957b4;}
  .k35-hub-heading h2,.k35-shelf-head h2{margin:6px 0 5px;font:800 23px/1.2 Manrope, sans-serif;color:#392454;letter-spacing:-.5px;}
  .k35-hub-heading p,.k35-shelf-head p{margin:0 0 13px;color:#6a5a80;font-size:12px;line-height:1.5;}
  .k35-shelf-head{display:flex;align-items:start;justify-content:space-between;gap:12px;}
  .k35-shelf-art{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;background:#ffffffa6;border:1px solid #e9daf5;border-radius:15px;font-size:25px;}
  .k35-learning-stats,.k35-shelf-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0;}
  .k35-learning-stats>div,.k35-shelf-stats>span{display:flex;flex-direction:column;gap:4px;background:#ffffffc9;padding:13px;border-radius:14px;border:1px solid #e6daf5;min-width:0;}
  .k35-learning-stats strong,.k35-shelf-stats strong{font:800 22px Manrope,sans-serif;color:#5e33a7;}
  .k35-learning-stats span,.k35-shelf-stats span{font-size:11px;color:#685879;line-height:1.4;}
  .k35-shelf-actions,.k35-learning-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0;}
  .k35-primary,.k35-secondary{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:46px;border-radius:13px;padding:11px 14px;font-size:12px;font-weight:800;line-height:1.3;cursor:pointer;min-width:0;}
  .k35-primary{border:1px solid #6541b8;background:#6841bd;color:#fff;flex:1 1 135px;}
  .k35-secondary{border:1px solid #d7c9ed;color:#513581;background:#fff;flex:1 1 110px;}
  .k35-primary:focus-visible,.k35-secondary:focus-visible,.k35-topic-row button:focus-visible,.k35-saved-item:focus-visible,.k35-course-action:focus-visible,.k35-home-bridge button:focus-visible{outline:3px solid #9876ed;outline-offset:2px;}
  .k35-current-course{background:#fff;border-radius:15px;border:1px solid #e4d7f1;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
  .k35-course-copy{display:flex;flex-direction:column;gap:4px;min-width:0;}
  .k35-course-copy small{color:#7c6791;font-size:10px;}
  .k35-course-copy strong{font:800 12px/1.35 Manrope,sans-serif;overflow-wrap:anywhere;}
  .k35-course-action{border:0;border-radius:11px;background:#efe7fb;color:#5f3b9c;min-height:44px;padding:8px 11px;font-size:11px;font-weight:800;flex:0 0 auto;cursor:pointer;}
  .k35-no-course,.k35-reading-empty{color:#695a7c;font-size:12px;line-height:1.5;margin:0;}
  .k35-topics-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:17px 1px 9px;}
  .k35-topics-heading strong{font-size:13px;color:#392454;}
  .k35-topics-heading small{font-size:10px;color:#77698a;}
  .k35-topic-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .k35-topic-row button{background:#fff;border:1px solid #e1d5ef;border-radius:13px;padding:10px 8px;min-height:44px;font-size:12px;font-weight:750;text-align:left;color:#563a80;cursor:pointer;}
  .k35-topic-row button:last-child{grid-column:1/-1;text-align:center;background:#ebe2fa;}
  .k35-preview-caption{display:block;font-size:10px;color:#75529c;letter-spacing:1px;margin:15px 0 7px;}
  .k35-saved-item{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:58px;padding:10px 12px;text-align:left;border:1px solid #e8dff0;border-radius:13px;background:#fff;margin-top:7px;color:#3b2b54;cursor:pointer;}
  .k35-saved-copy{display:flex;flex-direction:column;gap:3px;min-width:0;}
  .k35-saved-copy small{font-size:10px;color:#8069a0;}
  .k35-saved-copy strong{font-size:12px;line-height:1.38;overflow-wrap:anywhere;}
  .k35-saved-item>b{font-size:17px;color:#8051ca;}
  #newsView .news-tabs{margin-top:14px;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:9px;padding:3px 1px 12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;}
  #newsView .news-tab{font-size:12px;flex:0 0 auto;min-height:42px;padding:9px 14px;scroll-snap-align:start;}
  #newsView .kash-news-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;}
  #newsView #newsSearch{min-width:0;max-width:100%;flex:1 1 100%;min-height:46px;font-size:16px;}
  #newsView .news-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:11px;}
  #newsView .news-card{padding:17px 16px;border-radius:18px;min-width:0;}
  #newsView .news-card h3{font-size:17px;line-height:1.35;overflow-wrap:anywhere;}
  #newsView .news-card p{font-size:13px;line-height:1.6;}
  #newsView .news-open-btn{font-size:13px;min-height:44px;padding:12px 5px 5px;}
  #newsView .kash-bookmark{min-width:44px;min-height:44px;font-size:22px;}
  #newsReaderModal.news-reader-modal{padding:0;align-items:stretch;overflow:hidden;}
  #newsReaderModal .news-reader-panel{width:100%;height:100dvh;max-height:100dvh;border-radius:0;}
  #newsReaderModal .news-reader-body{display:block;overflow-y:auto;overscroll-behavior:contain;min-height:0;}
  #newsReaderModal .news-reader-copy{overflow:visible;padding:22px 18px;}
  #newsReaderModal .news-reader-topbar{min-height:64px;padding:12px 16px;}
  #newsReaderModal .news-reader-copy h2{font:800 clamp(24px,6.5vw,30px)/1.25 Manrope,sans-serif;overflow-wrap:anywhere;}
  #newsReaderModal .news-reader-summary p,#newsReaderModal .news-reader-context p{font-size:15px;line-height:1.8;}
  #newsReaderModal .news-reader-side{overflow:visible;padding:18px 18px calc(30px + env(safe-area-inset-bottom,0px));}
  #newsReaderModal .news-reader-side textarea{font-size:16px;min-height:125px;}
  #newsReaderModal .news-reader-side button,#newsReaderModal .news-original-link{min-height:45px;font-size:13px;}
  #newsReaderModal .modal-close{min-width:44px;min-height:44px;}
  .k35-home-bridge{background:var(--panel-solid);border:1px solid #e3d8f4;border-radius:19px;padding:16px 14px;margin:15px 0;}
  .k35-home-bridge-title{display:flex;flex-direction:column;gap:3px;margin-bottom:10px;}
  .k35-home-bridge-title>strong{font:800 16px Manrope,sans-serif;}
  .k35-home-bridge-grid{display:grid;gap:8px;}
  .k35-home-bridge-grid button{display:flex;align-items:center;gap:10px;border:1px solid #eadff6;background:var(--bg);color:var(--ink);padding:11px;border-radius:13px;min-width:0;text-align:left;min-height:65px;cursor:pointer;}
  .k35-home-bridge-grid button>span:first-child{font-size:23px;}
  .k35-home-bridge-grid button>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
  .k35-home-bridge-grid button strong{font-size:12px;line-height:1.3;overflow-wrap:anywhere;}
  .k35-home-bridge-grid button small{font-size:10px;line-height:1.4;color:var(--muted);}
  .k35-home-bridge-grid button>b{color:#8161bf;}
}
@media (max-width:360px){.k35-news-shelf,.k35-learning-hub{padding:15px 12px;}.k35-topic-row button{font-size:11px;}.k35-shelf-actions,.k35-learning-actions{gap:6px;}}
@media (min-width:861px){.k35-news-shelf,.k35-learning-hub,.k35-home-bridge{display:none!important;}}
@media (prefers-reduced-motion:reduce){#newsView .news-tabs{scroll-behavior:auto;}}
