.tpg-qr-root{--tpg-navy:#0a213b;--tpg-navy2:#102f50;--tpg-gold:#dba94a;--tpg-cream:#fbf5e7;--tpg-maroon:#7d172c;max-width:840px;margin:32px auto!important;font-family:system-ui,-apple-system,"Noto Sans Bengali","Hind Siliguri",sans-serif;line-height:1.6;box-sizing:border-box;color:#14283f}
.tpg-qr-root *, .tpg-qr-root *::before,.tpg-qr-root *::after{box-sizing:border-box}
.tpg-qr-root .tpg-hub-card{overflow:hidden;position:relative;border-radius:28px;background:#fff;box-shadow:0 16px 45px rgba(2,18,37,.11);border:1px solid #e6ddc8}
.tpg-qr-root .tpg-hub-header{position:relative;overflow:hidden;background:radial-gradient(circle at 80% 5%,rgba(219,169,74,.15),transparent 40%),linear-gradient(140deg,#081b34,#0e365c);text-align:center;color:#fff;padding:42px 22px 38px;border-bottom:5px solid var(--tpg-gold)}
.tpg-qr-root .tpg-hub-logo{display:block;object-fit:contain;width:94px;height:94px;margin:0 auto 17px;border-radius:50%;background:#000;box-shadow:0 0 0 3px #fff,0 0 0 6px var(--tpg-gold)}
.tpg-qr-root .tpg-hub-eyebrow{color:#f8d786;font-size:11px;letter-spacing:.16em;font-weight:800;margin-bottom:8px}
.tpg-qr-root .tpg-hub-header h1{color:#fff!important;margin:0!important;font-size:clamp(28px,5vw,42px)!important;line-height:1.16!important;font-weight:800!important}
.tpg-qr-root .tpg-hub-header p{font-size:15px;line-height:1.8;margin:14px auto 0;color:#e7eef5;max-width:520px}
.tpg-qr-root .tpg-hub-links{background:linear-gradient(155deg,#fff,#fdfaf3);padding:26px clamp(16px,4vw,42px) 29px;display:flex;flex-direction:column;gap:13px}
.tpg-qr-root .tpg-hub-link{display:flex;align-items:center;gap:15px;border:1px solid #e4dcc8;padding:16px 18px;border-radius:15px;text-decoration:none!important;color:#14283f!important;background:#fff;box-shadow:0 5px 14px rgba(0,20,50,.04);transition:transform .18s,box-shadow .18s,border-color .18s}
.tpg-qr-root .tpg-hub-link:hover,.tpg-qr-root .tpg-hub-link:focus{transform:translateY(-2px);border-color:#dba94a;box-shadow:0 9px 20px rgba(0,20,50,.09);text-decoration:none}
.tpg-qr-root .tpg-hub-link-icon{background:#f7f1e2;display:flex;align-items:center;justify-content:center;border-radius:12px;width:52px;height:52px;font-size:23px;flex:none}
.tpg-qr-root .tpg-hub-link-copy{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0}
.tpg-qr-root .tpg-hub-link-copy strong{font-size:17px;line-height:1.35;font-weight:800;color:#112942}
.tpg-qr-root .tpg-hub-link-copy small{font-size:12px;color:#53657a}
.tpg-qr-root .tpg-hub-link-arrow{font-size:22px;font-weight:700;color:#a17c3e;line-height:1}
.tpg-qr-root .tpg-hub-footer{background:#f4ead6;text-align:center;padding:18px;color:#815c2e;font-size:11px;font-weight:900;letter-spacing:.22em}
.tpg-qr-root .tpg-hub-dot{margin:0 14px;color:#aa7837}
.tpg-qr-root .tpg-qr-studio{margin-top:28px;border:1px solid #d5dfe8;background:white;border-radius:20px;box-shadow:0 10px 35px rgba(0,20,40,.08);overflow:hidden}
.tpg-qr-root .tpg-qr-studio-head{padding:24px 26px;background:#f1f6fa;border-bottom:1px solid #dbe5ef}
.tpg-qr-root .tpg-admin-pill{display:inline-flex;border-radius:999px;background:#dbe9f4;padding:4px 10px;color:#204668;font-size:11px;font-weight:800;letter-spacing:.05em}
.tpg-qr-root .tpg-qr-studio h2{font-size:23px!important;margin:10px 0 3px!important;line-height:1.2!important;color:#0c2c49!important}
.tpg-qr-root .tpg-qr-studio-head p{margin:5px 0 0;font-size:14px;color:#455f74}
.tpg-qr-root .tpg-qr-studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding:26px}
.tpg-qr-root .tpg-qr-controls{display:flex;flex-direction:column;gap:10px;min-width:0}
.tpg-qr-root .tpg-qr-controls label{color:#152d42;font-size:13px;font-weight:700;margin-top:3px}
.tpg-qr-root .tpg-qr-controls select,.tpg-qr-root .tpg-qr-controls input{width:100%;min-height:44px;border:1px solid #b7c8d5;border-radius:10px;padding:10px;background:#fff!important;max-width:100%;font-size:14px;color:#163047}
.tpg-qr-root .tpg-qr-controls input:focus,.tpg-qr-root .tpg-qr-controls select:focus{outline:2px solid #c4a156;outline-offset:1px}
.tpg-qr-root .tpg-qr-controls .tpg-primary{background:linear-gradient(110deg,#0d2c4e,#174775);color:white;border:0;border-radius:10px;padding:13px;margin-top:6px;font-size:14px;font-weight:800;cursor:pointer}
.tpg-qr-root .tpg-qr-controls .tpg-primary:hover{background:#204f80}
.tpg-qr-root .tpg-qr-hint,.tpg-qr-root .tpg-qr-small{font-size:12px;color:#63788a;margin:2px 0;line-height:1.5}
.tpg-qr-root .tpg-qr-status{font-size:12px;font-weight:650;min-height:20px;margin:0;color:#24664b}
.tpg-qr-root .tpg-qr-status.is-error{color:#aa2137}
.tpg-qr-root .tpg-qr-output{display:flex;flex-direction:column;gap:12px;align-items:center;min-width:0}
.tpg-qr-root .tpg-qr-preview{width:100%;max-width:315px;aspect-ratio:1;border:1px dashed #a5b6c6;background:white;border-radius:15px;display:grid;place-items:center;overflow:hidden;color:#8294a8}
.tpg-qr-root .tpg-qr-preview svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}
.tpg-qr-root .tpg-qr-downloads{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.tpg-qr-root .tpg-qr-downloads button{padding:10px 8px;font-size:12px;font-weight:700;border:1px solid #b4c5d3;background:#f3f7fa;color:#173d5f;border-radius:9px;cursor:pointer;line-height:1.2;min-height:40px}
.tpg-qr-root .tpg-qr-downloads button:disabled{opacity:.46;cursor:not-allowed}
.tpg-qr-root .tpg-qr-downloads button:not(:disabled):hover{background:#e6edf2}
.tpg-qr-root .tpg-qr-admin-settings{font-size:13px;background:#f8fafc;padding:12px 26px;margin:0!important;border-top:1px solid #e4ecf3}
.tpg-qr-root .tpg-qr-admin-settings a{color:#135185}
@media(max-width:620px){.tpg-qr-root{margin:14px auto!important}.tpg-qr-root .tpg-qr-studio-grid{grid-template-columns:1fr;padding:17px}.tpg-qr-root .tpg-hub-header{padding:32px 15px}.tpg-qr-root .tpg-qr-studio-head{padding:18px}.tpg-qr-root .tpg-hub-link-copy strong{font-size:15px}.tpg-qr-root .tpg-hub-link{gap:10px;padding:12px}.tpg-qr-root .tpg-hub-link-icon{width:44px;height:44px}.tpg-qr-root .tpg-qr-admin-settings{padding:13px 18px}}

/* Hide the theme's duplicate page title only on pages showing the TPG QR Hub. */
body:has(.tpg-qr-root) h1.entry-title,
body:has(.tpg-qr-root) .page-header .page-title {display:none!important;}
/* v1.1.0 QR customization controls / downloadable formats */
.tpg-qr-root .tpg-qr-custom-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:10px 0}
.tpg-qr-root .tpg-qr-custom-grid label{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0;font-size:12px}
.tpg-qr-root .tpg-qr-custom-grid input[type="color"]{min-height:44px;padding:4px;cursor:pointer}
.tpg-qr-root .tpg-qr-downloads{grid-template-columns:repeat(2,minmax(0,1fr))}
.tpg-qr-root .tpg-qr-downloads button{font-size:12px;min-height:43px}
.tpg-qr-root .tpg-qr-studio-grid{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)}
.tpg-qr-root .tpg-hub-link-icon{font-family:system-ui,-apple-system,'Segoe UI Emoji','Apple Color Emoji',sans-serif}
@media(max-width:680px){.tpg-qr-root .tpg-qr-studio-grid{grid-template-columns:1fr}}

/* v1.2.0: mobile logo and card studio. A versioned logo URL avoids stale mobile caches. */
.tpg-qr-root .tpg-hub-header img.tpg-hub-logo,
.tpg-qr-root .tpg-hub-logo {
  display:block!important;
  width:96px!important;height:96px!important;
  max-width:96px!important;min-width:96px!important;min-height:96px!important;
  padding:0!important;margin:0 auto 17px!important;
  object-fit:contain!important;object-position:center center!important;
  box-sizing:border-box!important;border-radius:50%!important;
  flex-shrink:0!important;transform:none!important;
  vertical-align:middle!important;
}
.tpg-qr-root .tpg-hub-header{isolation:isolate;min-width:0}
.tpg-qr-root .tpg-hub-header h1{overflow-wrap:anywhere}
.tpg-qr-root .tpg-qr-preview {width:100%;max-width:370px;min-height:250px;aspect-ratio:auto!important;
  padding:10px!important;display:flex;justify-content:center;align-items:center;overflow:visible;
  background:#eef3f7;border:1px solid #c2cbd6;border-radius:15px;}
.tpg-qr-root .tpg-qr-preview canvas{display:block;width:100%!important;height:auto!important;max-width:100%!important;
  object-fit:contain;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.08)}
.tpg-qr-root .tpg-qr-group-title{margin:13px 0 3px;font-size:14px;font-weight:850;
  padding:9px 11px;border-radius:9px;background:#eaf1f6;color:#0c2c49;border-left:4px solid #dba94a;}
.tpg-qr-root .tpg-qr-controls input[type="file"]{padding:8px;font-size:12px;max-width:100%;height:auto}
.tpg-qr-root .tpg-qr-action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tpg-qr-root .tpg-qr-action-row button {background:#f5f9fc;border:1px solid #bdcedc;color:#173a5c;
  padding:10px 6px;border-radius:8px;min-height:43px;cursor:pointer;font-size:12px;font-weight:700;}
.tpg-qr-root .tpg-qr-action-row button:hover{border-color:#dba94a;background:#eaf0f5;}
.tpg-qr-root .tpg-qr-controls input[type="text"]{font-family:inherit}
body.tpg-hub-page .entry-header > .entry-title,
body.tpg-hub-page .page-header > .page-title,
body.tpg-hub-page header.entry-header h1.entry-title{display:none!important}
@media (max-width:620px){
  .tpg-qr-root{width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;min-width:0;
    margin:16px auto!important;overflow:visible;}
  .tpg-qr-root .tpg-hub-card{border-radius:17px}
  .tpg-qr-root .tpg-hub-header{padding:29px 13px 27px;}
  .tpg-qr-root .tpg-hub-header img.tpg-hub-logo{width:88px!important;height:88px!important;
    min-width:88px!important;max-width:88px!important;min-height:88px!important;}
  .tpg-qr-root .tpg-hub-eyebrow{letter-spacing:.06em;overflow-wrap:anywhere}
  .tpg-qr-root .tpg-qr-studio-grid{padding:14px;gap:18px;}
  .tpg-qr-root .tpg-qr-preview{max-width:100%;padding:8px!important;}
  .tpg-qr-root .tpg-hub-link-copy strong{overflow-wrap:anywhere}
}

/* 2.0.0 — Standalone public generator, responsive design, optional ad placements. */
.tpg-public-qr-root{max-width:1120px!important;margin:20px auto 45px!important}
.tpg-public-qr-root .tpg-qr-studio{margin-top:16px}
.tpg-qr-root .tpg-public-header{background:linear-gradient(125deg,#081b32,#16476c);border:2px solid #cfab68;border-radius:20px;padding:26px 30px;color:#fff;display:flex;align-items:center;gap:20px;box-shadow:0 9px 24px rgba(7,32,66,.15)}
.tpg-qr-root .tpg-public-header img{width:72px!important;height:72px!important;min-width:72px!important;max-width:72px!important;object-fit:contain!important;border-radius:50%!important;background:#000;flex-shrink:0}
.tpg-qr-root .tpg-public-header span{display:block;font-size:12px;color:#f5d697;font-weight:800;letter-spacing:.13em}
.tpg-qr-root .tpg-public-header h1{font-size:clamp(25px,3.8vw,37px)!important;color:#fff!important;margin:5px 0 6px!important;line-height:1.2!important}
.tpg-qr-root .tpg-public-header p{color:#e5f2fd;margin:0!important;font-size:14px;line-height:1.55}
.tpg-qr-root .tpg-public-footer{color:#65768a;text-align:center;font-size:12px;padding:16px!important;margin:6px auto!important}
.tpg-qr-root .tpg-public-disabled{border:1px solid #dce1e7;border-radius:14px;padding:30px;text-align:center;background:#f6f8fc;color:#173e5b}
.tpg-qr-root .tpg-qr-ad{max-width:100%;padding:11px 12px 8px;margin:18px auto;text-align:center;background:#f6f7f8;border:1px solid #e4e5e6;border-radius:12px}
.tpg-qr-root .tpg-qr-ad>span{display:block;font:11px/1.5 system-ui,sans-serif;letter-spacing:.08em;color:#738394;margin-bottom:9px}
.tpg-qr-root .tpg-qr-ad .tpg-ad-widget{overflow:hidden;max-width:100%}
.tpg-qr-root .tpg-qr-ad iframe{max-width:100%!important}
.tpg-qr-root .tpg-qr-admin-extra{padding:12px 24px 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;background:#f8fafc;border-top:1px solid #dbe5ef}
.tpg-qr-root .tpg-qr-admin-panel{background:#fff;border:1px solid #d4dfea;border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0}
.tpg-qr-root .tpg-qr-admin-panel:last-child{grid-column:1/-1}
.tpg-qr-root .tpg-qr-admin-panel h3{margin:0!important;font-size:18px!important;color:#143555!important}
.tpg-qr-root .tpg-qr-admin-panel p{margin:0!important;line-height:1.55;color:#597086;font-size:13px}
.tpg-qr-root .tpg-qr-admin-panel button{border:1px solid #aac0d6;border-radius:8px;padding:9px 13px;background:#eaf0f8;color:#194364;font-size:13px;font-weight:750;cursor:pointer}
.tpg-qr-root .tpg-qr-admin-panel button:hover{background:#dce9f4}
.tpg-qr-root .tpg-qr-admin-panel input,.tpg-qr-root .tpg-qr-admin-panel select,.tpg-qr-root .tpg-qr-admin-panel textarea{min-height:42px;max-width:100%;width:100%;background:#fff!important;border:1px solid #b5c7d8;border-radius:8px;padding:8px;color:#132f45;font-size:13px}
.tpg-qr-root .tpg-qr-admin-panel textarea{min-height:120px;resize:vertical}
.tpg-qr-root .tpg-dynamic-list{display:grid;gap:8px;max-height:350px;overflow:auto;padding:5px 2px}
.tpg-qr-root .tpg-dynamic-item{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) auto auto auto;align-items:center;gap:8px;padding:8px;border:1px solid #e1e9ee;border-radius:8px}
.tpg-qr-root .tpg-dynamic-item strong{font-size:12px;overflow-wrap:anywhere}
.tpg-qr-root .tpg-dynamic-item a{font-size:12px}
.tpg-qr-root .tpg-qr-downloads button:last-child{grid-column:auto}
.tpg-qr-root .tpg-qr-controls input[type=color]{min-width:0}
@media(max-width:780px){.tpg-qr-root .tpg-qr-admin-extra{grid-template-columns:1fr;padding:14px}.tpg-qr-root .tpg-qr-admin-panel:last-child{grid-column:auto}.tpg-qr-root .tpg-dynamic-item{grid-template-columns:1fr 1fr}.tpg-qr-root .tpg-dynamic-item strong,.tpg-qr-root .tpg-dynamic-item input{grid-column:1/-1}}
@media(max-width:620px){.tpg-public-qr-root{width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important}.tpg-qr-root .tpg-public-header{padding:22px 16px;flex-direction:column;text-align:center;gap:9px;border-radius:16px}.tpg-qr-root .tpg-public-header img{width:74px!important;height:74px!important}.tpg-qr-root .tpg-public-header span{font-size:10px}.tpg-qr-root .tpg-qr-downloads{grid-template-columns:repeat(2,minmax(0,1fr))}.tpg-qr-root .tpg-qr-admin-panel{padding:14px}}

/* v2.1 — quick, accessible, mobile-first public QR refinements */
.tpg-qr-root .tpg-language-control{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-size:12px;font-weight:750;color:#26465e}
.tpg-qr-root .tpg-language-control select{height:36px;min-height:36px;max-width:120px;width:auto;padding:3px 9px;border:1px solid #b7c8d9;border-radius:8px;background:#fff;color:#12324b}
.tpg-qr-root .tpg-browser-history{width:100%;max-width:480px;background:#f7fafc;border:1px solid #d9e3eb;border-radius:14px;padding:15px;margin-top:12px;text-align:start}
.tpg-qr-root .tpg-browser-history h3{font-size:15px!important;margin:0 0 8px!important;color:#133857!important}
.tpg-qr-root .tpg-browser-history p{margin-bottom:10px!important;line-height:1.5}
.tpg-qr-root .tpg-browser-history select{display:block;width:100%;max-width:100%;height:42px;border:1px solid #b9cbd8;background:#fff;border-radius:8px;margin-bottom:9px;padding:8px;color:#19394f}
.tpg-qr-root .tpg-browser-history .tpg-qr-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tpg-qr-root .tpg-browser-history button{background:#fff;color:#1a4365;border:1px solid #b9cbd8;border-radius:8px;min-height:42px;font-weight:700;font-size:12px;cursor:pointer}
.tpg-qr-root .tpg-browser-history button:hover,.tpg-qr-root .tpg-browser-history button:focus-visible{border-color:#947138;background:#f5f0e6}
.tpg-qr-root .tpg-qr-faq{max-width:1050px;margin:20px auto 0;padding:24px 28px;border-radius:18px;background:#fff;border:1px solid #dce6ee;box-shadow:0 8px 25px rgba(8,35,57,.04);color:#163850}
.tpg-qr-root .tpg-qr-faq h2{font-size:22px!important;font-weight:800!important;margin:0 0 15px!important;color:#123752!important}
.tpg-qr-root .tpg-qr-faq details{padding:12px 2px;border-bottom:1px solid #e7edf2}
.tpg-qr-root .tpg-qr-faq details:last-child{border-bottom:0}
.tpg-qr-root .tpg-qr-faq summary{font-weight:750;cursor:pointer;line-height:1.6;outline-offset:3px}
.tpg-qr-root .tpg-qr-faq p{font-size:14px;line-height:1.8;color:#455e71;padding:8px 0 0;margin:0}
.tpg-qr-root button:focus-visible,.tpg-qr-root input:focus-visible,.tpg-qr-root select:focus-visible{outline:3px solid #d3a552;outline-offset:2px}
.tpg-public-qr-root .tpg-qr-studio{contain:layout style}
@media (max-width:620px){
 .tpg-public-qr-root .tpg-qr-faq{margin:15px 0 0;padding:18px 15px;border-radius:13px}
 .tpg-qr-root .tpg-browser-history{padding:12px}
 .tpg-qr-root .tpg-qr-studio-head .tpg-language-control{flex-wrap:wrap}
 .tpg-qr-root .tpg-qr-downloads button{min-height:47px}
 .tpg-qr-root .tpg-qr-controls input{max-width:100%;min-width:0}
}
@media (prefers-reduced-motion:reduce){.tpg-qr-root *{scroll-behavior:auto!important;transition:none!important}}
