/* SportsGuff — clean public writing platform
   Built from scratch. No dependency on legacy theme.css. */

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

:root {
  --ink: #161616;
  --ink-2: #3a3a3a;
  --mute: #6f6f6f;
  --line: #e6e6e6;
  --paper: #f7f7f5;
  --white: #ffffff;
  --accent: #1f6b4f;
  --accent-hover: #15553e;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1080px;
  --read: 720px;
  --space: clamp(1.25rem, 3vw, 2rem);
  --header-h: 5rem;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site > .sg-studio,
.site > .site-main,
.site > .sg-auth,
.site > .sg-page {
  flex: 1 0 auto;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sg-wrap {
  width: min(var(--max), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.sg-read {
  width: min(var(--read), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.sg-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.sg-top-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  padding-block: 0.85rem;
}

.sg-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.sg-logo img {
  display: block;
  height: 2.85rem;
  width: auto;
  max-width: 13.5rem;
  object-fit: contain;
}

.sg-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.75rem;
  min-width: 0;
}

.sg-nav-links,
.sg-nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
}

.sg-nav-actions {
  padding-left: 1.5rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--line);
  gap: 0.85rem;
}

.sg-nav-links a,
.sg-nav-actions .sg-nav-account {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.sg-nav-links a:hover,
.sg-nav-actions .sg-nav-account:hover {
  color: var(--accent);
}

.sg-nav .sg-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sg-nav .sg-write:hover {
  background: var(--accent);
  color: var(--white);
}

.sg-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

@media (max-width: 1100px) {
  .sg-nav-links,
  .sg-nav-actions {
    gap: 0.25rem 1rem;
  }

  .sg-nav-links a,
  .sg-nav-actions .sg-nav-account {
    font-size: 0.875rem;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 4.35rem;
  }

  .sg-logo img {
    height: 2.35rem;
    max-width: 11rem;
  }

  .sg-top-inner {
    gap: 1rem;
    padding-block: 0.7rem;
  }
}

.sg-menu-toggle:hover {
  border-color: #d4d4d4;
  background: var(--paper);
}

@media (max-width: 920px) {
  .sg-menu-toggle {
    display: inline-flex;
  }

  .sg-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(22, 22, 22, 0.08);
  }

  .sg-nav.is-open {
    display: flex;
  }

  .sg-nav-links,
  .sg-nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-left: 0;
    border-left: 0;
  }

  .sg-nav-links a,
  .sg-nav-actions .sg-nav-account {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    white-space: normal;
  }

  .sg-nav-links a:hover,
  .sg-nav-actions .sg-nav-account:hover {
    background: var(--paper);
  }

  .sg-nav .sg-write {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
  }
}

/* ---------- Home intro ---------- */
.sg-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.4rem, 5vw, 3.5rem);
  border-bottom: 0;
  color: #fff;
  background: #101410;
}

.sg-intro-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(8, 12, 10, 0.94) 0%, rgba(8, 12, 10, 0.78) 42%, rgba(8, 12, 10, 0.45) 72%, rgba(31, 107, 79, 0.28) 100%),
    linear-gradient(to top, rgba(8, 12, 10, 0.55), transparent 42%),
    url("/assets/images/sportsguff.jpeg") center/cover no-repeat;
  transform: scale(1.03);
}

.sg-intro-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  animation: sg-fade 0.6s ease both;
}

.sg-intro-eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.sg-intro .sg-logo-lg {
  margin: 0 0 1rem;
  line-height: 0;
}

.sg-intro .sg-logo-lg img {
  display: block;
  height: clamp(3rem, 12vw, 5rem);
  width: auto;
  max-width: min(100%, 28rem);
  filter: brightness(0) invert(1);
}

.sg-intro-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.sg-intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.75rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.sg-intro-points li {
  padding: 0 1.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.sg-intro-points li:first-child {
  padding-left: 0;
  border-left: 0;
}

.sg-intro-points li:last-child {
  padding-right: 0;
}

.sg-intro-points strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fefc4;
  margin-bottom: 0.4rem;
}

.sg-intro-points span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.sg-intro .sg-actions .sg-link-primary {
  background: #fff;
  color: var(--ink);
}

.sg-intro .sg-actions .sg-link-primary:hover {
  background: #8fefc4;
  color: var(--ink);
}

.sg-intro .sg-actions .sg-link-quiet {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.sg-intro .sg-actions .sg-link-quiet:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 800px) {
  .sg-intro {
    min-height: auto;
    align-items: flex-end;
  }
  .sg-intro-points {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding-top: 1rem;
  }
  .sg-intro-points li {
    padding: 0 0 0 0.85rem;
    border-left: 2px solid rgba(143, 239, 196, 0.55);
  }
  .sg-intro-points li:first-child {
    padding-left: 0.85rem;
    border-left: 2px solid rgba(143, 239, 196, 0.55);
  }
}

.sg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.sg-link-primary {
  color: var(--white);
  background: var(--ink);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
}

.sg-link-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.sg-link-quiet {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.sg-link-quiet:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Feed ---------- */
.sg-main {
  padding: 2.75rem 0 4.5rem;
  background: var(--white);
}

.sg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.sg-layout > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .sg-layout {
    grid-template-columns: 1fr;
  }
  .sg-aside { display: none; }
}

.sg-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.sg-feature {
  padding-bottom: 2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.sg-feature-media {
  display: block;
  margin-bottom: 1.15rem;
  border-radius: 4px;
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 16 / 9;
}

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

.sg-feature-body .sg-meta {
  margin: 0 0 0.65rem;
}

.sg-feature h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.4rem);
  margin-bottom: 0.7rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sg-feature h2 a {
  color: var(--ink);
}

.sg-feature h2 a:hover {
  color: var(--accent);
}

