/* =====================================================================
   Veganin — style.css
   Eén site voor alle regio's (veganinportugal.com, veganinalgarve.com, …).
   Kleuren naar de WebDev-ontwerpen: goud voor de site zelf, paars voor de
   teksten van een initiatief, turquoise voor de knop "all initiatives".
   ===================================================================== */

:root {
  --vg-gold: #9b8420;
  --vg-gold-dark: #7d6a15;
  --vg-gold-light: #c9b24a;
  --vg-teal: #0bc5c5;
  --vg-purple: #3d0a6b;
  --vg-purple-btn: #4a0a72;
  --vg-yellow-bg: #FFFFE8;   /* zoals in WebDev */
  --vg-green-bg: #EBFFEB;   /* standaard achtergrond detailpagina, zoals in WebDev */
  --vg-label-bg: #dcefd4;
  --vg-label-fg: #2f8a2f;
  --vg-text: #9b8420;
  --vg-font: Verdana, Geneva, Tahoma, sans-serif;
  --vg-font-init: "Futura", "Century Gothic", "Avenir Next", "Josefin Sans", "Segoe UI", sans-serif;
  /* Voor de overgenomen auth-pagina's (login, register, account). */
  --auth-accent: var(--vg-gold);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--vg-font);
  color: var(--vg-text);
  background: #fff;
  font-size: 16px;            /* Verdana 12pt, zoals de WebDev-site */
  line-height: 1.45;
}

