/* Restaurant detail page — Maritime Modernism, matching main site tokens.
   Depends on css/hero-redesign.css for design tokens (--paper, --ink, etc).
   Linked from generated /restaurants/<id>/index.html pages. */

.rp-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.rp-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- top nav / breadcrumb ---- */

.rp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.rp-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
}
.rp-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.rp-brand { font-weight: 600; letter-spacing: 0.22em; color: var(--ink); }
.rp-crumb { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rp-crumb-sep { opacity: 0.55; }
.rp-crumb-now { color: var(--ink); }

/* ---- hero ---- */

.rp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.55fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.rp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
}
.rp-hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rule-strong);
}
.rp-hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 18px;
  color: var(--ink);
}
.rp-hero-dek {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 24px;
}
.rp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 0 0 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.rp-hero-meta-dot { width: 3px; height: 3px; background: currentColor; border-radius: 999px; opacity: 0.5; }

.rp-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-card);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 24px;
}
.rp-status-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--open);
  box-shadow: 0 0 0 0 rgba(194, 71, 42, 0.45);
  animation: rp-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
.rp-status[data-state="closed"] .rp-status-dot { background: var(--closed); animation: none; box-shadow: none; }
.rp-status[data-state="unknown"] .rp-status-dot { background: var(--ink-mute); animation: none; box-shadow: none; }
.rp-status-label { font-weight: 600; }
.rp-status-detail { color: var(--ink-mute); }
@keyframes rp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(194, 71, 42, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(194, 71, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 71, 42, 0); }
}

.rp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.rp-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
}
.rp-button:hover { background: var(--teal); border-color: var(--teal); }
.rp-button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.rp-button--ghost:hover { background: var(--ink); color: var(--paper); }

.rp-hero-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
}
.rp-hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.rp-hero-figure figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* ---- section frames ---- */

.rp-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}
.rp-section:last-of-type { border-bottom: 0; }
.rp-section-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
  font-weight: 600;
}
.rp-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 28px;
  color: var(--ink);
}
.rp-prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 66ch;
}
.rp-prose p { margin: 0 0 1em; }
.rp-prose p:last-child { margin-bottom: 0; }

/* ---- details (dotted-leader rows) ---- */

.rp-details {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.rp-detail {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule-strong);
  margin: 0;
}
.rp-detail dt {
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}
.rp-detail-dots {
  flex: 1;
  border-bottom: 1px dotted var(--rule-strong);
  align-self: flex-end;
  transform: translateY(-4px);
  margin: 0 4px;
  min-width: 12px;
}
.rp-detail dd {
  flex-shrink: 0;
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  max-width: 60%;
  text-align: right;
}
.rp-detail dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.rp-detail dd a:hover { text-decoration-color: var(--ink); }

/* ---- tag chips ---- */

.rp-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rp-tags li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-card);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* ---- local tip ---- */

.rp-tip {
  background: var(--sea-wash);
  border-left: 3px solid var(--teal);
  padding: 22px 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 70ch;
}
.rp-tip::before {
  content: "Local tip";
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 6px;
  font-weight: 600;
}

/* ---- menu ---- */

.rp-menu-note {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 24px;
  max-width: 60ch;
}
.rp-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.rp-menu-card {
  border: 1px solid var(--rule-strong);
  background: var(--paper-card);
  padding: 22px 22px 18px;
  box-shadow: 0 1px 0 rgba(28, 42, 36, 0.04);
}
.rp-menu-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rp-menu-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rp-menu-item { display: grid; gap: 4px; }
.rp-menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
}
.rp-menu-item-name { color: var(--ink); font-weight: 600; }
.rp-menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--rule-strong);
  align-self: flex-end;
  transform: translateY(-4px);
  margin: 0 2px;
  min-width: 12px;
}
.rp-menu-item-price {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 600;
}
.rp-menu-item-desc {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.rp-menu-more {
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 6px;
  border-top: 1px dotted var(--rule);
  margin-top: 4px;
}

/* ---- footer ---- */

.rp-footer {
  padding: 36px 0 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.rp-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.rp-footer a:hover { border-bottom-color: var(--ink); }

/* ---- sticky mobile action bar ---- */

.rp-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 12px;
  background: var(--paper-card);
  border-top: 1px solid var(--rule-strong);
  z-index: 50;
  box-shadow: 0 -6px 18px rgba(28, 42, 36, 0.07);
}
.rp-sticky-bar .rp-button {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

/* ---- responsive ---- */

@media (max-width: 880px) {
  .rp-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 28px;
  }
  .rp-hero-figure { order: -1; }
  .rp-hero-figure img { aspect-ratio: 4/3; }
  .rp-details { grid-template-columns: 1fr; gap: 0; }
  .rp-section { padding: 32px 0; }
  .rp-sticky-bar { display: flex; }
  .rp-footer { padding-bottom: 120px; }
}

@media (max-width: 480px) {
  .rp-wrap { width: calc(100% - 28px); }
  .rp-nav { font-size: 10px; letter-spacing: 0.14em; }
  .rp-hero-title { font-size: clamp(30px, 9vw, 44px); }
  .rp-detail dd { max-width: 55%; font-size: 13.5px; }
}

/* ---- dark mode tuning ---- */

html.dark .rp-button { background: var(--ink); color: var(--paper); }
html.dark .rp-button--ghost { color: var(--ink); }
html.dark .rp-button:hover { background: var(--teal); color: var(--paper-card); border-color: var(--teal); }
html.dark .rp-status-dot { box-shadow: 0 0 0 0 rgba(224, 123, 85, 0.45); }
html.dark .rp-tip { background: var(--sea-wash); }
html.dark @keyframes rp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 123, 85, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(224, 123, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 123, 85, 0); }
}
html.dark .rp-sticky-bar { background: var(--paper-card); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4); }
