/*
  Journal Magazine — Simple, Elegant, Timeless Literary Gazette
  Unified design across all pages:
  - Exact header preserved: dateline, centered logo, tagline, and streamlined nav
  - Simple, uncluttered reading layout (880px-900px centered)
  - Fine serif typography (Newsreader / Georgia) with crisp Plus Jakarta Sans UI
  - White pages with navy and blue accents and cool blue-gray hairlines
*/

:root {
  --navy: #1F3D7B;
  --navy-dark: #12254B;
  --ink: #1F2421;
  --body-text: #374151;
  --muted: #6B7280;
  --light-muted: #9CA3AF;
  --rule: #E5E7EB;
  --rule-dark: #D1D5DB;
  --paper: #FFFFFF;
  --canvas: #FFFFFF;
  --blue: #2F5BB5;
  --tint: #F9FAFB;
  --blue-soft: #F3F4F6;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1080px;
  --content-width: 800px; /* page body width, shared by every page and the article reading column */
  --reading-width: var(--content-width);
  --cover-ratio: 3 / 2; /* every cover image on the site uses this aspect ratio */
  --magazine-cover-ratio: 8.5 / 11; /* the one exception: publication covers are portrait, like a printed magazine */
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  background-color: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body, button, input, select, textarea {
  font-family: var(--font-sans);
}

button {
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
}

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

.wrap,
.simple-wrap {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* --------------------------------------------------
   EXACT HEADER REQUESTED BY USER
-------------------------------------------------- */

.simple-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--rule);
}

/* 1. Dateline Strip */
.simple-dateline {
  padding: 14px 0;
  font-size: 14px;
  color: var(--muted);
  background: #FFFFFF;
}

.simple-dateline-inner {
  width: min(var(--content-width), calc(100% - 40px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.dateline-right {
  justify-self: end;
  gap: 22px;
}

.dateline-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dateline-section {
  display: flex;
  align-items: center;
  gap: 8px;
}


.bullet-sep {
  color: var(--rule-dark);
}

.simple-dateline a {
  color: var(--navy);
}

.simple-dateline a:hover {
  text-decoration: underline;
}

/* 2. Main Brand Zone (Logo + Tagline) */
.simple-brand-zone {
  padding: 30px 0 18px;
  text-align: center;
}

.simple-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.simple-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.simple-logo-img {
  height: 52px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.simple-tagline {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
}

/* Page links: always visible at the left of the top strip; the page you are on is bold */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  white-space: nowrap;
}

.main-nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  color: var(--navy);
  transition: color 0.15s ease;
}

/* a hidden bold copy of the label reserves the bold width, so links never shift when one becomes bold */
.main-nav a::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
  pointer-events: none;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a.current {
  font-weight: 700;
}

/* Not enough room beside the logo: logo on top, links on the next row, account links below */
@media (max-width: 960px) {
  .simple-dateline-inner {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .simple-dateline-inner .simple-logo-link {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    order: 0;
  }

  .simple-dateline-inner .dateline-left {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .simple-dateline-inner .dateline-right {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
  }

  .main-nav {
    justify-content: center;
  }
}

/* Search: a bare icon in the top strip, left of the account links. Clicking it opens a borderless field
   to the icon's left, so the icon and the links to its right never move. */
.simple-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.simple-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.15s ease;
}

.simple-search-btn:hover,
.simple-search-box.open .simple-search-btn {
  color: var(--blue);
}

.simple-search-input {
  width: 0;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: width 0.22s ease, margin 0.22s ease, opacity 0.18s ease, visibility 0s linear 0.22s;
}

.simple-search-input::placeholder {
  color: var(--light-muted);
}

.simple-search-input::-webkit-search-cancel-button,
.simple-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.simple-search-box.open .simple-search-input {
  width: 190px;
  margin-right: 8px;
  opacity: 1;
  visibility: visible;
  transition: width 0.22s ease, margin 0.22s ease, opacity 0.18s ease, visibility 0s;
}

/* --------------------------------------------------
   STREAM CONTAINER & HOMEPAGE LEAD
-------------------------------------------------- */

.stream-main {
  padding: 36px 0 60px;
}

.stream-container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* Page body content shares the article's reading width (header and footer stay full width) */
main .wrap,
main .stream-container {
  width: min(var(--content-width), calc(100% - 40px));
}

.stream-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

/* Home: top story with leaderboard beside it */
.home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: stretch;
}

.home-lead .featured-story-block {
  margin-bottom: 0;
}

.home-leaderboard {
  border: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  background: var(--tint);
  padding: 20px 20px 18px;
}

.home-leaderboard-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.home-leaderboard-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.home-leaderboard-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.home-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.home-leaderboard-rank {
  width: 22px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--light-muted);
}

.home-leaderboard-item.first .home-leaderboard-rank {
  color: var(--blue);
}

.home-leaderboard-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule-dark);
  flex-shrink: 0;
}

