@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Sans+Arabic:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;600&family=Noto+Sans+KR:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600&family=Noto+Sans+TC:wght@400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600&display=swap');
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --surface-muted: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --border: #f3f4f6;
  --border-strong: #e5e7eb;
  --accent: #E63946;
  --accent-deep: #be122c;
  --accent-soft: #fff1f2;
  --blue: #3b82f6;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --font-ui: "Inter", "Noto Sans Arabic", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans Devanagari", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  background: var(--bg);
  line-height: 1.5;
}

.geo-preview-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(24, 28, 27, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.geo-preview-label {
  opacity: 0.9;
}

.geo-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.geo-preview-link.is-active {
  background: #fff;
  color: #1b1f1e;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, 100% - 28px);
  margin: 0 auto;
  padding: 16px 0 28px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.brand {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand span {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.topbar-center {
  flex: 1;
  min-width: 0;
  max-width: 400px;
  margin: 0 12px;
  display: flex;
  justify-content: center;
}

.topbar-wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  max-width: min(44vw, 240px);
  padding: 0 8px;
  text-decoration: none;
  pointer-events: auto;
}

.topbar-wordmark-image {
  display: block;
  width: auto;
  height: 30px;
  max-width: 100%;
  object-fit: contain;
}

.site-messages {
  display: grid;
  gap: 10px;
  margin: 16px 0 4px;
}

.site-message {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.site-message--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.site-message--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.site-message--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.site-message--info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.lang-switch {
  margin: 0;
}

.lang-switch select {
  min-height: 34px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.lang-switch select:focus {
  outline: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: #454b43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.topbar-link:hover,
.topbar-link.is-active,
.topbar-summary.is-active,
.mobile-dock-link.is-active {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.topbar-more {
  position: relative;
}

.topbar-summary {
  list-style: none;
  cursor: pointer;
}

.topbar-summary::-webkit-details-marker {
  display: none;
}

.topbar-menu,
.mobile-dock-menu {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.topbar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(240px, 60vw);
}

.topbar-menu a,
.mobile-dock-menu a {
  display: block;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #454b43;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.topbar-menu a:hover,
.mobile-dock-menu a:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  background: var(--surface-soft);
}

.topbar-lang-switch select {
  width: 100%;
}

.mobile-dock {
  display: none;
}

.mobile-dock-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #53584f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  background: transparent;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mobile-dock-more {
  position: relative;
}

.mobile-dock-more > summary {
  list-style: none;
  cursor: pointer;
}

.mobile-dock-more > summary::-webkit-details-marker {
  display: none;
}

.mobile-dock-menu {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: min(220px, 72vw);
}

.mobile-lang-form {
  margin: 0;
  padding-top: 2px;
}

.mobile-lang-form select {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 7px 10px;
}

.page-shell {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 20px;
}

.page-hero {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.7), rgba(255, 255, 255, 0.95));
}

.page-kicker {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 241, 242, 0.8);
  font-size: 12px;
  font-weight: 760;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.page-shell h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-shell h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-shell p {
  margin: 0;
  color: #4a5048;
  line-height: 1.55;
}

.page-shell p + p {
  margin-top: 10px;
}

.lead {
  font-size: 18px;
  max-width: 42rem;
}

.muted {
  color: var(--muted) !important;
}

.page-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head {
  margin-bottom: 8px;
}

.catalog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.catalog-card {
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
  display: grid;
  gap: 10px;
  min-width: 0;
  transition: border-color 180ms ease, transform 180ms ease;
}

a.catalog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  transform: translateY(-1px);
}

.catalog-card h2,
.catalog-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.catalog-card p {
  margin: 0;
}

.company-details-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.company-details-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.company-details-row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #4a5048;
}

.company-details-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1b2436;
}

.company-details-list--compact {
  gap: 6px;
}

.company-details-list--compact .company-details-row {
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
}

.company-details-list--compact .company-details-row dt {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.company-details-list--compact .company-details-row dd {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.legal-operator-meta h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.legal-operator-meta .section-head {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
  color: #4a5048;
}

.legal-operator-meta .muted {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.42;
}

.about-hero {
  overflow: hidden;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: center;
}

.about-copy {
  display: grid;
  gap: 12px;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 247, 248, 0.86);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 730;
  line-height: 1.2;
}

.about-photo-frame {
  justify-self: end;
  width: min(100%, 430px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.about-photo {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 34%;
}

.about-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-feature-card {
  min-height: 100%;
}

.about-links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-link-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.about-link {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.my-way-hero {
  overflow: hidden;
}

.my-way-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.my-way-copy {
  display: grid;
  gap: 12px;
}

.my-way-highlight {
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.my-way-highlight__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 760;
}

.my-way-highlight p {
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
  color: #3f453e;
}

.my-way-years {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.my-way-year {
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.my-way-year__head {
  display: grid;
  gap: 8px;
}

.my-way-year__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
}

.my-way-year h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.my-way-year__body {
  display: grid;
  gap: 10px;
}

.my-way-year__body p {
  margin: 0;
  color: #474d46;
  line-height: 1.62;
}

.my-way-note {
  margin-top: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(255, 248, 248, 0.86);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.my-way-note strong {
  font-size: 14px;
  font-weight: 760;
  color: var(--accent-deep);
}

.my-way-note span {
  color: #474d46;
  line-height: 1.55;
}

.home-primary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.home-primary-card {
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  display: grid;
  gap: 10px;
  min-width: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-primary-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  transform: translateY(-1px);
}

.home-card-label {
  font-size: 12px;
  font-weight: 760;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-primary-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
}

.home-primary-card p {
  margin: 0;
  max-width: 30rem;
}

.home-mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 16px;
}

.home-mini-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.shop-card {
  gap: 10px;
}

.shop-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 760;
  border: 1px solid transparent;
}

.shop-badge-new {
  background: rgba(69, 155, 77, 0.1);
  color: #1f7130;
  border-color: rgba(69, 155, 77, 0.2);
}

.shop-badge-hit {
  background: rgba(222, 127, 24, 0.1);
  color: #a75808;
  border-color: rgba(222, 127, 24, 0.2);
}

.shop-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 780;
  color: #724225;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
}

.shop-media {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 16 / 10;
  display: block;
}

.shop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-price {
  color: #3b332d !important;
  font-weight: 820;
  font-size: 17px;
}

.shop-title-link {
  color: inherit;
  text-decoration: none;
}

.shop-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shop-tag {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #4d554a;
  padding: 3px 10px;
  font-size: 12px;
}

.shop-filters {
  display: grid;
  gap: 10px;
}

.shop-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.shop-filter-grid label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  color: #444a43;
}

.shop-filter-grid input,
.shop-filter-grid select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.shop-detail-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -8px;
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.shop-detail-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 260px;
}

.shop-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-gift-media-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.shop-detail-media-secondary {
  min-height: 200px;
}

.shop-detail-content {
  display: grid;
  gap: 12px;
  align-content: start;
}

.shop-join-card {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(239, 108, 0, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 243, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 30px rgba(177, 110, 67, 0.08);
}

.shop-join-copy {
  display: grid;
  gap: 10px;
  color: #4f554c;
  font-size: 15px;
  line-height: 1.6;
}

.shop-join-copy p {
  margin: 0;
}

.kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 12px;
}

.kpi-card h3 {
  margin: 0 0 6px;
  font-size: 29px;
  line-height: 1;
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #444a43;
  font-size: 14px;
  font-weight: 660;
}

.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.form-grid textarea {
  resize: vertical;
}

.form-success {
  margin-bottom: 10px;
  border: 1px solid rgba(74, 124, 89, 0.4);
  border-radius: 12px;
  background: rgba(222, 241, 228, 0.85);
  color: #26573a;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 650;
}

.form-alert {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: #454b43;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.form-alert-error {
  border-color: rgba(199, 80, 80, 0.42);
  background: rgba(255, 236, 236, 0.85);
  color: #8f2d2d;
}

.form-alert-success {
  border-color: rgba(74, 124, 89, 0.4);
  background: rgba(222, 241, 228, 0.85);
  color: #26573a;
}

.checkout-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.checkout-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-grid label {
  display: grid;
  gap: 6px;
  color: #444a43;
  font-size: 14px;
  font-weight: 660;
}

.checkout-grid input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.checkbox-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4a5048;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.checkbox-line a {
  color: var(--accent);
  text-decoration: underline;
}

.contact-consent {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px 12px;
}

.contact-consent .checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}

.contact-consent .checkbox-line span {
  color: #454b43;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.form-errors {
  margin-bottom: 10px;
  border: 1px solid rgba(199, 80, 80, 0.42);
  border-radius: 12px;
  background: rgba(255, 236, 236, 0.85);
  color: #8f2d2d;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 650;
}

.field-error {
  color: #a53535;
  font-size: 12px;
  font-weight: 650;
}

.full-row {
  grid-column: 1 / -1;
}

.submit-hero {
  margin-bottom: 0;
}

.submit-layout-shell {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.submit-guide {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 86px;
}

.submit-guide h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.14;
}

.submit-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.submit-guide-list li {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.submit-guide-list strong {
  font-size: 14px;
  line-height: 1.3;
}

.submit-guide-list span {
  font-size: 13px;
  color: #4a5048;
  line-height: 1.45;
}

.submit-guide-note {
  font-size: 12px;
  color: var(--muted);
}

.submit-form-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.submit-errors {
  margin-bottom: 0;
}

.submit-errors strong {
  display: block;
  margin-bottom: 6px;
}

.submit-error-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.submit-form {
  display: grid;
  gap: 12px;
}

.submit-section {
  margin: 0;
  min-inline-size: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.submit-section-head {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-section-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 760;
}

.submit-section-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 760;
}

.submit-section-note {
  margin: 0;
  font-size: 14px;
  color: #4a5048;
  line-height: 1.45;
}

.submit-fields {
  display: grid;
  gap: 10px;
}

.submit-fields--two {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1400px) {
  .submit-fields--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.submit-field {
  display: grid;
  gap: 8px;
}

.submit-label {
  color: #2f352f;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.submit-required {
  color: #c74343;
  font-weight: 800;
}

.submit-help {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dbe1db;
  background: #f7faf7;
  font-size: 12px;
  color: #59625a;
  line-height: 1.45;
}

.submit-help::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e8eee8;
  color: #4f584f;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.submit-title-counter {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #4a5048;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dbe1db;
  background: #f7faf7;
}

.submit-title-counter.is-soft {
  color: #8a6405;
  border-color: #f0d58e;
  background: #fff8e8;
}

.submit-title-counter.is-max {
  color: #a53535;
  border-color: #efc2c2;
  background: #fff1f1;
}

.submit-form input[type="text"],
.submit-form textarea {
  width: 100%;
  border: 1px solid #cbd3cb;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.submit-form input[type="text"]::placeholder,
.submit-form textarea::placeholder {
  color: #7a827a;
  opacity: 1;
}

.submit-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-form input[type="file"] {
  display: block;
  width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: #495148;
  font: inherit;
  font-size: 14px;
  padding: 10px;
}

.submit-form input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #3f463f;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.submit-form input[type="file"]::-webkit-file-upload-button {
  margin-right: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #3f463f;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.submit-form input[type="text"]:focus-visible,
.submit-form textarea:focus-visible,
.submit-form input[type="file"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(232, 59, 79, 0.12);
}

.submit-upload {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.submit-upload--primary {
  border-color: rgba(230, 57, 70, 0.26);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.66), rgba(255, 255, 255, 0.96));
}

.submit-actions {
  margin-top: 2px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.submit-consent {
  max-width: 60ch;
}

.submit-submit-btn {
  width: 100%;
  max-width: 320px;
}

.contact-layout-shell {
  padding: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: start;
}

.contact-services {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.contact-services h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.12;
}

.contact-services-intro {
  margin: 0;
  color: #4a5048;
  line-height: 1.55;
}

.contact-service-list {
  display: grid;
  gap: 10px;
}

.contact-service-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.contact-service-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.contact-service-card p {
  margin: 0;
  color: #4a5048;
  line-height: 1.5;
  font-size: 14px;
}

.contact-form-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 760;
}

.faq-list p {
  margin-top: 8px;
}

.legal-page h1 {
  margin-bottom: 6px;
}

.legal-block + .legal-block {
  margin-top: 12px;
}

.legal-block h2 {
  margin-bottom: 6px;
}

.feed-controls {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.feed-intro {
  display: grid;
  gap: 6px;
}

.feed-intro h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.feed-intro p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.feed-controls-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.feed-controls-form label {
  display: grid;
  gap: 6px;
  color: #444a43;
  font-size: 13px;
  font-weight: 700;
}

.feed-controls-form input,
.feed-controls-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
}

.feed-controls-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.feed-mode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25, 33, 53, 0.14);
  background: rgba(244, 246, 252, 0.95);
  color: #37405a;
  font-size: 12px;
  font-weight: 700;
}

