/* ========================================================================
   Content Page Enhancements
   File: content-enhancements.css
   For: about, instructions, email-security, domain-name-system, spf-dkim-dmarc
   ======================================================================== */

/* ------------------------------------------------------------------------
   Base Content Typography
   ------------------------------------------------------------------------ */
.content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
  color: #ffffff;
}

.content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #d1d5db;
}

.content p {
  font-size: 15px;
  line-height: 1.75;
  color: #b8bcc4;
  margin-bottom: 14px;
}

.content ul,
.content ol {
  margin: 14px 0;
  padding-left: 22px;
}

.content li {
  font-size: 15px;
  line-height: 1.7;
  color: #b8bcc4;
  margin-bottom: 10px;
}

.content li strong {
  color: #60a5fa;
}

/* Links */
.content a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s ease;
}

.content a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Light Mode Typography */
body.light-mode .content h1,
body.light-mode .content h2 {
  color: #111827;
}

body.light-mode .content h3 {
  color: #374151;
}

body.light-mode .content h2 {
  border-bottom-color: #e5e7eb;
}

body.light-mode .content p,
body.light-mode .content li {
  color: #4b5563;
}

body.light-mode .content li strong {
  color: #2563eb;
}

body.light-mode .content a {
  color: #2563eb;
}

body.light-mode .content a:hover {
  color: #1d4ed8;
}

/* ------------------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------------------ */
nav.breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

nav.breadcrumb a {
  color: #60a5fa;
  text-decoration: none;
}

nav.breadcrumb a:hover {
  text-decoration: underline;
}

body.light-mode nav.breadcrumb {
  color: #6b7280;
}

body.light-mode nav.breadcrumb a {
  color: #2563eb;
}

/* ------------------------------------------------------------------------
   TL;DR / Quick Summary Box
   ------------------------------------------------------------------------ */
.tldr {
  max-width: 620px;
  margin: 20px auto 28px auto;
  padding: 14px 18px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
}

.tldr h2 {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b82f6 !important;
  border-bottom: none !important;
  line-height: 1;
}

.tldr p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #c9cdd4 !important;
}

.tldr a {
  color: #60a5fa;
}

body.light-mode .tldr {
  background: rgba(59, 130, 246, 0.06);
}

body.light-mode .tldr p {
  color: #4b5563 !important;
}

/* ------------------------------------------------------------------------
   Lookup CTA Box
   ------------------------------------------------------------------------ */
.lookup-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 22px 28px;
  border-radius: 10px;
  text-align: center;
  margin: 28px auto;
  max-width: 440px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.lookup-cta h3 {
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 600;
  border-bottom: none !important;
}

.lookup-cta p {
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 0 14px 0 !important;
  font-size: 14px !important;
}

.lookup-cta a {
  display: inline-block;
  background: #ffffff;
  color: #1e3a8a !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lookup-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
  color: #1e3a8a !important;
}

body.light-mode .lookup-cta a {
  background: #1e3a8a;
  color: #ffffff !important;
}

body.light-mode .lookup-cta a:hover {
  background: #1e40af;
  color: #ffffff !important;
}

/* ------------------------------------------------------------------------
   Code Styling
   ------------------------------------------------------------------------ */
.content code {
  background: #1f1f1f;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  color: #fbbf24;
  border: 1px solid #333;
}

.content pre {
  background: #141414;
  padding: 14px 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid #2a2a2a;
}

.content pre code {
  background: none;
  padding: 0;
  border: none;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.5;
}

body.light-mode .content code {
  background: #f3f4f6;
  color: #dc2626;
  border-color: #e5e7eb;
}

body.light-mode .content pre {
  background: #f9fafb;
  border-color: #e5e7eb;
}

body.light-mode .content pre code {
  color: #374151;
}

/* ------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------ */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #141414;
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}

.content thead tr {
  background: #1e40af;
}

.content th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  font-size: 13px;
}

.content td {
  padding: 10px 14px;
  color: #b8bcc4;
  border-bottom: 1px solid #252525;
}

.content tr:last-child td {
  border-bottom: none;
}

.content tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

body.light-mode .content table {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

body.light-mode .content td {
  color: #4b5563;
  border-bottom-color: #f3f4f6;
}

body.light-mode .content tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* ------------------------------------------------------------------------
   Email Section Layout
   ------------------------------------------------------------------------ */
.email-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 20px 0;
}

.email-section-content {
  flex: 1;
}

.email-section .body-section-img-wrapper {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .email-section {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------------
   Related Resources Section
   ------------------------------------------------------------------------ */
.content h2 + ul:last-of-type {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.content h2 + ul:last-of-type li {
  margin-bottom: 8px;
  padding-left: 0;
}

.content h2 + ul:last-of-type li::before {
  content: none;
}

.content h2 + ul:last-of-type a {
  color: #60a5fa;
  font-weight: 500;
}

/* ------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 768px) {
  .content h1 {
    font-size: 1.6rem;
  }

  .content h2 {
    font-size: 1.2rem;
    margin-top: 28px;
  }

  .tldr {
    margin: 16px auto 24px auto;
    padding: 12px 14px;
  }

  .lookup-cta {
    padding: 18px 20px;
    max-width: 100%;
    margin: 24px 0;
  }

  .content table {
    font-size: 13px;
  }

  .content th,
  .content td {
    padding: 8px 10px;
  }
}
