@import url("fonts.css");

:root {
  --olive: #3a4630;
  --olive-deep: #2f3a28;
  --olive-pattern: #35402c;
  --ink: #111;
  --muted: #8a8a8a;
  --line: #d8d8ce;
  --yellow: #f5c518;
  --blue: #1a73e8;
  --green: #1f8a4c;
  --theme-light: #fff;
  --theme-base: #fff;
  --bg: #fff;
  --radius: 999px;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.is-variant-modal-open {
  overflow: hidden;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1000px, calc(100% - 40px)); margin: 0 auto; }

/* Header: modeled on logo.wine top nav */
.site-header-wrap {
  position: relative;
  z-index: 2147483648;
  max-width: 100%;
}
.site-header {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 30px;
  min-height: 52px;
  min-width: 0;
  background: var(--theme-light);
  border-bottom: 1px solid rgba(55, 71, 79, 0.15);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}
.header-main-link {
  display: inline-block;
  padding: 4px 0;
  flex: none;
}
.header-main-link a { text-decoration: none; }
.header-logo-mark {
  padding: 0;
  margin: 0;
  width: 100px;
  height: 40px;
  display: block;
  opacity: 0.98;
}
.header-logo-img {
  width: 100px;
  height: 40px;
  display: block;
  object-fit: contain;
}
.header-collections {
  color: rgba(32, 48, 60, 0.9);
  margin-left: 32px;
  font-size: 17px;
  font-family: inherit;
  position: relative;
  flex: none;
}
.header-collections-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.header-collections-trigger svg {
  vertical-align: middle;
}
.header-collections nav {
  display: none;
  z-index: 3000;
  position: absolute;
  left: -22px;
  top: 100%;
  padding-top: 12px;
}
.header-collections:hover nav,
.header-collections:focus-within nav,
.header-collections.is-open nav {
  display: block;
}
.header-collections nav ul {
  list-style: none;
  margin: 0;
  background: var(--theme-light);
  border: 1px solid rgba(207, 216, 220, 0.3);
  padding: 4px 0;
  border-radius: 6px;
  min-width: 200px;
  max-width: min(90vw, 280px);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.header-collections nav li a {
  padding: 4px 22px;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: color 0.15s;
  font-size: 16px;
  font-family: inherit;
}
.header-collections nav li a:hover {
  color: #0064b7;
}
.header-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: max(0px, calc(50vw - 674px));
}
.header-search-inner {
  max-width: 700px;
  width: 100%;
  min-width: 0;
  padding: 8px 0 8px 32px;
}
.header-search-form {
  display: flex;
  width: 100%;
  min-width: 0;
  position: relative;
  font-family: inherit;
}
.header-search-form label {
  width: 100%;
  position: relative;
  display: inline-flex;
  align-items: center;
}
.header-search-form svg {
  position: absolute;
  left: 14px;
  opacity: 0.5;
  transform: translateY(-50%);
  top: 50%;
  pointer-events: none;
  fill: currentColor;
}
.header-search-form input {
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.87);
  padding: 8px 12px 7px 46px;
  min-height: 39px;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: #eee;
  outline: none;
  appearance: none;
}
.header-search-form input::-webkit-search-decoration,
.header-search-form input::-webkit-search-cancel-button,
.header-search-form input::-webkit-search-results-button,
.header-search-form input::-webkit-search-results-decoration {
  display: none;
}
.header-search-form input::placeholder {
  color: rgba(0, 0, 0, 0.54);
}
.header-search-form input:hover {
  border-color: #cacac0;
}
.header-search-form:focus-within input,
.header-search-form input:focus {
  background: #fff;
  border-color: transparent;
  box-shadow:
    0 3px 5px -1px rgba(0, 0, 0, 0.2),
    0 6px 10px 0 rgba(0, 0, 0, 0.14),
    0 1px 18px 0 rgba(0, 0, 0, 0.12);
}
.header-search-mobile {
  display: none;
  width: 50px;
  height: 42px;
  opacity: 0.6;
  background: #eee;
  border: 1px solid rgb(219 219 207);
  border-radius: 21px;
  padding: 7px 11px;
  flex: none;
  color: #414141;
  border: 0;
  cursor: pointer;
}
.header-admin-quick-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex: none;
  z-index: 10;
}
.header-admin-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: inherit;
}
.header-admin-pill-edit {
  background: #ffffff;
  color: #18181b;
  border: 1px solid #d4d4d8;
}
.header-admin-pill-edit:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
  color: #09090b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.header-admin-pill-add {
  background: #18181b;
  color: #ffffff;
  border: 1px solid #18181b;
}
.header-admin-pill-add:hover {
  background: #27272a;
  border-color: #27272a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
@media (max-width: 640px) {
  .header-admin-pill-btn span {
    display: none;
  }
  .header-admin-pill-btn {
    padding: 6px 8px;
  }
}
.header-toolbar {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: none;
  position: relative;
  z-index: 2147483649;
}
.header-menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: none;
  color: #414141;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-menu-icon {
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
}
.header-menu-icon-open {
  width: 17.6px;
  height: 17.6px;
}
.header-menu-icon-close {
  display: none;
}
.header-menu-btn.is-open .header-menu-icon-open {
  display: none;
}
.header-menu-btn.is-open .header-menu-icon-close {
  display: block;
}
body.is-showing-sidebar .header-menu-btn {
  position: fixed;
  top: 6px;
  right: 16px;
  z-index: 2147483650;
  background: var(--theme-light);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.header-search-mobile svg {
  display: block;
  fill: currentColor;
  pointer-events: none;
}
.header-search-mobile-panel {
  display: none;
  padding: 12px 20px 16px;
  background: var(--theme-light);
  border-bottom: 1px solid rgba(55, 71, 79, 0.15);
}
.header-search-mobile-panel.is-open {
  display: block;
}
.header-search-form-mobile {
  width: 100%;
}
.header-search-form-mobile label {
  width: 100%;
}
.header-sidebar {
  background: var(--theme-light);
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  left: auto;
  transform: translate3d(100%, 0, 0);
  z-index: 2147483647;
  max-width: 80vw;
  width: 280px;
  transition: transform 0.35s cubic-bezier(0.24, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}
.header-sidebar.is-open {
  transform: translate3d(0, 0, 0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.header-sidebar-top {
  display: none;
  align-items: center;
  justify-content: flex-end;
  min-height: 56px;
  padding: 0 12px 0 20px;
  flex: none;
  border-bottom: 1px solid rgba(55, 71, 79, 0.1);
}
.header-sidebar-close-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #414141;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.header-sidebar-close-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
}
.header-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.header-sidebar nav ul {
  list-style: none;
  margin: 0;
  background: var(--theme-light);
  padding: 4px 0;
  display: flex;
  flex-wrap: wrap;
}
.header-sidebar nav li {
  width: 100%;
}
.header-sidebar nav li a {
  padding: 8px 22px;
  color: inherit;
  text-decoration: none;
  display: block;
  font-size: 17px;
  font-family: inherit;
  transition: color 0.15s;
}
.header-sidebar nav li a:hover {
  color: #0064b7;
}
.header-sidebar-backdrop {
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.4);
  bottom: 0;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  visibility: hidden;
  z-index: 2147483646;
}
.header-sidebar-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}
body.is-showing-sidebar {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 72px 0 84px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #fff;
  background-image: url('../images/front.svg');
  background-repeat: repeat;
  background-size: 100px 50px;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-brand {
  margin: 0 auto;
  padding: 0;
  width: min(280px, 72vw);
  line-height: 0;
}
.hero-brand-logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero-tagline {
  margin: 10px 0 28px;
  font-size: 1.15rem;
  color: #333;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  margin: 0 auto 18px;
  background: #fff;
  color: #333;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.hero-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  font-size: 1rem;
}
.btn-explore {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 8px 22px;
}

/* Grid */
.logo-grid-section {
  padding: 48px 0 64px;
  background: #fff;
  border-top: 1px solid rgba(207, 216, 220, 0.3);
}
.page-section {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 48px 0 64px;
  background: #FAFAFA;
}
h1,
.page-title,
.category-section .page-title,
.prose h1,
.prose-wrap h1 {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 500;
  line-height: 35px;
  color: #1a1f36;
}
.lead { color: #444; margin: -12px 0 28px; max-width: 720px; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
}
.logo-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 10 / 9;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(207, 216, 220, 0.3);
  border-radius: 12px;
  background-color: #fff;
  color: rgba(74, 77, 81, 0.85);
  text-decoration: none;
  text-align: center;
  transition:
    color 100ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-card:hover {
  color: #4a4d51;
  border-color: rgba(180, 190, 196, 0.55);
}
.logo-card-art {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  transition: background-color 0.2s ease;
}
.logo-card-art img {
  width: 75%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 20px;
  box-sizing: border-box;
  user-select: none;
}
.logo-card-name {
  flex-shrink: 0;
  margin: 0;
  padding: 15px 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  border-top: 1px solid rgba(207, 216, 220, 0.3);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #666;
  font-weight: 700;
}
.grid-footer { margin-top: 36px; text-align: center; }
.text-link { color: var(--olive); }

/* Detail */
.logo-detail-section .page-title {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 500;
  line-height: 35px;
  color: #1a1f36;
}
.logo-lead {
  margin: 0 0 36px;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.6;
  color: #5f6368;
}
.logo-lead strong {
  font-weight: 700;
  color: #3c4043;
}
.logo-detail-section .logo-download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: 40px;
}
.logo-detail-section .logo-preview-box {
  width: 100%;
  max-height: 260px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(207, 216, 220, 0.3);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 36px);
  background: #fff;
  justify-self: center;
  min-width: 0;
  user-select: none;
}
.logo-detail-section .logo-preview-box img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-detail-section .logo-actions {
  display: block;
  width: 100%;
  justify-self: center;
  align-self: center;
}
.logo-detail-section .logo-actions-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.logo-detail-section .logo-actions .terms-note {
  margin: 25px 0 0;
  width: 100%;
  max-width: none;
  text-align: center;
}
.btn-outline {
  display: block;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  border: 1px solid;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  background: #fff;
  transition: background-color 100ms ease, color 100ms ease;
}
.btn-outline:hover {
  color: #fff;
}
.btn-svg {
  border-color: #0064b7;
  color: #0064b7;
}
.btn-svg:hover {
  background: #0064b7;
}
.btn-png {
  border-color: #34a853;
  color: #34a853;
}
.btn-png:hover {
  background: #34a853;
}
.terms-note {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #80868b;
}
.terms-note a {
  color: inherit;
  text-decoration: underline;
}
.logo-website {
  margin: 0 0 28px;
  font-size: 0.92rem;
  color: #5f6368;
}
.logo-website a {
  color: var(--blue);
}
@media (min-width: 901px) {
  .logo-detail-section .logo-preview-box {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
  .logo-detail-section .logo-actions {
    width: 110%;
  }
}
.variant-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 36px;
}
.variant-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid rgba(207, 216, 220, 0.3);
  border-radius: 12px;
  padding: 0;
  text-align: center;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.variant-card:hover {
  border-color: rgba(180, 190, 196, 0.55);
}
.variant-card-title {
  flex-shrink: 0;
  margin: 0;
  padding: 15px 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #1a1f36;
  border-bottom: 1px solid rgba(207, 216, 220, 0.3);
}
.variant-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 96px;
  padding: 20px;
}
.variant-card-art img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.variant-card-desc {
  flex-shrink: 0;
  margin: 0;
  padding: 15px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #5f6368;
  text-align: left;
  border-top: 1px solid rgba(207, 216, 220, 0.3);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.variant-dark-bg {
  background: #282828;
  color: #fff;
}
.variant-dark-bg .variant-card-title {
  color: #fff;
  border-bottom: 1px solid rgb(61 62 63 / 30%);
}
.variant-dark-bg .variant-card-desc {
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgb(61 62 63 / 30%);
}
.variant-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 20px;
}
.variant-modal[hidden] {
  display: none;
}
.variant-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.variant-modal-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: min(920px, 100%);
  height: min(300px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.variant-modal-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 50px;
  background: #fff;
}
.variant-modal-preview.is-dark {
  background: #282828;
}
.variant-modal-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.variant-modal-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 32px 28px;
  background: #fff;
}
.variant-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #5f6368;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
.variant-modal-close:hover {
  color: #1a1f36;
}
.variant-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 0;
}
.variant-modal-panel .terms-note {
  margin-top: 25px;
  text-align: left;
}
.logo-description {
  color: #5f6368;
  max-width: 820px;
  margin: 0 0 32px;
  font-size: 0.98rem;
  line-height: 1.7;
}
.color-swatches-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1f36;
}
.color-swatches {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 52px;
}
.swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.swatch:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}
.swatch:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
.swatch.is-copied {
  box-shadow: 0 0 0 2px #1a73e8;
  transform: scale(1.06);
}
.swatch-check {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(17, 17, 17, 0.42);
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}
.swatch.is-copied .swatch-check {
  opacity: 1;
  transform: scale(1);
}
.swatch-code {
  font-size: 0.78rem;
  line-height: 1.2;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  color: #5f6368;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.color-swatches-section {
  margin: 0 0 24px;
}

