/* =========================================================
   Custom CSS for [Dansk Tidsskrift for Akutmedicin] – based on [The  Health Sciences Theme].
   Designed and customized by Student Assistant Matin Hagi.
   Copyright [Dansk Tidsskrift for Akutmedicin]. All rights reserved.
   For internal use only. Do not redistribute without permission.
   ========================================================= */

/* ---------- 0. Variabler ----------------------------------- */
:root{
  --akut-red:       #b61c28;
  --akut-red-light: #d85d5f;

  --bg-page:        #fafafa;
  --bg-paper:       #ffffff;

  --font-sans:  "Inter","Helvetica Neue",Arial,sans-serif;
  --font-serif: "Merriweather","Georgia","Times New Roman",serif;

  --accent-bar: 3px;          /* tynd rød bar */
  --border:     1px solid hsl(0 0% 90%);
  --trans:      .25s;
}

/* ---------- 1. Grundlayout & typografi --------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Merriweather:wght@400;700&display=swap");

html,body{margin:0}
body{
  background:var(--bg-page);
  font-family:var(--font-sans);
  color:#222;
}

/* indre “ark” */
.pkp_structure_content,
.container.page-editorial-team{
  background:var(--bg-paper);
  border:var(--border);
  border-radius:8px;
  margin:2.5rem auto;
  padding:clamp(1.5rem,3vw,2.25rem) clamp(1.5rem,4vw,2.75rem);
  max-width:72rem;
}

/* ---------- 2. Navigation ---------------------------------- */
.pkp_structure_head {
  background: var(--bg-paper);
  border-bottom: var(--border);
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
  text-transform: uppercase;
  letter-spacing: 0.07rem;
  font-weight: normal; /* changed from 600 to normal */
  padding: 0.75rem 1rem;
  color: #444;
  transition: color var(--trans);
  position: relative;
  padding-bottom: 5px;
  border: none !important;
  text-decoration: none; /* Ensure no default underline */
  display: block; /* Ensure consistent positioning */
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-item:hover {
  color: var(--akut-red);
}

.navbar-nav .nav-link::before,
.navbar-nav .dropdown-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; /* Start from the left of the text */
  width: 0; /* Start with no width */
  height: 2px;
  background-color: var(--akut-red); /* Use variable for consistency */
  border-radius: 1px;
  transition: width var(--trans) ease; /* Animate width */
  white-space: nowrap; /* Prevent text wrapping from affecting width */
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .dropdown-item:hover::before {
  width: 100%; /* Extend to full text width on hover */
}

/* Ensure dropdown-toggle follows the same hover behavior */
.navbar-nav .nav-link.dropdown-toggle::before {
  left: 0; /* Reset left position */
  width: 0; /* Start with no width */
}

.navbar-nav .nav-link.dropdown-toggle:hover::before {
  width: calc(100% - 0.75rem); /* Adjust to exclude arrow and margin on hover */
}

.navbar-nav .nav-item.active .nav-link {
  color: var(--akut-red);
  font-weight: normal; /* optional: keeps active item from being bold too */
}

.navbar-nav .nav-item.active .nav-link::before {
  width: 100%; /* Active links have full underline */
}

.navbar-nav .nav-item.active .nav-link::after {
  display: none;
}

/* Navbar dropdown */
.navbar-nav .nav-link.dropdown-toggle::after {
  content: "";
  display: inline-block !important; /* Show the custom arrow */
  width: 0;
  height: 0;
  margin-left: 0.5rem; /* Space from text */
  vertical-align: middle; /* Align with text */
  border-left: 5px solid transparent; /* Left side of triangle */
  border-right: 5px solid transparent; /* Right side of triangle */
  border-top: 5px solid #444; /* Top border creates downward arrow */
  transition: border-top-color var(--trans) ease, transform var(--trans) ease; /* Animate color and rotation */
}

.navbar-nav .nav-link.dropdown-toggle:hover::after {
  border-top-color: var(--akut-red); /* Match hover text color */
  transform: translateY(2px); /* Subtle downward movement on hover */
}

/* Rotate arrow when dropdown is active */
.navbar-nav .nav-item.dropdown.show .nav-link.dropdown-toggle::after {
  transform: translateY(2px) rotate(180deg); /* Rotate 180 degrees downward when open */
  border-top-color: var(--akut-red); /* Match active color */
}

.dropdown-menu {
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 10px 0;
  border: none;
}

#primaryNav .dropdown-menu.show {
    border-radius: 3px !important;
}
/* ---------- 3. Link-underline animation -------------------- */
a {
  color: var(--akut-red);
  text-decoration: none;
  display: inline; /* Default display for links, supports multi-line text */
  background-image: linear-gradient(var(--akut-red), var(--akut-red));
  background-size: 0 2px; /* Start with no width, 2px height */
  background-position: left bottom; /* Align to the bottom-left of the entire link */
  background-repeat: no-repeat;
  transition: background-size var(--trans) ease;
}

/* Keep text color exactly the same on hover/focus */
a:hover,
a:focus {
  color: inherit;
  background-size: 100% 2px; /* Extend underline across full text width */
}

/* Disable underline if link only contains an image */
a:has(img:only-child) {
  background-image: none;
}

/* Focus outline for accessibility */
a:focus-visible {
  outline: 2px solid var(--akut-red);
  outline-offset: 2px;
}

/* ---------- 4. Fleksible grid/helper-klasser --------------- */
.card-grid{
  display:grid;
  gap:2rem;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  list-style:none;margin:0;padding:0;
}
@media(max-width:600px){.card-grid{grid-template-columns:1fr;}}

/* ---------- 5. Card-baseret design ------------------------- */
.card{
  background:var(--bg-paper);
  border:var(--border);
  border-left:var(--accent-bar) solid var(--akut-red);
  border-radius:8px;
  padding:2rem;
}

/* ---------- Editorial-team cards · auto-fit + hero-card ---------- */
:root{
  --radius:   8px;
  --accent:   #b02025;      
  --edu:      #006b6b;      
  --bg-card:  #fff;
  --bg-page:  #fafafa;
  --brd-card: #e2e2e2;
  --sh-card:  0 1px 4px  rgba(0,0,0,.05);
  --sh-hover: 0 3px 12px rgba(0,0,0,.12);
}

/* LISTE ---------------------------------------------------------- */
.editor-list{
  --min: 280px;
  display:grid;
  gap:1.4rem;
  padding:0;
  margin:0 auto;
  list-style:none;
  max-width:1200px;
  grid-template-columns:repeat(auto-fit,minmax(var(--min),1fr));
  grid-auto-rows:minmax(0,auto);
}

/* HERO-/CHEF-KORT ------------------------------------------------ */
.editor-card--chief{
  order:-1;
  grid-column:1/-1;
  justify-self:center;
  max-width:480px;
  border-left:6px solid var(--accent);
  background:rgba(176,32,37,.04);
}
.editor-card--chief .editor-card__photo{border-color:var(--accent);}
.editor-card--chief .badge{
  display:inline-block;margin-left:.4rem;padding:.1rem .4rem;
  font-size:.6rem;font-weight:700;background:var(--accent);
  color:#fff;border-radius:3px;text-transform:uppercase;
  letter-spacing:.04em;
}

/* KORT ----------------------------------------------------------- */
.editor-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--brd-card);
  border-radius: var(--radius);
  box-shadow: var(--sh-card);
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 170px;

  align-items: flex-start;    
}
.editor-card:hover,
.editor-card:focus-within{transform:translateY(-3px);box-shadow:var(--sh-hover);}

/* FOTO ----------------------------------------------------------- */
.editor-card__photo{
  width:72px;height:72px;flex-shrink:0;border-radius:50%;object-fit:cover;
  border:2px solid var(--brd-card);filter:grayscale(60%);transition:filter .2s ease;
}
.editor-card:hover .editor-card__photo,
.editor-card:focus-within .editor-card__photo{filter:none;}

