/* DeepBlue Logs — ocean light theme (from reference) */
:root {
  --bg-light: #f4f8fb;
  --bg-card: #ffffff;
  --border-glow: rgba(0, 119, 182, 0.15);
  --accent-cyan: #0096c7;
  --accent-blue: #023e8a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-soft: #e2e8f0;
  --border-line: #f1f5f9;
  --header-height: 50px;
  --header-pad-y: 24px;
  --container: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 20px 40px rgba(0, 119, 182, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 150, 199, 0.08) 0%, rgba(244, 248, 251, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Header — PC matches reference: padding 24px 0, logo 1.5rem, links gap 32px */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: auto;
  padding: var(--header-pad-y) 0;
  margin-bottom: 40px;
  background: rgba(244, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 119, 182, 0.08);
}

.site-header .container {
  height: auto;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: auto;
  min-height: 0;
}

.logo.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  flex-shrink: 0;
  line-height: 1.2;
}

.logo.brand i {
  color: var(--accent-cyan);
  font-size: 1.1em;
  line-height: 1;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  z-index: 2;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: block;
  position: static;
  height: auto;
  max-height: none;
  overflow: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-cyan);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 150, 199, 0.25);
}

.nav-cta__icon {
  display: inline-flex;
  line-height: 0;
}

.nav-cta__icon svg {
  display: block;
}

.nav-cta:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .site-header {
    height: var(--header-height);
    padding: 0;
    margin-bottom: 0;
  }

  .site-header .container,
  .main-nav {
    height: 100%;
  }

  .logo.brand {
    font-size: 1.15rem;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 16px 30px rgba(0, 119, 182, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 24px;
  }

  .nav-links li a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-line);
  }
}

@media (min-width: 1024px) {
  .site-header {
    height: auto;
    padding: var(--header-pad-y) 0;
    margin-bottom: 40px;
  }

  .nav-menu {
    position: static;
    display: block;
    height: auto;
    max-height: none;
    top: auto;
    right: auto;
    left: auto;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hamburger {
    display: none;
  }
}

/* Page shell */
.page-main {
  padding: 32px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1,
.archive-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

/* Buttons */
.btn-primary,
.explore-btn,
.spotlight-cta,
.stay-touch__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 150, 199, 0.3);
}

.btn-primary:hover,
.explore-btn:hover,
.spotlight-cta:hover,
.stay-touch__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 150, 199, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 64px;
}

.hero-eyebrow {
  margin-bottom: 16px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-content h1 span {
  color: var(--accent-cyan);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 119, 182, 0.08);
}

.hero-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #e8f4fa;
}

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

.hero-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.author-mini img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  flex-shrink: 0;
}

.author-mini-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.author-mini-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag-pill,
.post-badge,
.category-badge,
.article-category {
  display: inline-block;
  background: rgba(0, 150, 199, 0.1);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2,
.section-head .section-title,
.feed-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p,
.section-desc,
.feed-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid,
.articles-grid,
.articles-listing-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 150, 199, 0.08);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 150, 199, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 56px 0 28px;
}

.feed-all {
  color: var(--accent-cyan);
  font-weight: 600;
  white-space: nowrap;
}

.feed-all:hover {
  color: var(--accent-blue);
}

/* Post cards */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 150, 199, 0.08);
}

.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.post-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8f4fa;
}

.post-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.post-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: 8px;
}

/* Author page */
.author-card-wrap {
  max-width: 900px;
  margin: 0 auto 48px;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.author-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.profile-header {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar,
.avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 150, 199, 0.2);
  background: #e8f4fa;
}

.badge-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--accent-cyan);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 150, 199, 0.3);
  border: 2px solid #fff;
}

.profile-info h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--accent-cyan);
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 150, 199, 0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.bio-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.bio-content p {
  margin-bottom: 16px;
}

.bio-content p:last-child {
  margin-bottom: 0;
}

.bio-content strong {
  color: var(--text-main);
  font-weight: 600;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-line);
  padding-top: 24px;
  gap: 16px;
}

.latest-articles-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.latest-articles-hint i {
  color: var(--accent-cyan);
  margin-right: 6px;
}

.explore-btn i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.explore-btn:hover i {
  transform: translateX(4px);
}

.author-articles-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.author-articles-head h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

