/* ==========================================================================
   Studenterhue-regler.dk – forside
   Indsæt i: Udseende → Tilpas → Ekstra CSS (eller child-themets style.css)
   Ingen webfonte, ingen JavaScript. Alle klasser starter med "shr-".
   ========================================================================== */

:root {
  --shr-red: #9b1c23;
  --shr-red-dark: #7d151b;
  --shr-ink: #14213d;
  --shr-text: #2d3440;
  --shr-muted: #5d6573;
  --shr-line: #ece4df;
  --shr-bg: #fbf7f4;
  --shr-soft: #fbeeee;
  --shr-card: #fff;
  --shr-radius: 14px;
  --shr-shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 20px rgba(20, 33, 61, .06);
  --shr-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
  --shr-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Basis ---------- */
.shr-sec, .shr-hero, .shr-iconbar {
  font-family: var(--shr-sans);
  color: var(--shr-text);
  line-height: 1.6;
  box-sizing: border-box;
}
.shr-sec *, .shr-hero *, .shr-iconbar * { box-sizing: border-box; }

/* Gør sektioner fuld bredde, selv hvis temaet har en smal indholdskolonne */
.shr-full { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.shr-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.shr-wrap--narrow > * { max-width: 820px; }

.shr-sec { padding: 56px 0; scroll-margin-top: 90px; }
.shr-sec--tint { background: var(--shr-bg); }
/* Rendering af sektioner under folden udskydes → hurtigere første visning */
.shr-lazy { content-visibility: auto; contain-intrinsic-size: auto 900px; }

.shr-sec h2, .shr-hero h1 {
  font-family: var(--shr-serif);
  color: var(--shr-ink);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
.shr-sec h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.shr-sec h3 {
  font-family: var(--shr-sans);
  color: var(--shr-ink);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 .4em;
}
.shr-sec p { margin: 0 0 1em; }
.shr-sec a { color: var(--shr-red); text-underline-offset: 2px; }
.shr-lead { font-size: 1.08rem; color: var(--shr-muted); max-width: 720px; }

.shr-eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--shr-red);
  margin-bottom: .6em;
}

/* ---------- Knapper ---------- */
.shr-btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.3em;
  border-radius: 10px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none !important;
  border: 2px solid var(--shr-red);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.shr-btn:hover { transform: translateY(-1px); }
.shr-btn--primary { background: var(--shr-red); color: #fff !important; }
.shr-btn--primary:hover { background: var(--shr-red-dark); border-color: var(--shr-red-dark); }
.shr-btn--ghost { background: #fff; color: var(--shr-ink) !important; }
.shr-btn--ghost:hover { background: var(--shr-soft); }

/* ---------- Hero ---------- */
.shr-hero {
  background: linear-gradient(100deg, #fff 0%, #fbf3ef 55%, #f6e7e2 100%);
  overflow: hidden;
}
.shr-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 32px;
  min-height: 420px;
}
.shr-hero__text { padding: 48px 0; }
.shr-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); }
.shr-hero p { font-size: 1.12rem; color: var(--shr-text); max-width: 540px; margin: 0 0 1.4em; }
.shr-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.shr-hero .shr-hero__meta { margin: 1.2em 0 0; font-size: .88rem; color: var(--shr-muted); }
.shr-hero__media { align-self: stretch; position: relative; min-height: 280px; margin-right: calc(-1 * max(20px, (100vw - 1120px) / 2)); }
.shr-hero__media img, .shr-hero__media svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0 0 0 40px;
}

