/* Shared editorial design: compact reading widths and an AMOLED writing desk. */
:root {
  --blog-bg: #000;
  --blog-panel: #101010;
  --blog-border: #292929;
  --blog-text: #f5f5f5;
  --blog-muted: #aaa;
  --blog-gold: #fc0;
}
.blog-top,
.blog-layout,
.blog-reading,
.blog-categories,
.blog-author-page,
.blog-studio-portal,
.blog-auth-page,
.blog-empty {
  color: var(--blog-text);
  font-family: inherit;
}
.blog-top {
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--blog-border);
}
.blog-top a,
.blog-layout a,
.blog-reading a,
.blog-categories a,
.blog-author-page a {
  color: inherit;
  text-decoration: none;
}
.blog-wordmark {
  font-weight: 850;
  font-size: 24px;
  white-space: nowrap;
}
.blog-wordmark span,
.blog-verified {
  color: var(--blog-gold);
}
.blog-top nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.blog-top form {
  display: flex;
  flex: 1;
  max-width: 350px;
  margin-left: auto;
  border: 1px solid #333;
  border-radius: 24px;
  overflow: hidden;
}
.blog-top input {
  border: 0;
  background: #171717;
  color: white;
  padding: 10px 14px;
  width: 100%;
  min-width: 60px;
}
.blog-top form button {
  background: var(--blog-gold);
  border: 0;
  padding: 0 15px;
  color: #000;
}
.blog-account {
  font-size: 13px;
  white-space: nowrap;
}
.blog-layout {
  max-width: 1500px;
  margin: auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px;
  gap: 26px;
}
.blog-side nav {
  display: grid;
  gap: 4px;
}
.blog-side nav a {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: #bbb;
}
.blog-side nav a:hover,
.blog-side nav a[aria-current="page"] {
  background: #fc0;
  color: #000;
}
.blog-side h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin: 24px 12px 8px;
}
.blog-write-link {
  display: block;
  margin: 24px 12px;
  font-size: 14px;
  color: #fc0 !important;
}
.blog-side {
  align-self: start;
  position: sticky;
  top: 20px;
}
.blog-page-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0 20px;
}
.blog-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a9a9a9;
}
.blog-feed-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow: auto;
}
.blog-feed-tabs a {
  padding: 8px 16px;
  background: #171717;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
}
.blog-feed-tabs a:hover {
  background: #fc0;
  color: #000;
}
.blog-feature {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 330px;
  background: #141414;
  display: flex;
  align-items: end;
  margin-bottom: 30px;
}
.blog-feature .blog-cover {
  position: absolute;
  inset: 0;
}
.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}
.blog-feature .blog-card-copy {
  position: relative;
  pointer-events: none;
  padding: 24px;
  max-width: 630px;
}
.blog-feature .blog-card-copy a {
  pointer-events: auto;
}
.blog-feature h1 {
  font-size: clamp(23px, 2.1vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 12px 0 16px;
}
.blog-badge,
.blog-label {
  font-size: 10px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  background: #fc0;
  color: #000;
  font-weight: 750;
}
.blog-label {
  margin-left: 7px;
  background: #222;
  color: white;
}
.blog-byline {
  font-size: 11px;
  color: #aaa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.blog-byline > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #eee;
}
.blog-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #a38600;
  flex-shrink: 0;
}
.blog-avatar.large {
  width: 44px;
  height: 44px;
}
.blog-avatar.profile {
  width: 110px;
  height: 110px;
  border-width: 3px;
}
.blog-cover-empty {
  height: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  background: radial-gradient(at top left, #403500, #151515);
  font-size: 80px;
  font-weight: 900;
  color: #fc0;
}
.blog-section-title,
.blog-related > h2 {
  font-size: 20px;
  margin: 26px 0 14px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.blog-card {
  min-width: 0;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 13px;
  overflow: hidden;
}
.blog-card .blog-cover {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card .blog-card-copy {
  padding: 15px;
}
.blog-card h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 10px 0;
}
.blog-card p {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-right > section {
  border-radius: 14px;
  margin-bottom: 22px;
  padding: 20px;
  background: #101010;
  border: 1px solid #262626;
}
.blog-write-card {
  background: #fc0 !important;
  color: #000;
}
.blog-write-card > span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.blog-write-card h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 15px 0;
}
.blog-write-card p {
  font-size: 13px;
  line-height: 1.5;
}
.blog-write-card a {
  display: inline-block;
  background: #000;
  color: #fc0;
  padding: 10px 13px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 12px;
}
.blog-authors h2 {
  font-size: 17px;
  margin: 0 0 18px;
}
.blog-authors > a {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.blog-authors small {
  display: block;
  color: #999;
  font-size: 10px;
  margin-top: 5px;
}
.blog-authors strong {
  font-size: 13px;
}
.blog-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 14px;
}
.blog-pagination a {
  border: 1px solid #333;
  padding: 10px 16px;
  border-radius: 20px;
}
.blog-reading {
  max-width: 1150px;
  margin: 0 auto;
  padding: 26px;
}
.blog-breadcrumb {
  font-size: 12px;
  color: #999;
  margin: 0 0 25px;
}
.blog-reading-inner {
  max-width: 760px;
  margin: auto;
}
.blog-reading h1 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 18px 0;
}
.blog-excerpt {
  color: #aaa;
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.blog-article-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
}
.blog-article-author > a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-article-author small {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: #999;
  font-size: 12px;
  border-bottom: 1px solid #292929;
  padding-bottom: 18px;
  margin-bottom: 25px;
}
.blog-reading button,
.blog-author-page button,
.blog-studio-portal button,
.blog-auth-page button,
#blog-personalized button {
  border: 1px solid #333;
  border-radius: 20px;
  padding: 9px 15px;
  background: #161616;
  color: #eee;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.blog-reading button:hover,
.blog-reading button[aria-pressed="true"],
.blog-follow[aria-pressed="true"] {
  border-color: #fc0;
  color: #fc0;
}
.blog-follow,
.blog-studio-portal button {
  background: #fc0 !important;
  color: #000 !important;
  border: 0 !important;
}
.blog-meta button {
  font-size: 12px;
  padding: 5px 12px;
}
.blog-reading-cover {
  margin: 24px 0;
}
.blog-reading-cover img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 14px;
}
.blog-article-body {
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.blog-article-body h2 {
  font-size: 27px;
  margin-top: 35px;
}
.blog-article-body h3 {
  font-size: 22px;
}
.blog-article-body a {
  color: #fc0;
  text-decoration: underline;
}
.blog-article-body img,
.blog-article-body video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.blog-article-body audio {
  width: 100%;
}
.blog-article-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.blog-article-body figure {
  margin: 26px 0;
}
.blog-article-body figcaption,
.blog-reading-cover figcaption {
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.5;
  margin-top: 8px;
}
.blog-article-body blockquote {
  margin: 24px 0;
  padding: 10px 24px;
  border-left: 3px solid #fc0;
  color: #ccc;
  font-size: 21px;
}
.blog-article-body pre {
  background: #111;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 10px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.7;
}
.blog-article-body table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.blog-article-body td,
.blog-article-body th {
  border: 1px solid #333;
  padding: 10px;
}
.blog-article-body aside,
.blog-notice {
  background: #171500;
  border: 1px solid #4d4000;
  border-radius: 9px;
  padding: 17px;
  margin: 24px 0;
}
.blog-notice p {
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0;
}
.blog-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.blog-tags a {
  font-size: 12px;
  background: #181818;
  padding: 7px 12px;
  border-radius: 15px;
}
.blog-reader-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 26px 0;
}
.blog-reader-actions a {
  font-size: 12px;
  color: #fc0;
}
.blog-transparency,
.blog-sources {
  border-top: 1px solid #292929;
  padding: 20px 0;
  margin-top: 30px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
}
.blog-transparency h2,
.blog-sources h2,
#blog-discussion h2 {
  font-size: 18px;
  color: #eee;
}
.blog-related .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-comment {
  display: flex;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid #222;
}
.blog-comment > div {
  flex: 1;
}
.blog-comment p {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.blog-comment strong {
  font-size: 13px;
}
.blog-comment time {
  display: block;
  color: #888;
  font-size: 11px;
  margin-top: 4px;
}
.blog-comment button {
  font-size: 11px;
  padding: 5px 10px;
  margin-right: 5px;
}
.blog-comment[data-depth="1"] {
  margin-left: 20px;
}
.blog-comment[data-depth="2"],
.blog-comment[data-depth="3"] {
  margin-left: 35px;
}
.blog-compose textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 90px;
  background: #111;
  color: #eee;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.blog-compose footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.blog-compose button[type="submit"] {
  background: #fc0;
  color: #000;
}
.blog-compose [role="status"] {
  font-size: 12px;
  color: #aaa;
}
.blog-empty {
  padding: 45px 20px;
  text-align: center;
}
.blog-empty h2 {
  font-size: 22px;
}
.blog-empty p {
  color: #999;
}
.blog-empty a {
  color: #fc0;
}
.blog-categories {
  max-width: 1150px;
  margin: 40px auto;
  padding: 25px;
}
.blog-categories > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-categories > div > a {
  padding: 22px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #111;
}
.blog-categories h1 {
  font-size: 36px;
}
.blog-categories h2 {
  font-size: 20px;
}
.blog-categories p {
  font-size: 13px;
  color: #aaa;
}
.blog-categories span {
  font-size: 12px;
  color: #fc0;
}
.blog-author-page {
  max-width: 1100px;
  padding: 25px;
  margin: auto;
}
.blog-author-page > section {
  max-width: 650px;
  margin: 20px auto 40px;
  text-align: center;
}
.blog-author-page h1 {
  font-size: 32px;
}
.blog-author-page p {
  color: #aaa;
  line-height: 1.7;
}
.blog-author-stats {
  margin: 20px;
  font-size: 13px;
  color: #999;
}
.blog-author-page > section > a {
  display: inline-block;
  font-size: 12px;
  margin: 15px;
  color: #fc0;
}
.blog-studio-portal {
  max-width: 1600px;
  margin: auto;
  padding: 20px;
}
.blog-studio-portal #blog-signin {
  max-width: 620px;
  margin: 70px auto;
  text-align: center;
}
.blog-studio-portal h1 {
  font-size: 48px;
  letter-spacing: -1.8px;
  line-height: 1.1;
}
.blog-studio-portal p {
  color: #aaa;
  line-height: 1.7;
}
.blog-studio-portal iframe {
  width: 100%;
  height: calc(100dvh - 120px);
  min-height: 650px;
  border: 0;
  background: #000;
  border-radius: 12px;
}
.blog-auth-page {
  max-width: 650px;
  margin: 70px auto;
  text-align: center;
}
.blog-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #232323;
  border: 1px solid #555;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 10000;
  max-width: min(90vw, 500px);
  box-shadow: 0 5px 30px #000;
  pointer-events: none;
}
.blog-dialog {
  background: #111;
  color: #eee;
  border: 1px solid #444;
  border-radius: 15px;
  padding: 25px;
  width: min(500px, 85vw);
}
.blog-dialog::backdrop {
  background: #000a;
}
.blog-dialog label {
  display: block;
  font-size: 13px;
  margin: 15px 0;
}
.blog-dialog input,
.blog-dialog textarea,
.blog-dialog select {
  box-sizing: border-box;
  width: 100%;
  background: #222;
  color: white;
  border: 1px solid #444;
  padding: 10px;
  border-radius: 8px;
  margin-top: 7px;
}
.blog-dialog footer {
  display: flex;
  gap: 12px;
  justify-content: end;
}
.blog-dialog button {
  border: 1px solid #555;
  background: #222;
  color: white;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
}
.blog-dialog [role="alert"] {
  color: #ffb4ab;
  font-size: 13px;
}
.blog-dialog button[type="submit"] {
  background: #fc0;
  color: #000;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #fc0;
  outline-offset: 3px;
}
@media (min-width: 1500px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .blog-layout {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .blog-right {
    display: none;
  }
  .blog-top nav {
    display: none;
  }
}
@media (max-width: 760px) {
  .blog-layout {
    display: block;
    padding: 16px;
  }
  .blog-side {
    display: none;
  }
  .blog-top {
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .blog-top form {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .blog-top .blog-account {
    margin-left: auto;
  }
  .blog-page-title {
    font-size: 24px;
  }
  .blog-feature {
    min-height: 330px;
  }
  .blog-feature .blog-card-copy {
    padding: 20px;
  }
  .blog-grid {
    gap: 13px;
  }
  .blog-card .blog-card-copy {
    padding: 11px;
  }
  .blog-card h2 {
    font-size: 16px;
  }
  .blog-card p {
    display: none;
  }
  .blog-byline {
    font-size: 10px;
  }
  .blog-byline img {
    width: 21px;
    height: 21px;
  }
  .blog-reading {
    padding: 18px;
  }
  .blog-excerpt {
    font-size: 17px;
  }
  .blog-article-body {
    font-size: 17px;
    line-height: 1.8;
  }
  .blog-related .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-categories > div {
    grid-template-columns: 1fr 1fr;
  }
  .blog-categories h1 {
    font-size: 28px;
  }
  .blog-studio-portal {
    padding: 0;
  }
  .blog-studio-portal iframe {
    border-radius: 0;
    height: 90dvh;
  }
  .blog-studio-portal #blog-signin {
    padding: 20px;
  }
  .blog-studio-portal h1 {
    font-size: 36px;
  }
  .blog-top:has(+ .blog-studio-portal) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

body.blog-site {
  background: #000;
  color: #f5f5f5;
  color-scheme: dark;
}
/* Keep the site's theme switch and gold callout legible in both modes. */
:root {
  --blog-bg: var(--bg-base, #000);
  --blog-panel: var(--bg-card, #101010);
  --blog-border: var(--border-subtle, #292929);
  --blog-text: var(--text-primary, #f5f5f5);
  --blog-muted: var(--text-secondary, #aaa);
}
body.blog-site {
  background: var(--blog-bg);
  color: var(--blog-text);
  color-scheme: var(--color-scheme, dark);
}
.blog-write-card h2,
.blog-write-card p,
.blog-write-card > span {
  color: #000;
}
.blog-feature h1,
.blog-feature .blog-byline > a {
  color: #fff;
}
[data-theme="light"] .blog-card,
[data-theme="light"] .blog-right > section:not(.blog-write-card),
[data-theme="light"] .blog-dialog {
  background: #fff;
  color: #111;
  border-color: #ddd;
}
[data-theme="light"] .blog-top input,
[data-theme="light"] .blog-compose textarea,
[data-theme="light"] .blog-reading button,
[data-theme="light"] .blog-dialog input,
[data-theme="light"] .blog-dialog textarea,
[data-theme="light"] .blog-dialog select {
  background: #fff;
  color: #111;
  border-color: #ddd;
}
[data-theme="light"] .blog-feed-tabs a,
[data-theme="light"] .blog-tags a,
[data-theme="light"] .blog-article-body pre,
[data-theme="light"] .blog-categories > div > a {
  background: #f0f0f0;
  color: #111;
  border-color: #ddd;
}
[data-theme="light"] .blog-excerpt,
[data-theme="light"] .blog-card p,
[data-theme="light"] .blog-author-page p,
[data-theme="light"] .blog-side nav a,
[data-theme="light"] .blog-transparency,
[data-theme="light"] .blog-sources,
[data-theme="light"] .blog-reading figcaption {
  color: #555;
}
[data-theme="light"] .blog-byline > a,
[data-theme="light"] .blog-transparency h2,
[data-theme="light"] .blog-sources h2,
[data-theme="light"] #blog-discussion h2 {
  color: #111;
}
[data-theme="light"] .blog-feature .blog-byline > a {
  color: #fff;
}
[data-theme="light"] .blog-notice {
  background: #fff8d9;
  color: #3b3100;
}
