/* ===========================================================
   Keeperlegender — pages.css
   Sidespesifikke blokker: hero, longread, lister, kontakt, juridisk
   =========================================================== */

/* ---------- Hero (index) ---------- */
.hero__title {
  margin: 1.2rem 0 1.3rem;
}

.hero__title span {
  color: var(--lime);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head__text {
  max-width: 58ch;
}

.section-head h2 {
  margin: 0.8rem 0 0.6rem;
}

.section-head p {
  font-size: 1.02rem;
}

/* ---------- Page header (interior) ---------- */
.page-head__breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted-2);
  margin-bottom: 1.4rem;
}

.page-head__breadcrumb a:hover {
  color: var(--lime);
}

.page-head h1 {
  margin: 1rem 0 1.2rem;
}

/* ---------- Longread / article ---------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}

.article > * + * {
  margin-top: 1.3rem;
}

.article h2 {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  scroll-margin-top: 90px;
}

.article h3 {
  margin-top: 2rem;
}

.article p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--muted);
}

.article p strong {
  color: var(--ink);
}

.article ul.bullets {
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
}

.article ul.bullets li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.article ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
  transform: rotate(45deg);
}

.article figure {
  margin-block: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.article figure .pitch-art {
  position: relative;
  aspect-ratio: 16 / 9;
}

.article figcaption {
  font-size: 0.85rem;
  color: var(--muted-2);
  padding: 0.8rem 1.1rem;
  background: var(--bg-2);
}

.pullquote {
  border: none;
  border-left: 3px solid var(--lime);
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin-block: clamp(2rem, 4vw, 3rem) !important;
}

.pullquote p {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pullquote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--lime);
  font-family: var(--font-body);
}

/* Table of contents (sidebar) */
.article-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1.3rem;
  background: var(--panel);
}

.toc h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lime);
  margin-bottom: 0.9rem;
}

.toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.32rem 0;
}

.toc a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

/* ---------- Keeper profile list ---------- */
.keeper {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 26px);
  transition: var(--t-med);
}

.keeper:hover {
  border-color: rgba(200, 245, 59, 0.22);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.keeper__num {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(15, 182, 166, 0.5), transparent 60%),
    var(--bg-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--lime);
  border: 1px solid var(--line-soft);
}

.keeper__body h3 {
  font-size: 1.25rem;
}

.keeper__body .keeper__nation {
  font-size: 0.86rem;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.keeper__body p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

@media (max-width: 540px) {
  .keeper {
    grid-template-columns: 70px 1fr;
  }

  .keeper__num {
    font-size: 1.4rem;
  }
}

/* ---------- Ranked top-saves list ---------- */
.rank {
  counter-reset: rank;
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}

.rank__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--panel);
  transition: var(--t-med);
}

.rank__item:hover {
  border-color: rgba(200, 245, 59, 0.22);
  background: var(--bg-3);
}

.rank__item::before {
  counter-increment: rank;
  content: counter(rank, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lime);
  line-height: 0.9;
}

.rank__body h3 {
  font-size: 1.18rem;
}

.rank__body .rank__where {
  font-size: 0.84rem;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.rank__body p {
  font-size: 0.96rem;
}

/* ---------- Steps (training) ---------- */
.steps {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(16px, 2.4vw, 26px);
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.step__num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(200, 245, 59, 0.1);
  border: 1px solid rgba(200, 245, 59, 0.25);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--lime);
}

.step__num::before {
  content: counter(step);
}

.step__body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step__body p {
  font-size: 0.96rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(120% 160% at 90% 10%, rgba(15, 182, 166, 0.32), transparent 55%),
    radial-gradient(120% 160% at 0% 100%, rgba(200, 245, 59, 0.22), transparent 50%),
    var(--bg-3);
  text-align: center;
}

.cta-band h2 {
  max-width: 22ch;
  margin: 0.8rem auto 1rem;
}

.cta-band p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink);
  opacity: 0.9;
}

/* ---------- About ---------- */
.values {
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
}

.values .card__icon {
  margin-bottom: 0.9rem;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  padding-left: clamp(20px, 3vw, 34px);
  margin-top: 1rem;
}

.timeline__item {
  position: relative;
  padding-bottom: clamp(24px, 3vw, 36px);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(20px, 3vw, 34px) - 7px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 245, 59, 0.12);
}

.timeline__year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--lime);
  font-size: 1.1rem;
}

.timeline__item p {
  margin-top: 0.35rem;
  font-size: 0.96rem;
}

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}

.contact-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--panel);
  transition: var(--t-med);
}

.contact-card:hover {
  border-color: rgba(200, 245, 59, 0.22);
  transform: translateY(-3px);
}

.contact-card .card__icon {
  margin-bottom: 0;
  flex: none;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.contact-card a,
.contact-card p {
  font-size: 0.98rem;
  color: var(--muted);
}

.contact-card a:hover {
  color: var(--lime);
}

@media (max-width: 620px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 800px;
  margin-inline: auto;
}

.legal h2 {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.legal h3 {
  margin-top: 1.8rem;
  font-size: 1.15rem;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.legal > * + * {
  margin-top: 1.1rem;
}

.legal ul {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.4rem;
}

.legal ul li {
  list-style: disc;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  font-size: 0.94rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-soft);
  vertical-align: top;
}

.legal th {
  background: var(--bg-3);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.85rem;
}

.legal td {
  color: var(--muted);
}

.legal__updated {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--muted-2);
  border: 1px solid var(--line-soft);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-top: 1rem;
}

/* ---------- Quote / wide note ---------- */
.note {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--bg-3);
  padding: clamp(22px, 3vw, 32px);
}

.note p {
  color: var(--ink);
  opacity: 0.9;
}
