/* Shared layout for Summit Sites sample sites: same format as the main site (floating pill nav, centered one-screen home,
   centered page heads, next-page band, dark footer). Each sample sets its own tokens and fonts in theme.css. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: var(--display-weight, 500); line-height: 1.05; letter-spacing: var(--display-tracking, -0.03em); text-transform: var(--display-case, none); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.label { font-family: var(--body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.soft { color: var(--accent); }
:root { --gutter: max(16px, env(safe-area-inset-left, 0px)); }

/* Floating pill nav */
.bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 4px; width: fit-content; max-width: calc(100% - 2 * var(--gutter)); margin: calc(18px + env(safe-area-inset-top, 0px)) auto 0; background: var(--pill); border: 1px solid var(--line); border-radius: 12px; padding: 5px 5px 5px 14px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: var(--logo-weight, 600); font-size: 1.05rem; letter-spacing: var(--display-tracking, -0.01em); text-transform: var(--display-case, none); margin-right: 16px; white-space: nowrap; }
.logo svg { width: 24px; height: 24px; flex: none; }
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a { text-decoration: none; font-size: 0.88rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.bar nav a:hover { background: rgba(0, 0, 0, 0.05); }
.bar nav a[aria-current="page"] { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.bar nav a.cta { background: var(--accent); color: var(--on-accent); margin-left: 6px; }
.bar nav a.cta:hover { filter: brightness(1.08); }
.bar nav a.cta[aria-current="page"] { box-shadow: none; }
@media (max-width: 640px) {
  .bar { padding-left: 10px; gap: 0; }
  .logo { font-size: 0; margin-right: 4px; gap: 0; }
  .bar nav { gap: 0; }
  .bar nav a { padding: 8px 8px; font-size: 0.8rem; }
  .bar nav a.cta { padding: 8px 10px; margin-left: 2px; }
}

/* Faint arcs behind the top of every page */
.arcs { position: absolute; left: 50%; top: -420px; width: 1600px; height: 700px; transform: translateX(-50%); pointer-events: none; }
.arcs ellipse { fill: none; stroke: var(--arc); stroke-width: 1.2; }

/* One-screen home */
.home { height: 100svh; min-height: 600px; display: grid; grid-template-rows: auto minmax(0, 1fr); position: relative; overflow: hidden; }
.center { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; text-align: center; gap: 20px; padding: 0 var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 500; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 9px; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #3cbf63); }
.tag.closed i { background: var(--faint); }
.home h1 { font-size: clamp(2.4rem, min(5.8vw, 9vh), 5rem); max-width: 13em; }
.sub { color: var(--muted); font-size: clamp(0.98rem, 1.3vw, 1.08rem); max-width: 32em; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn-soft { display: inline-block; background: var(--pill); border: 1px solid var(--line); border-radius: 10px; padding: 12px 20px; font-size: 0.92rem; font-weight: 500; text-decoration: none; text-align: center; white-space: nowrap; }
.btn-soft:hover { background: var(--pill-hover); }
.badge-sample { position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2; font-size: 0.75rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.badge-sample:hover { color: var(--ink); }

/* Inner page head */
.page-head { position: relative; overflow: hidden; }
.page-head .inner { position: relative; z-index: 2; padding: 72px var(--gutter) 48px; max-width: 900px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 16px; }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 14em; }
.page-head p { max-width: 34em; color: var(--muted); font-size: 1.05rem; }
.section { padding: 40px var(--gutter) 72px; max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 20px; }

/* Cards and lists */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.list { display: grid; }
.list .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list .row:last-child { border-bottom: 0; }
.list .row h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
.list .row .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.list .row p { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; }
.list .row .meta { grid-column: 1 / -1; font-size: 0.8rem; color: var(--faint); font-weight: 500; }
.menu-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

.person { display: grid; gap: 12px; align-content: start; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 1.4rem; text-transform: var(--display-case, none); }
.person h3 { font-size: 1.5rem; }
.person .role { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.person p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 0.76rem; font-weight: 500; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }

.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.story .big { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: var(--display-tracking, -0.02em); text-transform: var(--display-case, none); }
.story .copy { display: grid; gap: 16px; }
.story .copy p { color: var(--muted); font-size: 1.05rem; }
.story .sig { font-weight: 600; color: var(--ink) !important; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 4px; }
.facts b { font-family: var(--display); font-size: 2rem; font-weight: var(--display-weight, 500); line-height: 1; }
.facts span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: 0; }
.hours tr.today td { font-weight: 600; }
.hours tr.today td:first-child::after { content: " · today"; color: var(--accent); font-weight: 500; }

form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
textarea { min-height: 84px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.thanks { background: var(--pill); border-radius: 10px; padding: 14px; font-weight: 500; }
.small { font-size: 0.85rem; color: var(--muted); }

/* Next band + footer */
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 48px var(--gutter); border-top: 1px solid var(--line); text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.next b { font-family: var(--display); font-weight: var(--display-weight, 500); text-transform: var(--display-case, none); font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1; letter-spacing: var(--display-tracking, -0.04em); }
.next:hover { background: var(--accent); color: var(--on-accent); }
.next:hover .label { color: inherit; opacity: 0.8; }
.foot { background: var(--foot); color: var(--foot-muted); padding: 40px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 24px 40px; align-items: start; font-size: 0.88rem; }
.foot b { color: #ffffff; font-family: var(--display); font-weight: var(--logo-weight, 600); text-transform: var(--display-case, none); font-size: 1.1rem; }
.foot-brand, .foot-contact { display: grid; gap: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: #ffffff; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-contact { justify-items: end; text-align: right; }
.foot-contact a { color: #ffffff; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot-contact { justify-items: start; text-align: left; } }

/* Flow */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.center, .page-head .inner, main { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
main { animation-delay: 0.08s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .center, .page-head .inner, main { animation: none; }
}

/* Back to Summit Sites (shown on every sample page) */
.back-main { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: 6px; background: #111111; color: #ffffff; font-family: "Inter Tight", "Segoe UI", system-ui, sans-serif; font-size: 0.8rem; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 8px 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }
.back-main:hover { background: #333333; }
/* Photos */
.photo-band { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.photo-band img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0.14; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 50%, var(--bg) 0%, transparent 100%); opacity: 0.7; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--pill); }
@media (max-width: 700px) { .photos { grid-template-columns: 1fr 1fr; } .photos img:nth-child(3) { display: none; } }
.banner { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: 18px; background: var(--pill); margin-bottom: 16px; }
@media (max-width: 700px) { .banner { aspect-ratio: 4 / 3; } }
.story-side { display: grid; gap: 24px; align-content: start; }
.story-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--pill); }