:root {
  color-scheme: light;
  --bg: #f3f2ef;
  --ink: #1f1c17;
  --accent: #b45a2a;
  --muted: #6e6256;
  font-family: "IBM Plex Serif", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.stack {
  display: grid;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input[type='text'],
textarea,
select {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8cbbd;
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.comment-list,
.similar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

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

.guide-list li {
  display: grid;
  gap: 6px;
}

.guide-content h2,
.guide-content h3,
.guide-content h4 {
  margin-top: 12px;
}

.guide-content ul,
.guide-content ol {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 6px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb span {
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe4d4;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.autocomplete {
  position: relative;
  display: none;
}

.autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 6px;
  z-index: 5;
}

.autocomplete-list li a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
}

.autocomplete-list li a:hover {
  background: #f3e8dd;
}

.comment-item {
  background: #faf6f0;
  border-radius: 12px;
  padding: 16px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ede3d6;
}

.badge-safe {
  background: #d9f1e1;
  color: #1e6b3f;
}

.badge-neutral {
  background: #e8eef5;
  color: #2b4a6b;
}

.badge-spam,
.badge-scam,
.badge-harassment {
  background: #f7dada;
  color: #7a1f1f;
}

.empty-state {
  padding: 16px;
  background: #fff7ef;
  border-radius: 12px;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #1d3f73;
  font-weight: 600;
}

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

.seo-note {
  border-top: 1px dashed #d8cbbd;
  padding-top: 16px;
}

.ad-slot {
  margin: 24px 0;
  padding: 12px;
  min-height: 90px;
  border-radius: 12px;
  background: #f8f3eb;
  max-width: 100%;
  overflow: hidden;
}

.ad-slot--panel {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.ad-slot--wide {
  min-height: 120px;
}

.ad-slot--sticky {
  min-height: 88px;
}

.ad-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ad-placeholder {
  border-radius: 12px;
  border: 1px dashed #d8cbbd;
  background: #fff7ef;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  min-height: 90px;
  display: grid;
  place-items: center;
}

.ad-smartlink {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #7a3d0a;
}

.ad-todo {
  font-size: 12px;
  color: var(--muted);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #efe4d4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.site-header__nav {
  justify-self: center;
}

.site-header__search {
  justify-self: end;
}

.site-footer {
  border-top: 1px solid #efe4d4;
  background: #fff;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.site-logo__img {
  display: block;
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 180px;
}

@media (max-width: 768px) {
  .site-logo__img {
    height: 30px;
    max-height: 30px;
    max-width: 140px;
  }
}

.site-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.header-search {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f7efe3;
  padding: 8px 10px;
  border-radius: 999px;
}

.header-search input {
  border: none;
  background: transparent;
  min-width: 240px;
  font-size: 15px;
  padding: 8px 10px;
}

.header-search input:focus {
  outline: none;
}

.header-search button {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}


.page-main {
  min-width: 0;
}

.page-sidebar {
  position: sticky;
  top: 96px;
}


.hero-card {
  border: 1px solid #efe4d4;
}

.hero-title {
  font-size: clamp(24px, 3vw, 34px);
  margin: 6px 0 0;
}

.hero-meta {
  margin: 0;
}

.hero-lead {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
}

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

.stat-card {
  background: #faf6f0;
  border-radius: 12px;
  padding: 14px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff1d6;
  color: #5f3a1f;
  font-weight: 600;
}

.content-block h2,
.content-block h3 {
  margin: 0 0 8px;
}

.content-block p {
  margin: 0 0 10px;
  line-height: 1.6;
}

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

.faq-list li strong {
  display: block;
  margin-bottom: 4px;
}

.comment-suggestions {
  display: grid;
  gap: 10px;
}

.suggestion-buttons {
  display: grid;
  gap: 8px;
}

.suggestion-buttons button {
  text-align: left;
  background: #f7efe3;
  color: #50391f;
  border: 1px solid #e4d7c5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.sticky-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 16px;
  background: rgba(245, 241, 234, 0.95);
  border-top: 1px solid #efe4d4;
  z-index: 30;
  display: none;
  min-height: 88px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.sticky-ad .ad-slot {
  margin: 0;
}

.sticky-ad__close {
  position: absolute;
  right: 16px;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2d3c4;
  background: #fff;
  color: #6b4c2c;
  font-weight: 700;
  cursor: pointer;
}

.desktop-only {
  display: none;
}

@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
  }

  .header-search {
    justify-content: center;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }


  .sticky-ad {
    display: block;
  }

  main {
    padding-bottom: 160px;
    padding-left: 16px;
    padding-right: 16px;
  }
}


@media (min-width: 1025px) {
  .desktop-only {
    display: block;
  }
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  background: #1f1c17;
  color: #f5f1ea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.consent-content {
  display: grid;
  gap: 12px;
}

.consent-content p {
  margin: 0;
}

.consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.consent-actions button {
  background: #f5f1ea;
  color: #1f1c17;
}

.site-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff1d6;
  color: #5f3a1f;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.02em;
}
