@import url(https://fonts.googleapis.com/css?family=Abel);

/* Global box-sizing for easier responsive layout */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body { background-color:#fefdfb; color: #555; font-family: 'Abel', sans-serif;  font-size: 24px; font-weight:normal;margin: 0; }
/*a:link, a:visited, a:active{ color:#3186f5; text-decoration: underline; }*/
a:hover {color: #0f63d1; text-decoration:underline; }
/*img {padding:5px; border-radius: 50%;
 -webkit-border-radius: 50%;
 -moz-border-radius: 50%;}*/

.icon, .hide {font-size:20px;}
.right {text-align:right; }
.hide {display: none;}

/* Hide mobile menu elements by default */
#mobile-menu-toggle,
.mobile-menu-container {
  display: none !important;
}

input { 
    text-align: center; 
}

/* Ensure images are responsive by default, then apply specific sizes */
img {
    padding:5px;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    width:150px; /* Default desktop size for these specific images */
    height:150px; /* Default desktop size for these specific images */
    max-width: 100%; /* Ensure images scale down on smaller screens */
    height: auto; /* Maintain aspect ratio when scaling */
    object-fit: cover; /* Prevents stretching if width/height don't match aspect ratio after scaling */
}



.info-bubble {
    display: inline-block;
    width: 20px;  /* Set a fixed width */
    height: 20px;  /* Set the same value for height */
    background-color: #e7e7e7;
    border-radius: 50%;
    text-align: center;  /* Center the text inside the circle */
    line-height: 20px;  /* Align the text vertically */
    cursor: pointer;
    position: relative;
    margin-left: 5px;
    font-size: 14px;  /* Adjust font size as needed */
	top:-5px;
}

.info-bubble::after {
    content: attr(data-info);
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 16px;
    z-index: 1;
}

.info-bubble:hover::after {
    display: block;
}



/* ─── Polished Top Navigation Bar ────────────────────────────────── */
#topmenu{
    width:60%;
    max-width: 1200px;
    /* ORIGINAL: height:70px; */
    height:90px; /* FIX: Adjust height to account for padding-top with box-sizing: border-box */
    position: fixed;
    z-index: 999;
    margin-left: 300px;
    /*margin-right: 50px;*/
    padding-top:20px;
    text-align: center;
    background-color: white;
    top:0; left:0;
    border-style: solid;
    border-left: hidden;
    border-right: none;
    border-top: hidden;
    white-space: nowrap;
}

#topmenu a {
  color: #555;
  z-index: 999;
  font-family: 'Abel', sans-serif;
  font-size: 2rem;               /* ≈29 px on your base 24 px body   */
  letter-spacing: .5px;
  text-decoration: none;
  padding: .55rem 1.25rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition:
    background-color .25s ease,
    color            .25s ease,
    transform        .25s ease;
}

/* Hover / focus state mirrors ToC's subtle lift & fade */
#topmenu a:hover,
#topmenu a:focus {
  background-color: #CCFFFF;       /* existing aqua accent            */
  color: #000;
  border-color: #3186f5;           /* keeps blue outline on keyboard  */
  transform: translateY(-2px);
}

/* Optional: highlight the current page link */
#topmenu a.active,
#topmenu a[aria-current="page"] {
  background: #3186f5;
  color: #fff;
}

/* Collapse into a wrap-friendly row on narrow screens (existing) */
@media (max-width: 680px) {
  #topmenu          { flex-wrap: wrap; gap: .5rem; }
  #topmenu a        { flex: 1 0 auto; font-size: 1.05rem; }
}

