/* ===== Header ===== */
.header {
  width: 100%;
  border-bottom: 1px solid var(--color-border-default);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 32px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon {
  height: 32px;
  width: auto;
}
.logo-container {
  display: flex;
  width: 146px;
  height: 32px;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}
.logo-text {
  color: var(--sds-color-text-default-default);
  font-family: var(--sds-typography-heading-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-style: normal;
  font-weight: var(--sds-typography-heading-font-weight);
  line-height: 120%;
  letter-spacing: -0.48px;
}
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-default);
  text-decoration: none;
  transition: background-color 0.2s;
}
.login-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.nav-buttons {
  display: flex;
  padding: 8px 0;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-default);
  transition: background-color 0.2s;
  text-decoration: none;
}
.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.profile-btn {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-left: 16px;
}
.profile-circle {
  border-radius: 40px;
  border: 1px solid var(--sds-color-border-default-default);
}
.popover {
  position: fixed;
  top: 70px;
  right: 30px;
  z-index: 1000;
}
.popover-card {
  display: flex;
  width: 251px;
  padding: 16px 0 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: 8px;
  border: 1px solid var(--sds-color-border-default-default);
  background: var(--sds-color-background-default-default);
  box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-400) var(--sds-size-depth-800) var(--sds-size-depth-negative-100) var(--sds-color-black-200),
              var(--sds-size-depth-0) var(--sds-size-depth-100) var(--sds-size-depth-100) var(--sds-size-depth-negative-100) var(--sds-color-black-100);
}
.user-row {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding: 0 12px 16px;
  border-bottom: 1px solid var(--sds-color-border-default-default);
}
.avatar-wrapper {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--sds-color-border-default-default);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: normal;
}
.user-name {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  color: var(--sds-color-text-default-default);
  white-space: nowrap;
}
.user-organization {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-small);
  color: var(--sds-color-text-default-secondary);
  white-space: nowrap;
}
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0 24px;
}
.section--bordered {
  padding-top: 16px;
  border-top: 1px solid var(--sds-color-border-default-default);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  color: var(--sds-color-text-default-default);
  text-decoration: none;
  white-space: nowrap;
  line-height: normal;
}
.menu-item:hover {
  opacity: 0.7;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 8px;
  text-align: left;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-brand);
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-brand);
}

/* ===== Search Bar ===== */
.search-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 48px;
  width: 100%;
  max-width: var(--content-width);
}
.search-input-row {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--content-width);
  border-bottom: 1px solid var(--color-border-brand);
  height: 72px;
  padding: 12px 4px;
  gap: 10px;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text-default);
  line-height: 1.5;
  min-width: 0;
}
.search-input::placeholder {
  color: var(--color-text-secondary);
  font-style: italic;
}
.search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--sds-color-border-neutral-default);
  border-radius: 32px;
  background: var(--sds-color-background-default-secondary);
  color: var(--sds-color-border-neutral-default);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.search-icon-btn:hover {
  opacity: 0.9;
}
.search-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
}
.trending-grid {
  grid-column: 1 / 3;
  grid-row: 1;
}
.filter-link {
  grid-column: 3;
  grid-row: 1;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-align: right;
  white-space: nowrap;
  align-self: start;
  justify-self: end;
}
.filter-link:hover {
  color: var(--color-text-default);
}
.search-btn {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  width: 231px;
  background: var(--color-bg-brand);
  border: 1px solid var(--color-border-brand);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-on-brand);
  text-align: center;
  justify-self: center;
  align-self: end;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.search-btn:hover {
  opacity: 0.9;
}

/* ===== Article Card ===== */
.article-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.article-card:hover {
  box-shadow: 0px 20px 40px 0px rgba(12, 12, 13, 0.15),
              0px 4px 4px 0px rgba(12, 12, 13, 0.07);
}
.article-link {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}
.article-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.article-meta {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border: 1px solid var(--color-border-default);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-default);
  white-space: nowrap;
}
.tag--active {
  font-weight: 700;
}
.article-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text-default);
  width: 100%;
}
.article-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-default);
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.article-org {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 16px;
  flex-shrink: 0;
}
.org-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  flex-shrink: 0;
}
.org-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-default);
  white-space: nowrap;
}
.article-info {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  white-space: nowrap;
  min-width: 0;
}
.article-author {
  flex-shrink: 0;
}
.article-date {
  font-size: 13px;
  flex-shrink: 0;
}

