/* =============================================================================
   header.css — samræmdur haus á öllum lesenda-síðum (byggður á Yfirlit-hausnum).
   Sami í stærð og útliti alls staðar. Á Bloggið-síðunni fær .site-header__wrap
   klasann .is-sticky og minnkar lítillega þegar skrollað er niður
   (header-scroll.js setur klasann html.hdr-scrolled).
   ============================================================================= */

.site-header__wrap { background: transparent; }

.site-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ece6da;
}

/* ----- vörumerki (titill + undirtitill) ----- */
.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1.1;
  text-decoration: none;
}
.site-header__title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 25px;
  color: #1c1815;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header__subtitle {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12.5px;
  color: #9a9182;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- flakk ----- */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a443c;
}
.site-header__nav > a {
  text-decoration: none;
  color: #4a443c;
  cursor: pointer;
  white-space: nowrap;
}
.site-header__nav > a:hover { color: #1c1815; }

.site-header__auth {
  border: 1px solid #1c1815;
  background: none;
  border-radius: 20px;
  padding: 7px 17px;
  font-size: 13px;
  font-weight: 600;
  color: #1c1815 !important;
  cursor: pointer;
}
.site-header__auth:hover { background: #f3ece0; }

/* ----- Flokkar-fellilisti ----- */
.site-header__cats { position: relative; }
.site-header__cats summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a443c;
  white-space: nowrap;
}
.site-header__cats summary:hover { color: #1c1815; }
.site-header__cats summary::-webkit-details-marker { display: none; }
.site-header__cats summary::marker { content: ""; }
.site-header__caret { font-size: 10px; opacity: .7; }

.site-header__catmenu {
  position: absolute;
  top: 34px;
  right: 0;
  background: #ffffff;
  border: 1px solid #ece6da;
  border-radius: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  padding: 7px;
  min-width: 182px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.site-header__catmenu a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 4px;
  font-size: 13.5px;
  color: #3a342d;
}
.site-header__catmenu a:hover { background: #f7f2e9; }
.site-header__catmenu .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ----- sticky + minnkun á skrolli (aðeins þar sem .is-sticky er sett) ----- */
.site-header__wrap.is-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html.hdr-scrolled .site-header__wrap.is-sticky .site-header {
  padding-top: 14px;
  padding-bottom: 12px;
}
html.hdr-scrolled .site-header__wrap.is-sticky .site-header__title { font-size: 18.5px; }
html.hdr-scrolled .site-header__wrap.is-sticky .site-header__subtitle { display: none; }
