:root {
  --goopuh-navy: #111827;
  --goopuh-yellow: #fbbf24;
  --goopuh-blue: #2563eb;
  --goopuh-red: #ef4444;
  --goopuh-green: #059669;
  --goopuh-gray: #6b7280;
  --goopuh-light: #f3f4f6;
  --goopuh-border: #e5e7eb;
}

.page-id-44 .entry-header,
.page-id-44 .entry-title,
.page-id-177 .entry-header,
.page-id-177 .entry-title {
  display: none;
}

.goopuh-resource-library,
.goopuh-estimate-page {
  width: min(var(--goopuh-content, 1600px), calc(100% - clamp(24px, 4vw, 72px)));
  margin: 48px auto 72px;
  color: var(--goopuh-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.goopuh-resource-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  color: #fff;
  text-align: center;
  background: var(--goopuh-navy);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.15);
}

.goopuh-resource-kicker {
  margin: 0 0 12px;
  color: var(--goopuh-yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.goopuh-resource-hero h1 {
  display: block !important;
  align-self: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-align: center !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  transform: none !important;
}

.goopuh-resource-hero h1 span {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  transform: none !important;
}

.goopuh-resource-hero > p:last-of-type {
  max-width: 760px;
  margin: 0 auto;
  color: #d1d5db;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
}

.goopuh-preview-section,
.goopuh-featured-section,
.goopuh-library-section {
  margin-top: clamp(48px, 7vw, 78px);
}

.goopuh-section-intro {
  max-width: 790px;
  margin-bottom: 24px;
}

.goopuh-section-eyebrow {
  margin: 0 0 7px;
  color: #9a6700;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.goopuh-section-intro h2 {
  margin: 0 0 9px;
  color: var(--goopuh-navy);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.goopuh-section-intro > p:last-child {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.65;
}

.goopuh-preview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.goopuh-preview-heading .goopuh-section-intro {
  margin-bottom: 0;
}

.goopuh-preview-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.goopuh-preview-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--goopuh-navy);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.goopuh-preview-control:hover,
.goopuh-preview-control:focus-visible {
  color: #fff;
  background: var(--goopuh-navy);
  border-color: var(--goopuh-navy);
  transform: translateY(-1px);
}

.goopuh-preview-control:disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: default;
  transform: none;
}

.goopuh-preview-carousel {
  overflow: hidden;
}

.goopuh-preview-track {
  display: grid;
  grid-auto-columns: calc((100% - 66px) / 4);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.goopuh-preview-track::-webkit-scrollbar {
  display: none;
}

.goopuh-preview-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--goopuh-border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  scroll-snap-align: start;
}

.goopuh-preview-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
  border-bottom: 1px solid var(--goopuh-border);
}

.goopuh-preview-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease;
}

.goopuh-preview-card__image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
  background: rgba(17, 24, 39, 0.9);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.24);
}

.goopuh-preview-card__image:hover img,
.goopuh-preview-card__image:focus-visible img {
  transform: scale(1.025);
}

.goopuh-preview-card__content {
  padding: 18px 20px 20px;
}

.goopuh-preview-card__content h3 {
  margin: 7px 0 10px;
  color: var(--goopuh-navy);
  font-size: 1.05rem;
  line-height: 1.3;
}

.goopuh-preview-card__content > a {
  color: #8a5a00 !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.goopuh-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.goopuh-resource-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--goopuh-border);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.07);
}

.goopuh-resource-card--featured {
  min-height: 285px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}

.goopuh-resource-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.goopuh-resource-badge,
.goopuh-resource-format {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.goopuh-resource-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 10px;
  color: #111827 !important;
  background: #d1d5db;
  border-radius: 999px;
}

.goopuh-resource-badge--electrician {
  color: var(--goopuh-navy);
  background: var(--goopuh-yellow);
}

.goopuh-resource-badge--hvac {
  background: #fca5a5;
}

.goopuh-resource-badge--general {
  background: #99f6e4;
}

.goopuh-resource-badge--plumbing {
  background: #93c5fd;
}

.goopuh-resource-badge--landscaping {
  background: #86efac;
}

.goopuh-resource-badge--cleaning {
  background: #c4b5fd;
}

.goopuh-resource-badge--painting {
  background: #fdba74;
}

.goopuh-resource-badge--roofing {
  background: #d1d5db;
}

.goopuh-resource-badge--handyman {
  background: #fde68a;
}

.goopuh-resource-badge--specialty {
  background: #fbcfe8;
}

.goopuh-resource-format {
  color: var(--goopuh-gray);
}

.goopuh-resource-format small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.goopuh-resource-card h3 {
  margin: 0 0 10px;
  color: var(--goopuh-navy);
  font-size: 1.45rem;
  line-height: 1.22;
}

.goopuh-resource-card p,
.goopuh-resource-card li {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.6;
}

.goopuh-resource-card p {
  margin: 0 0 22px;
}

.goopuh-resource-card ul {
  margin: 12px 0 24px;
  padding-left: 20px;
}

.goopuh-resource-card li + li {
  margin-top: 5px;
}

.goopuh-resource-accordions {
  display: grid;
  gap: 12px;
}

.goopuh-resource-accordion {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe1e8;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.04);
  scroll-margin-top: 20px;
}

.goopuh-resource-accordion > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  transition: background 150ms ease;
}

.goopuh-resource-accordion > summary::-webkit-details-marker {
  display: none;
}

