/*
 * Edition navigation and historical catalog index.
 * Keep these controls editorial, compact, and consistent with the theme tokens.
 */
.gsu-edition-selector,
.gsu-edition-status,
.gsu-archives {
  color: var(--wp--preset--color--gsu-blue-steel);
  font-family: var(--wp--preset--font-family--lato);
  line-height: var(--wp--custom--academic--line-height);
}

.gsu-edition-selector,
.gsu-edition-status,
.gsu-archives,
.gsu-edition-selector :where(*, *::before, *::after),
.gsu-edition-status :where(*, *::before, *::after),
.gsu-archives :where(*, *::before, *::after) {
  box-sizing: border-box;
}

.gsu-edition-selector {
  margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  padding: var(--wp--preset--spacing--30);
  border: 1px solid var(--wp--custom--semantic--border);
  border-top: 3px solid var(--wp--preset--color--gsu-coolblue);
  background: var(--wp--custom--semantic--surface-subtle);
}

form.gsu-edition-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--wp--preset--spacing--30);
}
form.gsu-edition-selector > label { grid-column: 1 / -1; }
@media (max-width: 600px) {
  form.gsu-edition-selector { grid-template-columns: minmax(0, 1fr); }
}

.gsu-edition-selector form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--wp--preset--spacing--30);
  min-width: 0;
  margin: 0;
}

.gsu-edition-selector label {
  display: grid;
  flex: 1 1 15rem;
  gap: .25rem;
  min-width: min(100%, 12rem);
  color: var(--wp--preset--color--gsu-blue-steel);
  font-size: var(--wp--custom--academic--label-size);
  font-weight: 700;
  line-height: var(--wp--custom--academic--small-line-height);
}

.gsu-edition-selector select {
  width: 100%;
  min-width: 0;
  min-height: var(--wp--custom--academic--control-target);
  padding: .45rem 2rem .45rem .65rem;
  border: 1px solid var(--wp--custom--semantic--border);
  border-radius: var(--wp--custom--button--radius);
  color: var(--wp--preset--color--gsu-blue-steel);
  background-color: var(--wp--custom--semantic--surface);
  font: inherit;
}

.gsu-edition-selector button,
.gsu-edition-selector input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: var(--wp--custom--button--min-height);
  max-width: 100%;
  padding: .45rem var(--wp--custom--button--horizontal-padding);
  border: 1px solid var(--wp--preset--color--gsu-blue);
  border-radius: var(--wp--custom--button--radius);
  color: var(--wp--preset--color--gsu-white);
  background: var(--wp--preset--color--gsu-blue);
  font: inherit;
  font-weight: 700;
  line-height: var(--wp--custom--academic--small-line-height);
  text-align: center;
  cursor: pointer;
}

.gsu-edition-selector button:hover,
.gsu-edition-selector input[type="submit"]:hover {
  border-color: var(--wp--preset--color--gsu-blue-steel);
  background: var(--wp--preset--color--gsu-blue-steel);
}

.gsu-edition-selector :where(a, button, select, input):focus-visible,
.gsu-edition-status a:focus-visible,
.gsu-archives a:focus-visible {
  outline: 3px solid var(--wp--custom--semantic--focus);
  outline-offset: 3px;
}

.gsu-edition-selector .gsu-edition-meta {
  flex-basis: 100%;
  margin: 0;
  color: var(--wp--custom--semantic--muted);
  font-size: var(--wp--custom--academic--label-size);
  line-height: var(--wp--custom--academic--small-line-height);
}

.gsu-edition-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem var(--wp--preset--spacing--30);
  min-width: 0;
  margin-block: var(--wp--preset--spacing--30);
}

.gsu-edition-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .2rem .65rem;
  border: 1px solid var(--wp--preset--color--gsu-blue);
  color: var(--wp--preset--color--gsu-blue);
  background: var(--wp--custom--semantic--surface);
  font-size: var(--wp--custom--academic--label-size);
  font-weight: 700;
  line-height: var(--wp--custom--academic--small-line-height);
}

.gsu-historical-notice {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  padding: .65rem .85rem;
  border-left: 4px solid var(--wp--custom--semantic--warning);
  color: var(--wp--preset--color--gsu-blue-steel);
  background: var(--wp--custom--semantic--surface-subtle);
  font-size: .9375rem;
}

