/* Shared compact identity, taken from the owner-selected November 4 reference. */
.cg-brand,header .cg-brand{display:inline-flex!important;align-items:center;gap:0!important;flex:none;font-family:system-ui,sans-serif!important;font-size:28px!important;font-weight:750!important;letter-spacing:-1px!important;line-height:1.2!important;text-decoration:none!important;color:#d32f2f!important;background:transparent!important;border-radius:0!important;padding:0!important;white-space:nowrap;text-shadow:none!important;box-sizing:border-box}
.cg-brand .cg-brand-red{color:#d32f2f!important}.cg-brand .cg-brand-white{color:#f3f4f6!important;text-shadow:0 1px 1px #25282c,-.5px 0 #626971,.5px 0 #626971,0 -.5px #626971}.cg-brand .cg-brand-leaf{font-size:16px;letter-spacing:0;margin-left:6px;line-height:1}
.cg-brand:focus-visible{outline:3px solid #d32f2f;outline-offset:4px}
body.cg-static{padding-bottom:96px!important;background-color:var(--paper);color:var(--ink)}
.cg-static>header{display:flex!important;align-items:center;justify-content:space-between;gap:16px;min-height:86px;padding:20px 0!important;box-sizing:border-box}
.cg-static>header .brand{max-width:100%;margin:0!important}
.cg-static>header .est,.cg-static>header .flag{margin-right:58px}
.cg-static>header>a:not(.cg-brand){font-size:13px;margin-right:58px}
.cg-static .site-nav{z-index:95}
.cg-static .site-nav summary{box-sizing:border-box;width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:11px}
html body #canoogle-dock,html body #canoogle-main-dock{box-sizing:border-box!important;height:calc(70px + env(safe-area-inset-bottom))!important;min-height:70px!important;padding:4px 8px calc(4px + env(safe-area-inset-bottom))!important;gap:12px!important;border-top-width:1px!important}
#canoogle-dock{background:var(--cg-dock,#f4f4f4)!important}
html[data-canoogle-theme=dark]{--cg-dock:#1a1d20}
#canoogle-dock>button,#canoogle-main-dock>button{box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:11px!important;padding:0!important;flex:none!important}
#canoogle-dock>button{font-size:22px!important}#canoogle-dock #canoogle-theme-icon svg{width:22px;height:22px}
#canoogle-dock nav{gap:16px;font:700 12px system-ui,sans-serif;min-width:0}
#canoogle-dock nav a{padding:10px 2px;white-space:nowrap}
/* Page footer is in document flow. Bottom bar remains fixed viewport controls. */
.cg-site-footer{width:100%;box-sizing:border-box;margin:48px auto 0!important;padding:20px 0 24px!important;border-top:1px solid var(--line,#e0e3e6);color:var(--muted,#626971);font:12px/1.6 system-ui,sans-serif;display:block}
.cg-site-footer nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 16px}
.cg-site-footer a{color:inherit;text-decoration:none;text-underline-offset:4px}
.cg-site-footer a:hover,.cg-site-footer a:focus-visible{color:#d32f2f;text-decoration:underline}
.cg-site-footer p{margin:0;font:inherit;max-width:none}
.cg-footer-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.cg-site-footer .cg-footer-name{font-weight:750;color:var(--ink,#25282c)}
.cg-footer-contact{display:flex;flex-wrap:wrap;gap:8px 18px}
.cg-page-note{font:13px/1.6 system-ui,sans-serif;color:var(--muted);width:min(1000px,calc(100% - 34px));margin:24px auto 0}
.cg-bottle-story{margin:30px 0;padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--raised)}
.cg-bottle-story h2{font-size:clamp(24px,4vw,34px);line-height:1.15;margin:8px 0 14px}.cg-bottle-story p{color:var(--muted);max-width:68ch}.cg-bottle-story strong{color:var(--ink)}
.cg-milestone{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0}.cg-milestone>span{padding:14px 18px;border:1px solid var(--line);border-radius:14px;font-size:13px}.cg-milestone b{display:block;font-size:28px;color:var(--ink);line-height:1.2}.cg-milestone .cg-now{border-color:#c79136;background:linear-gradient(125deg,rgba(232,173,65,.17),transparent)}.cg-milestone .cg-step-arrow{padding:0;border:0;color:var(--muted);font-size:28px}
.cg-cellar-shelf{display:flex;align-items:end;gap:clamp(8px,2vw,24px);padding:12px 8px 0;border-bottom:6px solid #98672f;overflow:hidden;max-width:580px;margin:24px 0 8px;mask-image:linear-gradient(to right,#000 87%,transparent)}
.cg-bottle{flex:0 0 46px;height:88px;border:2px solid #ab7629;border-radius:10px 10px 14px 14px;position:relative;background:linear-gradient(100deg,#8f4c10,#d79328 40%,#b66d16);box-shadow:inset 5px 0 0 #ffffff24}
.cg-bottle:before{content:'';display:block;width:23px;height:18px;background:#95622f;border:2px solid #67431f;border-radius:4px 4px 0 0;position:absolute;top:-20px;left:9px}.cg-bottle:after{content:'S';position:absolute;inset:26px 6px auto;background:#f5e8cc;color:#653915;border-radius:4px;font:750 20px/30px system-ui;text-align:center}.cg-bottle:nth-child(2n){height:74px}.cg-bottle:nth-child(3n){height:100px}
.cg-cellar-caption{font-size:12px!important;color:var(--muted)}
@media(max-width:500px){.cg-static>header{gap:8px;flex-wrap:wrap;justify-content:flex-start;padding-right:54px!important}.cg-static>header .est,.cg-static>header .flag,.cg-static>header>a:not(.cg-brand){margin-right:0}.cg-static>header .est{font-size:9px}.cg-site-footer{grid-template-columns:1fr;gap:14px}.cg-site-footer .cg-footer-meta{text-align:left}.cg-site-footer nav{justify-content:flex-start}html body #canoogle-dock,html body #canoogle-main-dock{padding-left:6px!important;padding-right:6px!important;gap:8px!important}#canoogle-dock nav{gap:10px;font-size:11px}.cg-bottle-story{padding:20px}.cg-bottle{flex-basis:36px}.cg-bottle:before{left:5px}.cg-bottle:after{inset-inline:4px}.cg-cellar-shelf{padding-top:24px}.cg-milestone{gap:10px}.cg-milestone>span{padding:12px}.cg-milestone b{font-size:23px}}
@media(prefers-reduced-motion:reduce){.cg-source-guide *{transition:none!important;animation:none!important}}
.cg-static>header{width:min(1000px,calc(100% - 34px))!important;margin-inline:auto!important}
.cg-static .site-nav{position:fixed;right:18px;top:18px;z-index:95;font:14px/1.4 system-ui,sans-serif}
.cg-static .site-nav summary{list-style:none;cursor:pointer;background:var(--raised);color:var(--ink);border:1px solid var(--line);box-shadow:0 4px 12px #00000009}
.cg-static .site-nav summary::-webkit-details-marker{display:none}.cg-static .site-nav nav{position:absolute;right:0;top:52px;display:flex;flex-direction:column;width:240px;max-height:calc(100dvh - 170px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--raised);box-shadow:0 14px 40px #0003}.cg-static .site-nav nav a{padding:9px;color:var(--ink);text-decoration:none}.cg-static .site-nav nav strong{font-size:10px;letter-spacing:.12em;color:var(--muted);padding:8px}.cg-static .site-nav nav a:hover{background:var(--soft)}

.cg-site-footer{scroll-margin-bottom:calc(86px + env(safe-area-inset-bottom))}
html body #canoogle-pager-status{padding-bottom:0!important}
/* One page canvas and outer frame, while inner reading columns keep their measure. */
body.cg-static{background:var(--paper)!important;padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
.cg-static>header,.cg-static>main,.cg-static>.cg-site-footer{width:calc(100% - 36px)!important;max-width:none!important;margin-inline:auto!important;box-sizing:border-box}
.cg-static>main{padding-inline:0!important}
#cg-page-frame{width:100%;max-width:none;padding-inline:18px;padding-bottom:calc(86px + env(safe-area-inset-bottom))}
#canoogle-dock>button{background:#fff!important}
html[data-canoogle-theme=dark] #canoogle-dock>button{background:#22262a!important}
#canoogle-dock nav a:nth-child(3){display:inline!important}
.cg-bottom-nav{display:flex;align-items:center;justify-content:center;gap:16px;font:700 12px system-ui,sans-serif}
.cg-bottom-nav a{color:inherit;text-decoration:none;white-space:nowrap;padding:10px 2px}
.cg-bottom-nav a:hover,.cg-bottom-nav a:focus-visible{color:#d32f2f;text-decoration:underline}
#canoogle-main-dock>button svg{width:22px;height:22px}
#canoogle-main-dock>button:first-child>div{font-size:22px!important}
@media(max-width:500px){.cg-footer-line{align-items:flex-start;flex-direction:column}.cg-site-footer nav{gap:8px 16px}.cg-footer-contact{gap:8px 14px}.cg-bottom-nav{gap:10px;font-size:11px}}

/* Reading frame applies only to information pages, never search workspaces. */
@media(min-width:1200px){.cg-static>header,.cg-static>main,.cg-static>.cg-site-footer{width:60%!important}}

/* Gio-hour accessibility polish. Keep the selected wordmark and layout unchanged. */
html[data-canoogle-theme="dark"] body.cg-static{--red:#d32f2f;--blue:#78baff}
html[data-canoogle-theme="dark"] .cg-site-footer a:hover,html[data-canoogle-theme="dark"] .cg-site-footer a:focus-visible,html[data-canoogle-theme="dark"] .cg-bottom-nav a:hover,html[data-canoogle-theme="dark"] .cg-bottom-nav a:focus-visible{color:#d32f2f}
/* Separate filled-action colour from the brighter text accent. */
body.cg-static .primary{background:#b9282d;color:#fff}
html[data-canoogle-theme="light"] body.cg-static input:not([type=checkbox]),html[data-canoogle-theme="light"] body.cg-static textarea,html[data-canoogle-theme="light"] body.cg-static select{border-color:#858b93}
html[data-canoogle-theme="dark"] body.cg-static input:not([type=checkbox]),html[data-canoogle-theme="dark"] body.cg-static textarea,html[data-canoogle-theme="dark"] body.cg-static select{border-color:#78818c}
.cg-site-footer a:focus-visible,.cg-bottom-nav a:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:2px}
.cg-site-footer nav a{display:inline-flex;align-items:center;min-height:24px}
#canoogle-support-dialog .support-close{width:44px;height:44px}
/* The Expo shell exposes its theme through the toggle's next-action label.
   Lift only red text spans, not filled buttons or the selected brand colours. */
body:has(button[aria-label="Use light theme"]) #cg-page-frame div[style^="color: rgb(211, 47, 47)"]{color:#d32f2f!important}
body:has(button[aria-label="Use light theme"]) button[aria-label^="SYRUP v2.0"]>div{color:#d32f2f!important;border-color:#d32f2f!important}

/* Native audio controls must follow Canoogle's selected theme, not the OS theme.
   Let the browser draw matching time labels, icons and seek controls together. */
body:has(button[aria-label="Use dark theme"]) audio[controls]{color-scheme:light;border-radius:18px}
body:has(button[aria-label="Use light theme"]) audio[controls]{color-scheme:dark;border-radius:18px}

/* Strong, unshadowed time digits in the LIGHT native audio player. */
body:has(button[aria-label="Use dark theme"]) audio[controls]::-webkit-media-controls-current-time-display,
body:has(button[aria-label="Use dark theme"]) audio[controls]::-webkit-media-controls-time-remaining-display{color:#000!important;-webkit-text-fill-color:#000!important;font-weight:700!important;text-shadow:none!important;opacity:1!important}