.goopuh-resource-accordion > summary:hover,
.goopuh-resource-accordion > summary:focus-visible {
  background: #f8fafc;
}

.goopuh-resource-accordion__summary-copy {
  display: block;
}

.goopuh-resource-accordion__summary-copy strong,
.goopuh-resource-accordion__summary-copy small {
  display: block;
}

.goopuh-resource-accordion__summary-copy strong {
  color: var(--goopuh-navy);
  font-size: 1.15rem;
  line-height: 1.3;
}

.goopuh-resource-accordion__summary-copy small {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.goopuh-resource-accordion__count {
  padding: 6px 10px;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
  background: #f1f5f9;
  border-radius: 999px;
}

.goopuh-resource-accordion__icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.goopuh-resource-accordion__icon::before,
.goopuh-resource-accordion__icon::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--goopuh-navy);
  border-radius: 2px;
  transition: transform 160ms ease;
}

.goopuh-resource-accordion__icon::after {
  transform: rotate(90deg);
}

.goopuh-resource-accordion[open] .goopuh-resource-accordion__icon::after {
  transform: rotate(0deg);
}

.goopuh-resource-accordion[open] > summary {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.goopuh-resource-accordion__content {
  background: #fff;
}

.goopuh-resource-row {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) 105px 104px;
  align-items: center;
  gap: 18px;
  padding: 17px 22px;
  border-bottom: 1px solid #edf0f3;
}

.goopuh-resource-row:last-child {
  border-bottom: 0;
}

.goopuh-resource-row__content h4 {
  margin: 0 0 4px;
  color: var(--goopuh-navy);
  font-size: 1.03rem;
  line-height: 1.35;
}

.goopuh-resource-row__content p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.goopuh-resource-row__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 11px;
  color: var(--goopuh-navy) !important;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  background: var(--goopuh-yellow);
  border: 1px solid var(--goopuh-yellow);
  border-radius: 7px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.goopuh-resource-row__download:hover,
.goopuh-resource-row__download:focus-visible {
  color: var(--goopuh-navy) !important;
  background: #e8aa00;
  border-color: #e8aa00;
}

.goopuh-resource-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding: 12px 18px;
  color: var(--goopuh-navy) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  background: var(--goopuh-yellow);
  border: 2px solid var(--goopuh-yellow);
  border-radius: 8px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.goopuh-resource-button > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.goopuh-resource-button small {
  padding-left: 8px;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  border-left: 1px solid rgba(17, 24, 39, 0.28);
}

.goopuh-resource-button:hover,
.goopuh-resource-button:focus-visible {
  color: var(--goopuh-navy) !important;
  background: #e8aa00;
  border-color: #e8aa00;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
  transform: translateY(-1px);
}

.goopuh-resource-button--large {
  margin-top: 28px;
  padding: 15px 22px;
}

.goopuh-resource-note {
  margin-top: 36px;
  padding: 28px;
  background: var(--goopuh-light);
  border-left: 5px solid var(--goopuh-yellow);
  border-radius: 8px;
}

.goopuh-resource-note h2 {
  margin: 0 0 8px;
  color: var(--goopuh-navy);
  font-size: 1.35rem;
}

.goopuh-resource-note p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.goopuh-resource-note p + p {
  margin-top: 10px;
}

.goopuh-estimate-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.goopuh-estimate-features div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--goopuh-border);
  border-top: 4px solid var(--goopuh-yellow);
  border-radius: 10px;
}

.goopuh-estimate-features strong,
.goopuh-estimate-features span {
  display: block;
}

.goopuh-estimate-features strong {
  margin-bottom: 6px;
  color: var(--goopuh-navy);
  font-size: 1.12rem;
}

.goopuh-estimate-features span {
  color: #4b5563;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .goopuh-preview-track {
    grid-auto-columns: calc((100% - 22px) / 2);
  }

  .goopuh-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goopuh-resource-row {
    grid-template-columns: 116px minmax(0, 1fr) 95px 98px;
    gap: 13px;
  }
}

@media (max-width: 760px) {
  .goopuh-resource-library,
  .goopuh-estimate-page {
    width: min(100% - 20px, 1600px);
    margin-top: 20px;
    margin-bottom: 48px;
  }

  .goopuh-featured-grid,
  .goopuh-estimate-features {
    grid-template-columns: 1fr;
  }

  .goopuh-preview-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .goopuh-preview-track {
    grid-auto-columns: min(86%, 360px);
    gap: 14px;
  }

  .goopuh-preview-section,
  .goopuh-featured-section,
  .goopuh-library-section {
    margin-top: 46px;
  }

  .goopuh-resource-card {
    padding: 22px;
  }

  .goopuh-resource-card--featured {
    min-height: 0;
  }

  .goopuh-resource-card__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .goopuh-resource-button {
    width: 100%;
  }

  .goopuh-resource-accordion > summary {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 17px;
  }

  .goopuh-resource-accordion__count {
    display: none;
  }

  .goopuh-resource-accordion__summary-copy small {
    font-size: 0.8rem;
  }

  .goopuh-resource-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 17px;
  }

  .goopuh-resource-row__label {
    order: 1;
  }

  .goopuh-resource-row__content {
    order: 2;
  }

  .goopuh-resource-row .goopuh-resource-format {
    order: 3;
  }

  .goopuh-resource-row__download {
    order: 4;
    width: 100%;
    margin-top: 2px;
  }
}