.sg-feature .sg-excerpt {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.sg-cat-header {
  margin-bottom: 1.75rem;
}

.sg-cat-header .sg-page-title {
  margin-bottom: 0.55rem;
}

.sg-cat-lead {
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0;
  line-height: 1.55;
}

.sg-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.sg-loadmore {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
}

.sg-loadmore:hover:not(:disabled) {
  border-color: var(--ink);
}

.sg-loadmore:disabled {
  opacity: 0.55;
  cursor: default;
}

.sg-empty {
  color: var(--mute);
  margin: 1rem 0 0;
}

/* ---------- 404 ---------- */
.sg-404 {
  padding-top: 1.5rem;
}

.sg-404-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(31, 107, 79, 0.12), transparent 55%),
    radial-gradient(ellipse at 88% 80%, rgba(22, 22, 22, 0.05), transparent 50%),
    linear-gradient(165deg, #fff 0%, #f3f6f3 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sg-404-art {
  margin: 0;
  position: relative;
}

.sg-404-art img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  animation: sg-404-float 5.5s ease-in-out infinite;
}

.sg-404-copy {
  max-width: 34rem;
}

.sg-404-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.sg-404 .sg-page-title {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.sg-404 .sg-page-lead {
  margin-bottom: 1.35rem;
}

.sg-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sg-404-more {
  padding-top: 0.25rem;
}

.sg-404-more-head {
  margin-bottom: 1.15rem;
}

.sg-404-more-head h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.sg-404-more-head p {
  margin: 0;
  color: var(--mute);
  font-size: 0.98rem;
}

@keyframes sg-404-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 860px) {
  .sg-404-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sg-404-copy {
    max-width: none;
    order: -1;
  }
  .sg-404 .sg-page-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .sg-404-actions {
    justify-content: center;
  }
  .sg-404-art img {
    max-width: 28rem;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-404-art img {
    animation: none;
  }
}

.sg-year-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}

.sg-year-link {
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
}

.sg-year-link:hover,
.sg-year-link.is-active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper);
}

.sg-tag-content {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.sg-tag-content .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 1.15rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.sg-tag-content .nav-tabs .nav-item {
  margin: 0;
}

.sg-tag-content .nav-tabs a {
  display: inline-block;
  color: var(--mute);
  font-family: var(--sans);
  font-size: 0.88rem !important;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.sg-tag-content .nav-tabs .active a,
.sg-tag-content .nav-tabs a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.sg-tag-content .tab-content {
  background: transparent !important;
  padding: 0 !important;
}

.sg-tag-content .tab-pane {
  display: none;
}

.sg-tag-content .tab-pane.active,
.sg-tag-content .tab-pane.show {
  display: block;
}

.sg-tag-content h2,
.sg-tag-content .lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.sg-tag-content .border-style {
  display: none;
}

.sg-tag-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  background: var(--white);
}

.sg-tag-content thead {
  background: var(--ink);
  color: #fff;
}

.sg-tag-content th,
.sg-tag-content td {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.sg-tag-content thead th {
  border-color: rgba(255,255,255,0.12);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sg-tag-content tbody tr:nth-child(even) {
  background: var(--paper);
}

.sg-tag-content .bold {
  font-weight: 700;
}

@media (max-width: 720px) {
  .sg-tag-content {
    overflow-x: auto;
  }
  .sg-tag-content table {
    min-width: 520px;
  }
}

/* ---------- Players directory ---------- */
.sg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sg-players-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

.sg-players-search input,
.sg-players-filter select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.sg-players-search input:focus,
.sg-players-filter select:focus {
  border-color: var(--ink);
}

.sg-players-count {
  color: var(--mute);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 1.35rem;
  min-height: 1.2em;
}

.sg-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem 1rem;
}

.sg-player-card {
  display: block;
  color: var(--ink);
  min-width: 0;
}

.sg-player-card.is-hidden,
.sg-players-grid.is-hidden,
#noResults[hidden] {
  display: none !important;
}

.sg-player-card:hover {
  color: var(--ink);
}

.sg-player-card:hover strong {
  color: var(--accent);
}

.sg-player-photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ecece8;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}

.sg-player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sg-player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sg-player-meta strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.sg-player-meta span {
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.35;
}

@media (max-width: 720px) {
  .sg-players-tools {
    grid-template-columns: 1fr;
  }
  .sg-players-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.1rem 0.75rem;
  }
}

/* ---------- Player detail ---------- */
.sg-player-page {
  max-width: var(--max);
}

.sg-player-back {
  margin: 0 0 1.25rem;
}

.sg-player-back a {
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 650;
}

.sg-player-back a:hover {
  color: var(--accent);
}

.sg-player-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.sg-player-hero-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ecece8;
  border-radius: 4px;
}

.sg-player-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sg-player-hero-copy .sg-kicker {
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.sg-player-hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.03em;
}

.sg-player-sub {
  color: var(--mute);
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
}

.sg-player-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0;
}

.sg-player-facts div {
  min-width: 0;
}

.sg-player-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.25rem;
}

.sg-player-facts dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: capitalize;
}

.sg-player-section {
  margin-bottom: 2.25rem;
}

.sg-player-section > .sg-kicker {
  margin-bottom: 0.95rem;
}

.sg-player-table-wrap {
  overflow-x: auto;
}

.sg-player-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sg-player-table th,
.sg-player-table td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.sg-player-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.sg-recent-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sg-recent-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.sg-recent-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: -0.015em;
}

