/* =============================================================
   ABC PLAYGROUND — Master Stylesheet
   Mobile-first. Breakpoints: 480px | 768px | 1024px | 1200px
   ============================================================= */

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

:root {
  /* Subject colors */
  --math-color:       #2196c4;
  --math-light:       #e8f4fb;
  --ela-color:        #5cb85c;
  --ela-light:        #eaf6ea;
  --science-color:    #c8b800;
  --science-light:    #faf8e0;
  --social-color:     #e6a800;
  --social-light:     #fdf5d9;
  --arts-color:       #e07090;
  --arts-light:       #fdeef3;
  --grades-color:     #9b6bbf;
  --grades-light:     #f3eefb;

  /* UI */
  --white:            #ffffff;
  --bg:               #f4f5f7;
  --border:           #d0d0d0;
  --text:             #222222;
  --text-muted:       #666666;
  --link:             #2196c4;
  --free-yellow:      #f0b800;

  /* Ad slot colors */
  --ad-yellow-bg:     #f9c840;
  --ad-yellow-border: #d4a800;
  --ad-yellow-text:   #7a5f00;
  --ad-green-bg:      #b5d96a;
  --ad-green-border:  #8aaf30;
  --ad-green-text:    #3a5a00;

  /* Layout */
  --max-width:        1200px;
  --header-h:         60px;
  --nav-h:            42px;
  --sidebar-w:        215px;
  --ad-col-w:         160px;
  --radius:           6px;
  --shadow:           0 2px 8px rgba(0,0,0,.10);
  --shadow-hover:     0 6px 20px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }


/* ── UTILITY ────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.free-label { color: var(--free-yellow); font-family: 'Fredoka One', cursive; }


/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Fredoka One', cursive;
  font-size: 1.9rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo .l-a { color: #e53935; }
.logo .l-b { color: #43a047; }
.logo .l-c { color: #1e88e5; }
.logo .l-text {
  color: #555;
  font-size: 1.4rem;
  margin-left: 5px;
  /* hide on very small screens */
}

