:root {
  --blue: #2f6f9f;
  --blue-dark: #1f4e73;
  --blue-light: #e7f1f8;
  --ink: #233543;
  --muted: #5c6b7a;
  --card: #ffffff;
  --border: #d8e4ee;
  --accent: #8fd3e8;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #f4f8fb;
  line-height: 1.6;
}

a {
  color: var(--blue);
}

header {
  background: var(--blue);
  color: #fff;
  padding: 0 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 80px;
  width: auto;
}

.brand small {
  display: block;
  font-weight: 400;
  font-size: .8rem;
  opacity: .85;
}

nav a {
  color: #e2eef8;
  text-decoration: none;
  margin-left: 18px;
  font-size: .95rem;
}

nav a:hover {
  color: #fff;
  text-decoration: underline;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 32px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.hero p {
  margin: 0;
  opacity: .92;
  max-width: 640px;
}

.hero-about {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  scroll-margin-top: 130px;
}

.hero-about h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 1.05rem;
}

.hero-about p {
  max-width: 720px;
  opacity: .9;
}

section {
  margin-bottom: 40px;
}

section[id] {
  scroll-margin-top: 130px;
}

@media (max-width: 700px) {
  section[id],
  .hero-about {
    scroll-margin-top: 195px;
  }
}

h2,
.page-title {
  color: var(--blue-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.page-title {
  margin-top: 0;
  font-size: 1.5rem;
}

.page-intro {
  margin-top: -4px;
  max-width: 720px;
}

nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}

.news-list {
  display: grid;
  gap: 20px;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-media {
  position: relative;
  overflow: hidden;
  background: var(--blue-light);
}

.news-media::before {
  content: "";
  position: absolute;
  inset: -24px;
  display: none;
  background-image: var(--news-bg);
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: .35;
  transform: scale(1.08);
}

.news-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Facebook/reel images are often portrait. Show the whole image and fill the
   side space with a soft, blurred version of the same image. */
.news-media.is-portrait::before {
  display: block;
}

.news-media.is-portrait img {
  height: 420px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .news-media.is-portrait img {
    height: 300px;
  }
}

.news-body {
  padding: 18px 20px;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.news-body time {
  color: var(--muted);
  font-size: .85rem;
}

.news-video-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.news-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(10, 25, 40, .12), rgba(10, 25, 40, .72));
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.news-video-overlay:hover {
  background: linear-gradient(180deg, rgba(10, 25, 40, .2), rgba(10, 25, 40, .8));
}

.news-video-overlay span:last-child {
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.news-video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  font-size: 1.25rem;
}

.news-body h3 {
  margin: 6px 0 10px;
  color: var(--ink);
}

.news-body .content {
  white-space: pre-wrap;
}

/* Facebook imports render without a heading, so the text needs its own
   spacing below the date instead of relying on the h3 margin. */
.news-meta + .content {
  margin-top: 10px;
}

.news-source {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
  font-weight: 600;
}

/* Calendar ---------------------------------------------------------------- */

:root {
  --cat-fiske: #2f6f9f;
  --cat-mote: #765a9c;
  --cat-ungdom: #b87418;
  --cat-arbete: #4f7d4a;
  --cat-ovrigt: #6b7a89;
}

.calendar-subtitle {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.event-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.event-card {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.event-date {
  flex: 0 0 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 12px 8px;
}

.event-day {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.event-month {
  margin-top: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.event-main {
  min-width: 0;
  padding: 14px 18px;
}

.event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
}

.event-main h3 {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 1.05rem;
}

.event-where {
  margin: 0;
  color: var(--blue-dark);
  font-size: .9rem;
  font-weight: 600;
}

.event-desc {
  margin: 6px 0 0;
  white-space: pre-line;
}

.event-source {
  display: inline-block;
  margin-top: 8px;
  font-size: .8rem;
  font-weight: 600;
}

.event-category,
.calendar-chip {
  background: var(--cat-ovrigt);
}

.event-category {
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
}

.category-fiske { background: var(--cat-fiske); }
.category-mote { background: var(--cat-mote); }
.category-ungdom { background: var(--cat-ungdom); }
.category-arbete { background: var(--cat-arbete); }
.category-ovrigt { background: var(--cat-ovrigt); }

.calendar-toggle {
  margin-top: 2px;
}

.calendar-panel {
  margin-top: 18px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.calendar-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-head strong {
  flex: 1;
  text-align: center;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.calendar-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.calendar-today {
  margin-left: auto;
  padding: 6px 10px;
  font-size: .85rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 4px;
}

.calendar-weekdays span {
  padding: 4px 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.calendar-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 82px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-cell:hover {
  border-color: var(--blue);
}

.calendar-cell.other-month {
  opacity: .45;
}

.calendar-cell.today {
  border-color: var(--accent);
  background: #eef8fc;
}

.calendar-cell.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}

.calendar-day-number {
  font-size: .85rem;
  font-weight: 700;
}

.calendar-chips {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.calendar-chip {
  overflow: hidden;
  padding: 2px 4px;
  border-radius: 4px;
  color: #fff;
  font-size: .67rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-more {
  color: var(--muted);
  font-size: .67rem;
}

.calendar-day-events {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.calendar-day-events h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.calendar-event-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.calendar-event-row:last-child {
  border-bottom: 0;
}

.calendar-event-time {
  flex: 0 0 80px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.calendar-event-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: .9rem;
}

.calendar-event-body span {
  color: var(--muted);
  font-size: .82rem;
}

.calendar-event-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: pre-line;
}

@media (max-width: 700px) {
  .event-date {
    flex-basis: 62px;
    padding: 10px 6px;
  }

  .event-day {
    font-size: 1.45rem;
  }

  .event-main {
    padding: 12px 14px;
  }

  .calendar-panel {
    padding: 10px;
  }

  .calendar-cell {
    min-height: 50px;
    padding: 4px;
  }

  .calendar-chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }

  .calendar-chip {
    width: 6px;
    height: 6px;
    padding: 0;
    border-radius: 50%;
    text-indent: -9999px;
  }

  .calendar-more {
    font-size: .6rem;
  }

  .calendar-event-time {
    flex-basis: 68px;
  }
}

/* Gallery ----------------------------------------------------------------- */

.gallery-privacy {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .92rem;
}

.gallery-privacy a {
  font-weight: 600;
}

.gallery-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.gallery-year {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--blue-dark);
  padding: 6px 12px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}

.gallery-year:hover {
  border-color: var(--blue);
}

.gallery-year.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.gallery-year-count {
  margin-left: 4px;
  font-size: .78rem;
  opacity: .7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.gallery-more {
  margin-top: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 26, 38, .94);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-figure figcaption {
  color: #e2eef8;
  font-size: .9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, .25);
}

.lightbox-close {
  top: 14px;
  right: 14px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox-nav:disabled {
  opacity: .3;
  cursor: default;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.multiline {
  white-space: pre-line;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.board-member {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.board-role {
  display: block;
  color: var(--muted);
  font-size: .85rem;
}

.board-member strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.05rem;
  margin: 2px 0 6px;
}

.board-contact {
  font-size: .9rem;
}

.board-contact a {
  text-decoration: none;
}

.board-contact a:hover {
  text-decoration: underline;
}

.fee-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  perspective: 1000px;
}

.fee-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  min-width: 0;
  height: 200px;
  cursor: pointer;
}

.fee-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius);
}

.fee-card.flipped .fee-card-inner {
  transform: rotateY(180deg);
}

.fee-card-front,
.fee-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.fee-card-front {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fee-card:hover .fee-card-front {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--blue);
}

.fee-card-back {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue-dark);
  transform: rotateY(180deg);
  border-radius: var(--radius);
}

.fee-card-back h3 {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.fee-card-back p {
  margin: 8px 0;
  font-size: .9rem;
}

.fee-card-back .flip-back {
  margin-top: 16px;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.fee-card-back .flip-back:hover {
  background: rgba(255,255,255,0.3);
}

.flip-hint {
  margin-top: 12px;
  font-size: .75rem;
  color: var(--muted);
  font-style: italic;
}

.fee-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.fee-desc {
  color: var(--muted);
  font-size: .88rem;
  flex: 1;
}

.fee-price {
  margin-top: 12px;
  align-self: center;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .95rem;
}

.fee-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .9rem;
}

.included-note {
  margin-top: 12px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--blue-dark);
  white-space: pre-line;
}

.included-note a {
  text-decoration: none;
}

.included-note a:hover {
  text-decoration: underline;
}



.sportfiskarna-logo-link {
  display: block;
  margin-top: 8px;
}

.sportfiskarna-logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .sportfiskarna-logo {
    max-width: none;
  }
}

.partner-logo {
  display: inline-block;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 6px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 420px;
}

.contact-card p {
  margin: 0 0 10px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

footer {
  background: var(--blue-dark);
  color: #cfe0ef;
  padding: 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner strong {
  color: #fff;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  background: #1877f2;
  border-radius: 8px;
  font-weight: 600;
}

.fb-link:hover {
  background: #1666d4;
}

.fb-link svg {
  width: 18px;
  height: 18px;
}

.partner-logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

.partner-logos a {
  display: block;
}

.partner-logos img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.partner-logos img:hover {
  opacity: 1;
}

.footer-text {
  max-width: 1000px;
  margin: 14px auto 0;
  text-align: center;
  color: #9fb8cf;
  font-size: .8rem;
  white-space: pre-line;
}

.footer-privacy {
  margin: 6px auto 0;
  text-align: center;
  font-size: .8rem;
}

.footer-privacy a {
  color: #9fb8cf;
  text-decoration: underline;
}

.footer-privacy a:hover {
  color: #fff;
}

.policy {
  max-width: 800px;
  margin: 0 auto;
}

.policy h2 {
  margin-top: 30px;
}

.policy-meta {
  color: var(--muted);
  font-size: .88rem;
}

.policy-callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue-dark);
}

.policy-callout h2 {
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-callout p:last-child {
  margin-bottom: 0;
}

.policy-steps {
  padding-left: 22px;
}

.policy-steps li {
  margin-bottom: 8px;
}

.policy-contact {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.policy-contact a {
  text-decoration: none;
}

.policy-contact a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn.secondary {
  background: var(--muted);
}

.btn.danger {
  background: #b3423a;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}