/* Vildehaver – Sommerfugle & værtsplanter. All rules scoped under .vh-somm so
   they do not leak into (or inherit oddly from) the host WordPress theme. */
.vh-somm{
  --bg:#eef1e9; --card:#ecd9bf; --ink:#23281f; --muted:#6f7363; --line:#ddd7c8;
  --accent:#c26a33; --accent-ink:#fff; --panel:#fffdf8; --chip:#f6efe2;
  --warn:#8a3f2f; --warn-soft:#f6e5df; --nt:#8a6d1f; --nt-soft:#f6ecd6;
  --fred:#5b4b8a; --fred-soft:#eae4f6; --ok:#3f6d4a;
  background:var(--bg); color:var(--ink); border-radius:18px;
  padding:34px 30px 26px; max-width:1000px; margin:0 auto;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:16px; line-height:1.55; box-sizing:border-box;
}
.vh-somm *{box-sizing:border-box}
.vh-somm .vh-eyebrow{display:flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);margin:0 0 12px}
.vh-somm .vh-eyebrow::before{content:"";width:9px;height:9px;border-radius:50%;
  background:var(--accent);display:inline-block}
.vh-somm .vh-h1{font-family:Georgia,"Times New Roman",serif;font-weight:700;
  font-size:44px;line-height:1.05;letter-spacing:-.01em;margin:0 0 14px;color:var(--ink)}
.vh-somm .vh-sub{color:var(--muted);font-size:17px;max-width:560px;margin:0 0 22px}

.vh-somm .vh-card{background:var(--card);border-radius:16px;padding:20px 20px 22px}
.vh-somm .vh-toggle{display:inline-flex;background:#f4ecdd;border-radius:999px;
  padding:5px;gap:4px;margin-bottom:16px}
.vh-somm .vh-toggle button{border:0;background:transparent;cursor:pointer;
  font:inherit;font-weight:650;color:var(--ink);padding:9px 22px;border-radius:999px;
  display:flex;align-items:center;gap:8px}
.vh-somm .vh-toggle button[aria-selected="true"]{background:var(--accent);color:var(--accent-ink)}

.vh-somm .vh-searchwrap{position:relative}
.vh-somm .vh-search{width:100%;padding:15px 18px 15px 46px;font:inherit;font-size:17px;
  border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink)}
.vh-somm .vh-search:focus{outline:2px solid rgba(194,106,51,.25);border-color:var(--accent)}
.vh-somm .vh-searchwrap svg.vh-mag{position:absolute;left:17px;top:50%;
  transform:translateY(-50%);width:19px;height:19px;stroke:var(--accent);fill:none;stroke-width:2}