/* ---------- Ikonbjælke ---------- */
.shr-iconbar { background: #fff; border-bottom: 1px solid var(--shr-line); }
.shr-iconbar ul {
  list-style: none; margin: 0 auto; padding: 18px 20px;
  max-width: 1160px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.shr-iconbar a {
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: var(--shr-ink);
  padding: 8px; border-radius: 10px;
  transition: background-color .15s ease;
}
.shr-iconbar a:hover { background: var(--shr-soft); }
.shr-iconbar svg { flex: 0 0 30px; width: 30px; height: 30px; color: var(--shr-red); }
.shr-iconbar strong { display: block; font-size: 1rem; }
.shr-iconbar span { display: block; font-size: .82rem; color: var(--shr-muted); line-height: 1.35; }

/* ---------- Overblik + indholdsfortegnelse ---------- */
.shr-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.shr-toc {
  background: var(--shr-soft);
  border-radius: var(--shr-radius);
  padding: 22px;
}
.shr-toc h2 { font-family: var(--shr-sans); font-size: 1.15rem; margin-bottom: .7em; }
.shr-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shr-toc a {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 8px;
  padding: 9px 12px;
  font-size: .93rem; font-weight: 600;
  color: var(--shr-ink); text-decoration: none;
}
.shr-toc a::after { content: "›"; color: var(--shr-red); font-size: 1.2em; line-height: 1; }
.shr-toc a:hover { color: var(--shr-red); }

.shr-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.4em 0 0; padding: 0; list-style: none; }
.shr-quick li { background: #fff; border: 1px solid var(--shr-line); border-radius: 12px; padding: 14px; }
.shr-quick b { display: block; font-family: var(--shr-serif); font-size: 1.7rem; color: var(--shr-red); line-height: 1.1; }
.shr-quick span { font-size: .88rem; color: var(--shr-muted); }

/* ---------- Regler ---------- */
.shr-rulegroup { margin-top: 36px; }
.shr-rulegroup > h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; padding-bottom: 10px;
  border-bottom: 2px solid var(--shr-line); margin-bottom: 16px;
}
.shr-rulegroup > h3 small { font-size: .8rem; font-weight: 600; color: var(--shr-muted); }
.shr-rules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.shr-rules li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--shr-line);
  border-radius: 12px; padding: 14px 16px;
}
.shr-rules .n {
  flex: 0 0 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--shr-red); color: #fff;
  font-weight: 800; font-size: .95rem;
}
.shr-rules p { margin: 0; }
.shr-rules strong { color: var(--shr-ink); }
.shr-note {
  margin-top: 24px; padding: 16px 18px;
  border-left: 4px solid var(--shr-red);
  background: #fff; border-radius: 0 12px 12px 0;
}

/* ---------- Huens anatomi ---------- */
.shr-anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.shr-anatomy > *, .shr-intro > * { min-width: 0; }
.shr-anatomy svg { width: 100%; height: auto; }
.shr-anatomy dl { margin: 0; display: grid; gap: 10px; }
.shr-anatomy dt { font-weight: 700; color: var(--shr-ink); }
.shr-anatomy dd { margin: 0 0 4px; color: var(--shr-muted); font-size: .95rem; }

/* ---------- Farvetabel ---------- */
.shr-tablewrap { overflow-x: auto; border-radius: var(--shr-radius); border: 1px solid var(--shr-line); background: #fff; }
.shr-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.shr-table th, .shr-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--shr-line); vertical-align: top; }
.shr-table thead th { background: var(--shr-ink); color: #fff; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.shr-table tbody tr:last-child td { border-bottom: 0; }
.shr-table tbody tr:hover { background: var(--shr-bg); }
.shr-table td:first-child { white-space: nowrap; font-weight: 700; }
.shr-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  margin-right: 8px; vertical-align: -2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}

/* ---------- Kort (guides / traditioner) ---------- */
.shr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.shr-cards--4 { grid-template-columns: repeat(4, 1fr); }
.shr-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--shr-line);
  border-radius: var(--shr-radius);
  padding: 20px;
  text-decoration: none !important; color: var(--shr-text) !important;
  box-shadow: var(--shr-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.shr-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,33,61,.08), 0 12px 28px rgba(20,33,61,.10); }
.shr-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--shr-soft); color: var(--shr-red);
  margin-bottom: 14px;
}
.shr-card__icon svg { width: 26px; height: 26px; }
.shr-card h3 { margin-bottom: .35em; }
.shr-card p { font-size: .94rem; color: var(--shr-muted); margin: 0 0 .9em; }
.shr-card__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--shr-red); }
/* Sider der ikke er bygget endnu: ikke klikbare */
.shr-card.is-soon { box-shadow: none; background: #fdfbfa; }
.shr-card.is-soon .shr-card__more { color: var(--shr-muted); }
.shr-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--shr-bg); color: var(--shr-muted);
  border: 1px solid var(--shr-line); border-radius: 99px; padding: 3px 9px;
}