/* Search */
.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}
.search-form input {
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 0.88rem;
  font-family: 'Nunito', sans-serif;
  width: 180px;
}
.search-form button {
  border: none;
  border-left: 1px solid var(--border);
  background: var(--white);
  padding: 7px 11px;
  cursor: pointer;
  color: #555;
  font-size: 1rem;
  transition: background .15s;
}
.search-form button:hover { background: #f0f0f0; }

/* Mobile: hide logo text, shrink search */
@media (max-width: 479px) {
  .logo .l-text { display: none; }
  .logo { font-size: 1.6rem; }
  .search-form input { width: 120px; }
}


/* =============================================================
   NAVIGATION (subject tabs)
   ============================================================= */
.site-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 199;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;          /* scrollable on mobile */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;     /* hide scrollbar Firefox */
  
  display: flex;
  justify-content: center;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-list {
  display: flex;
  min-width: max-content;    /* don't wrap; let it scroll */
  
  max-width: 1200px;
  width: 100%;
}

.nav-list li a {
  display: block;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: background .15s;
  text-decoration: none;
}
.nav-list li:first-child a { border-left: 1px solid var(--border); }
.nav-list li a:hover { background: #f0f0f0; text-decoration: none; }

/* Active states per subject */
.nav-list li.nav-math.active    a { background: var(--math-color);    color: #fff; }
.nav-list li.nav-ela.active     a { background: var(--ela-color);     color: #fff; }
.nav-list li.nav-science.active a { background: var(--science-color); color: #fff; }
.nav-list li.nav-social.active  a { background: var(--social-color);  color: #fff; }
.nav-list li.nav-arts.active    a { background: var(--arts-color);    color: #fff; }
.nav-list li.nav-grades.active  a { background: var(--grades-color);  color: #fff; }

@media (min-width: 768px) {
  .nav-list li a { padding: 10px 26px; font-size: 0.92rem; }
}


/* =============================================================
   PAGE WRAPPER — 3-column layout
   ============================================================= */
.page-wrap {
  display: flex;
  justify-content: center;
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 0;
  gap: 0;
  align-items: flex-start;
}

/* Ad columns — hidden by default, shown on desktop */
.ad-col {
  width: var(--ad-col-w);
  flex-shrink: 0;
  display: none;          /* mobile: hidden */
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}

@media (min-width: 1060px) {
  .ad-col--right { display: flex; }   /* only show right ad column */
}

/* Center area */
.center-col {
  flex: 1;
  min-width: 0;           /* CRITICAL: prevents flex overflow */
  padding: 0;
}





/* On mobile, remove padding when no ad cols */
/*
@media (max-width: 1059px) {
  .center-col { padding: 0 6px; }
}
*/


/* =============================================================
   AD SLOTS
   ============================================================= */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.5;
  flex-shrink: 0;
}

/* Yellow (right column) */
.ad-slot--yellow {
  background: var(--ad-yellow-bg);
  border: 2px dashed var(--ad-yellow-border);
  color: var(--ad-yellow-text);
}

/* Green (left sidebar below nav) */
.ad-slot--green {
  background: var(--ad-green-bg);
  border: 2px dashed var(--ad-green-border);
  color: var(--ad-green-text);
}

.ad-160x600 { width: 160px; height: 600px; }
.ad-300x600 { width: 300px; height: 600px; }
.ad-300x250 { width: 300px; height: 250px; }


/* =============================================================
   INNER LAYOUT — sidebar + content
   ============================================================= */
.inner-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

/* Sidebar — hidden on mobile, shown tablet+ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .sidebar { display: block; }
}

/* Sidebar box */
.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-title {
  padding: 9px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--white);
}

/* Subject-specific sidebar headers */
.sidebar-title--math    { background: var(--math-color); }
.sidebar-title--ela     { background: var(--ela-color); }
.sidebar-title--science { background: var(--science-color); }
.sidebar-title--social  { background: var(--social-color); }
.sidebar-title--arts    { background: var(--arts-color); }
.sidebar-title--grades  { background: var(--grades-color); }

.sidebar-list li a {
  display: block;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text);
  border-bottom: 1px solid #ebebeb;
  transition: background .12s;
  text-decoration: none;
}
.sidebar-list li a:hover { background: var(--math-light); color: var(--math-color); text-decoration: none; }
.sidebar-list li.active > a { background: var(--math-light); color: var(--math-color); }
.sidebar-list li:last-child a { border-bottom: none; }

/* Subject-tinted hover/active */
.sidebar--ela     .sidebar-list li a:hover,
.sidebar--ela     .sidebar-list li.active > a { background: var(--ela-light); color: var(--ela-color); }
.sidebar--science .sidebar-list li a:hover,
.sidebar--science .sidebar-list li.active > a { background: var(--science-light); color: var(--science-color); }
.sidebar--social  .sidebar-list li a:hover,
.sidebar--social  .sidebar-list li.active > a { background: var(--social-light); color: var(--social-color); }
.sidebar--arts    .sidebar-list li a:hover,
.sidebar--arts    .sidebar-list li.active > a { background: var(--arts-light); color: var(--arts-color); }
.sidebar--grades  .sidebar-list li a:hover,
.sidebar--grades  .sidebar-list li.active > a { background: var(--grades-light); color: var(--grades-color); }

/* Subtopics (indented under expanded grade) */
.subtopic-list li a {
  padding: 5px 14px 5px 26px;
  font-weight: 400;
  font-size: 0.81rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f2f2f2;
  display: block;
  transition: background .12s;
  text-decoration: none;
}
.subtopic-list li a:hover { color: var(--math-color); background: var(--math-light); text-decoration: none; }
.subtopic-list li.active a { color: var(--math-color); font-weight: 700; }


/* =============================================================
   CONTENT AREA
   ============================================================= */
.content-area { flex: 1; min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.80rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 3px; color: #aaa; }

/* Content panel (the white bordered box) */
.content-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 20px;
}

.content-panel__header {
  padding: 12px 18px;
}
.content-panel__header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--white);
  line-height: 1.2;
}

/* Subject-colored headers */
.content-panel__header--math    { background: var(--math-color); }
.content-panel__header--ela     { background: var(--ela-color); }
.content-panel__header--science { background: var(--science-color); }
.content-panel__header--social  { background: var(--social-color); }
.content-panel__header--arts    { background: var(--arts-color); }
.content-panel__header--grades  { background: var(--grades-color); }

.content-panel__desc {
  padding: 12px 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-bottom: 1px solid #ebebeb;
}

/* Section dividers inside content box */
.section-divider {
  background: #eef5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.90rem;
  color: var(--text);
}

/* Grade / topic link grids */
.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 18px;
  gap: 5px 24px;
}
.link-grid a {
  font-size: 0.86rem;
  color: var(--text);
  padding: 3px 0;
  text-decoration: none;
  transition: color .12s;
}
.link-grid a:hover { color: var(--link); text-decoration: underline; }

/* Mobile: single column link grid */
@media (max-width: 479px) {
  .link-grid { grid-template-columns: 1fr; }
}



/* Topic page worksheet sections */

.worksheet-subtopic {
    margin-bottom: 30px;
}

.subtopic-description {
    margin-bottom: 15px;
}

.worksheet-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 10px 12px 20px;
}

.worksheet-preview-grid .ws_pv_img_cont {
    min-width: 0;
    margin: 0;
}

.worksheet-preview-grid .ws_pv_img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .worksheet-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}



