/* Dashboard-only styles keep the administration and privacy pages independent. */
.dashboard-page {
    --navy: #09265d;
    --text-secondary: #526b8c;
    --panel-shadow: 0 5px 18px #3279ad13, 0 1px 2px #3279ad0a;
    color: var(--navy);
    background: #eff8ff url('../img/health-background.png') center / cover fixed no-repeat;
    font-size: 14px;
    line-height: 1.5;
}
.dashboard-page [hidden] { display: none !important; }
.dashboard-page button, .dashboard-page input { font: inherit; }
.dashboard-page button, .dashboard-page a { -webkit-tap-highlight-color: transparent; }
.dashboard-page :is(a, button, summary):focus-visible { outline: 3px solid #087cd4; outline-offset: 4px; }
.dashboard-page :is(section, footer, details)[id] { scroll-margin-top: 86px; }
.dashboard-page h1, .dashboard-page h2, .dashboard-page h3, .dashboard-page p { margin: 0; }
.ui-icon { flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 10px; }
/* Full-frame layout: content spans the whole viewport with a fluid gutter, and the footer sits at the bottom of the screen. */
.dashboard-page { --gutter: clamp(16px, 2.4vw, 48px); min-height: 100vh; display: flex; flex-direction: column; }
.dashboard-page > main { flex: 1 0 auto; }
.portal-container { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.portal-header { position: sticky; top: 0; z-index: 20; background: #fffffffa; box-shadow: 0 2px 10px #073f7812; }
.header-inner { min-height: 68px; width: calc(100% - 2 * var(--gutter)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.portal-brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.portal-brand img { width: 56px; height: 56px; object-fit: contain; }
.portal-brand strong, .portal-brand small { display: block; }
.portal-brand strong { font-size: 19px; line-height: 1.45; font-weight: 800; }
.portal-brand small { font-size: 11px; margin-top: 2px; }
.portal-nav { display: flex; align-items: center; justify-content: space-around; flex: 1; gap: 8px; padding-left: 20px; border-left: 1px solid #cbd9e9; }
.portal-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; white-space: nowrap; font-size: 13px; font-weight: 700; border-radius: 30px; transition: background .18s, color .18s; }
.portal-nav .ui-icon { width: 20px; height: 20px; color: #52719c; }
.portal-nav a:hover { background: #e9f4ff; }
.portal-nav a.is-current, .portal-admin { color: #fff; background: linear-gradient(180deg, #1588e0, #00489f); box-shadow: inset 0 1px 2px #ffffff45, 0 2px 5px #0654a51a; }
.portal-nav a.is-current .ui-icon { color: #fff; }
.portal-admin { display: flex; gap: 8px; align-items: center; padding: 9px 15px; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.portal-admin .ui-icon { width: 20px; height: 20px; }
.portal-admin small { font-size: 11px; }
.portal-admin:hover { filter: brightness(1.1); }
.portal-hero { position: relative; min-height: 218px; padding: 19px 0 26px; color: white; background-image: linear-gradient(90deg, #00559a66, #0078b91a 53%, transparent 74%), var(--hero-image); background-size: cover, 100% auto; background-position: center, center top; background-repeat: no-repeat; background-color: #008cc4; }
.hero-content { position: relative; }
.hero-heading { padding-left: 70px; max-width: 820px; text-shadow: 0 2px 4px #003c7833; }
.hero-heading h1 { position: relative; font-size: clamp(25px, 2.2vw, 32px); font-weight: 800; line-height: 1.15; }
.hero-heading h1::before { content: ''; position: absolute; left: -29px; top: 8px; bottom: 4px; width: 6px; border-radius: 5px; background: #b7ef62; box-shadow: 0 0 12px #a7ec5660; }
.hero-heading h1 span { display: block; color: #b8f16d; margin-top: 4px; }
.hero-heading p { margin-top: 8px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.hero-location { position: absolute; top: 35px; right: 7%; font-size: 22px; letter-spacing: 5px; font-weight: 700; text-shadow: 0 2px 8px #00477c; }
.hero-tools { display: grid; grid-template-columns: .95fr 1.25fr; gap: 28px; align-items: end; margin: 5px 28px 0; }
.portal-search { display: flex; align-items: center; gap: 10px; height: 45px; padding: 4px 5px 4px 17px; border-radius: 28px; background: #fff; box-shadow: 0 3px 12px #005f8d20; color: #4a6a96; }
.portal-search .ui-icon { width: 22px; height: 22px; }
.portal-search input { min-width: 0; flex: 1; border: 0; border-radius: 0; background: transparent; padding: 5px 0; font-size: 12px; color: var(--navy); box-shadow: none; }
.portal-search input::placeholder { color: #5c7394; opacity: 1; }
.portal-search input:focus { outline: none; box-shadow: none; }
.portal-search:focus-within { outline: 3px solid #c4f590; outline-offset: 3px; }
.portal-search button, .system-action { border: 0; border-radius: 22px; background: linear-gradient(180deg, #35bd70, #008f5d); color: #fff; box-shadow: inset 0 1px 1px #ffffff50; font-weight: 700; cursor: pointer; }
.portal-search button { padding: 7px 27px; }
.portal-search button:hover, .system-action:hover { background: linear-gradient(180deg, #1aac67, #007749); }
.quick-filters p { margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip { padding: 5px 13px; border: 1px solid #ffffffc9; border-radius: 22px; color: var(--navy); background: linear-gradient(#fff, #e9f6ff); font-size: 11px; font-weight: 600; box-shadow: 0 2px 5px #05569320; white-space: nowrap; }
.filter-chip:hover { background: #d9f7e9; }
.filter-chip.is-active { color: #fff; background: linear-gradient(#25b877, #00916a); box-shadow: 0 0 0 2px #ffffff30; }
.filter-chip.is-active::before { content: '✓'; margin-right: 5px; }
.portal-content { position: relative; margin-top: -11px; padding-bottom: 20px; }
.category-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.tone-blue { --accent: #068cf2; --accent-dark: #0363b8; --tint: #e4f5ff; --tile: #c5eaff; }
.tone-purple { --accent: #9747ef; --accent-dark: #7331bd; --tint: #f2edff; --tile: #e0d0ff; }
.tone-green { --accent: #14b461; --accent-dark: #008846; --tint: #e8f9ef; --tile: #caf2de; }
.tone-orange { --accent: #ed7a09; --accent-dark: #bd5300; --tint: #fff4e8; --tile: #ffe7c5; }
.tone-pink { --accent: #f42c7c; --accent-dark: #c61460; --tint: #fff0f7; --tile: #fbd6e8; }
.category-tile { position: relative; display: flex; align-items: center; gap: 10px; min-height: 104px; padding: 12px 18px 12px 12px; border: 3px solid #ffffffdf; border-radius: 17px; background: linear-gradient(135deg, #fff, var(--tint)); box-shadow: 0 5px 13px #17649516, inset 0 1px 1px white; transition: transform .18s, box-shadow .18s; }
.category-tile::before { content: ''; height: 3px; position: absolute; top: 1px; left: 10px; right: 10px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--tile), transparent); }
.category-tile:hover { transform: translateY(-3px); box-shadow: 0 7px 18px #17649525; }
.category-tile.is-active { border-color: var(--accent); }
.icon-tile { display: flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 60px; height: 60px; color: var(--accent); border-radius: 17px; background: linear-gradient(140deg, var(--tint), var(--tile)); }
.icon-tile > .ui-icon { width: 37px; height: 37px; filter: drop-shadow(0 2px 0 #ffffffcc); stroke-width: 2.2; }
.icon-tile img { max-width: 80%; max-height: 80%; object-fit: contain; }
.category-tile .icon-tile { width: 56px; height: 58px; }
.category-copy { min-width: 0; }
.category-copy strong { display: block; font-size: 13px; line-height: 1.3; font-weight: 800; }
.category-copy small { display: block; color: var(--text-secondary); font-size: 11px; line-height: 1.4; margin-top: 5px; }
.tile-chevron { position: absolute; right: 5px; width: 13px; height: 13px; color: #366da3; }
.portal-panel { border: 1px solid #fff; border-radius: 18px; background: linear-gradient(120deg, #ffffffee, #fbfdfff2); box-shadow: var(--panel-shadow); }
.featured-panel, .systems-panel { padding: 11px 17px; margin-bottom: 13px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.section-heading h2 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.section-heading p { color: var(--text-secondary); font-size: 12px; }
.section-heading > p { margin-left: 12px; }
.heading-icon { display: inline-flex; align-items: center; justify-content: center; }
.heading-icon .ui-icon { width: 25px; height: 25px; }
.star-icon { color: #ffba00; filter: drop-shadow(0 2px 3px #ffbd0030); }
.green-icon { color: #00a044; }
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0 5px 1px; }
.featured-card { display: flex; align-items: center; gap: 17px; min-height: 63px; padding: 6px 15px; border: 1px solid #dfeaf6; border-radius: 11px; background: linear-gradient(135deg, #fff, #f7fbff); box-shadow: 0 2px 3px #366d9f10; transition: border-color .18s, transform .18s; }
.featured-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.featured-card .icon-tile { width: 49px; height: 49px; border-radius: 14px; }
.featured-card .icon-tile .ui-icon { width: 30px; height: 30px; }
.featured-card strong { display: block; font-size: 13px; font-weight: 750; line-height: 1.3; }
.recommend-badge { display: inline-flex; align-items: center; margin-top: 4px; gap: 3px; padding: 1px 7px; border-radius: 12px; font-size: 10px; color: #07843f; background: #d7f8d7; }
.recommend-badge .ui-icon { width: 12px; height: 12px; }
.featured-chevron { width: 16px; height: 16px; color: #6b8aa9; margin-left: auto; }
.directory-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 16px; }
.category-sidebar { padding: 4px 8px 8px 0; border-right: 1px solid #e2ecf6; }
.category-option { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.category-option .ui-icon { width: 22px; height: 22px; color: var(--accent, #109b58); padding: 2px; background: var(--tint, #eaf8f1); border-radius: 5px; }
.category-option small { margin-left: auto; color: #6d83a3; font-size: 11px; }
.category-option:hover { background: #edf5fc; }
.category-option.is-active { color: #fff; background: linear-gradient(#30bb6b, #009361); box-shadow: inset 0 1px 2px #ffffff70, 0 2px 6px #0093611a; }
.category-option.is-active .ui-icon, .category-option.is-active small { color: white; background: transparent; }
.result-count { margin-left: auto; color: #6a7f9b; font-size: 11px; white-space: nowrap; }
.system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.system-card { display: grid; grid-template-columns: 55px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 5px 11px; min-height: 120px; padding: 11px 12px 8px; border: 1px solid #dfe9f3; border-radius: 11px; background: linear-gradient(135deg, #fff, #f8fbfe); box-shadow: 0 2px 3px #2d679a13; transition: box-shadow .18s, border-color .18s; }
.system-card:hover { border-color: var(--tile); box-shadow: 0 4px 12px #2d679a1f; }
.system-card .icon-tile { width: 55px; height: 58px; border-radius: 16px; }
.system-card .icon-tile .ui-icon { width: 33px; height: 33px; }
.system-copy { min-width: 0; }
.system-copy h3 { font-size: 12px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.category-badge { display: inline-block; margin-top: 4px; border-radius: 9px; padding: 1px 6px; color: var(--accent-dark); background: var(--tint); font-size: 9px; line-height: 1.4; }
.system-copy p { margin-top: 4px; color: var(--text-secondary); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.system-action, .system-pending { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 90px; padding: 3px 11px; border-radius: 8px; font-size: 10px; line-height: 1.6; }
.system-action .ui-icon { width: 13px; height: 13px; }
.system-pending { background: #eaf4f2; color: #47746b; }
.directory-pagination { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.directory-pagination a { display: grid; place-items: center; min-width: 28px; height: 26px; border-radius: 7px; border: 1px solid #d9e6f3; font-size: 11px; background: #fff; }
.directory-pagination a.is-active { color: #fff; background: #0767ba; border-color: #0767ba; }
.directory-empty { text-align: center; padding: 35px 16px; color: var(--text-secondary); }
.directory-empty > .ui-icon { width: 35px; height: 35px; color: #78a4c9; }
.directory-empty h3 { margin: 10px 0 5px; font-size: 17px; color: var(--navy); }
.directory-empty a { display: inline-flex; align-items: center; gap: 8px; color: #087c55; margin-top: 14px; font-weight: 600; }
.bottom-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.news-panel, .statistics-panel { padding: 12px 21px; min-height: 155px; }
.bottom-panels .section-heading { padding-bottom: 8px; border-bottom: 1px solid #e0eaf4; margin-bottom: 9px; }
.bottom-panels .section-heading h2 { font-size: 19px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 0 5px 8px; border: 0; background: transparent; color: #0064c0; font-size: 11px !important; font-weight: 700 !important; white-space: nowrap; cursor: pointer; }
.text-button .ui-icon { width: 16px; height: 16px; }
.news-item { display: flex; gap: 15px; align-items: center; padding: 4px 0; }
.news-item + .news-item { padding: 12px 0; border-top: 1px solid #e5eef6; margin-top: 10px; }
.news-art { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 124px; min-height: 78px; flex-shrink: 0; gap: 4px; border-radius: 10px; color: white; background: linear-gradient(130deg, #0d93c4b3, #005e9c8c), url('../img/chonburi-hero.png') center / cover; }
.news-art .ui-icon { width: 36px; height: 36px; }
.news-art span { font-size: 7px; letter-spacing: 1.4px; text-align: center; }
.news-label { color: #008c58; font-size: 10px; }
.news-item h3 { font-size: 13px; line-height: 1.5; }
.news-item h3 a:hover { color: #0064c0; text-decoration: underline; }
.news-item p { margin-top: 4px; font-size: 11px; color: var(--text-secondary); }
.live-label { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 8px; border-radius: 7px; color: #426786; font-size: 10px; white-space: nowrap; box-shadow: 0 1px 7px #185b9920; background: white; }
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: #15b66b; }
.statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px 0 0; }
.stat-item { display: flex; gap: 12px; align-items: flex-start; padding: 0 13px; }
.stat-item + .stat-item { border-left: 1px solid #e5edf5; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-item .icon-tile { width: 44px; height: 44px; border-radius: 14px; }
.stat-item .icon-tile .ui-icon { width: 28px; height: 28px; }
.stat-item div > span { display: block; font-size: 11px; white-space: nowrap; color: var(--text-secondary); }
.stat-item strong { display: block; font-size: 22px; line-height: 1.5; font-weight: 800; }
.stat-item strong small { font-size: 13px; }
.stat-item p { font-size: 10px; color: #078b51; }
.download-panel { margin-top: 12px; border-radius: 12px; padding: 10px 20px; }
.download-panel summary { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 12px; list-style: none; }
.download-panel summary::-webkit-details-marker { display: none; }
.download-panel summary > .ui-icon { width: 18px; height: 18px; color: #087cbf; }
.download-panel summary span { margin-left: auto; font-size: 11px; color: #597491; }
.download-panel summary span .ui-icon { width: 13px; height: 13px; transition: transform .2s; }
.download-panel[open] summary span .ui-icon { transform: rotate(90deg); }
.download-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; padding-left: 20px; color: var(--text-secondary); font-size: 12px; }
.download-panel li a:hover { color: #0064c0; text-decoration: underline; }
.download-panel li .ui-icon { width: 13px; height: 13px; }
.portal-footer { color: white; background: linear-gradient(110deg, #006ba7, #005898 58%, #008eac); }
.footer-content { display: grid; grid-template-columns: 1.25fr 1.2fr 1fr .85fr; align-items: center; gap: 24px; padding-block: 15px; }
.footer-brand { gap: 11px; }
.footer-brand strong { font-size: 14px; }
.footer-brand small { font-size: 10px; }
.footer-brand img { width: 50px; height: 50px; }
.footer-content > :not(:first-child) { border-left: 1px solid #ffffff55; padding-left: 24px; }
.footer-content address { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.footer-content .ui-icon { width: 17px; height: 17px; }
.footer-contact, .footer-links { display: grid; gap: 5px; font-size: 11px; }
.footer-contact a, .footer-links a { display: flex; gap: 9px; align-items: center; overflow-wrap: anywhere; }
.footer-content a:hover { text-decoration: underline; }
.portal-copyright { padding: 7px 20px; text-align: center; color: #d0edfc; border-top: 1px solid #ffffff1c; font-size: 10px; }
.dashboard-page .cookie-consent { bottom: 16px; width: min(710px, calc(100% - 32px)); padding: 14px 18px; border-radius: 13px; font-size: 12px; box-shadow: 0 5px 28px #174d8126; }
.dashboard-page .cookie-consent button { background: #008d60; font-size: 12px; min-height: 36px; }
.dashboard-page .scroll-actions { right: 12px; bottom: 90px; gap: 7px; }
.dashboard-page .scroll-actions button { width: 34px; height: 34px; font-size: 18px; }
.muted { color: var(--text-secondary); }
/* Badges (ใช้งานบ่อย / แนะนำ / ใหม่) */
.status-badge { display: inline-flex; align-items: center; gap: 3px; width: fit-content; padding: 1px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.status-badge .ui-icon { width: 11px; height: 11px; }
.badge-gold { color: #a35b00; background: #fff1c7; }
.badge-gold .ui-icon { color: #f2a500; }
.badge-green { color: #07843f; background: #d7f8d7; }
.badge-red { color: #fff; background: #f0365f; }
/* Featured carousel */
.featured-carousel { display: flex; align-items: center; gap: 14px; }
.featured-track { position: relative; flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 5px 4px; }
.featured-track::-webkit-scrollbar { display: none; }
.featured-card { scroll-snap-align: start; }
.featured-copy { display: grid; gap: 2px; min-width: 0; }
.featured-copy small:not(.status-badge) { color: var(--text-secondary); font-size: 11px; line-height: 1.35; }
.featured-copy .status-badge { margin-top: 3px; }
.carousel-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.carousel-arrow { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #d7e4f1; border-radius: 50%; background: #fff; color: #2a5689; cursor: pointer; box-shadow: 0 1px 4px #2d679a18; }
.carousel-arrow:hover { background: #eaf4ff; }
.carousel-arrow .ui-icon { width: 15px; height: 15px; }
.carousel-dots { display: flex; gap: 5px; justify-content: center; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9d8e8; cursor: pointer; }
.carousel-dots button.is-active { width: 9px; background: #0767ba; }
/* System card badge */
.system-card { position: relative; }
.card-badge { position: absolute; top: 9px; right: 9px; }
.system-card.has-badge h3 { padding-right: 62px; }
/* News carousel */
.news-carousel { display: flex; align-items: center; gap: 10px; }
.news-list { flex: 1; min-width: 0; }
.news-copy h3 { font-size: 14px; line-height: 1.45; }
.news-copy p { margin-top: 3px; }
.news-copy time { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text-secondary); }
.news-copy time .ui-icon { width: 14px; height: 14px; }
.news-dots { margin-top: 8px; }
.news-panel:not(.is-expanded) .news-item + .news-item { border-top: 0; margin-top: 0; padding-top: 4px; }
/* Statistics period select */
.period-select { position: relative; display: inline-flex; align-items: center; margin-left: auto; color: #426786; }
.period-select > .ui-icon:first-child { position: absolute; left: 10px; width: 15px; height: 15px; pointer-events: none; }
.period-select select { appearance: none; min-width: 150px; padding: 6px 30px 6px 32px; border: 1px solid #dbe6f1; border-radius: 9px; background: #fff; color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; box-shadow: 0 1px 6px #185b9918; cursor: pointer; }
.select-chevron { position: absolute; right: 9px; width: 14px; height: 14px; pointer-events: none; }
.stat-item strong b { font-weight: inherit; }
.stat-trend { display: flex; align-items: center; gap: 3px; font-size: 10px; color: #078b51; }
.stat-trend .ui-icon { width: 10px; height: 10px; }
.stat-trend.is-down { color: #d23a3a; }
.stat-trend span { color: var(--text-secondary); }
.stat-note { font-size: 10px; color: var(--text-secondary); }
@media (max-width: 1050px) { .featured-track { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 760px) { .featured-carousel { flex-direction: column; align-items: stretch; } .carousel-controls { justify-content: center; } .news-carousel .carousel-arrow { display: none; } }
@media (max-width: 480px) { .featured-track { grid-auto-columns: 85%; gap: 10px; } .period-select select { min-width: 0; font-size: 11px; } }
@media (min-width: 1500px) {
    .portal-hero { background-size: cover, 100% auto; min-height: 240px; }
}
@media (min-width: 1700px) {
    .dashboard-page { font-size: 15px; }
    .portal-hero { min-height: 280px; padding-top: 28px; }
    .hero-heading h1 { font-size: 38px; }
    .hero-heading p { font-size: 15px; }
    .portal-search { height: 52px; }
    .portal-search input { font-size: 14px; }
    .filter-chip { font-size: 13px; padding: 6px 16px; }
    .category-tile { min-height: 120px; }
    .category-copy strong { font-size: 16px; }
    .category-copy small { font-size: 12px; }
    .directory-layout { grid-template-columns: 290px minmax(0, 1fr); }
    .category-option { font-size: 13px; padding: 8px 12px; }
    .featured-card { min-height: 78px; }
    .featured-card strong, .system-copy h3 { font-size: 15px; }
    .system-card { min-height: 150px; padding: 14px 16px 10px; }
    .system-copy p, .featured-copy small:not(.status-badge) { font-size: 12px; }
    .category-badge, .status-badge { font-size: 11px; }
    .system-action, .system-pending { font-size: 12px; padding: 5px 14px; }
    .news-copy h3 { font-size: 16px; }
    .stat-item strong { font-size: 26px; }
    .stat-item div > span, .stat-trend, .stat-note { font-size: 12px; }
}
@media (max-width: 1280px) {
    .header-inner { gap: 14px; }
    .portal-brand strong { font-size: 16px; }
    .portal-brand small { font-size: 10px; }
    .portal-brand img { width: 49px; height: 49px; }
    .portal-nav { gap: 2px; padding-left: 10px; }
    .portal-nav a { gap: 5px; padding: 7px 9px; font-size: 11px; }
    .portal-nav .ui-icon { width: 18px; height: 18px; }
    .portal-admin { padding: 9px 11px; font-size: 11px; }
    .hero-tools { grid-template-columns: .9fr 1.2fr; gap: 22px; margin-inline: 15px; }
    .filter-chips { gap: 6px; }
    .filter-chip { padding-inline: 9px; font-size: 10px; }
    .category-tile { gap: 8px; padding-inline: 10px; min-height: 100px; }
    .category-tile .icon-tile { width: 45px; height: 50px; border-radius: 13px; }
    .category-tile .icon-tile .ui-icon { width: 30px; height: 30px; }
    .category-copy strong { font-size: 12px; }
    .category-copy small { font-size: 10px; }
    .tile-chevron { display: none; }
    .directory-layout { grid-template-columns: 215px minmax(0,1fr); gap: 12px; }
    .system-card { grid-template-columns: 44px minmax(0,1fr); padding: 10px; gap: 6px 8px; }
    .system-card .icon-tile { width: 44px; height: 48px; border-radius: 13px; }
    .system-card .icon-tile .ui-icon { width: 28px; height: 28px; }
    .system-copy h3 { font-size: 11px; }
    .featured-card { gap: 10px; padding-inline: 10px; }
    .featured-card strong { font-size: 12px; }
    .featured-grid { gap: 12px; }
    .news-panel, .statistics-panel { padding-inline: 15px; }
    .stat-item { padding-inline: 10px; gap: 7px; }
    .stat-item .icon-tile { width: 34px; height: 38px; border-radius: 10px; }
    .stat-item .icon-tile .ui-icon { width: 24px; height: 24px; }
    .stat-item div > span { font-size: 10px; }
    .stat-item strong { font-size: 20px; }
    .live-label { font-size: 9px; }
    .footer-content { gap: 14px; }
    .footer-content > :not(:first-child) { padding-left: 14px; }
    .footer-brand strong { font-size: 12px; }
    .footer-brand small { font-size: 9px; }
}
@media (max-width: 1050px) {
    .header-inner { flex-wrap: wrap; padding-top: 8px; gap: 8px 15px; }
    .portal-nav { order: 3; flex-basis: 100%; border: 0; padding: 0 0 8px; justify-content: center; gap: 20px; }
    .portal-nav a { font-size: 12px; }
    .portal-admin { margin-left: auto; }
    .portal-hero { background-size: cover, auto 450px; background-position: center, 60% top; }
    .hero-heading { padding-left: 35px; max-width: 700px; }
    .hero-heading h1 { font-size: 30px; }
    .hero-location { right: 1%; top: 8px; font-size: 17px; }
    .hero-tools { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
    .portal-search { max-width: 620px; }
    .quick-filters { display: flex; gap: 14px; align-items: center; }
    .quick-filters p { margin: 0; }
    .category-tiles { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
    .category-tile { min-height: 88px; }
    .category-copy strong { font-size: 14px; }
    .category-copy small { font-size: 11px; }
    .category-tile .icon-tile { width: 54px; height: 54px; }
    .tile-chevron { display: block; }
    .directory-layout { grid-template-columns: 1fr; gap: 12px; }
    .category-sidebar { display: flex; gap: 6px; padding: 0 0 10px; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid #e2ecf6; }
    .category-option { flex-shrink: 0; border: 1px solid #e2ecf6; padding: 6px 10px; }
    .system-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .featured-grid { gap: 9px; }
    .featured-card { gap: 8px; }
    .featured-card .icon-tile { width: 40px; height: 43px; }
    .featured-chevron { display: none; }
    .bottom-panels { grid-template-columns: 1fr; gap: 12px; }
    .news-panel, .statistics-panel { min-height: 155px; }
    .stat-item { padding-inline: 20px; gap: 14px; }
    .stat-item .icon-tile { width: 48px; height: 48px; }
    .stat-item .icon-tile .ui-icon { width: 30px; height: 30px; }
    .stat-item div > span { font-size: 12px; }
    .stat-item strong { font-size: 24px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-content > :nth-child(3) { border-left: 0; padding-left: 0; }
    .dashboard-page :is(section, footer, details)[id] { scroll-margin-top: 128px; }
}
@media (max-width: 760px) {
    .portal-brand { gap: 8px; }
    .portal-brand strong { font-size: 14px; }
    .portal-brand small { font-size: 9px; }
    .portal-brand img { width: 44px; height: 44px; }
    .portal-nav { justify-content: flex-start; gap: 5px; overflow-x: auto; scrollbar-width: none; }
    .portal-nav a { flex-shrink: 0; font-size: 11px; padding-inline: 10px; }
    .portal-admin { padding: 8px; }
    .portal-admin small { display: none; }
    .hero-heading { padding-left: 24px; }
    .hero-heading h1 { font-size: clamp(22px, 4.2vw, 30px); line-height: 1.35; }
    .hero-heading h1::before { left: -18px; width: 4px; }
    .hero-heading p { max-width: 520px; font-size: 12px; }
    .hero-location { display: none; }
    .hero-tools { margin-inline: 0; }
    .quick-filters { align-items: flex-start; flex-direction: column; gap: 6px; }
    .filter-chips { gap: 7px; }
    .filter-chip { font-size: 11px; }
    .category-tile { gap: 9px; padding: 10px; min-height: 85px; }
    .category-tile .icon-tile { width: 42px; height: 46px; }
    .category-copy strong { font-size: 12px; }
    .category-copy small { font-size: 10px; }
    .tile-chevron { display: none; }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .section-heading { flex-wrap: wrap; gap: 8px; }
    .section-heading h2 { font-size: 18px; }
    .section-heading > p { font-size: 11px; margin-left: 0; }
    .featured-panel .section-heading > p { flex-basis: 100%; padding-left: 33px; }
    .systems-panel .section-heading > p { display: none; }
    .directory-layout { grid-template-columns: 1fr; gap: 12px; }
    .category-sidebar { display: flex; gap: 5px; padding: 0 0 10px; overflow-x: auto; scrollbar-width: thin; border-right: 0; border-bottom: 1px solid #e2ecf6; }
    .category-option { flex-shrink: 0; border: 1px solid #e2ecf6; padding: 6px 9px; }
    .system-grid { grid-template-columns: 1fr 1fr; }
    .system-card { grid-template-columns: 48px minmax(0,1fr); min-height: 132px; padding: 12px; }
    .system-copy h3 { font-size: 12px; }
    .system-card .icon-tile { width: 48px; height: 50px; }
    .directory-pagination a { min-width: 34px; height: 32px; }
    .footer-brand strong { font-size: 13px; }
}
@media (max-width: 480px) {
    .header-inner { gap: 7px; }
    .portal-brand strong { font-size: 12px; }
    .portal-brand small { font-size: 8px; }
    .portal-brand img { width: 39px; height: 39px; }
    .portal-admin { font-size: 10px; gap: 4px; }
    .portal-admin .ui-icon { width: 16px; height: 16px; }
    .portal-nav a { padding: 6px 8px; font-size: 10px; gap: 5px; }
    .portal-nav .ui-icon { width: 16px; height: 16px; }
    .portal-hero { padding-top: 22px; background-size: cover, auto 480px; background-position: center, 47% top; }
    .hero-heading h1 { font-size: 22px; }
    .hero-heading p { font-size: 11px; }
    .desktop-break { display: none; }
    .portal-search { gap: 7px; height: 44px; padding-left: 12px; }
    .portal-search input { font-size: 11px; }
    .portal-search button { padding-inline: 18px; font-size: 12px; }
    .category-tiles { grid-template-columns: 1fr 1fr; gap: 7px; }
    .category-tile { min-height: 88px; border-width: 2px; border-radius: 13px; padding-inline: 9px; }
    .category-copy strong { font-size: 11px; }
    .category-copy small { font-size: 9px; }
    .featured-panel, .systems-panel { padding: 12px; border-radius: 15px; }
    .featured-grid { padding-inline: 0; gap: 8px; }
    .featured-card { padding: 8px; gap: 7px; }
    .featured-card strong { font-size: 10px; }
    .featured-card .icon-tile { width: 34px; height: 39px; border-radius: 10px; }
    .featured-card .icon-tile .ui-icon { width: 25px; height: 25px; }
    .system-grid { gap: 8px; }
    .system-card { grid-template-columns: 34px minmax(0,1fr); gap: 6px; min-height: 154px; padding: 10px 8px; }
    .system-card .icon-tile { width: 34px; height: 40px; border-radius: 11px; }
    .system-card .icon-tile .ui-icon { width: 25px; height: 25px; }
    .system-copy h3 { font-size: 11px; }
    .category-badge { font-size: 8px; padding-inline: 4px; }
    .system-copy p { font-size: 9px; }
    .system-pending, .system-action { font-size: 9px; min-width: 80px; }
    .bottom-panels .section-heading h2 { font-size: 17px; }
    .bottom-panels .section-heading p { font-size: 10px; }
    .news-panel, .statistics-panel { padding: 13px; }
    .news-art { width: 78px; min-height: 83px; }
    .news-art span { font-size: 6px; letter-spacing: 1px; }
    .news-item { gap: 10px; }
    .news-item h3 { font-size: 11px; }
    .news-item p { font-size: 10px; }
    .statistics-grid { gap: 0; }
    .stat-item { flex-direction: column; align-items: center; text-align: center; gap: 7px; padding-inline: 5px; }
    .stat-item:first-child, .stat-item:last-child { padding-inline: 5px; }
    .stat-item .icon-tile { width: 40px; height: 40px; }
    .stat-item div > span { font-size: 9px; }
    .stat-item strong { font-size: 21px; }
    .stat-item strong small { font-size: 11px; }
    .stat-item p { font-size: 9px; }
    .live-label { padding: 4px 6px; font-size: 8px; }
    .download-panel { padding-inline: 13px; }
    .download-panel summary { font-size: 10px; gap: 7px; }
    .download-panel summary span { font-size: 9px; }
    .download-panel ul { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 15px; padding-block: 22px; }
    .footer-content > :not(:first-child) { border: 0; padding-left: 0; }
    .footer-brand strong { font-size: 14px; }
    .footer-brand small { font-size: 10px; }
    .footer-brand img { width: 48px; height: 48px; }
    .footer-contact, .footer-links { gap: 9px; }
    .dashboard-page .cookie-consent { gap: 10px; font-size: 11px; }
    .dashboard-page .scroll-actions { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-page *, .dashboard-page *::before, .dashboard-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ===== Theme colours from the admin settings (theme_style_vars: --blue / --ink) ===== */
.dashboard-page { --brand: var(--blue, #0767ba); --navy: var(--ink, #09265d); }
.portal-nav a.is-current, .portal-admin { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 72%, #fff), var(--brand)); }
.portal-footer { background: linear-gradient(110deg, color-mix(in srgb, var(--brand) 85%, #000), var(--brand) 58%, color-mix(in srgb, var(--brand) 60%, #00b3b3)); }
.directory-pagination a.is-active, .carousel-dots button.is-active { background: var(--brand); border-color: var(--brand); }
.text-button, .read-more { color: var(--brand); }
.blue-icon { color: var(--brand); }

/* ===== Placeholder links (admin URL still "#") ===== */
.system-action.is-placeholder { background: linear-gradient(180deg, #7fcfa6, #4fae84); }
.placeholder-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px; background: #0d2a4f; color: #fff; font-size: 13px; box-shadow: 0 8px 24px #0b2a5040; }

/* ===== News art variants & downloads ===== */
.news-art.art-health { background: linear-gradient(130deg, #13b07dcc, #00807a99), url('../img/chonburi-hero.png') center / cover; }
.news-art.has-image { padding: 0; overflow: hidden; background: #e8f2fb; }
.news-art.has-image img { width: 100%; height: 100%; object-fit: cover; }
.news-copy .news-label { display: inline-block; margin-bottom: 2px; }
.download-panel { padding: 12px 21px 16px; }
.download-panel .download-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.download-list a, .download-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #dfe9f3; border-radius: 11px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; transition: border-color .18s, box-shadow .18s; }
.download-list a:hover { border-color: var(--brand); box-shadow: 0 3px 10px #2d679a1f; text-decoration: none !important; }
.download-list .ui-icon { width: 22px; height: 22px; color: var(--brand); }
.download-list small { display: block; font-weight: 500; font-size: 11px; color: var(--text-secondary); }
.download-go { margin-left: auto; }
.download-empty { padding: 4px 0; }

/* ===== Sub-pages (news / about / privacy) ===== */
.page-hero { position: relative; padding: 22px 0 46px; color: #fff; background-image: linear-gradient(90deg, #00468ccc, #0078b966 60%, #0078b922), var(--hero-image); background-size: cover; background-position: center 30%; background-color: #0a6db7; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .92; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .ui-icon { width: 12px; height: 12px; }
.page-hero-title { display: flex; align-items: center; gap: 16px; margin-top: 14px; text-shadow: 0 2px 4px #003c7833; }
.page-hero-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #ffffff2e; border: 1px solid #ffffff55; backdrop-filter: blur(4px); }
.page-hero-icon .ui-icon { width: 30px; height: 30px; }
.page-hero h1 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; line-height: 1.25; }
.page-hero p { margin-top: 3px; font-size: 14px; color: #dff3ff; }
.page-body { position: relative; margin-top: -26px; padding-bottom: 28px; display: grid; gap: 16px; }
.page-body > .portal-panel { padding: 18px 22px; }
.eyebrow { display: block; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }

/* Privacy */
.privacy-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.summary-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid #fff; border-radius: 16px; background: linear-gradient(135deg, #fff, var(--tint)); box-shadow: var(--panel-shadow); }
.summary-card .icon-tile { width: 46px; height: 46px; border-radius: 14px; }
.summary-card .icon-tile .ui-icon { width: 26px; height: 26px; }
.summary-card strong { display: block; font-size: 14px; line-height: 1.35; }
.summary-card p { margin-top: 4px; font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
.policy-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.policy-toc { position: sticky; top: 86px; padding: 16px 14px; }
.policy-toc > strong { display: block; padding: 0 8px 8px; font-size: 15px; border-bottom: 1px solid #e3ebf4; }
.policy-toc ol { margin: 8px 0; padding: 0; list-style: none; counter-reset: toc; }
.policy-toc li { counter-increment: toc; }
.policy-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; color: #33507a; }
.policy-toc a::before { content: counter(toc) '.'; color: var(--brand); font-weight: 700; min-width: 18px; }
.policy-toc a:hover { background: #edf5fc; color: var(--navy); }
.policy-date { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 8px; font-size: 12px; color: var(--text-secondary); }
.policy-date .ui-icon { width: 15px; height: 15px; color: var(--brand); }
.policy-article { padding: 24px 30px; font-size: 14px; line-height: 1.8; }
.policy-lead { padding: 14px 18px; border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; background: #f1f7fd; color: #29466d; }
.policy-article section { padding-top: 20px; scroll-margin-top: 90px; }
.policy-article h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 19px; font-weight: 800; }
.policy-article h2 span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; }
.policy-article h3 { margin: 12px 0 4px; font-size: 15px; }
.policy-article p + p { margin-top: 8px; }
.policy-article ul { margin: 6px 0; padding-left: 22px; }
.policy-article li + li { margin-top: 4px; }
.policy-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px !important; padding: 10px 14px; border-radius: 10px; background: #e9f9f0; color: #0b6b40; font-size: 13px; }
.policy-note .ui-icon { width: 18px; height: 18px; margin-top: 3px; }
.policy-table-wrap { overflow-x: auto; margin: 8px 0; border: 1px solid #e0eaf4; border-radius: 12px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.policy-table th { padding: 10px 12px; text-align: left; background: #eef5fc; color: #26446b; white-space: nowrap; }
.policy-table td { padding: 10px 12px; border-top: 1px solid #e6eef6; vertical-align: top; }
.policy-table code, .policy-article code { padding: 1px 6px; border-radius: 5px; background: #eef4fb; font-size: 12px; }
.outline-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 16px; border: 1px solid var(--brand); border-radius: 22px; background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; }
.outline-button:hover { background: #eef6ff; }
.outline-button .ui-icon { width: 18px; height: 18px; }
.reset-status { margin-left: 10px; font-size: 12px; color: #0b7a45; }
.retention-list { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.retention-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: 10px; background: #f5f9fd; }
.retention-list strong { color: var(--brand); text-align: right; }
.rights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.rights-grid div { padding: 12px 14px; border: 1px solid #e0eaf4; border-radius: 12px; background: #fbfdff; }
.rights-grid strong { color: var(--navy); }
.rights-grid p { margin-top: 2px; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.contact-card { padding: 14px 18px; border-radius: 12px; background: #f1f7fd; }
.contact-card p { display: flex; gap: 9px; align-items: flex-start; margin-top: 6px !important; }
.contact-card .ui-icon { width: 17px; height: 17px; margin-top: 5px; color: var(--brand); }
.contact-card a:hover, .contact-item a:hover { text-decoration: underline; }

/* About */
.about-intro { display: grid; grid-template-columns: 120px minmax(0, 1fr) 300px; gap: 24px; align-items: center; }
.about-intro > img { width: 120px; height: 120px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px #1764951f; }
.about-intro h2 { margin: 2px 0 6px; font-size: 24px; font-weight: 800; }
.about-intro p { font-size: 14px; line-height: 1.8; color: #36506f; }
.about-facts { display: grid; gap: 8px; margin: 0; }
.about-facts div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, #f3f9ff, #e8f5ef); }
.about-facts dt { font-size: 13px; color: var(--text-secondary); }
.about-facts dd { margin: 0; font-size: 22px; font-weight: 800; color: var(--brand); }
.about-facts dd small { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.about-columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.about-columns > .portal-panel { padding: 18px 22px; }
.vision-card blockquote { position: relative; margin: 6px 0 0; padding: 18px 22px 18px 52px; border-radius: 14px; background: linear-gradient(135deg, #e8f6ff, #e9fbf1); font-size: 17px; font-weight: 700; line-height: 1.7; color: #0d3b6b; }
.vision-card blockquote::before { content: '\201C'; position: absolute; left: 16px; top: 2px; font-size: 54px; line-height: 1; color: #15b66b; font-family: Georgia, serif; }
.mission-list { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: mission; display: grid; gap: 8px; }
.mission-list li { counter-increment: mission; display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid #e3ecf5; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.mission-list li::before { content: counter(mission); display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 8px; background: #15b66b; color: #fff; font-size: 13px; font-weight: 800; }
.duties-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.duty-item { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid #e3ecf5; border-radius: 14px; background: linear-gradient(135deg, #fff, var(--tint)); }
.duty-item .icon-tile { width: 46px; height: 46px; border-radius: 14px; }
.duty-item .icon-tile .ui-icon { width: 26px; height: 26px; }
.duty-item p { font-size: 14px; line-height: 1.55; font-weight: 600; }
.about-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.about-categories .category-tile { min-height: 88px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.contact-item { display: flex; gap: 12px; padding: 14px; border: 1px solid #e3ecf5; border-radius: 14px; background: #fff; }
.contact-item .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.contact-item .icon-tile .ui-icon { width: 24px; height: 24px; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item p { margin-top: 2px; font-size: 13px; line-height: 1.6; color: #36506f; overflow-wrap: anywhere; }
.map-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), #00a87a); box-shadow: 0 4px 14px #0767ba30; }
.map-card .ui-icon { width: 26px; height: 26px; }
.map-card span { flex: 1; }
.map-card strong, .map-card small { display: block; }
.map-card small { font-size: 11px; opacity: .85; }
.map-card:hover { filter: brightness(1.07); }

/* News page */
.news-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid #dce7f2; border-radius: 22px; background: #fff; font-size: 13px; font-weight: 700; }
.news-tabs a small { padding: 0 7px; border-radius: 10px; background: #edf3fa; color: #50698b; font-size: 11px; }
.news-tabs a:hover { border-color: var(--brand); }
.news-tabs a.is-active { color: #fff; border-color: transparent; background: linear-gradient(#30bb6b, #009361); }
.news-tabs a.is-active small { background: #ffffff33; color: #fff; }
.news-search { flex: 0 1 380px; height: 42px; border: 1px solid #dce7f2; box-shadow: none; }
.news-count { margin: 12px 0 10px; text-align: right; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0eaf4; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px #2d679a12; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #2d679a22; }
.news-card .news-art { width: 100%; min-height: 150px; height: 150px; border-radius: 0; }
.news-card .news-art .ui-icon { width: 44px; height: 44px; }
.news-card .news-art span { font-size: 9px; }
.news-card-body { display: flex; flex-direction: column; flex: 1; gap: 5px; padding: 14px 16px 12px; }
.news-card h3 { font-size: 15px; line-height: 1.5; }
.news-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.news-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid #edf2f7; }
.news-card time { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.news-card time .ui-icon, .read-more .ui-icon { width: 14px; height: 14px; }
.read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.read-more:hover { text-decoration: underline; }
.news-label.group-health { color: #0a8a6a; }

@media (max-width: 1280px) {
    .privacy-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-intro { grid-template-columns: 100px minmax(0, 1fr); }
    .about-intro > img { width: 100px; height: 100px; }
    .about-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    .policy-layout { grid-template-columns: minmax(0, 1fr); }
    .policy-toc { position: static; }
    .policy-toc ol { columns: 2; }
    .about-columns { grid-template-columns: minmax(0, 1fr); }
    .duties-grid, .about-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .page-body > .portal-panel, .about-columns > .portal-panel { padding: 14px; }
    .policy-article { padding: 16px; font-size: 13px; }
    .policy-toc ol { columns: 1; }
    .about-intro { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .about-facts { width: 100%; grid-template-columns: 1fr; }
    .news-search { flex-basis: 100%; }
    .news-count { text-align: left; }
}
@media (max-width: 480px) {
    .privacy-summary, .duties-grid, .about-categories, .rights-grid, .contact-grid { grid-template-columns: 1fr; }
    .page-hero { padding-bottom: 40px; }
    .page-hero-icon { width: 46px; height: 46px; border-radius: 14px; }
    .page-hero-icon .ui-icon { width: 24px; height: 24px; }
    .page-hero h1 { font-size: 22px; }
    .page-hero p { font-size: 12px; }
    .vision-card blockquote { font-size: 15px; padding: 14px 16px 14px 44px; }
    .retention-list li { flex-direction: column; gap: 2px; }
    .retention-list strong { text-align: left; }
    .news-grid { grid-template-columns: 1fr; }
}
