/* ===== Column Article Page ===== */

.column-page {
  background: #f8f9fa;
  min-height: 60vh;
}

.column-page article {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

@media (min-width: 768px) {
  .column-page article {
    padding: 3rem 3.5rem;
  }
}

/* Header */
.column-article-header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 1.25rem;
}

.column-page-title {
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a2e;
  font-size: 1.6rem;
}

@media (min-width: 768px) {
  .column-page-title {
    font-size: 1.9rem;
  }
}

/* Body */
.column-article-body {
  line-height: 1.85;
  color: #343a40;
  font-size: 1rem;
}

.column-article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid #0d6efd;
  color: #1a1a2e;
}

.column-article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.column-article-body p {
  margin-bottom: 1.1rem;
}

.column-article-body ul,
.column-article-body ol {
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
}

.column-article-body li {
  margin-bottom: 0.3rem;
}

.column-article-body strong {
  color: #0d6efd;
  font-weight: 700;
}

/* Table */
.column-article-body table {
  width: 100%;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.column-article-body th {
  background: #1a1a2e;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1rem;
  text-align: left;
}

.column-article-body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.column-article-body tr:last-child td {
  border-bottom: none;
}

.column-article-body tr:nth-child(even) td {
  background: #f8f9fa;
}

/* Footer CTA */
.column-article-footer {
  border-top: 1px solid #e9ecef;
}

/* ===== Column List Page ===== */

.column-list-page {
  background: #f8f9fa;
  min-height: 60vh;
}

.column-article-list-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: box-shadow .15s;
}

.column-article-list-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.column-article-list-item h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.column-article-list-item h2 a {
  color: #1a1a2e;
  text-decoration: none;
}

.column-article-list-item h2 a:hover {
  color: #0d6efd;
}

/* ===== Home Teaser Strip ===== */

.home-column-strip {
  background: #f8f9fa;
}

.home-column-heading {
  font-weight: 700;
  color: #1a1a2e;
}

.home-column-item-title a {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 600;
}

.home-column-item-title a:hover {
  color: #0d6efd;
}

/* ===== Dark Mode — Searlo theme ===== */
html.theme-searlo-preview .column-page {
  background: #070d18;
}

html.theme-searlo-preview .column-page article {
  background: rgba(255,255,255,.05);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

html.theme-searlo-preview .column-article-header {
  border-bottom-color: rgba(255,255,255,.15);
}

html.theme-searlo-preview .column-page-title {
  color: #f1f5f9 !important;
}

html.theme-searlo-preview .column-article-body {
  color: #cbd5e1;
}

html.theme-searlo-preview .column-article-body h2 {
  color: #f1f5f9;
  border-left-color: #3b82f6;
}

html.theme-searlo-preview .column-article-body h3 {
  color: #e2e8f0;
}

html.theme-searlo-preview .column-article-body strong {
  color: #93c5fd;
}

html.theme-searlo-preview .column-article-body td {
  border-bottom-color: rgba(255,255,255,.1);
}

html.theme-searlo-preview .column-article-body tr:nth-child(even) td {
  background: rgba(255,255,255,.03);
}

html.theme-searlo-preview .column-article-footer {
  border-top-color: rgba(255,255,255,.15);
}

html.theme-searlo-preview .column-list-page {
  background: #070d18;
}

html.theme-searlo-preview .column-article-list-item {
  background: rgba(255,255,255,.04);
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
}

html.theme-searlo-preview .column-article-list-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

html.theme-searlo-preview .column-article-list-item h2 a {
  color: #f1f5f9;
}

html.theme-searlo-preview .column-article-list-item h2 a:hover {
  color: #93c5fd;
}

html.theme-searlo-preview .home-column-strip {
  background: #070d18;
}

html.theme-searlo-preview .home-column-heading {
  color: #f1f5f9;
}

html.theme-searlo-preview .home-column-item-title a {
  color: #cbd5e1;
}

html.theme-searlo-preview .home-column-item-title a:hover {
  color: #93c5fd;
}

/* ===== Dark Mode — system preference fallback ===== */
@media (prefers-color-scheme: dark) {
  .column-page {
    background: #111318;
  }

  .column-page article {
    background: #1e2029;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
  }

  .column-article-header {
    border-bottom-color: #2e3140;
  }

  .column-page-title {
    color: #e8eaf0;
  }

  .column-article-body {
    color: #cdd1db;
  }

  .column-article-body h2 {
    color: #e8eaf0;
    border-left-color: #4d9fff;
  }

  .column-article-body h3 {
    color: #d0d4de;
  }

  .column-article-body strong {
    color: #6fb3ff;
  }

  /* Table */
  .column-article-body table {
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
  }

  .column-article-body th {
    background: #0d6efd;
    color: #fff;
  }

  .column-article-body td {
    border-bottom-color: #2e3140;
  }

  .column-article-body tr:nth-child(even) td {
    background: #252833;
  }

  .column-article-footer {
    border-top-color: #2e3140;
  }

  /* List page */
  .column-list-page {
    background: #111318;
  }

  .column-article-list-item {
    background: #1e2029;
    box-shadow: 0 1px 6px rgba(0,0,0,.3);
  }

  .column-article-list-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
  }

  .column-article-list-item h2 a {
    color: #e8eaf0;
  }

  .column-article-list-item h2 a:hover {
    color: #6fb3ff;
  }

  /* Home teaser */
  .home-column-strip {
    background: #151720;
  }

  .home-column-heading {
    color: #e8eaf0;
  }

  .home-column-item-title a {
    color: #cdd1db;
  }

  .home-column-item-title a:hover {
    color: #6fb3ff;
  }
}
