/* All presentation rules are scoped to this shortcode. Images come from each post's featured image. */
.egi-sg-shell { box-sizing: border-box; min-width: 0; scroll-margin-top: 100px; }
.egi-sg {
  --egi-sg-ink: #182f40;
  --egi-sg-muted: #536775;
  --egi-sg-border: #dce5eb;
  --egi-sg-surface: #ffffff;
  --egi-sg-hover: #f2f6f8;
  --egi-sg-thumb-size: 80px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) 0;
  color: var(--egi-sg-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
  scroll-margin-top: 100px;
}
/* On EGI REEF's home, let the shared section wrapper own width and spacing.
   This preserves the same edges as the adjacent category/latest sections. */
.egi-v5-page .egi-sg-shell > .egi-sg {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.egi-sg *, .egi-sg *::before, .egi-sg *::after { box-sizing: border-box; }
.egi-sg .egi-sg__header { margin: 0 0 30px; padding: 0; }
.egi-sg .egi-sg__eyebrow {
  margin: 0 0 9px;
  color: var(--egi-sg-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
}
.egi-sg .egi-sg__title {
  margin: 0;
  color: var(--egi-sg-ink);
  font-family: inherit;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.egi-sg .egi-sg__intro {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--egi-sg-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.egi-sg .egi-sg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.egi-sg .egi-sg__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--egi-sg-border);
  border-top: 3px solid var(--egi-sg-ink);
  border-radius: 10px;
  background: var(--egi-sg-surface);
}
.egi-sg .egi-sg__card-header { flex: 1 0 auto; margin: 0; padding: 27px 25px 25px; }
.egi-sg .egi-sg__tag { margin: 0 0 13px; color: var(--egi-sg-muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; line-height: 1.6; }
.egi-sg .egi-sg__heading {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--egi-sg-ink);
  font-family: inherit;
  font-size: clamp(19px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.egi-sg .egi-sg__description { margin: 12px 0 0; padding: 0; color: var(--egi-sg-muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; word-break: keep-all; }
.egi-sg .egi-sg__list { list-style: none; margin: 0; padding: 0; }
.egi-sg .egi-sg__item { list-style: none; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--egi-sg-border); }
.egi-sg .egi-sg__item::marker { content: ''; }
.egi-sg .egi-sg__link, .egi-sg .egi-sg__link:visited {
  display: grid;
  grid-template-columns: var(--egi-sg-thumb-size) minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 106px;
  margin: 0;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--egi-sg-ink);
  text-decoration: none;
  box-shadow: none;
  transition: background-color .15s ease;
}
.egi-sg .egi-sg__link-copy { display: block; min-width: 0; }
.egi-sg .egi-sg__thumb { display: block; width: var(--egi-sg-thumb-size); aspect-ratio: 16 / 9; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 5px; background: #edf2f5; }
.egi-sg .egi-sg__thumb .egi-sg__image { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: cover; object-position: center; box-shadow: none; }
.egi-sg .egi-sg__thumb--empty { display: grid; place-items: center; background: linear-gradient(145deg, #eef3f6, #dce7ee); color: var(--egi-sg-muted); }
.egi-sg .egi-sg__thumb--empty > span { font-size: 8px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.egi-sg .egi-sg__link-title { display: block; color: inherit; font-size: 16px; font-weight: 650; letter-spacing: -.04em; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
.egi-sg .egi-sg__link-description { display: block; margin-top: 4px; color: var(--egi-sg-muted); font-size: 12px; font-weight: 400; letter-spacing: -.01em; line-height: 1.65; overflow-wrap: anywhere; word-break: keep-all; }
.egi-sg .egi-sg__arrow { display: block; color: var(--egi-sg-ink); font-size: 20px; font-weight: 400; line-height: 1; transition: transform .15s ease; }
.egi-sg .egi-sg__link:hover { background: var(--egi-sg-hover); color: var(--egi-sg-ink); text-decoration: none; }
.egi-sg .egi-sg__link:hover .egi-sg__arrow { transform: translateX(3px); }
.egi-sg .egi-sg__link:focus-visible { outline: 2px solid var(--egi-sg-ink); outline-offset: -5px; background: var(--egi-sg-hover); }
@media (max-width: 1100px) {
  .egi-sg .egi-sg__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .egi-sg .egi-sg__heading { min-height: 0; font-size: 21px; }
  .egi-sg .egi-sg__card-header { padding: 24px 24px 22px; }
  .egi-sg .egi-sg__link { min-height: 96px; padding: 14px 24px; }
  .egi-sg .egi-sg__tag { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  .egi-sg { --egi-sg-thumb-size: 72px; }
  .egi-sg .egi-sg__link { gap: 10px; padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 380px) {
  .egi-sg { --egi-sg-thumb-size: 64px; }
  .egi-sg .egi-sg__card-header { padding: 22px 19px 20px; }
  .egi-sg .egi-sg__link { padding-right: 19px; padding-left: 19px; }
  .egi-sg .egi-sg__heading { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .egi-sg .egi-sg__link, .egi-sg .egi-sg__arrow { transition: none; }
  .egi-sg .egi-sg__link:hover .egi-sg__arrow { transform: none; }
}
@media (forced-colors: active) {
  .egi-sg .egi-sg__card, .egi-sg .egi-sg__item { border-color: CanvasText; }
  .egi-sg .egi-sg__link:focus-visible { outline-color: Highlight; }
}