a { color: #1a8fc6; }

img { max-width: 100%; }

.vg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ── Header ────────────────────────────────────────────────────────── */
.vg-header { display: block; padding: 20px 0 18px; }
.vg-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: center;
}
.vg-logo { display: block; width: 390px; height: 390px; border-radius: 50%; overflow: hidden; text-decoration: none; }
.vg-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-logo .vg-logo-text {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; border: 2px solid var(--vg-gold); border-radius: 50%;
  font-size: 40px; font-style: italic; color: var(--vg-gold); padding: 30px;
}
.vg-hright { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.vg-create-link {
  text-align: center; font-size: 15px; color: #1a8fc6; min-height: 18px;
}
.vg-all-btn {
  align-self: center; display: inline-block; min-width: 320px; text-align: center;
  background: var(--vg-teal); color: #fff; text-decoration: none; font-size: 16px;
  padding: 9px 28px; border-radius: 22px; margin: 26px 0 8px;
}
.vg-all-btn:hover { filter: brightness(.95); }

.vg-search { display: flex; align-items: flex-end; gap: 6px; }
.vg-search-box {
  flex: 1; padding: 14px 16px; border: 1.5px solid var(--vg-gold); border-radius: 12px;
}
.vg-search-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin: 6px 0; }
.vg-search-row label { font-size: 16px; color: var(--vg-gold); }
.vg-search-row select, .vg-search-row input {
  width: 100%; font: inherit; font-size: 16px; color: var(--vg-gold);
  border: 1px solid var(--vg-gold); border-radius: 6px; padding: 5px 8px; background: #fff;
}
.vg-search-row input { border-color: #333; border-radius: 0; }
.vg-search-go {
  background: none; border: 0; padding: 0; cursor: pointer; width: 48px; height: 48px;
  margin-bottom: 4px;
}
.vg-search-go img { width: 48px; height: 48px; display: block; }

.vg-icons { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.vg-icons a.vg-icon img { width: 44px; height: 44px; display: block; }
/* loginmenu.js vult .nav-login met naam + foto; de knop staat rechts. */
.vg-icons .nav-inner { margin-left: auto; display: flex; align-items: center; }
.vg-icons .nav-login { padding: 0 !important; display: inline-flex !important; flex-direction: row-reverse; align-items: center; gap: 8px; }
.vg-icons .nav-login-name {
  color: var(--vg-gold) !important; font-family: var(--vg-font) !important;
  text-decoration: underline; font-size: 16px !important;
}
.vg-icons .nav-login img { width: 44px !important; height: 44px !important; border-radius: 22px !important; }

/* ── Algemene inhoud ───────────────────────────────────────────────── */
.vg-main { max-width: 1120px; margin: 0 auto; padding: 10px 16px 40px; }
.vg-pagetext { max-width: 700px; font-size: 16px; margin: 30px 0 0; }
.vg-regios { margin-top: 80px; font-size: 16px; }
.vg-regios a { display: block; font-size: 15px; margin: 8px 0 0 3px; }
.vg-regios p { margin: 0 0 4px; }
.vg-seo { display: none; }   /* tekst voor zoekmachines; de pagina zelf tekent het met JS */
.no-js .vg-seo { display: block; }

.vg-disclaimer { text-align: center; font-size: 16px; color: var(--vg-gold); margin: 44px 0 20px; }
.vg-footer { text-align: center; font-size: 14px; color: var(--vg-gold); padding: 24px 0 34px; }
.vg-footer a { color: var(--vg-gold); }

.vg-msg { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin: 14px 0; }
.vg-msg.error { background: #fdecec; color: #8a1c1c; }
.vg-msg.ok { background: #ecf6ee; color: #1c5a2c; }
.vg-loading { text-align: center; font-size: 13px; padding: 30px 0; }

/* ── Overzicht ─────────────────────────────────────────────────────── */
.vg-overview { background: var(--vg-yellow-bg); padding: 14px 24px 34px; }
.vg-overview-intro { text-align: center; font-size: 17px; margin: 6px 0 22px; font-family: var(--vg-font-init); }
.vg-empty { text-align: center; font-size: 16px; padding: 30px 0; }

/* ── Banner (overzicht en voorbeelden) ─────────────────────────────── */
.vg-banner {
  position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 14px;
  background: #fff; margin: 0 0 28px; padding: 14px 14px 18px; min-height: 230px;
  border: 1.5px solid var(--vg-gold); border-radius: 12px;
  color: var(--vg-purple); font-family: var(--vg-font-init); cursor: pointer;
  text-decoration: none;
}
.vg-banner:hover { box-shadow: 0 3px 14px rgba(155,132,32,.2); }
.vg-banner-logo { display: flex; align-items: center; justify-content: center; }
.vg-banner-logo img { width: 200px; height: 200px; object-fit: contain; display: block; }
.vg-banner-body { text-align: center; padding-right: 110px; display: flex; flex-direction: column; }
.vg-banner-name { font-size: 22px; margin: 4px 0 12px; }
.vg-banner-loc { font-size: 17px; margin: 0 0 14px; }
.vg-banner-text { font-size: 16px; text-align: left; flex: 1; overflow-wrap: anywhere; }
.vg-banner-text.center { text-align: center; }
.vg-themes { font-size: 13px; margin-top: 14px; text-align: center; }
.vg-label {
  position: absolute; right: 14px; top: 14px; max-width: 100px;
  background: var(--vg-label-bg); color: var(--vg-label-fg);
  font-size: 13px; text-align: center; padding: 3px 8px; line-height: 1.35;
}

/* Telefoon (of smal voorbeeld): logo klein linksboven, tekst eronder. */
.vg-banner.mobile { grid-template-columns: 1fr; padding: 12px 12px 18px; min-height: 0; }
.vg-banner.mobile .vg-banner-logo { position: absolute; left: 14px; top: 14px; }
.vg-banner.mobile .vg-banner-logo img { width: 62px; height: 62px; }
.vg-banner.mobile .vg-banner-body { padding: 0 70px 0 72px; }
.vg-banner.mobile .vg-label { max-width: 76px; font-size: 11px; }
.vg-banner.mobile .vg-banner-head { min-height: 68px; }
.vg-banner.mobile .vg-banner-text { margin: 8px -66px 0 -68px; font-size: 12px; }
.vg-banner.mobile .vg-banner-name { font-size: 14px; margin-bottom: 6px; overflow-wrap: anywhere; }
.vg-banner.mobile .vg-banner-loc { font-size: 14px; }
.vg-banner.mobile .vg-themes { margin-left: -68px; margin-right: -66px; font-size: 12px; }

/* ── Detailpagina ──────────────────────────────────────────────────── */
.vg-detail {
  position: relative; background: var(--vg-green-bg); color: var(--vg-purple);
  font-family: var(--vg-font-init); padding: 24px 22px 20px; overflow: hidden;
}
.vg-detail-head { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.vg-detail-logo img { width: 200px; height: 200px; object-fit: contain; display: block; }
.vg-detail-title { text-align: center; padding-top: 60px; }
.vg-detail-name { font-size: 25px; margin: 0 0 12px; font-weight: normal; }
.vg-detail-loc { font-size: 20px; margin: 0 0 24px; }
.vg-detail-contact {
  display: flex; justify-content: space-between; gap: 16px; margin: 34px 0 0; font-size: 19px;
}
.vg-detail-address { line-height: 1.3; }
.vg-detail-reach { text-align: right; display: flex; align-items: flex-start; gap: 10px; }
.vg-detail-reach a { color: var(--vg-purple); display: block; margin-bottom: 10px; }
.vg-share { background: none; border: 0; cursor: pointer; padding: 0; width: 54px; height: 47px; flex: 0 0 auto; }
.vg-share img { width: 54px; height: 47px; display: block; }
.vg-share-done { font-size: 11px; color: var(--vg-label-fg); display: block; text-align: right; }
.vg-share-done[hidden] { display: none; }

.vg-block { position: absolute; left: 22px; right: 22px; }
.vg-detail-text { font-size: 16px; overflow-wrap: anywhere; }

.vg-carousel-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center; }
.vg-carousel figure { margin: 0; text-align: center; }
.vg-carousel img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.vg-carousel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.vg-carousel-nav button {
  background: none; border: 0; cursor: pointer; color: var(--vg-gold); font-size: 30px;
  line-height: 1; padding: 0 4px; font-weight: bold;
}
.vg-carousel-nav button[disabled] { opacity: .25; cursor: default; }

.vg-links a { display: flex; align-items: center; gap: 40px; color: var(--vg-purple); font-size: 22px; margin: 0 0 40px; }
.vg-links img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; }
.vg-detail-disclaimer { font-size: 12px; text-align: center; color: var(--vg-gold); margin-top: 20px; }

.vg-detail.mobile { padding: 12px 8px 14px; }
.vg-detail.mobile .vg-detail-head { grid-template-columns: 62px 1fr; gap: 8px; }
.vg-detail.mobile .vg-detail-logo img { width: 58px; height: 58px; }
.vg-detail.mobile .vg-detail-title { padding-top: 8px; }
.vg-detail.mobile .vg-detail-name { font-size: 15px; overflow-wrap: anywhere; }
.vg-detail.mobile .vg-detail-loc { font-size: 15px; margin-bottom: 12px; }
.vg-detail.mobile .vg-detail-contact { font-size: 12px; margin-top: 18px; }
.vg-detail.mobile .vg-share, .vg-detail.mobile .vg-share img { width: 32px; height: 28px; }
.vg-detail.mobile .vg-block { left: 8px; right: 8px; }
.vg-detail.mobile .vg-detail-text { font-size: 12px; }
.vg-detail.mobile .vg-carousel-track { grid-template-columns: 1fr; }
.vg-detail.mobile .vg-links a { font-size: 16px; gap: 14px; margin-bottom: 16px; }
.vg-detail.mobile .vg-links img { width: 42px; height: 42px; flex-basis: 42px; }

/* ── Contact ───────────────────────────────────────────────────────── */
.vg-contact { max-width: 560px; margin: 10px auto 0; }
.vg-contact h1 { text-align: center; font-weight: normal; font-size: 20px; }
.vg-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.vg-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.vg-field.wide { grid-column: 1 / -1; }
.vg-field input, .vg-field textarea, .vg-field select {
  font: inherit; font-size: 14px; padding: 7px 8px; border: 1px solid var(--vg-gold);
  border-radius: 6px; color: #333; background: #fff;
}
.vg-hp { position: absolute; left: -5000px; }
.vg-btn {
  display: inline-block; background: var(--vg-gold); color: #fff; border: 0; border-radius: 16px;
  padding: 6px 26px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.vg-btn:hover { background: var(--vg-gold-dark); }
.vg-btn:disabled { opacity: .55; cursor: default; }
.vg-btn.purple { background: var(--vg-purple-btn); }
.vg-btn.small { padding: 3px 12px; font-size: 12px; }
.vg-center { text-align: center; }

/* ── Auth-pagina's (overgenomen van wellness4us) ──────────────────── */
.auth-page { display: flex; flex-direction: column; min-height: 100vh; }
.auth-page > main { flex: 1 0 auto; }
.auth-card {
  width: 100%; max-width: 420px; margin: 20px auto 40px; padding: 26px 28px;
  border: 1.5px solid var(--vg-gold); border-radius: 12px; background: #fff;
}
.auth-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: normal; }
.auth-card p.auth-lede { margin: 0 0 22px; font-size: 13px; }
.auth-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.auth-field label { font-size: 12px; font-weight: bold; }
.auth-field input, .auth-field select {
  font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--vg-gold);
  border-radius: 6px; color: #333;
}
.auth-field input:focus { outline: none; box-shadow: 0 0 0 3px rgba(155,132,32,.2); }
.auth-field .auth-hint, .auth-hint { font-size: 11px; font-style: italic; }
.auth-button {
  display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 18px;
  background: var(--vg-gold); color: #fff; font: inherit; font-size: 14px; cursor: pointer;
  text-align: center;
}
.auth-button:hover { background: var(--vg-gold-dark); }
.auth-button:disabled { opacity: .6; cursor: progress; }
.auth-message { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.auth-message.error { background: #fdecec; color: #8a1c1c; }
.auth-message.success { background: #ecf6ee; color: #1c5a2c; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; }
.auth-footer a { color: var(--vg-gold); font-weight: bold; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.container { max-width: 840px; margin: 0 auto; padding: 0 16px; }
.container .auth-button { width: auto; display: inline-block; }
.promo-table { border-collapse: collapse; font-size: 13px; }
.promo-table th, .promo-table td { border-bottom: 1px solid #eee; padding: 6px 10px; text-align: left; }
.promo-key { display: inline-block; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.promo-gepland { background: #fff8d6; }
.promo-actief { background: #e3f6dd; }
.promo-verbruikt { background: #f8d8d8; }

/* ── Smalle schermen ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .vg-header-inner { grid-template-columns: 1fr; gap: 12px; justify-items: center; }
  .vg-logo { width: 240px; height: 240px; }
  .vg-logo .vg-logo-text { font-size: 28px; }
  .vg-all-btn { min-width: 0; }
  .vg-search-row { grid-template-columns: 90px 1fr; }
  .vg-hright { width: 100%; }
  .vg-all-btn { margin-top: 4px; }
  .vg-overview { padding: 10px 6px 24px; }
  .vg-form-grid { grid-template-columns: 1fr; }
}

/* ── My vegan initiatives (pages/myinitiatives.html) ──────────────── */
.mi-main { max-width: 1400px; }   /* breder dan de site: het pc-voorbeeld komt beter tot zijn recht */
.mi-muted { font-size: 12px; opacity: .75; padding: 8px; }
.mi-top { display: flex; align-items: flex-start; gap: 14px; margin: 6px 0 22px; }
.mi-tablewrap { flex: 1; max-height: 300px; overflow: auto; border: 1px solid #c8c8c8; }
.mi-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mi-table thead th { background: var(--vg-gold); color: #fff; font-weight: normal; padding: 2px 6px; text-align: center; position: sticky; }
.mi-table thead tr:first-child th { top: 0; }
.mi-table thead tr:nth-child(2) th { top: 24px; }
.mi-table td { padding: 2px 6px; background: #fff; cursor: pointer; border-bottom: 1px solid #eee; }
.mi-table td a { color: var(--vg-gold); }
.mi-table tr:hover td { background: #e6fefe; }
.mi-table tr.sel td { background: #9ffcfc; }
.mi-badge { font-size: 10px; margin-left: 6px; padding: 0 5px; border-radius: 6px; background: var(--vg-purple-btn); color: #fff; }
.mi-badge.pub { background: var(--vg-label-fg); }
.mi-tools { display: flex; align-items: center; gap: 6px; }
.mi-iconbtn { background: none; border: 0; padding: 0; cursor: pointer; width: 36px; height: 36px; }
.mi-iconbtn img { width: 36px; height: 36px; display: block; }
.mi-iconbtn.small, .mi-iconbtn.small img { width: 22px; height: 22px; }
.mi-iconbtn[disabled] { opacity: .3; cursor: default; }
.mi-all { font-size: 15px; display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; }

.mi-preview { display: grid; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr);
  grid-template-rows: auto auto; gap: 14px 16px; align-items: start; }
/* Banners op rij 1, detailpagina's op rij 2: zo beginnen beide detailvoorbeelden
   op dezelfde hoogte, hoe hoog de pc- en telefoonbanner ook zijn. */
.mi-col { display: contents; }
.mi-col-pc .mi-bannerbg    { grid-column: 1; grid-row: 1; align-self: stretch; }
.mi-col-phone .mi-bannerbg { grid-column: 2; grid-row: 1; align-self: stretch; }
#mi-pc-detail              { grid-column: 1; grid-row: 2; }
#mi-ph-detail              { grid-column: 2; grid-row: 2; }
/* Eén doorlopend geel vlak achter beide banners (over de kolomruimte heen). */
.mi-preview::before { content: ""; grid-column: 1 / -1; grid-row: 1; align-self: stretch; background: var(--vg-yellow-bg); }
.mi-bannerbg { padding: 6px 8px 10px; }
/* Telefoon: banner en detailpagina even breed als een telefoon (375px), gecentreerd. */
#mi-ph-banner { max-width: 375px; margin: 0 auto; }
#mi-ph-detail { justify-self: center; width: calc(100% - 3px); max-width: 375px; }
.mi-bannerbg .mi-scale { margin-bottom: 0; }
/* Kader om de voorbeelden van de detailpagina (pc en telefoon). */
#mi-pc-detail, #mi-ph-detail { box-sizing: content-box; border: 1.5px solid var(--vg-gold); border-radius: 12px; }
.mi-cap { text-align: center; font-family: Verdana, Geneva, sans-serif; font-size: 12px; margin: 2px 0 8px; color: #777; }   /* 9pt, zoals in WebDev */
.mi-scale { position: relative; overflow: hidden; margin-bottom: 10px; }
.mi-scale > .mi-inner { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.mi-scale .vg-banner { margin: 0; }

/* De popup */
.mi-popup {
  position: absolute; z-index: 50; width: 760px; max-width: calc(100vw - 16px);
  background: #fff; border: 1.5px solid var(--vg-gold); box-shadow: 0 10px 40px rgba(0,0,0,.18);
  color: var(--vg-gold); font-family: var(--vg-font-init);
}
.mi-bar { display: flex; align-items: center; gap: 14px; padding: 4px 8px; font-size: 11px; cursor: move;
  background: #fff; border-bottom: 1px solid #eee; user-select: none; }
.mi-bar-op { flex: 1; display: flex; align-items: center; gap: 6px; }
.mi-bar-op input { flex: 0 0 120px; cursor: pointer; }
.mi-close { background: none; border: 0; cursor: pointer; width: 26px; height: 26px; padding: 0; }
.mi-close img { width: 26px; height: 26px; }
.mi-popup-title { font-weight: normal; font-size: 15px; text-align: center; margin: 10px 14px 0; }
.mi-body { padding: 10px 22px 6px; min-height: 330px; max-height: 62vh; overflow: auto; }
.mi-intro { text-align: center; font-size: 14px; margin: 4px 0 16px; }
.mi-form { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; align-items: center; font-size: 13px; }
.mi-form label { color: var(--vg-gold); }
.mi-form input[type=text], .mi-form input[type=url], .mi-form input[type=datetime-local], .mi-form input[type=date],
.mi-form select, .mi-text {
  font: inherit; font-size: 13px; color: var(--vg-gold); border: 1px solid var(--vg-gold); border-radius: 4px;
  padding: 3px 6px; background: #fff; width: 100%;
}
.mi-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mi-row > * { flex: 0 0 auto; }
.mi-hint { font-size: 12px; color: #8a7a2a; }
.mi-note { color: var(--vg-purple); text-align: center; font-size: 14px; }
.mi-text { min-height: 210px; resize: vertical; font-family: var(--vg-font-init); line-height: 1.4; }
.mi-toolbar { display: flex; gap: 6px; margin: 0 0 6px; }
.mi-toolbar button {
  width: 34px; height: 30px; border: 1.5px solid var(--vg-gold); border-radius: 6px; background: #fff;
  color: var(--vg-gold); font-weight: bold; cursor: pointer; font-size: 15px;
}
.mi-toolbar button.b { background: var(--vg-gold); color: #fff; }
.mi-pos { display: grid; grid-template-columns: repeat(3, auto) 60px 90px repeat(3, auto); gap: 4px 6px; align-items: center;
  justify-content: center; margin: 10px 0 4px; font-size: 13px; }
.mi-pos button { border: 1.5px solid var(--vg-gold); background: #fff; color: var(--vg-gold); border-radius: 50%;
  min-width: 30px; height: 26px; font-size: 11px; cursor: pointer; padding: 0 3px; }
.mi-pos input { width: 90px; text-align: center; font: inherit; border: 1px solid #999; padding: 2px; }
.mi-actions { display: flex; justify-content: space-between; padding: 8px 22px 10px; }
.mi-actions .vg-btn { min-width: 150px; }
.mi-tabs { display: grid; grid-template-columns: repeat(9, 1fr); background: #c2ad15; }
.mi-tabs button { background: none; border: 0; border-right: 1px solid rgba(255,255,255,.5); color: #fff;
  font: inherit; font-size: 13px; padding: 6px 2px; cursor: pointer; }
.mi-tabs button.active { background: #9b8a10; }
.mi-tabs button[disabled] { opacity: .45; cursor: default; }

.mi-drop { border: 2px solid #aaa; border-radius: 3px; padding: 16px; font-size: 16px; color: #8b7d1a; margin: 14px 0 10px; }
.mi-drop.over { border-color: var(--vg-gold); background: var(--vg-yellow-bg); }
.mi-select-files { background: #1515ff; }
.mi-logo-prev { width: 140px; height: 140px; object-fit: contain; border: 1px solid #eee; }

.mi-themes { width: 100%; max-width: 440px; border-collapse: collapse; font-size: 13px; }
.mi-themes th { background: var(--vg-gold); color: #fff; font-weight: normal; padding: 2px 6px; }
.mi-themes td { padding: 2px 6px; }
.mi-themes tr.t td { background: #fdfde0; }
.mi-themes tr.s td.d { padding-left: 34px; }
.mi-themes-wrap { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: center; }

.mi-list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mi-list th { background: var(--vg-gold); color: #fff; font-weight: normal; padding: 3px 6px; text-align: left; }
.mi-list td { padding: 3px 6px; border-bottom: 1px solid #eee; vertical-align: middle; }
.mi-list tr.sel td { background: #ddd; }
.mi-list img.thumb { width: 54px; height: 54px; object-fit: cover; display: block; }
.mi-list input[type=text] { width: 100%; font: inherit; font-size: 12px; border: 1px solid #ccc; padding: 2px 4px; }
.mi-list a { color: var(--vg-gold); }
.mi-links { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.mi-linkform { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mi-linkform input, .mi-linkform select { font: inherit; font-size: 13px; border: 1px solid #555; padding: 3px 5px; color: var(--vg-gold); }
.mi-linkicon { width: 72px; height: 72px; object-fit: contain; }
.mi-publish { display: grid; grid-template-columns: 1fr 300px; gap: 18px; font-size: 15px; }
.mi-publish a { display: block; margin: 8px 0 0 20px; font-size: 13px; }
.mi-sharetext { text-align: center; font-size: 15px; }
.mi-sharetext img { width: 60px; display: block; margin: 16px auto 0; }
.mi-pendingbtn { width: 100%; border-radius: 26px; padding: 10px; font-size: 15px; }

@media (max-width: 900px) {
  .mi-preview { grid-template-columns: 1fr; grid-template-rows: none; }
  .mi-col { display: block; }
  .mi-col-phone { max-width: 375px; }
  .mi-col .mi-bannerbg, #mi-pc-detail, #mi-ph-detail { grid-column: auto; grid-row: auto; }
  .mi-bannerbg { margin-bottom: 14px; background: var(--vg-yellow-bg); }
  .mi-preview::before { display: none; }
  .mi-form { grid-template-columns: 1fr; }
  .mi-links, .mi-publish, .mi-themes-wrap { grid-template-columns: 1fr; }
  .mi-tabs { grid-template-columns: repeat(5, 1fr); }
  .mi-actions .vg-btn { min-width: 0; }
  .mi-bar-move { display: none; }
}

/* Het Facebook-icoon is een witte "f" op transparant: blauwe tegel eronder. */
img[src="/icons/facebook.png"] { background: #1877f2; border-radius: 12px; padding: 4px; }

/* Tussen telefoon en breed scherm: logo iets kleiner zodat zoeken ernaast past. */
@media (min-width: 721px) and (max-width: 1060px) {
  .vg-header-inner { grid-template-columns: 300px 1fr; gap: 24px; }
  .vg-logo { width: 300px; height: 300px; }
}

/* Telefoon: de knoppen naast de tabel onder elkaar, zodat de tabel de breedte houdt. */
@media (max-width: 720px) {
  .mi-top { gap: 10px; }
  .mi-tools { flex-direction: column; align-items: center; gap: 12px; }
  .mi-all { margin-left: 0; }
}

/* Telefoon: de detailpagina loopt tot de schermranden door (geen witte randen);
   de tekst houdt binnen de achtergrond zijn eigen marge. */
@media (max-width: 720px) {
  body[data-page="initiative"] .vg-main { padding-left: 0; padding-right: 0; }
  body[data-page="initiative"] .vg-detail.mobile { padding-left: 16px; padding-right: 16px; }
  body[data-page="initiative"] .vg-detail.mobile .vg-block { left: 16px; right: 16px; }
}

/* Telefoon: naam van de ingelogde gebruiker kleiner, zodat hij naast de iconen past. */
@media (max-width: 720px) {
  .vg-icons .nav-login-name { font-size: 13px !important; }
  .vg-icons .nav-login img { width: 36px !important; height: 36px !important; border-radius: 18px !important; }
}
