/**
 * Components CSS
 * All component styles compiled together
 */


#block-modern-minimal-atomic-page-title {
  max-width: var(--block-container-contain);
  padding: 0 var(--container-padding);
  margin-inline-start: auto;
  margin-inline-end: auto;
}

.block--bundle--image img {
    width: 100%;
    height: auto;
}

/* Alignemnt on Text Block */
.vertical-align-center {
  align-items: center;
}

/**
 * Table Styles
 */

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Base table */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: var(--text-sm);
  font-family: var(--font-base);
  color: var(--color-text);
  text-align: left;
}

/* Table header */
thead {
  background: var(--color-primary);
  color: white;
}

thead th {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Table body */
tbody tr {
  border-bottom: 1px solid #e2e8f0;
  }

/* Zebra striping */
tbody tr:nth-child(even) {
  background: #f8fafc;
}

tbody td {
  padding: var(--space-4) var(--space-6);
  vertical-align: middle;
  color: var(--color-text);
  line-height: 1.5;
  text-align: left;
}

/* Table footer */
tfoot tr {
  background: #f8fafc;
  border-top: 2px solid var(--color-primary);
}

tfoot td {
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}

/* Table caption */
caption {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-align: left;
  caption-side: bottom;
}

/* Links inside tables */
table a {
  color: var(--color-primary);
  font-weight: 500;
}

table a:hover {
  color: var(--color-primary-dark);
}


/**
 * Comment Styles
 */

/* Comment list */
.js-comment {
  background: white;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

/* Comment header */
.js-comment footer {
  margin-bottom: var(--space-3);
}

.js-comment footer p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin: 0;
}

.js-comment footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.js-comment footer a:hover {
  text-decoration: underline;
}

/* Hide permalink */
.js-comment footer a[href*="#comment"] {
  display: none;
}

/* Comment title */
.js-comment h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.js-comment h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.js-comment h3 a:hover {
  color: var(--color-primary);
}

.js-comment h3 a::before,
.js-comment h3 a::after {
  display: none !important;
}

/* Comment body */
.js-comment p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 var(--space-3);
}

/* Comment actions - delete/edit/reply */
.js-comment .links {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  gap: var(--space-3);
  border-top: 1px solid #e2e8f0;
  padding-top: var(--space-3);
}

.js-comment .links li a {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.js-comment .links li a:hover {
  color: var(--color-primary-dark);
}

.js-comment .links li a::before,
.js-comment .links li a::after {
  display: none !important;
}

/* Add new comment section */
#comment-form {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: var(--space-6);
}

h2:has(+ #comment-form),
h2:has(+ form.comment-form) {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: var(--space-8) 0 var(--space-4);
  color: var(--color-text);
}

/* Comment section wrapper */
section .js-comment ~ h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: var(--space-8) 0 var(--space-4);
}
/* Add new comment button */
.links.inline a[href*="#comment-form"] {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: white !important;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: var(--space-4);
}

.links.inline {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
}

.links.inline a[href*="#comment-form"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.links.inline a[href*="#comment-form"]::before,
.links.inline a[href*="#comment-form"]::after {
  display: none !important;
}


/* Responsive - scroll horizontally on mobile instead of stacking */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
  }

  table {
    min-width: 500px; /* Forces horizontal scroll rather than breaking layout */
  }

  thead th,
  tbody td,
  tfoot td {
    padding: var(--space-3) var(--space-4);
    white-space: nowrap;
  }
}

/* Print styles */
@media print {
  table {
    border-collapse: collapse;
  }

  thead {
    background: #e2e8f0;
    color: black;
  }

  tbody tr {
    page-break-inside: avoid;
  }
}