/* Suppress Cocoon's legacy top-page chrome only on the new front page. */
.gdg2-front .header-container,
.gdg2-front .notice-area,
.gdg2-front .appeal,
.gdg2-front .recommended,
.gdg2-front #carousel,
.gdg2-front #content-top,
.gdg2-front #sidebar,
.gdg2-front #breadcrumb,
.gdg2-front .breadcrumb,
.gdg2-front #footer {
  display: none !important;
}

.gdg2-front .mobile-menu-buttons,
.gdg2-front .mobile-footer-menu-buttons,
.gdg2-front #mobile-menu-buttons {
  display: none !important;
}

.gdg2-front #container,
.gdg2-front #content,
.gdg2-front #content-in,
.gdg2-front #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gdg2-front-shell {
  overflow: clip;
  background: var(--gdg2-bg);
}

.gdg2-masthead {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gdg2-gutter);
  border-bottom: 1px solid var(--gdg2-line);
  background: rgba(245, 245, 242, 0.94);
  backdrop-filter: blur(0.8rem);
}

.gdg2-wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.42rem;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.gdg2-wordmark__dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--gdg2-accent);
  box-shadow: 0 0 0 1px rgba(17, 18, 15, 0.35);
}

.gdg2-masthead__nav {
  display: flex;
  gap: clamp(0.85rem, 3vw, 2rem);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.11em;
}

.gdg2-masthead__nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.gdg2-hero {
  display: grid;
  min-height: min(52rem, calc(100svh - 4.5rem));
  align-items: stretch;
  background: var(--gdg2-dark);
  color: #fff;
}

.gdg2-hero__media {
  min-height: 50svh;
  overflow: hidden;
}

.gdg2-hero__media a,
.gdg2-hero__media img {
  width: 100%;
  height: 100%;
}

.gdg2-hero__media img {
  object-fit: cover;
}

.gdg2-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 6.5rem) var(--gdg2-gutter);
}

.gdg2-hero__copy .gdg2-eyebrow,
.gdg2-hero__copy h1,
.gdg2-hero__copy a {
  color: #fff;
}

.gdg2-hero__copy h1 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 10vw, 7rem);
}

.gdg2-hero__excerpt {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.gdg2-hero .gdg2-channel-link--blog {
  color: var(--gdg2-accent-ink);
}

.gdg2-section {
  padding: clamp(4rem, 10vw, 9rem) var(--gdg2-gutter);
}

.gdg2-video-section {
  background: var(--gdg2-surface);
}

.gdg2-video-rail {
  display: grid;
  grid-auto-columns: min(84vw, 25rem);
  grid-auto-flow: column;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-right: calc(var(--gdg2-gutter) * -1);
  padding-left: 0.1rem;
  padding-right: var(--gdg2-gutter);
  padding-bottom: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0.1rem var(--gdg2-gutter);
  scroll-snap-type: inline mandatory;
  touch-action: pan-x pan-y;
  scrollbar-color: var(--gdg2-ink) transparent;
}

.gdg2-video-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.gdg2-video-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--gdg2-radius-lg);
  background: var(--gdg2-dark);
}

.gdg2-video-card__image img,
.gdg2-video-card__image .gdg2-media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.gdg2-video-card:hover .gdg2-video-card__image img {
  transform: scale(1.025);
}

.gdg2-video-card__play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: var(--gdg2-accent);
  color: var(--gdg2-accent-ink);
  font-size: 0.9rem;
  box-shadow: var(--gdg2-shadow);
}

.gdg2-video-card__kind {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(15, 16, 13, 0.76);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(0.45rem);
}

.gdg2-video-card__body {
  padding: 1.25rem 0 0;
}

.gdg2-video-card__meta {
  margin-bottom: 0.65rem;
  color: var(--gdg2-muted);
  font-size: 0.72rem;
}

.gdg2-video-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.gdg2-video-card h3 a {
  text-decoration: none;
}

.gdg2-video-card__summary {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 0;
  overflow: hidden;
  color: var(--gdg2-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gdg2-video-card .gdg2-channel-links {
  gap: 0.4rem;
  margin-top: 1rem;
}

.gdg2-video-card .gdg2-channel-link {
  min-height: 2.75rem;
  padding-right: 0.78rem;
  padding-left: 0.78rem;
  font-size: 0.64rem;
}

.gdg2-latest-section {
  background: var(--gdg2-bg);
}

.gdg2-review-stream {
  display: grid;
  gap: clamp(3.5rem, 9vw, 8rem);
}

.gdg2-review-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.gdg2-review-row__media {
  display: block;
  min-height: 18rem;
  overflow: hidden;
  border-radius: var(--gdg2-radius-lg);
  background: var(--gdg2-dark);
  box-shadow: var(--gdg2-shadow);
}

.gdg2-review-row__media img,
.gdg2-review-row__media .gdg2-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.gdg2-review-row__copy {
  max-width: var(--gdg2-reading);
}

.gdg2-review-row__copy h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 7vw, 4.6rem);
}