.desktop-feed {
  margin-top: 16px;
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
}

.desktop-tile {
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  border-radius: var(--radius);
  background: var(--surface);
  
  overflow: hidden;
  display: block;
  transition: border-color 180ms ease, transform 180ms ease;
}

.desktop-tile-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.desktop-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
}

.desktop-tile-media {
  background: var(--surface-soft);
  overflow: hidden;
}

.desktop-tile-media--recipe {
  aspect-ratio: 4 / 5;
}

.desktop-tile-media picture,
.mobile-post-media picture,
.recipe-hero-media picture,
.recipe-gallery picture,
.promo-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.desktop-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-tile-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.56);
  font-weight: 760;
  background: var(--surface-muted);
}

.desktop-tile-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.desktop-tile-body--recipe {
  gap: 10px;
}

.desktop-tile-body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.desktop-tile-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 14px;
}

.desktop-tile-title-link {
  color: inherit;
  text-decoration: none;
}

.desktop-tile--recipe .desktop-tile-title-link {
  /* Fallback for browsers without line-clamp: two-line max-height + overflow hidden */
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-height: calc(2 * 1.12em);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.desktop-tile--promo .desktop-tile-title-link {
  /* Keep promo title visually consistent with recipe cards: compact two-line title */
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-height: calc(2 * 1.12em);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.desktop-tile-title-link:hover {
  color: var(--accent);
}

.desktop-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.desktop-tile-meta span {
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}

.desktop-tile-meta--recipe {
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}

.desktop-tile-meta-text--recipe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.desktop-tile-author,
.desktop-tile-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.desktop-tile-author {
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-tile-dot {
  color: var(--muted);
  flex: 0 0 auto;
}

.desktop-tile-meta-like {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.desktop-tile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 2px;
}

.desktop-tile--promo {
  border: 1px solid var(--border);
}

.desktop-tile-media--promo {
  aspect-ratio: 4 / 5;
}

.desktop-tile-body--promo {
  display: grid;
  gap: 10px;
}

.desktop-tile-meta--promo {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.desktop-tile-meta-text--promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0.01em;
  color: #a32647;
  background: rgba(220, 43, 85, 0.12);
}

.promo-badge--auto {
  color: #8f2447;
  background: rgba(220, 43, 85, 0.12);
}

.promo-badge--house {
  color: #1f4f7f;
  background: rgba(67, 141, 207, 0.14);
}

.promo-badge--paid {
  color: #7f4d18;
  background: rgba(231, 160, 66, 0.18);
}

.promo-badge--legal {
  color: #6f1e1e;
  background: rgba(220, 76, 76, 0.18);
}

.promo-badge--mobile {
  font-size: 11px;
  line-height: 1.2;
}

.promo-legal-line {
  margin: 0;
  color: #6a6f67;
  font-size: 11px;
  line-height: 1.3;
}

.promo-legal-line--commercial {
  font-size: 10px;
  line-height: 1.3;
}

.promo-legal-line--mobile {
  display: block;
  margin-top: 4px;
}

.promo-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.promo-media--loading {
  background: #eef0ef;
}

.promo-media--loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.5) 35%,
    rgba(255, 255, 255, 0) 55%
  );
  transform: translateX(-100%);
  animation: promoShimmer 1.2s infinite;
  z-index: 1;
}

