/* Styles for the generated /rinks/ pages (build_rink_pages.py copies this to public/rinks/rinks.css).
   Colors and nav/footer rules match about.html. */
:root { --primary: #1a3a5c; --accent: #4fc3f7; --accent-dark: #0288d1; --bg: #f0f4f8; --card-bg: #fff; --text: #1a1a2e; --text-light: #5a6a7a; --border: #d0dbe6; --shadow: 0 2px 12px rgba(0,0,0,0.08); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent-dark); }

.rh-header { background: #fff; text-align: center; padding: 1.1rem 1rem; border-bottom: 4px solid var(--primary); }
.rh-wordmark { font-size: 1.8rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.rh-wordmark span { color: var(--accent-dark); }

.top-nav { background: #0d2137; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.nav-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.85rem 1.1rem; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.85rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (min-width: 701px) { .nav-inner { flex-wrap: wrap; justify-content: center; overflow-x: visible; } .nav-link { padding: 0.7rem 0.85rem; } }
@media (max-width: 700px) { .nav-link { padding: 0.75rem 0.8rem; font-size: 0.78rem; } }

.rh-main { max-width: 820px; margin: 1.2rem auto; padding: 0 1rem; }
.rh-crumbs { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.8rem; }
.rh-crumbs a { text-decoration: none; }
.rh-box { background: var(--card-bg); border-radius: 14px; box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.2rem; }
.rh-box h1 { font-size: 1.6rem; color: var(--primary); line-height: 1.25; margin-bottom: 0.4rem; }
.rh-box h2 { font-size: 1.1rem; color: var(--primary); margin: 1.2rem 0 0.6rem; }
.rh-box > h2:first-child { margin-top: 0; }
.rh-lead { margin: 0.6rem 0; }
.rh-muted { color: var(--text-light); font-size: 0.85rem; }
.rh-note { background: #fff8e1; border-left: 4px solid #f9a825; padding: 0.6rem 0.8rem; border-radius: 6px; font-size: 0.88rem; margin: 0.9rem 0; }

.rh-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; margin: 0 0.3rem 0.3rem 0; vertical-align: middle; }
.rh-venue { background: #fff3e0; color: #b45309; }
.rh-ok { background: #e8f5e9; color: #2e7d32; }

.rh-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 1rem 0; }
.rh-facts dt { font-weight: 700; color: var(--text-light); font-size: 0.88rem; }
.rh-facts dd { overflow-wrap: anywhere; }
@media (max-width: 500px) { .rh-facts { grid-template-columns: 1fr; } .rh-facts dd { margin-bottom: 0.4rem; } }

.rh-programs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.4rem; }
.rh-programs li { padding: 0.35rem 0.6rem; border-radius: 8px; font-size: 0.9rem; }
.rh-programs li.yes { background: #e1f5fe; color: var(--primary); font-weight: 600; }
.rh-programs li.yes::before { content: "✓ "; }
.rh-programs li.no { color: #9aa7b4; text-decoration: line-through; }

.rh-list { list-style: none; }
.rh-card { padding: 0.8rem 0; border-top: 1px solid var(--border); }
.rh-card:first-child { border-top: 0; }
.rh-card-name { font-weight: 700; font-size: 1.02rem; text-decoration: none; margin-right: 0.4rem; }
.rh-card-name:hover { text-decoration: underline; }
.rh-tags { margin-top: 0.3rem; }
.rh-tag { display: inline-block; font-size: 0.75rem; background: #eef3f8; color: var(--primary); padding: 0.1rem 0.5rem; border-radius: 6px; margin: 0 0.25rem 0.25rem 0; }

.rh-cities { list-style: none; columns: 3 180px; column-gap: 1.5rem; }
.rh-cities li { break-inside: avoid; padding: 0.15rem 0; }
.rh-cities a { text-decoration: none; }
.rh-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }

.footer { text-align: center; padding: 2rem 1rem; color: var(--text-light); font-size: 0.82rem; border-top: 1px solid var(--border); max-width: 1100px; margin: 2rem auto 0; }