.sg-recent-meta {
  display: block;
  color: var(--mute);
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.sg-recent-stats {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.sg-recent-stats strong {
  display: inline;
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 700;
  color: var(--ink);
}

.sg-format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.sg-format-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.sg-format-tab:hover,
.sg-format-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.sg-format-panel {
  display: none;
}

.sg-format-panel.is-active {
  display: block;
}

.sg-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.sg-stats-block h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.sg-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.sg-stat-row span {
  color: var(--mute);
}

.sg-stat-row strong {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 800px) {
  .sg-player-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem 1.15rem;
  }
  .sg-player-facts {
    grid-template-columns: 1fr;
  }
  .sg-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Authors directory ---------- */
.sg-authors-header {
  margin-bottom: 1.65rem;
}

.sg-authors-header .sg-page-title {
  margin-bottom: 0.45rem;
}

.sg-authors-controls {
  margin-bottom: 1.35rem;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sg-authors-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.85rem;
}

.sg-authors-search {
  flex: 1 1 220px;
}

.sg-authors-search input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sg-authors-search input:focus {
  border-color: rgba(31, 107, 79, 0.45);
  background: var(--white);
}

.sg-authors-submit {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sg-authors-submit:hover {
  background: var(--accent);
}

.sg-authors-clear {
  color: var(--mute);
  font-size: 0.86rem;
  font-weight: 650;
  padding: 0 0.25rem;
}

.sg-authors-clear:hover {
  color: var(--accent);
}

.sg-authors-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.sg-authors-letters a,
.sg-authors-letters span {
  min-width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-2);
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

.sg-authors-letters a:hover {
  color: var(--ink);
  background: rgba(22, 22, 22, 0.06);
}

.sg-authors-letters a.is-active {
  color: #fff;
  background: var(--ink);
}

.sg-authors-letters .is-disabled {
  color: #c9c9c9;
}

.sg-authors-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.sg-authors-count {
  margin: 0;
  color: var(--mute);
  font-size: 0.86rem;
  font-weight: 550;
}

.sg-authors-list {
  border-top: 1px solid var(--line);
}

.sg-author-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  padding: 1.75rem;
  margin: 0 -0.65rem;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: background 0.15s ease;
}

.sg-author-row:hover {
  color: var(--ink);
  background: rgba(22, 22, 22, 0.03);
}

.sg-author-row:hover strong {
  color: var(--accent);
}

.sg-author-row:hover .sg-author-row-go {
  color: var(--accent);
  transform: translateX(2px);
}

.sg-author-row-photo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #ecece8;
  box-shadow: 0 0 0 1px rgba(22, 22, 22, 0.08);
}

.sg-author-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-author-row-photo.is-empty {
  background: linear-gradient(145deg, #ecece8, #ddd);
}

.sg-author-row-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.sg-author-row-copy strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sg-author-row-copy em {
  font-style: normal;
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.3;
}

.sg-author-row-copy span {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-author-row-go {
  color: #c4c4c4;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sg-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.sg-pager a,
.sg-pager span {
  font-size: 0.9rem;
  font-weight: 650;
}

.sg-pager a {
  color: var(--ink);
}

.sg-pager a:hover {
  color: var(--accent);
}

.sg-pager .is-disabled {
  color: #c4c4c4;
}

.sg-pager-status {
  color: var(--mute);
  font-weight: 500;
}

@media (max-width: 640px) {
  .sg-authors-controls {
    padding: 0.85rem 0.85rem 0.95rem;
  }

  .sg-author-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.9rem 0.35rem;
    margin: 0 -0.35rem;
  }

  .sg-author-row-photo {
    width: 48px;
    height: 48px;
  }

  .sg-author-row-go {
    display: none;
  }

  .sg-author-row-copy span {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* ---------- Author profile ---------- */
.sg-author-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #101410;
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.sg-author-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(8, 12, 10, 0.92) 0%, rgba(8, 12, 10, 0.78) 45%, rgba(8, 12, 10, 0.55) 100%),
    linear-gradient(to top, rgba(8, 12, 10, 0.55), transparent 50%),
    url("/assets/images/sportsguff.jpeg") center/cover no-repeat;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05);
}

.sg-author-hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(143, 239, 196, 0.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(31, 107, 79, 0.28), transparent 36%),
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 14px,
      rgba(255, 255, 255, 0.015) 14px,
      rgba(255, 255, 255, 0.015) 15px
    );
}

.sg-author-hero-inner {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  animation: sg-fade 0.55s ease both;
}

.sg-author-hero-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: #1c2820;
  box-shadow:
    0 0 0 3px rgba(143, 239, 196, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.sg-author-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-author-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(143, 239, 196, 0.9);
}

.sg-author-hero-copy h1 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.sg-author-handle {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  font-weight: 500;
}

.sg-author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 0 0 1.15rem;
}

.sg-author-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.sg-author-stats span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

.sg-author-bio {
  max-width: 40rem;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.65;
}

.sg-author-actions {
  display: grid;
  gap: 0.85rem;
}

.sg-author-share,
.sg-author-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.sg-author-share .sg-share-label,
.sg-author-socials .sg-share-label {
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.25rem;
}

.sg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

