/*
 * WFP Base Module
 * Site chrome: masthead, site-wide structural defaults.
 */

/* =============================================================================
   MASTHEAD / HEADER
   ============================================================================= */

.site-header {
  background: var(--wfp-header-bg);
  color: var(--wfp-header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.08);
}

.site-header a {
  color: var(--wfp-header-text);
  text-decoration: none;
}

.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--wfp-header-height);
  gap: var(--space-m);
}

/* Site title / logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.site-title {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--wfp-header-text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.site-description {
  font-size: var(--step--2);
  color: hsl(0 0% 100% / 0.55);
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Custom logo */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  max-height: 44px;
  width: auto;
}

/* =============================================================================
   SKIP LINK
   ============================================================================= */

.skip-link {
  position: absolute;
  top: -999px;
  left: var(--space-s);
  background: var(--accent);
  color: var(--base-3);
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-xs);
}

/* =============================================================================
   MAIN CONTENT AREA
   ============================================================================= */

#content {
  outline: none;
}

.content-area {
  min-width: 0;
}

/* Two-column layout: content + sidebar */
.wfp-layout--sidebar {
  display: grid;
  grid-template-columns: 1fr var(--wfp-sidebar-width);
  gap: var(--wfp-grid-gap);
  align-items: start;
}

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

/* Full-width prose container */
.wfp-prose-container {
  max-width: var(--wfp-prose-width);
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================================
   SECTION DIVIDERS
   ============================================================================= */

.wfp-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  border-bottom: 2px solid var(--accent);
  padding-bottom: var(--space-2xs);
  margin-bottom: var(--space-m);
}

.wfp-section-header__title {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--contrast);
  margin: 0;
  letter-spacing: -0.01em;
}

.wfp-section-header__link {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.wfp-section-header__link:hover {
  color: var(--accent-hover);
}

/* =============================================================================
   KICKER / SECTION LABEL
   ============================================================================= */

.wfp-kicker {
  display: inline-block;
  font-size: var(--wfp-kicker-size);
  font-weight: var(--wfp-kicker-weight);
  color: var(--wfp-kicker-color);
  text-transform: uppercase;
  letter-spacing: var(--wfp-kicker-spacing);
  text-decoration: none;
  line-height: 1;
}

.wfp-kicker:hover {
  color: var(--accent-hover);
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.wfp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  margin-top: var(--space-2xl);
}

.wfp-pagination a,
.wfp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-xs);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border: var(--border);
  transition: background var(--transition-2), color var(--transition-2);
}

.wfp-pagination a {
  color: var(--contrast);
  background: var(--base-3);
}

.wfp-pagination a:hover {
  background: var(--accent);
  color: var(--base-3);
  border-color: var(--accent);
}

.wfp-pagination .current {
  background: var(--accent);
  color: var(--base-3);
  border-color: var(--accent);
}

/* =============================================================================
   BREADCRUMBS
   ============================================================================= */

.wfp-breadcrumbs {
  font-size: var(--step--1);
  color: var(--contrast-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em;
  margin-bottom: var(--space-s);
}

.wfp-breadcrumbs a {
  color: var(--contrast-3);
}

.wfp-breadcrumbs a:hover {
  color: var(--accent);
}

.wfp-breadcrumbs__sep {
  opacity: 0.4;
}
