/* Er-Teknik Otomasyon — kurumsal tema yardımcı stilleri (asıl stiller Tailwind sınıflarıyla) */
[x-cloak] { display: none !important; }

::selection { background-color: #F2982A; color: #fff; }

input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #F2982A;
    outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Sayfa içeriği (panelden girilen HTML) */
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: 'Barlow', Inter, sans-serif; color: #36404a; }
.prose .lead { font-size: 1.25rem; line-height: 1.7; color: #47535D; }
.prose img { border-radius: 0.75rem; margin: 1.5rem 0; width: 100%; max-height: 28rem; object-fit: cover; cursor: zoom-in; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5rem; }
.prose ul > li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #F2982A; }
:where(.prose a:not(.not-prose a)) { color: #d9801a; text-decoration: underline; text-underline-offset: 2px; }
:where(.prose a.no-underline) { text-decoration: none; }
.not-prose img { max-height: none; margin: 0; }
.not-prose a { text-decoration: none; }

/* Editörden gelen görsel yerleşimi (data-align / data-size) */
.prose::after { content: ''; display: table; clear: both; }
.prose img { max-width: 100%; height: auto; max-height: none; width: auto; object-fit: initial; }
.prose img[data-align="left"]  { float: left;  margin: .25rem 1.5rem 1rem 0; }
.prose img[data-align="right"] { float: right; margin: .25rem 0 1rem 1.5rem; }
.prose img[data-align="center"] { display: block; margin-left: auto; margin-right: auto; float: none; }
.prose img[data-size="quarter"]    { width: 25%; }
.prose img[data-size="third"]      { width: calc(33.333% - .9rem); }
.prose img[data-size="half"]       { width: 50%; }
.prose img[data-size="two-thirds"] { width: 66.666%; }
.prose img[data-size="full"]       { width: 100%; }
/* yan yana (galeri) görseller: üçte bir boyutlu görseller satırda akar */
.prose img[data-size="third"], .prose img[data-size="quarter"] { display: inline-block; vertical-align: top; margin: .25rem; aspect-ratio: 3/4; object-fit: cover; cursor: zoom-in; }
.prose img[data-size="quarter"] { width: calc(25% - .9rem); }
@media (max-width: 640px) {
  .prose img[data-align="left"], .prose img[data-align="right"] { float: none; display: block; margin: 1rem auto; }
  .prose img[data-size="quarter"], .prose img[data-size="half"], .prose img[data-size="two-thirds"] { width: 100%; }
  .prose img[data-size="third"] { width: calc(50% - .9rem); }
}

/* Editörün "ızgara" bloğu (grid-layout) */
.prose .grid-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 768px) { .prose .grid-layout { grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr))); } }
.prose .grid-layout > .grid-layout-col { border: 1px solid #e9ecef; border-radius: .75rem; padding: 1.25rem; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.prose .grid-layout > .grid-layout-col > :first-child { margin-top: 0; }
.prose .grid-layout > .grid-layout-col > :last-child { margin-bottom: 0; }
.prose .grid-layout img { width: 100%; margin: 0 0 1rem; aspect-ratio: 16/10; object-fit: cover; }
.prose div.lead { font-size: 1.25rem; line-height: 1.7; color: #47535D; }
.prose div.lead > p { margin: 0 0 1rem; }
.prose h3 a, .prose .grid-layout h3 a { color: #36404a; text-decoration: none; }
.prose h3 a:hover { color: #d9801a; }
.prose .grid-layout { font-size: .95rem; line-height: 1.6; }
.prose .grid-layout h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.prose .grid-layout p { margin: 0 0 .75rem; }
.prose .grid-layout a { font-weight: 600; }
