/*
 Theme Name: Astra Child
 Theme URI: https://example.com/astra-child
 Description: Child theme for Astra
 Author: Your Name
 Template: astra
 Version: 1.0
*/

.model-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.model-header {
  margin-bottom: 2rem;
}

.model-meta {
  display: grid;
  grid-template-columns: 1fr 2fr;
  row-gap: 1rem;
  column-gap: 2rem;
  background: #f9fafb;
  border-radius: 8px;
}

.model-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.model-meta-item {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 12px;
  align-items: start;
}

.model-meta-item .label {
  font-weight: 600;
  color: #374151;
}

.model-meta-item .value {
  color: #111827;
}

@media (max-width: 350px) {
  .model-meta-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .model-meta-item .label {
    font-size: 0.9rem;
    color: #6b7280;
  }

  .model-meta-item .value {
    font-size: 1rem;
  }
}

.model-meta .label {
  font-weight: 700; /* strong */
}

.model-meta .label::after {
  content: ":";
  margin-right: 0.25rem;
}

.model-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.archive-title {
  text-align: left;
  margin-bottom: 2rem;
}

.model-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.model-archive .archive-header {
  display: block;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

/* Ensure title aligns with cards */
.model-archive .archive-title {
  text-align: left;
  margin-bottom: 2rem;
}

.model-list-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.model-list-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}

.model-list-title a {
  text-decoration: none;
}

.model-list-title a:hover {
  text-decoration: underline;
}

.model-list-meta {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.25rem;
}

/* ============================
   Pagination styling
   ============================ */

.model-pagination {
  margin-top: 2rem;
  text-align: center;
}

.model-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: #1a73e8;
  border: 1px solid transparent;
}

.model-pagination .page-numbers:hover {
  background-color: #f0f4ff;
  border-color: #d6e0ff;
}

/* CURRENT PAGE */
.model-pagination .page-numbers.current {
  background-color: #1a73e8;
  color: #ffffff;
  border-color: #1a73e8;
  font-weight: 700;
}

/* Disabled prev/next */
.model-pagination .page-numbers.dots {
  cursor: default;
  color: #999;
}

/* ===== FIX ASTRA FLEX LAYOUT ON MODEL ARCHIVE ===== */

/* Force Astra row to stack vertically */
/* ============================
   Model Archive Layout
   ============================ */

.post-type-archive-model .model-archive {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Title */
.post-type-archive-model .archive-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Search */
.post-type-archive-model .model-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.post-type-archive-model .model-search input[type="search"] {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
}

/* Table */
.post-type-archive-model .model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}

/* Header */
.post-type-archive-model .model-table thead th {
  text-align: left;
  font-weight: 600;
  padding: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Cells */
.post-type-archive-model .model-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* Zebra rows */
.post-type-archive-model .model-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Hover */
.post-type-archive-model .model-table tbody tr:hover {
  background: #f1f5f9;
}

/* Wrapping rules */
.post-type-archive-model .model-table th,
.post-type-archive-model .model-table td {
  white-space: nowrap;
}

.post-type-archive-model .model-table td:nth-child(4),
.post-type-archive-model .model-table td:nth-child(5) {
  white-space: normal;
  max-width: 220px;
}

/* Links */
.post-type-archive-model .model-link {
  font-weight: 600;
  text-decoration: none;
  color: #1a73e8;              /* clean, familiar blue */
  font-weight: 500;
}

.post-type-archive-model .model-link:hover, .model-link:focus {
  text-decoration: underline;
}

.post-type-archive-model .model-link:visited {
  color: #551a8b;              /* keep consistent, optional */
}

/* Mobile scroll */
@media (max-width: 1024px) {
  .post-type-archive-model .model-table {
    display: block;
    overflow-x: auto;
  }
}

/* ============================
   Shared centered container
   ============================ */

.home-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 5rem;
}

/* ============================
   Home header / logo
   ============================ */

.home-header {
  margin-top: 1.5rem;
}

.home-logo {
  display: flex;
  align-items: center;
}

/* Control logo size */
.home-logo img {
  max-height: 40px;
  width: auto;
}

/* ============================
   Home hero section
   ============================ */

.home-hero {
  margin: 6rem auto;
  text-align: center;
}

.home-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.home-search,
.model-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.home-search input[type="search"],
.model-search input[type="search"] {
  width: 100%;
  max-width: 420px;
  height: 48px;              /* larger, more inviting */
  padding: 0 16px;
  font-size: 1rem;
  border-radius: 24px;       /* smooth curves */
  border: 1px solid #ccc;
}

.home-search button,
.model-search button {
  height: 43px;              /* smaller than input */
  padding: 0 14px;
  font-size: 0.9rem;
  border-radius: 18px;
  cursor: pointer;
}

.home-link {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.model-back {
  margin-bottom: 1rem;
}

.model-back a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  background: #f5f7fa;
}

.model-back a:hover {
  text-decoration: underline;
}

/* ============================
   Status styling
   ============================ */

.status-chip {
  display: inline-flex;        /* prevents full-width stretching */
  align-items: center;
  width: auto;
  max-width: max-content;
  padding: 4px 12px;
  border-radius: 999px;        /* perfect pill */
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
}

/* Active — green */
.status-active {
  background-color: #2e7d32;
  color: #ffffff;
}

/* Deprecated — amber/orange */
.status-deprecated {
  background-color: #f9a825;
  color: #1f1f1f;
}

/* Decommissioned — red */
.status-decommissioned {
  background-color: #c62828;
  color: #ffffff;
}

.site-header,
.ast-primary-header-bar {
  background-color: #ffffff;
}

/* Hover */
.ast-primary-header-bar .main-header-menu a:hover {
  color: #d3d3d3 !important;
}

/* Active / current page */
.ast-primary-header-bar .main-header-menu .current-menu-item > a,
.ast-primary-header-bar .main-header-menu .current-menu-ancestor > a {
  text-decoration: underline;
}

/* Desktop menu */
.ast-primary-header-bar .main-header-menu>li>a {
  color: grey !important;
}

/* Mobile menu — Astra */
.ast-mobile-popup-drawer .menu-item a,
.ast-header-break-point .main-header-menu a {
  color: grey !important;
}

.ast-mobile-popup-drawer .menu-item a:hover {
  color: #d3d3d3 !important;
}

.ast-builder-menu-mobile .menu-item a {
  color: grey !important;
}

/* Mobile menu toggle icon color */
.menu-toggle {
  color: grey !important;
}

.menu-toggle svg {
  fill: grey !important;
}

.doc-url {
  overflow-wrap: anywhere;
  word-break: break-word;
}