/*
Theme Name: Travet.dk Newspaper Magazine
Theme URI: https://travet.dk/
Description: Sitewide Newspaper child theme med Travet.dk magazine-layout og faste annoncekolonner.
Author: Travet.dk
Version: 1.10.37
Template: Newspaper
Text Domain: travet-magazine
*/

:root{
  --tm-red:#d71920;
  --tm-dark:#111318;
  --tm-text:#1f2328;
  --tm-line:#d9dde1;
  --tm-bg:#ffffff;
  --tm-rail:300px;
  --tm-center:680px;
  --tm-gap:20px;
  --tm-max:1360px;
}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--tm-text);font-family:Arial,Helvetica,sans-serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

/* Header */
.tm-topbar{background:var(--tm-dark);color:#fff;font-size:12px}
.tm-topbar__inner,.tm-header__inner,.tm-nav__inner,.tm-breaking__inner{
  max-width:var(--tm-max);margin:0 auto;padding-left:20px;padding-right:20px
}
.tm-topbar__inner{height:30px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.tm-topbar a{color:#fff;opacity:.9;margin-left:16px}
.tm-header{background:#fff}
.tm-header__inner{min-height:120px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.tm-logo{font-size:48px;font-weight:900;letter-spacing:-2px;color:#111}
.tm-logo span{color:var(--tm-red)}
.tm-logo img{max-height:82px;width:auto}
.tm-tagline{text-align:right;font-weight:700;font-size:14px;line-height:1.5}
.tm-tagline small{display:block;color:#7b8087;font-weight:400}
.tm-a1{width:min(970px,calc(100% - 30px));margin:0 auto 16px}
.tm-nav{background:var(--tm-dark);border-bottom:1px solid #2a2d31}
.tm-nav__inner{display:flex;align-items:center;min-height:48px}
.tm-nav .menu{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.tm-nav .menu>li>a{display:block;color:#fff;padding:16px 14px;font-size:13px;font-weight:800;text-transform:uppercase}
.tm-nav .current-menu-item>a,.tm-nav .menu>li>a:hover{background:var(--tm-red)}
.tm-breaking{border-bottom:1px solid var(--tm-line);background:#fff}
.tm-breaking__inner{min-height:38px;display:flex;align-items:center;overflow:hidden}
.tm-breaking__label{background:var(--tm-red);color:#fff;font-size:11px;font-weight:800;padding:7px 12px;margin-right:16px;white-space:nowrap}
.tm-breaking__items{display:flex;gap:24px;white-space:nowrap;overflow:hidden;font-size:12px;font-weight:700}
.tm-breaking__time{color:var(--tm-red);margin-right:6px}

/* Sitewide shell */
.tm-shell{max-width:var(--tm-max);margin:20px auto 0;padding:0 20px;display:grid;grid-template-columns:var(--tm-rail) minmax(0,var(--tm-center)) var(--tm-rail);gap:var(--tm-gap);align-items:start}
.tm-rail{display:flex;flex-direction:column;gap:18px}
.tm-center{min-width:0}
.tm-ad{width:100%;overflow:hidden;background:#fff;border:1px solid #ddd;text-align:center}
.tm-ad img{display:block;width:100%;height:auto;object-fit:contain}
.tm-ad--250{min-height:250px}
.tm-ad--600{min-height:600px;display:flex;align-items:center}
.tm-ad--600 img{max-height:600px}
.tm-ad--wide{min-height:90px}
.tm-ad-placeholder{min-height:inherit;background:#f2f3f4;color:#333;display:flex;align-items:center;justify-content:center;font-weight:800;line-height:1.4;padding:12px}
.tm-a9{width:min(970px,calc(100% - 30px));margin:26px auto}

/* Home */
.tm-hero{border:1px solid var(--tm-line);background:#fff;margin-bottom:14px}
.tm-hero__image{aspect-ratio:16/8.6;background:#dfe2e5;overflow:hidden}
.tm-hero__image img{width:100%;height:100%;object-fit:cover}
.tm-hero__body{padding:16px 18px 18px}
.tm-kicker{color:var(--tm-red);font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:6px}
.tm-hero h1{font-size:31px;line-height:1.04;margin:0 0 8px;font-weight:900}
.tm-summary{color:#6b7076;font-size:14px;line-height:1.5}
.tm-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}
.tm-card{border:1px solid var(--tm-line);background:#fff}
.tm-card__image{aspect-ratio:16/8.6;background:#dfe2e5;overflow:hidden}
.tm-card__image img{width:100%;height:100%;object-fit:cover}
.tm-card__body{padding:11px 12px 14px}
.tm-card h3{font-size:16px;line-height:1.25;margin:4px 0 0;font-weight:800}
.tm-section{margin:24px 0}
.tm-section__title{font-size:21px;font-weight:900;text-transform:uppercase;border-bottom:3px solid #16181b;margin:0 0 12px;padding-bottom:8px;position:relative}
.tm-section__title:after{content:"";position:absolute;left:0;bottom:-3px;width:48px;height:3px;background:var(--tm-red)}
.tm-latest{list-style:none;margin:0;padding:0;border-top:1px solid var(--tm-line)}
.tm-latest li{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid var(--tm-line);padding:9px 0;font-size:14px;font-weight:700}
.tm-latest time{color:var(--tm-red);font-size:12px;min-width:44px}
.tm-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tm-content-ad{margin:20px 0}

/* Article/page/archive */
.tm-content-box{background:#fff}
.tm-entry-header{border-bottom:1px solid var(--tm-line);padding-bottom:14px;margin-bottom:18px}
.tm-entry-title{font-size:38px;line-height:1.08;margin:6px 0 10px;font-weight:900}
.tm-entry-meta{font-size:12px;color:#777}
.tm-featured{margin:0 0 18px}
.tm-featured img{width:100%;display:block}
.tm-entry-content{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.72}
.tm-entry-content p{margin:0 0 1.2em}
.tm-entry-content h2,.tm-entry-content h3{font-family:Arial,Helvetica,sans-serif}
.tm-archive-title{font-size:28px;font-weight:900;text-transform:uppercase;border-bottom:3px solid #111;padding-bottom:10px;margin:0 0 18px}
.tm-list-card{display:grid;grid-template-columns:220px 1fr;gap:16px;padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--tm-line)}
.tm-list-card__image{aspect-ratio:16/10;background:#eee;overflow:hidden}
.tm-list-card__image img{width:100%;height:100%;object-fit:cover}
.tm-list-card h2{font-size:22px;line-height:1.18;margin:4px 0 8px}
.tm-pagination{margin:28px 0}
.tm-pagination .page-numbers{display:inline-block;padding:7px 10px;border:1px solid #ddd;margin-right:4px}
.tm-pagination .current{background:var(--tm-red);color:#fff;border-color:var(--tm-red)}

/* Footer */
.tm-footer{background:var(--tm-dark);color:#fff;margin-top:30px}
.tm-footer__inner{max-width:var(--tm-max);margin:0 auto;padding:36px 20px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.tm-footer h3{margin:0 0 10px}
.tm-footer p,.tm-footer a{color:#c6c9cd;font-size:13px;line-height:1.7}

/* Mobile/tablet */
.tm-mobile-ad{display:none}
@media(max-width:1319px){
  .tm-shell{display:block;max-width:1080px}
  .tm-rail{display:none}
}
@media(max-width:767px){
  .tm-topbar__inner{height:auto;padding-top:7px;padding-bottom:7px}
  .tm-topbar__right{display:none}
  .tm-header__inner{min-height:88px}
  .tm-logo{font-size:36px}
  .tm-tagline{display:none}
  .tm-a1,.tm-a9{display:none}
  .tm-nav__inner{padding:0}
  .tm-nav .menu{overflow-x:auto;flex-wrap:nowrap}
  .tm-nav .menu>li>a{white-space:nowrap;padding:14px 11px;font-size:12px}
  .tm-breaking__inner{padding-left:0;padding-right:0}
  .tm-breaking__items{gap:16px}
  .tm-shell{margin-top:14px;padding:0 12px;width:100%}
  .tm-mobile-ad{display:block;max-width:320px;margin:14px auto}
  .tm-two,.tm-section-grid{grid-template-columns:1fr}
  .tm-hero h1{font-size:26px}
  .tm-entry-title{font-size:31px}
  .tm-entry-content{font-size:17px}
  .tm-list-card{grid-template-columns:120px 1fr;gap:12px}
  .tm-list-card h2{font-size:18px}
  .tm-footer__inner{grid-template-columns:1fr;gap:18px}
}


/* ===== 1.2.1: rigtig højre sidebar ===== */
.tm-sidebox{
    border:1px solid var(--tm-line);
    background:#fff;
    width:100%;
}
.tm-sidebox__title{
    margin:0;
    background:var(--tm-dark);
    color:#fff;
    padding:10px 12px;
    font-size:13px;
    line-height:1.2;
    font-weight:900;
    text-transform:uppercase;
    border-left:4px solid var(--tm-red);
}
.tm-sidebox__content{
    padding:12px;
}
.tm-sidebox__content .widget{
    margin:0 !important;
}
.tm-sidebox__content img,
.tm-sidebox__content iframe{
    max-width:100%;
    height:auto;
}
.tm-sidebox__empty{
    color:#777;
    font-size:12px;
    line-height:1.5;
}

/* Menuen styres nu af WordPress-menuplaceringen "Travet hovedmenu". */
.tm-nav .menu{
    width:100%;
}
.tm-nav .menu-item-has-children{
    position:relative;
}
.tm-nav .sub-menu{
    display:none;
    position:absolute;
    left:0;
    top:100%;
    min-width:210px;
    list-style:none;
    margin:0;
    padding:0;
    background:var(--tm-dark);
    z-index:9999;
}
.tm-nav .menu-item-has-children:hover>.sub-menu{
    display:block;
}
.tm-nav .sub-menu a{
    display:block;
    color:#fff;
    padding:11px 13px;
    font-size:12px;
    font-weight:700;
    border-top:1px solid #2d3136;
}
.tm-nav .sub-menu a:hover{
    background:var(--tm-red);
}


/* 1.2.3 – Travet sidebar-wrappers */
.tm-sidebox__content .travet-home-sales-sidebar-server,
.tm-sidebox__content .travet-sidebar-calendar,
.tm-sidebox__content .travet-facebook{
    margin:0 !important;
    width:100% !important;
}
.tm-sidebox__content .travet-home-sales-title{
    display:none !important; /* sidebox har allerede titel */
}
.tm-sidebox__content .travet-home-sales-list{
    width:100%;
}
.tm-sidebox__content .travet-home-sales-item{
    display:flex;
    gap:10px;
    padding:9px 0;
    border-bottom:1px solid #e6e8ea;
}
.tm-sidebox__content .travet-home-sales-image{
    width:72px;
    min-width:72px;
}
.tm-sidebox__content .travet-home-sales-image img{
    width:72px;
    height:54px;
    object-fit:cover;
}


/* 1.2.5 – sidekolonner synlige på normale desktops */
@media(min-width:1320px){
  .tm-shell{
    width:100%;
    max-width:1360px;
    grid-template-columns:300px minmax(0,680px) 300px;
    column-gap:20px;
    padding-left:20px;
    padding-right:20px;
  }
  .tm-rail{
    display:flex !important;
    width:300px;
  }
  .tm-center{
    width:680px;
    max-width:680px;
  }
}

/* Hvis viewport kun lige akkurat kan rumme layoutet, fjernes ydre padding. */
@media(min-width:1320px) and (max-width:1359px){
  .tm-shell{
    max-width:1320px;
    padding-left:0;
    padding-right:0;
  }
}


/* ===== 1.2.6: bredt 25 / 50 / 25 desktop-layout ===== */
@media(min-width:1320px){
  .tm-shell{
    width:calc(100% - 40px) !important;
    max-width:1680px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
    display:grid !important;
    grid-template-columns:minmax(250px,1fr) minmax(600px,2fr) minmax(250px,1fr) !important;
    gap:24px !important;
    align-items:start !important;
  }

  .tm-center{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  .tm-rail{
    display:flex !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    gap:24px !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .tm-ad img,
  .tm-sidebox img,
  .tm-sidebox iframe,
  .tm-sidebox ins{
    max-width:100% !important;
  }

  /* Sideannoncer må ikke tvinge kolonnen til 300 px. */
  .tm-ad--250,
  .tm-ad--600{
    min-height:0 !important;
  }

  .tm-ad--250 img{
    width:100% !important;
    height:auto !important;
    max-height:320px !important;
    object-fit:contain !important;
  }

  .tm-ad--600 img{
    width:100% !important;
    height:auto !important;
    max-height:650px !important;
    object-fit:contain !important;
  }

  /* Højre sidebar: hold alle plugin-elementer inde i boksen. */
  .tm-sidebox__content{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .tm-sidebox__content > *,
  .tm-sidebox__content .widget,
  .tm-sidebox__content .travet-home-sales-sidebar-server,
  .tm-sidebox__content .travet-sidebar-calendar,
  .tm-sidebox__content .travet-facebook,
  .tm-sidebox__content .travet-calendar,
  .tm-sidebox__content .cff-wrapper{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .tm-sidebox__content table{
    width:100% !important;
    max-width:100% !important;
    table-layout:fixed !important;
  }

  .tm-sidebox__content img{
    height:auto !important;
  }
}

/* 1920 px skærm: udnyt mere af den disponible plads. */
@media(min-width:1700px){
  .tm-shell{
    max-width:1760px !important;
  }
}

/* På mindre desktops bevares tre kolonner, men med lidt mindre luft. */
@media(min-width:1320px) and (max-width:1499px){
  .tm-shell{
    width:calc(100% - 20px) !important;
    gap:14px !important;
    grid-template-columns:minmax(240px,1fr) minmax(600px,2fr) minmax(240px,1fr) !important;
  }
}


/* ===== 1.2.7: fjern "kassen" – brug hele desktopbredden ===== */
@media(min-width:1320px){
  html,
  body{
    width:100%;
    max-width:none;
    overflow-x:hidden;
  }

  .tm-shell{
    width:100% !important;
    max-width:none !important;
    margin:20px 0 0 !important;
    padding:0 24px !important;
    display:grid !important;
    grid-template-columns:
      minmax(260px, 1fr)
      minmax(620px, 2fr)
      minmax(260px, 1fr) !important;
    gap:24px !important;
    align-items:start !important;
  }

  .tm-center,
  .tm-rail{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
  }

  /* Midterområdet må ikke få en ekstra boxed effekt. */
  .tm-center{
    background:transparent !important;
    box-shadow:none !important;
    border:0 !important;
    padding:0 !important;
  }

  /* Hovedkortene beholder deres egne normale kanter,
     men hele centerkolonnen er ikke længere en stor kasse. */
  .tm-content-box{
    width:100%;
    max-width:none;
    margin:0;
  }

  .tm-front,
  .tm-hero,
  .tm-section,
  .tm-two,
  .tm-section-grid{
    max-width:none !important;
    width:100% !important;
  }

  /* Headerens indhold må også bruge mere af skærmen. */
  .tm-topbar__inner,
  .tm-header__inner,
  .tm-nav__inner,
  .tm-breaking__inner{
    width:100% !important;
    max-width:none !important;
    padding-left:24px !important;
    padding-right:24px !important;
  }

  /* Top- og bundbanner er stadig centrerede, men resten af siden er full width. */
  .tm-a1,
  .tm-a9{
    max-width:970px;
  }
}

/* På meget brede skærme skal midten stadig være ca. dobbelt så bred
   som hver sidekolonne – ikke låses til en fast px-bredde. */
@media(min-width:1900px){
  .tm-shell{
    padding-left:32px !important;
    padding-right:32px !important;
    gap:28px !important;
  }
}


/* ===== 1.2.8: bred hovedside, smalle annonce-rails ===== */

/* Fjern grå Newspaper-baggrund omkring vores egne templates. */
html,
body,
body.travet-adrails-active,
body[class*="travet"]{
  background:#fff !important;
}

/* 1600 px+:
   260 px annonce | 920-1100 px website | 260 px annonce */
@media(min-width:1600px){
  .tm-shell{
    width:calc(100% - 32px) !important;
    max-width:1700px !important;
    margin:20px auto 0 !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:260px minmax(920px,1100px) 260px !important;
    justify-content:center !important;
    gap:20px !important;
    align-items:start !important;
    background:#fff !important;
  }

  .tm-center{
    width:100% !important;
    max-width:1100px !important;
    min-width:920px !important;
    background:#fff !important;
    margin:0 !important;
  }

  .tm-rail{
    width:260px !important;
    max-width:260px !important;
    min-width:260px !important;
    display:flex !important;
    gap:20px !important;
    background:#fff !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:260px !important;
    max-width:260px !important;
    min-width:0 !important;
    background:#fff !important;
  }

  .tm-ad img,
  .tm-sidebox img,
  .tm-sidebox iframe,
  .tm-sidebox ins{
    max-width:100% !important;
    width:auto;
  }
}

/* 1400-1599 px:
   behold en bred hjemmeside og skjul sideannoncerne frem for at klemme den. */
@media(min-width:1400px) and (max-width:1599px){
  .tm-shell{
    display:block !important;
    width:calc(100% - 40px) !important;
    max-width:1180px !important;
    margin:20px auto 0 !important;
    padding:0 !important;
    background:#fff !important;
  }

  .tm-center{
    width:100% !important;
    max-width:1180px !important;
    min-width:0 !important;
    margin:0 auto !important;
    background:#fff !important;
  }

  .tm-rail{
    display:none !important;
  }
}

/* 1320-1399 px: samme princip – hovedindhold først. */
@media(min-width:1320px) and (max-width:1399px){
  .tm-shell{
    display:block !important;
    width:calc(100% - 30px) !important;
    max-width:1100px !important;
    margin:20px auto 0 !important;
    padding:0 !important;
    background:#fff !important;
  }
  .tm-center{
    width:100% !important;
    max-width:1100px !important;
    min-width:0 !important;
    margin:0 auto !important;
    background:#fff !important;
  }
  .tm-rail{display:none !important;}
}

/* Sørg for at sektioner ikke arver faste Newspaper-bredder. */
.tm-center .tm-hero,
.tm-center .tm-two,
.tm-center .tm-section,
.tm-center .tm-section-grid,
.tm-center .tm-content-box,
.tm-center .tm-list-card{
  width:100% !important;
  max-width:none !important;
}

/* Højre sidebar indhold skalerer inden for 260 px. */
@media(min-width:1600px){
  .tm-sidebox__content{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  .tm-sidebox__content > *,
  .tm-sidebox__content .widget,
  .tm-sidebox__content .travet-home-sales-sidebar-server,
  .tm-sidebox__content .travet-sidebar-calendar,
  .tm-sidebox__content .travet-facebook{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}


/* ===== 1.2.9: sidekolonner også på normale desktop-viewports ===== */

/* 1380–1599 CSS-px:
   smalle reklamesider + bred hovedside */
@media(min-width:1380px) and (max-width:1599px){
  .tm-shell{
    display:grid !important;
    width:calc(100% - 24px) !important;
    max-width:none !important;
    margin:18px auto 0 !important;
    padding:0 !important;
    grid-template-columns:
      minmax(190px,220px)
      minmax(860px,1fr)
      minmax(190px,220px) !important;
    gap:16px !important;
    justify-content:center !important;
    align-items:start !important;
  }

  .tm-rail{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    max-width:220px !important;
    gap:16px !important;
  }

  .tm-center{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:100% !important;
    min-width:0 !important;
    max-width:220px !important;
  }

  .tm-ad img,
  .tm-sidebox img,
  .tm-sidebox iframe,
  .tm-sidebox ins{
    max-width:100% !important;
    height:auto !important;
  }

  .tm-sidebox__content,
  .tm-sidebox__content > *,
  .tm-sidebox__content .widget,
  .tm-sidebox__content .travet-home-sales-sidebar-server,
  .tm-sidebox__content .travet-sidebar-calendar,
  .tm-sidebox__content .travet-facebook{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}

/* 1600+:
   lidt større rails, men centerkolonnen får resten af pladsen */
@media(min-width:1600px){
  .tm-shell{
    display:grid !important;
    width:calc(100% - 32px) !important;
    max-width:1780px !important;
    margin:20px auto 0 !important;
    padding:0 !important;
    grid-template-columns:
      minmax(220px,260px)
      minmax(960px,1fr)
      minmax(220px,260px) !important;
    gap:20px !important;
    justify-content:center !important;
  }

  .tm-center{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  .tm-rail{
    display:flex !important;
    width:100% !important;
    max-width:260px !important;
    min-width:0 !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:100% !important;
    max-width:260px !important;
    min-width:0 !important;
  }
}

/* Kun på reelt mindre skærme skjules sidekolonnerne. */
@media(max-width:1379px){
  .tm-shell{
    display:block !important;
    width:calc(100% - 24px) !important;
    max-width:1120px !important;
    margin:18px auto 0 !important;
  }
  .tm-rail{
    display:none !important;
  }
  .tm-center{
    width:100% !important;
    max-width:1120px !important;
    min-width:0 !important;
    margin:0 auto !important;
  }
}


/* ===== 1.3.0: frigør temaet helt fra Newspaper boxed layout ===== */

/* Newspaper kan sætte boxed/max-width på body eller ydre wrappers.
   Magazine-temaet skal altid bruge browserens fulde viewport. */
html{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
}
body,
body.td-boxed-layout,
body.td-full-layout,
body[class*="td-"]{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  left:auto !important;
  right:auto !important;
  background:#fff !important;
}

/* Kendte Newspaper outer wrappers må ikke indsnævre vores templates. */
#td-outer-wrap,
.td-theme-wrap,
.td-main-content-wrap,
.td-container-wrap,
.tdc-header-wrap,
.tdc-content-wrap,
.tdc-footer-wrap,
.tdc-zone,
.tdc_zone{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* Vores egne topområder bruger hele viewporten. */
.tm-topbar,
.tm-header,
.tm-nav,
.tm-breaking,
.tm-footer{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

.tm-topbar__inner,
.tm-header__inner,
.tm-nav__inner,
.tm-breaking__inner{
  width:calc(100% - 48px) !important;
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Desktop: website i midten skal være mindst ca. 900 px.
   Rails får resten, men aldrig på bekostning af hovedsiden. */
@media(min-width:1480px){
  .tm-shell{
    display:grid !important;
    width:calc(100vw - 40px) !important;
    max-width:none !important;
    margin:20px 20px 0 !important;
    padding:0 !important;
    grid-template-columns:
      minmax(190px, 260px)
      minmax(900px, 1fr)
      minmax(190px, 260px) !important;
    gap:20px !important;
    align-items:start !important;
    justify-content:stretch !important;
    background:#fff !important;
  }

  .tm-center{
    width:100% !important;
    min-width:900px !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  .tm-rail{
    display:flex !important;
    width:100% !important;
    max-width:260px !important;
    min-width:0 !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:100% !important;
    max-width:260px !important;
  }
}

/* Lidt smallere desktop: rails mindre, midten stadig bred. */
@media(min-width:1280px) and (max-width:1479px){
  .tm-shell{
    display:grid !important;
    width:calc(100vw - 24px) !important;
    max-width:none !important;
    margin:18px 12px 0 !important;
    padding:0 !important;
    grid-template-columns:
      minmax(150px, 190px)
      minmax(850px, 1fr)
      minmax(150px, 190px) !important;
    gap:14px !important;
    align-items:start !important;
  }

  .tm-center{
    width:100% !important;
    min-width:850px !important;
    max-width:none !important;
  }

  .tm-rail{
    display:flex !important;
    width:100% !important;
    max-width:190px !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:100% !important;
    max-width:190px !important;
  }
}

/* Under 1280 px prioriterer vi indholdet og skjuler rails. */
@media(max-width:1279px){
  .tm-shell{
    display:block !important;
    width:calc(100vw - 24px) !important;
    max-width:1120px !important;
    margin:18px auto 0 !important;
    padding:0 !important;
  }
  .tm-rail{
    display:none !important;
  }
  .tm-center{
    width:100% !important;
    max-width:1120px !important;
    min-width:0 !important;
    margin:0 auto !important;
  }
}


/* ===== 1.3.1: faste 300 px sidekolonner ===== */
@media(min-width:1560px){
  .tm-shell{
    width:calc(100vw - 40px) !important;
    max-width:none !important;
    margin:20px 20px 0 !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:300px minmax(900px,1fr) 300px !important;
    gap:20px !important;
    align-items:start !important;
  }

  .tm-rail{
    display:flex !important;
    width:300px !important;
    max-width:300px !important;
    min-width:300px !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:300px !important;
    max-width:300px !important;
    min-width:0 !important;
  }

  .tm-center{
    width:100% !important;
    min-width:900px !important;
    max-width:none !important;
  }
}

/* 1380-1559 px: behold bred hovedside; skjul rails fremfor at klemme. */
@media(min-width:1380px) and (max-width:1559px){
  .tm-shell{
    display:block !important;
    width:calc(100vw - 32px) !important;
    max-width:1180px !important;
    margin:18px auto 0 !important;
    padding:0 !important;
  }
  .tm-rail{
    display:none !important;
  }
  .tm-center{
    width:100% !important;
    max-width:1180px !important;
    min-width:0 !important;
    margin:0 auto !important;
  }
}

/* Højre sidebar skal holde sig indenfor 300 px. */
@media(min-width:1560px){
  .tm-sidebox__content,
  .tm-sidebox__content > *,
  .tm-sidebox__content .widget,
  .tm-sidebox__content .travet-home-sales-sidebar-server,
  .tm-sidebox__content .travet-sidebar-calendar,
  .tm-sidebox__content .travet-facebook{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}


/* ===== 1.3.2: 300 px rails synlige på almindelig desktop ===== */

/* Fra 1360 px bruger vi altid tre kolonner.
   300 + 20 + resten + 20 + 300. */
@media(min-width:1360px){
  .tm-shell{
    display:grid !important;
    width:calc(100vw - 24px) !important;
    max-width:none !important;
    margin:18px 12px 0 !important;
    padding:0 !important;
    grid-template-columns:300px minmax(0,1fr) 300px !important;
    gap:20px !important;
    align-items:start !important;
    justify-content:stretch !important;
    background:#fff !important;
  }

  .tm-rail{
    display:flex !important;
    flex-direction:column !important;
    width:300px !important;
    min-width:300px !important;
    max-width:300px !important;
    gap:20px !important;
  }

  .tm-center{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }

  .tm-ad,
  .tm-sidebox{
    width:300px !important;
    min-width:300px !important;
    max-width:300px !important;
  }

  .tm-sidebox__content{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .tm-sidebox__content > *,
  .tm-sidebox__content .widget,
  .tm-sidebox__content .travet-home-sales-sidebar-server,
  .tm-sidebox__content .travet-sidebar-calendar,
  .tm-sidebox__content .travet-facebook{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .tm-ad img,
  .tm-sidebox img,
  .tm-sidebox iframe,
  .tm-sidebox ins{
    max-width:100% !important;
    height:auto !important;
  }
}

/* Under 1360 px går vi tilbage til én kolonne for ikke at skabe vandret scroll. */
@media(max-width:1359px){
  .tm-shell{
    display:block !important;
    width:calc(100vw - 24px) !important;
    max-width:1120px !important;
    margin:18px auto 0 !important;
    padding:0 !important;
  }

  .tm-rail{
    display:none !important;
  }

  .tm-center{
    width:100% !important;
    min-width:0 !important;
    max-width:1120px !important;
    margin:0 auto !important;
  }
}


/* ===== 1.4.0: 300 px reklamesider + rene sidebar-overskrifter ===== */
@media(min-width:1360px){
  .tm-rail{
    width:300px !important;
    min-width:300px !important;
    max-width:300px !important;
  }
  .tm-shell{
    grid-template-columns:300px minmax(0,1fr) 300px !important;
  }
  .tm-ad--rail,
  .tm-sidebox{
    width:300px !important;
    min-width:300px !important;
    max-width:300px !important;
  }
  .tm-ad--rail img{
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
  }
}

/* Den ydre tm-sidebox har allerede den ønskede overskrift.
   Skjul pluginernes egne dublerede overskrifter inde i boksen. */
.tm-sidebox__content .travet-home-sales-title,
.tm-sidebox__content .travet-section-heading,
.tm-sidebox__content .travet-section-heading__bar,
.tm-sidebox__content .travet-sidebar-title,
.tm-sidebox__content .cff-header,
.tm-sidebox__content .cff-header-text,
.tm-sidebox__content h1:first-child,
.tm-sidebox__content h2:first-child,
.tm-sidebox__content h3:first-child{
  display:none !important;
}

/* Undgå ekstra topafstand efter skjult intern overskrift. */
.tm-sidebox__content > *:first-child,
.tm-sidebox__content .travet-home-sales-sidebar-server,
.tm-sidebox__content .travet-sidebar-calendar,
.tm-sidebox__content .travet-facebook{
  margin-top:0 !important;
  padding-top:0 !important;
}


/* ===== 1.4.2: kun én overskrift i højre sidebar ===== */

/* Den sorte .tm-sidebox__title er den eneste overskrift, vi vil vise.
   Skjul alle interne sektionsoverskrifter fra Travet Layout / Facebook-feed. */
.tm-sidebox__content > h1,
.tm-sidebox__content > h2,
.tm-sidebox__content > h3,
.tm-sidebox__content > h4,
.tm-sidebox__content > h5,
.tm-sidebox__content > h6,
.tm-sidebox__content .travet-home-sales-title,
.tm-sidebox__content .travet-section-heading,
.tm-sidebox__content .travet-section-heading__bar,
.tm-sidebox__content .travet-sidebar-title,
.tm-sidebox__content .travet-widget-title,
.tm-sidebox__content .widget-title,
.tm-sidebox__content .block-title,
.tm-sidebox__content .td-block-title-wrap,
.tm-sidebox__content .td-block-title,
.tm-sidebox__content .cff-header,
.tm-sidebox__content .cff-header-text,
.tm-sidebox__content .cff-header-name,
.tm-sidebox__content .sb-item-header,
.tm-sidebox__content .sb-feed-header {
    display:none !important;
}

/* Nogle Travet-moduler lægger overskriften i første wrapper.
   Skjul kun heading-elementer dér – ikke produkt-/posttitler. */
.tm-sidebox__content > div:first-child > h1:first-child,
.tm-sidebox__content > div:first-child > h2:first-child,
.tm-sidebox__content > div:first-child > h3:first-child,
.tm-sidebox__content > div:first-child > .travet-section-heading:first-child,
.tm-sidebox__content > div:first-child > .travet-home-sales-title:first-child {
    display:none !important;
}

/* Fjern luft, som de skjulte overskrifter ellers efterlader. */
.tm-sidebox__content,
.tm-sidebox__content > div:first-child,
.tm-sidebox__content .travet-home-sales-sidebar-server,
.tm-sidebox__content .travet-sidebar-calendar,
.tm-sidebox__content .travet-facebook,
.tm-sidebox__content .cff-wrapper {
    margin-top:0 !important;
    padding-top:0 !important;
}

.tm-sidebox__content {
    padding-top:12px !important;
}


/* ===== 1.4.3: fjern sidste interne sidebar-overskrifter ===== */
body .tm-sidebox__content a.travet-home-sales-title.travet-home-sales-title-link,
body .tm-sidebox__content .travet-home-sales-sidebar-server > a.travet-home-sales-title,
body .tm-sidebox__content .travet-home-sales-sidebar-server > .travet-home-sales-title {
    display:none !important;
    margin:0 !important;
    padding:0 !important;
    height:0 !important;
    min-height:0 !important;
    border:0 !important;
}

/* Kendte mulige kalender-/Facebook-headerwrappers. */
body .tm-sidebox__content .travet-calendar-title,
body .tm-sidebox__content .travet-calendar-heading,
body .tm-sidebox__content .travet-travkalender-title,
body .tm-sidebox__content .cff-header,
body .tm-sidebox__content .cff-header-wrap,
body .tm-sidebox__content .cff-header-text,
body .tm-sidebox__content .sb-feed-header {
    display:none !important;
}

/* Efter den skjulte interne titel skal listen starte direkte under den sorte bjælke. */
body .tm-sidebox__content .travet-home-sales-sidebar-server {
    margin-top:0 !important;
    padding-top:0 !important;
}
body .tm-sidebox__content .travet-home-sales-list {
    margin-top:0 !important;
    padding-top:0 !important;
}


/* ===== 1.4.4: fælles sidebar-titlebar med højre link ===== */
.tm-sidebox__titlebar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    min-height:58px;
    padding:0 18px;
    background:#0a365f;
    border-left:5px solid #d71920;
}

.tm-sidebox__title{
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    color:#fff !important;
    font-size:18px !important;
    line-height:1.15 !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
}

.tm-sidebox__all{
    flex:0 0 auto;
    color:#fff !important;
    font-size:11px;
    line-height:1.1;
    font-weight:900;
    text-transform:uppercase;
    text-align:right;
    white-space:nowrap;
}

.tm-sidebox__all:hover{
    text-decoration:underline;
}

/* Den gamle sorte title-style skal ikke længere tegne egen baggrund. */
.tm-sidebox > .tm-sidebox__title{
    display:none !important;
}

/* Travkalenderens interne header/bjælke skal væk – temaets titlebar erstatter den. */
body .tm-sidebox__content .travet-calendar-header,
body .tm-sidebox__content .travet-calendar-head,
body .tm-sidebox__content .travet-calendar-titlebar,
body .tm-sidebox__content .travet-calendar-top,
body .tm-sidebox__content .travet-travkalender-header,
body .tm-sidebox__content .travet-travkalender-heading,
body .tm-sidebox__content .travet-travkalender-title,
body .tm-sidebox__content .travet-calendar-heading,
body .tm-sidebox__content .travet-calendar-title,
body .tm-sidebox__content [class*="calendar-header"],
body .tm-sidebox__content [class*="calendar-titlebar"]{
    display:none !important;
}

/* Hvis Travkalender bruger første direkte wrapper som blå titlebar. */
body .tm-sidebox__content .travet-sidebar-calendar > *:first-child[class*="header"],
body .tm-sidebox__content .travet-sidebar-calendar > *:first-child[class*="title"]{
    display:none !important;
}

/* ===== Mobil: højre sidebar under hovedindholdet ===== */
@media(max-width:767px){
    .tm-shell{
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        max-width:none !important;
        margin:14px 0 0 !important;
        padding:0 12px !important;
    }

    .tm-center{
        order:1;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
    }

    .tm-rail--left{
        display:none !important;
    }

    .tm-rail--right{
        order:2;
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        margin:24px 0 0 !important;
        gap:18px !important;
    }

    /* På mobil viser vi sidebar-indholdet, men ikke H1-H12-reklamerne. */
    .tm-rail--right > .tm-ad--rail{
        display:none !important;
    }

    .tm-rail--right .tm-sidebox{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    .tm-sidebox__titlebar{
        min-height:54px;
        padding:0 14px;
    }

    .tm-sidebox__title{
        font-size:16px !important;
    }

    .tm-sidebox__all{
        font-size:10px;
    }
}


/* ===== 1.4.5: sort, kompakt sidebar-header ===== */
.tm-sidebox__titlebar{
    background:#111318 !important;
    border-left:5px solid #d71920 !important;
    min-height:48px !important;
    padding:0 14px !important;
}

.tm-sidebox__title{
    color:#fff !important;
    font-size:14px !important;
    line-height:1.15 !important;
    font-weight:800 !important;
    letter-spacing:.1px !important;
    text-transform:uppercase !important;
}

.tm-sidebox__all{
    color:#fff !important;
    font-size:9px !important;
    line-height:1.1 !important;
    font-weight:800 !important;
    opacity:.9;
}

/* Travkalender: fjern dens interne header robust, men behold selve kalenderkortene. */
.tm-sidebox__content .travet-sidebar-calendar .travet-section-heading,
.tm-sidebox__content .travet-sidebar-calendar .travet-section-heading__bar,
.tm-sidebox__content .travet-sidebar-calendar [class*="calendar-header"],
.tm-sidebox__content .travet-sidebar-calendar [class*="calendar-title"]{
    display:none !important;
}

/* ===== Mobil sponsorblok ===== */
.tm-mobile-sponsors{
    display:none;
}

@media(max-width:767px){
    .tm-mobile-sponsors{
        display:block;
        width:100%;
        padding:0 12px;
        margin:24px 0 8px;
    }

    .tm-mobile-sponsors__title{
        margin:0 0 12px;
        background:#111318;
        border-left:5px solid #d71920;
        color:#fff;
        font-size:14px;
        line-height:1.2;
        font-weight:800;
        text-transform:uppercase;
        padding:13px 14px;
    }

    .tm-mobile-sponsors__grid{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .tm-mobile-sponsor-item{
        background:#fff;
        border:1px solid #e0e2e4;
        min-width:0;
        overflow:hidden;
    }

    .tm-mobile-sponsor-item img{
        display:block;
        width:100% !important;
        height:auto !important;
        object-fit:contain !important;
    }

    /* Højre sidebar skal fortsat vises under indholdet */
    .tm-rail--right{
        display:flex !important;
    }

    /* Reklamefelterne i selve højre sidebar holdes skjult på mobil,
       fordi sponsorlogoerne nu vises samlet nedenunder. */
    .tm-rail--right > .tm-ad--rail{
        display:none !important;
    }

    .tm-sidebox__titlebar{
        min-height:46px !important;
        padding:0 12px !important;
    }

    .tm-sidebox__title{
        font-size:13px !important;
    }
}


/* ===== 1.4.6: artikel-forfatter og deleknapper ===== */
.tm-entry-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.tm-entry-author a{
  color:#111318;
  font-weight:800;
}
.tm-entry-author a:hover{
  color:#d71920;
}
.tm-share-buttons{
  margin-top:12px;
  min-height:30px;
}
.tm-share-buttons .a2a_kit{
  display:flex;
  align-items:center;
  gap:5px;
}
.tm-share-buttons--fallback{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:11px;
  font-weight:800;
}
.tm-share-buttons--fallback a{
  display:inline-block;
  background:#111318;
  color:#fff;
  padding:7px 10px;
}

/* Kalenderen skal starte direkte med løbsdagene under temaets sorte header. */
.tm-sidebox__content .travet-sidebar-calendar{
  margin-top:0 !important;
  padding-top:0 !important;
}


/* ===== 1.4.7: korrekt TOP/BUND-format + Mest læste ===== */
.tm-a1,
.tm-a9{
    width:970px !important;
    max-width:calc(100% - 24px) !important;
    height:90px !important;
    min-height:90px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:hidden !important;
}
.tm-a1 > .tm-ad,
.tm-a9 > .tm-ad,
.tm-a1 .travet-reklame-slot,
.tm-a9 .travet-reklame-slot,
.tm-a1 .travet-reklame-slot a,
.tm-a9 .travet-reklame-slot a{
    width:100% !important;
    height:90px !important;
    min-height:90px !important;
    max-height:90px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
}
.tm-a1 img,
.tm-a9 img{
    display:block !important;
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
    max-height:90px !important;
    object-fit:contain !important;
    margin:0 auto !important;
}

.tm-most-read{
    list-style:none;
    padding:0 !important;
    margin:0 !important;
    counter-reset:none;
}
.tm-most-read li{
    display:grid;
    grid-template-columns:32px 1fr;
    gap:10px;
    align-items:start;
    padding:11px 0;
    border-bottom:1px solid #e1e4e7;
}
.tm-most-read li:last-child{border-bottom:0}
.tm-most-read__num{
    color:#d71920;
    font-size:20px;
    line-height:1.15;
    font-weight:900;
    text-align:center;
}
.tm-most-read a{
    font-size:13px;
    line-height:1.35;
    font-weight:800;
}

/* Kalenderboksen skal starte direkte med første løbsdag. */
.tm-sidebox__content .travet-home-sales-sidebar-server{
    /* Denne blok må aldrig forekomme i kalenderboksen; hvis et andet plugin
       stadig injicerer den, skjules den visuelt som sidste sikkerhedsnet. */
}
.tm-sidebox:has(.travet-sidebar-calendar) .travet-home-sales-sidebar-server,
.tm-sidebox:has([class*="travkalender"]) .travet-home-sales-sidebar-server{
    display:none !important;
}


/* ===== 1.4.8: Travet.dk logo i header ===== */
.tm-logo{
    display:flex !important;
    align-items:center !important;
    min-width:0;
}
.tm-logo img.tm-site-logo{
    display:block;
    width:auto !important;
    height:auto !important;
    max-width:620px !important;
    max-height:118px !important;
    object-fit:contain !important;
}
@media(max-width:1100px){
    .tm-logo img.tm-site-logo{
        max-width:480px !important;
        max-height:92px !important;
    }
}
@media(max-width:767px){
    .tm-header__inner{
        min-height:78px !important;
        padding-top:10px !important;
        padding-bottom:10px !important;
    }
    .tm-logo img.tm-site-logo{
        max-width:280px !important;
        max-height:72px !important;
    }
}


/* ===== 1.4.9: faste bannerformater ===== */
.tm-ad--wide{
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:hidden !important;
}
.tm-ad--wide.travet-top-ad,
.tm-header .tm-ad--wide{
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
}
.tm-ad--wide .travet-reklame-slot,
.tm-ad--wide .travet-reklame-slot a{
    display:block !important;
    width:100% !important;
    height:100% !important;
}
.tm-ad--wide .travet-reklame-slot img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}
.travet-reklame-slot--top,
.travet-reklame-slot--bund{
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
}
.travet-reklame-slot--indhold{
    width:680px !important;
    max-width:100% !important;
    height:120px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
.travet-reklame-slot--top img,
.travet-reklame-slot--bund img,
.travet-reklame-slot--indhold img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}
@media(max-width:767px){
    .travet-reklame-slot--top,
    .travet-reklame-slot--bund,
    .travet-reklame-slot--indhold{
        width:100% !important;
        height:auto !important;
        aspect-ratio:auto !important;
    }
    .travet-reklame-slot--top img,
    .travet-reklame-slot--bund img,
    .travet-reklame-slot--indhold img{
        width:100% !important;
        height:auto !important;
    }
}


/* ===== 1.5.0: præcise bannerformater ===== */
.tm-a1{
    width:970px !important;
    max-width:calc(100% - 24px) !important;
    height:90px !important;
    margin:16px auto !important;
}
.tm-a1 .tm-ad,
.tm-a1 .travet-reklame-slot,
.tm-a1 .travet-reklame-slot a{
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
    margin:0 auto !important;
}
.tm-a1 img,
.travet-reklame-slot--top img{
    display:block !important;
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
    object-fit:cover !important;
}

.tm-content-ad{
    width:680px !important;
    max-width:100% !important;
    height:120px !important;
    margin:20px auto !important;
}
.tm-content-ad .tm-ad,
.tm-content-ad .travet-reklame-slot,
.tm-content-ad .travet-reklame-slot a{
    width:680px !important;
    max-width:100% !important;
    height:120px !important;
    margin:0 auto !important;
}
.tm-content-ad img,
.travet-reklame-slot--indhold img{
    display:block !important;
    width:680px !important;
    max-width:100% !important;
    height:120px !important;
    object-fit:cover !important;
}

.tm-a9{
    width:970px !important;
    max-width:calc(100% - 24px) !important;
    height:90px !important;
    margin:26px auto !important;
}
.tm-a9 .tm-ad,
.tm-a9 .travet-reklame-slot,
.tm-a9 .travet-reklame-slot a{
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
    margin:0 auto !important;
}
.tm-a9 img,
.travet-reklame-slot--bund img{
    display:block !important;
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
    object-fit:cover !important;
}

/* Ingen tomme reklamebokse */
.tm-ad:empty{
    display:none !important;
}

/* Skrifttypevalg */
body.tm-font-roboto,
body.tm-font-roboto button,
body.tm-font-roboto input,
body.tm-font-roboto select,
body.tm-font-roboto textarea{
    font-family:'Roboto',Arial,Helvetica,sans-serif !important;
}
body.tm-font-roboto .tm-entry-content,
body.tm-font-roboto .tm-entry-content p,
body.tm-font-roboto .tm-entry-content li,
body.tm-font-roboto .tm-entry-content td,
body.tm-font-roboto .tm-entry-content th,
body.tm-font-roboto .tm-entry-content blockquote,
body.tm-font-roboto .td-post-content,
body.tm-font-roboto .td-post-content p,
body.tm-font-roboto .td-post-content li,
body.tm-font-roboto .entry-content,
body.tm-font-roboto .entry-content p,
body.tm-font-roboto .entry-content li{
    font-family:'Roboto',Arial,Helvetica,sans-serif !important;
}

body.tm-font-arial,
body.tm-font-arial button,
body.tm-font-arial input,
body.tm-font-arial select,
body.tm-font-arial textarea,
body.tm-font-arial .tm-entry-content{
    font-family:Arial,Helvetica,sans-serif !important;
}

/* Mobil: bevar proportionen, ikke fast pixelhøjde */
@media(max-width:767px){
    .tm-a1,
    .tm-a9,
    .tm-content-ad{
        width:100% !important;
        height:auto !important;
    }
    .tm-a1 .tm-ad,
    .tm-a1 .travet-reklame-slot,
    .tm-a1 .travet-reklame-slot a,
    .tm-a9 .tm-ad,
    .tm-a9 .travet-reklame-slot,
    .tm-a9 .travet-reklame-slot a,
    .tm-content-ad .tm-ad,
    .tm-content-ad .travet-reklame-slot,
    .tm-content-ad .travet-reklame-slot a{
        width:100% !important;
        height:auto !important;
    }
    .tm-a1 img,
    .tm-a9 img,
    .tm-content-ad img{
        width:100% !important;
        height:auto !important;
        object-fit:contain !important;
    }
}


/* ===== 1.5.1: TOP/INDHOLD/BUND fylder hele annoncefladen ===== */

.tm-a1{
    width:970px !important;
    max-width:970px !important;
    height:90px !important;
    min-height:90px !important;
    margin:16px auto !important;
    padding:0 !important;
    overflow:hidden !important;
}

.tm-a1 > .tm-ad,
.tm-a1 .travet-reklame-slot,
.tm-a1 .travet-reklame-slot > a,
.tm-a1 .travet-reklame-slot img{
    display:block !important;
    width:970px !important;
    max-width:970px !important;
    min-width:970px !important;
    height:90px !important;
    min-height:90px !important;
    max-height:90px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.tm-a1 .travet-reklame-slot img{
    object-fit:fill !important;
}

.tm-content-ad{
    width:680px !important;
    max-width:680px !important;
    height:120px !important;
    min-height:120px !important;
    margin:20px auto !important;
    padding:0 !important;
    overflow:hidden !important;
}

.tm-content-ad > .tm-ad,
.tm-content-ad .travet-reklame-slot,
.tm-content-ad .travet-reklame-slot > a,
.tm-content-ad .travet-reklame-slot img{
    display:block !important;
    width:680px !important;
    max-width:680px !important;
    min-width:680px !important;
    height:120px !important;
    min-height:120px !important;
    max-height:120px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.tm-content-ad .travet-reklame-slot img{
    object-fit:fill !important;
}

.tm-a9{
    width:970px !important;
    max-width:970px !important;
    height:90px !important;
    min-height:90px !important;
    margin:26px auto !important;
    padding:0 !important;
    overflow:hidden !important;
}

.tm-a9 > .tm-ad,
.tm-a9 .travet-reklame-slot,
.tm-a9 .travet-reklame-slot > a,
.tm-a9 .travet-reklame-slot img{
    display:block !important;
    width:970px !important;
    max-width:970px !important;
    min-width:970px !important;
    height:90px !important;
    min-height:90px !important;
    max-height:90px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.tm-a9 .travet-reklame-slot img{
    object-fit:fill !important;
}

/* Fjern enhver indre standardbredde fra Reklamevæg-pluginet på bannerpladserne. */
.tm-a1 .travet-reklame-slot,
.tm-content-ad .travet-reklame-slot,
.tm-a9 .travet-reklame-slot{
    background:transparent !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
}

@media(max-width:979px){
    .tm-a1,
    .tm-a9{
        width:calc(100% - 24px) !important;
        max-width:970px !important;
        height:auto !important;
        min-height:0 !important;
        aspect-ratio:970 / 90;
    }

    .tm-a1 > .tm-ad,
    .tm-a1 .travet-reklame-slot,
    .tm-a1 .travet-reklame-slot > a,
    .tm-a1 .travet-reklame-slot img,
    .tm-a9 > .tm-ad,
    .tm-a9 .travet-reklame-slot,
    .tm-a9 .travet-reklame-slot > a,
    .tm-a9 .travet-reklame-slot img{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        height:100% !important;
        min-height:0 !important;
        max-height:none !important;
    }
}

@media(max-width:679px){
    .tm-content-ad{
        width:100% !important;
        max-width:680px !important;
        height:auto !important;
        min-height:0 !important;
        aspect-ratio:680 / 120;
    }

    .tm-content-ad > .tm-ad,
    .tm-content-ad .travet-reklame-slot,
    .tm-content-ad .travet-reklame-slot > a,
    .tm-content-ad .travet-reklame-slot img{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        height:100% !important;
        min-height:0 !important;
        max-height:none !important;
    }
}


/* ===== 1.5.2: delingsknapper på artikler ===== */
.tm-share-buttons{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin:12px 0 18px;
}

.tm-share-button{
    display:inline-block;
    background:#111318;
    color:#fff !important;
    padding:8px 12px;
    border-radius:3px;
    font-size:12px;
    font-weight:700;
    line-height:1;
}

.tm-share-button:hover{
    background:#d71920;
    text-decoration:none;
}


/* ===== 1.5.3: forfatter/dato/tid i arkivoversigter ===== */
.tm-list-card__meta{
    margin:4px 0 8px;
    color:#747980;
    font-size:12px;
    line-height:1.35;
}

.tm-list-card__meta a{
    color:#3f454c;
    font-weight:700;
}

.tm-list-card__meta a:hover{
    color:#d71920;
}


/* ===== 1.5.4: kun én titel på Travkalender og Samarbejdspartnere ===== */

/* Reklamevæg-pluginets egen titel har en kendt klasse. */
body.tm-page-samarbejdspartnere .tm-entry-content .travet-reklamevaeg__title{
    display:none !important;
}

/* Kendte Travkalender-title/header-varianter.
   JS-cleanup ovenfor er ekstra sikkerhed, hvis pluginets klasse ændrer sig. */
body.tm-page-travkalender .tm-entry-content .travet-calendar-title,
body.tm-page-travkalender .tm-entry-content .travet-calendar-heading,
body.tm-page-travkalender .tm-entry-content .travet-calendar-header,
body.tm-page-travkalender .tm-entry-content .travet-travkalender-title,
body.tm-page-travkalender .tm-entry-content .travet-travkalender-heading,
body.tm-page-travkalender .tm-entry-content [class*="travkalender-title"],
body.tm-page-travkalender .tm-entry-content [class*="travkalender-heading"]{
    display:none !important;
}

/* Fjern topafstand, når pluginoverskriften skjules. */
body.tm-page-travkalender .tm-entry-content > *:first-child,
body.tm-page-samarbejdspartnere .tm-entry-content > *:first-child{
    margin-top:0 !important;
}


/* ===== 1.5.5: kompakt Facebook-boks =====
   Behold temaets sorte FACEBOOK-header, men skjul feedets store
   cover/logo-del og den tomme højde over den kompakte profilboks. */
.tm-sidebox--facebook .tm-sidebox__content{
    padding-top:12px !important;
    padding-bottom:12px !important;
    min-height:0 !important;
    height:auto !important;
    overflow:hidden !important;
}

/* Custom Facebook Feed / Smash Balloon: skjul cover/header-visuals,
   men behold like/follower/profile-boksen. */
.tm-sidebox--facebook .cff-cover-photo,
.tm-sidebox--facebook .cff-header-img,
.tm-sidebox--facebook .cff-header-hero,
.tm-sidebox--facebook .cff-page-cover,
.tm-sidebox--facebook .cff-cover,
.tm-sidebox--facebook .cff-header .cff-header-text,
.tm-sidebox--facebook .cff-header > img,
.tm-sidebox--facebook .cff-header > a > img{
    display:none !important;
}

/* Fjern stor fast/minimum højde fra plugin-wrappers. */
.tm-sidebox--facebook .cff-wrapper,
.tm-sidebox--facebook .cff-wrapper-fixed-height,
.tm-sidebox--facebook .cff,
.tm-sidebox--facebook #cff,
.tm-sidebox--facebook [id^="cff"]{
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
}

/* Hvis pluginet bruger en header-wrapper omkring både cover og likebox,
   skal wrapperen være kompakt i stedet for at reservere coverhøjde. */
.tm-sidebox--facebook .cff-header{
    min-height:0 !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    background-image:none !important;
}

/* Den kompakte side/profile/like-del skal blive synlig. */
.tm-sidebox--facebook .cff-likebox,
.tm-sidebox--facebook .cff-like-box,
.tm-sidebox--facebook .cff-page-info,
.tm-sidebox--facebook .cff-header-info,
.tm-sidebox--facebook .cff-likebox-container{
    display:block !important;
    margin:0 !important;
}

/* Ingen ekstra bundluft i Facebook-sideboksen. */
.tm-sidebox--facebook .tm-sidebox__content > *{
    margin-bottom:0 !important;
}


/* ===== 1.5.6: Mest læste ===== */
.tm-most-read{
    list-style:none;
    margin:0;
    padding:0;
}

.tm-most-read li{
    display:grid;
    grid-template-columns:28px 1fr;
    gap:8px;
    align-items:start;
    padding:10px 0;
    border-bottom:1px solid #e2e5e8;
}

.tm-most-read li:last-child{
    border-bottom:0;
}

.tm-most-read__num{
    color:#d71920;
    font-size:22px;
    line-height:1;
    font-weight:900;
}

.tm-most-read a{
    font-size:13px;
    line-height:1.35;
    font-weight:700;
    color:#1f2328;
}

.tm-most-read a:hover{
    color:#d71920;
}


/* ===== 1.5.7: kompakt Facebook-sideboks uden hvid luft ===== */
.tm-sidebox--facebook .tm-sidebox__content{
    padding:10px !important;
    min-height:0 !important;
    height:auto !important;
    overflow:hidden !important;
}

.tm-facebook-compact{
    width:100%;
    max-width:300px;
    height:130px;
    overflow:hidden;
    margin:0 auto;
}

.tm-facebook-compact iframe{
    display:block;
    width:100% !important;
    max-width:300px !important;
    height:130px !important;
    min-height:130px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.tm-sidebox--facebook{
    min-height:0 !important;
    height:auto !important;
}

@media(max-width:767px){
    .tm-facebook-compact,
    .tm-facebook-compact iframe{
        max-width:100% !important;
        width:100% !important;
        height:130px !important;
    }
}


/* ===== 1.5.8: lidt smallere midterkolonne ===== */
@media(min-width:1360px){
    .tm-shell{
        width:auto !important;
        max-width:1580px !important;
        margin:18px auto 0 !important;
        padding:0 !important;
        display:grid !important;
        grid-template-columns:300px minmax(760px,940px) 300px !important;
        gap:20px !important;
        justify-content:center !important;
        align-items:start !important;
    }

    .tm-center{
        width:100% !important;
        max-width:940px !important;
        min-width:0 !important;
        margin:0 !important;
    }

    .tm-rail{
        width:300px !important;
        min-width:300px !important;
        max-width:300px !important;
    }
}

/* På lidt smallere desktops må centerkolonnen krympe,
   men sidebars forbliver 300 px så længe der er plads. */
@media(min-width:1360px) and (max-width:1579px){
    .tm-shell{
        width:calc(100vw - 24px) !important;
        max-width:none !important;
        grid-template-columns:300px minmax(700px,1fr) 300px !important;
    }
    .tm-center{
        max-width:none !important;
    }
}


/* ===== 1.5.9: fast 700 px midterkolonne ===== */
@media(min-width:1360px){
    .tm-shell{
        width:1340px !important;
        max-width:1340px !important;
        margin:18px auto 0 !important;
        padding:0 !important;
        display:grid !important;
        grid-template-columns:300px 700px 300px !important;
        gap:20px !important;
        justify-content:center !important;
        align-items:start !important;
    }

    .tm-center{
        width:700px !important;
        max-width:700px !important;
        min-width:700px !important;
        margin:0 !important;
    }

    .tm-rail{
        width:300px !important;
        min-width:300px !important;
        max-width:300px !important;
    }
}

/* Under 1360 px prioriteres hovedindholdet og sidebars skjules som før. */
@media(max-width:1359px){
    .tm-shell{
        display:block !important;
        width:calc(100vw - 24px) !important;
        max-width:1120px !important;
        margin:18px auto 0 !important;
        padding:0 !important;
    }

    .tm-center{
        width:100% !important;
        max-width:1120px !important;
        min-width:0 !important;
        margin:0 auto !important;
    }

    .tm-rail{
        display:none !important;
    }
}


/* ===== 1.6.5: TOP-banner i headerens højre side ===== */
.tm-header__inner{
    display:flex !important;
    align-items:center !important;
    gap:24px !important;
}

.tm-header-top-ad{
    margin-left:auto !important;
    width:970px !important;
    max-width:calc(100% - 470px) !important;
    height:90px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    overflow:hidden !important;
}

.tm-header-top-ad .tm-ad,
.tm-header-top-ad .travet-reklame-slot,
.tm-header-top-ad a{
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
    margin:0 !important;
    padding:0 !important;
    display:block !important;
}

.tm-header-top-ad img{
    width:970px !important;
    max-width:100% !important;
    height:90px !important;
    object-fit:contain !important;
    object-position:right center !important;
    display:block !important;
}

@media(max-width:1359px){
    .tm-header-top-ad{
        max-width:calc(100% - 330px) !important;
    }
}

@media(max-width:767px){
    .tm-header-top-ad{
        display:none !important;
    }
}


/* ===== 1.6.6: TOP i header uden boks/ramme ===== */
.tm-header-top-ad,
.tm-header-top-ad .tm-ad,
.tm-header-top-ad .tm-ad--wide,
.tm-header-top-ad .travet-reklame-slot,
.tm-header-top-ad .travet-reklame-slot > a{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    outline:0 !important;
    padding:0 !important;
}

.tm-header-top-ad::before,
.tm-header-top-ad::after,
.tm-header-top-ad .tm-ad::before,
.tm-header-top-ad .tm-ad::after,
.tm-header-top-ad .travet-reklame-slot::before,
.tm-header-top-ad .travet-reklame-slot::after{
    display:none !important;
    content:none !important;
}


/* ===== 1.6.7: tydelige tabelceller i artikelindhold ===== */
.single-post .tm-entry-content table,
.single-post .entry-content table,
.single-post .td-post-content table{
    width:100% !important;
    border-collapse:collapse !important;
    border-spacing:0 !important;
    margin:22px 0 28px !important;
    background:#fff !important;
}

.single-post .tm-entry-content table th,
.single-post .tm-entry-content table td,
.single-post .entry-content table th,
.single-post .entry-content table td,
.single-post .td-post-content table th,
.single-post .td-post-content table td{
    border:1px solid #cfd5dc !important;
    padding:10px 12px !important;
    text-align:left !important;
    vertical-align:middle !important;
    line-height:1.4 !important;
}

.single-post .tm-entry-content table th,
.single-post .entry-content table th,
.single-post .td-post-content table th{
    font-weight:700 !important;
    background:#f0f3f6 !important;
}

.single-post .tm-entry-content table tbody tr:nth-child(even) td,
.single-post .entry-content table tbody tr:nth-child(even) td,
.single-post .td-post-content table tbody tr:nth-child(even) td{
    background:#fafbfc !important;
}

@media(max-width:767px){
    .single-post .tm-entry-content,
    .single-post .entry-content,
    .single-post .td-post-content{
        overflow-x:auto;
    }

    .single-post .tm-entry-content table,
    .single-post .entry-content table,
    .single-post .td-post-content table{
        min-width:640px;
    }
}


/* ===== 1.7.3: hus-ikon og mobilmenu ===== */
.tm-nav__inner{
    display:flex !important;
    align-items:stretch !important;
}

.tm-nav__home{
    width:54px !important;
    min-width:54px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#e31a22 !important;
    text-decoration:none !important;
}

.tm-nav__home svg{
    width:22px !important;
    height:22px !important;
    fill:#fff !important;
    display:block !important;
}

.tm-nav__menu{
    flex:1 1 auto !important;
}

.tm-nav__menu > ul,
.tm-nav__menu .menu{
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
}

.tm-nav__toggle{
    display:none;
    border:0;
    background:transparent;
    cursor:pointer;
}

@media (max-width: 767px){
    .tm-nav{
        position:relative !important;
    }

    .tm-nav__inner{
        min-height:58px !important;
        align-items:center !important;
        position:relative !important;
    }

    .tm-nav__home{
        width:54px !important;
        min-width:54px !important;
        height:58px !important;
    }

    .tm-nav__toggle{
        margin-left:auto !important;
        width:58px !important;
        height:58px !important;
        padding:0 17px !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:center !important;
        gap:5px !important;
        background:#11151b !important;
    }

    .tm-nav__toggle span{
        display:block !important;
        width:24px !important;
        height:3px !important;
        background:#fff !important;
        border-radius:2px !important;
        transition:transform .2s ease, opacity .2s ease !important;
    }

    .tm-nav__toggle[aria-expanded="true"] span:nth-child(1){
        transform:translateY(8px) rotate(45deg) !important;
    }

    .tm-nav__toggle[aria-expanded="true"] span:nth-child(2){
        opacity:0 !important;
    }

    .tm-nav__toggle[aria-expanded="true"] span:nth-child(3){
        transform:translateY(-8px) rotate(-45deg) !important;
    }

    .tm-nav__menu{
        display:none !important;
        position:absolute !important;
        left:0 !important;
        right:0 !important;
        top:58px !important;
        z-index:9999 !important;
        background:#11151b !important;
        border-top:1px solid rgba(255,255,255,.12) !important;
        box-shadow:0 8px 18px rgba(0,0,0,.18) !important;
    }

    .tm-nav__menu.is-open{
        display:block !important;
    }

    .tm-nav__menu ul,
    .tm-nav__menu .menu{
        display:block !important;
        width:100% !important;
    }

    .tm-nav__menu li{
        display:block !important;
        width:100% !important;
        border-bottom:1px solid rgba(255,255,255,.09) !important;
    }

    .tm-nav__menu li:last-child{
        border-bottom:0 !important;
    }

    .tm-nav__menu a{
        display:block !important;
        width:100% !important;
        padding:15px 20px !important;
        line-height:1.25 !important;
        white-space:normal !important;
    }
}


/* ===== 1.7.5: brug valgt WordPress-menu + undermenuer ===== */
@media (min-width: 768px){
    .tm-nav__menu .menu{
        display:flex !important;
        align-items:stretch !important;
    }

    .tm-nav__menu .menu > li{
        position:relative !important;
    }

    .tm-nav__menu .sub-menu{
        display:none !important;
        position:absolute !important;
        top:100% !important;
        left:0 !important;
        z-index:10000 !important;
        min-width:230px !important;
        margin:0 !important;
        padding:0 !important;
        list-style:none !important;
        background:#11151b !important;
        box-shadow:0 8px 20px rgba(0,0,0,.22) !important;
    }

    .tm-nav__menu li:hover > .sub-menu,
    .tm-nav__menu li:focus-within > .sub-menu{
        display:block !important;
    }

    .tm-nav__menu .sub-menu li{
        display:block !important;
        width:100% !important;
        border-top:1px solid rgba(255,255,255,.08) !important;
    }

    .tm-nav__menu .sub-menu a{
        display:block !important;
        width:100% !important;
        padding:13px 16px !important;
        white-space:nowrap !important;
    }

    .tm-nav__menu .sub-menu .sub-menu{
        top:0 !important;
        left:100% !important;
    }
}

@media (max-width: 767px){
    .tm-nav__menu .sub-menu{
        display:block !important;
        position:static !important;
        margin:0 !important;
        padding:0 0 0 18px !important;
        list-style:none !important;
        background:rgba(255,255,255,.035) !important;
        box-shadow:none !important;
    }

    .tm-nav__menu .sub-menu li{
        border-bottom:0 !important;
        border-top:1px solid rgba(255,255,255,.06) !important;
    }

    .tm-nav__menu .sub-menu a{
        padding:12px 20px !important;
        font-size:.94em !important;
    }
}


/* 1.7.6: skjul kalenderens egen dublerede titel på den fulde kalender-side */
body.tm-page-travkalender .travet-calendar-title,
body.tm-page-travkalender .travet-travkalender-title,
body.tm-page-travkalender .travet-calendar-header > h2:first-child,
body.tm-page-travkalender .travet-calendar-header > h3:first-child{
    display:none !important;
}


/* 1.8.0: ren navigation + søgning */
.tm-main-nav .tm-home + *,
.tm-main-nav .tm-home-button + .tm-nav-spacer,
.tm-main-nav .tm-home-link + .tm-nav-spacer,
.tm-main-nav .tm-house + .tm-nav-spacer{
    border-left:0 !important;
}

/* Fjern smal tom/rød dekorationsblok direkte efter hjem-knappen */
.tm-main-nav > .tm-nav-inner > :empty,
.tm-main-nav .menu > li:empty{
    display:none !important;
}

.tm-nav-search{
    position:relative;
    margin-left:auto;
    flex:0 0 auto;
    display:flex;
    align-items:center;
}
.tm-nav-search__toggle{
    width:44px;
    height:44px;
    border:0;
    background:transparent;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
}
.tm-nav-search__toggle:hover,
.tm-nav-search__toggle:focus{
    background:rgba(255,255,255,.10);
}
.tm-nav-search__toggle svg{
    width:21px;
    height:21px;
    fill:currentColor;
}
.tm-nav-search__form{
    position:absolute;
    right:0;
    top:100%;
    z-index:9999;
    display:none;
    align-items:center;
    gap:8px;
    width:360px;
    max-width:calc(100vw - 30px);
    padding:12px;
    background:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
    border:1px solid #e4e4e4;
}
.tm-nav-search.is-open .tm-nav-search__form{
    display:flex;
}
.tm-nav-search__form input{
    flex:1 1 auto;
    min-width:0;
    height:40px;
    padding:0 12px;
    border:1px solid #cfd3d7;
    font:inherit;
    color:#111;
    background:#fff;
}
.tm-nav-search__form button{
    height:40px;
    padding:0 15px;
    border:0;
    background:#d71920;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

@media(max-width:767px){
    .tm-nav-search{
        margin-left:0;
    }
    .tm-nav-search__toggle{
        width:42px;
        height:42px;
    }
    .tm-nav-search__form{
        position:fixed;
        left:15px;
        right:15px;
        top:auto;
        width:auto;
    }
}


/* 1.8.1: hamburger kun på mobil, søgning helt til højre */
.tm-nav__toggle{
    display:none !important;
}
.tm-nav__inner{
    display:flex;
    align-items:center;
}
.tm-nav__menu{
    flex:1 1 auto;
    min-width:0;
}
.tm-nav-search{
    margin-left:auto !important;
    order:99;
}
@media(max-width:767px){
    .tm-nav__toggle{
        display:flex !important;
    }
    .tm-nav__menu{
        flex:0 0 100%;
    }
    .tm-nav-search{
        margin-left:auto !important;
    }
}


/* 1.8.2: søgning helt til højre + fjern tomt rødt menupunkt */
.tm-nav__inner{
    display:flex !important;
    align-items:stretch !important;
    width:100% !important;
}
.tm-nav__home{
    flex:0 0 54px !important;
}
.tm-nav__menu{
    flex:1 1 auto !important;
    min-width:0 !important;
}
.tm-nav-search{
    position:relative !important;
    flex:0 0 50px !important;
    width:50px !important;
    margin-left:auto !important;
    order:99 !important;
    display:flex !important;
    align-items:stretch !important;
}
.tm-nav-search__toggle{
    width:50px !important;
    min-width:50px !important;
    height:auto !important;
    min-height:48px !important;
    margin:0 !important;
}
.tm-nav .menu > li:empty,
.tm-nav .menu > li > a:empty{
    display:none !important;
}
.tm-nav .menu > li:has(> a:empty){
    display:none !important;
}
@media(max-width:767px){
    .tm-nav__inner{
        flex-wrap:wrap !important;
    }
    .tm-nav-search{
        margin-left:auto !important;
    }
}




/* 1.8.4: Salgsmenu i ny Travet-skabelon, 2 heste pr. række */
body.page-salgsmenu .tm-entry-content .woocommerce ul.products,
body.page-salgsmenu .tm-entry-content ul.products,
body.woocommerce-page .tm-entry-content ul.products{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:24px !important;
    margin:0 !important;
    padding:0 !important;
}

body.page-salgsmenu .tm-entry-content .woocommerce ul.products::before,
body.page-salgsmenu .tm-entry-content .woocommerce ul.products::after,
body.page-salgsmenu .tm-entry-content ul.products::before,
body.page-salgsmenu .tm-entry-content ul.products::after{
    display:none !important;
    content:none !important;
}

body.page-salgsmenu .tm-entry-content ul.products li.product,
body.woocommerce-page .tm-entry-content ul.products li.product{
    float:none !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 0 18px !important;
    box-sizing:border-box !important;
}

body.page-salgsmenu .tm-entry-content ul.products li.product a img,
body.woocommerce-page .tm-entry-content ul.products li.product a img{
    width:100% !important;
    height:auto !important;
    display:block !important;
    margin:0 0 12px !important;
}

body.page-salgsmenu .woocommerce-result-count,
body.page-salgsmenu .woocommerce-ordering{
    margin-bottom:20px !important;
}

@media(max-width:767px){
    body.page-salgsmenu .tm-entry-content .woocommerce ul.products,
    body.page-salgsmenu .tm-entry-content ul.products,
    body.woocommerce-page .tm-entry-content ul.products{
        grid-template-columns:1fr !important;
        gap:18px !important;
    }
}


/* 1.8.5: Salgsmenu skal visuelt ligne varer – ikke almindelige nyhedsartikler */
body.tax-product_cat .tm-archive-grid,
body.post-type-archive-product .tm-archive-grid,
body.category-salgsmenu .tm-archive-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:24px !important;
}

body.tax-product_cat .tm-archive-card,
body.post-type-archive-product .tm-archive-card,
body.category-salgsmenu .tm-archive-card{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    padding:0 0 18px !important;
    background:#fff !important;
    border:1px solid #dfe3e6 !important;
    border-radius:4px !important;
    overflow:hidden !important;
    box-shadow:0 2px 8px rgba(0,0,0,.05) !important;
    box-sizing:border-box !important;
}

body.tax-product_cat .tm-archive-card:hover,
body.post-type-archive-product .tm-archive-card:hover,
body.category-salgsmenu .tm-archive-card:hover{
    box-shadow:0 5px 16px rgba(0,0,0,.10) !important;
}

body.tax-product_cat .tm-archive-card img,
body.post-type-archive-product .tm-archive-card img,
body.category-salgsmenu .tm-archive-card img{
    width:100% !important;
    height:auto !important;
    margin:0 0 15px !important;
    display:block !important;
}

body.tax-product_cat .tm-archive-card > *:not(a):not(img),
body.post-type-archive-product .tm-archive-card > *:not(a):not(img),
body.category-salgsmenu .tm-archive-card > *:not(a):not(img){
    margin-left:18px !important;
    margin-right:18px !important;
}

/* Hvis kortets billede ligger i et link, lad billedlinket fylde hele toppen */
body.category-salgsmenu .tm-archive-card > a:first-child{
    display:block !important;
    width:100% !important;
}

@media(max-width:767px){
    body.tax-product_cat .tm-archive-grid,
    body.post-type-archive-product .tm-archive-grid,
    body.category-salgsmenu .tm-archive-grid{
        grid-template-columns:1fr !important;
        gap:18px !important;
    }
}


/* 1.8.6: rigtig varekort-visning på /salgsmenu/ */
.tm-sales-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
    margin:0 0 30px;
}

.tm-sale-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    background:#fff;
    border:1px solid #d9dde1;
    border-radius:5px;
    overflow:hidden;
    box-shadow:0 2px 9px rgba(0,0,0,.06);
    transition:box-shadow .18s ease,transform .18s ease;
}

.tm-sale-card:hover{
    box-shadow:0 6px 18px rgba(0,0,0,.11);
    transform:translateY(-1px);
}

.tm-sale-card__image{
    display:block;
    width:100%;
    aspect-ratio:4/3;
    overflow:hidden;
    background:#eef0f2;
}

.tm-sale-card__image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    margin:0;
}

.tm-sale-card__body{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    padding:17px 18px 19px;
}

.tm-sale-card__badge{
    align-self:flex-start;
    display:inline-block;
    margin:0 0 8px;
    padding:4px 8px;
    background:#c71920;
    color:#fff;
    font-size:11px;
    line-height:1;
    font-weight:800;
    letter-spacing:.04em;
}

.tm-sale-card__title{
    margin:0 0 9px !important;
    font-size:22px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
}

.tm-sale-card__title a{
    color:#101820;
    text-decoration:none;
}

.tm-sale-card__summary{
    margin:0 0 17px;
    color:#4d5358;
    font-size:14px;
    line-height:1.55;
}

.tm-sale-card__button{
    display:inline-block;
    align-self:flex-start;
    margin-top:auto;
    padding:9px 13px;
    background:#111820;
    color:#fff !important;
    text-decoration:none !important;
    font-size:12px;
    line-height:1;
    font-weight:800;
}

@media(max-width:767px){
    .tm-sales-grid{
        grid-template-columns:1fr;
        gap:18px;
    }
}


/* 1.8.7: enkelt salgsannonce i den nye Travet-skabelon */
.tm-product-single{
    background:#fff;
    border:1px solid #d9dde1;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
    margin:0 0 30px;
}

.tm-product-single__top{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);
    gap:0;
    border-bottom:1px solid #e3e6e8;
}

.tm-product-single__gallery{
    padding:20px;
    border-right:1px solid #e3e6e8;
    min-width:0;
}

.tm-product-single__main-image{
    display:block;
    width:100%;
    background:#f2f3f4;
    overflow:hidden;
}

.tm-product-single__main-image img{
    display:block;
    width:100%;
    height:auto;
    margin:0;
}

.tm-product-single__thumbs{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    margin-top:10px;
}

.tm-product-single__thumbs a{
    display:block;
    aspect-ratio:4/3;
    overflow:hidden;
    border:1px solid #d9dde1;
}

.tm-product-single__thumbs img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    margin:0;
}

.tm-product-single__info{
    padding:26px 24px;
}

.tm-product-single__badge{
    display:inline-block;
    padding:5px 9px;
    margin:0 0 12px;
    background:#c71920;
    color:#fff;
    font-size:11px;
    line-height:1;
    font-weight:900;
    letter-spacing:.05em;
}

.tm-product-single__title{
    margin:0 0 15px !important;
    color:#111820;
    font-size:32px !important;
    line-height:1.1 !important;
    font-weight:900 !important;
}

.tm-product-single__price{
    margin:0 0 18px;
    color:#c71920;
    font-size:25px;
    line-height:1.15;
    font-weight:900;
}

.tm-product-single__price del{
    opacity:.5;
    font-size:.75em;
}

.tm-product-single__category{
    padding-top:14px;
    border-top:1px solid #e3e6e8;
    color:#555b60;
    font-size:14px;
    line-height:1.5;
}

.tm-product-single__category a{
    color:#c71920;
    text-decoration:none;
    font-weight:700;
}

.tm-product-single__back{
    display:inline-block;
    margin-top:22px;
    padding:10px 13px;
    background:#111820;
    color:#fff !important;
    text-decoration:none !important;
    font-size:12px;
    font-weight:800;
}

.tm-product-single__description{
    padding:24px 26px 30px;
}

.tm-product-single__description-title{
    margin:0 0 18px;
    padding:0 0 9px;
    border-bottom:3px solid #c71920;
    color:#111820;
    font-size:19px;
    line-height:1.2;
    font-weight:900;
    text-transform:uppercase;
}

.tm-product-single__description .tm-entry-content{
    max-width:none;
}

.tm-product-single__description .tm-entry-content > :first-child{
    margin-top:0;
}

.tm-product-single__description .tm-entry-content img{
    max-width:100%;
    height:auto;
}

@media(max-width:767px){
    .tm-product-single__top{
        grid-template-columns:1fr;
    }

    .tm-product-single__gallery{
        padding:14px;
        border-right:0;
        border-bottom:1px solid #e3e6e8;
    }

    .tm-product-single__info{
        padding:20px 18px;
    }

    .tm-product-single__title{
        font-size:27px !important;
    }

    .tm-product-single__description{
        padding:20px 18px 24px;
    }
}


/* 1.9.3: topmenu til højre vises vandret uden punkttegn */
.tm-topbar ul,
.tm-topbar .menu,
.tm-top-menu,
.tm-top-menu ul{
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
}

.tm-topbar .menu,
.tm-top-menu{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:18px !important;
}

.tm-topbar li,
.tm-top-menu li{
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
}

.tm-topbar li::marker,
.tm-top-menu li::marker{
    content:"" !important;
}

.tm-topbar li::before,
.tm-top-menu li::before{
    display:none !important;
    content:none !important;
}

.tm-topbar a,
.tm-top-menu a{
    display:block;
    white-space:nowrap;
}


/* ===== 1.9.7: Facebook-boks i højre sidebar =====
   Facebook Page Plugin skal have en reel iframe-højde.
   De generelle sidebar-regler sætter ellers iframe til height:auto,
   hvilket kan få Facebook-indholdet til at blive klippet. */
.tm-sidebox--facebook .tm-sidebox__content{
    overflow:visible !important;
}
.tm-sidebox--facebook .tm-facebook-compact{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
}
.tm-sidebox--facebook .tm-facebook-compact iframe{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:420px !important;
    min-height:420px !important;
    margin:0 !important;
    border:0 !important;
}


/* ===== 1.9.9: Facebook Timeline =====
   tabs=timeline giver Facebook Page Plugin rigtigt feed-indhold i stedet
   for kun den kompakte side-header med et stort tomt område nedenunder. */
.tm-sidebox--facebook .tm-facebook-compact{
    height:420px !important;
    min-height:420px !important;
    overflow:hidden !important;
}
.tm-sidebox--facebook .tm-facebook-compact iframe{
    height:420px !important;
    min-height:420px !important;
}


/* ===== 1.10.0: Facebook-header må ikke klippes ===== */
.tm-sidebox--facebook{
    overflow:visible !important;
}
.tm-sidebox--facebook .tm-sidebox__content{
    padding-top:20px !important;
    overflow:visible !important;
    height:auto !important;
    max-height:none !important;
}
.tm-sidebox--facebook .tm-facebook-compact{
    position:relative !important;
    width:100% !important;
    height:470px !important;
    min-height:470px !important;
    max-height:none !important;
    overflow:visible !important;
    clip:auto !important;
    clip-path:none !important;
    transform:none !important;
}
.tm-sidebox--facebook .tm-facebook-compact iframe{
    position:relative !important;
    top:0 !important;
    left:0 !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:470px !important;
    min-height:470px !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    clip:auto !important;
    clip-path:none !important;
    transform:none !important;
}


/* ===== 1.10.1: Kompakt Facebook-sideboks uden timeline ===== */
.tm-sidebox--facebook .tm-sidebox__content{
    padding-top:14px !important;
    padding-bottom:14px !important;
    overflow:visible !important;
    height:auto !important;
    max-height:none !important;
}
.tm-sidebox--facebook .tm-facebook-compact{
    width:100% !important;
    height:210px !important;
    min-height:210px !important;
    max-height:210px !important;
    overflow:hidden !important;
    margin:0 !important;
}
.tm-sidebox--facebook .tm-facebook-compact iframe{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:210px !important;
    min-height:210px !important;
    max-height:210px !important;
    margin:0 !important;
    border:0 !important;
    top:0 !important;
    transform:none !important;
}


/* ===== 1.10.2: Facebook kompakt højde =====
   Lidt ekstra iframe-højde viser hele følgerantallet.
   Yderboksen må samtidig ikke beholde en gammel fast/minimumshøjde. */
.tm-sidebox--facebook{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
}
.tm-sidebox--facebook .tm-sidebox__content{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding:14px 12px !important;
    overflow:hidden !important;
}
.tm-sidebox--facebook .tm-facebook-compact{
    display:block !important;
    width:100% !important;
    height:235px !important;
    min-height:235px !important;
    max-height:235px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
}
.tm-sidebox--facebook .tm-facebook-compact iframe{
    display:block !important;
    width:100% !important;
    height:235px !important;
    min-height:235px !important;
    max-height:235px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}


/* ===== 1.10.3: endelig kompakt Facebook-boks ===== */
.tm-sidebox--facebook,
.tm-sidebox--facebook .tm-sidebox__content{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
}
.tm-sidebox--facebook .tm-sidebox__content{
    padding:14px 12px !important;
    overflow:hidden !important;
}
.tm-sidebox--facebook iframe[src*="facebook.com/plugins/page.php"]{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:235px !important;
    min-height:235px !important;
    max-height:235px !important;
    margin:0 !important;
    border:0 !important;
}


/* ===== 1.10.4: Direkte Facebook-boks ===== */
.tm-facebook-direct{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
}
.tm-facebook-direct .tm-sidebox__content{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding:14px 12px !important;
    overflow:hidden !important;
}
.tm-facebook-direct__inner{
    height:190px !important;
    min-height:190px !important;
    max-height:190px !important;
    overflow:hidden !important;
}
.tm-facebook-direct__iframe{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:190px !important;
    min-height:190px !important;
    max-height:190px !important;
    margin:0 !important;
    border:0 !important;
}


/* ===== 1.10.5: Facebook finjustering ===== */
.tm-facebook-direct{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding-bottom:0 !important;
    margin-bottom:0 !important;
}
.tm-facebook-direct .tm-sidebox__content{
    height:210px !important;
    min-height:210px !important;
    max-height:210px !important;
    padding:0 12px !important;
    margin:0 !important;
    overflow:hidden !important;
}
.tm-facebook-direct__inner{
    height:210px !important;
    min-height:210px !important;
    max-height:210px !important;
    margin:0 !important;
    overflow:hidden !important;
}
.tm-facebook-direct__iframe{
    height:210px !important;
    min-height:210px !important;
    max-height:210px !important;
    margin:0 !important;
}


/* ===== 1.10.6: Facebook follower-tekst uden ekstra bund =====
   Iframe får ekstra intern højde, mens wrapperen beskærer den tomme bund. */
.tm-facebook-direct .tm-sidebox__content{
    height:205px !important;
    min-height:205px !important;
    max-height:205px !important;
    padding:0 12px !important;
    margin:0 !important;
    overflow:hidden !important;
}
.tm-facebook-direct__inner{
    position:relative !important;
    height:205px !important;
    min-height:205px !important;
    max-height:205px !important;
    margin:0 !important;
    overflow:hidden !important;
}
.tm-facebook-direct__iframe{
    position:relative !important;
    top:0 !important;
    height:235px !important;
    min-height:235px !important;
    max-height:235px !important;
    margin:0 !important;
}


/* ===== 1.10.7: Relaterede + seneste nyheder under artikel ===== */
.tm-under-article{
    margin-top:34px;
    padding-top:0;
}
.tm-under-article + .tm-under-article{
    margin-top:38px;
}
.tm-under-article__heading{
    border-top:4px solid #11151b;
    border-bottom:1px solid #d9dde2;
    margin-bottom:18px;
    padding:12px 0 10px;
}
.tm-under-article__heading h2{
    margin:0 !important;
    font-size:24px !important;
    line-height:1.15 !important;
    font-weight:800 !important;
    text-transform:uppercase;
    color:#11151b;
}
.tm-under-news-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.tm-under-news-card{
    min-width:0;
    border:1px solid #e1e4e8;
    background:#fff;
}
.tm-under-news-card__image{
    display:block;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#f1f2f4;
}
.tm-under-news-card__image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.tm-under-news-card__placeholder{
    display:block;
    width:100%;
    height:100%;
    background:#f1f2f4;
}
.tm-under-news-card__body{
    padding:12px 13px 14px;
}
.tm-under-news-card__meta{
    margin-bottom:7px;
    font-size:12px;
    line-height:1.3;
    color:#747b84;
}
.tm-under-news-card__title{
    margin:0 !important;
    font-size:17px !important;
    line-height:1.25 !important;
    font-weight:800 !important;
}
.tm-under-news-card__title a{
    color:#11151b !important;
    text-decoration:none !important;
}
.tm-under-news-card__title a:hover{
    color:#d71920 !important;
}
.tm-news-pager{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid #d9dde2;
}
.tm-news-pager__button{
    display:inline-flex;
    align-items:center;
    min-height:40px;
    padding:0 15px;
    background:#11151b;
    color:#fff !important;
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    text-decoration:none !important;
}
.tm-news-pager__button:hover{
    background:#d71920;
}
.tm-news-pager__page{
    font-size:13px;
    font-weight:700;
    color:#676e76;
}
.tm-under-article__empty{
    margin:0;
    color:#676e76;
}

@media(max-width:767px){
    .tm-under-news-grid{
        grid-template-columns:1fr;
        gap:14px;
    }
    .tm-under-article__heading h2{
        font-size:21px !important;
    }
    .tm-news-pager{
        flex-wrap:wrap;
    }
    .tm-news-pager__page{
        order:3;
        width:100%;
        text-align:center;
    }
}


/* ===== 1.10.8: Nummereret pagination under Seneste nyheder ===== */
.tm-news-pager--numbers{
    display:block;
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid #d9dde2;
}
.tm-news-pages{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:7px;
}
.tm-news-pages .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    height:38px;
    padding:0 10px;
    border:1px solid #d5d9de;
    background:#fff;
    color:#11151b !important;
    font-size:14px;
    line-height:1;
    font-weight:800;
    text-decoration:none !important;
}
.tm-news-pages .page-numbers:hover{
    border-color:#11151b;
    background:#11151b;
    color:#fff !important;
}
.tm-news-pages .page-numbers.current{
    border-color:#d71920;
    background:#d71920;
    color:#fff !important;
}
.tm-news-pages .page-numbers.dots{
    border-color:transparent;
    background:transparent;
    min-width:24px;
    padding:0;
}
@media(max-width:767px){
    .tm-news-pages{
        gap:5px;
    }
    .tm-news-pages .page-numbers{
        min-width:34px;
        height:34px;
        padding:0 8px;
        font-size:13px;
    }
}


/* ===== 1.10.9: Facebook slutjustering =====
   Hele følgerteksten skal være synlig.
   Den ydre sideboks må ikke have gammel fast højde/min-height. */
.tm-right-rail .tm-facebook-direct{
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding:0 !important;
    margin:0 !important;
    overflow:visible !important;
}
.tm-right-rail .tm-facebook-direct .tm-sidebox__content{
    display:block !important;
    box-sizing:border-box !important;
    height:250px !important;
    min-height:250px !important;
    max-height:250px !important;
    padding:0 12px !important;
    margin:0 !important;
    overflow:hidden !important;
}
.tm-right-rail .tm-facebook-direct__inner{
    display:block !important;
    box-sizing:border-box !important;
    height:250px !important;
    min-height:250px !important;
    max-height:250px !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
}
.tm-right-rail .tm-facebook-direct__iframe{
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    height:250px !important;
    min-height:250px !important;
    max-height:250px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    position:static !important;
    transform:none !important;
}

/* Fjern eventuel generel equal-height/min-height på netop Facebook-kortet */
.tm-right-rail .tm-sidebox.tm-facebook-direct,
.tm-right-rail .tm-sidebox.tm-facebook-direct > .tm-sidebox__content{
    flex:none !important;
    align-self:auto !important;
}


/* ===== 1.10.13: Forsidekategori + Se alle ===== */
.tm-section__heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}
.tm-section__heading .tm-section__title{
    margin:0 !important;
}
.tm-section__all{
    flex:0 0 auto;
    color:#11151b !important;
    font-size:12px;
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
    text-decoration:none !important;
    letter-spacing:.02em;
}
.tm-section__all:hover{
    color:#d71920 !important;
}
@media(max-width:767px){
    .tm-section__heading{
        gap:10px;
    }
    .tm-section__all{
        font-size:11px;
    }
}


/* ===== 1.10.17: INDHOLD-banner – 680 px bredde, proportional højde =====
 * Overskriver de gamle faste 680×120-regler i temaet.
 * Fx 1280×853 vises ca. 680×453 uden beskæring.
 */
.tm-content-ad{
    width:680px !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    margin:20px auto !important;
}

.tm-content-ad .tm-ad,
.tm-content-ad .tm-ad--wide,
.tm-content-ad .travet-reklame-slot,
.tm-content-ad .travet-reklame-slot--indhold,
.tm-content-ad .travet-reklame-slot a{
    width:680px !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

.tm-content-ad img,
.tm-content-ad .travet-reklame-slot img,
.travet-reklame-slot--indhold img{
    display:block !important;
    width:680px !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    margin:0 auto !important;
}

@media(max-width:767px){
    .tm-content-ad,
    .tm-content-ad .tm-ad,
    .tm-content-ad .tm-ad--wide,
    .tm-content-ad .travet-reklame-slot,
    .tm-content-ad .travet-reklame-slot--indhold,
    .tm-content-ad .travet-reklame-slot a,
    .tm-content-ad img,
    .travet-reklame-slot--indhold img{
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
    }
}


/* ===== 1.10.18: INDHOLD-banner – mobil proportional højde =====
 * Mobilreglerne overskriver gamle faste bannerhøjder og object-fit-regler.
 */
@media(max-width:767px){
    body .tm-content-ad,
    body .tm-content-ad .tm-ad,
    body .tm-content-ad .tm-ad--wide,
    body .tm-content-ad .travet-reklame-slot,
    body .tm-content-ad .travet-reklame-slot--indhold,
    body .tm-content-ad .travet-reklame-slot a,
    body .tm-content-ad picture,
    body .tm-content-ad figure{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        overflow:visible !important;
        aspect-ratio:auto !important;
    }

    body .tm-content-ad img,
    body .tm-content-ad picture img,
    body .tm-content-ad figure img,
    body .tm-content-ad .travet-reklame-slot img,
    body .travet-reklame-slot--indhold img{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        aspect-ratio:auto !important;
        object-fit:contain !important;
        object-position:center center !important;
        margin:0 auto !important;
    }
}


/* ===== 1.10.19: Luft under INDHOLD-banner på mobil =====
 * Efter den proportionale mobilhøjde skal næste forside-sektion først starte
 * under hele banneret – ikke lægge overskriften ovenpå billedet.
 */
@media(max-width:767px){
    body.home .tm-content-ad{
        position:relative !important;
        display:block !important;
        clear:both !important;
        float:none !important;
        margin:20px auto 30px !important;
        padding:0 !important;
        height:auto !important;
        min-height:0 !important;
        overflow:visible !important;
    }

    body.home .tm-content-ad::after{
        content:"";
        display:block;
        clear:both;
    }

    body.home .tm-content-ad + section,
    body.home .tm-content-ad + .tm-section,
    body.home .tm-content-ad + .tm-home-section,
    body.home .tm-content-ad + .tm-front-section{
        clear:both !important;
        margin-top:0 !important;
        position:relative !important;
        z-index:auto !important;
    }

    body.home .tm-content-ad img{
        position:static !important;
        float:none !important;
    }
}


/* ===== 1.10.20: Sidebar – Travkalender + Seneste nyheder ===== */
/* Fjern kun kalenderens egen interne header/bjælke. Startlister,
   baneprogram og selve løbsdagskortene ændres ikke. */
.tm-sidebox__content .travet-sidebar-calendar > .travet-section-heading,
.tm-sidebox__content .travet-sidebar-calendar > .travet-section-heading__bar,
.tm-sidebox__content .travet-sidebar-calendar > [class*="calendar-header"],
.tm-sidebox__content .travet-sidebar-calendar > [class*="calendar-head"],
.tm-sidebox__content .travet-sidebar-calendar > [class*="calendar-title"],
.tm-sidebox__content .travet-sidebar-calendar > [class*="calendar-top"]{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}


/* ===== 1.10.21: Seneste nyheder – tidspunkt i stedet for nummer ===== */
.tm-latest-news .tm-latest-news__time{
    min-width:58px;
    width:auto;
    font-size:18px;
    line-height:1.2;
    letter-spacing:0;
    white-space:nowrap;
}
@media(max-width:767px){
    .tm-latest-news .tm-latest-news__time{
        min-width:54px;
        font-size:16px;
    }
}


/* ===== 1.10.22: Seneste nyheder – fast kolonne til tidspunkt =====
 * Tidspunkt og overskrift må aldrig overlappe hinanden.
 */
.tm-latest-news li{
    display:grid !important;
    grid-template-columns:72px minmax(0,1fr) !important;
    column-gap:14px !important;
    align-items:start !important;
}

.tm-latest-news .tm-latest-news__time{
    display:block !important;
    position:static !important;
    float:none !important;
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
    margin:0 !important;
    padding:0 !important;
    font-size:18px !important;
    line-height:1.25 !important;
    white-space:nowrap !important;
}

.tm-latest-news li > a{
    display:block !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
}

@media(max-width:767px){
    .tm-latest-news li{
        grid-template-columns:64px minmax(0,1fr) !important;
        column-gap:12px !important;
    }
    .tm-latest-news .tm-latest-news__time{
        width:64px !important;
        min-width:64px !important;
        max-width:64px !important;
        font-size:16px !important;
    }
}


/* ===== 1.10.23: Hvid baggrund omkring AdSense under hovedmenuen =====
 * Kun annonceområdet under menuen ændres. Selve menuen forbliver sort.
 */
body .tm-header-ad-area,
body .tm-header-ad-wrap,
body .tm-top-ad-area,
body .tm-top-ad-wrap,
body .travet-header-native-185,
body .tm-header-native-ad{
    background:#fff !important;
}

/* Hvis annonceområdet ligger i den første topsektion efter navigationen,
   skal den ydre wrapper heller ikke give sort baggrund. */
body .tm-main-nav + .tm-header-ad-area,
body .tm-main-nav + .tm-top-ad-area,
body .tm-main-nav + .travet-header-native-185{
    background:#fff !important;
}


/* ===== 1.10.33: Mobilforside – skjul Pony og Referater =====
 * Sektionerne bevares på desktop, men vises ikke på forsiden under 768 px.
 */
@media(max-width:767px){
    body.home .tm-section--pony,
    body.home .tm-section--referater{
        display:none !important;
    }
}


/* ===== 1.10.36: 10 seneste nyheder på undersider =====
 * Forsiden viser fortsat 5 i højre sidebar.
 * Artikler og øvrige undersider viser alle 10 på både PC og mobil.
 */
@media(min-width:768px){
    body.home .tm-rail--right .tm-latest-news li:nth-child(n+6){
        display:none !important;
    }

    body:not(.home) .tm-rail--right .tm-latest-news li:nth-child(n+6){
        display:grid !important;
    }
}

@media(max-width:767px){
    body.home .tm-rail--right .tm-latest-news li:nth-child(n+6){
        display:none !important;
    }

    body:not(.home) .tm-rail--right .tm-latest-news li:nth-child(n+6){
        display:grid !important;
    }

    /* Relaterede nyheder vises kun på desktop/tablet. */
    body.single .tm-under-article--related{
        display:none !important;
    }

    /* På mobilartikler ligger Seneste nyheder straks efter artiklen/nav-knapperne.
       Salgsannoncer, Travkalender og Facebook følger derefter. */
    body.single .tm-rail--right .tm-sidebox--latest-news{
        order:-50 !important;
    }
}

/* ===== 1.10.34: Forrige / næste nyhed under artiklen ===== */
.tm-article-nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin:20px 0 28px;
}

.tm-article-nav__item{
    min-width:0;
}

.tm-article-nav__item:empty{
    visibility:hidden;
}

.tm-article-nav__item a{
    display:flex;
    flex-direction:column;
    gap:7px;
    height:100%;
    padding:15px 16px;
    border:1px solid #d9dde2;
    background:#fff;
    text-decoration:none !important;
}

.tm-article-nav__item a:hover{
    border-color:#11151b;
}

.tm-article-nav__label{
    display:block;
    font-size:12px;
    line-height:1.2;
    font-weight:800;
    text-transform:uppercase;
    color:#d71920;
}

.tm-article-nav__title{
    display:block;
    font-size:15px;
    line-height:1.3;
    font-weight:800;
    color:#11151b;
}

.tm-article-nav__item--next{
    text-align:right;
}

@media(max-width:767px){
    .tm-article-nav{
        grid-template-columns:1fr;
        gap:10px;
        margin:18px 0 24px;
    }

    .tm-article-nav__item:empty{
        display:none;
    }

    .tm-article-nav__item--prev,
    .tm-article-nav__item--next{
        text-align:left;
    }

    .tm-article-nav__item a{
        padding:14px;
    }
}


/* ===== 1.10.37: Seneste nyheder nederst i mobilartikler =====
 * På en mobilartikel renderes en separat 10-nyheders boks i centerkolonnen
 * direkte efter Forrige/Næste-navigationen. Kopien i højre sidebar skjules
 * kun på single-visning, så boksen ikke optræder to gange.
 */
.tm-mobile-article-latest{
    display:none;
}

@media(max-width:767px){
    body.single .tm-mobile-article-latest{
        display:block !important;
        width:100% !important;
        margin:0 0 26px !important;
    }

    body.single .tm-mobile-article-latest .tm-sidebox{
        display:block !important;
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
    }

    /* Sidebaren fortsætter med Salgsannoncer, Travkalender og Facebook,
       men dens egen Seneste nyheder-boks skjules på mobilartikler. */
    body.single .tm-rail--right .tm-sidebox--latest-news{
        display:none !important;
    }
}
