* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  line-height: inherit;
}

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

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

table {
  border-collapse: collapse;
  max-width: 100%;
}

th,
td {
  vertical-align: middle;
}

.flex > *,
.grid > * {
  min-width: 0;
}

main p,
main li,
main h1,
main h2,
main h3,
main h4,
footer p,
footer a {
  overflow-wrap: break-word;
}

.font-sans { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 650; }
.font-extrabold { font-weight: 700; }
.font-black { font-weight: 800; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: 0; }
.leading-relaxed { line-height: 1.625; }

header a.font-black.tracking-tight {
  font-family: "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
  font-size: 1.35rem;
  line-height: 2rem;
}

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }

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

.min-h-screen { min-height: 100vh; }
.min-w-full { min-width: 100%; }
.w-full { width: 100%; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.h-auto { height: auto; }
.md\:w-auto { width: auto; }

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-1 { margin-top: .25rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.-mt-8 { margin-top: -2rem; }
.mt-auto { margin-top: auto; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-2 { padding-bottom: .5rem; }
.pt-4 { padding-top: 1rem; }
.pl-6 { padding-left: 1.5rem; }

.top-0 { top: 0; }
.right-5 { right: 1.25rem; }
.bottom-5 { bottom: 1.25rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid #e5e7eb; }
.border-2 { border: 2px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-blue-100 { border-color: #dbeafe; }
.border-orange-500 { border-color: #f97316; }
.divide-y > * + * { border-top: 1px solid #e5e7eb; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }

.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.shadow-md { box-shadow: 0 4px 12px rgba(15, 23, 42, .12); }
.shadow-lg { box-shadow: 0 12px 28px rgba(15, 23, 42, .16); }

.bg-white { background: #fff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-600 { background: #2563eb; }
.bg-orange-100 { background: #ffedd5; }
.bg-orange-500 { background: #f97316; }
.bg-gradient-to-r {
  background: linear-gradient(90deg, #2563eb, #4338ca);
}
.from-blue-600 {}
.to-indigo-700 {}

.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-100 { color: #dbeafe; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-orange-800 { color: #9a3412; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.underline { text-decoration: underline; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }

.transition,
.transition-all,
.transition-colors {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.transform { transform: translateZ(0); }

.hover\:underline:hover { text-decoration: underline; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-gray-500:hover { color: #6b7280; }
.hover\:bg-blue-700:hover { background: #1d4ed8; }
.hover\:bg-orange-600:hover { background: #ea580c; }
.hover\:border-blue-100:hover { border-color: #dbeafe; }
.hover\:border-blue-200:hover { border-color: #bfdbfe; }
.hover\:shadow:hover { box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.hover\:shadow-md:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, .12); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-.125rem); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #93c5fd; }
.focus\:ring-blue-300:focus { box-shadow: 0 0 0 2px #93c5fd; }

.prose strong {
  font-weight: 700;
}

@media (min-width: 640px) {
  .sm\:inline { display: inline !important; }
  .sm\:hidden { display: none !important; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:w-auto { width: auto; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1.1; }
  header a.font-black.tracking-tight {
    font-size: 1.62rem;
    line-height: 2.25rem;
  }
}

.bg-gradient-to-r h1.font-extrabold {
  font-size: 1.75rem;
  line-height: 1.18;
}

h1.font-extrabold,
h2.font-extrabold {
  letter-spacing: 0;
}

.guide-search {
  position: relative;
}

.guide-search-label {
  color: #374151;
  display: block;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25rem;
  margin-bottom: .5rem;
}

.guide-search-input {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: #111827;
  font: inherit;
  min-height: 3rem;
  padding: .75rem 1rem;
  width: 100%;
}

.guide-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #93c5fd;
  outline: none;
}

.guide-search-empty {
  color: #6b7280;
  font-size: .875rem;
  line-height: 1.25rem;
  margin-top: .75rem;
}

.prose h2[id] {
  scroll-margin-top: 6rem;
}

.article-toc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: #374151;
  padding: 1rem 1.125rem;
}

.article-toc summary {
  color: #1e3a8a;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5rem;
}

.article-toc-list {
  display: grid;
  gap: .5rem;
  list-style-position: outside;
  margin: .875rem 0 0;
  padding-left: 1.25rem;
}

.article-toc-list a {
  color: #374151;
  font-size: .95rem;
  line-height: 1.45rem;
  text-decoration: none;
}

.article-toc-list a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.affiliate-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: .75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1rem;
}

.affiliate-card img {
  flex: 0 0 8rem;
  height: auto;
  max-width: 8rem;
  width: 8rem;
}

.affiliate-card > div {
  flex: 1 1 16rem;
  min-width: 0;
}

.energy-card img,
.logo-card img {
  display: block;
  max-height: 4.5rem;
  object-fit: contain;
}

.affiliate-card-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3rem;
  margin: 0 0 .25rem;
}

.affiliate-card-text {
  color: #4b5563;
  font-size: .86rem;
  line-height: 1.35rem;
  margin: 0;
}

.affiliate-card-button {
  background: #f97316;
  border-radius: .5rem;
  color: #fff;
  display: inline-block;
  flex: 0 1 auto;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.25rem;
  max-width: 100%;
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.affiliate-card-button:hover {
  background: #ea580c;
  color: #fff;
}

.home-info-section {
  margin-bottom: 0;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.mobile-guide-card {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.space-y-4 > .mobile-guide-card {
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .home-info-section {
    margin-bottom: 1.5rem;
    padding-bottom: 3rem;
  }
}

a.bg-orange-500.font-extrabold {
  font-weight: 650;
}

@media (min-width: 768px) {
  .bg-gradient-to-r h1.font-extrabold {
    font-size: 2.65rem;
    line-height: 1.12;
  }

  h1.md\:text-4xl.font-extrabold {
    font-size: 2.12rem;
    line-height: 1.18;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  header .max-w-6xl {
    width: 100%;
  }

  header a.font-black.tracking-tight {
    max-width: 100%;
    font-size: 1.12rem;
    line-height: 1.45rem;
    gap: .375rem;
    overflow-wrap: anywhere;
    text-align: center;
  }

  header nav.space-x-6 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .5rem;
    max-width: 100%;
  }

  .space-x-6 > * + * {
    margin-left: 1rem;
  }

  .text-3xl,
  .md\:text-4xl,
  .md\:text-5xl {
    word-break: break-word;
  }

  main,
  article,
  figure,
  .bg-white,
  .article-toc,
  .overflow-x-auto {
    max-width: 100%;
  }

  .overflow-x-auto {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
  }

  footer p {
    max-width: 100%;
  }

  footer a {
    overflow-wrap: anywhere;
  }

  .bg-white.border-2.border-orange-500 p.text-sm {
    font-size: .95rem;
    line-height: 1.45rem;
  }

  .affiliate-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .affiliate-card img {
    max-width: 14rem;
    margin: 0 auto;
    width: min(14rem, 100%);
  }

  .affiliate-card > div,
  .affiliate-card-button {
    width: 100%;
  }

  .affiliate-card > div {
    flex: 0 1 auto;
  }

  .affiliate-card-button {
    align-self: stretch;
  }

  th,
  td {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  table.min-w-full {
    display: block;
    table-layout: fixed;
    width: 100%;
    min-width: 0 !important;
  }

  table.min-w-full thead {
    display: none;
  }

  table.min-w-full tbody,
  table.min-w-full tr,
  table.min-w-full td,
  table.min-w-full th {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  table.min-w-full tr {
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem;
  }

  table.min-w-full tr:last-child {
    border-bottom: 0;
  }

  table.min-w-full td,
  table.min-w-full th {
    border: 0;
    padding: .2rem 0 !important;
  }

  table.min-w-full td:first-child {
    color: #1e3a8a;
    font-weight: 650;
  }
}

.calculator-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  padding: 1.5rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.calculator-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.calculator-label {
  display: block;
  color: #374151;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25rem;
  margin-bottom: .375rem;
}

.calculator-control {
  appearance: none;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  color: #111827;
  font: inherit;
  min-height: 2.75rem;
  padding: .625rem .75rem;
  width: 100%;
}

.calculator-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #93c5fd;
  outline: none;
}

.calculator-result {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: .75rem;
  padding: 1.5rem;
}

.calculator-result-row {
  align-items: center;
  border-bottom: 1px solid #dbeafe;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: .75rem;
}

.calculator-result-row strong {
  color: #1e3a8a;
  white-space: nowrap;
}

.calculator-total {
  border-top: 2px solid #bfdbfe;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.calculator-total span {
  color: #4b5563;
  display: block;
  font-size: .875rem;
  margin-bottom: .25rem;
}

.calculator-total strong {
  color: #2563eb;
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .calculator-card {
    padding: 2rem;
  }

  .calculator-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  }

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