/* ===== Footer Badge ===== */
.badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: var(--color-badge-bg);
  border-radius: 4px;
}
.badge-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-on-brand);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== Homepage Layout ===== */
.page {
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--page-width)) 1fr;
  grid-template-rows: fit-content(100%);
  min-height: 100vh;
  background: var(--color-bg);
}
.page > header {
  grid-column: 1 / -1;
}
.main-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  width: 100%;
  max-width: var(--page-width);
  justify-self: center;
}
.content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 28px;
  width: 100%;
  min-height: 1036px;
}
.hero-wrapper {
  align-self: end;
  opacity: 0.9;
  min-height: 300px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.articles-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-self: end;
  align-items: center;
}
.articles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 8px;
  white-space: nowrap;
  width: 100%;
}
.articles-heading {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-default);
}
.articles-view-all {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: underline;
}
.articles-view-all:hover {
  color: var(--color-text-default);
}
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: var(--content-width);
}
.badge-wrapper {
  align-self: center;
}

/* ===== Article Rotor (homepage crossfade) ===== */
.articles-list--rotor {
  position: relative;
  min-height: 270px;
  display: block;
  gap: 0;
}
.articles-list--rotor .article-rotor-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-name: article-crossfade;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  pointer-events: none;
}
@keyframes article-crossfade {
  0%   { opacity: 0; pointer-events: none; }
  3%   { opacity: 1; pointer-events: auto; }
  13%  { opacity: 1; pointer-events: auto; }
  16%  { opacity: 0; pointer-events: none; }
  100% { opacity: 0; pointer-events: none; }
}
.articles-list--rotor:hover .article-rotor-item {
  animation-play-state: paused;
}

/* Fixed-height article slot: every card identical regardless of content,
   so the title/footer coordinates never shift between tagged and tagless cards. */
.articles-list--rotor .article-card {
  height: 270px;
}
.articles-list--rotor .article-link,
.articles-list--rotor .article-body {
  height: 100%;
}
.articles-list--rotor .article-meta {
  min-height: 30px;
}
.articles-list--rotor .tags {
  flex-wrap: nowrap;
  overflow: hidden;
}
.articles-list--rotor .article-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 24px;
}
.articles-list--rotor .article-excerpt {
  min-height: 96px;
}
.articles-list--rotor .article-footer {
  min-height: 24px;
}

/* ===== Gündem Page ===== */
.gundem-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 20px;
}
.gundem-title {
  font-family: var(--sds-typography-heading-font-family);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--color-text-default);
  margin: 0;
}
.analizler-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}
.analizler-region {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  max-height: 29px;
}
.analizler-region-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.analizler-region-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #303030;
  line-height: 1.4;
  white-space: nowrap;
}
.analizler-region-select {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #303030;
  cursor: pointer;
  appearance: auto;
}
.analizler-region-hint {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #757575;
  margin: 0;
  text-align: right;
  line-height: 1.4;
}
.analizler-region-hint-link {
  font-style: italic;
  text-decoration: underline;
  color: #757575;
}
.analizler-region-hint-link:hover {
  opacity: 0.8;
}
.gundem-day + .gundem-day {
  margin-top: 24px;
}
.gundem-day {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gundem-day-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--color-text-secondary);
}
.gundem-day-date {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}
.gundem-day-chevron {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}
.gundem-day.collapsed .gundem-day-chevron {
  transform: rotate(180deg);
}
.gundem-day.collapsed .gundem-day-list {
  display: none;
}
.gundem-day-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 16px;
}
.arama-results .gundem-day-list {
  gap: 48px;
}
.gundem-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.gundem-card-regions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gundem-card-regions-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}
.gundem-card-regions-trigger:hover {
  opacity: 0.8;
}
.gundem-card-regions-trigger img {
  display: block;
}
.gundem-card-regions-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #303030;
  white-space: nowrap;
}
.gundem-card-tags {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.gundem-card-tags-chips {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.gundem-card-tags .tag {
  font-size: 16px;
  line-height: 18px;
}
.gundem-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid var(--sds-color-border-default-default);
  border-radius: 3px;
  background: none;
  cursor: pointer;
  color: var(--sds-color-text-default-secondary);
  transition: background-color 0.2s ease;
  opacity: 75%;
}
.gundem-card-action:hover {
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 100%;
}
.gundem-card-action svg,
.gundem-card-action img {
  display: block;
}
.gundem-card-action-label {
  display: none;
  font-family: var(--sds-typography-body-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--sds-color-text-default-secondary);
  white-space: nowrap;
}
.gundem-card-action:hover .gundem-card-action-label {
  display: inline;
}
.gundem-card-action--danger {
  border-color: var(--sds-color-border-danger-default);
  color: var(--sds-color-border-danger-default);
  opacity: 50%;
}
.gundem-card-action--danger:hover {
  background-color: var(--sds-color-red-100);
  opacity: 100%;
}
.gundem-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.gundem-card-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-default);
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.gundem-card-title:hover {
  text-decoration: underline;
}
.gundem-card-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-default);
  white-space: pre-wrap;
  width: 100%;
}
.gundem-card-title b,
.gundem-card-excerpt b {
  font-weight: 700;
}
.gundem-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.gundem-card-org {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.gundem-card-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gundem-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gundem-card-publisher {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-default);
  white-space: nowrap;
}
.gundem-card-author {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  flex: 1;
  min-width: 0;
}
.gundem-card-date {
  color: var(--sds-color-text-default-secondary);
  font-family: Inter, serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  flex-shrink: 0;
}