/* Detail layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 119, 182, 0.05);
  min-width: 0;
}

.article-category {
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-meta-info,
.byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-line);
}

.article-meta-info i {
  margin-right: 6px;
}

.article-featured-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  background: #e8f4fa;
}

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

.article-body,
.detail-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.article-body h2,
.detail-post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 28px 0 12px;
  font-weight: 600;
}

.article-body h3,
.detail-post-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 24px 0 10px;
}

.article-body p,
.detail-post-content p {
  margin-bottom: 14px;
}

.article-body p + p,
.detail-post-content p + p {
  margin-top: 0;
}

.article-body img,
.detail-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
}

.article-body blockquote,
.detail-post-content blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--accent-cyan);
  padding: 18px 22px;
  border-radius: 0 16px 16px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-main);
  font-weight: 500;
}

.article-body ul,
.article-body ol,
.detail-post-content ul,
.detail-post-content ol {
  margin: 0 0 16px 1.25rem;
}

.article-body li,
.detail-post-content li {
  margin-bottom: 8px;
}

/* Detail sidebar author */
.sidebar {
  position: sticky;
  top: 24px;
}

@media (min-width: 1024px) {
  .sidebar {
    top: 112px;
  }
}

.author-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 119, 182, 0.05);
  text-align: center;
}

.author-widget .avatar-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.author-widget .avatar {
  width: 100px;
  height: 100px;
}

.author-widget .badge-icon {
  width: 30px;
  height: 30px;
  font-size: 12px;
  bottom: 0;
  right: 0;
}

.author-widget h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-widget .role {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.author-widget .bio-snippet {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.author-widget .mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.mini-stat-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.mini-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.author-widget .profile-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
}

.author-widget .profile-link:hover {
  color: var(--accent-blue);
}

/* Share / bottom author / adjacent / comments */
.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-line);
}

.share-container {
  min-height: 40px;
}

.detail-author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
}

.detail-author-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 150, 199, 0.15);
}

.detail-author-card .written-by {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.detail-author-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.detail-author-card .role {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.detail-author-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.detail-author-card .profile-link {
  color: var(--accent-cyan);
  font-weight: 600;
}

.adjacent-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.adjacent-nav a {
  display: block;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.adjacent-nav a:hover {
  border-color: var(--accent-cyan);
}

.adjacent-nav .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.adjacent-nav .title {
  font-weight: 600;
  color: var(--text-main);
}

.adjacent-nav .next {
  text-align: right;
}

.comments-section {
  margin-top: 40px;
}

.comment-form {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
}

.comment-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input,
.form-group textarea,
.stay-touch__field input,
.stay-touch__field textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-main);
  background: #fff;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.stay-touch__field input:focus,
.stay-touch__field textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.12);
}

.form-group input:disabled,
.form-group textarea:disabled,
.comment-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.related-section {
  margin-top: 56px;
}

.related-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.related-lead {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8f4fa;
}

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

.related-card-body {
  padding: 18px;
}

.related-tag {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.related-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-cta {
  margin-top: 10px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
}

/* All articles — date + title rows */
.archive-list {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.archive-heading {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
}

.archive-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-line);
}

.archive-row:last-child {
  border-bottom: 0;
}

.archive-row time {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.archive-row a {
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.45;
  transition: var(--transition);
}

.archive-row a:hover {
  color: var(--accent-cyan);
}

/* Alone / stay-touch */
.standalone-page .article-prose {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  max-width: 800px;
  margin: 0 auto;
}

.stay-touch {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-line);
}

.stay-touch__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stay-touch__desc {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.stay-touch__form {
  display: grid;
  gap: 16px;
}

.stay-touch__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stay-touch__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.stay-touch__msg {
  font-size: 0.95rem;
  margin-top: 4px;
}

.stay-touch__msg.is-ok {
  color: #0f766e;
}

.stay-touch__msg.is-error {
  color: #b91c1c;
}

/* Pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pager__btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pager__btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.pager__btn--curr {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #fff;
}

.pager__btn--off {
  opacity: 0.45;
  cursor: default;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Deliver mode: single column when sidebar hidden */
.page-main.is-deliver .article-layout {
  grid-template-columns: 1fr;
}

/* Responsive */
@media (max-width: 968px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-btns {
    justify-content: center;
  }

  .features-grid,
  .articles-grid,
  .articles-listing-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .page-main {
    padding: 20px 0 56px;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .article-main {
    padding: 24px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-body,
  .detail-post-content {
    font-size: 1.125rem;
    line-height: 1.75;
  }

  .article-body p,
  .detail-post-content p {
    margin-bottom: 12px;
  }

  .author-card {
    padding: 24px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-role {
    justify-content: center;
  }

  .card-footer {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .adjacent-nav,
  .detail-author-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .adjacent-nav .next {
    text-align: left;
  }

  .archive-row {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }

  .archive-list,
  .standalone-page .article-prose {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .archive-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
