:root {
  --bg-a: #f4eee6;
  --bg-b: #e6dccf;
  --bg-c: #d7cab9;
  --brand-title-color: #000000;
  --header-background: rgb(255, 255, 255);
  --body-background: radial-gradient(circle at top left, rgba(213, 167, 76), transparent 100%), radial-gradient(circle at 80% 12%, rgba(213, 167, 76), transparent 24%), linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 58%, var(--bg-c) 100%);
  --about-section-background: var(--surface);
  --about-main-background: linear-gradient(150deg, rgba(122, 86, 57, 0.1), rgba(242, 232, 220, 0.96));
  --about-main-border: rgba(122, 86, 57, 0.16);
  --about-highlight-background: rgba(247, 239, 231, 0.96);
  --about-highlight-border: var(--border);
  --about-highlight-icon-background: var(--accent-soft);
  --about-highlight-icon-color: #000000;
  --surface: rgba(248, 241, 233, 0.88);
  --surface-strong: #f2e8dc;
  --surface-muted: #e3d7ca;
  --text: #000000;
  --text-soft: #000000;
  --muted: #000000;
  --border: rgba(94, 73, 56, 0.16);
  --accent: #7a5639;
  --accent-hover: #61432d;
  --accent-soft: rgba(122, 86, 57, 0.14);
  --accent-ghost: rgba(122, 86, 57, 0.08);
  --accent-strong-soft: rgba(122, 86, 57, 0.22);
  --platinum: #d6cdc2;
  --platinum-strong: #c3b4a3;
  --danger: #c83e64;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(73, 52, 37, 0.09);
  --shadow-card: 0 18px 40px rgba(73, 52, 37, 0.13);
  --type-sm: 0.8rem;
  --type-md: 0.9rem;
  --type-lg: clamp(1rem, 1.7vw, 1.2rem);
}

html {
  font-size: 15.5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Noto Sans Georgian", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--body-background);
  line-height: 1.65;
}

body,
body * {
  font-weight: 400 !important;
}

body.modal-open {
  overflow: hidden;
}

body.is-loading main,
body.is-loading .site-footer,
body.is-loading .home-brand-lockup {
  visibility: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.45;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: -110px;
  left: -120px;
  background: rgba(122, 86, 57, 0.28);
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -120px;
  background: rgba(214, 205, 194, 0.42);
}

.orb-3 {
  width: 190px;
  height: 190px;
  top: 40%;
  right: 18%;
  background: rgba(158, 124, 91, 0.18);
}