/* TEKST ---------------------------------------------------------- */
.editor-card__details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  
}
.editor-card__name{
  font:700 1.1rem/1 "Inter",sans-serif;margin:0 0 .2rem;
  color:var(--accent);word-break:break-word;
}

.editor-card__position{
  font:600 .72rem/1.3 "Inter",sans-serif;text-transform:uppercase;
  letter-spacing:.05em;margin:0 0 .25rem;color:#555;
}

/* UDDANNELSE ----------------------------------------------------- */
.editor-card__education {
  font: 600 .78rem/1.35 "Inter", sans-serif;
  font-style: italic;           /* ← kursiv for tydelig forskel  */
  color: #004d99;
  margin: 0 0 .25rem;
  letter-spacing: .03em;
}

.editor-card__affiliation{
  font:.85rem/1.4 "Inter",sans-serif;
  margin:0;hyphens:auto;word-break:break-word;
}

/* ORCID-ikon ----------------------------------------------------- */
.orcid-link{display:inline-block;vertical-align:middle;margin-left:.35rem;}
.orcid-link img{width:16px;height:16px;opacity:.85;transition:opacity .2s ease;}
.orcid-link:hover img,
.orcid-link:focus img{opacity:1;}

/* MOBIL ---------------------------------------------------------- */
@media (max-width:599px){
  .editor-card{flex-direction:column;align-items:center;text-align:center;}
  .editor-card__photo{width:96px;height:96px;margin-bottom:.5rem;}
}

/* DARK MODE ------------------------------------------------------ */
@media (prefers-color-scheme:dark){
  :root{
    --bg-card:#1e1e1e;--brd-card:#343434;
    --sh-card:0 1px 4px rgba(0,0,0,.5);
    --sh-hover:0 4px 14px rgba(0,0,0,.7);
    --edu:#4cc6c6;            /* lysere teal i mørk tilstand     */
  }
  .editor-card__position{color:#aaa;}
}

/* ---------- 7. Forside-hero (container-homepage-issue) ------ */
.container-homepage-issue {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  max-width: 72rem;
  margin: 2.5rem auto;
}

/* … */

/* make the identifier a full-width flex box */
.homepage-issue-identifier {
  display: flex;
  justify-content: center;  /* centre text & logo horizontally */
  align-items: center;      /* align text & logo vertically */
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  margin: .25rem 0 1.5rem;
  position: relative;
}

/* red underline */
.homepage-issue-identifier::before {
  content: "";
  position: absolute;
  bottom: -0.7rem;
  left: 50%;
  width: 3rem;
  height: 2px;
  background: var(--akut-red);
  transform: translateX(-50%);
}

/* tiny logo to the right */
.homepage-issue-identifier::after {
  content: "";
  display: inline-block;
  width: 1rem;    /* tweak size here */
  height: 1rem;   /* tweak size here */
  margin-left: .5rem;
  background:
    url("https://tidsskrift.dk/public/site/images/matin/mceclip1.png")
    no-repeat center/contain;
}

.homepage-issue-published {
  font-size: .9rem;
  color: #555;
  text-align: center;
  margin: 0 0 1.5rem;
}

/* grid mellem cover og beskrivelse */
.homepage-issue-header{align-items:center;}
.homepage-issue-cover{
  border-radius:4px;border:var(--border);
  width:100%;max-width:200px;
}
.homepage-issue-description-wrapper{
  background:#fafafa;
  border:var(--border);
  border-left:var(--accent-bar) solid var(--akut-red);
  border-radius:6px;
  padding:2rem;
}
.homepage-issue-description-wrapper .h3{
  font-family:var(--font-serif);
  font-size:1.2rem;
  font-weight:700;
  margin:0 0 1rem;
}
.homepage-issue-description-wrapper p{
  font-size:1rem;line-height:1.6;margin:0 0 1rem;
}
.homepage-issue-galleys .btn,
.article-summary-galleys,
.article-summary-galleys * {
  text-transform: uppercase;
}
.homepage-issue-galleys .btn{
  background:transparent;
  color:var(--akut-red);
  border:var(--border);
  border-radius:999px;
  padding:.55em 1.4em;
  font-weight:600;
  transition:background var(--trans),color var(--trans);
}
.homepage-issue-galleys .btn:hover{
  background:var(--akut-red);
  color:#fff;
}

/* --- responsiv stacking af cover/beskrivelse på mobil ------- */
@media(max-width:576px){
  .homepage-issue-header .col-lg-3,
  .homepage-issue-header .col-lg-9{
    flex:0 0 100%;max-width:100%;text-align:center;
  }
  .homepage-issue-description-wrapper{margin-top:1.5rem;}
}

.homepage-additional-content {
  max-width: 900px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  color: #2a2a2a;
  font-size: 1.05rem;
  line-height: 1.75;
  border-top: 4px solid var(--akut-red);
}

.homepage-additional-content p {
  margin-bottom: 1.5rem;
}

.homepage-additional-content strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--akut-red);
  margin-bottom: 0.5rem;
}

.homepage-additional-content ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.homepage-additional-content li {
  margin-bottom: 1rem;
  list-style-type: disc;
}

.homepage-additional-content a {
  color: var(--akut-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.homepage-additional-content a:hover {
  color: #000;
  text-decoration: underline;
}

@media (max-width: 576px) {
  .homepage-additional-content {
    padding: 2rem 1.25rem;
    font-size: 1rem;
  }

  .homepage-additional-content strong {
    font-size: 1.1rem;
  }
}


/* ---------- 8. Meddelelser (announcements) (compact) ----------------- */
.homepage-announcement {
  position: relative;
  overflow: visible;
  padding: 0.75rem 1rem 0.75rem 2.5rem; 
  max-width: 50ch;                     
  margin: 1.5rem auto;                  
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  animation: fadeInUp 0.5s ease both;  
}

/* flowing gradient border */
.homepage-announcement::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;                          
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent,#c00) 50%,
    transparent
  );
  animation: slideBorder 2.5s ease-in-out infinite; 
}

