/* ============================================
   venture4wd.com — Static Site Styles
   ============================================ */

/* --- Theme Variables --- */
:root {
  color-scheme: light;

  /* Colors */
  --color-accent: #c8632b;
  --color-accent-hover: #a84f1f;
  --color-bg: #ffffff;
  --color-bg-subtle: #f9f9f9;
  --color-bg-subtle-hover: #f5f5f5;
  --color-bg-widget: #f2f2f2;
  --color-bg-warm: #faf6f3;
  --color-bg-chrome: #1f1f1f;
  --color-bg-nav: #ffffff;
  --color-text: #757575;
  --color-text-strong: #555555;
  --color-text-on-dark: #ffffff;
  --color-heading: #4d4d4d;
  --color-meta: #9d9d9d;
  --color-nav-text: #4d4d4d;
  --color-border: #d0d0d0;
  --color-border-light: #eeeeee;
  --color-border-pagination: #dddddd;
  --color-icon-folder: #1e73be;
  --color-widget-title-bg: #949494;

  /* Layout */
  --max-width-site: 1200px;

  /* Typography */
  --letter-spacing-heading: .055em;
  --letter-spacing-nav: .12em;

  /* Separators */
  --separator-weight: 3px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-accent: #d4793e;
  --color-accent-hover: #e08a4f;
  --color-bg: #1e1e1e;
  --color-bg-subtle: #252525;
  --color-bg-subtle-hover: #2e2e2e;
  --color-bg-widget: #252525;
  --color-bg-warm: #2a2218;
  --color-bg-chrome: #111111;
  --color-bg-nav: #1a1a1a;
  --color-text: #b0b0b0;
  --color-text-strong: #c8c8c8;
  --color-text-on-dark: #ffffff;
  --color-heading: #e0e0e0;
  --color-meta: #808080;
  --color-nav-text: #d0d0d0;
  --color-border: #3a3a3a;
  --color-border-light: #333333;
  --color-border-pagination: #3a3a3a;
  --color-icon-folder: #4a9ede;
  --color-widget-title-bg: #4a4a4a;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7em;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s, color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

p a {
  color: var(--color-accent);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 13px;
  color: var(--color-heading);
}

h1 {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-heading);
}

h2 {
  font-size: 35px;
  line-height: 1.3em;
}

h3 {
  font-family: "Roboto Slab", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.5;
}

h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

h3 a:hover {
  color: var(--color-accent-hover);
}

h4 {
  font-family: "Roboto Slab", serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.3em;
  margin-bottom: 15px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin-bottom: 1em;
}

.separator {
  border-bottom: var(--separator-weight) solid var(--color-border);
  height: var(--separator-weight);
  margin-bottom: 30px;
}

/* --- Layout --- */
.site-container {
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 0;
}

.site-container.has-sidebar {
  display: flex;
  gap: 0;
}

.site-container.has-sidebar .content-area {
  flex: 0 0 70%;
  max-width: 70%;
  padding-right: 20px;
}

.site-container.has-sidebar .sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  padding: 20px 20px 20px 0;
}

.site-container.no-sidebar .content-area {
  width: 100%;
}

/* --- Header --- */
.site-header {
  background: var(--color-bg-chrome) url('https://assets.rockpile.dev/images/site/orangie_dust_banner.jpg') center center / cover no-repeat;
  padding: 0;
}

.inside-header {
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 150px 20px 40px 20px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.main-title a {
  display: block;
}

.header-image {
  width: 350px;
  max-width: 100%;
}

.site-description {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* --- Navigation --- */
.main-navigation {
  background: var(--color-bg-nav);
  z-index: 1000;
}

.inside-navigation {
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-nav {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.menu-item a {
  display: block;
  padding: 15px 20px;
  color: var(--color-nav-text);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-nav);
  transition: color 0.2s;
}

.menu-item a:hover,
.menu-item.current-menu-item a {
  color: var(--color-nav-text);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  align-items: center;
  gap: 10px;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-nav);
  color: var(--color-nav-text);
}

.menu-toggle .menu-bar-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-nav-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-nav-text);
  transition: color 0.2s;
}

.theme-toggle:hover {
  color: var(--color-accent);
}

.icon-darkmode {
  width: 22px;
  height: 22px;
}

