/*
 * The New Hampshire Times — Institutional Stylesheet
 * Massachusetts Society of Journalism
 * Curtis License — LeMay American Innovation Protection License
 *
 * Design standard: The Commonwealth Times (thecommonwealthtimes.com)
 * Editorial identity: Granite State independence — lean, direct, Live Free or Die applied to prose.
 * Typography: Georgia system serif. No web font downloads.
 * Palette: #1a1a1a text on #fff body. #000 pure black header. White masthead type.
 * Zero color accents. No gradients. No decorative elements.
 */

/* ==========================================================================
   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 */
.masthead {
  text-align: center;
  padding: 2.75rem 1rem 1.625rem;
  border-bottom: 1px solid #2e2e2e;
}

.masthead-name {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #fff;
  text-decoration: none;
  line-height: 1.08;
}
.masthead-name:hover { color: #fff; text-decoration: none; }

.masthead-location {
  display: block;
  margin-top: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

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

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

/* Primary Navigation */
.primary-nav {
  border-top: 1px solid #2e2e2e;
  padding: 0 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-item {}

.nav-link {
  display: block;
  padding: 0.8125rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  transition: color 0.12s;
}
.nav-link:hover {
  color: #fff;
  text-decoration: none;
}

.nav-item--utility .nav-link {
  color: #666;
}
.nav-item--utility .nav-link:hover {
  color: #aaa;
}

/* ==========================================================================
   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 360px;
  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.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.lead-headline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.625rem;
  font-weight: 700;
  line-height: 1.1;
  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.0625rem;
  line-height: 1.65;
  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.6875rem;
  color: #888;
}

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

/* Lead featured image */
.lead-image {
  margin-bottom: 1.25rem;
}
.lead-image img {
  width: 100%;
  height: auto;
}

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

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

.sidebar-story {
  padding: 1.125rem 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.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.375rem;
}

.sidebar-headline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  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.8125rem;
  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.0625rem;
  line-height: 1.8;
}
.empty-state p { margin-bottom: 1rem; }
.empty-state-final {
  font-weight: 700;
  font-size: 1.1875rem;
  color: #1a1a1a;
  font-style: normal;
}

/* ==========================================================================
   SECTION PAGES (Supercluster / Cluster / Section)
   ========================================================================== */

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

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

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

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

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

/* Cluster navigation */
.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.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  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.6875rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

/* Article listing (shared by section, supercluster, desk, author) */
.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; }

.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.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.375rem;
}

.card-headline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.1875rem;
  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.6875rem;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
}
.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;
}

/* ==========================================================================
   DESK PAGE
   ========================================================================== */

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

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

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

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

.desk-team {
  margin-bottom: 2rem;
}

.desk-team-heading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.author-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-list-item {}

.author-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  min-width: 180px;
}
.author-link:hover { border-color: #1a1a1a; }
.author-link strong {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.9375rem;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.author-article-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  color: #888;
}

.desk-coverage {}

/* ==========================================================================
   AUTHOR PAGE
   ========================================================================== */

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

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

.author-header-inner {}

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

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

.author-article-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
}

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */

.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.625rem;
  letter-spacing: 0.06em;
  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.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
}
.cluster-link:hover { color: #1a1a1a; text-decoration: underline; }

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

.article-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.25rem;
  border-left: 3px solid #1a1a1a;
  padding-left: 1rem;
}

.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.6875rem;
  color: #888;
}

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

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

.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.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  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.4375rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.125rem;
  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.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
}
.share-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  color: #555;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid #ddd;
}
.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;
  line-height: 1.7;
}
.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.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 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.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 0.25rem;
}

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

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  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 span { color: #888; }

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

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

.search-header {
  margin-bottom: 1.5rem;
}

.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.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  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 #1a1a1a;
  border-right: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  color: #1a1a1a;
}
.search-input:focus { outline: none; box-shadow: inset 0 0 0 2px #1a1a1a; }

.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.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.search-submit:hover { background: #000; border-color: #000; }

.search-empty {
  padding: 2rem 0;
  color: #888;
  font-style: italic;
}

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

/* ==========================================================================
   INSTITUTIONAL PAGES (Privacy, Terms, Ethics)
   ========================================================================== */

.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;
  font-size: 0.9375rem;
}

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

.error-page {
  max-width: 720px;
  margin: 4rem auto;
  text-align: center;
}

.error-container {}

.error-page h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.error-page p {
  font-size: 1.0625rem;
  color: #666;
  margin-bottom: 1rem;
}

.error-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #1a1a1a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #1a1a1a;
}
.btn:hover { background: #000; color: #fff; border-color: #000; }

.btn--secondary {
  background: transparent;
  color: #1a1a1a;
}
.btn--secondary:hover { background: #1a1a1a; color: #fff; }

/* ==========================================================================
   SITE FOOTER — Four columns + Apple-style legal bar
   ========================================================================== */

.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;
  margin-bottom: 0;
}

.footer-heading {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  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; }

/* 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 290px;
    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.125rem; }

  .primary-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-list { flex-wrap: nowrap; justify-content: flex-start; }
  .nav-link { padding: 0.75rem 0.875rem; white-space: nowrap; }

  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: 1.875rem; }
  .article-title { font-size: 1.75rem; }
  .article-summary { padding-left: 0.75rem; }

  .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.625rem; }
  .supercluster-name { font-size: 1.625rem; }
  .desk-name { font-size: 1.625rem; }
  .author-name { font-size: 1.625rem; }
  .institutional-heading { font-size: 1.5rem; }
  .institutional-subheading { font-size: 1.0625rem; }

  .search-input-row { flex-direction: column; }
  .search-input { border-right: 1px solid #1a1a1a; border-bottom: none; }
  .search-submit { width: 100%; }
}

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

@media (max-width: 480px) {
  .masthead-name { font-size: 1.5rem; }
  .lead-headline { font-size: 1.5rem; }
  .article-title { font-size: 1.5rem; }
  .error-page h1 { font-size: 3.5rem; }
}

/* ==========================================================================
   PRINT STYLESHEET
   ========================================================================== */

@media print {
  /* Strip all chrome */
  .site-header,
  .primary-nav,
  .reading-progress,
  .breadcrumbs,
  .article-toc,
  .article-share,
  .membership-cta,
  .article-recommendations,
  .site-footer,
  .skip-nav,
  .search-form {
    display: none !important;
  }

  body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
  }

  main {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .article-layout {
    max-width: none;
  }

  .article-title {
    font-size: 22pt;
    line-height: 1.15;
    margin-bottom: 0.5rem;
  }

  .article-summary {
    font-size: 12pt;
    border-left: 2pt solid #000;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
  }

  .article-byline-row {
    border-bottom: 1pt solid #000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .article-body {
    font-size: 11pt;
    line-height: 1.7;
  }

  a { color: #000; text-decoration: none; }

  img { max-width: 100%; }

  /* Print footer */
  .article-layout::after {
    display: block;
    content: "The New Hampshire Times — thenhtimes.com — Massachusetts Society of Journalism — Pro Republica Aedificamus";
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: 1pt solid #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
    font-size: 8pt;
    color: #555;
  }

  /* Page breaks */
  .article-full { page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  img { page-break-inside: avoid; }
}