.gdg2-review-row__copy h3 a {
  text-decoration: none;
}

.gdg2-review-row__copy > p:not(.gdg2-eyebrow) {
  color: var(--gdg2-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.gdg2-front-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--gdg2-gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gdg2-dark);
  color: rgba(255, 255, 255, 0.72);
}

.gdg2-front-footer p {
  margin: 0;
}

.gdg2-front-footer a {
  color: #fff;
}

.gdg2-empty-state {
  display: grid;
  min-height: 60svh;
  place-items: center;
  padding: var(--gdg2-gutter);
  background: var(--gdg2-dark);
  color: #fff;
}

@media (min-width: 48rem) {
  .gdg2-masthead {
    min-height: 5.25rem;
  }

  .gdg2-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 0.8fr);
  }

  .gdg2-hero__media {
    min-height: calc(100svh - 5.25rem);
  }

  .gdg2-video-rail {
    grid-auto-columns: min(41vw, 29rem);
    gap: 1.5rem;
  }

  .gdg2-review-row {
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
    gap: clamp(3rem, 8vw, 8rem);
  }

  .gdg2-review-row--media-right .gdg2-review-row__media {
    order: 2;
  }

  .gdg2-review-row--media-right .gdg2-review-row__copy {
    order: 1;
    justify-self: end;
  }
}

@media (min-width: 75rem) {
  .gdg2-video-rail {
    grid-auto-columns: min(31vw, 31rem);
  }
}