/* Slideout navigation */
.slideout-navigation {
  position: fixed;
  top: 0;
  left: -265px;
  width: 265px;
  height: 100%;
  background: var(--color-bg-nav);
  z-index: 10000;
  overflow-y: auto;
  transition: left 0.3s ease;
}

.slideout-navigation.active {
  left: 0;
}

.slideout-inner {
  padding: 20px 0;
}

.slideout-exit {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  color: var(--color-nav-text);
}

.slideout-exit svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.slideout-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slideout-nav .menu-item a {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.slideout-nav .menu-item:first-child a {
  border-top: 1px solid var(--color-border-light);
}

.slideout-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.slideout-overlay.active {
  display: block;
}

/* --- Content Containers --- */
.content-area article,
.content-area .page-content {
  background: var(--color-bg);
  padding: 20px 20px 60px;
}

.content-area h2 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-heading);
  margin-bottom: 5px;
}

.page-title {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-heading);
}

.page-content a {
  color: var(--color-accent);
}

.wp-block-embed.youtube-embed {
  margin-bottom: 30px;
}

.wp-block-embed .embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.wp-block-embed .embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Home Post Cards --- */
.home-post-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.home-post-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-post-card .card-image {
  flex: 0 0 350px;
}

.home-post-card .card-image img {
  width: 350px;
  height: 233px;
  object-fit: cover;
}

.home-post-card .card-content {
  flex: 1;
}

.home-post-card .card-meta {
  font-size: 15px;
  color: var(--color-meta);
}

.home-post-card .card-meta .author {
  font-weight: 700;
}

.home-post-card .card-meta .meta-sep {
  margin: 0 5px;
}

.home-post-card .card-excerpt {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
}

.home-post-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
}

.home-post-card .read-more {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.home-post-card .read-more:hover {
  color: var(--color-accent);
}

/* --- Blog Listing & Pagination --- */
.blog-listing {
  background: var(--color-bg);
  padding: 20px 20px 40px;
}

.pagination {
  text-align: center;
  padding: 30px 0 10px;
}

.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: var(--color-bg);
  color: var(--color-heading);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  border: 1px solid var(--color-border-pagination);
}

a.page-numbers:hover {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
  border-color: var(--color-accent);
}

.page-numbers.current {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
  border-color: var(--color-accent);
}

.paging-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0 10px;
  font-size: 14px;
  gap: 10px;
}

.paging-navigation .nav-previous,
.paging-navigation .nav-next {
  white-space: nowrap;
}

.paging-navigation .nav-previous a,
.paging-navigation .nav-next a {
  color: var(--color-text);
  text-decoration: none;
}

.paging-navigation .nav-previous a:hover,
.paging-navigation .nav-next a:hover {
  color: var(--color-accent);
}

.paging-navigation .nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.paging-navigation .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Single Post --- */
.entry-title {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-heading);
  line-height: 1.2em;
  margin-bottom: 8px;
}

.entry-meta {
  font-size: 13px;
  color: var(--color-meta);
  margin-bottom: 15px;
}

.entry-meta .author {
  font-weight: 700;
}

.entry-meta .meta-sep {
  margin: 0 5px;
}

.post-featured-image {
  margin-bottom: 25px;
}

.post-featured-image img {
  width: 100%;
}

.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content h2 {
  margin-top: 1.5em;
}

.entry-content h3 {
  margin-top: 1.2em;
}

.entry-content img {
  margin: 1em 0;
}

.entry-content figure {
  margin: 1.5em 0;
}

.entry-content figcaption {
  font-size: 14px;
  color: var(--color-meta);
  text-align: center;
  margin-top: 5px;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 10px 20px;
  margin: 1em 0;
  font-style: italic;
  color: var(--color-text-strong);
  background: var(--color-bg-warm);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1em;
}

/* Gallery */
.static-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 1.5em 0;
}

.static-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

/* --- Sidebar & Widgets --- */
.sidebar .widget {
  background: var(--color-bg-widget);
  padding: 0;
  margin-bottom: 30px;
}

.sidebar .widget-title {
  font-size: larger;
  color: var(--color-text-on-dark);
  text-transform: uppercase;
  margin-bottom: 15px;
  background-color: var(--color-widget-title-bg);
  line-height: 1;
  padding: 10px 20px;
  letter-spacing: var(--letter-spacing-heading);
}

.sidebar .mapkind-promo .promo-description {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 0 20px;
}

