/* EU News landing: Following and Front page (news-front.js). House tokens, one column of
   readable rows; institution tags in the institutions' own blues, other tags neutral. */
.nf { display: grid; gap: 16px; padding: 18px 20px 22px; border-radius: var(--ma-panel-radius, 16px); background: var(--ma-surface-raised, #fff); border: 1px solid var(--ma-page-line, rgba(81,101,93,.13)); box-shadow: var(--ma-shadow-quiet, 0 1px 2px rgba(15,23,42,.05)); color: var(--ma-page-ink, #16211d); }
.nf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.nf-tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--ma-surface-soft, #f2f6f4); }
.nf-tab { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--ma-page-muted, #566861); cursor: pointer; transition: background-color 160ms cubic-bezier(.22,1,.36,1), color 160ms cubic-bezier(.22,1,.36,1); }
.nf-tab:hover { color: var(--ma-page-ink, #16211d); }
.nf-tab.is-active { background: var(--ma-surface-raised, #fff); color: var(--ma-page-ink, #16211d); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.nf-tab:focus-visible, .nf-filter:focus-visible, .nf-more:focus-visible, .nf-lang > summary:focus-visible { outline: 2px solid var(--ma-action, #276ef1); outline-offset: 2px; }
.nf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; color: var(--ma-page-muted, #566861); }
.nf-lang { position: relative; }
.nf-lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--ma-radius, 8px); border: 1px solid var(--ma-page-line-strong, rgba(81,101,93,.22)); background: var(--ma-surface-raised, #fff); color: var(--ma-page-ink, #16211d); cursor: pointer; }
.nf-lang > summary::-webkit-details-marker { display: none; }
.nf-lang > summary::after { content: "▾"; font-size: 11px; color: var(--ma-page-muted, #566861); }
.nf-lang-label { color: var(--ma-page-muted, #566861); }
.nf-lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(360px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: var(--ma-surface-raised, #fff); border: 1px solid var(--ma-page-line-strong, rgba(81,101,93,.22)); box-shadow: var(--ma-shadow-lift, 0 12px 28px rgba(15,23,42,.14)); }
.nf-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ma-page-ink, #16211d); cursor: pointer; }
.nf-check:first-child { grid-column: 1 / -1; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--ma-page-line, rgba(81,101,93,.13)); }
.nf-remember { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.nf-remember[hidden] { display: none; }
.nf-status { margin: -6px 0 0; font-size: 12.5px; color: var(--ma-civic, #11724f); }
.nf-status:empty { display: none; }
.nf-block { display: grid; gap: 8px; }
.nf-block + .nf-block { padding-top: 14px; border-top: 1px solid var(--ma-page-line, rgba(81,101,93,.13)); }
.nf-block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nf-block-head h2, .nf-block-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.nf-sub { font-size: 12.5px; color: var(--ma-page-muted, #566861); }
.nf-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.nf-filter { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--ma-page-line-strong, rgba(81,101,93,.22)); background: var(--ma-surface-raised, #fff); font: inherit; font-size: 12.5px; color: var(--ma-page-ink, #16211d); cursor: pointer; transition: background-color 160ms cubic-bezier(.22,1,.36,1), border-color 160ms cubic-bezier(.22,1,.36,1); }
.nf-filter:hover { border-color: var(--ma-action, #276ef1); }
.nf-filter.is-active { background: var(--ma-action-soft, rgba(39,110,241,.1)); border-color: var(--ma-action, #276ef1); color: var(--ma-action-strong, #1859cc); font-weight: 600; }
.nf-count { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--ma-page-muted, #566861); }
.nf-list { list-style: none; margin: 0; padding: 0; display: grid; }
.nf-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--ma-page-line, rgba(81,101,93,.13)); }
.nf-item:last-child { border-bottom: 0; }
.nf-tag { justify-self: start; padding: 2px 7px; border-radius: var(--ma-radius-sm, 6px); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--ma-surface-soft, #f2f6f4); color: var(--ma-page-muted, #566861); }
.nf-tag--commission { background: rgba(0,51,153,.08); color: #003399; }
.nf-tag--council { background: rgba(10,61,98,.09); color: #0a3d62; }
.nf-tag--parliament { background: rgba(30,64,175,.08); color: #1e40af; }
.nf-item-main { min-width: 0; display: grid; gap: 3px; }
.nf-title { font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ma-page-ink, #16211d); text-decoration: none; text-wrap: pretty; overflow-wrap: anywhere; }
.nf-title:hover { color: var(--ma-action-strong, #1859cc); text-decoration: underline; text-underline-offset: 2px; }
.nf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 12.5px; color: var(--ma-page-muted, #566861); }
.nf-lang-tag { padding: 0 5px; border-radius: 4px; border: 1px solid var(--ma-page-line-strong, rgba(81,101,93,.22)); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; }
.nf-chip { padding: 1px 7px; border-radius: 999px; background: var(--ma-surface-soft, #f2f6f4); font-size: 11.5px; color: var(--ma-page-ink, #16211d); }
.nf-chip--why { background: var(--ma-action-soft, rgba(39,110,241,.1)); color: var(--ma-action-strong, #1859cc); }
.nf-more { justify-self: start; height: 32px; padding: 0 12px; border-radius: var(--ma-radius, 8px); border: 1px solid var(--ma-page-line-strong, rgba(81,101,93,.22)); background: var(--ma-surface-raised, #fff); font: inherit; font-size: 13px; color: var(--ma-action-strong, #1859cc); cursor: pointer; }
.nf-more:hover { border-color: var(--ma-action, #276ef1); }
.nf-more:active, .nf-filter:active, .nf-tab:active { transform: scale(.98); }
.nf-more[hidden] { display: none; }
.nf-empty { padding: 10px 0; font-size: 13.5px; color: var(--ma-page-muted, #566861); }
.nf-warn { margin: 0; font-size: 13px; color: #8a5f0c; }
.nf-following-summary { margin: 0; font-size: 13.5px; color: var(--ma-page-muted, #566861); }
.nf-following-summary a { color: var(--ma-action-strong, #1859cc); }
.nf-onboard { display: grid; gap: 12px; justify-items: start; padding: 18px; border-radius: 12px; background: var(--ma-surface-soft, #f2f6f4); }
.nf-onboard p { margin: 0; font-size: 14px; max-width: 60ch; }
.nf-tools { margin: 0; font-size: 12.5px; color: var(--ma-page-muted, #566861); }
#nfFront[hidden], #nfFollowing[hidden], .nf-tab[hidden] { display: none; }
#nfFront, #nfFollowing, #nfFollowingBody { display: grid; gap: 16px; }
.nf-filter--more { border-style: dashed; color: var(--ma-action-strong, #1859cc); }
/* The sidebar filters act on the feed panels, not on the front page: hidden there (search stays). */
body[data-news-panel="front"] .dashboard-sidebar > .sidebar-section-head:first-of-type,
body[data-news-panel="front"] .dashboard-sidebar .sidebar-filters { display: none; }
@media (max-width: 640px) {
  .nf { padding: 14px 14px 18px; }
  .nf-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nf-lang-list { right: auto; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-tab, .nf-filter { transition: none; }
  .nf-more:active, .nf-filter:active, .nf-tab:active { transform: none; }
}

#panel-front > [data-plenary-strip]:not([hidden]) { margin-bottom: 14px; }

/* ── EU News layout (2026-10-19): one header with tabs and search, the main column and a right
   column; the old sidebar, header, hero and panel tools are retired (their scripts still run). ── */
body[data-page="news"] .dashboard-sidebar,
body[data-page="news"] .sidebar-collapse-toggle,
body[data-page="news"] .dashboard-header,
body[data-page="news"] .news-hero-panel,
body[data-page="news"] .page-toolbar--news,
body[data-page="news"] .sidebar-panel-link[data-panel="feed"],
body[data-page="news"] .sidebar-panel-link[data-panel="mep"] { display: none !important; }
body[data-page="news"] .news-workspace { max-width: 1320px; margin: 0 auto; padding: 0 24px 64px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pieces of landing-background.svg (1536×1024), cut with CSS as in policy-atlas.css (.pa-art). */
.nw-art { display: block; flex: none; background: url("landing-background.svg") no-repeat; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.nw-art--core { aspect-ratio: 720 / 560; background-size: 213.33% auto; background-position: 68.63% 53.88%; }
.nw-art--votemap { aspect-ratio: 125 / 102; background-size: 1228.8% auto; background-position: 80.44% 45.34%; }
.nw-art--signals { aspect-ratio: 215 / 165; background-size: 714.42% auto; background-position: 90.23% 63.21%; }
.nw-art--lens { aspect-ratio: 150 / 152; background-size: 1024% auto; background-position: 32.61% 55.96%; }

/* Header */
.nw-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; padding: 18px 2px 0; margin-bottom: 16px; }
.nw-head > :not(.nw-art) { position: relative; z-index: 1; }
.nw-head-art { position: absolute; right: 360px; top: -6px; width: 280px; opacity: .4; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 100%); }
.nw-title { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; color: var(--ma-ink, #15211c); }
.nw-status { margin: 6px 0 0 !important; font-size: 14px; color: var(--ma-ink-muted, #5d6c65) !important; }
.nw-status b { color: var(--ma-ink, #15211c); font-weight: 600; }
.nw-dot { margin: 0 8px; color: var(--ma-line-strong, rgba(83,103,94,.34)); }
.nw-search { display: flex; gap: 6px; width: min(380px, 100%); }
.nw-search input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: var(--ma-radius, 8px); border: 1px solid var(--ma-line-strong, rgba(83,103,94,.34)); background: var(--ma-surface-raised, #fff); font: inherit; font-size: 14px; color: var(--ma-ink, #15211c); }
.nw-search input:focus-visible { outline: 2px solid var(--ma-action, #276ef1); outline-offset: 1px; }
.nw-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 8px; border-bottom: 1px solid var(--ma-line, rgba(83,103,94,.22)); }
.nw-tabs { display: flex; gap: 4px; }
.nw-tab { position: relative; height: 40px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ma-ink-muted, #5d6c65); cursor: pointer; transition: color 160ms cubic-bezier(.22,1,.36,1); }
.nw-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; transition: background-color 160ms cubic-bezier(.22,1,.36,1); }
.nw-tab:hover { color: var(--ma-ink, #15211c); }
.nw-tab.is-active { color: var(--ma-ink, #15211c); font-weight: 600; }
.nw-tab.is-active::after { background: var(--ma-action, #276ef1); }
.nw-tab[hidden] { display: none; }
.nw-tab:focus-visible { outline: 2px solid var(--ma-action, #276ef1); outline-offset: -2px; border-radius: 6px; }
.nw-bar .nf-controls { padding-bottom: 6px; }

/* Main and right column */
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.nw-main { min-width: 0; }
.nw-rail { display: grid; border-radius: var(--ma-panel-radius, 16px); background: var(--ma-surface-raised, #fff); border: 1px solid var(--ma-line, rgba(83,103,94,.22)); box-shadow: var(--ma-shadow-quiet); overflow: hidden; }
.nw-block { padding: 16px 18px 18px; display: grid; gap: 10px; }
.nw-block + .nw-block { border-top: 1px solid var(--ma-line, rgba(83,103,94,.22)); }
.nw-block[hidden] { display: none; }
.nw-plenary { background: linear-gradient(180deg, #f5f8ff 0%, var(--ma-surface-raised, #fff) 100%); }
.nw-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.nw-block-head h2 { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ma-ink, #15211c); }
.nw-block-head .nw-art { height: 44px; margin: -12px -4px -10px 0; opacity: .9; }
.nw-sub { margin: -4px 0 0 !important; font-size: 13px; color: var(--ma-ink-muted, #5d6c65) !important; }
.nw-live { font-weight: 600; color: var(--ma-ink, #15211c); }
.nw-live.is-live { color: var(--ma-civic, #16846f); }
.nw-live.is-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--ma-civic-soft); vertical-align: middle; }
.nw-mini { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ma-ink-muted, #5d6c65); }
.nw-empty { margin: 0 !important; font-size: 13.5px; color: var(--ma-ink-muted, #5d6c65) !important; }
.nw-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.nw-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--ma-line, rgba(83,103,94,.22)); font-size: 13.5px; line-height: 1.42; }
.nw-row:first-child { border-top: 0; padding-top: 2px; }
.nw-when { font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 11.5px; color: var(--ma-ink-muted, #5d6c65); padding-top: 2px; }
.nw-row-main { min-width: 0; }
.nw-row-main a { color: var(--ma-ink, #15211c); text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.nw-row-main a:hover { color: var(--ma-action-strong, #1859cc); text-decoration: underline; text-underline-offset: 2px; }
.nw-kind { display: inline-block; margin: 0 6px 2px 0; padding: 0 5px; border-radius: 4px; font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.7; background: var(--ma-surface-soft, #f2f6f4); color: var(--ma-ink-muted, #5d6c65); }
.nw-kind.is-vote { background: var(--ma-action-soft, rgba(39,110,241,.12)); color: var(--ma-action-strong, #1859cc); }
.nw-result { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.nw-result.is-adopted { background: var(--ma-civic-soft); color: var(--ma-civic, #16846f); }
.nw-result.is-rejected { background: var(--ma-surface-soft, #f2f6f4); color: var(--ma-ink, #15211c); }
.nw-open { justify-self: start; height: 32px; padding: 0 12px; border-radius: var(--ma-radius, 8px); border: 1px solid var(--ma-action, #276ef1); background: var(--ma-surface-raised, #fff); font: inherit; font-size: 13px; font-weight: 600; color: var(--ma-action-strong, #1859cc); cursor: pointer; transition: background-color 160ms cubic-bezier(.22,1,.36,1); }
.nw-open:hover { background: var(--ma-action-soft, rgba(39,110,241,.12)); }
.nw-open:active { transform: scale(.98); }
.nw-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.nw-links a { color: var(--ma-action-strong, #1859cc); text-decoration: none; }
.nw-links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.nw-links a::after { content: " ↗"; font-size: 11px; color: var(--ma-ink-muted, #5d6c65); }

/* Filters menu of the EU news */
.nf-more-filters { position: relative; }
.nf-more-filters > summary { list-style: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--ma-line-strong, rgba(83,103,94,.34)); font-size: 12.5px; color: var(--ma-ink, #15211c); cursor: pointer; }
.nf-more-filters > summary::-webkit-details-marker { display: none; }
.nf-more-filters > summary::after { content: " ▾"; margin-left: 4px; font-size: 10px; color: var(--ma-ink-muted, #5d6c65); }
.nf-more-count { font-weight: 600; color: var(--ma-action-strong, #1859cc); }
.nf-more-body { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(320px, calc(100vw - 48px)); display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--ma-surface-raised, #fff); border: 1px solid var(--ma-line-strong, rgba(83,103,94,.34)); box-shadow: var(--ma-shadow-lift); }
.nf-more-body label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ma-ink-muted, #5d6c65); }
.nf-more-body select { height: 34px; padding: 0 10px; border-radius: var(--ma-radius, 8px); border: 1px solid var(--ma-line-strong, rgba(83,103,94,.34)); font: inherit; font-size: 13px; font-weight: 400; color: var(--ma-ink, #15211c); background: var(--ma-surface-raised, #fff); }

/* Plenary drawer */
.nw-drawer { position: fixed; inset: 0; z-index: 9000; }
.nw-drawer[hidden] { display: none; }
.nw-drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .32); opacity: 0; transition: opacity 220ms cubic-bezier(.22,1,.36,1); }
.nw-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--ma-surface-raised, #fff); box-shadow: -18px 0 42px rgba(15, 23, 42, .16); transform: translateX(100%); transition: transform 240ms cubic-bezier(.22,1,.36,1); }
.nw-drawer.is-open .nw-drawer-backdrop { opacity: 1; }
.nw-drawer.is-open .nw-drawer-panel { transform: none; }
.nw-drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ma-line, rgba(83,103,94,.22)); background: linear-gradient(180deg, #f5f8ff 0%, var(--ma-surface-raised, #fff) 100%); }
.nw-drawer-head .nw-art { height: 40px; margin: -10px 0; }
.nw-drawer-head h2 { flex: 1; margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ma-ink, #15211c); }
.nw-drawer-x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 15px; color: var(--ma-ink-muted, #5d6c65); cursor: pointer; }
.nw-drawer-x:hover { background: var(--ma-surface-soft, #f2f6f4); color: var(--ma-ink, #15211c); }
.nw-drawer-x:focus-visible { outline: 2px solid var(--ma-action, #276ef1); outline-offset: 2px; }
.nw-drawer-body { overflow-y: auto; padding: 4px 6px 24px; }
.nw-drawer-body .ps { border: 0; box-shadow: none; background-image: none; padding: 10px 12px; }
.nw-drawer-body .ps-head h2 { display: none; }
body.nw-drawer-open { overflow: hidden; }

@media (max-width: 1100px) {
  .nw-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .nw-head-art { right: 300px; width: 220px; }
}
@media (max-width: 900px) {
  body[data-page="news"] .news-workspace { padding: 0 16px 48px; }
  .nw-head { grid-template-columns: minmax(0, 1fr); }
  .nw-search { width: 100%; }
  .nw-head-art { right: 0; top: -10px; width: 170px; opacity: .3; }
  .nw-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nw-rail { display: contents; }
  .nw-rail > .nw-block { border-radius: var(--ma-panel-radius, 16px); background: var(--ma-surface-raised, #fff); border: 1px solid var(--ma-line, rgba(83,103,94,.22)); box-shadow: var(--ma-shadow-quiet); order: 3; }
  .nw-rail > .nw-plenary { order: 1; background: linear-gradient(180deg, #f5f8ff 0%, var(--ma-surface-raised, #fff) 100%); }
  .nw-main { order: 2; }
  .nw-tabs { overflow-x: auto; }
  .nw-tab { padding: 0 10px; white-space: nowrap; }
  .nw-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-drawer-panel, .nw-drawer-backdrop, .nw-tab, .nw-tab::after, .nw-open { transition: none; }
}
.nw-art--dossier { aspect-ratio: 140 / 135; background-size: 1097.14% auto; background-position: 40.47% 31.72%; }
.nf-head-art { height: 36px; margin: -10px 2px -8px -6px; opacity: .85; align-self: center; }
.nf-block-head { align-items: center; }
#nfTypeChips .nf-more-filters { margin-left: 4px; }