.topbar {
  width: 100%;
  margin: 0;
  padding-block: 0;
  padding-inline: max(16px, calc((100vw - 1160px) / 2 + 16px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(73, 52, 37, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-anchor: none;
}

.brand-group h1 {
  margin: 0;
  font-size: var(--type-lg);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brand-title-color);
  letter-spacing: 0.04em;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover,
.brand-link:focus-visible {
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-mark-shell {
  width: 64px;
  height: 64px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  flex: 0 0 auto;
}

.home-brand-lockup .brand-mark-shell {
  width: 100px;
  height: 100px;
}

.brand-mark {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: saturate(1.02) contrast(1.01);
}

.brand-group {
  margin-left: 0;
}

.topbar .brand-group,
.topbar .home-brand-lockup {
  display: flex;
  align-items: center;
  height: 100px;
}

.topbar .brand-copy {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topbar .brand-group h1 {
  line-height: 1.05;
}

.topbar .brand-group p {
  line-height: 1;
}

.brand-group p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-sm);
}

.topnav {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.topnav .nav-link {
  color: var(--text);
  font-weight: 600;
  font-size: var(--type-md);
  line-height: 1;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.topnav .nav-link:hover,
.topnav .nav-link:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
  outline: none;
}

.topnav .nav-link.nav-link-featured,
.mobile-nav .nav-link.nav-link-featured {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #6b4710;
  background: linear-gradient(180deg, rgba(243, 217, 134, 0.34) 0%, rgba(224, 184, 93, 0.2) 100%);
  border: 1px solid rgba(145, 101, 20, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 219, 0.36);
}

.topnav .nav-link.nav-link-featured:hover,
.topnav .nav-link.nav-link-featured:focus-visible,
.mobile-nav .nav-link.nav-link-featured:hover,
.mobile-nav .nav-link.nav-link-featured:focus-visible {
  background: linear-gradient(180deg, rgba(243, 217, 134, 0.46) 0%, rgba(224, 184, 93, 0.3) 100%);
  color: #5b3a06;
  border-color: rgba(145, 101, 20, 0.28);
}

.topnav .nav-link.active,
.mobile-nav .nav-link.active {
  color: var(--text);
  background: rgba(122, 86, 57, 0.12);
  font-weight: 600;
}

.topnav .nav-link.nav-link-featured.active,
.mobile-nav .nav-link.nav-link-featured.active {
  color: #5b3a06;
  background: linear-gradient(180deg, #f3d986 0%, #e0b85d 100%);
  border-color: rgba(145, 101, 20, 0.34);
  box-shadow: inset 0 0 0 1px rgba(145, 101, 20, 0.28), 0 8px 18px rgba(176, 131, 40, 0.2);
}


.menu-toggle {
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: var(--text);
  display: inline-grid;
  place-items: center;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.mobile-nav .nav-link {
  color: var(--text);
  font-size: var(--type-md);
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: none;
  text-decoration: none;
}

.mobile-nav.open {
  max-height: 260px;
  padding-bottom: 12px;
}

.container {
  max-width: 1160px;
  margin: 26px auto 70px;
  padding: 0 16px;
  display: grid;
  gap: 28px;
}

.card,
.glass {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.first-screen {
  min-height: clamp(64vh, 76vh, 84vh);
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
  padding: 30px 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 6.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-support {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: var(--type-md);
}

.message-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(122, 86, 57, 0.14), rgba(214, 205, 194, 0.2));
}

.first-message {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  grid-template-columns: 1fr;
  align-items: start;
}

.message-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--text);
  font-size: 1.1rem;
}

.message-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.message-item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  row-gap: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  background: linear-gradient(165deg, rgba(250, 245, 238, 0.96), rgba(242, 234, 224, 0.92));
  box-shadow: 0 4px 16px rgba(73, 52, 37, 0.08);
  justify-items: start;
  text-align: left;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.message-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(73, 52, 37, 0.13);
}

.message-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.message-item .message-published-at {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.message-item h3 {
  margin: 0;
  font-size: var(--type-md);
  line-height: 1.4;
  font-weight: 600;
}

.message-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--type-sm);
  line-height: 1.62;
  text-align: justify;
}

.message-item-action {
  justify-self: stretch;
  align-self: end;
  width: 100%;
  margin-top: 8px;
  font-size: var(--type-sm);
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  padding: 9px 14px;
}

.first-message h3 {
  margin: 0;
  font-size: var(--type-lg);
}

.first-message p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--type-md);
  text-align: justify;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: var(--type-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  border: 1px solid var(--accent-strong-soft);
  background: rgba(248, 241, 233, 0.76);
}

.section-card {
  padding: 28px;
  display: grid;
  row-gap: 8px;
}

.section-muted {
  background: linear-gradient(180deg, rgba(227, 215, 202, 0.88), rgba(242, 232, 220, 0.9));
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-md);
}

.section-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(248, 241, 233, 0.92);
  color: var(--text);
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.toggle-chip:hover {
  transform: translateY(-1px);
}

.toggle-chip.is-active {
  background: rgba(122, 86, 57, 0.18);
  border-color: rgba(122, 86, 57, 0.3);
}