/* Mobile-specific optimizations for phones (max-width: 480px) */
@media only screen and (max-width: 480px) {
  /* Ensure full mobile width */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }
  
  /* Hide sidebar on very small mobile screens */
  #sidemenu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  /* Mobile dropdown menu */
  #mobile-menu-toggle {
    display: block !important;
    position: relative;
    background-color: #CCFFFF;
    border: 2px solid #3186f5;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    margin-left: 10px;
  }
  
  #mobile-menu-toggle:hover {
    background-color: #55FFFF;
  }
  
  /* Mobile dropdown */
  #mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 140px);
    background-color: #CCFFFF;
    border: 2px solid #3186f5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow-y: auto;
    padding: 15px;
    margin-top: 5px;
  }
  
  /* Adjust dropdown position if it would go off screen */
  @media only screen and (max-width: 320px) {
    #mobile-dropdown {
      right: -10px;
      width: calc(100vw - 30px);
    }
  }
  
  #mobile-dropdown.active {
    display: block;
  }
  
  #mobile-dropdown a {
    display: block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #B0E0E6;
  }
  
  #mobile-dropdown a:last-child {
    border-bottom: none;
  }
  
  #mobile-dropdown a:hover {
    color: #3186f5;
    font-weight: bold;
  }
  
  #mobile-dropdown p {
    font-weight: bold;
    margin: 15px 0 5px 0;
    color: #444;
    font-size: 16px;
  }
  
  #mobile-dropdown p:first-child {
    margin-top: 0;
  }
  
  /* Adjust top menu for mobile */
  #topmenu {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
    padding-top: 10px !important;
    height: auto;
    min-height: 50px;
    position: relative;
    left: 0 !important;
    top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Top nav links container */
  #topmenu > a {
    flex: 0 0 auto;
  }
  
  /* Mobile menu container */
  .mobile-menu-container {
    position: relative;
    display: inline-block !important;
  }
  
  /* Adjust main content for mobile */
  .section {
    margin-left: 10px !important;
    margin-right: 10px !important;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-top: 20px !important;
    left: 0 !important;
    position: relative;
  }
  
  /* Mobile-friendly input sizes */
  input[type="text"] {
    width: 70%;
    max-width: 250px;
    font-size: 18px;
  }
  
  button[type="submit"] {
    width: 90%;
    max-width: 300px;
    font-size: 18px;
    padding: 12px;
    margin: 5px 0;
  }
  
  /* Adjust table layouts for mobile */
  table, th, td {
    font-size: 16px;
  }
  
  /* Better mobile text sizing */
  body {
    font-size: 18px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  .pageitem h2 {
    font-size: 26px;
  }
  
  /* Mobile-friendly info bubbles */
  .info-bubble::after {
    min-width: 200px;
    max-width: 280px;
    font-size: 12px;
  }
  
  /* Mobile subscribe banner */
  .subscribe-banner__content {
    grid-template-columns: 1fr 24px;
    grid-template-rows: auto auto;
    padding: 10px;
  }
  
  .subscribe-banner__text {
    font-size: 16px;
  }
  
  .subscribe-banner__subtle {
    font-size: 14px;
  }
  
  .subscribe-banner__actions {
    grid-column: 1 / 2;
    margin-top: 8px;
  }
  
  .btn-subscribe,
  .link-login {
    display: inline-block;
    margin-right: 10px;
    font-size: 16px;
  }
}

/* Tablet and small desktop optimizations */
@media only screen and (min-width: 481px) and (max-width: 768px) {
  #sidemenu {
    width: 200px;
  }
  
  #sidemenu a {
    font-size: 18px;
  }
  
  #topmenu {
    margin-left: 220px;
    width: calc(100% - 240px);
  }
  
  .section {
    margin-left: 240px;
    width: calc(100% - 260px);
  }
}
/* ────────────────────────────────────────────────────────────────── */


#instructions {
    scroll-margin-top: 100px;
}

#about {
    scroll-margin-top: 100px;
}

#sidemenu{
    width:250px;
    height:100%;
    background-color: #CCFFFF;/*#01dddd #B61B82 #03D7CB*/   /*#63DCFF*/ /*#FC436B*/
    position: fixed;
    z-index: 1;
    top:0; left:0;
    overflow-x: hidden;
    font-size: 30px;
    display: block;
    max-width: 250px;
    text-align: center;
}

#sidemenu a {
    background-color:inherit;
    color: #555;
    font-size: 24px;
    text-decoration:none;
}

#sidemenu a:hover {
    background: inherit;
    text-decoration:none;
    font-weight: bold;
}

/* Adjustments for the side menu navigation */
#sidemenu-nav a {
    display: block; /* Makes links fill their space for better clicking */
    padding: 5px 15px; /* Reduced vertical padding from 8px to 5px */
    border-radius: 5px; 
    margin-bottom: 3px; /* Reduced space between links from 5px to 3px */
    transition: background-color 0.2s ease;
}

