/* Modern Aktivitetssidan theme. No external fonts; system stack. WCAG AA contrast. */
:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #e7e0d6;
  --brand: #0f766e;
  --brand-ink: #0b4f4a;
  --brand-soft: #ccfbf1;
  --accent: #b45309;
  --accent-soft: #ffedd5;
  --danger: #9f1239;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,25,23,.06), 0 8px 24px rgba(28,25,23,.06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.theme-modern {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 500px at 10% -10%, #ccfbf1 0%, transparent 55%),
              radial-gradient(900px 400px at 100% 0%, #ffedd5 0%, transparent 50%),
              var(--paper);
  color: var(--ink); font: 16px/1.55 var(--font);
}
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #14b8a6; outline-offset: 2px;
}
.m-skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.m-skip:focus { left: .5rem; top: .5rem; }
.m-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap; }

.m-header { background: rgba(255,255,255,.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.m-header-inner { max-width: var(--max); margin: 0 auto; padding: .75rem 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.m-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.m-brand-mark { width: 1.35rem; height: 1.35rem; border-radius: 999px; background: linear-gradient(135deg, #0d9488, #f59e0b); box-shadow: inset 0 0 0 2px #fff; }
.m-nav { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.m-navlink { color: var(--ink-soft); text-decoration: none; padding: .45rem .7rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.m-navlink:hover { background: var(--brand-soft); color: var(--brand-ink); }
.m-navlink.is-current { background: var(--brand); color: #fff; }
.m-accountbox { display: flex; gap: .75rem; align-items: center; margin-left: auto; font-size: .95rem; }
.m-account { font-weight: 700; color: var(--ink); text-decoration: none; }
.m-textlink { color: var(--brand-ink); font-weight: 600; }

.m-main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.m-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.m-left, .m-right { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 860px) {
  .m-columns { grid-template-columns: 1fr; }
  .m-header-inner { padding: .75rem 1rem; }
  .m-main { padding: 1rem 1rem 2.5rem; }
}

.m-hero { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); }
.m-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -.02em; }
.m-hero > p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 42rem; }
.m-search { display: flex; gap: .5rem; flex-wrap: wrap; }
.m-search input[type=search], .m-search input[type=text] {
  flex: 1; min-width: 12rem; font: inherit; padding: .75rem 1rem; border: 1px solid #c4b8a8; border-radius: 999px; background: #fffaf4;
}
.m-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1rem; }

.m-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow); }
.m-card h1, .m-card h2, .m-card h3 { margin: 0 0 .6rem; line-height: 1.25; }
.m-card h2 { font-size: 1.15rem; }
.m-card p { margin: 0 0 .75rem; color: var(--ink-soft); }
.m-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.m-card-accent { background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%); border-color: #99f6e4; }
.m-muted { color: var(--muted); }
.m-small { font-size: .9rem; }
.m-ol { margin: 0; padding-left: 1.2rem; }
.m-ol a { text-decoration: none; font-weight: 600; }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 700; border-radius: 999px; padding: .65rem 1.15rem; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.m-btn-primary { background: var(--brand); color: #fff; }
.m-btn-primary:hover { background: var(--brand-ink); color: #fff; }
.m-btn-secondary { background: var(--accent-soft); color: #7c2d12; border-color: #fdba74; }
.m-btn-secondary:hover { background: #fed7aa; color: #7c2d12; }
.m-btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.m-btn-ghost:hover { background: var(--brand-soft); }

.m-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.m-act-link {
  display: grid; gap: .15rem; padding: .7rem .75rem; border-radius: 10px; text-decoration: none; color: inherit;
}
.m-act-link:hover { background: #f5f0e8; }
.m-act-name { font-weight: 700; color: var(--ink); }
.m-act-meta, .m-act-date { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.m-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.m-chip {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: #f5f0e8; color: var(--ink-soft);
  text-decoration: none; font-size: .9rem; font-weight: 600; border: 1px solid var(--line);
}
.m-chip:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: #5eead4; }

/* Reuse existing markup IDs so site.js and maps.js keep working */
.theme-modern #bigSearchBox, .theme-modern #tagCloudBox, .theme-modern #latestActivities,
.theme-modern #aboutInfo, .theme-modern #searchResultBox, .theme-modern #activityContent,
.theme-modern .BoxBorderNoTop, .theme-modern .BoxBorderNoTopGrey, .theme-modern .BoxPaddingStandard,
.theme-modern .BoxBorder, .theme-modern #usersList, .theme-modern #subMenuContentHeader,
.theme-modern #messegeSelectorBox, .theme-modern #subMenuContentFooter {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.theme-modern .BoxHeaderGreen, .theme-modern .BoxHeaderBlue, .theme-modern #bigSearchBoxLabel,
.theme-modern #tagCloudHeader, .theme-modern #logOn .BoxHeaderBlue, .theme-modern #loggedInInfo .BoxHeaderBlue,
.theme-modern #mostPopularActivities .BoxHeaderBlue, .theme-modern #searchResultBox .BoxHeaderGreen {
  background: transparent; border: 0; color: var(--ink); padding: 0 0 .4rem; margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 700;
}
.theme-modern .BoxHeaderGreen h1, .theme-modern .BoxHeaderGreen h2, .theme-modern .BoxHeaderBlue h2,
.theme-modern #bigSearchBoxLabel h1, .theme-modern #bigSearchBoxLabel h2 { margin: 0; font: inherit; color: inherit; }
.theme-modern #bigSearchBox { display: grid; gap: .75rem; }
.theme-modern #bigSearchBoxArrow, .theme-modern .AdSpacer, .theme-modern #frontGirl { display: none !important; }
.theme-modern #bigSearchBoxInput form { display: flex; gap: .5rem; flex-wrap: wrap; }
.theme-modern #searchText {
  flex: 1; min-width: 12rem; font: inherit; padding: .75rem 1rem; border: 1px solid #c4b8a8; border-radius: 999px; background: #fffaf4;
}
.theme-modern #bigSearchBoxSubmit {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--brand); color: #fff;
  border-radius: 999px; padding: .65rem 1.15rem; cursor: pointer; border: 0;
}
.theme-modern table.list { width: 100%; border-collapse: collapse; }
.theme-modern table.list th, .theme-modern table.list td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.theme-modern table.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.theme-modern a.RowLink { color: var(--ink); font-weight: 700; text-decoration: none; }
.theme-modern a.RowLink:hover { color: var(--brand); }
.theme-modern .TagCloud a { display: inline-block; margin: .15rem .2rem; padding: .2rem .55rem; border-radius: 999px; background: #f5f0e8; text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.theme-modern .TagCloud a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.theme-modern .TagWeight1 a { font-size: 1.25rem; } .theme-modern .TagWeight2 a { font-size: 1.1rem; }
.theme-modern .TagWeight3 a { font-size: 1rem; } .theme-modern .TagWeight4 a { font-size: .9rem; } .theme-modern .TagWeight5 a { font-size: .85rem; }
.theme-modern .SubmitButton, .theme-modern input[type=submit], .theme-modern button.ui-state-default {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; background: var(--brand); color: #fff;
  border: 0; border-radius: 999px; padding: .55rem 1rem; cursor: pointer; text-decoration: none;
}
.theme-modern a.SubmitButton:hover, .theme-modern input[type=submit]:hover { background: var(--brand-ink); color: #fff; }
.theme-modern input[type=submit].Discrete { background: transparent; color: var(--danger); border: 1px solid #fecdd3; }
.theme-modern .FormField label, .theme-modern label { display: block; font-weight: 600; margin-bottom: .25rem; }
.theme-modern .FormField span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.theme-modern input.Big, .theme-modern input.Small, .theme-modern textarea.Big, .theme-modern textarea.VeryBig,
.theme-modern input[type=text], .theme-modern input[type=search], .theme-modern input[type=url], .theme-modern input[type=number],
.theme-modern textarea, .theme-modern select {
  width: 100%; max-width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid #c4b8a8; border-radius: 10px; background: #fffaf4; color: var(--ink);
}
.theme-modern textarea { min-height: 6rem; resize: vertical; }
.theme-modern .field-validation-error, .theme-modern .input-validation-error { color: var(--danger); }
.theme-modern .Heavy { font-weight: 700; }
.theme-modern .Small { font-size: .9rem; color: var(--muted); }
.theme-modern .MarginTopBig { margin-top: 1rem; } .theme-modern .MarginTopStandard { margin-top: .75rem; }
.theme-modern .MarginBottomStandard, .theme-modern .PaddingBottomStandard { margin-bottom: .75rem; }
.theme-modern .MarginLeftBig { margin-left: .75rem; }
.theme-modern hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.theme-modern #clickout_map { height: 280px; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.theme-modern #logOn, .theme-modern #loggedInInfo, .theme-modern #mostPopularActivities, .theme-modern #divComments {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.theme-modern #divComments img { max-width: 100%; height: auto; }
.theme-modern #contactUs { cursor: pointer; }
.theme-modern div.ProviderButtons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.theme-modern a.ProviderButton {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: 999px;
  border: 1px solid #c4b8a8; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.theme-modern a.ProviderButton:hover { border-color: var(--brand); background: var(--brand-soft); }
.theme-modern a.ProviderButton svg { width: 16px; height: 16px; }
.theme-modern .MemberItem { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); list-style: none; }
.theme-modern #usersList ul { list-style: none; margin: 0; padding: 0; }
.theme-modern .ProfileImage, .theme-modern #profilePicture { border-radius: 12px; border: 1px solid var(--line); }
.theme-modern .ProfileNameTag h1 { margin: 0 0 .5rem; font-size: 1.5rem; }
.theme-modern #profilePictureBox { float: right; margin: 0 0 1rem 1rem; }
.theme-modern .BoxHeaderGreen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.theme-modern .BoxHeaderGreen li a {
  display: inline-block; padding: .4rem .75rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 600; background: #f5f0e8;
}
.theme-modern .BoxHeaderGreen li.TabSelected a { background: var(--brand); color: #fff; }
.theme-modern .ConversationListItem {
  display: grid; grid-template-columns: 8rem 1fr 7rem; gap: .5rem; padding: .75rem; border-bottom: 1px solid var(--line); cursor: pointer;
}
.theme-modern .ConversationListItem.SelectedListItem, .theme-modern .ConversationListItemSubSections { background: #f0fdfa; }
.theme-modern .ConversationListItemSubSection { padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
.theme-modern span.UnreadBadge { background: var(--brand); color: #fff; font-size: .75rem; padding: .1rem .4rem; border-radius: 999px; }
.theme-modern .ui-dialog { font-family: var(--font); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.theme-modern .ui-dialog .ui-dialog-titlebar { background: var(--paper); border-bottom: 1px solid var(--line); padding: .7rem 1rem; font-weight: 700; }
.theme-modern .ui-dialog .ui-dialog-content { padding: 1rem; }
.theme-modern .ui-dialog-buttonpane { padding: .75rem 1rem; border-top: 1px solid var(--line); text-align: right; }
.theme-modern .ui-widget-overlay { background: rgba(28,25,23,.45); }
.theme-modern .ui-datepicker { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; box-shadow: var(--shadow); }
.theme-modern .Hidden { display: none !important; }
.theme-modern .Clearfix::after { content: ""; display: block; clear: both; }
.theme-modern .CookieBanner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: rgba(28,25,23,.92); color: #fff;
  font-size: .95rem; padding: .85rem 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.theme-modern .CookieBanner a { color: #5eead4; }
.theme-modern a.CookieBannerButton { background: #fbbf24; color: #1c1917 !important; font-weight: 700; padding: .4rem .9rem; border-radius: 999px; text-decoration: none; }

.m-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.7); padding: 1.5rem 1.25rem 2rem; margin-top: auto; }
.m-footer nav { max-width: var(--max); margin: 0 auto 0.75rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.m-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.m-footer a:hover { color: var(--brand); }
.m-footer p { max-width: var(--max); margin: 0 auto; color: var(--muted); font-size: .9rem; }

/* Katalog */
.k-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 .4rem; }
.k-notice { background: var(--brand-soft); border: 1px solid #5eead4; color: var(--brand-ink); padding: .7rem .9rem; border-radius: 10px; font-weight: 600; }
.k-filters h2 { margin-bottom: .85rem; }
.k-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem 1rem; }
.k-field { display: flex; flex-direction: column; gap: .3rem; }
.k-field.k-wide { grid-column: 1 / -1; }
.k-field label { font-weight: 600; font-size: .95rem; }
.k-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.k-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.k-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow); }
.k-card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.k-card > p { margin: 0 0 .75rem; color: var(--ink-soft); }
.k-tags { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.k-tag { font-size: .8rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: #f5f0e8; color: var(--ink-soft); }
.k-type-sport { background: #dbeafe; color: #1e3a8a; }
.k-type-kultur { background: #fce7f3; color: #9d174d; }
.k-type-spel { background: #ede9fe; color: #5b21b6; }
.k-type-natur { background: #dcfce7; color: #166534; }
.k-type-mat { background: #ffedd5; color: #9a3412; }
.k-type-larande { background: #e0f2fe; color: #075985; }
.k-type-socialt { background: #fef9c3; color: #854d0e; }
.k-type-volontar { background: #ccfbf1; color: #115e59; }
.k-source a { font-weight: 700; }
.k-error { color: var(--danger); font-weight: 600; margin: .25rem 0 0; }
.k-feedback { list-style: none; margin: 0; padding: 0; }
.k-feedback li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .k-grid { grid-template-columns: 1fr; } .theme-modern .ConversationListItem { grid-template-columns: 1fr; } }