.promo-media--loading .js-promo-image {
  opacity: 0;
}

.promo-media--ready::before {
  display: none;
}

.promo-media--ready .js-promo-image {
  opacity: 1;
  transition: opacity 220ms ease;
}

.promo-cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.promo-cta-row--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-cta-row--desktop.promo-cta-row--single {
  display: flex;
  align-items: center;
}

.promo-cta-row--desktop.promo-cta-row--single .promo-cta {
  width: auto;
  min-width: 132px;
  max-width: 100%;
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 103, 125, 0.3);
  color: #892040;
  background: rgba(255, 237, 243, 0.42);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 760;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.promo-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 103, 125, 0.25);
}

.promo-cta--secondary {
  border-style: dashed;
  color: #7b3151;
  background: rgba(255, 255, 255, 0.72);
}

.promo-post {
  background: var(--surface);
}

.promo-cta--mobile {
  min-height: 44px;
  justify-content: center;
}

.mobile-post-body--promo {
  display: grid;
  gap: 10px;
}

.mobile-post-meta-row--promo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.mobile-post-meta-text--promo {
  display: inline-flex;
  align-items: center;
}

.mobile-post-title-link--promo {
  max-height: calc(2 * 1.12em);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 760;
}

.promo-cta-row--mobile {
  grid-template-columns: minmax(0, 1fr);
}

