@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://www.entireweb.com/include/fonts/lexend-v26-latin_latin-ext_vietnamese-regular.woff2') format('woff2');
}

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

:root {
  --font-body: 'Lexend', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --c-bg: #f9fafb;
  --c-surface: #ffffff;
  --c-border: #e5e7eb;
  --c-border-light: #f3f4f6;
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-subtle: #9ca3af;
  --c-accent: #2563eb;
  --c-accent-light: #eff6ff;
  --sidebar-w: 300px;
  --gap: 24px;
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
	padding-top:64px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Leaderboard: full-width banner above content */
.ad-leaderboard {
  width: 100%;
  min-height: 90px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 0 var(--gap);
}

/* Sidebar sticky unit: 300×600 / 300×250 */
.ad-sidebar-unit {
  width: 100%;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-sidebar-unit + .ad-sidebar-unit { margin-top: 20px; }

/* In-content rectangle: between sections */
.ad-in-content {
  width: 100%;
  min-height: 250px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

/* Ad label */
.ad-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: #f9fafb;
  border-bottom: 1px solid var(--c-border);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-subtle);
  font-family: var(--font-mono);
}
.ad-label-bar a { color: var(--c-subtle); text-decoration: none; }
.ad-label-bar a:hover { color: var(--c-muted); text-decoration: underline; }

/* =============================================
   LAYOUT: two-column with sticky sidebar
============================================= */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  grid-template-rows: auto;
  gap: var(--gap);
  align-items: start;
}

.main-col { min-width: 0; }

.sidebar-col {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-col { position: static; display: none; }
  .sidebar-col.show-mobile { display: flex; }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -.01em;
}
.card-body { padding: 20px; }
.card-body-sm { padding: 16px; }

.status-hero {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
}

.status-hero__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.site-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: #f9fafb;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.site-logo img { width: 32px; height: 32px; object-fit: contain; }

.status-hero__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.status-hero__sub   { font-size: 13px; color: var(--c-muted); margin-top: 2px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
  letter-spacing: .01em;
  font-family: var(--font-mono);
}
.status-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Status banner strip */
.status-strip {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* Action row */
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; font-family: var(--font-body);
  padding: 8px 14px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  text-decoration: none;
}
.btn-primary   { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-warning   { background: #f59e0b; color: #fff; border-color: #d97706; }
.btn-warning:hover { background: #d97706; }
.btn-ghost     { background: transparent; color: var(--c-muted); border-color: var(--c-border); }
.btn-ghost:hover { background: #f3f4f6; color: var(--c-text); }
.btn-sm        { padding: 6px 10px; font-size: 13px; }
.btn-icon      { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: var(--gap);
}
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-tile__label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: 6px; font-family: var(--font-mono); }
.stat-tile__value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-tile__sub   { font-size: 11px; color: var(--c-subtle); margin-top: 4px; }

.section-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  margin-bottom: 14px;
  color: var(--c-text);
}
.section-heading .icon-badge {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--c-accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  flex-shrink: 0;
}
.section-heading .map-link {
  margin-left: auto;
  font-size: 14px; font-weight: 500;
  color: var(--c-accent); text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.section-heading .map-link:hover { text-decoration: underline; }

.chart-card { margin-bottom: var(--gap); }
.chart-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--c-muted);
  padding: 10px 16px 14px;
}
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.country-tile {
  background: #f9fafb;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.country-tile__flag { font-size: 22px; line-height: 1; flex-shrink: 0; }
.country-tile__info { flex: 1; min-width: 0; }
.country-tile__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-tile__count { font-size: 13px; color: var(--c-muted); font-family: var(--font-mono); }
.country-tile__bar-wrap { height: 3px; background: #e5e7eb; border-radius: 2px; margin-top: 6px; }
.country-tile__bar { height: 3px; border-radius: 2px; background: var(--c-accent); }

.incident-list { display: flex; flex-direction: column; gap: 14px; }
.incident-item {
  background: #fafafa;
  border: 1px solid var(--c-border);
  border-left: 3px solid #ef4444;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
}
.incident-item__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.incident-item__id { font-size: 14px; font-weight: 600; color: var(--c-text); font-family: var(--font-mono); }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-orange { background: #ffedd5; color: #ea580c; }
.incident-item__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--c-muted); margin-bottom: 8px; }
.incident-item__desc { font-size: 14px; color: var(--c-muted); line-height: 1.6; }

.subscribe-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
}
.subscribe-card h2 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.subscribe-card p  { font-size: 14px; color: var(--c-muted); margin-bottom: 14px; }
.email-row { display: flex; gap: 8px; }
.email-row input {
  flex: 1; height: 38px; padding: 0 12px;
  border: 1px solid var(--c-border); border-radius: 8px;
  font-size: 14px; font-family: var(--font-body);
  outline: none; background: #fff;
  transition: border-color .15s;
}
.email-row input:focus { border-color: var(--c-accent); }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; padding: 6px 12px;
  border: 1px solid var(--c-border); border-radius: 7px;
  background: #fff; color: var(--c-text);
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.share-btn:hover { border-color: #9ca3af; background: #f9fafb; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.related-tile {
  background: #f9fafb;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  transition: all .15s;
}
.related-tile:hover { border-color: var(--c-accent); background: #eff6ff; }
.related-tile__favicon { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--c-border); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
.related-tile__favicon img { width: 20px; height: 20px; object-fit: contain; }
.related-tile__name { font-size: 14px; font-weight: 600; }
.related-tile__sub  { font-size: 13px; color: var(--c-muted); }

.sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.sidebar-widget__header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border-light);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-muted);
}
.sidebar-widget__body { padding: 14px; }

