/* Frames, page headers, sections, toolbars, columns and tabs. */

/* ===== FRAMES ===== */
/* "0x05 GOAWAY · aside": the landing's hex frame header, used above every page and section. */
.frame {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.frame__hex b {
  color: var(--accent-ink);
  font-weight: 600;
}
.frame__type {
  color: var(--fg);
  font-weight: 600;
}
.frame__aside {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
}
.frame__aside a {
  color: var(--muted);
}

/* ===== PAGES ===== */
.page {
  max-width: 1180px;
}
.page--wide {
  max-width: 1520px;
}
.page--narrow {
  max-width: 560px;
  padding-top: 24px;
}
.page__head {
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--rule);
}
.page__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.page__title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.page__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page__lead {
  margin-top: 6px;
  max-width: 74ch;
  color: var(--muted);
}
.crumbs {
  margin-bottom: 6px;
  font-size: 13px;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--fg);
}

/* Sections: a frame header over a hairline, an h2, then the content. */
.block {
  margin-top: 30px;
}
.block:first-of-type {
  margin-top: 0;
}
.block > .frame {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hair);
}
.block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.block__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.005em;
}
.block__actions {
  display: flex;
  gap: 8px;
}
.block__head ~ * + * {
  margin-top: 18px;
}
.block__sub {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar .field {
  min-width: 0;
  flex: 0 1 220px;
}
.toolbar .field:first-child:has(input[type="search"]) {
  flex: 1 1 260px;
  max-width: 420px;
}
.toolbar .field__error,
.toolbar .field__hint {
  display: none;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 24px 32px;
  align-items: start;
}
.two-col--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.aside-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--hair);
  background: var(--surface);
}
@media (max-width: 1100px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .two-col--even {
    grid-template-columns: minmax(0, 1fr);
  }
  .page__title {
    font-size: 25px;
  }
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  margin: 18px 0 16px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__link {
  padding: 9px 14px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs__link:hover {
  color: var(--fg);
}
.tabs__link.is-active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.tabs__link:focus-visible {
  outline-offset: -2px;
}
