/* ================= GOOGLE FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================= GLOBAL ================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  background: #f0f2f5;
  color: #111;
  line-height: 1.6;
}

/* ================= HEADER / HERO ================= */
header {
  background: linear-gradient(135deg, #0a0a0a 0%, #111827 100%);
  color: white;
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -60%;left: -20%;
  width: 140%;height: 200%;
  background: radial-gradient(circle at 30% 60%, rgba(0,123,255,0.13) 0%, transparent 50%),
              radial-gradient(circle at 75% 40%, rgba(0,123,255,0.09) 0%, transparent 45%);
  pointer-events: none;
}

header h1 {
  margin: 0 0 10px;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 40%, #8ec8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.72;
  margin: 0 auto 28px;
  max-width: 540px;
  position: relative;
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 0 auto 26px;
  flex-wrap: wrap;
  position: relative;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #4da3ff;
  line-height: 1;
}

.hero-stats .stat span {
  font-size: 0.75rem;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Badges */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  position: relative;
}

.hero-badge {
  background: rgba(0,123,255,0.18);
  border: 1px solid rgba(0,123,255,0.38);
  color: #8ec8ff;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Theme Toggle */
#themeToggle {
  padding: 9px 22px;
  border-radius: 25px;
  border: 1.5px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

#themeToggle:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
}

/* ================= SEARCH ================= */
.search-box {
  text-align: center;
  margin: -22px 20px 14px;
  position: relative;
  z-index: 10;
}

.search-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 520px;
}