.promo-cta-row--mobile.promo-cta-row--stacked,
.promo-cta-row--mobile.promo-cta-row--single {
  grid-template-columns: minmax(0, 1fr);
}

.promo-helpful-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(67, 141, 207, 0.4);
  background: rgba(67, 141, 207, 0.12);
  color: #1f4f7f;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.promo-helpful-btn:hover {
  border-color: rgba(67, 141, 207, 0.6);
}

.promo-helpful-btn.is-thanked {
  border-color: rgba(74, 124, 89, 0.45);
  background: rgba(74, 124, 89, 0.12);
  color: #2a5f43;
}

.promo-helpful-btn--mobile {
  width: 100%;
}

.promo-hide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(69, 75, 67, 0.25);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.promo-hide-btn:hover {
  border-color: rgba(69, 75, 67, 0.45);
  color: var(--primary);
}

.promo-hide-btn--mobile {
  width: 100%;
}

.promo-skeleton {
  position: relative;
  overflow: hidden;
  background: #eef0ef;
  color: #737780;
}

.promo-skeleton::after {
  display: none;
}

@keyframes promoShimmer {
  to {
    transform: translateX(100%);
  }
}

.mobile-feed {
  display: none;
  margin-top: 12px;
}

.mobile-scroll {
  display: grid;
  gap: 12px;
  scroll-snap-type: y proximity;
  padding-bottom: 10px;
}