.home-leaderboard-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.home-leaderboard-info a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-leaderboard-info a:hover {
  color: var(--navy);
}

.home-leaderboard-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.home-leaderboard-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.home-leaderboard-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.home-leaderboard-link:hover {
  color: var(--blue);
}

/* Featured Cover Story */
.featured-story-block {
  margin-bottom: 24px;
}

.featured-story-article {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.featured-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.featured-tag {
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dot {
  color: var(--rule-dark);
}

.featured-headline {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.18;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.featured-headline a {
  color: var(--ink);
  text-decoration: none;
}

.featured-headline a:hover {
  color: var(--navy);
}

.featured-byline {
  font-size: 13.5px;
  color: var(--muted);
}

.featured-byline a {
  color: var(--ink);
  font-weight: 700;
}

.featured-byline a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.featured-image-holder {
  width: 100%;
  aspect-ratio: var(--cover-ratio);
  overflow: hidden;
  background: var(--rule);
  margin-bottom: 20px;
}

.featured-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-summary {
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 18px;
}

.featured-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

.featured-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-like-btn {
  background: transparent;
  border: none;
  font-size: inherit;
  line-height: inherit;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.metric-like-btn.active {
  color: #DC2626;
  font-weight: 700;
}

.metric-sep {
  color: var(--rule-dark);
}

/* Stream Feed (Row List) */
.stream-feed-section {
  padding-top: 4px;
}

.stream-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 14px;
}

.stream-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.category-pill {
  background: transparent;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #4B5563;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-pill:hover {
  color: var(--navy);
}

.category-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.stream-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.sort-hint {
  color: var(--light-muted);
}

.sort-pill {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.sort-pill:hover,
.sort-pill.active {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.search-banner {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 24px;
}

.stream-article-list {
  display: flex;
  flex-direction: column;
}

.stream-entry {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  align-items: center;
}

.stream-entry:first-child {
  padding-top: 0;
}

.stream-entry-text {
  display: flex;
  flex-direction: column;
}

.stream-entry-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.entry-cat {
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stream-entry-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.stream-entry-title a {
  color: var(--ink);
  text-decoration: none;
}

.stream-entry-title a:hover {
  color: var(--navy);
}

.stream-entry-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4B5563;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

.entry-author-byline a {
  font-weight: 700;
  color: var(--ink);
}

.entry-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-btn-like,
.entry-btn-action {
  background: transparent;
  border: none;
  font-size: 11.5px;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.entry-btn-like.active {
  color: #DC2626;
  font-weight: 700;
}

.entry-btn-action:hover {
  color: var(--navy);
  text-decoration: underline;
}

.stream-entry-thumb {
  width: 100%;
  aspect-ratio: var(--cover-ratio);
  overflow: hidden;
  background: var(--rule);
}

.stream-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.col-heading {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.col-text {
  font-size: 13px;
  line-height: 1.6;
  color: #555E6D;
  margin: 0 0 12px;
}

.col-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.col-link:hover {
  color: var(--blue);
}

.col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-list-item {
  display: flex;
  flex-direction: column;
}

.col-writer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.col-writer-name:hover {
  color: var(--navy);
  text-decoration: underline;
}

.col-writer-bio {
  font-size: 11px;
  color: var(--muted);
}

/* --------------------------------------------------
   ARTICLE READING VIEW (ArticlePage)
-------------------------------------------------- */

.article-layout {
  max-width: var(--reading-width);
  margin: 40px auto 70px;
  padding: 0 20px;
}

.article-column {
  display: flex;
  flex-direction: column;
}

.article-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.article-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.18;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.article-dek {
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.5;
  color: #4B5563;
  margin: 0 0 24px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.article-byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.article-byline-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-byline-name a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.article-byline-date {
  font-size: 12px;
  color: var(--muted);
}

.btn-follow {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--rule-dark);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 20px;
  text-decoration: none;
}

.btn-follow:hover {
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}

.btn-follow.following {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.article-cover {
  width: 100%;
  aspect-ratio: var(--cover-ratio);
  object-fit: cover;
  margin-bottom: 32px;
  background: var(--rule);
}

.article-body {
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.8;
  color: #2D3748;
}

.article-body p {
  margin: 0 0 24px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 40px 0;
  font-size: 13px;
  color: var(--muted);
}

.stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats .liked {
  color: #DC2626;
  font-weight: 700;
}

.menu {
  position: relative;
}

.menu-toggle {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  color: var(--muted);
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  min-width: 130px;
  z-index: 20;
}

.menu-dropdown a {
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--body-text);
  text-decoration: none;
}

.menu-dropdown a:hover {
  background: var(--tint);
  color: var(--navy);
}

.comments-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 16px;
}

.comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.comment-input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--rule);
  background: #FFFFFF;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.btn-comment {
  height: 40px;
  padding: 0 18px;
  background: var(--navy);
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
}

.btn-comment:hover {
  background: var(--navy-dark);
}

.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.comment-time {
  font-size: 11px;
  font-weight: normal;
  color: var(--muted);
  margin-left: 8px;
}

.comment-text {
  font-size: 13.5px;
  color: #4B5563;
  margin-top: 4px;
  line-height: 1.5;
}

/* --------------------------------------------------
   WRITERS PAGE & LEADERBOARD (WritersPage)
-------------------------------------------------- */

.writer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown summary {
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: #FFFFFF;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  z-index: 20;
}

.dropdown-menu a {
  padding: 6px 14px;
  font-size: 12px;
  color: #4B5563;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.selected {
  background: var(--tint);
  color: var(--navy);
  font-weight: 600;
}

.writer-search-input {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  font-size: 12px;
  background: #FFFFFF;
  width: 200px;
}

.writer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.writer-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.writer-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

.writer-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.writer-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}

.writer-card-name a {
  color: var(--ink);
  text-decoration: none;
}

.writer-card-name a:hover {
  color: var(--navy);
}

.writer-card-bio {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

.writer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--light-muted);
}

/* Leaderboard Table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  margin: 24px 0;
}

.leaderboard-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  background: var(--tint);
}

.leaderboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

/* --------------------------------------------------
   PUBLICATIONS PAGE (PublicationsPage)
-------------------------------------------------- */

.featured-issue {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 24px;
  align-items: center;
  margin: 28px 0 36px;
}

.featured-issue-cover {
  width: 100%;
  aspect-ratio: var(--magazine-cover-ratio);
  object-fit: cover;
  border: 1px solid var(--rule);
}

.featured-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.featured-issue-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 8px;
}

.featured-issue-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 16px;
}

.archive-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.issue-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.issue-card-cover {
  width: 100%;
  aspect-ratio: var(--magazine-cover-ratio);
  object-fit: cover;
  margin-bottom: 12px;
}

.issue-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.issue-card-date {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.issue-card-desc {
  font-size: 12.5px;
  color: var(--body-text);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

/* --------------------------------------------------
   PROFILE PAGE (ProfilePage)
-------------------------------------------------- */

.profile-page-simple {
  padding: 36px 0 60px;
}

.profile-bio-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.profile-bio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.profile-follow-btn {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-follow-btn:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.profile-follow-btn.following {
  background: var(--navy);
  color: #FFFFFF;
}

.profile-bio-main {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.profile-bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rule);
  flex-shrink: 0;
}

.profile-bio-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-bio-name {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 500;
}

.profile-bio-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.profile-handle {
  font-weight: 600;
  color: var(--navy);
}

.profile-role-tag {
  color: var(--blue);
  font-weight: 600;
}

.profile-bio-prose {
  font-size: 14.5px;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 18px;
}

.profile-stat-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--tint);
  border: 1px solid var(--rule);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}

.stat-pill strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 4px;
}