@media (max-width: 24.375rem) {
  .gdg2-masthead {
    min-height: 4rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .gdg2-masthead__nav {
    gap: 0.7rem;
    font-size: 0.61rem;
  }

  .gdg2-masthead__nav a:nth-child(2) {
    display: none;
  }

  .gdg2-hero {
    min-height: auto;
  }

  .gdg2-hero__media {
    min-height: 44svh;
  }

  .gdg2-hero__copy {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .gdg2-hero__copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  .gdg2-section {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .gdg2-video-rail {
    grid-auto-columns: 86vw;
  }

  .gdg2-video-card__body {
    padding: 1rem 0 0;
  }

  .gdg2-video-card .gdg2-channel-link {
    min-width: calc(50% - 0.25rem);
  }

  .gdg2-review-row__copy h3 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }
}

@media (min-width: 80rem) {
  .gdg2-section-heading,
  .gdg2-review-stream {
    max-width: 92rem;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 30rem) {
  .gdg2-masthead__nav a:nth-child(2) {
    display: none;
  }
}

/* Phase 2.4: compact first screen and expose more than one content path. */
.gdg2-brand-banner {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--gdg2-line);
  background: #fff;
  text-decoration: none;
}

.gdg2-brand-banner picture,
.gdg2-brand-banner img {
  display: block;
  width: 100%;
}

.gdg2-brand-banner img {
  height: clamp(7rem, 10vw, 9rem);
  object-fit: contain;
  object-position: center;
}

.gdg2-hero {
  min-height: 0;
}

.gdg2-hero__media {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.gdg2-hero__copy {
  padding: clamp(1.5rem, 4vw, 3.25rem) var(--gdg2-gutter);
}

.gdg2-hero__copy h1 {
  max-width: 20ch;
  margin-bottom: 0.8rem;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.gdg2-hero__excerpt {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  font-size: clamp(0.88rem, 1.7vw, 1.05rem);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gdg2-hero .gdg2-channel-links {
  margin-top: 1rem;
}

.gdg2-discovery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--gdg2-line);
  background: var(--gdg2-bg);
}

.gdg2-discovery a {
  display: grid;
  min-width: 0;
  min-height: 6.6rem;
  align-content: center;
  gap: 0.16rem;
  padding: 1rem var(--gdg2-gutter);
  border-right: 1px solid var(--gdg2-line);
  color: var(--gdg2-ink);
  text-decoration: none;
}

.gdg2-discovery a:last-child {
  border-right: 0;
}

.gdg2-discovery span,
.gdg2-discovery small {
  color: var(--gdg2-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.gdg2-discovery strong {
  overflow-wrap: anywhere;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  letter-spacing: 0.05em;
}

.gdg2-section {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.gdg2-section-heading {
  margin-bottom: clamp(1.7rem, 4vw, 3rem);
}

.gdg2-section-heading h2 {
  font-size: clamp(2.15rem, 7vw, 5rem);
}

@media (min-width: 48rem) {
  .gdg2-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
    max-height: 38rem;
  }

  .gdg2-hero__media {
    aspect-ratio: 16 / 10;
    max-height: 38rem;
  }

  .gdg2-hero__copy {
    max-height: 38rem;
  }
}

@media (max-width: 40rem) {
  .gdg2-brand-banner img {
    height: 5.8rem;
    object-fit: cover;
  }

  .gdg2-hero__media {
    aspect-ratio: 16 / 8.2;
  }

  .gdg2-hero__copy h1 {
    font-size: clamp(1.72rem, 7.4vw, 2.35rem);
  }

  .gdg2-hero__excerpt {
    -webkit-line-clamp: 1;
  }

  .gdg2-discovery a {
    min-height: 5.4rem;
    padding: 0.78rem 0.65rem;
  }

  .gdg2-discovery small {
    display: none;
  }
}

/* Phase 2.5: compact identity, denser first view, and a real WP search form. */
.gdg2-brand-banner {
  display: grid;
  min-height: 0;
  place-items: center;
  gap: 0.18rem;
  padding: 0.35rem var(--gdg2-gutter) 0.5rem;
}

.gdg2-brand-banner img {
  width: auto;
  max-width: min(92vw, 52rem);
  height: clamp(4rem, 6.2vw, 5.5rem);
  object-fit: contain;
}

.gdg2-brand-banner > span {
  color: var(--gdg2-muted);
  font-size: clamp(0.62rem, 1.1vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.gdg2-brand-banner > span b {
  color: var(--gdg2-accent);
  font-weight: 700;
}

.gdg2-hero__copy {
  padding-top: clamp(1.15rem, 2.6vw, 2.1rem);
  padding-bottom: clamp(1.25rem, 2.8vw, 2.25rem);
}

.gdg2-hero__copy h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
}

.gdg2-hero .gdg2-channel-link {
  min-height: 2.45rem;
  padding: 0.48rem 0.78rem;
}

.gdg2-discovery > a,
.gdg2-discovery__search {
  min-height: 5.2rem;
}

.gdg2-discovery__search {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.35rem;
  padding: 0.7rem var(--gdg2-gutter);
}

.gdg2-discovery__search label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.gdg2-discovery__search label span {
  color: var(--gdg2-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.gdg2-discovery__search label strong {
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  letter-spacing: 0.05em;
}

.gdg2-discovery__search div {
  display: flex;
  min-width: 0;
  gap: 0.35rem;
}

.gdg2-discovery__search input {
  width: 100%;
  min-width: 0;
  height: 2.35rem;
  border: 1px solid var(--gdg2-line);
  border-radius: 999px;
  padding: 0 0.8rem;
  background: #fff;
  color: var(--gdg2-ink);
  font: inherit;
  font-size: 0.78rem;
}

.gdg2-discovery__search button {
  min-width: 3.4rem;
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.75rem;
  background: var(--gdg2-ink);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

@media (min-width: 48rem) {
  .gdg2-hero {
    max-height: 29rem;
  }

  .gdg2-hero__media,
  .gdg2-hero__copy {
    max-height: 29rem;
  }
}

@media (max-width: 40rem) {
  .gdg2-brand-banner {
    padding-top: 0.25rem;
    padding-bottom: 0.38rem;
  }

  .gdg2-brand-banner img {
    max-width: 96vw;
    height: 3.75rem;
    object-fit: contain;
  }

  .gdg2-brand-banner > span {
    font-size: 0.56rem;
    letter-spacing: 0.07em;
  }

  .gdg2-hero__media {
    aspect-ratio: 16 / 7.2;
  }

  .gdg2-hero__copy {
    padding-top: 1.05rem;
    padding-bottom: 1.2rem;
  }

  .gdg2-hero__copy .gdg2-eyebrow {
    margin-bottom: 0.45rem;
  }

  .gdg2-hero__copy h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.95rem);
  }

  .gdg2-hero__excerpt {
    display: none;
  }

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

  .gdg2-discovery > a {
    min-height: 4.4rem;
  }

  .gdg2-discovery__search {
    grid-column: 1 / -1;
    min-height: 4.65rem;
    border-top: 1px solid var(--gdg2-line);
    padding: 0.55rem 0.65rem;
  }

  .gdg2-discovery__search label {
    display: none;
  }
}
