/* ==========================================================================
   Lottery Sambad Morning — Design System & Stylesheet
   Theme: Financial Information Dashboard & Editorial News Portal
   Colors: Deep Navy (#0f172a), Slate (#475569), Emerald Accent (#059669)
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Color Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #059669;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;

  /* Brand Accents */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-dark: #064e3b;

  --navy-dark: #0f172a;
  --navy-surface: #1e293b;
  --navy-border: #334155;

  /* Status Colors */
  --status-published: #059669;
  --status-published-bg: #ecfdf5;
  --status-published-border: #a7f3d0;

  --status-awaited: #d97706;
  --status-awaited-bg: #fffbeb;
  --status-awaited-border: #fde68a;

  --status-unavailable: #64748b;
  --status-unavailable-bg: #f8fafc;
  --status-unavailable-border: #cbd5e1;

  --danger: #dc2626;

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);

  --max-width: 1140px;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top Announcement Notice */
.top-notice-bar {
  background: var(--navy-dark);
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--navy-border);
}

.top-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy-dark);
}

.brand-link:hover {
  text-decoration: none;
}

.brand-emblem {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--navy-dark), #1e293b);
  border: 1.5px solid var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.brand-text h1,
.brand-text .site-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--navy-dark);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.35rem 0.15rem;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  text-decoration: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.btn-nav-action {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-nav-action:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--navy-dark);
  cursor: pointer;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  padding-bottom: 4rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  border: 1px solid var(--status-published-border);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--navy-dark);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.published {
  background: var(--status-published-bg);
  color: var(--status-published);
  border: 1px solid var(--status-published-border);
}

.status-badge.awaited {
  background: var(--status-awaited-bg);
  color: var(--status-awaited);
  border: 1px solid var(--status-awaited-border);
}

.status-badge.unavailable {
  background: var(--status-unavailable-bg);
  color: var(--status-unavailable);
  border: 1px solid var(--status-unavailable-border);
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Today's Result Card (Section C) */
.today-result-section {
  margin-top: -1rem;
  margin-bottom: 3.5rem;
}

.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.result-card-header {
  background: var(--navy-dark);
  color: #fff;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-card-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-time-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.result-card-body {
  padding: 1.75rem;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.meta-field {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-top: 0.15rem;
}

/* Result Action Buttons */
.result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  border-color: var(--border-color);
  color: var(--navy-dark);
}

.btn-outline:hover {
  background: var(--bg-surface-subtle);
  border-color: #cbd5e1;
  text-decoration: none;
}

.btn-secondary {
  background: #2563eb;
  color: #fff !important;
}

.btn-secondary:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Result Preview Box */
.preview-container {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tool {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy-dark);
}

.btn-tool:hover {
  background: #e2e8f0;
}

.canvas-scroller {
  max-width: 100%;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
}

.preview-canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Fallback & Awaited State Banner */
.awaited-box {
  background: #fff;
  border: 2px dashed var(--status-awaited-border);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.awaited-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: var(--status-awaited-bg);
  color: var(--status-awaited);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.awaited-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.awaited-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Section D — Archive Table */
.archive-section {
  margin-bottom: 4rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.archive-table-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--navy-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.table-date-cell {
  font-weight: 700;
  color: var(--navy-dark);
}

.table-date-cell a {
  color: var(--navy-dark);
}

.table-date-cell a:hover {
  color: var(--primary);
}

/* Section E — Content Guides */
.guide-section {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.step-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.step-number {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section F — About Draw */
.about-draw-section {
  background: linear-gradient(135deg, var(--navy-dark), #1e293b);
  color: #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
}

.about-draw-section h2 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-draw-section p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Section G — FAQ Accordion */
.faq-section {
  margin-bottom: 4rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 1.15rem 1.5rem;
  font-weight: 700;
  font-size: 1.025rem;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-subtle);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* Breadcrumbs */
.breadcrumbs-nav {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.breadcrumbs-separator {
  color: #94a3b8;
}

.breadcrumbs-current {
  color: var(--navy-dark);
  font-weight: 600;
}

/* Informational Page Layout */
.content-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 1.5rem 0 3.5rem;
  box-shadow: var(--shadow-sm);
}

.content-card h1 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.content-card .page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.editorial-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 2rem 0 0.75rem;
}

.editorial-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 1.5rem 0 0.5rem;
}

.editorial-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.editorial-body ul, .editorial-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.editorial-body li {
  margin-bottom: 0.4rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: var(--bg-page);
  color: var(--navy-dark);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-input:focus, .form-textarea:focus {
  background: #fff;
  border-color: var(--border-focus);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: var(--status-published-bg);
  border: 1px solid var(--status-published-border);
  color: var(--primary-dark);
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

/* Modal Zoom */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--navy-dark);
  color: #fff;
}

.modal-body {
  overflow: auto;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background: #334155;
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer (Section H) */
.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--navy-border);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 380px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* Responsive Media Queries */
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   Mobile-First Components & Refined UX Rules
   ========================================================================== */
.hero-date-highlight {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.result-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.meta-strip-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-strip-item .meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.meta-strip-item .meta-val {
  font-weight: 700;
  color: var(--navy-dark);
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-mobile-shortcuts {
  display: none;
  gap: 0.4rem;
}

.btn-header-shortcut {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  color: var(--navy-dark);
  border: 1px solid var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-header-shortcut:hover,
.btn-header-shortcut:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.result-source-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.about-highlight-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.about-highlight-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}

.about-highlight-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.section-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  max-width: 780px;
}

/* Dedicated Mobile Optimizations */
@media (max-width: 768px) {
  .top-notice-bar {
    display: none; /* Hide cluttered top notice on mobile to maximize view */
  }

  .header-mobile-shortcuts {
    display: flex; /* Instant tap buttons in mobile header */
  }

  .hero-section {
    padding: 1.75rem 0 1.25rem;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-date-highlight {
    font-size: 1.15rem;
  }

  .today-result-section {
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .result-card-header {
    padding: 1rem 1.25rem;
  }

  .result-card-header h2 {
    font-size: 1.1rem;
  }

  .result-card-body {
    padding: 1rem;
  }

  .result-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
  }

  .btn-mobile-cta {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .result-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .result-actions .btn-refresh-tool {
    margin-left: 0 !important;
  }

  .preview-toolbar {
    padding: 0.6rem 0.85rem;
  }

  .canvas-scroller {
    max-height: 520px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  /* Transform Archive Table into Touch-Friendly Card View */
  .table-responsive {
    overflow-x: visible;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr.archive-row {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-sm);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #f1f5f9;
  }

  .data-table td:last-child {
    border-bottom: none;
    padding-top: 0.65rem;
    justify-content: flex-end;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .data-table td.table-date-cell {
    font-size: 1rem;
    font-weight: 800;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.35rem;
  }

  .data-table td.table-date-cell a {
    color: var(--navy-dark);
  }

  .btn-mobile-table-cta {
    width: 100%;
    min-height: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .section-title {
    font-size: 1.35rem;
  }
}

