/* ==========================================================================
   FSU Digital Collections — Shared Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-Hosted Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #101820;
  background: #FFFFFF;
  margin: 0;
  padding: 0;
}

a {
  color: #782F40;
  text-decoration: none;
  font-weight: 700;
}

a:hover,
a:focus {
  color: #572932;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #782F40;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Skip Link (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #FFC72C;
  color: #101820;
  padding: 0.75em 1.5em;
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: #782F40;
  color: #FFFFFF;
  padding: 1.5em 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.site-header__logo img {
  height: 60px;
}

.site-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
}

.site-header__subtitle {
  font-size: 0.95rem;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding: 0.75em 0;
  font-size: 0.875rem;
  color: #425563;
  border-bottom: 1px solid #d5d4d4;
  margin-bottom: 1.5em;
}

.breadcrumb a {
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Category Sections
   -------------------------------------------------------------------------- */
.category {
  margin-bottom: 2.5em;
}

.category__heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #782F40;
  border-bottom: 3px solid #FFC72C;
  padding-bottom: 0.5em;
  margin-bottom: 1.25em;
}

/* --------------------------------------------------------------------------
   Card Grid
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
}

.card {
  background: #FFFFFF;
  border: 1px solid #d5d4d4;
  border-left: 4px solid #782F40;
  border-radius: 4px;
  padding: 1.25em;
  box-shadow: 1px 0 4px 0 rgba(44, 42, 41, 0.2);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.card:hover,
.card:focus-within {
  box-shadow: 2px 2px 8px rgba(44, 42, 41, 0.2);
  border-left-color: #572932;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #782F40;
}

.card__description {
  font-size: 0.9rem;
  color: #425563;
  flex: 1;
}

.card__meta {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2em 0.6em;
  border-radius: 3px;
}

.badge--date {
  background: #FFC72C;
  color: #101820;
}

.badge--format {
  background: #e3e6e8;
  color: #425563;
}

.card__arrow {
  margin-left: auto;
  color: #782F40;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Sub-Page Layout
   -------------------------------------------------------------------------- */
.page-layout {
  padding: 1.5em 0;
}

.page-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #782F40;
}

.page-content p {
  margin-bottom: 1em;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  border-left: 1px solid #d5d4d4;
  padding-left: 1.5em;
}

.sidebar__section {
  margin-bottom: 1.5em;
}

.sidebar__heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #782F40;
}

.sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__list li {
  border-bottom: 1px solid #e3e6e8;
}

.sidebar__list a {
  font-size: 0.9rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Jump-To Navigation
   -------------------------------------------------------------------------- */
.jump-nav {
  background: #e3e6e8;
  border-radius: 4px;
  padding: 1em;
  margin-bottom: 1.5em;
}

.jump-nav__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #425563;
}

.jump-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.jump-nav__list a {
  display: inline-block;
  padding: 0.25em 0.6em;
  background: #FFFFFF;
  border: 1px solid #d5d4d4;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 400;
}

.jump-nav__list a:hover,
.jump-nav__list a:focus {
  background: #782F40;
  color: #FFFFFF;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Collapsible Sections (CSS-only with details/summary)
   -------------------------------------------------------------------------- */
details.collapsible {
  border: 1px solid #d5d4d4;
  border-radius: 4px;
  margin-bottom: 0.75em;
}

details.collapsible summary {
  padding: 0.75em 1em;
  font-weight: 700;
  color: #782F40;
  cursor: pointer;
  background: #f8f8f8;
  list-style: none;
}

details.collapsible summary:focus-visible {
  outline: 2px solid #782F40;
  outline-offset: -2px;
}

details.collapsible summary::-webkit-details-marker {
  display: none;
}

details.collapsible summary::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 0.5em;
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

details[open].collapsible summary::before {
  transform: rotate(90deg);
}

.collapsible__body {
  padding: 1em;
}

/* --------------------------------------------------------------------------
   Data Table
   -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: #782F40;
  color: #FFFFFF;
}

.data-table th {
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
}

.data-table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid #e3e6e8;
  font-size: 0.9rem;
}

.data-table tbody tr:hover,
.data-table tbody tr:focus-within {
  background: #f8f8f8;
}

/* --------------------------------------------------------------------------
   Link Grid (for docket ranges)
   -------------------------------------------------------------------------- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5em;
}

.link-grid a {
  display: block;
  padding: 0.4em 0.75em;
  border: 1px solid #e3e6e8;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 400;
}

.link-grid a:hover,
.link-grid a:focus {
  background: #e3e6e8;
}

/* --------------------------------------------------------------------------
   Back Link
   -------------------------------------------------------------------------- */
.back-link {
  display: inline-block;
  margin: 1em 0;
  font-size: 0.9rem;
}

.back-link::before {
  content: "\2190\00a0";
}

/* --------------------------------------------------------------------------
   FALL Attribution
   -------------------------------------------------------------------------- */
.fall-attribution {
  background: #f8f8f8;
  border: 1px solid #e3e6e8;
  border-radius: 4px;
  padding: 1em;
  margin: 1.5em 0;
  font-size: 0.9rem;
  color: #425563;
}

.fall-attribution img {
  max-height: 50px;
}

/* --------------------------------------------------------------------------
   Arch Divider
   -------------------------------------------------------------------------- */
.arch-divider {
  text-align: center;
  margin: 3em 0 0;
  padding: 0;
}

.arch-divider img {
  height: 60px;
  opacity: 0.3;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #782F40;
  color: #FFFFFF;
  padding: 2em 0;
  margin-top: 3em;
  font-size: 0.875rem;
}

.site-footer__inner {
  text-align: center;
}

.site-footer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #DFD1A7;
  margin: 0 0 0.5em;
}

.site-footer a {
  color: #DFD1A7;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #FFFFFF;
}

.site-footer__bottom {
  margin-top: 1.5em;
  border-top: 1px solid #425563;
  text-align: center;
  font-size: 0.8rem;
  padding-top: 1em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .site-header__inner {
    flex-direction: column;
    text-align: center;
  }

  .link-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
