/* === GALAXY TOOLBOX SECTION STYLES === */

.galaxy-section {
  margin: 2.5rem 0;
}

.galaxy-section h2 {
  margin-bottom: 0.75rem;
}

.galaxy-section p.galaxy-intro {
  margin-bottom: 1.25rem;
  color: #c0c4cc;
}

/* Table wrapper for sideways scroll on tiny screens */
.galaxy-table-wrapper {
  overflow-x: auto;
}

/* Base table */
.galaxy-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(5, 8, 12, 0.92);
  color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* Header */
.galaxy-table thead th {
  background: #181d23;
  color: #f5f5f5;
  border-bottom: 2px solid #ff7a1a;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
}

/* Cells */
.galaxy-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  font-size: 14px;
}

/* Zebra rows */
.galaxy-table tbody tr:nth-child(odd) {
  background: #12161c;
}
.galaxy-table tbody tr:nth-child(even) {
  background: #171c23;
}

/* Hover */
.galaxy-table tbody tr:hover {
  background: #222b36;
}

/* Download button image */
.gal-download-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.gal-download-icon {
  display: block;
  width: 110px;          /* adjust if you want smaller/larger */
  height: auto;
}

/* Centre the buttons in their cells */
.galaxy-table td.gal-download-cell {
  text-align: center;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .galaxy-table thead th,
  .galaxy-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .gal-download-icon {
    width: 90px;        /* slightly smaller on mobile */
  }
}

/* === Galaxy table: only the download button is clickable === */

/* Stop the whole row / cells reacting to taps */
.galaxy-table th,
.galaxy-table td {
    pointer-events: none;
}

/* Re-enable clicks on the download buttons only */
.galaxy-table .gal-download-cell,
.galaxy-table .gal-download-link,
.galaxy-table .gal-download-icon {
    pointer-events: auto;
}

/* Remove row hover colour change */
.galaxy-table tbody tr:hover {
    background: inherit !important;
}

/* Make it obvious the button is clickable */
.gal-download-link,
.gal-download-icon {
    cursor: pointer;
}

/* === Galaxy Manuals table: no row highlight on tap/hover === */
.tablepress-id-4 tbody tr:hover,
.tablepress-id-4 tbody tr:active,
.tablepress-id-4 tbody td:active {
    background-color: transparent !important;
}

/* ===== Kings parts table (non-TablePress) ===== */
.kings-parts-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(5, 8, 12, 0.95);
    color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

.kings-parts-table thead th {
    background: #181d23;
    border-bottom: 2px solid #ff7a1a;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
}

/* cells */
.kings-parts-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* zebra rows */
.kings-parts-table tbody tr:nth-child(odd) {
    background: #12161c;
}
.kings-parts-table tbody tr:nth-child(even) {
    background: #171c23;
}

/* subtle hover (no click issues like DataTables) */
.kings-parts-table tbody tr:hover {
    background: #222b36;
}

/* image column */
.kings-parts-table td.col-img {
    text-align: center;
}
.kings-parts-table td.col-img img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 6px;
    object-fit: contain;
}

/* make name / part stand out a bit */
.kings-parts-table td.col-name {
    font-weight: 600;
}
.kings-parts-table td.col-part {
    font-family: monospace;
}

/* mobile tweaks */
@media (max-width: 768px) {
    .kings-parts-table {
        font-size: 13px;
    }
    .kings-parts-table thead th,
    .kings-parts-table td {
        padding: 6px 8px;
    }
    .kings-parts-table td.col-img img {
        max-width: 45px;
        max-height: 45px;
    }
}

.kings-parts-table img.part-img {
    width: 70px;
    height: auto;
    border-radius: 6px;
}

.search .entry-title,
.search .entry-title a {
    color: #ff7a27 !important;  /* Kings orange */
    display: block !important;
    font-size: 24px !important;
    font-weight: 600;
}

.search .entry-summary {
    display: none !important;
}

/* 🔸Hide author + date on SEARCH results (Blocksy) */
.search .entry-meta,
.search .post-meta,
.search .ct-meta,
.search .ct-entry-meta,
.search .ct-post-meta,
.search .ct-post-meta--single,
.search .meta,
.search .entry-footer {
    display: none !important;
}

/* === Reuse battery-style card for tools === */
.entry-content .kings-tool-card {
    background: rgba(5, 8, 12, 0.92);
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Put CLEAR + COPY in a row, like the calculator buttons */
.galaxy-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Background transparency */
.site-footer-bottom {
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(6px);
}

/* Make text slightly transparent too */
.site-footer-bottom,
.site-footer-bottom p {
    color: rgba(255, 255, 255, 0.55) !important; /* reduce to 0.4 for more transparency */
}