/* Current Affairs — full-width, readable, category-colored cards */

.page-shell.ca-archive {
  max-width: none !important;
  width: 100% !important;
  padding-top: 0.75rem;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .page-shell.ca-archive {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (min-width: 1200px) {
  .page-shell.ca-archive {
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
  }
}

.ca-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem 0.9rem;
  background: #ffffff;
  border: 1px solid #ebe7df;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(10, 37, 24, 0.05);
}

.ca-toolbar__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ca-toolbar__title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
  min-width: 8.5rem;
  flex-shrink: 0;
  line-height: 1.1;
}

.ca-toolbar__kicker {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa09a;
}

.ca-toolbar__name {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0A2518;
  white-space: nowrap;
}

.ca-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ca-field--search {
  flex: 1 1 auto;
  min-width: 12rem;
}

.ca-field__label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8f88;
}

.ca-field__input {
  width: 100%;
  height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  background: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  color: #0A2518;
  outline: none;
}

.ca-field__input:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.18);
}

.ca-apply {
  flex-shrink: 0;
  height: 2.35rem;
  margin-top: auto;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.6rem;
  background: #0A2518;
  color: #C9A84C;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ca-apply:hover { background: #123824; color: #e8d49e; }

.ca-toolbar__row--cats {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0.4rem;
}
.ca-toolbar__row--cats::-webkit-scrollbar { display: none; }

.ca-cat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.9rem;
  padding: 0 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #0A2518;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.ca-cat.is-active {
  background: #0A2518;
  border-color: #0A2518;
  color: #C9A84C;
}

.ca-feed {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.ca-empty {
  padding: 2.4rem 1.25rem;
  text-align: center;
  color: #6b7280;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  background: #fff;
  border: 1px solid #ebe8e2;
  border-radius: 0.85rem;
}

.ca-date-rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.5rem 0 0.35rem;
}

.ca-date-rule__line {
  flex: 1;
  height: 1px;
  background: #e4e0d8;
}

.ca-date-rule__label {
  flex-shrink: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8f88;
  white-space: nowrap;
}

.ca-cat-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.1rem;
}

.ca-cat-rule__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #C9A84C;
  flex-shrink: 0;
}

.ca-cat-rule__label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9A84C;
}

.ca-cat-rule__line {
  flex: 1;
  height: 1px;
  background: #ece8e1;
}

