/* markets-list SE - casino list styles (template casino-rows-se)
   Copied from sites-2/casinobasse-online/assets/site.css (sections 3, 7, 11 "Annons"),
   every selector scoped under .ml--SE, colours only through the --ml-* variables.
   Breakpoints as on the source: 740px (three cards side by side), 1280px, 1360px. */

/* Variable defaults = source values. :where() keeps them at zero specificity,
   so an asset's own .ml / .ml--SE rule always wins. */
:where(.ml--SE){
  --ml-text:#34443E;
  --ml-muted:#61716B;
  --ml-heading:#0C1B16;
  --ml-card-bg:#fff;
  --ml-card-border:#E1E8E4;
  --ml-panel-bg:#F4F7F5;
  --ml-accent:#0A6E4A;
  --ml-accent-text:#fff;
  --ml-bonus:#0A6E4A;
  --ml-cta-bg:linear-gradient(180deg,#FFC55A 0%,#FF9A1A 52%,#F27F0C 100%);
  --ml-cta-text:#2B1600;
  --ml-cta-hover:linear-gradient(180deg,#FFC55A 0%,#FF9A1A 52%,#F27F0C 100%);
  --ml-logo-bg:#fff;
  --ml-radius:18px;
}

/* Base (scoped) ------------------------------------------------------------ */
.ml--SE{color:var(--ml-text);line-height:1.65}
.ml--SE *,.ml--SE *::before,.ml--SE *::after{box-sizing:border-box}
.ml--SE img,.ml--SE svg{max-width:100%;display:block}
.ml--SE a{color:var(--ml-accent)}
.ml--SE h2{color:var(--ml-heading);text-wrap:balance}
.ml--SE :focus-visible{outline:3px solid var(--ml-accent);outline-offset:2px;border-radius:6px}
.ml--SE .i{width:1em;height:1em;flex:none;display:inline-block;vertical-align:-.125em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ml--SE .i--fill{fill:currentColor;stroke:none}
.ml--SE .ml-sprite{position:absolute;width:0;height:0;overflow:hidden}
.ml--SE .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* the source .wrap is the page container; inside an asset the list sits in the asset's own column */
.ml--SE .wrap{width:100%;max-width:1160px;margin:0 auto;padding:0}

/* List ------------------------------------------------------------------------ */
.ml--SE .ranking{padding:6px 0 30px;background:linear-gradient(180deg,transparent 0,var(--ml-panel-bg) 110px,var(--ml-panel-bg) calc(100% - 80px),transparent 100%)}
.ml--SE .ranking__head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 21px}
.ml--SE .ranking__head h2{margin:0;font-weight:700;font-size:1.0625rem;line-height:1.25;letter-spacing:-.01em}
.ml--SE .adtag{position:absolute;right:2px;top:calc(100% + 5px);font-weight:700;font-size:.625rem;line-height:1;letter-spacing:.12em;text-transform:uppercase;color:var(--ml-muted)}
.ml--SE .ranking__foot{margin:16px 2px 0;font-size:.75rem;line-height:1.5;color:var(--ml-muted)}
.ml--SE .ranking__foot a{color:inherit}

.ml--SE .casinos{list-style:none;margin:0;padding:0;display:grid;gap:14px}
/* card = image | features, CTA full width below (phones); three cards side by side from 740px */
.ml--SE .casino{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"logo features" "cta cta";align-items:center;gap:12px;margin:0;padding:12px;background:var(--ml-card-bg);border:1px solid var(--ml-card-border);border-radius:var(--ml-radius);box-shadow:0 1px 2px rgba(0,0,0,.05),0 8px 20px -12px rgba(0,0,0,.2);transition:box-shadow .2s,transform .2s,border-color .2s}
.ml--SE .casino::before,.ml--SE .casino::after{content:none}
/* #1 card: 2px ring in the CTA colour (border + 1px outer ring on the source) */
.ml--SE .casino--top{border-color:transparent;box-shadow:0 16px 36px -20px rgba(0,0,0,.3)}
.ml--SE .casino--top::before{content:"";position:absolute;inset:-1px;z-index:1;padding:2px;border-radius:calc(var(--ml-radius) + 1px);background:var(--ml-cta-bg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);pointer-events:none}
.ml--SE .casino__flag{position:absolute;top:-11px;left:16px;z-index:2;display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 10px 0 8px;border-radius:999px;background:var(--ml-cta-bg);color:var(--ml-cta-text);font-weight:800;font-size:.6875rem;line-height:1;letter-spacing:.05em;text-transform:uppercase;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 5px 12px -5px rgba(0,0,0,.35)}
.ml--SE .casino__flag .i{font-size:12px}

/* image tile: square toplist artwork, linked to the same offer as the button */
.ml--SE .casino__logo{grid-area:logo;position:relative;display:block;width:clamp(92px,27vw,108px);aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--ml-logo-bg);box-shadow:0 8px 16px -12px rgba(0,0,0,.4)}
.ml--SE .casino__logo::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--ml-card-border);pointer-events:none}
.ml--SE .casino__logo img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.ml--SE .casino__logo:hover img{transform:scale(1.04)}
/* rank number: a tab sitting exactly in the top left corner of the image */
.ml--SE .casino__rank{position:absolute;left:0;top:0;z-index:2;min-width:24px;height:24px;padding:0 7px 1px 6px;display:grid;place-items:center;border-radius:0 0 10px 0;background:var(--ml-heading);color:var(--ml-card-bg);font-weight:800;font-size:.8125rem;line-height:1}