/* compact megaphone badge */
.homepage-announcement::before {
  content: "";
  position: absolute;
  top: -0.5rem;                         
  left: 0.8rem;                        
  width: 1.2rem;                       
  height: 1.2rem;
  background-color: var(--accent,#c00);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20fill='%23fff'%20d='M1%207v10h3l7%205V2L4%207H1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;                 
  border-radius: 50%;
  z-index: 2;
  transition: transform .2s ease, background .3s ease;
}

/* badge pulse on hover */
.homepage-announcement:hover::before {
  transform: scale(1.05);              
  background-color: #e60000;
}

/* hover/focus lift */
.homepage-announcement:hover,
.homepage-announcement:focus-within {
  transform: translateY(-2px);         
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* keyframes */
@keyframes slideBorder {
  0%, 100% { background-position: 0 0; }
  50%      { background-position: 0 100%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* keyframes */
@keyframes slideBorder {
  0%, 100% { background-position: 0 0; }
  50%      { background-position: 0 100%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Title, link & date unchanged */
.homepage-announcement-title { /* … existing styles… */ }
.homepage-announcement-title::after { /* … */ }
.homepage-announcement a { /* … */ }
.homepage-announcement-date { /* … */ }

/* hide summaries as before */
.homepage-announcement .announcement-summary,
.homepage-announcement .obj_announcement_summary,
.homepage-announcement .homepage-announcement-body,
.homepage-announcement p:not(:has(a)) {
  display: none;
}


/* ---------- 9. Artikel-resumé kort ------------------------- */
.obj_article_summary_list{comp:card-grid;}
.obj_article_summary{comp:card;display:flex;flex-direction:column;}
.obj_article_summary h3{
  font-family:var(--font-serif);
  font-size:1.2rem;
  font-weight:700;
  margin:0 0 .6rem;
}
.obj_article_summary .meta{
  font-size:.85rem;
  color:#555;
  margin-bottom:.9rem;
}
.obj_article_summary .galley-link{
  background:transparent;
  color:var(--akut-red);
  border:var(--border);
  border-radius:999px;
  padding:.55em 1.3em;
  font-weight:600;
  align-self:flex-start;
  transition:background var(--trans),color var(--trans);
}
.obj_article_summary .galley-link:hover{
  background:var(--akut-red);
  color:#fff;
}

/* ---------- 10. Sektionstitler ----------------------------- */
h3.issue-toc-section-title,
h2.section-title,
.page-editorial-team h1,
.pkp_page_about h1,
.pkp_page_editorialTeam h1{
  font-size:1rem;
  text-transform:uppercase;
  font-variant:small-caps;
  letter-spacing:.1rem;
  color:var(--akut-red);
  text-align:center;
  margin:2rem 0 1rem;
}

/* ----------  About page · same base design as editorial team  ---------- */

/* 1. Design tokens (identical to editorial-team) */
:root{
  --radius:   8px;
  --accent:   #b02025;      /* rød accent */
  --edu:      #006b6b;
  --bg-card:  #fff;
  --bg-page:  #fafafa;
  --brd-card: #e2e2e2;
  --sh-card:  0 1px 4px  rgba(0,0,0,.05);
  --sh-hover: 0 3px 12px rgba(0,0,0,.12);
}

/* 2. Page wrapper (optional – add class="about-page" around the HTML) */
.about-page{
  max-width:800px;
  margin:0 auto;
  padding:2rem 1rem;
  display:flex;
  flex-direction:column;
  gap:2rem;
}

/* 3. Section cards (targets each top-level div on the About page) */
#focusAndScope,
#peerReviewProcess,
#openAccessPolicy,
#history{
  background:var(--bg-card);
  border:1px solid var(--brd-card);
  border-radius:var(--radius);
  box-shadow:var(--sh-card);
  padding:1.5rem 1.75rem;
  transition:transform .15s ease,box-shadow .15s ease;
}
#focusAndScope:hover,
#peerReviewProcess:hover,
#openAccessPolicy:hover,
#history:hover{
  transform:translateY(-3px);
  box-shadow:var(--sh-hover);
}

/* 4. Headings */
#focusAndScope h3,
#peerReviewProcess h3,
#openAccessPolicy h3,
#history h3{
  margin-top:0;
  font:700 1.25rem/1.2 "Inter",sans-serif;
  color:var(--accent);
  border-left:4px solid var(--accent);
  padding-left:.6rem;
}

/* 5. Body copy */
#focusAndScope p,
#peerReviewProcess p,
#openAccessPolicy p,
#history p{
  margin:.6rem 0;
  font:400 .95rem/1.6 "Inter",sans-serif;
  color:#222;
}

/* 6. Lists */
#focusAndScope ol,
#focusAndScope ul,
#peerReviewProcess ol,
#peerReviewProcess ul,
#openAccessPolicy ol,
#openAccessPolicy ul,
#history ol,
#history ul{
  margin:.6rem 0 1rem;
  padding-left:1.2rem;
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
#focusAndScope li,
#peerReviewProcess li,
#openAccessPolicy li,
#history li{
  font:.9rem/1.4 "Inter",sans-serif;
  color:#333;
}
#focusAndScope li::marker,
#peerReviewProcess li::marker,
#openAccessPolicy li::marker,
#history li::marker{
  color:var(--accent);
  font-weight:700;
}

/* Keep the red dot marker for <li class="show"> if used */
li.show::marker{content:"•";}

/* 7. Links */
#focusAndScope a,
#peerReviewProcess a,
#openAccessPolicy a,
#history a{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:2px;
}
#focusAndScope a:hover,
#peerReviewProcess a:hover,
#openAccessPolicy a:hover,
#history a:hover{
  text-decoration:none;
}

/* 8. Slightly roomier layout on medium+ screens */
@media(min-width:768px){
  .about-page{padding:3rem 2rem;}
  #focusAndScope,
  #peerReviewProcess,
  #openAccessPolicy,
  #history{padding:2rem 2.25rem;}
}
/* ========== Submissions / About page – card-based layout ========== */
/* ----------------------------------------------------------------- */

/* ---------- 1. Shared design tokens ---------- */
:root{
  --radius:   8px;
  --accent:   #b02025;      /* primary red accent  – reused          */
  --edu:      #006b6b;      /* teal for secondary info               */
  --bg-card:  #fff;         /* card surface                          */
  --bg-page:  #fafafa;      /* light page ­backdrop                  */
  --brd-card: #e2e2e2;      /* subtle stroke                         */
  --sh-card:  0 1px 4px  rgba(0,0,0,.05);
  --sh-hover: 0 3px 12px rgba(0,0,0,.12);
  --ok:       #168a28;      /* check-list “✓” colour                 */
}

/* ---------- 2. Global page frame ---------- */
.page-submissions{
  background:var(--bg-page);
  padding-bottom:4rem;          /* breathing room before footer  */
}
.page-submissions h1{
  font:700 2rem/1.3 "Inter",sans-serif;
  color:#222;
  margin-bottom:1.5rem;
}

/* ---------- 3. Grid wrapper (auto-fit cards) ---------- */
.submissions-grid{
  --min: 320px;                /* minimum column width            */
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(var(--min),1fr));
  gap:1.6rem;
  margin:0 auto;
  max-width:1200px;
  padding:0;
  list-style:none;
}

/* Convert the pre-existing <div class="submissions-xxx"> blocks
   to grid items without touching the markup. */
.submissions-checklist,
.submissions-author-guidelines,
.submissions-copyright-notice,
.submissions-privacy-statement{
  display:flex;                 /* card skeleton                   */
  flex-direction:column;
  justify-content:flex-start;
  padding:1.5rem 1.75rem;
  background:var(--bg-card);
  border:1px solid var(--brd-card);
  border-radius:var(--radius);
  box-shadow:var(--sh-card);
  transition:transform .15s ease,box-shadow .15s ease;
  min-height:240px;             /* aligns card heights             */
}
.submissions-checklist:hover,
.submissions-author-guidelines:hover,
.submissions-copyright-notice:hover,
.submissions-privacy-statement:hover{
  transform:translateY(-3px);
  box-shadow:var(--sh-hover);
}

/* ---------- 4. Card headings ---------- */
.submissions-checklist   h2,
.submissions-author-guidelines h2,
.submissions-copyright-notice h2,
.submissions-privacy-statement h2{
  font:700 1.25rem/1.2 "Inter",sans-serif;
  color:var(--accent);
  margin:0 0 .8rem;
  padding:0;
}

/* ---------- 5. Edit-links inside headings ---------- */
.btn.btn-edit-link{
  font-size:.65rem;
  margin-left:.4rem;
  padding:.15rem .45rem;
  text-transform:uppercase;
  background:var(--accent);
  color:#fff !important;
  border-radius:3px;
  letter-spacing:.05em;
}

/* ---------- 6. Check-list cosmetics ---------- */
.submissions-checklist ul{
  list-style:none;
  padding:0 0 0 1.65rem;          /* room for pseudo icons          */
  margin:0;
}
.submissions-checklist li{
  position:relative;
  margin:.55rem 0;
  line-height:1.35;
}
.submissions-checklist li::before{
  content:"✓";
  position:absolute;
  left:-1.65rem;
  top:.05rem;
  font-weight:700;
  color:var(--ok);
}

/* ---------- 7. Author-guidelines & misc. text ---------- */
.submissions-author-guidelines ol,
.submissions-author-guidelines ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}

.submissions-author-guidelines li {
  margin-bottom: 1rem;
  list-style: disc;
}

.submissions-author-guidelines li.show {
  list-style: disc;
}

.submissions-author-guidelines a {
  color: var(--edu); /* teal = educational links */
  text-decoration: underline;
}

.submissions-author-guidelines p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

.submissions-author-guidelines h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.submissions-author-guidelines strong {
  font-weight: 600;
  color: #111;
}


/* ---------- 8. Alert “Make a new submission” ---------- */
.page-submissions .alert-primary{
  border-left:6px solid var(--accent);
  background:rgba(176,32,37,.05);
  color:#222;
  font-size:.95rem;
}
.page-submissions .alert-primary a{
  font-weight:600;
  color:var(--accent);
}