/* =============================================================
   WORKSHEET THUMBNAIL CARDS
   ============================================================= */
.ws-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 col */
  gap: 18px;
  padding: 18px;
}

@media (min-width: 480px) {
  .ws-grid { grid-template-columns: 1fr 1fr; }
}

.ws-card {
  display: block;
  text-decoration: none;
  transition: transform .2s;
}
.ws-card:hover { transform: translateY(-3px); }

.ws-thumb {
  width: 100%;
  aspect-ratio: 8.5 / 11;      /* Letter-size proportion */
  background: #fdf5e4;
  border: 1px solid #e0c898;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #c9a500;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s;
}
.ws-card:hover .ws-thumb {
  box-shadow: var(--shadow-hover);
}

/* Hover overlay */
.ws-thumb__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(33, 150, 196, 0.88);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  transform: translateY(100%);
  transition: transform .2s ease;
}
.ws-card:hover .ws-thumb__overlay { transform: translateY(0); }

.ws-title {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--link);
  text-align: center;
  text-decoration: none;
}


/* =============================================================
   HOMEPAGE HERO BANNER
   ============================================================= */
.hero {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #a8e6cf 0%, #7ec8e3 40%, #ffe082 75%, #ffccbc 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);

  /* Mobile: shorter */
  min-height: 160px;
  padding: 24px 16px;
}

@media (min-width: 480px)  { .hero { min-height: 200px; } }
@media (min-width: 768px)  { .hero { min-height: 240px; } }

.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: rgba(255,255,255,.12);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 8px;
  animation: bob 2.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@media (min-width: 480px) { .hero-icon { font-size: 3.5rem; } }

.hero h1 {
  font-family: 'Fredoka One', cursive;
  color: var(--white);
  text-shadow: 2px 3px 0 rgba(0,0,0,.15);
  line-height: 1.15;
  font-size: 1.6rem;
}
@media (min-width: 480px) { .hero h1 { font-size: 2rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 2.6rem; } }

.hero p {
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 6px;
  text-shadow: 1px 1px 3px rgba(0,0,0,.2);
}
@media (min-width: 480px) { .hero p { font-size: 1rem; } }


/* =============================================================
   SUBJECT CARDS GRID (homepage)
   ============================================================= */
.subject-grid {
  display: grid;
  gap: 14px;

  /* Mobile: 1 column */
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .subject-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
}

.subject-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 160px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

@media (min-width: 768px) { .subject-card { height: 185px; } }

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.subject-card__bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  opacity: .20;
}

.subject-card--math    { background: var(--math-color); }
.subject-card--ela     { background: var(--ela-color); }
.subject-card--science { background: var(--science-color); }
.subject-card--social  { background: var(--social-color); }
.subject-card--arts    { background: var(--arts-color); }
.subject-card--grades  { background: var(--grades-color); }

.subject-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.32));
}
.subject-card__label h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--white);
  text-shadow: 1px 2px 4px rgba(0,0,0,.28);
  line-height: 1;
}
@media (min-width: 768px) {
  .subject-card__label h2 { font-size: 1.55rem; }
}
.subject-card__label p {
  font-size: 0.78rem;
  color: rgba(255,255,255,.82);
  margin-top: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}


/* =============================================================
   MOBILE SUBJECT ACCORDION (replaces sidebar on mobile)
   ============================================================= */
.mobile-subject-nav {
  display: block;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .mobile-subject-nav { display: none; }  /* hidden when sidebar shows */
}

.mobile-subject-nav select {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--math-color);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232196c4' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}


/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 16px;
  text-align: center;
  font-size: 0.80rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 10px;
  /* override sticky positioning from site-nav */
  position: static;
  border: none;
  background: none;
  overflow: visible;
}

.site-footer nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin-top: 6px; }


/* =============================================================
   PRINT STYLES
   ============================================================= */
@media print {
  .site-header, .site-nav, .sidebar, .ad-col, .site-footer,
  .breadcrumb, .mobile-subject-nav { display: none !important; }
  .page-wrap { margin: 0; padding: 0; }
  .center-col { padding: 0; }
  .content-panel { border: none; }
}







