/* ==========================================================================
   RecordCrate design system
   1. Tokens         6. Cards & covers       11. Cart & checkout
   2. Base           7. Tables               12. Orders & progress
   3. Layout         8. Forms                13. Profile
   4. Navigation     9. Buttons & badges     14. Responsive
   5. Messages      10. Panels & detail
   ========================================================================== */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
  --ink: #14171c;
  --ink-2: #353b45;
  --muted: #6b7280;
  --faint: #9aa1ad;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --surface: #ffffff;
  --page: #f6f7f9;
  --accent: #e8590c;
  --accent-hover: #c2410c;
  --accent-soft: #fff3eb;
  --link: #b83f08;
  --nav-bg: #14171c;
  --nav-text: #c9ced6;
  --success: #15803d;
  --success-bg: #ecfdf3;
  --warning: #92400e;
  --warning-bg: #fef6e0;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --info: #1d4ed8;
  --info-bg: #eff6ff;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgb(16 24 40 / 0.05);
  --shadow-sm: 0 1px 3px rgb(16 24 40 / 0.08), 0 1px 2px rgb(16 24 40 / 0.04);
  --shadow-md: 0 8px 24px rgb(16 24 40 / 0.08);
  --focus: 0 0 0 3px rgb(232 89 12 / 0.35);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* 2. Base ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 0.85em; }

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

.subtle { color: var(--muted); }
.small { font-size: 0.85rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.4em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.empty-state {
  color: var(--muted);
  padding: 8px 0;
}

/* 3. Layout ----------------------------------------------------------------- */
#content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 8px 0 24px;
}

.page-header h1 {
  margin-bottom: 0.15em;
}

.result-count {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.breadcrumb span[aria-hidden] {
  margin: 0 4px;
  opacity: 0.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 30%, var(--ink) 31% 100%);
  display: inline-block;
}

/* 4. Navigation ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

#navbar {
  background: var(--nav-bg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04), 0 2px 12px rgb(0 0 0 / 0.12);
}

.nav-inner {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 60px;
}

#navbar li {
  margin: 0;
  padding: 0;
}

#navbar a {
  display: block;
  color: var(--nav-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

#navbar a:hover {
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  text-decoration: none;
}

#navbar a[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}

#navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding-left: 0;
  margin-right: 12px;
}

#navbar .brand::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 26%, transparent 27%),
    repeating-radial-gradient(circle, #2b3038 0 2px, #1a1d23 3px 4px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

#navbar .brand:hover {
  background: transparent;
}

#navbar .nav-end {
  margin-left: auto;
}

#navbar .nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

#navbar .nav-cta:hover {
  background: var(--accent-hover);
}

#navbar li form {
  margin: 0;
}

#navbar .nav-logout {
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--nav-text);
  cursor: pointer;
}

#navbar .nav-logout:hover {
  background: rgb(255 255 255 / 0.07);
  color: #fff;
}

/* Profile section tabs (shared by all profile-related pages) */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  position: relative;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0;
}

.tab:hover {
  color: var(--ink);
  text-decoration: none;
}

