/*
Theme Name: Necat Kaplan
Theme URI: https://dr.luneaajans.com/
Author: Lunea Ajans
Description: Op. Dr. Necat Kaplan için özel tasarım. Yerel WordPress sayfaları, düzenlenebilir içerikler ve duyarlı görünüm.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: necat-kaplan
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* The approved design lives in site/. WordPress-only compatibility rules. */
body.admin-bar .header { top: 32px; }
body.admin-bar { --wp-admin--admin-bar--height: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar { --wp-admin--admin-bar--height: 46px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar .header.scrolled { top: 0; }
}
/* Keep section blocks edge-to-edge when content is edited in WordPress. */
#main > .wp-block-html, #main > .wp-block-group { margin-block: 0; }


/* Lunea Ajans — page and portrait refinement, 6 November 2026. */
body, body.topic-page { min-width: 0; }
.wrap, .topic-shell { width: min(1240px, calc(100% - 96px)); }
.v3-about { padding-top: 88px; }
.v3-about-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(40px, 6vw, 88px); }
.nk-portrait-card { height: 550px; isolation: isolate; border: 1px solid #cbdfe8; border-radius: 24px 96px 24px 24px; background: linear-gradient(145deg, #f2f8fb 8%, #e2eff5 58%, #bfd9e5); box-shadow: 0 20px 48px #193b590c; }
.nk-portrait-card::before { content: ''; position: absolute; width: 370px; height: 370px; border: 1px solid #ffffffd9; border-radius: 50%; top: 40px; left: 50%; transform: translateX(-50%); z-index: -1; box-shadow: 0 0 0 24px #ffffff24, 0 0 0 48px #ffffff14; }
.nk-portrait-card > img { position: absolute; inset: 20px 0 95px; width: 100%; height: calc(100% - 115px); object-fit: contain; object-position: center bottom; }
.nk-portrait-card .v3-about-sign { position: absolute; display: flex; flex-direction: column; bottom: 0; left: 0; right: 0; padding: 22px 28px 24px; background: #ffffffed; border: 0; border-top: 1px solid #d4e4ec; border-radius: 0; backdrop-filter: blur(12px); }
.nk-portrait-card .v3-about-sign > span { color: #698698; font-size: 10px; letter-spacing: 1.8px; }
.nk-portrait-card .v3-about-sign > strong { font-size: 30px; line-height: 1.2; margin-top: 5px; }
.nk-portrait-card .v3-about-sign > small { color: #52748b; font-size: 9px; letter-spacing: 1.6px; margin-top: 9px; }
.v3-about-copy > .section-title { font-size: clamp(32px, 3.1vw, 45px); line-height: 1.15; letter-spacing: -1.5px; }
.v3-about-copy > p:not(.v3-about-lead) { font-size: 15px; line-height: 1.9; }
.v3-about-lead { max-width: 510px; font-size: 20px; }
.v3-about-copy > .button { margin-top: 12px; }
.v3-career-timeline { gap: 24px; margin-top: 54px; padding-bottom: 62px; }
.v3-career-timeline > li { padding-top: 24px; }
.v3-career-timeline time { font-size: 25px; }
.v3-career-timeline h3 { font-size: 13px; }
.v3-career-timeline p { font-size: 12px; }
.treatment, .v3-article-card, .v3-media-card { border-radius: 18px; }
.treatment-content, .v3-article-copy { padding: 26px; }
.v3-article-card { display: flex; flex-direction: column; }
.v3-article-copy { display: flex; flex-direction: column; flex: 1; }
.v3-article-copy p { flex: 1; }
.v3-article-link { margin-top: auto; }
.topic-detail-hero, .topic-overview-hero { background: radial-gradient(ellipse at 95% 15%, #d9ebf2, transparent 58%), #f1f7fa; }
.topic-breadcrumb { padding-top: 28px; font-size: 12px; }
.topic-detail-hero-grid, .topic-overview-grid { gap: 70px; padding-top: 46px; padding-bottom: 52px; }
.topic-detail-hero h1, .topic-overview-copy h1 { font-size: clamp(40px, 4.5vw, 62px); line-height: 1.1; letter-spacing: -2px; margin-top: 18px; }
.topic-detail-hero-grid > div > p, .topic-overview-copy > p { font-size: 17px; line-height: 1.85; }
.topic-detail-art, .topic-overview-art { height: 270px; border-radius: 20px 70px 20px 20px; border: 1px solid #d5e3eb; box-shadow: 0 14px 36px #193b5909; }
.topic-detail-art > img, .topic-overview-art > img { filter: saturate(.82); }
.topic-reading { padding-top: 64px; padding-bottom: 54px; }
.topic-reading-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
.topic-contents { padding: 22px; border: 1px solid #dfe9ee; border-radius: 16px; background: #f7fafc; }
.topic-contents > .topic-eyebrow { padding-bottom: 14px; }
.topic-contents > a { padding: 13px 0; font-size: 12px; }
.topic-contents > a:last-of-type { border-bottom: 0; }
.topic-contents-contact { margin-top: 18px; }
.topic-article-section { gap: 20px; padding-bottom: 32px; margin-bottom: 32px; scroll-margin-top: 150px; }
.topic-article-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; padding: 0; margin-top: 3px; border-radius: 50%; background: #eaf3f8; color: #52778f; font-size: 9px; }
.topic-article-section h2 { font-size: 28px; letter-spacing: -.8px; }
.topic-article-section p { font-size: 16px; line-height: 1.9; max-width: 720px; }
.topic-article-note { margin: 0 0 24px 48px; padding: 20px 24px; background: #f0f7fa; border-left: 2px solid #89b3c9; border-radius: 0 12px 12px 0; }
.topic-article-note > p { font-size: 12px; }
.topic-source { margin-left: 48px; font-size: 11px; line-height: 1.9; }
.topic-catalogue { padding: 60px 0; }
.topic-card { border-radius: 18px; }
.topic-card-copy { padding: 26px; }
.topic-card-image, .topic-card-count-2 .topic-card-image { height: 230px; }
.topic-section-heading h2 { font-size: 34px; }
.topic-preparation { padding: 54px 0; }
.topic-preparation-grid { gap: 80px; }
.topic-preparation h2 { font-size: 36px; }
.topic-related { padding: 38px 0; }
.nk-page-intro { background: #f0f7fa; border-bottom: 1px solid #dce8ef; padding: 0 0 46px; }
.nk-page-intro .topic-eyebrow { margin-top: 42px; }
.nk-page-intro h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.12; font-weight: 500; letter-spacing: -1.8px; margin: 16px 0; }
.nk-page-intro p { max-width: 660px; font-size: 17px; line-height: 1.8; color: #58778c; }
.nk-profile-page .v3-about { padding-top: 64px; }
.nk-profile-page .v3-about-grid { align-items: start; }
.nk-profile-page .v3-about-copy { padding-top: 26px; }
.nk-support-page .v3-contact, .nk-support-page .v3-knowledge, .nk-support-page .v3-media { background: white; padding-top: 58px; padding-bottom: 66px; }
.nk-support-page .v3-section-heading { margin-bottom: 32px; }
.nk-topic-directory { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #dce7ed; }
.nk-topic-directory a { display: inline-flex; gap: 18px; align-items: center; padding: 12px 17px; background: #f1f7fa; border: 1px solid #dce7ed; border-radius: 8px; font-size: 13px; }
.nk-topic-directory a:hover { background: #e4f0f6; }
@media (min-width: 1024px) and (max-width: 1150px) {
  .wrap, .topic-shell { width: calc(100% - 64px); }
  .header nav { gap: 16px; }
  .header-cta { margin-left: 20px; }
  .v3-about-grid { gap: 40px; }
  .nk-portrait-card { height: 520px; }
  .topic-detail-hero-grid, .topic-overview-grid { gap: 42px; }
  .topic-reading-grid { gap: 42px; grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .wrap, .topic-shell { width: calc(100% - 48px); }
  .v3-about { padding-top: 56px; }
  .v3-about-grid { gap: 36px; }
  .nk-portrait-card { height: 480px; border-radius: 20px 70px 20px 20px; }
  .v3-about-copy > .section-title { font-size: 34px; }
  .v3-career-timeline { gap: 22px; padding-bottom: 46px; }
  .topic-detail-hero-grid, .topic-overview-grid { gap: 32px; padding-top: 34px; padding-bottom: 38px; }
  .topic-detail-art, .topic-overview-art { height: 235px; }
  .topic-reading-grid { gap: 36px; }
  .topic-preparation-grid { gap: 40px; }
}
@media (max-width: 767px) {
  .wrap, .topic-shell { width: calc(100% - 40px); }
  .v3-about { padding-top: 44px; }
  .v3-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .nk-portrait-card { height: 490px; max-width: 470px; width: 100%; margin-inline: auto; border-radius: 20px 72px 20px 20px; }
  .nk-portrait-card > img { inset: 18px 0 91px; height: calc(100% - 109px); }
  .nk-portrait-card::before { width: 300px; height: 300px; }
  .nk-portrait-card .v3-about-sign { padding: 19px 24px 21px; }
  .nk-portrait-card .v3-about-sign > strong { font-size: 28px; }
  .v3-about-copy > .section-title { font-size: 34px; letter-spacing: -1.2px; }
  .v3-about-lead { font-size: 18px; }
  .v3-about-copy > p:not(.v3-about-lead) { font-size: 14px; line-height: 1.85; }
  .v3-career-timeline { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 38px; padding-bottom: 42px; }
  .v3-career-timeline > li { padding: 18px 0 0; }
  .v3-career-timeline time { font-size: 23px; }
  .v3-career-timeline h3 { font-size: 12px; }
  .v3-career-timeline p { font-size: 11px; }
  .treatment-content, .v3-article-copy, .topic-card-copy { padding: 22px; }
  .topic-breadcrumb { font-size: 10px; gap: 8px; padding-top: 20px; }
  .topic-detail-hero-grid, .topic-overview-grid { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 34px; }
  .topic-detail-hero h1, .topic-overview-copy h1 { font-size: 38px; letter-spacing: -1.5px; margin: 14px 0 18px; }
  .topic-detail-hero-grid > div > p, .topic-overview-copy > p { font-size: 15px; line-height: 1.85; }
  .topic-detail-art, .topic-overview-art { height: auto; aspect-ratio: 16/9; border-radius: 16px 50px 16px 16px; }
  .topic-reading { padding: 32px 0 38px; }
  .topic-reading-grid { display: block; }
  .topic-contents { position: static; padding: 20px; margin-bottom: 34px; }
  .topic-article-section { gap: 12px; margin-bottom: 26px; padding-bottom: 26px; scroll-margin-top: 110px; }
  .topic-article-number { flex-basis: 24px; height: 24px; margin-top: 2px; }
  .topic-article-section h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.6px; }
  .topic-article-section p { font-size: 14px; line-height: 1.9; }
  .topic-article-note { margin-left: 36px; padding: 17px 18px; }
  .topic-source { margin-left: 36px; font-size: 10px; }
  .topic-catalogue { padding: 38px 0; }
  .topic-card-image, .topic-card-count-2 .topic-card-image { height: auto; aspect-ratio: 16/9; }
  .topic-section-heading h2 { font-size: 29px; }
  .topic-preparation { padding: 38px 0; }
  .topic-preparation h2 { font-size: 30px; }
  .topic-related { padding: 30px 0; }
  .nk-page-intro { padding-bottom: 32px; }
  .nk-page-intro .topic-eyebrow { margin-top: 28px; }
  .nk-page-intro h1 { font-size: 38px; letter-spacing: -1.3px; }
  .nk-page-intro p { font-size: 15px; }
  .nk-profile-page .v3-about { padding-top: 34px; }
  .nk-profile-page .v3-about-copy { padding-top: 0; }
  .nk-support-page .v3-contact, .nk-support-page .v3-knowledge, .nk-support-page .v3-media { padding: 38px 0 44px; }
  .nk-topic-directory { gap: 8px; }
  .nk-topic-directory a { padding: 10px 13px; font-size: 12px; }
}
@media (max-width: 380px) {
  .wrap, .topic-shell { width: calc(100% - 32px); }
  .nk-portrait-card { height: 450px; }
  .nk-portrait-card .v3-about-sign > strong { font-size: 26px; }
  .topic-detail-hero h1, .topic-overview-copy h1, .nk-page-intro h1 { font-size: 34px; }
}

/* Turkish release — navigation, reading, and contact access. */
.nk-language-label { display: inline-flex; align-items: center; gap: 7px; margin-left: 24px; padding-left: 20px; border-left: 1px solid #dce6ed; color: #668197; font-size: 10px; line-height: 1; letter-spacing: .8px; }
.header nav > a[aria-current="page"] { color: #193b59; font-weight: 600; }
.header nav > a[aria-current="page"]::after { transform: scaleX(1); }
.directory-item[aria-current="page"] { background: #f0f7fa; border-radius: 8px; }
.credentials .credential-specialty strong { font-size: 23px; letter-spacing: -.6px; line-height: 1.25; white-space: normal; }
.nk-knowledge-more { display: flex; justify-content: center; margin-top: 28px; }
.nk-knowledge-more a { display: inline-flex; align-items: center; gap: 24px; min-height: 46px; font-size: 13px; border-bottom: 1px solid #a6bece; }
.nk-knowledge-more .icon { width: 17px; height: 17px; }
.nk-resource-section { padding: 58px 0 66px; }
.nk-resource-note { max-width: 820px; margin-bottom: 32px; padding: 22px 26px; border-left: 2px solid #88b1c8; border-radius: 0 12px 12px 0; background: #f0f7fa; color: #56758a; font-size: 14px; line-height: 1.85; }
.nk-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.nk-resource-card { border: 1px solid #dce7ed; border-radius: 16px; background: #fff; padding: 26px; min-width: 0; }
.nk-resource-card h2 { font-size: 23px; font-weight: 500; letter-spacing: -.6px; line-height: 1.3; margin: 0 0 18px; }
.nk-resource-card h2 a { display: inline-flex; align-items: center; gap: 14px; }
.nk-resource-card h2 .icon { width: 16px; height: 16px; color: #7c9eb3; }
.nk-resource-card ul { list-style: none; padding: 0; margin: 0; }
.nk-resource-card li + li { border-top: 1px solid #e7eef2; }
.nk-resource-card li a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 12px 0; color: #53758d; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.nk-resource-card li a:hover { color: #193b59; text-decoration: underline; text-underline-offset: 4px; }
.nk-resource-card li .icon { height: 14px; width: 14px; }
.nk-support-page .v3-faq { padding-top: 56px; padding-bottom: 66px; }
.nk-mobile-contact { display: none; }
.v3-contact-row[href*="wa.me"] .v3-contact-symbol { background: #edf5f4; border-color: #c9dfdb; }
@media (max-width: 1023px) {
  .header .nk-language-label { order: 1; min-height: 44px; margin-left: 10px; padding-left: 12px; margin-right: 3px; font-size: 10px; }
  .header nav > a[aria-current="page"] { border-bottom-color: #91b8cc; }
  .nk-mobile-contact { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px; z-index: 28; background: #ffffffed; border-top: 1px solid #d7e5ed; box-shadow: 0 -6px 26px #193b5910; backdrop-filter: blur(16px); }
  .nk-mobile-contact a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 12px; border: 1px solid #cbdde7; border-radius: 8px; color: #193b59; font-size: 13px; line-height: 1.3; font-weight: 500; }
  .nk-mobile-contact a:last-child { border-color: #193b59; background: #193b59; color: #fff; }
  .nk-mobile-contact .icon { width: 18px; height: 18px; }
  body.mobile-navigation-open .nk-mobile-contact, body.dialog-open .nk-mobile-contact { display: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .topic-contents { top: 112px; }
  .nk-resource-grid { gap: 18px; }
  .nk-resource-card { padding: 23px; }
}
@media (max-width: 767px) {
  .credentials .credential-specialty strong { font-size: 20px; }
  .nk-resource-section { padding: 34px 0 42px; }
  .nk-resource-note { padding: 18px 20px; font-size: 13px; margin-bottom: 24px; }
  .nk-resource-grid { grid-template-columns: 1fr; gap: 16px; }
  .nk-resource-card { padding: 22px; }
  .nk-resource-card h2 { font-size: 23px; }
  .nk-resource-card li a { font-size: 13px; }
  .nk-support-page .v3-faq { padding-top: 36px; padding-bottom: 42px; }
  .nk-knowledge-more { margin-top: 22px; }
  .nk-mobile-contact { padding-left: 16px; padding-right: 16px; }
  .nk-mobile-contact a { font-size: 12px; }
}
@media print {
  .header, .utility, .nk-mobile-contact, .v3-footer { display: none !important; }
  body { padding-bottom: 0; }
  .motion [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .topic-contents { position: static; }
  .topic-reading-grid { display: block; }
}
