/* Temaer: inspirationssiden og pop-up'en i skrive-boksen */
body[data-ui="composer"] .page-bg-wrap:has(.tema-page) { background: #fff; }
body:has(.tema-page) { background: #fff; }
.tema-page { max-width: 1040px; margin: 0 auto; padding: 72px 20px 96px; }
.tema-page .tema-head { text-align: center; margin-bottom: 40px; }
.tema-kicker { margin: 0 0 14px; font-family: var(--sans); font-size: .85rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.tema-page .tema-tabs .c-chip {
  padding: 10px 20px; border-radius: 999px; font-family: var(--sans); font-size: .95rem; font-weight: 600;
  background: #fff; border: 1px solid var(--border); color: var(--ink); text-transform: none; letter-spacing: 0;
}
.tema-page .tema-tabs .c-chip.is-on { background: #F1F5EC; border-color: var(--accent); color: var(--ink); }
.tema-page .tema-head h1 {
  margin: 0 0 14px; font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ink);
}
.tema-page .tema-head p:not(.tema-kicker) { color: var(--ink-soft); margin: 0 auto; max-width: 520px; line-height: 1.55; }

.tema-top { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 36px; }
.tema-tabs { justify-content: center; }
.tema-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tema-search {
  font: inherit; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; color: var(--ink); max-width: 320px; width: 100%;
}
.tema-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.tema-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.tema-tom { grid-column: 1 / -1; color: var(--ink-soft); text-align: center; padding: 30px 0; }
.tema-card {
  appearance: none; font: inherit; cursor: pointer; text-align: left; padding: 0;
  position: relative; display: block; border: 0; border-radius: 20px; overflow: hidden;
  background: #2a2119; color: #fff; aspect-ratio: 4 / 5; isolation: isolate;
  box-shadow: 0 10px 24px rgba(40, 30, 20, .16);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tema-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(40, 30, 20, .24); }
.tema-card:active { transform: scale(.985); }
.tema-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tema-pic {
  position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 22%;
  background: linear-gradient(160deg, #8A9A7E, #4F6347);
}
.tema-ikon { font-size: 4rem; line-height: 1; }
.tema-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
/* Hvilket produkt kortet er (1 figur, par, buste, kæledyr) */
.tema-produkt {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .78rem; font-weight: 600; letter-spacing: .01em;
}
/* "Populær": kortet i øverste højre hjørne (også på inspirationskarrusellen og den store visning) */
.tema-pop {
  position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .01em;
}
.tema-pop-stor { top: 18px; right: 64px; }
/* Glasfeltet nederst, som på bloggens kort */
.tema-glas {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 20px; background: linear-gradient(180deg, rgba(60, 45, 32, .35), rgba(38, 28, 20, .72));
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
}
.tema-navn { font-weight: 600; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }
.tema-link { font-size: .9rem; font-weight: 500; }
.tema-link::after { content: " →"; display: inline-block; transition: transform .2s; }
.tema-card:hover .tema-link::after { transform: translateX(4px); }

/* Pop-up */
.tema-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(18, 25, 15, .5);
}
.tema-modal-box {
  background: var(--bg); border-radius: 22px; width: min(960px, 100%); max-height: min(88vh, 900px);
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.tema-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 8px; }
.tema-modal-head h2 { margin: 0; font-size: 1.25rem; }
.tema-close { appearance: none; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0 6px; }
.tema-modal-body { overflow-y: auto; padding: 8px 22px 22px; }
body.tema-lock { overflow: hidden; }

.tema-ask { padding: 32px 28px 22px; gap: 10px; width: min(480px, 100%); background: #fff; }
.tema-ask h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.7rem; letter-spacing: -.02em; }
.tema-ask-sub { margin: 0 0 10px; color: var(--ink-soft); }
.tema-ask-btn {
  appearance: none; font: inherit; cursor: pointer; text-align: left; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.tema-ask-btn:hover { border-color: var(--accent); background: #F4F7F0; transform: translateY(-1px); }
.tema-ask-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tema-ask-tekst { display: flex; flex-direction: column; gap: 4px; }
.tema-ask-tekst strong { font-size: 1.02rem; font-weight: 600; }
.tema-ask-tekst span { font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }
.tema-ask-pil {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; transition: transform .2s;
}
.tema-ask-btn:hover .tema-ask-pil { transform: translateX(3px); }
.tema-ask-cancel { appearance: none; border: 0; background: none; cursor: pointer; color: var(--ink-soft); font: inherit; padding: 10px; margin-top: 4px; }
.tema-ask-cancel:hover { color: var(--ink); }

/* Stor visning af et eksempel: hele billedet, og kun en grøn knap "Brug skabelon" nederst */
.tema-stor { position: relative; width: auto; max-width: 100%; max-height: none; background: transparent; overflow: visible; border-radius: 0; box-shadow: none; }
.tema-stor-img { display: block; width: auto; height: auto; max-width: min(100%, 92vw); max-height: 86vh; border-radius: 14px; background: #CFCBC2; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.tema-modal.tema-modal-stor { align-items: center; padding: 16px; }
.tema-stor-glas { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; pointer-events: none; }
.tema-stor-brug { pointer-events: auto; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.tema-stor-luk { position: absolute; top: 10px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .9); border-radius: 50%; width: 38px; height: 38px; padding: 0; }
.c-chip-more, .c-chip-more:hover { background: var(--go); border: 1px solid var(--go); color: #000; font-weight: 700; }
.c-chip-more:hover { filter: brightness(.95); }

/* Kom ind i skrive-boksen fra et tema, før der er et billede */
.composer.tema-open .composer-more { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.composer.tema-open .composer-more-inner { overflow: visible; }

@media (max-width: 560px) {
  .tema-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .tema-navn { font-size: 1.05rem; }
  .tema-modal { padding: 0; align-items: end; }
  .tema-modal-box { border-radius: 22px 22px 0 0; max-height: 92vh; }
}
.tema-modal-sub { margin: 0; padding: 0 22px 4px; color: var(--ink-soft); font-size: .9rem; }

/* Stor grøn knap i topbaren, lige til venstre for konto-ikonet */
.tema-cta { flex: none; display: inline-flex; align-items: center; height: 52px; padding: 0 36px; border-radius: 6px; background: #46e04b; color: #000; font-weight: 800; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; margin-right: -20px; transition: transform .2s, filter .2s; }
.tema-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
@media (max-width: 720px) { .tema-cta { height: 42px; padding: 0 20px; font-size: 14px; margin-right: -6px; } }