#main > .affgate-home {
  --content-gutter: 20px;
  --main-gutter: clamp(24px, 4vw, 64px);
  margin-inline: max(calc(var(--content-gutter) - var(--main-gutter)), calc((100% - 1500px) / 2));
  margin-top: -18px;
}
.home-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 25px;
}
.home-title { align-self: start; padding-top: 21px; }
#main > .affgate-home .home-title h1 {
  font: 600 clamp(28px, 3vw, 40px)/1.3 var(--ref-font);
  margin: 0 0 20px;
}
.home-title > p { font-size: 18px; line-height: 1.4; margin: 0 0 22px; color: #242a33; }
.home-search {
  display: flex;
  align-items: center;
  height: 50px;
  width: 100%;
  gap: 8px;
  border: 1px solid #b9bfc6;
  border-radius: 5px;
  background: #fff;
  padding: 0 9px;
}
.home-search:focus-within { border-color: #727d89; }
.home-search input {
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  border: 0;
  outline: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--ref-ink);
  font-size: 14px;
}
.home-search input::placeholder { color: #737d8c; opacity: 1; }
.home-search-submit {
  display: grid;
  place-items: center;
  padding: 0;
  height: 34px;
  width: 32px;
  flex: 0 0 32px;
  background: none;
  border: 0;
  color: #a7b0bc;
}
.home-search-submit .ag-nav-icon { width: 26px; height: 26px; stroke-width: 1.2; }
.home-search-submit:hover { color: var(--ref-accent); }
.home-search kbd { background: #f0f0f0; border-radius: 5px; padding: 6px 10px; color: #737d8c; font: 400 12px/1.3 var(--ref-font); }
.home-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.affgate-home .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 49px;
  max-width: 100%;
  gap: 6px;
  padding: 10px 30px;
  border: 2px solid #c4c4c4;
  border-radius: 3px;
  color: var(--ref-ink);
  background: var(--ref-paper);
}
.affgate-home .home-button:hover { border-color: var(--ref-accent); color: var(--ref-accent); }
.affgate-home .home-button--primary {
  color: white;
  border-color: var(--ref-accent);
  background: var(--ref-accent);
  font-weight: 600;
}
.affgate-home .home-button--primary:hover { color: white; background: #8d211e; border-color: #8d211e; }
.home-title .home-resident { display: flex; gap: 5px; align-items: baseline; font-size: 14px; margin: 17px 0 0; }
.home-resident i, .home-resident a, .home-method { color: var(--ref-accent); }
.affgate-home .home-resident a { text-decoration: underline; }

.home-spotlight { min-width: 0; }
.home-spotlight-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 485px;
  padding: 20px 30px 28px;
  background: var(--ref-paper);
  border-radius: 16px;
  color: #19212a;
}
.home-spotlight-panel[hidden] { display: none; }
.home-spotlight-header { display: grid; grid-template-columns: auto minmax(0,1fr) max-content; align-content: start; align-items: start; gap: 11px; }
#main > .affgate-home .home-spotlight-header h2 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 1px 0 1px; }
.home-spotlight-header a { color: #727b8a; text-decoration: underline; font-size: 13px; }
.home-spotlight-header a:hover { color: var(--ref-accent); }
.home-spotlight-change { display: grid; text-align: right; align-items: start; color: #647082; font-size: 12px; }
.home-spotlight-change strong { font-size: 23px; line-height: 1.2; }
.home-spotlight-chart { height: 214px; position: relative; margin: 26px 0 22px; }
.home-spotlight-chart canvas { max-width: 100%; }
.home-spotlight-meta {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  align-items: end;
  gap: 15px 20px;
  margin-top: auto;
}
.home-spotlight-meta > div > span:first-child, .home-index > span { display: block; color: #646d77; font-size: 14px; }
.home-spotlight-program { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 18px; font-weight: 500; }
.home-spotlight-program img { border-radius: 3px; }
.home-spotlight-program:hover, .home-spotlight-flags a:hover { color: var(--ref-accent); }
.home-spotlight-rates, .home-spotlight-flags { display: flex; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; gap: 5px; margin: 4px 0 0; }
.home-spotlight-rates li { background: #eee; border-radius: 3px; padding: 5px 8px; line-height: 1.4; }
.home-spotlight-flags li, .home-spotlight-flags img { display: block; }
.home-spotlight-flags img { border-radius: 2px; object-fit: cover; }
.home-spotlight-index { display: flex; align-items: end; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.home-spotlight-index .home-badge { min-width: min(100%,149px); }
.home-index strong { font-size: 24px; font-weight: 600; line-height: 1.3; }
.home-index small { font-size: 14px; font-weight: normal; margin-left: 2px; }
.home-index > span { margin-bottom: 2px; }
.home-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; background: #fdf2d9; color: #946309; padding: 4px 10px; border-radius: 4px; font-size: 14px; }
.home-badge i { flex: 0 0 auto; width: 7px; height: 7px; border-right: 2px solid; border-top: 2px solid; transform: rotate(45deg); }
.home-badge--allow { background: #edfdf1; color: #008c37; }
.home-badge--block { background: #fff1f0; color: #b3312c; }
.home-spotlight-select { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; overflow-x: auto; padding: 0 0 2px; overscroll-behavior-inline: contain; }
.home-spotlight-select button { display: block; flex: 0 1 69px; min-width: 48px; padding: 0 0 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; opacity: .63; }
.home-spotlight-select img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.home-spotlight-select button:is(:hover,[aria-pressed="true"],:focus-visible) { opacity: 1; }
.home-spotlight-select button[aria-pressed="true"] { border-color: #ffba37; }

.home-statistics {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}
.home-totals {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  border-radius: 6px;
  background: var(--ref-paper);
}
.home-totals > * { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 22px 10px; color: #626c78; font-size: 14px; line-height: 1.15; }
.home-totals a:hover { color: var(--ref-accent); }
.home-totals strong { display: block; color: #b92c2c; font-size: 32px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.home-count-value { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; }
.home-count-rise { color: #087c43; font-size: 14px; font-weight: 600; white-space: nowrap; }
.home-icon { display: inline-grid; flex: 0 0 auto; width: 65px; height: 65px; place-items: center; border-radius: 8px; background: #f4f4f4; color: #999; }
.home-icon svg { width: 37px; height: 37px; }
.home-topics .home-icon svg { width: 33px; height: 33px; }
.home-icon--red { background: #ffe2e2; color: #b82927; }
.home-icon--green { background: #d7fee8; color: #169548; }
.home-icon--amber { background: #fff4dc; color: #eeae30; }
.home-icon--blue { background: #e3f2ff; color: #347fb3; }

.home-section { margin: 0 0 32px; scroll-margin-top: 85px; }
#main > .affgate-home .home-section h2 { color: #3f3f3f; font-size: 22px; line-height: 1.3; margin: 0 0 6px; }
#main > .affgate-home .home-topic-section h2 { text-align: center; margin-bottom: 22px; }
.home-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.home-topics article, .home-programs article, #catalog-results .home-grid > div { background: var(--ref-paper); border-radius: 12px; padding: 24px; }
.home-topics article { border: 2px solid #ebebeb; }
#main > .affgate-home .home-topics h3 { font-size: 16px; margin: 8px 0 12px; }
.home-links { margin: 0; padding: 0; list-style: none; }
.home-topics li { padding-left: 13px; position: relative; margin: 0 0 5px; }
.home-topics li::before { content: ""; width: 6px; height: 6px; background: var(--topic-color); border-radius: 50%; position: absolute; top: .52em; left: 0; }
.home-topics article:nth-child(1) { --topic-color: #b82927; }
.home-topics article:nth-child(2) { --topic-color: #169548; }
.home-topics article:nth-child(3) { --topic-color: #a06709; }
.home-topics article:nth-child(4) { --topic-color: #347fb3; }
.home-topics .home-topic-links a { color: var(--topic-color); }
.home-topics a, #catalog-results .home-links a { text-decoration: underline; }
.home-topics a:hover, #catalog-results .home-links a:hover { color: var(--ref-accent); }
.home-topic-links { margin: 14px 0 0; font-size: 14px; }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; margin: 0 0 10px; }
.home-heading p { max-width: 75%; margin: 0; }
.affgate-home .home-button--small { min-height: 37px; padding: 6px 15px; border-width: 1px; border-radius: 5px; flex: 0 0 auto; }
#home-trends .trend-geo { margin-top: 18px; }
#home-trends .trend-geos a { text-decoration: none; }
.home-programs h3 { margin: 0 0 4px; font-size: 16px; }
.home-programs h3 a { display: flex; align-items: center; gap: 6px; min-height: 50px; }
.home-programs h3 a:hover { color: var(--ref-accent); }
.home-programs img { border-radius: 4px; flex: 0 0 auto; }
.home-programs .home-index span { font-size: 13px; }
.home-programs .home-badge { margin: 5px 0; }
.home-programs dl, .home-programs p { margin: 0; font-size: 14px; }
.home-programs dl div { display: flex; gap: 5px; }
.home-programs dt, .home-programs .home-program-date { color: #646d77; }
.home-programs dd { margin: 0; }
.home-programs .home-commissions { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-programs .home-program-date { margin-top: 4px; }
.affgate-home .home-method { display: block; text-align: right; margin-top: 7px; font-size: 14px; }
.affgate-home .home-method:hover { text-decoration: underline; }
.home-industry { background: var(--ref-paper); border-radius: 12px; padding: 15px; }
#main > .affgate-home .home-industry > h2 { margin-bottom: 20px; font-size: 20px; text-align: center; }
.home-industry .ci-timeline { margin-bottom: 0; }
.home-industry > .home-button { display: flex; margin: 10px auto 0; }
#home-guides { scroll-margin-top: 85px; }

@media (max-width: 1200px) {
  #main > .affgate-home { --main-gutter: 26px; margin-top: -12px; }
  .home-intro { gap: 20px; }
  .home-spotlight-panel { padding-inline: 20px; }
  .home-totals > * { gap: 9px; }
  .home-totals .home-icon { width: 49px; height: 49px; }
  .home-totals strong { font-size: 26px; }
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-totals { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-totals > * { padding-block: 14px; }
}
@media (max-width: 760px) {
  #main > .affgate-home { --content-gutter: 15px; --main-gutter: 18px; margin-top: -4px; }
  .home-intro { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-title { padding-top: 6px; }
  #main > .affgate-home .home-title h1 { font-size: 21px; }
  .home-actions { flex-direction: column; align-items: start; }
  .home-spotlight-panel { min-height: 0; padding: 14px 15px 20px; }
  .home-spotlight-header { gap: 5px; }
  .home-spotlight-change strong { font-size: 20px; }
  .home-spotlight-chart { height: 194px; margin: 30px 0 20px; }
  .home-spotlight-meta { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; gap: 17px; }
  .home-spotlight-index { flex-direction: column; align-items: start; gap: 7px; }
  .home-spotlight-index .home-badge { width: 100%; }
  .home-badge { flex-direction: column; gap: 4px; padding-block: 7px; }
  .home-index strong { font-size: 21px; }
  .home-spotlight-select { gap: 0; justify-content: start; padding-bottom: 4px; margin-top: 18px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .home-spotlight-select button { flex: 0 0 25%; min-width: 0; padding: 0 8px 6px; scroll-snap-align: start; }
  .home-spotlight-select img { width: min(100%, 69px); margin-inline: auto; }
  .home-totals { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 30px; padding: 25px 15px; }
  .home-totals > * { flex-direction: column; gap: 3px; align-items: center; padding: 0; text-align: center; }
  .home-count-value { justify-content: center; }
  .home-totals .home-icon { width: 100%; height: 65px; }
  .home-totals strong { font-size: 24px; }
  .home-totals a:first-child > span:last-child { max-width: 110px; }
  .home-heading { flex-wrap: wrap; }
  .home-heading p { max-width: none; }
  .home-topics article { padding: 15px; }
  .home-topics .home-icon { width: 100%; }
  .home-programs article { padding: 25px; }
}
@media (max-width: 480px) {
  .home-grid { grid-template-columns: minmax(0,1fr); }
}
