/*
Theme Name: MittGolfSpel
Theme URI: https://mittgolfspel.se
Author: MittGolfSpel
Description: MittGolfSpel eget tema. Delar meny, logga, sidfot och typsnitt med MittGolfSpel LMS och används för villkor, guider, blogg och övriga sidor.
Version: 1.2.4
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietär – all rätt förbehållen MittGolfSpel.
Text Domain: mittgolfspel
*/

/* Content pages – the frame (header, footer, colours, fonts) comes from MittGolfSpel LMS. */
.vv-entry{width:100%;margin:0;display:flex;flex-direction:column;gap:24px}
.vv-entry>.vv-content,.vv-entry>.vv-entry-img{max-width:760px}
.vv-entry-head{display:flex;flex-direction:column;gap:10px}
.vv-entry-head h1{font-size:clamp(34px,5vw,54px)}
.vv-entry-meta{color:var(--vv-muted,#55645A);font-size:15px}
.vv-entry-img img{width:100%;height:auto;border-radius:6px;display:block}
.vv-content{font-size:18px;line-height:1.7}
.vv-content>*{margin:0 0 18px}
.vv-content>*:last-child{margin-bottom:0}
.vv-content h2{font-family:var(--vv-display);font-weight:800;font-size:clamp(24px,3vw,30px);letter-spacing:-.02em;line-height:1.15;margin:36px 0 12px}
.vv-content h3{font-family:var(--vv-display);font-weight:800;font-size:21px;margin:28px 0 8px}
.vv-content ul,.vv-content ol{padding-left:24px}
.vv-content li{margin-bottom:6px}
.vv-content a{color:var(--vv-wine-text,#223F1C);text-underline-offset:3px}
.vv-content blockquote{margin:24px 0;padding:18px 22px;border-radius:6px;background:var(--vv-surface,#FBFCF8);font-family:var(--vv-display);font-size:22px;line-height:1.35}
.vv-content blockquote p{margin:0}
.vv-content img{max-width:100%;height:auto;border-radius:16px}
.vv-content figure{margin:24px 0}
.vv-content figcaption{color:var(--vv-muted,#55645A);font-size:14px;margin-top:6px}
.vv-content table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.vv-content th,.vv-content td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--vv-line,#D5DECB)}
.vv-content hr{border:0;border-top:1px solid var(--vv-line,#D5DECB);margin:32px 0}
.vv-content .has-large-font-size{font-size:22px;line-height:1.5}
.vv-content .wp-block-button__link{display:inline-flex;align-items:center;min-height:48px;padding:12px 24px;border-radius:999px;background:var(--vv-fg,#15261A);color:var(--vv-bg,#F3F6EE);text-decoration:none;font-weight:600}
.vv-content .alignwide{max-width:1000px;margin-left:auto;margin-right:auto}
.vv-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.vv-post-card{background:var(--vv-surface,#FBFCF8);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:var(--vv-fg,#15261A)}
.vv-post-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.vv-post-card-band{aspect-ratio:16/10;background:var(--vv-band,#223F1C);display:grid;place-items:center}
.vv-post-card-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:6px}
.vv-post-card-body b{font-family:var(--vv-display);font-size:22px;line-height:1.15}
.vv-pager{display:flex;gap:8px;flex-wrap:wrap}
.vv-pager .page-numbers{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:999px;background:var(--vv-surface,#FBFCF8);text-decoration:none;color:var(--vv-fg,#15261A);padding:0 14px}
.vv-pager .current{background:var(--vv-fg,#15261A);color:var(--vv-bg,#F3F6EE)}

/* Fallback if MittGolfSpel LMS is not active */
.vv-fallback-head{padding:20px;border-bottom:1px solid #D5DECB;background:#F3F6EE}
.vv-fallback-head a{font:800 26px/1 "Arial Black",sans-serif;color:#15261A;text-decoration:none}
body.vv-fallback{margin:0;background:#F3F6EE;color:#15261A;font-family:system-ui,sans-serif}
body.vv-fallback main{max-width:760px;margin:0 auto;padding:32px 16px}
.vv-serif .vv-post-card-body b{font-weight:500}.vv-content .wp-block-button__link{border-radius:3px;text-transform:uppercase;letter-spacing:.08em;font-size:13px;font-weight:700}

/* Full width template (Elementor, blocks, MittGolfSpel shortcodes) */
.vv-full{width:100%;display:flex;flex-direction:column;gap:clamp(40px,6vw,72px)}

.vv-full .alignfull{width:100vw;max-width:none;margin-left:calc(50% - 50vw)}
.vv-full .elementor{width:100%}
.vv-sc{display:block}
.vv-grid-one{max-width:360px}
.vv-full>p:empty,.vv-content p:empty{display:none}
.vv-full>.vv-sc:first-child .vv-lux-hero{margin-top:-20px}

/* 1.2.3: artiklar i nya designen */
.vv-article{width:100%;max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:26px}
.vv-article-head{display:flex;flex-direction:column;gap:12px;text-align:center;align-items:center}
.vv-article-head h1{font-size:clamp(32px,4.6vw,52px);line-height:1.08;margin:0;max-width:18ch}
.vv-article-lead{font-size:clamp(18px,2vw,21px);line-height:1.55;color:var(--vv-muted,#5d665f);max-width:36em;margin:0}
.vv-article-meta{font-size:14px;color:var(--vv-muted,#5d665f);margin:0}
.vv-article-img{margin:0;border-radius:22px;overflow:hidden;box-shadow:0 2px 6px rgba(28,38,32,.08),0 22px 46px rgba(28,38,32,.14);aspect-ratio:16/8;background:#dfe6d6}
.vv-article-img img{width:100%;height:100%;object-fit:cover;display:block}
.vv-article-body{max-width:680px;margin:0 auto;width:100%;font-size:18px;line-height:1.7}
.vv-article-body h2{font-size:clamp(23px,2.6vw,28px);margin:34px 0 10px}
.vv-article-body ul,.vv-article-body ol{padding-left:22px}
.vv-article-body li{margin:8px 0}
.vv-article-body ol{counter-reset:vvart;list-style:none;padding-left:0}
.vv-article-body ol>li{counter-increment:vvart;position:relative;padding-left:46px;margin:14px 0}
.vv-article-body ol>li::before{content:counter(vvart);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:#CDB57D;color:#1C2620;font-weight:800;font-size:15px;line-height:32px;text-align:center}
.vv-article-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;border-radius:20px;background:#1F4A1C;color:#F3F6EE;max-width:680px;margin:10px auto 0;width:100%}
.vv-article-cta h2{color:#fff;margin:4px 0 6px;font-size:24px}
.vv-article-cta p{margin:0;color:#D9E3D2}
.vv-article-cta .vv-kicker{color:#CDB57D}
.vv-article-cta .vv-btn.vv-primary{background:#CDB57D!important;border-color:#CDB57D!important;color:#1C2620!important;white-space:nowrap}
.vv-article-more{width:100%;max-width:1040px;margin:30px auto 0}
.vv-article-more>h2{font-size:clamp(24px,2.6vw,30px);margin:0 0 16px}
.vv-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.vv-article-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--vv-line,#e4ddcf);border-radius:18px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .2s ease,box-shadow .2s ease}
.vv-article-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(28,38,32,.12)}
.vv-article-card-img{aspect-ratio:16/10;background:#dfe6d6;overflow:hidden}
.vv-article-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.vv-article-card-t{display:flex;flex-direction:column;gap:8px;padding:16px 18px 18px}
.vv-article-card-t b{font-size:18px;line-height:1.25}
.vv-article-card-t small{font-size:14.5px;color:var(--vv-muted,#5d665f);line-height:1.45}
.vv-article-card-go{margin-top:auto;color:#2C5A27;font-weight:700;font-size:14.5px}
@media (max-width:900px){.vv-article-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.vv-article-head{text-align:left;align-items:flex-start}.vv-article-cta{flex-direction:column;align-items:flex-start}.vv-article-img{border-radius:16px}.vv-article-body{font-size:17px}}
/* 1.2.4 tabeller i artiklar */
.vv-article-body table{display:table;margin:20px 0 8px;background:#fff;border:1px solid var(--vv-line,#D5DECB);border-radius:14px;overflow:hidden;border-collapse:separate;border-spacing:0}
.vv-article-body thead th{background:#EEF3E8;font-size:14px;font-weight:700;color:#1F4D2B}
.vv-article-body tbody tr:last-child td{border-bottom:0}
.vv-article-body td:first-child{font-weight:600}
@media (max-width:600px){.vv-article-body table{font-size:15px}.vv-article-body th,.vv-article-body td{padding:9px 10px}}
