/* Shared compact hierarchy for news and delivery administration. */
.news-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-block:20px}
.news-summary-item{display:flex;align-items:center;gap:12px;padding:18px;color:var(--ink);text-decoration:none;min-width:0}
.news-summary-item>.icon{color:var(--brand);width:24px;height:24px;flex-shrink:0}.news-summary-item>span{font-weight:700;font-size:14px}.news-summary-item>strong{margin-inline-start:auto;font-size:26px;color:var(--brand)}
.news-summary-item:hover,.news-summary-item:focus-visible{border-color:var(--brand)}
.news-filters{display:flex;gap:14px;align-items:end;padding:18px;margin-block:18px}.news-filters>.field{flex:1;min-width:0}.news-filters .field:first-of-type{flex:2}.news-filter-actions{display:flex;gap:8px;flex-shrink:0}.news-filters .field input,.news-filters .field select{min-height:42px}
.portal-news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:20px}.portal-news-card{overflow:hidden;display:flex;flex-direction:column}.portal-news-card .panel-body{display:flex;flex-direction:column;align-items:start;gap:10px;flex:1}.portal-news-card strong{font-size:20px;line-height:1.5}.portal-news-card time{font-size:12px;color:var(--muted)}.portal-news-card .btn{margin-block-start:auto}
.news-cover{position:relative;aspect-ratio:16/7;overflow:hidden;background:var(--surface-2,var(--bg));display:grid;place-items:center;color:var(--muted);border-radius:12px}.portal-news-card>.news-cover{border-radius:0}.news-cover img{width:100%;height:100%;object-fit:cover}.news-cover img[hidden]{display:none}.news-cover [data-media-fallback]{font-size:12px}.news-thumbnail{width:116px;aspect-ratio:4/3;flex:0 0 116px;border-radius:10px}.news-placeholder{background:var(--surface-2,var(--bg));display:grid;place-items:center;color:var(--brand)}.news-placeholder .icon{width:32px;height:32px}
.portal-news-admin-row{display:flex;align-items:start;gap:18px;padding-block:20px;border-bottom:1px solid var(--line,var(--border))}.portal-news-admin-row:last-child{border-bottom:0}.news-row-content{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center}.news-row-content>strong{font-size:17px;flex-basis:100%;order:-1}.news-row-content>time{font-size:12px;color:var(--muted)}.news-row-content>p,.news-row-content>small{flex-basis:100%;margin:0}.news-row-content>small{color:var(--muted);line-height:1.8}.portal-news-row-actions{display:flex;gap:8px;flex-wrap:wrap;max-width:280px}.news-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.8;margin-block:8px}.news-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.portal-news-detail{display:flex;flex-direction:column;gap:12px}.portal-news-detail>strong{font-size:23px}.portal-news-detail>time{color:var(--muted);font-size:12px}.portal-news-type{display:inline-flex;gap:6px;align-items:center;font-size:12px;font-weight:700;width:fit-content;padding:5px 9px;border-radius:8px;background:#edf3fb;color:#326d9b}.portal-news-type .icon{width:16px;height:16px}.news-maintenance{background:#fff3db;color:#94661b}.news-outage{background:#fcecef;color:#a53448}.news-service{background:#e9f4ef;color:#216950}.news-announcement{background:#f0ecfa;color:#7057a5}.news-urgent{border-color:#ce7180}
.comm-editor-section{border:1px solid var(--line,var(--border));border-radius:12px;padding:18px}.comm-editor-section h3{display:flex;gap:10px;align-items:center;font-size:16px;margin:0 0 18px}.comm-editor-section h3>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;color:var(--brand);background:var(--surface-2,var(--bg));font-size:13px}.comm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comm-fields>.full{grid-column:1/-1}.comm-fields fieldset{border:1px solid var(--line,var(--border));border-radius:10px;padding:14px;min-width:0}.comm-fields legend{font-weight:700;font-size:14px}.comm-fields .task{display:flex;gap:9px;align-items:center;font-size:13px;margin-block:8px}.comm-fields textarea{min-height:130px}.comm-fields input[type=file]{max-width:100%;padding:10px;font-size:12px}.comm-fields .caption{font-size:12px;color:var(--muted);line-height:1.8}
.news-live-preview{border:1px dashed var(--line,var(--border));border-radius:12px;padding:20px;background:var(--surface-2,var(--bg))}.news-live-preview h3{margin:0 0 15px;font-size:14px;color:var(--muted)}.news-live-preview [data-news-preview]{display:flex;flex-direction:column;gap:9px}.news-live-preview [data-news-preview]>strong{font-size:21px}.news-live-preview .news-cover{max-height:240px}.news-live-preview time{font-size:12px;color:var(--muted)}.news-editor-error,.delivery-editor-error{color:var(--danger,#b64253);font-size:13px}
.comm-tabs{display:flex;gap:8px;margin-block:20px}.comm-tabs .ops-tab{padding:10px 18px}.comm-channel-note{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:13px;line-height:1.7}.comm-channel-note .icon{flex-shrink:0}
.comm-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:18px}.comm-template-card{padding:20px;display:flex;flex-direction:column;min-width:0}.comm-template-heading{display:flex;gap:12px;align-items:start}.comm-template-heading>div{flex:1;min-width:0}.comm-template-heading strong{display:block;font-size:16px;line-height:1.5}.comm-template-heading small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.comm-template-heading .badge{font-size:11px;flex-shrink:0}.comm-template-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#edf3fb;color:#3c7cab;flex-shrink:0}.comm-template-icon.accounts{background:#f0ecfa;color:#7960ab}.comm-template-icon.commitment{background:#fcecef;color:#b04458}.comm-template-icon.approvals{background:#e9f4ef;color:#287956}.comm-template-icon.demands{background:#fff3db;color:#94661b}.comm-template-card>p{font-size:12px;margin-block:12px 0;color:var(--muted)}.comm-template-snippet{background:var(--surface-2,var(--bg));border-radius:10px;padding:14px;margin-block:16px;flex:1;overflow-wrap:anywhere}.comm-template-snippet strong{font-size:13px}.comm-template-snippet p{font-size:13px;line-height:1.8;margin-bottom:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.comm-card-actions{display:flex;gap:7px;flex-wrap:wrap}.comm-card-actions .btn{min-height:37px;padding:8px 13px;font-size:12px}.comm-token-picker{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.comm-token-picker .field{flex:1;min-width:180px}.comm-message-preview{display:flex;flex-direction:column;gap:10px}.comm-message-preview>span{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.comm-message-preview>strong{font-size:19px}.comm-message-preview p{margin:0}.comm-message-preview small{font-size:12px;color:var(--muted)}.comm-exception{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:12px;border-bottom:1px solid var(--line,var(--border))}.comm-exception p{font-size:13px;color:var(--muted);margin-bottom:0}.comm-delivery td small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.comm-delivery th{height:48px;padding-block:8px;font-size:13px}.comm-delivery td .btn{min-height:34px;margin:3px;padding:7px 10px;font-size:12px}
html[data-theme=dark] .portal-news-type,html[data-theme=dark] .comm-template-icon{background:#263b4b;color:#a6c8ed}html[data-theme=dark] .news-maintenance,html[data-theme=dark] .comm-template-icon.demands{background:#463c23;color:#edcd8d}html[data-theme=dark] .news-outage,html[data-theme=dark] .comm-template-icon.commitment{background:#482a33;color:#f4b3c0}html[data-theme=dark] .news-service,html[data-theme=dark] .comm-template-icon.approvals{background:#203f33;color:#a1dbbd}html[data-theme=dark] .news-announcement,html[data-theme=dark] .comm-template-icon.accounts{background:#372f4a;color:#c9b5f2}
@media(max-width:1000px){.news-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.news-filters{flex-wrap:wrap}.news-filters>.field{flex:1 1 200px}.news-filters .field:first-of-type{flex:1 1 100%}.portal-news-admin-row{flex-wrap:wrap}.portal-news-row-actions{margin-inline-start:auto;max-width:none}}
@media(max-width:600px){.news-summary{gap:9px}.news-summary-item{padding:12px;gap:8px}.news-summary-item>span{font-size:12px}.news-summary-item>strong{font-size:23px}.news-summary-item>.icon{width:19px;height:19px}.news-filters{padding:14px;gap:12px}.news-filters>.field{flex-basis:100%}.news-filter-actions{width:100%}.comm-fields{grid-template-columns:1fr}.comm-fields>*{grid-column:1}.comm-editor-section{padding:14px}.news-thumbnail{width:72px;flex-basis:72px}.portal-news-admin-row{gap:12px}.news-row-content>strong{font-size:16px}.portal-news-row-actions{width:100%;margin:0}.comm-template-heading{gap:9px}.comm-template-card{padding:16px}.comm-exception{align-items:start;flex-direction:column}.comm-token-picker .field{flex-basis:100%}.comm-channel-note{align-items:start}}
@media(prefers-reduced-motion:reduce){.news-summary-item{transition:none}}

/* Optional announcement between the employee search hero and destination cards. */
.home-announcement{--home-news-accent:var(--brand);max-width:880px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);min-height:238px;margin-block-start:24px;overflow:hidden;border-radius:18px;box-shadow:var(--shadow);text-align:start;background:var(--surface)}
.home-announcement--announcement{--home-news-accent:#7057a5}.home-announcement--maintenance{--home-news-accent:#a17c38}.home-announcement--outage{--home-news-accent:#b04458}.home-announcement--news{--home-news-accent:#3c7cab}
.home-announcement-visual{position:relative;min-width:0;min-height:238px;overflow:hidden;border-inline-end:1px solid var(--line);background:linear-gradient(140deg,var(--tint),color-mix(in srgb,var(--home-news-accent) 8%,var(--surface)))}
.home-announcement .home-announcement-image{position:absolute;inset:0;aspect-ratio:auto;height:100%;border-radius:0;background:transparent}
.home-announcement .home-announcement-image img{position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:cover;transition:transform .2s}
.home-announcement .home-announcement-image [data-media-fallback]{font-size:12px;padding:16px;text-align:center}
.home-announcement-cover{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;padding:12px;display:flex;align-items:end;justify-content:end;color:var(--ink);border-radius:0}
.home-announcement-expand{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 9px;font-size:11px;font-weight:700;border-radius:8px;border:1px solid var(--line);background:var(--surface);box-shadow:0 2px 8px #203d3310}.home-announcement-expand .icon{width:15px;height:15px}
.home-announcement-cover:hover .home-announcement-expand{border-color:var(--brand);color:var(--brand)}.home-announcement-visual:has(.home-announcement-cover:hover) img{transform:scale(1.015)}.home-announcement-cover:focus-visible{outline:3px solid var(--brand);outline-offset:-4px}
.home-announcement-copy{min-width:0;display:flex;flex-direction:column;align-items:start;justify-content:center;gap:12px;padding:24px 28px;background:color-mix(in srgb,var(--home-news-accent) 3%,var(--surface))}
.home-announcement-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;max-width:100%}.home-announcement-meta .portal-news-type{padding:4px 9px;font-size:11px;line-height:1.6}.home-announcement-meta time{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.home-announcement-meta time .icon{width:14px;height:14px}
.home-announcement-copy h2{font-size:22px;font-weight:750;line-height:1.55;color:var(--ink);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.home-announcement-copy>p{font-size:13px;line-height:1.8;color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%}
.home-announcement-actions{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;margin-block-start:4px}.home-announcement-actions .btn{min-height:42px;padding:9px 14px;font-size:12px;border-radius:10px}.home-announcement-actions .text-link{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--brand)}.home-announcement-actions .text-link .icon{width:14px;height:14px}.home-announcement-actions .text-link:hover{text-decoration:underline}.home-announcement-actions .btn:focus-visible,.home-announcement-actions .text-link:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.home-announcement-art{display:grid;place-items:center;color:var(--home-news-accent)}.home-announcement-art>.icon{width:76px;height:76px;stroke-width:1.25}
.home-announcement--outage{border-color:color-mix(in srgb,var(--line) 60%,var(--home-news-accent))}
#dialog.news-image-dialog{width:min(1040px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}#dialog.news-image-dialog .dialog-head{position:sticky;top:0;background:var(--surface);z-index:1}.news-image-view{margin:0}.news-cover-full{aspect-ratio:auto;border-radius:10px;min-height:160px}.news-cover-full img{height:auto;object-fit:contain;display:block}.news-cover-full img[hidden]{display:none}
html[data-theme=dark] .home-announcement--announcement{--home-news-accent:#c9b5f2}html[data-theme=dark] .home-announcement--maintenance{--home-news-accent:#edcd8d}html[data-theme=dark] .home-announcement--outage{--home-news-accent:#f4b3c0}html[data-theme=dark] .home-announcement--news{--home-news-accent:#a6c8ed}
.news-home-option{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--tint)}
.news-home-option .task{font-weight:700;margin-block:0 6px}.news-home-option .caption{margin:0}
@media(max-width:640px){.home-announcement{grid-template-columns:1fr;margin-block-start:18px}.home-announcement-visual{min-height:210px;border-inline-end:0;border-block-end:1px solid var(--line)}.home-announcement-copy{padding:20px;gap:10px}.home-announcement-copy h2{font-size:20px}.home-announcement-actions{gap:12px 16px;width:100%}.home-announcement-actions .text-link{min-height:42px}#dialog.news-image-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){.home-announcement .home-announcement-image img{transition:none}.home-announcement-visual:has(.home-announcement-cover:hover) img{transform:none}}
