@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap");
.site-view {
  margin-top: 13px;
  color: var(--muted);
}
.open-mid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 19px;
  border-radius: 99px;
  background: var(--purple);
  color: #fff;
  font-size: 18px;
  margin-bottom: 30px;
}
.portal-feature-tabs {
  display: flex;
  width: max-content;
  border: 1px solid #d9cddd;
  border-radius: 99px;
  padding: 4px;
  gap: 0;
  background: #fff;
  margin: 0 0 24px;
}
.portal-feature-tabs button {
  border: 0;
  border-radius: 99px;
  padding: 9px 20px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.official-category-tabs button {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 15px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.portal-feature-tabs button.active,
.official-category-tabs button.active {
  background: var(--purple);
  color: #fff;
}
.official-category-tabs button.active { border-color: var(--purple); }
.portal-feature-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 0 0 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.portal-feature-head h2 { margin: 0; font: 400 36px var(--serif); }
.portal-feature-head p { max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; }
#media-panel .portal-feature-head { align-items: flex-end; margin-bottom: 6px; padding-bottom: 0; border-bottom: 0; }
#media-panel .portal-feature-head > div { min-width: 0; }
#media-panel .portal-feature-head h2 { display: flex; align-items: baseline; gap: 12px; }
#media-panel .media-section-note { color: var(--muted); font: 400 12px var(--sans); letter-spacing: normal; white-space: nowrap; }
.official-category-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 15px; }
.official-category-tabs button { white-space: nowrap; font-size: 13px; }
.official-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.media-open-link { display: inline-block; margin: -5px 0 16px; color: var(--purple); font-weight: 700; }
.media-page { max-width: 1180px; margin: auto; padding: 58px 24px 90px; }
.media-hero { margin-bottom: 30px; padding: 38px; background: linear-gradient(120deg, #eee7f4, #faf8fb); border: 1px solid #ded2e3; }
.media-hero h1 { margin: 3px 0 8px; font: 400 clamp(52px, 8vw, 92px)/.9 var(--serif); letter-spacing: -.06em; color: var(--purple); }
.media-hero p { max-width: 560px; margin: 0 0 20px; color: var(--muted); }
.media-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.media-permanent-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.media-permanent-links--inline { grid-column: 1 / -1; margin: 0; }
.media-permanent-links a { padding: 24px; border: 1px solid #d8cce0; background: #fff; }
.media-permanent-links a:hover { border-color: var(--purple); transform: translateY(-2px); }
.media-permanent-links span { color: var(--purple); font-size: 12px; font-weight: 700; }
.media-permanent-links h2 { margin: 7px 0 5px; font: 400 29px var(--serif); }
.media-permanent-links p { margin: 0; color: var(--muted); font-size: 13px; }
.media-manage-link { display: inline-block; margin: -8px 0 20px; color: var(--purple); font-size: 13px; font-weight: 700; }
.permanent-media-article { max-width: 830px; margin: auto; background: #fff; border: 1px solid var(--line); padding: clamp(24px, 5vw, 58px); }
.permanent-media-article h1 { margin: 10px 0; font: 400 clamp(36px, 6vw, 62px)/1 var(--serif); }
.permanent-media-lead { font-size: 17px; color: var(--muted); }
.permanent-media-note { padding: 14px; margin: 24px 0; background: var(--lilac); font-size: 13px; color: var(--muted); }
.permanent-media-list { display: grid; gap: 14px; }
.media-item { padding: 18px; border: 1px solid var(--line); }
.media-item h2 { margin: 4px 0 8px; font: 400 25px/1.2 var(--serif); }
.media-item h2 a:hover { color: var(--purple); }
.media-item p { margin: 0 0 10px; }
.media-manager .article { max-width: 900px; }
.media-import-list { display: grid; gap: 10px; margin: 18px 0; }
.media-import-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.media-import-item input { margin-top: 5px; }
.media-import-item span { display: grid; gap: 4px; }
.media-import-item small { color: var(--muted); }
.media-import-item a { color: var(--purple); font-size: 13px; font-weight: 700; }
.database-page { max-width: 1180px; margin: auto; padding: 58px 24px 90px; }
.database-hero { margin-bottom: 28px; padding: 38px; border: 1px solid #ded2e3; background: linear-gradient(120deg, #eee7f4, #faf8fb); }
.database-hero h1 { margin: 3px 0 10px; font: 400 clamp(52px, 8vw, 92px)/.9 var(--serif); letter-spacing: -.06em; color: var(--purple); }
.database-hero p { max-width: 680px; margin: 0; color: var(--muted); }
.database-login, .database-form-wrap { margin: 0 0 38px; padding: 26px; border: 1px solid var(--line); background: #fff; }
.database-login { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.database-login h2, .database-form-wrap h2 { margin: 0 0 6px; font: 400 30px var(--serif); }
.database-login p { margin: 0; color: var(--muted); }
.database-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); gap: 12px; margin-bottom: 18px; }
.database-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.database-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); background: #fff; }
.database-card__genre { color: var(--purple); font-size: 12px; font-weight: 700; }
.database-card h2 { margin: 8px 0 10px; font: 400 27px/1.1 var(--serif); overflow-wrap: anywhere; }
.database-card p { flex: 1; margin: 0 0 18px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.database-card__meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.database-card__meta a { color: var(--purple); font-weight: 700; }
.database-edit { align-self: flex-start; margin-top: 16px; padding: 7px 12px; font-size: 12px; }
.database-body { min-height: 260px; resize: vertical; }
.ranking-posts { display: grid; gap: 10px; margin-top: 12px; }
.ranking-posts .post-card { margin: 0; }
.ranking-posts .post-card__body { padding: 13px; }
.ranking-posts .post-card__actions { padding: 0 13px 13px; }
.ranking-posts .post-card h3 { font-size: 19px; }
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ranking-grid section,
.ranking-side {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.ranking-grid h2,
.ranking-side h2 {
  font: 400 25px var(--serif);
  margin: 0;
}
.ranking-grid h3,
.ranking-side h3 {
  font-size: 13px;
  color: var(--purple);
  margin: 15px 0 5px;
}
.ranking-grid ol,
.ranking-side ol {
  padding-left: 22px;
  margin: 0;
}
.ranking-grid li,
.ranking-side li {
  padding: 4px 0;
  font-size: 13px;
}
.ranking-grid small,
.ranking-side small {
  color: var(--muted);
}
.rank-note {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 8px;
}
.coming {
  min-height: 170px;
  padding: 20px;
  background: #e3e1e3;
  color: #8c878d;
  pointer-events: none;
}
.coming h3 {
  font: 400 29px var(--serif);
  margin: 30px 0 2px;
}
.coming p {
  font-size: 13px;
  margin: 0;
}
.mid-layout {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
}
.ranking-side {
  height: max-content;
}
.hash {
  font-size: 12px;
  color: var(--purple);
  margin-right: 7px;
}
@media (max-width: 760px) {
  .ranking-grid,
  .mid-layout {
    grid-template-columns: 1fr;
  }
  .mid-layout {
    padding: 0 18px 70px;
  }
  .ranking-side {
    order: -1;
  }
}
.portal-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 0;
  background: radial-gradient(circle at 50% 42%, #eee7f4 0, #f8f6f2 51%);
  text-align: center;
}
.portal-hero h1 {
  font: 400 clamp(70px, 11vw, 148px)/0.8 var(--serif);
  letter-spacing: -0.065em;
  margin: 0 0 34px;
}
.portal-hero h1 em {
  font-style: italic;
  color: var(--purple);
}
.portal-search {
  display: flex;
  width: min(680px, 100%);
  border: 1px solid #c8bccd;
  background: #fff;
  padding: 5px;
  border-radius: 99px;
  box-shadow: 0 12px 32px #3f2e4814;
}
.portal-search input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: transparent;
}
.portal-search button {
  border: 0;
  border-radius: 99px;
  padding: 11px 15px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.portal-search #search-mode {
  background: #eee7f0;
  color: var(--purple);
}
.portal-switch {
  margin-top: 29px;
  display: flex;
  border: 1px solid #d9cddd;
  border-radius: 99px;
  padding: 4px;
  background: #fff;
}
.portal-switch button {
  border: 0;
  border-radius: 99px;
  background: transparent;
  padding: 9px 20px;
  color: var(--muted);
  cursor: pointer;
}
.portal-switch button.active {
  background: var(--purple);
  color: #fff;
}
.portal-content {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px 92px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
}
.portal-content--single { display: block; }
.portal-more { display: flex; align-items: center; width: min(100%, 980px); margin: 14px auto 0; text-align: left; }
.portal-more__label { display: inline-flex; flex: 0 0 auto; align-items: center; margin: 0; border: 0 !important; padding: 0 10px 0 0 !important; color: #111 !important; font-size: 14px; font-weight: 700; letter-spacing: .08em; background: transparent !important; }
.portal-more__items { display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 1px 8px; scrollbar-width: thin; }
.portal-more__items a,
.portal-more__items span { display: inline-flex; flex: 1 0 auto; justify-content: center; align-items: center; border: 1px solid #80608f; border-radius: 4px; padding: 11px 18px; color: #111; font-size: 14px; font-weight: 700; letter-spacing: .03em; background: #b99ac8; white-space: nowrap; }
.portal-more__items a:hover { background: #fff; color: #111; }
.portal-more__items span[aria-disabled="true"] { border-color: #999; color: #6f6a70; background: #c9c5cb; cursor: not-allowed; }
.mid-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.sidebar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  font-weight: 700;
  margin: 0 0 11px;
}
.mid-sidebar button {
  display: block;
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.mid-sidebar button:hover,
.mid-sidebar button.active {
  border-left-color: var(--purple);
  color: var(--purple);
  background: #f1ebf3;
}
.portal-panel .section-head {
  margin-top: 0;
}
.timeline-head {
  margin-top: 54px !important;
}
.search-results {
  margin: 0 0 34px;
}
.search-results .post-card {
  margin: 12px 0;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.more-grid a {
  min-height: 170px;
  padding: 20px;
  background: #ede6f0;
  border: 1px solid #ddd1e2;
  transition:
    transform 0.2s,
    background 0.2s;
}
.more-grid a:hover {
  transform: translateY(-3px);
  background: #e3d6e9;
}
.more-grid span {
  font-size: 11px;
  color: var(--purple);
}
.more-grid h3 {
  font: 400 29px var(--serif);
  margin: 30px 0 2px;
}
.more-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 760px) {
  .portal-hero {
    min-height: 0;
    padding: 48px 24px 0;
  }
  .portal-content {
    display: block;
    padding: 0 18px 70px;
  }
  .portal-more { padding: 0 18px; }
  .mid-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 15px;
    margin-bottom: 26px;
  }
  .mid-sidebar div {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .mid-sidebar button {
    white-space: nowrap;
    width: auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .mid-sidebar button.active {
    border-bottom-color: var(--purple);
  }
  .more-grid {
    grid-template-columns: 1fr;
  }
  .portal-search button {
    padding: 11px 12px;
  }
  .portal-feature-head { display: block; }
  .portal-feature-head p { margin-top: 7px; }
  .official-articles { grid-template-columns: 1fr; }
  .media-page { padding: 30px 18px 70px; }
  .media-hero { padding: 27px 22px; }
  .media-posts { grid-template-columns: 1fr; }
  .media-permanent-links { grid-template-columns: 1fr; }
  .database-page { padding: 30px 18px 70px; }
  .database-hero { padding: 27px 22px; }
  .database-login { display: grid; }
  .database-filters, .database-grid { grid-template-columns: 1fr; }
}
.more-side-menu {
  display: grid;
  gap: 5px;
}
.more-side-menu a,
.more-side-menu span {
  display: block;
  padding: 9px 10px;
  font-size: 13px;
  border-left: 2px solid transparent;
}
.more-side-menu a {
  color: var(--purple);
  background: #f1ebf3;
  border-left-color: var(--purple);
}
.more-side-menu span {
  color: #918b93;
  background: #f0edef;
  cursor: default;
}
.more-side-menu small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #aaa3aa;
}
:root {
  --ink: #1d1a22;
  --paper: #f8f6f2;
  --surface: #fff;
  --line: #e5e0d9;
  --purple: #6a536f;
  --lilac: #eee7f0;
  --gold: #b78746;
  --muted: #746f75;
  --serif: Newsreader, Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
.site-header {
  height: 70px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 242, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand {
  font: 500 28px var(--serif);
  letter-spacing: -0.04em;
}
.brand span {
  font-style: italic;
  color: var(--purple);
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  font-size: 14px;
  color: var(--muted);
}
.nav-link.active,
.nav-link:hover {
  color: var(--purple);
}
.profile-link {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 99px;
  background: #fff;
}
.auth-link {
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 4px 6px;
  line-height: 1.05;
  font-size: 11px;
}
.profile-link--user {
  display: inline-flex;
  align-items: center;
}

.post-author-link {
  color: inherit;
  text-decoration: none;
}

.post-author-link:hover {
  text-decoration: underline;
}
.mini-avatar,
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}
.mini-avatar {
  height: 20px;
  width: 20px;
  margin-right: 4px;
  font-size: 11px;
}
.hero {
  max-width: 1180px;
  margin: auto;
  padding: 100px 24px 62px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: end;
}
.eyebrow,
.type-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  color: var(--purple);
  font-weight: 700;
}
.hero h1,
.page-title {
  font: 400 clamp(54px, 8vw, 104px)/0.9 var(--serif);
  letter-spacing: -0.055em;
  margin: 14px 0 22px;
}
.hero h1 em,
.page-title em {
  font-style: italic;
  color: var(--purple);
}
.page-title-by {
  font: 500 0.32em/1 var(--font-body);
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.mid-logo {
  font: 500 1em/0.9 var(--serif);
  letter-spacing: -0.055em;
}
.mid-logo span {
  font-style: italic;
  color: var(--purple);
}
.hero p {
  font-size: 17px;
  max-width: 520px;
  color: var(--muted);
}
.hero-card {
  background: var(--purple);
  color: #fff;
  padding: 34px;
  border-radius: 4px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card h2 {
  font: 400 40px/1 var(--serif);
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 2px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  cursor: pointer;
}
.button.light {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}
.button.ghost {
  background: transparent;
  color: var(--purple);
}
.content {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px 90px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 35px 0 20px;
}
.section-head h2 {
  font: 400 38px var(--serif);
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.field {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  border-radius: 2px;
  min-width: 180px;
  color: var(--ink);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.post-card--lite {
  background: #fcfaff;
}
.post-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 0;
}
.post-card__top > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-date {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}
.post-category {
  font-size: 12px;
  color: var(--muted);
}
.post-card__body {
  padding: 12px 18px 18px;
  flex: 1;
}
.post-card__article-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.post-card__article-link:hover h3 { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.post-author {
  font-size: 12px;
  margin: 0 0 10px;
}
.post-views {
  color: var(--muted);
  font-size: 11px;
  margin-left: 7px;
  white-space: nowrap;
}
.post-card h3 {
  font: 400 26px/1.1 var(--serif);
  margin: 0 0 11px;
}
.post-card--article .post-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.post-text {
  white-space: pre-line;
  font-size: 14px;
  margin: 0;
  color: #39343c;
}
.inline-link { color: #2563eb; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-preview { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 13px; padding: 11px; border: 1px solid var(--line); background: #faf8fb; color: var(--ink); text-decoration: none; overflow: hidden; }
.link-preview:hover { border-color: var(--purple); }
.link-preview__domain { color: var(--purple); font-size: 11px; font-weight: 700; }
.link-preview__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-preview__description { grid-column: 1; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-preview__image { grid-column: 2; grid-row: 1 / 3; width: 74px; height: 54px; object-fit: cover; background: #eee; }
.post-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-top: 14px;
}
.post-card__actions {
  border-top: 1px solid var(--line);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.image-strip { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 0 18px 14px; scrollbar-width: thin; }
.image-strip__item { flex: 0 0 min(72%, 280px); height: 190px; padding: 0; border: 0; background: #eee; cursor: zoom-in; overflow: hidden; }
.image-strip__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article > .image-strip { padding: 16px 0; }
.image-viewer { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: #160c1ddd; }
.image-viewer[hidden] { display: none; }
.image-viewer img { max-width: min(1100px, 100%); max-height: calc(100vh - 48px); object-fit: contain; }
.image-viewer__close { position: fixed; top: 18px; right: 18px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 19px; }
.post-more { position: relative; margin-left: auto; }
.post-more__toggle { font-size: 20px; line-height: .7; padding: 5px 7px; }
.post-more__menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; min-width: 128px; padding: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px #22152b1d; }
.post-more__menu .text-button { display: block; width: 100%; padding: 7px; text-align: left; }
.composer-saved-panel { padding: 14px; border: 1px solid var(--line); background: #faf7fb; }
.composer-saved-panel h3 { margin: 0 0 8px; font: 400 22px var(--serif); }
.composer-saved-item { display: block; width: 100%; margin: 5px 0; padding: 10px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.composer-saved-item b { color: var(--purple); font-size: 11px; margin-right: 7px; }
.composer-stored-button { width: 100%; border: 1px solid var(--purple); background: var(--lilac); color: var(--purple); padding: 12px; cursor: pointer; font-weight: 700; }
.composer-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--purple); cursor: pointer; font-size: 16px; }
.composer-close:hover { background: var(--lilac); }
.icon-button,
.text-button {
  border: 0;
  background: transparent;
  padding: 3px;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.icon-button.on {
  color: #a24964;
}
.icon-button b {
  font-weight: 500;
}
.feed-hero {
  max-width: 1180px;
  margin: auto;
  padding: 34px 24px 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.feed-hero .page-title {
  margin: 8px 0 0;
}
.mid-page-title { display: flex; align-items: flex-end; gap: 18px; }
.mid-page-title__byline { display: inline-flex; align-items: baseline; gap: 9px; padding-bottom: .08em; }
.mid-page-title .page-title-by { font-size: .5em; }
.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.category-list button {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 12px;
}
.category-list button.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.timeline {
  max-width: 800px;
  margin: 0 auto;
  max-height: min(72vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.timeline .post-card {
  margin-bottom: 18px;
}
.float-post {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 8;
  border: 0;
  border-radius: 50%;
  height: 62px;
  width: 62px;
  background: var(--purple);
  color: #fff;
  font-size: 29px;
  box-shadow: 0 8px 22px #3c2c4240;
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #1d1a2277;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open {
  display: flex;
}
.modal-card {
  background: var(--paper);
  width: min(650px, 100%);
  padding: 30px;
  max-height: 92vh;
  overflow: auto;
}
.modal-card h2 {
  font: 400 34px var(--serif);
  margin: 0 0 18px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid label {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.profile-cover {
  height: 250px;
  background: linear-gradient(120deg, #382c44, #a47c77);
  background-size: cover;
  background-position: center;
  position: relative;
}
.profile-main {
  max-width: 900px;
  margin: auto;
  padding: 0 24px 80px;
}
.profile-summary {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 22px;
  align-items: end;
  transform: translateY(-50px);
  margin-bottom: -30px;
}
.avatar {
  width: 112px;
  height: 112px;
  font-size: 42px;
  border: 5px solid var(--paper);
  background-size: cover;
  background-position: center;
}
.profile-summary h1 {
  font: 400 45px var(--serif);
  margin: 0;
}
.profile-summary p {
  margin: 4px 0;
  color: var(--muted);
}
.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 10px 0 28px;
}
.about h2 {
  font: 400 28px var(--serif);
  margin: 0 0 8px;
}
.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.links a {
  font-size: 13px;
  color: var(--purple);
  text-decoration: underline;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.profile-tabs button {
  padding: 12px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}
.profile-tabs button.active {
  border-color: var(--purple);
  color: var(--purple);
}

.profile-follow {
  white-space: nowrap;
}

.profile-links-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-link-row {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(220px, 2fr) auto;
  gap: 8px;
  margin: 8px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--line);
  padding-bottom: 14px;
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.portfolio-card h3,
.portfolio-card p,
.portfolio-card .text-button {
  margin-left: 14px;
  margin-right: 14px;
}

.portfolio-card h3 { font: 400 22px var(--serif); margin-top: 12px; margin-bottom: 4px; }
.portfolio-card p { color: var(--muted); font-size: 13px; margin-top: 0; }
.settings {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.settings h2 {
  font: 400 26px var(--serif);
  margin: 0 0 16px;
}
.article {
  max-width: 760px;
  margin: auto;
  padding: 64px 24px 100px;
}
.article h1 {
  font: 400 clamp(40px, 6vw, 70px)/0.98 var(--serif);
  margin: 12px 0 20px;
}
.article-content {
  white-space: pre-line;
  font-size: 17px;
  margin: 32px 0;
}
.article-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
.comments {
  margin-top: 42px;
}
.comment {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
}
.auth {
  max-width: 480px;
  margin: 70px auto;
  padding: 0 24px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
}
.auth-card h1 {
  font: 400 44px var(--serif);
  margin: 0 0 8px;
}
.notice {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}
.legal-documents { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-documents a { display: block; padding: 10px 0; color: var(--purple); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.legal-documents a + a { border-top: 1px solid var(--line); }
.legal-documents details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.legal-documents details:last-child { border-bottom: 0; }
.legal-documents summary { cursor: pointer; color: var(--purple); font-size: 13px; }
.legal-documents p { white-space: pre-line; font-size: 12px; color: var(--muted); line-height: 1.75; }
.legal-page { max-width: min(760px, calc(100vw - 32px)); }
.legal-document-body { white-space: pre-line; color: var(--ink); line-height: 1.9; font-size: 14px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  z-index: 50;
  font-size: 13px;
}
@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
    height: auto;
    min-height: 70px;
    gap: 10px;
  }
  .brand {
    font-size: 25px;
  }
  nav {
    gap: 9px;
  }
  .nav-link {
    font-size: 12px;
    white-space: nowrap;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 70px 24px 45px;
    gap: 30px;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .feed-hero {
    padding: 24px 24px 14px;
    display: block;
  }
  .mid-page-title { gap: 12px; }
  .profile-summary {
    grid-template-columns: 82px 1fr;
    gap: 14px;
  }
  .avatar {
    width: 82px;
    height: 82px;
    font-size: 30px;
  }
  .profile-summary h1 {
    font-size: 32px;
  }
  .profile-summary .button {
    grid-column: 1/-1;
  }
  .profile-link-row {
    grid-template-columns: 1fr;
  }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-cover {
    height: 180px;
  }
  .hide-mobile {
    display: none;
  }
}

/* Article / Lite composer */
.article-content figure { margin: 32px 0; }
.article-content figure img { width: 100%; border-radius: 3px; }
.article-content figcaption { color: var(--muted); font-size: 12px; margin-top: 7px; }
.article-block { white-space: normal; }
.article-block--title { font: 500 34px/1.18 var(--serif); margin: 34px 0 16px; }
.article-block--large { font: 500 25px/1.3 var(--serif); margin: 28px 0 12px; }
.article-block--body { font-size: 17px; line-height: 1.95; margin: 0 0 20px; }
.article-block--small { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
.composer-card { width: min(900px, 100%); }
.composer-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.composer-settings { display: grid; grid-template-columns: 1fr 180px; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.composer-settings[hidden] { display: none; }
.post-type-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-type-choice { min-height: 118px; border: 2px solid var(--line); border-radius: 28px; background: #fff; color: var(--muted); cursor: pointer; padding: 20px; text-align: left; display: grid; gap: 5px; }
.post-type-choice b { color: var(--ink); font: 500 28px var(--serif); }
.post-type-choice span { font-size: 12px; }
.post-type-choice.active { border-color: var(--purple); background: var(--lilac); box-shadow: inset 0 0 0 1px var(--purple); }
.article-editor { background: #fff; border: 1px solid var(--line); padding: 20px; }
.article-title { border: 0; border-bottom: 1px solid var(--line); width: 100%; padding: 10px 0 18px; outline: 0; font: 500 38px/1.1 var(--serif); }
.article-cover-control { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin: 18px 0 6px; padding: 16px; background: #f7f1f8; border: 1px solid #dfd1e3; }
.article-cover-control b { display: block; color: var(--purple); }
.article-cover-control span { display: block; font-size: 11px; color: var(--muted); }
.article-cover-select { min-height: 42px; padding: 10px 15px; border: 0; background: var(--purple); color: #fff; cursor: pointer; font-weight: 700; }
.article-cover-control img { grid-column: 1 / -1; width: 100%; }
.article-cover-control img { max-height: 280px; object-fit: cover; border: 1px solid var(--line); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.editor-toolbar button, .editor-toolbar__image, .segmented button { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 7px 10px; cursor: pointer; font-size: 12px; }
.editor-toolbar__image { display: inline-flex; align-items: center; }
.article-edit-canvas { min-height: 360px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.edit-block { margin: 0; padding: 0; border: 0; background: transparent; }
.edit-block:hover { background: transparent; }
.edit-block__meta { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; }
.edit-block--text .edit-block__meta { display: none; }
.editor-text { display: block; width: 100%; border: 0; resize: none; outline: 0; overflow: hidden; background: transparent; padding: 0; line-height: 1.8; }
.editor-text--title { font: 500 30px/1.3 var(--serif); min-height: 42px; }
.editor-text--large { font: 500 23px/1.45 var(--serif); min-height: 38px; }
.editor-text--body { font-size: 16px; min-height: 288px; }
.editor-text--compact { min-height: 36px; }
.editor-text--small { font-size: 13px; min-height: 30px; }
.edit-block--image { position: relative; margin: 0; padding: 0; background: transparent; line-height: 0; }
.editor-image-hint { margin: 9px 0; color: var(--muted); font-size: 12px; }
.editor-image-select { display: flex; align-items: center; justify-content: center; min-height: 46px; width: 100%; margin-top: 8px; border: 1px dashed var(--purple); background: #fff; color: var(--purple); cursor: pointer; font-size: 13px; font-weight: 700; }
.editor-image-select input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.edit-block--image-selected .editor-image-select { display: none; }
.editor-image-delete { position: absolute; z-index: 2; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: #271b2bdd; color: #fff; cursor: pointer; font-size: 14px; }
.editor-image-delete:hover { background: var(--purple); }
.segmented { display: inline-flex; gap: 0; border: 1px solid var(--line); background: #fff; }
.segmented button { border: 0; border-right: 1px solid var(--line); }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--purple); color: #fff; }
.latest-section { margin-top: 40px; }
.mid-rankings { margin-top: 55px; }
.ranking-side .segmented { margin: 15px 0; }
.mid-layout { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
@media (max-width: 760px) { .composer-settings, .post-type-picker, .article-cover-control { grid-template-columns: 1fr; } .article-title { font-size: 30px; } .article-cover-control img { grid-column: auto; } }
.editor-image-display { display: block; width: 100%; max-height: 360px; margin: 0; object-fit: contain; border: 1px solid var(--line); background: #fff; line-height: normal; }
.lite-image-field { display: grid; gap: 10px; }
.lite-image-list { display: flex; gap: 8px; overflow-x: auto; min-height: 0; }
.lite-image-item { position: relative; flex: 0 0 150px; height: 120px; overflow: hidden; background: #f2eef4; }
.lite-image-item img { width: 100%; height: 100%; object-fit: cover; }
.lite-image-item button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #211627d9; color: #fff; cursor: pointer; }
.lite-image-add { display: grid; place-items: center; width: 58px; height: 58px; border: 1px dashed var(--purple); color: var(--purple); cursor: pointer; font-size: 31px; line-height: 1; }
.lite-image-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