button.sg-icon-btn {
  appearance: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.sg-icon-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.sg-icon-btn:hover {
  background: rgba(143, 239, 196, 0.16);
  border-color: rgba(143, 239, 196, 0.55);
  color: #8fefc4;
  transform: translateY(-1px);
}

.sg-icon-btn.is-copied {
  background: rgba(143, 239, 196, 0.22);
  border-color: rgba(143, 239, 196, 0.7);
  color: #8fefc4;
}

.sg-author-main {
  padding-top: 2.25rem;
}

.sg-author-writing-head {
  margin-bottom: 0.35rem;
}

@media (max-width: 720px) {
  .sg-author-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .sg-author-hero-photo {
    width: 132px;
    height: 132px;
  }
  .sg-author-stats,
  .sg-author-share,
  .sg-author-socials {
    justify-content: center;
  }
  .sg-author-bio {
    margin-inline: auto;
  }
}

.sg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sg-meta a { color: var(--accent); font-weight: 650; }
.sg-meta a:hover { color: var(--accent-hover); }

.sg-feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.sg-feed-item > div {
  min-width: 0;
}

.sg-feed-item:last-child {
  border-bottom: 0;
}

.sg-feed-item h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin-bottom: 0.45rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sg-feed-item h3 a {
  color: var(--ink);
}

.sg-feed-item h3 a:hover {
  color: var(--accent);
}

.sg-feed-item .sg-excerpt {
  color: var(--mute);
  font-size: 0.98rem;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sg-feed-item .sg-meta {
  margin-top: 0.75rem;
}

.sg-meta--feed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  line-height: 1.2;
}

.sg-meta--feed .sg-meta-date {
  margin: 0;
  color: var(--mute);
  font-size: 0.8125rem;
  font-weight: 500;
}

.sg-meta--feed a.sg-feed-author {
  display: inline;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.sg-meta--feed a.sg-feed-author:hover {
  color: var(--ink);
}

.sg-meta--feed a.sg-feed-author:hover .sg-feed-author-name {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.sg-feed-meta-sep {
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  margin: 0 0.55rem;
  border-radius: 999px;
  background: #c8c8c8;
}

.sg-feed-author-photo {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.sg-feed-author-photo.is-empty {
  background: linear-gradient(145deg, #efefef, #e2e2e2);
}

.sg-feed-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-feed-author-name {
  position: relative;
  top: 0.02em;
}

.sg-feature .sg-meta--feed {
  margin-bottom: 0.65rem;
}

.sg-writers {
  margin: 0.75rem 0 0.5rem;
  padding: 1.85rem 0 1.9rem;
  border-bottom: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
}

.sg-writers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.sg-writers-head .sg-kicker {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sg-writers-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sg-writers-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sg-writers-btn:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}

.sg-writers-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sg-writers-all {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--mute);
  white-space: nowrap;
  margin-left: 0.25rem;
}

.sg-writers-all:hover {
  color: var(--accent);
}

.sg-writers-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -0.15rem;
  padding: 0.15rem;
  max-width: 100%;
}

.sg-writers-viewport::-webkit-scrollbar {
  display: none;
}

.sg-writers-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.sg-writer {
  flex: 0 0 clamp(112px, 18vw, 132px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0 0.85rem;
  color: var(--ink-2);
  position: relative;
  scroll-snap-align: start;
}

.sg-writer + .sg-writer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--line);
}

.sg-writer:first-child {
  padding-left: 0;
}

.sg-writer:last-child {
  padding-right: 0;
}

.sg-writer:hover {
  color: var(--ink);
}

.sg-writer:hover .sg-writer-photo {
  box-shadow: 0 0 0 1px rgba(31, 107, 79, 0.45);
}

.sg-writer:hover .sg-writer-name {
  color: var(--accent);
}

.sg-writer-photo {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #ecece8;
  box-shadow: 0 0 0 1px rgba(22, 22, 22, 0.08);
  transition: box-shadow 0.2s ease;
}

.sg-writer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.sg-writer-photo.is-empty {
  background: linear-gradient(145deg, #ecece8, #ddd);
}

.sg-writer-name {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ececec;
  border-radius: 4px;
  width: 100%;
}

.sg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .sg-main {
    padding: 1.75rem 0 3rem;
  }

  .sg-feed-item {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 0.85rem;
    padding: 1.1rem 0;
  }

  .sg-feed-item h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }

  .sg-feed-item .sg-excerpt {
    font-size: 0.9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sg-feed-item .sg-meta {
    margin-top: 0.5rem;
    font-size: 0.76rem;
  }

  .sg-thumb {
    width: 92px;
    aspect-ratio: 1;
    border-radius: 3px;
  }

  .sg-writers {
    padding: 1.35rem 0 1.45rem;
  }

  .sg-writer {
    flex-basis: 108px;
    padding: 0 0.7rem;
  }

  .sg-writer-photo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 400px) {
  .sg-feed-item {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 0.7rem;
  }

  .sg-thumb {
    width: 76px;
  }

  .sg-feed-item .sg-excerpt {
    -webkit-line-clamp: 3;
  }
}

.sg-aside {
  position: sticky;
  top: 5.5rem;
}

.sg-aside .sg-kicker {
  margin-bottom: 0.35rem;
}

.sg-aside-list li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.sg-aside-list li:first-child {
  padding-top: 0.35rem;
}

.sg-aside-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sg-aside-rank {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mute);
  line-height: 1.55;
  padding-top: 0.12rem;
}

.sg-aside-list a {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.sg-aside-list a:hover {
  color: var(--accent);
}

.sg-aside-list .sg-meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.sg-aside-writers {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.sg-aside-writers-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.sg-aside-writers-head .sg-kicker {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sg-aside-writers-head a {
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 650;
}

.sg-aside-writers-head a:hover {
  color: var(--accent);
}

.sg-aside-writers-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-aside-writer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  color: inherit;
  border-bottom: 1px solid var(--line);
}

.sg-aside-writers-list li:last-child .sg-aside-writer {
  border-bottom: 0;
  padding-bottom: 0;
}

.sg-aside-writer:hover {
  color: inherit;
}

.sg-aside-writer:hover strong {
  color: var(--accent);
}

.sg-aside-writer-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #ecece8, #ddd);
  border: 1px solid var(--line);
}

.sg-aside-writer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-aside-writer-photo.is-empty {
  background: linear-gradient(145deg, #ecece8, #ddd);
}

.sg-aside-writer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sg-aside-writer-copy strong {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-aside-writer-copy span {
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.3;
}

.sg-topics {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.sg-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.sg-topic-row a {
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.sg-topic-row a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Write-for-us guide ---------- */
.sg-guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #101410;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.sg-guide-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(8, 12, 10, 0.94) 0%, rgba(8, 12, 10, 0.8) 48%, rgba(8, 12, 10, 0.55) 100%),
    linear-gradient(to top, rgba(8, 12, 10, 0.45), transparent 45%),
    url("/assets/images/sportsguff.jpeg") center/cover no-repeat;
  transform: scale(1.03);
}

.sg-guide-hero-inner {
  max-width: 42rem;
  animation: sg-fade 0.55s ease both;
}

.sg-guide-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(143, 239, 196, 0.9);
}

.sg-guide-hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.sg-guide-lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

.sg-guide-hero .sg-link-primary {
  background: #fff;
  color: var(--ink);
}

.sg-guide-hero .sg-link-primary:hover {
  background: #8fefc4;
  color: var(--ink);
}

.sg-guide-hero .sg-link-quiet {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.sg-guide-hero .sg-link-quiet:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.sg-guide {
  padding-top: 2.75rem;
}

.sg-guide-section {
  padding: 0 0 2.75rem;
  margin: 0 0 2.75rem;
  border-bottom: 1px solid var(--line);
}

.sg-guide-section:last-of-type {
  border-bottom: 0;
}

.sg-guide-section h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.025em;
  max-width: 36rem;
}

.sg-guide-section h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.sg-guide-copy {
  color: var(--ink-2);
  max-width: 42rem;
  margin: 0 0 1.35rem;
  line-height: 1.65;
}

.sg-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.sg-guide-steps strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.sg-guide-steps p,
.sg-guide-grid p {
  margin: 0;
  color: var(--mute);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sg-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
}

.sg-guide-list,
.sg-guide-ol {
  margin: 0;
  padding: 0;
  max-width: 46rem;
}

.sg-guide-list {
  list-style: none;
}

.sg-guide-list li,
.sg-guide-ol li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.55;
}

.sg-guide-list li:last-child,
.sg-guide-ol li:last-child {
  border-bottom: 0;
}

.sg-guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.sg-guide-list--warn li::before {
  background: #b45309;
}

.sg-guide-ol {
  list-style: none;
  counter-reset: guide;
}

.sg-guide-ol li {
  counter-increment: guide;
  padding-left: 2rem;
}

.sg-guide-ol li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.sg-guide-note {
  margin: 1.15rem 0 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 46rem;
}

.sg-guide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 0.5rem;
}

.sg-guide-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.75rem;
  margin-top: 0.75rem;
}

.sg-guide-faq p {
  margin: 0;
  color: var(--mute);
  line-height: 1.55;
}

.sg-guide-cta {
  margin: 0.5rem 0 1rem;
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.sg-guide-cta h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.sg-guide-cta p {
  color: var(--mute);
  max-width: 34rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .sg-guide-steps,
  .sg-guide-grid,
  .sg-guide-faq,
  .sg-guide-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Auth / landing pages ---------- */
.sg-auth {
  padding: 1.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 107, 79, 0.06), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(22, 22, 22, 0.04), transparent 36%),
    var(--paper);
}

.sg-auth-shell {
  max-width: 920px;
}

.sg-auth-shell--narrow {
  max-width: 440px;
}

.sg-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.sg-auth-card {
  background: var(--white);
  padding: 1.35rem 1.45rem 1.5rem;
}

.sg-auth-shell--narrow .sg-auth-card {
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sg-auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.6rem 1.85rem;
  background:
    linear-gradient(160deg, rgba(31, 107, 79, 0.12), transparent 55%),
    linear-gradient(205deg, #1a2e26 0%, #163528 48%, #0f241c 100%);
  color: rgba(255, 255, 255, 0.88);
}

.sg-auth-panel-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sg-auth-panel-title {
  margin: 0 0 0.7rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.sg-auth-panel-lead {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
}

.sg-auth-panel-points {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.sg-auth-panel-points li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
}

.sg-auth-panel-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #7dcea8;
}

.sg-auth-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}

.sg-auth-panel-cta:hover {
  color: var(--ink);
  background: #f4faf7;
  transform: translateY(-1px);
}

.sg-auth-panel-cta-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.sg-auth-panel-note {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  line-height: 1.4;
}

.sg-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.sg-auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
}