/* ---------- 9. Responsive tweaks ---------- */
@media (max-width:768px){
  .submissions-grid{--min:260px;}
  .page-submissions h1{font-size:1.6rem;}
}

/* ---------- 10. Optional – fade greyscale on hover for any img inside cards ---------- */
.submissions-checklist img,
.submissions-author-guidelines img{
  max-width:100%;
  border-radius:var(--radius);
  filter:grayscale(60%);
  transition:filter .2s ease;
}
.submissions-checklist:hover img,
.submissions-author-guidelines:hover img{
  filter:none;
}

/* ------------------------------------------------------------------
  Register-side
------------------------------------------------------------------- */

/* ---------- Grundopsætning ---------- */

.page-register {
    padding: 3rem 0 4rem;
    font-family: "nowayregular", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page-register h1 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    color: #d2181f;         /* tidsskriftets røde accentfarve */
    margin-bottom: 2.5rem;
}

/* ---------- Feltgrupper ---------- */

.page-register fieldset {
    border: 1px solid #e6e6e6;
    border-radius: .5rem;
    padding: 1.75rem 1.5rem 1.25rem;
    margin-bottom: 2rem;
    background: #ffffff;
}

.page-register legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: #d2181f;
    padding: 0 .4rem;
    width: auto;
}

/* ---------- Formularfelter ---------- */

.form-group label {
    font-weight: 600;
    margin-bottom: .25rem;
}

.required {
    color: #d2181f;
    margin-left: .15rem;
}

.form-control {
    min-height: 44px;
    border-radius: .3rem;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out;
}

.form-control:focus {
    border-color: #d2181f;
    box-shadow: none;
}

/* ---------- Checkbokse ---------- */

.form-check-input,
.optin input[type="checkbox"] {
    margin-top: .35rem;
    margin-right: .5rem;
}

.form-check-label,
.optin label {
    font-weight: 400;
}

/* skjul tomt interessefelt indtil det aktiveres */
.reviewer_interests.hidden {
    display: none !important;
}

/* ---------- Knapper ---------- */
.btn-primary {
    background-color: #004d99;
    border: none;
    color: #ffffff;
    min-width: 80px;
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: .02em;
    font-size: 14px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

/* Stronger red glow on hover */
.btn-primary:hover,
.btn-primary:focus {
    background-color: #e81313;
    color: #ffffff;
    box-shadow: 0 0 8px 3px rgba(232, 19, 19, 0.8); /* more intense red glow */
    text-decoration: none;
    outline: none;
}



/* ---------- Grid-justering ---------- */

@media (min-width: 992px) {
    .page-register .identity,
    .page-register .login {
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .page-register .identity,
    .page-register .login {
        margin-bottom: 2rem;
    }
}

/* ---------- Footer (forfinet) ---------- */

.pkp_structure_page .pkp_structure_footer_wrapper,
footer.site-footer,
footer[role="contentinfo"].footer,
footer#immersion_content_footer {
    background-color: #f7f7f7;
}

.pkp_footer_content,
.site-footer-content {
    color: #333333;
}

.pkp_structure_footer a,
.site-footer a {
    color: #333333 !important;
}

.pkp_structure_footer_wrapper .pkp_brand_footer,
.footer .container .col-md-2,
#immersion_content_footer .container .row .col-2.col-sm-1.offset-10.offset-sm-11,
.col-md.col-md-2.align-self-center.text-right {
    content: url("/plugins/generic/rdlchangefooter/images/kb_logo_desktop_blue.svg");
    max-width: 300px;
    padding: 20px 0;
}

.pkp_structure_footer,
.pkp_structure_footer::after {
    font-family: "nowayregular", sans-serif;
    font-size: 16px;
}

.pkp_structure_footer::after,
#immersion_content_footer .container::after,
.site-footer .container.site-footer-content::after,
.footer .container .row::after {
    content: "Tidsskrift.dk\a\aHosted by The Royal Danish Library\a\aPlatform & workflow by OJS / PKP" !important;
    white-space: pre;
    position: relative;
    left: 80%;
    color: #333333;
    font-size: 16px;
    padding-bottom: 20px;
}

/* skjul sidefooter-sidebar, som ikke benyttes */
.container.site-footer-sidebar {
    display: none !important;
}

/* === Fix Footer Overflow on Mobile for OJS === */
@media (max-width: 768px) {
    .site-footer-content {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    body {
        overflow-x: hidden;
    }

    .site-footer .container.site-footer-content::after {
        left: 0;
        display: block;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ------------------------------------------------------------------
   Fremhæv “reviewer”-feltet
------------------------------------------------------------------- */

.page-register fieldset.reviewer {
    border: 2px solid #004d99;        /* accentramme i nyt blå */
    border-left-width: 6px;           
    background: #eaf2fb;              /* lys toning af samme blå */
    border-radius: .5rem;
    padding: 1.75rem 1.5rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

/* Legend i samme blå nuance */
.page-register fieldset.reviewer legend {
    color: #004d99;
    font-weight: 700;
}

/* Gør checkbox-etiketten mere tydelig                             */
.page-register .reviewer .form-check-label {
    font-weight: 600;
    line-height: 1.45;
}

/* Interesseliste (når den vises)                                  */
.page-register .reviewer_interests {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid #d0dbe9;    /* svag grænse tilpasset baggrundsfarve */
}

/* Skjul når markeret som .hidden                                  */
.page-register .reviewer_interests.hidden {
    display: none !important;
}
/* ================================================================
Reviewer
   ================================================================ */

/* ---------- Layout & basis ---------- */

.page-custom {
    padding: 3rem 0 4rem;
    font-family: "nowayregular", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page-custom h1 {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    color: #004d99;
    margin-bottom: 2.75rem;
}

.page-custom .page-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
}

/* ---------- Deloverskrifter ---------- */

.page-custom h6 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #004d99;
    margin-top: 2rem;
    margin-bottom: .75rem;
}

/* ---------- Lister ---------- */

.page-custom ul {
    margin: .5rem 0 1.5rem 1.25rem;   /* indryk + luft */
    padding-left: .25rem;
}

.page-custom ul li {
    margin-bottom: .4rem;
}

/* ---------- Links ---------- */

.page-custom a {
    color: #004d99;
    text-decoration: underline;
    transition: color .15s ease-in-out;
}

.page-custom a:hover,
.page-custom a:focus {
    color: #002d59;
    text-decoration: none;
}

/* ---------- Callout-bokse til guideline-links ---------- */

.page-custom ul li a[href^="https://www.equator-network"],
.page-custom ul li a[href*="cdn.elsevier.com"] {
    position: relative;
    padding-left: 1.6rem;
}

/* lille ikon foran eksterne guideline-links */
.page-custom ul li a[href^="https://www.equator-network"]::before,
.page-custom ul li a[href*="cdn.elsevier.com"]::before {
    content: "⤴";
    font-size: .85rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* ---------- Blockquote (evt. fremtidige citater) ---------- */

.page-custom blockquote {
    border-left: 4px solid #004d99;
    background: #eaf2fb;
    padding: .75rem 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* ---------- Responsiv finjustering ---------- */

@media (max-width: 767.98px) {
    .page-custom h1 {
        font-size: 2rem;
    }
    .page-custom .page-content {
        font-size: 1rem;
    }
}
/* ================================================================
   View-issue / PDF-viewer  
   ================================================================ */

/* ---------- topbar  ---------- */
.pdf-header{
    position: fixed;                  /* fasthold i toppen  */
    top: 0;
    left: 0;
    right: 0;
    height: var(--pdf-header-height);
    background:#004d99;
    color:#fff;
    padding:.75rem 1.25rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 2px 4px rgba(0,0,0,.12);
    z-index:20;
}

.pdf-return-article .btn-text {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: inline-block; 
    transition: opacity 0.2s;
    text-indent: -0.5rem; 
    padding-left: 0.75rem; 
}

.pdf-return-article .btn-text::before {
    content: "";
    margin-right: 0;
}

.pdf-return-article .btn-text:hover,
.pdf-return-article .btn-text:focus {
    opacity: 0.8;
    text-decoration: none;
}

/* Default */
.pdf-download-button .btn{
  background:#fff;
  color:#004d99;
  border:1px solid transparent;          /* transparent 1 px border */
  border-radius:.35rem;
  font-weight:700;
  padding:.45rem 1.15rem;
  line-height:1.2;
  display:inline-flex;
  align-items:center;
  transition:background-color .2s,
              border-color .2s;          /* animate border colour too */
}

/* Hover / focus */
.pdf-download-button .btn:hover,
.pdf-download-button .btn:focus{
  background:#eaf2fb;
  border-color:var(--akut-red);          /* akut-red border */
  text-decoration:none;
}


/* ---------- PDF-rammen skubbes ned under topbar ---------- */
.pdf-frame{
    margin-top:var(--pdf-header-height);               /* vigtig linje  */
    width:100%;
    height:calc(100vh - var(--pdf-header-height));     /* fuld højde     */
}
.pdf-frame iframe{
    width:100%!important;
    height:100%!important;
    border:none;
}

/* ---------- mobiltilpasning ---------- */
@media(max-width:575.98px){
    :root{--pdf-header-height:100px;}                  /* to linjer → højere bar */
    .pdf-header{flex-direction:column;align-items:flex-start;}
    .pdf-download-button{margin-top:.5rem;width:100%;}
    .pdf-download-button .btn{width:100%;justify-content:center;}
}
/* Apply homepage-issue container styles to the issue view page */
.container.page-issue {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  max-width: 72rem;
  margin: 2.5rem auto;
}

/* Style the issue identifier (volume/number) */
.page-header.page-issue-header h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0.25rem 0 1.5rem;
  position: relative;
}

/* Red underline beneath the identifier */
.page-header.page-issue-header h1::before {
  content: "";
  position: absolute;
  bottom: -0.7rem;
  left: 50%;
  width: 3rem;
  height: 2px;
  background: var(--akut-red);
  transform: translateX(-50%);
}

/* Tiny logo to the right of the identifier */
.page-header.page-issue-header h1::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: .5rem;
  background:
    url("https://tidsskrift.dk/public/site/images/matin/mceclip1.png")
    no-repeat center/contain;
}
/* ─── Issue description panel ─────────────────────────────────────── */
.page-issue-description-wrapper {
    display: grid;
    /* month auto-width, PDF block shrink-to-fit */
    grid-template-columns: auto max-content !important;
    align-items: center !important;
    gap: 32px !important;

    /* preserve existing design */
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 40px 50px;
    margin: 45px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.03);
}

/* only on the single-issue view (not the homepage) */
.container.page-issue .issue-toc-section-title {
  display: block;
  color: #D44949;
  font-size: 14px;
font-size: 1rem;
  text-transform: uppercase;
  font-variant: small-caps;
  letter-spacing: .1rem;
  color: var(--akut-red);
  text-align: center;
  margin: 2rem 0 1rem;
}

/* left side – month label */
.page-issue-description {
    align-self: center;
    text-align: left;
}
.page-issue-description .h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #24364a;
}

/* right side – download block */
.page-issue-galleys {
    text-align: left;
    align-self: center;
}
.page-issue-galleys .h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #24364a;
}

/* Override PDF button to homepage style, with uppercase text */
.page-issue-galleys .btn {
    background: transparent;
    color: var(--akut-red);
    border: var(--border);
    border-radius: 999px;
    padding: .55em 1.4em;
    font-weight: 600;
    text-transform: uppercase;
    transition: background var(--trans), color var(--trans);
}

.page-issue-galleys .btn:hover {
    background: var(--akut-red);
    color: #fff;
}

/* ─── Responsive – stack on narrow screens ───────────────────────── */
@media (max-width: 768px) {
    .page-issue-description-wrapper {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 30px;
        gap: 24px !important;
    }
    .page-issue-galleys,
    .page-issue-description {
        justify-self: center;
    }
}



/* Publication date styling */
.page-issue-date {
  font-size: .9rem;
  color: #555;
  text-align: center;
  margin: 0 0 1.5rem;
}
/* article-view.css */

/* --- always hide the duplicate plain identifier, show only the logo version --- */
.article-details-issue-identifier:not(.large-screen) {
  display: none !important;
}

/* 1) Hide the redundant bottom PDF link */
.article-details-block.article-details-galleys.article-details-galleys-btm {
  display: none !important;
}

/* 2) Center cover & sidebar galley blocks */
.article-details-sidebar .article-details-block.article-details-cover,
.article-details-sidebar .article-details-block.article-details-galleys.article-details-galleys-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 1rem;
}

