:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #737373;
  --line: #dedede;
  --accent: #ef3f2f;
  --content-thumbnail-aspect-ratio: 16 / 9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

.home {
  min-height: 100svh;
  padding: 28px clamp(24px, 5vw, 72px);
}

.site-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.site-header .wordmark {
  margin-top: 7px;
}

.header-actions {
  position: relative;
}

.wordmark {
  color: var(--ink);
  display: inline-block;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.following-menu {
  position: relative;
  z-index: 10;
}

.following-menu > summary {
  align-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  color: #404040;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  list-style: none;
  padding: 0;
  user-select: none;
  width: 38px;
}

.following-menu > summary::-webkit-details-marker {
  display: none;
}

.following-menu > summary:hover,
.following-menu > summary:focus-visible {
  border-color: #bdbdbd;
}

.following-menu > summary:focus-visible {
  outline: 3px solid rgb(239 63 47 / 14%);
  outline-offset: 2px;
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 16px;
}

.menu-icon > span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 1.5px;
  transition: opacity 150ms ease, transform 150ms ease;
  width: 16px;
}

.following-menu[open] .menu-icon > span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.following-menu[open] .menu-icon > span:nth-child(2) {
  opacity: 0;
}

.following-menu[open] .menu-icon > span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

.following-panel {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 11%);
  max-height: min(76vh, 640px);
  overflow-y: auto;
  padding: 16px;
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: 372px;
}

.header-menu-links {
  display: grid;
}

[data-following-settings][hidden],
[data-topic-settings][hidden] {
  display: none;
}

[data-following-settings],
[data-topic-settings] {
  border-top: 1px solid #eeeeee;
  margin-top: 8px;
  padding-top: 14px;
}

.header-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  color: #202020;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 650;
  justify-content: space-between;
  min-height: 46px;
  padding: 5px 4px;
  text-align: left;
  width: 100%;
}

.header-menu-item:last-child {
  border-bottom: 0;
}

.header-menu-item::after {
  color: #8a8a8a;
  content: "\2192";
  font-size: 15px;
  font-weight: 400;
  margin-left: 16px;
}

.header-menu-item[data-open-following-settings]::after,
.header-menu-item[data-open-topic-settings]::after,
.header-menu-item[data-open-old-styles]::after {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  height: 6px;
  margin-left: 11px;
  transform: rotate(45deg);
  transition: transform 150ms ease;
  width: 6px;
}

.header-menu-item[data-open-following-settings][aria-expanded="true"]::after,
.header-menu-item[data-open-topic-settings][aria-expanded="true"]::after,
.header-menu-item[data-open-old-styles][aria-expanded="true"]::after {
  transform: rotate(225deg);
}

.header-menu-item:hover {
  color: var(--accent);
}

.header-menu-item:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgb(239 63 47 / 16%);
  outline-offset: 2px;
}

.following-count {
  align-items: center;
  background: #f2f2f2;
  border-radius: 999px;
  color: #6e6e6e;
  display: inline-flex;
  font-size: 10px;
  height: 21px;
  justify-content: center;
  margin-left: auto;
  min-width: 21px;
  padding: 0 6px;
}

.following-panel-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 13px;
}

.following-panel-heading p,
.people-list-heading {
  color: #858585;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.following-panel-heading span {
  color: #777777;
  font-size: 11px;
  line-height: 1.4;
}

.general-instructions {
  background: #f7f7f5;
  border: 1px solid #e7e7e4;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 10px;
}

.instruction-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.instruction-heading strong {
  font-size: 12px;
  font-weight: 650;
}

.instruction-heading small {
  color: #7d7d7d;
  font-size: 9px;
}

.instruction-form {
  display: grid;
  gap: 7px;
  margin: 0;
}

.instruction-form textarea {
  background: #ffffff;
  border: 1px solid #dcdcd8;
  border-radius: 7px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  min-height: 52px;
  outline: none;
  padding: 8px 9px;
  resize: vertical;
  width: 100%;
}

.instruction-form textarea::placeholder {
  color: #9a9a96;
}

.instruction-form textarea:focus {
  border-color: #9d9d98;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 4%);
}

.instruction-save-button {
  background: #202020;
  border: 1px solid #202020;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 680;
  justify-self: end;
  padding: 5px 9px;
}

.instruction-save-button:hover {
  background: #383838;
  border-color: #383838;
}

.instruction-save-button:focus-visible {
  outline: 3px solid rgb(239 63 47 / 18%);
  outline-offset: 2px;
}

.people-list-heading {
  margin: 0 0 7px;
}

.search-hero {
  margin: clamp(38px, 6vh, 58px) auto 0;
  max-width: 720px;
  width: 100%;
}

h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  font-weight: 540;
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin: 0 0 18px;
  text-align: center;
}

.hero-subtitle {
  color: #6f6f6f;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 24px;
}

.search-composer {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgb(0 0 0 / 5%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 5px 5px 5px 9px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, border-radius 180ms ease, max-width 180ms ease;
}

.search-composer:focus-within {
  border-color: #a5a5a5;
  box-shadow: 0 16px 44px rgb(0 0 0 / 8%), 0 0 0 4px rgb(0 0 0 / 3%);
}

.search-composer[data-search-mode="topics"] {
  border-radius: 24px;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px 22px 20px;
}

.search-composer [hidden],
[data-search-results][hidden] {
  display: none;
}

.search-mode-switch {
  background: #f2f2ef;
  border: 1px solid #e9e9e4;
  border-radius: 999px;
  display: inline-flex;
  justify-self: start;
  padding: 3px;
}

.search-mode-switch button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #777;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 32px;
  padding: 8px 13px;
}

.search-mode-switch button[aria-pressed="true"] {
  background: #ffffff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 9%);
  color: #171717;
}

.search-mode-switch button:focus-visible,
.topic-search-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-composer .search-form {
  align-items: center;
  display: flex;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.search-composer .search-form[hidden] {
  display: none;
}

.topic-search-form {
  display: grid;
  gap: 14px;
  margin: 0;
  min-width: 0;
}

.topic-search-form textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.4;
  min-height: 70px;
  outline: none;
  padding: 0;
  resize: vertical;
  width: 100%;
}

.topic-search-form textarea::placeholder {
  color: #999;
}

.topic-search-footer {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.topic-search-submit {
  align-items: center;
  background: #202020;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  gap: 18px;
  min-height: 42px;
  padding: 10px 18px;
}

.topic-search-submit:hover {
  background: #383838;
}

.search-form input[type="search"] {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 16px;
  min-width: 0;
  outline: none;
  padding: 14px 16px;
  width: 100%;
}

.search-form input[type="search"]::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

.search-field {
  align-self: stretch;
  flex: 1;
  min-width: 0;
  position: relative;
}

.search-typing-prompt {
  align-items: center;
  color: #8a8a8a;
  display: none;
  font-size: 16px;
  inset: 0;
  overflow: hidden;
  padding: 0 16px;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
}

.search-form.is-typing .search-typing-prompt {
  display: flex;
}

.search-form.is-typing input[type="search"] {
  caret-color: transparent;
}

.search-form.is-typing input[type="search"]::placeholder {
  color: transparent;
}

.search-typing-caret {
  animation: search-caret-blink 1s steps(1, end) infinite;
  background: var(--ink);
  display: none;
  flex: 0 0 1px;
  height: 1.1em;
  margin-left: 1px;
}

.search-form.is-typing:focus-within .search-typing-caret {
  display: inline-block;
}

@keyframes search-caret-blink {
  50% {
    opacity: 0;
  }
}

.search-submit {
  align-items: center;
  background: #202020;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 43px;
  font-size: 19px;
  height: 43px;
  justify-content: center;
  line-height: 1;
  margin-right: 1px;
  padding: 0 0 2px;
}

.search-submit:hover {
  background: #383838;
}

.search-submit:focus-visible {
  outline: 3px solid rgb(239 63 47 / 18%);
  outline-offset: 2px;
}

.people-search-results {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgb(0 0 0 / 7%);
  margin-top: 9px;
  overflow: hidden;
}

.topic-overview p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.topic-form {
  background: #f8f8f6;
  border: 1px solid #e6e6e1;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  padding: 18px;
  text-align: left;
}

.topic-form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.topic-form-field--wide,
.topic-errors {
  grid-column: 1 / -1;
}

.topic-form label,
.topic-search-form label {
  font-size: 12px;
  font-weight: 600;
}

.topic-form input:not([type="submit"]),
.topic-form select,
.topic-search-form input,
.topic-search-form select {
  background: #fff;
  border: 1px solid #d6d6d0;
  border-radius: 6px;
  box-sizing: border-box;
  color: #222;
  font: inherit;
  font-size: 14px;
  min-width: 0;
  padding: 10px;
  width: 100%;
}

.topic-form small,
.topic-overview small {
  color: #737373;
  font-size: 12px;
  line-height: 1.5;
}

.topic-form .follow-button {
  font-size: 12px;
  justify-self: start;
  padding: 10px 16px;
}

.topic-settings-editor {
  padding: 8px 0;
}

.topic-settings-editor .topic-form {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
}

.topic-card .person-instruction-label strong {
  white-space: normal;
}

.topic-overview {
  align-items: flex-start;
  border-bottom: 1px solid #e6e6e1;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 22px;
  padding: 8px 0 22px;
  text-align: left;
}

.topic-overview h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
}