/* ---------- Tidslinje ---------- */
.shr-timeline { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.shr-timeline::before { content: ""; position: absolute; left: 100px; top: 6px; bottom: 6px; width: 2px; background: var(--shr-line); }
.shr-timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 26px; padding: 0 0 20px; position: relative; }
.shr-timeline li::before {
  content: ""; position: absolute; left: 94px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--shr-red);
}
.shr-timeline b { font-family: var(--shr-serif); color: var(--shr-red); font-size: 1.05rem; white-space: nowrap; }
.shr-timeline p { margin: 0; }

/* ---------- FAQ ---------- */
.shr-faq { display: grid; gap: 10px; margin-top: 20px; max-width: 860px; }
.shr-faq details {
  background: #fff; border: 1px solid var(--shr-line);
  border-radius: 12px; padding: 0 18px;
}
.shr-faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; color: var(--shr-ink);
}
.shr-faq summary::-webkit-details-marker { display: none; }
.shr-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--shr-red); line-height: 1;
}
.shr-faq details[open] summary::after { content: "–"; }
.shr-faq details > div { padding: 0 0 16px; color: var(--shr-text); }
.shr-faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA-banner ---------- */
.shr-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--shr-ink); color: #fff;
  border-radius: 20px; padding: 32px 36px;
}
.shr-cta h2 { color: #fff; margin-bottom: .25em; }
.shr-cta p { color: #c9cfdb; margin: 0; }
.shr-cta .shr-eyebrow { color: #f3a7ab; }

/* ---------- Pladsholder (sangen) ---------- */
.shr-placeholder {
  border: 2px dashed var(--shr-line); border-radius: var(--shr-radius);
  padding: 24px; color: var(--shr-muted); background: #fff;
}

/* ---------- Valgfrit: farveprikker i WordPress-menuen ----------
   Giv menupunktet CSS-klassen fx "hue-roed" under Udseende → Menuer
   (slå "CSS-klasser" til under Skærmindstillinger). */
.menu-item[class*="hue-"] > a::before {
  content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 8px; vertical-align: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.menu-item.hue-roed > a::before { background: #a3171f; }
.menu-item.hue-blaa > a::before { background: #1f4fa3; }
.menu-item.hue-sort > a::before { background: #111; }
.menu-item.hue-lyseroed > a::before { background: #f4a7c3; }
.menu-item.hue-lyselilla > a::before { background: #c9b3e6; }
.menu-item.hue-lilla > a::before { background: #6b3fa0; }
.menu-item.hue-orange > a::before { background: #f08a24; }
.menu-item.hue-gul > a::before { background: #f2cc2e; }
.menu-item.hue-groen > a::before { background: #2f8a4a; }
.menu-item.hue-brun > a::before { background: #7a4a2a; }
.menu-item.hue-beige > a::before { background: #d9c3a0; }
.menu-item.hue-stu > a::before { background: conic-gradient(#6b3fa0 0 33%, #1f4fa3 0 66%, #f4a7c3 0); }
.menu-item.hue-flag > a::before { background: conic-gradient(#c8102e 0 25%, #fff 0 50%, #c8102e 0 75%, #fff 0); }

/* ---------- Responsivt ---------- */
@media (max-width: 980px) {
  .shr-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .shr-hero__text { padding: 36px 0 8px; }
  .shr-hero__media { min-height: 220px; margin: 0 -20px; }
  .shr-hero__text { padding-bottom: 28px; }
  .shr-hero__media img, .shr-hero__media svg { border-radius: 0; }
  .shr-iconbar ul { grid-template-columns: repeat(2, 1fr); }
  .shr-intro, .shr-anatomy { grid-template-columns: 1fr; }
  .shr-cards, .shr-cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .shr-sec { padding: 40px 0; }
  .shr-rules, .shr-cards, .shr-cards--4 { grid-template-columns: 1fr; }
  .shr-quick { gap: 8px; }
  .shr-quick li { padding: 10px; }
  .shr-quick b { font-size: 1.25rem; }
  .shr-quick span { font-size: .78rem; display: block; line-height: 1.3; }
  .shr-cta { grid-template-columns: 1fr; padding: 26px; }
  .shr-timeline::before { left: 88px; }
  .shr-timeline li { grid-template-columns: 88px 1fr; gap: 22px; }
  .shr-timeline li::before { left: 82px; }
  .shr-timeline b { font-size: .95rem; }
  .shr-iconbar span { display: none; }
}
