/* =========================================================
   The Tokyo Dispatch — list page styles
   Shared by: category.html, archive.html, search.html, tag.html, tours.html
   ========================================================= */

/* ==================== Page header ==================== */
.list-page-head {
  padding: 2rem 1rem 1.5rem;
  border-bottom: 0.5px solid var(--rule);
  text-align: center;
}
.list-page-kicker {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.list-page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.list-page-sub {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 620px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.55;
}
.list-page-count {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 3px 10px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  border-radius: 2px;
  font-weight: 500;
}

/* ==================== Search/filter bar ==================== */
.list-filter-bar {
  border-bottom: 0.5px solid var(--rule);
  padding: 0.9rem 0;
  background: var(--paper);
}
.list-filter-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 1rem;
  max-width: var(--wrap-max);
  margin: 0 auto;
}
.list-search-form {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  max-width: 480px;
}
.list-search-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  font-family: inherit;
}
.list-search-input:focus {
  outline: 0;
  border-color: var(--ink-2);
}
.list-search-btn {
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 0;
}
.list-search-btn:hover { background: #000; }

.list-sort {
  display: inline-flex;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--ink-3);
  align-items: center;
  margin-left: auto;
}
.list-sort-btn {
  padding: 4px 10px;
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-size: 0.75rem;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}
.list-sort-btn.is-active {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 500;
}

/* ==================== Category pill filters (optional) ==================== */
.list-chip-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-bottom: 0.5px solid var(--rule);
  scrollbar-width: none;
  max-width: var(--wrap-max);
  margin: 0 auto;
}
.list-chip-row::-webkit-scrollbar { display: none; }
.list-chip {
  padding: 5px 14px;
  border: 0.5px solid var(--rule);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.list-chip:hover { color: var(--ink); border-color: var(--ink-2); }
.list-chip.is-active {
  color: var(--paper-2);
  background: var(--ink);
  border-color: var(--ink);
}

/* ==================== Article grid ==================== */
.list-body {
  padding: 1.75rem 0 2.5rem;
}
.list-body-inner {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.list-card {
  display: block;
  transition: opacity 0.15s;
}
.list-card:hover .list-card-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.list-card-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: var(--paper-3);
}
.list-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-card-kicker {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
.list-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.list-card-desc {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card-meta {
  font-size: 0.7rem;
  color: var(--ink-3);
}

/* Empty / loading state */
.list-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.list-empty-hint {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  color: var(--ink-4);
}

/* ==================== Pagination ==================== */
.list-pager {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0 0;
  font-size: 0.85rem;
}
.list-pager-btn {
  min-width: 36px;
  padding: 6px 12px;
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}
.list-pager-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.list-pager-btn.is-active {
  color: var(--paper-2);
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 500;
}
.list-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==================== Legal/static content pages (about, privacy, terms, etc) ==================== */
.static-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.static-page h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 0.6rem;
}
.static-page > .static-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--rule);
}
.static-page h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 2rem 0 0.6rem;
}
.static-page h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.5rem 0 0.4rem;
}
.static-page p {
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0 0 1em;
  color: var(--ink);
}
.static-page a {
  color: var(--blue-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.static-page a:hover { color: var(--ink); }
.static-page ul, .static-page ol {
  padding-left: 1.4rem;
  margin: 0 0 1em;
  list-style: disc;
}
.static-page ol { list-style: decimal; }
.static-page ul ul { list-style: circle; }
.static-page li {
  margin-bottom: 0.3em;
  line-height: 1.7;
}
.static-page .meta {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin: 0 0 2rem;
}

/* Sitemap tree */
.sitemap-section {
  margin-bottom: 2rem;
}
.sitemap-section h2 {
  margin-bottom: 0.5rem;
}
.sitemap-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--rule);
  padding: 0.25rem 0 0.25rem 1.5rem;
}
.sitemap-list li {
  padding: 0.3rem 0;
  line-height: 1.5;
  list-style-position: outside;
}
.sitemap-list li::marker {
  color: var(--ink-4);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin-top: 1.5rem;
}
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--ink-2);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--ink-2);
}
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.55;
}
.contact-form-submit {
  padding: 10px 24px;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  justify-self: start;
}
.contact-form-submit:hover { background: #000; }

/* ==================== Tours special page ==================== */
.tours-hero {
  background: var(--paper-2);
  border-bottom: 0.5px solid var(--rule);
  padding: 2rem 1rem;
  text-align: center;
}
.tour-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 0.5px solid var(--rule);
}
.tour-card-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-3);
}
.tour-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tour-card-kicker {
  font-size: 0.66rem;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.4rem;
}
.tour-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.tour-card-desc {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.tour-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.tour-card-cta {
  display: inline-block;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
}
.tour-card-cta:hover { background: #000; }

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .list-grid { grid-template-columns: 1fr 1fr; }
  .tour-card { grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; }
}

@media (max-width: 640px) {
  .list-page-head { padding: 1.5rem 1rem 1rem; }
  .list-page-title { font-size: 1.4rem; }
  .list-page-sub { font-size: 0.86rem; }

  .list-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    grid-template-areas:
      "kicker thumb"
      "title  thumb"
      "meta   thumb";
    gap: 0 0.8rem;
    align-items: start;
  }
  .list-card-thumb { grid-area: thumb; aspect-ratio: 1; margin: 0; }
  .list-card-kicker { grid-area: kicker; }
  .list-card-title { grid-area: title; font-size: 0.95rem; margin-bottom: 0.3rem; }
  .list-card-meta { grid-area: meta; }
  .list-card-desc { display: none; }

  .list-filter-inner { gap: 0.5rem; }
  .list-search-form { max-width: 100%; flex: 1 1 100%; }
  .list-sort { margin-left: 0; flex: 1 1 100%; justify-content: flex-start; }

  .tour-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .tour-card-thumb { max-width: 100%; }

  .static-page { padding: 1.25rem 1rem 2rem; }
  .static-page h1 { font-size: 1.5rem; }
  .static-page h2 { font-size: 1.15rem; }
}