/* Removed old .mobile-post styles to use new Instagram ones */

.mobile-post-media {
  display: block;
  background: var(--surface-soft);
  overflow: hidden;
}

.mobile-post-media--recipe {
  aspect-ratio: 4 / 5;
}

.mobile-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-post-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.56);
  font-weight: 760;
  background: var(--surface-muted);
}

.mobile-post-overlay {
  padding: 12px 12px 14px;
  display: grid;
  gap: 6px;
}

.mobile-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.mobile-post-meta span {
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}

.mobile-post-title {
  display: block;
}

.mobile-post h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.mobile-post p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 13px;
  color: #4d554a;
  font-weight: 650;
}

.pager {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.pager-status {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 0 4px;
}

.feed-sentinel {
  margin-top: 10px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-loader {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.empty-state {
  border: 1px dashed rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface-soft);
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.recipe-page {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.recipe-hero-media {
  min-height: 320px;
  background: var(--surface-soft);
}

.recipe-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recipe-hero-placeholder {
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.56);
  font-weight: 750;
  background: var(--surface-muted);
}

.recipe-hero-body {
  padding: 18px;
}

.recipe-hero-body h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.recipe-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
}

.author-name {
  font-size: 15px;
  font-weight: 750;
}

.author-sub {
  font-size: 13px;
  color: var(--muted);
}

.recipe-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.like-toggle-form {
  margin: 0;
}

.dessert-like {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #3d433c;
  min-height: 48px;
  padding: 8px 14px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.dessert-like:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  transform: translateY(-1px);
}

.dessert-like.is-active {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  background: var(--accent-soft);
}

.dessert-like-icon {
  font-size: 29px;
  line-height: 1;
}

.dessert-like-count {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.35px;
  font-weight: 830;
}

.recipe-description {
  margin: 12px 0 0;
  color: #4a5048;
}

.recipe-like-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.recipe-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.recipe-jump-nav {
  position: sticky;
  top: 66px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.recipe-jump-nav a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #4d554a;
}

.recipe-jump-nav a:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  color: var(--accent-deep);
}

.action-btn-disabled {
  opacity: 0.72;
}

.recipe-section {
  padding: 16px 16px 4px;
}

.recipe-section h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.2px;
}

.recipe-text {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
  color: #32372f;
  line-height: 1.6;
}

.recipe-gallery {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 8px;
}

.recipe-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.recipe-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

.recipe-gallery--process a {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #f6f3ef 0%, #ebe7e0 100%);
}

.recipe-gallery--process img {
  object-fit: contain;
  padding: 6px;
  aspect-ratio: 4 / 5;
}

.recipe-nav {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipe-nav-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  
  padding: 12px;
  display: grid;
  gap: 6px;
}

.recipe-nav-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
}

.recipe-nav-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recipe-nav-title {
  font-size: 17px;
  font-weight: 760;
  line-height: 1.28;
}

.recipe-nav-empty {
  opacity: 0.72;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #3d433c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent;
  background: var(--surface-soft);
}