/* Collections / pages */
.collections-list { display: grid; gap: 10px; }
.collection-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
}
.collection-count { color: var(--muted); }
.prose-wrap { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: #333; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.page-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 50%;
  color: #666;
}
.page-num.is-current { border: 1px solid #222; color: #111; }
.page-next { text-decoration: none; color: #444; }

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: #333;
  color: rgba(255, 255, 255, 0.88);
  padding: 56px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.3fr 1.3fr;
  gap: 40px;
}
.footer-brand {
  margin-bottom: 18px;
  line-height: 0;
}
.footer-brand a {
  display: inline-block;
  text-decoration: none;
}
.footer-brand-logo {
  width: 100px;
  height: 40px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; color: #fff; }
.footer-right { font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.88); }
.footer-right a { color: #fff; }

.flash-wrap { padding-top: 12px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; }
.flash-ok { background: #e8f7ee; color: #146c2e; }
.flash-err { background: #fdecec; color: #8a1f1f; }
.empty-state { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 40px 0; }

/* 404 error page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.error-page-inner {
  width: min(560px, 100%);
  text-align: center;
}
.error-code {
  margin: 0 0 8px;
  font-size: clamp(72px, 16vw, 120px);
  line-height: 1;
  font-weight: 500;
  color: rgba(26, 31, 54, 0.12);
}
.error-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 500;
  color: #1a1f36;
}
.error-lead {
  margin: 0 0 28px;
  color: #5f6368;
  line-height: 1.6;
}
.error-search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.error-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(207, 216, 220, 0.8);
  border-radius: 999px;
  font: inherit;
  background: #fff;
}
.error-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: #1a73e8;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.screen-reader-text {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .logo-grid {
    gap: 16px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .variant-row { gap: 16px; }
  .logo-detail-section .logo-actions { width: 100%; justify-self: stretch; }
  .logo-detail-section .logo-preview-box {
    max-width: 420px;
    max-height: 300px;
    min-height: 280px;
    height: auto;
    margin: 0 auto;
    width: 100%;
  }
  .site-header {
    padding: 0 20px;
    gap: 16px;
    min-height: 56px;
  }
  .header-collections { display: none; }
  .header-toolbar { display: flex; }
  .header-search-wrap {
    padding-left: 0;
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-search-inner {
    padding-left: 0;
    max-width: none;
  }
  .header-sidebar { width: min(100vw, 360px); max-width: 92vw; }
  .header-sidebar-top { display: flex; }
  .header-sidebar nav li { width: 50%; }
}
@media (max-width: 700px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .variant-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .logo-grid-section { padding: 32px 0 48px; }
  .page-section { padding: 32px 0 48px; }
  .logo-detail-section .logo-download-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .logo-detail-section .logo-preview-box {
    width: 100vw;
    max-width: 100vw;
    height: 350px;
    max-height: 350px;
    min-height: 350px;
    padding: 10%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    justify-self: stretch;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .logo-detail-section .logo-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
  .logo-detail-section .logo-actions-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    justify-content: center;
    max-width: none;
    width: 100%;
  }
  .logo-detail-section .logo-actions-buttons .btn-outline {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    max-width: 280px;
  }
}
@media (max-width: 768px) {
  .variant-modal {
    padding: 16px;
    align-items: center;
  }
  .variant-modal-dialog {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  .variant-modal-preview {
    flex-shrink: 0;
    height: min(220px, 38vh);
    min-height: 180px;
    padding: 40px 48px 32px;
  }
  .variant-modal-panel {
    flex-shrink: 0;
    padding: 24px 20px 28px;
  }
  .variant-modal-actions {
    max-width: none;
  }
  .variant-modal-panel .terms-note {
    text-align: center;
  }
}
@media (max-width: 500px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .variant-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .variant-modal {
    padding: 12px;
  }
  .variant-modal-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 10px;
  }
  .variant-modal-preview {
    height: min(200px, 34vh);
    min-height: 160px;
    padding: 36px 40px 28px;
  }
  .variant-modal-panel {
    padding: 20px 16px 24px;
  }
  .variant-modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
  .logo-detail-section .logo-actions-buttons {
    flex-direction: column;
  }
  .header-main-link {
    transform: scale(0.92);
    transform-origin: 15% 60%;
    padding: 0;
    flex: none;
  }
  .header-search-wrap { display: none; }
  .header-search-mobile { display: flex; align-items: center; justify-content: center; }
  .header-toolbar { gap: 18px; }
}
@media (max-width: 374px) {
  .header-sidebar nav li { width: 100%; }
}
@media (max-width: 520px) {
  .logo-grid { gap: 10px; }
  .variant-row { gap: 10px; }
  .logo-card-art img { padding: 10px; }
  .logo-card-name { font-size: 13px; padding: 15px 10px; }
}
