/* Archive refinement and card-title containment for Times of Rising 1.5.6. */
.tor-archive-container { max-width: 1320px; }
.tor-archive-main { padding-top: clamp(24px, 3.2vw, 46px); }
.tor-archive-main .tor-archive-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(24px, 3.2vw, 42px);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4.2vw, 56px);
  border: 1px solid #dce5e9;
  border-top: 4px solid var(--tor-accent, #e9653b);
  border-radius: 12px;
  background: linear-gradient(128deg, #fff 0%, #fff 66%, #f5f8f7 100%);
  box-shadow: 0 10px 32px rgba(20, 43, 58, .045);
}
.tor-archive-main .tor-archive-header::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(22, 131, 74, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.tor-archive-header-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tor-archive-count { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid #e4e9e7; border-radius: 999px; background: #fff; color: #586d76; font-size: 11px; font-weight: 750; white-space: nowrap; }
.tor-archive-main .tor-archive-header h1 { position: relative; z-index: 1; max-width: 950px; margin: 12px 0 0; font-size: clamp(36px, 5vw, 66px); line-height: 1.02; letter-spacing: -.052em; text-wrap: balance; }
.tor-archive-context { margin: 13px 0 0; color: #536873; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.7; }
.tor-archive-description { max-width: 840px; margin-top: 14px; color: #536873; font-size: 15px; line-height: 1.8; }
.tor-archive-description > :first-child { margin-top: 0; }
.tor-archive-description > :last-child { margin-bottom: 0; }
.tor-archive-topics { position: relative; z-index: 1; display: flex; align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5ebed; }
.tor-archive-topics > span { color: #667780; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.tor-archive-topics > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tor-archive-topics a { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border: 1px solid #e0e7e8; border-radius: 999px; background: #fff; color: #294652; font-size: 12px; font-weight: 700; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.tor-archive-topics a:hover { transform: translateY(-1px); border-color: var(--tor-accent, #e9653b); background: #fff8f3; color: #233c47; }
.tor-archive-lead { margin: 0 0 clamp(34px, 4.5vw, 58px); }
.tor-archive-lead .tor-hero-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: stretch; overflow: hidden; border: 1px solid #dce5e9; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(20, 43, 58, .045); }
.tor-archive-lead .tor-hero-media { height: 100%; min-height: 330px; aspect-ratio: auto; border-radius: 0; }
.tor-archive-lead .tor-hero-media img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.tor-archive-lead .tor-hero-copy { justify-content: center; padding: clamp(24px, 3.5vw, 46px); }
.tor-archive-lead .tor-hero-copy h2 { font-size: clamp(27px, 3vw, 42px); line-height: 1.1; text-wrap: balance; }
.tor-archive-lead .tor-hero-copy > p { font-size: 14px; line-height: 1.78; }
.tor-archive-feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #dce5e9; }
.tor-archive-feed-heading h2 { margin: 6px 0 0; color: var(--tor-ink, #152d3a); font-family: var(--tor-serif, Georgia, serif); font-size: clamp(25px, 2.7vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.tor-archive-feed-note { max-width: 260px; padding-bottom: 3px; color: #76858b; font-size: 11px; text-align: right; }
.tor-archive-feed .tor-archive-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(16px, 2vw, 26px); }
.tor-archive-feed .tor-archive-card-grid > .tor-card { min-width: 0; }
.tor-archive-feed .tor-archive-card-grid > .tor-sponsored-placement,
.tor-archive-feed .tor-archive-card-grid > .tor-ad-slot { grid-column: 1 / -1; width: 100%; max-width: none; margin: 8px 0; }
.tor-archive-feed .navigation.pagination { margin-top: 34px; }

/* The image remains a media-only area; article titles live in a separate, opaque text panel. */
.tor-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.tor-card-media { position: relative; z-index: 0; display: block; flex: 0 0 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eef0; isolation: isolate; }
.tor-card-media img { position: relative; z-index: 0; display: block; width: 100%; height: 100%; min-height: 0; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.tor-card-body { position: relative; z-index: 1; display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; min-width: 0; background: #fff; }
.tor-card-title { position: static !important; inset: auto !important; display: block; width: 100%; max-width: 100%; margin: 9px 0 10px; padding: 0; overflow: visible; background: transparent !important; color: var(--tor-ink, #152d3a); font-size: clamp(18px, 1.55vw, 23px); font-weight: 750; line-height: 1.23; letter-spacing: -.022em; text-shadow: none !important; transform: none !important; overflow-wrap: anywhere; }
.tor-card-title a { position: static !important; inset: auto !important; display: -webkit-box; width: 100%; max-width: 100%; overflow: hidden; background: transparent !important; color: inherit; text-decoration: none; text-shadow: none !important; transform: none !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tor-card-title a:hover { color: var(--tor-accent-dark, #bd4827); }
.tor-card-title::before, .tor-card-title::after, .tor-card-title a::before, .tor-card-title a::after { content: none !important; display: none !important; }
.tor-card-excerpt { display: -webkit-box; max-width: 100%; overflow: hidden; color: #657680; line-height: 1.68; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.tor-card .tor-meta { margin-top: auto; padding-top: 13px; }
.tor-related-section .tor-card-grid { align-items: stretch; }
.tor-related-section .tor-card { display: flex !important; flex-direction: column !important; min-height: 100%; }
.tor-related-section .tor-card-media { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.tor-related-section .tor-card-media img { width: 100%; height: 100%; min-height: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.tor-related-section .tor-card-body { flex: 1; background: #fff; }
.tor-related-section .tor-card-title { margin-top: 9px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.25; }
.tor-image-fallback { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #e9efed, #d9e5e8); color: #405a63; }
.tor-image-fallback > span { display: block; max-width: 90%; padding: 18px; color: inherit; font-family: var(--tor-serif, Georgia, serif); font-size: clamp(18px, 2vw, 26px); font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.tor-archive-feed .tor-card-grid > .tor-sponsored-placement { align-self: stretch; }

@media (max-width: 960px) {
  .tor-archive-lead .tor-hero-card { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
  .tor-archive-lead .tor-hero-media, .tor-archive-lead .tor-hero-media img { min-height: 290px; }
  .tor-archive-feed .tor-archive-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tor-archive-main { padding-top: 24px; }
  .tor-archive-main .tor-archive-header { margin-bottom: 26px; padding: 24px 19px 22px; border-radius: 9px; }
  .tor-archive-main .tor-archive-header h1 { font-size: clamp(33px, 9vw, 46px); }
  .tor-archive-description { font-size: 13px; }
  .tor-archive-topics { margin-top: 18px; padding-top: 15px; }
  .tor-archive-lead .tor-hero-card { display: flex; flex-direction: column; }
  .tor-archive-lead .tor-hero-media { min-height: 0; aspect-ratio: 16 / 9; }
  .tor-archive-lead .tor-hero-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .tor-archive-lead .tor-hero-copy { padding: 21px 20px 23px; }
  .tor-archive-lead .tor-hero-copy h2 { font-size: clamp(26px, 7vw, 34px); }
  .tor-archive-feed-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tor-archive-feed-note { max-width: none; text-align: left; }
  .tor-archive-feed .tor-archive-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .tor-card-body { padding: 15px; }
  .tor-card-title { font-size: clamp(17px, 2.4vw, 20px); }
}
@media (max-width: 480px) {
  .tor-archive-feed .tor-archive-card-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .tor-archive-feed .tor-archive-card-grid > .tor-card { display: grid; grid-template-columns: minmax(105px, 38%) minmax(0, 1fr); align-items: stretch; }
  .tor-archive-feed .tor-archive-card-grid > .tor-card .tor-card-media { height: 100%; min-height: 138px; aspect-ratio: auto; }
  .tor-archive-feed .tor-archive-card-grid > .tor-card .tor-card-media img,
  .tor-archive-feed .tor-archive-card-grid > .tor-card .tor-image-fallback { width: 100%; height: 100%; min-height: 138px; aspect-ratio: auto; }
  .tor-archive-feed .tor-archive-card-grid > .tor-card .tor-card-body { padding: 13px; }
  .tor-archive-feed .tor-archive-card-grid > .tor-card .tor-card-title { margin: 3px 0 7px; font-size: 17px; line-height: 1.22; }
  .tor-archive-feed .tor-archive-card-grid > .tor-card .tor-card-excerpt { display: none; }
  .tor-archive-feed .tor-archive-card-grid > .tor-sponsored-placement,
  .tor-archive-feed .tor-archive-card-grid > .tor-ad-slot { grid-column: 1 / -1; }
  .tor-related-section .tor-card-grid-three { grid-template-columns: minmax(0, 1fr); }
  .tor-related-section .tor-card { display: grid !important; grid-template-columns: minmax(105px, 38%) minmax(0, 1fr) !important; }
  .tor-related-section .tor-card-media { height: 100%; min-height: 135px; aspect-ratio: auto; }
  .tor-related-section .tor-card-media img, .tor-related-section .tor-image-fallback { height: 100%; min-height: 135px; aspect-ratio: auto; }
  .tor-related-section .tor-card-body { padding: 13px; }
  .tor-related-section .tor-card-title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .tor-archive-topics a { transition: none; }
}


/* Neutral thumbnail fallback: no publisher initial or headline text over media. */
.tor-image-fallback { position: relative; display: grid; place-items: center; min-width: 0; background: linear-gradient(135deg, #edf2f1 0%, #e1e9eb 50%, #d6e1e4 100%); }
.tor-image-fallback-mark { position: relative; display: block; width: 46px; height: 46px; padding: 0 !important; border: 1px solid rgba(38, 75, 87, .18); border-radius: 50%; background: transparent; }
.tor-image-fallback-mark::before { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border: 2px solid rgba(38, 75, 87, .48); border-radius: 50%; content: ""; }
.tor-image-fallback-mark::after { position: absolute; top: 20px; left: 4px; width: 36px; height: 2px; border-radius: 2px; background: rgba(38, 75, 87, .28); content: ""; transform: rotate(-36deg); }
.tor-image-fallback-large .tor-image-fallback-mark { width: 62px; height: 62px; }
.tor-image-fallback-large .tor-image-fallback-mark::before { top: 14px; left: 14px; width: 32px; height: 32px; }
.tor-image-fallback-large .tor-image-fallback-mark::after { top: 29px; left: 6px; width: 50px; }
