.backRow{ margin-bottom:14px; }
.backLink{ color:#0f172a; font-weight:700; text-decoration:none; }
.emptyNote{ padding:18px; background:#fff; border-radius:16px; border:1px solid #e7ecf2; }

.tmHeader .headerRow{
  align-items:center;
  gap:18px;
}
.tmHeader .tmBrand{
  align-items:flex-end;
  gap:2px;
}
.tmBrandMark{
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.02em;
  color:#fff;
}
.tmHeaderTools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
  margin-left:auto;
  min-width:0;
}
.tmNavLabel{
  margin:0;
  display:block;
  color:inherit;
  font-weight:inherit;
}
.tmNavSelect{
  min-height:44px;
  width:220px;
  max-width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
  font-weight:700;
  padding:0 12px;
}
.tmNavSelect option{ color:#111; }
.tmHeaderCta{
  flex:0 0 auto;
  white-space:nowrap;
  text-decoration:none;
}

.hero.tmHero{
  background:#fff;
}
.hero.tmHero::before{
  display:none;
}
.tmHero .heroInner{
  padding:18px 0 22px;
  text-align:center;
}
.tmHero .heroTitle{
  margin:0 0 8px;
  font-size:36px;
  color:#0d0f12;
}
.tmHero .heroSub{
  margin:0 auto;
  font-size:16px;
  max-width:40em;
  color:#0d0f12;
}
.tmPlainMeta{
  color:#0d0f12;
  font-weight:800;
  font-size:13px;
}
.tmReadLink{
  color:#0d0f12;
  font-weight:800;
  text-decoration:none;
}
.tmReadLink:hover{ text-decoration:underline; }

html, body{
  height:auto;
  min-height:0;
  overflow-x:clip;
}
.tmFilter{
  background:#fff;
  border:1px solid #e7ecf2;
  border-radius:20px;
  padding:18px;
  margin:0 0 18px;
}
.tmFilterGrid{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  align-items:end;
}
.tmFilterGrid label{
  flex:1 1 0;
  min-width:0;
}
.tmFilterGrid label:has(input[type="search"]){
  flex:1.35 1 0;
}
.tmFilter label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#64748b;
}
.tmFilter select,
.tmFilter input[type="text"],
.tmFilter input[type="search"]{
  width:100%;
  margin-top:6px;
  min-height:40px;
  border-radius:12px;
  border:1px solid #e7ecf2;
  padding:0 8px;
  font:inherit;
  font-size:13px;
  background:#f8fafc;
}
.tmFilterActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:14px;
}
.tmDeleteWrap{ margin-top:14px; }
.tmDeleteLink{
  margin:0;
  font-size:13px;
}
.tmDeleteLink button{
  border:0;
  background:none;
  padding:0;
  color:#64748b;
  font:inherit;
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}
.tmDeleteLink button:hover{ color:#c1121f; }
.tmDeleteBox{
  display:none;
  margin-top:12px;
  max-width:420px;
}
.tmDeleteBox.is-open{ display:block; }
.tmDeleteBox .tmFormSingle{ margin-top:8px; }
.tmDeleteBox .tmCtaBar{ margin-top:12px; }

.tmGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.tmCard{
  background:#fff;
  border:1px solid #e7ecf2;
  border-radius:20px;
  padding:18px;
  display:flex;
  flex-direction:column;
  min-height:220px;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
  overflow:hidden;
}
.tmCard--spelare-soker-klubb{ border-top:4px solid #c1121f; }
.tmCard--klubb-soker-spelare{ border-top:4px solid #0b0f18; }
.tmCard--tranare-soker-klubb{ border-top:4px solid #14532d; }
.tmCard--klubb-soker-tranare{ border-top:4px solid #1e3a5f; }
.tmBadge--spelare-soker-klubb{ background:#c1121f; color:#fff; border-color:#c1121f; }
.tmBadge--klubb-soker-spelare{ background:#0b0f18; color:#fff; border-color:#0b0f18; }
.tmBadge--tranare-soker-klubb{ background:#14532d; color:#fff; border-color:#14532d; }
.tmBadge--klubb-soker-tranare{ background:#1e3a5f; color:#fff; border-color:#1e3a5f; }
.tmCardTop{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}
.tmCardTitle{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.25;
  font-weight:1000;
  color:#111827;
}
.tmFacts{
  display:grid;
  gap:6px;
  margin:0 0 14px;
  color:#334155;
  font-size:14px;
  line-height:1.45;
}
.tmFacts b{ color:#111827; }
.tmCardText{
  color:#475569;
  font-size:14px;
  line-height:1.55;
  margin:0 0 16px;
  flex:1;
}
.tmCardFooter{ margin-top:auto; }

.tmDetail{
  background:#fff;
  border:1px solid #e7ecf2;
  border-radius:22px;
  padding:28px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.tmDetailLead{
  font-size:18px;
  line-height:1.7;
  color:#1f2937;
  white-space:pre-wrap;
}
.tmCtaBar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.tmContact{
  display:none;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #e8edf4;
}
.tmContact.is-open{ display:block; }
.tmFormGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.tmFormGrid label,
.tmFormSingle label{
  display:block;
  font-weight:800;
  font-size:13px;
  color:#334155;
}
.tmFormGrid input,
.tmFormGrid select,
.tmFormGrid textarea,
.tmFormSingle input,
.tmFormSingle select,
.tmFormSingle textarea{
  width:100%;
  margin-top:6px;
  border:1px solid #e7ecf2;
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  background:#f8fafc;
  min-height:44px;
}
.tmSeoLinks{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #e7ecf2;
  font-weight:800;
  font-size:13px;
}
.tmSeoLinks a{ color:#334155; text-decoration:none; }
.tmSeoLinks a:hover{ color:#c1121f; }
.tmCardTitle,
.tmCardText,
.tmFacts{ overflow-wrap:anywhere; }
.tmFormSingle{ margin-top:12px; }
.tmFormSingle textarea{ min-height:140px; }
.tmHidden{
  position:absolute;
  left:0;
  opacity:0;
  height:0;
  width:0;
  overflow:hidden;
  pointer-events:none;
}
.tmNotice{
  padding:14px 16px;
  border-radius:14px;
  background:#ecfdf3;
  border:1px solid #bbf7d0;
  font-weight:700;
  margin-bottom:16px;
}
.tmNotice--err{
  background:#fef2f2;
  border-color:#fecaca;
}

.tmGroup{ display:none; }
.tmGroup.is-on{ display:block; }

@media (max-width: 900px){
  .tmFilterGrid{
    flex-wrap:wrap;
  }
  .tmFilterGrid label{
    flex:1 1 100%;
  }
  .tmGrid,
  .tmFormGrid{ grid-template-columns:1fr; }
  .tmHeader .headerRow{
    flex-wrap:wrap;
    min-height:0;
    padding:12px 0;
    gap:10px;
  }
  .tmHeaderTools{
    width:100%;
    margin-left:0;
  }
  .tmNavLabel{
    flex:1 1 auto;
    min-width:0;
  }
  .tmNavSelect{
    width:100%;
  }
  .tmHeaderCta{
    padding:10px 14px;
    font-size:14px;
  }
  .tmHero .heroTitle{ font-size:28px; }
  .tmHero .heroSub{ font-size:15px; padding:0 8px; }
  .tmFilter{ padding:14px; }
  .tmDetail{ padding:18px; }
  .tmCard{ min-height:0; }
}