.gundem-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  transition: opacity 0.15s ease;
}
.gundem-card--note-editing .gundem-card-body {
  opacity: 0.7;
}

.gundem-card-actions-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.gundem-card-note-panel {
  width: 100%;
}
.gundem-card-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.gundem-card-note-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gundem-card-note-form .field-label {
  font-weight: 400;
}
.gundem-card-note-form .gundem-card-note-footer {
  margin-top: 4px;
}
.gundem-card-note-body {
  width: 100%;
  border: 1px solid var(--sds-color-border-default-default);
  border-radius: 8px;
  padding: 12px 16px;
  font: 400 16px/1.4 var(--font-body);
  color: var(--color-text-default);
  background: var(--color-bg-default);
  white-space: pre-wrap;
  word-break: break-word;
}
.gundem-card-note-textarea {
  width: 100%;
  border: 1px solid var(--sds-color-border-default-default);
  border-radius: 8px;
  padding: 12px 16px;
  font: 400 16px/1.4 var(--font-body);
  color: var(--color-text-default);
  resize: vertical;
  min-height: 96px;
  background: var(--color-bg-default);
  margin-top: 4px;
}
.gundem-card-note-textarea:focus {
  outline: 2px solid var(--color-bg-brand);
  outline-offset: -1px;
}
.gundem-card-note-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.gundem-card-note-footer--view {
  justify-content: flex-end;
}
.gundem-card-note-footer--edit .gundem-card-note-actions {
  margin-left: auto;
}
.gundem-card-note-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gundem-card-note-meta {
  font-size: 14px;
  line-height: 1.4;
  color: var(--sds-color-text-default-secondary);
}

.gundem-empty {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 48px 0;
}

.tag-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  background: var(--color-bg);
  border: none;
  border-radius: 8px;
  box-shadow: var(--sds-effects-shadows-drop-shadow-600);
  padding: 12px 16px;
  max-width: 273px;
  width: max-content;
  flex-direction: column;
  gap: 12px;
}

.tag-menu-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
  padding-bottom: 8px;
}

.tag-menu:popover-open {
  display: flex;
  margin: 0;
}

.tag-menu-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-menu-title {
  font-family: var(--sds-typography-body-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-default);
  margin: 0;
}

.tag-menu-subtitle {
  font-family: var(--sds-typography-body-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-secondary);
  margin: 0;
}

.tag-menu-link {
  text-decoration: underline;
  color: var(--sds-color-text-default-secondary);
}

.tag-menu-link:hover {
  opacity: 0.8;
}