#sidemenu-nav a:hover:not(.active-grade) {
    background-color: #3186f5;/*#e6e6e6;*/ /* Light grey on hover for non-active links */
    color: #ffffff;
}

/* Style for the active grade link in sidemenu */
.sidemenu a.active-grade {
    font-weight: bold;
    color: #fff; /* White text for active link */
    background-color: #007bff; /* A prominent blue background for active link */
    cursor: default; /* No pointer cursor for the current page */
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2); /* Slight inner shadow */
}

/* Ensure sidemenu-nav p has appropriate spacing */
#sidemenu-nav p {
    margin-bottom: 8px; /* Reduced spacing below headings from 15px to 8px */
    color: #555;
    font-size: 1em;
}

/* New style for the spacer between sections */
.sidemenu-section-spacer {
    height: 1px; /* Minimal height */
    margin-top: 25px; /* Space above the line */
    margin-bottom: 25px; /* Space below the line */
    background-color: #DDEEEE; /* A subtle line for visual separation */
    width: 80%; /* Width of the line */
    margin-left: auto; /* Center the line */
    margin-right: auto;
}

/* Add margin-top to the grade heading to control its distance from the spacer */
.sidemenu-grade-heading {
    margin-top: 15px; /* Adjust as needed for desired spacing after the line */
}

@media only screen and (max-width: 825px) and (min-width: 481px) {
    #sidemenu {
        width:180px;
        font-size: 20px;
      }
    #sidemenu a{
        font-size: 16px;
        max-width: 170px;
      }
    
    #topmenu {
        margin-left: 200px;
        width: calc(100% - 220px);
    }
    
    .section {
        margin-left: 200px;
        width: calc(100% - 220px);
    }
}

.banner {
    background-color: #b2cefe;
    color: #000;
    text-align: center;
    padding: 15px;
	margin-bottom:10px;
    font-size: 1.2em;
    font-weight: normal;
    border-bottom: 2px solid #7babfd;
}

.banner a {
    color: #000;
    text-decoration: none;
}

.banner a:hover {
    font-weight:bold;
}

a.section {
	text-decoration:none;
	color:555;
}




ul.howtouse {
	text-align:left;
	font-size:20px;
}

ul#howtouse li {
	padding-bottom:20px;
}


#pageheader {
    display:table;
    width:62.5%;
    margin:auto;
	/*padding-top:60px;*/
}



.section{
    width:60%;
    max-width: 1200px;
    margin-left: 300px;
    margin-right: auto;
    text-align: center;
    margin-top: 120px;
}

@media only screen and (max-width: 825px) and (min-width: 481px) {
	.section {
		margin-left: 200px;
		margin-right: 25px;
		margin-top: 70px;
		width: calc(100% - 225px);
	}
}

.pageitem {
    /*display:table;*/
    width:100%;
    margin-bottom:15px;
    padding-top:15px;
    text-align:center;
}



 h1 {
    font-size:50px;
    background-color:inherit;
    color:#444;
    margin-top:0;
	text-align:center;
}

.pageitem h2 {
    font-size:32px;
    background-color:inherit;
    color:#444;
    margin-top:0;
}

.pageitem p em {
    background-color:inherit;
    color:#444;
    font-size:40px;
    font-style:normal;
    font-weight:100;
}


.pageitem p {
    margin:0;
	padding-bottom:20px;
    font-size:20px;
    line-height:200%;
	text-align:left;
 }
 
 .premade-list-table td{
	 border-style: solid;
	 background-color: white;
 }
 
.premade-list-table td:hover{
	background-color: #CCFFFF;
}

.premade-list-table img{
	width: 270px;
	height: auto;
	padding: 10px;
}

@media only screen and (max-width: 1050px) {
	.premade-list-table img{
		width: 200px;
	}
}

@media only screen and (max-width: 825px) and (min-width: 481px) {
	.premade-list-table img{
		width: 120px;
	}
}

@media only screen and (max-width: 480px) {
	.premade-list-table img{
		width: 100px;
	}
}

.decodable-text-table td{
	 background-color: white;
 }
 
