/* ============================================
   News Site Style — CSS Variables & Reset
   ============================================ */
:root {
  --bbc-black: #0c1f17;
  --bbc-red: #2d6a4f;
  --bbc-dark-red: #1b4332;
  --theme-gold: #d4a017;
  --theme-gold-dark: #b8860b;
  --bbc-white: #ffffff;
  --bbc-grey-100: #f6f6f6;
  --bbc-grey-200: #e6e6e6;
  --bbc-grey-300: #bdbdbd;
  --bbc-grey-400: #8a8a8a;
  --bbc-grey-500: #545658;
  --bbc-text: #1a1a1a;
  --bbc-text-light: #505050;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1280px;
  --sidebar-width: 300px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bbc-text);
  background: var(--bbc-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--bbc-red);
  color: var(--bbc-white);
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
  background: var(--bbc-black);
  color: var(--bbc-white);
  font-size: 13px;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar__links a {
  color: var(--bbc-white);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.top-bar__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-bar__divider {
  opacity: 0.4;
}

.search-toggle {
  color: var(--bbc-white);
  padding: 4px;
  display: flex;
  align-items: center;
}

.search-toggle:hover {
  opacity: 0.8;
}

/* ============================================
   Search Overlay
   ============================================ */
.search-overlay {
  background: var(--bbc-black);
  padding: 16px 0;
  border-bottom: 3px solid var(--bbc-red);
}

.search-overlay[hidden] {
  display: none;
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: none;
  border-radius: 0;
  outline: none;
}

.search-form button[type="submit"] {
  background: var(--bbc-red);
  color: var(--bbc-white);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition);
}

.search-form button[type="submit"]:hover {
  background: var(--bbc-dark-red);
}

.search-close {
  color: var(--bbc-white);
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
}

/* ============================================
   Site Header & Logo
   ============================================ */
.site-header {
  background: var(--bbc-black);
  padding: 12px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.site-logo__brand {
  background: var(--theme-gold);
  color: var(--bbc-black);
  font-weight: 800;
  font-size: 28px;
  padding: 2px 8px;
  letter-spacing: -1px;
}

.site-logo__news {
  color: var(--bbc-white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.site-logo--footer .site-logo__brand {
  font-size: 22px;
}

.site-logo--footer .site-logo__news {
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bbc-white);
  transition: var(--transition);
}

/* ============================================
   Category Navigation
   ============================================ */
.category-nav {
  background: var(--bbc-black);
  border-top: 1px solid #333;
}

.category-nav__list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav__list::-webkit-scrollbar {
  display: none;
}

.category-nav__link {
  display: block;
  color: var(--bbc-white);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.category-nav__link:hover,
.category-nav__link--active {
  border-bottom-color: var(--theme-gold);
  background: rgba(255, 255, 255, 0.05);
}

.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--theme-gold), var(--bbc-red));
}

/* ============================================
   Breaking News Banner
   ============================================ */
.breaking-banner {
  background: var(--bbc-red);
  color: var(--bbc-white);
}

.breaking-banner[hidden] {
  display: none;
}

.breaking-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.breaking-banner__label {
  background: var(--theme-gold);
  color: var(--bbc-black);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.breaking-banner__text {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.breaking-banner__text:hover {
  text-decoration: underline;
}

.breaking-banner__close {
  color: var(--bbc-white);
  font-size: 22px;
  line-height: 1;
  opacity: 0.8;
  flex-shrink: 0;
}

.breaking-banner__close:hover {
  opacity: 1;
}

/* ============================================
   Page Layout
   ============================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 32px;
  padding: 24px 0 48px;
}

.page-layout--full {
  grid-template-columns: 1fr;
}

.page-layout__main {
  min-width: 0;
}

/* ============================================
   Headline Slideshow
   ============================================ */
.headline-slideshow {
  position: relative;
  margin: 24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bbc-black);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --slideshow-height: 500px;
}

.headline-slideshow__track {
  position: relative;
  height: var(--slideshow-height);
}

.headline-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.headline-slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.headline-slide__link {
  display: block;
  position: relative;
  height: 100%;
  color: var(--bbc-white);
  cursor: pointer;
  text-decoration: none;
}

.headline-slide__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a3d2e;
}

.headline-slide__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.headline-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12, 31, 23, 0.92) 0%,
    rgba(12, 31, 23, 0.45) 40%,
    rgba(12, 31, 23, 0.1) 70%,
    transparent 100%
  );
}

.headline-slide__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 28px 72px;
  z-index: 2;
}

.headline-slide__tag {
  display: inline-block;
  background: var(--theme-gold);
  color: var(--bbc-black);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  margin-bottom: 12px;
}