.gsu-historical-notice > :first-child { margin-top: 0; }
.gsu-historical-notice > :last-child { margin-bottom: 0; }
.gsu-historical-notice a {
  color: var(--wp--preset--color--gsu-blue);
  font-weight: 700;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.gsu-historical-notice a:hover { color: var(--wp--preset--color--gsu-accent); }

.gsu-archives {
  width: min(100%, var(--wp--custom--academic--content-width));
  min-width: 0;
  margin-inline: auto;
}

.gsu-archive-families {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin-block: var(--wp--preset--spacing--30);
  padding: .25rem;
  border: 1px solid var(--wp--custom--semantic--border);
  background: var(--wp--custom--semantic--surface-subtle);
}

.gsu-archive-families a {
  display: inline-flex;
  align-items: center;
  min-height: var(--wp--custom--academic--control-target);
  padding: .4rem .7rem;
  color: var(--wp--preset--color--gsu-blue);
  font-size: var(--wp--custom--academic--navigation-size);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gsu-archive-families a:hover,
.gsu-archive-families a[aria-current="page"] {
  color: var(--wp--preset--color--gsu-white);
  background: var(--wp--preset--color--gsu-blue);
}

.gsu-archive-group {
  min-width: 0;
  margin-block: var(--wp--preset--spacing--40);
}

.gsu-archive-group > :first-child { margin-top: 0; }
.gsu-archive-group > :last-child { margin-bottom: 0; }
.gsu-archive-group :where(h2, h3) {
  margin-block: 0 var(--wp--preset--spacing--20);
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--wp--custom--semantic--border);
  color: var(--wp--preset--color--gsu-blue);
  font-size: var(--wp--custom--academic--subheading-size);
  font-weight: 700;
  line-height: var(--wp--custom--academic--heading-line-height);
  overflow-wrap: anywhere;
}

.gsu-archive-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wp--custom--semantic--border);
  list-style: none;
}

.gsu-archive-list > li {
  display: grid;
  grid-template-columns: minmax(4.5rem, 6.5rem) minmax(0, 1fr);
  align-items: baseline;
  gap: .35rem 1rem;
  min-width: 0;
  padding: .65rem .35rem;
  border-bottom: 1px solid var(--wp--custom--semantic--border);
}

.gsu-archive-year {
  color: var(--wp--preset--color--gsu-blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.gsu-archive-list a {
  color: var(--wp--preset--color--gsu-blue);
  font-weight: 700;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

.gsu-archive-list a:hover { color: var(--wp--preset--color--gsu-accent); }

.gsu-archive-meta {
  grid-column: 2;
  margin: -.15rem 0 0;
  color: var(--wp--custom--semantic--muted);
  font-size: var(--wp--custom--academic--label-size);
  line-height: var(--wp--custom--academic--small-line-height);
  overflow-wrap: anywhere;
}

.gsu-record-unavailable {
  display: inline-block;
  max-width: 100%;
  color: var(--wp--custom--semantic--muted);
  font-size: var(--wp--custom--academic--label-size);
  font-style: italic;
  line-height: var(--wp--custom--academic--small-line-height);
  overflow-wrap: anywhere;
}

section.gsu-record-unavailable {
  display: block;
  width: min(100%, 76rem);
  margin: var(--wp--preset--spacing--40) auto;
  padding: var(--wp--preset--spacing--30);
  color: var(--wp--preset--color--gsu-blue-steel);
  font-size: var(--wp--custom--academic--font-size);
  font-style: normal;
  line-height: var(--wp--custom--academic--line-height);
}

@media (max-width: 520px) {
  .gsu-edition-selector form { align-items: stretch; }
  .gsu-edition-selector label,
  .gsu-edition-selector button,
  .gsu-edition-selector input[type="submit"] { width: 100%; }
  .gsu-archive-list > li {
    grid-template-columns: minmax(0, 1fr);
    gap: .15rem;
  }
  .gsu-archive-meta { grid-column: 1; }
}

@media print {
  .gsu-edition-selector,
  .gsu-archives .gsu-archive-filter,
  .gsu-archives form {
    display: none !important;
  }

  .gsu-edition-status,
  .gsu-historical-notice {
    display: block !important;
    color: var(--wp--preset--color--gsu-blue-steel) !important;
    background: transparent !important;
  }

  .gsu-edition-badge {
    color: var(--wp--preset--color--gsu-blue-steel);
    background: transparent;
  }

  .gsu-archive-list > li { break-inside: avoid; }
}
