/* Standalone Style Sheet for WordPress Pages/Posts - Updated Version */
/* Target only content within .standalone-style to avoid theme conflicts */

.standalone-style {
  max-width: 1000px; /* Reduced from 1200px to better match header width */
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Typography Hierarchy - All headers scaled down by ~20% */
.standalone-style h1 {
  font-size: 2.0rem !important; /* Increased from 1.0rem */
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: #1a1a1a;
  /* Removed border-bottom and padding-bottom */
}

.standalone-style h2 {
  font-size: 1.7rem !important; /* Increased from .5rem */
  font-weight: 600;
  line-height: 1.3;
  margin: 2rem 0 1rem 0;
  color: #1a1a1a;
  /* Removed position: relative and ::before pseudo-element */
}

.standalone-style h3 {
  font-size: 1.4rem !important; /* Increased from .3rem */
  font-weight: 600;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem 0;
  color: #2c3e50;
}

.standalone-style h4 {
  font-size: 1.2rem !important; /* Increased from 0.2rem */
  font-weight: 600;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem 0;
  color: #2c3e50;
}

.standalone-style h5,
.standalone-style h6 {
  font-size: 1.1rem !important; /* Increased from 0.1rem */
  font-weight: 600;
  line-height: 1.4;
  margin: 1rem 0 0.5rem 0;
  color: #2c3e50;
}

/* Paragraph and Text Styling */
.standalone-style p {
  margin: 0 0 1.25rem 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.standalone-style p:last-child {
  margin-bottom: 0;
}

.standalone-style strong,
.standalone-style b {
  font-weight: 600;
  color: #1a1a1a;
}

.standalone-style em,
.standalone-style i {
  font-style: italic;
}

/* Lists */
.standalone-style ul,
.standalone-style ol {
  margin: 0 0 1.25rem 0;
  padding-left: 2rem;
}

.standalone-style li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.standalone-style ul li {
  list-style-type: disc;
}

.standalone-style ol li {
  list-style-type: decimal;
}

.standalone-style ul ul,
.standalone-style ol ol,
.standalone-style ul ol,
.standalone-style ol ul {
  margin: 0.5rem 0;
}

/* Links */
.standalone-style a {
  color: #0073aa;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.standalone-style a:hover {
  color: #005177;
  border-bottom-color: #005177;
}

.standalone-style a:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* Images */
.standalone-style img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

.standalone-style figure {
  margin: 1.5rem 0;
  text-align: center;
}

.standalone-style figcaption {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Blockquotes */
.standalone-style blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-left: 4px solid #0073aa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
}

.standalone-style blockquote::before {
  content: '"';
  font-size: 4rem;
  color: #0073aa;
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}

.standalone-style blockquote p {
  margin: 0;
  font-size: 1.1rem;
}

/* Code */
.standalone-style code {
  background: #f1f3f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9rem;
  color: #d63384;
}

.standalone-style pre {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #e9ecef;
}

.standalone-style pre code {
  background: none;
  padding: 0;
  color: #333;
}

/* Tables */
.standalone-style table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.standalone-style th,
.standalone-style td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.standalone-style th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

.standalone-style tr:hover {
  background: #f8f9fa;
}

/* Buttons and Call-to-Actions */
.standalone-style .btn,
.standalone-style button,
.standalone-style input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0.5rem 0;
}

.standalone-style .btn:hover,
.standalone-style button:hover,
.standalone-style input[type="submit"]:hover {
  background: #005177;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Forms */
.standalone-style input,
.standalone-style textarea,
.standalone-style select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  margin-bottom: 1rem;
}

.standalone-style input:focus,
.standalone-style textarea:focus,
.standalone-style select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Dividers */
.standalone-style hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #e9ecef, transparent);
  margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .standalone-style {
    max-width: calc(100% - 40px); /* Maintain side margins on mobile */
    padding: 15px;
  }

  .standalone-style h1 {
    font-size: 1.6rem; /* Further reduced for mobile */
    margin-bottom: 1rem;
  }

  .standalone-style h2 {
    font-size: 1.3rem; /* Further reduced for mobile */
    margin: 1.5rem 0 0.75rem 0;
  }

  .standalone-style h3 {
    font-size: 1.1rem;
  }

  .standalone-style h4 {
    font-size: 1rem;
  }

  .standalone-style ul,
  .standalone-style ol {
    padding-left: 1.5rem;
  }

  .standalone-style blockquote {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
  }

  .standalone-style table {
    font-size: 0.9rem;
  }

  .standalone-style th,
  .standalone-style td {
    padding: 0.75rem 0.5rem;
  }

  .standalone-style pre {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .standalone-style {
    padding: 10px;
  }

  .standalone-style h1 {
    font-size: 1.4rem;
  }

  .standalone-style h2 {
    font-size: 1.2rem;
  }

  .standalone-style blockquote {
    padding: 0.75rem 1rem;
  }

  .standalone-style blockquote::before {
    font-size: 3rem;
    top: -5px;
    left: 5px;
  }
}

/* Print Styles */
@media print {
  .standalone-style {
    max-width: none;
    padding: 0;
  }

  .standalone-style h1,
  .standalone-style h2,
  .standalone-style h3,
  .standalone-style h4,
  .standalone-style h5,
  .standalone-style h6 {
    page-break-after: avoid;
  }

  .standalone-style blockquote,
  .standalone-style table,
  .standalone-style pre {
    page-break-inside: avoid;
  }

  .standalone-style a {
    color: #333;
    text-decoration: underline;
  }
}

/* Accessibility Improvements */
.standalone-style :focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.standalone-style [tabindex="-1"]:focus {
  outline: none;
}

/* Smooth scrolling for anchor links */
.standalone-style {
  scroll-behavior: smooth;
}

/* Content spacing improvements */
.standalone-style > *:first-child {
  margin-top: 0;
}

.standalone-style > *:last-child {
  margin-bottom: 0;
}