.topic-overview p {
  margin: 8px 0;
}

.topic-overview form {
  flex-shrink: 0;
}

.content-topic-label {
  color: #777;
  display: block;
  font-size: 11px;
  line-height: 1.4;
  margin: 8px 3px 0;
  text-decoration: none;
}

.content-topic-label::before {
  color: var(--accent);
  content: "# ";
}

.feed-style-overlay .content-topic-label {
  margin: 8px 12px 10px;
}

.feed-style-text .content-topic-label {
  margin: 0 3px 12px;
}

.topic-errors {
  color: #a42217;
  font-size: 13px;
  line-height: 1.5;
}

.topic-editor {
  margin: 40px auto;
  max-width: 650px;
}

@media (max-width: 600px) {
  .topic-form { grid-template-columns: minmax(0, 1fr); }
  .topic-overview { flex-direction: column; }
  .search-composer { padding-left: 5px; }
  .search-mode-switch button { font-size: 11px; padding: 8px 9px; }
  .search-composer[data-search-mode="topics"] { gap: 18px; padding: 12px 16px 16px; }
  .topic-search-form textarea { font-size: 20px; }
}

.people-search-results > p {
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 14px 16px;
}

.people-search-result {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 11px 13px;
}

.people-search-result + .people-search-result {
  border-top: 1px solid #eeeeec;
}

.people-search-result > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.people-search-result strong {
  font-size: 12px;
}

.people-search-result small {
  color: #808080;
  font-size: 9px;
}

.people-search-result form {
  margin: 0;
}

.following-label {
  color: #777777;
  font-size: 10px;
  font-weight: 650;
}

.people-list {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.person-card {
  align-items: flex-start;
  display: flex;
  gap: 3px;
  min-width: 0;
  padding: 2px 0;
}

.person-card[hidden] {
  display: none;
}

.person-avatar {
  align-items: center;
  background: #f1f1f1;
  border-radius: 50%;
  color: #555555;
  display: flex;
  flex: 0 0 26px;
  font-size: 9.5px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  letter-spacing: 0.02em;
}

.person-instructions {
  flex: 1;
  min-width: 0;
}

.person-instructions > summary {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  list-style: none;
  min-height: 38px;
  min-width: 0;
  padding: 5px 7px;
}

.person-instructions > summary::-webkit-details-marker {
  display: none;
}

.person-instructions > summary::after {
  border-bottom: 1px solid #8b8b8b;
  border-right: 1px solid #8b8b8b;
  content: "";
  flex: 0 0 5px;
  height: 5px;
  margin: -2px 2px 0 1px;
  transform: rotate(45deg);
  transition: transform 150ms ease, margin 150ms ease;
  width: 5px;
}

.person-instructions[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.person-instructions > summary:hover {
  background: #f7f7f5;
}

.person-instructions > summary:focus-visible {
  outline: 3px solid rgb(239 63 47 / 14%);
  outline-offset: 1px;
}

.person-instruction-label {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.person-instruction-label strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-instruction-label small {
  color: #898989;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-instructions[open] .person-instruction-label small {
  color: var(--accent);
}

.person-instruction-editor {
  padding: 3px 7px 10px 42px;
}

.instruction-form-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.instruction-form-footer span {
  color: #8a8a8a;
  font-size: 8px;
  line-height: 1.35;
  max-width: 190px;
}

.unfollow-form {
  flex: 0 0 auto;
  margin: 8px 0 0;
}

.unfollow-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #929292;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 26px;
  font-size: 18px;
  height: 26px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
}

.unfollow-button:hover {
  background: #fff0ee;
  color: var(--accent);
}

.unfollow-button:focus-visible {
  outline: 3px solid rgb(239 63 47 / 14%);
  outline-offset: 1px;
}

.following-panel > .following-empty {
  color: #737373;
  font-size: 12px;
  line-height: 1.4;
  margin: 4px 2px 2px;
}

.feed-refresh-control {
  border-top: 1px solid #ececea;
  margin-top: 10px;
  padding-top: 11px;
}

.feed-refresh-control form,
.people-search-result form {
  margin: 0;
}

.refresh-button,
.follow-button {
  background: #202020;
  border: 1px solid #202020;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 680;
  padding: 7px 9px;
}

.refresh-button {
  width: 100%;
}

.refresh-button:hover,
.follow-button:hover {
  background: #383838;
  border-color: #383838;
}

.refresh-button:focus-visible,
.follow-button:focus-visible {
  outline: 3px solid rgb(239 63 47 / 18%);
  outline-offset: 2px;
}

.feed-refresh-control > span {
  color: #8a8a8a;
  display: block;
  font-size: 9px;
  margin-top: 7px;
  text-align: center;
}

.flash-notice {
  background: #202020;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  left: 50%;
  margin: 0;
  max-width: calc(100vw - 40px);
  padding: 8px 13px;
  position: fixed;
  top: 22px;
  transform: translateX(-50%);
  z-index: 20;
}

.content-feed {
  margin-top: 24px;
  padding-top: 0;
}

.feed-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feed-style-switcher,
.content-type-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feed-style-groups {
  display: grid;
  gap: 7px;
}

.feed-toolbar-label {
  color: #767676;
  font-size: 11px;
  font-weight: 600;
  margin-right: 2px;
}

.feed-style-toggle,
.content-type-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  color: #737373;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
}

.feed-style-toggle:hover,
.content-type-toggle:hover {
  border-color: #a9a9a9;
  color: #333333;
}

.feed-style-toggle:focus-visible,
.content-type-toggle:focus-visible {
  outline: 3px solid rgb(239 63 47 / 16%);
  outline-offset: 2px;
}

.feed-style-toggle[aria-pressed="true"],
.content-type-toggle[aria-pressed="true"] {
  background: #202020;
  border-color: #202020;
  color: #ffffff;
}

.content-type-toggle-check {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  height: 12px;
  position: relative;
  width: 12px;
}

.content-type-toggle[aria-pressed="true"] .content-type-toggle-check::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 2px;
}

/* Feed toolbar + search switch. Two designs: A (root, underline tabs) and D (/1, one quiet line). */
.feed-toolbar .feed-toolbar-label,
.feed-toolbar .content-type-toggle-check,
.feed-style-icon {
  display: none;
}

.feed-style-groups .feed-style-switcher,
.feed-toolbar .content-type-filters {
  flex-wrap: nowrap;
  gap: 16px;
}

.feed-style-groups .feed-style-toggle,
.feed-toolbar .content-type-toggle,
.toolbar-a .search-mode-switch button,
.toolbar-d .search-mode-switch button {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #a0a0a0;
  flex: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 0;
  padding: 10px 0;
}

.feed-style-groups .feed-style-toggle:hover,
.feed-toolbar .content-type-toggle:hover,
.toolbar-a .search-mode-switch button:hover,
.toolbar-d .search-mode-switch button:hover {
  color: #505050;
}

.feed-style-groups .feed-style-toggle[aria-pressed="true"],
.feed-toolbar .content-type-toggle[aria-pressed="true"],
.toolbar-a .search-mode-switch button[aria-pressed="true"],
.toolbar-d .search-mode-switch button[aria-pressed="true"] {
  background: transparent;
  box-shadow: none;
  color: #171717;
}

.toolbar-a .search-mode-switch,
.toolbar-d .search-mode-switch {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 14px;
  padding: 0 4px 0 12px;
}

/* A: a line under what's on */
.toolbar-a .search-mode-switch {
  border-right: 1px solid #e5e5e5;
  padding-right: 14px;
}

