:root {
  --surface: #ffffff;
  --text: #17191c;
  --muted: #6b7280;
  --line: #e2e5e9;
  --accent: #111827;
  --soft: #eef1f4;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .08);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff !important;
}

body {
  font-family: var(--display) !important;
  color: var(--text);
  line-height: 1.5;
}

main,
.hero,
.workspace {
  background: #ffffff !important;
}

button,
input,
select {
  font-family: var(--display) !important;
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.brand-text {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display) !important;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--display) !important;
  font-size: 1rem;
}

/* Hero */
.hero {
  border-bottom: 0;
}

.hero-inner {
  max-width: 1080px;
  margin-inline: auto;
  padding: 94px 0 72px;
  text-align: center;
}

h1 {
  max-width: 1040px;
  margin: 0 auto 42px;
  text-align: center !important;
  font-family: var(--display) !important;
  font-size: clamp(3.2rem, 6.2vw, 5.6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

/* Search */
.search-box {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid #cfd4da;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .06);
  text-align: left;
}

.search-box:focus-within {
  border-color: #8b939e;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, .06);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 21px 24px;
  font-size: 1.14rem;
  background: #ffffff;
  color: var(--text);
}

.search-box input::placeholder {
  color: #777d86;
  opacity: 1;
}

.search-box button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 0 34px;
  font-size: 1.03rem;
}

.quick-searches {
  width: min(1060px, 100%);
  margin: 17px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: .98rem;
  text-align: left;
}

.quick-searches button {
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #353b43;
}

/* Results */
.workspace {
  padding: 36px 0 72px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.query-info {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 3px;
}

.process-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}

.process-filter select {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 9px 34px 9px 11px;
  color: var(--text);
}

.results {
  display: grid;
  gap: 12px;
}

.risk-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 21px 22px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.risk-card:hover {
  transform: translateY(-1px);
  border-color: #c9ced4;
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.risk-id {
  flex: 0 0 auto;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  padding: 5px 8px;
}

.risk-card h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}

.path {
  color: var(--muted);
  font-size: .88rem;
  margin-top: 6px;
}

.risk-card p {
  margin: 13px 0 0;
  color: #484e56;
}

mark {
  background: #fff1a8;
  color: inherit;
  padding: 0 .08em;
  border-radius: 3px;
}

.empty-state {
  text-align: center;
  padding: 72px 20px;
  border: 1px dashed #ccd1d7;
  border-radius: var(--radius);
  background: #ffffff;
}

.empty-state h2 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

/* Dialog */
.risk-dialog {
  width: min(720px, calc(100% - 28px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: visible;
  font-family: var(--display) !important;
}

.risk-dialog::backdrop {
  background: rgba(17, 24, 39, .42);
  backdrop-filter: blur(2px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  font-size: 1.45rem;
  line-height: 1;
}

.dialog-body {
  padding: 34px;
}

.dialog-body h2 {
  margin: 8px 46px 8px 0;
  font-size: 1.7rem;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.dialog-description {
  color: #41474f;
  font-size: 1.05rem;
  margin: 20px 0 26px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-item {
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 12px;
  padding: 12px 14px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tag {
  background: var(--soft);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .84rem;
  color: #444b53;
}

.share-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.source-line {
  margin-bottom: 10px;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.copy-link-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .86rem;
}

.copy-link-button.copied {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .hero-inner {
    padding: 64px 0 52px;
  }

  h1 {
    margin-bottom: 30px;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box button {
    padding: 14px 18px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .process-filter {
    justify-content: space-between;
  }

  .process-filter select {
    flex: 1;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .card-top {
    display: block;
  }

  .risk-id {
    display: inline-block;
    margin-bottom: 9px;
  }

  .dialog-body {
    padding: 26px 20px 22px;
  }

  .share-row {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-link-button {
    width: 100%;
  }
}

/* v1.7 */
.header-inner {
  justify-content: flex-start;
}

.brand-text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclaimer {
  width: min(1060px, 100%);
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  max-width: 900px;
}

@media (max-width: 700px) {
  .disclaimer {
    margin-top: 18px;
    font-size: .82rem;
  }
}


/* v1.8 SEO yardımcı görünümü */
.noscript-message {
  width: min(1060px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}