/* 3) PDF button (desktop) */
.article-details-sidebar
  .article-details-block.article-details-galleys.article-details-galleys-sidebar
  .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #fff url("https://tidsskrift.dk/public/site/images/matin/pdflogo1.png")
              no-repeat 0.8rem center;
  background-size: 1.4rem;
  color: #004d99;
  text-transform: uppercase;
  border: 1px solid var(--accent, #c00);
  border-radius: 0.3rem;
  padding: 0.6rem 1rem 0.6rem 2.8rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: border-color 0.2s ease,
              box-shadow   0.2s ease,
              transform    0.2s ease,
              background   0s; /* prevent Bootstrap from animating away the image */
}

/* Hover & focus */
.article-details-sidebar
  .article-details-block.article-details-galleys.article-details-galleys-sidebar
  .btn.btn-primary:hover,
.article-details-sidebar
  .article-details-block.article-details-galleys.article-details-galleys-sidebar
  .btn.btn-primary:focus {
  background: #fff url("https://tidsskrift.dk/public/site/images/matin/pdflogo1.png")
              no-repeat 0.8rem center !important;
  background-size: 1.4rem !important;
  border-color: #e60000 !important;
  color: #004d99 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  transform: translateY(-1px) !important;
  outline: none;
}

/* Identifier-logo */
/* only the .large-screen gets shown thanks to the rule above */
.article-details-issue-identifier.large-screen {
  position: relative;
  display: inline-block;
  pointer-events: auto;
}
.article-details-issue-identifier.large-screen::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 1rem;
  height: 1rem;
  margin-left: 0.1rem;
  background: url("https://tidsskrift.dk/public/site/images/matin/mceclip1.png")
              no-repeat center/contain;
  pointer-events: auto;
}
.article-details-issue-identifier.large-screen:hover::before {
  content: "Open access";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-0.5rem);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  white-space: nowrap;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation: fadeInTooltip 0.2s forwards;
}

@keyframes fadeInTooltip {
  to { opacity: 1; }
}


/* === Mobile version adjustments (max-width: 768px) === */
@media (max-width: 768px) {

  /* 0) Hide the old small-screen year+section block */
  .article-details-issue-section.small-screen {
    display: none !important;
  }

  /* 0b) Force-show our two large-screen pieces on mobile */
  .article-details-issue-identifier.large-screen,
  .article-details-issue-section.large-screen {
    display: block !important;
  }

  /* 1) Stack all sidebar blocks full-width */
  .article-details-sidebar .article-details-block {
    width: 100%;
    margin: 0 0 1rem;
    padding: 0 1rem;
  }

  /* 2) PDF button: use desktop styles (no full-width override) */
  .article-details-sidebar
    .article-details-block.article-details-galleys.article-details-galleys-sidebar
    .btn.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    background: #fff url("https://tidsskrift.dk/public/site/images/matin/pdflogo1.png")
                no-repeat 0.8rem center !important;
    background-size: 1.4rem !important;
    color: #004d99 !important;
    text-transform: uppercase !important;
    border: 1px solid var(--accent, #c00) !important;
    border-radius: 0.3rem !important;
    padding: 0.6rem 1rem 0.6rem 2.8rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    transition: border-color 0.2s ease,
                box-shadow    0.2s ease,
                transform     0.2s ease,
                background    0s !important;
    width: auto !important;  /* undo full-width on mobile */
  }

  /* 3) Hover & focus on mobile: same as desktop */
  .article-details-sidebar
    .article-details-block.article-details-galleys.article-details-galleys-sidebar
    .btn.btn-primary:hover,
  .article-details-sidebar
    .article-details-block.article-details-galleys.article-details-galleys-sidebar
    .btn.btn-primary:focus {
    background: #fff url("https://tidsskrift.dk/public/site/images/matin/pdflogo1.png")
                no-repeat 0.8rem center !important;
    background-size: 1.4rem !important;
    border-color: #e60000 !important;
    color: #004d99 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
  }

  /* 4) Cover image full width */
  .article-details-sidebar .article-details-block.article-details-cover img {
    max-width: 100%;
    height: auto;
  }

  /* 5) Tooltip tweak */
  .article-details-issue-identifier.large-screen:hover::before {
    left: 50%;
  }
}