.toolbar-a .search-mode-switch button {
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}

.toolbar-a .feed-toolbar {
  border-bottom: 1px solid #ececec;
}

.toolbar-a .feed-style-groups .feed-style-toggle,
.toolbar-a .feed-toolbar .content-type-toggle {
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.toolbar-a .search-mode-switch button[aria-pressed="true"],
.toolbar-a .feed-style-groups .feed-style-toggle[aria-pressed="true"],
.toolbar-a .feed-toolbar .content-type-toggle[aria-pressed="true"] {
  border-bottom-color: #171717;
}

/* D: filters as words, layout as icons on the right */
.toolbar-d .feed-toolbar {
  flex-wrap: nowrap;
}

.toolbar-d .feed-toolbar .content-type-filters-wrap {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
}

.toolbar-d .feed-toolbar .content-type-filters {
  gap: 14px;
}

.toolbar-d .feed-toolbar .feed-style-groups {
  flex: none;
  order: 2;
}

.toolbar-d .feed-style-groups .feed-style-switcher {
  gap: 2px;
}

.toolbar-d .feed-style-groups .feed-style-name {
  display: none;
}

.toolbar-d .feed-style-groups .feed-style-icon {
  display: block;
  height: 16px;
  width: 16px;
}

.toolbar-d .feed-style-groups .feed-style-icon svg {
  display: block;
  height: 16px;
  width: 16px;
}

.toolbar-d .feed-style-groups .feed-style-toggle {
  border-radius: 8px;
  display: grid;
  height: 32px;
  place-items: center;
  padding: 0;
  width: 32px;
}

.toolbar-d .feed-style-groups .feed-style-toggle[aria-pressed="true"] {
  background: #f0f0ee;
}

@media (max-width: 600px) {
  .toolbar-a .feed-toolbar {
    border-bottom: 0;
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 18px;
  }

  .toolbar-a .feed-style-groups .feed-style-switcher,
  .toolbar-a .feed-toolbar .content-type-filters {
    border-bottom: 1px solid #ececec;
  }

  .toolbar-a .feed-toolbar .content-type-filters {
    gap: 11px;
  }

  .feed-toolbar .content-type-filters {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .feed-toolbar .content-type-filters::-webkit-scrollbar {
    display: none;
  }

}

/* Thin line between who (People, Topics) and what (Articles, Videos, …) */
.filter-divider {
  align-self: center;
  background: #dcdcd8;
  flex: none;
  height: 14px;
  width: 1px;
}

/* X (/2): one "Showing everything" menu instead of a filter row */
.toolbar-x .filter-menu {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  position: relative;
}

.filter-menu-trigger {
  align-items: center;
  background: none;
  border: 0;
  color: #171717;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  padding: 8px 0;
}

.filter-menu-chevron {
  border-bottom: 1.6px solid #777;
  border-right: 1.6px solid #777;
  height: 7px;
  margin-top: -4px;
  transform: rotate(45deg);
  transition: transform 150ms ease;
  width: 7px;
}

.filter-menu-trigger[aria-expanded="true"] .filter-menu-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.filter-menu-panel {
  background: #ffffff;
  border: 1px solid #e6e6e2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 10%);
  display: grid;
  left: 0;
  padding: 6px 0;
  position: absolute;
  top: calc(100% + 6px);
  width: min(300px, calc(100vw - 40px));
  z-index: 30;
}

.filter-menu-panel[hidden] {
  display: none;
}

.filter-menu-heading {
  color: #999;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 10px 16px 4px;
  text-transform: uppercase;
}

.feed-toolbar .filter-menu-panel .content-type-toggle {
  color: #aaa;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  justify-content: space-between;
  padding: 10px 16px;
  width: 100%;
}

.feed-toolbar .filter-menu-panel .content-type-toggle[aria-pressed="true"] {
  color: #171717;
}

.feed-toolbar .filter-menu-panel .content-type-toggle-check {
  border: 1.5px solid #d4d4d0;
  display: block;
  height: 18px;
  order: 2;
  width: 18px;
}

.feed-toolbar .filter-menu-panel .content-type-toggle[aria-pressed="true"] .content-type-toggle-check {
  background: #171717;
  border-color: #171717;
}

.feed-toolbar .filter-menu-panel .content-type-toggle[aria-pressed="true"] .content-type-toggle-check::after {
  border-bottom: 1.8px solid #ffffff;
  border-right: 1.8px solid #ffffff;
  height: 8px;
  left: 5px;
  top: 2px;
  width: 4px;
}

/* Y (/3): "Latest" heading carries the layout icons; filters get their own full line */
.toolbar-y .feed-toolbar {
  align-items: center;
  display: grid;
  gap: 2px 12px;
  grid-template-areas:
    "heading styles"
    "filters filters";
  grid-template-columns: minmax(0, 1fr) auto;
}

.feed-heading {
  font-size: 20px;
  font-weight: 700;
  grid-area: heading;
  letter-spacing: -0.02em;
  margin: 0;
}

.toolbar-y .feed-toolbar .feed-style-groups {
  grid-area: styles;
}

.toolbar-y .feed-toolbar .content-type-filters-wrap {
  border-bottom: 1px solid #ececec;
  grid-area: filters;
}

.toolbar-y .feed-toolbar .content-type-filters {
  gap: 22px;
}

@media (max-width: 600px) {
  .toolbar-y .feed-toolbar .content-type-filters {
    gap: 10px;
    justify-content: space-between;
  }
}

/* Z (/4): the logo and menu replace the "Latest" heading */
.feed-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-area: heading;
  min-width: 0;
  position: relative;
  z-index: 10;
}

/* Anchor the menu panel to the logo's left edge so it fits on phones. */
.feed-brand .header-actions,
.feed-brand .following-menu {
  position: static;
}

.feed-brand .following-menu > summary {
  height: 34px;
  min-height: 34px;
  width: 34px;
}

.feed-brand .following-panel {
  left: 0;
  right: auto;
}

.settings-icon {
  height: 18px;
  transition: transform 250ms ease;
  width: 18px;
}

.following-menu[open] > summary .settings-icon {
  transform: rotate(60deg);
}

.following-menu[open] > summary:has(.settings-icon) {
  background: #f0f0ee;
  border-color: #d6d6d2;
  color: #171717;
}

/* When filters don't fit: fade the hidden side and show a round arrow to reach them. */
.content-type-filters-wrap {
  min-width: 0;
  position: relative;
}

.filter-scroll-hint {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e4e4e0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
  color: #171717;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
}

.filter-scroll-hint[hidden] {
  display: none;
}

.filter-scroll-hint span {
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  height: 7px;
  margin-left: -3px;
  transform: rotate(45deg);
  width: 7px;
}

.content-type-filters-wrap.is-at-end .filter-scroll-hint {
  left: 0;
  right: auto;
}

.content-type-filters-wrap.is-at-end .filter-scroll-hint span {
  margin-left: 3px;
  transform: rotate(-135deg);
}

.content-type-filters-wrap.is-overflowing .content-type-filters {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent calc(100% - 20px));
  mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent calc(100% - 20px));
}

.content-type-filters-wrap.is-overflowing.is-at-end .content-type-filters {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent calc(100% - 20px));
  mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent calc(100% - 20px));
}

.content-filter-empty {
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
  margin: 38px 0;
  text-align: center;
}

