/* site.css - generated. Base theme matches todayeggrates.in, plus new
   interactive comparison + city-page components. */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,sans-serif;color:#1a1a1a;background:#f5f5f0;line-height:1.6;font-size:15px}
a{color:#0c447c;text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* Header */
.site-header{background:#fff;border-bottom:1px solid #e5e5e0;position:sticky;top:0;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;max-width:1100px;margin:0 auto}
.logo{display:flex;align-items:center;gap:14px;text-decoration:none}
.logo-icon{width:48px;height:48px;border-radius:50%;background:#faeeda;display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0;overflow:hidden}
.logo-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.logo-text{display:block;font-size:22px;font-weight:700;line-height:1.1;color:#222}
.logo-tag{display:block;margin-top:3px;font-size:12px;font-weight:500;color:#666;letter-spacing:.3px}
nav ul{list-style:none;display:flex;gap:18px}
nav a{font-size:13px;color:#555}
nav a.active{color:#1a1a1a;font-weight:500}
.mobile-menu{display:none;font-size:24px;cursor:pointer;background:none;border:none;color:#1a1a1a;line-height:1;padding:8px;border-radius:8px}

/* Live strip */
.live-strip{background:#fff;padding:10px 0;border-bottom:1px solid #e5e5e0}
.live-strip-inner{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.live-badge{background:#eaf3de;color:#3b6d11;font-size:11px;padding:3px 10px;border-radius:8px;font-weight:500}
.live-dot{display:inline-block;width:6px;height:6px;background:#3b6d11;border-radius:50%;margin-right:4px;animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.live-source{font-size:11px;color:#777}

/* Breadcrumb */
.crumbs{font-size:12px;color:#777;padding:12px 0 0}
.crumbs a{color:#0c447c}

/* Hero */
.hero{padding:20px 0 18px}
h1{font-size:26px;font-weight:500;margin-bottom:6px;line-height:1.25}
.hero-sub{font-size:14px;color:#666;margin-bottom:18px}

/* Metric cards */
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:24px}
.metric{background:#fff;border-radius:8px;padding:14px;border:1px solid #e5e5e0}
.metric-label{font-size:11px;color:#777;margin-bottom:4px}
.metric-value{font-size:22px;font-weight:500}
.metric-delta{font-size:11px;color:#3b6d11;margin-top:2px}
.metric-delta.down{color:#a32d2d}
.metric-sub{font-size:11px;color:#777;margin-top:2px}

/* Section */
section{margin-bottom:28px}
h2{font-size:20px;font-weight:500;margin-bottom:6px}
h3{font-size:16px;font-weight:600;margin-bottom:6px}
.section-sub{font-size:13px;color:#666;margin-bottom:12px}
.section-card{background:#fff;border-radius:12px;border:1px solid #e5e5e0;overflow:hidden}

/* Table */
.table-wrapper{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:13px}
.table-wrapper table{min-width:720px}
thead tr{background:#f5f5f0;font-weight:500}
th{text-align:left;padding:11px 14px;font-weight:500}
td{padding:10px 14px;border-top:1px solid #e5e5e0}
th.num,td.num{text-align:right}
tbody tr:hover{background:#fafaf5}
.city-name{color:#1a1a1a;font-weight:500}
.city-name a{color:#0c447c}
.price{font-weight:500}
.note{font-size:11px;color:#777;margin-top:8px;padding:0 4px}
.badge-necc{font-size:10px;background:#eaf3de;color:#3b6d11;padding:1px 6px;border-radius:4px;margin-left:6px;vertical-align:middle}
.badge-prev{font-size:10px;background:#f0f0ea;color:#666;padding:1px 6px;border-radius:4px;margin-left:6px;vertical-align:middle}
.up{color:#3b6d11}.down{color:#a32d2d}.flat{color:#999}

/* State grid */
.state-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.state-tile{background:#fff;border:1px solid #e5e5e0;border-radius:8px;padding:11px 14px;display:flex;justify-content:space-between;align-items:center;font-size:13px;transition:border-color .15s}
.state-tile:hover{border-color:#c0c0b8}
.state-name{color:#1a1a1a}
.state-price{font-weight:500;color:#1a1a1a}

/* City quicklinks */
.city-links{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.city-link{background:#fff;border:1px solid #e5e5e0;border-radius:8px;padding:10px 12px;font-size:13px;display:flex;justify-content:space-between;align-items:center}
.city-link:hover{border-color:#c0c0b8;text-decoration:none}
.city-link .cl-name{color:#1a1a1a;font-weight:500}
.city-link .cl-price{color:#3b6d11;font-weight:600;font-size:12px}

/* ---- Interactive: "this day across the years" ---- */
.compare{background:#fff;border:1px solid #e5e5e0;border-radius:12px;overflow:hidden}
.compare-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:16px 16px 6px}
.compare-head .ch-title{font-size:16px;font-weight:600}
.compare-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.control{display:flex;align-items:center;gap:6px;font-size:12px;color:#666}
select.eg-select{font-size:13px;padding:7px 10px;border:1px solid #d9d9d2;border-radius:8px;background:#fff;color:#1a1a1a;cursor:pointer}
.seg{display:inline-flex;background:#f0f0ea;border-radius:9px;padding:3px;gap:2px}
.seg button{border:0;background:transparent;font-size:12px;padding:6px 11px;border-radius:7px;cursor:pointer;color:#555;font-weight:500}
.seg button.on{background:#fff;color:#1a1a1a;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.chart-wrap{position:relative;height:300px;padding:8px 12px 4px}
@media(max-width:600px){.chart-wrap{height:260px}}
.compare-callout{margin:4px 16px 14px;padding:11px 13px;background:#faf7ef;border:1px solid #efe7d3;border-radius:9px;font-size:13px;color:#444;min-height:20px}
.compare-callout b{color:#1a1a1a}
.cmp-pill{display:inline-block;font-size:11px;font-weight:600;padding:1px 7px;border-radius:6px;margin-left:6px}
.cmp-pill.up{background:#eaf3de;color:#3b6d11}
.cmp-pill.down{background:#fbe6e6;color:#a32d2d}
.cmp-pill.flat{background:#f0f0ea;color:#777}
.yeartable td,.yeartable th{font-size:12.5px}
.yeartable tbody tr{cursor:pointer}
.yeartable tbody tr.sel{background:#faf7ef}

/* Trend mini-chart on city pages */
.trend-wrap{position:relative;height:240px;padding:8px 12px}

/* About / features / faq reuse from base */
.about-content p{margin-bottom:12px;color:#333}
.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}
.feature{background:#fff;border:1px solid #e5e5e0;border-radius:8px;padding:14px}
.feature-title{font-size:14px;font-weight:500;margin-bottom:6px}
.feature-desc{font-size:12px;color:#666;line-height:1.6}
details{background:#fff;border:1px solid #e5e5e0;border-radius:8px;padding:14px 16px;margin-bottom:8px}
summary{font-size:14px;font-weight:500;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:18px;color:#777}
details[open] summary::after{content:"\2212"}
details p{font-size:13px;color:#555;margin-top:10px;line-height:1.7}

/* Footer */
footer{background:#fff;border-top:1px solid #e5e5e0;padding:24px 0;margin-top:32px}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:20px}
.footer-col h4{font-size:13px;font-weight:500;margin-bottom:10px}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:4px}
.footer-col a{font-size:12px;color:#666}
.footer-bottom{border-top:1px solid #e5e5e0;padding-top:14px;font-size:11px;color:#777;text-align:center}

/* Responsive */
@media (max-width:760px){
  .metrics{grid-template-columns:repeat(2,1fr)}
  .state-grid{grid-template-columns:repeat(2,1fr)}
  .city-links{grid-template-columns:repeat(2,1fr)}
  .feature-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  nav ul{display:none;position:absolute;top:100%;left:12px;right:12px;background:#fff;border:1px solid #e5e5e0;border-radius:12px;padding:8px;box-shadow:0 12px 30px rgba(0,0,0,.10);z-index:120}
  nav ul.open{display:block}
  nav ul li{border-bottom:1px solid #f0f0ea}
  nav ul li:last-child{border-bottom:0}
  nav a{display:block;padding:12px 10px;font-size:14px;color:#1a1a1a}
  .mobile-menu{display:flex;align-items:center;justify-content:center;margin-left:8px}
  h1{font-size:22px}h2{font-size:18px}
  th,td{padding:8px 10px;font-size:12px}
  .container{padding:0 12px}
  .table-wrapper::after{content:'Swipe left/right to view full table';display:block;padding:8px 10px;font-size:11px;color:#777;background:#fafaf5;border-top:1px solid #e5e5e0}
  th:first-child,td:first-child{position:sticky;left:0;z-index:1;background:#fff;min-width:150px;box-shadow:1px 0 0 #e5e5e0}
  thead th:first-child{background:#f5f5f0;z-index:2}
  th,td{white-space:nowrap}
}
@media (max-width:480px){
  .metrics{grid-template-columns:1fr}
  .state-grid,.city-links{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}

/* --- egg-type / poultry grid --- */
.type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.type-tile{background:#fff;border:1px solid #e5e5e0;border-radius:8px;padding:13px 14px;display:flex;flex-direction:column;gap:4px;transition:border-color .15s}
.type-tile:hover{border-color:#c0c0b8;text-decoration:none}
.type-tile .tt-name{color:#1a1a1a;font-weight:600;font-size:13px}
.type-tile .tt-go{color:#3b6d11;font-weight:500;font-size:12px}

/* --- day-wise change colours --- */
.delta-up{color:#3b6d11;font-weight:600}
.delta-down{color:#a32d2d;font-weight:600}
.delta-flat{color:#777}

/* --- footer inline link row --- */
.footer-links-row{font-size:12px;color:#555;line-height:1.9;margin-bottom:18px}
.footer-links-row a{color:#0c447c}

/* about content h3 */
.about-content h3{font-size:16px;font-weight:600;margin:18px 0 6px;color:#222}

@media(max-width:760px){.type-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.type-grid{grid-template-columns:1fr}}
