/* The public dictionary (sozluk.gurerlabs.com). Its own small sheet, on the
   apps' v2 palette rather than the console's: white page, blue accent, near-
   black text, the system font. Read on phones first: one column, comfortable
   sizes, nothing that needs a script. */
:root {
  --sz-bg: #ffffff;
  --sz-accent: #2f86f6;
  --sz-text: #0e1116;
  --sz-soft: #707983;
  --sz-line: #e7eaee;
  --sz-tint: #f4f7fb;
  --sz-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body.sozluk {
  margin: 0;
  background: var(--sz-bg);
  color: var(--sz-text);
  font-family: var(--sz-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--sz-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--sz-accent); outline-offset: 2px; border-radius: 4px; }

.sz-bar, .sz-main, .sz-foot { width: 100%; max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.sz-bar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sz-line);
}
.sz-brand { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--sz-text); }
.sz-brand:hover { text-decoration: none; color: var(--sz-accent); }
.sz-by { color: var(--sz-soft); font-size: 14px; }

.sz-main { flex: 1; padding-top: 20px; padding-bottom: 40px; }

.sz-title { font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 6px; }
.sz-meta { color: var(--sz-soft); font-size: 14px; margin: 0; }
.sz-author { color: var(--sz-text); font-weight: 600; }
.sz-empty { color: var(--sz-soft); }

/* --- the front page --- */

.sz-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 0 18px;
  scrollbar-width: none;
}
.sz-cats::-webkit-scrollbar { display: none; }
.sz-cat {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sz-tint);
  color: var(--sz-text);
  font-size: 15px;
  white-space: nowrap;
}
.sz-cat:hover { text-decoration: none; background: #e8f1fe; }
.sz-cat.on { background: var(--sz-accent); color: #fff; }

.sz-topics { list-style: none; margin: 10px 0 0; padding: 0; }
.sz-topics li { border-bottom: 1px solid var(--sz-line); }
.sz-topic { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--sz-text); }
.sz-topic:hover { text-decoration: none; }
.sz-topic:hover .sz-topic-title { color: var(--sz-accent); }
.sz-rank { color: var(--sz-soft); font-variant-numeric: tabular-nums; min-width: 2.2em; font-size: 15px; }
.sz-topic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sz-topic-title { font-weight: 600; overflow-wrap: anywhere; }
.sz-topic-tag { color: var(--sz-soft); font-size: 14px; overflow-wrap: anywhere; }
.sz-topic-num { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.sz-count { font-weight: 600; }
.sz-share { color: var(--sz-soft); font-size: 14px; }

/* --- a topic --- */

.sz-topic-head { padding-bottom: 14px; border-bottom: 1px solid var(--sz-line); }
.sz-entries { list-style: none; margin: 0; padding: 0; }
.sz-entry-card { padding: 18px 0; border-bottom: 1px solid var(--sz-line); }
.sz-entry-card h2 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.sz-entry-card h2 a { color: var(--sz-text); }
.sz-entry-card h2 a:hover { color: var(--sz-accent); text-decoration: none; }
.sz-excerpt { margin: 0 0 8px; overflow-wrap: anywhere; }

.sz-pages {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 15px;
}
.sz-pages a:last-child { justify-self: end; }
.sz-page-of { color: var(--sz-soft); font-variant-numeric: tabular-nums; }

/* --- an entry --- */

.sz-kicker { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.sz-article .sz-meta { margin-bottom: 22px; }
.sz-body { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.sz-body p { margin: 0 0 1em; }
.sz-more { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--sz-line); }

/* --- not found --- */

.sz-problem { padding: 40px 0; }

.sz-foot {
  color: var(--sz-soft);
  font-size: 13px;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid var(--sz-line);
}
.sz-foot p { margin: 0 0 4px; }

@media (min-width: 720px) {
  .sz-title { font-size: 34px; }
}