.mini-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--c-border-light); }
.mini-stat-row:last-child { border-bottom: none; }
.mini-stat-row__label { font-size: 13px; color: var(--c-muted); }
.mini-stat-row__val   { font-size: 13px; font-weight: 700; }

.monitoring-strip {
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: var(--gap);
}
@media (max-width: 640px) { .monitoring-strip { grid-template-columns: 1fr; } }
.monitoring-item { display: flex; gap: 10px; align-items: flex-start; }
.monitoring-item__icon { color: var(--c-accent); margin-top: 2px; flex-shrink: 0; }
.monitoring-item__title { font-size: 14px; font-weight: 600; }
.monitoring-item__desc  { font-size: 13px; color: var(--c-muted); }

.prose-content { font-size: 14px; line-height: 1.75; color: #374151; }
.prose-content h1 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content h3 { font-size: 1.1rem; font-weight: 600; margin: .75rem 0 .5rem; }
.prose-content p  { margin: .6rem 0; }
.prose-content a { color: #1d93ca; text-decoration: underline; }
.prose-content a:hover { color: #1475a3; }
.prose-content ul { list-style: disc; padding-left: 1.4rem; margin: .6rem 0; }
.prose-content table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: 13px; }
.prose-content table th, .prose-content table td { border: 1px solid var(--c-border); padding: 6px 10px; text-align: left; }
.prose-content table th { background: #f9fafb; font-weight: 600; }
	
.prose-content-faq { font-size: 14px; line-height: 1.75; color: #374151; }
.prose-content-faq h1 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content-faq h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content-faq h3 { font-size: 1.0rem; font-weight: 600; margin: .25rem 0 .25rem; }
.prose-content-faq h4 { font-size: 0.95rem; font-weight: 600; margin: .25rem 0 .25rem; }
.prose-content-faq h5 { font-size: 0.95rem; font-weight: 600; margin: .25rem 0 .25rem; }
.prose-content-faq p  { margin: .6rem 0; }
.prose-content-faq ul { list-style: disc; padding-left: 1.4rem; margin: .6rem 0; }
.prose-content-faq table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: 13px; }
.prose-content-faq table th, .prose-content table td { border: 1px solid var(--c-border); padding: 6px 10px; text-align: left; }
.prose-content-faq table th { background: #f9fafb; font-weight: 600; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--c-muted); padding: 6px 0; flex-wrap: wrap; }
.breadcrumb a { 
    display: inline-flex;
    align-items: center;
    color: var(--c-muted); 
    text-decoration: none; 
	gap: 6px;
}
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb__sep { color: var(--c-border); }

.incident-share-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
}

#reportModal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
  padding: 16px;
}
#reportModal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.modal-box {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
}
.modal-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 20px; }
.modal-actions { display: flex; gap: 8px; padding: 0 20px 20px; }

.topbar-ad {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 8px 16px;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
	
@media (max-width: 640px) {
  .card .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn { justify-content: center; }
  .email-row { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

	@media (max-width: 768px) {

  .status-hero {
    padding: 16px;
  }

  .status-hero__top {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .site-logo {
    width: 42px;
    height: 42px;
  }

  .site-logo img {
    width: 26px;
    height: 26px;
  }

  .status-hero__title {
    font-size: 18px;
  }

  .status-hero__sub {
    font-size: 12px;
  }

  /* Status pill under title istället för längst till höger */
  .status-pill {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .status-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .status-strip > div:first-child {
    width: 100%;
  }

  .action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

  .action-row .btn-warning,
  .action-row .btn-sm {
    justify-content: center;
  }

  .action-row .btn-icon {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .chart-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .chart-card .card-title {
    font-size: 13px;
    line-height: 1.3;
  }

  .chart-card .card-header > a.btn {
    width: 100%;
    justify-content: center;
  }

  .chart-card .card-body-sm {
    padding: 12px;
  }

  /* Legend becomes stacked for readability */
  .chart-legend {
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
  }
}