.tab.is-active {
  color: var(--ink);
  font-weight: 600;
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* 5. Messages --------------------------------------------------------------- */
.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.message {
  padding: 12px 16px 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid currentColor;
  background: var(--info-bg);
  color: var(--info);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.message-success { background: var(--success-bg); color: var(--success); }
.message-error { background: var(--danger-bg); color: var(--danger); }
.message-warning { background: var(--warning-bg); color: var(--warning); }

/* 6. Cards & covers --------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 300px at 85% -20%, rgb(232 89 12 / 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.3em;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 640px;
}

.hero-search input {
  flex: 1 1 280px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.listing-card-link {
  text-decoration: none;
}

.listing-card-link:hover {
  text-decoration: none;
}

.listing-card .card-body {
  padding: 14px 16px 4px;
  flex: 1;
}

.listing-card h2 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.3;
}

.listing-card h2 a {
  color: var(--ink);
}

.listing-card h2 a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.listing-card p {
  margin: 0 0 4px;
}

.listing-card .artist,
.listing-card .meta {
  font-size: 0.86rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card .price {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 8px;
}

.listing-card .card-actions {
  padding: 12px 16px 16px;
  margin-top: 8px;
}

/* Generated "sleeve" artwork, so cards have a visual anchor without images */
.cover {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 72% 42%, #2a2f37 0 22%, transparent 22.5%),
    radial-gradient(circle at 72% 42%, transparent 0 34%, rgb(255 255 255 / 0.04) 34.5% 35%, transparent 35.5%),
    linear-gradient(140deg, #1d2128 0%, #3a414c 100%);
  color: #fff;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.06) 50%, transparent 60%);
  pointer-events: none;
}

.cover span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(255 255 255 / 0.9);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.35);
  z-index: 1;
}

.cover-lg span {
  font-size: 3rem;
  left: 22px;
  bottom: 18px;
}

.cover-link {
  display: block;
}

.cover-lg {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* 7. Tables ----------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #fafbfc;
}

tbody tr:hover td {
  background: #fcfcfd;
}

tbody tr:last-child td {
  border-bottom: none;
}

table a {
  font-weight: 500;
}

table form {
  margin: 0;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.total-row td {
  font-weight: 700;
  background: #fafbfc;
}

/* 8. Forms ------------------------------------------------------------------ */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  font: inherit;
  font-size: 0.93rem;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toolbar input[type="search"] {
  width: 280px;
}

.clear-link {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 4px;
}

.stacked-form p {
  margin-bottom: 16px;
}

.stacked-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  width: 100%;
}

.stacked-form .helptext {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.stacked-form ul.errorlist,
.checkout-form ul.errorlist,
.field-error {
  color: var(--danger);
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 0.85rem;
}

.form-card {
  max-width: 480px;
  margin: 24px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-card .subtle {
  margin-bottom: 24px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-footer {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.inline-form label {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.inline-form .field-error {
  flex-basis: 100%;
}

.checkout-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.checkout-form .field {
  flex: 1 1 300px;
  display: grid;
  gap: 6px;
}

.checkout-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.checkout-form input {
  width: 100%;
}

/* 9. Buttons & badges ------------------------------------------------------- */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

button:hover,
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  background: #f3f4f6;
  border-color: var(--faint);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 8px 10px;
}

.button-ghost:hover {
  background: var(--danger-bg);
  border-color: transparent;
  color: var(--danger);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-actions form {
  margin: 0;
  width: 100%;
}

.card-actions form button,
.card-actions > .button,
.card-actions > button {
  width: 100%;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f0f2f5;
  color: var(--ink-2);
  white-space: nowrap;
}

.status-cart { background: #f0f2f5; color: var(--ink-2); }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-shipped { background: var(--info-bg); color: var(--info); }
.status-arrived { background: var(--success-bg); color: var(--success); }

/* 10. Panels & detail ------------------------------------------------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.panel > h2:first-child,
.panel-inline > h2:first-child {
  margin-bottom: 16px;
}

.panel-inline {
  margin-top: 32px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 40px;
  align-items: start;
}

.detail-layout .cover {
  position: sticky;
  top: 90px;
}

.detail-main header h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.2em;
}

.artist-line {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.artist-line a {
  color: var(--ink-2);
  font-weight: 500;
}

.price-lg {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0;
}

.detail-main .card-actions {
  margin: 8px 0 24px;
}

.detail-main .card-actions form {
  width: auto;
}

.detail-main .card-actions button {
  min-width: 180px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
  margin: 8px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-right: 16px;
}

.meta-list div:last-child {
  border-bottom: none;
}

.meta-list dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.meta-list dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.meta-stack {
  margin: 0;
}

.meta-stack div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-stack div:last-child {
  border-bottom: none;
}

.meta-stack dt {
  font-size: 0.8rem;
  color: var(--muted);
}

.meta-stack dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.empty-card {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.empty-card h2 {
  margin-bottom: 4px;
}

.empty-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* 11. Cart & checkout ------------------------------------------------------- */
.cart-block {
  padding: 24px;
}

.cart-block-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.cart-block-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cart-block-header .eyebrow {
  margin-bottom: 2px;
}

.cart-block-total {
  margin: 0;
  color: var(--muted);
}

.cart-block-total strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.cart-block .table-wrap {
  box-shadow: none;
}

/* 12. Orders & progress ----------------------------------------------------- */
.orders-table a {
  font-weight: 600;
}

.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 28px;
  max-width: 560px;
}

.step {
  position: relative;
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 500;
}

.step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}

.step:first-child::before {
  display: none;
}

.step.is-done::before {
  background: var(--accent);
}

.step-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
}

.step.is-done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.step.is-current .step-label,
.step.is-done .step-label {
  color: var(--ink);
  font-weight: 600;
}

.step.is-current .step-dot {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* 13. Profile --------------------------------------------------------------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.profile-header h1 {
  margin: 0;
}

.profile-header p {
  margin: 0;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--ink), #4b5563);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.stat:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
  text-decoration: none;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* 14. Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .detail-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout .cover {
    position: static;
    max-width: 260px;
  }
}

@media (max-width: 720px) {
  #content {
    padding: 20px 16px 40px;
  }

  .hero {
    padding: 32px 22px;
  }

  .nav-inner {
    padding: 8px 12px;
    flex-wrap: wrap;
    min-height: 0;
    gap: 2px;
  }

  #navbar .brand {
    margin-right: auto;
  }

  #navbar .nav-end {
    margin-left: 0;
  }

  #navbar a {
    padding: 8px 10px;
  }

  .toolbar input[type="search"] {
    width: 100%;
  }

  .form-card {
    padding: 24px;
  }

  th,
  td {
    padding: 10px 12px;
  }

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

  .listing-card .card-body {
    padding: 10px 12px 2px;
  }

  .listing-card .card-actions {
    padding: 10px 12px 12px;
  }

  .listing-card .card-actions button,
  .listing-card .card-actions .button {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .cover span {
    font-size: 1.2rem;
    left: 10px;
    bottom: 8px;
  }

  .profile-header {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
