/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens: Dark (default) ── */
:root,
[data-theme="dark"] {
  --bg-1: #0d1117;
  --bg-2: #161b22;
  --bg-3: #1c2333;
  --bg-4: #21262d;
  --border: rgba(240,246,252,0.1);
  --border-strong: rgba(240,246,252,0.18);
  --text-1: #e6edf3;
  --text-2: #8b949e;
  --text-3: #6e7681;
  --accent: #f0b429;
  --accent-hover: #f5c842;
  --accent-dim: rgba(240,180,41,0.15);
  --blue: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --map-land: #1f3244;
  --map-land-hover: #2a4a6b;
  --map-visited: #2ea043;
  --map-visited-hover: #3fb950;
  --map-selected: #1f6feb;
  --map-highlighted: #f0b429;
  --map-stroke: #0d1117;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  --bg-1: #f0f4f8;
  --bg-2: #ffffff;
  --bg-3: #f6f8fa;
  --bg-4: #eaeef2;
  --border: #d0d7de;
  --border-strong: #bbc1c9;
  --text-1: #1f2328;
  --text-2: #57606a;
  --text-3: #8c959f;
  --accent: #c8920a;
  --accent-hover: #a07007;
  --accent-dim: rgba(200,146,10,0.12);
  --blue: #0969da;
  --green: #1a7f37;
  --red: #cf222e;
  --map-land: #c8d9e8;
  --map-land-hover: #a8c2d8;
  --map-visited: #1a7f37;
  --map-visited-hover: #2ea043;
  --map-selected: #0969da;
  --map-highlighted: #c8920a;
  --map-stroke: #f0f4f8;
  --shadow: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
}

/* ── Base ── */
html { font-size: 15px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.5;
  transition: background 0.25s, color 0.25s;
}
a { color: var(--blue); text-decoration: none; }
.hidden { display: none !important; }
.small { font-size: 0.8rem; }
.text-muted { color: var(--text-3); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

/* ══════════════════════════════════════
   LOGIN
══════════════════════════════════════ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-1);
}
.login-wrap { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-card {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-globe { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.login-title { font-size: 2rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.5rem; }
.login-subtitle { color: var(--text-2); margin-bottom: 2rem; font-size: 0.95rem; }
.login-error {
  background: rgba(248,81,73,0.15);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.btn-authentik {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #1a1200;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
  justify-content: center;
}
.btn-authentik:hover { background: var(--accent-hover); color: #1a1200; }
.btn-authentik:active { transform: scale(0.98); }
.authentik-icon { width: 20px; height: 20px; }
.login-note { color: var(--text-3); font-size: 0.8rem; margin-top: 1.25rem; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo { font-size: 1.4rem; }
.nav-title { font-weight: 700; font-size: 1.05rem; color: var(--text-1); letter-spacing: 0.01em; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  font-size: 0.875rem;
  color: var(--text-1);
}
.user-avatar {
  width: 26px; height: 26px;
  background: var(--accent);
  color: #1a1200;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { background: var(--bg-3); color: var(--text-1); }
.btn-logout:hover { color: var(--red); border-color: var(--red); }

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.5rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ══════════════════════════════════════
   MAIN GRID
══════════════════════════════════════ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   PANELS
══════════════════════════════════════ */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--accent);
}

/* ── Map ── */
.map-panel { min-height: 520px; display: flex; flex-direction: column; }
.map-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-height: 460px;
}
.map-loading { color: var(--text-3); font-size: 0.875rem; }
.map-container svg { width: 100%; height: auto; max-height: 500px; display: block; }