.section-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(248, 241, 233, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.page-button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.page-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.about-paragraph {
  margin: 0;
  display: block;
  text-align: justify;
}

.about-paragraph-marker {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.about-paragraph-text {
  color: var(--text-soft);
  font-size: var(--type-sm);
  line-height: 1.62;
  text-wrap: pretty;
}

.about-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  padding: 16px;
}

.about-dialog[hidden] {
  display: none;
}

.about-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(34, 24, 16, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.about-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: min(88vh, 920px);
  margin: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(94, 73, 56, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(247, 239, 231, 0.98), rgba(242, 232, 220, 0.98));
  box-shadow: 0 28px 60px rgba(32, 21, 13, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.about-dialog.is-open .about-dialog-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-dialog-header,
.about-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
}

.about-dialog-header {
  border-bottom: 1px solid rgba(94, 73, 56, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.about-dialog-copy {
  display: grid;
  row-gap: 3px;
}

.about-dialog-eyebrow {
  color: var(--accent);
  font-size: var(--type-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-dialog-subtitle {
  color: var(--muted);
  font-size: var(--type-md);
  line-height: 1.5;
}

.about-dialog-subtitle[hidden] {
  display: none;
}

.about-dialog-body {
  overflow: auto;
  padding: 18px 22px 8px;
}

.about-dialog-text {
  display: grid;
  gap: 0;
}

.about-dialog-text .about-paragraph {
  display: block;
}

.about-dialog-text .about-paragraph-text {
  font-size: var(--type-md);
  line-height: 1.78;
}

.about-dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(94, 73, 56, 0.1);
  background: rgba(250, 244, 238, 0.8);
}

#auctionsSection,
#messageSection,
#contactSection {
  scroll-margin-top: 88px;
}

#introSection {
  scroll-margin-top: 88px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

#auctionsSection .section-head {
  justify-content: flex-start;
}

#auctionSectionTitle {
  text-align: left;
  font-size: var(--type-lg);
  line-height: 1.2;
  font-weight: 600;
}

#messageSection .section-head {
  justify-content: flex-start;
}

#messageSectionTitle,
#contactTitle {
  text-align: left;
  font-size: var(--type-lg);
  line-height: 1.2;
  font-weight: 600;
}

#contactSection {
  justify-items: stretch;
  gap: 12px;
}

#contactTitle {
  justify-self: center;
  text-align: center;
}

#auctionsSection > .section-subtitle {
  text-align: left;
}

h2 {
  margin: 0;
  font-size: var(--type-lg);
  line-height: 1.25;
}

p {
  margin: 0;
}

.section-head p {
  color: var(--muted);
  font-size: var(--type-sm);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.about-highlight {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--about-highlight-border);
  background: var(--about-highlight-background);
  box-shadow: 0 8px 20px rgba(73, 52, 37, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.about-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(73, 52, 37, 0.12);
}

.about-highlight span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 8px;
  color: var(--about-highlight-icon-color);
  background: var(--about-highlight-icon-background);
}

.about-highlight p {
  margin: 0;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.5;
}

.auction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.auction-empty-note {
  grid-column: 1 / -1;
}

.auction-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(250, 245, 238, 0.99), rgba(242, 234, 224, 0.98));
  box-shadow: 0 4px 16px rgba(73, 52, 37, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(73, 52, 37, 0.15);
}

.auction-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.auction-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto;
  row-gap: 10px;
  padding: 16px 18px 18px;
  justify-items: start;
  text-align: left;
  flex: 1;
}

.auction-status {
  display: inline-block;
  justify-self: start;
  color: var(--accent);
  font-size: var(--type-sm);
  letter-spacing: 0.01em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.auction-title {
  margin: 0;
  font-size: var(--type-lg);
  line-height: 1.35;
  color: var(--text);
}

.auction-price {
  font-size: var(--type-md);
  font-weight: 700;
  color: var(--accent);
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.auction-card-body .link {
  justify-self: stretch;
  align-self: end;
  width: 100%;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
}

.auction-card-body p {
  color: var(--text-soft);
  text-align: justify;
  font-size: var(--type-sm);
  line-height: 1.6;
}

.auction-schedule {
  font-size: var(--type-sm);
  color: var(--text-soft);
  width: 100%;
  white-space: pre-line;
  line-height: 1.6;
  padding: 8px 12px;
  background: var(--accent-ghost);
  border-radius: 10px;
}

.contact-layout {
  text-align: center;
  gap: 18px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(247, 239, 231, 0.96);
}

.spam-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contactForm textarea {
  min-height: 170px;
}

.contact-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  width: 100%;
  justify-self: stretch;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(247, 239, 231, 0.96);
  box-shadow: 0 6px 16px rgba(73, 52, 37, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(73, 52, 37, 0.1);
}

.contact-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h3 {
  margin: 0;
  font-size: var(--type-md);
}

.contact-item p {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: var(--type-sm);
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 9px 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--type-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn.primary,
.link {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(122, 86, 57, 0.24);
}

.btn-primary,
.btn.primary {
  color: #ffffff;
}

.btn-primary:hover,
.btn.primary:hover,
.link:hover {
  background: var(--accent-hover);
}

.btn-outline,
.btn.subtle {
  background: rgba(248, 241, 233, 0.88);
  border-color: var(--border);
  color: var(--text);
}

.btn.danger {
  background: rgba(200, 62, 100, 0.12);
  border-color: rgba(200, 62, 100, 0.26);
  color: var(--text);
}

.btn.danger:hover {
  background: rgba(200, 62, 100, 0.22);
}

.link {
  display: inline-flex;
  width: fit-content;
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 16px 28px;
  text-align: center;
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text);
}

#footerSiteName {
  font-weight: 400;
}

.footer-logo-shell {
  width: 44px;
  height: 44px;
}

.footer-logo {
  opacity: 0.92;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-sm);
}