/* moved here 11.21.26 */

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      /*font-family: Arial, sans-serif;*/
	  font-family: 'Open Sans', sans-serif !important;
      /*background: #f4f4f4;*/
      color: #222;
    }
	
	h1 {
	font-family: 'Open Sans', sans-serif !important;
	}
	
	h2 {
	font-family: 'Open Sans', sans-serif !important;
	}

    a {
      text-decoration: none;
      color: inherit;
    }

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

    /* HEADER */

    header {
      background: #fff;
      border-bottom: 1px solid #ddd;
      padding: 16px 24px;
    }

    .header-container {
      max-width: 1400px;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    .logo img {
      height: 60px;
      width: auto;
      flex-shrink: 0;
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}


.search-result {
    padding: 20px 15px;
    border-bottom: 1px solid #ddd;
}

.search-result h3 {
    margin-bottom: 8px;
    font-size: 21px;
}

.search-result h3 a {
    color: #008db3;
}

.search-result h3 a:hover {
    text-decoration: underline;
}

.search-result p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
}

.search-result small {
    color: #777;
    font-size: 12px;
}

.search-page {
    width: 95%;
    max-width: 950px;
    margin: 30px auto;
    padding: 0;
}

.search-page .content-panel {
    width: 100%;
}

.search-page .page-title-bar h1 {
    color: #ffea00;
    margin: 0;
}

.search-results-inner {
    padding: 25px 30px;
}

