:root {
  --shell-width: 1440px;
  --shell-gutter: 48px;
}

/* One shared horizontal grid for the entire page. */
.topbar__inner,
.hero__content,
.interview-library-wrap,
.study-tools-wrap,
.layout {
  width: min(var(--shell-width), calc(100% - var(--shell-gutter)));
  margin-left: auto;
  margin-right: auto;
}

/* Keep the compact hero using the same outer edges as the tools and content. */
.hero__content {
  max-width: none;
}

/* The top bar should align its logo and action buttons with the page body. */
.topbar__inner {
  max-width: none;
}

/* Compact vertical rhythm between the page's major modules. */
.study-tools-wrap {
  margin-top: 14px;
}

.training-tools {
  margin-top: 8px;
}

/* Give the category panel a little more room while keeping it close to content. */
.layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 72px;
}

.content__header {
  margin-bottom: 24px;
}

.category-section {
  margin-bottom: 44px;
}

@media (max-width: 1050px) {
  :root { --shell-gutter: 40px; }

  .topbar__inner,
  .hero__content,
  .interview-library-wrap,
  .study-tools-wrap,
  .layout {
    width: calc(100% - var(--shell-gutter));
  }

  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root { --shell-gutter: 28px; }

  .topbar__inner,
  .hero__content,
  .interview-library-wrap,
  .study-tools-wrap,
  .layout {
    width: calc(100% - var(--shell-gutter));
  }

  .search input {
    padding-right: 16px;
  }

  .study-tools-wrap {
    margin-top: 12px;
  }

  .layout {
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 54px;
  }

  .content__header {
    margin-bottom: 18px;
  }

  .category-section {
    margin-bottom: 32px;
  }
}
