/* Mat och Vinklubben first-party cooking converter. Colors inherit the site's wine-red palette. */
.mv-tool { --mv-wine: #853d45; --mv-ink: #302b29; --mv-tint: #fbf4e9; --mv-stroke: #e4d2c7; color: var(--mv-ink); font-size: 1rem; width: 100%; margin: 1.25rem 0 1.6rem; border: 1px solid var(--mv-stroke); border-radius: 1.1rem; background: #fffdf9; box-shadow: 0 10px 30px rgba(57, 40, 44, .055); }
.mv-tool .mv-form { padding: clamp(1rem, 3vw, 1.5rem); margin: 0; }
.mv-tool .mv-fields { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(9rem, 1.25fr) auto minmax(9rem, 1.25fr); gap: .8rem; align-items: end; }
.mv-tool .mv-field { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.mv-tool label { font-size: .89rem; line-height: 1.4; font-weight: 700; margin: 0; }
.mv-tool input, .mv-tool select { box-sizing: border-box; font: inherit; color: #292524; border: 1px solid #c7b6ab; border-radius: .6rem; background: white; padding: .62rem .65rem; height: 2.9rem; width: 100%; min-width: 0; }
.mv-tool input:focus-visible, .mv-tool select:focus-visible, .mv-tool button:focus-visible { outline: 3px solid #c87e87; outline-offset: 2px; }
.mv-tool .mv-swap { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .45rem .55rem; height: 2.9rem; border: 1px solid #d1aaa8; border-radius: .6rem; background: #fff6f2; color: var(--mv-wine); font: inherit; font-weight: 700; cursor: pointer; }
.mv-tool .mv-ingredient-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.mv-tool .mv-custom[hidden] { display: none; }
.mv-tool .mv-muted { font-size: .78rem; font-weight: 400; color: #675b55; }
.mv-tool .mv-hint { font-size: .8rem; color: #675b55; line-height: 1.5; margin: .8rem 0 .9rem; }
.mv-tool .mv-result { padding: 1rem 1.2rem; border-radius: .8rem; background: var(--mv-tint); border-left: .25rem solid var(--mv-wine); display: flex; flex-direction: column; gap: .25rem; }
.mv-tool .mv-result-label { font-size: .81rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.mv-tool output { display: block; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.mv-tool .mv-explanation { color: #544741; font-size: .88rem; line-height: 1.5; }
.mv-tool .mv-presets { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.mv-tool .mv-presets-title { color: #685651; font-size: .85rem; margin-right: .1rem; }
.mv-tool .mv-presets button { border: 1px solid var(--mv-stroke); background: #fff; color: #763740; border-radius: 2rem; padding: .35rem .7rem; font: inherit; font-size: .83rem; cursor: pointer; }
.mv-tool .mv-presets button:hover { background: #f8ece7; }
.mv-tool a { color: var(--mv-wine); }
@media (max-width: 740px) {
  .mv-tool .mv-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
  .mv-tool .mv-swap { align-self: end; }
  .mv-tool .mv-fields > .mv-field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 440px) { .mv-tool .mv-ingredient-row { grid-template-columns: 1fr; } .mv-tool .mv-swap span { display: inline; } }