.tag-menu .tags-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tag-menu .tag-group-letter {
  font-family: var(--sds-typography-body-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--sds-color-text-default-secondary);
}

.tag-menu .tag-group-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.tag-menu-pill {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--sds-color-border-default-default);
  border-radius: 3px;
  background: transparent;
  font-family: var(--sds-typography-body-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-default);
  white-space: nowrap;
  cursor: pointer;
  width: fit-content;
}

.tag-menu-pill input {
  display: none;
}

.tag-menu-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}

.tag-menu-pill--active {
  background: var(--sds-color-background-brand-default);
  border-color: var(--sds-color-border-brand-default);
  color: var(--sds-color-text-brand-on-brand);
}

.tag-menu-pill--active:hover {
  background: var(--sds-color-background-brand-default);
}

/* ===== Bölge popover ===== */
.region-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  background: var(--color-bg);
  border: none;
  border-radius: 8px;
  box-shadow: var(--sds-effects-shadows-drop-shadow-600);
  padding: 12px 16px;
  max-width: 273px;
  width: max-content;
  flex-direction: column;
  gap: 12px;
}

.region-menu:popover-open {
  display: flex;
  margin: 0;
}

.region-menu-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.region-menu-title {
  font-family: var(--sds-typography-body-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-default);
  margin: 0;
}

.region-menu-subtitle {
  font-family: var(--sds-typography-body-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-secondary);
  margin: 0;
}

.region-menu-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.region-menu-pill {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--sds-color-border-default-default);
  border-radius: 3px;
  background: transparent;
  font-family: var(--sds-typography-body-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-default);
  white-space: nowrap;
  cursor: pointer;
  width: fit-content;
}

.region-menu-pill input {
  display: none;
}

.region-menu-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}

.region-menu-pill--active {
  background: var(--sds-color-background-brand-default);
  border-color: var(--sds-color-border-brand-default);
  color: var(--sds-color-text-brand-on-brand);
}

.region-menu-pill--active:hover {
  background: var(--sds-color-background-brand-default);
}

/* ===== Etiketler Page ===== */
.tags-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  padding: 0 24px 24px;
  min-height: calc(100vh - 80px);
}

.tags-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 12px;
  border-right: 1px solid var(--color-border-default);
  position: sticky;
  top: 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.tags-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tags-sidebar-title {
  font-family: var(--sds-typography-heading-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 600;
  line-height: normal;
  color: var(--color-text-default);
}

.tags-sidebar-create {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--color-text-default);
  cursor: pointer;
  text-decoration: none;
}

.tags-sidebar-create:hover {
  opacity: 0.7;
}

.tags-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-group-letter {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-secondary);
}

.tag-group-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.tag-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 6px;
  border-radius: 3px;
  font-family: var(--sds-typography-body-font-family);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-default);
  text-decoration: none;
  white-space: nowrap;
  line-height: normal;
  transition: background-color 0.15s;
}

.tag-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.tag-item--active {
  background: var(--sds-color-background-brand-default);
  border-radius: 8px;
  padding: 4px 6px;
  color: var(--sds-color-text-brand-on-brand);
  width: 100%;
}

.tag-item--active:hover {
  background: var(--sds-color-background-brand-default);
}

.tags-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 16px;
  width: 100%;
  max-width: 1200px;
  justify-self: center;
}

.tags-content--create {
  padding-left: 36px;
}

.tags-content--create .btn-primary,
.tags-content--edit .btn-primary {
  background: #2c8a4a;
}

.tag-detail-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-detail-heading {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-default);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: opacity 0.15s;
}

.icon-btn:hover {
  opacity: 0.7;
}

.tags-header-actions {
  display: flex;
  gap: 10px;
  padding: 8px 6px;
}

.icon-btn--boxed {
  border-radius: 8px;
}

.tag-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  align-self: center;
  width: 100%;
}

.tag-form-heading {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-default);
  margin-bottom: 4px;
}

.field-label {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 500;
  color: var(--color-text-default);
  line-height: normal;
}

.field-input {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  color: var(--color-text-default);
  background: var(--color-white);
  outline: none;
  width: 100%;
  max-width: 400px;
}

.field-input:focus {
  border-color: var(--color-border-brand);
}

