/* Documentation Centre: full-screen modal with an independently scrollable card list/reader. */
.document-guide-modal{position:fixed;inset:0;z-index:9000;background:#f5f7fb;overflow:hidden;padding:0}
.document-guide-modal.hidden{display:none}
.document-guide{width:100%;height:100%;max-width:none;margin:0;background:#f5f7fb;display:flex;flex-direction:column;overflow:hidden;border-radius:0;box-shadow:none}
.guide-head{flex:0 0 auto;min-height:68px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 24px;border-bottom:1px solid #dfe5ee;background:#fff;z-index:2}
.guide-head strong{display:block;font-size:19px;color:#0f172a}
.guide-head .muted{font-size:12px;color:#64748b;margin-top:3px}
.guide-layout{position:relative;display:flex;flex:1;min-height:0;overflow:hidden}
.guide-grid{width:100%;height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:15px;padding:22px 24px 32px}
.guide-grid.hidden{display:none}
.guide-card{min-width:0;border:1px solid #dce4ef;border-radius:14px;padding:17px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.045);display:flex;flex-direction:column;align-items:stretch;transition:border-color .15s,box-shadow .15s}
.guide-card:hover{border-color:#9bb8db;box-shadow:0 8px 22px rgba(15,23,42,.08)}
.guide-card-category{font-size:10px;letter-spacing:.09em;font-weight:800;color:#0f766e;margin-bottom:9px}
.guide-card h3{margin:0 0 8px;font-size:16px;line-height:1.35;color:#111827;font-weight:800}
.guide-card p{color:#526174;font-size:13px;line-height:1.6;margin:0 0 13px;flex:1}
.guide-flow{font-size:12px;line-height:1.5;color:#0f766e;background:#ecfdf5;border-radius:8px;padding:9px 10px;overflow-wrap:anywhere}
.guide-card .view-all{margin-top:13px;width:100%;min-height:38px}
.guide-group-heading{grid-column:1/-1;padding:10px 2px 0;border-top:1px solid #dbe3ee;margin-top:8px}
.guide-group-heading span{font-size:12px;letter-spacing:.12em;font-weight:900;color:#0f766e}
.guide-group-heading p{margin:5px 0 0;color:#64748b;font-size:13px}
.guide-reader{position:absolute;inset:0;z-index:3;background:#fff;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.guide-reader.hidden{display:none}
.guide-detail-head{flex:0 0 auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px 22px;border-bottom:1px solid #e2e8f0;background:#fff}
.guide-reader-title{text-align:center;min-width:0}
.guide-detail-head span{font-size:10px;letter-spacing:.14em;font-weight:900;color:#0f766e}
.guide-detail-head h2{font-size:21px;line-height:1.3;margin:4px 0 0;color:#0f172a}
.guide-detail-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;width:min(100%,1000px);margin:0 auto;padding:30px 42px 54px;color:#334155;font-size:14px;line-height:1.75}
.guide-reader-intro{font-size:16px;line-height:1.8;color:#334155;background:#f1f5f9;border-left:4px solid #0f766e;border-radius:8px;padding:17px 19px;margin:0 0 22px}
.guide-reader-section{margin:0 0 23px}
.guide-reader-section h3{font-size:16px;color:#0f172a;margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid #e5eaf1}
.guide-reader-section p{margin:0;color:#475569}
.guide-list{margin:7px 0 0;padding-left:23px}
.guide-list li{padding:3px 0 5px;color:#475569}
.guide-reader-footnote{margin-top:30px;padding:13px 15px;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:12px;line-height:1.6}
@media(max-width:1000px){.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px}.guide-detail-content{padding:24px 28px}}
@media(max-width:620px){.guide-head{padding:12px 14px;min-height:60px}.guide-head strong{font-size:16px}.guide-head .muted{max-width:250px;line-height:1.4}.guide-grid{grid-template-columns:minmax(0,1fr);padding:13px;gap:11px}.guide-card{padding:15px}.guide-detail-head{grid-template-columns:auto minmax(0,1fr) auto;gap:7px;padding:10px}.guide-detail-head .btn{font-size:11px;padding:7px 9px;white-space:nowrap}.guide-detail-head h2{font-size:15px}.guide-detail-head span{font-size:8px}.guide-detail-content{padding:18px 16px 36px;font-size:13px}.guide-reader-intro{font-size:14px;padding:13px}.guide-reader-section h3{font-size:15px}}

/* Integrated Apni Dukaan guide navigation */
.guide-shop-toc{margin:22px 0 30px;padding:18px;border:1px solid #dbe4ee;border-radius:12px;background:#f8fafc}
.guide-shop-toc h3{margin:0 0 5px;color:#0f172a;font-size:17px}
.guide-shop-toc>p{margin:0 0 14px;color:#64748b;font-size:13px}
.guide-shop-menu-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:9px;overflow:hidden}
.guide-shop-menu-table th,.guide-shop-menu-table td{padding:11px 12px;border-bottom:1px solid #e8edf3;text-align:left;vertical-align:top;font-size:13px;line-height:1.55}
.guide-shop-menu-table th{background:#eef4f8;color:#334155;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.guide-shop-menu-table td:first-child{width:22%;white-space:nowrap;color:#0f172a}
.guide-shop-menu-table td:last-child{width:105px;white-space:nowrap}
.guide-topic-link,.guide-topic-top a{color:#087f72;font-weight:750;text-decoration:none}
.guide-topic-link:hover,.guide-topic-top a:hover{text-decoration:underline}
.guide-shop-topic{padding-top:8px;margin:0 0 34px;scroll-margin-top:18px}
.guide-shop-topic h2{margin:0 0 14px;color:#0f172a;font-size:22px}
.guide-shop-topic-kicker{font-size:10px;font-weight:900;letter-spacing:.13em;color:#0f766e;margin-bottom:5px}
.guide-topic-top{margin:14px 0 0;font-size:12px}
.document-guide-open{overflow:hidden!important}
@media(max-width:620px){
 .guide-shop-toc{padding:12px;margin:16px 0 24px}
 .guide-shop-menu-table th,.guide-shop-menu-table td{padding:8px 7px;font-size:11px}
 .guide-shop-menu-table td:first-child{width:auto;white-space:normal}
 .guide-shop-menu-table td:last-child{width:auto;white-space:normal}
 .guide-shop-topic h2{font-size:19px}
}

/* 2026-11-16 usability refinements: wide reader, single left back control, no horizontal table scroll. */
.guide-detail-head{grid-template-columns:auto minmax(0,1fr);}
.guide-detail-head .guide-reader-title{text-align:center;}
.guide-detail-content{width:100%;max-width:none;margin:0;padding:24px clamp(18px,3vw,48px) 48px;overflow-x:hidden;}
.guide-shop-toc{width:100%;max-width:none;overflow:visible;}
.guide-shop-menu-table{width:100%;table-layout:fixed;}
.guide-shop-menu-table th:first-child,.guide-shop-menu-table td:first-child{width:19%;}
.guide-shop-menu-table th:nth-child(2),.guide-shop-menu-table td:nth-child(2){width:auto;}
.guide-shop-menu-table th:last-child,.guide-shop-menu-table td:last-child{width:125px;white-space:nowrap;}
.guide-shop-menu-table td{overflow-wrap:anywhere;}
.guide-shop-menu-table td:last-child a{display:inline-block;white-space:nowrap;}
@media(max-width:700px){.guide-detail-head{grid-template-columns:auto minmax(0,1fr);gap:10px}.guide-detail-content{padding:16px 12px 32px}.guide-shop-menu-table th:first-child,.guide-shop-menu-table td:first-child{width:24%}.guide-shop-menu-table th:last-child,.guide-shop-menu-table td:last-child{width:94px}.guide-shop-menu-table th,.guide-shop-menu-table td{padding:8px 6px;font-size:11px}}