.sidebar .mapkind-promo .promo-detail {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  padding: 0 20px 20px;
}

.sidebar .mapkind-promo .promo-detail a {
  color: var(--color-text);
}

.sidebar .mapkind-promo .promo-detail a:hover {
  color: var(--color-accent);
}

/* Email signup widget */
.sidebar .email-signup {
  background: url('https://assets.rockpile.dev/images/site/mkgps_column_02-scaled.jpg') center top / cover no-repeat;
  padding: 0;
  position: relative;
}

.sidebar .email-signup .signup-overlay {
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(77, 77, 77));
  padding: 290px 0 0;
}

.sidebar .email-signup .signup-heading {
  font-family: "Architects Daughter", cursive;
  font-size: 30px;
  color: var(--color-text-on-dark);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-heading);
  text-align: center;
  margin-bottom: 0;
  padding: 0 16px;
}

.sidebar .signup-form {
  padding: 10px 20px 30px 20px;
}

.sidebar .signup-form .form-intro {
  font-size: 15px;
  color: var(--color-text-on-dark);
  line-height: 1.6;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 30px;
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: none;
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  color: var(--color-heading);
  background: var(--color-bg);
  border-radius: 0;
  line-height: 1.5;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--color-heading);
}

.signup-form button {
  width: 100%;
  padding: 12px 15px;
  background: var(--color-accent);
  color: var(--color-text-on-dark);
  border: none;
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.signup-form button:hover {
  background: var(--color-accent-hover);
}

.form-notice {
  font-family: "Roboto Slab", serif;
  font-size: 13px;
  color: var(--color-text-on-dark);
  margin-top: 20px;
  margin-bottom: 0;
  text-align: center;
  padding: 0 40px;
  line-height: 1.4;
}

.form-notice a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Signup feedback messages */
.signup-message {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.signup-message-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 8px;
  padding: 18px 20px;
  width: 100%;
  box-sizing: border-box;
}

.signup-success .signup-message-box {
  background: rgba(34, 120, 58, 0.92);
}

.signup-error .signup-message-box {
  background: rgba(162, 48, 48, 0.92);
}

.signup-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-text-on-dark);
}

.signup-message-content {
  flex: 1;
  min-width: 0;
}

.signup-message-text {
  font-size: 14px;
  color: var(--color-text-on-dark);
  line-height: 1.55;
  margin: 0;
}

.signup-dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-text-on-dark);
  font-family: "Roboto Slab", serif;
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: border-color 0.3s;
}

.signup-dismiss:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

/* --- GPX File Browser --- */
.gpx-browser {
  max-width: var(--max-width-site);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

.gpx-about {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--color-bg-subtle);
  border-left: 4px solid var(--color-accent);
}

.gpx-about h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.gpx-about h4 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  margin: 15px 0 5px 0;
  font-size: 16px;
}

.gpx-about p { margin: 0 0 10px 0; }

.gpx-about ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.gpx-about li { margin-bottom: 3px; }

.gpx-legend { margin-top: 10px; }

.gpx-section {
  margin-bottom: 4px;
}

.gpx-folder {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.15s;
}

.gpx-folder:hover {
  background-color: var(--color-bg-subtle-hover);
}

.gpx-volume .gpx-folder-name {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-heading);
}

