.news-home, .news-masthead, .news-index, .news-reader {
  padding-inline: max(5%, calc((100vw - 1160px) / 2));
}
.news-home { padding-block: 48px 58px; background: #fff; }
.news-home .text-link { white-space: nowrap; }
.news-public { color: var(--primary-dark); background: #fafaf7; }
.news-masthead { position: relative; isolation: isolate; overflow: hidden; padding-block: 46px 42px; background: #17354b; color: #fff; border-bottom: 3px solid var(--gold); }
.news-masthead::after { content: ''; position: absolute; z-index: -1; inset: 0 max(5%, calc((100vw - 1160px) / 2)) 0 auto; width: 240px; background: url('assets/alft-logo.png') center/215px no-repeat; filter: grayscale(1); opacity: .09; }
.news-masthead h1 { font-size: clamp(29px, 4vw, 52px); line-height: 1.25; letter-spacing: -.025em; }
.news-masthead p { margin: 9px 0 0; color: #dce5e9; }
.news-index, .news-reader { padding-block: 32px 64px; min-height: 42vh; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.news-card { overflow: hidden; min-width: 0; border: 1px solid #d6dfe3; border-radius: 10px; background: white; }
.news-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.news-card:focus-within, .news-card:hover { border-color: #96aaba; box-shadow: 0 5px 18px #132c4110; }
.news-card a:focus-visible { outline-offset: -4px; }
.news-card-art { aspect-ratio: 16/8.5; overflow: hidden; background: #eef1ef; }
.news-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-card-brand { display: grid; place-items: center; background: radial-gradient(ellipse at 15% 0%,#345871,transparent 70%),#152f44; }
.news-card-brand img { width: 22%; height: auto; max-height: 80%; object-fit: contain; filter: drop-shadow(0 2px 4px #07182344); }
.news-card-copy { padding: 20px 22px 24px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: #526779; }
.news-category { color: #75551d; font-weight: 700; }
.news-card :is(h2,h3) { margin: 10px 0 0; font-size: 20px; line-height: 1.55; color: #16354c; }
.news-card-copy p { margin: 8px 0 0; color: #516574; line-height: 1.75; }
.news-card :is(h2,h3), .news-card-copy p { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-copy p { -webkit-line-clamp: 2; }
@media (min-width: 701px) {
  .news-edition > :first-child { grid-column: 1/-1; }
  .news-edition > :first-child > a { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); align-items: center; }
  .news-edition > :first-child .news-card-art { height: 100%; width: 100%; max-height: 310px; }
  .news-edition > :first-child .news-card-copy { padding: clamp(22px,3.4vw,50px); }
  .news-edition > :first-child :is(h2,h3) { font-size: clamp(23px,2.4vw,34px); }
}
.news-index { padding-block-start: 24px; }
.news-archive { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.news-archive .news-card > a {
  display: grid;
  grid-template-columns: clamp(88px,24%,132px) minmax(0,1fr);
  align-items: start;
}
.news-archive .news-card-art { aspect-ratio: 4/3; margin: 10px 0 10px 10px; border-radius: 5px; }
.news-archive .news-card-brand img { width: 40%; }
.news-archive .news-card-copy { padding: 10px 12px; }
.news-archive .news-meta { gap: 2px 8px; font-size: 12px; }
.news-archive .news-card h2 { margin-top: 4px; font-size: 16px; line-height: 1.6; }
.news-archive .news-card-copy p { margin-top: 4px; font-size: 13px; }

.news-loading, .news-empty { padding: 26px 20px; text-align: center; color: #526675; }
.news-empty { border: 1px dashed #b9c6cd; border-radius: 9px; background: #f8fafb; }
.news-empty h1, .news-empty h2 { font-size: 21px; }
.news-empty .news-button, .news-empty .news-back { margin-top: 10px; }
.news-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 24px; }
.news-filters label:first-child { flex: 1 1 220px; }
.news-filters label, .news-editor-form label, .news-link-form label { display: grid; gap: 5px; min-width: 0; color: #304b60; font-size: 14px; font-weight: 600; }
.news-filters input, .news-filters select, .news-editor-form :is(input,select,textarea), .news-link-form input, .news-preview-bar select {
  width: 100%; min-width: 0; min-height: 43px; padding: 8px 11px; border: 1px solid #b9c8d1;
  border-radius: 6px; background: white; color: #18364b; font: inherit; font-size: 15px; font-weight: 400;
}
.news-editor-form textarea { resize: vertical; line-height: 1.75; }
.news-public :focus-visible, .news-home :focus-visible, [data-news-surface="desk"] :focus-visible { outline: 2px solid #337696; outline-offset: 2px; }
.news-button, .workspace .news-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 15px; border: 1px solid #b8c6cd; border-radius: 7px; background: white; color: #1c415a; text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.news-button:hover, .workspace .news-button:hover { background: #eef3f5; }
.news-primary, .workspace .news-primary { background: #173c55; border-color: #173c55; color: #fff; }
.news-primary:hover, .workspace .news-primary:hover { background: #28516b; }
.workspace .news-primary { background: var(--workspace-navy); border-color: var(--workspace-navy); }
.news-danger, .workspace .news-danger { background: #942e34; border-color: #942e34; color: #fff; }
.news-danger:hover, .workspace .news-danger:hover { background: #79242a; }
.news-back, .workspace .news-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: #315871; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.news-pagination, .news-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-pagination { justify-content: center; margin-top: 24px; }
.news-reader { background: white; }
.news-reader > .news-back { margin-bottom: 16px; }
.news-story { overflow-wrap: anywhere; color: #203848; }
.news-story-head, .news-prose, .news-gallery { margin-inline: auto; max-width: 760px; }
.news-story-head { padding-block: 20px 26px; border-top: 2px solid #c3a675; }
.news-story-head h1 { margin: 12px 0 0; font-size: clamp(28px,3.5vw,45px); line-height: 1.4; color: #142f44; }
.news-deck { margin: 15px 0 0; color: #496275; font-size: clamp(17px,2vw,21px); line-height: 1.7; white-space: pre-line; }
.news-language-note, .news-hint { color: #5c6d77; font-size: 13px; line-height: 1.65; }
.news-language-note { margin-top: 10px; }
.news-cover { max-width: 920px; margin: 0 auto 28px; }
.news-cover img { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 8px; background: #f1f3f2; }
.news-story figcaption, .news-dialog figcaption { padding-top: 6px; color: #526775; font-size: 13px; line-height: 1.65; }
.news-prose { font-size: 17px; line-height: 1.95; }
.news-prose p, .news-prose ul { margin: 0 0 1em; }
.news-prose ul { padding-inline-start: 1.5em; list-style: disc; }
.news-prose h2, .news-prose h3 { margin: 1.3em 0 .4em; line-height: 1.5; }
.news-prose a { color: #215a7f; text-decoration: underline; }
.news-gallery { margin-top: 32px; }
.news-gallery h2 { margin: 0 0 14px; font-size: 21px; }
.news-gallery > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.news-gallery button { display: block; width: 100%; background: #eff2f2; border: none; padding: 0; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.news-gallery img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.news-desk, .news-editor { min-width: 0; }
.news-desk-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 17px; }
.news-desk-title h2 { font-size: 22px; color: #19384e; }
.news-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.news-counts a { display: grid; gap: 9px; padding: 15px; border: 1px solid #cdd8df; border-radius: 8px; background: white; color: #3c5264; font-size: 14px; text-decoration: none; }
.news-counts a[aria-current] { background: #edf3f7; border-color: #668297; }
.news-counts a > span { display: flex; align-items: center; gap: 6px; }
.news-counts strong { color: #17384f; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.news-dot { width: 8px; height: 8px; border-radius: 50%; background: #5a778e; }
.news-dot.is-published { background: #418068; }
.news-dot.is-scheduled { background: #a77b31; }
.news-dot.is-draft { background: #83919b; }
.news-table { width: 100%; border-spacing: 0; text-align: left; font-size: 13px; color: #405767; background: white; border: 1px solid #d3dce1; border-radius: 8px; }
.news-table th, .news-table td { padding: 13px 10px; border-bottom: 1px solid #e1e7ea; vertical-align: middle; }
.news-table th { background: #f0f4f5; font-weight: 600; }
.news-table td.news-row-story { width: 38%; overflow-wrap: anywhere; }
.news-table tbody tr:last-child td { border-bottom: 0; }
.news-table input[type=checkbox] { width: 18px; height: 18px; accent-color: #28536e; }
.news-check { width: 36px; }
.news-row-story a, .news-row-story small, .news-row-category { display: block; }
.news-row-story a { font-weight: 650; color: #163c55; font-size: 15px; }
.news-row-category, .news-row-story small { color: #5d707d; font-size: 12px; }
.news-row-actions a { display: inline-block; padding: 5px 3px; color: #24536c; white-space: nowrap; text-decoration: underline; }
.news-status { display: inline-block; padding: 3px 9px; border-radius: 20px; white-space: nowrap; background: #eaf0f3; color: #42596c; font-weight: 600; }
.news-status.is-published { color: #246447; background: #e1f1e8; }
.news-status.is-scheduled { color: #79541c; background: #fff0d1; }
.news-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 14px; margin-bottom: 10px; border-radius: 7px; background: #1b3a50; color: white; }
.news-selection button, .news-format button { border: 1px solid #b4c4ce; border-radius: 5px; padding: 5px 10px; background: white; color: #24465e; font: inherit; font-size: 13px; cursor: pointer; }
.news-selection button { min-height: 34px; }
.news-feedback:not(:empty), [data-photo-status]:not(:empty) { margin: 10px 0 16px; padding: 9px 12px; border-inline-start: 3px solid #b69a69; background: #f6f3ec; color: #334755; font-size: 14px; overflow-wrap: anywhere; }
.news-editor > .news-back { margin-bottom: 8px; }
.news-editor-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.52fr); align-items: start; gap: 18px; }
.news-editor-main, .news-editor-side { display: grid; gap: 16px; min-width: 0; }
.news-box { min-width: 0; padding: 21px; border: 1px solid #cfdae0; border-radius: 9px; background: white; }
.news-box h3, .news-translation summary { margin: 0; color: #193b50; font-size: 17px; font-weight: 650; }
.news-box label { margin-top: 13px; }
.news-box .news-hint { margin-top: 7px; }
.news-box .news-actions { margin-top: 15px; }
.news-translation summary { cursor: pointer; }
.news-translation small { font-size: 12px; color: #566b7a; font-weight: normal; }
.news-format { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.news-format button { min-height: 31px; background: #f6f8f8; }
.news-edit-photo { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 9px; padding-top: 12px; }
.news-edit-photo img { width: 64px; height: 54px; object-fit: cover; border-radius: 4px; }
.news-edit-photo label { margin-top: 0; }
.news-delete, .workspace .news-delete { justify-self: start; color: #923d41; }
.news-dialog { position: fixed; width: min(520px,calc(100% - 24px)); max-height: 88dvh; margin: auto; padding: 24px; overflow-y: auto; border: 1px solid #cbd5dc; border-radius: 12px; box-shadow: 0 20px 70px #0a233747; background: #fff; color: #203a4e; font: inherit; }
.news-dialog::backdrop { background: #102a3cc2; }
.news-dialog:has([data-article-preview]), .news-dialog:has(> figure) { width: min(880px,calc(100% - 24px)); }
.news-dialog h2 { font-size: 21px; }
.news-dialog > p, .news-dialog .news-actions, .news-link-form label { margin-top: 12px; }
.news-confirm-list { margin: 14px 0; padding-left: 22px; overflow-wrap: anywhere; }
.news-preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; }
.news-preview-bar select { width: auto; margin-left: auto; }
.news-dialog-close { margin-bottom: 12px; }
.news-dialog > figure img { display: block; margin: auto; max-width: 100%; max-height: 72dvh; object-fit: contain; }
.news-editor-form :disabled, .news-selection :disabled { opacity: .6; }
@media (max-width: 1100px) {
  .news-editor-form { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 800px) {
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .news-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-table, .news-table tbody { display: block; background: transparent; border: 0; }
  .news-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .news-table thead:focus-within { position: static; width: auto; height: auto; clip-path: none; }
  .news-table tr { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 8px; padding: 13px; margin-bottom: 9px; border: 1px solid #d0dce1; border-radius: 8px; background: white; }
  .news-table td { border: 0; padding: 0; }
  .news-table td.news-row-story { width: auto; }
  .news-table td:nth-child(n+3) { grid-column: 2; }
  .news-table td[data-label]::before { content: attr(data-label) ' '; font-weight: 600; }
}
@media (max-width: 700px) {
  .news-grid.news-archive { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .news-masthead { padding-block: 26px 22px; }
  .news-archive .news-card-copy p { display: none; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: minmax(0,1fr); }
  .news-home, .news-index, .news-reader, .news-masthead { padding-inline: 18px; }
  .news-home, .news-index, .news-reader { padding-block: 24px 36px; }
  .news-filters { gap: 8px; }
  .news-filters label:first-child { flex-basis: 100%; }
  .news-box, .news-dialog { padding: 16px; }
  .news-edit-photo { grid-template-columns: 50px minmax(0,1fr); }
  .news-edit-photo img { width: 50px; }
  .news-edit-photo button { grid-column: 2; justify-self: start; }
  .news-gallery > div { gap: 8px; }
  .news-editor-tools { position: fixed; z-index: 25; inset: auto 0 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #c8d4d9; background: white; box-shadow: 0 -3px 12px #132c410d; }
  .news-box .news-editor-tools .news-actions { margin: 0; justify-content: flex-end; }
  .news-editor-tools .news-feedback:not(:empty) { margin: 0 0 6px; }
  .workspace-content:has(.news-editor-tools) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .news-editor-form :is(input,textarea,select,button) { scroll-margin-bottom: 76px; }
}
