/* ════════════════════════════════
   List page — category banner
   ════════════════════════════════ */
.cat-banner {
  background: var(--white);
  padding: 18px 16px 14px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 2px;
}
.cat-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.3px;
}
.cat-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mid);
  margin-top: 3px;
}

/* ── Article cards — direct <body> children on list page ── */
.art-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

/* Featured first card */
.art-card.featured {
  flex-direction: column;
  gap: 0;
  padding: 0 0 14px;
}
.art-feat-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.art-feat-body { padding: 12px 16px 0; }
.art-feat-ttl {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
  margin-top: 8px;
}
.art-feat-sub {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.55;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Regular card */
.art-thumb {
  flex: 0 0 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}
.art-info { flex: 1; min-width: 0; }
.art-ttl {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-sub {
  font-size: 12.5px;
  color: var(--mid);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════
   Detail page — direct <body> children
   ════════════════════════════════ */
.det-fig {
  margin: 0;
  line-height: 0;
}
.det-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.det-meta {
  background: var(--white);
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.det-ttl {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.28;
  margin-top: 9px;
}
.det-author {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mid);
  margin-top: 8px;
}
.det-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  background: var(--white);
  border-left: 3px solid var(--border);
  margin: 8px 16px 0;
  padding: 6px 0 6px 10px;
}
.cap-text {
  font-family: var(--sans);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mid);
  flex: 1 1 auto;
}
.cap-credit {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--mid);
  white-space: nowrap;
}
.det-body {
  background: var(--white);
  padding: 10px 16px 0;
}
.det-body p {
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--dark);
  margin-bottom: 16px;
}
.det-body p:last-child { margin-bottom: 0; }
.det-loadmore {
  display: block;
  width: 100%;
  margin: 4px 0 4px;
  padding: 13px;
  background: var(--white);
  border: 1.5px solid var(--dark);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--dark);
  cursor: pointer;
}
.det-loadmore:active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Related news block — single column, 4 rows ── */
.rel-block {
  margin: 14px 0 20px;
  background: var(--light);
  border-radius: var(--r);
  padding: 12px;
}
.rel-hd {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--mid);
  margin-bottom: 10px;
}
.rel-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 10px;
}
.rel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}
.rel-thumb {
  flex: 0 0 68px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
}
.rel-ttl {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════
   Legal pages (terms / privacy)
   ════════════════════════════════ */
.legal-hd {
  background: var(--white);
  padding: 22px 16px 16px;
  border-bottom: 3px solid var(--red);
}
.legal-hd h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
}
.legal-hd p {
  font-size: 13px;
  color: var(--mid);
  margin-top: 4px;
}
.legal-body {
  background: var(--white);
  padding: 20px 16px 44px;
  margin-top: 2px;
}
.legal-body h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 24px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-body p {
  font-size: 14px;
  line-height: 1.74;
  color: var(--dark);
  margin-bottom: 12px;
}
.legal-body ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
.legal-body li {
  font-size: 14px;
  line-height: 1.72;
  color: var(--dark);
  margin-bottom: 6px;
}

/* ════════════════════════════════
   Detail page — loading / not-found / breadcrumb
   ════════════════════════════════ */
.is-loading {
  position: relative;
  overflow: hidden;
  background: var(--light);
}
.is-loading::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%);
  animation: det-skeleton 1.2s infinite;
}
@keyframes det-skeleton {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.det-notfound {
  background: var(--white);
  padding: 40px 16px;
  text-align: center;
}
.det-notfound h1 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}
.det-notfound p {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 18px;
}
.det-notfound a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.breadcrumb {
  display: block;
  background: var(--white);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a {
  color: var(--mid);
}
.breadcrumb a:hover,
.breadcrumb a:active {
  color: var(--red);
}
.breadcrumb-current {
  color: var(--dark);
  font-weight: 700;
}