.headline-slide__title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  max-width: 800px;
}

.headline-slide__link:hover .headline-slide__title {
  text-decoration: underline;
}

.headline-slide__summary {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.headline-slide__cta {
  display: inline-block;
  background: var(--bbc-red);
  color: var(--bbc-white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.headline-slide__link:hover .headline-slide__cta {
  background: var(--theme-gold);
  color: var(--bbc-black);
  transform: translateX(4px);
}

.headline-slideshow__btn {
  position: absolute;
  top: 20px;
  transform: none;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bbc-black);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.headline-slideshow__btn:hover {
  background: var(--theme-gold);
}

.headline-slideshow__btn--prev {
  left: 16px;
}

.headline-slideshow__btn--next {
  right: 16px;
}

.headline-slideshow__dots {
  display: flex;
  gap: 8px;
}

.headline-slideshow__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.headline-slideshow__footer button {
  pointer-events: auto;
}

.headline-slideshow__progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.headline-slideshow__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--theme-gold);
  border-radius: 999px;
}

.headline-slideshow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bbc-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.headline-slideshow__dot--active,
.headline-slideshow__dot:hover {
  background: var(--theme-gold);
  border-color: var(--theme-gold);
}

@media (max-width: 768px) {
  .headline-slideshow {
    --slideshow-height: 400px;
  }

  .headline-slide__content {
    padding: 24px 20px 56px;
  }

  .headline-slideshow__footer {
    padding: 0 16px 12px;
  }

  .headline-slideshow__btn {
    top: 12px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .headline-slideshow__btn--prev {
    left: 12px;
  }

  .headline-slideshow__btn--next {
    right: 12px;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  margin-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.hero-main__link {
  display: block;
  color: inherit;
}

.hero-main__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 12px;
}

.hero-main__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main__link:hover .hero-main__image {
  transform: scale(1.03);
}

.hero-main__category {
  color: var(--theme-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-main__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin: 6px 0 10px;
}

.hero-main__link:hover .hero-main__title {
  text-decoration: underline;
}

.hero-main__summary {
  color: var(--bbc-text-light);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.hero-main time {
  font-size: 13px;
  color: var(--bbc-grey-400);
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-secondary__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  color: inherit;
  align-items: start;
}

.hero-secondary__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-secondary__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-secondary__link:hover img {
  transform: scale(1.05);
}

.hero-secondary__category {
  color: var(--theme-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-secondary__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 4px;
}

.hero-secondary__link:hover .hero-secondary__title {
  text-decoration: underline;
}

/* ============================================
   Section Headings
   ============================================ */
.section-heading {
  font-size: 22px;
  font-weight: 800;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--theme-gold);
}

.category-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bbc-grey-200);
}

.category-header__title {
  font-size: 32px;
  font-weight: 800;
}

.category-header__desc {
  color: var(--bbc-text-light);
  margin-top: 6px;
  font-size: 15px;
}

/* ============================================
   News Grid & Article Cards
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}

.news-grid--category {
  grid-template-columns: repeat(2, 1fr);
}

.news-grid--related {
  grid-template-columns: repeat(2, 1fr);
}

.article-card__link {
  display: block;
  color: inherit;
}

.article-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 10px;
}

.article-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card__link:hover .article-card__image {
  transform: scale(1.05);
}

.article-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
}

.article-card__badge--breaking {
  background: var(--theme-gold);
  color: var(--bbc-black);
}

.article-card__category {
  color: var(--theme-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 6px;
}

.article-card__link:hover .article-card__title {
  text-decoration: underline;
}

.article-card__summary {
  color: var(--bbc-text-light);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__time {
  font-size: 12px;
  color: var(--bbc-grey-400);
}

/* Featured card in category page */
.article-card--featured {
  grid-column: 1 / -1;
}

.article-card--featured .article-card__link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.article-card--featured .article-card__title {
  font-size: 28px;
}

.article-card--featured .article-card__summary {
  font-size: 16px;
  -webkit-line-clamp: unset;
}

/* ============================================
   Sidebar — Most Read
   ============================================ */
.sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}

.sidebar__heading {
  font-size: 18px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--theme-gold);
}

.most-read__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bbc-grey-200);
}

.most-read__rank {
  font-size: 36px;
  font-weight: 800;
  color: var(--theme-gold);
  line-height: 1;
  min-width: 32px;
}

.most-read__link {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.most-read__link:hover {
  text-decoration: underline;
}

/* ============================================
   Article Page
   ============================================ */
.breadcrumb {
  font-size: 13px;
  color: var(--bbc-grey-400);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--theme-gold);
  text-decoration: underline;
}

