:root {
  /* Brand — edit these to match Louth to Mouth exactly */
  --brand: #e8552d;          /* warm appetising orange-red */
  --brand-dark: #c8431f;
  --accent: #49b9c1;         /* Louth to Mouth brand teal */
  --accent-dark: #36959c;
  --ink: #1d1c1a;
  --muted: #6b6862;
  --line: #ece8e1;
  --bg: #faf8f5;
  --panel: #ffffff;
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  --maxw: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand-dark); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--accent);   /* teal brand stripe */
}
.menu-toggle {
  display: none; font-size: 20px; line-height: 1;
  background: none; border: 0; cursor: pointer; color: var(--ink); padding: 4px 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 700; font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; }

/* Layout shell */
.shell { display: grid; grid-template-columns: 290px 1fr; max-width: 1180px; margin: 0 auto; }

/* Sidebar */
.sidebar {
  position: sticky; top: 57px; align-self: start;
  height: calc(100vh - 57px); overflow-y: auto;
  padding: 18px 14px; border-right: 1px solid var(--line);
  background: var(--bg);
}
.search-box input {
  width: 100%; padding: 11px 14px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  outline: none;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(73,185,193,.18); }
.nav { margin: 14px 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500;
}
.nav-item:hover { background: rgba(73,185,193,.10); color: var(--accent-dark); }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-icon { width: 20px; text-align: center; }
.nav-empty { padding: 10px 11px; color: var(--muted); font-size: 13px; }

.help-card {
  margin-top: 10px; padding: 14px; background: var(--panel);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); text-align: center;
}
.help-card p { margin: 0 0 10px; font-weight: 600; font-size: 14px; }
.btn {
  display: block; padding: 9px; border-radius: 9px; text-decoration: none;
  font-weight: 600; font-size: 14px; margin-top: 8px; color: #fff;
}
.btn.whatsapp { background: var(--whatsapp); }
.btn.email { background: var(--ink); }

/* Content */
.content { padding: 32px 40px 80px; min-width: 0; }
.hero h1 { font-size: 30px; margin: 6px 0 8px; }
.hero p { color: var(--muted); max-width: 560px; }

/* Index cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 26px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card-icon { font-size: 24px; }
.card-title { font-weight: 600; }
.card-sum { color: var(--muted); font-size: 13px; }

/* Guide article */
.guide { max-width: var(--maxw); }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.crumb a { color: var(--muted); }
.guide h1 { font-size: 28px; margin: 0 0 8px; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.guide h2 { font-size: 19px; margin: 30px 0 10px; }
.guide p { margin: 12px 0; }
.guide img { max-width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); margin: 6px 0; }
.figure { text-align: center; }

/* Step list */
ol.steps { list-style: none; counter-reset: step; margin: 20px 0; padding: 0; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 4px 0 22px 52px; margin: 0;
  border-left: 2px solid var(--line); margin-left: 16px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: -17px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
ol.steps > li img { display: block; margin-top: 10px; }

.callout {
  background: #fff7f3; border: 1px solid #f4d4c6; border-left: 4px solid var(--brand);
  padding: 12px 16px; border-radius: 10px; margin: 16px 0; color: #7a3a26;
}
code { background: #f1eee9; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.guide-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Mobile */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .sidebar {
    position: fixed; top: 57px; left: 0; bottom: 0; width: 280px; z-index: 25;
    transform: translateX(-100%); transition: transform .2s ease;
    visibility: hidden;
    border-right: 1px solid var(--line);
  }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .content { padding: 22px 20px 70px; }
}