.sg-auth-tabs a:hover {
  color: var(--ink);
}

.sg-auth-tabs a.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.06);
}

.sg-auth-header {
  margin-bottom: 0.55rem;
}

.sg-auth-header h1 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sg-auth-header p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.4;
}

.sg-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
}

.sg-optional {
  color: var(--mute);
  font-weight: 500;
}

.sg-auth-form .form-group {
  margin-bottom: 0.7rem;
}

.sg-auth-form .form-group label {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.sg-auth-form .form-control {
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
}

.sg-auth-form textarea.form-control {
  min-height: 0;
  resize: vertical;
  line-height: 1.4;
}

.sg-auth-submit {
  width: 100%;
  margin-top: 0.15rem;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 650;
  font-size: 0.92rem;
}

.sg-auth-submit:hover {
  background: var(--accent);
}

.sg-auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin: -0.25rem 0 1rem;
}

.sg-auth-form-meta a {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--accent);
}

.sg-auth-form-meta a:hover {
  color: var(--accent-hover);
}

.sg-auth-form--inline {
  margin: 0.65rem 0 0;
}

.sg-auth-notice {
  margin: 0 0 0.95rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(184, 120, 24, 0.28);
  background: rgba(184, 120, 24, 0.08);
  border-radius: 10px;
}

.sg-auth-notice strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.sg-auth-notice p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.4;
}

.sg-auth-notice span {
  font-weight: 650;
  color: var(--ink);
  word-break: break-word;
}

.sg-auth-submit--secondary {
  width: auto;
  margin-top: 0;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(31, 107, 79, 0.28);
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
}

.sg-auth-submit--secondary:hover {
  background: rgba(31, 107, 79, 0.08);
  color: var(--accent-hover);
}

.sg-auth-aside {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--mute);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sg-auth-aside a {
  color: var(--accent);
  font-weight: 650;
}

.sg-auth-aside a:hover {
  color: var(--accent-hover);
}

