/* Hacks and breaches (app/radar_security_routes.py): the bar under the Radar header and the log page /security. Plain text on
   the Radar colours, light and dark from the style.css tokens; nothing glows, nothing is a pill. */
.rd-secbar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
/* Wide screens: two rows that never change height. Row one: the heading, the line saying Radar has not checked these
   headlines, See all. Row two: "Outlet: headline" and the time and outlet count; only the headline is ever shortened
   (ellipsis), the outlet, the time and the count always show. */
.rd-secbar-in { max-width: var(--page, 1120px); margin: 0 auto; padding: 6px 20px 8px; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; }
.rd-secbar-h { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rd-secbar-note { color: var(--muted); font-size: 13px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-secbar-all { grid-column: 3; color: var(--ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.rd-secbar-list { grid-column: 1 / -1; grid-row: 2; list-style: none; margin: 0; padding: 0; min-width: 0; }
.rd-secbar-list li { display: flex; align-items: baseline; gap: 0 6px; min-width: 0; }
.rd-secbar-list li[hidden] { display: none; }
.rd-secbar-head { display: contents; }
.rd-secbar-o { flex: none; color: var(--ink); white-space: nowrap; }
.rd-secbar-t { flex: 0 1 auto; min-width: 4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rd-secbar-t:hover { color: var(--accent); }
/* the headline box clips, so the focus ring is drawn inside it */
.rd-secbar-t:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rd-secbar-src { flex: none; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  /* Phones and tablets (review 13 Nov: the bar changed height with every story, so the page and the open Menu jumped;
     between 641 and 900 px the headline was cut to a few letters). Fixed rows: the heading and See all; the not-checked
     line; "Outlet: headline" in a box that is always two lines tall (a longer headline is cut at the end of the second
     line, a shorter one leaves the second line empty); the time and outlet count on one line. */
  .rd-secbar { font-size: 13px; }
  .rd-secbar-in { padding: 6px 16px 8px; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; }
  .rd-secbar-h { white-space: normal; }
  .rd-secbar-all { grid-column: 2; grid-row: 1; padding: 6px 0; margin: -6px 0; }
  .rd-secbar-note { grid-column: 1 / -1; grid-row: 2; font-size: 12px; white-space: normal; }
  .rd-secbar-list { grid-row: 3; margin-top: 2px; }
  .rd-secbar-list li { display: block; }
  .rd-secbar-head { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; height: 2.9em; overflow-wrap: anywhere; }
  .rd-secbar-o, .rd-secbar-t { display: inline; white-space: normal; }
  .rd-secbar-t { min-width: 0; overflow: visible; }
  .rd-secbar-src { display: block; overflow: hidden; }
}
@media print { .rd-secbar { display: none; } }

/* the log page */
.rd-sec .rd-sec-find { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 8px; }
.rd-sec .rd-sec-kind { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.rd-sec .rd-sec-kind select { width: auto; min-width: 11em; max-width: 100%; }
.rd-sec .rd-sec-find button { flex: 0 0 auto; }
.rd-sec .rd-sec-kind span { color: var(--muted); font-size: 14px; }
.rd-sec .rd-sec-find input[type="search"] { flex: 1 1 240px; min-width: 0; }
.rd-sec .rd-sec-count { margin: 8px 0 4px; }
.rd-sec .rd-sec-count a[download] { margin-left: 8px; }
.rd-sec .rd-sec-day { font-size: 17px; margin: 28px 0 4px; }
.rd-sec .rd-sec-list { list-style: none; margin: 0; padding: 0; }
.rd-sec .rd-sec-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rd-sec .rd-sec-list time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.rd-sec .rd-sec-what { min-width: 0; overflow-wrap: anywhere; }
.rd-sec .rd-sec-k { display: block; color: var(--muted); font-size: 13px; }
.rd-sec .rd-sec-t { color: var(--ink); font-weight: 600; }
.rd-sec .rd-sec-what .sub { display: block; font-size: 13px; margin-top: 2px; }
.rd-sec .rd-sec-note { margin-top: 24px; font-size: 13px; }
@media (max-width: 640px) {
  .rd-sec .rd-sec-list li { grid-template-columns: 1fr; gap: 2px; }
  .rd-sec .rd-sec-find button { flex: 1 1 auto; }
}

/* Major outages in the news (owner 17 Nov), above the hacks and breaches log */
.rd-out-news { margin: 18px 0 28px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rd-out-story { margin: 22px 0; }
.rd-out-story h3 { font-size: 17px; margin: 0 0 2px; }
.rd-out-story .rd-out-meta { margin: 0 0 8px; font-size: 13px; }
.rd-out-story ul { list-style: none; margin: 0 0 8px; padding: 0; }
.rd-out-story li { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.45; }
.rd-out-story li:first-child { border-top: 0; padding-top: 2px; }
.rd-out-story .rd-out-also { display: block; font-size: 13px; margin-top: 2px; }
.rd-out-story p.sub:last-child { margin: 0; font-size: 14px; }
.rd-sec-h { font-size: 20px; margin: 22px 0 6px; }

/* In the news: the page's three sections (owner 17 Nov) */
.rd-news-tabs { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 14px; font-size: 15px; }
.rd-news-banks { margin: 26px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rd-news-banks h2 { margin-top: 0; }
