
  :root {
    --bg: #f4f5f7;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-soft: #e0edff;
    --border-soft: #e5e7eb;
    --radius: 14px;
  }

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

  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px 16px 40px;
  }

  .page {
    width: 100%;
    max-width: 880px;
    position: relative;
  }

  header {
    margin-bottom: 20px;
  }

  .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .badge {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
  }

  h1 {
    font-size: clamp(28px, 4vw, 32px);
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.5;
  }

  main {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
    gap: 16px;
  }

  @media (max-width: 780px) {
    main {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  }

  .card + .card {
    margin-top: 12px;
  }

  .card-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .card-title span {
    color: var(--accent);
  }

  .card h2 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
  }

  p + p {
    margin-top: 6px;
  }

  ul {
    list-style: disc;
    margin-left: 18px;
    margin-top: 4px;
  }

  li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 3px;
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: var(--text-muted);
    background: #f9fafb;
  }

  .section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  .timeline-item {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
  }

  .timeline-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
  }

  .timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .timeline-desc {
    font-size: 13px;
    color: var(--text-main);
  }

  .link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    text-decoration: none;
    color: var(--text-main);
    background: #f9fafb;
    transition: background 0.15s ease-out, border-color 0.15s ease-out,
      transform 0.15s ease-out, box-shadow 0.15s ease-out;
  }

  .btn-link span.icon {
    font-size: 14px;
  }

  .btn-link.primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
  }

  .btn-link:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .btn-link.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
  }

  footer {
    margin-top: 18px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  footer code {
    font-size: 11px;
    background: #e5e7eb;
    padding: 1px 4px;
    border-radius: 4px;
  }

  @media (max-width: 480px) {
    footer {
      flex-direction: column;
    }
  }

/* Visitor Badge Styling */
.visitor-badge {
    position: absolute;
    top: 0;
    right: 0;
    
    /* Container Style */
    background-color: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 6px 12px;
    border-radius: 12px; /* Slightly less round to look good with square text */
    
    /* Layout: Icon on left, Text column on right */
    display: flex;
    align-items: center;
    gap: 10px;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    z-index: 10;
}

/* The container for the two lines of text */
.badge-text {
    display: flex;
    flex-direction: column; /* Stacks Today/Total vertically */
    line-height: 1.2;       /* Tighter spacing */
}

/* Each individual line */
.badge-line {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap; /* Prevents wrapping */
}

/* The numbers themselves */
.badge-line span {
    color: var(--text-main);
    font-weight: 700;
    margin-left: 4px;
}

/* Mobile Tweak: Scale it down slightly if needed */
@media (max-width: 600px) {
    .visitor-badge {
        padding: 5px 10px;
        gap: 8px;
    }
    .badge-line {
        font-size: 10px;
    }
}
