/* ── Sticky table of contents ── */
.page-toc{
  position:sticky;
  top:80px;
  margin:0 auto 1.5rem;
  max-width:760px;
  padding:1rem 1.1rem;
  background:#fff;
  border:1px solid #e7dfd1;
  border-radius:14px;
  box-shadow:0 4px 14px rgba(17,56,46,.06);
  font-size:14px;
  z-index:5;
}
.page-toc-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding-bottom:.7rem;
  margin-bottom:.4rem;
  border-bottom:1px solid #efe7d4;
}
.page-toc-toggle{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:6px;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:default;
  appearance:none;
  -webkit-appearance:none;
}
.page-toc-toggle:focus-visible{
  outline:2px solid rgba(0,106,68,.48);
  outline-offset:4px;
}
.page-toc-title{
  font:600 11.5px/1 system-ui,-apple-system,Segoe UI,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#1A3A2A;
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.page-toc-title::before{
  content:"";
  display:inline-block;
  width:14px;
  height:14px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006A44' stroke-width='2.4' stroke-linecap='round'><line x1='8' y1='6' x2='21' y2='6'/><line x1='8' y1='12' x2='21' y2='12'/><line x1='8' y1='18' x2='21' y2='18'/><circle cx='4' cy='6' r='1.4' fill='%23006A44' stroke='none'/><circle cx='4' cy='12' r='1.4' fill='%23006A44' stroke='none'/><circle cx='4' cy='18' r='1.4' fill='%23006A44' stroke='none'/></svg>") center/contain no-repeat;
}
.page-toc-meta{
  font:500 11px/1 system-ui,-apple-system,Segoe UI,sans-serif;
  color:#526058;
  white-space:nowrap;
}
.page-toc-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:1px;
  max-height:calc(100vh - 220px);
  overflow-y:auto;
  scrollbar-width:thin;
}
.page-toc-list li{margin:0;padding:0}
.page-toc-list a{
  display:block;
  padding:6px 10px;
  border-radius:6px;
  color:#3d4e44;
  text-decoration:none;
  line-height:1.4;
  border-left:2px solid transparent;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.page-toc-list a:hover{background:#f5efde;color:#1A3A2A}
.page-toc-list a.active{
  background:rgba(0,106,68,.08);
  color:#006A44;
  border-left-color:#006A44;
  font-weight:600;
}
.page-toc-list::-webkit-scrollbar{width:6px}
.page-toc-list::-webkit-scrollbar-thumb{background:#e0d7c0;border-radius:3px}
.page-toc:not(.faq-toc) .page-toc-list{gap:.4rem}
.page-toc:not(.faq-toc) .page-toc-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.5rem .7rem;
  background:#fffdf8;
  border:1px solid rgba(26,58,42,.14);
  border-left:3px solid rgba(201,168,76,.72);
  border-radius:8px;
  color:#344b40;
}
.page-toc:not(.faq-toc) .page-toc-list a:hover,
.page-toc:not(.faq-toc) .page-toc-list a:focus-visible{
  background:#fff8e8;
  border-color:rgba(201,168,76,.58);
  border-left-color:#c9a84c;
  color:#1a3a2a;
  outline:none;
}
.page-toc:not(.faq-toc) .page-toc-list a.active{
  background:rgba(0,106,68,.08);
  border-color:rgba(0,106,68,.22);
  border-left-color:#006a44;
  color:#006a44;
}

@media (min-width:901px){
  .page-toc-toggle{pointer-events:none}
  .page-toc:not(.faq-toc) .page-toc-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.45rem .65rem;
  }
}

/* Mobile: collapsible, top-of-article */
@media (max-width:900px){
  .page-toc-header{flex-wrap:wrap;align-items:flex-start}
  .page-toc-meta{white-space:normal;line-height:1.5;min-width:0;max-width:100%;overflow-wrap:anywhere}
  .page-toc{position:static;top:auto;padding:.85rem 1rem}
  .page-toc-toggle{
    cursor:pointer;
    width:100%;
    justify-content:space-between;
  }
  .page-toc-toggle::after{
    content:"";
    width:10px;height:10px;
    border-right:2px solid #4a5a50;
    border-bottom:2px solid #4a5a50;
    transform:rotate(45deg);
    transition:transform .2s ease;
    margin-right:2px;
  }
  .page-toc.expanded .page-toc-toggle::after{transform:rotate(-135deg);margin-bottom:-4px}
  .page-toc:not(.expanded) .page-toc-list{max-height:0;overflow:hidden;opacity:0;transition:max-height .25s ease,opacity .15s ease}
  .page-toc.expanded .page-toc-list{max-height:60vh;opacity:1;margin-top:.5rem;padding-top:.6rem;border-top:1px solid #efe7d4;transition:max-height .25s ease,opacity .25s ease}
}

/* ── Reading progress bar at top of viewport ── */
.reading-progress{
  position:fixed;
  top:0;left:0;right:0;
  height:3px;
  background:transparent;
  z-index:9999;
  pointer-events:none;
}
.reading-progress-bar{
  height:100%;
  width:0;
  background:linear-gradient(to right,#FDB913 0%,#006A44 50%,#C1272D 100%);
  transition:width .08s linear;
  will-change:width;
}

/* ── Back to top floating button ── */
.back-to-top{
  position:fixed;
  bottom:24px;
  right:24px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:#006A44;
  color:#fff;
  border:2px solid #fff;
  box-shadow:0 3px 14px rgba(0,0,0,.32);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s ease,visibility .2s ease,transform .2s ease,background .15s ease;
  z-index:998;
}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover,.back-to-top:focus-visible{background:#0e9152;outline:none;transform:translateY(-2px) scale(1.05);box-shadow:0 6px 18px rgba(0,0,0,.4)}
.back-to-top svg{display:block;width:22px;height:22px}
@media (max-width:640px){
  .back-to-top{bottom:16px;right:16px;width:42px;height:42px}
  .back-to-top svg{width:20px;height:20px}
}

/* ── Visual upgrade for the existing at-a-glance boxes ──
   Targets all at-a-glance class variants used across pages.
   The card stays a single SEO-friendly block of plain text, just better-looking. */
.city-quick-facts,
.quick-facts-box{
  margin:0 0 2rem 0 !important;
  padding:1.1rem 1.25rem !important;
  background:linear-gradient(180deg,#fffaee 0%,#fff7e3 100%) !important;
  border:1px solid #e8dec1 !important;
  border-left:4px solid #006A44 !important;
  border-radius:12px !important;
  box-shadow:0 4px 14px rgba(17,56,46,.06) !important;
  list-style:none;
}
.city-quick-facts h3,
.quick-facts-box h3{
  margin:0 0 .85rem !important;
  padding:0 !important;
  font:700 11.5px/1 system-ui,-apple-system,Segoe UI,sans-serif !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  color:#006A44 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:.5rem !important;
  border:0 !important;
}
.city-quick-facts h3::before,
.quick-facts-box h3::before{
  content:"";
  display:inline-block;
  width:14px;height:14px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006A44' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='8 12 11 15 16 9'/></svg>") center/contain no-repeat;
}
.city-quick-facts .fact-row,
.quick-facts-box ul{
  list-style:none;
  padding:0;
  margin:0;
}
.quick-facts-box ul{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  column-gap:1.75rem !important;
  row-gap:0 !important;
}
.city-quick-facts .fact-row{
  display:grid !important;
  grid-template-columns:1fr auto !important;
  gap:1rem !important;
  align-items:baseline !important;
  padding:.45rem 0 !important;
  border-bottom:1px dashed rgba(0,0,0,.08) !important;
  font-size:14px;
}
.city-quick-facts .fact-row:last-child{border-bottom:0 !important}
.city-quick-facts .fact-row span:first-child,
.city-quick-facts .fact-row > span{
  color:#5a6a60 !important;
  opacity:1 !important;
  font-weight:500 !important;
}
.city-quick-facts .fact-row strong{color:#1A3A2A !important;font-weight:700 !important}
/* Visaginas-style .quick-facts-box uses <li> rows */
.quick-facts-box li{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:.75rem !important;
  align-items:baseline !important;
  min-width:0;
  padding:.6rem 0 !important;
  border-bottom:1px dashed rgba(0,0,0,.08) !important;
  font-size:14px !important;
  list-style:none;
}
.quick-facts-box li:nth-last-child(-n+2){border-bottom:0 !important}
.quick-facts-box li strong{
  min-width:0;
  color:#5a6a60 !important;
  font-weight:500 !important;
  line-height:1.45;
}
.quick-facts-box li span{
  color:#1A3A2A;
  font-weight:700;
  line-height:1.45;
  text-align:right;
}
@media (max-width:680px){
  .quick-facts-box ul{grid-template-columns:1fr !important}
  .quick-facts-box li:nth-last-child(2){border-bottom:1px dashed rgba(0,0,0,.08) !important}
  .quick-facts-box li:last-child{border-bottom:0 !important}
}

/* ── Dish-page bottom strip: optimised thumbnails replace the fork-and-knife emoji ── */
.related-dish-thumb{
  display:block;
  width:100%;
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:8px;
  background:#f3eecc;
  margin-bottom:.5rem;
}

/* Smooth-scroll fallback for browsers without scroll-behavior */
html{scroll-behavior:smooth}
/* Anchor offset so jumping doesn't hide the heading under the header */
.article-content h2{scroll-margin-top:80px}
.economy-page h2[id]{scroll-margin-top:96px}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reading-progress-bar,.back-to-top,.page-toc-list,.page-toc-toggle::after{transition:none!important}
}