.article-header {
  margin-bottom: 24px;
}

.article-header__category {
  color: var(--theme-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-header__category:hover {
  text-decoration: underline;
}

.article-header__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 8px 0 12px;
}

.article-header__summary {
  font-size: 18px;
  color: var(--bbc-text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--bbc-grey-400);
  padding-top: 12px;
  border-top: 1px solid var(--bbc-grey-200);
}

.article-header__author {
  font-weight: 600;
  color: var(--bbc-text);
}

.article-figure {
  margin-bottom: 28px;
}

.article-figure__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure__caption {
  font-size: 13px;
  color: var(--bbc-grey-400);
  margin-top: 8px;
  line-height: 1.4;
}

.article-body {
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px solid var(--bbc-grey-200);
  border-bottom: 1px solid var(--bbc-grey-200);
  font-size: 14px;
  font-weight: 600;
}

.share-btn {
  background: var(--bbc-grey-100);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--bbc-grey-200);
  transition: background var(--transition);
}

.share-btn:hover {
  background: var(--bbc-grey-200);
}

.related-section {
  margin-top: 40px;
}

/* ============================================
   Search Page
   ============================================ */
.search-page-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.search-page-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--bbc-grey-200);
  outline: none;
  transition: border-color var(--transition);
}

.search-page-form input[type="search"]:focus {
  border-color: var(--bbc-red);
}

.search-page-form button {
  background: var(--bbc-red);
  color: var(--bbc-white);
  padding: 12px 24px;
  font-weight: 600;
  transition: background var(--transition);
}

.search-page-form button:hover {
  background: var(--bbc-dark-red);
}

.search-results-count {
  margin-bottom: 20px;
  color: var(--bbc-text-light);
}

.empty-state {
  color: var(--bbc-text-light);
  font-size: 16px;
  padding: 32px 0;
}

/* ============================================
   Error Page
   ============================================ */
.error-page {
  text-align: center;
  padding: 80px 0;
}

.error-page h1 {
  font-size: 80px;
  font-weight: 800;
  color: var(--theme-gold);
}

.error-page p {
  font-size: 18px;
  color: var(--bbc-text-light);
  margin: 16px 0 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--bbc-red);
  color: var(--bbc-white);
  padding: 12px 32px;
  font-weight: 600;
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--bbc-dark-red);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bbc-black);
  color: var(--bbc-white);
  padding: 40px 0 24px;
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer__tagline {
  color: var(--bbc-grey-300);
  font-size: 14px;
  margin-top: 12px;
}

.site-footer__links h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--bbc-grey-300);
}

.site-footer__links li {
  margin-bottom: 8px;
}

.site-footer__links a {
  font-size: 14px;
  color: var(--bbc-white);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.site-footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer__bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
}

.site-footer__bottom p {
  font-size: 13px;
  color: var(--bbc-grey-400);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-secondary__link {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar__links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .category-nav {
    display: none;
  }

  .category-nav.is-open {
    display: block;
  }

  .news-grid,
  .news-grid--category,
  .news-grid--related {
    grid-template-columns: 1fr;
  }

  .article-card--featured .article-card__link {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-secondary__link {
    grid-template-columns: 100px 1fr;
  }

  .article-header__meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .hero-main__title {
    font-size: 22px;
  }

  .category-header__title {
    font-size: 26px;
  }
}

/* ============================================
   Admin — Visitor Log
   ============================================ */
.visitor-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.visitor-entry {
  border: 1px solid var(--bbc-grey-200);
  background: var(--bbc-grey-100);
}

.visitor-entry__summary {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 2fr;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13px;
  align-items: center;
  list-style: none;
}

.visitor-entry__summary::-webkit-details-marker {
  display: none;
}

.visitor-entry__summary:hover {
  background: var(--bbc-white);
}

.visitor-entry__time {
  font-weight: 600;
}

.visitor-entry__ip {
  color: var(--bbc-red);
  font-weight: 600;
}

.visitor-entry__page {
  color: var(--bbc-text-light);
}

.visitor-entry__browser {
  color: var(--bbc-grey-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visitor-entry__body {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visitor-entry__section h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--bbc-red);
}

.visitor-entry__section pre {
  background: var(--bbc-white);
  border: 1px solid var(--bbc-grey-200);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
  max-height: 400px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-note {
  font-size: 14px;
  color: var(--bbc-text-light);
  margin-bottom: 48px;
}

.admin-note a {
  color: var(--bbc-red);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .visitor-entry__summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .visitor-entry__body {
    grid-template-columns: 1fr;
  }
}
