/* A20.14 — simple navigation, complete category browsing and authentic social icons. */
.primary-nav { gap:clamp(9px,1.15vw,20px); }
.primary-nav a { font-size:clamp(11px,.94vw,13px); }
.story-categories {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:clamp(9px,1vw,15px);
}
.story-category { min-width:0; padding:16px 10px; transition:transform .2s ease,box-shadow .2s ease; }
.story-category:hover { transform:translateY(-4px); box-shadow:inset 0 0 0 3px #fffaf0,0 12px 25px #6c45233a; }
.story-category strong { font-size:clamp(14px,1.17vw,18px); line-height:1.15; }
.story-category span { font-size:11px; line-height:1.25; }
.story-category img { max-width:100%; }
/* Social sites occupy one quiet, compact ribbon — original logos without duplicate text. */
.header-social-row { border-bottom:1px solid #d7c29d; }
.social-ribbon-inner { display:flex; align-items:center; justify-content:flex-end; min-height:44px; }
.header-social-row .reserve-social {
  display:flex; flex-direction:row; align-items:center; gap:9px;
  border:none; padding:3px 0; margin:0;
}
.header-social-row .reserve-social-title {
  font-size:10px; line-height:1; font-weight:750; letter-spacing:.08em;
  text-transform:none; width:auto; margin-right:8px; color:#795c4a;
}
.header-social-row .social-link {
  display:grid; place-items:center; flex:none;
  width:32px; height:32px; min-height:0; margin:0; padding:5px;
  border-radius:50%; background:#fffaf0;
  border:1px solid #e1d1b0; box-shadow:0 2px 5px #76533b15;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}
.header-social-row .social-link:hover {
  background:white; transform:translateY(-2px);
  box-shadow:0 5px 12px #76533b2c;
}
.header-social-row .social-link:focus-visible { outline:3px solid #bd7953; outline-offset:2px; }
.social-mark { display:block; width:20px; height:20px; object-fit:contain; }
.social-mark-vk { filter:invert(36%) sepia(90%) saturate(1636%) hue-rotate(191deg) brightness(96%); }
.social-mark-tg { filter:invert(55%) sepia(56%) saturate(1008%) hue-rotate(161deg) brightness(98%); }
.social-mark-ok { filter:invert(55%) sepia(87%) saturate(1862%) hue-rotate(351deg) brightness(102%); }
.social-mark-max { width:23px; height:23px; }
/* Dedicated, readable catalogue. */
#categories .page-intro { margin-bottom:27px; }
.category-filter-pills { margin:0 0 22px; padding-bottom:9px; }
.category-filter-pills .filter-pill { gap:7px; padding-right:13px; white-space:nowrap; }
.category-filter-pills .filter-count {
  display:inline-grid; place-items:center; margin-left:3px; min-width:24px;
  height:22px; padding:0 5px; border-radius:16px;
  font-size:10px; line-height:1; font-variant-numeric:tabular-nums;
  background:#e8dfce; color:#765a39;
}
.category-filter-pills .filter-pill.active .filter-count { background:#ffffff45; color:inherit; }
.category-browser-toolbar {
  display:flex; flex-wrap:wrap; justify-content:space-between;
  align-items:end; gap:16px; padding:18px 22px;
  border:1px solid #d3b57f; border-radius:19px;
  background:linear-gradient(105deg,#fff9ea,#f8e8ca);
  margin-bottom:22px;
}
.category-browser-toolbar h2 { font-family:var(--story-display,Georgia),serif; font-size:clamp(24px,2.5vw,34px); margin:0 0 4px; }
.category-browser-toolbar p { margin:0; color:#75624d; font-size:12px; }
.category-search-label { display:grid; gap:6px; min-width:min(360px,100%); color:#765b49; font-size:11px; font-weight:750; }
.category-search-label input {
  width:100%; padding:11px 13px; border:1px solid #cbb58b; border-radius:12px;
  background:#fffcf4; color:#342b29; font:inherit; font-size:13px;
}
.category-search-label input:focus-visible { outline:3px solid #ce9d6470; border-color:#ac7943; }
#moreCategoryEvents { margin:24px auto 34px; display:block; }
#moreCategoryEvents[hidden] { display:none; }
html[data-theme="dark"] .header-social-row { background:linear-gradient(90deg,#342b28,#27343a); border-color:#5f4a3a; }
html[data-theme="dark"] .header-social-row .reserve-social-title { color:#e6c6a0; }
html[data-theme="dark"] .header-social-row .social-link { background:#f6f0df; border-color:#846c56; }
html[data-theme="dark"] .category-browser-toolbar { background:linear-gradient(105deg,#263a3e,#3a3930); border-color:#6d6245; }
html[data-theme="dark"] .category-browser-toolbar h2 { color:#e9f2e9; }
html[data-theme="dark"] .category-browser-toolbar p,.category-search-label { color:#c6d1c6; }
html[data-theme="dark"] .category-search-label input { background:#1b2d31; border-color:#5c706a; color:#edf8f0; }
html[data-theme="dark"] .category-filter-pills .filter-count { background:#40555a; color:#d2ebe0; }
html[data-theme="dark"] .category-filter-pills .filter-pill.active .filter-count { background:#ffffff35; color:#fff; }
@media(max-width:1200px) {
  .story-categories { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .story-category strong { font-size:18px; }
}
@media(max-width:700px) {
  .story-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .story-category { padding:13px 9px; }
  .story-category strong { font-size:16px; }
  .header-social-row .reserve-social { gap:7px; }
  .header-social-row .reserve-social-title { font-size:9px; margin-right:3px; }
  .header-social-row .social-link { width:30px; height:30px; }
  .category-browser-toolbar { padding:15px; }
  .category-search-label { min-width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  .story-category,.header-social-row .social-link { transition:none; }
}