/* ===== Citation Box Container ===== */
.article-details-how-to-cite {
  background-color: #f7f7f7; /* updated background */
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #333;
  margin-top: 1.5rem;
}

.article-details-how-to-cite h2.article-details-heading {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}

/* ===== Citation Output ===== */
#citationOutput {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #222;
}

#citationOutput i {
  font-style: italic;
}

/* ===== Citation Dropdown Button ===== */
#cslCitationFormatsButton {
  background-color: #ffffff;
  color: #222;
  border: 1.5px solid #004c97;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 1.4;
}

#cslCitationFormatsButton:hover,
#cslCitationFormatsButton:focus {
  background-color: #004c97;
  color: #ffffff;
  outline: none;
}

/* ===== Dropdown Menu Styles ===== */
#cslCitationFormatsButton + .dropdown-menu {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  min-width: 100%;
  padding: 0.4em 0;
  margin-top: 0.25rem;
  z-index: 1050;
}

/* ===== Dropdown Items ===== */
#cslCitationFormatsButton + .dropdown-menu .dropdown-item {
  padding: 0.4em 1em;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: normal;
}

#cslCitationFormatsButton + .dropdown-menu .dropdown-item:hover {
  background-color: #004c97;
  color: #fff;
}

/* ===== Dropdown Header (Download section) ===== */
#cslCitationFormatsButton + .dropdown-menu .dropdown-header {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.5em 1em 0.25em;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 0.5em;
}
#articleMain {
  border-radius: 11px;
}

/* ====== Nøgleord ====== */
.article-details-block.article-details-keywords {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

/* Heading */
.article-details-block.article-details-keywords > h2.article-details-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--akut-red);
  margin-bottom: .75rem;
  position: relative;
  padding-bottom: .25rem;
  text-align: center;           
}
.article-details-block.article-details-keywords > h2.article-details-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30%;
  height: 2px;
  background: var(--akut-red);
  transform: translateX(-50%);
}

.article-details-keywords-value br { display: none; }

/* Two-row, column-flow grid + horizontal scroll */
.article-details-block.article-details-keywords .article-details-keywords-value {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: max-content;
  column-gap: 0.8rem;
  row-gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

/* Keyword pills */
.article-details-block.article-details-keywords .article-details-keywords-value span {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  color: #333;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.article-details-block.article-details-keywords .article-details-keywords-value span:hover {
  background: var(--akut-red);
  border-color: var(--akut-red);
  color: #fff;
}

/* Fix overflow of underscore */
.article-details-main p {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ================================
   Alert - ny version af artikel
   ================================ */
/* 1) Base alert styling */
.container.page-article .alert.alert-primary {
  background-color: #fbeaea !important;
  border-left: 8px solid #d93025 !important;
  color: #d93025 !important;
  padding: 1rem 1.25rem !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  position: relative;
  /* 2) Animation properties */
  animation-name: pulseAlert !important;
  animation-duration: 4s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
}

/* 3) Warning icon */
.container.page-article .alert.alert-primary::before {
  content: "⚠️";
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.2em;
  vertical-align: middle;
  color: inherit;
}

/* 4) Links inside */
.container.page-article .alert.alert-primary a {
  color: inherit !important;
  text-decoration: underline !important;
}
.container.page-article .alert.alert-primary a:hover {
  opacity: 0.8;
}

/* 5) Keyframes (with WebKit fallback) */
@-webkit-keyframes pulseAlert {
  0%,100% {
    background-color: #fbeaea;
    border-left-color: #d93025;
    color: #d93025;
  }
  50% {
    background-color: #e5f5ff;
    border-left-color: #2185d0;
    color: #2185d0;
  }
}

@keyframes pulseAlert {
  0%,100% {
    background-color: #fbeaea;
    border-left-color: #d93025;
    color: #d93025;
  }
  50% {
    background-color: #e5f5ff;
    border-left-color: #2185d0;
    color: #2185d0;
  }
}

/* ================================
   1) References: hanging indent
   ================================ */
#articleMain .article-details-block.article-details-references {
  margin-top: 3rem;        
  padding-top: 2rem;       /* space before the refs themselves */
  border-top: 1px solid #ddd;  /* a thin separator line */
}

#articleMain .article-details-block.article-details-references .article-details-references-value {
  counter-reset: refs;
}

#articleMain .article-details-references-value p {
  position: relative;
  counter-increment: refs;
  margin: 1em 0;
  padding-left: 2.5em;
  line-height: 1.6;
  font-size: 0.95em;
  border-bottom: 1px solid #eee;
  padding-bottom: 1em;
}

#articleMain .article-details-references-value p:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

#articleMain .article-details-references-value p::before {
  content: counter(refs) ".";
  position: absolute;
  left: 0;
  width: 2em;
  text-align: right;
  font-weight: bold;
  color: #555;
}

/* =========================================
   2) License block
   ========================================= */
#articleMain .article-details-block.article-details-license {
  margin-top: 2em;         
  padding-top: 1em;         
  border-top: 1px solid #ddd;
  font-size: 0.9em;         
  color: #666;              

  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
}

#articleMain .article-details-block.article-details-license p {
  margin: 0;
}

/* =========== Supplerende filer (“Supplementary files”) =========== */
/* Container */
.article-details-block.article-details-galleys-supplementary {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;      /* guard against super-long filenames */
  max-width: 100%;

  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
}

/* Heading — match the “Nøgleord” style */
.article-details-block.article-details-galleys-supplementary > h2.article-details-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--akut-red);
  margin-bottom: .75rem;
  position: relative;
  padding-bottom: .25rem;
  text-align: center;
}
.article-details-block.article-details-galleys-supplementary > h2.article-details-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30%;
  height: 2px;
  background: var(--akut-red);
  transform: translateX(-50%);
}

/* Each file link wrapper */
.article-details-block.article-details-galleys-supplementary .article-details-galley {
  margin-bottom: 0.5rem;
}
.article-details-block.article-details-galleys-supplementary .article-details-galley:last-child {
  margin-bottom: 0;
}

/* Buttons */
.article-details-block.article-details-galleys-supplementary .article-details-galley .btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: #004d99;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.article-details-block.article-details-galleys-supplementary .article-details-galley .btn:hover {
  background: #004d99;
  border-color: #004d99;
  color: #fff;
}



/* ===============================================================
   “Most read articles by the same author(s)” 
   =============================================================== */

/*-------------------------------------------------
  0.  Nuke every stray chevron / bullet / slider arrow
-------------------------------------------------*/

/* Slick-slider arrows (if the list is ever initialised as a carousel) */
#articlesBySameAuthorList .slick-prev,
#articlesBySameAuthorList .slick-next,
#articlesBySameAuthorList .slick-prev::before,
#articlesBySameAuthorList .slick-next::before {
  display: none !important;
}

/* Any pseudo bullets/chevrons the theme might inject */
#articlesBySameAuthorList li::before,
#articlesBySameAuthorList li::after {
  content: none !important;
  display: none !important;
}

