@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;600;700&display=swap');

body.portal {
  --green: #0a2f24;
  --mustard: #c8963a;
  --ink: #1f2420;
  --muted: #5a635c;
  --paper: #f7f4ee;
  --line: #ddd6c8;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: var(--paper);
  margin: 0;
}

.portal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.4rem 3rem;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 72px 0 28px;
  border-bottom: 1px solid var(--line);
  animation: fade 0.7s ease both;
}
.portal-header img {
  width: min(340px, 70vw);
  height: auto;
  display: block;
  flex-shrink: 0;
}
.portal-header .place {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .portal-header {
    padding: 48px 0 24px;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .portal-header .place {
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
  }
}

.portal-lead {
  margin: 28px 0 1.75rem;
  max-width: 36em;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--muted);
  animation: rise 0.7s ease 0.05s both;
}

/* Hus – moderat, ikkje fullskjerm */
.portal-building {
  margin: 0 0 2.75rem;
  animation: rise 0.75s ease 0.1s both;
}
.portal-building figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.55rem;
}
.portal-building img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.portal-building figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.portal-building a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--mustard);
}
.portal-building a:hover { color: var(--mustard); }

/* Klassiske avdelingslenker */
.portal-depts-head {
  margin: 0.35rem 0 1.25rem;
}
.portal-eyebrow {
  margin: 0 0 0.4rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mustard);
}
.portal-depts-head h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  margin: 0;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.doors {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  animation: rise 0.7s ease 0.15s both;
}
.door {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.door:hover { background: rgba(255,255,255,.55); }
.door:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }

.door .thumb {
  width: 112px;
  height: 112px;
  object-fit: cover;
  display: block;
  background: #ebe6dc;
}
.door .dept-mark {
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}
.door .text h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  color: var(--green);
}
.door .text p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 38ch;
  font-weight: 400;
}
.door .go {
  font-size: 15px;
  font-weight: 600;
  color: var(--mustard);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .door {
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto;
  }
  .door .thumb, .door .dept-mark { width: 88px; height: 88px; }
  .door .go {
    grid-column: 2;
    justify-self: start;
  }
}

.portal-sell {
  margin-top: 2.5rem;
  padding: 1.5rem 1.35rem 1.6rem;
  background: #fff8ee;
  border: 1px solid #ead9b8;
}
.portal-sell h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--green);
}
.portal-sell > p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40em;
  font-size: 16px;
  font-weight: 400;
}
.portal-sell-btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: var(--mustard);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.portal-sell-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.portal-sell-note {
  margin: 1rem 0 0 !important;
  font-size: 15px !important;
  color: var(--muted);
}
.portal-sell-note a {
  color: var(--green);
  font-weight: 600;
}

.portal-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.portal-meta strong { color: var(--green); }
.portal-meta a { font-weight: 500; color: var(--green); }
.portal-meta .cols {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .portal-meta .cols { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
}
.portal-meta p { margin: 0 0 0.2rem; }
