/* PEKI Tools v0.20.39 — pro portion + yeast calculators; existing Tortopretvornik remains native */
.pek-tools-main{background:#fffaf3;color:#31261f;min-height:70vh;padding:0 20px 72px}
.pek-tools-shell{max-width:1120px;margin:0 auto}
.pek-tools-hero{max-width:800px;padding:64px 0 38px}
.pek-tools-hero>span,.pek-tools-group-head>span{display:block;margin-bottom:12px;font-size:.75rem;font-weight:800;letter-spacing:.15em;color:#bf5a24}
.pek-tools-hero h1{margin:0;color:#2f241d;font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.25rem,5vw,4.5rem);line-height:.98;letter-spacing:-.035em}
.pek-tools-hero p{max-width:720px;margin:22px 0 0;font-size:1.08rem;line-height:1.7;color:#6d5a4e}
.pek-tools-crumbs{display:flex;gap:9px;align-items:center;padding-top:28px;font-size:.88rem;color:#8a776b}
.pek-tools-crumbs a,.pek-tools-back a{color:#6c4d39;text-decoration:none}.pek-tools-crumbs a:hover,.pek-tools-back a:hover{color:#bd5520}
.pek-tools-group{padding:28px 0 18px;border-top:1px solid #e7dbd0}
.pek-tools-group-head{max-width:760px;margin-bottom:22px}.pek-tools-group-head>span{margin-bottom:8px}.pek-tools-group-head h2{margin:0;color:#34271f;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.75rem,3vw,2.45rem);line-height:1.06}.pek-tools-group-head p{margin:11px 0 0;color:#766356;line-height:1.6}
.pek-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 22px}
.pek-tool-card,.pek-selection-card{position:relative;border:1px solid #eadfd4;border-radius:14px;background:#fff;transition:border-color .2s ease,background .2s ease,transform .2s ease}
.pek-tool-card{min-height:280px;padding:30px 28px}.pek-tool-card:hover,.pek-selection-card:hover{border-color:#d9b59c;background:#fffdf9;transform:translateY(-2px)}
.pek-tool-card h3,.pek-selection-card h3{margin:24px 0 12px;font-family:Georgia,'Times New Roman',serif;font-size:1.65rem;line-height:1.1}.pek-tool-card h3 a,.pek-selection-card h3 a{position:static;color:#32251d;text-decoration:none}.pek-tool-card h3 a:after,.pek-selection-card h3 a:after{content:"";position:absolute;inset:0}.pek-tool-card:hover h3 a,.pek-selection-card:hover h3 a{color:#b9511f}
.pek-tool-card p,.pek-selection-card p{margin:0 0 36px;color:#725f52;line-height:1.58}.pek-tool-card-cta{position:absolute;left:28px;bottom:26px;font-size:.9rem;font-weight:750;color:#b9511f}.pek-tool-card-cta b{display:inline-block;transition:transform .2s ease}.pek-tool-card:hover .pek-tool-card-cta b,.pek-selection-card:hover .pek-tool-card-cta b{transform:translateX(5px)}
.pek-tool-icon{display:grid;width:48px;height:48px;place-items:center;flex:0 0 48px;border-radius:12px;background:#fff2e7;border:1px solid #f1d7c3}.pek-tool-icon:before{content:"";width:24px;height:24px;background:center/contain no-repeat}
.pek-tool-icon--torta:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9511f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3'/%3E%3Cpath d='M5 6v8c0 1.7 3.1 3 7 3s7-1.3 7-3V6'/%3E%3Cpath d='M5 10c0 1.7 3.1 3 7 3s7-1.3 7-3'/%3E%3C/svg%3E")}
.pek-tool-icon--porcije:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9511f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4v8l6.2 5M12 12l-6.2 5'/%3E%3C/svg%3E")}
.pek-tool-icon--kvas:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9511f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14M7 5h10l2 14H5L7 5Z'/%3E%3Cpath d='M9 12h6M10 15h4'/%3E%3C/svg%3E")}
.pek-tool-icon--selection:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9511f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14M5 12h9M5 18h5'/%3E%3Cpath d='m15 16 2 2 4-5'/%3E%3C/svg%3E")}
.pek-selection-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 22px;align-items:start;min-height:150px;padding:28px 190px 28px 28px;margin-bottom:22px;background:linear-gradient(135deg,#fff 0%,#fff9f1 100%)}.pek-selection-card h3{margin:4px 0 8px}.pek-selection-card p{margin:0}.pek-selection-card .pek-tool-card-cta{left:auto;right:28px;bottom:50%;transform:translateY(50%)}
.pek-tools-note{margin:10px 0 30px;padding:18px 20px;border-left:3px solid #d56d31;background:#fff6ec;color:#6c5749;line-height:1.55}.pek-tools-note strong{color:#3d2c22}
.pek-tool-panel{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:24px;align-items:start;margin:8px 0 32px}.pek-tool-form,.pek-tool-result{border:1px solid #e8ddd2;background:#fff;border-radius:14px}.pek-tool-form{padding:28px}.pek-tool-form label{display:block;margin:0 0 16px;font-size:.9rem;font-weight:750;color:#514137}.pek-tool-form label>span{font-weight:500;color:#9a8779}.pek-tool-form input,.pek-tool-form select{box-sizing:border-box;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #d9cec4;border-radius:9px;background:#fff;color:#30241d;font:inherit;outline:none}.pek-tool-form input:focus,.pek-tool-form select:focus{border-color:#bf6b3d;box-shadow:0 0 0 3px rgba(191,107,61,.12)}
.pek-tool-row{display:grid;gap:14px}.pek-tool-row--dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}.pek-tool-result{position:sticky;top:24px;padding:30px;background:#35261f;color:#fff}.pek-tool-result-kicker{display:block;margin-bottom:12px;font-size:.72rem;font-weight:800;letter-spacing:.14em;color:#f2a06b}.pek-tool-result>strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.35rem,5vw,4.2rem);line-height:1;color:#fff}.pek-tool-result>p{margin:16px 0 0;color:#e6d9d0;line-height:1.55}
.pek-tool-tabs{display:flex;gap:6px;margin-bottom:24px;padding:4px;background:#f5eee8;border-radius:10px}.pek-tool-tabs button{flex:1;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#6d594c;font:inherit;font-weight:750;cursor:pointer}.pek-tool-tabs button.is-active{background:#fff;color:#3d2c22;box-shadow:0 1px 4px rgba(64,40,25,.08)}
.pek-tool-ratio{padding:15px 16px;border-radius:9px;background:#fbf5ee;color:#7d6758}.pek-tool-ratio span{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}.pek-tool-ratio strong{display:block;margin-top:4px;color:#47352a}
.pek-tool-method{max-width:760px;padding:28px 0 10px;border-top:1px solid #e4d8ce}.pek-tool-method h2{margin:0 0 10px;font-family:Georgia,'Times New Roman',serif;font-size:1.55rem}.pek-tool-method p{margin:0;color:#6f5b4e;line-height:1.65}.pek-tools-back{margin:28px 0 0;font-weight:750}
@media(max-width:820px){.pek-tools-main{padding:0 16px 52px}.pek-tools-hero{padding:46px 0 30px}.pek-tools-grid{grid-template-columns:1fr}.pek-tool-card{min-height:0;padding:24px}.pek-tool-card p{margin-bottom:34px}.pek-tool-panel{grid-template-columns:1fr}.pek-tool-result{position:static}.pek-selection-card{grid-template-columns:auto minmax(0,1fr);padding:24px 24px 68px}.pek-selection-card .pek-tool-card-cta{left:94px;right:auto;bottom:25px;transform:none}}
@media(max-width:480px){.pek-tools-hero h1{font-size:2.45rem}.pek-tool-form{padding:20px}.pek-tool-result{padding:24px}.pek-tool-row--dimensions{grid-template-columns:1fr}.pek-tool-tabs{display:grid;grid-template-columns:1fr}.pek-tools-crumbs{padding-top:20px}.pek-tool-card,.pek-selection-card{border-radius:10px}.pek-selection-card{grid-template-columns:1fr;gap:14px;padding:22px 22px 66px}.pek-selection-card h3{margin:0}.pek-selection-card .pek-tool-card-cta{left:22px}}

/* v0.20.39 calculator integrity + richer controls */
[data-portion-fields][hidden],[data-portion-pane][hidden],[data-yeast-pane][hidden]{display:none!important}
.pek-portion-input-layout{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:20px;align-items:stretch}
.pek-portion-dimensions{min-width:0}
.pek-portion-visual{display:flex;min-height:132px;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px solid #eadfd4;border-radius:12px;background:#fffaf5;color:#73594a;text-align:center}
.pek-portion-visual b{font-size:.82rem;letter-spacing:.02em}
.pek-portion-shape-icon{display:block;width:62px;height:62px;border:2px solid #c96532;background:#fff;box-shadow:inset 0 0 0 7px #fff4ea;transition:width .18s ease,height .18s ease,border-radius .18s ease}
.pek-portion-shape-icon[data-shape="round"]{border-radius:50%}
.pek-portion-shape-icon[data-shape="square"]{border-radius:8px}
.pek-portion-shape-icon[data-shape="rect"]{width:82px;height:54px;border-radius:8px}
.pek-tool-field-note{margin:-7px 0 16px;color:#8b7769;font-size:.84rem;line-height:1.5}
.pek-tool-result-meta{display:block;margin-top:10px;color:#f5b98f;font-size:.92rem;font-weight:750}
.pek-tool-result-options{display:grid;gap:8px;margin-top:20px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14)}
.pek-tool-result-options[hidden]{display:none!important}
.pek-tool-result-options span{display:flex;justify-content:space-between;gap:16px;color:#d8c9bf;font-size:.82rem;line-height:1.35}
.pek-tool-result-options b{color:#fff;text-align:right;font-weight:750}
.pek-tool-advanced{margin:3px 0 18px;border-top:1px solid #eee2d7;border-bottom:1px solid #eee2d7}
.pek-tool-advanced summary{padding:13px 0;cursor:pointer;color:#684b39;font-size:.88rem;font-weight:750;list-style:none}
.pek-tool-advanced summary::-webkit-details-marker{display:none}.pek-tool-advanced summary:after{content:"+";float:right;color:#bc5a27}.pek-tool-advanced[open] summary:after{content:"−"}
.pek-tool-advanced label{margin-top:4px}.pek-tool-advanced p{margin:-5px 0 14px;color:#8b7769;font-size:.8rem;line-height:1.45}
.pek-tool-equivalence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.pek-tool-equivalence span{padding:12px;border:1px solid #eadfd4;border-radius:9px;background:#fffaf5}
.pek-tool-equivalence small,.pek-tool-equivalence b{display:block}.pek-tool-equivalence small{color:#8c7566;font-size:.72rem}.pek-tool-equivalence b{margin-top:3px;color:#412f25;font-size:.95rem}
.pek-tool-check{display:flex!important;align-items:flex-start;gap:10px;margin-top:4px!important;padding:12px 13px;border:1px solid #e5d8ce;border-radius:9px;background:#fffaf5;cursor:pointer}
.pek-tool-check input{width:auto!important;margin:2px 0 0!important;box-shadow:none!important}.pek-tool-check span{color:#5e4a3e!important;font-weight:650!important;line-height:1.4}
.pek-tool-panel--yeast .pek-tool-result>strong{font-size:clamp(2rem,4vw,3.6rem)}
@media(max-width:720px){.pek-portion-input-layout{grid-template-columns:1fr}.pek-portion-visual{min-height:105px;flex-direction:row}.pek-tool-result-options span{display:block}.pek-tool-result-options b{display:block;margin-top:3px;text-align:left}.pek-tool-equivalence{grid-template-columns:1fr}}
