/* Custom styles for static HTML version */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make sure the root and body take up full height */
:root {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}

/* CSS Grid layout for sticky footer */
.site-layout {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
}
.site-header {
  grid-area: header;
}
.site-main {
  grid-area: main;
}
.site-footer {
  grid-area: footer;
}

/* Wrapper styles */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utility classes */
.container-padding {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-padding {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-padding {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-spacing {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Custom aspect ratio utilities */
.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}

/* Custom gradient backgrounds */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-50 {
  --tw-gradient-from: #eff6ff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.to-blue-100 {
  --tw-gradient-to: #dbeafe;
}

.from-purple-50 {
  --tw-gradient-from: #faf5ff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
}

.to-purple-100 {
  --tw-gradient-to: #f3e8ff;
}

.from-yellow-50 {
  --tw-gradient-from: #fffbeb;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 251, 235, 0));
}

.to-yellow-100 {
  --tw-gradient-to: #fef3c7;
}

.from-red-50 {
  --tw-gradient-from: #fef2f2;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(254, 242, 242, 0));
}

.to-red-100 {
  --tw-gradient-to: #fee2e2;
}

/* Mobile menu transitions */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

.mobile-menu-exit {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-exit-active {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

/* Hover effects */
.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

.hover\:bg-green-700:hover {
  background-color: #15803d;
}

.hover\:text-blue-500:hover {
  color: #3b82f6;
}

.hover\:text-white:hover {
  color: #ffffff;
}

/* Focus states */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
  --tw-ring-color: #3b82f6;
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  
  .sm\:mt-5 {
    margin-top: 1.25rem;
  }
  
  .sm\:mt-8 {
    margin-top: 2rem;
  }
  
  .sm\:flex {
    display: flex;
  }
  
  .sm\:justify-center {
    justify-content: center;
  }
  
  .sm\:ml-3 {
    margin-left: 0.75rem;
  }
  
  .sm\:mt-0 {
    margin-top: 0px;
  }
  
  .sm\:max-w-xl {
    max-width: 36rem;
  }
  
  .sm\:mx-auto {
    margin-left: auto;
    margin-right: auto;
  }
  
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  
  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .md\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .md\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:justify-between {
    justify-content: space-between;
  }
  
  .md\:mt-0 {
    margin-top: 0px;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:flex {
    display: flex;
  }
  
  .md\:inline-flex {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .lg\:text-left {
    text-align: left;
  }
  
  .lg\:justify-start {
    justify-content: flex-start;
  }
  
  .lg\:justify-end {
    justify-content: flex-end;
  }
  
  .lg\:mx-0 {
    margin-left: 0px;
    margin-right: 0px;
  }
  
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Default styles for HTML tags without classes */

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

h5 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #374151;
}

/* Text formatting */
strong, b {
  font-weight: 600;
  color: #1f2937;
}

em, i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Code elements */
code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  color: #dc2626;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

pre {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background-color: transparent;
  color: #374151;
  padding: 0;
}

kbd {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.75rem;
  background-color: #374151;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #6b7280;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
}

blockquote p {
  margin-bottom: 0;
}

blockquote cite {
  font-style: normal;
  font-weight: 500;
  color: #374151;
  display: block;
  margin-top: 0.5rem;
}

blockquote cite:before {
  content: "— ";
}

/* Lists - only style lists without classes */
ul:not([class]), ol:not([class]) {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

ul:not([class]) {
  list-style-type: disc;
}

ol:not([class]) {
  list-style-type: decimal;
}

ul:not([class]) li, ol:not([class]) li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
  color: #374151;
}

ul:not([class]) ul, ol:not([class]) ol, ul:not([class]) ol, ol:not([class]) ul {
  margin-bottom: 0;
  margin-top: 0.25rem;
}

/* Links - only style links without classes */
a:not([class]) {
  color: #3b82f6;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}

a:not([class]):hover {
  color: #1d4ed8;
  text-decoration: none;
}

a:not([class]):focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Form elements - only style elements without classes */
input:not([class]), textarea:not([class]), select:not([class]) {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  width: 100%;
  margin-bottom: 1rem;
}

input:not([class]):focus, textarea:not([class]):focus, select:not([class]):focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea:not([class]) {
  min-height: 6rem;
  resize: vertical;
}

select:not([class]) {
  cursor: pointer;
}

button:not([class]) {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: white;
  background-color: #3b82f6;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:not([class]):hover {
  background-color: #1d4ed8;
}

button:not([class]):focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

button:not([class]):disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Labels - only style labels without classes */
label:not([class]) {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

/* Tables - only style tables without classes */
table:not([class]) {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table:not([class]) th, table:not([class]) td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

table:not([class]) th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table:not([class]) td {
  color: #6b7280;
}

table:not([class]) tr:hover {
  background-color: #f9fafb;
}

/* Images - only add border-radius to images without classes */
img {
  max-width: 100%;
  height: auto;
}

img:not([class]) {
  border-radius: 0.375rem;
}

/* Horizontal rule */
hr {
  border: none;
  height: 1px;
  background-color: #e5e7eb;
  margin: 2rem 0;
}

/* Address */
address {
  font-style: normal;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Abbreviations */
abbr[title] {
  border-bottom: 1px dotted #6b7280;
  cursor: help;
  text-decoration: none;
}

/* Mark/Highlight */
mark {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* Details and Summary */
details {
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}

summary {
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

summary:hover {
  color: #3b82f6;
}

/* Figure and Figcaption */
figure {
  margin: 1.5rem 0;
}

figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p, blockquote, table, figure {
    page-break-inside: avoid;
  }
}

/* Review checklist blocks — homepage article */

.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-top: 1.25rem;
  text-align: left;
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box .author-meta {
  font-size: 0.875rem;
  color: #475569;
}

.author-box .author-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

.review-verdict {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: #fff;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.licence-card {
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  margin: 1rem 0 1.5rem;
}

.quote-card {
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.provider-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.provider-bar-row {
  display: grid;
  grid-template-columns: 9rem 1fr 4rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
}

.provider-bar-track {
  height: 0.6rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.provider-bar-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 9999px;
}

.review-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

article.review-article h2 {
  margin-top: 2rem;
}

article.review-article ul,
article.review-article ol {
  margin: 0.75rem 0 1rem 1.25rem;
  color: #4b5563;
}

article.review-article li {
  margin-bottom: 0.35rem;
}

p[data-fill="lead"]:empty,
p[data-fill="verdict-lead"]:empty,
p[data-fill="prose"]:empty {
  display: none;
  margin: 0;
  min-height: 0;
}

@media (max-width: 640px) {
  .provider-bar-row {
    grid-template-columns: 1fr;
  }
}


/* Contrast: global p{color:#374151} must not win on dark banners/hero */
.bg-blue-600.text-white p,
.bg-blue-600.text-white a,
.bg-blue-600.text-white strong {
  color: #ffffff;
}

.relative.bg-blue-900 p,
.relative.bg-blue-900 a,
.relative.bg-blue-900 strong {
  color: #e0e7ff;
}

.relative.bg-blue-900 h1,
.relative.bg-blue-900 h1 span {
  color: #ffffff;
}

.relative.bg-blue-900 a.bg-blue-600 {
  color: #ffffff;
}

.relative.bg-blue-900 a.bg-blue-100,
.relative.bg-blue-900 a.bg-blue-100 * {
  color: #1d4ed8;
}

.relative.bg-blue-900 a[style*="color"] {
  color: #e0e7ff !important;
}

/* Mobile: bonus button centered in the sticky header */
@media (max-width: 767px) {
  header.fixed .flex.justify-between.items-center.h-16 > a[href="go/"] {
    display: inline-flex !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  header.fixed .flex.justify-between.items-center.h-16 > a[href="go/"] svg {
    display: none;
  }

  header.fixed .flex.md\:hidden {
    margin-left: auto;
    z-index: 3;
  }

  #mobile-menu a[href="go/"] {
    display: none;
  }
}