.vh-somm .vh-ac{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 8px 26px rgba(60,50,30,.14);max-height:340px;overflow:auto;display:none}
.vh-somm .vh-ac.show{display:block}
.vh-somm .vh-ac-item{padding:11px 16px;cursor:pointer;display:flex;align-items:baseline;
  gap:9px;border-bottom:1px solid #f1ece1}
.vh-somm .vh-ac-item:last-child{border-bottom:0}
.vh-somm .vh-ac-item:hover,.vh-somm .vh-ac-item.on{background:#f6efe2}
.vh-somm .vh-ac-name{font-weight:600}
.vh-somm .vh-ac-latin{font-style:italic;color:var(--muted);font-size:14px}
.vh-somm .vh-ac-meta{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.vh-somm mark{background:#fbe6c8;color:inherit;padding:0 1px;border-radius:2px}

.vh-somm .vh-try{margin:14px 2px 0;font-size:14px;color:var(--muted);
  display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.vh-somm .vh-chip{background:var(--chip);border:1px solid var(--line);border-radius:999px;
  padding:7px 15px;cursor:pointer;font:inherit;font-weight:650;color:var(--ink)}
.vh-somm .vh-chip:hover{border-color:var(--accent);color:var(--accent)}

.vh-somm .vh-result{margin-top:22px}
.vh-somm .vh-rhead{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.vh-somm .vh-rtitle{font-family:Georgia,serif;font-size:26px;font-weight:700}
.vh-somm .vh-rlatin{font-style:italic;color:var(--muted);font-size:16px}
.vh-somm .vh-pills{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 2px}
.vh-somm .vh-pill{font-size:12px;padding:3px 10px;border-radius:999px;white-space:nowrap;
  background:#e7ece1;color:#4c5a45;font-weight:600}
.vh-somm .vh-pill.warn{background:var(--warn-soft);color:var(--warn)}
.vh-somm .vh-pill.nt{background:var(--nt-soft);color:var(--nt)}
.vh-somm .vh-pill.fred{background:var(--fred-soft);color:var(--fred)}
.vh-somm .vh-pill.code{background:#e2eeee;color:#2f6b6b}
.vh-somm .vh-pill.dk{background:#e7ece1;color:#4c5a45}
.vh-somm .vh-pill.uk{background:#efe7db;color:#7a6a3a}
.vh-somm .vh-pill.na{background:#eceae3;color:#8a8778}
.vh-somm .vh-count{color:var(--muted);font-size:14px;margin:2px 0 10px}
.vh-somm .vh-stats{display:flex;gap:14px;flex-wrap:wrap;margin:8px 0 16px}
.vh-somm .vh-stat{background:var(--panel);border:1px solid var(--line);border-radius:12px;
  padding:12px 18px;min-width:150px}
.vh-somm .vh-stat b{display:block;font-size:30px;font-weight:700;line-height:1.05;color:var(--accent)}
.vh-somm .vh-stat.zero b{color:#b0a89a}
.vh-somm .vh-stat span{font-size:12.5px;color:var(--muted);display:block;margin-top:3px}
.vh-somm .vh-note{background:#fbf5ea;border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:10px;padding:13px 16px;font-size:15px;color:var(--ink);margin:6px 0 12px;line-height:1.5}
.vh-somm .vh-om{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-top:14px}
.vh-somm .vh-om-h{font-weight:700;font-size:15px;margin-bottom:8px}
.vh-somm .vh-om-kort{margin:0 0 10px;font-size:14.5px;line-height:1.5;color:var(--ink)}
.vh-somm .vh-om-row{display:flex;gap:12px;align-items:baseline;margin:7px 0;flex-wrap:wrap}
.vh-somm .vh-om-row>span{flex:0 0 108px;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}
.vh-somm .vh-om-row>div{display:flex;gap:6px;flex-wrap:wrap;flex:1}
.vh-somm .vh-tag{background:var(--chip);border:1px solid var(--line);border-radius:999px;padding:3px 10px;font-size:12.5px;color:var(--ink)}
.vh-somm .vh-tag.up{background:#e9f2ea;color:var(--ok);border-color:#cfe3d3}
.vh-somm .vh-tag.down{background:var(--warn-soft);color:var(--warn);border-color:#f0c9c0}
.vh-somm .vh-om-src{margin-top:9px;font-size:11.5px;color:var(--muted)}
.vh-somm .vh-sec{font-family:Georgia,serif;font-size:18px;font-weight:700;margin:20px 0 4px}
.vh-somm table{width:100%;border-collapse:collapse;font-size:15px;background:var(--panel);
  border-radius:12px;overflow:hidden}
.vh-somm th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.05em;
  color:var(--muted);font-weight:700;padding:12px 14px 8px;border-bottom:1px solid var(--line)}
.vh-somm td{padding:11px 14px;border-bottom:1px solid #f1ece1;vertical-align:top}
.vh-somm tr:last-child td{border-bottom:0}
.vh-somm td.pl{font-style:italic;color:var(--muted)}
.vh-somm .vh-link{color:var(--accent);cursor:pointer;text-decoration:none;font-weight:600}
.vh-somm .vh-empty{color:var(--muted);padding:16px 2px}
.vh-somm .vh-foot{margin-top:20px;font-size:12.5px;color:var(--muted);line-height:1.6}
.vh-somm .vh-foot a{color:var(--accent)}
@media (max-width:560px){
  .vh-somm{padding:24px 18px}
  .vh-somm .vh-h1{font-size:34px}
  .vh-somm .vh-toggle button{padding:9px 16px}
}
