/* Base Reset */
div,p,a,html,body,h1,h2,h3,h4,h5 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
	

/* Body Styling */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9f9fb;
  color: #333;
  line-height: 1.6;
  /* padding: 40px 20px; */
  padding: 2.2rem 1.1rem;
  margin: 20px;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 1.05rem;
}
th, td {
  border: 1px solid #cccccc;
  padding: 10px;
  vertical-align: top;
  text-align: left;
}
th {
  background-color: #f6fbff;
  color: #3a58b5;
  font-size: 1.2rem;
}
tr:nth-child(even) td {
  background-color: #fafafa;
}

.mobile-break {
 display:none;
}

/* Container Divs */
.box {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  /* margin-bottom: 30px; */
}
.box:hover {
  /* transform: translateY(-3px); */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.card {
  /* margin-bottom:5em; */
  padding: 30px;
  padding: 2rem;
  margin:0 auto;
  max-width:1180px;
  min-width:min-content;
}
.cgrid {
 display:grid;
 grid-template-columns:3fr 1fr;
 grid-gap: 2em;
}
.cgrid>span+span {	
 display:grid;
 align-self:center;
 justify-self:end;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #3a58b5;
  margin-bottom: 16px;
}

h1 {
  font-size: 1.5rem;
  color: #3f51b5;
  line-height:1.2em;
  margin-bottom:0;
}

h2 {
  font-size: 2rem;
  border-left: 4px solid #3f51b5;
  padding-left: 12px;
}

h3 {
  font-size: 1.5rem;
  color: #3f51b5;
}

h4 {
  font-size: 1.2rem;
  /* color: #3f51b5; */
  color: #555;
}

.separator {
  min-height:4em;
  box-sizing:border-box;
  display:grid;
  align-items:center;
  justify-items: end;
}

.separator>* {
  	font-style:italic;
	margin:0;
	color:#666;
}

.emojih4 h4 {
  text-indent:0em;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Lists */
ul {
  padding-left:3em;
  font-size: 1.05rem;	
}


/* Paragraphs */
p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #555;
}

/* Base table styling (desktop) */
.comparison-table .mobile {
 display: none; /* Hide column headers */
}
.comparison-table .desktop {
 display: table-header-group;
}
.comparison-table th,
.comparison-table td {
  text-align: left;
}
.comparison-table .feature-heading {
 background-color: #f5f5f5;
 font-weight: bold;
 text-align: center;
 padding-bottom: 0;
}

.imprgrid {
 display: grid;
 grid-template-columns: auto 1fr;
 gap: 0.5em 1em;
 margin-top:1rem;
 line-height: 1.5;
 font-family: monospace;
 font-size: 1em;
}

footer {
	text-align:center;
}

/* Responsive Typography */
@media (max-width: 600px) {
  body {
    padding: 1rem;
	margin: 0;
  }
  .card {
    padding: 1rem;
  }
  .cgrid {
    grid-template-columns: 1fr; /* Single column */
    grid-template-rows: auto auto; /* 2 rows */
    grid-gap: 0em;
  }
  .cgrid>span+span {	
	display:grid;
	align-self:center;
	justify-self:center;
  }
  .separator {
    min-height:2em;
  }
  ul {
	padding-left:1.6rem;
	font-size: 1.05rem;	
  }
  h1 {
    font-size: 2rem;
	margin-bottom:0.5rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }
  
  .mobile-break {
    display:inline;
  }

  p {
    font-size: 1rem;
  }
  .imprgrid {
    grid-template-columns:1fr;
    gap: 0em;
    font-family: monospace;
    line-height: 1.5;
    font-size: 1em;
  }

	.comparison-table .mobile {
	 display: block;
	}
	.comparison-table .desktop {
	 display: none; /* Hide column headers */
	}

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td,
  .comparison-table th {
    display: block;
  }

  .comparison-table .feature-heading th {
    background-color: #e0e0e0;
    text-align: left;
    font-size: 1.1em;
  }

  .comparison-table td::before {
    content: attr(data-type);
    display: block;
    font-weight: bold;
    color: #3a58b5;
    margin-bottom: 5px;
  }
}