/*-------------------------------------------------
  1.  Wrapper
-------------------------------------------------*/
#articlesBySameAuthorList {
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--neutral-50, #fafafa);
  border-radius: 6px;
}

/*-------------------------------------------------
  2.  Section heading (title & red underline)
-------------------------------------------------*/
#articlesBySameAuthorList h3 {
  margin: 0 0 1rem;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111;
  border-bottom: 2px solid var(--accent, #c00);
  padding-bottom: 0.25rem;
}

/*-------------------------------------------------
  3.  Responsive grid
-------------------------------------------------*/
#articlesBySameAuthorList ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/*-------------------------------------------------
  4.  Card
-------------------------------------------------*/
#articlesBySameAuthorList li {
  background: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#articlesBySameAuthorList li:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*-------------------------------------------------
  5.  First link = Article title   (bold, red)
      Second link = Citation       (quiet, grey italic)
-------------------------------------------------*/
#articlesBySameAuthorList li a:first-of-type {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent, #c00);
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: color 0.2s ease;
}
#articlesBySameAuthorList li a:first-of-type::after {
  content: "→";
  display: inline-block;
  margin-left: 0.25rem;
  transition: margin-left 0.2s ease;
}
#articlesBySameAuthorList li a:first-of-type:hover {
  color: #e60000;
  text-decoration: underline;
}
#articlesBySameAuthorList li a:first-of-type:hover::after {
  margin-left: 0.45rem;
}

/* Citation link */
#articlesBySameAuthorList li a:last-of-type {
  display: block;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  text-decoration: none;
  transition: color 0.2s ease;
}
#articlesBySameAuthorList li a:last-of-type:hover {
  color: #333;
  text-decoration: underline;
}

/* Reviewers Page Styles */

.ojs-reviewers {
  max-width: 800px;
  margin: 5px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #2c3e50;
}

.page-custom .ojs-reviewers-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  position: relative;
}
.page-custom .ojs-reviewers-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #e74c3c;
  margin: 10px auto 0;
  border-radius: 2px;
}

.ojs-reviewers-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 20px 0 25px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ojs-reviewers-visibility-note {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  background-color: #fdf6f6;
  border-left: 4px solid #e74c3c;
  padding: 12px 20px;
  margin: 0 auto 25px;
  max-width: 700px;
  border-radius: 4px;
  text-align: center;
}

.ojs-reviewers-callout {
  background-color: #e6f0fb;
  border: 1px solid #c2d7f0;
  color: #045098;
  padding: 15px 20px;
  border-radius: 6px;
  margin: 20px auto 30px;
  font-size: 16px;
  text-align: center;
  font-weight: 500;
}
.ojs-reviewers-callout a {
  color: #045098;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #045098;
  padding-bottom: 2px;
}
.ojs-reviewers-callout a:hover {
  background-color: rgba(4,80,152,0.1);
}

/* Table itself */
.ojs-reviewers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

/* Cells & stripes */
.ojs-reviewers-table th,
.ojs-reviewers-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.ojs-reviewers-table th {
  background-color: #e74c3c;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.ojs-reviewers-table tr:nth-child(even) td {
  background-color: #f9f9f9;
}
.ojs-reviewers-table tr:hover td {
  background-color: #f5f5f5;
}

/* ─────────── responsive scroll & sticky header ─────────── */

/* 1) A scroll container */
.ojs-reviewers-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
}

/* 2) Keep your header row pinned at the top */
.ojs-reviewers-table th {
  position: sticky;
  top: 0;
  z-index: 1;                /* sit above the body cells */
}

/* 3) On very small screens, allow wrapping inside cells */
@media (max-width: 480px) {
  .ojs-reviewers-table th,
  .ojs-reviewers-table td {
    white-space: normal;
    word-break: break-word;
  }
}

/* ─── Shariff social buttons — improved spacing & icons ──────────── */
.shariff a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff !important;
  border-radius: 4px;
  padding: 0.5em 1em;           /* more top/bottom padding */
  margin-right: 0.5em;
  line-height: 1;              /* ensure no extra clipping */
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Remove extra margin on last button */
.shariff a:last-child {
  margin-right: 0;
}

/* LinkedIn */
.shariff .linkedin a {
  background-color: #0077B5;
}
.shariff .linkedin a:hover {
  background-color: #005582;
  transform: translateY(-1px);
}

/* Facebook */
.shariff .facebook a {
  background-color: #4267B2;
}
.shariff .facebook a:hover {
  background-color: #365899;
  transform: translateY(-1px);
}

/* Icon sizing */
.shariff a svg,
.shariff a img {
  width: 1.2em;                 /* slightly larger */
  height: 1.2em;
  margin-right: 0.4em;
  flex-shrink: 0;               /* prevent squashing */
  fill: currentColor;           /* for SVG icons */
}

/* ── Announcements / Meddelelser ── */
.page-announcement .page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.page-announcement .page-header h1::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  background: #e74c3c;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.page-announcement .page-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 2rem;
  padding: 3.5rem 2rem 1rem;
  margin: 0 auto;
  max-width: 1400px;
}

.page-announcement .btn-edit-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.page-announcement .announcement-summary {
  transition: transform .2s, box-shadow .2s;
}
.page-announcement .announcement-summary:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* article title color */
.page-announcement .announcement-summary h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #004d99;
  font-weight: 500;
}
.page-announcement .announcement-summary h2 a {
  color: inherit;
  text-decoration: none;
}
/* remove link underline entirely */
.page-announcement .announcement-summary h2 a:hover {
  text-decoration: none;
}

/* date styling */
.page-announcement .announcement-summary-date {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c7a89;
  margin: 0.75rem 0 1.25rem;
  border-left: 4px solid #e74c3c;
  padding-left: 0.75rem;
}

/* collapse columns on smaller screens */
@media (max-width: 900px) {
  .page-announcement .page-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .page-announcement .page-content {
    grid-template-columns: 1fr;
  }
}

/* ── View Announcement ── */

/* Center & uppercase the date */
.page-announcement .announcement-date {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c7a89;
  margin-bottom: 0.5rem;
}

/* nuke the template’s grey line/HR under the header */
.page-announcement .page-header {
  border-bottom: none;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.page-announcement .page-header hr {
  display: none;
}

/* Title styling */
.page-announcement .page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  color: #243447;
  text-align: center;
  margin: 0;
  position: relative;
}
/* Your red underline */
.page-announcement .page-header h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: #e74c3c;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Body container */
.page-announcement .page-announcement-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}
.page-announcement .page-announcement-content p {
  margin-bottom: 1.25rem;
}
.page-announcement .page-announcement-content strong {
  color: #243447;
}
/* ── Search Page ── */
.page-search {
  /* less top/bottom padding to remove extra white-space */
  padding: 2rem 1rem 2rem;
  background: #fff;
}

/* 1) Page title */
.page-search .page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  color: #243447;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.page-search .page-header h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: #e74c3c;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* 2) Two-column layout */
.page-search .row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.page-search .search-col-results {
  flex: 1 1 60%;
  min-width: 300px;
  padding-left: 1rem;
}
.page-search .search-col-filters {
  flex: 1 1 30%;
  min-width: 260px;
}

/* 3) Filter panel styling */
.page-search .search-filters {
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 1.5rem;
}
/* tighten space between fields */
.page-search .search-filters .form-group {
  margin-bottom: 1rem;
}
.page-search .search-filters h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #243447;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .25rem;
}
.page-search .search-filters h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2rem; height: 3px;
  background: #e74c3c;
  border-radius: 2px;
}
.page-search .form-search label {
  display: block;
  font-weight: 600;
  color: #243447;
  margin-bottom: .5rem;
}
.page-search .form-search .form-control,
.page-search .form-control-date select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.page-search .form-search .form-control:focus,
.page-search .form-control-date select:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.15);
}
.page-search .form-control-date {
  display: flex;
  gap: .5rem;
}

