/* B-3: a physical-swatch-inspired ingredient wheel, with the original palette data. */
.wheel-page{--content:1180px}
.wheel-page .site-header{background:var(--paper)}
.wheel-page .masthead{min-height:80px}
.wheel-page .view-switch{margin-left:auto}
.wheel-page main{margin-top:27px;max-width:calc(100% - 64px)}
.wheel-intro{display:flex;justify-content:space-between;align-items:center;gap:30px}
.eyebrow{font:10px/1.5 Oxygen,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#78836b;margin:0 0 9px}
.wheel-intro h1{font:400 38px/1.1 'Abril Fatface',Georgia,serif;letter-spacing:-.025em;margin:0}
.intro-caption{font:18px/1.4 'Crimson Text',Georgia,serif;color:#737c66;margin:9px 0 0}
.wheel-search{position:relative;width:305px;flex-shrink:0;z-index:10}
.wheel-search>label{display:block;font:10px/1.4 Oxygen,sans-serif;letter-spacing:.05em;margin-bottom:8px;color:#78836b}
.search-field{display:flex;gap:10px;align-items:center;border:1px solid #d4dac8;border-radius:6px;padding:11px 13px;background:#fffdf8}
.search-field svg{width:16px;height:16px;flex-shrink:0;color:#758568}
.search-field input{width:100%;min-width:0;border:0;background:none;font:13px Oxygen,sans-serif;color:#33432c;outline-offset:5px}
.search-field input::-webkit-search-cancel-button{display:none}
.search-field button{border:0;background:transparent;padding:0;font:20px Arial,sans-serif;color:#78836b}
#wheel-results{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:330px;overflow:auto;padding:10px;border:1px solid #d4dac8;border-radius:7px;background:#fffdf8;box-shadow:0 12px 30px #283d2220}
#search-result-status{font:11px/1.5 Oxygen,sans-serif;margin:4px 8px 10px;color:#78836b}
#result-options button{display:block;width:100%;text-align:left;padding:9px;border:0;background:none;border-radius:4px;font:17px Rosario,sans-serif;color:#33432c}
#result-options button:hover,#result-options button:focus-visible{background:#edf0e5}
#result-options .search-dish-title{display:block;margin-top:3px;font:12px/1.4 Rosario,sans-serif;color:#68715e}
.wheel-alphabet{display:grid;grid-template-columns:repeat(26,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:25px 0 0;padding:10px 0;gap:1px}
.wheel-alphabet button{width:29px;height:29px;justify-self:center;border:0;background:none;border-radius:50%;font:12px Oxygen,sans-serif;color:#67755b;padding:0}
.wheel-alphabet button:disabled{color:#bdc3b3}
.wheel-alphabet button:hover:not(:disabled){background:#e6ebdc}
.wheel-alphabet button[aria-current]{background:#33432b;color:#fffdf8}
.wheel-explorer{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:32px;align-items:start;padding:19px 0 0}
.wheel-side{min-width:0;width:100%;max-width:644px;margin:0 auto}
#wheel-control{position:relative;aspect-ratio:1;cursor:grab;user-select:none;touch-action:pan-y;border-radius:50%;outline-offset:-15px}
#wheel-control.is-dragging{cursor:grabbing}
.color-wheel{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 8px 12px #34432816)}
.wheel-paper{fill:#fffdf8;stroke:#dfe2d5;stroke-width:1}
#wheel-rotor{transform-origin:50% 50%;transform-box:view-box;transition:none}
.is-dragging #wheel-rotor{transition:none}
.wheel-sector .ingredient-band{stroke:#faf8f1;stroke-width:.8px;transition:stroke-width .15s}
.wheel-sector text{font:10px Rosario,sans-serif;pointer-events:none}
.wheel-sector.is-active .ingredient-band{stroke:#2c3c24;stroke-width:2.2px}
.wheel-sector:hover .ingredient-band{stroke:#2c3c24;stroke-width:2px}
.pairing-band{stroke:#faf8f1;stroke-width:.25px}
.wheel-marker{position:absolute;inset:0;transform:rotate(-42deg);z-index:3;pointer-events:none}
.wheel-marker::after{content:'';position:absolute;right:1.5%;top:calc(50% - 7px);width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:13px solid #33432b}
.wheel-hub{position:absolute;left:30.6%;top:30.6%;width:38.8%;height:38.8%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:8px;background:#faf8f1;border:1px solid #d9dfcf;border-radius:50%;box-shadow:0 2px 9px #2e412314;pointer-events:none;padding:18px}
.hub-rivet{width:9px;height:9px;background:#d5dacc;border:1px solid #bdc4b1;border-radius:50%;box-shadow:inset 0 1px 2px #fff;position:absolute;top:12%}
.hub-eyebrow{font:9px/1.4 Oxygen,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#7b866f}
.hub-eyebrow span{display:block;margin-top:5px;font-size:10px;letter-spacing:.04em}
#wheel-name{font:400 27px/1.07 'Abril Fatface',Georgia,serif;letter-spacing:-.03em;color:#35442d;max-width:100%;overflow-wrap:break-word}
#wheel-count{font:11px Oxygen,sans-serif;color:#7b866f}
.hub-turn{font:9px Oxygen,sans-serif;letter-spacing:.2em;color:#929b86;margin-top:5px}
#wheel-help{font:11px/1.5 Oxygen,sans-serif;text-align:center;color:#87917b;margin:-4px 0 15px}
.wheel-navigation{display:flex;justify-content:center;align-items:center;gap:14px}
.wheel-navigation button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d4dcc7;border-radius:50%;background:transparent;color:#4b6040}
.wheel-navigation button:hover{background:#e8eddd}
.wheel-navigation svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}
#ingredient-picker{max-width:65%;border:0;border-bottom:1px solid #c4cfb7;border-radius:0;padding:9px 25px 9px 5px;background:transparent;font:17px Rosario,sans-serif;color:#405735;cursor:pointer}
.wheel-detail{padding-top:32px;min-width:0}
.detail-heading{display:flex;align-items:center;justify-content:space-between}
.detail-heading .eyebrow{margin:0}
#palette-position{font:10px Oxygen,sans-serif;color:#8a947d;letter-spacing:.08em}
.detail-instruction{font:16px/1.4 'Crimson Text',Georgia,serif;color:#78836a;margin:8px 0 18px}
.wheel-page .palette-catalog{display:block}
.wheel-page .palette-card{margin:0;border:1px solid #d8dfcc;border-radius:8px;overflow:clip;background:var(--paper);scroll-margin-top:120px}
.wheel-page .palette-grid{grid-template-columns:minmax(0,1fr);min-height:0}
.wheel-page .primary-swatch{min-height:136px;padding:25px 27px;gap:10px;border:0;border-bottom:0}
.wheel-page .primary-swatch h2,.wheel-page .primary-swatch.long-name h2{font-size:34px;hyphens:none}
.wheel-page .primary-swatch .note-toggle{left:auto;right:16px;bottom:auto;top:15px}
.wheel-page .secondary-grid{grid-template-columns:repeat(var(--columns),minmax(0,1fr));grid-auto-rows:minmax(104px,1fr)}
.wheel-page .palette-option{padding:0;margin:0;border:0;display:block;min-height:0}
.wheel-page .palette-option::before{display:none}
.wheel-page .palette-choice{min-height:104px;font-size:19px;padding:22px 15px}
.wheel-page .recipe-reveal{padding:18px 22px;min-height:66px}
.wheel-page .selected-title{font-size:25px}
.wheel-page footer{margin-top:40px}
@media(max-width:1100px){.wheel-explorer{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:25px}#wheel-name{font-size:23px}.wheel-hub{gap:6px}.hub-rivet{top:9%}.hub-turn{display:none}.wheel-page .palette-choice{font-size:18px}.wheel-page .primary-swatch h2,.wheel-page .primary-swatch.long-name h2{font-size:31px}}
@media(max-width:800px){.wheel-page .masthead{gap:16px}.wheel-page .tagline{display:none}.wheel-intro{align-items:start}.wheel-intro h1{font-size:32px}.intro-caption{font-size:16px}.wheel-search{width:260px}.wheel-explorer{grid-template-columns:minmax(0,1fr);gap:20px;max-width:690px;margin:0 auto}.wheel-side{max-width:621px;width:100%;margin:0 auto}.wheel-detail{padding-top:5px}#wheel-name{font-size:28px}.wheel-hub{gap:8px}.hub-rivet{top:12%}.hub-turn{display:block}.wheel-alphabet{grid-template-columns:repeat(13,minmax(0,1fr));padding:6px 0}.wheel-page .primary-swatch h2,.wheel-page .primary-swatch.long-name h2{font-size:34px}.wheel-page .palette-choice{font-size:20px}}
@media(max-width:560px){.wheel-page .masthead{min-height:78px;max-width:calc(100% - 32px)}.wheel-page .brand img{width:105px;height:43px}.wheel-page .view-switch{font-size:10px}.wheel-page .view-switch>a,.wheel-page .view-switch>span{padding:7px 8px}.wheel-page .view-switch small{display:none}.wheel-page main{max-width:calc(100% - 32px);margin-top:21px}.wheel-intro{display:block}.eyebrow{font-size:9px}.wheel-intro h1{font-size:32px}.intro-caption{font-size:16px;margin-top:6px}.wheel-search{width:100%;margin-top:18px}.wheel-search>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.wheel-alphabet{margin-top:18px}.wheel-alphabet button{font-size:11px;height:26px;width:26px}.wheel-explorer{padding-top:9px;gap:24px}.wheel-hub{padding:12px;gap:4px}.hub-rivet{width:6px;height:6px;top:10%}.hub-eyebrow{font-size:7px}.hub-eyebrow span{font-size:8px;margin-top:2px}#wheel-name{font-size:19px}#wheel-count{font-size:9px}.hub-turn{display:none}.wheel-sector text{font-size:11px}#wheel-help{font-size:10px;margin:0 0 12px}.wheel-navigation{gap:13px}.wheel-navigation button{width:35px;height:35px}#ingredient-picker{font-size:16px}.detail-instruction{font-size:16px;margin-bottom:13px}.wheel-page .primary-swatch{min-height:114px;padding:20px}.wheel-page .primary-swatch h2,.wheel-page .primary-swatch.long-name h2{font-size:30px}.wheel-page .secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(85px,1fr)}.wheel-page .palette-choice{min-height:85px;font-size:18px;padding:20px 14px}.wheel-page .recipe-reveal{padding:15px 18px}.wheel-page .selected-title{font-size:23px}.wheel-page footer{margin:30px 16px 0;max-width:none}.wheel-marker::after{border-top-width:5px;border-bottom-width:5px;border-right-width:10px;top:calc(50% - 5px)}}
@media(prefers-reduced-motion:reduce){#wheel-rotor,.wheel-sector .ingredient-band{transition:none}}

.show-palette{display:none}
@media(max-width:800px){.show-palette{display:block;margin:16px auto 0;padding:9px 14px;border:1px solid #ccd6be;border-radius:5px;background:transparent;color:#4c653c;font:11px Oxygen,sans-serif}.show-palette:hover{background:#e8eddd}.wheel-detail{scroll-margin-top:100px}}

@media(max-width:560px){.wheel-page .secondary-grid[data-count="1"]>.palette-option:last-child,.wheel-page .secondary-grid[data-count="3"]>.palette-option:last-child,.wheel-page .secondary-grid[data-count="5"]>.palette-option:last-child{grid-column:span 2}.wheel-page .secondary-grid[data-count="8"]>.palette-option:last-child{grid-column:auto}}

/* Fixed focus at the pointer; the geometry changes smoothly through the lens. */
.focus-lens .wheel-sector.is-active .ingredient-band{stroke-width:2.5px;filter:drop-shadow(0 1px 1px #25371d35)}

/* B-3: compact masthead search, with the wheel directly below the alphabet. */
.wheel-page .masthead{gap:22px}
.wheel-page .masthead .wheel-search{flex:1 1 220px;min-width:180px;max-width:285px;width:auto;margin:0 0 0 auto}
.wheel-page .masthead .view-switch{margin-left:0}
.wheel-page .masthead .wheel-search>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.wheel-page main{margin-top:0}
.wheel-alphabet{margin-top:0;border-top:0}
@media(max-width:1100px){.wheel-page .tagline{display:none}}
@media(max-width:680px){
 .wheel-page .masthead{position:relative;flex-wrap:nowrap;gap:12px;padding:13px 0 12px}
 .wheel-page .masthead .view-switch{margin-left:auto}
 .wheel-page .masthead .wheel-search{position:static;order:0;flex:1 1 0;min-width:0;max-width:none;margin:0}
 .wheel-page .masthead .search-field{padding:10px 9px;gap:7px}
 .wheel-page .masthead .search-field svg{flex-shrink:0}
 .wheel-page #wheel-results{left:0;right:0}
 .wheel-page main{margin-top:0}
 .wheel-alphabet{margin-top:0}
 .wheel-detail{scroll-margin-top:155px}
}

/* Alternative ingredient names share the existing cards. */
.wheel-letter-results{max-width:1320px;margin:0 auto 20px;padding:14px 20px;border-block:1px solid #dadacf;display:flex;flex-wrap:wrap;gap:8px 22px}
.wheel-letter-results[hidden]{display:none}
.wheel-letter-results a{font:inherit;font-size:14px;color:#334c35;text-underline-offset:3px;padding:7px 0}
.wheel-letter-results a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.wheel-alphabet button[aria-expanded="true"]{background:#245c3a;color:white}

/* A larger, intentionally cropped wheel on phones. Controls remain in normal flow. */
@media(max-width:680px){
 .wheel-page{overflow-x:clip}
 .wheel-page main{max-width:calc(100% - 32px)}
 .wheel-side{max-width:none}
 .wheel-viewport{width:calc(100% + 32px);height:115vw;margin-left:-16px;overflow:hidden;overflow:clip;margin-bottom:12px}
 /* Archived v76 geometry, retaining the centered, wrapping hub label. */
 .wheel-viewport #wheel-control{width:180%;margin-left:-78%}
 #wheel-name{max-width:min(100%,var(--wheel-name-mobile-width,calc(22.5vw - 6px)));font-size:clamp(14px,4.1vw,19px);text-wrap:balance}
}

/* Keep alphabet and ingredient picker navigation available on desktop, hidden on phones. */
@media(max-width:680px){
 .wheel-alphabet,.wheel-letter-results,.wheel-navigation{display:none}
}

/* Reserve ring touches for rotation; the center keeps native vertical scrolling. */
@media(max-width:680px){
 .wheel-sector path{touch-action:none}
 #wheel-help .desktop-wheel-help{display:none}
 #wheel-help .mobile-wheel-help{display:inline}
}
@media(min-width:681px){#wheel-help .mobile-wheel-help{display:none}}

/* A generous, prominent pairing action on phones. */
@media(max-width:680px){
 .show-palette{width:100%;max-width:360px;min-height:52px;padding:15px 22px;border-color:#33432b;border-radius:8px;background:#33432b;color:#fffdf8;font:700 16px/1.3 Oxygen,sans-serif;touch-action:manipulation}
 .show-palette:hover,.show-palette:active{background:#263520;border-color:#263520}
 .show-palette:focus-visible{outline:3px solid #33432b;outline-offset:4px}
}

/* Keep the pairing action inside the first screen, including browser toolbars. */
@media(max-width:680px){
 .wheel-explorer{padding-top:12px}
 .wheel-viewport{height:min(105vw,calc(100svh - 240px));margin-bottom:8px}
 .wheel-viewport #wheel-control{top:0}
 #wheel-help{margin:0 0 8px}
 .show-palette{margin-top:8px}
}

@media(max-width:680px){.wheel-detail .detail-instruction{display:none}}

/* Keep mobile cooking notes scrollable with their close control in reach. */
@media(max-width:680px){
 .wheel-page dialog{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
 .wheel-page dialog .dialog-head{position:sticky;top:0;z-index:2;background:var(--paper);border-bottom:1px solid var(--line)}
 .wheel-page dialog .dialog-close{width:44px;height:44px}
}

.show-palette .explore-arrow{display:inline-block;width:1.15em;height:1.15em;margin-left:10px;vertical-align:-.2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.show-palette[data-direction="up"] .explore-arrow{transform:rotate(180deg)}

/* Reveal the upper arc behind the language area; retain side and bottom cropping. */
@media(max-width:680px){
 .wheel-viewport{overflow-x:clip;overflow-y:visible;clip-path:inset(-100vh 0 0 0)}
 .wheel-side>.ingredient-language-control{position:relative;z-index:2;background:transparent}
}

/* A quiet moving wash of white and the selected ingredient pair. */
.wheel-page .recipe-reveal{isolation:isolate;overflow:hidden;background:var(--paper);border-top:0;margin-top:6px}
.wheel-page .recipe-reveal.has-pairing-gradient::before{content:'';position:absolute;inset:-45%;z-index:-1;pointer-events:none;opacity:.28;background:radial-gradient(ellipse at 52% 42%,#fff 0%,rgba(255,255,255,.85) 14%,transparent 48%),radial-gradient(ellipse at 22% 32%,var(--dish-primary) 0%,transparent 62%),radial-gradient(ellipse at 80% 65%,var(--dish-secondary) 0%,transparent 65%);animation:dish-color-drift 20s ease-in-out infinite alternate}
@keyframes dish-color-drift{from{transform:translate(-5%,-4%) rotate(-7deg) scale(1)}to{transform:translate(6%,5%) rotate(9deg) scale(1.12)}}
@media(prefers-reduced-motion:reduce){.wheel-page .recipe-reveal.has-pairing-gradient::before{animation:none}}

/* Flowing border around the recipe, using the selected pair at full color. */
.wheel-page .recipe-reveal::after{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:#fff;pointer-events:none}
.wheel-page .recipe-reveal.has-pairing-gradient::after{inset:0;height:auto;padding:5px;border-radius:0 0 7px 7px;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;background:linear-gradient(100deg,var(--dish-primary) 0%,var(--dish-secondary) 33%,var(--dish-primary) 67%,var(--dish-secondary) 100%);background-size:300% 100%;animation:pairing-border-flow 12s ease-in-out infinite alternate}
@keyframes pairing-border-flow{from{background-position:0% 50%}to{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.wheel-page .recipe-reveal.has-pairing-gradient::after{animation:none;background-position:50% 50%}}

@media(max-width:680px){.wheel-page .masthead .wheel-search{display:none}}

/* Keep flavor and collection switches above the oversized wheel hit area. */
.flavor-modes,.sweet-collections,.cheese-collections{position:relative;z-index:4}
.flavor-modes a,.sweet-collections a,.cheese-collections a{touch-action:manipulation}
.flavor-modes{display:flex;justify-content:center;gap:3px;width:max-content;max-width:calc(100% - 24px);margin:18px auto 12px;padding:4px;border:1px solid #d8dbcf;border-radius:30px;background:#f4f3ec}
.flavor-modes a{font-family:Arial,sans-serif;min-width:86px;padding:8px 20px;border-radius:24px;text-align:center;text-decoration:none;color:#6b705f;font-size:14px;line-height:1.2;transition:background .2s,color .2s}
.flavor-modes a[aria-current=page]{color:#fffdf8;background:#34432b;box-shadow:0 1px 4px #25301f16}
body[data-flavor=sweet] .flavor-modes a[aria-current=page]{background:#943754}
.flavor-modes a:focus-visible{outline:2px solid #943754;outline-offset:3px}
@media(max-width:680px){.flavor-modes{margin:10px auto 0;padding:3px}.flavor-modes a{padding:8px 12px;min-width:0;white-space:nowrap;font-size:13px}.wheel-viewport{height:min(115vw,calc(100svh - 288px))}}

/* The sweet wheel can start with produce or the aromas that accompany it. */
.sweet-collections{display:flex;justify-content:center;gap:22px;margin:0 auto 12px;font:13px/1.2 Arial,sans-serif}
.sweet-collections a{padding:8px 3px;color:#737767;text-decoration:none;border-bottom:2px solid transparent}
.sweet-collections a[aria-current=page]{color:#943754;border-bottom-color:#943754}
.sweet-collections a:focus-visible{outline:2px solid #943754;outline-offset:2px;border-radius:3px}
@media(max-width:680px){.sweet-collections{margin:3px auto 0;gap:20px}.sweet-collections a{padding:10px 5px}body[data-flavor=sweet] .wheel-viewport{height:min(115vw,calc(100svh - 328px))}}

body[data-flavor=cheeses] .flavor-modes a[aria-current=page]{background:#795a32}

.cheese-collections{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;margin:0 auto 12px;font:13px/1.2 Arial,sans-serif}
.cheese-collections a{padding:10px 3px;color:#737767;text-decoration:none;border-bottom:2px solid transparent;min-height:44px;display:flex;align-items:center}
.cheese-collections a[aria-current=page]{color:#795b30;border-bottom-color:#795b30}
.cheese-collections a:focus-visible{outline:2px solid #795b30;outline-offset:2px;border-radius:3px}
@media(max-width:680px){.cheese-collections{margin:3px 12px 0;gap:0 12px;font-size:11px}.cheese-collections a{padding:10px 0}body[data-flavor=cheeses] .wheel-viewport{height:min(115vw,calc(100svh - 328px))}}
/* Lift the hub on shorter screens so wrapped labels stay above the crop. */
@media(max-width:680px) and (max-height:720px){
 .wheel-viewport #wheel-control{top:-36px}
}
/* Account for the second row of cheese categories on the narrowest phones. */
@media(max-width:360px){body[data-flavor=cheeses] .wheel-viewport{height:min(115vw,calc(100svh - 340px))}}
/* Compact screens favor the ingredient label and action over extra magnification. */
@media(max-width:360px) and (max-height:650px){
 .wheel-viewport #wheel-control{width:150%;margin-left:-50%;top:-44px}
 #wheel-name{max-width:100%;font-size:19px}
 .wheel-viewport{overflow:clip;clip-path:none}
}

.wheel-page .cheese-provenance{font:400 12px/1.4 Arial,sans-serif;margin:0;max-width:100%;overflow-wrap:anywhere;opacity:.85}
@media(max-width:680px){.wheel-page .cheese-provenance{font-size:11px;line-height:1.45}}

/* Milk source stays secondary to the cheese name on its primary swatch. */
.wheel-page .cheese-milk{font:400 12px/1.4 Arial,sans-serif;margin:0;max-width:100%;overflow-wrap:anywhere}
.wheel-page .cheese-milk+.cheese-provenance{margin-top:-4px}

@media(max-width:360px){.flavor-modes a{padding:8px 9px;font-size:12px}}
