/* Fallback stylesheet for Internet Explorer */
/* This provides basic readable styling when Tailwind CSS cannot be parsed */
/* In modern browsers Tailwind loads and overrides these low-specificity rules */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.5;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* ====================== */
/*  HEADER                */
/* ====================== */
header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

/* Use display:table on the inner div for vertical centering */
header > div {
  display: table;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
}

/* Logo link */
header > div > a:first-child {
  display: table-cell;
  vertical-align: middle;
  width: 1%;
  white-space: nowrap;
}

/* Force logo image small */
header > div > a:first-child img,
header img {
  height: 32px !important;
  width: auto !important;
  display: block;
}

/* "Support" text */
header > div > span {
  display: table-cell;
  vertical-align: middle;
  padding-left: 12px;
  color: #1d4ed8;
  font-size: 16px;
}

/* Nav links */
header > div > nav {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
}
header nav a {
  margin-left: 16px;
  color: #4b5563;
  font-size: 14px;
}
header nav a:hover {
  color: #1d4ed8;
}

/* ====================== */
/*  MAIN CONTENT          */
/* ====================== */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* ====================== */
/*  FOOTER                */
/* ====================== */
footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  margin-top: 64px;
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* ====================== */
/*  HEADINGS              */
/* ====================== */
h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Subtitle paragraph */
p.text-gray-600 {
  color: #4b5563;
  margin-bottom: 32px;
}

/* ====================== */
/*  INDEX PAGE — GRID     */
/* ====================== */
.grid {
  overflow: hidden;
  margin: -8px;
}
.grid > a {
  display: block;
  float: left;
  width: 46%;
  margin: 8px 2%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}
.grid > a:hover {
  border-color: #60a5fa;
}
.grid > a h2 {
  color: #111827;
}
.grid > a p {
  color: #6b7280;
  font-size: 14px;
  margin-top: 4px;
}

/* ====================== */
/*  TEAMVIEWER BUTTON     */
/* ====================== */
.mt-12 {
  clear: both;
  text-align: center;
  padding-top: 48px;
}
.mt-12 a {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
}
.mt-12 a:hover {
  background: #1d4ed8;
  text-decoration: none;
}

/* ====================== */
/*  BREADCRUMB NAV        */
/* ====================== */
nav.text-sm {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

/* ====================== */
/*  CATEGORY PAGE — LIST  */
/* ====================== */
/* .space-y-3 is the post list container on category pages */
.space-y-3 > a {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.space-y-3 > a:hover {
  border-color: #60a5fa;
  text-decoration: none;
}

/* Title + date side by side using table layout */
.space-y-3 > a > div {
  display: table;
  width: 100%;
}
.space-y-3 > a > div > div:first-child {
  display: table-cell;
  vertical-align: top;
}
.space-y-3 > a > div > div:last-child {
  display: table-cell;
  vertical-align: top;
  text-align: right;
  white-space: nowrap;
  padding-left: 16px;
  color: #9ca3af;
  font-size: 14px;
}
.space-y-3 > a h2 {
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0;
}

/* Tag badges in post list */
.space-y-3 span {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  margin-top: 6px;
}

/* Archived badge */
.space-y-3 > a > span {
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ====================== */
/*  POST PAGE — COMMENTS  */
/* ====================== */
.space-y-4 > div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

/* Best reply highlight */
.border-green-300 {
  border-color: #86efac !important;
}

/* Comment metadata row */
.space-y-4 > div > div:first-child {
  margin-bottom: 12px;
  font-size: 14px;
  color: #9ca3af;
}

.font-medium {
  font-weight: 500;
  color: #111827;
}

/* ====================== */
/*  BADGES                */
/* ====================== */
.bg-green-100 {
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.bg-green-50 {
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.bg-gray-100 {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
  margin-right: 8px;
}
.bg-blue-50 {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
  margin-right: 8px;
}

/* Archived notice banner */
.bg-amber-50 {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 12px;
}

/* ====================== */
/*  RICH TEXT CONTENT      */
/* ====================== */
.prose {
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}
.prose p {
  margin-bottom: 12px;
}
.prose img {
  max-width: 100%;
  border-radius: 4px;
  margin: 8px 0;
}
.prose a {
  color: #2563eb;
  text-decoration: underline;
}

/* ====================== */
/*  SEARCH PAGE           */
/* ====================== */
input[type="text"],
input[type="search"] {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 16px;
}

/* ====================== */
/*  MISC / UTILITY        */
/* ====================== */
/* IE doesn't support display:contents, hide the wrapper div */
[style*="display: contents"] {
  display: block !important;
}