.search-results-inner h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.search-page .search-result {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.search-page .search-result:last-child {
    border-bottom: none;
}

@media (max-width: 700px) {
    .search-page {
        width: 95%;
        margin: 15px auto;
    }

    .search-results-inner {
        padding: 15px;
    }
}


.site-footer {
    border-top: 2px solid #333;
    background: #fff;
    margin-top: 40px;
    padding: 45px 30px 80px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 45px;
    align-items: start;
}

.site-footer.has-signups .footer-inner {
    grid-template-columns: 2fr 1.1fr 1.1fr 1.1fr;
}

.site-footer.no-signups .footer-inner {
    grid-template-columns: repeat(3, 1fr);
}

.site-footer.no-signups .footer-column:first-child {
    border-left: none;
}

.footer-signups {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.footer-signups img {
    width: 220px;
    height: auto;
}

.footer-column {
    border-left: 2px solid #555;
    padding-left: 45px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 14px;
    font-weight: 700;
	letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    text-decoration: none;
}

.footer-column a:hover {
    color: #008db3;
}

    .search-bar {
      /*
	  flex: 1;
      min-width: 250px;
	  */
	  /*
		width:300px;
		margin-left:auto;
	*/
	  width:100%;
	  max-width:420px;
	  margin-left:auto;
	  margin-right:15px;
	  border: 2px solid #008DB3;
    }

    .search-bar input {
      width: 100%;
      padding: 14px 16px;
      /*
	  border: 1px solid #ccc;
      border-radius: 0px;
	  */
      font-size: 16px;
    }

    .login-bar {
      /*
	  flex: 1;
      min-width: 250px;
	  */
	  /*
		width:300px;
		margin-left:auto;
	*/
	  /*width:100%;*/
	  max-width:320px;
	  margin-left:auto;
	  border: 2px solid #000;
	  padding: 14px 16px;
	white-space: nowrap;
    }

    .name-bar {
	  max-width:200px;
	  margin-left:auto;
	  /*border: 2px solid #000;*/
	  padding: 14px 16px;
	white-space: nowrap;
    }
	
    .account-bar {
	  max-width:200px;
	  margin-left:auto;
	  /*border: 2px solid #000;*/
	  padding: 14px 16px;
	white-space: nowrap;
    }

    /* NAV */ 

    nav {
      background: #fff;
      border-bottom: 1px solid #ddd;
    }

    .nav-links {
      max-width: 1400px;
      margin: auto;
      display: flex;
      justify-content: center;
      gap: 32px;
      padding: 16px;
      flex-wrap: wrap;
    }

    .nav-links a {
      font-size: 16px;
	  font-weight: 600;
    }

    .nav-links a:hover {
      color: #2b73ff;
    }



/* =========================
   MORE CONTENT DROPDOWN
========================= */

.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown trigger */
.nav-item.dropdown .dropbtn {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: inherit;
    cursor: pointer;
}

/* Dropdown menu */
.nav-item.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    z-index: 9999;
    flex-direction: column;
}

/* Dropdown links */
.nav-item.dropdown .dropdown-content a {
    display: block;
    padding: 10px 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}

.nav-item.dropdown .dropdown-content a:hover {
    color: #2b73ff;
    background: #f4f4f4;
}

/* Desktop: hover opens dropdown */
@media (min-width: 701px) {
    .nav-item.dropdown:hover .dropdown-content,
    .nav-item.dropdown:focus-within .dropdown-content {
        display: flex;
    }
}

/* Mobile: JavaScript controls dropdown */
@media (max-width: 700px) {

    .nav-item.dropdown .dropbtn {
        font-size: 17px;
    }

    .nav-item.dropdown .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        width: max-content;
        max-width: calc(100vw - 30px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .nav-item.dropdown.is-open .dropdown-content {
        display: flex;
    }
}



    /* =========================
       MAIN LAYOUT (FIXED)
    ========================== */

    .page-layout {
      width: 100%;
      max-width: 1400px;
      margin: 20px auto;
      display: flex;
	  flex-direction: row;
	  flex-wrap: nowrap;
      gap: 20px;
      padding: 0 20px;
      align-items: flex-start;
    }

    .side-container {
      width: 160px;
      flex: 0 0 160px;
      /*background: #ddd;*/
      min-height: 600px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-weight: bold;
      color: #666;
      border-radius: 10px;
		flex-direction: column;
		gap: 20px;
    }


	/* TOPIC PAGE - TWO COLUMN LAYOUT */

	.page-layout.topic-page-layout {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
	}

	/* Left sidebar */
	.topic-page-layout .subject-sidebar {
		flex: 0 0 220px;
		width: 220px;
	}

	/* Main content takes ALL remaining space */
	.topic-page-layout .subject-content {
		flex: 1 1 auto;
		width: auto;
		max-width: none;
		min-width: 0;
	}

	/* Mobile */
	@media (max-width: 700px) {
		.page-layout.topic-page-layout {
			flex-direction: column;
		}

		.topic-page-layout .subject-sidebar,
		.topic-page-layout .subject-content {
			width: 100%;
			flex: none;
		}
	}



/* GENERAL */

.general-content {
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
}

/* WORKSHEET PAGE LAYOUT */

.subject-sidebar {
    width: 220px;
    flex: 0 0 220px;
}

.subject-box {
    border: 1px solid #666;
    background: #fff;
}

.subject-box-title {
    background: #008db3;
    color: #fff;
    font-weight: bold;
    padding: 10px;
}

.subject-menu a {
    display: block;
    padding: 10px;
    border-top: 1px solid #999;
    background: #d9e2e5;
    font-weight: bold;
	font-size: 15px;
}

.subject-menu a:hover {
    background: #c7d3d7;
}

.subject-menu a.active {
	background: #0066cc;
	color: #fff;
	font-weight: bold;
}

.subject-content {
    flex: 1 1 0;
	width: 0;
    min-width: 0;
	padding: 0;
	overflow: visible;
}

.content-panel {
    border: 1px solid #666;
    background: #fff;
}

.breadcrumbs {
    padding: 8px 12px;
    font-size: 12px;
    color: #000;
	font-style: italic;
}

.breadcrumbs a {
	color: blue;
	font-style: italic
}


.page-title-bar {
    background: #008db3;
    color: #ffea00;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 12px;
}

h1 {
    color: #ffea00;
    font-size: 24px;
    font-weight: 700;
}

.bookmark-btn {
    display: inline-block;
    background: #008db3;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bookmark-btn:hover {
    background: #006f90;
}

.bookmark-btn.bookmarked {
    background: #287b43;
}

.bookmark-btn.bookmarked:hover {
    background: #b3261e;
}

.bookmark-btn.saving {
    opacity: 0.6;
    pointer-events: none;
}

.download-btn {
    display: inline-block;
    background-color: #008ec4;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 40px;
    border: 2px solid #333;
    text-align: center;
	width: 300px;
}

.download-btn:hover {
    background-color: #0077a6;
}

.vip-download-btn {
    display: inline-block;
    width: 300px;
    border: 2px solid #333;
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.vip-download-title {
    display: block;
    background: #f39c12;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 16px 10px;
    transition: background 0.2s;
}

.vip-download-desc {
    display: block;
    background: #fff1ad;
    color: #222;
    font-size: 16px;
    line-height: 1.3;
    padding: 10px;
    font-weight: bold;
}

.vip-download-btn:hover .vip-download-title {
    background: #d98200;
}

.vip-download-btn:hover .vip-download-desc {
    background: #ffe68a;
}

.modal-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:9999;

    justify-content:center;
    align-items:center;
}

.membership-modal{

    position:relative;

    background:#fff;

    width:95%;
    max-width:850px;

    border-radius:12px;

    padding:30px;

    box-shadow:0 20px 50px rgba(0,0,0,.4);

}

.modal-close{

    position:absolute;

    right:15px;
    top:10px;

    font-size:34px;

    cursor:pointer;

    color:#666;

}

.modal-close:hover{

    color:#000;

}

.membership-columns{

    display:flex;

    gap:30px;

    justify-content:center;

    margin-top:25px;

}

.membership{

    flex:1;

    text-align:center;

}

.membership img{

    width:100%;
    max-width:240px;

    margin:auto;

}

.membership ul{

    text-align:left;

    margin:20px auto;

    /*width:220px;*/
	width: 100%;

    list-style:none;

}

.membership li{

    margin-bottom:12px;

    font-size:20px;

}

.membership li:before{

    content:"⭐ ";

    color:#ffd300;

}

.membership li.bad:before{

    content:"❌ ";

}

.membership li.check:before {
    content: "✓ ";
    color: #2bb34a;
    font-size: 1.2em;
    font-weight: bold;
}

@media(max-width:700px){

    .membership-columns{

        flex-direction:column;

    }

}

.topic-section {
    border-top: 1px solid #999;
}

.topic-heading {
    background: #d9e2e5;
    font-weight: bold;
    padding: 10px;
}

.topic-links {
    display: grid;
    /*grid-template-columns: repeat(2, 1fr);*/
	grid-template-columns: repeat(3, 1fr);
    gap: 8px 40px;
    padding: 15px;
}

.topic-links a {
    color: #444;
}

.topic-links a:hover {
    color: #008db3;
}

.topic-links-individual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 40px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.65;
}

.topic-links-individual a {
    color: #444;
}

.topic-links-individual a:hover {
    color: #008db3;
}

.subtopic-heading {
    grid-column: 1 / -1;
    width: 100%;
    /*background: #d9e2e5;*/
	background: #008db3;
    padding: 12px 15px;
    font-size: 20px;
    font-weight: bold;
    /*border-bottom: 2px solid #008db3;*/
    margin-top: 5px;
	/*color: #008db3;*/
	color: #FFF;
}

.general-section {
border-top: 1px solid #999;
}

.general-subsection {
    display: grid;
	grid-template-columns: repeat(1, 1fr);
    gap: 8px 40px;
    padding: 15px;
}

.general-subsection a {
    color: #444;
}

.general-subsection a:hover {
    color: #008db3;
}


/*.large-ad {*/
.large-left-container {
    /*margin-top: 20px;*/
    background: #a8d05f;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
}

/*.ad-160 {*/
.container-160 {
    background: #f0c667;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
		width: 100%;
}


.ws_pv_img_cont {
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
    display: block;
}

.ws_pv_img {
    border: 1px solid #000;
    width: 100%;
    max-width: 290px;
    height: auto;
}



/* TOPIC PAGE - WORKSHEET PREVIEW GRID */

.topic-page-layout .worksheet-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 15px;
}

