.etmq-library{--mq-navy:#102546;--mq-blue:#234f7c;--mq-gold:#d8b674;--mq-ink:#172e4b;--mq-muted:#728194;--mq-line:#dfe7ef;font-family:Tahoma,"Noto Sans Thai",Arial,sans-serif!important;color:var(--mq-ink);width:100%;max-width:1180px;margin:0 auto 36px;line-height:1.65;font-size:15px;text-align:left;box-sizing:border-box}.etmq-library *{box-sizing:border-box}.etmq-library [hidden]{display:none!important}.etmq-library a{text-decoration:none!important}.etmq-library h2,.etmq-library h3,.etmq-library p{font-family:inherit!important}.etmq-library .etmq-breadcrumb{display:flex;gap:10px;flex-wrap:wrap;padding:24px 4px 20px;font-size:12px;color:#8390a1}.etmq-breadcrumb a,.etmq-breadcrumb strong{color:#5f738c;font-weight:400}.etmq-library .etmq-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:24px;overflow:hidden;padding:48px 50px;background:radial-gradient(ellipse at 90% 10%,#28527a88,transparent 55%),linear-gradient(120deg,#0d203e,#153252);border-radius:24px;min-height:330px;color:#fff}.etmq-hero:after{content:"";position:absolute;width:450px;height:450px;border:1px solid #d8b67433;border-radius:50%;right:-140px;bottom:-330px;pointer-events:none}.etmq-library .etmq-eyebrow{display:block;letter-spacing:2px;font-size:10px;font-weight:700;color:#ac8650}.etmq-hero .etmq-eyebrow,.etmq-promo .etmq-eyebrow{color:#d8b674}.etmq-library .etmq-hero h2{color:#fff;font-weight:700;line-height:1.35;font-size:42px;letter-spacing:-.9px;margin:18px 0 18px}.etmq-hero h2 em{font-style:normal;color:#fff}.etmq-library .etmq-hero p{color:#d3dce8;line-height:1.9;font-size:14px;margin:0 0 24px}.etmq-hero-copy{z-index:1}.etmq-hero-stats{display:flex;flex-wrap:wrap;gap:20px;align-items:center;font-size:12px;color:#d4deeb}.etmq-hero-stats b{color:#fff;font-size:22px;margin-right:5px}.etmq-hero-stats .etmq-free{color:#f1dba9;border:1px solid #d8b67455;border-radius:20px;padding:4px 12px;font-size:11px}.etmq-hero-seal{flex:0 0 240px;padding:15px;z-index:1}.etmq-hero-seal>div{background:#fff;border-radius:22px;border:1px solid #ebdfc5;padding:24px 20px;box-shadow:0 12px 35px #0002;display:flex;flex-direction:column;align-items:center;transform:rotate(3deg)}.etmq-hero-seal img{object-fit:contain;width:150px!important;height:96px!important;margin:0 0 15px!important}.etmq-hero-seal span{font-size:12px;font-weight:700;color:#173453}.etmq-hero-seal small{color:#8b7b60;font-size:7px;letter-spacing:1.4px;margin-top:7px}.etmq-library .etmq-content{padding:32px 0 0}.etmq-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.etmq-library .etmq-section-heading h2{font-size:24px;font-weight:700;color:#173453;margin:8px 0 0;line-height:1.5}.etmq-all{border:1px solid var(--mq-line);background:#fff;border-radius:25px;padding:8px 15px;color:#576c86!important;font-size:12px;white-space:nowrap}.etmq-all[aria-pressed=true]{background:#132e4e;color:#fff!important;border-color:#132e4e}.etmq-all b{font-size:10px;margin-left:7px;opacity:.7}.etmq-library .etmq-subjects{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 26px;padding:0!important}.etmq-subjects:before,.etmq-subjects:after,.etmq-grid:before,.etmq-grid:after{content:none!important;display:none!important}.etmq-subjects a{display:flex;align-items:center;gap:12px;min-width:0;padding:17px 14px;border:1px solid #dfe7ef;border-radius:14px;background:#fff;color:#223d5e!important;transition:border-color .16s,box-shadow .16s}.etmq-subject-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#edf3f9;color:#315b87;font-size:21px;font-family:Georgia,Tahoma,serif;font-weight:700}.etmq-subjects strong{display:block;font-size:13px;font-weight:700}.etmq-subjects small{display:block;color:#7f8ea0;font-size:10px;margin-top:4px}.etmq-subject-arrow{margin-left:auto;color:#9cabbb;font-size:15px}.etmq-subjects a[aria-pressed=true]{background:#eff4f9;border-color:#244c77;box-shadow:inset 0 0 0 1px #244c77}.etmq-subjects a[aria-pressed=true] .etmq-subject-icon{background:#173453;color:#f2dca8}.etmq-library .etmq-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;background:#fff;border:1px solid #dfe7ef;border-radius:14px;padding:12px 14px;margin:0 0 26px}.etmq-search-label{position:relative;display:block;flex:1 1 300px;margin:0}.etmq-search-label svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:19px;height:19px;stroke:#8796a8;stroke-width:1.7;fill:none}.etmq-library .etmq-search-label input{display:block;width:100%;height:44px;min-height:44px;padding:10px 10px 10px 42px;margin:0;border:0;background:#f7f9fc;border-radius:9px;box-shadow:none;color:#173453;font:inherit;font-size:12px}.etmq-library .etmq-sort-label{margin:0;flex:0 0 150px}.etmq-library .etmq-sort-label select{min-height:44px;height:44px;margin:0;width:100%;padding:8px;border:1px solid #e3e9f0;background:#fff;border-radius:9px;color:#4c637e;font:inherit;font-size:12px;box-shadow:none}.etmq-library .etmq-search-button{border:0;border-radius:9px;background:#173453;color:#fff;font:inherit;font-size:12px;padding:12px 20px;min-height:44px;box-shadow:none;margin:0;cursor:pointer}.etmq-results-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 15px}.etmq-library .etmq-results-heading h2{font-size:18px;font-weight:700;margin:0;color:#173453}.etmq-library .etmq-count{color:#7a8b9e;font-size:12px;margin:0}.etmq-library .etmq-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;padding:0!important;margin:0!important;width:100%;float:none!important}.etmq-library .etmq-card{display:flex;flex-direction:column;min-width:0;min-height:268px;background:#fff;border:1px solid #dfe7ef;border-radius:16px;color:#173453;padding:23px 23px 0;overflow:hidden;box-shadow:0 2px 8px #10254604;transition:box-shadow .18s,border-color .18s,transform .18s}.etmq-card:hover{border-color:#cbae75!important;box-shadow:0 9px 25px #10254610!important;transform:translateY(-2px)}.etmq-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.etmq-card .etmq-subject-icon{width:36px;height:36px;flex-basis:36px;font-size:19px;border-radius:10px}.etmq-subject-tag{font-size:10px;color:#71849a;background:#f5f7fa;border:1px solid #e8edf3;padding:4px 10px;border-radius:20px}.etmq-library .etmq-card h3{font-size:24px;font-weight:700;color:#153151;line-height:1.35;margin:0 0 9px}.etmq-library .etmq-card p{font-size:12px;line-height:1.85;color:#718297;margin:0 0 16px}.etmq-card-meta{font-size:10px;color:#91a0b1;margin:0 0 17px}.etmq-card-go{display:flex;align-items:center;justify-content:space-between;margin:auto -23px 0;padding:13px 23px;background:#fbfcfe;border-top:1px solid #edf1f6;color:#2e5278;font-size:12px;font-weight:700}.etmq-card-go span{font-size:19px;color:#a58a58}.etmq-library .etmq-pages{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:26px 0 12px}.etmq-pages a,.etmq-pages span{display:inline-flex;justify-content:center;align-items:center;min-width:38px;min-height:38px;padding:8px 12px;font-size:12px;border-radius:9px;background:#fff;border:1px solid #dfe7ef;color:#63788f}.etmq-pages a[aria-current=page]{background:#173453;color:#fff;border-color:#173453}.etmq-library .etmq-hint{text-align:center;font-size:11px;color:#8c9aae;margin:0 0 30px}.etmq-library .etmq-promo{display:flex;flex-direction:column;align-items:center;text-align:center;gap:22px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 100% 100%,#2e537e88,transparent 65%),linear-gradient(120deg,#102342,#1a3b62);border-radius:20px;padding:36px 30px;color:#fff;margin-top:40px}.etmq-library .etmq-promo h2{color:#fff;font-size:26px;line-height:1.6;font-weight:700;margin:12px 0}.etmq-library .etmq-promo p{color:#c6d3e3;font-size:12px;margin:0}.etmq-promo>a{background:linear-gradient(120deg,#eddbaf,#d8b674);color:#173453!important;border-radius:10px;padding:13px 25px;font-size:12px;font-weight:700;box-shadow:0 4px 12px #0001}.etmq-promo>a span{margin-left:20px}.etmq-error,.etmq-empty{padding:20px;background:#fff8eb;border:1px solid #ead7ae;border-radius:10px;color:#7f622e;font-size:13px}.etmq-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.etmq-library a:focus-visible,.etmq-library button:focus-visible,.etmq-library input:focus-visible,.etmq-library select:focus-visible{outline:3px solid #bd934b;outline-offset:3px}.etmq-library[aria-busy=true] .etmq-grid{opacity:.65}.etmq-post{font-family:Tahoma,Arial,sans-serif;margin:20px 0 32px;padding:38px;border:1px solid #dce5f0;border-radius:18px;background:linear-gradient(120deg,#f7faff,#fff);color:#193654}.etmq-post-eyebrow{font-size:11px;letter-spacing:1.7px;color:#9f7e43}.etmq-post h2{font-size:28px;line-height:1.6;color:#173453;margin:15px 0}.etmq-post p{font-size:15px;color:#6c8096;line-height:1.9}.etmq-post-tags{display:flex;gap:8px;margin:18px 0}.etmq-post-tags span{font-size:12px;border:1px solid #dee6f0;border-radius:20px;padding:5px 12px;background:#fff}.etmq-post-go{display:inline-flex;gap:20px;align-items:center;background:#153453;color:#fff!important;text-decoration:none!important;border-radius:10px;padding:14px 22px}.etmq-post-go span{font-size:12px;color:#ecd7a5}.etmq-post .etmq-post-note{font-size:11px;margin-top:15px}
@media(max-width:1000px){.etmq-library .etmq-hero{padding:36px 30px}.etmq-library .etmq-hero h2{font-size:34px}.etmq-hero-seal{flex-basis:210px;padding:0}.etmq-library .etmq-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.etmq-library .etmq-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.etmq-library .etmq-breadcrumb{padding-top:15px;font-size:10px;gap:7px}.etmq-library .etmq-hero{padding:30px 22px;min-height:0;display:block;border-radius:18px}.etmq-library .etmq-hero h2{font-size:29px;letter-spacing:-.5px}.etmq-library .etmq-hero p{font-size:12px}.etmq-hero-seal{display:none}.etmq-hero-stats{gap:13px;font-size:10px}.etmq-hero-stats b{font-size:19px}.etmq-library .etmq-eyebrow{font-size:8px;letter-spacing:1.5px}.etmq-library .etmq-content{padding-top:26px}.etmq-section-heading{gap:10px}.etmq-library .etmq-section-heading h2{font-size:19px}.etmq-all{font-size:10px;padding:7px 11px}.etmq-library .etmq-subjects{gap:9px}.etmq-subjects a{padding:13px 10px;gap:9px}.etmq-subjects .etmq-subject-icon{width:32px;height:32px;flex-basis:32px;font-size:18px;border-radius:9px}.etmq-subjects strong{font-size:11px}.etmq-subjects small{font-size:9px}.etmq-subject-arrow{display:none}.etmq-library .etmq-tools{gap:9px;padding:10px}.etmq-search-label{flex-basis:100%}.etmq-library .etmq-sort-label{flex:1}.etmq-library .etmq-search-label input{font-size:16px}.etmq-library .etmq-grid{grid-template-columns:1fr!important;gap:14px!important}.etmq-library .etmq-card{min-height:250px}.etmq-library .etmq-results-heading h2{font-size:16px}.etmq-library .etmq-count{font-size:10px}.etmq-library .etmq-promo{padding:28px 19px}.etmq-library .etmq-promo h2{font-size:22px}.etmq-library .etmq-promo p{font-size:11px}.etmq-post{padding:25px}.etmq-post h2{font-size:23px}.etmq-post-go{flex-wrap:wrap;gap:10px}}
@media(prefers-reduced-motion:reduce){.etmq-card,.etmq-subjects a{transition:none!important}.etmq-card:hover{transform:none}}

@media(pointer:coarse){.etmq-library .etmq-pages a{min-width:44px;min-height:44px}}

/* v0.1.1: emphasize selected subject and make pagination status explicit. */
.etmq-library .etmq-results-heading{width:100%;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:0;margin:0 0 20px;scroll-margin-top:110px}
.etmq-library .etmq-results-heading h2{display:inline-flex;align-items:center;min-height:58px;max-width:100%;padding:13px 24px!important;margin:0!important;border:1px solid #294b70;border-left:5px solid #d8b674;border-radius:12px;background:linear-gradient(115deg,#102546,#234f7c);color:#fff!important;font-size:21px!important;font-weight:700;line-height:1.5;box-shadow:0 5px 16px #10254614;text-align:left!important;overflow-wrap:anywhere}
.etmq-library .etmq-results-heading .etmq-count{padding:8px 14px;margin:0;border:1px solid #dfe7ef;background:#fff;border-radius:20px;color:#526b85;font-size:12px}
.etmq-library .etmq-page-status{text-align:center!important;color:#526b85;font-size:12px;margin:0 0 10px;line-height:1.8}
.etmq-library .etmq-pages a{min-width:44px;min-height:44px;font-size:14px;font-weight:700}
.etmq-library .etmq-pages a[aria-current=page]{border-color:#173453;box-shadow:0 3px 9px #10254618}
@media(max-width:600px){.etmq-library .etmq-results-heading h2{font-size:18px!important;min-height:52px;padding:11px 17px!important}.etmq-library .etmq-results-heading .etmq-count{font-size:11px}.etmq-library .etmq-page-status{font-size:11px}}

/* Configurable exam libraries keep the approved master layout. */
.etmq-library .etmq-group-bar{padding:15px 18px;margin:0 0 18px;background:#fff;border:1px solid #dfe7ef;border-radius:12px}
.etmq-library .etmq-group-bar label{display:flex;gap:15px;align-items:center;margin:0;font:inherit;font-size:14px;font-weight:700;color:#173453}
.etmq-library .etmq-group-select{font:inherit;font-size:14px;background:#f7f9fc;border:1px solid #dfe7ef;border-radius:8px;padding:9px 12px;max-width:100%;min-height:44px;color:#173453}
.etmq-library .etmq-group-label{display:block;color:#9a7943;font-size:10px;line-height:1.6;margin:4px 0;overflow-wrap:anywhere}
.etmq-library .etmq-hero h2{overflow-wrap:anywhere}.etmq-library .etmq-hero-copy{flex:1;min-width:0}.etmq-library .etmq-hero-copy>p{max-width:600px}.etmq-library .etmq-subjects a{min-height:90px}
@media(max-width:600px){.etmq-library .etmq-group-bar label{align-items:stretch;flex-direction:column;gap:8px}.etmq-library .etmq-group-select{width:100%;font-size:16px}}