.sg-auth-links {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.sg-auth-links p {
  margin: 0;
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.sg-auth-links a {
  color: var(--accent);
  font-weight: 650;
}

.sg-auth-links a:hover {
  color: var(--accent-hover);
}

@media (min-width: 900px) {
  .sg-auth {
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    padding: 1.25rem 0 1.75rem;
  }

  .sg-auth .sg-wrap {
    width: 100%;
  }

  .site:has(.sg-auth) .sg-foot {
    display: none;
  }
}

@media (max-width: 820px) {
  .sg-auth-layout {
    grid-template-columns: 1fr;
  }

  .sg-auth-panel {
    padding: 1.35rem 1.25rem 1.45rem;
  }

  .sg-auth-panel-title {
    font-size: 1.45rem;
  }
}

@media (max-width: 560px) {
  .sg-auth-grid {
    grid-template-columns: 1fr;
  }

  .sg-auth {
    padding: 1.25rem 0 2rem;
  }

  .sg-auth-card {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .sg-auth-layout {
    border-radius: 14px;
  }
}

.sg-page {
  padding: 2.5rem 0 4rem;
}

.sg-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.sg-page-lead {
  color: var(--mute);
  font-size: 1.08rem;
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* ---------- Static footer pages ---------- */
.sg-static {
  padding-bottom: 1rem;
}

.sg-static--narrow {
  max-width: 760px;
}

.sg-static-header {
  margin-bottom: 1.75rem;
}

.sg-static-header .sg-page-title {
  margin-bottom: 0.45rem;
}

.sg-static-header .sg-page-lead {
  margin-bottom: 0;
}

.sg-static-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.sg-static-aside {
  display: grid;
  gap: 0.9rem;
}

.sg-static-box {
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.sg-static-box h2 {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.sg-static-box p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.5;
}

.sg-static-social,
.sg-static-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.sg-static-social a,
.sg-static-links a {
  display: inline-flex;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.sg-static-social a:hover,
.sg-static-links a:hover {
  color: var(--accent);
}

.sg-static-form-panel {
  padding: 1.25rem 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.sg-static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem !important;
}

.sg-static-footer-note {
  margin: 1.75rem 0 0;
  color: var(--mute);
  font-size: 0.94rem;
}

.sg-prose {
  max-width: 42rem;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.sg-prose > *:first-child {
  margin-top: 0;
}

.sg-prose h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.sg-prose p {
  margin: 0 0 1rem;
}

.sg-prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.sg-prose li {
  margin: 0.35rem 0;
}

.sg-prose a {
  font-weight: 650;
}

.sg-faq-list {
  border-top: 1px solid var(--line);
}

.sg-faq-item {
  border-bottom: 1px solid var(--line);
}

.sg-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.75rem 1.1rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}

.sg-faq-item summary::-webkit-details-marker {
  display: none;
}

.sg-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  color: var(--mute);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.sg-faq-item[open] summary::after {
  content: "–";
}

.sg-faq-item[open] summary {
  color: var(--accent);
}

.sg-faq-answer {
  padding: 0 0 1.15rem;
}

.sg-faq-answer p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 40rem;
}

@media (max-width: 800px) {
  .sg-static-layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

.sg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .sg-split { grid-template-columns: 1fr; }
}

.sg-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.sg-panel h2 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.sg-steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.sg-step {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.sg-step:last-child { border-bottom: 0; }

.sg-step strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.sg-step span {
  color: var(--mute);
  font-size: 0.95rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--ink-2);
}

.form-control {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.12);
}

.btn,
.btn-primary,
.btn-info,
.btn-success,
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 650;
  font-size: 0.92rem;
  background: var(--ink);
  color: var(--white) !important;
  text-decoration: none !important;
}

.btn:hover,
.btn-primary:hover,
.btn-info:hover,
.btn-success:hover {
  background: var(--accent);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

.btn-info {
  background: var(--ink-2);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: #e8f6ef;
  color: #15553e;
  border-color: #cfe9db;
}

.alert-danger {
  background: #fdeeee;
  color: #8a2a2a;
  border-color: #f3d0d0;
}

.alert .close { display: none; }

/* ---------- Creator studio ---------- */
.sg-studio {
  padding: 1.35rem 0 2rem;
}

.sg-studio-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.sg-studio-side {
  position: sticky;
  top: calc(var(--header-h) + 0.35rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.75rem 0.75rem;
}

.sg-studio-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.35rem;
}

.sg-studio-nav-label {
  margin: 0 0 0.55rem;
  padding: 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.sg-studio-nav-foot {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.45rem 0;
  border-top: 1px solid var(--line);
}

.sg-studio-nav-foot a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mute);
}

.sg-studio-nav-foot a:hover {
  color: var(--ink);
}

.creator-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.creator-ul li {
  margin: 0 0 0.12rem;
}

.creator-ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0.55rem;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.creator-ul li.active a,
.creator-ul li a:hover {
  background: var(--paper);
  color: var(--ink);
}

.creator-ul li.has-alert a {
  color: var(--ink);
}

.creator-ul .counts,
.creator-ul .messages-count {
  flex-shrink: 0;
  min-width: 1.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.creator-ul li.has-alert .messages-count {
  background: #b42318;
}

.sg-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.sg-studio-head-copy h1 {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sg-studio-head-copy p {
  margin: 0;
  color: var(--mute);
  font-size: 0.875rem;
  line-height: 1.45;
}

.sg-studio-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.sg-btn:hover {
  border-color: #d4d4d4;
  background: var(--paper);
  color: var(--ink);
}

.sg-btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sg-btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.sg-btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.sg-btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.sg-btn--danger {
  background: var(--white);
  border-color: #e3b4b4;
  color: #9b1c1c;
}

.sg-btn--danger:hover {
  background: #fdeeee;
  border-color: #d98989;
  color: #7a1515;
}

.sg-btn--sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.sg-studio-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.5;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.sg-studio-empty a {
  font-weight: 700;
}

.sg-studio-items {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.sg-studio-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.sg-studio-item:last-child {
  border-bottom: 0;
}

.sg-studio-item-main {
  min-width: 0;
  flex: 1;
}

.sg-studio-item-main strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.sg-studio-item-main .sg-studio-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.4;
}

.sg-studio-item-index {
  flex-shrink: 0;
  width: 1.5rem;
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 700;
  padding-top: 0.15rem;
}

.sg-studio-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.sg-studio-profile {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.sg-studio-profile-photo {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.sg-studio-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-studio-profile-photo.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 600;
}

.sg-studio-profile-copy h2 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.sg-studio-profile-level {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(31, 107, 79, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sg-studio-profile-bio {
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 42rem;
}

.sg-studio-profile-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sg-studio-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.48rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sg-studio-cta:hover {
  border-color: #cfcfcf;
  background: var(--paper);
  color: var(--ink);
}

.sg-studio-cta--primary {
  border-color: rgba(31, 107, 79, 0.35);
  background: rgba(31, 107, 79, 0.08);
  color: var(--accent-hover);
}

.sg-studio-cta--primary:hover {
  border-color: var(--accent);
  background: rgba(31, 107, 79, 0.14);
  color: var(--accent-hover);
}

.sg-studio-cta-icon {
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.85;
}

.sg-studio-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.sg-studio-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.85rem;
}

.sg-studio-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sg-studio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sg-studio-stat {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.sg-studio-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.sg-studio-stat span {
  display: block;
  margin-top: 0.2rem;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.sg-studio-profile-handle {
  margin: 0 0 0.5rem;
  color: var(--mute);
  font-size: 0.875rem;
  font-weight: 600;
}

.sg-studio-charts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.15rem;
  margin-top: 20px;
}

.sg-studio-chart {
  min-width: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.sg-studio-chart-head h3 {
  margin: 0 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sg-studio-chart-head p {
  margin: 0 0 0.85rem;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.4;
}

.sg-studio-trend {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-height: 9rem;
  padding-top: 0.25rem;
}

.sg-studio-trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-height: 8.5rem;
}

.sg-studio-trend-bar {
  width: 100%;
  max-width: 2.25rem;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(31, 107, 79, 0.55) 100%);
  min-height: 6%;
}

.sg-studio-trend-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-2);
}

.sg-studio-trend-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sg-studio-read-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sg-studio-read-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4rem, 28%) 3.25rem;
  gap: 0.45rem;
  align-items: center;
}

.sg-studio-read-bar-title {
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.sg-studio-read-bar-title:hover {
  color: var(--accent);
}

.sg-studio-read-bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.08);
  overflow: hidden;
}

.sg-studio-read-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.sg-studio-read-bar-count {
  text-align: right;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sg-studio-chart-empty {
  margin: 0;
  color: var(--mute);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------- Writer analytics ---------- */
.sg-analytics-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.45;
}

.sg-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.sg-analytics-kpi {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.sg-analytics-kpi-label {
  display: block;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sg-analytics-kpi strong {
  display: block;
  margin: 0.25rem 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sg-analytics-kpi em {
  display: block;
  color: var(--mute);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.sg-analytics-panels {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sg-analytics-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 1rem 1.05rem 1.05rem;
}

.sg-analytics-panel-head h2 {
  margin: 0 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sg-analytics-panel-head p {
  margin: 0 0 0.85rem;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.4;
}

.sg-analytics-line {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: end;
  min-height: 11rem;
  padding: 0.35rem 0.15rem 0;
  border-top: 1px solid var(--line);
}

.sg-analytics-line-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  min-height: 10rem;
}

.sg-analytics-line-val {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.sg-analytics-line-bar {
  width: 100%;
  max-width: 1.65rem;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #4285f4 0%, rgba(66, 133, 244, 0.45) 100%);
  min-height: 4%;
}

.sg-analytics-line-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--mute);
  text-align: center;
  line-height: 1.2;
}

.sg-analytics-cats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sg-analytics-cat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.sg-analytics-cat-name {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
}

.sg-analytics-cat-meta {
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.sg-analytics-cat-track {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.07);
  overflow: hidden;
}

.sg-analytics-cat-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.sg-analytics-empty {
  margin: 0;
  color: var(--mute);
  font-size: 0.86rem;
  line-height: 1.5;
}

.sg-analytics-table-panel {
  padding-bottom: 0.65rem;
}

.sg-analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sg-analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.sg-analytics-table thead th {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--mute);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.sg-analytics-table tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-2);
}

.sg-analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.sg-analytics-table tbody tr:hover {
  background: rgba(247, 247, 245, 0.85);
}

.sg-analytics-table-title a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.sg-analytics-table-title a:hover {
  color: var(--accent);
}

.sg-analytics-table-date {
  white-space: nowrap;
  color: var(--mute);
  font-size: 0.78rem;
}

.sg-analytics-table-reads {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.sg-analytics-table-viz {
  min-width: 7rem;
}

.sg-analytics-table-bar {
  height: 0.35rem;
  margin-bottom: 0.2rem;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.08);
  overflow: hidden;
}

.sg-analytics-table-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4285f4;
}

.sg-analytics-table-pct {
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 600;
}

@media (max-width: 920px) {
  .sg-analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-analytics-panels {
    grid-template-columns: 1fr;
  }

  .sg-analytics-line {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
}

.sg-studio-panel {
  display: none;
}

.sg-studio-panel.is-visible {
  display: block;
}

.sg-studio-form-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.sg-studio-form-photo {
  cursor: pointer;
}

.sg-studio-form-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.sg-studio-form-photo input[type="file"] {
  display: none;
}

.sg-studio-form-photo-hint {
  margin-top: 0.4rem;
  color: var(--mute);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.sg-studio-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.sg-studio-form-page {
  max-width: 36rem;
  font-size: 0.875rem;
}

.sg-studio-form-page--narrow {
  max-width: 24rem;
  font-size: 0.875rem;
}

.sg-studio-form-page .form-group,
.sg-studio-form-page--narrow .form-group,
.sg-studio-write .form-group {
  margin-bottom: 0.75rem;
}

.sg-studio-form-page .form-group label,
.sg-studio-form-page--narrow .form-group label,
.sg-studio-write .form-group label {
  font-size: 0.8125rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.sg-studio-form-page .form-control,
.sg-studio-form-page--narrow .form-control,
.sg-studio-write .form-control {
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.sg-studio-form-page textarea.form-control,
.sg-studio-form-page--narrow textarea.form-control,
.sg-studio-write textarea.form-control {
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
}

.sg-studio-profile-overview .sg-studio-profile {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sg-studio-messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sg-studio-message {
  position: relative;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.sg-studio-message.is-unread {
  border-color: rgba(180, 35, 24, 0.25);
  background: rgba(180, 35, 24, 0.05);
}

.sg-studio-message time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sg-studio-write-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.4rem;
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}

@media (max-width: 820px) {
  .sg-studio-grid {
    grid-template-columns: 1fr;
  }

  .sg-studio-side {
    position: static;
    padding: 0.65rem;
  }

  .creator-ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .sg-studio-nav-foot {
    grid-column: 1 / -1;
  }

  .sg-studio-head {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-studio-head-actions {
    justify-content: flex-start;
  }

  .sg-studio-profile,
  .sg-studio-form-grid {
    grid-template-columns: 1fr;
  }

  .sg-studio-profile {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .sg-studio-profile-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-studio-cta {
    width: 100%;
  }

  .sg-studio-profile-photo,
  .sg-studio-form-photo {
    max-width: 120px;
  }

  .sg-studio-item {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-studio-item-actions {
    justify-content: flex-start;
  }

  .sg-studio-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-studio-charts {
    grid-template-columns: 1fr;
  }

  .sg-studio-read-bar {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .sg-studio-read-bar-count {
    text-align: left;
  }
}

/* ---------- Article detail ---------- */
.sg-article {
  min-width: 0;
}

.sg-article-header {
  margin-bottom: 1.35rem;
}

.sg-article-cat {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sg-article-header h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.sg-article-media {
  margin: 0 0 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 16 / 9;
}

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

.sg-author-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.sg-author-card:hover {
  color: var(--ink);
}

.sg-author-card:hover strong {
  color: var(--accent);
}

.sg-author-photo {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #ecece8;
  box-shadow: 0 0 0 1px rgba(22, 22, 22, 0.08);
}

.sg-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-author-photo.is-empty {
  background: linear-gradient(145deg, #ecece8, #ddd);
}

.sg-author-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sg-author-copy strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.sg-author-copy span {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--mute);
}

.sg-article-note {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--mute);
}

.sg-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.sg-article-tags a {
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.sg-article-tags a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.sg-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.sg-share-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.sg-share a {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 650;
}

.sg-share a:hover {
  color: var(--accent);
}

.sg-comments {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.sg-comments-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.sg-comments-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.sg-comments-count {
  color: var(--mute);
  font-size: 0.85rem;
  font-weight: 600;
}

.sg-comment-flash {
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.sg-comment-flash.is-ok {
  background: #ecfdf3;
  color: #067647;
}

.sg-comment-flash.is-err {
  background: #fef3f2;
  color: #b42318;
}

.sg-comment-form {
  margin-bottom: 1.35rem;
}

.sg-comment-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--mute);
  font-size: 0.86rem;
}

.sg-comment-label strong {
  color: var(--ink);
  font-weight: 700;
}

.sg-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  resize: vertical;
  min-height: 110px;
  background: var(--white);
  color: var(--ink);
}

.sg-comment-form textarea:focus {
  outline: none;
  border-color: #8fbfab;
  box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.12);
}

.sg-comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.sg-comment-hint {
  color: var(--mute);
  font-size: 0.78rem;
}

.sg-comment-submit {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.sg-comment-submit:hover {
  background: var(--accent-hover);
}

.sg-comment-login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafaf8;
}

.sg-comment-login p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.sg-comment-login a {
  font-weight: 700;
}

.sg-comments-empty {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.sg-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-comment {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.sg-comment:first-child {
  border-top: 0;
}

.sg-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(145deg, #efefef, #e2e2e2);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sg-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.3rem;
}

.sg-comment-author {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.sg-comment-author:hover {
  color: var(--accent);
}

.sg-comment-meta time {
  color: var(--mute);
  font-size: 0.8rem;
}

.sg-comment-body {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .sg-comment-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-comment-submit {
    width: 100%;
  }
}

.sg-related {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
}

.sg-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.sg-related-item {
  display: block;
  color: var(--ink);
  min-width: 0;
}

.sg-related-item:hover {
  color: var(--accent);
}

.sg-related-media {
  display: block;
  margin-bottom: 0.7rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ececec;
  border-radius: 4px;
}

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

.sg-related-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

@media (max-width: 720px) {
  .sg-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sg-related-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
  }
  .sg-related-media {
    margin-bottom: 0;
    aspect-ratio: 1;
  }
}

.story {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
}

.story h2,
.story h3 {
  font-size: 1.45rem;
  margin: 1.6rem 0 0.8rem;
  line-height: 1.3;
}

.story p { margin-bottom: 1.15rem; }
.story img { width: 100%; border-radius: 4px; margin: 1rem 0; }
.story a { color: var(--accent); text-decoration: underline; }
.story ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: 1rem;
}
.story iframe {
  width: 100%;
  max-width: 100%;
}
.story table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.story table td,
.story table th {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  vertical-align: top;
}

/* ---------- Article / legacy content helpers ---------- */
.site-main .container {
  width: min(var(--max), calc(100% - 2 * var(--space)));
  margin-inline: auto;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.news-wrap .card,
.news-card-1,
.big-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666%; }
  .col-md-9 { width: 75%; }
  .col-sm-4 { width: 33.333%; }
  .col-sm-8 { width: 66.666%; }
  .col-sm-12 { width: 100%; }
  .col-5 { width: 41.666%; }
  .col-7 { width: 58.333%; }
  .d-md-block { display: block !important; }
  .d-md-none { display: none !important; }
  .d-md-table-cell { display: table-cell !important; }
}

.col-12 { width: 100%; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.float-right { float: right; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.w-100 { width: 100%; }
.pr-0 { padding-right: 0; }
.pl-0 { padding-left: 0; }

.image figure {
  margin: 0;
  background: #ececec;
  overflow: hidden;
}

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

.entry-meta {
  color: var(--mute);
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

/* ---------- Footer ---------- */
.sg-foot {
  border-top: 1px solid var(--line);
  background: #111;
  color: rgba(255,255,255,0.72);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  flex-shrink: 0;
}

.sg-foot a {
  color: rgba(255,255,255,0.78);
}

.sg-foot a:hover {
  color: #fff;
}

.sg-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .sg-foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.sg-foot h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sg-foot p,
.sg-foot li {
  font-size: 0.92rem;
  line-height: 1.55;
}

.sg-foot li + li { margin-top: 0.35rem; }

.sg-foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
}

/* Hide noisy legacy ad chrome when empty */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

::selection {
  background: #d7ebe2;
  color: var(--ink);
}

/* Publish wait overlay (AJAX publish + rotating status lines) */
.sg-publish-wait {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(31, 107, 79, 0.18), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(20, 40, 30, 0.35), transparent 50%),
    rgba(12, 18, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sg-publish-wait[hidden] {
  display: none !important;
}

body.sg-publish-waiting {
  overflow: hidden;
}

.sg-publish-wait-card {
  width: min(100%, 22rem);
  text-align: center;
  padding: 1.75rem 1.5rem 1.55rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.sg-publish-wait-spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 1.1rem;
  border-radius: 999px;
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: #9fd9c0;
  animation: sg-publish-spin 0.85s linear infinite;
}

.sg-publish-wait-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sg-publish-wait-msg {
  margin: 0;
  min-height: 1.55em;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sg-publish-wait-msg.is-in {
  opacity: 1;
  transform: none;
}

.sg-publish-wait-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

@keyframes sg-publish-spin {
  to { transform: rotate(360deg); }
}

@keyframes sg-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.sg-intro-inner,
.sg-feature,
.sg-feed-item {
  animation: sg-fade 0.55s ease both;
}

.sg-feed-item:nth-child(2) { animation-delay: 0.04s; }
.sg-feed-item:nth-child(3) { animation-delay: 0.08s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