.field-description {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-scale-02);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.tag-form-error {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-scale-02);
  font-weight: 400;
  color: var(--sds-color-red-600, #dc2626);
}

.tag-form-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--color-bg-brand);
  color: var(--color-text-on-brand);
}

.btn-neutral {
  background: transparent;
  color: var(--color-text-default);
  border: 1px solid var(--color-border-default);
}

.btn-neutral:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-danger-outline {
  background: transparent;
  color: var(--sds-color-border-danger-default);
  border: 0;
}

.btn-danger-outline:hover {
  background-color: var(--sds-color-red-100);
  opacity: 1;
}

.btn--sm {
  padding: 8px;
  font-size: 14px;
}

.tag-empty {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  color: var(--color-text-default);
  line-height: 1;
}

.tag-empty-link {
  color: var(--color-text-default);
  text-decoration: underline;
}

.tag-empty-link:hover {
  opacity: 0.7;
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 20px 32px;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.chart-card-title {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-default);
  letter-spacing: -0.4px;
}

.chart-toggle {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-scale-02);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.chart-toggle:hover {
  color: var(--color-text-default);
}

.chart-canvas-wrap {
  position: relative;
  height: 200px;
  padding: 0 4px;
}

.tags-graph-wrap {
  position: relative;
  width: 100%;
}

.tags-graph-chart {
  width: 100%;
  height: 760px;
  cursor: grab;
  overflow: hidden;
  touch-action: none;
}

.tags-graph-chart:active {
  cursor: grabbing;
}

.tags-graph-card {
  padding-top: 16px;
}

.tags-graph-title {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-default);
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.tags-graph-min-filter {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}

.tags-graph-min-filter-label {
  font-family: var(--sds-typography-body-font-family);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1;
  user-select: none;
}

/* Wide hit target; track stays thin via pseudo-elements */
.tags-graph-min-filter-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 170px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.tags-graph-min-filter-slider::-webkit-slider-runnable-track {
  width: 4px;
  height: 100%;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(to top, #e8e8e8, #a8a8a8);
}

.tags-graph-min-filter-slider::-moz-range-track {
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to top, #e8e8e8, #a8a8a8);
}

.tags-graph-min-filter-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b0b0b0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: grab;
}

.tags-graph-min-filter-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #b0b0b0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: grab;
}

.tags-publications {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 10px 0px;
}

.tags-relation-articles {
  margin-top: 24px;
}

.tags-pubs-heading {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-default);
  letter-spacing: -0.48px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.publication-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 16px;
}

.publication-tags {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.publication-tags .tag {
  font-size: 16px;
  line-height: normal;
}

.publication-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text-default);
  text-decoration: none;
}

.publication-title:hover {
  text-decoration: underline;
}

.publication-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.publication-org {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.publication-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  flex-shrink: 0;
}

.publication-publisher {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-default);
  white-space: nowrap;
}

.publication-author {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  flex: 1;
  min-width: 0;
}

.tags-init-empty {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 48px;
}

.tags-init-message {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 70%;
}

.tags-init-link {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  color: var(--color-text-brand);
  text-decoration: underline;
  cursor: pointer;
}

.tags-init-link:hover {
  opacity: 0.7;
}

.chart-card.hidden .chart-canvas-wrap {
  display: none;
}

.chart-card.hidden .folder-charts-row {
  display: none;
}

.folder-charts-row {
  display: flex;
  gap: 40px;
  padding: 24px;
  align-items: center;
}

.folder-chart-pie-wrap {
  position: relative;
  height: 308px;
  width: 376px;
  flex-shrink: 0;
}

.folder-chart-bar-wrap {
  position: relative;
  height: 280px;
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .folder-charts-row {
    flex-direction: column;
    align-items: stretch;
  }

  .folder-chart-pie-wrap {
    width: 100%;
    height: 280px;
  }

  .folder-chart-bar-wrap {
    height: 280px;
  }
}

/* ===== Klasörler Page ===== */
.folders-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  padding: 0 24px 24px;
  min-height: calc(100vh - 80px);
}

.folders-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 12px;
  border-right: 1px solid var(--color-border-default);
  position: sticky;
  top: 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.folders-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.folders-sidebar-title {
  font-family: var(--sds-typography-heading-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 600;
  line-height: normal;
  color: var(--color-text-default);
}

.folders-sidebar-create {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--color-text-default);
  cursor: pointer;
  text-decoration: none;
}

