/* POSTINDEXES 2026-09-24
   Scoped to #postindexes-hub-2026 / .postix and postal category listings.
   Dedicated module — do not merge into adaptive tip races. */

.postix {
  --px-ink: #1c2430;
  --px-muted: #5a6573;
  --px-line: #d7dde6;
  --px-bg: #f3f6fa;
  --px-accent: #0b5f8a;
  --px-accent-soft: #e6f2f8;
  --px-old: #8a4b12;
  --px-old-bg: #fff1e0;
  --px-now: #1f6b3a;
  --px-now-bg: #e7f6ec;
  --px-note: #5c5268;
  --px-note-bg: #f1eef5;
  color: var(--px-ink);
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 1.5rem;
}

.postix__hero {
  padding: 1.15rem 1.2rem 1.3rem;
  margin: 0 0 1rem;
  background:
    linear-gradient(145deg, rgba(11, 95, 138, 0.11), rgba(243, 246, 250, 0.96) 48%, #e8f0e9),
    radial-gradient(ellipse at 90% 10%, rgba(31, 107, 58, 0.08), transparent 55%);
  border: 1px solid var(--px-line);
  border-left: 4px solid var(--px-accent);
  animation: postix-in 0.55s ease both;
}

.postix__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--px-accent);
  font-weight: 700;
}

.postix__title {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
}

.postix__lead {
  margin: 0;
  max-width: 44rem;
  color: var(--px-muted);
  font-size: 0.98rem;
}

.postix__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  animation: postix-in 0.65s ease 0.06s both;
}

.postix__legend-item {
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid var(--px-line);
}

.postix__legend-item p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: var(--px-muted);
}

.postix__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

.postix__badge--old {
  color: var(--px-old);
  background: var(--px-old-bg);
}

.postix__badge--new {
  color: var(--px-now);
  background: var(--px-now-bg);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.9rem;
}

.postix__badge--note {
  color: var(--px-note);
  background: var(--px-note-bg);
}

.postix__section {
  margin: 0 0 1.35rem;
  padding: 0 0 0.25rem;
  animation: postix-in 0.7s ease 0.1s both;
}

.postix__h {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--px-ink);
}

.postix__sub {
  margin: 0 0 0.75rem;
  color: var(--px-muted);
  font-size: 0.95rem;
  max-width: 46rem;
}

.postix__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.5rem;
}

.postix__chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  background: #fff;
  border: 1px solid var(--px-line);
  border-top: 3px solid #c9853a;
}

.postix__chip-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--px-old);
}

.postix__chip-label {
  font-size: 0.8rem;
  color: var(--px-muted);
}

.postix__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--px-line);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.postix__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.postix__table th,
.postix__table td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--px-line);
  vertical-align: middle;
}

.postix__table th {
  background: var(--px-bg);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--px-muted);
}

.postix__table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.postix__arrow {
  color: var(--px-accent);
  font-weight: 700;
  width: 1.5rem;
  text-align: center;
}

.postix__hint {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--px-muted);
  max-width: 46rem;
}

.postix__steps {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--px-ink);
}

.postix__steps li {
  margin: 0 0 0.4rem;
}

.postix__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.postix__links a {
  display: block;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--px-line);
  border-left: 3px solid var(--px-accent);
  text-decoration: none;
  color: var(--px-accent);
  font-weight: 600;
  transition: background 0.2s ease;
}

.postix__links a:hover {
  background: var(--px-accent-soft);
}

.postix__toolbar {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--px-line);
}

.postix__search-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--px-muted);
}

.postix__search-row {
  display: flex;
  gap: 0.5rem;
}

.postix__search {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b7c3d2;
  background: #fff;
}

.postix__search:focus {
  outline: 2px solid var(--px-accent);
  outline-offset: 1px;
}

.postix__clear {
  border: 1px solid var(--px-line);
  background: var(--px-bg);
  padding: 0 0.85rem;
  cursor: pointer;
}

/* Category listing polish when hub note present */
#archive-note-postindexes-2026 {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mid_col:has(#archive-note-postindexes-2026) article.shortstory > a,
.mid_col:has(#postindexes-hub-2026) ~ article.shortstory > a {
  /* no force — hub is inside note or static */
}

.mid_col:has(#archive-note-postindexes-2026) article.shortstory {
  margin-bottom: 0.65rem;
}

.mid_col:has(#archive-note-postindexes-2026) .short_title {
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
}

.mid_col:has(#archive-note-postindexes-2026) .short-story_post {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

@keyframes postix-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .postix__legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .postix__title {
    font-size: 1.35rem;
  }

  .postix__table thead {
    display: none;
  }

  .postix__table tr {
    display: block;
    padding: 0.75rem 0.7rem;
    border-bottom: 1px solid var(--px-line);
  }

  .postix__table td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border: 0;
    padding: 0.25rem 0;
  }

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

  .postix__arrow {
    display: none;
  }
}