.search-wrapper::before {
  content: '🔍';
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.search-box input {
  padding: 14px 20px 14px 48px;
  width: 100%;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  box-shadow: 0 6px 28px rgba(0,0,0,0.16);
  background: white;
  color: #111;
  transition: box-shadow 0.2s;
}

.search-box input:focus {
  box-shadow: 0 8px 32px rgba(0,123,255,0.22);
}

/* ================= SECTION TITLES ================= */
.section-title {
  text-align: center;
  margin: 48px 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title::before, .section-title::after {
  content: '';
  flex: 1;
  max-width: 70px;
  height: 2px;
  border-radius: 2px;
}

.section-title::before { background: linear-gradient(90deg, transparent, #007bff); }
.section-title::after  { background: linear-gradient(90deg, #007bff, transparent); }

.section-desc {
  text-align: center;
  color: #777;
  font-size: 0.88rem;
  margin: 0 0 18px;
}

/* ================= GRID ================= */
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: auto;
}

/* ================= CARD ================= */
.card {
  background: white;
  padding: 22px 14px 18px;
  text-align: center;
  border-radius: 14px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #4da3ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.card:hover::after { transform: scaleX(1); }

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0,123,255,0.14);
  border-color: rgba(0,123,255,0.12);
}

.card i {
  font-size: 26px;
  color: #007bff;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.25s;
}

.card:hover i { transform: scale(1.12); }

/* ================= BACK HOME ================= */
.back-home {
  display: inline-block;
  margin: 14px 0;
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.back-home:hover { text-decoration: underline; }

/* ================= BUTTON ================= */
button {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #007bff;
  color: white;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}
button:hover { background: #0063d4; transform: translateY(-1px); }

/* ================= INPUTS ================= */
input[type="number"], input[type="text"], input[type="date"],
input[type="email"], input[type="time"], select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 340px;
}
input:focus, select:focus, textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* ================= DARK MODE ================= */
html.dark body, .dark {
  background: #0d0d0d;
  color: #e0e0e0;
}

html.dark header, .dark header {
  background: linear-gradient(135deg, #000000, #0d0d1a);
}

.dark .section-title { color: #e0e0e0; }
.dark .section-desc  { color: #888; }

html.dark h2, .dark h2 { color: #e0e0e0; }

html.dark .card, .dark .card {
  background: #181818;
  color: #e0e0e0;
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
html.dark .card:hover, .dark .card:hover {
  box-shadow: 0 10px 26px rgba(0,123,255,0.18);
  border-color: rgba(0,123,255,0.25);
}

html.dark input, .dark input,
html.dark select, .dark select,
html.dark textarea, .dark textarea {
  background: #181818;
  color: #e0e0e0;
  border-color: #333;
}
.dark input:focus, .dark select:focus { border-color: #4da3ff; }

.dark .search-box input {
  background: #181818;
  color: #e0e0e0;
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}

html.dark button, .dark button { background: #1a3a6e; }
html.dark button:hover, .dark button:hover { background: #234fa0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .container { grid-template-columns: repeat(3, 1fr); }
  header h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  .container { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 14px; }
  header h1 { font-size: 1.65rem; }
  .hero-stats { gap: 20px; }
  .hero-stats .stat strong { font-size: 1.4rem; }
  header { padding: 44px 16px 40px; }
}
@media (max-width: 380px) {
  .card { padding: 16px 8px 12px; font-size: 13px; }
}

/* ================= FOOTER ================= */
.footer {
  background: linear-gradient(135deg, #070707, #101624);
  color: white;
  padding: 50px 20px 28px;
  margin-top: 70px;
}
.footer-container {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  text-align: left;
}
.footer h3 { margin: 0 0 12px; font-size: 1.05rem; color: #4da3ff; }
.footer p  { font-size: 13.5px; opacity: 0.65; line-height: 1.75; }
.footer a  { color: #8ec8ff; text-decoration: none; display: block; margin: 6px 0; font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: white; }
.footer-copy {
  text-align: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12.5px;
  opacity: 0.45;
}
@media (max-width: 600px) {
  .footer-container { grid-template-columns: 1fr; gap: 22px; }
}

/* ================= CALCULATOR PAGES ================= */
h1 { font-size: 1.75rem; font-weight: 700; }
label { font-weight: 600; font-size: 14px; }
#result, h3#result { font-weight: 700; color: #007bff; font-size: 1.1rem; }

table { border-collapse: collapse; width: 100%; max-width: 700px; margin-top: 20px; font-size: 14px; }
td, th { border: 1px solid #ddd; padding: 10px 14px; text-align: center; }
th { background: #007bff; color: white; font-weight: 600; }
tr:nth-child(even) td { background: #f8f9fa; }
.dark td, .dark th { border-color: #2a2a2a; }
.dark tr:nth-child(even) td { background: #181818; }

/* Why CalcBeast section dark mode */
.dark section div[style*="background:white"] {
  background: #181818 !important;
  color: #e0e0e0 !important;
}
.dark section h2 { color: #e0e0e0; }
.dark section p[style*="color:#666"] { color: #999 !important; }

/* ================= CALCULATOR PAGE LAYOUT ================= */

body.calc-page {
  background: #0f0f0f;
  color: #e0e0e0;
  max-width: 100%;
  padding: 0;
}

/* Back to home */
body.calc-page .back-home,
body.calc-page > a:first-child {
  display: inline-block;
  margin: 18px 24px 0;
  color: #4da3ff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

body.calc-page > a:first-child::before {
  content: '← ';
}

/* Main wrapper for all calc content */
body.calc-page > h1,
body.calc-page > p:not(.footer-copy),
body.calc-page > label,
body.calc-page > input,
body.calc-page > select,
body.calc-page > br,
body.calc-page > button,
body.calc-page > div:not(.footer):not(.footer-container),
body.calc-page > h2:not(.footer h2),
body.calc-page > h3,
body.calc-page > ul,
body.calc-page > table,
body.calc-page > hr,
body.calc-page > .content-section {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Page title */
body.calc-page h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  padding: 36px 24px 8px;
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(90deg, #fff 60%, #8ec8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle under h1 */
body.calc-page h1 + p {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin: 0 auto 28px;
  padding: 0 24px;
}

/* Calculator input card */
.calc-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin: 0 auto 20px;
  max-width: 860px;
}

/* Auto-style direct body content as a card */
body.calc-page > input,
body.calc-page > select,
body.calc-page > label,
body.calc-page > button {
  display: block;
}

/* Wrap all direct inputs/labels in card look */
body.calc-page {
  padding-bottom: 60px;
}

/* The main calculator box — wrap content nicely */
body.calc-page > *:not(a):not(h1):not(.footer):not(script):not(.content-section) {
  max-width: 860px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Input box styling for calc pages */
body.calc-page input[type="number"],
body.calc-page input[type="text"],
body.calc-page input[type="date"],
body.calc-page input[type="time"],
body.calc-page select,
body.calc-page textarea {
  background: #242424;
  border: 1.5px solid #333;
  color: #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
  max-width: 380px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.calc-page input:focus,
body.calc-page select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
  outline: none;
}

body.calc-page label {
  color: #bbb;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 16px;
}

body.calc-page button {
  background: linear-gradient(135deg, #007bff, #0056d6);
  color: white;
  border: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,123,255,0.3);
}

body.calc-page button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.45);
}

/* Result display */
body.calc-page #result,
body.calc-page p#result,
body.calc-page h3#result {
  background: linear-gradient(135deg, #1a2a1a, #1a3a2a);
  border: 1px solid #2a4a2a;
  border-left: 4px solid #28a745;
  color: #4ade80;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 20px;
  max-width: 580px;
}

/* h2 subheadings inside calc pages */
body.calc-page h2 {
  color: #e0e0e0;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  border-left: none;
  text-align: left;
  padding-left: 24px;
}

/* Table */
body.calc-page table {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  margin: 20px auto;
}

body.calc-page th {
  background: #007bff;
  color: white;
  padding: 12px 16px;
}

body.calc-page td {
  border: 1px solid #2a2a2a;
  padding: 10px 16px;
  color: #ccc;
}

body.calc-page tr:nth-child(even) td {
  background: #1e1e1e;
}

/* ul/li inside calc pages */
body.calc-page > ul {
  color: #bbb;
  padding-left: 44px;
  line-height: 2;
}

/* hr divider */
body.calc-page hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 28px auto;
  max-width: 860px;
}

/* Summary divs */
body.calc-page div#summary,
body.calc-page div#result {
  background: #1a2840;
  border: 1px solid #1e3d6e;
  border-left: 4px solid #007bff;
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 700;
  color: #4da3ff;
  margin-top: 20px;
}

/* li results */
body.calc-page li {
  color: #ccc;
  margin: 4px 0;
}

body.calc-page li strong {
  color: #e0e0e0;
}

body.calc-page li span {
  color: #4da3ff;
  font-weight: 700;
}

/* bar charts in some calculators */
body.calc-page .bar {
  background: #2a2a2a;
  border-radius: 6px;
}

body.calc-page .fill {
  background: linear-gradient(90deg, #007bff, #4da3ff);
  border-radius: 6px;
}

/* Content section override for dark calc pages */
body.calc-page .content-section {
  background: #161616;
  border-top: 1px solid #2a2a2a;
  padding: 36px 32px 48px;
  max-width: 100%;
  margin-top: 40px;
}

body.calc-page .content-section h2 {
  color: #e0e0e0;
  border-left-color: #007bff;
  padding-left: 12px;
  font-size: 1.2rem;
}

body.calc-page .content-section h3 {
  color: #c0c0c0;
}

body.calc-page .content-section p,
body.calc-page .content-section ul {
  color: #999;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

body.calc-page .content-section > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Light mode for calc page (if user switches) */
html:not(.dark) body.calc-page {
  background: #f4f6fa;
  color: #111;
}

html:not(.dark) body.calc-page h1 {
  background: linear-gradient(90deg, #111 60%, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html:not(.dark) body.calc-page input,
html:not(.dark) body.calc-page select,
html:not(.dark) body.calc-page textarea {
  background: white;
  border-color: #ddd;
  color: #111;
}

html:not(.dark) body.calc-page label { color: #555; }
html:not(.dark) body.calc-page h2 { color: #111; }
html:not(.dark) body.calc-page td { color: #333; }
html:not(.dark) body.calc-page li { color: #444; }
html:not(.dark) body.calc-page li span { color: #007bff; }

html:not(.dark) body.calc-page .content-section {
  background: white;
  border-top: 1px solid #e8e8e8;
}

html:not(.dark) body.calc-page .content-section h2 { color: #111; }
html:not(.dark) body.calc-page .content-section h3 { color: #333; }
html:not(.dark) body.calc-page .content-section p,
html:not(.dark) body.calc-page .content-section ul { color: #555; }

html:not(.dark) body.calc-page table { background: white; }
html:not(.dark) body.calc-page td { border-color: #eee; }
html:not(.dark) body.calc-page tr:nth-child(even) td { background: #f8f9fa; }

html:not(.dark) body.calc-page #result,
html:not(.dark) body.calc-page p#result,
html:not(.dark) body.calc-page h3#result {
  background: #f0fff4;
  border-color: #c3e6cb;
  color: #155724;
}

html:not(.dark) body.calc-page hr { border-color: #e0e0e0; }


/* ===== CALC-MAIN WRAPPER ===== */
.calc-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

/* Nav bar */
.calc-nav {
  background: #0a0a0a;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 100;
}

.calc-nav a {
  color: #4da3ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.calc-nav a:hover { color: #8ec8ff; text-decoration: none; }

.calc-nav span {
  color: #444;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* h1 in calc-main */
.calc-main h1 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #fff 50%, #8ec8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
  padding: 0;
}

/* Subtitle */
.calc-main h1 + p {
  text-align: center;
  color: #777;
  font-size: 0.95rem;
  margin: 0 0 32px;
}

/* Input groups */
.calc-main label {
  display: block;
  color: #aaa;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 18px 0 6px;
}

.calc-main input[type="number"],
.calc-main input[type="text"],
.calc-main input[type="date"],
.calc-main input[type="time"],
.calc-main select,
.calc-main textarea {
  background: #1e1e1e;
  border: 1.5px solid #2e2e2e;
  color: #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  width: 100%;
  max-width: 400px;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-main input:focus,
.calc-main select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
  outline: none;
}

.calc-main button {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0055c8);
  color: white;
  border: none;
  padding: 13px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(0,123,255,0.35);
  transition: all 0.2s;
}

.calc-main button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,123,255,0.5);
}

/* Result */
.calc-main #result,
.calc-main p#result,
.calc-main h3#result {
  background: #0d2a1a;
  border: 1px solid #1a4a2a;
  border-left: 4px solid #28a745;
  color: #4ade80;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  max-width: 600px;
}

/* Summary div */
.calc-main #summary,
.calc-main div#summary {
  background: #0d1e35;
  border: 1px solid #1a3a6e;
  border-left: 4px solid #007bff;
  color: #4da3ff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 20px;
}

/* List results */
.calc-main ul { color: #bbb; line-height: 2.0; padding-left: 22px; }
.calc-main li { margin: 4px 0; }
.calc-main li strong { color: #ddd; }
.calc-main li span { color: #4da3ff; font-weight: 700; }

/* Table */
.calc-main table {
  width: 100%;
  max-width: 100%;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  margin-top: 24px;
  font-size: 14px;
}

.calc-main th {
  background: #007bff;
  color: white;
  padding: 12px 14px;
  font-weight: 600;
}

.calc-main td {
  border: 1px solid #242424;
  padding: 10px 14px;
  color: #bbb;
}

.calc-main tr:nth-child(even) td { background: #1e1e1e; }
.calc-main tr:hover td { background: #222; }

/* Dividers */
.calc-main hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 30px 0;
}

/* h2, h3 in calc-main */
.calc-main h2 {
  color: #e0e0e0;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
  text-align: left;
}

.calc-main h3 {
  color: #bbb;
  font-size: 1rem;
  margin: 20px 0 6px;
}

/* bar */
.calc-main .bar { background: #2a2a2a; border-radius: 8px; height: 20px; }
.calc-main .fill { background: linear-gradient(90deg, #007bff, #4da3ff); border-radius: 8px; height: 20px; }

/* Light mode for calc-main */
html:not(.dark) .calc-main h1 {
  background: linear-gradient(90deg, #111 50%, #0055c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html:not(.dark) .calc-nav { background: #111; }
html:not(.dark) body.calc-page { background: #f4f6fa; color: #111; }
html:not(.dark) .calc-main h1 + p { color: #666; }
html:not(.dark) .calc-main label { color: #555; }
html:not(.dark) .calc-main input,
html:not(.dark) .calc-main select,
html:not(.dark) .calc-main textarea {
  background: white;
  border-color: #ddd;
  color: #111;
}
html:not(.dark) .calc-main h2 { color: #111; }
html:not(.dark) .calc-main h3 { color: #333; }
html:not(.dark) .calc-main li { color: #444; }
html:not(.dark) .calc-main td { color: #333; border-color: #eee; }
html:not(.dark) .calc-main tr:nth-child(even) td { background: #f8f9fa; }
html:not(.dark) .calc-main table { background: white; border-color: #e8e8e8; }
html:not(.dark) .calc-main hr { border-color: #e0e0e0; }
html:not(.dark) .calc-main #result,
html:not(.dark) .calc-main p#result,
html:not(.dark) .calc-main h3#result {
  background: #f0fff4; border-color: #c3e6cb; color: #155724;
}