.folders-sidebar-create:hover {
  opacity: 0.7;
}

.folders-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.folder-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 6px;
  border-radius: 3px;
  font-family: var(--sds-typography-body-font-family);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-default);
  text-decoration: none;
  white-space: nowrap;
  line-height: normal;
  transition: background-color 0.15s;
}

.folder-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.folder-item--active {
  background: var(--sds-color-background-brand-default);
  border-radius: 8px;
  padding: 4px 6px;
  color: var(--sds-color-text-brand-on-brand);
  width: 100%;
}

.folder-item--active:hover {
  background: var(--sds-color-background-brand-default);
}

.folders-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 16px;
  width: 100%;
  max-width: 1200px;
  justify-self: center;
}

.folders-content--create {
  padding-left: 36px;
}

.folders-content--create .btn-primary,
.folders-content--edit .btn-primary {
  background: #2c8a4a;
}

.folder-detail-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.folder-detail-heading {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-default);
}

.folders-header-actions {
  display: flex;
  gap: 10px;
  padding: 8px 6px;
}

.folder-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  align-self: center;
  width: 100%;
}

.folder-form-heading {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-default);
  margin-bottom: 4px;
}

.folder-form-error {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-scale-02);
  font-weight: 400;
  color: var(--sds-color-red-600, #dc2626);
}

.folder-form-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.folder-empty {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  color: var(--color-text-default);
  line-height: 1;
}

.folder-empty-link {
  color: var(--color-text-default);
  text-decoration: underline;
}

.folder-empty-link:hover {
  opacity: 0.7;
}

.folders-publications {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 10px 0px;
}

.folders-pubs-heading {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-default);
  letter-spacing: -0.48px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.folders-init-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-top: 48px;
}

.folders-init-message {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1;
}

.folders-init-link {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  color: var(--color-text-brand);
  text-decoration: underline;
  cursor: pointer;
}

.folders-init-link:hover {
  opacity: 0.7;
}

/* ===== Folder Menu ===== */
.folder-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  background: var(--color-bg);
  border: none;
  border-radius: 8px;
  box-shadow: var(--sds-effects-shadows-drop-shadow-600);
  padding: 12px 16px;
  max-width: 273px;
  width: max-content;
  flex-direction: column;
  gap: 12px;
}

.folder-menu-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-bottom: 8px;
}

.folder-menu:popover-open {
  display: flex;
  margin: 0;
}

.folder-menu-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.folder-menu-title {
  font-family: var(--sds-typography-body-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-default);
  margin: 0;
}

.folder-menu-subtitle {
  font-family: var(--sds-typography-body-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-secondary);
  margin: 0;
}

.folder-menu-link {
  text-decoration: underline;
  color: var(--sds-color-text-default-secondary);
}

.folder-menu-link:hover {
  opacity: 0.8;
}

.folder-menu .folders-group {
  gap: 4px;
}

.folder-menu-pill {
  display: flex;
  align-items: center;
  padding: 4px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--sds-typography-body-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--sds-color-text-default-default);
  white-space: nowrap;
  cursor: pointer;
  width: 100%;
}

.folder-menu-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}

.folder-menu-pill--active {
  background: var(--sds-color-background-brand-default);
  color: var(--sds-color-text-brand-on-brand);
}

.folder-menu-pill--active:hover {
  background: var(--sds-color-background-brand-default);
}

/* ===== Error Page ===== */
.error-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  width: 100%;
  max-width: var(--page-width);
  padding: 0 24px;
  justify-self: center;
}

.error-text-wrapper {
  width: 100%;
  padding: 48px 0;
}

.error-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  max-width: 586px;
  width: 100%;
  margin-left: max(24px, calc((100% - 586px) * 0.245));
}

.error-code {
  font-family: var(--font-heading);
  font-size: var(--sds-typography-title-page-size-small);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--color-text-default);
  margin: 0;
  word-break: break-word;
}

.error-message {
  font-family: var(--font-body);
  font-size: var(--sds-typography-subtitle-size-small);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--color-text-default);
  margin: 0;
}

