/* My Nursing Hub – Mobile Reading & Learning UX, draft v1.
 * A deliberately small, modular override after base & experience styles.
 */
:root{--mnh-tap-size:44px}
.mnh-site-main,.mnh-site-header,.mnh-container,.mnh-note-card,.mnh-reading-main,.mnh-prose{min-width:0}
.mnh-prose img,.mnh-prose video,.mnh-prose iframe,.mnh-prose svg,.mnh-prose canvas{max-width:100%;height:auto}
.mnh-prose pre,.mnh-prose .wp-block-code{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.mnh-prose p,.mnh-prose li,.mnh-prose blockquote,.mnh-prose a,.mnh-box-references,.mnh-author-card{overflow-wrap:anywhere}
.mnh-note-study-layout .mnh-btn-pdf:focus-visible,.mnh-focus-toggle:focus-visible,.mnh-table-view-toggle:focus-visible,.mnh-preview-resource:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}
.mnh-note-study-layout .mnh-note-header .mnh-btn-pdf{min-height:var(--mnh-tap-size);justify-content:center}
.mnh-mobile-table-shell{width:100%;max-width:100%;min-width:0;position:relative;margin:25px 0}
.mnh-mobile-table-shell .mnh-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;border-radius:15px}
.mnh-mobile-table-shell table{margin:0;max-width:100%;border-collapse:collapse}
.mnh-table-view-toggle{display:none;min-height:40px;border:1px solid #bbdadd;background:#e9f7f5;color:#0e6867;font-family:inherit;font-size:13px;font-weight:800;border-radius:10px;padding:9px 13px;margin:0 0 10px;cursor:pointer}
.mnh-table-view-toggle:hover{background:#d3f2ec}
.mnh-table-view-toggle:focus-visible{outline:3px solid #38bdf8;outline-offset:2px}
.mnh-table-swipe-hint{display:none}
.mnh-note-study-layout .mnh-breadcrumbs,.mnh-note-study-layout .mnh-breadcrumbs a{color:#426273}
.mnh-note-study-layout .mnh-study-sidebar-kicker{color:#096c65}
.mnh-note-study-layout .mnh-toc-empty{color:#4a6575}
.mnh-note-study-layout .mnh-alert-box h2{font-size:15px;line-height:1.35;margin:0 0 7px;font-weight:800;color:inherit}
.mnh-note-study-layout .mnh-box-takeaways h2{font-size:18px;font-weight:800;color:#155a53;margin:0 0 11px}
.mnh-note-study-layout .mnh-box-references h2{font-size:16px;font-weight:800;line-height:1.35;color:#214c61;margin:0 0 13px}
.mnh-note-study-layout .mnh-author-card .author-details h2{font-size:16px;font-weight:800;line-height:1.35;color:#1c4255;margin:0 0 6px}
.mnh-note-study-layout .mnh-author-card .author-details p{color:#3f5968;line-height:1.55}
.mnh-mobile-table-shell figcaption,.mnh-mobile-table-shell caption{font-size:13px;color:#526c7c;text-align:left;padding:0 0 11px;font-weight:700}
@media(max-width:820px){
 .mnh-reading-workspace{width:100%;max-width:100%}
 .mnh-note-study-layout{margin-top:17px!important}
 .mnh-note-study-layout .mnh-note-header{margin-bottom:17px}
 .mnh-note-study-layout .mnh-reading-main,.mnh-note-study-layout .mnh-prose{min-width:0;max-width:100%}
 .mnh-prose table:not(.mnh-responsive-table){display:block;max-width:100%;overflow-x:auto;white-space:normal;-webkit-overflow-scrolling:touch}
 .mnh-note-study-layout .mnh-prose th,.mnh-note-study-layout .mnh-prose td{white-space:normal}
 .mnh-hero-section .mnh-hero-visual-col{display:block!important;max-width:610px;width:100%;margin:0 auto}
 .mnh-study-sidebar{padding:18px}
 .mnh-study-sidebar h2{font-size:16px}
 }
@media(max-width:700px){
 .mnh-mobile-table-shell .mnh-table-view-toggle{display:inline-flex;align-items:center}
 .mnh-table-swipe-hint{display:block;font-size:12px;color:#526e7f;margin:6px 0 10px}
 .mnh-mobile-table-shell.is-stacked .mnh-table-scroll{overflow:visible}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;white-space:normal!important;border:0;background:transparent}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table caption{display:block;width:100%;margin-bottom:10px}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table tbody{display:block!important;width:100%!important}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table tbody tr{display:block!important;border:1px solid #d9e9ec!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 18px rgba(7,59,80,.04);margin:0 0 13px;overflow:hidden}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table tbody td{display:grid!important;grid-template-columns:minmax(0,37%) minmax(0,1fr);gap:12px;width:100%!important;max-width:100%!important;min-width:0!important;border:0!important;border-bottom:1px solid #e9eff2!important;padding:13px 14px!important;font-size:14px!important;line-height:1.55!important;white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:top!important;background:transparent!important;text-align:left!important}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table tbody td:last-child{border-bottom:0!important}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table tbody td::before{content:attr(data-mnh-label);font-size:12px;line-height:1.45;color:#116b67;font-weight:800;overflow-wrap:anywhere}
 .mnh-mobile-table-shell:not(.is-stacked) table.mnh-responsive-table{display:table!important;width:max-content!important;max-width:none!important;min-width:650px!important;white-space:normal!important}
 .mnh-mobile-table-shell:not(.is-stacked) table.mnh-responsive-table th,
 .mnh-mobile-table-shell:not(.is-stacked) table.mnh-responsive-table td{white-space:normal!important;min-width:120px!important}
 .mnh-table .mnh-mobile-table-shell{width:100%}
 .mnh-dashboard-grid .mnh-card{min-width:0;max-width:100%}
 .mnh-practice-wrap,.mnh-dashboard-wrap,.mnh-archive-wrap{min-width:0;overflow-wrap:anywhere}
 .mnh-mcq-runner-card{max-width:100%;min-width:0}
 .mcq-opt-btn{min-height:50px;max-width:100%}
 .mnh-preview-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .mnh-site-header .mnh-header-inner{height:64px;min-width:0;gap:7px;display:flex;justify-content:space-between}
 .mnh-logo-link{min-width:0;flex:1 1 auto;max-width:calc(100% - 105px)}
 .mnh-brand-logo{width:clamp(130px,42vw,178px)!important;max-width:100%!important;height:auto}
 .mnh-header-actions{gap:4px!important;flex-shrink:0}
 .mnh-header-actions>.mnh-btn-primary{display:none!important} /* sign-in/dashboard is available from the drawer */
 .mnh-header-actions .mnh-btn-icon{min-height:44px!important;min-width:44px!important;width:44px!important;height:44px!important;padding:10px!important}
 .mnh-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .mnh-search-form .mnh-search-input{width:100%;min-width:0;font-size:16px}
 .mnh-search-form #btnCloseSearch{grid-column:2;grid-row:2;justify-self:end}
 .mnh-search-form>.mnh-btn-primary{min-height:44px}
 .mnh-hero-section .mnh-hero-visual-col{display:block!important;width:100%!important;max-width:100%!important;margin:0!important}
 .mnh-learning-preview{width:100%;max-width:100%;margin:0 auto;min-height:0}
 .mnh-preview-shell{max-width:100%;transform:none;border-radius:18px}
 .mnh-preview-body{padding:14px!important}
 .mnh-preview-bar{padding:12px}
 .mnh-preview-head h2{font-size:19px}
 .mnh-preview-head p{font-size:11px;margin-bottom:15px}
 .mnh-preview-resource-grid{gap:7px}
 .mnh-preview-resource{padding:11px 8px;min-height:77px;gap:7px}
 .mnh-preview-resource-arrow{display:none}
 .mnh-preview-resource-icon{width:29px;height:29px;flex:none;font-size:17px}
 .mnh-preview-resource strong{font-size:11px}
 .mnh-preview-resource small{font-size:9px;line-height:1.3}
 .mnh-preview-float{display:none!important}
 .mnh-hero-section{padding:37px 0 45px}
 .mnh-hero-section .mnh-hero-grid{gap:26px}
 .mnh-hero-section .mnh-hero-title{font-size:clamp(31px,9vw,44px);line-height:1.1}
 .mnh-hero-section .mnh-hero-lead{font-size:15px;line-height:1.65}
 .mnh-hero-section .mnh-hero-ctas{gap:10px}
 .mnh-hero-section .mnh-hero-ctas>a{min-height:49px;font-size:14px}
 .mnh-hero-section .mnh-quickbar-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .mnh-hero-section .mnh-sem-pill{padding:10px 4px;font-size:12px}
 .mnh-pathways-section{padding:43px 0}
 .mnh-pathway-card{padding:19px 18px;min-height:0}
 .mnh-note-study-layout .mnh-note-header{border-radius:18px;padding:22px 17px}
 .mnh-note-study-layout .mnh-single-title{font-size:clamp(25px,7vw,33px);line-height:1.17}
 .mnh-note-study-layout .mnh-prose{padding:19px 17px;font-size:16px;line-height:1.8;border-radius:16px}
 .mnh-note-study-layout .mnh-prose h2{font-size:22px}
 .mnh-note-study-layout .mnh-prose h3{font-size:18px}
 .mnh-note-study-layout .mnh-note-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .mnh-note-study-layout .mnh-note-actions>*{width:100%;min-width:0;min-height:44px}
 .mnh-note-study-layout .mnh-breadcrumbs{font-size:12px}
 .mnh-note-study-layout .mnh-prose li{margin-bottom:.5em}
 .mnh-note-study-layout .mnh-alert-box{padding:15px 14px;gap:10px}
 .mnh-box-references,.mnh-box-takeaways{max-width:100%;min-width:0}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table tbody td{grid-template-columns:minmax(0,37%) minmax(0,1fr);font-size:13px!important;padding:12px 10px!important;gap:9px}
 .mnh-mobile-table-shell.is-stacked table.mnh-responsive-table tbody td::before{font-size:11px}
 .mnh-notes-grid,.mnh-sem-cards-grid,.mnh-jobs-grid,.mnh-clinical-grid{grid-template-columns:1fr!important;gap:14px}
 .mnh-note-card{padding:19px 18px}
 .mnh-note-card .note-card-footer{flex-wrap:wrap;gap:9px}
 .mnh-note-card .note-card-actions{width:100%;justify-content:space-between}
}
@media(max-width:360px){
 .mnh-preview-resource-grid{grid-template-columns:1fr}
 .mnh-preview-resource{min-height:65px}
 .mnh-preview-resource small{font-size:10px}
 .mnh-hero-section .mnh-quickbar-pills{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.mnh-mobile-tabbar{display:none}
@media(max-width:600px){
 body{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 .mnh-mobile-tabbar{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:1300;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:2px;min-height:64px;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);border-top:1px solid #dbe7ec;box-shadow:0 -9px 30px rgba(8,50,67,.085);backdrop-filter:blur(12px)}
 .mnh-tabbar-link{font-family:inherit;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:50px;padding:6px 3px;border:0;border-radius:12px;background:transparent;color:#536f81;font-size:10px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer}
 .mnh-tabbar-link svg{display:block;width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
 .mnh-tabbar-link.is-active{background:#e5f7f3;color:#076a64}
 .mnh-tabbar-link:hover,.mnh-tabbar-link:focus-visible{background:#edf7f8;color:#0a6663}
 .mnh-tabbar-link:focus-visible{outline:2px solid #0e8eaf;outline-offset:-2px}
}
/* Persistent reading progress: fixed below the sticky header for the full chapter */
.mnh-fixed-reading-progress{position:fixed;top:86px;left:0;right:0;z-index:950;display:flex;align-items:center;gap:12px;min-height:37px;padding:7px max(18px,calc((100vw - 1220px)/2));border-bottom:1px solid #d9e8eb;background:rgba(247,253,252,.975);box-shadow:0 7px 18px rgba(3,44,57,.065);backdrop-filter:blur(12px)}
.admin-bar .mnh-fixed-reading-progress{top:86px} /* JS positions exactly under the rendered header */
.mnh-fixed-progress-label{font-size:10px;font-weight:900;letter-spacing:.09em;color:#175f62;white-space:nowrap}
.mnh-fixed-progress-number{font-size:11px;color:#124e62;font-weight:800;min-width:32px}
.mnh-fixed-progress-track{height:7px;border-radius:20px;background:#dbece9;flex:1;overflow:hidden}
.mnh-fixed-progress-track>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#10aa9d,#0879b8);border-radius:20px;transition:width .14s ease}
.mnh-note-study-layout{padding-top:40px}
.mnh-note-card .note-read-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;white-space:nowrap;text-decoration:none!important;background:#0b716f!important;color:white!important;border:1px solid #0b716f!important;padding:10px 18px!important;font-size:13px;font-weight:800;line-height:1.2;border-radius:999px!important;box-shadow:0 4px 12px rgba(15,118,110,.15);transition:background .16s ease,box-shadow .16s ease}
.mnh-note-card .note-read-link:hover{background:#075957!important;border-color:#075957!important;color:white!important;box-shadow:0 6px 16px rgba(15,118,110,.23)}
.mnh-note-card .note-read-link:focus-visible{outline:3px solid #32abd5;outline-offset:3px}
.mnh-note-card .note-pdf-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border-radius:999px;border:1px solid #b8dcd8;color:#086e6a;background:#f1faf8;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap}
.mnh-note-card .note-pdf-link:hover{background:#dcf5ee;color:#075957}
.mnh-note-card .note-card-footer{gap:12px;flex-wrap:wrap}
.mnh-note-card .note-author{overflow-wrap:anywhere;flex:1 1 115px;line-height:1.45}
@media(max-width:768px){
 .mnh-fixed-reading-progress{top:72px}
 .admin-bar .mnh-fixed-reading-progress{top:72px} /* runtime measurement takes precedence */
 .mnh-note-study-layout{padding-top:24px}
}
@media(max-width:600px){
 .mnh-fixed-reading-progress{top:64px;min-height:34px;padding:6px 13px;gap:10px;z-index:900}
 .admin-bar .mnh-fixed-reading-progress{top:64px} /* no phantom WP toolbar gap on mobile */
 .mnh-fixed-progress-label{font-size:9px}
 .mnh-fixed-progress-track{height:6px}
 .mnh-note-study-layout{padding-top:22px!important}
 .mnh-note-card .note-card-footer{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .mnh-note-card .note-author{flex:0 1 auto;font-size:11px}
 .mnh-note-card .note-read-link{min-height:46px;padding:11px 22px!important}
 .mnh-note-card .note-card-actions{display:grid;width:100%;grid-template-columns:1fr 1fr;gap:9px}
 .mnh-note-card .note-card-actions .note-read-link,.mnh-note-card .note-card-actions .note-pdf-link{width:100%;min-width:0;text-align:center;padding-left:9px!important;padding-right:9px!important;font-size:12px}
}
@media(max-width:360px){
 .mnh-note-card .note-card-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 .mnh-mobile-table-shell *, .mnh-note-study-layout *{scroll-behavior:auto!important;animation:none!important}
}
