/* Local design previews only. The existing site remains the visual foundation. */
.ip-teaser {
  --ip-green: #004225;
  --ip-cream: #f5f1e8;
  --ip-paper: #fbf9f3;
  --ip-line: #d4d9ca;
  position: static;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid var(--ip-line);
  color: var(--ip-green);
  background: var(--ip-paper);
  font-family: var(--sans, Inter, Arial, sans-serif);
}

.ip-teaser *, .ip-teaser *::before, .ip-teaser *::after { box-sizing: border-box; }
.ip-teaser p, .ip-teaser h2 { margin: 0; }
.ip-teaser-inner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 205px 40px;
  align-items: center;
  column-gap: 24px;
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: 18px;
}
.ip-teaser-copy { min-width: 0; }
.ip-teaser-mark svg, .ip-teaser-action svg, .ip-teaser-close svg {
  display: block;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ip-teaser-mark { width: 42px; height: 42px; }
.ip-teaser-mark svg { width: 100%; height: 100%; }
.ip-teaser .ip-teaser-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 5px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ip-teaser-eyebrow span {
  border-left: 1px solid currentColor;
  padding-left: 11px;
  opacity: .58;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .09em;
}
.ip-teaser h2 {
  font-family: var(--serif, Cormorant, Georgia, serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.ip-teaser .ip-teaser-description { margin-top: 6px; font-size: 12px; line-height: 1.65; opacity: .8; }
.ip-teaser-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--ip-green);
  background: var(--ip-green);
  color: var(--ip-cream);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.ip-teaser-action svg { width: 21px; height: 21px; flex-shrink: 0; transition: transform .15s; }
.ip-teaser-action:hover { background: #0c5635; color: var(--ip-cream); }
.ip-teaser-action:hover svg { transform: translateX(3px); }
.ip-teaser-close {
  position: static;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.ip-teaser-close svg { width: 18px; height: 18px; }
.ip-teaser-close:hover { background: rgb(0 66 37 / 7%); }
.ip-teaser a:focus-visible, .ip-teaser button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Every variant occupies its own row between the header and the page content. */
/* A: a light, informative invitation on the site's warm paper background. */
.ip-teaser--a { background: var(--ip-paper); }
.ip-teaser--a .ip-teaser-mark { opacity: .8; }

/* B: a distinct green band, separated from the green header by a fine rule. */
.ip-teaser--b { background: var(--ip-green); color: var(--ip-cream); border-top: 1px solid #6e8068; border-bottom-color: #6e8068; }
.ip-teaser--b .ip-teaser-inner { padding-block: 23px; }
.ip-teaser--b .ip-teaser-mark { width: 42px; height: 42px; opacity: .9; }
.ip-teaser--b .ip-teaser-eyebrow { color: #e4dbbd; }
.ip-teaser--b .ip-teaser-description { opacity: .83; }
.ip-teaser--b .ip-teaser-action { background: var(--ip-cream); border-color: var(--ip-cream); color: var(--ip-green); }
.ip-teaser--b .ip-teaser-action:hover { background: #fffdf7; border-color: #fffdf7; }
.ip-teaser--b .ip-teaser-close:hover { background: rgb(245 241 232 / 10%); }

/* C: compact editorial copy and a quiet text link, with room to wrap. */
.ip-teaser--c { background: #eae9dc; }
.ip-teaser--c .ip-teaser-inner {
  grid-template-columns: 30px minmax(0, 1fr) 190px 40px;
  column-gap: 20px;
  padding-block: 13px;
}
.ip-teaser--c .ip-teaser-mark { width: 30px; height: 30px; opacity: .8; }
.ip-teaser--c .ip-teaser-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 15px; }
.ip-teaser--c .ip-teaser-eyebrow { width: 100%; margin: 0; font-size: 8px; letter-spacing: .12em; }
.ip-teaser--c h2 { font-size: 25px; line-height: 1.12; }
.ip-teaser--c .ip-teaser-description { flex: 1 1 330px; min-width: 0; margin: 0; font-size: 11px; line-height: 1.5; }
.ip-teaser--c .ip-teaser-action { min-height: 40px; padding: 8px 0 8px 16px; border: 0; border-left: 1px solid #b9c6b1; background: transparent; color: var(--ip-green); }
.ip-teaser--c .ip-teaser-action:hover { background: transparent; text-decoration: underline; }

/* The homepage invitation is shared across the three previews. */
.public-body .ip-home-callout { border-color: #bdcbb9; background: #eae9dc; }
.public-body .ip-home-callout .search-copy h2 { max-width: 430px; }
.public-body .ip-home-callout .search-actions > p { color: #365a45; max-width: 350px; }
.public-body .ip-home-callout .ip-home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 52px;
  padding: 14px 19px;
  margin-top: 18px;
  border: 1px solid #004225;
  background: #004225;
  color: #f5f1e8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}
.public-body .ip-home-callout .ip-home-link:hover { background: #0c5635; }
.public-body .ip-home-callout .ip-home-link .icon { width: 21px; height: 21px; }
.public-body .ip-home-callout .ip-home-note { margin-top: 12px; font-size: 10px; line-height: 1.6; color: #52675c; }

@media (max-width: 1050px) {
  .ip-teaser-inner { width: calc(100% - 64px); grid-template-columns: 36px minmax(0, 1fr) 185px 40px; column-gap: 18px; }
  .ip-teaser-mark, .ip-teaser--b .ip-teaser-mark { width: 36px; height: 36px; }
  .ip-teaser h2 { font-size: 28px; }
  .ip-teaser--c .ip-teaser-inner { grid-template-columns: minmax(0, 1fr) 180px 40px; column-gap: 18px; padding-block: 12px; }
  .ip-teaser--c .ip-teaser-mark { display: none; }
  .ip-teaser--c h2 { font-size: 24px; }
}

@media (max-width: 800px) {
  .ip-teaser .ip-teaser-inner,
  .ip-teaser--c .ip-teaser-inner {
    grid-template-columns: minmax(0, 1fr) 180px 40px;
    column-gap: 18px;
    width: calc(100% - 44px);
    padding-block: 16px;
  }
  .ip-teaser .ip-teaser-mark { display: none; }
  .ip-teaser .ip-teaser-copy { display: block; }
  .ip-teaser .ip-teaser-eyebrow { margin: 0 0 4px; font-size: 8px; }
  .ip-teaser h2 { font-size: 27px; line-height: 1.05; }
  .ip-teaser .ip-teaser-description { margin-top: 5px; font-size: 11px; line-height: 1.55; }
  .ip-teaser .ip-teaser-action { min-height: 43px; padding: 11px 13px; font-size: 11px; }
  .ip-teaser--c .ip-teaser-action { padding-inline: 14px 0; }
  .ip-teaser--c h2 { font-size: 24px; }
}

@media (max-width: 620px) {
  .ip-teaser .ip-teaser-inner { grid-template-columns: minmax(0, 1fr) 40px; gap: 8px 18px; padding-block: 12px; }
  .ip-teaser .ip-teaser-copy { grid-column: 1 / -1; }
  .ip-teaser h2 { font-size: 26px; line-height: 1.02; }
  .ip-teaser .ip-teaser-eyebrow { font-size: 8px; line-height: 1.35; }
  .ip-teaser .ip-teaser-action { grid-column: 1; justify-self: start; width: auto; min-height: 40px; gap: 22px; padding: 9px 13px; }
  .ip-teaser .ip-teaser-action svg { width: 18px; height: 18px; }
  .ip-teaser .ip-teaser-close { grid-column: 2; justify-self: end; }
  .ip-teaser--c .ip-teaser-inner { padding-block: 10px; gap: 5px 18px; }
  .ip-teaser--c h2 { font-size: 24px; }
  .ip-teaser--c .ip-teaser-action { min-height: 40px; padding: 8px 0; border: 0; }
}

@media (max-width: 360px) {
  .ip-teaser .ip-teaser-inner { width: calc(100% - 32px); }
  .ip-teaser h2 { font-size: 25px; }
  .ip-teaser--c h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .ip-teaser-action, .ip-teaser-action svg { transition: none; }
}