.error-link {
  font-family: var(--font-body);
  font-size: var(--sds-typography-subtitle-size-small);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--color-text-default);
  text-decoration: underline;
}

.error-link:hover {
  opacity: 0.7;
}

/* ===== Arama (Search) page ===== */

.arama-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.arama-title {
  font-family: var(--sds-typography-heading-font-family, var(--font-heading));
  font-size: var(--sds-typography-heading-size-base, 24px);
  font-weight: var(--sds-typography-heading-font-weight, 600);
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--color-text-default);
  margin: 0;
  padding-top: 36px;
  padding-bottom: 32px;
  width: 100%;
}

/* ===== Results-page search bar ===== */

.arama-search-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.arama-search-bar-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.arama-search-input-row {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--color-border-brand);
  height: 72px;
  padding: 12px 4px;
  gap: 10px;
}

.arama-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-border-brand);
}

.arama-search-query {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text-default);
  line-height: normal;
}

.arama-search-query::placeholder {
  color: var(--color-text-secondary);
  font-style: italic;
}

.arama-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--sds-color-border-neutral-default);
  border-radius: 32px;
  background: var(--sds-color-background-default-secondary);
  color: var(--sds-color-border-neutral-default);
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.arama-search-btn:hover {
  opacity: 0.9;
}

.arama-search-btn[aria-pressed="true"],
.search-icon-btn[aria-pressed="true"] {
  background: var(--color-bg-brand);
  border: 1px solid var(--color-border-brand);
  color: var(--color-text-on-brand);
}

.arama-search-btn-icon {
  width: 20px;
  height: 20px;
}

.arama-search-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  width: 100%;
}

.arama-result-count {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: normal;
}

.arama-filter-link {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: underline;
  white-space: nowrap;
}

.arama-filter-link:hover {
  color: var(--color-text-default);
}

/* ===== Arama results ===== */

.arama-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 12px;
  width: 100%;
}

.arama-empty {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-top: 24px;
}

/* ===== Search loading ===== */

.arama-loading {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-top: 24px;
}

/* ===== Search Filters ===== */

.search-filters {
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.search-filters--open {
  display: flex;
}

.search-actions > .search-filters {
  grid-column: 1 / 3;
  grid-row: 1;
}

.filter-toggle-btn {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.filter-toggle-btn:hover {
  color: var(--color-text-default);
}

/* ===== Arama controls (group toggle, sort combobox) ===== */

.arama-controls {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  padding-top: 8px;
}

.arama-controls--empty {
  display: none;
}

.sort-combobox-wrap {
  display: inline-flex;
}

.sort-combobox-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-default);
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.sort-combobox-trigger:hover {
  border-color: var(--color-text-secondary);
}

.sort-combobox-trigger:disabled {
  opacity: 0.4;
  cursor: default;
}

.sort-combobox-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sort-combobox-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sort-popover {
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  padding: 0;
  overflow: hidden;
}

.sort-options {
  padding: 4px 0;
}

.sort-option {
  display: block;
  width: 100%;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-default);
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  text-align: left;
  white-space: nowrap;
}

.sort-option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sort-option--active {
  background: var(--color-bg-brand);
  color: var(--color-text-on-brand);
}

.sort-option--active:hover {
  background: var(--color-bg-brand);
  opacity: 0.9;
}

.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-row-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.filter-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.4;
  white-space: nowrap;
}

.filter-date-input {
  background: var(--color-white);
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  padding: 4px 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.filter-date-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
  white-space: nowrap;
}

.filter-clear {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #b3b3b3;
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.filter-clear:hover {
  color: var(--color-text-secondary);
}

/* Type pills */
.type-pill {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.type-pill input {
  display: none;
}

.type-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}

.type-pill--active {
  background: var(--color-bg-brand);
  border-color: var(--color-bg-brand);
  color: var(--color-text-on-brand);
}

.type-pill--active:hover {
  background: var(--color-bg-brand);
  opacity: 0.9;
}

/* Publisher combobox */
.publisher-combobox-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.publisher-combobox-trigger:hover {
  border-color: var(--color-text-secondary);
}

.publisher-combobox-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.publisher-popover {
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  padding: 0;
  max-height: 320px;
  overflow: hidden;
  min-width: 280px;
}

.publisher-popover-search {
  width: 100%;
  padding: 8px;
  border: none;
  border-bottom: 1px solid var(--color-border-default);
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-default);
  background: transparent;
}

