/* Judycipes — "Diner Classic" (retro blue & neon) */

:root {
  --accent: #1f7a8c;
  --radius: 10px;
  --cream: #f7f3e9;
  --card: #fcfaf3;
  --ink: #25323a;
  --ink-deep: #14333f;
  --line: #1c3540;
  --neon: #5fd0d0;
  --muted: #5e6e75;
  --faint: #9aabb1;
  --kicker: #7d949b;
  --star: #d9533c;
  --hair: #e4e9e6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Archivo, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }
::placeholder { color: var(--faint); }
a { color: var(--accent); text-decoration: none; }
.slab { font-family: 'Alfa Slab One', serif; font-weight: 400; }

/* ── Tip link ── */
.tip-row {
  display: flex; justify-content: flex-end;
  padding: 6px 36px 0; background: var(--cream);
}
.tip-link {
  display: block; text-align: right; line-height: 1.45;
  font-size: 14px; font-weight: 700; color: var(--muted);
  padding: 2px 4px;
}
.tip-link:hover { color: var(--accent); }

/* ── Top nav ── */
.topnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 14px 36px;
  background: var(--ink-deep); color: #f5efe2;
  border-bottom: 4px solid var(--accent);
}
.topnav .brand {
  font-family: 'Alfa Slab One', serif; font-size: 23px; color: #f5efe2;
  text-shadow: 0 0 13px rgba(95,208,208,.5);
}
.topnav .links { display: flex; gap: 4px; margin-left: 6px; }
.topnav .links a {
  font-size: 15px; font-weight: 700; padding: 8px 12px;
  border-radius: 8px 8px 0 0; color: #9fb6bd;
  border-bottom: 3px solid transparent;
}
.topnav .links a.active { color: #fff; border-bottom-color: var(--neon); }
.topnav .spacer { flex: 1; }
.btn-add {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-weight: 800; font-size: 14.5px; padding: 10px 18px; border-radius: 10px;
}
.nav-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 2px solid var(--neon);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Alfa Slab One', serif; font-size: 15px; overflow: hidden;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-signin { color: #9fb6bd; font-weight: 700; font-size: 15px; }

.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu .menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  min-width: 190px; background: #fff; border: 2px solid var(--line);
  border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(20,51,63,.18);
}
.nav-menu .menu-name {
  padding: 11px 16px 9px; font-size: 13px; font-weight: 800;
  color: var(--kicker); border-bottom: 1px solid var(--hair);
}
.nav-menu .menu a {
  display: block; padding: 11px 16px; font-size: 14.5px; font-weight: 700;
  color: var(--ink);
}
.nav-menu .menu a:hover { background: #eef4f5; color: var(--accent); }

/* ── Layout ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 46px 36px 72px; }
.wrap-narrow { max-width: 840px; margin: 0 auto; padding: 30px 36px 72px; }
.wrap-shopping { max-width: 820px; margin: 0 auto; padding: 40px 36px 72px; }

.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
h1.page-title {
  font-family: 'Alfa Slab One', serif; font-weight: 400;
  font-size: 42px; line-height: 1.1; margin: 0 0 10px; color: var(--ink-deep);
  text-shadow: 0 0 18px rgba(95,208,208,.22);
}
.page-sub { font-size: 17px; color: var(--muted); margin: 0; }

/* ── Search & filters ── */
.searchbox { position: relative; max-width: 620px; margin: 0 auto 24px; }
.searchbox .glyph {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 19px; color: var(--faint);
}
.searchbox input {
  width: 100%; padding: 15px 18px 15px 47px; font-size: 16.5px;
  border: 2.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); outline: none;
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 8px; }
.chips .label { font-size: 13.5px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.chip {
  cursor: pointer; border: 2px solid #d3e0e3; font-size: 13.5px; font-weight: 700;
  padding: 7px 15px; border-radius: 20px; background: #fff; color: #3c4951;
  display: inline-block;
}
.chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.chip-more {
  cursor: pointer; border: 2px dashed #b9cdd2; background: transparent;
  color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 7px 15px; border-radius: 20px;
}
.chip-more:hover { border-color: var(--accent); color: var(--accent); }
.more-tags-panel {
  margin: 4px 0 8px; padding: 14px 16px; background: #fff;
  border: 2px solid var(--line); border-radius: 12px;
}
.tag-search-input {
  width: 100%; max-width: 320px; padding: 9px 13px; font-size: 14px;
  border: 2px solid #cfdce0; border-radius: 9px; outline: none; color: var(--ink);
}
.tag-search-input:focus { border-color: var(--accent); }

.resultsbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin: 18px 0 24px; padding-top: 18px; border-top: 2px solid #e0e6e2;
}
.resultsbar .count { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.sortline { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.sortline select {
  padding: 9px 14px; font-size: 14.5px; font-weight: 700;
  border: 2px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); cursor: pointer; outline: none;
}

/* ── Recipe cards ── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
}
.card .media {
  height: 168px; display: flex; align-items: center; justify-content: center;
  border-bottom: 2px solid var(--line); background: #e7eef0; overflow: hidden;
}
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media .letter { font-family: 'Alfa Slab One', serif; font-size: 50px; color: var(--accent); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card .kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--kicker); margin-bottom: 7px;
}
.card h3 { font-weight: 800; font-size: 20px; line-height: 1.2; margin: 0 0 8px; color: #1d2a31; }
.card .excerpt { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0 0 14px; }
.card .foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--muted);
}
.card .foot b { color: #1d2a31; }
.rating { font-weight: 800; color: var(--star); white-space: nowrap; }
.rating .n { color: var(--faint); font-weight: 600; }

/* Pie rating: a literal pie that fills with the score (5/5 = a whole pie) */
.pie-meter {
  display: inline-block; width: 15px; height: 15px; border-radius: 50%;
  background: conic-gradient(var(--star) var(--p, 0%), #f0e8d6 0);
  border: 2px solid #b8862b; vertical-align: -2px;
}
.pie-meter.lg { width: 19px; height: 19px; vertical-align: -3px; }
.pies span { font-size: 15px; }
.pies .dim { filter: grayscale(1) opacity(.35); }

.card-review {
  font-size: 13.5px; line-height: 1.5; font-style: italic;
  color: #4a565d; margin: 0 0 14px; padding: 8px 12px;
  background: #eef4f5; border-radius: 8px;
}
.card-review .who { font-style: normal; font-weight: 700; color: var(--kicker); }

.fresh-strip {
  font-size: 14px; color: var(--muted); margin: 4px 0 6px;
  padding: 10px 14px; background: #eef4f5; border-radius: 10px;
  border: 1px dashed #b9cdd2;
}
.fresh-strip .fresh-label {
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  font-size: 12px; color: var(--accent); margin-right: 6px;
}
.fresh-strip a { font-weight: 700; }
.fresh-strip .by { color: var(--faint); font-weight: 400; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 6px;
  background: #e8eaea; color: #46606b; white-space: nowrap;
}
.pill[data-tag="breakfast"]       { background:#e3eef0; color:#1f6678; }
.pill[data-tag="dinner"]          { background:#f0e0d6; color:#b5552b; }
.pill[data-tag="dessert"]         { background:#f0dde0; color:#b34a5e; }
.pill[data-tag="comfort-food"]    { background:#dfeae6; color:#2f6b5a; }
.pill[data-tag="budget-friendly"] { background:#e3ebe2; color:#4a6b4a; }
.pill[data-tag="quick"]           { background:#e0eef0; color:#1f7a8c; }
.pill[data-tag="vegetarian"]      { background:#e3eede; color:#4a6b3e; }
.pill[data-tag="baking"]          { background:#f0e8d6; color:#8a6a1e; }
.pill[data-tag="soup"]            { background:#e8eaea; color:#5a6b6f; }
.pill[data-tag="slow-cooked"]     { background:#e6eaec; color:#46606b; }

/* ── Recipe detail ── */
.recipe-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.backlink { background: none; border: none; cursor: pointer; font-size: 14.5px; font-weight: 800; color: var(--accent); padding: 0; }
.btn-outline {
  border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 9px;
}
.btn-accent {
  border: none; background: var(--accent); color: #fff; cursor: pointer;
  font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 9px;
}
.authorline { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar {
  border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid var(--neon);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Alfa Slab One', serif; flex: none; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.sm { width: 50px; height: 50px; font-size: 17px; }
.authorline .who { line-height: 1.35; }
.authorline .who .name { font-weight: 800; font-size: 16px; }
.authorline .who .sub { font-size: 13.5px; color: var(--kicker); }

h1.recipe-title {
  font-family: 'Alfa Slab One', serif; font-weight: 400;
  font-size: 40px; line-height: 1.1; margin: 0 0 14px; color: var(--ink-deep);
}
.recipe-desc { font-size: 16.5px; line-height: 1.6; color: #4a565d; margin: 0 0 20px; }

.hero {
  height: 300px; border-radius: 12px; margin-bottom: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--line);
  background: repeating-linear-gradient(45deg,#dde7ea,#dde7ea 11px,#cbdce0 11px,#cbdce0 22px);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .ph-label {
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #5a767f;
  background: #f7f3e9cc; padding: 7px 14px; border-radius: 6px; font-weight: 600;
}

.metaband {
  display: flex; flex-wrap: wrap; gap: 30px; padding: 18px 22px;
  background: #e7eef0; border: 2px solid var(--line); border-radius: 12px; margin: 14px 0 34px;
}
.metaband .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6f8a91; font-weight: 800; }
.metaband .v { font-family: 'Alfa Slab One', serif; font-size: 18px; color: var(--ink); }
.metaband .v.star { color: var(--star); }

h2.section {
  font-weight: 800; font-size: 20px; text-transform: uppercase;
  letter-spacing: .05em; margin: 0; color: var(--ink-deep);
}
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.unit-toggle { display: flex; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; }
.unit-toggle button {
  border: none; cursor: pointer; padding: 7px 17px; font-size: 13.5px;
  font-weight: 800; background: transparent; color: var(--muted);
}
.unit-toggle button.on { background: var(--accent); color: #fff; }

.ing-list { margin: 0 0 36px; padding: 0; list-style: none; }
.ing-list li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 2px; border-bottom: 1px solid var(--hair); font-size: 15.5px;
}
.ing-list .amt { flex: none; min-width: 88px; white-space: nowrap; font-weight: 800; color: var(--accent); }
.ing-list .item { color: #3c4951; }

.steps { display: flex; flex-direction: column; gap: 20px; margin: 18px 0 34px; }
.step { display: flex; gap: 16px; }
.step .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.step p { margin: 5px 0 0; font-size: 16px; line-height: 1.6; color: #3c4951; }
.step img { max-width: 100%; border-radius: 8px; border: 2px solid var(--line); margin-top: 12px; }

.photo-slot { position: relative; }
.photo-x {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border-radius: 50%; border: 2px solid var(--line); background: #fffdf6ee;
  color: #b5552b; font-size: 13px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.photo-add { cursor: pointer; }
.photo-add-inline {
  display: inline-block; margin: 6px 0 14px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--accent);
  border: 2px dashed #b9cdd2; border-radius: 8px; padding: 7px 13px; background: #eef4f5;
}
.photo-add-inline:hover { border-color: var(--accent); }
.gallery-block { margin-bottom: 34px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 10px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.gallery .photo-slot img { width: 100%; border-radius: 10px; border: 2px solid var(--line); display: block; }

.form-step-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.form-step-row .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; margin-top: 8px;
}
.form-step-row textarea { flex: 1; }
.form-step-row .shop-x { margin-top: 12px; }
.draft-row .shop-x, .draft-step .shop-x { flex: none; align-self: center; }

.notebox {
  padding: 20px 22px; background: #eef4f5; border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; margin-bottom: 38px;
}
.notebox p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #3c4951; }
.notebox strong { color: var(--accent); }

/* ── Reviews ── */
.review-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.review-head .tally { font-size: 14.5px; color: var(--kicker); }
.review-write {
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 22px;
}
.review-write .rw-title { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.starpick { display: flex; gap: 4px; margin-bottom: 12px; }
.starpick button {
  background: none; border: none; cursor: pointer; font-size: 26px;
  line-height: 1; padding: 0 1px; filter: grayscale(1) opacity(.4);
  transition: filter .1s;
}
.starpick button.lit { filter: none; }
.review-write textarea, .review-write input[type=text] {
  width: 100%; padding: 11px 13px; font-size: 14.5px; line-height: 1.5;
  border: 2px solid #cfdce0; border-radius: 9px; resize: vertical;
  outline: none; color: var(--ink); margin-bottom: 12px;
}
.btn-post {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 9px;
}
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { padding: 16px 18px; background: var(--card); border: 2px solid #e0e6e2; border-radius: 10px; }
.review-item .top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-item .top .who { font-weight: 800; font-size: 15px; }
.review-item .top .stars { color: var(--star); font-size: 14px; }
.review-item p { margin: 0; font-size: 15px; line-height: 1.55; color: #4a565d; }

/* ── Cookbook profile ── */
.profile-band { background: var(--ink-deep); color: #f5efe2; border-bottom: 4px solid var(--accent); }
.profile-inner {
  max-width: 1000px; margin: 0 auto; padding: 42px 36px;
  display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap;
}
.avatar.lg { width: 96px; height: 96px; font-size: 32px; border-width: 3px; }
.profile-inner .info { flex: 1; min-width: 280px; }
.profile-inner h1 { font-family: 'Alfa Slab One', serif; font-weight: 400; font-size: 34px; margin: 0 0 6px; color: #f5efe2; }
.profile-inner .meta { font-size: 14px; color: #9fb6bd; margin-bottom: 12px; }
.profile-inner .bio { font-size: 16px; line-height: 1.6; color: #dce7ea; margin: 0 0 18px; max-width: 60ch; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stats .num { font-family: 'Alfa Slab One', serif; font-size: 20px; color: #f5efe2; }
.stats .num.star { color: var(--star); }
.stats .lbl { font-size: 14px; color: #9fb6bd; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }
.btn-follow {
  background: var(--accent); color: #fff; border: 2px solid var(--accent); cursor: pointer;
  font-weight: 800; font-size: 14.5px; padding: 11px 22px; border-radius: 10px; white-space: nowrap;
}
.btn-ghost {
  padding: 11px 20px; font-size: 14.5px; font-weight: 700; text-align: center;
  border: 2px solid var(--neon); border-radius: 10px; background: transparent;
  color: var(--neon); cursor: pointer; white-space: nowrap;
}

/* ── Add a recipe ── */
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .add-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 2.5px solid var(--line); border-radius: 14px; padding: 24px; }
.panel.preview { padding: 0; overflow: hidden; min-height: 440px; }
.modetabs { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.modetabs button { cursor: pointer; border: none; font-size: 14px; font-weight: 700; padding: 9px 18px; background: transparent; color: var(--muted); }
.modetabs button.on { background: var(--accent); color: #fff; }
.field-label { display: block; font-size: 13.5px; font-weight: 800; color: var(--muted); margin: 0 0 7px; }
.field-label + .field-label, .panel .field-label:not(:first-of-type) { margin-top: 16px; }
.panel textarea, .panel input[type=text] {
  width: 100%; padding: 12px 14px; font-size: 15px; line-height: 1.6;
  border: 2px solid #cfdce0; border-radius: 10px; resize: vertical;
  color: var(--ink); outline: none;
}
.hint { font-size: 13px; color: #8a9aa0; margin-top: 8px; }
.dropzone {
  margin-top: 20px; padding: 16px; background: #eef4f5;
  border: 2px dashed #b9cdd2; border-radius: 10px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.dropzone small { display: block; font-weight: 400; font-size: 12.5px; color: #8a9aa0; margin-top: 4px; }
.btn-big {
  margin-top: 18px; width: 100%; background: var(--accent); color: #fff;
  border: none; cursor: pointer; font-weight: 800; font-size: 16px;
  padding: 14px; border-radius: 11px; letter-spacing: .01em;
}
.preview-empty {
  min-height: 440px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px; color: var(--faint);
}
.preview-empty .glyph { font-size: 46px; margin-bottom: 14px; opacity: .6; }
.preview-empty .t { font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.preview-empty .s { font-size: 14px; max-width: 32ch; line-height: 1.5; }
.preview-banner {
  background: var(--accent); padding: 12px 20px; font-size: 12px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
.preview-body { padding: 24px 26px 28px; }
.preview-body .title-input {
  width: 100%; font-family: 'Alfa Slab One', serif; font-size: 26px; margin: 0 0 12px;
  color: var(--ink-deep); border: none; padding: 2px 0; outline: none; background: transparent;
}
.draft-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); transition: background-color .1s; }
.draft-row input { border: none; outline: none; background: transparent; padding: 5px 2px; font-size: 14.5px; color: #3c4951; }
.draft-row input.item { flex: 1; }
.draft-row input.amt { width: 110px; text-align: right; font-weight: 800; color: var(--accent); }
.drag-handle {
  flex: none; cursor: grab; color: var(--faint); font-size: 16px;
  padding: 0 2px; line-height: 1; user-select: none;
}
.drag-handle:active { cursor: grabbing; }
.draft-row.dragging { opacity: .4; }
.draft-row.drag-over { background-color: #eef4f5; border-bottom-color: var(--accent); }
.draft-step { display: flex; gap: 12px; margin-bottom: 13px; }
.draft-step .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.draft-step textarea { flex: 1; border: none; outline: none; background: transparent; resize: vertical; padding: 2px 0; font-size: 14.5px; line-height: 1.55; color: #3c4951; min-height: 44px; }
.pill button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }

/* ── Edit-page photo manager ── */
.edit-photo-list { margin-bottom: 12px; }
.edit-photo-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--hair);
}
.edit-photo-row img {
  width: 64px; height: 48px; object-fit: cover;
  border-radius: 6px; border: 2px solid var(--line); flex: none;
}
.edit-photo-row span { flex: 1; font-size: 14px; font-weight: 700; color: #3c4951; }
.edit-photo-add { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.edit-photo-add select {
  padding: 9px 12px; font-size: 14px; font-weight: 700;
  border: 2px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--ink); cursor: pointer; outline: none;
}

/* ── Shopping list ── */
.shop-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 10px; }
.shop-head h1 { font-family: 'Alfa Slab One', serif; font-weight: 400; font-size: 32px; margin: 0; color: var(--ink-deep); }
.link-quiet { background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); padding: 0; }
.shop-groups { display: flex; flex-direction: column; gap: 22px; }
.shop-group .gtitle {
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--kicker); margin-bottom: 10px;
}
.shop-box { background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.shop-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.shop-item:last-child { border-bottom: none; }
.shop-check {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cfdce0;
  background: #fff; color: #fff; cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.shop-item.done .shop-check { border-color: var(--accent); background: var(--accent); }
.shop-item .txt { flex: 1; font-size: 15px; color: #3c4951; }
.shop-item.done .txt { color: #a9b6ba; text-decoration: line-through; }
.shop-item .amt { font-size: 14px; font-weight: 700; color: var(--accent); }
.shop-item.done .amt { color: #c3cdcf; }
.shop-x { background: none; border: none; cursor: pointer; font-size: 16px; color: #b7c3c7; padding: 0 2px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--faint); }
.empty-state .glyph { font-size: 44px; margin-bottom: 14px; opacity: .6; }
.empty-state .t { font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

/* ── Onboarding / auth ── */
.onboard-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 24px 64px; }
.onboard-col { width: 100%; max-width: 600px; }
.progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.progress-row .stepnum { font-size: 14.5px; font-weight: 800; color: var(--accent); }
.progress-row .steplbl { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.progress-track { display: flex; gap: 7px; margin-bottom: 26px; }
.progress-track .seg { flex: 1; height: 9px; border-radius: 5px; background: #dde3e2; }
.progress-track .seg.fill { background: var(--accent); }
.onboard-card { background: #fff; border: 2.5px solid var(--line); border-radius: 16px; padding: 30px 30px 26px; }
.onboard-card h2 { font-family: 'Alfa Slab One', serif; font-weight: 400; font-size: 26px; margin: 0 0 6px; color: var(--ink-deep); }
.onboard-card .lead { font-size: 15.5px; color: var(--muted); margin: 0 0 24px; }
.onboard-card label { display: block; font-size: 14.5px; font-weight: 800; color: #3c4951; margin: 18px 0 7px; }
.onboard-card label:first-of-type { margin-top: 0; }
.onboard-card input, .onboard-card textarea {
  width: 100%; padding: 14px 16px; font-size: 16.5px; border: 2px solid #cfdce0;
  border-radius: 10px; outline: none; color: var(--ink); background: #fff;
}
.onboard-card input:focus, .onboard-card textarea:focus { border-color: var(--accent); }
.onboard-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair);
}
.btn-continue {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-weight: 800; font-size: 16px; padding: 13px 24px; border-radius: 11px;
}
.btn-back { background: none; border: none; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--muted); padding: 8px 4px; }
.onboard-note { text-align: center; margin-top: 18px; font-size: 14px; color: #8a9aa0; }
.swatches { display: flex; gap: 14px; }
.swatch {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 3px solid #e0e6e2; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); color: #fff; font-size: 18px; font-weight: 800;
}
.swatch.on { border-color: var(--ink-deep); }
.corner-opts { display: flex; gap: 12px; }
.corner-opt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; padding: 14px 8px; border-radius: 11px; background: #fff;
  border: 2px solid #e0e6e2; color: #3c4951; font-size: 13.5px; font-weight: 700;
}
.corner-opt.on { background: #eef4f5; border-color: var(--accent); }
.corner-opt .sq { width: 30px; height: 30px; background: #cdd9dc; border: 2px solid var(--line); }
.center-hero { text-align: center; padding-top: 24px; }
.center-hero .bigavatar {
  width: 84px; height: 84px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--neon); color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: 'Alfa Slab One', serif; font-size: 34px; margin: 0 auto 26px;
}
.center-hero h1 { font-family: 'Alfa Slab One', serif; font-weight: 400; font-size: 40px; line-height: 1.12; margin: 0 0 14px; color: var(--ink-deep); }
.center-hero p { font-size: 18px; line-height: 1.6; color: #4a565d; margin: 0 auto 32px; max-width: 42ch; }
.btn-hero {
  background: var(--accent); color: #fff; border: none; cursor: pointer; display: inline-block;
  font-weight: 800; font-size: 17px; padding: 16px 30px; border-radius: 12px; letter-spacing: .01em;
}
.error-note {
  background: #fbe6d0; border: 2px solid #d9663b; color: #b5552b;
  border-radius: 10px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px;
}
.ok-note {
  background: #dfeae6; border: 2px solid #2f6b5a; color: #2f6b5a;
  border-radius: 10px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px;
}

/* ── Pagination ── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; margin: 34px 0 6px;
}
.pg-btn {
  display: inline-block; min-width: 40px; text-align: center;
  padding: 9px 13px; font-size: 14.5px; font-weight: 800;
  border: 2px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink);
}
a.pg-btn:hover { background: #eef4f5; color: var(--accent); }
.pg-btn.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg-gap { color: var(--faint); font-weight: 800; padding: 0 2px; }

/* ── Footer ── */
.sitefoot { text-align: center; padding: 30px 20px 40px; font-size: 13.5px; color: var(--faint); }

/* ── Mobile ── */
@media (max-width: 720px) {
  .tip-row { padding: 6px 16px 0; }
  .tip-link { font-size: 12.5px; }
  .topnav {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px 14px;
  }
  .topnav .brand { font-size: 19px; }
  .topnav .links {
    order: 10;
    flex-basis: 100%;
    margin-left: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topnav .links::-webkit-scrollbar { display: none; }
  .topnav .links a { font-size: 14px; padding: 6px 10px; flex: none; }
  .btn-add { font-size: 13px; padding: 8px 12px; }
  .nav-avatar { width: 34px; height: 34px; font-size: 13px; }
  .nav-signin { font-size: 14px; }

  .wrap { padding: 24px 16px 48px; }
  .wrap-narrow { padding: 18px 16px 48px; }
  .wrap-shopping { padding: 24px 16px 48px; }

  h1.page-title { font-size: 29px; }
  h1.recipe-title { font-size: 28px; }
  .page-sub { font-size: 15px; }
  .eyebrow { font-size: 12px; }

  .profile-inner { padding: 26px 16px; gap: 18px; }
  .profile-inner h1 { font-size: 26px; }
  .avatar.lg { width: 72px; height: 72px; font-size: 24px; }
  .stats { gap: 18px; }
  .profile-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .profile-actions > *, .profile-actions form { flex: 1; min-width: 130px; }
  .profile-actions form .btn-follow { width: 100%; }

  .hero { height: 210px; }
  .metaband { gap: 16px 24px; padding: 14px 16px; }
  .recipe-actions { gap: 8px; }
  .recipe-actions .btn-outline, .recipe-actions .btn-accent { font-size: 12.5px; padding: 8px 10px; }

  .searchbox input { font-size: 15px; padding: 13px 15px 13px 44px; }
  .fresh-strip { font-size: 13px; }
  .onboard-card { padding: 22px 18px 20px; }
  .center-hero h1 { font-size: 30px; }
}

/* ── Print ── */
.print-opt {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--muted); padding: 9px 4px;
}
.print-opt input { accent-color: var(--accent); }

@media print {
  [data-print-hide] { display: none !important; }
  body { background: #fff !important; }
  .topnav, .recipe-actions, .review-block, .unit-toggle, .sitefoot { display: none !important; }

  /* Photos stay off the paper unless "with photos" is checked */
  .hero, .gallery-block, .steps-area img { display: none !important; }
  body.print-photos .hero, body.print-photos .gallery-block { display: block !important; }
  body.print-photos .steps-area img { display: inline-block !important; }

  /* Ingredients-only mode: nothing below the ingredient list */
  body.print-ingredients .steps-area,
  body.print-ingredients .notebox,
  body.print-ingredients .gallery-block,
  body.print-ingredients .hero,
  body.print-ingredients .metaband { display: none !important; }
}