.topic-page-layout .ws_pv_img_cont {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
    display: block;
}

.topic-page-layout .ws_pv_img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
}

/* Medium desktop - 4 columns */
@media (max-width: 1200px) {
    .topic-page-layout .worksheet-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tablet - 3 columns */
@media (max-width: 900px) {
    .topic-page-layout .worksheet-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile - 2 columns */
@media (max-width: 600px) {
    .topic-page-layout .worksheet-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 10px;
    }
}


/* TOPIC PAGE - SUBTOPIC SECTIONS */

.topic-page-layout .topic-links-new {
    padding: 10px 20px 25px;
}

.topic-page-layout .worksheet-subtopic {
    padding: 22px 0 28px;
    border-bottom: 1px solid #ddd;
}

.topic-page-layout .worksheet-subtopic:last-child {
    border-bottom: none;
}

.topic-page-layout .worksheet-subtopic h3 {
    font-size: 22px;
    font-weight: 700;
    color: #008db3;
    margin: 0 0 8px;
}

.topic-page-layout .subtopic-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 18px;
    max-width: 900px;
}

/* Preview grid spacing */
.topic-page-layout .worksheet-preview-grid {
    padding: 5px 0 0;
    column-gap: 18px;
    row-gap: 28px;
}



/* Heading with right-aligned dropdown */

/* SUBTOPIC HEADING WITH RIGHT-ALIGNED DROPDOWN */

.topic-page-layout .subtopic-nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* Heading text */
.topic-page-layout .subtopic-nav-heading span {
    flex: 1 1 auto;
    min-width: 0;
}