.publisher-popover-search::placeholder {
  color: var(--color-text-secondary);
}

.publisher-options {
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
}

.publisher-option {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-default);
  cursor: pointer;
  user-select: none;
}

.publisher-option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.publisher-option input {
  display: none;
}

.publisher-option[hidden] {
  display: none;
}

.publisher-option--checked {
  background: var(--color-bg-brand);
  color: var(--color-text-on-brand);
}

.publisher-option--checked:hover {
  background: var(--color-bg-brand);
  opacity: 0.9;
}

/* Publisher chips */
.publisher-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.publisher-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--color-border-brand);
  border-radius: 4px;
  background: var(--color-bg-brand);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-on-brand);
  line-height: 1.4;
  white-space: nowrap;
}

.publisher-chip-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-on-brand);
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.publisher-chip-x:hover {
  opacity: 0.7;
}

/* ── Kaynaklar page ── */

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn__icon--start {
  margin-right: 6px;
}

.btn__icon--end {
  margin-left: 6px;
}

.kaynaklar-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-bottom: 24px;
}

.kaynaklar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.kaynaklar-heading {
  font-family: var(--sds-typography-heading-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-default);
  margin: 0;
}

.kaynaklar-btn {
  gap: 0;
  padding: 8px;
}

.kaynaklar-description {
  font-family: var(--sds-typography-subheading-font-family);
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-default);
  margin: 0;
  text-align: justify;
}

.kaynaklar-section-heading {
  font-family: var(--sds-typography-subheading-font-family);
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-default);
  margin: 0;
  padding: 12px 0;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px;
}

.source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--color-border-default);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.source-card:hover {
  opacity: 0.8;
}

.source-card__img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.source-card__img {
  height: 30px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.source-card__name {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-default);
  text-align: center;
  word-break: break-word;
  min-width: 100%;
}

.kaynaklar-success {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: 400;
  line-height: 1.4;
  color: var(--sds-color-green-600);
  padding: 12px 16px;
  border: 1px solid var(--sds-color-green-400);
  border-radius: 8px;
  background: var(--sds-color-green-100);
}

.kaynaklar-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#source-url, #source-topics {
  max-width: none;
}

/* ===== Toast Notifications ===== */
.toastify.socioptic-toast {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  background: #fff !important;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 12px 16px;
  line-height: normal;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: unset;
}

.toastify.socioptic-toast::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toastify.socioptic-toast.success::before {
  -webkit-mask-image: url("/images/circle-check.svg");
  mask-image: url("/images/circle-check.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: #22c55e;
}

.toastify.socioptic-toast.error::before {
  -webkit-mask-image: url("/images/circle-x.svg");
  mask-image: url("/images/circle-x.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: #ef4444;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 24px 0;
}

.pagination__nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  background-color: var(--sds-color-background-default-secondary);
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pagination__btn:hover {
  background-color: var(--sds-color-background-default-secondary-hover);
}

.pagination__btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.pagination__status {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
}

.pagination__label {
  color: var(--color-text-default);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.pagination__select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  background-color: var(--color-white);
  color: var(--color-text-default);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.pagination__select:focus-visible {
  outline: 2px solid var(--color-text-brand);
  outline-offset: 2px;
}

.pagination__total {
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.pagination__size {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.pagination__size-label {
  color: var(--color-text-secondary);
}

.pagination__size-options {
  display: flex;
  gap: 3px;
  align-items: center;
}

.pagination__size-option {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: from-font;
  text-decoration-skip-ink: none;
  cursor: pointer;
  padding-right: 2px;
}

.pagination__size-option:hover {
  color: var(--color-text-default);
}

.pagination__size-option--active {
  color: var(--color-text-default);
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

/* ===== Tercihlerim Page ===== */
.gundem-subtitle {
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-default);
  margin: 0;
}

.tercihlerim-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.tercihlerim-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-select {
  appearance: auto;
  cursor: pointer;
}