/* Insights index: a highlighted bento, then an equal-height card grid.
   Linked after hg-headers.css. The row is filled from content/highlighted.json. */

.ins-highlight-wrap { margin-top: 28px; }
.ins-highlight-wrap:not(:has(a)) { display: none; }
.ins-highlight-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--meadow);
}
.ins-highlight.is-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.ins-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ins-card-media {
  display: block;
  flex: none;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eef0ea;
}
.ins-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ins-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px 18px 14px;
}
.ins-card-title {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 8px 0 0;
  box-sizing: border-box;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: wrap;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.ins-card-meta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.35;
}
.ins-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(16, 20, 16, .07);
}
.ins-card:hover .ins-card-title { color: var(--meadow); }
.ins-card:focus-visible {
  outline: 2px solid var(--meadow);
  outline-offset: 3px;
}
.ins-page .ins-tools { margin-top: 26px; }
.ins-empty {
  max-width: 360px;
  margin-top: 18px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
}
.ins-soon-k {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--meadow);
}
.ins-soon-t {
  margin: 8px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}
.ins-soon-a {
  display: inline-block;
  margin-top: 12px;
  color: var(--meadow);
  font-size: 15px;
}
.ins-soon-a:hover { color: var(--ink); }
.ins-page .ins-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
}

.ins-page .ins-list > a.ins {
  display: flex;
  flex-direction: column;
  height: auto;
  min-width: 0;
  grid-column: auto;
  grid-template-columns: none;
  column-gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ins-page .ins-list > a.ins { height: 100%; }
.ins-page .ins-list > a.ins:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(16, 20, 16, .07);
}
.ins-page .ins-list > a.ins:focus-visible {
  outline: 2px solid var(--meadow);
  outline-offset: 3px;
}

