/* Readable navigation and a shorter front page, preserving the site's palette. */
:root { --muted: #c0cfe0; }
[hidden] { display: none !important; }
.nav { z-index: 30; }
.nav .nav-inner { min-height: 64px; height: auto; gap: 24px; overflow: visible; white-space: normal; padding-block: 5px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 26px); flex: 1; min-width: 0; }
.nav .nav-links > a, .nav-dropdown > summary, .nav .nav-search { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 15px; line-height: 1.4; font-weight: 700; position: relative; white-space: nowrap; }
.nav .nav-links > a { padding-block: 8px; }
.nav .nav-search { margin-left: auto; padding: 0 15px; border: 1px solid #6885a4; border-radius: 7px; background: #263451; color: #f0efff; }
.nav-search > span { font-size: 25px; line-height: 1; }

.appeals-nav { background: #101f33; border-bottom: 1px solid #334a62; }
.appeals-nav-links { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
.appeals-nav a {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 44px; padding: 7px 16px; box-sizing: border-box;
  border: 1px solid #4d8c94; border-radius: 6px; background: #193440; color: #efffff;
  font-size: 15px; font-weight: 700; line-height: 1.25; text-decoration: none;
}
.appeals-nav a::after {
  content: ''; width: 7px; height: 7px; flex: none;
  border-top: 2px solid #91e5dd; border-right: 2px solid #91e5dd; transform: rotate(45deg);
}
.appeals-nav a:hover { background: #244b56; }
.appeals-nav a:focus-visible { outline: 3px solid #a7efe8; outline-offset: 2px; }
@media (max-width: 600px) {
  .appeals-nav .appeals-nav-links { width: calc(100% - 24px); }
  .appeals-nav a {
    flex: 1 1 128px; justify-content: center; padding-inline: 4px;
    text-align: center; font-size: clamp(14px, 3.8vw, 15px);
  }
  .appeals-nav a::after { display: none; }
}
.nav-dropdown { position: relative; }
.nav-dropdown > summary { cursor: pointer; list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary > span { color: #9ce9e1; }
.nav-dropdown[open] > summary { color: #9ce9e1; }
.nav-panel { position: absolute; top: calc(100% + 7px); left: -16px; width: 290px; max-width: calc(100vw - 32px); padding: 10px; border: 1px solid #53718e; border-radius: 9px; background: #122039; box-shadow: 0 18px 38px #02061380; }
.nav-info .nav-panel { right: 0; left: auto; }
.nav .nav-panel a { display: block; min-height: 44px; padding: 11px 12px; border-radius: 5px; font-size: 15px; line-height: 1.5; white-space: normal; }
.nav .nav-panel a:hover, .nav .nav-panel a:focus-visible { background: #263b57; color: #fff; }
.nav a[aria-current]::after { bottom: 0; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 46px; padding: 8px 13px; background: #20334d; color: #f4f8ff; border: 1px solid #6885a4; border-radius: 7px; font: 700 16px/1.5 Arial, sans-serif; }
.nav-toggle > span { font-size: 21px; }
.nav :focus-visible { outline: 3px solid #a5f4ec; outline-offset: 4px; }
.anchor-target { display: block; scroll-margin-top: 88px; }
.programme-section .section-heading { margin-bottom: 18px; }
.programme-shortcut { min-width: 0; padding: 24px 27px; border: 1px solid #4f6586; border-left: 4px solid #6de0df; border-radius: 9px; background: #14233b; }
.programme-shortcut.notizie-incredibili { border-left-color: #ffc987; }
.programme-shortcut h3 { margin: 9px 0 12px; font: 700 30px/1.2 var(--serif); }
.programme-shortcut p { max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.programme-shortcut .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.home-feed-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 25px; margin-top: 24px; }
.home-feed-actions .button { cursor: pointer; min-height: 46px; font-size: 15px; }
.home-feed-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.news-card .meta, .latest-four .meta, .lead .meta, .article-meta, .result-count { color: #c3d2e5; font-size: 13px; line-height: 1.7; }
.news-card .eyebrow, .section-heading .eyebrow, .programme-heading .eyebrow, .eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: 1.2px; }
.card-watch, .compact-playlist, .playlist-link, .latest-four .card-watch, .latest-four .playlist-link, .case-fixed > .playlist-link { font-size: 14px; line-height: 1.5; min-height: 44px; }
.news-card p, .latest-four p { color: #c7d4e5; font-size: 15px; line-height: 1.75; }

.article-heading > h1,
.article-video h2,
.news-card h3,
.breaking-copy > h2,
.lead-copy > h1,
.archive-detail .archive-heading > h1,
.archive-entry h2,
.incredible-card h3,
.update-panel h2,
.video-card h3,
.article-body > h1,
.tg-story > h3 {
  text-align: left;
  text-align-last: auto;
}

.article-summary > p,
.article-body > p,
.tg-story > p,
.archive-detail .archive-summary,
.archive-entry-copy > p:not([class]),
.incredible-card-copy > p,
.news-card .card-content > p,
.breaking-copy > p,
.lead-copy > p,
.case-fixed .case-desc,
.update-panel > p,
.dossier-media > div > p {
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
.archive-detail .archive-summary { max-inline-size: 70ch; }
.archive-detail .archive-summary + .archive-summary { margin-block-start: 1em; }

.skip { background: #142940; color: #f3f7ff; }
.skip:focus-visible { outline: 2px solid #93e6e1; }

.article-video {
  color-scheme: dark;
  background: #142940;
  color: #f3f7ff;
  border: 1px solid #5b7692;
  border-inline-start: 3px solid #85dcd6;
  border-radius: 10px;
}
.article-video h2 { color: #f3f7ff; }
.article-video .eyebrow { color: #93e6e1; }
.article-video p { color: #cbdced; font-size: 15px; }
.article-video .video-symbol { color: #0b2531; background: #85dcd6; }
.article-video .playlist-link { color: #bbebff; font-size: 15px; overflow-wrap: break-word; }
.article-video .playlist-link:hover { color: #fff; }
.article-video .youtube-button {
  color: #f5fbff;
  background: linear-gradient(110deg, #285370, #433d6c);
  border-color: #92bfce;
  font-size: 14px;
}
.article-video .youtube-button:hover { background: linear-gradient(110deg, #305f79, #51457a); }
.article-video button.community-share-link { color: #b0e5f4; min-width: 44px; min-height: 44px; }
.article-video :is(a, button):focus-visible { outline: 2px solid #93e6e1; outline-offset: 3px; }

@media (max-width: 600px) {
  .article-video {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: center;
    gap: 0 10px;
  }
  .article-video > .video-symbol { grid-area: 1 / 1; }
  .article-video > div { display: contents; }
  .article-video > div > * { grid-column: 1 / -1; }
  .article-video > div > .eyebrow { grid-area: 1 / 2; }
  .article-video > div > :is(a, .community-link-pair) { justify-self: start; }
}
.filters button { min-height: 44px; padding: 10px 15px; font-size: 14px; }
.search-box input { font-size: 16px; }
.brief-cover figcaption, .article-figure figcaption, .profile-photo figcaption, .dossier-photo figcaption, .breaking-figure figcaption { color: #c6d7e9; font-size: 12px; line-height: 1.65; }
.breaking-meta, .breaking-check, .breaking-tg, .breaking-source { font-size: 13px; line-height: 1.6; }
.breaking-source { display: inline-flex; align-items: center; min-height: 40px; }
.breaking-meta, .breaking-check { color: #c2d9e6; }
.research-item span { font-size: 12px; }
.research-item b { font-size: 14px; }
.ticker-track a { font-size: 13px; }
.ticker > strong, .research-ticker > strong { font-size: 10px; }
.ticker { scroll-margin-top: 85px; }
@media (max-width: 1100px) {
  .nav .nav-inner { gap: 15px; }
  .nav-links { gap: 16px; }
  .nav .nav-links > a, .nav-dropdown > summary, .nav .nav-search { font-size: 14px; }
}
@media (max-width: 900px) {
  .nav .nav-inner { display: flex; flex-wrap: wrap; min-height: 64px; padding: 9px 20px; gap: 10px; }
  .nav[data-enhanced] .nav-toggle { display: inline-flex; }
  .nav .nav-search { min-height: 46px; font-size: 16px; order: 1; }
  .nav-links { width: 100%; flex-basis: 100%; order: 2; display: grid; gap: 0; padding-block: 8px; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .nav[data-enhanced]:not([data-expanded="true"]) .nav-links { display: none; }
  .nav .nav-links > a, .nav-dropdown > summary { font-size: 16px; min-height: 46px; padding: 10px 8px; }
  .nav-dropdown > summary { justify-content: space-between; }
  .nav .nav-panel { position: static; width: 100%; max-width: none; padding: 5px 8px 10px; border: 0; border-left: 2px solid #6f91b0; border-radius: 0; box-shadow: none; background: #14223a; }
  .nav .nav-panel a { font-size: 15px; }
  .nav .nav-links > a[aria-current]::after { width: 4px; height: 26px; left: 0; top: 10px; }
}
@media (max-width: 760px) {
  .programme-shortcut { padding: 21px; }
  .programme-shortcut h3 { font-size: 28px; }
  .programmes-grid { gap: 16px; }
  .latest-four .meta, .news-card .meta { font-size: 13px; }
  .news-card .eyebrow, .section-heading .eyebrow { font-size: 11px; }
  .brief-cover figcaption, .article-figure figcaption, .profile-photo figcaption, .dossier-photo figcaption, .breaking-figure figcaption { font-size: 13px; }
  .breaking-meta, .breaking-check, .breaking-tg, .breaking-source { font-size: 13px; }
  .breaking-bottom { gap: 9px 16px; }
  .home-feed-actions { align-items: stretch; flex-direction: column; }
  .home-feed-actions .button { justify-content: center; }
  .nav .nav-inner { padding-inline: 16px; }
}
.dossier-media {
  display: grid;
  grid-template-columns: clamp(88px, 16vw, 136px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 3vw, 28px);
}
.dossier-live { grid-template-columns: clamp(160px, 27vw, 280px) minmax(0, 1fr); }
.dossier-media img { display: block; width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 520px) {
  .dossier-media { display: block; }
  .dossier-live > a { display: block; margin-bottom: 12px; }
  .dossier-short > a { float: right; width: 84px; margin: 0 0 12px 14px; }
  .dossier-media .content-links { clear: both; }
}

/* Give the credit the width of the story while keeping it attached to the photograph. */
.breaking-body {
  grid-template-areas: "meta image" "title image" "summary image" "credit credit";
  row-gap: 0;
}
.breaking-body > .breaking-copy,
.breaking-body > .breaking-figure { display: contents; }
.breaking-copy > .breaking-meta { grid-area: meta; }
.breaking-copy > h2 { grid-area: title; }
.breaking-copy > p { grid-area: summary; }
.breaking-figure > .breaking-image {
  grid-area: image;
  justify-self: end;
  align-self: end;
}
.breaking-body .breaking-figure > figcaption {
  grid-area: credit;
  min-width: 0;
  margin: 4px 0 10px;
  text-align: end;
}
@media (max-width: 760px) {
  .breaking-body { grid-template-areas: "meta meta" "title image" "credit credit" "summary summary"; }
  .breaking-copy > h2 { align-self: center; margin-block: 8px; }
  .breaking-body .breaking-figure > figcaption { margin-block: 2px 6px; }
}

@media (max-width: 520px) {
  .breaking-body { grid-template-areas: "meta image" "credit credit" "title title" "summary summary"; }
  .breaking-copy > .breaking-meta { align-self: center; }
  .news-card.small { row-gap: 0; }
  .news-card.small > .card-image { grid-area: 1 / 1; }
  .news-card.small > .card-content { display: contents; }
  .news-card.small > .card-content > * { grid-column: 1 / -1; }
  .news-card.small > .card-content > .eyebrow { grid-area: 1 / 2; align-self: center; }
}

/* Credits and licences share a text column beside archive thumbnails when there is room. */
@media (max-width: 560px) {
  .archive-entry figure {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 4px 12px;
    align-content: start;
  }
  .archive-entry figure > img { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .archive-entry figure > figcaption { grid-column: 2; min-width: 0; }
}
@media (max-width: 390px) {
  .archive-entry figure { grid-template-columns: minmax(0, 1fr); }
  .archive-entry figure > img, .archive-entry figure > figcaption { grid-column: 1; grid-row: auto; }
}