.profile-pieces-section {
  padding-top: 10px;
}

.profile-count-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: normal;
}

.section-header-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.section-main-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* --------------------------------------------------
   SUBMISSION / WRITE PAGE (WritePage)
-------------------------------------------------- */

.writer-main-page {
  padding: 36px 0 60px;
}

.writer-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}

.writer-page-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--ink);
}

.editor-state {
  font-size: 11.5px;
  color: var(--muted);
}

.writer-btn-group {
  display: flex;
  gap: 10px;
}

.btn-draft-simple {
  padding: 7px 16px;
  border: 1px solid var(--rule-dark);
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.btn-draft-simple:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-publish-simple {
  padding: 7px 18px;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-publish-simple:hover {
  background: var(--navy-dark);
}

.writer-composer-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 32px;
}

.field-title-input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.field-select {
  height: 34px;
  border: 1px solid var(--rule);
  padding: 0 8px;
  font-size: 13px;
  background: #FFFFFF;
  width: 100%;
}

.editor-body {
  min-height: 360px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  color: #2D3748;
  outline: none;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.editor-body p {
  margin: 0 0 16px;
}

.editor-notes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--muted);
}

.editor-notes h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--navy);
}

.editor-notes ul {
  margin: 0;
  padding-left: 20px;
}

/* --------------------------------------------------
   LOGIN & CREATE ACCOUNT PAGES
-------------------------------------------------- */