/* Jump to Subtopic dropdown */
.topic-page-layout #subtopic-jump {
    display: block;
    flex: 0 0 230px;
    /*width: 230px;*/
	width: auto;
    margin-left: auto;

    /*padding: 10px 14px;*/
	padding: 6px 14px;

    background-color: #008db3;
    color: #fff;

    border: 2px solid #006f90;
    border-radius: 0px;

    font-family: 'Open Sans', sans-serif;
    /*font-size: 14px;*/
	font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover */
.topic-page-layout #subtopic-jump:hover {
    background-color: #006f90;
}

/* Focus */
.topic-page-layout #subtopic-jump:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Dropdown choices */
.topic-page-layout #subtopic-jump option {
    background: #fff;
    color: #222;
}

/* Mobile */
@media (max-width: 700px) {

    .topic-page-layout .subtopic-nav-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .topic-page-layout #subtopic-jump {
        flex: none;
        width: 100%;
        margin-left: 0;
    }

}


.topic-page-layout .worksheet-subtopic {
    scroll-margin-top: 20px;
}



/* Worksheet preview card */

.topic-page-layout .ws_pv_img_cont {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topic-page-layout .ws-preview-image {
    width: 100%;
    text-align: center;
}

.topic-page-layout .ws-preview-title {
    width: 100%;
    margin-top: 10px;
    /*text-align: center;*/
	text-align: left;
	padding-left: 8px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.topic-page-layout .ws-preview-title a {
    color: #008db3;
    text-decoration: none;
}

.topic-page-layout .ws-preview-title a:hover {
    text-decoration: underline;
}

.topic-page-layout .subtopic-view-all {
    margin-top: 18px;
    text-align: right;
}

.topic-page-layout .subtopic-view-all a {
    display: inline-block;
    padding: 9px 16px;
    background: #008db3;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
}

.topic-page-layout .subtopic-view-all a:hover {
    background: #006f90;
}


/* Topic page: Browse by Grade Level */

.topic-page-layout .grade-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding: 20px;
}

.topic-page-layout .grade-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    min-height: 135px;

    background: #f8fbfc;
    border: 1px solid #d5e4e9;
    border-radius: 8px;

    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.topic-page-layout .grade-preview-card:hover {
    background: #eaf7fb;
    border-color: #008db3;
}

.topic-page-layout .grade-preview-icon {
    color: #008db3;
    font-size: 25px;
    line-height: 1;
}

.topic-page-layout .grade-preview-name {
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.topic-page-layout .grade-preview-action {
    color: #008db3;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .topic-page-layout .grade-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .topic-page-layout .grade-preview-grid {
        gap: 10px;
        padding: 12px;
    }

    .topic-page-layout .grade-preview-card {
        padding: 15px 8px;
        min-height: 115px;
    }

    .topic-page-layout .grade-preview-name {
        font-size: 14px;
    }
}


.topic-page-layout .grade-preview-skills {
    width: 100%;
    margin: 10px 0 14px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.topic-page-layout .grade-preview-skills li {
    position: relative;
    padding-left: 17px;
    margin-bottom: 8px;
    color: #555;
    font-size: 12px;
    line-height: 1.45;
}

.topic-page-layout .grade-preview-skills li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #008db3;
    font-weight: bold;
}

.topic-page-layout .grade-preview-action {
    margin-top: auto;
}

.topic-page-layout #browse-by-grade {
    scroll-margin-top: 20px;
}

