* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f9f9f9;
  line-height: 1.6;
}

/* Force vertical nav layout */

#nav ul {
  display: block;
}

#nav ul li {
  display: block;
}

#nav ul li a {
  display: block;
  padding: 0.75em 1em;
}

/* Desktop font reduction */
@media screen and (min-width: 737px) {

  body, input, select, textarea {
    font-size: 14pt;   /* reduced from 16pt */
  }
  
  h3 {
	font-size: 18pt;
  }

  #nav ul li a {
    font-size: 1.05em;  /* slightly larger nav text */
  }

}

/* Header */
.site-header {
  background: #003366;
  color: white;
  padding: 15px 20px;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* Device filter styling */
.device-filter {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}

/* .filter-btn {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.9em;
  transition: 0.2s ease;
}

.filter-btn:hover {
  background: #eaeaea;
}

.filter-btn.active {
  background: #2e3842;
  color: #fff;
  border-color: #2e3842;
} */

.filter-btn {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.9em;
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.filter-btn:hover {
  background: #eaeaea;
  transform: translateY(-1px);
}

.filter-btn:active {
  transform: translateY(0);
}

.filter-btn.active {
  background: #2e3842;
  color: #fff;
  border-color: #2e3842;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Segmented control container */
.device-filter.segmented {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1em;
}

/* Buttons inside segmented */
.device-filter.segmented .filter-btn {
  border: none;
  background: #f5f5f5;
  padding: 0.5em 1em;
  font-size: 0.9em;
  transition: 0.2s ease;
}

/* Divider between segments */
.device-filter.segmented .filter-btn + .filter-btn {
  border-left: 1px solid #ccc;
}

/* Hover */
.device-filter.segmented .filter-btn:hover {
  background: #eaeaea;
}

/* Active */
.device-filter.segmented .filter-btn.active {
  background: #e8f2ff;
  color: #2a5db0;
  font-weight: 600;
}

/* Mobile */

/* Mobile responsive */
@media screen and (max-width: 736px) {

  #header nav {
    width: 100%;
  }
  .device-filter {
    flex-direction: column;
    gap: 0.5em;
  }
    /* Show hamburger */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  #nav ul li {
    margin: 12px 0;
    text-align: center;
  }

  body {
    font-size: 17px;        /* base size */
    line-height: 1.2;       /* more breathing space */
  }

  h1 { font-size: 1.6em; }
  h2 { font-size: 1.4em; }
  h3 { font-size: 1.2em; }
  h4 { font-size: 1.05em; }

  p, li {
    font-size: 1em;
  }
  table {
    display: block;
    overflow-x: auto; 
    font-size: 0.95em;
  }

/* ===== Mobile Header Typography ===== */

  #logo {
    font-size: 1.2em;   /* smaller logo */
  }

  #nav ul li a {
    font-size: 0.95em;  /* tighter nav links */
  }
  
  #header nav {
    padding: 0 1em;
  }
  
  #main {
    padding: 1.5em;   }

  #main h2 {
    font-size: 1.4em;   }

  #main h3 {
    font-size: 1.1em;   }

  .img-hero, .img-feature, .img-small { max-width: 90%; }
  .section-gap { margin: 1.2em 0; }

}
/* Reduce top/bottom spacing inside cards */
.resource-card h3,
.resource-card h4 {
  margin: 0 0 0.5em 0;
}
.resource-card p { margin: 0 0 0.4em 0;}
.resource-card ul { margin: 0 0 0.4em 1.2em;}
.resource-card table { margin-top: 0.5em;}
.resource-card {
  border: 1px solid #ddd;
  padding: 0.5em 1em;
  margin: 0 0 0.5em 0;
  background: #fafafa;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;

  opacity: 1;
  transform: translateY(0);

  /* REMOVE max-height restriction */
  max-height: none;
  overflow: visible;
}
.resource-card.hidden {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.resource-section-title {
  margin: 0.5em 0 0.75em 0;
}

.resource-section-title.hidden {
  display: none;
  margin-top: 0;
  margin-bottom: 0;

}

.badge {
  display: inline-block;
  cursor: help;
  font-size: 0.7em;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 12px;
  vertical-align: middle;
}

.badge.app {
  background: #f0e6ff;   /* soft pastel purple */
  color: #6a4fb3;
}

.badge.online {
  background: #dff5e8;   /* mint */
  color: #2e7d5b;
}

.badge.download {
  background: #e6ecff;   /* lavender blue */
  color: #3f51b5;
}

.badge.league {
  background: #fff1dc;   /* peach */
  color: #c7772d;
}

.filter-note {
  font-size: 1.05em;
  color: #777;
  margin-bottom: 0.5em;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;

  }

/* Main Content */
.container {
  padding: 20px;
  max-width: 1100px;
  margin: auto;
  background: white;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
}

/* Tables scroll on mobile */
table {
  width: 100%;
  border-collapse: collapse;
}

table td, table th {
  padding: 8px;
  border: 1px solid #ddd;
}

/* ===== MOBILE ENHANCEMENTS ONLY ===== */

/* Responsive images */
#main img {
  max-width: 100%;
  height: auto;
}
.responsive-img {
  width: 50%;
  max-width: 100%;
  height: auto;
}

.table-wrapper {
  overflow-x: auto;
}

/* Improve spacing on small screens */


/* ===== Content + image sizing helpers (additive) ===== */

#main h2 { margin: 0 0 0.6em 0; }
#main h3 { margin: 1.2em 0 0.4em 0; }
#main h4 { margin: 1.0em 0 0.4em 0; }

.section-gap { margin: 2em 0; }

.img-center { display: block; margin: 1em auto; }

.img-hero { width: 100%; max-width: 600px; }
.img-feature { width: 100%; max-width: 480px; }
.img-small { width: 100%; max-width: 240px; }

.cta {
  display: inline-block;
  margin: 0.6em 0;
  padding: 0.65em 1em;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.15);
}
@media screen and (max-width: 736px) {

  #wrapper {
    margin-right: 0 !important;
    width: 100% !important;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