.decodable-text-table td:hover{
	background-color: #CCFFFF;
}

.decodable-text-table img{
	width: 270px;
	height: auto;
	padding: 10px;
}


@media only screen and (max-width: 1400px) {
	.decodable-text-table img{
		width: 210px;;
	  }
}

@media only screen and (max-width: 1200px) {
	.decodable-text-table img{
		width: 180px;;
	  }
}

@media only screen and (max-width: 1050px) {
	.decodable-text-table img{
		width: 140px;;
	  }
}

@media only screen and (max-width: 825px) and (min-width: 481px) {
	.decodable-text-table img{
		width: 90px;
	}
}

@media only screen and (max-width: 480px) {
	.decodable-text-table img{
		width: 70px;
	}
}


label {
	font-size: 24px; 
}

input[type="text"] {
	font-size: 24px; 
	width: 50%;
	max-width:200px;
}

button[type="submit"] {
	font-size: 24px; 
	color:#555;
	border:2px solid;
	border-color:#555555;
}

button[type="submit"].wordlist {
	background-color:#CCFFFF;
	border-radius:8px;
}
button[type="submit"].wordlist:hover {
	background-color:#55FFFF;
}

button[type="submit"].wordcards {
	background-color:#b1fc88;
	border-radius:8px;
}
button[type="submit"].wordcards:hover {
	background-color:#87ff45;
}



input[type="checkbox"] {
    zoom: 1.5;
}

input[type="radio"] {
    zoom: 1.5;
}




tr:nth-child(even) {background-color: #f2f2f2;}
table, th, td, tr {
  /*border: 1px solid;*/
  border-bottom: 0px solid #ddd;
  
  text-align: center;
  /* center checkbox horizontally */
  vertical-align: middle;
  /* center checkbox vertically */
  padding: 5px;
}

#num_syls_table {
    border: 0px solid lightgray;
    
}
#num_syls_table td {
	padding: 5px; /* Optional: add padding to table cells for better appearance */
}

#syls_inc_table {
    border: 1px solid lightgray;
    
}
#syls_inc_table td {
	padding: 5px; /* Optional: add padding to table cells for better appearance */
}

#syls_req_table {
    border: 1px solid lightgray;
    
}
#syls_req_table td {
	padding: 5px; /* Optional: add padding to table cells for better appearance */
}

#letters_inc_table {
  display: block;
  max-width:700px;
}

#letters_inc_table td {
  display: inline-block;
  vertical-align:middle;
}

#table_required_letters {
  display: block;
  max-width:700px;
}

#table_required_letters td {
  display: inline-block;
  vertical-align:middle;
}


th#inc_category {
	padding-right:50px;
	text-align:left;
}


.col {
    display: table-cell;
}


.col ul#sub {
    float:right; 
    padding:0;
    margin:0; 
}

.col ul#sub li {
    display:inline;
    list-style-type: none;
    text-align:right;
}

#footer {
    display:table;
    width:100%;
    margin-bottom:15px;
    padding:15px 0;
    text-align:left;
    font-size:13px;
     color:#999;
}

#footer p {
     text-align:left;
     padding:0;
}

ul#bottomnav  {
    display: table-row;
    padding: 0;
}

ul#bottomnav li {
    list-style-type: none;
    display: table-cell;
    text-align:left;
    font-weight:bold;
    vertical-align:top;
}

ul#bottomnav li ul {
padding:0;
padding-bottom:20px;
}

ul#bottomnav li li {
    display: list-item;
    font-weight:100;
}

#credits {
    display:table;
    width:100%;
    text-align:left;
    font-size:12px;
    color:#999;
    line-height:100%;
}