.ca-cat-rule--gs1 .ca-cat-rule__dot { background: #e67e22; }
.ca-cat-rule--gs1 .ca-cat-rule__label { color: #c2410c; }
.ca-cat-rule--gs2 .ca-cat-rule__dot { background: #2563eb; }
.ca-cat-rule--gs2 .ca-cat-rule__label { color: #1d4ed8; }
.ca-cat-rule--gs3 .ca-cat-rule__dot { background: #059669; }
.ca-cat-rule--gs3 .ca-cat-rule__label { color: #047857; }
.ca-cat-rule--gs4 .ca-cat-rule__dot { background: #7c3aed; }
.ca-cat-rule--gs4 .ca-cat-rule__label { color: #6d28d9; }
.ca-cat-rule--editorial .ca-cat-rule__dot { background: #6b7280; }
.ca-cat-rule--editorial .ca-cat-rule__label { color: #4b5563; }
.ca-cat-rule--opinion .ca-cat-rule__dot { background: #0284c7; }
.ca-cat-rule--opinion .ca-cat-rule__label { color: #0369a1; }
.ca-cat-rule--essay .ca-cat-rule__dot { background: #8b5cf6; }
.ca-cat-rule--essay .ca-cat-rule__label { color: #7c3aed; }
.ca-cat-rule--ethics .ca-cat-rule__dot { background: #e11d48; }
.ca-cat-rule--ethics .ca-cat-rule__label { color: #be123c; }

/* ===== Category-colored story cards ===== */
.ca-story {
  width: 100%;
  border-radius: 0.65rem !important;
  border: 1px solid transparent !important;
  border-left-width: 5px !important;
  border-left-style: solid !important;
  box-shadow: 0 2px 10px rgba(10, 37, 24, 0.04) !important;
  padding: 0 !important;
  animation: ca-card-in 0.35s ease both;
  background: #fff !important;
}

.ca-story--gs1 {
  background: linear-gradient(180deg, #FFF8F1 0%, #FFF3E8 100%) !important;
  border-color: #f0d2b0 !important;
  border-left-color: #e67e22 !important;
}
.ca-story--gs2 {
  background: linear-gradient(180deg, #F3F7FF 0%, #EAF0FF 100%) !important;
  border-color: #c5d4f5 !important;
  border-left-color: #2563eb !important;
}
.ca-story--gs3 {
  background: linear-gradient(180deg, #F1FBF6 0%, #E6F7EF 100%) !important;
  border-color: #b7e4cf !important;
  border-left-color: #059669 !important;
}
.ca-story--gs4 {
  background: linear-gradient(180deg, #F7F3FF 0%, #F0E9FF 100%) !important;
  border-color: #d4c4f5 !important;
  border-left-color: #7c3aed !important;
}
.ca-story--editorial {
  background: linear-gradient(180deg, #F7F7F7 0%, #F0F0F0 100%) !important;
  border-color: #d4d4d4 !important;
  border-left-color: #6b7280 !important;
}
.ca-story--opinion {
  background: linear-gradient(180deg, #F0F9FF 0%, #E6F4FE 100%) !important;
  border-color: #b6dff7 !important;
  border-left-color: #0284c7 !important;
}
.ca-story--essay {
  background: linear-gradient(180deg, #F8F4FF 0%, #F1EAFE 100%) !important;
  border-color: #d5c6f8 !important;
  border-left-color: #8b5cf6 !important;
}
.ca-story--ethics {
  background: linear-gradient(180deg, #FFF5F6 0%, #FFECEF 100%) !important;
  border-color: #f5c2cc !important;
  border-left-color: #e11d48 !important;
}
.ca-story--default {
  background: #FDFBF7 !important;
  border-color: #E5E0D6 !important;
  border-left-color: #C9A84C !important;
}

.ca-story:hover {
  box-shadow: 0 10px 26px rgba(10, 37, 24, 0.08) !important;
  transform: translateY(-1px);
}

@keyframes ca-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ca-story__link {
  display: block;
  padding: 1.15rem 1.35rem 1.1rem;
  text-decoration: none !important;
  color: inherit;
}

.ca-story__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.7rem;
}

.ca-story__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.6rem;
  border-radius: 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ca-pill--src {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #5b4636 !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ca-pill--gs1 { background: #ffe0bd !important; color: #9a3412 !important; }
.ca-pill--gs2 { background: #cfe0ff !important; color: #1e3a8a !important; }
.ca-pill--gs3,
.ca-pill--gs { background: #bbf0d6 !important; color: #065f46 !important; }
.ca-pill--gs4 { background: #ddd0ff !important; color: #5b21b6 !important; }
.ca-pill--editorial { background: #e5e7eb !important; color: #374151 !important; }
.ca-pill--essay { background: #e4d7ff !important; color: #5b21b6 !important; }
.ca-pill--ethics { background: #fecdd3 !important; color: #9f1239 !important; }
.ca-pill--opinion { background: #bae6fd !important; color: #075985 !important; }
.ca-pill--default { background: #f3f4f6 !important; color: #4b5563 !important; }

.ca-story__topic {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #5b6470;
  min-width: 0;
  line-height: 1.35;
}

.ca-story__dot { color: #B0B5AE; }

.ca-story__aside {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  color: #6b7280;
}

.ca-story__date {
  font-weight: 700;
  color: #374151;
}

.ca-story__read {
  font-weight: 500;
  color: #6b7280;
}

/* Readable English — DM Sans, normal case, comfortable size */
.ca-story__title {
  margin: 0 0 0.55rem !important;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
  color: #111827 !important;
  text-transform: none !important;
  text-wrap: pretty;
}

.ca-story:hover .ca-story__title {
  color: #0A2518 !important;
}

.ca-story__subtopic {
  margin: -0.2rem 0 0.65rem !important;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 0.86rem !important;
  line-height: 1.4;
  color: #92400e !important;
  font-weight: 600;
}
.ca-story__subtopic-label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}

.ca-story__why {
  margin: 0 0 1rem !important;
  max-width: 70rem;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #374151 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ca-story__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ca-story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  min-width: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  color: #6b7280;
}

.ca-story__views {
  color: #b45309;
  font-weight: 700;
}

.ca-story--gs2 .ca-story__views { color: #1d4ed8; }
.ca-story--gs3 .ca-story__views { color: #047857; }
.ca-story--gs4 .ca-story__views { color: #6d28d9; }
.ca-story--ethics .ca-story__views { color: #be123c; }
.ca-story--opinion .ca-story__views { color: #0369a1; }

.ca-story__sep { color: #c4c0b6; }

.ca-story__cta {
  flex-shrink: 0;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0A2518 !important;
  white-space: nowrap;
  transition: color 0.15s, transform 0.15s;
}

.ca-story--gs1 .ca-story__cta { color: #c2410c !important; }
.ca-story--gs2 .ca-story__cta { color: #1d4ed8 !important; }
.ca-story--gs3 .ca-story__cta { color: #047857 !important; }
.ca-story--gs4 .ca-story__cta { color: #6d28d9 !important; }
.ca-story--ethics .ca-story__cta { color: #be123c !important; }
.ca-story--opinion .ca-story__cta { color: #0369a1 !important; }
.ca-story--essay .ca-story__cta { color: #6d28d9 !important; }

.ca-story:hover .ca-story__cta {
  transform: translateX(3px);
}

.ca-sentinel { height: 1px; width: 100%; pointer-events: none; }

.ca-day-status {
  margin: 1rem 0 0;
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  color: #8a8f88;
}

@media (max-width: 720px) {
  .ca-toolbar__row--filters {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title title"
      "search apply";
    gap: 0.45rem;
    align-items: end;
  }
  .ca-toolbar__title { grid-area: title; }
  .ca-field--search { grid-area: search; min-width: 0; }
  .ca-apply { grid-area: apply; margin-top: 0; }

  .ca-story__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ca-story__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .ca-story__cta { align-self: flex-end; }

  .ca-story__link { padding: 1rem 1rem 0.95rem; }

  .ca-story__why { font-size: 14px !important; }
}
