/* Felles stil for undersidene på klubblink.no (guider, om oss).
   Forsiden har sin egen stil i index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1A2744; --navy-light: #243560;
  --beige: #ECEAE4; --beige-dark: #DDDAD2;
  --gold: #B8943A; --gold-light: #F5E9CC;
  --text: #1A2744; --muted: #5F687D;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--beige); color: var(--text); }
a { color: var(--navy); }

nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 56px; border-bottom: 1px solid rgba(26,39,68,0.07); }
nav .logo img { height: 34px; width: auto; display: block; }
nav .lenker { display: flex; align-items: center; gap: 28px; }
nav .lenker a { font-size: 14px; font-weight: 500; text-decoration: none; opacity: 0.65; }
nav .lenker a:hover { opacity: 1; }
nav .lenker a.cta { opacity: 1; background: var(--navy); color: white; padding: 10px 20px; border-radius: 8px; font-weight: 600; }

main { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.smule { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.smule a { color: var(--muted); text-decoration: none; }
.smule a:hover { text-decoration: underline; }
.etikett { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(36px, 5.5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.dato { margin-top: 18px; font-size: 14px; color: var(--muted); }
.ingress { margin-top: 28px; font-size: 21px; line-height: 1.55; }

h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 56px 0 16px; scroll-margin-top: 20px; }
h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
p, li { font-size: 18px; line-height: 1.7; }
p + p { margin-top: 16px; }
ul + p, .eksempel + p, .eksempel + h2 { margin-top: 18px; }
ul, ol.liste { margin: 14px 0 0 22px; }
li + li { margin-top: 8px; }
li b { font-weight: 700; }

.eksempel { margin-top: 18px; padding: 22px 24px; background: white; border: 1px solid var(--beige-dark); border-radius: 12px; }
.eksempel p { font-size: 16px; line-height: 1.65; }

details { border-top: 1px solid var(--beige-dark); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--beige-dark); }
summary { cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin-top: 10px; }

.kilder { margin-top: 56px; font-size: 14px; color: var(--muted); }
.kilder p, .kilder li { font-size: 14px; line-height: 1.6; }
.kilder ul { margin-left: 18px; }

footer { background: var(--navy); color: rgba(255,255,255,0.55); padding: 36px 56px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; }
footer img { height: 28px; filter: brightness(0) invert(1); display: block; }
footer .lenker { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { color: white; }

@media (max-width: 700px) {
  nav { padding: 16px 20px; }
  nav .lenker { gap: 18px; }
  nav .lenker a.cta, nav .lenker a.skjul-mobil { display: none; }
  main { padding: 36px 20px 72px; }
  p, li { font-size: 17px; }
  .ingress { font-size: 19px; }
  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
}

/* Guideoversikten og lister med lenker til guider */
.guide-liste { margin-top: 40px; border-top: 1px solid var(--beige-dark); }
.guide-liste article { padding: 26px 0; border-bottom: 1px solid var(--beige-dark); }
.guide-liste h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 30px); }
.guide-liste h2 a { text-decoration: none; }
.guide-liste h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.guide-liste p { color: var(--muted); }
.guide-liste .meta { margin-top: 8px; font-size: 14px; }

/* Mal som kan kopieres (sponsoravtale) */
.mal { margin-top: 18px; padding: 32px 32px 28px; background: white; border: 1px solid var(--beige-dark); border-radius: 12px; }
.mal .mal-tittel { font-family: 'DM Serif Display', serif; font-size: 28px; line-height: 1.2; }
.mal h3 { font-size: 16px; margin: 24px 0 6px; }
.mal p, .mal li { font-size: 16px; line-height: 1.65; }
.mal p + p { margin-top: 10px; }
.mal ul { margin-top: 8px; }
.mal + h2 { margin-top: 56px; }
.kopier { font-family: inherit; font-size: 15px; font-weight: 600; color: white; background: var(--navy); border: none; border-radius: 8px; padding: 11px 20px; cursor: pointer; }
.kopier:hover { background: var(--navy-light); }
@media (max-width: 700px) {
  .mal { padding: 22px 18px 20px; }
}