.gpx-arrow {
  display: inline-block;
  width: 16px;
  font-size: 10px;
  color: var(--color-icon-folder);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.gpx-folder[data-expanded="true"] > .gpx-arrow {
  transform: rotate(90deg);
}

.gpx-folder-icon {
  margin: 0 8px 0 4px;
  font-size: 16px;
  flex-shrink: 0;
}

.gpx-folder-name {
  font-weight: 600;
  color: var(--color-heading);
  flex-grow: 1;
}

.gpx-count {
  font-size: 12px;
  color: var(--color-meta);
  margin-left: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gpx-children {
  padding-left: 24px;
}

.gpx-file {
  display: flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
}

.gpx-file:hover {
  background-color: var(--color-bg-warm);
}

.gpx-file-icon {
  margin: 0 8px 0 4px;
  font-size: 14px;
  flex-shrink: 0;
}

.gpx-file a {
  color: var(--color-text);
  text-decoration: underline;
  flex-grow: 1;
}

.gpx-file a:hover {
  color: var(--color-accent);
}

.gpx-filename {
  color: var(--color-heading);
  font-weight: 600;
}

.gpx-label {
  color: var(--color-meta);
  font-weight: 400;
}

.gpx-file a:hover .gpx-filename,
.gpx-file a:hover .gpx-label {
  color: var(--color-accent);
}

.gpx-size {
  font-size: 12px;
  color: var(--color-meta);
  margin-left: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gpx-subfolder {
  margin-left: 0;
}

.gpx-episode {
  margin-bottom: 2px;
}

/* --- Videos --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.video-grid-container {
  margin: 0 0 3rem 0;
}

.video-item {
  background: var(--color-bg);
  overflow: hidden;
}

.video-item .video-thumbnail {
  display: block;
  position: relative;
}

.video-item .video-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: opacity 0.3s;
}

.video-item .video-thumbnail:hover img {
  opacity: 0.85;
}

.video-item .video-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: var(--color-text-on-dark);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-item .video-info {
  padding: 10px 0;
}

.video-item .video-title {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.4;
  margin-bottom: 5px;
}

.video-item .video-title a {
  color: var(--color-heading);
}

.video-item .video-title a:hover {
  color: var(--color-accent);
}

.video-item .video-date {
  font-size: 13px;
  color: var(--color-meta);
  margin-bottom: 5px;
}

.video-item .video-description {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
}

/* Playlist headers */
.playlist-header {
  margin-bottom: 30px;
}

.playlist-title {
  color: var(--color-heading);
}

.playlist-description {
  color: var(--color-text);
}

/* --- Pages --- */

/* Confirmed page */
.confirmed-welcome {
  margin-bottom: 30px;
}

/* About page */
.about-body {
  margin-bottom: 50px;
}

.about-highlight {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--color-bg-subtle);
  border-left: 4px solid var(--color-accent);
}

.about-highlight p {
  margin: 0;
  font-style: italic;
  color: var(--color-text-strong);
}

/* 404 page */
.error-404-content {
  text-align: center;
  padding: 60px 20px;
}

.error-404-content .entry-title {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.error-404-content .entry-content p {
  font-size: 1.1em;
  margin-bottom: 1em;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-chrome);
  color: var(--color-meta);
  text-align: center;
  padding: 30px 40px;
  margin-top: 0;
}

.site-footer .copyright {
  font-size: 13px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1200px) {
  .site-container {
    padding: 0;
  }

  .site-container.has-sidebar .content-area {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  /* Sidebar stacks below content */
  .site-container.has-sidebar {
    flex-direction: column;
  }

  .site-container.has-sidebar .content-area,
  .site-container.has-sidebar .sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .site-container.has-sidebar .sidebar {
    padding: 0 20px;
  }

  /* Header */
  .inside-header {
    padding: 130px 15px 25px 15px;
  }

  .site-branding {
    align-items: center;
  }

  .site-description {
    font-size: 14px;
  }

  /* Post body headings reduce at tablet */
  .entry-content h2 {
    font-size: 28px;
  }

  /* Videos grid */
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* GPX browser */
  .gpx-children { padding-left: 16px; }
  .gpx-folder { padding: 10px 8px; }
  .gpx-file { padding: 6px 8px; }
  .gpx-count { display: none; }
  .gpx-volume .gpx-folder-name { font-size: 16px; }
}

@media (max-width: 767px) {
  /* Navigation - hamburger appears */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-nav.toggled {
    display: flex;
  }

  .inside-navigation {
    flex-wrap: wrap;
  }

  .menu-item a {
    padding: 12px 20px;
    border-top: 1px solid var(--color-border-light);
  }

  /* Homepage post cards stack */
  .home-post-card {
    flex-direction: column;
  }

  .home-post-card .card-image {
    flex: none;
  }

  .home-post-card .card-image img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .site-description {
    font-size: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Discord community widget */
.sidebar .discord-community .discord-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 20px 5px 20px;
  margin-bottom: 10px;
}

.sidebar .discord-community .discord-logo {
  max-width: 100%;
  height: auto;
}

.sidebar .discord-community .discord-headline {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.sidebar .discord-community .discord-headline a {
  color: var(--color-accent);
  text-decoration: none;
}

.sidebar .discord-community .discord-logo-link {
  display: block;
  flex: 0 0 33%;
  max-width: 33%;
}

.sidebar .discord-community .discord-description {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  padding: 0 20px 20px;
}
