/* Legacy page styles, restyled page by page in components.css / pages.css (design PRs 2-6).
   Tokens, reset, body, links, .wrap, .sr-only, skip link and the htmx request state live in
   tokens.css / base.css; header and footer live in components.css. The aliases below map the
   old warm-palette names onto the zinc tokens so unrestyled pages stay consistent. */
:root {
  --ink: var(--fg);
  --ink-soft: var(--muted-fg);
  --paper: var(--bg);
  --paper-raised: var(--bg);
  --line: var(--border);
  --accent: var(--primary);
  --accent-deep: var(--primary);
  --radius: var(--r-sm);
}
main a { text-decoration: underline; } /* legacy: restyled pages drop this (underline only in .prose) */

.lang-suggest-banner :focus-visible { outline-color: #fff; }
.lang-suggest-banner {
  background: var(--accent);
  color: #fff;
}
.lang-suggest-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-size: 0.9rem;
}
.lang-suggest-banner p { margin: 0; }
.lang-suggest-banner a { color: #fff; text-decoration: underline; }
.lang-suggest-dismiss { white-space: nowrap; }


.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--accent-deep); }

.link-button {
  background: none;
  border: none;
  color: var(--accent-deep);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

section.wrap { padding-top: 2rem; padding-bottom: 2rem; }

.category-list { list-style: none; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.category-list a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.pagination-link {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
}
.pagination-current { color: var(--ink-soft); font-size: 0.9rem; }
.price { font-weight: 600; }

.product-detail-info form { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.product-detail-info label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }

.small { font-size: 0.85rem; }
.status-tag {
  display: inline-block;
  background: var(--line);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
}
.confirm { color: var(--accent-deep); }
.error { color: #a3312a; }
.notice { color: #7a5e1a; background: #fbf3d9; border: 1px solid #e6d38a; border-radius: var(--radius); padding: 0.6rem 0.8rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.cart-line-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 600px) { .cart-table { min-width: 540px; } }

.checkout form { display: flex; flex-direction: column; gap: 0.9rem; max-width: 420px; }
.checkout label { display: flex; flex-direction: column; gap: 0.3rem; }
.checkout input { padding: 0.5rem; border: 1px solid var(--input-border); border-radius: var(--radius); font-size: 1rem; }
.delivery-method { border: 1px solid #d8d0c4; padding: .5rem 1rem; margin: 1rem 0; }
.delivery-method label { display: block; }
.order-summary { margin-bottom: 1.5rem; }
.order-summary li { display: flex; align-items: center; gap: 0.6rem; }


.account-list { list-style: none; padding: 0; }
.account-list > li { padding: .75rem 0; border-bottom: 1px solid #e6e0d6; }
.inline-form { display: inline; }

.reserve { margin-top: 1.5rem; }
.reserve summary { cursor: pointer; font-weight: 600; }

.ask { margin-top: 1rem; }
.ask summary { cursor: pointer; font-weight: 600; }
.ask textarea { width: 100%; }

/* Static info pages (pages.go, wp-content-strangler.md step 5): Om os, FAQ,
   For forhandlere, Find vej. Body typography reuses .article-body. */
.static-page article { max-width: 680px; }
.static-page .page-intro { font-size: 1.05rem; margin-top: -0.25rem; }
.page-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin: 1.5rem 0; }
.page-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--radius); }

/* Materialeguider (spec wp-content-strangler.md's pilot section) — index
   grid + detail article. Reuses --ink/--ink-soft/--paper-raised/--line/
   --radius rather than introducing new tokens, same approach product-card/
   product-detail above already take. */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.guide-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.guide-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.guide-card-body { padding: 0.9rem; }
.guide-card-body h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }

.breadcrumb-nav { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb-nav a { color: var(--ink-soft); }

.guide-detail article { max-width: 680px; }
.guide-summary { font-size: 1.05rem; margin-top: -0.25rem; }
.guide-facts { list-style: none; margin: 0 0 1rem; padding: 0.6rem 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; background: var(--paper-raised); border-radius: var(--radius); border: 1px solid var(--line); font-size: 0.95rem; }
.guide-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
}
.article-body h2 { margin-top: 2rem; font-size: 1.25rem; }
.article-body h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.article-body p { line-height: 1.65; }

.guide-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.guide-related h2 { margin-bottom: 1rem; font-size: 1.15rem; }

/* Kontakt + Borydning og dødsbo (contact.go) */
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; max-width: 520px; }
.contact-form label { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-form input, .contact-form textarea { padding: 0.5rem; border: 1px solid var(--input-border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Ordbog (glossary.go, wp-content-strangler.md step 3). */
.glossary article { max-width: 680px; }
.glossary-cats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.glossary-cats a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid #e6e0d6; border-radius: 999px; text-decoration: none; }
.glossary-cats a[aria-current="page"] { background: #2b241b; color: #fff; }
.glossary-list { list-style: none; padding: 0; }
.glossary-list li { padding: 0.5rem 0; border-bottom: 1px solid #e6e0d6; }
/* Møbelarkiv (arkiv.go, templates/arkiv.html) */
.arkiv-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1rem; margin: 1rem 0; }
.arkiv-facts dt { color: var(--ink-soft); }
.arkiv-facts dd { margin: 0; overflow-wrap: anywhere; }
.arkiv-sources { margin-top: 2rem; font-size: 0.9rem; }
.arkiv-sources ul { padding-left: 1.1rem; }
.guide-detail figure { margin: 1rem 0; }
.guide-detail figcaption { font-size: 0.8rem; }

