/* Kkinidam Concept 3 — High-Trust Discovery / Explore Feed (Ice Slate + Deep Navy + Emerald) */
body[data-screen=explore],body[data-screen=home]{
 background:#f6f8fb;
}
body[data-screen=explore] .titlebar,body[data-screen=home] .titlebar{padding:16px 0 12px;border-top:0}
body[data-screen=explore] .titlebar h1,body[data-screen=home] .titlebar h1{font-size:22px;font-weight:850;letter-spacing:-.04em;line-height:1.25;color:#121b2b}
body[data-screen=explore] .titlebar small,body[data-screen=home] .titlebar small{font-size:12.5px;font-weight:450;line-height:1.5;color:#64748b}
body[data-screen=explore] #notice:empty,body[data-screen=home] #notice:empty{display:none}
.content-home{display:block}

/* Clean Elevated Card Surface */
.glass-card{
 background:#ffffff;
 border:1px solid rgba(18,27,43,.07);
 box-shadow:0 4px 16px -8px rgba(18,27,43,.08);
}

/* 1. Editorial Hero Banner */
.hero-banner{
 position:relative;
 border-radius:22px;
 overflow:hidden;
 min-height:268px;
 display:flex;
 flex-direction:column;
 justify-content:flex-end;
 background:#13223d;
 border:1px solid rgba(18,27,43,.08);
 box-shadow:0 14px 32px -12px rgba(19,34,61,.28);
}
.hero-media{position:absolute;inset:0}
.hero-media .dish-photo{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:0}
.hero-media .photo-caption{
 position:absolute;right:12px;top:12px;bottom:auto;
 padding:3px 7px;border-radius:7px;
 background:rgba(18,27,43,.56);backdrop-filter:blur(8px);
 color:rgba(255,255,255,.92);font-size:10px;pointer-events:none;
}
.hero-scrim{
 position:absolute;inset:0;
 background:linear-gradient(180deg,rgba(15,23,42,.12) 0%,rgba(15,23,42,.26) 45%,rgba(15,23,42,.86) 100%);
 pointer-events:none;
}
.hero-overlay{position:relative;z-index:1;padding:18px 18px 22px;display:grid;gap:12px;color:#fff}
.hero-pill{
 justify-self:start;display:inline-flex;align-items:center;
 padding:5px 11px;border-radius:999px;
 background:rgba(15,157,122,.28);backdrop-filter:blur(12px);
 border:1px solid rgba(110,231,183,.45);
 color:#ecfdf5;font-size:11.5px;font-weight:750;letter-spacing:-.01em;
}
.hero-kicker{display:block;font-size:11.5px;font-weight:550;color:rgba(255,255,255,.82);margin-bottom:3px}
.hero-text h2{margin:0;font-size:24px;font-weight:850;line-height:1.22;letter-spacing:-.04em;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.25)}
.hero-cta-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:2px}
.hero-quick-btn{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:44px;padding:9px 14px;border-radius:12px;
 background:#ffffff;border:1px solid transparent;
 color:#13223d;font-size:13.5px;font-weight:800;
 box-shadow:0 6px 16px rgba(0,0,0,.22);
}
.hero-quick-btn svg{width:17px;height:17px;flex:none}
.hero-detail-btn{
 min-height:44px;padding:9px 13px;border-radius:12px;
 background:rgba(255,255,255,.16);backdrop-filter:blur(12px);
 border:1px solid rgba(255,255,255,.36);
 color:#fff;font-size:12.5px;font-weight:700;white-space:nowrap;
}

/* 2. Smart Mini Budget Dashboard (Deep Navy Accent Card) */
.mini-dashboard{
 position:relative;z-index:2;
 margin:-14px 6px 0;padding:15px 16px;border-radius:18px;
 background:#ffffff;border:1px solid #dbe4ef;
 box-shadow:0 8px 24px -10px rgba(18,27,43,.14);
}
.dash-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.dash-badge{
 display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;
 background:#eef3f9;color:#1b2d4f;font-size:11px;font-weight:750;cursor:default;
}
.dash-link{
 background:transparent;border:0;padding:4px 0;min-height:30px;
 color:#475569;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:3px;
}
.dash-summary{margin:0;font-size:14.5px;line-height:1.45;color:#121b2b;font-weight:600;letter-spacing:-.02em}
.dash-summary strong{font-weight:850;color:#121b2b}
.dash-summary em{font-style:normal;font-weight:850;color:#0f9d7a}
.mini-dashboard.over .dash-summary em{color:#dc2626}
.dash-progress{height:7px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin:10px 0 8px}
.dash-progress-fill{display:block;height:100%;border-radius:999px;background:#0f9d7a;transition:width .35s ease}
.mini-dashboard.over .dash-progress-fill{background:#dc2626}
.dash-meta{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:#64748b}
.dash-meta span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}

/* Section Headers */
.home-section{margin:28px 0 0}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.section-eyebrow{color:#0f9d7a;font-size:11.5px;font-weight:750;display:block;line-height:1.35}
.section-heading h2{font-size:19px;letter-spacing:-.035em;margin:3px 0 0;line-height:1.3;font-weight:850;color:#121b2b}
.section-count{font-size:11px;font-weight:700;color:#475569;background:#eaeff5;padding:4px 9px;border:0;border-radius:999px;white-space:nowrap;cursor:default}
.section-description{font-size:12.5px;line-height:1.55;color:#64748b;margin:8px 0 12px}
.photo-caption{
 position:absolute;right:7px;bottom:7px;padding:2px 6px;border-radius:6px;
 background:rgba(15,23,42,.68);color:#fff;font-size:9.5px;font-weight:500;line-height:1.35;pointer-events:none;
}

/* 3. Theme Curation (Uniform 4:3 Cards) */
.topic-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0 0}
.theme-carousel{
 display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
 padding:4px 2px 12px;margin:0 -2px;scrollbar-width:none;
}
.theme-carousel::-webkit-scrollbar{display:none}
.theme-card{
 flex:0 0 162px;scroll-snap-align:start;
 display:flex;flex-direction:column;text-align:left;padding:0;
 border-radius:16px;overflow:hidden;background:#ffffff;
 border:1px solid #e6ecf3;box-shadow:0 4px 14px -6px rgba(18,27,43,.08);color:#121b2b;
}
.theme-photo{position:relative;display:block;width:100%;aspect-ratio:4/3;overflow:hidden;background:#f1f5f9}
.theme-photo .dish-photo{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:0}
.theme-tag{
 position:absolute;left:8px;top:8px;padding:3px 8px;border-radius:999px;
 background:rgba(18,27,43,.74);backdrop-filter:blur(8px);
 color:#ffffff;font-size:10px;font-weight:750;
}
.theme-caption{padding:10px 11px 12px;display:block}
.theme-caption b{display:block;font-size:14px;font-weight:750;line-height:1.35;overflow-wrap:anywhere;color:#121b2b}
.theme-caption small{display:block;font-size:11px;color:#64748b;margin-top:3px;line-height:1.4}

/* 4. Short-form Video Section */
.shorts-refresh-btn{
 min-height:30px;padding:4px 10px;border-radius:999px;
 background:#ffffff;border:1px solid #dbe4ef;color:#334155;font-size:11px;font-weight:700;white-space:nowrap;
}
.shorts-refresh-btn:disabled{opacity:.65;cursor:wait}
.shorts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.shorts-grid .discovery-card{min-width:0;display:flex;flex-direction:column}
.shorts-thumb{
 position:relative;width:100%;aspect-ratio:4/5;
 border-radius:16px;overflow:hidden;background:#13223d;
 border:1px solid #e6ecf3;box-shadow:0 6px 18px -8px rgba(18,27,43,.14);
}
.shorts-open{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent}
.shorts-open .dish-photo{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:0}
.shorts-open .photo-caption{left:8px;right:auto;top:auto;bottom:10px}
.shorts-badge{
 position:absolute;left:8px;top:8px;z-index:2;padding:3px 8px;border-radius:999px;
 background:rgba(18,27,43,.74);backdrop-filter:blur(8px);
 border:1px solid rgba(255,255,255,.2);color:#fff;font-size:10px;font-weight:750;
}
.shorts-ingredients{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 5px}
.shorts-ingredients span{padding:2px 6px;border-radius:6px;background:#eef3f9;color:#334155;font-size:10.5px;font-weight:650;line-height:1.35}
.shorts-analyzer{margin:18px 0 0;padding:16px;border-radius:18px}
.analyzer-head{display:grid;gap:6px;justify-items:start}
.analyzer-head b{font-size:14.5px;font-weight:800;color:#121b2b}
.analyzer-desc{font-size:12px;line-height:1.55;color:#64748b;margin:5px 0 10px}
.analyzer-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.analyzer-form input{min-height:42px;padding:8px 12px;border-radius:11px;border:1px solid #cbd5e1;background:#ffffff;font-size:13px}
.analyzer-form button{min-height:42px;padding:8px 14px;border-radius:11px;background:#1b2d4f;color:#fff;font-size:13px;font-weight:750;white-space:nowrap}
.analyzer-status{margin:10px 0 0;font-size:12px;line-height:1.55;color:#475569}
.analyzer-result{margin-top:12px;padding-top:12px;border-top:1px solid #e6ecf3;display:grid;gap:7px}
.analyzer-result b{font-size:14.5px;font-weight:800;color:#121b2b}
.analyzer-result small{font-size:12px;color:#64748b}
.analyzer-add-btn{min-height:44px;border-radius:12px;background:#1b2d4f;color:#fff;font-size:13.5px;font-weight:750;margin-top:4px}
.shorts-play{
 position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
 width:40px;height:40px;border-radius:50%;display:grid;place-items:center;padding-left:3px;
 background:rgba(18,27,43,.62);backdrop-filter:blur(8px);
 border:1px solid rgba(255,255,255,.55);color:#fff;font-size:14px;
}
.shorts-cart-btn{
 position:absolute;right:8px;bottom:8px;z-index:2;
 width:38px;height:38px;padding:0;border-radius:50%;display:grid;place-items:center;
 background:#1b2d4f;border:1.5px solid rgba(255,255,255,.85);color:#fff;
 box-shadow:0 4px 12px rgba(18,27,43,.3);
}
.shorts-cart-btn svg{width:17px;height:17px}
.shorts-copy{padding:8px 2px 0}
.discovery-name{padding:2px 0;background:transparent;color:#121b2b;font-size:14px;min-height:34px;text-align:left;border-radius:0;width:100%;display:flex;justify-content:space-between;align-items:center;font-weight:750;line-height:1.35}
.discovery-name span{color:#94a3b8;font-size:16px}
.video-channel{font-size:11px;color:#64748b;margin:1px 0 2px;line-height:1.4;overflow-wrap:anywhere}
.video-link{display:inline-flex;align-items:center;gap:4px;min-height:32px;font-size:11.5px;color:#1b2d4f;text-decoration:none;font-weight:700;width:fit-content}
.reference-note{font-size:11.5px;line-height:1.6;background:#ffffff;border:1px solid #e6ecf3;border-radius:12px;color:#64748b;padding:12px 14px;margin:14px 0 0}

/* 5. Uniform 2x2 Social Proof Gallery */
.masonry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.masonry-card{margin:0;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;height:100%;min-width:0}
.masonry-btn{display:flex;flex-direction:column;flex:1;width:100%;padding:0;border:0;border-radius:0;background:transparent;text-align:left;color:#121b2b}
.masonry-photo{position:relative;display:block;width:100%;aspect-ratio:4/3;flex:none;overflow:hidden;background:#f1f5f9}
.masonry-photo .dish-photo{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:0}
.masonry-tag{
 position:absolute;left:8px;top:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 padding:3px 8px;border-radius:999px;background:rgba(18,27,43,.72);backdrop-filter:blur(8px);
 color:#fff;font-size:10px;font-weight:700;
}
.masonry-body{display:flex;flex-direction:column;flex:1;padding:11px 12px 9px}
.masonry-body b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;font-weight:750;line-height:1.35;letter-spacing:-.02em;min-height:2.7em}
.masonry-chips{display:flex;flex-wrap:wrap;gap:4px;margin:7px 0 6px;align-content:flex-start}
.masonry-chips span{padding:2px 6px;border-radius:6px;background:#eef3f9;color:#334155;font-size:10px;font-weight:650;line-height:1.35}
.masonry-price{display:block;margin-top:auto;font-size:11.5px;font-weight:800;color:#1b2d4f;font-variant-numeric:tabular-nums}
.masonry-body small{display:block;margin-top:2px;font-size:10.5px;color:#64748b}
.masonry-foot{padding:0 10px 10px}
.board-apply-btn{
 width:100%;min-height:34px;padding:5px 10px;border-radius:10px;
 background:#eef3f9;border:1px solid #dbe4ef;color:#1b2d4f;font-size:11.5px;font-weight:750;
}

/* Editorial & Discover details */
.home-editorial{margin:28px 0 10px;padding:10px 16px;border-radius:16px;color:#64748b;font-size:12.5px;line-height:1.7}
.home-editorial summary{display:flex;justify-content:space-between;align-items:center;min-height:44px;list-style:none;font-weight:700;font-size:13.5px;color:#121b2b}
.home-editorial summary::-webkit-details-marker{display:none}
.home-editorial p,.home-editorial dd{font-size:12.5px;color:#64748b;line-height:1.7}
.home-editorial dl{margin:12px 0}.home-editorial dd{margin:0 0 10px}
.home-editorial a{display:inline-flex;align-items:center;min-height:40px;color:#1b2d4f;font-weight:700}
.home-empty,.discover-add{border-radius:18px;padding:20px 18px}
.home-empty.compact{margin-top:14px;padding:18px 16px}
.home-empty h2,.discover-add h2{font-size:18px}
.discover-add{margin:20px 0;display:grid;gap:12px;background:#ffffff;border:1px solid #e6ecf3;box-shadow:0 4px 16px -8px rgba(18,27,43,.08)}
.discover-add p{font-size:13.5px;line-height:1.65;color:#64748b;margin:0}
.discover-add label{font-size:13.5px;font-weight:700}
.discover-add select{width:100%;min-width:0;max-width:100%;min-height:44px;background:#fff;border:1px solid #cbd5e1;border-radius:11px;padding:9px;font-size:15px}
.discover-add button{min-height:46px;background:#1b2d4f;color:#fff;border-radius:12px;font-weight:750}
.discover-add small{font-size:12px;line-height:1.6}
.recipe-reference{padding:16px;margin:18px 0 22px;border:1px solid #e6ecf3;border-radius:16px;background:#ffffff}
.recipe-reference h3{font-size:15px;line-height:1.55;margin:6px 0}
.recipe-reference p{font-size:12px;color:#64748b}
.recipe-reference small{display:block;line-height:1.6;font-size:11.5px;color:#64748b;border-top:1px solid #eef2f6;padding-top:10px;margin-top:8px}
body[data-screen=discover] .recipe>.dish-photo{width:100%;max-height:280px;object-fit:cover;border-radius:18px;display:block}

@media(min-width:500px){
 .hero-banner{min-height:310px}
 .theme-card{flex-basis:172px}
}
@media(max-width:359px){
 .hero-banner{min-height:248px}
 .hero-overlay{padding:14px 14px 18px}
 .hero-text h2{font-size:21px}
 .hero-cta-row{grid-template-columns:1fr}
 .mini-dashboard{margin:-10px 2px 0;padding:13px}
 .theme-card{flex-basis:144px}
 .shorts-grid{gap:14px 10px}
 .masonry-grid{gap:10px}
 .masonry-body{padding:10px}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover){
 .theme-card,.masonry-card,.shorts-thumb{transition:transform .16s ease,box-shadow .16s ease}
 .theme-card:hover,.masonry-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px -10px rgba(18,27,43,.14)}
 .shorts-cart-btn:hover{transform:scale(1.06)}
}
