/* === Sakura Park — Shared Layout Components === */

/* ── Top bar ── */
.topbar {
  background: var(--text);
  color: var(--bg);
  padding: 14px var(--page-padding);
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #2a2a2a;
}
.topbar .logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bg);
  text-decoration: none;
}
.topbar .logo .mark {
  width: 18px;
  height: 18px;
  position: relative;
}
.topbar .logo .mark::before,
.topbar .logo .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sakura);
  border-radius: 60% 40% 60% 40% / 50%;
}
.topbar .logo .mark::after {
  transform: rotate(45deg);
  opacity: 0.6;
  background: var(--sakura-soft);
}
.topbar .crumb { color: var(--dim); font-size: 13px; }
.topbar .crumb a { color: var(--dim); text-decoration: none; }
.topbar .crumb a:hover { color: var(--bg); }
.topbar .crumb .sep { margin: 0 10px; opacity: 0.5; }
.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--dim);
}
.topbar .right .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura), #a04566);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* ── Sub-nav tabs ── */
.subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  gap: 4px;
}
.subnav button {
  background: transparent;
  border: 0;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.subnav button:hover { color: var(--text); }
.subnav button.active {
  color: var(--text);
  border-bottom-color: var(--sakura);
}
.subnav button .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: inherit;
  opacity: 0.5;
}
.subnav .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.subnav .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Page head ── */
.pagehead {
  padding: 40px var(--page-padding) 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: 0 auto;
}
.pagehead .title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pagehead .mono { margin-bottom: 4px; }
.pagehead h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.pagehead h1 em { font-style: italic; color: var(--sakura); }
.pagehead .stats { display: flex; gap: 32px; }
.pagehead .stats .s {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}
.pagehead .stats .s .num {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}
.pagehead .stats .s .num.accent { color: var(--sakura); }
.pagehead .stats .s .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Views */
.view { display: none; }
.view.active { display: block; }

@media (max-width: 800px) {
  .pagehead {
    padding: 28px var(--page-padding) 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
