/*
 * Hand-written styles that the compiled Tailwind file does not include:
 * article typography (.prose), WordPress core classes, menus, pagination,
 * accessibility helpers. Colours use the theme's CSS variables.
 */

/* Accessibility */
.screen-reader-text,.sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;margin:0;left:1rem;top:1rem;z-index:100000;padding:.75rem 1rem;background:hsl(var(--background));color:hsl(var(--foreground));border:2px solid hsl(var(--primary));border-radius:.5rem}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}

/* Navigation */
.dfx-nav a[aria-current="page"]{color:hsl(var(--primary))}
.dfx-footer-links a{display:inline-block;padding:.15rem 0}

/* Article typography */
.prose{color:hsl(var(--foreground));font-size:1.0625rem;line-height:1.75;max-width:72ch}
.prose.max-w-none{max-width:none}
.prose>*+*{margin-top:1.25em}
.prose h2,.prose h3,.prose h4{font-family:Outfit,sans-serif;font-weight:700;line-height:1.25;color:hsl(var(--foreground));scroll-margin-top:5rem}
.prose h2{font-size:1.75rem;margin-top:2em;margin-bottom:.6em}
.prose h3{font-size:1.35rem;margin-top:1.6em;margin-bottom:.5em}
.prose h4{font-size:1.125rem;margin-top:1.4em;margin-bottom:.4em}
.prose h2+*,.prose h3+*,.prose h4+*{margin-top:0}
.prose p{margin-bottom:0}
.prose a{color:hsl(var(--primary));text-decoration:underline;text-underline-offset:3px;font-weight:500}
.prose a:hover{opacity:.8}
.prose strong{font-weight:700;color:hsl(var(--foreground))}
.prose ul,.prose ol{padding-left:1.5em}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li{margin:.4em 0;padding-left:.25em}
.prose li::marker{color:hsl(var(--muted-foreground))}
.prose blockquote{border-left:4px solid hsl(var(--primary));padding:.25em 0 .25em 1em;font-style:italic;color:hsl(var(--muted-foreground))}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:hsl(var(--muted));padding:.15em .35em;border-radius:.3em}
.prose pre{background:hsl(210 25% 10%);color:#e5e7eb;padding:1em 1.25em;border-radius:.75rem;overflow-x:auto;font-size:.9em}
.prose pre code{background:none;padding:0}
.prose hr{border:0;border-top:1px solid hsl(var(--border));margin:2.5em 0}
.prose img,.prose video,.prose iframe{max-width:100%;height:auto;border-radius:.75rem}
.prose figure{margin:2em 0}
.prose figcaption,.prose .wp-element-caption{font-size:.875rem;color:hsl(var(--muted-foreground));text-align:center;margin-top:.5em}
.prose table{width:100%;border-collapse:collapse;font-size:.95em;display:block;overflow-x:auto}
.prose th,.prose td{border:1px solid hsl(var(--border));padding:.6em .8em;text-align:left;vertical-align:top}
.prose th{background:hsl(var(--muted));font-weight:600}
.prose .dfx-note{background:hsl(var(--primary)/.08);border:1px solid hsl(var(--primary)/.25);border-radius:.75rem;padding:1em 1.25em}
.prose .dfx-note>:first-child{margin-top:0}
@media (min-width:768px){.prose-lg{font-size:1.125rem}}

/* WordPress core classes */
.alignleft{float:left;margin:.3em 1.5em 1em 0}
.alignright{float:right;margin:.3em 0 1em 1.5em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}
.sticky,.bypostauthor,.gallery-caption{}
.wp-block-button__link{display:inline-block;background:hsl(var(--primary));color:hsl(var(--primary-foreground))!important;padding:.6em 1.2em;border-radius:.6rem;text-decoration:none!important}
.wp-block-table{overflow-x:auto}

/* Pagination */
.navigation.pagination .nav-links{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.navigation.pagination .page-numbers{display:inline-flex;min-width:2.5rem;height:2.5rem;align-items:center;justify-content:center;padding:0 .75rem;border:1px solid hsl(var(--border));border-radius:.6rem;font-size:.9rem}
.navigation.pagination .page-numbers.current{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}
.navigation.pagination a.page-numbers:hover{border-color:hsl(var(--primary))}

/* Post navigation */
.dfx-post-nav{display:grid;gap:1rem}
@media (min-width:640px){.dfx-post-nav{grid-template-columns:1fr 1fr}}
.dfx-post-nav a{display:block;border:1px solid hsl(var(--border));border-radius:.75rem;padding:1rem 1.25rem}
.dfx-post-nav a:hover{border-color:hsl(var(--primary))}
.dfx-post-nav .next{text-align:right}

/* Search form */
.dfx-search{display:flex;gap:.5rem;max-width:32rem;margin:0 auto}
.dfx-search input[type=search]{flex:1;height:2.75rem;border:1px solid hsl(var(--border));border-radius:.6rem;padding:0 .9rem;background:hsl(var(--background));color:hsl(var(--foreground))}
.dfx-search button{height:2.75rem;padding:0 1.1rem;border-radius:.6rem;background:hsl(var(--primary));color:hsl(var(--primary-foreground));font-weight:600}

/* Homepage editable content + steps */
.dfx-steps{counter-reset:step}
.dfx-step-num{display:inline-flex;width:2.25rem;height:2.25rem;align-items:center;justify-content:center;border-radius:999px;background:hsl(var(--primary));color:hsl(var(--primary-foreground));font-weight:700}
.dfx-faq details{border:1px solid hsl(var(--border));border-radius:.75rem;padding:1rem 1.25rem}
.dfx-faq details+details{margin-top:.75rem}
.dfx-faq summary{cursor:pointer;font-weight:600;font-size:1.05rem;list-style:none}
.dfx-faq summary::-webkit-details-marker{display:none}
.dfx-faq summary::after{content:"+";float:right;color:hsl(var(--primary));font-weight:700}
.dfx-faq details[open] summary::after{content:"\2212"}
.dfx-faq details p{margin-top:.6rem;color:hsl(var(--muted-foreground))}

/* Ad containers: reserve space only when an ad is filled (avoids layout shift + empty boxes) */
ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important}

/* Download button spinner state */
.download-btn[aria-busy="true"]{opacity:.6;pointer-events:none}

/* Utilities used by the templates but missing from the compiled Tailwind build */
.top-16{top:4rem}
.max-w-xl{max-width:36rem}
.max-w-5xl{max-width:64rem}
.min-h-\[60vh\]{min-height:60vh}
.text-6xl{font-size:3.75rem;line-height:1}
.tracking-wider{letter-spacing:.05em}
.mt-10{margin-top:2.5rem}
.space-y-8>:not(:last-child){margin-bottom:2rem}
.bg-destructive\/10{background-color:hsl(var(--destructive)/.1)}
.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}
@media (min-width:48rem){
  .md\:col-span-2{grid-column:span 2/span 2}
  .md\:py-20{padding-top:5rem;padding-bottom:5rem}
  .md\:text-4xl{font-size:2.25rem;line-height:1.2}
}
