/*
 * Fonts + article typography. Loaded on the site (.cs-prose) and in the block editor
 * (.editor-styles-wrapper), so what the doctor sees while writing matches the live page.
 * Fonts are self-hosted (OFL), Latin + Latin Extended only, which covers Turkish.
 */

@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-ext-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-latin-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-latin-ext-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-latin-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-latin-ext-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }

.cs-prose { max-width: 760px; }
.cs-prose > * + * { margin-top: 1.25em; }

:is(.cs-prose, .editor-styles-wrapper) {
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.75;
	color: rgb(14 14 14 / 0.84);

	& h2 { font: 400 clamp(2rem, 3.4vw, 2.75rem)/1.08 "Cormorant Garamond", Georgia, serif; color: #0e0e0e; margin-top: 2.1em; margin-bottom: 0.5em; scroll-margin-top: 110px; }
	& h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; color: #0e0e0e; margin-top: 1.9em; }
	& a { color: #0e0e0e; text-decoration: underline 1px #7d6139; text-underline-offset: 4px; }
	& a:hover { text-decoration-color: #0e0e0e; }
	& strong { color: #0e0e0e; font-weight: 600; }
	& :is(ul, ol) { padding-left: 1.4em; }
	& ul { list-style: disc; }
	& ol { list-style: decimal; }
	& li + li { margin-top: 0.5em; }
	& li::marker { color: #7d6139; }
	& blockquote { border-left: 2px solid #7d6139; padding-left: 1.5rem; font: italic 400 1.6rem/1.35 "Cormorant Garamond", Georgia, serif; color: #0e0e0e; }
	& img { border-radius: 14px; height: auto; }
	& figcaption { font-size: 0.875rem; color: #6b6760; margin-top: 0.75rem; text-align: center; }
	& .aligncenter { margin-inline: auto; }
	& .alignright { float: right; max-width: 42%; margin: 0.4rem 0 1.25rem 2rem; }
	& .alignleft { float: left; max-width: 42%; margin: 0.4rem 2rem 1.25rem 0; }
	& h2 { clear: both; }
	@media (max-width: 639px) {
		& :is(.alignright, .alignleft) { float: none; max-width: 75%; margin: 1.5rem auto; }
	}
	& table { width: 100%; border-collapse: collapse; font-size: 1rem; }
	& :is(th, td) { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid rgb(14 14 14 / 0.12); }
	& .wp-block-button__link { display: inline-flex; padding: 0.8rem 1.5rem; border-radius: 999px; background: #0e0e0e; color: #fafaf7; text-decoration: none; font-size: 0.95rem; }

	/* Pattern: "Kısa cevap paragrafı" — the direct answer Google and ChatGPT quote. */
	& .cs-answer { font-size: 1.25rem; line-height: 1.6; padding: 1.75rem 2rem; background: #eeebe5; border-left: 3px solid #7d6139; border-radius: 4px 18px 18px 4px; color: #0e0e0e; }

	/* Pattern: "Kısa bilgiler kutusu". */
	& .cs-keyfacts { border: 1px solid rgb(14 14 14 / 0.12); border-radius: 22px; padding: 1.75rem 2rem; background: #fff; }
	& .cs-keyfacts__title { margin: 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #7d6139; font-weight: 600; }
	& .cs-keyfacts ul { list-style: none; padding: 0; display: grid; gap: 0.9rem 2rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	& .cs-keyfacts li { margin: 0; font-size: 1rem; line-height: 1.5; }
	& .cs-keyfacts strong { display: block; font-size: 0.8rem; font-weight: 500; color: #6b6760; }

	/* Pattern: "Tedavi adımları". */
	& ol.cs-steps { list-style: none; padding: 0; counter-reset: step; }
	& ol.cs-steps li { counter-increment: step; position: relative; margin: 0; padding: 1.1rem 0 1.1rem 4rem; border-bottom: 1px solid rgb(14 14 14 / 0.12); }
	& ol.cs-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.85rem; font: italic 400 1.9rem/1 "Cormorant Garamond", Georgia, serif; color: #7d6139; }

	/* Pattern: "SSS" — each Details block becomes a FAQ entry in Google's structured data. */
	& details { border-bottom: 1px solid rgb(14 14 14 / 0.12); padding: 1.25rem 0; margin: 0; }
	& summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; font-weight: 500; font-size: 1.15rem; color: #0e0e0e; }
	& summary::-webkit-details-marker { display: none; }
	& summary::after { content: "+"; font: 400 1.75rem/1 "Cormorant Garamond", Georgia, serif; color: #7d6139; transition: transform 0.3s; flex: none; }
	& details[open] summary::after { transform: rotate(45deg); }
	& details > :not(summary) { margin-top: 0.75rem; color: rgb(14 14 14 / 0.72); }

	/* About page CV and publications list. */
	& ul.cs-timeline { list-style: none; padding: 0; border-top: 1px solid rgb(14 14 14 / 0.12); }
	& ul.cs-timeline li { margin: 0; padding: 1rem 0; border-bottom: 1px solid rgb(14 14 14 / 0.12); }
	& ul.cs-timeline strong { display: block; font: italic 500 1.3rem "Cormorant Garamond", Georgia, serif; color: #7d6139; }
	& ol.cs-pubs { font-size: 0.98rem; line-height: 1.6; }
	& ol.cs-pubs li + li { margin-top: 1rem; }
	& ol.cs-pubs a { overflow-wrap: anywhere; }

	/* Writing briefs left by the seed script: dashed so nobody publishes them by accident. */
	& .cs-brief { padding: 1rem 1.25rem; border: 1.5px dashed #c9a877; border-radius: 12px; background: #fbf7ef; font-size: 0.92rem; line-height: 1.6; color: #6a5433; }
}
