/* Modern clean styles matching the original site */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base utility classes similar to Tailwind */
.min-h-screen {
    min-height: 100vh;
}

.bg-gradient-to-b {
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
}

.max-w-5xl {
    max-width: 64rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.w-full {
    width: 100%;
}

.rounded-b-2xl {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.bg-white {
    background-color: #ffffff;
}

.ring-1 {
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 0 calc(1px + 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);
    --tw-ring-color: #e0f2fe;
}

.shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.p-4 {
    padding: 1rem;
}

@media (min-width: 640px) {
    .sm\:p-6 {
        padding: 1.5rem;
    }
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

@media (min-width: 640px) {
    .sm\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.font-semibold {
    font-weight: 600;
}

.text-slate-900 {
    color: #0f172a;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-slate-800 {
    color: #1e293b;
}

.text-md {
    font-size: 1rem;
    line-height: 1.5rem;
}

.hidden {
    display: none;
}

@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:underline-offset-4:hover {
    text-underline-offset: 4px;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.bg-emerald-600 {
    background-color: #059669;
}

.hover\:bg-emerald-500:hover {
    background-color: #10b981;
}

.text-white {
    color: #ffffff;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.p-2 {
    padding: 0.5rem;
}

.pl-6 {
    padding-left: 1.5rem;
}

.pr-6 {
    padding-right: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-sky-50 {
    --tw-gradient-from: #f0f9ff;
    --tw-gradient-to: rgb(240 249 255 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-white {
    --tw-gradient-to: #ffffff;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .sm\:p-8 {
        padding: 2rem;
    }
}

.flex-col-reverse {
    flex-direction: column-reverse;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:items-center {
        align-items: center;
    }
    
    .sm\:justify-between {
        justify-content: space-between;
    }
    
    .sm\:flex-1 {
        flex: 1 1 0%;
    }
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.mt-2 {
    margin-top: 0.5rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.bg-blue-400 {
    background-color: #60a5fa;
}

.underline {
    text-decoration: underline;
}

.text-sky-700 {
    color: #0369a1;
}

@media (min-width: 640px) {
    .sm\:w-80 {
        width: 20rem;
    }
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.h-48 {
    height: 12rem;
}

@media (min-width: 640px) {
    .sm\:h-56 {
        height: 14rem;
    }
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.shadow {
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.object-cover {
    object-fit: cover;
}

.h-full {
    height: 100%;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.font-medium {
    font-weight: 500;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.rounded-full {
    border-radius: 9999px;
}

.h-6 {
    height: 1.5rem;
}

.bg-emerald-500 {
    background-color: #10b981;
}

.font-semibold {
    font-weight: 600;
}

.justify-center {
    justify-content: center;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-400 {
    transition-duration: 400ms;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Custom gradient backgrounds */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
}

.bg-gradient-to-r.from-sky-50.to-white {
    background: linear-gradient(to right, #f0f9ff, #ffffff);
}

/* Link styling */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Button styling */
.bg-blue-400:hover {
    background-color: #3b82f6;
}

.bg-emerald-600:hover {
    background-color: #10b981;
}

/* Responsive image */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure proper ring styling */
.ring-sky-100 {
    border: 1px solid #e0f2fe;
}

/* Lightweight "prose" (Tailwind Typography-like) styles for rendered Markdown
   These provide h1-h6, paragraph, list, blockquote, code and pre styles so that
   Markdig-generated HTML placed inside <div class="prose"> looks correct.
   Keep these scoped and minimal to avoid interfering with other app styles. */
.prose {
    color: #0f172a; /* text-slate-900 */
    font-size: 1rem;
    line-height: 1.6;
}
.prose p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #0f172a;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    font-weight: 700;
    
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }
.prose h5 { font-size: 1rem; }
.prose h6 { font-size: 0.875rem; }

.prose ul,
.prose ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}
.prose li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.prose blockquote {
    border-left: 4px solid #e6eef8;
    padding-left: 1rem;
    color: #334155; /* slightly muted */
    margin: 0.75rem 0;
    background: #f8fbff;
}

.prose pre {
    background: #0b1220;
    color: #e6eef8;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow: auto;
    margin: 0.75rem 0;
}
.prose code {
    background: rgba(2,6,23,0.6);
    color: #e6eef8;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Segoe UI Mono', monospace;
    font-size: 0.875em;
}

.prose a {
    color: #0b63b7; /* link color */
    text-decoration: underline;
}
.prose img {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
}

/* Allow long content to use full width inside card-like containers */
.prose.max-w-none { max-width: none; }

/* Stronger, scoped overrides to defeat global resets (bootstrap/reboot)
   These are intentionally specific and use !important sparingly so that
   headings and paragraph spacing inside .prose show correctly even when
   page-level styles force inheritance or zero margins. */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.25 !important;
}
.prose h1 { font-size: 2.25rem !important; }
.prose h2 { font-size: 1.75rem !important; }
.prose h3 { font-size: 1.375rem !important; }
.prose h4 { font-size: 1.125rem !important; }
.prose h5 { font-size: 1rem !important; }
.prose h6 { font-size: 0.875rem !important; }

.prose p {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}
.prose ul,
.prose ol {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 1.25rem !important;
}
.prose li {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}
.prose blockquote {
    margin: 0.75rem 0 !important;
    padding-left: 1rem !important;
}


