/* jule-tema.css
   Lokal juleudgave af madanmark.dk.
   Aktiv kun når <html> har klassen .jule-tema (sættes af jule-tema.js
   til og med 26. december 2026 kl. 23:59 dansk tid, eller med ?jul=1).
*/

/* ----- Palette: dybere grangrøn, varm snehvid, dæmpet guld ----- */
html.jule-tema {
  --bg: #faf7f2;
  --bg-soft: #faf7f2;
  --bg-muted: #f3ede2;
  --bg-band: #f3ede2;
  --card: #fffdf9;
  --text: #1b3b2f;
  --text-muted: #3d5349;
  --accent: #1b3b2f;
  --accent-hover: #152e26;
  --time: #8a3f18;
  --badge-accent: #7a5418;
  --icon-bg: #e8dfd0;
  --border: #e4d8c4;
  --shadow: 0 4px 24px rgba(27, 59, 47, 0.07);
  --jule-gold: #c59643;
  --jule-gold-deep: #a9792b;
  --jule-pine: #1b3b2f;
  --jule-pine-mid: #23473a;
  --jule-cream: #faf7f2;
  --jule-hero-text: #fffdf9;
  --jule-hero-muted: #f3ede2;
}

/* Header: varm creme og en diskret guldkant */
html.jule-tema header {
  background: var(--bg-soft);
  border-bottom-color: rgba(197, 150, 67, 0.38);
}

html.jule-tema .btn {
  background: var(--jule-pine);
  box-shadow: 0 0 0 1px rgba(197, 150, 67, 0.5), 0 4px 14px rgba(27, 59, 47, 0.16);
}

html.jule-tema .btn:hover {
  background: var(--jule-pine-mid);
}

html.jule-tema .btn-ghost {
  background: var(--card);
  box-shadow: none;
  border-color: rgba(197, 150, 67, 0.4);
}

html.jule-tema .btn-outline {
  border-color: var(--jule-pine);
}

/* ----- Hero: stjernehimmel og lanterne ved stien, mørk scrim, hvid tekst ----- */
html.jule-tema .home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36rem;
  padding: 5rem 1.5rem 4.5rem;
  background-color: #0c1624;
  background-image:
    radial-gradient(ellipse 85% 75% at 50% 42%, rgba(8, 16, 28, 0.62) 0%, rgba(8, 16, 28, 0.32) 58%, rgba(8, 16, 28, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 14, 26, 0.5) 0%, rgba(8, 14, 26, 0.22) 48%, rgba(10, 16, 28, 0.38) 100%),
    url("assets/img/jule-hero-2.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 76%;
  background-repeat: no-repeat;
}

html.jule-tema .home-hero-inner {
  position: relative;
  z-index: 2;
}

