/*
 * The ways around a year or month page (templates/period.html, web/period_pages.py `ways`): the breadcrumb
 * that is the label above the title (Calgary · 2026 · November), a month's neighbours before "How this page
 * is made", and the topic's months as a grid at the foot. Links only to published pages; a month without one
 * is grey. On top of site.css and period.css (the play's controls are period.css's, not this file's).
 */

.pp-crumbs ol { display: inline; margin: 0; padding: 0; list-style: none; }
.pp-crumbs li { display: inline; }
.pp-crumbs li + li::before { content: " · "; color: var(--muted); }
.pp-crumbs a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pp-crumbs a:hover { text-decoration: underline; }

/* a month's neighbours: the month before on the left, the one after on the right */
.pp-nb {
  display: flex; justify-content: space-between; gap: 12px; margin: 34px 0 0; padding: 6px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pp-nb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.pp-nb a:hover { text-decoration: underline; }

/* the grid: one row a year, newest on top, its twelve months in calendar order */
.pp-grid { margin: 34px 0 0; padding-top: 16px; border-top: 6px solid var(--surface-2); }
.pp-grid h2 { font-size: 18px; margin: 0 0 6px; }
.pp-yr { display: grid; grid-template-columns: 92px 1fr; align-items: start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pp-yr:last-child { border-bottom: 0; }
.pp-yl { font-weight: 650; font-size: 15px; padding-top: 10px; }
.pp-yl a { color: var(--accent); text-decoration: none; }
.pp-yl span { color: var(--text); }
.pp-ms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
@media (min-width: 700px) { .pp-ms { grid-template-columns: repeat(12, 1fr); } }
.pp-m {
  display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 8px;
  font-size: 14px; color: var(--accent); text-decoration: none;
}
a.pp-m:hover { background: var(--surface-2); }
.pp-m.is-none { color: var(--faint); }
.pp-m.pp-here { background: var(--surface-2); color: var(--text); font-weight: 650; }
.pp-yl .pp-here { color: var(--text); }