.quote-card {
  background: #faf8f4;
  border: 1px solid #e7e1d8;
  border-radius: 14px;
  min-width: 0;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.quote-card:hover {
  background: #f3eee6;
  border-color: #bcaa91;
}

.feed-style-text .quote-card {
  margin-block: 18px;
}

.quote-card blockquote,
.quote-card blockquote p {
  margin: 0;
}

.quote-card blockquote {
  color: #2c2823;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.quote-card-link {
  border-radius: inherit;
  color: inherit;
  display: block;
  padding: 28px;
  text-decoration: none;
}

.quote-card-link:focus-visible {
  outline: 3px solid #bcaa91;
  outline-offset: 3px;
}

.video-grid[hidden],
.article-grid[hidden],
.content-filter-empty[hidden] {
  display: none;
}

.content-empty {
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.video-grid,
.article-grid {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-grid {
  margin-top: 18px;
}

.content-grid {
  margin-top: 0;
}

.content-feed:not(.has-visible-videos) .article-grid {
  margin-top: 0;
}

.video-card,
.article-card {
  min-width: 0;
}

[data-content-person][hidden] {
  display: none;
}

.video-card,
.article-card {
  background: #fafafa;
  border: 1px solid #c9c9c9;
  border-radius: 11px;
  overflow: hidden;
}

.video-embed {
  aspect-ratio: var(--content-thumbnail-aspect-ratio);
  background: #111111;
  overflow: hidden;
  position: relative;
}

.video-embed iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.video-preview {
  background: #111111;
  border: 0;
  color: inherit;
  cursor: pointer;
  height: 100%;
  inset: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  text-decoration: none;
  width: 100%;
}

.video-thumbnail {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease, transform 220ms ease;
  width: 100%;
}

.thumbnail-published-date {
  backdrop-filter: blur(8px);
  background: rgb(17 17 17 / 76%);
  border-radius: 6px;
  bottom: 11px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  padding: 7px 8px;
  pointer-events: none;
  position: absolute;
  right: 12px;
  z-index: 4;
}

.custom-play {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgb(255 255 255 / 88%);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgb(0 0 0 / 16%);
  display: flex;
  height: 38px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
  width: 38px;
  z-index: 2;
}

.custom-play::after {
  border-bottom: 6px solid transparent;
  border-left: 9px solid #171717;
  border-top: 6px solid transparent;
  content: "";
  margin-left: 3px;
}

.video-preview:hover .video-thumbnail {
  opacity: 0.92;
  transform: scale(1.015);
}

.video-preview:hover .custom-play {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-preview:focus-visible {
  outline: 3px solid rgb(239 63 47 / 45%);
  outline-offset: -3px;
}

body.video-modal-open {
  overflow: visible;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 600px);
  inset: 0;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  position: fixed;
  z-index: 100;
}

.video-modal[data-player-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 600px));
}

.video-modal[data-player-count="1"][data-single-side="left"] {
  justify-content: start;
}

.video-modal[data-player-count="1"][data-single-side="right"] {
  justify-content: end;
}

.video-modal-dialog {
  background: #0b0b0b;
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 34px rgb(0 0 0 / 32%);
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.video-modal-player {
  aspect-ratio: 16 / 9;
  background: #0b0b0b;
}

.video-modal-player iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.video-modal-close {
  align-items: center;
  background: rgb(255 255 255 / 92%);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 3px 14px rgb(0 0 0 / 25%);
  color: #171717;
  cursor: pointer;
  display: flex;
  font-size: 25px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  right: 12px;
  top: 12px;
  transition: transform 150ms ease, background 150ms ease;
  width: 36px;
  z-index: 2;
}

.video-modal-close:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.video-modal-close:focus-visible {
  outline: 3px solid rgb(239 63 47 / 45%);
  outline-offset: 2px;
}

.video-chapter-controls {
  background: #151515;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #ffffff;
}

.video-chapters-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  width: 100%;
}

.video-chapters-toggle::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 6px;
  margin: -3px 2px 0 auto;
  transform: rotate(45deg);
  transition: transform 150ms ease, margin 150ms ease;
  width: 6px;
}