html.jule-tema .jule-sne {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

html.jule-tema .home-hero h1 {
  color: var(--jule-hero-text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

html.jule-tema .home-hero .lead,
html.jule-tema .home-hero .oenske-em {
  color: var(--jule-hero-muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

html.jule-tema .home-hero .badge {
  background: rgba(250, 247, 242, 0.12);
  color: #faf7f2;
  border: 1px solid rgba(197, 150, 67, 0.5);
  letter-spacing: 0.12em;
}

html.jule-tema .home-hero .btn:not(.btn-ghost) {
  box-shadow: 0 0 0 1.5px var(--jule-gold), 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.jule-tema .home-hero .btn-ghost {
  background: rgba(250, 247, 242, 0.12);
  color: var(--jule-hero-text) !important;
  border: 1px solid rgba(250, 247, 242, 0.58);
  box-shadow: none;
}

html.jule-tema .home-hero .btn-ghost:hover {
  background: rgba(250, 247, 242, 0.22);
}

@media (max-width: 640px) {
  html.jule-tema .home-hero {
    align-items: flex-start;
    min-height: 0;
    padding: 2.75rem 1.2rem 8rem;
    /* Crop toward the right so the lantern stays in frame on the narrow viewport. */
    background-position: center, center, 82% 50%;
  }

  html.jule-tema .home-hero h1 {
    font-size: clamp(2rem, 9vw, 2.45rem);
    margin-bottom: 0.75rem;
  }

  html.jule-tema .home-hero .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  html.jule-tema .home-hero .hero-cta-row {
    margin-top: 1.25rem;
  }

  html.jule-tema .home-hero .badge {
    margin-bottom: 0.9rem;
  }
}

/* ----- Sektionsskillere: fin guldstreg med stjerne ----- */
html.jule-tema .section-divider {
  width: min(360px, 78vw);
  max-width: 360px;
  height: 22px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 22' fill='none' preserveAspectRatio='xMidYMid meet'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='11' x2='360' y2='11' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23c59643' stop-opacity='0'/%3E%3Cstop offset='0.18' stop-color='%23c59643' stop-opacity='0.7'/%3E%3Cstop offset='0.42' stop-color='%23c59643' stop-opacity='0.85'/%3E%3Cstop offset='0.58' stop-color='%23c59643' stop-opacity='0.85'/%3E%3Cstop offset='0.82' stop-color='%23c59643' stop-opacity='0.7'/%3E%3Cstop offset='1' stop-color='%23c59643' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 11H150' stroke='url(%23g)' stroke-width='1.15' stroke-linecap='round'/%3E%3Cpath d='M210 11H348' stroke='url(%23g)' stroke-width='1.15' stroke-linecap='round'/%3E%3Cpath d='M180 3.2l1.55 4.35 4.6.18-3.6 2.85 1.25 4.45L180 12.7l-3.8 2.33 1.25-4.45-3.6-2.85 4.6-.18L180 3.2z' fill='%23c59643'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 22px;
}

/* ----- Mødebånd: lidt guld-kant, stadig hvid tekst på grangrøn ----- */
html.jule-tema .home-meeting-band {
  background: var(--jule-pine);
  box-shadow: inset 0 1px 0 rgba(197, 150, 67, 0.28), inset 0 -1px 0 rgba(197, 150, 67, 0.2);
}

html.jule-tema .home-meeting-band :focus-visible {
  outline-color: #faf7f2;
}

/* ----- Footer: varm, med lille grankvist og stjerner ----- */
html.jule-tema .home-sindsro {
  padding-bottom: 1.75rem;
}

html.jule-tema footer {
  background: var(--bg-muted);
  border-top: 1px solid rgba(197, 150, 67, 0.38);
  position: relative;
  padding-top: 2.4rem;
}

html.jule-tema footer::before {
  content: "";
  display: block;
  width: 220px;
  height: 32px;
  margin: 0 auto 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 32' fill='none'%3E%3Cg stroke='%2323473a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 16h62'/%3E%3Cpath d='M42 16l-6.5-6.2M50 16l-7.5-6.6M58 16l-7-5.8M66 16l-5.5-4.6'/%3E%3Cpath d='M42 16l-6.5 6.2M50 16l-7.5 6.6M58 16l-7 5.8M66 16l-5.5 4.6'/%3E%3C/g%3E%3Cg stroke='%2323473a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M192 16h-62'/%3E%3Cpath d='M178 16l6.5-6.2M170 16l7.5-6.6M162 16l7-5.8M154 16l5.5-4.6'/%3E%3Cpath d='M178 16l6.5 6.2M170 16l7.5 6.6M162 16l7 5.8M154 16l5.5 4.6'/%3E%3C/g%3E%3Cpath d='M110 5.2l1.35 3.85 4.05.16-3.2 2.5 1.1 3.9L110 13.4l-3.3 2.21 1.1-3.9-3.2-2.5 4.05-.16L110 5.2z' fill='%23c59643'/%3E%3Cpath d='M20 13.4l.55 1.55 1.65.07-1.28 1 .45 1.55L20 16.7l-1.37.92.45-1.55-1.28-1 1.65-.07.55-1.55z' fill='%23c59643'/%3E%3Cpath d='M200 13.4l.55 1.55 1.65.07-1.28 1 .45 1.55L200 16.7l-1.37.92.45-1.55-1.28-1 1.65-.07.55-1.55z' fill='%23c59643'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 220px 32px;
  pointer-events: none;
}

html.jule-tema .footer-bottom {
  border-top-color: rgba(197, 150, 67, 0.28);
}

/* Kort og anonymitet: rolig guldkant i stedet for kold grå */
html.jule-tema .anonymitet-card,
html.jule-tema .home-paaroerende-card,
html.jule-tema .assess-card {
  border-color: rgba(197, 150, 67, 0.28);
}

/* ----- Peter's jule-logo lockup i navbar (kun jule-tema; ingen layout-højdeændring) ----- */
html.jule-tema header .logo {
  gap: 0;
}

html.jule-tema header .logo .logo-icon--img,
html.jule-tema header .logo .logo-text {
  display: none;
}

html.jule-tema header .logo .logo-jule {
  display: block;
  height: 40px;
  width: auto;
  max-height: 40px;
}

@media (max-width: 880px) {
  html.jule-tema header .logo .logo-jule {
    height: 36px;
    max-height: 36px;
  }
}

/* ----- Dagens tekst: vinterbånd + pergamentkort (kun jule-tema; ingen ekstra tekstboks) ----- */
html.jule-tema .page-dagens-tekst .page-header {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0;
  /* Compact band (~200–240px desktop) so date bar + card top stay above the fold. */
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--jule-hero-text);
  background-color: #0e261c;
  background-image:
    linear-gradient(rgba(14, 38, 28, 0.62), rgba(14, 38, 28, 0.72)),
    url("assets/img/jule-hero-2.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* Text/pill above snow — never apply to canvas (absolute overlay). */
html.jule-tema .page-dagens-tekst .page-header > *:not(.jule-sne) {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

html.jule-tema .page-dagens-tekst .page-header .jule-sne {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
  max-width: none;
  margin: 0;
}

html.jule-tema .page-dagens-tekst .page-header .badge {
  display: inline-block;
  background: rgba(250, 247, 242, 0.12);
  color: #faf7f2;
  border: 1px solid rgba(197, 150, 67, 0.5);
}

html.jule-tema .page-dagens-tekst .page-header h1 {
  color: var(--jule-hero-text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.65rem;
}

html.jule-tema .page-dagens-tekst .page-header .lead {
  color: var(--jule-hero-muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

html.jule-tema .page-dagens-tekst .dt-card {
  position: relative;
  background:
    linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
  border: 1px solid rgba(197, 150, 67, 0.42);
  border-top: 3px solid var(--jule-gold);
  box-shadow:
    0 1px 0 rgba(255, 253, 248, 0.9) inset,
    0 10px 28px rgba(27, 59, 47, 0.08);
  color: #1b3b2f;
}

html.jule-tema .page-dagens-tekst .dt-card::before {
  content: "";
  display: block;
  width: 148px;
  height: 28px;
  margin: 0 auto 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 148 28' fill='none'%3E%3Cg stroke='%2323473a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 15h42'/%3E%3Cpath d='M28 15l-5.2-5M34 15l-6-5.4M40 15l-5.5-4.7M46 15l-4.4-3.7'/%3E%3Cpath d='M28 15l-5.2 5M34 15l-6 5.4M40 15l-5.5 4.7M46 15l-4.4 3.7'/%3E%3C/g%3E%3Cg stroke='%2323473a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M130 15H88'/%3E%3Cpath d='M120 15l5.2-5M114 15l6-5.4M108 15l5.5-4.7M102 15l4.4-3.7'/%3E%3Cpath d='M120 15l5.2 5M114 15l6 5.4M108 15l5.5 4.7M102 15l4.4 3.7'/%3E%3C/g%3E%3Cpath d='M74 4.2l1.2 3.4 3.55.14-2.8 2.2.95 3.4L74 11.4l-2.9 1.94.95-3.4-2.8-2.2 3.55-.14L74 4.2z' fill='%23c59643'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 148px 28px;
  pointer-events: none;
}

html.jule-tema .page-dagens-tekst .dt-title,
html.jule-tema .page-dagens-tekst .dt-quote p,
html.jule-tema .page-dagens-tekst .dt-body,
html.jule-tema .page-dagens-tekst .dt-closing {
  color: #1b3b2f;
}

html.jule-tema .page-dagens-tekst .dt-quote {
  border-left-color: var(--jule-pine);
}

html.jule-tema .page-dagens-tekst .dt-closing {
  background: rgba(243, 237, 226, 0.85);
  border: 1px solid rgba(197, 150, 67, 0.22);
}

/* Oplæsning: høj kontrast bevares under jule-tema */
html.jule-tema .page-dagens-tekst .read-aloud {
  background: #fffdf9;
  border-top-color: rgba(27, 59, 47, 0.22);
  color: #1b3b2f;
}

html.jule-tema .page-dagens-tekst .read-aloud__btn {
  color: #1b3b2f;
  border-color: rgba(27, 59, 47, 0.35);
  background: #fff;
}

html.jule-tema .page-dagens-tekst .read-aloud__btn:hover:not(:disabled) {
  background: #f3ede2;
  border-color: rgba(27, 59, 47, 0.5);
}

html.jule-tema .page-dagens-tekst .read-aloud__status {
  color: #3d5349;
}

@media (max-width: 640px) {
  html.jule-tema .page-dagens-tekst .page-header {
    padding: 2.5rem 1.2rem;
  }
}