.auth-compact-page {
  padding: 48px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-compact-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
}

.auth-compact-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-compact-logo img {
  height: 48px;
  width: auto;
  margin: 0 auto;
}

.auth-compact-title {
  margin: 10px 0 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
}

.auth-compact-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.auth-compact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-compact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-compact-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.auth-compact-input {
  height: 36px;
  border: 1px solid var(--rule);
  padding: 0 10px;
  font-size: 13px;
  background: #FFFFFF;
}

.auth-compact-btn {
  height: 38px;
  background: var(--navy);
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.auth-compact-btn:hover {
  background: var(--navy-dark);
}

/* Publications: "Read publication" button */
.btn-read {
  display: inline-block;
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-read:hover {
  background: var(--navy);
  color: #FFFFFF;
  text-decoration: none;
}

/* --------------------------------------------------
   RESPONSIVE DESIGN
-------------------------------------------------- */

@media (max-width: 960px) {
  .home-lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  /* Logo on top; the menu button sits below it on the left, the search and account links on the right */
  .simple-dateline-inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .simple-logo-link {
    grid-column: 1 / -1;
    justify-self: center;
    order: -1;
  }

  .dateline-right {
    justify-self: end;
  }

  .dateline-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .simple-logo-img {
    height: 40px;
  }

  .simple-search-box.open .simple-search-input {
    width: 130px;
  }

  .stream-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stream-entry-thumb {
    order: -1;
  }

  .featured-issue,
  .support-panel,
  .field-row {
    grid-template-columns: 1fr;
  }

  .writer-grid,
  .issue-grid {
    grid-template-columns: 1fr;
  }
}

.by-label {
  margin-right: 3px;
}

.stream-toolbar .dropdown-menu {
  min-width: 170px;
}

.stream-toolbar .stream-sort .dropdown-menu {
  left: auto;
  right: 0;
}
