/* Presentation-only layout for the dedicated Croix section. */
#croixViewMount,
#cid-croix-section {
  width: 100%;
}

.cid-croix-selected-publication {
  width: min(100%, 1040px);
  margin: 0 auto 24px;
  padding: 18px 16px 24px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 24, 64, .1);
}

.cid-croix-selected-publication .cid-croix-section-heading {
  width: 100%;
  margin-bottom: 10px;
}

.cid-croix-selected-publication .cid-croix-section-heading p:last-child {
  color: #1261bb;
}

.cid-croix-selected-publication .cid-croix-current-cross {
  min-height: 280px;
}

.cid-croix-section-heading {
  width: min(100%, 1040px);
  margin: 0 auto 14px;
}

.cid-croix-eyebrow {
  margin: 0 0 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cid-croix-section-heading h1,
.cid-croix-history-heading h2 {
  margin: 0;
  color: #0f172a;
}

.cid-croix-section-heading p:last-child {
  margin: 6px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.cid-croix-current-card {
  --fb-blue: #1877f2;
  --fb-text: #1c1e21;
  --fb-muted: #65676b;
  --fb-border: #e4e6eb;
  --fb-bg: #f0f2f5;
  width: min(100%, 1040px);
  margin: 0 auto 24px;
  padding: 0;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 24, 64, .1);
  color: var(--fb-text);
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cid-croix-current-card .cid-fb-actions:has([data-croix-early-access]) {
  grid-template-columns: repeat(4, 1fr);
}

.cid-croix-current-card.is-comments-off .cid-fb-actions:has([data-croix-early-access]) {
  grid-template-columns: repeat(3, 1fr);
}

.cid-croix-current-cross {
  display: flex;
  justify-content: center;
  width: 100%;
}

.cid-croix-current-cross #redCross {
  flex: 0 1 auto;
}

/* The category route owns the live source after moving it out of the home
   shell. Keep the canonical zero-filled component visible while the official
   payload is still being reconciled. */
body.croix-active #croixViewCurrentCross > #redCross,
#croixViewContainer #croixViewCurrentCross > #redCross {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto;
}

.cid-croix-comment-panel {
  padding: 8px 4px 4px;
  border-top: 1px solid #e5eaf1;
}

.cid-croix-comment-count-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cid-croix-comment-count-toggle:hover,
.cid-croix-comment-count-toggle:focus-visible {
  color: #1877f2;
  text-decoration: underline;
  outline: 0;
}