.footer-link {
  justify-self: center;
  color: var(--accent);
  font-size: var(--type-md);
  font-weight: 500;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

.document-page {
  min-height: 100vh;
}

.document-shell {
  max-width: 1160px;
  margin: 26px auto 70px;
  padding: 0 16px;
}

.document-card {
  display: grid;
  row-gap: 8px;
  padding: 24px;
}

.document-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-toolbar h1 {
  margin: 0;
  font-size: var(--type-lg);
  line-height: 1.2;
  font-weight: 600;
}

.document-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-url-bar {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: var(--type-sm);
  color: var(--muted);
  word-break: break-all;
  font-family: monospace;
}

.pdf-pages-container {
  display: grid;
  gap: 16px;
}

.pdf-page-wrapper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.pdf-page-wrapper canvas,
.pdf-page-wrapper .pdf-page-img {
  display: block;
  width: 100%;
  height: auto;
}

.print-doc-title {
  display: none;
}

.pdf-page-label {
  position: absolute;
  bottom: 8px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
}

.document-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-sm);
}

.content-shell {
  max-width: 1160px;
  margin: 26px auto 70px;
  padding: 0 16px;
}

.content-card {
  display: grid;
  row-gap: 7px;
  padding: 28px;
}

.content-card .section-head {
  justify-content: center;
}

.content-title {
  text-align: center;
  font-size: var(--type-lg);
  line-height: 1.2;
  font-weight: 600;
}

.content-subtitle {
  text-align: center;
}

.content-text {
  display: grid;
  gap: 4px;
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
.topnav a:focus-visible {
  outline: 2px solid rgba(122, 86, 57, 0.45);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 6px;
  font-size: var(--type-md);
}

input,
textarea,
select {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(252, 247, 242, 0.96);
  color: var(--text);
  font: inherit;
  padding: 10px;
}

textarea {
  resize: vertical;
}

.hint,
.save-status,
.empty-note {
  color: var(--muted);
}

.admin-layout {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
}

.admin-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-form,
.admin-auctions {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.admin-form-header {
  display: grid;
  gap: 4px;
  padding-bottom: 4px;
}

.admin-form-header h2 {
  font-size: var(--type-lg);
  font-weight: 600;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(251, 246, 240, 0.9);
  overflow: hidden;
}

.admin-panel[open] {
  background: rgba(250, 244, 238, 0.98);
  box-shadow: 0 10px 24px rgba(73, 52, 37, 0.08);
}

.admin-panel-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
}

.admin-panel-summary::-webkit-details-marker {
  display: none;
}

.admin-panel-copy {
  display: grid;
  gap: 4px;
}

.admin-panel-copy h2 {
  font-size: var(--type-md);
  font-weight: 600;
}

.admin-panel-copy p {
  color: var(--muted);
  font-size: var(--type-sm);
}

.admin-panel-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122, 86, 57, 0.12);
  color: var(--text);
  font-size: var(--type-sm);
  font-weight: 600;
}

.admin-panel-body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(94, 73, 56, 0.1);
}

.admin-panel-actions {
  align-items: center;
}

.admin-panel-actions .hint {
  max-width: 680px;
}

