/* YachtBazar — shared styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0a2540;
  --navy-2: #144e75;
  --aqua: #4fc3f7;
  --aqua-dark: #0288d1;
  --green: #0a7d4f;
  --bg: #f5f7fa;
  --ink: #1a2b3c;
  --muted: #5a6b7c;
  --muted-2: #5f7080; /* ≥4.5:1 on white — card location / hints meet WCAG AA */
  --line: #d5dde5;
  --card-shadow: 0 2px 10px rgba(0,0,0,0.07);
  --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
}

body { font-family: 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; }
img { display: block; }
button { font-family: inherit; }

/* ---------- Header / nav ---------- */
header.site {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: white; padding: 18px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  position: sticky; top: 0; z-index: 50;
}
header.site .logo { font-size: 24px; letter-spacing: 1px; font-weight: bold; text-decoration: none; }
header.site .logo span { color: var(--aqua); }
nav.main { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav.main a {
  color: #cfe8f7; text-decoration: none; font-size: 15px;
  padding: 8px 14px; border-radius: 6px;
}
nav.main a:hover { background: rgba(255,255,255,0.1); color: white; }
nav.main a.active { background: rgba(79,195,247,0.18); color: var(--aqua); }
nav.main a .fav-count {
  background: var(--aqua); color: var(--navy); border-radius: 10px;
  font-size: 12px; font-weight: bold; padding: 1px 7px; margin-left: 4px;
}
/* desktop: header is logo + inline nav (CTA lives at the end of the nav);
   mobile: logo + CTA + hamburger, nav collapses into a dropdown */
.header-actions { display: none; }
.nav-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.35);
  color: white; font-size: 20px; line-height: 1; padding: 8px 12px;
  border-radius: 6px; cursor: pointer;
}
@media (max-width: 720px) {
  .header-actions { display: flex; align-items: center; gap: 10px; }
  nav.main .desktop-cta { display: none; }
  header.site nav.main {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding-top: 10px;
  }
  header.site nav.main.open { display: flex; }
  header.site nav.main a { padding: 12px 14px; font-size: 16px; }
}
.post-btn {
  background: var(--aqua); color: var(--navy); border: none;
  padding: 11px 22px; border-radius: 6px; font-weight: bold;
  font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block;
}
.post-btn:hover { background: #7fd4fa; }

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1b6d9c 100%);
  color: white; text-align: center; padding: 80px 24px 36px;
}
.hero h2 { font-size: 42px; margin-bottom: 14px; letter-spacing: 0.5px; }
.hero h2 span { color: var(--aqua); }
.hero p { font-size: 18px; color: #b9d4e6; max-width: 640px; margin: 0 auto 34px; }
.hero-search {
  display: flex; max-width: 640px; margin: 0 auto; gap: 0;
  background: white; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.hero-search input {
  flex: 1; border: none; padding: 18px 22px; font-size: 16px; outline: none; color: var(--ink);
}
.hero-search button {
  border: none; background: var(--aqua); color: var(--navy);
  font-weight: bold; font-size: 16px; padding: 0 32px; cursor: pointer;
}
.hero-search button:hover { background: #7fd4fa; }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 30px; font-weight: bold; color: var(--aqua); }
.hero-stats .stat .label { font-size: 13px; color: #b9d4e6; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 50px 40px; max-width: 1280px; margin: 0 auto; width: 100%; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.section-head h3 { font-size: 26px; color: var(--navy); }
.section-head a { color: var(--aqua-dark); text-decoration: none; font-size: 15px; font-weight: 600; }
.section-head a:hover { text-decoration: underline; }

/* ---------- City tiles ---------- */
.city-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.city-tile {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: white; border-radius: 10px; padding: 26px 20px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.city-tile:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.city-tile .name { font-size: 18px; font-weight: bold; }
.city-tile .count { font-size: 13px; color: var(--aqua); margin-top: 6px; }

/* ---------- Featured article callout ---------- */
.featured-article {
  display: flex; align-items: stretch; gap: 0; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow);
  transition: transform .15s, box-shadow .15s;
}
.featured-article:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.featured-article .fa-tag {
  background: rgba(79,195,247,0.16); color: var(--aqua); font-weight: bold;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 26px 22px; min-width: 170px;
}
.featured-article .fa-body { padding: 24px 28px; }
.featured-article h3 { color: white; font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
.featured-article p { color: #b9d4e6; font-size: 14.5px; line-height: 1.55; margin-bottom: 12px; }
.featured-article .fa-link { color: var(--aqua); font-weight: bold; font-size: 14px; }
@media (max-width: 640px) {
  .featured-article { flex-direction: column; }
  .featured-article .fa-tag { padding: 14px; min-width: 0; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: white; border-radius: 10px; padding: 28px 24px; box-shadow: var(--card-shadow); text-align: center; }
.step .icon { font-size: 36px; margin-bottom: 12px; }
.step h4 { color: var(--navy); margin-bottom: 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Toolbar (browse) ---------- */
.toolbar {
  background: white; padding: 18px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.toolbar input, .toolbar select {
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 15px; background: white; color: var(--ink);
}
.toolbar input[type="text"] { flex: 1; min-width: 200px; }
.toolbar input[type="number"] { width: 110px; }
.toolbar .check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.toolbar .clear-btn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.toolbar .clear-btn:hover { border-color: var(--muted-2); color: var(--ink); }

.stats-row { padding: 16px 40px; color: var(--muted); font-size: 14px; max-width: 1280px; margin: 0 auto; width: 100%; }

/* ---------- Cards grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px; padding: 0 40px 40px; max-width: 1280px; margin: 0 auto; width: 100%;
}
/* fixed 3-across grid for the home-page featured/latest rows */
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: white; border-radius: 10px; overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer; text-decoration: none; color: inherit;
  display: block; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.card img { width: 100%; height: 200px; object-fit: cover; background: #dde5ec; }
.card .no-image {
  width: 100%; height: 200px; background: #dde5ec;
  display: flex; align-items: center; justify-content: center;
  color: #8fa3b3; font-size: 40px;
}
.card-body { padding: 16px; }
.card .price { font-size: 20px; font-weight: bold; color: var(--green); }
.card .title { font-size: 15px; margin: 6px 0; line-height: 1.4; height: 42px; overflow: hidden; }
.card .location { font-size: 13px; color: var(--muted-2); }
.card .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,37,64,0.85); color: var(--aqua);
  font-size: 11px; font-weight: bold; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
}
.fav-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 38px; height: 38px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2); color: #b0bec5;
  transition: transform .1s;
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.active { color: #e53935; }
.staff-del-btn {
  position: absolute; top: 10px; right: 56px;
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 38px; height: 38px; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform .1s, background .1s;
}
.staff-del-btn:hover { transform: scale(1.12); background: #fdecea; }

/* ---------- Search autocomplete ---------- */
.ac-list {
  position: absolute; z-index: 200; display: none;
  background: white; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14); overflow: hidden;
  max-height: 320px; overflow-y: auto;
}
.ac-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 11px 16px; cursor: pointer; font-size: 15px; color: var(--ink);
}
.ac-item:hover, .ac-item.active { background: #eef7fd; }
.ac-item .ac-meta { font-size: 12px; color: var(--muted-2); white-space: nowrap; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 10px 20px 60px; flex-wrap: wrap; }
.pagination button {
  border: 1px solid var(--line); background: white; color: var(--ink);
  min-width: 40px; padding: 9px 13px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.pagination button:hover:not(:disabled) { border-color: var(--aqua-dark); color: var(--aqua-dark); }
.pagination button.current { background: var(--navy); color: white; border-color: var(--navy); }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* ---------- Detail page ---------- */
.detail-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 40px 60px; }
.breadcrumb { font-size: 14px; color: var(--muted-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--aqua-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
/* grid children must not blow out their column (default min-width:auto lets wide
   content — e.g. the staff edit panel — steal width from the other column) */
.detail > div { min-width: 0; }
.detail-photo { border-radius: 12px; overflow: hidden; background: #dde5ec; box-shadow: var(--card-shadow); }
.detail-photo img { width: 100%; max-height: 480px; object-fit: cover; }
.detail-photo .no-image { height: 380px; display: flex; align-items: center; justify-content: center; font-size: 80px; color: #8fa3b3; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumbs img {
  width: 84px; height: 64px; object-fit: cover; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent; opacity: 0.75;
}
.detail-thumbs img:hover { opacity: 1; }
.detail-thumbs img.current { border-color: var(--aqua-dark); opacity: 1; }
.detail-info { background: white; border-radius: 12px; padding: 28px; box-shadow: var(--card-shadow); }
.detail-info h1 { font-size: 24px; line-height: 1.35; color: var(--navy); margin-bottom: 12px; }
.detail-info .price { font-size: 32px; font-weight: bold; color: var(--green); margin-bottom: 16px; }
.detail-info .meta-row { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.detail-info .desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 14px 0 22px; white-space: pre-wrap; max-height: 320px; overflow-y: auto; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-size: 14px; }
.spec-table td { padding: 7px 10px; border-bottom: 1px solid #eef2f6; }
.spec-table td:first-child { color: var(--muted-2); text-transform: capitalize; white-space: nowrap; width: 1%; padding-right: 18px; }
.spec-table td:last-child { color: var(--ink); font-weight: 500; }
.detail-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-primary {
  background: var(--navy); color: white; text-align: center; text-decoration: none;
  padding: 14px; border-radius: 8px; font-weight: bold; font-size: 16px; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--navy-2); }
.btn-secondary {
  background: white; color: var(--navy); border: 2px solid var(--navy);
  text-align: center; text-decoration: none; padding: 12px; border-radius: 8px;
  font-weight: bold; font-size: 15px; cursor: pointer;
}
.btn-secondary:hover { background: #eef4f9; }
.btn-secondary.faved { border-color: #e53935; color: #e53935; }
.flag-btns { display: flex; gap: 8px; }
.flag-btn {
  flex: 1 1 0; text-align: center;
  background: white; border: 1px solid var(--line); color: var(--muted);
  padding: 10px 8px; border-radius: 6px; cursor: pointer; font-size: 13px;
  white-space: nowrap; line-height: 1;
}
.flag-btn:hover:not(:disabled) { border-color: #c62828; color: #c62828; }
.flag-btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Forms (sell page) ---------- */
.form-wrap { max-width: 680px; margin: 0 auto; padding: 40px 24px 70px; }
.form-card { background: white; border-radius: 12px; padding: 36px; box-shadow: var(--card-shadow); }
.form-card h2 { color: var(--navy); margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 15px; font-family: inherit; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #c62828; font-size: 14px; margin-bottom: 14px; display: none; }
.photo-picker {
  border: 2px dashed var(--line); border-radius: 8px; padding: 22px;
  text-align: center; color: var(--muted); cursor: pointer; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.photo-picker:hover, .photo-picker.dragover { border-color: var(--aqua-dark); background: #f0f9ff; }
.photo-picker .big { font-size: 30px; display: block; margin-bottom: 6px; }
.photo-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.photo-thumb { position: relative; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .remove {
  position: absolute; top: 4px; right: 4px; border: none; cursor: pointer;
  background: rgba(10,37,64,0.8); color: white; border-radius: 50%;
  width: 22px; height: 22px; font-size: 12px; line-height: 1;
}
.photo-thumb .cover-tag {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(10,37,64,0.75);
  color: var(--aqua); font-size: 10px; font-weight: bold; text-align: center; padding: 2px 0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.photo-thumb .cover-set {
  position: absolute; left: 0; right: 0; bottom: 0; border: none; cursor: pointer;
  background: rgba(10,37,64,0.6); color: white; font-size: 10px; font-weight: bold;
  padding: 3px 0; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0; transition: opacity .12s;
}
.photo-thumb:hover .cover-set { opacity: 1; }
.photo-thumb .cover-set:hover { background: var(--aqua-dark); }
.form-success {
  background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20;
  padding: 16px; border-radius: 8px; margin-bottom: 20px; display: none; font-size: 15px;
}

/* ---------- Page hero (small, inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: white; text-align: center; padding: 44px 24px;
}
.page-hero h2 { font-size: 32px; }
.page-hero h2 span { color: var(--aqua); }
.page-hero p { color: #b9d4e6; margin-top: 8px; font-size: 16px; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
  grid-column: 1 / -1;
}
.empty .icon { font-size: 52px; margin-bottom: 14px; }
.empty h4 { color: var(--navy); font-size: 20px; margin-bottom: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 10px; }
.about-card { background: white; border-radius: 10px; padding: 28px; box-shadow: var(--card-shadow); }
.about-card h4 { color: var(--navy); margin-bottom: 10px; }
.about-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Listing Q&A (forum-style thread, sits under the photo) ---------- */
.qa-box {
  background: white; border-radius: 12px; padding: 22px 24px;
  box-shadow: var(--card-shadow); margin-top: 24px;
}
.qa-title { color: var(--navy); font-size: 19px; margin-bottom: 14px; }
.qa-thread + .qa-thread { border-top: 1px solid #e8eef4; margin-top: 6px; padding-top: 6px; }
.qa-replies { margin-left: 30px; padding-left: 14px; border-left: 2px solid #e3eef6; margin-top: 2px; }
.qa-item { display: flex; gap: 12px; padding: 12px 10px; border-radius: 10px; }
.qa-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #dde5ec; color: var(--navy-2); font-weight: bold; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qa-content { flex: 1; min-width: 0; }
.qa-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-head strong { color: var(--navy); font-size: 14px; }
.qa-when { color: var(--muted-2); font-size: 12px; }
.qa-body { color: var(--ink); font-size: 14px; line-height: 1.55; margin-top: 4px; white-space: pre-wrap; }
.qa-reply-btn {
  background: none; border: none; color: var(--aqua-dark); font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 4px 0; margin-top: 4px;
}
.qa-reply-btn:hover { text-decoration: underline; }
.qa-replying-to { font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.qa-replying-to strong { color: var(--aqua-dark); }
.qa-inline-reply { margin: 4px 0 8px 30px; }
.qa-inline-reply textarea {
  width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; color: var(--ink);
}
.qa-del {
  margin-left: auto; background: none; border: none; color: var(--muted-2);
  cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 4px;
}
.qa-del:hover { color: #c62828; background: #fdecea; }
.you-tag {
  background: var(--bg); color: var(--muted); font-size: 11px;
  padding: 2px 8px; border-radius: 10px;
}

/* the listing owner stands out: brand-gradient badge + tinted message card */
.qa-item.qa-owner {
  background: linear-gradient(135deg, #eef9ff 0%, #e3f4fd 100%);
  border: 1px solid #ade2f9; border-top: 1px solid #ade2f9 !important;
}
.qa-avatar.owner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--aqua); box-shadow: 0 0 0 2px var(--aqua);
}
.op-badge {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--aqua); font-size: 10px; font-weight: bold; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 11px; text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(10,37,64,0.35);
}
.staff-badge {
  background: linear-gradient(135deg, var(--navy) 0%, #0288d1 100%);
  color: white; font-size: 10px; font-weight: bold; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 11px; text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(10,37,64,0.35);
}
#ybLightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 20, 35, 0.92); align-items: center; justify-content: center;
  cursor: zoom-out; padding: 30px;
}
#ybLightbox img {
  max-width: 94vw; max-height: 92vh; border-radius: 10px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.6); object-fit: contain;
}
#ybLightbox .lb-close {
  position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3); color: white; font-size: 18px;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
}
.qa-photos { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.qa-photos img {
  width: 110px; height: 82px; object-fit: cover; border-radius: 8px;
  box-shadow: var(--card-shadow); transition: transform .12s;
}
.qa-photos img:hover { transform: scale(1.04); }
.qa-compose { margin-top: 18px; padding-top: 16px; border-top: 2px solid #eef2f6; }
.qa-compose textarea {
  width: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; color: var(--ink);
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy); color: #b9d4e6; margin-top: auto;
  padding: 36px 40px; font-size: 14px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer.site .logo { font-size: 18px; font-weight: bold; color: white; }
footer.site .logo span { color: var(--aqua); }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: #b9d4e6; text-decoration: none; }
footer.site a:hover { color: white; }
footer.site .fine { margin-top: 16px; font-size: 12px; color: #6f8aa0; max-width: 1280px; margin-left: auto; margin-right: auto; }

/* page layout helper so footer sticks to bottom */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  header.site, .toolbar, .grid, .stats-row, .section, .detail-wrap { padding-left: 18px; padding-right: 18px; }
  .hero h2 { font-size: 30px; }
  .detail { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
}
