.tpt-wrap{max-width:1120px}.tpt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:20px}.tpt-field,.tpt-row label{display:flex;flex-direction:column;gap:5px}.tpt-field input,.tpt-field select,.tpt-row input,.tpt-row select{width:100%;max-width:100%}.tpt-repeater{background:white;border:1px solid #dcdcde;padding:18px;margin:20px 0}.tpt-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end;gap:10px;border-bottom:1px solid #ddd;padding:12px 0}.tpt-row button{max-width:100px}
.tpt-date-control{display:flex;align-items:center;gap:6px;position:relative}.tpt-date-text{width:150px;max-width:100%}.tpt-date-picker{min-width:40px}

.ui-datepicker{z-index:100000!important;background:#fff;border:1px solid #8c8f94;box-shadow:0 5px 20px #0002;border-radius:5px;padding:12px;width:260px;font-size:14px}
.ui-datepicker-header{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:8px;flex-wrap:wrap}
.ui-datepicker-title{display:flex;gap:4px;order:0;flex:1;justify-content:center}
.ui-datepicker-prev,.ui-datepicker-next{cursor:pointer;padding:4px 6px;border:1px solid #ddd;border-radius:3px}
.ui-datepicker-prev{order:-1}.ui-datepicker-next{order:1}
.ui-datepicker-calendar{width:100%;border-collapse:collapse;text-align:center}
.ui-datepicker-calendar th{font-size:12px;padding:4px}
.ui-datepicker-calendar td a,.ui-datepicker-calendar td span{display:block;padding:6px 3px;text-decoration:none;border-radius:3px}
.ui-datepicker-calendar td a:hover,.ui-datepicker-current-day a{background:#2271b1!important;color:#fff!important}
.ui-datepicker select{max-width:95px;font-size:12px}

.tpt-public-summary{width:100%;border-collapse:collapse;margin:15px 0}
.tpt-public-summary th,.tpt-public-summary td{border:1px solid #ddd;padding:9px;text-align:left}
.tpt-public-summary th{background:#f4f5f6}
.tpt-public-summary form{margin:0}
@media(max-width:700px){.tpt-public-summary{display:block;overflow-x:auto;white-space:nowrap}}

/* Mobile and tablet support */
.tpt-wrap,.tpt-public{box-sizing:border-box;max-width:100%;min-width:0}
.tpt-wrap *,.tpt-public *{box-sizing:border-box}
.tpt-wrap .tpt-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.tpt-wrap .tpt-row{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}
.tpt-wrap .tpt-repeater{max-width:100%;min-width:0}
.tpt-public input,.tpt-public select,.tpt-public button{max-width:100%}
.tpt-public table,.tpt-wrap table{max-width:100%}
.tpt-public table th,.tpt-public table td,.tpt-wrap table th,.tpt-wrap table td{overflow-wrap:anywhere}
.tpt-public .tpt-status-badge,.tpt-wrap .tpt-status-badge{white-space:normal;text-align:center}
@media(max-width:1024px){
.tpt-wrap{padding-right:12px}.tpt-wrap .tpt-repeater{padding:14px}
.tpt-wrap .widefat,.tpt-public table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tpt-wrap .widefat th,.tpt-wrap .widefat td,.tpt-public table th,.tpt-public table td{min-width:95px}
}
@media(max-width:600px){
.tpt-wrap{padding:0 8px 12px 0}.tpt-wrap h1,.tpt-public h2{font-size:1.45rem;line-height:1.3}
.tpt-wrap .tpt-grid,.tpt-wrap .tpt-row{grid-template-columns:minmax(0,1fr);gap:12px}
.tpt-wrap .tpt-repeater{padding:12px;margin:14px 0}.tpt-wrap .tpt-row{padding:14px 0}
.tpt-wrap .tpt-row button{max-width:none;width:100%;min-height:40px}
.tpt-wrap input,.tpt-wrap select,.tpt-wrap button,.tpt-public input,.tpt-public select,.tpt-public button{font-size:16px;min-height:40px}
.tpt-date-control{width:100%}.tpt-date-control .tpt-date-text{width:100%;min-width:0;flex:1}
.tpt-public>form>p{display:flex;flex-direction:column;gap:10px}
.tpt-public>form>p input,.tpt-public>form>p button{width:100%}
.tpt-public-summary th,.tpt-public-summary td{padding:8px}
.tpt-status-badge{font-size:15px!important;padding:6px 10px!important}
.ui-datepicker{max-width:calc(100vw - 30px)}
}

/* v3.9: small-screen layouts for public member results and detail pages */
.tpt-public{width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere}
.tpt-public form,.tpt-public form p{max-width:100%}
.tpt-public input[type=text]{width:min(100%,360px)}
.tpt-public table{border-collapse:collapse;width:100%;max-width:100%;table-layout:auto}
.tpt-public table td,.tpt-public table th{padding:10px;vertical-align:top;overflow-wrap:anywhere}
.tpt-public button{cursor:pointer;min-height:44px;padding:9px 15px}
@media (max-width: 1024px){
 .tpt-public{padding:0 12px}
 .tpt-public table{display:table;width:100%;white-space:normal}
 .tpt-public table th,.tpt-public table td{min-width:0}
 .tpt-wrap .form-table{width:100%}
}
@media (max-width: 767px){
 .tpt-public{padding:0 8px}
 .tpt-public>form>p{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .tpt-public>form>p input,.tpt-public>form>p button{width:100%;max-width:100%;min-width:0}
 .tpt-public h2{font-size:1.35rem;line-height:1.35}
 /* The public summary becomes a stacked card, with a visible detail action. */
 .tpt-public-summary,.tpt-public-summary tbody,.tpt-public-summary tr,.tpt-public-summary td{display:block!important;width:100%!important;min-width:0!important;white-space:normal!important}
 .tpt-public-summary thead{display:none!important}
 .tpt-public-summary tr{border:1px solid #d6d9dd;border-radius:10px;padding:8px 12px;background:#fff}
 .tpt-public-summary td{border:0!important;border-bottom:1px solid #e7e9ed!important;padding:10px 0!important}
 .tpt-public-summary td:last-child{border-bottom:0!important}
 .tpt-public-summary td:before{display:block;font-size:12px;font-weight:700;color:#526071;margin-bottom:3px}
 .tpt-public-summary td:nth-child(1):before{content:'Member No.'}
 .tpt-public-summary td:nth-child(2):before{content:'Member'}
 .tpt-public-summary td:nth-child(3):before{content:'CID'}
 .tpt-public-summary td:nth-child(4):before{content:'Expiry'}
 .tpt-public-summary td:nth-child(5):before{content:'Status'}
 .tpt-public-summary td:nth-child(6):before{content:'Details'}
 .tpt-public-summary td:last-child button{width:100%}
 /* Full details: label/value tables become readable vertical pairs. */
 .tpt-public table:not(.tpt-public-summary){display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;white-space:normal!important}
 .tpt-public table:not(.tpt-public-summary) tbody{width:100%}
 .tpt-public table:not(.tpt-public-summary) td,.tpt-public table:not(.tpt-public-summary) th{min-width:0!important;white-space:normal;overflow-wrap:anywhere}
 .tpt-wrap .tpt-row{grid-template-columns:minmax(0,1fr)}
 .tpt-wrap .widefat{overflow-x:auto;-webkit-overflow-scrolling:touch}
 .tpt-wrap .tpt-date-control{max-width:100%}
}

.tpt-required{color:#b91c1c;font-weight:800}.tpt-wrap .tpt-field select{max-width:100%;width:100%}

/* Membership category and fee presentation */
.tpt-category-banner{background:#eef5ff;border:1px solid #c8dcf4;border-radius:8px;padding:12px 16px;align-self:stretch}
.tpt-category-banner p{margin:6px 0 0;color:#40566c}
.tpt-wrap .widefat th{font-weight:650}
.tpt-wrap .widefat td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}

/* v5.1: User rights appear as a readable vertical checklist on every device. */
.tpt-wrap .tpt-rights-stack{display:block!important;min-width:0}
.tpt-wrap .tpt-rights-stack .tpt-rights-item{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;margin:12px 0!important;white-space:normal!important;line-height:1.5}
.tpt-wrap .tpt-rights-stack .tpt-rights-item input[type=checkbox]{flex:0 0 auto;margin:0!important}

/* User Rights: two choices per row on desktop and tablets. */
.tpt-wrap .tpt-rights-stack{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:24px;row-gap:12px;align-items:start}
.tpt-wrap .tpt-rights-stack legend{grid-column:1/-1;margin-bottom:6px}
.tpt-wrap .tpt-rights-stack .tpt-rights-item{display:flex!important;align-items:center!important;min-width:0;margin:0!important;gap:10px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
@media(max-width:520px){.tpt-wrap .tpt-rights-stack{grid-template-columns:minmax(0,1fr)!important}}

/* v5.4: Align user rights content directly below its corresponding header. */
.tpt-wrap table.tpt-user-rights-table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;min-width:900px}
.tpt-wrap table.tpt-user-rights-table th,.tpt-wrap table.tpt-user-rights-table td{box-sizing:border-box!important;text-align:left!important;vertical-align:top!important;padding:12px 14px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.tpt-wrap table.tpt-user-rights-table td:nth-child(2){overflow-wrap:anywhere!important}
.tpt-wrap table.tpt-user-rights-table td:last-child form{width:100%!important;max-width:100%!important;text-align:left!important;margin:0!important}
.tpt-wrap table.tpt-user-rights-table td:last-child form>label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;flex-wrap:wrap!important}
.tpt-wrap table.tpt-user-rights-table .tpt-rights-stack{width:100%!important;box-sizing:border-box!important;text-align:left!important}
.tpt-wrap table.tpt-user-rights-table .tpt-rights-stack legend{text-align:left!important}
.tpt-wrap table.tpt-user-rights-table .tpt-rights-item{justify-content:flex-start!important;text-align:left!important}
.tpt-wrap table.tpt-user-rights-table td:last-child button{float:none!important;margin-top:12px!important}

/* v6.3: public menu link login dialog and denied-access notification */
.tpt-login-overlay{position:fixed;inset:0;background:rgba(10,20,35,.65);z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.tpt-login-dialog{width:min(100%,430px);max-height:90vh;overflow:auto;background:#fff;color:#1d2327;border-radius:12px;padding:28px;box-shadow:0 20px 70px rgba(0,0,0,.3)}
.tpt-login-dialog h2{margin:0 0 12px;font-size:24px}.tpt-login-dialog p{line-height:1.5}.tpt-login-dialog label{display:block;margin:12px 0 4px}.tpt-login-dialog input[type=text],.tpt-login-dialog input[type=password]{box-sizing:border-box;width:100%;padding:10px;border:1px solid #aaa;border-radius:5px}.tpt-login-dialog input[type=submit]{background:#135e96;color:#fff;border:0;border-radius:5px;padding:11px 20px;cursor:pointer}.tpt-login-dialog .login-remember label{display:flex;gap:8px;align-items:center}
.tpt-access-denied-notice{position:fixed;top:20px;left:50%;transform:translateX(-50%);width:min(90vw,650px);z-index:999999;background:#fff;border-left:5px solid #b32d2e;box-shadow:0 6px 30px rgba(0,0,0,.22);border-radius:5px;padding:16px 44px 16px 18px;color:#222;line-height:1.5}.tpt-access-denied-notice button{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:24px;cursor:pointer}

/* v7.4: Honorary Members: readable single-line cells across phone, tablet and desktop.
   The entire table scrolls horizontally rather than wrapping or clipping data. */
.tpt-honorary-scroll{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;box-sizing:border-box;border:1px solid #dcdcde;border-radius:6px}
.tpt-honorary-scroll .tpt-honorary-table{width:max-content!important;min-width:100%;max-width:none!important;table-layout:auto!important;border-collapse:collapse!important;margin:0!important}
.tpt-honorary-scroll .tpt-honorary-table th,.tpt-honorary-scroll .tpt-honorary-table td{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important;text-align:left!important;vertical-align:middle!important;padding:10px 12px!important;line-height:1.5!important;max-width:none!important}
.tpt-honorary-scroll .tpt-honorary-table th{font-weight:700!important}
.tpt-honorary-scroll .tpt-honorary-table td .tpt-status,.tpt-honorary-scroll .tpt-honorary-table td .tpt-badge{white-space:nowrap!important}
.tpt-honorary-scroll:focus-visible{outline:3px solid #2271b1;outline-offset:2px}
@media(max-width:782px){.tpt-honorary-scroll .tpt-honorary-table th,.tpt-honorary-scroll .tpt-honorary-table td{padding:9px 11px!important;font-size:13px!important}}

/* v7.5: Balanced responsive wrapping for Honorary Members, including headers.
   Names/locations/remarks wrap at word boundaries; identifiers and dates stay intact. */
.tpt-honorary-scroll{overflow-x:auto!important;overflow-y:auto!important}
.tpt-honorary-scroll .tpt-honorary-table{width:100%!important;min-width:760px!important;max-width:none!important;table-layout:auto!important}
.tpt-honorary-scroll .tpt-honorary-table th,
.tpt-honorary-scroll .tpt-honorary-table td{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important;vertical-align:top!important;line-height:1.45!important;padding:10px 12px!important;max-width:360px!important}
.tpt-honorary-scroll .tpt-honorary-table th{white-space:normal!important;min-width:80px!important;vertical-align:middle!important;line-height:1.3!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-serial{white-space:nowrap!important;min-width:125px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-cid{white-space:nowrap!important;min-width:110px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-expiry{white-space:nowrap!important;min-width:100px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-email{overflow-wrap:anywhere!important;min-width:155px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-name{min-width:150px!important;max-width:240px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-location{min-width:110px!important;max-width:190px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-remarks{min-width:150px!important;max-width:290px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-status{min-width:110px!important;max-width:170px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-actions{min-width:95px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-status .tpt-status,
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-status .tpt-badge{white-space:nowrap!important}
@media(max-width:782px){.tpt-honorary-scroll .tpt-honorary-table{min-width:720px!important}.tpt-honorary-scroll .tpt-honorary-table th,.tpt-honorary-scroll .tpt-honorary-table td{padding:9px 10px!important;font-size:13px!important}}

/* v7.6: Deliberate two-line headings; keep cells aligned and prevent oversized header lines. */
.tpt-honorary-scroll .tpt-honorary-table{table-layout:fixed!important;min-width:1050px!important;border-collapse:collapse!important}
.tpt-honorary-scroll .tpt-honorary-table th{font-size:13px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;text-align:left!important;vertical-align:middle!important;background:#f0f3f7!important;border-bottom:2px solid #c5cdd6!important}
.tpt-honorary-scroll .tpt-honorary-table th .tpt-hhead-first,.tpt-honorary-scroll .tpt-honorary-table th .tpt-hhead-second{display:block!important;white-space:normal!important}
.tpt-honorary-scroll .tpt-honorary-table th .tpt-hhead-second{margin-top:3px!important;font-weight:600!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-serial{width:160px!important;min-width:160px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-name{width:170px!important;min-width:170px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-cid{width:130px!important;min-width:130px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-email{width:175px!important;min-width:175px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-date{width:155px!important;min-width:155px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-expiry{width:125px!important;min-width:125px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-location{width:150px!important;min-width:150px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-remarks{width:185px!important;min-width:185px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-status{width:135px!important;min-width:135px!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-actions{width:105px!important;min-width:105px!important}
.tpt-honorary-scroll .tpt-honorary-table td{overflow-wrap:break-word!important;word-break:normal!important}
@media(max-width:782px){.tpt-honorary-scroll .tpt-honorary-table{min-width:1050px!important}}

/* v7.7: Stronger, clearly visible table grid and consistent slash spacing. */
.tpt-honorary-scroll{border:2px solid #9aaaba!important;border-radius:7px!important;background:#fff!important}
.tpt-honorary-scroll .tpt-honorary-table{border-collapse:collapse!important;border-spacing:0!important}
.tpt-honorary-scroll .tpt-honorary-table th,
.tpt-honorary-scroll .tpt-honorary-table td{border:1px solid #b7c2ce!important;box-shadow:none!important}
.tpt-honorary-scroll .tpt-honorary-table thead th{background:#e8eef5!important;color:#182b40!important;border-bottom:2px solid #8295a9!important;font-weight:700!important}
.tpt-honorary-scroll .tpt-honorary-table tbody tr:nth-child(even) td{background:#f5f8fb!important}
.tpt-honorary-scroll .tpt-honorary-table tbody tr:nth-child(odd) td{background:#fff!important}
.tpt-honorary-scroll .tpt-honorary-table tbody tr:hover td{background:#edf4fb!important}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hhead-first,
.tpt-honorary-scroll .tpt-honorary-table .tpt-hhead-second{word-spacing:normal!important;letter-spacing:normal!important}

/* v7.8: Keep date-format notation and slash-joined headings intact. */
.tpt-honorary-scroll .tpt-honorary-table th .tpt-h-nowrap{white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-expiry{width:155px!important;min-width:155px!important;}
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-location{width:190px!important;min-width:190px!important;}
.tpt-honorary-scroll .tpt-honorary-table th{padding:12px 13px!important;}

/* v7.9: Larger, bold bilingual Honorary Members column headings on all devices. */
.tpt-honorary-scroll .tpt-honorary-table thead th{font-size:17px!important;font-weight:800!important;line-height:1.5!important;padding:14px 15px!important;color:#142b42!important;}
.tpt-honorary-scroll .tpt-honorary-table thead th .tpt-hhead-first,.tpt-honorary-scroll .tpt-honorary-table thead th .tpt-hhead-second{font-size:17px!important;font-weight:800!important;line-height:1.5!important;}
.tpt-honorary-scroll .tpt-honorary-table thead th .tpt-hhead-second{margin-top:5px!important;}
@media(max-width:782px){.tpt-honorary-scroll .tpt-honorary-table thead th,.tpt-honorary-scroll .tpt-honorary-table thead th .tpt-hhead-first,.tpt-honorary-scroll .tpt-honorary-table thead th .tpt-hhead-second{font-size:16px!important;font-weight:800!important;}}

/* v8.1: Remove Remarks from list display and protect CID heading from mid-word wraps. */
.tpt-honorary-scroll .tpt-honorary-table .tpt-hcol-cid{width:285px!important;min-width:285px!important;max-width:none!important;white-space:nowrap!important;}
.tpt-honorary-scroll .tpt-honorary-table th.tpt-hcol-cid .tpt-cid-dz,
.tpt-honorary-scroll .tpt-honorary-table th.tpt-hcol-cid .tpt-cid-en{display:block!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important;}

/* v8.9: Compact public summary with expandable details. */
.tpt-honorary-summary .tpt-honorary-scroll{max-width:100%;overflow-x:auto}
.tpt-honorary-summary-table{width:100%;border-collapse:collapse;min-width:570px;font-size:15px}
.tpt-honorary-summary-table th,.tpt-honorary-summary-table td{padding:12px 14px;border:1px solid #aab9c9;text-align:left;vertical-align:middle}
.tpt-honorary-summary-table thead th{background:#e8eef5;color:#182b40;font-size:16px;font-weight:800}
.tpt-honorary-summary-table tbody tr:not(.tpt-honorary-detail-row):nth-of-type(4n+3){background:#f4f7fb}
.tpt-honorary-summary-table .tpt-honorary-id{white-space:nowrap;font-weight:600}
.tpt-honorary-detail-toggle{display:inline-block;cursor:pointer;padding:8px 12px;border-radius:5px;border:1px solid #28629a;background:#fff;color:#174b7a;font-weight:700;white-space:nowrap}
.tpt-honorary-detail-toggle:hover,.tpt-honorary-detail-toggle:focus{background:#e9f2fa;outline-offset:2px}
.tpt-honorary-detail-row[hidden]{display:none!important}
.tpt-honorary-detail-panel{padding:8px 4px 12px}
.tpt-honorary-detail-panel h3{margin:4px 0 14px;font-size:18px}
.tpt-honorary-detail-panel dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:0}
.tpt-honorary-detail-panel dt{font-weight:700;color:#334b63;margin-bottom:4px}
.tpt-honorary-detail-panel dd{margin:0;overflow-wrap:break-word}
@media(max-width:600px){.tpt-honorary-summary-table{min-width:490px;font-size:14px}.tpt-honorary-summary-table th,.tpt-honorary-summary-table td{padding:10px}.tpt-honorary-summary-table thead th{font-size:14px}}
/* v9.0: Responsive records collections */
.tpt-collection-nav{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 24px}
.tpt-collection-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.tpt-collection-table{width:100%;border-collapse:collapse;min-width:520px;background:#fff}
.tpt-collection-table th,.tpt-collection-table td{border:1px solid #b9c3cf;padding:11px 13px;vertical-align:top;overflow-wrap:break-word}
.tpt-collection-table th{background:#e7edf5;color:#1f2937;font-weight:700;font-size:15px}
.tpt-collection-table tr:nth-child(even){background:#f7f9fc}
.tpt-collection-form{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 25px;padding:14px;border:1px solid #d2dae4;border-radius:8px;background:#fff}
.tpt-collection-form label{display:flex;flex-direction:column;gap:5px;min-width:185px;flex:1}
.tpt-collection-form input{width:100%;box-sizing:border-box}
.tpt-collection-form button{align-self:end}
.tpt-collection-details summary{cursor:pointer;color:#175d9b;font-weight:700;white-space:nowrap}
.tpt-collection-details dl{min-width:220px;max-width:560px;white-space:normal}
.tpt-collection-details dt{font-weight:700;margin-top:10px}
.tpt-collection-details dd{margin:3px 0 0}
@media(max-width:680px){.tpt-collection-table th,.tpt-collection-table td{padding:9px;font-size:14px}.tpt-collection-form label{min-width:100%}}

/* v9.1: public collections summary, totals and readable expandable details */
.tpt-public-collection-v91{margin:24px 0;font-size:15px}
.tpt-public-collection-v91 .tpt-collection-intro{margin-bottom:14px}
.tpt-public-collection-v91 .tpt-collection-intro h2{margin:0 0 12px;font-size:clamp(20px,2.5vw,28px);font-weight:750;line-height:1.4}
.tpt-public-collection-v91 .tpt-collection-stats{display:flex;gap:12px;flex-wrap:wrap}
.tpt-public-collection-v91 .tpt-collection-stats span{padding:10px 16px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:9px;color:#334155}
.tpt-public-collection-v91 .tpt-collection-stats strong{font-weight:800;color:#0f172a;font-size:19px;margin-right:5px}
.tpt-public-collection-v91 .tpt-collection-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tpt-public-collection-v91 .tpt-collection-table{width:100%;min-width:520px;border-collapse:collapse;table-layout:auto}
.tpt-public-collection-v91 .tpt-collection-table th,.tpt-public-collection-v91 .tpt-collection-table td{border:1px solid #94a3b8;padding:12px 14px;vertical-align:top;line-height:1.55}
.tpt-public-collection-v91 .tpt-collection-table th{background:#e2e8f0;color:#0f172a;font-weight:800;font-size:16px;text-align:left;white-space:nowrap}
.tpt-public-collection-v91 .tpt-collection-table tbody tr:nth-child(even){background:#f8fafc}
.tpt-public-collection-v91 .tpt-summary-serial{white-space:nowrap;text-align:center;width:70px}
.tpt-public-collection-v91 .tpt-summary-name{min-width:160px;overflow-wrap:break-word;word-break:normal}
.tpt-public-collection-v91 .tpt-summary-amount{white-space:nowrap;font-variant-numeric:tabular-nums}
.tpt-public-collection-v91 .tpt-collection-details summary{cursor:pointer;display:inline-block;padding:6px 10px;border:1px solid #2563eb;border-radius:6px;color:#1d4ed8;font-weight:700;white-space:nowrap}
.tpt-public-collection-v91 .tpt-collection-details[open] summary{margin-bottom:12px}
.tpt-public-collection-v91 .tpt-collection-details dl{display:grid;grid-template-columns:minmax(100px,38%) 1fr;gap:8px 12px;min-width:230px;margin:0}
.tpt-public-collection-v91 .tpt-collection-details dt{font-weight:700;overflow-wrap:anywhere}
.tpt-public-collection-v91 .tpt-collection-details dd{margin:0;overflow-wrap:anywhere}
.tpt-public-collection-v91 .tpt-collection-footnote{font-size:13px;color:#475569}
@media(max-width:600px){.tpt-public-collection-v91 .tpt-collection-table th,.tpt-public-collection-v91 .tpt-collection-table td{padding:9px 10px}.tpt-public-collection-v91 .tpt-collection-stats span{flex:1 1 145px}}

/* v11.5: Preserve Wangdi 29, increase legibility across devices. */
.tpt-wrap, .tpt-public, .tpt-public-collection-v91, .tpt-frontend-access,
.tpt-collection-nav, .tpt-honorary-scroll {
  --tpt-dz-font-size: clamp(36px, 2.8vw + 12px, 44px);
}
.tpt-dzongkha-text,
.tpt-wrap :lang(dz), .tpt-public :lang(dz),
.tpt-public-collection-v91 :lang(dz), .tpt-frontend-access :lang(dz) {
  font-family: "Wangdi 29", "Wangdi29", "Noto Sans Tibetan", "Jomolhari", "Microsoft Himalaya", sans-serif !important;
  font-size: var(--tpt-dz-font-size, 36px) !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 600px) {
  .tpt-wrap, .tpt-public, .tpt-public-collection-v91, .tpt-frontend-access,
  .tpt-collection-nav, .tpt-honorary-scroll { --tpt-dz-font-size: clamp(28px, 7vw, 36px); }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .tpt-wrap, .tpt-public, .tpt-public-collection-v91, .tpt-frontend-access,
  .tpt-collection-nav, .tpt-honorary-scroll { --tpt-dz-font-size: clamp(32px, 4vw, 40px); }
}