.admin-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(122, 86, 57, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-filter-chip:hover {
  border-color: rgba(122, 86, 57, 0.32);
  color: var(--text);
}

.admin-filter-chip.is-active {
  background: rgba(122, 86, 57, 0.14);
  border-color: rgba(122, 86, 57, 0.3);
  color: var(--text);
}

.admin-empty-state {
  padding: 14px 16px;
  border: 1px dashed rgba(122, 86, 57, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  text-align: center;
}

.admin-empty-state[hidden] {
  display: none;
}

.message-document-tools {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(122, 86, 57, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}

.message-document-picker {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.message-document-picker input[type="file"] {
  width: 100%;
}

.message-document-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.message-document-link {
  font-size: var(--type-md);
}

.message-document-status {
  margin: 0;
}

.admin-inline-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.8fr);
}

.date-picker-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.date-picker-field input[type="date"] {
  min-width: 0;
}

.date-picker-trigger {
  white-space: nowrap;
}

.sticky-actions {
  position: sticky;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(247, 239, 231, 0.95);
}

.auction-editor {
  display: grid;
  gap: 12px;
}

.auction-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(250, 244, 238, 0.96);
}

.auction-row[hidden] {
  display: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(100%, 470px);
  padding: 24px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.login-card h1 {
  margin: 0;
}

.login-logo-shell {
  width: 110px;
  height: 110px;
}

@media (min-width: 700px) {
  .message-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  }
}

@media (max-width: 699px) {
  .topbar {
    padding-inline: 16px;
  }

  .brand-group h1 {
    font-size: 1.15rem;
  }

  .brand-lockup {
    gap: 10px;
  }

  .home-brand-lockup .brand-mark-shell {
    width: 100px;
    height: 100px;
  }

  .footer-logo-shell {
    width: 38px;
    height: 38px;
  }

  .brand-group p {
    font-size: 0.8rem;
  }

  .container {
    margin: 18px auto 56px;
    gap: 18px;
  }

  .section-card {
    padding: 20px;
    row-gap: 6px;
  }

  .first-screen {
    min-height: 56vh;
    padding: 18px 0;
  }

  .message-card {
    padding: 16px;
  }

  .about-dialog-footer .btn {
    width: 100%;
  }

  .about-dialog {
    padding: 0;
    align-items: end;
  }

  .about-dialog-panel {
    width: 100%;
    max-height: min(92vh, 100vh);
    border-radius: 24px 24px 0 0;
  }

  .about-dialog-header,
  .about-dialog-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .about-dialog-body {
    padding: 16px 16px 6px;
  }

  .auction-card img {
    height: 190px;
  }

  .contact-form {
    padding: 16px;
  }

  .admin-panel-summary {
    padding: 14px 16px;
  }

  .admin-panel-body {
    padding: 0 16px 16px;
  }
}

@media (min-width: 1024px) {
  .topbar {
    padding: 0 18px;
  }

  .topnav {
    display: inline-flex;
    transform: none;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .brand-group h1 {
    font-size: 1.55rem;
  }

  .home-brand-lockup .brand-mark-shell {
    width: 100px;
    height: 100px;
  }

  .first-screen {
    min-height: 78vh;
    gap: 30px;
  }

  .message-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .brand-group {
    margin-left: 180px;
  }

  .topnav {
    transform: translateX(-180px);
  }
}

/* ── Print styles for document-viewer page ── */
@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body.document-page {
    background: #fff !important;
    min-height: auto !important;
  }

  .bg-orb {
    display: none !important;
  }

  /* Compact header */
  .document-page .topbar {
    position: static !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
    box-shadow: none !important;
    padding: 3px 12px !important;
    min-height: 0 !important;
  }

  .document-page .topbar > .btn {
    display: none !important;
  }

  .document-page .brand-mark-shell {
    width: 28px !important;
    height: 28px !important;
  }

  .document-page .brand-mark {
    width: 28px !important;
    height: 28px !important;
  }

  .document-page .brand-copy h1 {
    font-size: 11px !important;
    color: #000 !important;
  }

  .print-doc-title {
    display: inline !important;
    font-size: 10px !important;
    color: #555 !important;
  }

  .document-toolbar {
    display: none !important;
  }

  .document-shell {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .document-card {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    row-gap: 0 !important;
  }

  .document-note {
    display: none !important;
  }

  .document-url-bar {
    background: #f8f8f8 !important;
    border: 1px solid #ddd !important;
    font-size: 8px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin-top: 4px;
  }

  .pdf-pages-container {
    gap: 0 !important;
  }

  .pdf-page-wrapper {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: transparent !important;
    margin: 0 !important;
    position: relative !important;
  }

  .pdf-page-wrapper .pdf-page-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .pdf-page-label {
    display: none !important;
  }
}