.topic-page-layout .grade-preview-no-skills {
    display: block;
    margin: 10px 0 14px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}





    main {
      flex: 1;
      min-width: 0;
      background: #fff;
      border-radius: 14px;
      padding: 30px;
      overflow: hidden;
    }

    .main_logo {
      width: 100%;
      margin-bottom: 24px;
    }

    .main_logo img {
      width: 100%;
      height: auto;
    }

    /* SUBJECT GRID */

    .subject-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
      width: 100%;
    }

    .subject-card {
      position: relative;
      overflow: hidden;
      /*border-radius: 18px;*/
      cursor: pointer;
      transition: 0.25s ease;
      background: #eee;
      min-width: 0;
    }

    .subject-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    }

    .subject-card img {
      width: 100%;
      height: 260px;
      object-fit: cover;
    }

    .subject-label {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 16px;
      background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
      color: #fff;
      font-size: 24px;
      font-weight: bold;
      text-align: center;
    }


	.topic-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
		padding: 20px;
	}

	.topic-card {
		position: relative;
		min-height: 135px;
		border-radius: 14px;
		padding: 20px;
		overflow: hidden;

		display: flex;
		flex-direction: column;
		justify-content: space-between;

		color: #fff !important;
		text-decoration: none;

		transition:
			transform 0.2s ease,
			box-shadow 0.2s ease;
	}

	.topic-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 8px 18px rgba(0,0,0,0.16);
		color: #fff !important;
	}

	/* Large decorative math symbol */
	.topic-icon {
		font-size: 48px;
		line-height: 1;
		font-weight: 700;
		opacity: 0.32;
	}

	/* Topic title */
	.topic-name {
		font-size: 30px;
		line-height: 1.2;
		font-weight: 700;
	}

	/* Subtle decorative circle */
	.topic-card::after {
		content: "";
		position: absolute;
		width: 105px;
		height: 105px;
		border-radius: 50%;
		background: rgba(255,255,255,0.10);
		right: -25px;
		top: -30px;
	}


	/* CARD COLORS */

	.topic-blue {
		background: #008db3;
	}

	.topic-green {
		background: #75a943;
	}

	.topic-orange {
		background: #e89932;
	}

	.topic-purple {
		background: #7565a8;
	}

	.topic-teal {
		background: #2b9c91;
	}

	.topic-red {
		background: #cf5d58;
	}

	.topic-yellow {
		background: #c99a1c;
	}

	.topic-pink {
		background: #c45f8c;
	}

	.topic-navy {
		background: #3f6f9f;
	}

	.topic-lime {
		background: #7f9f35;
	}

	.topic-coral {
		background: #d56b45;
	}

	.topic-indigo {
		background: #5967a8;
	}


    /* =========================
       FORM
    ========================== */

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.form-row label {
    width: 120px;
    font-weight: bold;
    margin-right: 10px;
}

.form-row input {
    flex: 1;
    padding: 8px;
}

.form-row button {
    padding: 10px 25px;
	background: #008db3;
	color: #FFF;
	font-size: 1.2em;
	font-weight: bold;
}

.form_long {
width: 75%;
/*max-width: 400px;*/
max-width: 300px;
}

.form_short {
width: 50%;
/*max-width: 200px;*/
max-width: 300px;
}


    /* =========================
       RESPONSIVE
    ========================== */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-signups {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-column {
        border-left: none;
        border-top: 1px solid #ccc;
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
    }

    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/*
    @media (max-width: 800px) {
      .page-layout {
        flex-direction: column;
      }

      .side-container {
        width: 100%;
        flex: 0 0 auto;
        min-height: 120px;
      }

      main {
        width: 100%;
      }

      .subject-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
*/

    @media (max-width: 700px) {
      .subject-grid {
        grid-template-columns: 1fr;
		}

      .header-container {
        flex-direction: column;
        align-items: stretch;
		}

      .nav-links {
        gap: 18px;
		}

    .page-layout {
        flex-direction: column;
		}

    .subject-sidebar {
        width: 100%;
        flex: none;
        margin-bottom: 15px;
		}

    .large-left-container,
    .side-container {
        display: none;
		}

	.topic-links {
		grid-template-columns: repeat(1, 1fr);
		}


    .topic-grid {
        grid-template-columns: 1fr;
        gap: 12px;
		}

    .topic-card {
        min-height: 105px;
		}

    .topic-icon {
        font-size: 34px;
		}

    .logo img {
        width: auto;
        max-width: 100%;
        height: 50px;
		object-fit: contain;
		}
}



/* =========================================
   ABC PLAYGROUND - MOBILE TYPOGRAPHY
   ========================================= */

@media screen and (max-width: 700px) {

    /* General text */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Headings */
    h1 {
        font-size: 25px;
        line-height: 1.3;
    }

    h2 {
        font-size: 21px;
        line-height: 1.35;
    }

    h3 {
        font-size: 19px;
        line-height: 1.4;
    }

    /* Navigation */
    .nav-links a {
        font-size: 17px;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Section headings */
    .topic-heading,
    .subtopic-heading {
        font-size: 20px;
        line-height: 1.4;
    }

    /* General worksheet links */
    .topic-links a,
    .topic-links-individual a,
    .general-subsection a,
    .subject-menu a {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Worksheet preview titles */
    .ws-preview-title,
    .ws-preview-title a {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Forms and dropdowns */
    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }

    /* Grade-level accordion */
    .mobile-grade-accordion summary {
        font-size: 17px;
    }

    .mobile-grade-links a {
        font-size: 16px;
        line-height: 1.5;
    }

}

@media (max-width: 700px) {

    #moreContentDropdown.is-open #moreContentMenu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

}