.ml--SE .casino__features{grid-area:features;list-style:none;margin:0;padding:0;display:grid;gap:7px;font-size:.875rem;line-height:1.35;color:var(--ml-text)}
.ml--SE .casino__features li{position:relative;display:flex;align-items:flex-start;gap:8px;margin:0;padding:0}
/* check bullet: tinted circle (::before) + check mark in the accent colour (::after, masked) */
.ml--SE .casino__features li::before{content:"";flex:none;width:16px;height:16px;margin-top:1px;border-radius:50%;background:color-mix(in srgb,var(--ml-accent) 16%,var(--ml-card-bg))}
.ml--SE .casino__features li::after{content:"";position:absolute;left:0;top:1px;width:16px;height:16px;background:var(--ml-accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat}

.ml--SE .casino__cta{grid-area:cta;display:grid}
.ml--SE .btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 20px;border:0;border-radius:13px;background:var(--ml-cta-bg);color:var(--ml-cta-text);font-weight:800;font-size:1.0625rem;line-height:1;letter-spacing:.005em;text-decoration:none;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(0,0,0,.12),0 12px 22px -12px rgba(0,0,0,.45);transition:transform .15s,filter .15s,box-shadow .15s;-webkit-tap-highlight-color:transparent}
.ml--SE .btn .i{font-size:18px;stroke-width:2.6;transition:transform .15s}
.ml--SE .btn:hover{background:var(--ml-cta-hover);color:var(--ml-cta-text);text-decoration:none;filter:brightness(1.04) saturate(1.06);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(0,0,0,.12),0 16px 26px -12px rgba(0,0,0,.5)}
.ml--SE .btn:hover .i{transform:translateX(3px)}
.ml--SE .btn:active{transform:translateY(1px);filter:brightness(.97)}

/* "Annons" tag above the list: click opens the advertising disclosure (native <details>) */
.ml--SE .adinfo{position:absolute;right:0;top:calc(100% - 2px);z-index:6}
.ml--SE .adinfo .adtag{position:static;display:inline-flex;align-items:center;gap:4px;min-height:26px;padding:0 2px 0 10px;cursor:pointer;list-style:none;user-select:none;-webkit-tap-highlight-color:transparent}
.ml--SE .adinfo .adtag::-webkit-details-marker{display:none}
.ml--SE .adinfo .adtag .i{font-size:13px}
.ml--SE .adinfo .adtag:hover,.ml--SE .adinfo[open] .adtag{color:var(--ml-accent)}
.ml--SE .adinfo__long{display:none}
.ml--SE .adinfo__body{position:absolute;right:0;top:calc(100% + 6px);width:min(340px,calc(100vw - 32px));padding:13px 15px;border-radius:12px;background:var(--ml-heading);color:color-mix(in srgb,var(--ml-card-bg) 86%,var(--ml-heading));font-weight:400;font-size:.8125rem;line-height:1.55;letter-spacing:0;text-transform:none;box-shadow:0 2px 4px rgba(0,0,0,.06),0 20px 44px -20px rgba(0,0,0,.32)}
.ml--SE .adinfo__body::before{content:"";position:absolute;right:18px;top:-5px;width:10px;height:10px;background:var(--ml-heading);transform:rotate(45deg)}
.ml--SE .adinfo__body a{color:var(--ml-card-bg);font-weight:700;text-underline-offset:2px}

