/*
 * American People Magazine — Institutional Stylesheet
 * Massachusetts Society of Journalism
 * Curtis License — LeMay American Innovation Protection License
 *
 * Design standard: Pure black and white. No accent colors.
 * Typography: Georgia body serif, Georgia display serif. No web font downloads.
 * Palette: #000000 / #1a1a1a / #ffffff — zero color accents.
 * Masthead: Two-line — "American People" (3rem) + "Magazine" (1.25rem subtitle).
 * Navigation: 10-pillar horizontal scroll with left/right arrow buttons.
 */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

a { color: #1a1a1a; }
a:hover { color: #000; }

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

/* ==========================================================================
   SKIP NAVIGATION
   ========================================================================== */

.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
}
.skip-nav:focus { top: 0; }

/* ==========================================================================
   SITE HEADER — Dark broadsheet masthead
   ========================================================================== */

.site-header {
  background: #1a1a1a;
  color: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Masthead — two-line structure */
.masthead {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

/* Anchor wrapping both masthead lines */
.masthead-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}
.masthead-link:hover { color: #fff; text-decoration: none; }

/* Line 1 — "American People" at 3rem */
.masthead-name {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.05;
}

/* Line 2 — "Magazine" at 1.25rem, centered beneath */
.masthead-subtitle {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #bbb;
  margin-top: 0.25rem;
  line-height: 1;
}

.masthead-meta {
  margin-top: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

.masthead-sep {
  margin: 0 0.5em;
  color: #555;
}

/* ==========================================================================
   PRIMARY NAVIGATION — 10-pillar horizontal scroll with arrows
   ========================================================================== */

.primary-nav {
  position: relative;
  border-top: 1px solid #333;
  display: flex;
  align-items: stretch;
}

/* Left and right page-turn arrow buttons */
.nav-arrow {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.5rem;
  padding: 0 0.75rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  user-select: none;
}
.nav-arrow:hover { color: #fff; }
.nav-arrow--left { border-right: 1px solid #333; }
.nav-arrow--right { border-left: 1px solid #333; }

/* Scroll container — hides scrollbar, enables smooth horizontal scroll */
.nav-scroll-container {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-scroll-container::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.125rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover {
  color: #fff;
  text-decoration: none;
}

.nav-link--utility {
  color: #777;
}
.nav-link--utility:hover {
  color: #ccc;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ==========================================================================
   HOMEPAGE — Two-column lead/sidebar layout
   ========================================================================== */

.homepage-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.homepage-lead {
  padding-right: 1rem;
}

.section-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.lead-headline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.lead-headline a {
  color: #1a1a1a;
  text-decoration: none;
}
.lead-headline a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lead-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 0.75rem;
}

.lead-meta,
.sidebar-meta,
.more-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #888;
}

.meta-sep {
  margin: 0 0.35em;
}

/* Sidebar — Top Stories */
.homepage-sidebar {
  border-left: 1px solid #e0e0e0;
  padding-left: 2rem;
}

.sidebar-stories {
  display: flex;
  flex-direction: column;
}

.sidebar-story {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}
.sidebar-story:first-child { padding-top: 0; }
.sidebar-story:last-child { border-bottom: none; }

.story-section {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 0.375rem;
}

.sidebar-headline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.375rem;
}
.sidebar-headline a { color: #1a1a1a; text-decoration: none; }
.sidebar-headline a:hover { text-decoration: underline; }

.sidebar-summary {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 0.375rem;
}

/* More Stories — below fold */
.homepage-more {
  padding-top: 2rem;
}

.more-divider {
  margin-bottom: 1.5rem;
}

.more-list {
  display: flex;
  flex-direction: column;
}

.more-story {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.more-headline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.more-headline a { color: #1a1a1a; text-decoration: none; }
.more-headline a:hover { text-decoration: underline; }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.empty-state {
  max-width: 720px;
  margin: 4rem auto;
  text-align: center;
  color: #666;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.8;
}
.empty-state p { margin-bottom: 1rem; }
.empty-state-final {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a1a;
}

/* ==========================================================================
   SECTION PAGES
   ========================================================================== */

.section-layout {
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #1a1a1a;
}

.section-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.section-pillar,
.section-description {
  font-size: 1rem;
  font-style: italic;
  color: #666;
}

.breadcrumbs-mini {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.5rem;
}
.breadcrumbs-mini a { color: #888; text-decoration: none; }
.breadcrumbs-mini a:hover { color: #1a1a1a; text-decoration: underline; }

/* Cluster nav */
.cluster-nav {
  margin-bottom: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.cluster-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.cluster-nav a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  padding: 0.375rem 0;
}
.cluster-nav a:hover { color: #1a1a1a; }
.cluster-nav .active a { color: #1a1a1a; border-bottom: 2px solid #1a1a1a; }

.results-summary {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

/* Article listing */
.article-listing {
  display: flex;
  flex-direction: column;
}

.article-card--list {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.card-image--list { flex: 0 0 200px; }
.card-image--list img { width: 200px; height: 130px; object-fit: cover; }

.card-body { flex: 1; }

.card-headline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.375rem;
}
.card-headline a { color: #1a1a1a; text-decoration: none; }
.card-headline a:hover { text-decoration: underline; }

.card-summary {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 0.375rem;
}

.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #888;
}
.article-meta a { color: #888; text-decoration: none; }
.article-meta a:hover { text-decoration: underline; }

.section-empty-state {
  padding: 3rem 0;
  color: #888;
  font-style: italic;
  font-size: 1rem;
}

/* ==========================================================================
   ARTICLE PAGE — Single column, max-width 720px centered
   ========================================================================== */

.article-layout {
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}
.breadcrumbs li::after { content: " / "; margin: 0 0.4em; color: #ccc; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: #888; text-decoration: none; }
.breadcrumbs a:hover { color: #1a1a1a; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #555; }

.article-full { margin-bottom: 3rem; }

.article-section-tag {
  margin-bottom: 0.75rem;
}
.cluster-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
}
.cluster-link:hover { text-decoration: underline; }

.article-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.article-summary {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1.25rem;
}

.article-byline-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.article-byline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  color: #1a1a1a;
}
.article-byline a { color: #1a1a1a; text-decoration: none; font-weight: 600; }
.article-byline a:hover { text-decoration: underline; }
.desk-link {
  font-weight: 400;
  color: #888;
  text-decoration: none;
  font-size: 0.8125rem;
}
.desk-link:hover { text-decoration: underline; color: #555; }

.article-meta-right {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #888;
}

.article-published { margin-right: 0.5rem; }

.reading-time {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cascade-attribution {
  font-size: 0.8125rem;
  font-style: italic;
  color: #888;
  padding: 0.75rem;
  border-left: 3px solid #ddd;
  margin-bottom: 1.5rem;
}
.cascade-attribution a { color: #555; }

/* Featured image */
.article-featured-image {
  margin-bottom: 1.5rem;
}
.article-featured-image img {
  width: 100%;
  height: auto;
}

/* Table of Contents */
.article-toc {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.toc-heading {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
}
.article-toc ol {
  list-style: none;
  padding-left: 0;
}
.article-toc a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: #444;
  text-decoration: none;
}
.article-toc a:hover { color: #1a1a1a; text-decoration: underline; }
.toc-entry--level-3 { padding-left: 1rem; }

/* Article body */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.article-body blockquote {
  border-left: 3px solid #1a1a1a;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #444;
}
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.375rem; }

/* Share buttons */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 2rem 0;
}
.share-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}
.share-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #555;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0;
}
.share-btn:hover { border-color: #1a1a1a; color: #1a1a1a; }

/* Membership CTA */
.membership-cta {
  padding: 1.5rem 0;
  font-size: 0.9375rem;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 1rem;
}
.membership-cta a { color: #1a1a1a; }

/* ==========================================================================
   RECOMMENDATIONS
   ========================================================================== */

.article-recommendations {
  margin-top: 2rem;
}

.section-divider {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-divider-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card--recommendation {
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.rec-tier-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   READING PROGRESS
   ========================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #1a1a1a;
  z-index: 9999;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { transition: none; }
}

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
}
.pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #1a1a1a;
}
.pagination a:hover { border-color: #1a1a1a; }
.pagination-info { color: #888; }

/* ==========================================================================
   AUTHOR & DESK PAGES
   ========================================================================== */

.author-layout,
.desk-layout {
  max-width: 900px;
  margin: 0 auto;
}

.author-header,
.desk-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #1a1a1a;
}

.author-name,
.desk-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.author-desk,
.desk-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 0.375rem;
}
.author-desk a { color: #888; text-decoration: none; }
.author-desk a:hover { text-decoration: underline; }

.author-article-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-cluster-tag {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.25rem;
}

.desk-team-heading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.author-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}

.author-list-item {}

.author-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #1a1a1a;
  text-decoration: none;
}
.author-link:hover { text-decoration: underline; }
.author-link .author-article-count { font-size: 0.6875rem; color: #aaa; }

.desk-coverage {}

/* ==========================================================================
   SEARCH
   ========================================================================== */

.search-layout { max-width: 720px; margin: 0 auto; }

.search-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #1a1a1a;
}

.search-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.search-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-form {
  margin-bottom: 2rem;
}

.search-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
}

.search-input-row {
  display: flex;
  gap: 0;
}

.search-input {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border: 1px solid #ccc;
  border-right: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  color: #1a1a1a;
}
.search-input:focus { outline: 2px solid #1a1a1a; outline-offset: -1px; }

.search-submit {
  padding: 0.625rem 1.25rem;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.search-submit:hover { background: #000; }

.search-empty {
  font-size: 1rem;
  color: #888;
  line-height: 1.7;
}
.search-empty a { color: #1a1a1a; }

/* ==========================================================================
   INSTITUTIONAL PAGES
   ========================================================================== */

.institutional-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.institutional-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #1a1a1a;
}

.institutional-subheading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.institutional-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.institutional-body p { margin-bottom: 1.25rem; }

.institutional-effective {
  margin-top: 2rem;
  font-style: italic;
  color: #888;
}

/* ==========================================================================
   ERROR PAGES
   ========================================================================== */

.error-page { max-width: 720px; margin: 3rem auto; text-align: center; }
.error-page h1 { font-size: 4rem; font-weight: 700; color: #ddd; margin-bottom: 0.5rem; }
.error-page p { font-size: 1.0625rem; color: #888; margin-bottom: 1rem; }
.error-page a { color: #1a1a1a; }
.error-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn:hover { background: #000; color: #fff; }
.btn--secondary {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #ddd;
}
.btn--secondary:hover { border-color: #1a1a1a; }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer {
  border-top: 3px solid #1a1a1a;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-heading {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a1a1a;
}

.footer-col {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #555;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.375rem; }
.footer-col a { color: #555; text-decoration: none; }
.footer-col a:hover { color: #1a1a1a; text-decoration: underline; }
.footer-col p { margin-bottom: 0.5rem; }

.footer-motto {
  text-align: center;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.875rem;
  font-style: italic;
  color: #888;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Apple-style legal bar */
.footer-legal {
  border-top: 1px solid #d2d2d7;
  margin-top: 2rem;
  padding-top: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  line-height: 1.334;
  color: #6e6e73;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.footer-legal a { color: #424245; text-decoration: none; }
.footer-legal a:hover { color: #1d1d1f; text-decoration: underline; }
.footer-legal-copyright { white-space: nowrap; }
.footer-legal-links { white-space: nowrap; }
.footer-legal-sep { color: #d2d2d7; margin: 0 0.75em; }
.footer-legal-region { margin-left: auto; white-space: nowrap; }

/* ==========================================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .homepage-grid {
    grid-template-columns: 1fr 300px;
    gap: 2rem;
  }
  .lead-headline { font-size: 2.25rem; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .masthead { padding: 2rem 1rem 1.25rem; }
  .masthead-name { font-size: 2.25rem; }
  .masthead-subtitle { font-size: 1rem; letter-spacing: 0.2em; }

  /* Nav arrows remain; scroll container shrinks naturally */
  .nav-arrow { padding: 0 0.5rem; font-size: 1.25rem; }
  .nav-link { padding: 0.75rem 0.875rem; }

  main { padding: 1.5rem 1rem; }

  .homepage-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .homepage-lead { padding-right: 0; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
  .homepage-sidebar {
    border-left: none;
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .lead-headline { font-size: 2rem; }
  .article-title { font-size: 1.875rem; }

  .article-card--list { flex-direction: column; gap: 0.75rem; }
  .card-image--list { flex: none; }
  .card-image--list img { width: 100%; height: auto; }

  .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-legal-region { margin-left: 0; }

  .recommendations-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 1.5rem; }
  .section-title { font-size: 1.75rem; }
  .institutional-heading { font-size: 1.5rem; }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .masthead-name { font-size: 1.75rem; }
  .masthead-subtitle { font-size: 0.875rem; letter-spacing: 0.15em; }
  .lead-headline { font-size: 1.625rem; }
  .article-title { font-size: 1.5rem; }
}
