.ipwh-sitemap-page,
.ipwh-sitemap-page * {
  box-sizing: border-box;
}

.ipwh-sitemap-page {
  --ipwh-sitemap-ink: #111827;
  --ipwh-sitemap-muted: #5f6f86;
  --ipwh-sitemap-line: #d9e1ec;
  --ipwh-sitemap-soft: #f5f7fa;
  --ipwh-sitemap-brand: #81221f;
  color: var(--ipwh-sitemap-ink);
  background: #fff;
  font-family: Arial, sans-serif;
}

.ipwh-sitemap-wrap {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.ipwh-sitemap-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 76px;
  color: #fff;
  background-color: #0f172a;
  background-image:
    linear-gradient(90deg, rgba(8,16,31,.97) 0%, rgba(13,22,39,.9) 48%, rgba(62,22,32,.55) 76%, rgba(82,24,31,.28) 100%),
    url("../images/resources/ipwh-sitemap-hero-background.webp");
  background-position: center;
  background-size: cover;
}

.ipwh-sitemap-hero-content {
  max-width: 920px;
  padding-top: 48px;
}

.ipwh-sitemap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ipwh-sitemap-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #72e0ac;
  content: "";
}

.ipwh-sitemap-hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.ipwh-sitemap-hero p {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.ipwh-sitemap-hero-actions,
.ipwh-sitemap-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ipwh-sitemap-hero-actions { margin-top: 28px; }
.ipwh-sitemap-hero-meta { margin-top: 26px; }

.ipwh-sitemap-hero-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.ipwh-sitemap-hero-btn:hover { transform: translateY(-2px); }
.ipwh-sitemap-hero-btn-primary { background: #fff; color: var(--ipwh-sitemap-brand); }
.ipwh-sitemap-hero-btn-secondary { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; }
.ipwh-sitemap-hero-meta span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700; }

.ipwh-sitemap-tasks {
  padding: 52px 0;
  border-bottom: 1px solid var(--ipwh-sitemap-line);
  background: #fff;
}

.ipwh-sitemap-tasks-head { margin-bottom: 24px; }
.ipwh-sitemap-tasks-head h2 { max-width: 760px; margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.ipwh-sitemap-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ipwh-sitemap-task {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 104px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--ipwh-sitemap-line);
  border-radius: 16px;
  color: var(--ipwh-sitemap-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ipwh-sitemap-task:hover { border-color: #d8a9a7; box-shadow: 0 14px 30px rgba(15,23,42,.08); transform: translateY(-2px); }
.ipwh-sitemap-task-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 13px; background: #f8eaea; color: var(--ipwh-sitemap-brand); font-size: 20px; }
.ipwh-sitemap-task strong, .ipwh-sitemap-task small { display: block; }
.ipwh-sitemap-task strong { margin-bottom: 5px; font-size: 16px; line-height: 1.2; }
.ipwh-sitemap-task small { color: var(--ipwh-sitemap-muted); font-size: 12px; line-height: 1.45; }
.ipwh-sitemap-task > span:last-child { color: var(--ipwh-sitemap-brand); font-size: 20px; }

.ipwh-sitemap-directory {
  padding: 72px 0 88px;
  background: var(--ipwh-sitemap-soft);
}

.ipwh-sitemap-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.ipwh-sitemap-eyebrow { display: block; margin-bottom: 10px; color: var(--ipwh-sitemap-brand); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ipwh-sitemap-directory h2 { max-width: 720px; margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.ipwh-sitemap-directory-head p { margin: 12px 0 0; color: var(--ipwh-sitemap-muted); font-size: 16px; line-height: 1.65; }

.ipwh-sitemap-search-label { display: block; margin-bottom: 9px; color: var(--ipwh-sitemap-ink); font-size: 13px; font-weight: 800; }
.ipwh-sitemap-search-box { position: relative; }
.ipwh-sitemap-search-icon { position: absolute; top: 50%; left: 17px; color: var(--ipwh-sitemap-brand); transform: translateY(-50%); }
.ipwh-sitemap-search {
  width: 100%;
  min-height: 54px;
  padding: 0 48px 0 45px;
  border: 1px solid #cfd8e5;
  border-radius: 14px;
  background: #fff;
  color: var(--ipwh-sitemap-ink);
  font: inherit;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.ipwh-sitemap-search:focus { border-color: var(--ipwh-sitemap-brand); outline: 3px solid rgba(129,34,31,.12); }
.ipwh-sitemap-search-clear { position: absolute; top: 50%; right: 5px; display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #f3e8e8; color: var(--ipwh-sitemap-brand); font-size: 13px; font-weight: 800; cursor: pointer; transform: translateY(-50%); }
.ipwh-sitemap-search-clear.ipwh-sitemap-is-visible { display: block; }
.ipwh-sitemap-search-status { min-height: 20px; margin: 8px 2px 0; color: var(--ipwh-sitemap-muted); font-size: 13px; }

.ipwh-sitemap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ipwh-sitemap-card { min-width: 0; padding: 26px; border: 1px solid var(--ipwh-sitemap-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(15,23,42,.045); }
.ipwh-sitemap-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.ipwh-sitemap-card-icon { display: inline-flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border-radius: 13px; background: #f8eaea; color: var(--ipwh-sitemap-brand); font-size: 19px; }
.ipwh-sitemap-card h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.ipwh-sitemap-count { display: block; margin-top: 4px; color: var(--ipwh-sitemap-muted); font-size: 12px; font-weight: 700; }
.ipwh-sitemap-links { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ipwh-sitemap-links a { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 64px; padding: 10px 11px; border-radius: 9px; color: #26354a; font-size: 14px; line-height: 1.35; text-decoration: none; transition: color .18s ease, background .18s ease, transform .18s ease; }
.ipwh-sitemap-links a::after { flex: 0 0 auto; margin-top: 2px; color: #b97876; content: "\2192"; }
.ipwh-sitemap-links a > span[aria-hidden="true"] { display: none; }
.ipwh-sitemap-link-copy { display: grid; gap: 3px; min-width: 0; }
.ipwh-sitemap-link-title { color: #172033; font-weight: 700; }
.ipwh-sitemap-link-description { color: #66758a; font-size: 12px; font-weight: 400; line-height: 1.45; }
.ipwh-sitemap-links a.ipwh-sitemap-link-compact { align-items: center; min-height: 44px; padding-block: 7px; }
.ipwh-sitemap-links a:hover { background: #fff3f2; color: var(--ipwh-sitemap-brand); transform: translateX(2px); }
.ipwh-sitemap-links a:hover .ipwh-sitemap-link-title { color: var(--ipwh-sitemap-brand); }
.ipwh-sitemap-card-wide { grid-column: 1 / -1; }
.ipwh-sitemap-location-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ipwh-sitemap-location-group h4 { margin: 0 0 8px; color: var(--ipwh-sitemap-brand); font-size: 14px; }
.ipwh-sitemap-group-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 7px; padding: 7px 10px; border: 0; border-radius: 9px; background: #f8eaea; color: var(--ipwh-sitemap-brand); font: inherit; font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; }
.ipwh-sitemap-group-toggle:hover { background: #f2dcdc; }
.ipwh-sitemap-group-symbol { font-size: 20px; font-weight: 400; transition: transform .18s ease; }
.ipwh-sitemap-group-toggle[aria-expanded="true"] .ipwh-sitemap-group-symbol { transform: rotate(45deg); }
.ipwh-sitemap-location-group > .ipwh-sitemap-links[hidden] { display: none; }
.ipwh-sitemap-location-group .ipwh-sitemap-links { gap: 2px; }
.ipwh-sitemap-location-group .ipwh-sitemap-links a { min-height: 44px; padding-block: 7px; }
.ipwh-sitemap-no-results { display: none; grid-column: 1 / -1; padding: 42px; border: 1px dashed #bdc8d7; border-radius: 18px; background: #fff; color: var(--ipwh-sitemap-muted); text-align: center; }
.ipwh-sitemap-no-results.ipwh-sitemap-is-visible { display: block; }
.ipwh-sitemap-card[hidden], .ipwh-sitemap-location-group[hidden], .ipwh-sitemap-links li[hidden] { display: none; }

.ipwh-sitemap-hero-btn:focus-visible,
.ipwh-sitemap-task:focus-visible,
.ipwh-sitemap-links a:focus-visible,
.ipwh-sitemap-search-clear:focus-visible,
.ipwh-sitemap-group-toggle:focus-visible {
  outline: 3px solid #e9a8a5;
  outline-offset: 3px;
}

.ipwh-sitemap-cta { padding: 64px 0; background: linear-gradient(135deg, #101c2d, #351c29); color: #fff; }
.ipwh-sitemap-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.ipwh-sitemap-cta-eyebrow { display: block; margin-bottom: 7px; color: #f2aaa6; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.ipwh-sitemap-cta h2 { max-width: 760px; margin: 0 0 10px; color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.ipwh-sitemap-cta p { max-width: 720px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.ipwh-sitemap-cta-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.ipwh-sitemap-cta-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 11px; color: #fff; font-size: 15px; font-weight: 800; line-height: 1; text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ipwh-sitemap-cta-button-primary { border-color: #a83b37; background: var(--ipwh-sitemap-brand); box-shadow: 0 12px 28px rgba(129,34,31,.3); }
.ipwh-sitemap-cta-button-secondary { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.ipwh-sitemap-cta-button:hover { color: #fff; transform: translateY(-2px); }
.ipwh-sitemap-cta-button-primary:hover { border-color: #bd504b; background: #962925; box-shadow: 0 15px 32px rgba(129,34,31,.38); }
.ipwh-sitemap-cta-button-secondary:hover { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.12); }
.ipwh-sitemap-cta-button:focus-visible { outline: 3px solid #f0aaa6; outline-offset: 3px; }

@media (max-width: 980px) {
  .ipwh-sitemap-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipwh-sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipwh-sitemap-location-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ipwh-sitemap-directory-head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  .ipwh-sitemap-wrap { width: min(100% - 28px, 1240px); }
  .ipwh-sitemap-hero {
    padding: 24px 0 58px;
    background-image:
      linear-gradient(90deg, rgba(8,16,31,.95), rgba(28,19,34,.84)),
      url("../images/resources/ipwh-sitemap-hero-background.webp");
    background-position: 42% center;
  }
  .ipwh-sitemap-hero-content { padding-top: 34px; }
  .ipwh-sitemap-hero-actions { flex-direction: column; }
  .ipwh-sitemap-hero-btn { width: 100%; }
  .ipwh-sitemap-hero-meta span { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; }
  .ipwh-sitemap-tasks { padding: 42px 0; }
  .ipwh-sitemap-task-grid { grid-template-columns: 1fr; }
  .ipwh-sitemap-directory { padding: 54px 0 64px; }
  .ipwh-sitemap-grid, .ipwh-sitemap-location-groups { grid-template-columns: 1fr; }
  .ipwh-sitemap-card { padding: 21px; }
  .ipwh-sitemap-cta-inner { align-items: stretch; flex-direction: column; }
  .ipwh-sitemap-cta-actions { align-items: stretch; justify-content: flex-start; }
  .ipwh-sitemap-cta-button { flex: 1 1 210px; }
}

@media (max-width: 520px) {
  .ipwh-sitemap-cta-actions { flex-direction: column; }
  .ipwh-sitemap-cta-button { width: 100%; flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ipwh-sitemap-page * { scroll-behavior: auto !important; transition: none !important; }
}