/* short phones: keep the first CTA on screen */
@media(max-width:739px) and (max-height:640px){
  .ml--SE .casino__logo{width:86px}
  .ml--SE .casino__features{gap:5px}
}
@media(max-width:739px) and (max-height:600px){
  .ml--SE .casino__logo{width:78px}
  .ml--SE .btn{min-height:50px}
}
/* very narrow phones */
@media(max-width:340px){
  .ml--SE .ranking__head h2{font-size:1rem}
  .ml--SE .casino__logo{width:84px}
  .ml--SE .casino__features{font-size:.8125rem}
}

/* tablet + desktop: the three cards sit side by side.
   740-1279px: image on top, features, button at the bottom of the card.
   1280px+:    image beside the features, button across the bottom. */
@media(min-width:740px){
  .ml--SE .ranking{padding:10px 0 44px}
  .ml--SE .ranking__head{margin-bottom:22px}
  .ml--SE .ranking__head h2{font-size:1.375rem}
  .ml--SE .adtag{position:static;flex:none;font-weight:600;font-size:.6875rem;line-height:1;letter-spacing:.04em;text-transform:none;background:var(--ml-card-bg);border:1px solid var(--ml-card-border);padding:4px 7px;border-radius:7px}
  .ml--SE .casinos{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .ml--SE .casino{grid-template-columns:minmax(0,1fr);grid-template-areas:"logo" "features" "cta";grid-template-rows:auto 1fr auto;align-items:start;gap:12px;padding:18px 14px 14px}
  .ml--SE .casino__logo{width:100px;justify-self:center}
  .ml--SE .casino__features{gap:7px;font-size:.9375rem}
  .ml--SE .casino__features li::before{width:18px;height:18px;margin-top:1px}
  .ml--SE .casino__features li::after{width:18px;height:18px;-webkit-mask-size:11px;mask-size:11px}
  .ml--SE .casino .btn{padding:0 10px;font-size:1rem}
  .ml--SE .casino:hover{box-shadow:0 2px 4px rgba(0,0,0,.06),0 20px 44px -20px rgba(0,0,0,.32);transform:translateY(-2px)}
  .ml--SE .casino--top:hover{box-shadow:0 22px 44px -22px rgba(0,0,0,.35)}
  .ml--SE .adinfo{position:relative;right:auto;top:auto;flex:none}
  .ml--SE .adinfo .adtag{min-height:0;padding:5px 9px 5px 7px;transition:border-color .15s,color .15s}
  .ml--SE .adinfo .adtag:hover,.ml--SE .adinfo[open] .adtag{border-color:color-mix(in srgb,var(--ml-accent) 30%,var(--ml-card-bg))}
  .ml--SE .adinfo__long{display:inline}
  .ml--SE .adinfo__short{display:none}
}
/* low tablet / small laptop screens: keep the buttons on screen */
@media(min-width:740px) and (max-width:1279px) and (max-height:820px){
  .ml--SE .casino{padding-top:16px;gap:9px}
  .ml--SE .casino__logo{width:72px;border-radius:12px}
  .ml--SE .casino__rank{min-width:20px;height:20px;padding:0 6px 1px 5px;border-radius:0 0 8px 0;font-size:.6875rem}
  .ml--SE .casino__features{gap:6px}
}
@media(min-width:1024px) and (max-height:820px){
  .ml--SE .ranking__head{margin-bottom:18px}
}
@media(min-width:1024px){
  .ml--SE .casinos{gap:16px}
}
@media(min-width:1280px){
  .ml--SE .casino{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"logo features" "cta cta";grid-template-rows:1fr auto;align-items:center;gap:14px;padding:16px}
  .ml--SE .casino__logo{width:92px;justify-self:start}
  .ml--SE .casino .btn{padding:0 16px}
}
@media(min-width:1360px){
  .ml--SE .casinos{gap:18px}
  .ml--SE .casino{gap:14px 16px}
  .ml--SE .casino__logo{width:108px}
  .ml--SE .casino .btn{min-height:54px;font-size:1.0625rem}
}

@media(prefers-reduced-motion:reduce){
  .ml--SE *,.ml--SE *::before,.ml--SE *::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