.cid-croix-comment-list {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.cid-croix-comment {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #1e293b;
  font-size: 12px;
}

.cid-croix-comment-form {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.cid-croix-comment-form textarea {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  resize: vertical;
  font: inherit;
}

.cid-croix-status {
  min-height: 18px;
  margin: 3px 4px 0;
  color: #2563c7;
  font-size: 12px;
  font-weight: 800;
}

.cid-croix-history-section {
  width: 100%;
  overflow: hidden;
  background: #f97316;
  border-top: 1px solid #e5eaf1;
  border-bottom: 1px solid #e5eaf1;
}

.cid-croix-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px 10px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #c2410c, #9a3412);
  color: #fff;
}

.cid-croix-history-heading h2 {
  margin: 0;
  color: #fff;
  font: 900 18px/1.2 'Noto Sans', Arial, sans-serif;
}

.cid-croix-history-heading span {
  color: rgba(255, 255, 255, .9);
  font: 800 11px/1.2 'Noto Sans', Arial, sans-serif;
  font-weight: 800;
}

.cid-croix-history-track {
  display: flex;
  width: 100%;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px 16px 18px;
  background: #f97316;
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: auto;
  scrollbar-color: #9a3412 #fed7aa;
  scrollbar-gutter: stable;
  touch-action: pan-x pan-y;
  scroll-padding-inline: 16px;
}

/*
 * The route shell also has a generic 96% card rule. Give this carousel its
 * own sizing contract so every date gets the same complete card and the
 * cross inside it is never wider than its slot.
 */
body[data-cid-dedicated-view="croix"] #croixViewContainer
  .cid-croix-history-card,
body.croix-active #croixViewContainer .cid-croix-history-card {
  flex: 0 0 min(800px, calc(100% - 24px)) !important;
  width: min(800px, calc(100% - 24px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/*
 * The seven-date archive reuses the exact Accueil publication component.
 * The carousel owns only the card width and scrolling; the publication's
 * header, media, summary and actions remain owned by facebook-feed.css.
 */
body[data-cid-dedicated-view="croix"] #croixViewContainer
  .cid-croix-history-track > .cid-fb-post[data-post-type="cross"],
body.croix-active #croixViewContainer
  .cid-croix-history-track > .cid-fb-post[data-post-type="cross"] {
  flex: 0 0 min(800px, calc(100% - 24px)) !important;
  width: min(800px, calc(100% - 24px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.cid-croix-history-track::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.cid-croix-history-track::-webkit-scrollbar-track {
  margin: 10px 0 14px;
  border-radius: 999px;
  background: #fed7aa;
}

.cid-croix-history-track::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 3px solid #fed7aa;
  border-radius: 999px;
  background: #9a3412;
}

.cid-croix-history-track:focus-visible {
  outline: 3px solid #c2410c;
  outline-offset: -3px;
}

/* Keep the two compact social actions attached to every archived card. */
.cid-croix-history-track > .cid-fb-post .cid-fb-actions {
  display: flex !important;
  visibility: visible !important;
  position: relative;
  z-index: 2;
}

.cid-croix-history-card {
  flex: 0 0 calc(100% - 12px);
  width: calc(100% - 12px);
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  border: 1px solid #fdba74;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(154, 52, 18, .14);
}

.cid-croix-history-card.is-requested-date {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 8px 20px rgba(30, 64, 175, .18);
}

.cid-croix-history-date {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 11px 12px 0;
  color: #0f172a;
  font-size: 11px;
}

.cid-croix-history-date small {
  color: #64748b;
  text-transform: capitalize;
}

.cid-croix-history-cross-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 12px 4px;
  border-radius: 0;
  background: #fff;
}

.cid-croix-history-cross-slot > #redCross {
  flex: 0 0 auto;
}

.cid-croix-history-cross-slot > #redCross.cid-croix-history-component {
  width: min(100%, 380px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 380px !important;
  max-height: none !important;
  transform: none !important;
}

@media (max-width: 480px) {
  .cid-croix-history-cross-slot > #redCross.cid-croix-history-component {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
}

.cid-croix-history-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 8px;
  padding: 7px 12px 6px;
  border-top: 1px solid #e5eaf1;
  color: #64748b;
  font-size: 11px;
}

.cid-croix-history-reactions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cid-croix-history-reaction-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
}

.cid-croix-history-reaction-icon svg {
  width: 12px;
  height: 12px;
  fill: #fff;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cid-croix-history-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px 6px;
  border-top: 1px solid #e5eaf1;
}

.cid-croix-history-card.is-comments-off .cid-croix-history-actions,
.cid-croix-current-card.is-comments-off .cid-fb-actions {
  grid-template-columns: repeat(2, 1fr);
}

.cid-croix-history-card.is-comments-off .cid-croix-comment-count-toggle,
.cid-croix-history-card.is-comments-off [data-croix-comments-separator],
.cid-croix-history-card.is-comments-off [data-croix-comment-toggle],
.cid-croix-history-card.is-comments-off .cid-croix-history-comments,
.cid-croix-current-card.is-comments-off .cid-croix-comment-count-toggle,
.cid-croix-current-card.is-comments-off [data-croix-comments-separator],
.cid-croix-current-card.is-comments-off [data-croix-comment-toggle],
.cid-croix-current-card.is-comments-off .cid-croix-comment-panel {
  display: none !important;
}

.cid-croix-history-card [hidden],
.cid-croix-current-card [hidden] {
  display: none !important;
}

.cid-croix-history-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 7px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.cid-croix-history-actions button:hover,
.cid-croix-history-actions button:focus-visible {
  background: #f2f3f5;
  color: #1c1e21;
  outline: 0;
}

.cid-croix-history-actions button.is-liked {
  background: #e7f3ff;
  color: #1877f2;
}

.cid-croix-history-actions button:active {
  transform: scale(.97);
}

.cid-croix-history-actions svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cid-croix-history-comments {
  padding: 8px 12px 10px;
  border-top: 1px solid #e5eaf1;
  background: #fafbfc;
}

.cid-croix-history-comments .cid-croix-comment-list {
  display: grid;
  gap: 6px;
}

.cid-croix-history-comments .cid-croix-comment {
  padding: 7px 9px;
  border-radius: 10px;
  background: #f1f4f8;
  color: #1e293b;
  font-size: 11px;
}

.cid-croix-history-loading {
  width: 100%;
  margin: 10px 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .cid-croix-section-heading {
    margin-bottom: 10px;
  }

  .cid-croix-current-card {
    padding: 0;
    border-radius: 14px;
  }

  .cid-croix-history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 11px 16px 9px;
  }

  .cid-croix-history-track {
    padding-right: 12px;
    padding-left: 12px;
  }

  .cid-croix-history-actions {
    padding-right: 4px;
    padding-left: 4px;
  }

  .cid-croix-history-actions button {
    gap: 4px;
    font-size: 10px;
  }
}
