/**
 * CKB CP09 / Editorial Link Consistency R1 — Theme 0.4.71.
 * Content links express clickability via type, hover/focus, not decorative arrows.
 * Preserve meaningful navigation arrows: calendar prev/next, pagination and back,
 * and external-link cues (Google Maps new-window).
 */

/* Greeting: one stable rule; hover changes text emphasis, never draws another. */
body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting-link,
body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting-link:hover,
body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting-link:focus-visible {
  text-decoration: none !important;
  border-bottom: 1px solid currentColor;
}
body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting-link:hover { opacity: .78; }
body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Event history: remove the unneeded third arrow column, keep whole-row anchor. */
body.ckb-wp-shell .events-archive-main .event-archive-card {
  grid-template-columns: 110px minmax(0, 1fr) !important;
}
body.ckb-wp-shell .events-archive-main .event-archive-card:focus-visible,
body.ckb-wp-shell .ckb-articles-main .news-card:focus-visible,
body.ckb-wp-shell .ckb-course-main .course-card:focus-visible,
body.ckb-wp-shell .ckb-course-main .session-row:focus-visible,
body.ckb-wp-shell .library-task-card:focus-visible,
body.ckb-wp-shell .ongoing-panel .ongoing-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
body.ckb-wp-shell .events-archive-main .event-archive-card:hover h2,
body.ckb-wp-shell .events-archive-main .event-archive-card:focus-visible h2,
body.ckb-wp-shell .ckb-articles-main .news-card:hover h2,
body.ckb-wp-shell .ckb-articles-main .news-card:focus-visible h2,
body.ckb-wp-shell .ckb-course-main .course-card:hover h2,
body.ckb-wp-shell .ckb-course-main .course-card:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
@media (max-width: 860px) {
  body.ckb-wp-shell .events-archive-main .event-archive-card {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }
}

/* Courses: eliminate reserved empty 4th column after removing row arrow. */
body.ckb-wp-shell .ckb-course-main .session-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .5fr) !important;
}
@media (max-width: 860px) {
  body.ckb-wp-shell .ckb-course-main .session-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

/* Ongoing exhibitions: same real dates, just no narrow empty arrow gutter. */
@media (min-width: 861px) {
  body.ckb-wp-shell[data-page="calendar"] .ongoing-panel .ongoing-item {
    grid-template-columns: 236px minmax(0, 1fr) !important;
  }
}
@media (min-width: 641px) and (max-width: 860px) {
  body.ckb-wp-shell[data-page="calendar"] .ongoing-panel .ongoing-item {
    grid-template-columns: minmax(185px, 215px) minmax(0, 1fr) !important;
  }
}
@media (max-width: 640px) {
  body.ckb-wp-shell[data-page="calendar"] .ongoing-panel .ongoing-item {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "exhibition-title" "exhibition-dates" "exhibition-meta" !important;
  }
}

/* Simple footer contact/accessibility links: one indication on hover/focus. */
body.ckb-wp-shell .footer-contact-actions > a,
body.ckb-wp-shell .ckb-b1-footer-accessibility-link {
  border-bottom: 0 !important;
  text-decoration: none !important;
}
body.ckb-wp-shell .footer-contact-actions > a:hover,
body.ckb-wp-shell .footer-contact-actions > a:focus-visible,
body.ckb-wp-shell .ckb-b1-footer-accessibility-link:hover,
body.ckb-wp-shell .ckb-b1-footer-accessibility-link:focus-visible {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
}
body.ckb-wp-shell .footer-contact-actions > a:focus-visible,
body.ckb-wp-shell .ckb-b1-footer-accessibility-link:focus-visible,
body.ckb-wp-shell .archive-calendar-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