.country { fill: var(--map-land); stroke: var(--map-stroke); stroke-width: 0.4; cursor: pointer; transition: fill 0.2s; }
.country:hover { fill: var(--map-land-hover); }
.country.visited { fill: var(--map-visited); }
.country.visited:hover { fill: var(--map-visited-hover); }
.country.selected { fill: var(--map-selected); stroke: var(--blue); stroke-width: 1.5; }
.country.highlighted {
  fill: var(--map-highlighted);
  stroke: var(--accent);
  stroke-width: 2;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── Side Col ── */
.side-col { display: flex; flex-direction: column; gap: 1rem; }

/* ── Roll Panel ── */
.roll-panel { padding: 1.25rem; text-align: center; }
.roll-panel .panel-title { margin-bottom: 1.25rem; }
.wheel-wrap { margin: 0 auto 1.25rem; width: fit-content; }
.wheel-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim), var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.wheel-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(240,180,41,0.08), transparent 60%);
}
.wheel-inner {
  position: relative;
  z-index: 1;
  padding: 1rem;
}
.wheel-inner span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  display: block;
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
}
.wheel-ring.spinning { animation: spin 0.25s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.roll-actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Recent Panel ── */
.recent-panel { flex: 1; display: flex; flex-direction: column; }
.recent-list { padding: 0.5rem; flex: 1; overflow-y: auto; max-height: 260px; }
.recent-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.recent-item:hover { background: var(--bg-3); }
.recent-flag { font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
.recent-info { flex: 1; min-width: 0; }
.recent-country { font-size: 0.8rem; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-food { font-size: 0.75rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   ENTRIES SECTION
══════════════════════════════════════ */
.entries-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
.entries-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); }
.entries-controls { display: flex; gap: 0.5rem; }
.filter-input, .sort-select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.filter-input:focus, .sort-select:focus { border-color: var(--accent); }
.filter-input { width: 180px; }

.entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.entry-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
}
.entry-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.entry-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.entry-country-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
}
.entry-score {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  flex-shrink: 0;
}
.entry-score.score-low { background: rgba(248,81,73,0.1); border-color: var(--red); color: var(--red); }
.entry-score.score-mid { background: rgba(240,180,41,0.1); border-color: var(--accent); color: var(--accent); }
.entry-score.score-high { background: rgba(63,185,80,0.1); border-color: var(--green); color: var(--green); }
.entry-food { font-size: 0.875rem; color: var(--text-2); margin-bottom: 0.4rem; }
.entry-meta { font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.65rem; }
.entry-reviewers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.reviewer-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-2);
}
.entry-no-reviews { font-size: 0.75rem; color: var(--text-3); font-style: italic; }
.entry-delete-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 24px; height: 24px;
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.entry-card:hover .entry-delete-btn { opacity: 1; }
.entry-delete-btn:hover { color: var(--red); background: rgba(248,81,73,0.1); }
.entry-delete-btn svg { width: 13px; height: 13px; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #1a1200; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-accent { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-3); color: var(--text-1); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: rgba(248,81,73,0.1); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn-spin { width: 100%; padding: 0.7rem; font-size: 1rem; letter-spacing: 0.03em; }

.empty-state { color: var(--text-3); font-size: 0.875rem; text-align: center; padding: 2rem 1rem; }

/* ══════════════════════════════════════
   MODALS
══════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-card-wide { max-width: 680px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); }
.modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Form ── */
.form-group { margin-bottom: 1rem; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-3); }

/* ── Reviews block ── */
.reviews-block { margin-top: 0.5rem; }
.reviews-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.reviews-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.review-row {
  display: grid;
  grid-template-columns: 1fr 140px 28px;
  gap: 0.5rem;
  align-items: center;
}
.review-score-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.review-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.review-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}
.review-range::-webkit-slider-thumb:hover { background: var(--accent-hover); }
.review-range::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.review-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
  text-align: right;
}
.review-remove {
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  width: 24px; height: 24px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.review-remove:hover { color: var(--red); }
.review-remove svg { width: 14px; height: 14px; }
.reviewer-select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}
.reviewer-select:focus { border-color: var(--accent); }

/* ── Country Modal ── */
.country-entries-list { display: flex; flex-direction: column; gap: 0.75rem; }
.country-entry-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.country-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.country-entry-food { font-weight: 600; color: var(--text-1); }
.country-entry-date { font-size: 0.8rem; color: var(--text-3); }
.country-entry-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.country-entry-reviews { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.review-chip {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.73rem;
  color: var(--text-2);
}
.review-chip span { color: var(--accent); font-weight: 600; }
.country-entry-actions { display: flex; gap: 0.4rem; margin-top: 0.65rem; }

/* ── Upcoming Panel ── */
.upcoming-panel { display: flex; flex-direction: column; }
.upcoming-list { padding: 0.5rem; overflow-y: auto; max-height: 220px; }
.upcoming-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
  background: var(--bg-3);
}
.upcoming-flag { font-size: 1.2rem; flex-shrink: 0; }
.upcoming-info { flex: 1; min-width: 0; }
.upcoming-country { font-size: 0.85rem; font-weight: 600; color: var(--text-1); }
.upcoming-meta { font-size: 0.75rem; color: var(--text-2); margin-top: 0.1rem; }
.upcoming-when {
  color: var(--text-3);
  font-size: 0.72rem;
  margin-left: 0.25rem;
}
.upcoming-when.upcoming-soon { color: var(--accent); font-weight: 600; }
.upcoming-actions { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.upcoming-del {
  width: 26px; height: 26px;
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.upcoming-del:hover { color: var(--red); }
.upcoming-del svg { width: 13px; height: 13px; }

/* ── Tooltip ── */
.tooltip {
  position: fixed;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 1000;
  max-width: 220px;
  box-shadow: var(--shadow);
}
.tooltip-title { font-weight: 700; margin-bottom: 0.25rem; }
.tooltip-line { color: var(--text-2); margin: 0.1rem 0; }
.tooltip-score { color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .stats-bar { gap: 0; }
  .stat-item { padding: 0 1.2rem; }
  .side-col { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .entries-head { flex-direction: column; align-items: flex-start; }
  .topnav { padding: 0 1rem; }
  .main-grid, .entries-section { padding-left: 0.75rem; padding-right: 0.75rem; }
}
