/*
 * SelectNews AW v1.3.0 — frontend
 *
 * Belangrijk voor theme-fallback:
 * - dit bestand forceert GEEN font-family, font-size, font-weight, kleur,
 *   line-height, letter-spacing, word-spacing, text-transform, italic of
 *   tekstuitlijning op de tekstonderdelen;
 * - alleen expliciet in beheer ingevulde typografie wordt als inline
 *   !important-override door PHP toegevoegd;
 * - lege typografievelden laten het actieve WordPress-theme dus leidend.
 */

.awsel-section-title{box-sizing:border-box;width:100%;margin:0 0 12px;padding:0 0 8px}

.awsel-list{display:flex;flex-direction:column;gap:var(--awsel-gap,10px);width:100%;border:0!important;outline:0!important;box-shadow:none!important}
.awsel-card{position:relative;display:block;box-sizing:border-box}

/* Klassieke kaartweergave. */
.awsel-style-card .awsel-card{overflow:hidden;padding:var(--awsel-pad,8px);border:var(--awsel-border,1px) solid var(--awsel-line-color,#d9dee4);border-radius:var(--awsel-radius,6px);background:var(--awsel-bg,#fff);transition:border-color .2s ease,box-shadow .2s ease}
.awsel-style-card.awsel-hover .awsel-card:hover,
.awsel-style-card.awsel-hover .awsel-card:focus-within{border-color:var(--awsel-line-color,#d9dee4);box-shadow:none}
.awsel-hover-border{position:absolute;inset:0;z-index:5;pointer-events:none;display:block;opacity:0}
.awsel-hover-svg{display:block;width:100%;height:100%;overflow:visible}
.awsel-hover-path{fill:none;stroke:var(--awsel-hover,#c6a664);stroke-width:var(--awsel-hover-line-height,2px);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;vector-effect:non-scaling-stroke}
.awsel-style-card.awsel-hover .awsel-card:hover .awsel-hover-border,
.awsel-style-card.awsel-hover .awsel-card:focus-within .awsel-hover-border{opacity:1}
.awsel-style-card.awsel-hover .awsel-card:hover .awsel-hover-path,
.awsel-style-card.awsel-hover .awsel-card:focus-within .awsel-hover-path{animation:awsel-draw-perimeter var(--awsel-hover-line-speed,900ms) linear forwards}
@keyframes awsel-draw-perimeter{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

/* Open sidebarweergaven. */
.awsel-style-line,.awsel-style-gradient{gap:0}
.awsel-style-line .awsel-card,.awsel-style-gradient .awsel-card,.awsel-style-none .awsel-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.awsel-style-none{gap:var(--awsel-gap,10px)}

.awsel-style-line .awsel-card:not(:last-child)::after,
.awsel-style-gradient .awsel-card:not(:last-child)::after{content:"";display:block;clear:both;width:var(--awsel-sep-width,100%);margin-top:var(--awsel-sep-top,10px);margin-bottom:var(--awsel-sep-bottom,10px)}
.awsel-style-line .awsel-card:not(:last-child)::after{height:0;border-top:var(--awsel-sep-thickness,1px) var(--awsel-sep-pattern,solid) var(--awsel-sep-color,#d9dee4)}
.awsel-style-gradient .awsel-card:not(:last-child)::after{height:var(--awsel-sep-thickness,1px);background:var(--awsel-sep-gradient,linear-gradient(90deg,#d9dee4,#006EA8))}
.awsel-sep-left .awsel-card:not(:last-child)::after{margin-left:0;margin-right:auto}
.awsel-sep-center .awsel-card:not(:last-child)::after{margin-left:auto;margin-right:auto}
.awsel-sep-right .awsel-card:not(:last-child)::after{margin-left:auto;margin-right:0}

/* Afbeelding. De DOM-volgorde wordt door de instelling Opmaak bepaald. */
.awsel-image{float:left;display:block;box-sizing:border-box;margin:0 10px 6px 0;overflow:hidden;border-radius:calc(var(--awsel-radius,6px) * .65);background:#eef1f3;text-decoration:none}
.awsel-image-border-on .awsel-image{border:var(--awsel-image-border-width,1px) solid var(--awsel-image-border-color,#c6a664)}

.awsel-image-mode-percent .awsel-image{width:var(--awsel-iw-percent,32%);height:auto;overflow:hidden}
.awsel-image-mode-percent .awsel-image img{display:block;width:100%;height:auto;object-fit:contain;border-radius:inherit}
.awsel-image-mode-percent .awsel-placeholder{display:block;width:100%;aspect-ratio:4/3;border-radius:inherit;background:linear-gradient(135deg,#eef1f3,#dfe5e9)}

.awsel-image-mode-px .awsel-image{width:var(--awsel-iw,96px);height:var(--awsel-ih,78px)}
.awsel-image-mode-px .awsel-image img,.awsel-image-mode-px .awsel-placeholder{display:block;width:100%;height:100%;object-fit:cover}
.awsel-image-mode-px .awsel-placeholder{background:linear-gradient(135deg,#eef1f3,#dfe5e9)}

.awsel-body{min-width:0;display:flow-root}
.awsel-body::after{content:"";display:block;clear:both}

/* Alleen layoutmarges; typografie komt uit theme of uit expliciete inline overrides. */
.awsel-meta{margin:0 0 3px}
.awsel-title{margin:0}
.awsel-title a{font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;word-spacing:inherit;text-decoration:inherit}
.awsel-intro{margin:6px 0 0}
.awsel-more-wrap{clear:both;margin:6px 0 0}
.awsel-more{font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;word-spacing:inherit;text-decoration:inherit}
.awsel-back{clear:both;margin:12px 0 0}
.awsel-back a{font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;word-spacing:inherit;text-decoration:inherit}

/* Alleen de klassieke kaart houdt het historische hover-underlinegedrag zolang underline niet lokaal is geforceerd. */
.awsel-style-card .awsel-title a:hover{text-decoration:underline}
.awsel-style-line .awsel-title a:hover,.awsel-style-gradient .awsel-title a:hover,.awsel-style-none .awsel-title a:hover{text-decoration:inherit}

.awsel-notice{padding:10px;border:1px dashed #b8c0c7;background:#fff}
.widget .awsel-card{max-width:100%}

/* Dark-modus voor beeldplaceholder; typografie blijft buiten deze CSS. */
.awsel-scheme-dark .awsel-placeholder{background:linear-gradient(135deg,#22272b,#363d43)}
.awsel-scheme-dark .awsel-image{background:#22272b}

@media(max-width:420px){
  .awsel-image-mode-px .awsel-image{width:min(32vw,var(--awsel-iw,96px));height:var(--awsel-ih,78px);margin-right:10px}
}

@media(prefers-reduced-motion:reduce){.awsel-card{transition:none}.awsel-hover-path{animation:none!important;stroke-dashoffset:0!important}}
