/* MRX - minimal styles ported from the Hugo site */
:root { --navbar-height: 60px; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1a1a1a; background: #fff; font-size: 16px; line-height: 1.5; }
a { color: #222; }

.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2em; height: var(--navbar-height);
  background: #fff; border-bottom: 1px solid #eee;
}
.navbar-left, .navbar-right { display: flex; align-items: center; gap: 1.5em; }
.navbar-name { font-weight: 700; font-size: 1.1em; text-decoration: none; color: #1a1a1a; letter-spacing: 0.02em; }
.navbar-module { font-size: 0.9em; color: #888; text-decoration: none; padding: 0.3em 0; }
.navbar-module.active, .navbar-module:hover { color: #1a1a1a; }
.navbar-module.active { border-bottom: 2px solid #1a1a1a; }
.navbar-user { color: #888; font-size: 0.85em; }
.navbar-link { font-size: 0.85em; color: #888; text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.navbar-link:hover { color: #1a1a1a; }
.linkish { padding: 0 !important; }

.dashboard-container { max-width: 1400px; margin: 0 auto; padding: calc(var(--navbar-height) + 2em) 2em 4em; margin-left: 240px; transition: margin-left 0.15s ease; }
.sidebar-collapsed .dashboard-container { margin-left: auto; }

/* Sidebar */
.sidebar { position: fixed; top: var(--navbar-height); left: 0; width: 240px; height: calc(100vh - var(--navbar-height)); background: #fff; border-right: 1px solid #e0e0e0; overflow-y: auto; z-index: 5; }
.sidebar-nav { display: flex; flex-direction: column; padding: 1em 0; min-height: 100%; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #e0e0e0; }
.sidebar-link { display: block; padding: 0.6em 1.2em; font-size: 0.85em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #1a1a1a; text-decoration: none; }
.sidebar-link:hover { background: #f5f5f5; }
.sidebar-section { border-bottom: 1px solid #e0e0e0; }
.sidebar-sublink { display: block; padding: 0.35em 1.2em 0.35em 2.2em; font-size: 0.78em; color: #555; text-decoration: none; }
.sidebar-sublink:hover { background: #f5f5f5; color: #1a1a1a; }
.sidebar-active { background: #e8f0fe; color: #1a73e8; font-weight: 600; }
details.sidebar-section > summary, details.sidebar-subsection > summary { cursor: pointer; list-style: none; }
details.sidebar-section > summary::-webkit-details-marker, details.sidebar-subsection > summary::-webkit-details-marker { display: none; }
details.sidebar-section > summary::after { content: '›'; float: right; margin-right: 1.2em; transition: transform 0.15s ease; }
details.sidebar-section[open] > summary::after { transform: rotate(90deg); }
details.sidebar-subsection > summary::after { content: '›'; float: right; margin-right: 1.2em; transition: transform 0.15s ease; }
details.sidebar-subsection[open] > summary::after { transform: rotate(90deg); }
.sidebar-subsublink { display: block; padding: 0.3em 1.2em 0.3em 3.4em; font-size: 0.75em; color: #777; text-decoration: none; }
.sidebar-subsublink:hover { background: #f5f5f5; color: #1a1a1a; }
.sidebar-toggle { background: none; border: 1px solid #e0e0e0; font-size: 1em; cursor: pointer; color: #1a1a1a; padding: 0.3em 0.6em; font-family: inherit; }
.sidebar-toggle:hover { border-color: #1a1a1a; }
.sidebar-collapsed .sidebar { display: none; }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
.sidebar { z-index: 5; }

@media (max-width: 800px) { .dashboard-container { margin-left: auto; } .sidebar { display: none; } }
.dashboard-title { font-size: 2em; margin: 0 0 0.2em; font-weight: 600; letter-spacing: -0.02em; }
.dashboard-subtitle { color: #888; margin: 0 0 2em; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; }
@media (max-width: 800px) { .dashboard-grid { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 1.5em; }
.card h2 { font-size: 0.85em; text-transform: uppercase; color: #888; letter-spacing: 0.08em; margin: 0 0 1em; font-weight: 600; }

.overview-stats { display: flex; flex-wrap: wrap; gap: 2em; }
.stat { display: flex; flex-direction: column; gap: 0.2em; }
.stat-value { font-size: 1.8em; font-weight: 600; color: #1a1a1a; letter-spacing: -0.02em; }
.stat-label { font-size: 0.75em; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.overview-note { margin-top: 1.5em; font-size: 0.75em; color: #aaa; font-style: italic; }

.tracker-row { display: flex; justify-content: space-between; align-items: center; padding: 0.3em 0; font-size: 0.9em; }
.tracker-row.sub { padding-left: 1em; }
.tracker-label { color: #666; }

.pill { display: inline-block; padding: 0.15em 0.7em; border-radius: 10px; font-size: 0.7em; background: #f2f2f2; color: #666; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.pill.approved { background: #e8f0e8; color: #4a7a4a; }
.pill.drafting { background: #def; color: #36a; }
.pill.under-review { background: #fed; color: #c83; }
.pill.not-started { background: #f5f5f5; color: #999; }

.post-content table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
.post-content th, .post-content td { text-align: left; padding: 0.6em 0.5em; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.post-content th { font-weight: 600; font-size: 0.75em; text-transform: uppercase; color: #888; letter-spacing: 0.05em; }
.table-scroll { overflow-x: auto; }

.quick-links { list-style: none; padding: 0; margin: 0; }
.quick-links li { padding: 0.5em 0; border-bottom: 1px solid #f5f5f5; font-size: 0.9em; color: #666; }
.quick-links a { font-weight: 500; }

/* Login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #fafafa; }
.login-box { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 2.5em; width: 100%; max-width: 360px; }
.login-box h1 { margin: 0 0 0.3em; font-weight: 700; font-size: 2em; }
.login-sub { margin: 0 0 2em; color: #888; font-size: 0.9em; }
.login-box form { display: flex; flex-direction: column; gap: 1em; }
.login-box label { display: flex; flex-direction: column; font-size: 0.8em; color: #888; text-transform: uppercase; letter-spacing: 0.05em; gap: 0.4em; }
.login-box input { padding: 0.7em; border: 1px solid #ddd; border-radius: 4px; font-size: 1em; font-family: inherit; }
.login-box input:focus { outline: none; border-color: #1a1a1a; }
.login-box button { padding: 0.8em; background: #1a1a1a; color: #fff; border: none; border-radius: 4px; font-size: 1em; cursor: pointer; font-family: inherit; margin-top: 0.5em; }
.login-box button:hover { background: #333; }
.form-error { color: #c33; font-size: 0.85em; padding: 0.5em; background: #fee; border-radius: 4px; }