.btn-primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.btn-primary:hover {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn:focus-visible,
.topbar-link:focus-visible,
.mobile-dock-link:focus-visible,
.feed-controls-form input:focus-visible,
.feed-controls-form select:focus-visible,
.shop-filter-grid input:focus-visible,
.shop-filter-grid select:focus-visible,
.form-grid input:focus-visible,
.form-grid textarea:focus-visible,
.form-grid select:focus-visible,
.checkout-grid input:focus-visible,
.lang-switch select:focus-visible,
.mobile-lang-form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .desktop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-controls-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-controls-actions {
    justify-content: flex-start;
  }

  .desktop-tile-body h3 {
    font-size: 22px;
  }

  .submit-layout-shell {
    grid-template-columns: 1fr;
  }

  .submit-guide {
    position: static;
  }

  .submit-fields--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .container {
    padding-bottom: 94px;
  }

  .topbar-right {
    display: none;
  }

  .topbar-center {
    max-width: none;
    margin: 0;
  }

  .mobile-dock {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 70;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .desktop-feed {
    display: none;
  }

  .mobile-feed {
    display: block;
  }

  .mobile-post {
    border-radius: 16px;
  }

  .feed-controls {
    margin-top: 10px;
    border-radius: 14px;
    padding: 10px;
  }

  .home-primary-grid,
  .home-mini-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .recipe-hero {
    grid-template-columns: 1fr;
  }

  .recipe-hero-media,
  .recipe-hero-placeholder {
    min-height: 240px;
  }

  .recipe-jump-nav {
    top: 72px;
  }

  .shop-detail-grid {
    grid-template-columns: 1fr;
  }

  .shop-join-card {
    padding: 20px;
    border-radius: 20px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1100px, 100% - 14px);
    padding-top: 8px;
    padding-bottom: 90px;
  }

  .topbar {
    top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .brand {
    font-size: 26px;
  }

  .topbar-center {
    margin: 0 8px;
  }

  .topbar-wordmark {
    height: 40px;
    max-width: min(46vw, 180px);
  }

  .topbar-wordmark-image {
    height: 24px;
  }

  .mobile-dock-link {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .page-shell {
    border-radius: 14px;
    padding: 12px;
  }

  .submit-layout-shell {
    padding: 12px;
  }

  .submit-guide,
  .submit-form-panel {
    border-radius: 12px;
    padding: 12px;
  }

  .submit-section {
    border-radius: 12px;
    padding: 12px;
  }

  .submit-section-title {
    font-size: 17px;
  }

  .submit-section-note {
    font-size: 13px;
  }

  .submit-help,
  .submit-title-counter {
    padding: 7px 9px;
    font-size: 11px;
  }

  .submit-help {
    gap: 6px;
  }

  .submit-help::before {
    width: 15px;
    height: 15px;
    font-size: 10px;
  }

  .submit-submit-btn {
    max-width: none;
  }

  .page-shell h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .catalog-card h3 {
    font-size: 20px;
  }

  .home-primary-card {
    padding: 16px;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-copy {
    gap: 10px;
  }

  .about-hero h1 {
    font-size: 30px;
  }

  .about-hero .lead {
    font-size: 17px;
    line-height: 1.5;
  }

  .about-copy p {
    font-size: 15px;
    line-height: 1.58;
  }

  .about-meta {
    gap: 6px;
  }

  .about-badge {
    min-height: 32px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .about-photo-frame {
    width: 100%;
    justify-self: stretch;
    border-radius: 18px;
  }

  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .about-links-grid {
    grid-template-columns: 1fr;
  }

  .my-way-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .my-way-hero h1 {
    font-size: 30px;
  }

  .my-way-copy .lead {
    font-size: 17px;
    line-height: 1.5;
  }

  .my-way-copy p,
  .my-way-highlight p {
    font-size: 15px;
  }

  .my-way-highlight {
    border-radius: 18px;
    padding: 14px;
  }

  .my-way-year {
    border-radius: 18px;
    padding: 14px;
  }

  .my-way-year h3 {
    font-size: 22px;
  }

  .feed-intro h1 {
    font-size: 26px;
  }

  .mobile-post h2 {
    font-size: 22px;
  }

  .mobile-post-placeholder {
    min-height: 260px;
  }

  .dessert-like {
    min-height: 48px;
    padding-right: 12px;
  }

  .dessert-like-icon {
    font-size: 26px;
  }

  .dessert-like-count {
    font-size: 28px;
  }

  .pager {
    position: sticky;
    bottom: 8px;
    z-index: 18;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(20, 24, 34, 0.16);
  }

  .pager-status {
    font-size: 13px;
  }

  .feed-loader {
    font-size: 13px;
  }

  .recipe-page {
    border-radius: 16px;
  }

  .recipe-hero-body {
    padding: 14px;
  }

  .recipe-hero-body h1 {
    font-size: 34px;
  }

  .recipe-section {
    padding: 13px 12px 2px;
  }

  .recipe-section h2 {
    font-size: 22px;
  }

  .recipe-nav {
    grid-template-columns: 1fr;
  }
}


h1, h2, h3, .recipe-title, .desktop-tile-body h3, .mobile-post-title-link {
  font-family: var(--font-ui);
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; object-fit: contain; margin-top: 4px; }

/* Instagram-like feed */
.mobile-post {
  scroll-snap-align: start;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 16px;
  margin-bottom: 0;
  border-radius: 0;
}
.mobile-post:last-child { border-bottom: none; }

.mobile-scroll { gap: 0; }

.mobile-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.mobile-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.mobile-post-avatar svg { width: 18px; height: 18px; }
.mobile-post-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.mobile-post-date {
  font-size: 12px;
  color: var(--muted);
}
.mobile-post-media {
  display: block;
  width: 100%;
  background: var(--surface-soft);
  overflow: hidden;
  border-radius: 0;
}

.mobile-post-media--recipe {
  aspect-ratio: 4 / 5;
}

.mobile-post-media--promo {
  aspect-ratio: 4 / 5;
}

.promo-post .mobile-post-media {
  aspect-ratio: 4 / 5;
}

.mobile-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mobile-post-body {
  padding: 12px 16px;
}

.mobile-post-body--recipe {
  display: grid;
  gap: 10px;
}

.mobile-post-meta-row--recipe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.mobile-post-meta-text--recipe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.mobile-post-meta-text--recipe .mobile-post-author-name,
.mobile-post-meta-text--recipe .mobile-post-date {
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

.mobile-post-meta-text--recipe .mobile-post-author-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-post-dot {
  color: var(--muted);
  flex: 0 0 auto;
}

.mobile-post-meta-like {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.mobile-post-actions {
  display: flex;
  margin-bottom: 8px;
}

.feed-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-muted);
  flex: 0 0 auto;
}

.feed-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-author-avatar picture {
  display: block;
  width: 100%;
  height: 100%;
}

.feed-author-avatar--desktop {
  width: 28px;
  height: 28px;
}

.feed-author-avatar--mobile {
  width: 24px;
  height: 24px;
}

.feed-like-form--meta {
  margin: 0;
  display: flex;
  align-items: center;
}

.feed-like-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent !important;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  box-shadow: none !important;
  outline: none;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
  color: var(--accent);
  transition: transform 180ms ease, opacity 180ms ease;
}

.feed-like-btn:hover {
  transform: translateY(-1px);
}

.feed-like-btn:disabled {
  cursor: wait;
}

.feed-like-btn.is-disabled {
  opacity: 0.6;
}

.feed-like-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-like-btn.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.feed-like-btn--desktop {
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #4a5048;
  font-size: 12px;
  font-weight: 700;
}

.feed-like-btn--desktop.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, white 70%);
}

.feed-like-btn--mobile {
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft) !important;
  color: #3e4641;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.feed-like-btn--mobile svg {
  width: 18px;
  height: 18px;
}

