/* Hero image credit */
.hero-credit-wrap {
  text-align: right;
  padding: 0 1rem 0.6rem;
}
.hero-credit {
  display: inline;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}
.hero-credit a {
  color: #fff;
  text-decoration: none;
}
.hero-credit a:hover {
  text-decoration: underline;
}

/* App Store Badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  margin: 2rem 0;
}

.store-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.store-badge-soon {
  opacity: 0.45;
  filter: grayscale(40%);
}

.store-badge-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c7b6b;
}

.store-badge-img-container {
  height: 71px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-badge-img {
  height: 48px;
  width: auto;
}

/* Google Play badge has built-in padding — scale up to match Apple visually */
.badge-google-play .store-badge-img {
  height: 71px;
}

/* Screenshots */
.app-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 2.5rem 0 1rem;
}

.app-screenshots img {
  width: 160px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

@media (max-width: 600px) {
  .app-screenshots img {
    width: 130px;
  }
}

/* Shared tags (used on picks + mill finder) */
.mill-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-direct  { background: #e8f4e8; color: #2d6a2d; }
.tag-heritage { background: #f5ede4; color: #8B4513; }

/* ── Blog ────────────────────────────────────────────────── */

.blog-photo-pair {
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.blog-photo-pair figure {
  flex: 1;
  margin: 0;
}

.blog-photo-pair img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: block;
}

.blog-photo-pair figcaption {
  font-size: 0.8rem;
  color: #8c7b6b;
  margin-top: 0.5rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .blog-photo-pair {
    flex-direction: column;
  }
}

.blog-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.blog-photo-grid figure {
  margin: 0;
}

.blog-photo-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.blog-photo-grid figcaption {
  font-size: 0.8rem;
  color: #8c7b6b;
  margin-top: 0.5rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .blog-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mill Finder ─────────────────────────────────────────── */

.mf-page {
  padding: 2rem 1rem 4rem;
}

.mf-header {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.mf-title {
  font-size: 2rem;
  font-weight: 800;
  color: #3D2B1F;
  margin: 0 0 0.5rem;
}

.mf-subtitle {
  color: #6b5744;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.mf-controls {
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.mf-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.mf-zip-input {
  flex: 0 0 120px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c9b8a8;
  border-radius: 6px;
  font-size: 1rem;
  color: #3D2B1F;
  background: #fff;
}

.mf-radius-select {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c9b8a8;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #3D2B1F;
  background: #fff;
}

.mf-search-btn {
  flex: 0 0 auto;
  padding: 0.5rem 1.25rem;
  background: #8B4513;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.mf-search-btn:hover { background: #6b3410; }
.mf-search-btn:disabled { background: #b07a5a; cursor: default; }

.mf-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mf-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

.mf-error {
  color: #c0392b;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

.mf-count {
  color: #8c7b6b;
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
  min-height: 1.2em;
}

.mf-map {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #d9c9b8;
}

.mf-results {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.mf-no-results {
  color: #8c7b6b;
  text-align: center;
  padding: 2rem 0;
}

/* Mill cards */
.mill-card {
  border: 1px solid #d9c9b8;
  border-radius: 10px;
  background: #fffdf9;
  padding: 1.1rem 1.25rem;
}

.mill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.mill-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #3D2B1F;
  margin: 0 0 2px;
  line-height: 1.3;
}

.mill-card-location {
  font-size: 0.8rem;
  color: #8c7b6b;
  margin: 0;
}

.mill-dist {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8B4513;
  white-space: nowrap;
  margin-left: 1rem;
}

.mill-card-blurb {
  font-size: 0.875rem;
  color: #5a4a3a;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.mill-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #ecdfd3;
  padding-top: 0.75rem;
}

.mill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mill-website {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8B4513;
  text-decoration: none;
  white-space: nowrap;
}

.mill-website:hover { color: #3D2B1F; }

@media (max-width: 500px) {
  .mf-map { height: 300px; }
  .mf-zip-input { flex: 0 0 90px; }
}

/* ── Feature Carousel ────────────────────────────────────── */

.fc-wrap {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Left: tab list */
.fc-tabs {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: background 0.15s, border-color 0.15s;
}

.fc-tab:hover {
  background: #f5ede4;
  border-left-color: #c9b8a8;
}

.fc-tab.fc-tab-active {
  background: #ffffff;
  border-left-color: #8B4513;
}

.fc-tab-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3D2B1F;
  margin-bottom: 0.35rem;
}

.fc-tab-desc {
  display: none;
  font-size: 0.85rem;
  color: #5a4a3a;
  line-height: 1.6;
}

.fc-tab.fc-tab-active .fc-tab-desc {
  display: block;
}

/* Right: screenshot viewer */
.fc-viewer {
  flex: 1;
  position: relative;
  min-height: 200px;
}

.fc-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fc-panel.fc-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.fc-no-motion .fc-panel {
  transition: none;
}

.fc-panel img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.14);
  display: block;
}

.fc-caption {
  display: none;
  font-size: 0.9rem;
  color: #5a4a3a;
  line-height: 1.6;
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  text-align: left;
  width: 100%;
  flex-basis: 100%;
  background: #fdf6f0;
  border-radius: 8px;
  border-left: 3px solid #8B4513;
  box-sizing: border-box;
}

.fc-caption strong {
  display: block;
  font-size: 1rem;
  color: #3D2B1F;
  margin-bottom: 0.3rem;
}

/* Mobile: dots below screenshot, caption below that */
@media (max-width: 640px) {
  .fc-wrap {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem 2rem;
    flex-wrap: wrap;
  }

  /* Shrink tabs to dot indicators */
  .fc-tabs {
    flex: none;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    order: 2;
  }

  .fc-viewer {
    min-height: unset;
    width: 100%;
    order: 1;
  }

  .fc-tab {
    width: 12px;
    height: 12px;
    min-height: unset;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #d9c9b8;
    /* expand tap target without changing visual size */
    position: relative;
  }
  .fc-tab::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
  }

  .fc-tab.fc-tab-active {
    background: #8B4513;
    border: none;
    border-radius: 50%;
  }

  .fc-tab-label,
  .fc-tab-desc {
    display: none !important;
  }

  .fc-caption {
    display: block;
    order: 3;
  }
}

/* ── Origin Story ────────────────────────────────────────── */

.origin-story {
  background: #fdf6f0;
  border-top: 1px solid #ecdfd3;
  border-bottom: 1px solid #ecdfd3;
  padding: 3rem 1.5rem;
  margin: 1rem 0 2rem;
}

.origin-inner {
  max-width: 640px;
  margin: 0 auto;
}

.origin-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3D2B1F;
  margin: 0 0 1.5rem;
}

.origin-body p {
  font-size: 0.975rem;
  color: #5a4a3a;
  line-height: 1.75;
  margin: 0 0 1.1rem;
}

.origin-body p:last-child {
  margin-bottom: 0;
}

.origin-sign {
  font-style: italic;
  color: #8c7b6b !important;
  margin-top: 1.5rem !important;
}

/* Picks page */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 2rem;
  text-align: left;
}

.pick-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d9c9b8;
  border-radius: 10px;
  overflow: hidden;
  background: #fffdf9;
}

.pick-emoji {
  font-size: 2rem;
  padding: 1.25rem 1.25rem 0.5rem;
  line-height: 1;
}

.pick-body {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pick-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c7b6b;
  margin: 0 0 4px;
}

.pick-name {
  font-size: 1rem;
  font-weight: 700;
  color: #3D2B1F;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.pick-desc {
  font-size: 0.875rem;
  color: #5a4a3a;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

.pick-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8B4513;
  text-decoration: none;
  border-top: 1px solid #ecdfd3;
  padding-top: 0.75rem;
  margin-top: auto;
}

.pick-link:hover {
  color: #3D2B1F;
}

/* ── Footer ──────────────────────────────────────────────── */

.gap-footer {
  gap: 1.5rem;
}

.footer-policy-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  white-space: nowrap;
}

.footer-policy-link:hover {
  color: #fff;
}

/* ── Mill Finder — suggest a mill ───────────────────────── */


/* ── Mill Finder — suggest a mill ───────────────────────── */

.mf-suggest-inline {
  font-size: 0.875rem;
  color: #8c7b6b;
  margin: 0.5rem 0 0;
}

.mf-suggest-inline-link {
  font-weight: 600;
  color: #8B4513;
  text-decoration: none;
}

.mf-suggest-inline-link:hover {
  color: #3D2B1F;
}

/* ── Deletion request form ───────────────────────────────── */

.del-form {
  max-width: 480px;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.del-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.del-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #3D2B1F;
}

.del-input {
  padding: 0.6rem 0.75rem;
  border: 1px solid #c9b8a8;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #3D2B1F;
  background: #fff;
}

.del-input:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
}

.del-error {
  font-size: 0.85rem;
  color: #C0392B;
  min-height: 1.2em;
  margin: 0;
}

.del-btn {
  align-self: flex-start;
  background: #8B4513;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.del-btn:hover {
  background: #6b3410;
}

.del-note {
  font-size: 0.8rem;
  color: #8c7b6b;
  line-height: 1.5;
  margin: 0;
}
/* Pick card product image */
.pick-img-wrap {
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #ecdfd3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  overflow: hidden;
}

.pick-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  box-sizing: border-box;
}
}