.video-chapters-toggle[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.video-chapters-toggle:hover {
  background: rgb(255 255 255 / 7%);
}

.video-chapters-toggle:focus-visible,
.video-chapter-button:focus-visible {
  outline: 3px solid rgb(239 63 47 / 65%);
  outline-offset: -3px;
}

.video-chapters-panel[hidden] {
  display: none;
}

.video-chapters-panel {
  border-top: 1px solid rgb(255 255 255 / 10%);
  max-height: min(300px, 42vh);
  overflow-y: auto;
}

.video-chapters-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.video-chapters-list li + li {
  border-top: 1px solid rgb(255 255 255 / 7%);
}

.video-chapter-button {
  align-items: baseline;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 16px;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 14px;
  text-align: left;
  width: 100%;
}

.video-chapter-button:hover {
  background: rgb(255 255 255 / 7%);
}

.video-chapter-title {
  font-size: 12px;
  line-height: 1.35;
}

.video-chapter-time {
  color: rgb(255 255 255 / 62%);
  flex: 0 0 auto;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.native-content-body {
  padding: 11px 1px 0;
}

.video-card .native-content-body,
.article-card .native-content-body {
  padding: 10px 12px 11px;
}

.article-card .native-content-body {
  border-top: 1px solid #c9c9c9;
}

.video-card .content-byline,
.article-card .content-byline {
  margin: 4px 0 0;
}

.content-byline {
  color: #858585;
  font-size: 10px;
  line-height: 1.3;
  margin: 0 0 5px;
}

.native-content-body h3 {
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.22;
  margin: 0;
}

.video-card .native-content-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.video-card .native-content-body h3 a:hover {
  text-decoration: underline;
}

.article-card .article-image-link {
  color: var(--ink);
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.media-metadata-label {
  background: rgb(17 17 17 / 82%);
  border-radius: 5px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  padding: 6px 8px;
}

.media-date-label {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 3;
}

.release-metadata-stack {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 4;
}

.home--version-two .release-metadata-stack {
  bottom: 11px;
  right: 12px;
  top: auto;
}

.release-metadata-label {
  backdrop-filter: blur(8px);
  background: rgb(17 17 17 / 82%);
  border-radius: 5px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.home--version-two .release-metadata-label {
  background: rgb(17 17 17 / 76%);
  border-radius: 6px;
  padding: 7px 8px;
}

.release-metadata-stack .media-date-label,
.release-metadata-stack .thumbnail-published-date {
  position: static;
}

.media-author-badge {
  backdrop-filter: blur(10px);
  background: rgb(17 17 17 / 82%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 730;
  left: 9px;
  line-height: 1;
  padding: 7px 9px;
  position: absolute;
  top: 9px;
  z-index: 3;
}

.media-image-copy {
  background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 88%));
  bottom: 0;
  color: #ffffff;
  display: block;
  left: 0;
  padding: 42px 12px 11px;
  position: absolute;
  text-align: left;
  width: 100%;
  z-index: 1;
}

.media-title-label {
  background: rgb(17 17 17 / 82%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 18%);
  display: block;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.16;
  max-width: 92%;
  padding: 6px 8px;
  width: fit-content;
}

.media-detail-row {
  align-items: center;
  color: rgb(255 255 255 / 70%);
  display: flex;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.media-info-item::before {
  color: rgb(255 255 255 / 40%);
  content: "\00b7";
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  margin: 0 6px;
}

.media-kind-label {
  color: rgb(255 255 255 / 92%);
  font-weight: 720;
}

.article-card .article-image-link:hover > img,
.article-card .article-image-link:hover > .article-thumbnail-placeholder {
  transform: scale(1.018);
}

.article-card .article-image-link:focus-visible {
  outline: 3px solid rgb(239 63 47 / 22%);
  outline-offset: -3px;
}

.article-card .native-content-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card .native-content-body h3 a:hover {
  text-decoration: underline;
}

.article-card .article-image-link > img {
  aspect-ratio: var(--content-thumbnail-aspect-ratio);
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.article-thumbnail-placeholder {
  align-items: flex-start;
  aspect-ratio: var(--content-thumbnail-aspect-ratio);
  background: linear-gradient(135deg, #263f59 0%, #101c2c 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 15px;
  position: relative;
  transition: transform 180ms ease;
}

.article-thumbnail-placeholder::before {
  background: radial-gradient(circle, rgb(123 204 213 / 48%) 0%, rgb(123 204 213 / 0%) 67%);
  content: "";
  height: 210px;
  position: absolute;
  right: -44px;
  top: -92px;
  width: 210px;
}

.article-thumbnail-placeholder--podcast {
  background: linear-gradient(135deg, #514076 0%, #1f1637 100%);
}

.article-thumbnail-placeholder--podcast::before {
  background: radial-gradient(circle, rgb(227 168 255 / 50%) 0%, rgb(227 168 255 / 0%) 67%);
}

.article-thumbnail-placeholder--interview,
.article-thumbnail-placeholder--appearance {
  background: linear-gradient(135deg, #755140 0%, #2b1816 100%);
}

.article-thumbnail-placeholder-header {
  align-items: center;
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.article-card .article-image-link > .author-thumbnail,
.video-preview > .author-thumbnail {
  object-position: center 30%;
}

.video-preview > .article-thumbnail-placeholder {
  height: 100%;
}

.article-card .article-image-link > [hidden],
.video-preview > [hidden] {
  display: none;
}

.article-thumbnail-placeholder-source,
.article-thumbnail-placeholder-kind {
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.035em;
  line-height: 1;
  padding: 7px 9px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.article-thumbnail-placeholder-kind {
  background: rgb(255 255 255 / 12%);
  margin-top: auto;
}

.article-thumbnail-placeholder-initials {
  bottom: -17px;
  color: rgb(255 255 255 / 15%);
  font-size: clamp(74px, 12vw, 142px);
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 0.9;
  position: absolute;
  right: 18px;
}

/* Version two: titles and actions sit below clean thumbnail imagery. */
.home--version-two .video-grid,
.home--version-two .article-grid {
  column-gap: 20px;
  row-gap: 30px;
}

.home--version-two .article-grid {
  margin-top: 34px;
}

.home--version-two .video-card,
.home--version-two .article-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.home--version-two .video-embed,
.home--version-two .article-image-link,
.home--version-two .article-image-link > img,
.home--version-two .article-thumbnail-placeholder {
  border-radius: 14px;
}

.home--version-two .video-embed,
.home--version-two .article-image-link {
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%), 0 10px 30px rgb(0 0 0 / 8%);
}

/* No picture: a plain white tile instead of the blue card. */
.home--version-two:not(.feed-style-overlay) .article-thumbnail-placeholder {
  background: #ffffff;
}

.home--version-two:not(.feed-style-overlay) .article-thumbnail-placeholder::before,
.home--version-two:not(.feed-style-overlay) .article-thumbnail-placeholder > * {
  display: none;
}

.home--version-two .release-metadata-label.is-unknown {
  display: none;
}


.home--version-two .video-card .native-content-body,
.home--version-two .article-card .native-content-body {
  border: 0;
  padding: 9px 3px 0;
}

.version-two-title {
  color: #171717;
  display: block;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0;
  min-height: 0;
  overflow: visible;
}

@media (min-width: 601px) {
  .version-two-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 900px) {
  .search-hero {
    max-width: 1080px;
  }

  .search-hero > h1,
  .search-hero > .search-composer,
  .search-hero > .people-search-results {
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
  }

  .search-hero > .search-composer {
    width: 100%;
  }

  .search-hero > .search-composer[data-search-mode="topics"] {
    max-width: 800px;
  }

  .home--version-two .video-grid,
  .home--version-two .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.version-two-title a {
  color: inherit;
  text-decoration: none;
}

.version-two-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.version-two-title a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgb(239 63 47 / 18%);
  outline-offset: 3px;
}

.text-only-meta {
  display: none;
}

.style-four-author,
.style-five-author,
.style-seven-author,
.style-eight-author,
.style-nine-author,
.style-ten-author,
.more-by-label--short {
  display: none;
}

.feed-style-four .style-four-author {
  color: #5f5f5f;
  display: block;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 3px;
}

.feed-style-four .more-by-label--person,
.feed-style-five .more-by-label--person {
  display: none;
}

.feed-style-four .more-by-label--short,
.feed-style-five .more-by-label--short {
  display: inline;
}

.feed-style-five .style-five-author {
  color: #5f5f5f;
  display: inline;
  font-weight: 750;
}

.feed-style-seven .style-seven-author,
.feed-style-eight .style-eight-author,
.feed-style-nine .style-nine-author,
.feed-style-ten .style-ten-author {
  color: #30302e;
  display: inline;
  font-weight: 750;
}

.home--version-two .content-actions {
  margin-top: 6px;
  padding-top: 0;
}

.home--version-two .native-content-body > .content-actions:first-child {
  margin-top: 13px;
}

.home--version-two .subscriber-content-question {
  border: 1px solid #dededb;
  border-radius: 10px;
  margin-top: 12px;
}

/* Switchable card presentation: clean details below or metadata on the thumbnail. */
.feed-style-below .media-author-badge,
.feed-style-below .media-image-copy,
.feed-style-overlay .version-two-title {
  display: none;
}

.feed-style-below:not(.home--version-two) .video-grid,
.feed-style-below:not(.home--version-two) .article-grid {
  column-gap: 20px;
  row-gap: 30px;
}

.feed-style-below:not(.home--version-two) .article-grid {
  margin-top: 34px;
}

.feed-style-below:not(.home--version-two) .video-card,
.feed-style-below:not(.home--version-two) .article-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.feed-style-below:not(.home--version-two) .video-embed,
.feed-style-below:not(.home--version-two) .article-image-link,
.feed-style-below:not(.home--version-two) .article-image-link > img,
.feed-style-below:not(.home--version-two) .article-thumbnail-placeholder {
  border-radius: 14px;
}

.feed-style-below:not(.home--version-two) .video-embed,
.feed-style-below:not(.home--version-two) .article-image-link {
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%), 0 10px 30px rgb(0 0 0 / 8%);
}

.feed-style-below:not(.home--version-two) .native-content-body {
  border: 0;
  padding: 9px 3px 0;
}

.feed-style-below:not(.home--version-two) .content-byline {
  display: none;
}

.home--version-two.feed-style-overlay .video-grid,
.home--version-two.feed-style-overlay .article-grid {
  column-gap: 12px;
  row-gap: 12px;
}

.home--version-two.feed-style-overlay .article-grid {
  margin-top: 18px;
}

.home--version-two.feed-style-overlay .video-card,
.home--version-two.feed-style-overlay .article-card {
  background: #fafafa;
  border: 1px solid #c9c9c9;
  border-radius: 11px;
  overflow: hidden;
}

.home--version-two.feed-style-overlay .video-embed,
.home--version-two.feed-style-overlay .article-image-link,
.home--version-two.feed-style-overlay .article-image-link > img,
.home--version-two.feed-style-overlay .article-thumbnail-placeholder {
  border-radius: 0;
}

.home--version-two.feed-style-overlay .video-embed,
.home--version-two.feed-style-overlay .article-image-link {
  box-shadow: none;
}

.home--version-two.feed-style-overlay .video-card .native-content-body,
.home--version-two.feed-style-overlay .article-card .native-content-body {
  padding: 10px 12px 11px;
}

.home--version-two.feed-style-overlay .article-card .native-content-body {
  border-top: 1px solid #c9c9c9;
}

.home--version-two.feed-style-overlay .native-content-body > .content-actions:first-child {
  margin-top: 0;
}

.home--version-two.feed-style-overlay .release-metadata-stack {
  bottom: auto;
  right: 9px;
  top: 9px;
}

.home--version-two.feed-style-overlay .release-metadata-label {
  background: rgb(17 17 17 / 82%);
  border-radius: 5px;
  padding: 6px 8px;
}

.feed-style-overlay .card-media {
  position: relative;
}

.feed-style-overlay:not(.home--version-two) .native-content-body,
.home--version-two.feed-style-overlay .video-card .native-content-body,
.home--version-two.feed-style-overlay .article-card .native-content-body {
  background: transparent;
  border: 0;
  bottom: 0;
  left: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 0 12px 11px;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 6;
}

.feed-style-overlay .media-image-copy {
  background:
    linear-gradient(to bottom, rgb(0 0 0 / 48%) 0%, transparent 42%),
    linear-gradient(to bottom, transparent 50%, rgb(0 0 0 / 18%) 68%, rgb(0 0 0 / 88%) 100%);
  bottom: 0;
  left: 0;
  padding: 0;
  right: 0;
  top: 0;
  width: auto;
}

.feed-style-overlay .media-author-badge {
  background: rgb(17 17 17 / 66%);
  bottom: 55px;
  border-color: rgb(255 255 255 / 16%);
  font-size: 10px;
  left: 12px;
  max-width: 52%;
  overflow: hidden;
  padding: 6px 8px;
  text-overflow: ellipsis;
  top: auto;
  white-space: nowrap;
}

.feed-style-overlay .media-title-label {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: -webkit-box;
  font-size: 15px;
  bottom: 12px;
  left: 12px;
  line-height: 1.18;
  max-width: none;
  overflow: hidden;
  padding: 0;
  position: absolute;
  right: 108px;
  text-shadow: 0 1px 8px rgb(0 0 0 / 65%);
  top: auto;
  width: auto;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-style-overlay .media-detail-row {
  display: none;
  font-size: 8.5px;
  left: 13px;
  margin-bottom: 0;
  position: absolute;
  text-shadow: 0 1px 6px rgb(0 0 0 / 70%);
}

.feed-style-overlay .more-by-button strong {
  display: none;
}

.feed-style-overlay .article-card:has(.article-thumbnail-placeholder:not([hidden])) .media-author-badge,
.feed-style-overlay .article-card:has(.article-thumbnail-placeholder:not([hidden])) .media-platform-label {
  display: none;
}

.feed-style-overlay .article-card:has(.article-thumbnail-placeholder:not([hidden])) .media-info-item::before {
  display: none;
}

.feed-style-overlay .article-card:has(.article-thumbnail-placeholder:not([hidden])) .media-title-label {
  bottom: 12px;
  top: auto;
}

.feed-style-overlay .article-card:has(.article-thumbnail-placeholder:not([hidden])) .more-by-button strong {
  display: inline;
}

.feed-style-overlay .release-metadata-label,
.home--version-two.feed-style-overlay .release-metadata-label {
  background: rgb(17 17 17 / 66%);
  font-size: 8px;
  padding: 5px 6px;
}

.feed-style-overlay .content-actions {
  justify-content: flex-end;
  margin-top: 0;
  pointer-events: auto;
}

.feed-style-overlay .content-actions .sum-up-button {
  order: 1;
}

.feed-style-overlay .content-actions .more-by-button {
  order: 2;
}

.feed-style-overlay .content-actions .action-panel {
  order: 3;
}

.feed-style-overlay .action-pill {
  backdrop-filter: blur(9px);
  background: rgb(255 255 255 / 86%);
  border-color: rgb(255 255 255 / 34%);
  font-size: 8.5px;
  min-height: 24px;
  padding: 4px 7px 4px 8px;
}

.feed-style-overlay .action-pill:hover,
.feed-style-overlay .action-pill[aria-expanded="true"] {
  background: rgb(255 255 255 / 94%);
  border-color: rgb(255 255 255 / 48%);
}

.feed-style-overlay .sum-up-button,
.feed-style-overlay .sum-up-button:hover,
.feed-style-overlay .sum-up-button[aria-expanded="true"] {
  background: rgb(17 17 17 / 78%);
  border-color: rgb(255 255 255 / 12%);
  color: #ffffff;
}

.feed-style-overlay .more-by-list,
.feed-style-overlay .card-chapters-list,
.feed-style-overlay .sum-up-panel {
  background: rgb(255 255 255 / 96%);
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
  padding: 7px 9px;
}

.feed-style-text .video-grid,
.feed-style-text .article-grid {
  align-items: start;
  gap: 0;
  grid-template-columns: 1fr;
}

.feed-style-text .article-grid {
  margin-top: 0;
}

.feed-style-text .video-card,
.feed-style-text .article-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e5e2;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transition: background 150ms ease;
}

.feed-style-text .video-card:hover,
.feed-style-text .article-card:hover {
  background: #fafaf8;
}

.feed-style-text .video-embed,
.feed-style-text .article-image-link {
  display: none;
}

.feed-style-text .video-card .native-content-body,
.feed-style-text .article-card .native-content-body {
  align-items: center;
  border: 0;
  display: grid;
  gap: 5px 18px;
  grid-template-areas:
    "title actions"
    "meta actions";
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 3px 15px;
  position: static;
}

.feed-style-text .version-two-title {
  display: block;
  font-size: 19px;
  line-height: 1.22;
  grid-area: title;
  margin: 0;
  max-width: none;
  overflow: visible;
}

.feed-style-text .text-only-meta {
  align-items: center;
  color: #858581;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 570;
  gap: 5px 0;
  grid-area: meta;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0;
}

.feed-style-text .text-only-meta span + span::before {
  color: #b8b8b3;
  content: "\00b7";
  margin: 0 6px;
}

.feed-style-text .text-only-person {
  color: #30302e;
  font-weight: 750;
}

.feed-style-six .text-only-person,
.feed-style-seven .text-only-person,
.feed-style-eight .text-only-person,
.feed-style-nine .text-only-person,
.feed-style-ten .text-only-person {
  font-size: 19px;
  line-height: 1.22;
}

.feed-style-seven .text-only-person,
.feed-style-seven .text-only-person + span::before,
.feed-style-eight .text-only-person,
.feed-style-eight .text-only-person + span::before,
.feed-style-nine .text-only-person,
.feed-style-nine .text-only-person + span::before,
.feed-style-ten .text-only-person,
.feed-style-ten .text-only-person + span::before {
  display: none;
}

.feed-style-text .text-only-kind {
  color: var(--accent);
  font-weight: 750;
}

.feed-style-text .content-byline {
  display: none;
}

.feed-style-text .content-actions {
  align-self: center;
  grid-area: actions;
  justify-self: end;
  margin-top: 0;
  padding-top: 0;
  position: relative;
}

.feed-style-text .action-pill {
  background: transparent;
  border: 0;
  border-color: transparent;
  font-size: 10px;
  padding-left: 7px;
  padding-right: 2px;
}

.feed-style-text .action-pill:hover,
.feed-style-text .action-pill[aria-expanded="true"] {
  background: transparent;
  border-color: transparent;
}

.feed-style-text .sum-up-button,
.feed-style-text .sum-up-button:hover,
.feed-style-text .sum-up-button[aria-expanded="true"] {
  background: transparent;
  color: #444444;
}

.feed-style-text .action-panel {
  background: #ffffff;
  border: 1px solid #deded9;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 14%);
  max-height: 330px;
  overflow-y: auto;
  padding: 8px 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: min(360px, calc(100vw - 64px));
  z-index: 20;
}

.feed-style-text .video-card:has(.action-pill[aria-expanded="true"]),
.feed-style-text .article-card:has(.action-pill[aria-expanded="true"]) {
  position: relative;
  z-index: 19;
}

.feed-style-text .text-only-length.is-unknown {
  display: none;
}

/* Text and List styles on phones: calm title, one quiet meta line, actions aligned to the text. */
@media (max-width: 600px) {
  .feed-style-seven .video-card .native-content-body,
  .feed-style-seven .article-card .native-content-body {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0 16px;
  }

  .feed-style-seven .version-two-title {
    font-size: 18px;
    letter-spacing: -0.01em;
    line-height: 1.28;
  }

  .feed-style-seven .style-seven-author,
  .feed-style-ten .style-ten-author {
    color: #8a8a86;
    font-weight: 650;
  }

  .feed-style-seven .text-only-meta,
  .feed-style-ten .text-only-meta {
    flex-wrap: nowrap;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .feed-style-seven .text-only-meta > span:nth-child(2),
  .feed-style-ten .text-only-meta > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-style-seven .text-only-kind,
  .feed-style-ten .text-only-kind {
    font-weight: 600;
  }

  /* "Video" already says YouTube; give the room to length and age. */
  .feed-style-seven .video-card .text-only-meta > span:nth-child(2),
  .feed-style-seven .video-card .text-only-meta > span:nth-child(2) + span::before,
  .feed-style-ten .video-card .text-only-meta > span:nth-child(2),
  .feed-style-ten .video-card .text-only-meta > span:nth-child(2) + span::before {
    display: none;
  }

  .feed-style-seven .content-actions,
  .feed-style-ten .content-actions {
    gap: 2px 16px;
    margin-top: 2px;
  }

  .feed-style-seven .action-pill,
  .feed-style-ten .action-pill {
    color: #777773;
    font-size: 12px;
    font-weight: 500;
    min-height: 0;
    padding: 4px 0;
  }

  .feed-style-seven .action-pill strong,
  .feed-style-ten .action-pill strong {
    color: #3a3a38;
    font-weight: 600;
  }

  .feed-style-seven .quote-card,
  .feed-style-ten .quote-card,
  .feed-style-seven .quote-card:hover,
  .feed-style-ten .quote-card:hover {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e5e5e2;
    border-radius: 0;
    margin-block: 0;
  }

  .feed-style-seven .quote-card-link,
  .feed-style-ten .quote-card-link {
    padding: 18px 0;
  }

  .feed-style-seven .quote-card blockquote,
  .feed-style-ten .quote-card blockquote {
    border-left: 2px solid #d9d2c6;
    font-size: 19px;
    line-height: 1.4;
    padding-left: 14px;
  }
}

/* Styles Eight through Ten keep the text-list hierarchy but restore a left media column. */
.feed-style-eight .card-media,
.feed-style-nine .card-media,
.feed-style-ten .card-media {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 128px minmax(0, 1fr);
  padding: 12px 3px;
}

.feed-style-eight .video-embed,
.feed-style-eight .article-image-link,
.feed-style-nine .video-embed,
.feed-style-nine .article-image-link,
.feed-style-ten .video-embed,
.feed-style-ten .article-image-link {
  display: block;
  width: 128px;
}

.feed-style-eight .card-media {
  gap: 20px;
  grid-template-columns: 160px minmax(0, 1fr);
  padding-block: 16px;
}

.feed-style-eight .video-embed,
.feed-style-eight .article-image-link {
  width: 160px;
}

.feed-style-eight .video-embed,
.feed-style-eight .article-image-link,
.feed-style-eight .article-image-link > img,
.feed-style-eight .article-thumbnail-placeholder,
.feed-style-nine .video-embed,
.feed-style-nine .article-image-link,
.feed-style-nine .article-image-link > img,
.feed-style-nine .article-thumbnail-placeholder,
.feed-style-ten .video-embed,
.feed-style-ten .article-image-link,
.feed-style-ten .article-image-link > img,
.feed-style-ten .article-thumbnail-placeholder {
  border-radius: 7px;
}

.feed-style-eight .video-card .native-content-body,
.feed-style-eight .article-card .native-content-body,
.feed-style-nine .video-card .native-content-body,
.feed-style-nine .article-card .native-content-body,
.feed-style-ten .video-card .native-content-body,
.feed-style-ten .article-card .native-content-body {
  padding: 0;
}

.feed-style-eight .media-author-badge,
.feed-style-eight .release-metadata-stack,
.feed-style-eight .media-image-copy,
.feed-style-eight .custom-play,
.feed-style-nine .media-author-badge,
.feed-style-nine .release-metadata-stack,
.feed-style-nine .media-image-copy,
.feed-style-nine .custom-play,
.feed-style-ten .media-author-badge,
.feed-style-ten .release-metadata-stack,
.feed-style-ten .media-image-copy,
.feed-style-ten .custom-play {
  display: none;
}

.feed-style-nine .card-media {
  grid-template-columns: 180px minmax(0, 1fr);
}

.feed-style-nine .video-embed,
.feed-style-nine .article-image-link {
  width: 180px;
}

.feed-style-ten .card-media {
  grid-template-columns: 240px minmax(0, 1fr);
}

.feed-style-ten .video-embed,
.feed-style-ten .article-image-link {
  width: 240px;
}

@media (min-width: 720px) {
  .feed-style-text .video-grid,
  .feed-style-text .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .feed-style-text .video-card .native-content-body,
  .feed-style-text .article-card .native-content-body {
    grid-template-areas:
      "title"
      "meta"
      "actions";
    grid-template-columns: 1fr;
  }

  .feed-style-text .content-actions {
    justify-self: start;
  }

  .feed-style-text .action-panel {
    left: 0;
    right: auto;
  }

  .feed-style-eight .card-media {
    gap: 14px;
    grid-template-columns: 112px minmax(0, 1fr);
    padding-block: 14px;
  }

  .feed-style-eight .video-embed,
  .feed-style-eight .article-image-link {
    width: 112px;
  }

  .feed-style-nine .card-media {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .feed-style-nine .video-embed,
  .feed-style-nine .article-image-link {
    width: 124px;
  }

  /* List on phones: small picture, text gets the room. */
  .feed-style-ten .card-media {
    --content-thumbnail-aspect-ratio: 4 / 3;
    align-items: start;
    gap: 14px;
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 16px 0;
  }

  .feed-style-ten .video-embed,
  .feed-style-ten .article-image-link {
    width: 112px;
  }

  .feed-style-ten .video-card .native-content-body,
  .feed-style-ten .article-card .native-content-body {
    gap: 5px;
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-style-ten .version-two-title {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: 16px;
    -webkit-line-clamp: 3;
    letter-spacing: -0.01em;
    line-height: 1.3;
    overflow: hidden;
  }

  .feed-style-ten .text-only-meta {
    font-size: 12px;
  }

  .feed-style-ten .content-actions {
    gap: 2px 14px;
  }

  /* The name is already in the title; a short "More" keeps the buttons on one line. */
  .feed-style-ten .more-by-label--person {
    display: none;
  }

  .feed-style-ten .more-by-label--short {
    display: inline;
  }
}

@media (min-width: 900px) {
  .feed-style-below:not(.home--version-two) .video-grid,
  .feed-style-below:not(.home--version-two) .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.subscriber-content-question {
  align-items: center;
  background: #f7f7f5;
  border-top: 1px solid #dededb;
  color: var(--ink);
  display: grid;
  font-size: 10.5px;
  gap: 9px;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  line-height: 1.3;
  margin: 0;
  padding: 10px 11px;
}

.subscriber-content-question p {
  margin: 0;
}

.subscriber-content-question strong {
  color: var(--ink);
  font-weight: 700;
}

.subscriber-question-icon {
  align-items: center;
  background: #fff0ed;
  border: 1px solid rgb(239 63 47 / 18%);
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.subscriber-choice-row {
  align-items: center;
  background: #e8e8e5;
  border-radius: 999px;
  display: flex;
  gap: 2px;
  padding: 2px;
}

.subscriber-choice-row button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #686866;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  min-height: 25px;
  min-width: 35px;
  padding: 5px 8px;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.subscriber-choice-row button:hover {
  background: rgb(255 255 255 / 65%);
  color: var(--ink);
}

.subscriber-choice-row button[aria-pressed="true"] {
  background: #ffffff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
  color: var(--ink);
}

.subscriber-choice-row button:focus-visible {
  outline: 3px solid rgb(239 63 47 / 20%);
  outline-offset: 1px;
}

.content-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.native-content-body > .content-actions:first-child {
  margin-top: 0;
}

.action-pill {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8d8d5;
  border-radius: 7px;
  box-shadow: none;
  color: #3f3f3f;
  cursor: pointer;
  display: inline-flex;
  font-size: 9px;
  font-weight: 600;
  gap: 7px;
  min-height: 27px;
  order: 1;
  padding: 5px 8px 5px 9px;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
  white-space: nowrap;
  user-select: none;
}

.sum-up-button {
  background: #202020;
  border-color: #202020;
  color: #ffffff;
}

.classics-label {
  cursor: default;
}

.card-chapters-button {
  color: var(--accent);
}

.card-chapters-count {
  align-items: center;
  background: rgb(239 63 47 / 10%);
  border-radius: 999px;
  display: inline-flex;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  min-width: 18px;
  padding: 2px 5px;
}

.card-chapters-list {
  background: #ffffff;
  border: 1px solid #e4e4e1;
  border-radius: 9px;
  list-style: none;
  margin: 3px 0 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 9px;
}

.card-chapters-list li + li {
  border-top: 1px solid #e5e5e2;
}

.card-chapter-play-button {
  align-items: baseline;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 10px;
  gap: 14px;
  justify-content: space-between;
  line-height: 1.35;
  padding: 8px 2px;
  text-align: left;
  width: 100%;
}

.card-chapter-play-button:hover {
  color: var(--accent);
}

.card-chapter-play-button:focus-visible {
  outline: 3px solid rgb(239 63 47 / 18%);
  outline-offset: 1px;
}

.card-chapter-time {
  color: #777773;
  flex: 0 0 auto;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.more-by-button strong {
  color: #111111;
  font-weight: 740;
}

.action-chevron {
  border-bottom: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  height: 5px;
  margin: -3px 1px 0 2px;
  opacity: 0.58;
  transform: rotate(45deg);
  transition: transform 150ms ease, margin 150ms ease;
  width: 5px;
}

.action-pill[aria-expanded="true"] {
  background: #ededeb;
  border-color: #c8c8c5;
  box-shadow: none;
  color: #111111;
}

.action-pill[aria-expanded="true"] strong {
  color: inherit;
}

.sum-up-button[aria-expanded="true"] {
  background: #202020;
  border-color: #202020;
  color: #ffffff;
}

.action-pill[aria-expanded="true"] .action-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.action-pill:hover {
  background: #f2f2f0;
  border-color: #bdbdb9;
  box-shadow: none;
  color: #111111;
}

.sum-up-button:hover {
  background: #383838;
  border-color: #383838;
  color: #ffffff;
}

.action-pill[aria-expanded="true"]:hover {
  background: #e4e4e1;
  border-color: #bdbdb9;
  color: #111111;
}

.sum-up-button[aria-expanded="true"]:hover {
  background: #383838;
  border-color: #383838;
  color: #ffffff;
}

.action-pill:focus-visible {
  outline: 3px solid rgb(239 63 47 / 18%);
  outline-offset: 2px;
}

.action-panel {
  flex: 0 0 100%;
  order: 2;
}

.sum-up-panel {
  background: #ffffff;
  border: 1px solid #e4e4e1;
  border-radius: 9px;
  color: #4d4d4d;
  font-size: 11px;
  line-height: 1.45;
  margin: 3px 0 0;
  padding: 9px 10px;
}

.more-by-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.more-by-list li + li {
  border-top: 1px solid #e5e5e5;
}

.more-by-list a,
.more-by-filter-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  display: grid;
  font: inherit;
  gap: 2px;
  padding: 8px 1px 9px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.more-by-filter-button {
  align-items: center;
  background: #f1f1ee;
  border: 1px solid #d2d2cd;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  margin: 4px 0 7px;
  padding: 10px 11px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.more-by-filter-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.more-by-filter-arrow {
  align-items: center;
  background: #202020;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex: 0 0 25px;
  font-size: 14px;
  height: 25px;
  justify-content: center;
  margin-left: 10px;
  width: 25px;
}

.more-by-filter-button:hover {
  background: #e8e8e4;
  border-color: #bdbdb7;
}

.more-by-filter-button[aria-pressed="true"] {
  background: #202020;
  border-color: #202020;
  color: #ffffff;
}

.more-by-filter-button[aria-pressed="true"] .more-by-filter-arrow {
  background: #ffffff;
  color: #202020;
}

.more-by-filter-button[aria-pressed="true"]:hover {
  background: #383838;
  border-color: #383838;
}

.more-by-list a:hover strong,
.more-by-filter-button:hover strong {
  text-decoration: underline;
}

.more-by-list a:focus-visible,
.more-by-filter-button:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(239 63 47 / 16%);
  outline-offset: 1px;
}

.more-by-kind {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.more-by-list strong {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.more-by-meta {
  color: #858585;
  font-size: 8px;
  line-height: 1.35;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 600px) {
  .home {
    padding: 22px 20px;
  }

  .search-hero {
    margin-top: 38px;
  }

  .search-hero > h1 {
    font-size: clamp(24px, 9vw, 50px);
    white-space: nowrap;
  }

  .hero-subtitle {
    margin-bottom: 22px;
  }

  .search-form {
    padding: 5px;
  }

  .search-form input[type="search"] {
    font-size: 15px;
    padding: 14px;
  }

  .search-typing-prompt {
    font-size: 15px;
    padding: 0 14px;
  }

  .following-panel {
    max-width: calc(100vw - 40px);
  }

  .following-menu > summary {
    height: 44px;
    min-height: 44px;
    padding: 0;
    width: 44px;
  }

  .following-count {
    font-size: 12px;
    height: 24px;
    min-width: 24px;
  }

  .following-panel-heading p,
  .people-list-heading {
    font-size: 11px;
  }

  .following-panel-heading span {
    font-size: 13px;
  }

  .general-instructions {
    padding: 14px;
  }

  .instruction-heading {
    gap: 3px;
    margin-bottom: 11px;
  }

  .instruction-heading strong {
    font-size: 15px;
  }

  .instruction-heading small {
    font-size: 12px;
  }

  .instruction-form {
    gap: 10px;
  }

  .instruction-form textarea {
    border-radius: 9px;
    font-size: 16px;
    min-height: 88px;
    padding: 12px;
  }

  .instruction-save-button {
    border-radius: 8px;
    font-size: 13px;
    min-height: 44px;
    min-width: 64px;
    padding: 10px 14px;
  }

  .people-list {
    gap: 3px;
  }

  .person-card {
    gap: 0;
  }

  .person-instructions > summary {
    gap: 11px;
    min-height: 56px;
    padding: 7px 5px;
  }

  .person-avatar {
    flex-basis: 36px;
    font-size: 11px;
    height: 36px;
  }

  .person-instruction-label strong {
    font-size: 15px;
  }

  .person-instruction-label small {
    font-size: 12px;
  }

  .person-instructions > summary::after {
    border-width: 0 1.5px 1.5px 0;
    flex-basis: 8px;
    height: 8px;
    margin-inline: 5px;
    width: 8px;
  }

  .person-instruction-editor {
    padding: 5px 5px 15px;
  }

  .instruction-form-footer span {
    font-size: 11px;
    max-width: 200px;
  }

  .unfollow-form {
    flex-basis: 44px;
    margin-top: 6px;
    width: 44px;
  }

  .unfollow-button {
    background: #f5f5f3;
    border: 1px solid #e9e9e6;
    color: #686868;
    flex-basis: 44px;
    font-size: 24px;
    height: 44px;
    width: 44px;
  }

  .refresh-button {
    font-size: 13px;
    min-height: 44px;
  }

  .feed-refresh-control > span {
    font-size: 11px;
  }

  .video-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .version-two-title {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .video-modal {
    gap: 0;
    grid-template-columns: 1fr;
    justify-content: center;
    padding: env(safe-area-inset-top, 0) 0 0;
  }

  .video-modal[data-player-count="2"] {
    grid-template-columns: 1fr;
  }

  .video-chapters-panel {
    max-height: 34vh;
  }

}

@media (max-width: 360px) {
  .content-actions {
    gap: 4px;
  }

  .action-pill {
    font-size: 9px;
    gap: 6px;
    padding-inline: 7px;
  }

  .media-author-badge {
    font-size: 11px;
  }

  .media-title-label {
    font-size: 13px;
  }

  .media-detail-row {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-composer,
  .search-form,
  .menu-icon > span,
  .header-menu-item[data-open-following-settings]::after,
  .header-menu-item[data-open-topic-settings]::after,
  .header-menu-item[data-open-old-styles]::after,
  .person-instructions > summary::after,
  .feed-style-text .video-card,
  .feed-style-text .article-card,
  .action-pill,
  .action-chevron,
  .video-thumbnail,
  .custom-play,
  .article-card .article-image-link,
  .article-card .article-image-link > img,
  .media-image-copy,
  .video-modal-close {
    transition: none;
  }

  .video-chapters-toggle::after {
    transition: none;
  }
}

/* A unified feed has no article-section offset; every card shares one chronology. */
.home .article-grid.content-grid {
  margin-top: 0;
}

/* Sign in and sign up */
.auth-panel {
  margin: clamp(48px, 10vh, 96px) auto 0;
  max-width: 420px;
  text-align: center;
}

.auth-panel h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 28px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form input {
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  padding: 13px 16px;
  width: 100%;
}

.auth-form input:focus {
  border-color: #b5b5b5;
}

.auth-submit {
  font-size: 14px;
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}

.auth-links {
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
}

.auth-links a {
  color: var(--ink);
}

.auth-message {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.auth-message--alert {
  color: var(--accent);
}

/* Add a person by link */
.add-person {
  border-top: 1px solid #eeeeec;
  padding: 12px 16px 14px;
}

.add-person > summary {
  color: #6f6f6f;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.add-person > summary:hover {
  color: var(--ink);
}

.add-person[open] > summary {
  color: var(--ink);
  font-weight: 600;
}

.add-person > summary::-webkit-details-marker {
  display: none;
}

.add-person-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.add-person-form input {
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  padding: 11px 14px;
  width: 100%;
}

.add-person-form input:focus {
  border-color: #b5b5b5;
}

.add-person-form small {
  color: var(--muted);
  font-size: 12px;
}

.add-person-form .follow-button {
  font-size: 12px;
  justify-self: end;
  padding: 9px 14px;
}

.flash-notice--alert {
  background: var(--accent);
}

.header-menu-account {
  border-top: 1px solid #efefef;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
  padding-top: 10px;
}

.header-menu-account form {
  margin: 0;
}

.header-menu-account button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
}

.header-menu-account button:hover {
  color: var(--ink);
}

.header-menu-account .delete-account-button:hover {
  color: var(--accent);
}

/* Privacy and support */
.text-page {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: clamp(40px, 8vh, 80px) auto 64px;
  max-width: 620px;
}

.text-page h1 {
  margin-bottom: 24px;
  text-align: left;
}

.text-page h2 {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 32px 0 8px;
}

.text-page ul {
  padding-left: 20px;
}

.text-page a {
  color: var(--ink);
}

.auth-footer {
  margin-top: 64px;
  text-align: center;
}

.auth-footer a {
  color: var(--muted);
}