.feed-like-btn--mobile.is-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, white 70%);
  background: var(--accent-soft) !important;
}

.feed-like-btn--meta {
  gap: 5px;
}

.feed-like-btn--meta span {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.mobile-post-likes {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.mobile-post-caption {
  font-size: 14px;
  line-height: 1.4;
}
.mobile-post-title-link {
  color: var(--text);
  text-decoration: none;
}

.mobile-post--recipe .mobile-post-title-link {
  /* Fallback for browsers without line-clamp: two-line max-height + overflow hidden */
  max-height: calc(2 * 1.12em);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 760;
}

.mobile-post-title-link strong {
  font: inherit;
}

.mobile-post-title-link:hover,
.mobile-post-title-link:hover strong {
  color: var(--accent);
}
.mobile-post-desc {
  color: var(--text);
}


/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .topbar-right {
  justify-content: flex-start;
}

html[dir="rtl"] .dessert-like {
  padding: 8px 10px 8px 14px;
}

html[dir="rtl"] .mobile-post-author {
  gap: 10px;
}


/* Recipe Detail Modernization */
.recipe-page {
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

@media (min-width: 821px) {
  .recipe-page {
    margin-top: 20px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
}

.recipe-hero {
  display: block; /* Stacking media and body instead of grid */
  border-bottom: none;
}

.recipe-hero-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface-soft);
}

@media (min-width: 821px) {
  .recipe-hero-media {
     aspect-ratio: 16 / 9;
     max-height: 60vh;
  }
}

.recipe-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recipe-hero-body {
  padding: 24px 16px;
  background: var(--surface);
}

.recipe-hero-body h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.recipe-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 16px;
}

.recipe-author {
  margin-bottom: 0;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.desktop-share-btn {
  display: none;
}

@media (min-width: 821px) {
  .desktop-share-btn {
    display: inline-flex;
  }
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.action-btn svg {
  width: 22px;
  height: 22px;
}

.recipe-jump-nav {
  top: 60px; /* Adjust based on topbar height */
  border-radius: 0;
  border-left: none;
  border-right: none;
  justify-content: flex-start;
  padding: 12px 16px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.recipe-section {
  padding: 24px 16px;
  background: var(--surface);
  margin-bottom: 8px;
}

.recipe-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.recipe-text {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* Ingredients styling */
.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ingredient-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-strong);
  display: flex;
  justify-content: space-between;
}
.ingredient-list li:last-child {
  border-bottom: none;
}

/* Steps styling */
.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-list li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}
.step-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* Share button sticky mobile */
.mobile-share-bar {
  display: none;
}
@media (max-width: 820px) {
  .mobile-share-bar {
    display: flex;
    position: fixed;
    bottom: 70px; /* Above dock */
    left: 16px;
    right: 16px;
    z-index: 40;
    gap: 10px;
  }
  .mobile-share-btn {
    flex: 1;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
}

.recipe-share-toast {
  position: fixed;
  left: 50%;
  bottom: 116px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  max-width: calc(100% - 28px);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(22, 29, 44, 0.96);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: opacity 180ms ease, transform 180ms ease;
}

.recipe-share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.recipe-share-toast.is-error {
  background: rgba(130, 27, 47, 0.95);
}

@media (min-width: 821px) {
  .recipe-share-toast {
    bottom: 24px;
  }
}

/* Static pages translation readiness: avoid layout breaks on long localized strings. */
.about-hero,
.my-way-hero,
.legal-page,
.page-shell {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.about-link,
.legal-block h2,
.legal-block p,
.catalog-card h2,
.catalog-card h3,
.catalog-card p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Phase 2+3: recipe detail process gallery + floating section rail */
.recipe-jump-nav a.is-active {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
}

.process-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.process-gallery-head h2 {
  margin-bottom: 0;
}

.process-gallery-counter {
  display: none;
}

.process-gallery-scroll-hint {
  display: none;
}

@media (min-width: 821px) {
  .recipe-gallery--process {
    margin-top: 14px;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-gallery--process a {
    border-radius: 16px;
  }

  .recipe-gallery--process img {
    padding: 10px;
  }
}

@media (min-width: 1200px) {
  .recipe-gallery--process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .process-gallery-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: #4f574f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .recipe-gallery--process {
    margin-top: 10px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    padding-right: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .recipe-gallery--process::-webkit-scrollbar {
    height: 4px;
  }

  .recipe-gallery--process::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
  }

  .recipe-gallery--process a {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
    border-radius: 16px;
  }

  .recipe-gallery--process img {
    padding: 10px;
  }

  .process-gallery-scroll-hint {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .process-gallery-scroll-label {
    font-size: 12px;
    font-weight: 700;
    color: #59615a;
    letter-spacing: 0.01em;
  }

  .process-gallery-scroll-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: #4f574f;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  }

  .process-gallery-scroll-btn:active {
    transform: scale(0.96);
  }

  .process-gallery-scroll-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
  }
}

/* Phase 4: in-page process photo viewer (lightbox) */
body.recipe-lightbox-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.recipe-lightbox[hidden] {
  display: none !important;
}

.recipe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 96;
  padding: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}

.recipe-lightbox.is-open {
  display: flex;
}

.recipe-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 24, 35, 0.78);
  cursor: pointer;
}

.recipe-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.recipe-lightbox-close {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(16, 22, 33, 0.86);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.recipe-lightbox-nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(20, 27, 40, 0.86);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.recipe-lightbox-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.recipe-lightbox-figure {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg, #f4f0ea 0%, #e7e1d6 100%);
  overflow: hidden;
}

.recipe-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: min(82vh, 900px);
  object-fit: contain;
}

.recipe-lightbox-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  background: rgba(17, 22, 33, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 820px) {
  .recipe-lightbox {
    padding: 10px;
  }

  .recipe-lightbox-dialog {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .recipe-lightbox-close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .recipe-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .recipe-lightbox-nav--prev {
    left: 8px;
  }

  .recipe-lightbox-nav--next {
    right: 8px;
  }

  .recipe-lightbox-figure {
    border-radius: 16px;
  }

  .recipe-lightbox-figure img {
    max-height: 72vh;
  }
}

.recipe-lightbox-close:focus-visible,
.recipe-lightbox-nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

.recipe-section-rail {
  display: grid;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 36;
  gap: 8px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
}

.recipe-section-dot {
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
}

.recipe-section-dot-bullet {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(24, 31, 46, 0.35);
  background: #fff;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.recipe-section-dot:hover .recipe-section-dot-bullet,
.recipe-section-dot:focus-visible .recipe-section-dot-bullet,
.recipe-section-dot.is-active .recipe-section-dot-bullet {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.08);
}

@media (max-width: 1099px) {
  .recipe-section-rail {
    right: max(2px, env(safe-area-inset-right));
    padding: 4px 3px;
    pointer-events: none;
  }

  .recipe-section-dot {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
  }

  .recipe-section-dot-bullet {
    width: 10px;
    height: 10px;
  }

  .recipe-section-dot-label {
    display: none;
  }
}

@media (max-width: 820px) {
  .recipe-section-rail {
    right: max(1px, env(safe-area-inset-right));
    z-index: 30;
  }

  .recipe-section-dot {
    width: 28px;
    height: 28px;
  }

  .recipe-section-dot-bullet {
    width: 9px;
    height: 9px;
  }
}

@media (min-width: 1100px) {
  .recipe-section-rail {
    right: max(10px, calc((100vw - min(1100px, 100vw - 28px)) / 2 - 42px));
    padding: 10px 8px;
  }

  .recipe-section-dot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 2px 4px;
  }

  .recipe-section-dot-bullet {
    width: 10px;
    height: 10px;
  }

  .recipe-section-dot-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    font-size: 12px;
    font-weight: 700;
    color: #505751;
    transition: max-width 180ms ease, opacity 140ms ease;
  }

  .recipe-section-dot:hover .recipe-section-dot-label,
  .recipe-section-dot:focus-visible .recipe-section-dot-label,
  .recipe-section-dot.is-active .recipe-section-dot-label {
    max-width: 170px;
    opacity: 1;
  }
}
