
/* SCI.NPU V3.0 — reusable news library; Master styles remain untouched. */
:root{--v30-ink:#142b40;--v30-gold:#fbd64d;--v30-muted:#617384;--v30-line:#dce5ed}
.v30-library,.v30-home-news{font-family:'IBM Plex Sans Thai',sans-serif;color:var(--v30-ink)}
.v30-library{padding:42px 0 72px}
.v30-intro{display:flex;align-items:end;justify-content:space-between;gap:22px;flex-wrap:wrap;margin-bottom:26px}
.v30-tag{font:700 11px Manrope,sans-serif;letter-spacing:.17em;color:#876300;text-transform:uppercase}
.v30-title{font-weight:700!important;color:var(--v30-ink)!important;font-size:clamp(28px,3vw,39px)!important;line-height:1.35!important;margin:8px 0 10px!important}
.v30-lead{color:#536777!important;line-height:1.9!important;max-width:800px;margin:0;font-size:15px!important}
.v30-toolbar{display:flex;gap:13px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:22px 0 22px;background:#f5f8fa;border:1px solid var(--v30-line);border-radius:18px;padding:15px}
.v30-filters{display:flex;flex-wrap:wrap;gap:7px}
.v30-filter{background:white;color:#142b40;border:1px solid #dce5eb;border-radius:40px;padding:9px 16px;font:600 14px 'IBM Plex Sans Thai',sans-serif;cursor:pointer;transition:background .2s,color .2s}
.v30-filter[aria-pressed=true]{background:#142b40;color:white;border-color:#142b40}
.v30-search{background:white;border:1px solid #d3dfe8;border-radius:11px;min-height:43px;min-width:225px;padding:10px 13px;font:400 14px 'IBM Plex Sans Thai',sans-serif;color:#142b40;flex:1;max-width:345px}
.v30-search:focus,.v30-filter:focus-visible,.v30-card a:focus-visible,.v30-more:focus-visible{outline:3px solid #fbd64d;outline-offset:2px}
.v30-featured{display:grid;grid-template-columns: 1.05fr 1fr;border-radius:22px;overflow:hidden;background:#142b40;color:white;min-height:320px;margin:24px 0 24px;box-shadow:0 14px 35px rgba(12,38,62,.14)}
.v30-featured .v30-picture{min-height:310px}.v30-featured .v30-feature-text{padding:clamp(24px,3vw,44px);display:flex;flex-direction:column;justify-content:center}
.v30-featured .v30-feature-text h3{font-size:clamp(24px,2.6vw,31px)!important;line-height:1.5!important;margin:12px 0!important;color:white!important}
.v30-featured .v30-feature-text p{color:#e1eaf1!important;font-size:15px!important;line-height:1.85!important}
.v30-featured .v30-date{color:#fbd64d!important}.v30-featured .v30-link{color:#fff9e9!important}
.v30-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.v30-card{display:flex;flex-direction:column;min-width:0;background:white;border:1px solid var(--v30-line);border-radius:17px;overflow:hidden;box-shadow:0 7px 20px rgba(16,43,70,.045);transition:transform .2s,box-shadow .2s}
.v30-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(16,43,70,.11)}
.v30-picture{position:relative;background:linear-gradient(130deg,#142b40,#183e59);overflow:hidden;display:grid;place-items:center;aspect-ratio:16/10;color:#fff9e9}
.v30-picture img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;transition:transform .35s}
.v30-card:hover .v30-picture img{transform:scale(1.035)}
.v30-picture .v30-placeholder{font:800 clamp(18px,2.4vw,30px) Manrope,sans-serif;letter-spacing:.14em;opacity:.45}
.v30-picture:after{content:'';position:absolute;inset:auto 0 0;height:37%;background:linear-gradient(transparent,rgba(5,22,39,.28));pointer-events:none}
.v30-card-content{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.v30-meta{display:flex;flex-wrap:wrap;gap:9px;align-items:center;color:#607182;font-size:12px}
.v30-type{display:inline-flex;background:#f0e9dd;color:#876300;padding:4px 10px;border-radius:30px;font-weight:700;font-size:12px}
.v30-card h3{font-size:19px!important;font-weight:700!important;color:#142b40!important;line-height:1.48!important;margin:13px 0 9px!important}
.v30-card p{font-size:14px!important;color:#52687c!important;line-height:1.8!important;margin:0 0 14px!important;flex:1}
.v30-date{font:600 12px Manrope,sans-serif;color:#607182}
.v30-link{font:700 13px 'IBM Plex Sans Thai',sans-serif;color:#876300;display:inline-flex;align-items:center;gap:7px;margin-top:10px;text-decoration:none}
.v30-card a:hover,.v30-featured a:hover{text-decoration:underline}
.v30-bottom{display:flex;justify-content:center;margin:30px 0}.v30-more{border-radius:40px;padding:11px 24px;border:1px solid #c1d1de;background:white;color:#142b40;font-weight:700;cursor:pointer}
.v30-empty{border:1px dashed #c0d0da;border-radius:14px;padding:36px;text-align:center;color:#607282}
.v30-home-news{padding-top:70px;padding-bottom:70px}
.v30-home-news .v30-intro a{display:inline-block;text-decoration:none;border-bottom:1px solid #fbd64d;padding-bottom:4px;font-weight:700;color:#876300}
.v30-home-news .v30-grid{margin-top:24px}
.v30-note{font-size:12px;color:#617383;line-height:1.8;margin-top:18px}
.v30-reader{max-width:900px;margin:20px auto 74px;padding:0 22px}
.v30-reader .v30-picture{border-radius:20px;aspect-ratio:16/8;max-height:430px}.v30-reader h1{font-size:clamp(27px,3.3vw,43px)!important;line-height:1.4!important;color:#142b40!important}
.v30-reader p{font-size:16px!important;line-height:2!important;white-space:pre-line;color:#142b40!important}
.v30-reader-meta{display:flex;flex-wrap:wrap;gap:16px;color:#63768b;font-size:13px;margin:15px 0 23px}
.v30-reader-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.v30-button{display:inline-block;background:#142b40;color:#fff!important;border-radius:10px;padding:12px 20px;text-decoration:none;font-weight:700;border:0;cursor:pointer}
.v30-button.secondary{background:#f1f5f7;color:#142b40!important}
.v30-editor{max-width:1250px;margin:auto;padding:30px 20px 70px;font-family:'IBM Plex Sans Thai',sans-serif;color:#142b40}
.v30-editor h1{font-size:31px;margin:0 0 8px}.v30-editor-note{padding:14px 18px;background:#fff8e9;border-left:4px solid #fbd64d;border-radius:8px;margin:15px 0 25px;line-height:1.8;color:#876300}
.v30-editor-main{display:grid;grid-template-columns:310px minmax(0,1fr);gap:20px}
.v30-editor-pane{background:white;border:1px solid #dce5eb;border-radius:16px;padding:20px;min-width:0}
.v30-editor-list{max-height:650px;overflow:auto;display:grid;gap:7px}
.v30-editor-item{text-align:left;border:1px solid #dde6ec;border-radius:9px;background:white;padding:11px;cursor:pointer;font:500 13px 'IBM Plex Sans Thai',sans-serif;line-height:1.55;color:#142b40}
.v30-editor-item[aria-current=true]{border-color:#fbd64d;background:#f9f5ed}
.v30-editor-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.v30-editor-field{display:grid;gap:6px;margin:0 0 14px}.v30-editor-field label{font-weight:700;font-size:13px}.v30-editor-field input,.v30-editor-field select,.v30-editor-field textarea{width:100%;min-width:0;border:1px solid #cbd8e1;padding:10px 12px;border-radius:8px;background:white;color:#142b40;font:400 14px 'IBM Plex Sans Thai',sans-serif}
.v30-editor-field textarea{resize:vertical;min-height:68px}.v30-editor-actions{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 22px}
.v30-editor-actions button,.v30-editor-actions label{background:#142b40;color:white;border:0;border-radius:9px;padding:10px 13px;cursor:pointer;font:600 13px 'IBM Plex Sans Thai',sans-serif;display:inline-block}
.v30-editor-actions .light{background:#e9eff3;color:#142b40}.v30-editor-actions .danger{background:#9a3a3b;color:white}
.v30-preview{padding:16px;background:#f6f9fa;border-radius:12px;margin-top:14px}.v30-status{margin-top:16px;min-height:30px;font-weight:600;color:#142b40}
@media(max-width:1000px){.v30-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v30-featured{grid-template-columns:1fr 1fr}.v30-editor-main{grid-template-columns:1fr}}
@media(max-width:680px){.v30-grid{grid-template-columns:1fr}.v30-featured{grid-template-columns:1fr}.v30-featured .v30-picture{min-height:200px;max-height:280px}.v30-featured .v30-feature-text{padding:23px}.v30-featured .v30-feature-text h3{font-size:23px!important}.v30-toolbar{align-items:stretch}.v30-search{max-width:none;width:100%}.v30-library{padding-top:23px}.v30-home-news{padding:50px 0}.v30-editor-row{grid-template-columns:1fr}.v30-reader{padding:0 16px}}
@media(prefers-reduced-motion:reduce){.v30-card,.v30-card img{transition:none!important}}

/* Ensure correct contrast despite high-specificity Master legacy typography rules */
body.detail-page main.inner-content .v30-featured .v30-feature-text h3{color:#ffffff!important;font-size:clamp(24px,2.7vw,31px)!important;line-height:1.5!important}
body.detail-page main.inner-content .v30-featured .v30-feature-text p{color:#e1eaf1!important;font-size:15px!important;line-height:1.9!important}

.v30-image-note{position:absolute;bottom:12px;left:12px;z-index:2;background:rgba(9,29,48,.76);color:white;font-size:11px;border-radius:6px;padding:5px 9px}

.v30-reader .v30-notice-picture{aspect-ratio:auto;max-height:none;min-height:0}.v30-reader .v30-notice-picture img{position:relative;width:100%;height:auto;max-height:85vh;object-fit:contain;z-index:1}.v30-reader .v30-notice-picture:after{display:none}.v30-reader .v30-notice-picture .v30-placeholder{position:absolute}.v30-card .v30-notice-picture img,.v30-featured .v30-notice-picture img{object-fit:contain}.v30-card:hover .v30-notice-picture img{transform:none}
/* Preview 03 — gallery and accessible native dialog */
.v30-gallery{margin:32px 0}.v30-gallery h2{margin-bottom:16px}.v30-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.v30-gallery-tile{display:block;width:100%;padding:0;border:1px solid #dbe3e9;border-radius:12px;overflow:hidden;background:#fff;color:#142b40;text-align:left;cursor:zoom-in;font:inherit}.v30-gallery-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.v30-gallery-tile span{display:block;font-size:13px;padding:8px}.v30-cover-zoom{position:absolute;z-index:4;right:10px;bottom:10px;border:0;border-radius:8px;padding:8px 12px;color:#fff;background:#142b40e8;font:inherit;cursor:zoom-in}.v30-reader .zoomable{cursor:zoom-in}.v30-lightbox{box-sizing:border-box;position:fixed;inset:0;width:min(95vw,1200px);max-width:95vw;max-height:94vh;margin:auto;padding:12px;border:0;border-radius:12px;background:#142b40;color:#fff;overflow:auto;z-index:9999}.v30-lightbox::backdrop{background:#081421e8}.v30-lightbox-bar{display:flex;align-items:center;justify-content:space-between;padding:0 8px 8px}.v30-lightbox button{background:#ffffff20;color:#fff;border:1px solid #ffffff80;border-radius:8px;min-width:40px;min-height:40px;font-size:25px;cursor:pointer}.v30-lightbox-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center}.v30-lightbox-stage img{display:block;width:100%;max-height:74vh;object-fit:contain}.v30-lightbox p{color:white;text-align:center;margin:8px;font-size:14px}.v30-lightbox [hidden]{display:none!important}@media(max-width:680px){.v30-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v30-lightbox{padding:6px}.v30-lightbox-stage{grid-template-columns:35px minmax(0,1fr) 35px;gap:3px}.v30-lightbox button{min-width:32px}}