.ins-note-media {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #eef0ea;
}
/* Notes in the list stay text. Highlighted cards keep their photographs. */
.ins-note-media { display: none; }
.ins-swatch {
  display: flex;
  align-items: flex-end;
  background-color: #eef0ea;
  background-image: linear-gradient(165deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 58%);
}
.ins-swatch > span {
  display: block;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--meadow-dk);
}
.ins-swatch[data-tone="Program change"] { background-color: #e7eedc; }
.ins-swatch[data-tone="Tax"] { background-color: #f3ead7; }
.ins-swatch[data-tone="Court decision"] { background-color: #e8e6e1; }
.ins-swatch[data-tone="EU policy"] { background-color: #e4ebe4; }
.ins-swatch[data-tone="US policy"] { background-color: #ece7df; }
.ins-swatch[data-tone="Asia/Gulf policy"] { background-color: #efe6d8; }
.ins-swatch[data-tone="Citizenship by descent"] { background-color: #e3ebe8; }
.ins-swatch[data-tone="Guides"] { background-color: #eef0ea; }
.ins-page .ins-note-media { display: none; }

.ins-note-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px 18px 14px;
}
.ins-note-body { flex: 1 1 auto; }
.ins-note-title {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 4px;
  box-sizing: border-box;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: wrap;
  overflow-wrap: break-word;
  color: var(--ink);
}
.ins-page .ins-list > a.ins:hover .ins-note-title { color: var(--meadow); }
.ins-note-dek {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.ins-note-dek {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.ins-note-meta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.3;
}
.ins-list .ins-note-read { display: none; }

/* Topic chips are one row of pills. Region is a compact menu on the search line. */
.ins-page .ins-controls {
  display: block;
}
.ins-page .ins-controls::before,
.ins-page .ins-controls::after,
.ins-page .ins-refine::before,
.ins-page .ins-refine::after {
  content: none;
}
.ins-page .ins-controls .ins-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 2px 2px 4px;
  overflow-x: auto;
  border: 0;
  border-bottom: 0;
  box-shadow: none;
  scrollbar-width: none;
}
.ins-page .ins-controls .ins-scroll::-webkit-scrollbar { display: none; }
.ins-page .ins-controls .ins-scroll .pill {
  flex: none;
  height: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid #c5c9c0;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.ins-page .ins-controls .ins-scroll .pill:last-child { margin-right: 0; }
.ins-page .ins-controls .ins-scroll .pill:hover {
  border-color: #8d947f;
  background: #f4f6f0;
  color: var(--ink);
}
.ins-page .ins-controls .ins-scroll .pill[aria-pressed="true"] {
  margin: 0;
  padding: 8px 16px;
  border-color: var(--meadow);
  background: var(--meadow);
  box-shadow: none;
  color: #fff;
}
.ins-page .ins-controls .ins-scroll .pill[aria-pressed="true"]:hover {
  border-color: var(--meadow);
  background: #283f09;
  color: #fff;
}
.ins-page .ins-filter-btn,
.ins-page .ins-active,
.ins-page .ins-refine { display: none; }
.ins-page .ins-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.ins-page .ins-bar .ins-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.ins-page .ins-tools .ins-search input {
  height: 40px;
  border: 1px solid #c5c9c0;
  border-bottom: 1px solid #c5c9c0;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
}
.ins-page .ins-tools .ins-search input:hover { border-color: #8d947f; }
.ins-page .ins-tools .ins-search input:focus {
  outline: 2px solid var(--meadow);
  outline-offset: 2px;
  border-color: var(--meadow);
  border-bottom-color: var(--meadow);
}
.ins-page .ins-bar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
.ins-page .ins-region,
.ins-page .ins-country {
  display: block;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}
.ins-page .ins-region select,
.ins-page .ins-country select {
  height: 40px;
  max-width: 220px;
  margin: 0;
  padding: 0 36px 0 14px;
  border: 1px solid #c5c9c0;
  border-bottom: 1px solid #c5c9c0;
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%232f4e0b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
}
.ins-page .ins-region select:hover,
.ins-page .ins-country select:hover { border-color: #8d947f; }
.ins-page .ins-region select:focus,
.ins-page .ins-country select:focus {
  outline: 2px solid var(--meadow);
  outline-offset: 2px;
  border-color: var(--meadow);
}

@media (max-width: 1023px) {
  .ins-highlight.is-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-page .ins-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ins-highlight-wrap { margin-top: 16px; }
  .ins-highlight-label { margin-bottom: 10px; }
  .ins-page .ins-list { grid-template-columns: 1fr; gap: 10px; }
  .ins-highlight.is-bento { grid-template-columns: 1fr; gap: 12px; }
  .ins-card-body,
  .ins-note-body { padding: 14px 16px 12px; }
  .ins-card-title { font-size: 17px; }
  .ins-note-title { font-size: 17px; }
  .ins-note-dek { font-size: 14px; }
  .ins-note-meta,
  .ins-card-meta { padding-top: 8px; font-size: 12px; }
  .ins-page .ins-list { margin-top: 12px; }
  .ins-page .ins-tools { margin-top: 18px; }
  .ins-page .ins-controls { display: block; }
  .ins-page .ins-controls .ins-scroll {
    width: 100%;
    flex: none;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .ins-page .ins-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ins-page .ins-bar-filters { display: contents; }
  .ins-page .ins-region { order: 1; width: 100%; }
  .ins-page .ins-bar .ins-search { order: 2; width: 100%; max-width: none; }
  .ins-page .ins-country { order: 3; width: 100%; }
  .ins-page .ins-region select,
  .ins-page .ins-country select,
  .ins-page .ins-tools .ins-search input {
    width: 100%;
    max-width: none;
  }
  .ins-page .ins-filter-btn { display: none; }
  .ins-sheet .ins-sheet-topics { display: none; }
  .ins-sheet .ins-sheet-topics + .ins-sheet-k { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ins-card,
  .ins-page .ins-list > a.ins { transition: none; }
  .ins-card:hover,
  .ins-page .ins-list > a.ins:hover { transform: none; }
}

/* Guides sit in their own band, after Highlighted and before the filters. */
.ins-guides {
  margin-top: 32px;
  padding: 36px 0 32px;
  background: #f3efe8;
  scroll-margin-top: 96px;
}
.ins-guides-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
}
.ins-guides-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.ins-guides-foot {
  display: flex;
  justify-content: center;
  /* Painted gap above the pill equals the band's 32px bottom padding:
     24px here plus the row's 8px bottom padding. */
  margin-top: 24px;
}
/* Solid green bubble CTA under the guide cards, centred by .ins-guides-foot. */
.ins-guides-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--meadow);
  border-radius: 999px;
  background: var(--meadow);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}
.ins-guides-more:hover { background: #283f09; border-color: #283f09; color: #fff; }
.ins-guides-stage { position: relative; }
.ins-guides-row {
  display: flex;
  /* Stretch every card to the tallest, so the Download buttons share one
     baseline (.ins-guide-dl is pinned with margin-top:auto). */
  align-items: stretch;
  gap: 18px;
  margin-top: 26px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
}
.ins-guides-row::-webkit-scrollbar { display: none; }
.ins-guides-row > .ins-guide {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  /* .ins-guide sets height:100%, which defeats the row's stretch and left the
     shorter cards floating above the foot pill. height:auto lets stretch
     level every card, so the pill sits a uniform distance under the row. */
  height: auto;
}
.gcar-btn {
  position: absolute;
  top: 32%;
  z-index: 3;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--meadow);
  box-shadow: 0 8px 24px rgba(16, 20, 16, .18);
  cursor: pointer;
}
.gcar-btn:hover { background: var(--bone); }
.gcar-btn:disabled { opacity: .38; cursor: default; }
.gcar-btn[hidden] { display: none; }
.gcar-prev { left: -14px; }
.gcar-next { right: -14px; }
.ins-guide {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.ins-guide-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 168px;
  overflow: hidden;
  background: #1a1f16;
}
.ins-guide-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ins-guide-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}
.ins-guide-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ins-guide-title {
  margin: 10px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(20px, 1.4vw, 23px);
  line-height: 1.2;
  color: var(--ink);
}
.ins-guide-title a {
  color: inherit;
  text-decoration: none;
}
.ins-guide-title a:hover { color: var(--meadow); }
.ins-guide-dek {
  margin: 10px 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}
.ins-guide-dl {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--meadow);
  border-radius: 999px;
  background: transparent;
  color: var(--meadow);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.ins-guide-dl:hover {
  background: var(--meadow);
  color: #fff;
}
.ins-guides + .wrap { padding-top: 28px; }
.ins-guides + .wrap .ins-tools { margin-top: 0; }

/* A hairline and the section header separate the filters from the notes grid. */
.ins-latest {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
/* Same hierarchy as the Guides band header: small-caps label, then a serif title. */
.ins-latest-h {
  margin: 0;
  max-width: 18ch;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
@media (min-width: 1024px) {
  .ins-latest { margin-top: 48px; padding-top: 36px; }
}

/* The email band is one centred column: heading, line, then the form. */
.sub-band {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

/* Full-bleed dusk skyline behind the email band, under a dark shade so the
   white type stays readable and the band stands apart from the green footer. */
.sub-photo-band { background: #0d1705; }
.sub-band-photo { position: absolute; inset: 0; z-index: 0; margin: 0; }
.sub-band-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 42%;
}
.sub-band-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 16, 4, .86) 0%, rgba(12, 21, 6, .8) 52%, rgba(6, 11, 3, .92) 100%);
}
.sub-photo-band .hollow { z-index: 2; opacity: .18; }
.sub-photo-band > .wrap { z-index: 3; }
.sub-band .lead { margin: 18px 0 0; }
.sub-form { margin-top: 34px; }
.sub-form-row { display: flex; gap: 12px; }
.sub-form-fld { flex: 1 1 auto; min-width: 0; }
.sub-form-fld .fld { width: 100%; }
@media (max-width: 639px) {
  .sub-form { margin-top: 28px; }
  .sub-form-row { flex-direction: column; }
  .sub-form-row .btn { width: 100%; justify-content: center; }
}

@media (max-width: 767px) {
  .ins-guides { margin-top: 22px; padding: 28px 0 24px; }
  .ins-guides-foot { margin-top: 16px; }
  .ins-guides-title { font-size: 26px; }
  .ins-guides-row {
    gap: 12px;
    margin-top: 18px;
  }
  .ins-guides-row > .ins-guide { flex-basis: 78vw; }
  .gcar-btn { width: 40px; height: 40px; }
  .ins-guide-cover { min-height: 148px; }
  .ins-guide-dek { font-size: 15px; }
}

/* Globe CTA at the top of Insights. Full-colour Earth at night over the Americas, dark on the left. */
.globe-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #141a10;
  min-height: 520px;
}
.globe-cta .ph-img {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  background: #141a10;
}
.globe-cta .ph-img img { object-position: 68% 46%; }
.globe-cta .ph-img:hover img { transform: none; }
.globe-cta-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 14, 8, .92) 0%, rgba(10, 14, 8, .78) 28%, rgba(10, 14, 8, .42) 52%, rgba(10, 14, 8, .12) 78%, rgba(10, 14, 8, .05) 100%);
}
.globe-cta-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 520px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.globe-cta h2 {
  margin: 0;
  max-width: 9.2em;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, calc(24.06px + 1.524vw), 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.globe-cta p {
  margin: 16px 0 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  line-height: 1.5;
}
.globe-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
}
.globe-find { position: relative; flex: 1 1 260px; max-width: 320px; }
.globe-find select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
}
.globe-find::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--meadow);
  border-bottom: 1.6px solid var(--meadow);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.globe-cta .btn { flex: none; }
@media (max-width: 699px) {
  .globe-cta, .globe-cta-in { min-height: 0; }
  .globe-cta-in { padding-top: 56px; padding-bottom: 48px; }
  .globe-cta-shade {
    background: linear-gradient(180deg, rgba(10, 14, 8, .55) 0%, rgba(10, 14, 8, .82) 42%, rgba(10, 14, 8, .9) 100%);
  }
  .globe-cta .ph-img img { object-position: 50% 28%; }
  .globe-find, .globe-cta .btn { flex: 1 1 100%; max-width: none; }
  .globe-cta .btn { justify-content: center; }
}

