/* Warm photographic wine journal, shared by the app and account pages. */
:root{--wine:#841f2e;--wine-dark:#59131e;--wine-mid:#9d4651;--rose:#fcf0f1;--cream:#f8f6f2;--gold:#bc8e43;--green:#205e43;--line:#eee8e2;--muted:#79747b;--shadow:0 5px 22px #3f252008}
body{background:#e8dcc8 url('/wine-landscape.webp') center/cover fixed no-repeat;color:#292832;padding:30px 24px}
body::before{content:'';position:fixed;inset:0;background:linear-gradient(100deg,#422b261a,#f3e7cf22);pointer-events:none;z-index:-1}
.app-shell{max-width:1480px;margin:0 auto;min-height:calc(100vh - 60px);border:1px solid #fff9;border-radius:18px;background:#faf9f7;box-shadow:0 25px 90px #21150d40;overflow:clip;isolation:isolate}
.sidebar{width:210px;padding:23px 12px 17px;border-right:1px solid #eee9e4;background:#fffdfc;top:30px;height:calc(100vh - 60px);min-height:700px}
.brand{background:transparent;min-height:168px;padding:0 6px 23px;margin-bottom:12px;color:var(--wine);border-radius:0;gap:5px}
.brand-official-logo{width:106px;height:106px;filter:none}.brand-app-name{color:var(--wine);font-size:17px;letter-spacing:.3px}.brand-app-name strong{color:#b88635}.brand-app-tagline{color:#93828a;font-size:9px}
.side-section-title{font-size:9px;letter-spacing:1.5px;padding:13px 13px;color:#8b8790}.nav-item{border-radius:10px;font-size:12px;padding:12px 13px;font-weight:500;min-height:44px!important;gap:10px!important}.sidebar .nav-item{grid-template-columns:22px minmax(0,1fr)}.nav-item.active{background:linear-gradient(100deg,#6e1524,#922538);color:white;box-shadow:0 3px 8px #6e15241a}.nav-item:hover:not(.active){background:#faf3ef}.nav-icon svg,.module-icon svg,.mobile-item svg,.metric-icon svg{width:23px;height:23px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app-version{line-height:1.6;font-size:9px;margin:14px 10px 0}
.topbar{height:66px;padding:0 27px;background:#ffffffed;top:0;border-bottom:1px solid #eee8e2;gap:15px}.topbar-left{font-size:12px;color:#7c2634}.top-mark{width:31px;height:31px}.topbar-right{gap:11px}.status-pill{font-size:10px;font-weight:650;padding:10px 13px;background:#fcf4e4;color:#865a26}.profile-pill{background:#f9e1e5;color:#7d2030}.topbar-library{border:1px solid #ede6e5;background:#faf8f7;color:#827780;border-radius:24px;font-size:11px;padding:10px 18px;min-width:250px;text-align:left;display:flex;align-items:center;gap:10px}.topbar-library svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7}
#screen{padding:20px 22px 32px;max-width:1220px}.card{border-radius:13px;padding:20px;border-color:#eee8e4;box-shadow:var(--shadow)}.headline{font-size:34px}.section-heading{font-size:24px;color:#27252e}.spaced{margin-top:23px}.section-top{margin-bottom:13px}.section-top .eyebrow{font-size:9px;margin-bottom:6px}.hero{padding:29px 31px;border-radius:13px;min-height:285px;background:linear-gradient(90deg,#5b0f1fe8 0%,#611725bc 35%,#391d2a14 70%),url('/wine-landscape.webp') center 58%/cover;color:white;align-items:flex-start}.hero h1{font-size:clamp(32px,3.2vw,48px);line-height:1.06;max-width:540px;letter-spacing:-1.3px;margin:13px 0}.hero p{font-size:13px;line-height:1.6;max-width:390px;color:#fff1eb}.hero .eyebrow{color:#fff3ec;font-size:9px;letter-spacing:1.6px;margin:0}.hero::after{display:none}.hero-official-emblem{height:78px;width:78px;margin:0;opacity:1}.hero .btn.light{background:linear-gradient(#f6e1ac,#e8c784);border-color:#eccf95;color:#602024;border-radius:8px;padding:12px 20px;font-size:12px;box-shadow:0 4px 12px #2d0c1715}
.metrics{gap:14px;margin-top:15px}.metric{padding:16px;display:grid;grid-template-columns:43px auto 1fr;align-items:center;column-gap:13px;border-radius:12px;min-height:83px}.metric strong{grid-column:2;grid-row:1;font-size:29px;margin:0;white-space:nowrap}.metric>span:not(.metric-icon){grid-column:3;grid-row:1;font-size:11px;line-height:1.5}.metric-icon{grid-column:1;grid-row:1;width:43px;height:48px;border-radius:11px;display:grid;place-items:center;background:#fff0f1;color:var(--wine)}.metric:nth-child(2) .metric-icon{background:#fcf3df;color:#9b6e26}
.module-card{padding:9px 9px 13px;min-height:302px;gap:0}.module-visual{height:125px;border-radius:8px;overflow:hidden;margin:0 0 -24px;background:#e6d5b7}.module-visual img{width:100%;height:100%;object-fit:cover;display:block}.module-card .module-icon{position:relative;z-index:1;border:4px solid white;border-radius:50%;width:53px;height:53px;margin:0 10px;background:#fff1f2;color:#8c2335}.module-card.gold .module-icon{background:#fff5df;color:#a87524}.module-card.green .module-icon{background:#e8f3eb;color:#1c5b3f}.module-card h3{margin:8px 8px 5px;font-size:22px;line-height:1.2}.module-card p{margin:0 8px 13px;font-size:12px;line-height:1.6}.module-card .text-link{margin:0 7px;display:flex;align-items:center;justify-content:space-between;border:1px solid #842237;border-radius:8px;padding:10px 13px;background:linear-gradient(90deg,#721727,#92273a);color:#fff;font-size:11px;min-height:39px;text-decoration:none}.module-card.gold .text-link{background:#fff8e9;border-color:#dfbd81;color:#812534}.module-card.green .text-link{background:#edf6f0;border-color:#a5c9b6;color:#245c43}
.home-journal{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.home-journal .card{padding:17px}.home-journal .section-heading{font-size:19px}.home-journal .tag{font-size:9px;padding:5px 7px}.home-journal .mini{font-size:11px}.season-photo{height:120px;object-fit:cover;width:100%;border-radius:9px;margin:12px 0}.season-title{font:normal 23px Georgia,serif;color:#33553a;margin:9px 0}.season-caption{font-size:11px;line-height:1.7;color:var(--muted)}.home-quote{margin-top:19px;border:1px solid #f0e3df;border-radius:10px;background:#fff7f5;padding:14px 19px;display:flex;justify-content:space-between;gap:15px;font:italic 15px Georgia,serif;color:#852234}.home-quote span{font:11px/1.6 system-ui,sans-serif;color:#95828b}.footer{font-size:10px;padding:12px 16px 21px}.btn{border-radius:8px}.btn.secondary{border-color:#dfc4bd}.progress span{background:#aa2544}.field input,.field textarea,.field select{background:#fffefd}.eyebrow{color:#9b4b4a}.grid-main:not(.home-journal){align-items:start}.list-item{min-width:0}.list-item>div:first-child{min-width:0;overflow-wrap:anywhere}.list-item .right .btn{display:block;margin:5px 0 0 auto}.card h2:not(.section-heading){font-family:Georgia,serif;font-weight:normal;font-size:25px}.card:focus-within{scroll-margin-top:85px}
.account-design main{background:#faf8f4f5;border:1px solid #fff9;border-radius:18px;box-shadow:0 22px 80px #21150d35;max-width:1120px;margin:0 auto;padding:34px}.account-design header{padding:8px 0 20px;border-bottom:1px solid #e6dad4}.account-design header img{width:83px;height:83px;object-fit:contain}.account-design h1{font:normal 33px Georgia,serif;color:#6d1c2b}.account-design section{border-radius:13px;border-color:#eaddd6;box-shadow:var(--shadow)}.account-design h2{font:normal 28px Georgia,serif;color:#792033}.account-design button,.account-design .button{background:#842238;border-radius:8px}.account-design #message{background:#f1e7dc;border-radius:10px;padding:15px}.account-design [hidden]{display:none!important}
@media(min-width:1600px){.app-shell{margin-top:12px}.hero{min-height:315px}}
@media(max-width:1150px){body{padding:18px 12px}.sidebar{width:186px;top:18px;height:calc(100vh - 36px)}.nav-item{font-size:11px;padding:12px 9px}.topbar-library{min-width:0;flex:1}.hero h1{font-size:38px}.metric{grid-template-columns:35px 1fr;gap:8px;padding:12px}.metric strong{grid-column:2;grid-row:1}.metric>span:not(.metric-icon){grid-column:2;grid-row:2}.metric-icon{grid-column:1;grid-row:1/3;width:35px;height:43px}.home-journal{grid-template-columns:repeat(2,minmax(0,1fr))}.home-journal .season-card{grid-column:1/-1}.season-photo{height:145px}.hero-official-emblem{height:65px;width:65px}.module-card h3{font-size:20px}}
@media(max-width:800px){body{padding:0;background:#faf9f6}.app-shell{margin:0;border:0;border-radius:0;min-height:100dvh;box-shadow:none}.sidebar{display:none}.topbar{height:72px;padding:0 17px;top:0;background:#fffdfbf5}.topbar-left{gap:10px}.top-mark,.top-mark img{width:47px;height:47px;object-fit:contain}.topbar-library{display:none}.topbar-left #breadcrumb{font:normal 18px Georgia,serif}.topbar-right{gap:7px}.status-pill{font-size:9px;padding:8px}.status-pill .status-dot{width:5px;height:5px;margin-right:3px}.profile-pill{width:33px;height:33px}#screen{padding:16px 16px 28px}.hero{min-height:260px;padding:25px 22px;background-position:center,61% center;border-radius:12px}.hero h1{font-size:37px;max-width:290px;line-height:1.08}.hero p{max-width:245px;font-size:12px;margin-bottom:20px}.hero .eyebrow{font-size:8px}.hero-official-emblem{display:none}.metrics{gap:8px;margin-top:12px}.metric{display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:106px;padding:12px 4px;text-align:center}.metric strong{font-size:26px;order:2}.metric>span:not(.metric-icon){font-size:10px;order:3}.metric-icon{width:33px;height:33px;border-radius:9px;order:1}.metric-icon svg{width:21px;height:21px}.section-heading{font-size:25px}.section-top .eyebrow{display:none}.spaced{margin-top:23px}.grid-3:has(.module-card){display:flex;flex-direction:column;gap:10px}.module-card{display:grid;grid-template-columns:48px minmax(0,1fr) 35px;grid-template-rows:auto auto;column-gap:12px;min-height:98px;padding:16px 12px;align-items:center;border-radius:12px}.module-visual{display:none}.module-card .module-icon{grid-row:1/3;grid-column:1;margin:0;border:0;border-radius:11px;width:48px;height:49px}.module-card h3{grid-column:2;grid-row:1;margin:0 0 4px;font-size:20px}.module-card p{grid-column:2;grid-row:2;font-size:11px;line-height:1.5;margin:0}.module-card .text-link{grid-row:1/3;grid-column:3;font-size:0;padding:0;border:0;border-radius:50%;height:33px;width:33px;min-height:0;margin:0;justify-content:center}.module-card .text-link::after{content:'›';font:26px Georgia,serif;color:white}.module-card.gold .text-link{background:#b98a43}.module-card.green .text-link{background:#1e5c42}.home-journal{display:flex;flex-direction:column;gap:13px}.home-journal .card{padding:18px}.home-journal .section-heading{font-size:22px}.home-journal .season-card{display:block}.season-photo{height:150px}.home-quote{font-size:14px;line-height:1.5;flex-direction:column;gap:5px}.home-quote span{text-align:right}.mobile-nav{display:flex;border-top:1px solid #e9dfdb;background:#fffdfbfa;backdrop-filter:blur(15px);padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #4e2a1c08}.mobile-item{color:#78717a;gap:4px;font-size:9px}.mobile-item svg{width:23px;height:23px}.mobile-item.active{color:#a51f3c;background:transparent}.footer{padding-bottom:93px}.card{padding:18px}.account-design{padding:12px}.account-design main{padding:20px 16px;border-radius:13px}.account-design header img{width:65px;height:65px}.account-design h1{font-size:26px}.account-design section{padding:18px}.account-design h2{font-size:25px}.account-design input{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.metric .metric-icon{color:var(--wine)}.empty .symbol svg{width:34px;height:34px;fill:none;stroke:var(--wine);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Keep mobile destinations visible and easy to tap. */
.learn-card .question-title{font-family:inherit;font-size:23px;font-weight:700;line-height:1.45;letter-spacing:-.4px;margin:25px 0 20px;color:#342a31}
.question-description{border:1px solid #e7d3c4;border-left:4px solid #bc8e43;background:#fbf6ee;border-radius:10px;padding:18px 20px;margin:0 0 24px}
.question-description>span{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#856135}
.question-description p{font-size:21px;line-height:1.55;font-weight:600;color:#342b2d;margin:8px 0 0;overflow-wrap:anywhere}
.answer-instruction{font-size:12px;font-weight:750;color:#77616a;margin:20px 0 10px}
.learn-card .option{display:flex;align-items:center;gap:14px;border:1.5px solid #dfd7d5;border-radius:12px;min-height:66px;padding:12px 16px;margin:10px 0;background:#fff;box-shadow:0 2px 4px #34151b03;color:#40323a;line-height:1.5}
.answer-letter{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;background:#f6efeb;border:1px solid #e6d8d3;border-radius:9px;color:#7d3444;font-weight:800;font-size:14px}
.answer-text{flex:1;font-size:14px;text-align:left;overflow-wrap:anywhere}.answer-text small{display:block;margin-top:4px;font-size:11px;font-weight:800}
.answer-indicator{width:22px;height:22px;flex-shrink:0;border:2px solid #cbbdbf;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:900;line-height:1}
.learn-card .option:hover:not(:disabled){background:#fcf3f4;border-color:#922b42;box-shadow:0 0 0 2px #922b420c}
.learn-card .option:focus-visible{outline:3px solid #b68a43;outline-offset:3px}
.learn-card .option.correct{border-color:#368458;background:#eef8f0;color:#24563a}.option.correct .answer-letter,.option.correct .answer-indicator{background:#286f49;color:white;border-color:#286f49}
.learn-card .option.chosen.wrong{border-color:#b34b52;background:#fff1f0;color:#8b303d}.option.wrong .answer-letter,.option.wrong .answer-indicator{background:#a83c4d;color:white;border-color:#a83c4d}
.learn-card .result-box{margin-top:20px;padding:19px;border:1px solid #ded5c9;line-height:1.8;border-radius:12px}.learn-card .result-box>strong{font-size:16px}.learn-card .result-box.good{border-color:#b5d5be}.learn-card .result-box.bad{border-color:#e8bcc0}
@media(max-width:800px){.learn-card .question-title{font-size:20px;line-height:1.45;margin:23px 0 17px}.question-description{padding:15px 16px;margin-bottom:21px}.question-description p{font-size:19px;line-height:1.5}.learn-card .option{padding:12px;gap:11px;min-height:68px}.answer-text{font-size:14px}.answer-letter{width:32px;height:32px}.answer-indicator{width:20px;height:20px}.learn-card>.row.between{align-items:flex-start;flex-wrap:wrap;gap:9px}}
@media(max-width:800px){
 .mobile-nav{background:#fffdfb;border-top:2px solid #d4b4ac;box-shadow:0 -5px 24px #54222b24;padding:9px 8px calc(9px + env(safe-area-inset-bottom));gap:5px}
 .mobile-item{flex:1;min-width:0;min-height:59px;padding:8px 3px;gap:5px;border:1px solid #eadbd6;border-radius:11px;background:#f5eeea;color:#5c3c42;font-size:11px;font-weight:700;line-height:1.2}
 .mobile-item svg{width:26px;height:26px;stroke-width:2}
 .mobile-item.active{background:#841f2e;border-color:#841f2e;color:white;box-shadow:0 3px 9px #6c1e2e30;font-weight:800}
 .mobile-item:hover:not(.active){background:#eee0d9}
 .mobile-item:focus-visible{outline:3px solid #b88a40;outline-offset:2px}
 .footer{padding-bottom:116px}
}

.metrics:not(.home-metrics) .metric{display:block}.metrics:not(.home-metrics) .metric strong{display:block;margin-top:6px}.metrics:not(.home-metrics) .metric>span{display:block}
a.profile-pill{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}#admin-shortcut{width:auto;border-radius:8px;padding:8px 11px;font-size:11px}.topbar-left{min-width:0}.topbar-left #breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:800px){.topbar-right .status-pill{display:none}.topbar{gap:8px}.topbar-left #breadcrumb{font-size:16px}.topbar-right{flex-shrink:0}#admin-shortcut{padding:8px;font-size:10px}}

/* Mobile navigation belongs to the viewport, outside the scrolling app shell. */
@media(max-width:800px){
  #mobile-nav{position:fixed;inset:auto 0 var(--mobile-viewport-bottom,0px);margin:0;width:auto;z-index:25;transform:translateZ(0);-webkit-backdrop-filter:none;backdrop-filter:none;transition:none}
  .footer{padding-bottom:calc(var(--mobile-nav-height,100px) + 24px)}
}
