.icb-news-portal { margin: 0; color: #17222c; background: #edf5fc; font: 1rem/1.55 system-ui, sans-serif; }
.icb-news-portal * { box-sizing: border-box; }
.icb-news-portal main { width: min(720px, calc(100% - 32px)); margin: 24px auto 48px; }
.icb-news-portal header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.icb-news-portal a { color: #0055a5; }
.icb-news-portal h1 { margin-block: 0 12px; }
.icb-news-panel { margin-top: 18px; padding: clamp(16px, 4vw, 26px); background: white; border: 1px solid #cbd6df; border-radius: 9px; }
.icb-news-panel h2 { margin-top: 0; }
.icb-news-portal label { display: block; margin: 14px 0 4px; font-weight: 650; }
.icb-news-portal :is(input:not([type=hidden]), textarea) { width: 100%; padding: 9px; color: inherit; font: inherit; border: 1px solid #7890a7; border-radius: 5px; }
.icb-news-portal button { display: inline-block; min-height: 44px; padding: 8px 15px; border: 1px solid #0055a5; border-radius: 5px; color: #fff; background: #0055a5; font: inherit; font-weight: 650; cursor: pointer; }
.icb-news-panel textarea + button { margin-top: 10px; }
.icb-news-portal :focus-visible { outline: 3px solid #247bc1; outline-offset: 3px; }
.icb-news-error,.icb-news-notice { padding: 10px 14px; border-radius: 6px; }
.icb-news-error { color: #761c20; background: #ffe8e8; }
.icb-news-notice { color: #153d21; background: #dff3e4; }
.icb-news-list { padding: 0; list-style: none; }
.icb-news-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; border-top: 1px solid #dfe8ee; overflow-wrap: anywhere; }
.icb-news-list .icb-news-trash { color: #811d24; border-color: #a1454c; background: #fff; }
.icb-news-public { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.icb-news-card { min-width: 0; padding: 20px; border: 1px solid #cbd6df; border-radius: 9px; overflow-wrap: anywhere; }
.icb-news-card h3 { margin: 12px 0 8px; text-transform: none; }
.icb-news-card img { display: block; width: 100%; height: auto; border-radius: 5px; }
@media (max-width: 650px) { .icb-news-public { grid-template-columns: minmax(0, 1fr); } }
.icb-gallery { margin-top: 12px; }
.icb-news-portal [hidden] { display: none !important; }
.icb-gallery-selected:empty { display: none; }
.icb-news-portal .icb-gallery-toggle,
.icb-news-portal .icb-gallery-nav button { color: #0055a5; background: #fff; }
.icb-news-portal .icb-gallery-nav button:disabled { opacity: .55; cursor: default; }
.icb-gallery-searchbar,.icb-gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.icb-gallery-searchbar input { flex: 1 1 190px; }
.icb-gallery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.icb-news-portal .icb-gallery-list button { display: grid; gap: 5px; width: 100%; height: 100%; padding: 6px; border-color: #cbd6df; background: #edf5fc; color: #17222c; font-size: .85rem; line-height: 1.3; overflow-wrap: anywhere; }
.icb-gallery-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

/* Short previews on the homepage and a separate page for the full news text. */
.icb-refresh-news { position: relative; }
.icb-refresh-news #icb-news { position: absolute; inset-block-start: 0; scroll-margin-top: 120px; }
.icb-news-card .icb-news-more { display: inline-block; margin-top: 8px; }
.icb-news-detail { display: flex; flex-direction: column; min-height: 100vh; margin: 0; color: #17222c; background: #edf5fc; font: 1rem/1.65 system-ui, sans-serif; }
.icb-news-detail * { box-sizing: border-box; }
.icb-news-detail a { color: #0055a5; text-underline-offset: .16em; }
.icb-news-detail a:focus-visible { outline: 3px solid #247bc1; outline-offset: 4px; }
.icb-news-detail-bar { padding: 14px max(16px, calc((100% - 820px) / 2)); background: #171a1d; color: #fff; }
.icb-news-detail-bar a { color: inherit; }
.icb-news-detail-bar nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.icb-news-detail-main { flex: 1; width: min(820px, calc(100% - 32px)); margin: 24px auto 42px; }
.icb-news-detail-card { padding: clamp(16px, 4vw, 32px); margin-top: 15px; border: 1px solid #cbd6df; border-radius: 9px; background: #fff; overflow-wrap: anywhere; }
.icb-news-detail-card h1 { margin: 0 0 18px; font-size: clamp(1.5rem, 4.5vw, 2.5rem); line-height: 1.16; }
.icb-news-detail-card img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.icb-news-detail-copy p:last-child { margin-bottom: 0; }