/* 4) Søg button: fade & lift */
.page-search .form-search .btn-primary {
  background-color: #e74c3c;
  border: none;
  border-radius: 4px;
  padding: .6rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: .75rem;                  /* tighter than before */
  transition: background-color .3s ease,
              transform .2s ease;
}
.page-search .form-search .btn-primary:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}
.page-search .form-search .btn-primary:focus {
  outline: 3px solid rgba(231,76,60,.4);
  outline-offset: 2px;
}

/* 5) “No results” alert */
.page-search .search-results .alert {
  background-color: #f0f6fb;
  border-color: #cce3f7;
  color: #084e9b;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* 6) Individual result items */
.page-search .search-results .search-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ececec;
}
.page-search .search-results .search-item:last-child {
  border-bottom: none;
}
.page-search .search-item h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: #004d99;
  margin: 0 0 .5rem;
  position: relative;
}
.page-search .search-item h3 a {
  color: inherit;
  text-decoration: none;
}
.page-search .search-item h3 a:hover {
  text-decoration: underline;
}
.page-search .search-item .meta-date {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c7a89;
  margin-bottom: .75rem;
  border-left: 4px solid #e74c3c;
  padding-left: .75rem;
}
.page-search .search-item .doi {
  display: block;
  color: #e74c3c;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.page-search .search-item .authors {
  font-size: .9rem;
  color: #555;
  margin-bottom: .75rem;
}
.page-search .search-item .excerpt {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* 7) Pagination */
.page-search .search-results .pagination {
  text-align: center;
  margin-top: 2rem;
}
.page-search .search-results .pagination li a {
  color: #243447;
  padding: .5rem .75rem;
}
.page-search .search-results .pagination .active a {
  background: #e74c3c;
  color: #fff;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 992px) {
  .page-search .search-col-filters {
    margin-top: 2rem;
  }
}
/* ── Login Page — refined ── */
.page-login {
  padding: 2rem 1rem 3rem;
  background: #fafafa;
}

/* Header */
.page-login .page-header {
  text-align: center;
  margin-bottom: 2rem;
}
.page-login .page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: #243447;
  margin: 0;
  position: relative;
}
.page-login .page-header h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: #e74c3c;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Card container */
.page-login .page-content {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Labels & inputs */
.page-login .form-login label {
  display: block;
  font-weight: 600;
  color: #243447;
  margin-bottom: .5rem;
}
.page-login .form-login .form-control {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .95rem;
  margin-bottom: 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.page-login .form-login .form-control:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.15);
}

/* Forgot & remember row */
.page-login .form-group-forgot {
  float: left;
}
.page-login .form-group-forgot a {
  font-size: .875rem;
  color: #6c7a89;
  text-decoration: none;
  transition: text-decoration .2s;
}
.page-login .form-group-forgot a:hover {
  color: #6c7a89;              /* keep original color */
  text-decoration: underline;
}
.page-login .form-group-remember {
  float: right;
}
.page-login .form-check-label {
  font-size: .875rem;
  color: #243447;
}
.page-login .form-check-input {
  margin-right: .5rem;
  transform: scale(1.1);
}

/* Clear floats before button */
.page-login .form-group-buttons {
  clear: both;
  margin-top: 1.5rem;
}

/* Login button */
.page-login .form-group-buttons .btn-primary {
  display: block;
  width: 100%;
  background-color: #004d99;
  border: none;
  border-radius: 4px;
  padding: .75rem;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
}
.page-login .form-group-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 8px rgba(231,76,60,0.8),   /* red glow */
    0 6px 12px rgba(0,0,0,0.08);
}
.page-login .form-group-buttons .btn-primary:focus {
  outline: none;
  box-shadow:
    0 0 8px rgba(231,76,60,0.8),
    0 0 0 3px rgba(231,76,60,0.3);
}

/* Register link */
.page-login .form-group-register {
  text-align: center;
  margin-top: 1.5rem;
}
.page-login .form-group-register a {
  color: #243447;
  font-weight: 600;
  text-decoration: none;
  transition: text-decoration .2s;
}
.page-login .form-group-register a:hover {
  color: #243447;              /* keep original color */
  text-decoration: underline;
}


/* ---------- 1. Policies ---------- */
:root {
  --card-radius:      8px;
  --primary-color:    #b02025;   /* rød accent */
  --secondary-color:  #006b6b;   /* teal */
  --bg-surface:       #ffffff;
  --bg-backdrop:      #f5f5f5;
  --border-light:     #e0e0e0;
  --shadow-light:     0 1px 4px rgba(0,0,0,0.05);
  --shadow-strong:    0 3px 12px rgba(0,0,0,0.12);
  --ok-color:         #168a28;
}

/* ---------- 2. Navigation (pill-style) ---------- */
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 1.5rem 0 2rem;
  padding: .5rem;
  background: var(--bg-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-light);
}

.policy-nav a {
  font: 500 .95rem/1 "Inter", sans-serif;
  color: var(--primary-color);
  text-decoration: none;
  padding: .4rem .8rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--card-radius);
  transition: background .2s ease, color .2s ease, transform .1s ease;
}

.policy-nav a:hover,
.policy-nav a:focus {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- 3. Side-wrapper ---------- */
.policy-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: var(--bg-backdrop);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ---------- 4. Kort (alle sektioner) ---------- */
.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-light);
  padding: 1.75rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.policy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

/* ---------- 5. Overskrifter ---------- */
.policy-card > h2 {
  margin-top: 0;
  font: 700 1.4rem/1.2 "Inter", sans-serif;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: .6rem;
}

/* ---------- 6. Brødtekst og lister ---------- */
.policy-card p,
.policy-card li {
  font: 400 .95rem/1.6 "Inter", sans-serif;
  color: #222;
  margin: .6rem 0;
}
.policy-card ol,
.policy-card ul {
  margin: .6rem 0 1rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
/* bullet + mellemrum */
.policy-card li::marker {
  content: "• ";  /* bullet + non-breaking space */
  color: var(--primary-color);
  font-weight: 700;
}

/* ---------- 7. Links i kortene ---------- */
.policy-card a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy-card a:hover {
  text-decoration: none;
}

/* ---------- 8. Flowchart-styling (HTML-baseret) ---------- */
.flowchart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}
.flow-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: .6rem 1rem;
  box-shadow: var(--shadow-light);
  font: 400 .95rem/1.4 "Inter", sans-serif;
  color: #222;
  white-space: nowrap;
}
.flow-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
  user-select: none;
}

/* ---------- 9. Media queries ---------- */
@media(min-width: 768px) {
  .policy-page {
    padding: 3rem 2rem;
  }
  .policy-card {
    padding: 2rem 2.25rem;
  }
}
/* Login modal */
#loginModal .modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#loginModal .modal-header {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

#loginModal .modal-body {
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
}

/* Container */
.page-contact {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: var(--font-sans);
  color: #333;
}

/* Title */
.page-contact .page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  color: #243447;
}

/* Grid layout */
.page-contact .contact-section {
  display: grid;
  justify-content: center;
  justify-items: center;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 2rem;
}

/* Address spans both columns and gets an accent bar */
.page-contact .contact-section > .address {
  grid-column: 1 / -1;
  background: #fff8f8;                       /* very light red tint */
  border: 1px solid #e0e0e0;
  border-left: 6px solid var(--akut-red);    /* accent bar */
  border-radius: 6px;
  padding: 1.75rem 2.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Cards for primary & support */
.page-contact .contact-primary,
.page-contact .contact-support {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.75rem 2.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Section headings inside cards */
.page-contact h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--akut-red);
  position: relative;
  padding-bottom: 0.25rem;
}
.page-contact h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50%;
  height: 3px;
  background: var(--akut-red);
  transform: translateX(-50%);
}

/* Name & email */
.page-contact .contact-name {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #222;
}
.page-contact .contact-email a {
  font-size: 1.15rem;
  color: var(--akut-red);
  text-decoration: none;
}
.page-contact .contact-email a:hover {
  text-decoration: underline;
}

/* Mobile: single column */
@media (max-width: 767px) {
  .page-contact .contact-section {
    grid-template-columns: 1fr;
  }
}