@media screen and (max-width : 825px) and (min-width: 481px)
{
	body { background-color:#fefdfb; color: #555; font-family: 'Abel', sans-serif;  font-size: 20px; font-weight:normal;margin: 0; width:100%; }
	

	
	h1 {
		font-size:40px;
		background-color:inherit;
		color:#444;
		margin-top:0;
		text-align:center;
	}
	
	nav {
		display: table;
		table-layout: fixed;
		width: 100%;
		margin: 0 auto;
	}
	
	
	img {
		width:120px; 
		height:120px; 
		padding-bottom:30px;
	}
	
	label {
		font-size: 20px; 
	}

	input[type="text"] {
		font-size: 16px; 
		width: 50%;
	}
	
	button[type="submit"] {
		font-size: 16px; 
		width: 80%;
	}

	button[type="checkbox"] {
		zoom: 1.5;
	}
	
	
	
	table, th, td {
	  /*border: 1px solid;*/
	  border-bottom: 1px solid #ddd;
	  
	  text-align: center;
	  /* center checkbox horizontally */
	  vertical-align: middle;
	  /* center checkbox vertically */
	  padding: 0px;
	}
}


.responsive-banner {
    display:block;
    width: 100%; /* Makes the image responsive */
    max-width: 800px; /* Set max width for the image */
    height: auto; /* Maintain aspect ratio */
    max-height: 150px; /* Set max height for the image */
    margin: 0 auto; /* Centers the image if the parent container allows */
	margin-bottom:20px;
}

/* ─── Subscription-Only Features Styling ────────────────────────────── */

/* Styling for disabled subscription-only features */
input[type="checkbox"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

tr:has(input[type="checkbox"]:disabled) {
	opacity: 0.6;
}

tr:has(input[type="checkbox"]:disabled) th {
	color: #888;
}

/* Fallback for browsers that don't support :has() */
.subscription-disabled {
	opacity: 0.6;
}

.subscription-disabled th {
	color: #888;
}

.subscription-disabled input[type="checkbox"] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ─── Enhanced Info-Bubble Styling ──────────────────────────────────── */

/* Enhanced info-bubble styling for better immediate hover response */
.info-bubble {
	transition: none !important; /* Ensure no transition delay */
}

.info-bubble:hover::after {
	display: block !important;
	animation: fadeIn 0.1s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Ensure tooltip text wraps properly for longer content */
.info-bubble::after {
	white-space: normal;
	min-width: 400px;
	max-width: 500px;
	width: max-content;
	word-wrap: break-word;
	font-size: 14px;
	padding: 6px 15px;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	line-height: 1.2;
}

/* ——— Subscribe banner (subtle, professional) ——— */
.subscribe-banner {
  width: 100%;
  margin: 0 0 18px 0;                   /* small gap before the H1 */
  background: #EAF4FF;                  /* soft bluish tint */
  border: 1px solid #D4E7FF;            /* thin border for definition */
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.subscribe-banner__content {
  display: grid;
  grid-template-columns: 1fr auto auto 24px; /* text | primary | login | close */
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-family: 'Abel', sans-serif;
  color: #444;
}

.subscribe-banner__text {
  text-align: left;
  line-height: 1.35;
  font-size: 20px;
}
.subscribe-banner__text strong {
  color: #333;
  font-weight: 600;
}
.subscribe-banner__subtle {
  display: block;
  font-size: 18px;
  color: #555;
  margin-top: 2px;
}

.btn-subscribe {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid #3186f5;
  background: #CCFFFF;                 /* matches site accent */
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition: background-color .2s ease, transform .2s ease, color .2s ease;
}
.btn-subscribe:hover,
.btn-subscribe:focus {
  background: #55FFFF;
  color: #000;
  transform: translateY(-1px);
}

.link-login {
  color: #555;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px dotted rgba(49,134,245,.65);
  padding-bottom: 1px;
}
.link-login:hover,
.link-login:focus {
  color: #0f63d1;
  text-decoration: none;
}

.subscribe-banner__close {
  appearance: none;
  border: none;
  background: transparent;
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.subscribe-banner__close:hover,
.subscribe-banner__close:focus {
  color: #000;
  transform: scale(1.05);
}

/* Responsive: stack actions under text on narrow screens */
@media (max-width: 825px) and (min-width: 481px) {
  .subscribe-banner__content {
    grid-template-columns: 1fr 24px; /* text | close on first row */
    grid-template-rows: auto auto;   /* actions stack below */
  }
  .subscribe-banner__actions {
    grid-column: 1 / 2;
    margin-top: 6px;
  }
  .btn-subscribe,
  .link-login {
    display: inline-block;
    margin-right: 10px;
  }
}

/* Error message styling */
.error-message {
  background-color: #ffe6e6;
  border: 2px solid #ff4444;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.error-message h3 {
  color: #cc0000;
  margin-top: 0;
}

.error-message .suggestions {
  text-align: center;
}

.error-message .suggestions ul {
  list-style: none;
  text-align: center;
  padding-left: 0;
}

.error-message .suggestions li {
  margin: 8px 0;
}

/* Suffix helper styling */
.suffix-helper {
  background-color: #f0f8ff;
  border: 2px solid #007cba;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.suffix-helper-content {
  font-size: 28px;
  line-height: 1.4;
}

.suffix-helper-content strong {
  font-weight: bold;
}

.suffix-builder-link {
  font-size: 32px;
  font-weight: bold;
  color: #007cba;
  text-decoration: none;
}

.suffix-builder-link:hover {
  text-decoration: underline;
}

.suffix-helper .subscription-notice {
  font-size: 18px;
  margin-top: 10px;
  color: #666;
}

.suffix-helper.subscription-disabled {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.suffix-helper.subscription-disabled .suffix-builder-link {
  color: #888;
}

/* Quota information styling */
.quota-info {
  background-color: #e8f4f8;
  border: 2px solid #007cba;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  text-align: center;
}

.quota-remaining {
  font-size: 18px;
  color: #005a7a;
}

.quota-exceeded {
  background-color: #ffe6e6;
  border-color: #ff4444;
}

.quota-exceeded-message {
  color: #cc0000;
}

.quota-exceeded-message h3 {
  margin-top: 0;
  color: #cc0000;
}

.quota-exceeded-message ul {
  text-align: left;
  display: inline-block;
  margin: 0 auto;
}

.quota-exceeded-message li {
  margin: 8px 0;
}

/* --- FIX: only dim a row if ALL its checkboxes/radios are disabled --- */

/* Keep disabled inputs themselves dimmed (existing behavior) */
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* If a row has at least one enabled control, do NOT dim the row or its header */
tr:has(input[type="checkbox"]:not(:disabled)),
tr:has(input[type="radio"]:not(:disabled)) {
  opacity: 1 !important;
}
tr:has(input[type="checkbox"]:not(:disabled)) th,
tr:has(input[type="radio"]:not(:disabled)) th {
  color: inherit !important;
}

/* Dim the row only when every checkbox/radio inside it is disabled */
tr:has(input[type="checkbox"]:disabled):not(:has(input[type="checkbox"]:not(:disabled))),
tr:has(input[type="radio"]:disabled):not(:has(input[type="radio"]:not(:disabled))) {
  opacity: 0.6;
}
tr:has(input[type="checkbox"]:disabled):not(:has(input[type="checkbox"]:not(:disabled))) th,
tr:has(input[type="radio"]:disabled):not(:has(input[type="radio"]:not(:disabled))) th {
  color: #888;
}

/* Styles moved from suffixes.php */
.note {
	background: #f0f8ff;
	border-left: 4px solid #007cba;
	padding: 10px 15px;
	margin: 10px 0 20px 0;
	font-style: italic;
	color: #555;
}

.validation-message {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 4px;
	padding: 10px 15px;
	margin: 15px 0;
	color: #856404;
	text-align: center;
}

.link-secondary {
	color: #6c757d;
	text-decoration: none;
	font-size: 0.9em;
}

.link-secondary:hover {
	color: #007cba;
	text-decoration: underline;
}

.subscription-disabled {
	opacity: 0.6;
}

.subscription-disabled th {
	color: #999;
}

/* Gray out labels for disabled radio buttons in step 4 focus sound table */
#table_required_letters td {
	color: inherit;
}

/* Gray out the entire table cell when it contains a disabled radio button */
#table_required_letters td:has(input[type="radio"]:disabled) {
	color: #999;
	opacity: 0.6;
}

/* Fallback for browsers that don't support :has() */
#table_required_letters input[type="radio"]:disabled {
	opacity: 0.6;
}

/* Additional targeting for text nodes adjacent to disabled inputs */
#table_required_letters input[type="radio"]:disabled ~ text,
#table_required_letters input[type="radio"]:disabled + span {
	color: #999;
}

/* Override quota-exceeded styling to use blue colors like multisyl.php */
.quota-info.quota-exceeded {
	background-color: #e8f4f8 !important;
	border-color: #007cba !important;
}

.quota-exceeded-message {
	color: #005a7a !important;
	text-align: center !important;
}

.quota-exceeded-message h3,
.quota-exceeded-message p {
	text-align: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
	color: #005a7a !important;
}

.error-message {
	background: #fff5f5;
	border: 2px solid #fed7d7;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	color: #742a2a;
}

.error-message h3 {
	color: #c53030;
	margin-top: 0;
	margin-bottom: 15px;
}

.error-message .suggestions {
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 15px;
	margin-top: 15px;
	text-align: center;
}

.error-message .suggestions p {
	text-align: center;
	margin-bottom: 10px;
}

.error-message .suggestions ul {
	margin: 10px 0 0 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.error-message .suggestions li {
	margin-bottom: 8px;
}

.loading-inline { 
	display:none; 
	margin-left:12px; 
	color:#555; 
	font-size:14px; 
	align-items:center; 
}

#suffix-loading::before { 
	content:''; 
	width:14px; 
	height:14px; 
	margin-right:8px; 
	border:2px solid #007cba; 
	border-top-color:transparent; 
	border-radius:50%; 
	display:inline-block; 
	animation: spin 0.9s linear infinite; 
}

@keyframes spin { 
	to { transform: rotate(360deg); } 
}

/* Inline styles from suffixes.php */
.subscribe-link {
	color: #007cba;
}

.subscription-text {
	color: #888;
	font-weight: normal;
}

.max-words-note {
	font-size: 20px;
}

.hidden-table {
	display: none !important; /* override ID-based display rules */
}

.validation-message-display {
	display: none;
}

.quota-exceeded-text {
	color: #cc0000;
}

.error-display {
	display: none;
	margin: 20px 0;
	padding: 15px;
	background: #ffebee;
	border: 1px solid #f44336;
	border-radius: 4px;
	color: #c62828;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.adsbygoogle-block {
	display: block;
}

/* Styles moved from index.php */
.suffix-helper {
	background: #f8f9fa;
	border-left: 3px solid #007cba;
	padding: 10px 15px;
	margin: 15px 0;
	font-size: 16px;
	color: #555;
	border-radius: 4px;
}

.suffix-helper a {
	color: #007cba;
	text-decoration: none;
	font-weight: bold;
}

.suffix-helper a:hover {
	text-decoration: underline;
}

#wordgen-loading::before {
	content: '';
	width: 14px; height: 14px;
	margin-right: 8px;
	border: 2px solid #007cba;
	border-top-color: transparent;
	border-radius: 50%;
	display: inline-block;
	animation: spin 0.9s linear infinite;
}

#wordgen-error {
	background: #fdf2f2;
	border-left: 4px solid #dc3545;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	padding: 15px 20px;
	margin: 20px 0;
	font-size: 16px;
	color: #721c24;
	line-height: 1.4;
	font-weight: 500;
	display: none;
}

/* Additional styles for index.php inline styles */
.section-header {
	padding-top: 20px;
}

/* Back to School Sale Banner */
.sale-banner {
	background: linear-gradient(135deg, #e8f4f8, #b2cefe);
	color: #444;
	text-align: center;
	padding: 15px 20px;
	margin: 0 0 25px 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: relative;
	overflow: hidden;
	border-bottom: 2px solid #3186f5;
}

.sale-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	animation: shine 4s infinite;
}

@keyframes shine {
	0% { left: -100%; }
	100% { left: 100%; }
}

.sale-banner-text {
	font-size: 18px;
	font-weight: bold;
	position: relative;
	z-index: 1;
	color: #444;
}

.sale-banner-highlight {
	color: #3186f5;
	font-size: 22px;
	font-weight: bold;
}

.sale-banner a {
	color: #444;
	text-decoration: none;
	display: block;
	transition: transform 0.2s ease;
}

.sale-banner a:hover {
	transform: scale(1.02);
	text-decoration: none;
	color: #3186f5;
}

.sale-banner-price {
	font-size: 20px;
	font-weight: 900;
	color: #007cba;
}
