:root {
  --tm-ink: #172023;
  --tm-muted: #607074;
  --tm-paper: #fffefa;
  --tm-canvas: #f2f4f0;
  --tm-line: #dce3dc;
  --tm-green: #087543;
  --tm-green-dark: #075636;
  --tm-red: #bd1e2d;
  --tm-gold: #c99b3f;
  --tm-blue: #195f80;
  --tm-shadow: 0 18px 50px rgba(19, 42, 33, 0.09);
  --tm-radius: 18px;
  --tm-content: 1380px;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--tm-canvas);
}

body {
  margin: 0 !important;
  min-width: 280px;
  color: var(--tm-ink) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(8, 117, 67, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 5%, rgba(189, 30, 45, 0.06), transparent 23rem),
    var(--tm-canvas) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
embed,
object {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--tm-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tm-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(25, 95, 128, 0.28);
  outline-offset: 3px;
}

/* Shared masthead used by every modernized PHP and HTML page. */
.turkoloji-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(5, 54, 35, 0.98), rgba(8, 117, 67, 0.96) 60%, rgba(19, 93, 79, 0.96));
  border-bottom: 4px solid var(--tm-gold);
  box-shadow: 0 12px 36px rgba(5, 54, 35, 0.18);
}

.turkoloji-site-header::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(255,255,255,0.07) 49%, rgba(255,255,255,0.07) 51%, transparent 52%);
  background-size: 42px 42px;
}

.tm-header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand feature"
    "nav nav";
  gap: 14px 28px;
  align-items: center;
  width: min(calc(100% - 40px), var(--tm-content));
  margin: 0 auto;
  padding: 17px 0 0;
}

.tm-brand {
  grid-area: brand;
  display: inline-flex;
  gap: 15px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: #fff !important;
  text-decoration: none !important;
}

.tm-brand-logo {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 4px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.tm-brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.tm-brand-copy small {
  margin-bottom: 5px;
  color: #d8ecdf;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tm-brand-copy strong {
  max-width: 760px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tm-brand-copy span {
  margin-top: 5px;
  color: #f0f6f1;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.tm-ataturk {
  grid-area: feature;
  display: flex;
  align-items: center;
  min-height: 78px;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 12px;
  box-shadow: 0 9px 25px rgba(0,0,0,0.16);
}

.tm-ataturk img {
  display: block;
  width: min(300px, 28vw);
  max-height: 78px;
  object-fit: cover;
  border-radius: 7px;
}

.tm-nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 51px;
  padding: 0;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,0.16);
  scrollbar-width: thin;
}

.tm-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  color: #f4faf6 !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
}

.tm-nav a:hover,
.tm-nav a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
  border-bottom-color: #f1ca72;
}

.tm-nav-toggle {
  display: none;
  grid-area: toggle;
  width: 45px;
  height: 42px;
  padding: 9px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 10px;
  cursor: pointer;
}

.tm-nav-toggle span,
.tm-nav-toggle::before,
.tm-nav-toggle::after {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  content: "";
  background: currentColor;
  border-radius: 2px;
}

/* Common canvas for legacy pages. It keeps their content but gives it room,
   hierarchy and safe horizontal scrolling on small screens. */
.turkoloji-legacy-stage {
  width: min(calc(100% - 40px), var(--tm-content));
  min-height: 55vh;
  margin: 30px auto 48px;
  padding: clamp(20px, 3vw, 42px);
  overflow-x: auto;
  background: rgba(255, 254, 250, 0.98);
  border: 1px solid rgba(23, 32, 35, 0.09);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow);
}

.turkoloji-legacy-stage::before {
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 22px;
  content: "";
  background: linear-gradient(90deg, var(--tm-green), var(--tm-red));
  border-radius: 999px;
}

.turkoloji-legacy-stage h1,
.turkoloji-legacy-stage h2,
.turkoloji-legacy-stage h3,
.turkoloji-legacy-stage h4 {
  color: var(--tm-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  text-wrap: balance;
}

.turkoloji-legacy-stage h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.turkoloji-legacy-stage h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.turkoloji-legacy-stage h3 { font-size: clamp(1.18rem, 2vw, 1.55rem); }

.turkoloji-legacy-stage p,
.turkoloji-legacy-stage li {
  max-width: 82ch;
}

.turkoloji-legacy-stage hr {
  height: 1px;
  margin: 26px 0;
  background: var(--tm-line);
  border: 0;
}

.turkoloji-legacy-stage table {
  max-width: 100%;
  border-color: var(--tm-line) !important;
  border-collapse: separate;
  border-spacing: 0;
}

.turkoloji-legacy-stage table[width="100%"],
.turkoloji-legacy-stage table[width="95%"],
.turkoloji-legacy-stage table[width="90%"],
.turkoloji-legacy-stage > table[width="80%"] {
  width: 100% !important;
}

.turkoloji-legacy-stage > table[align="center"] {
  margin-inline: auto;
}

/* Remove the obsolete application banner; the shared masthead replaces it. */
.turkoloji-legacy-stage .ewHeaderRow {
  display: none !important;
}

.turkoloji-legacy-stage .ewLayout,
.turkoloji-legacy-stage .ewContentTable {
  width: 100% !important;
  min-width: 0 !important;
}

/* Fully rebuilt application pages. JavaScript replaces the old layout table
   with this semantic grid; only real row/column datasets remain as tables. */
.turkoloji-legacy-stage.tm-application-stage {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.turkoloji-legacy-stage.tm-application-stage::before {
  display: none;
}

.tm-application-stage .ewLayout {
  padding: 0 !important;
  background: transparent !important;
}

.tm-application-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.tm-application-menu {
  position: sticky;
  top: 18px;
  padding: 20px 16px;
  color: #e9f5ed;
  background: linear-gradient(155deg, var(--tm-green-dark), #0f7a52);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(5, 54, 35, 0.18);
}

.tm-application-menu::before {
  display: block;
  margin: 0 6px 13px;
  color: #f1ca72;
  content: "\0042\00F6\006C\00FC\006D\006C\0065\0072";
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-application-menu .phpmaker,
.tm-application-menu .ewMenuBarVertical,
.tm-application-menu .bd,
.tm-application-menu ul,
.tm-application-menu li {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  list-style: none !important;
}

.tm-application-menu li + li {
  margin-top: 3px !important;
}

.tm-application-menu li li {
  padding-left: 12px !important;
}

.tm-application-menu a {
  display: block !important;
  width: auto !important;
  min-height: 38px;
  padding: 9px 10px !important;
  color: #f4fbf6 !important;
  line-height: 1.35;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px;
  white-space: normal !important;
}

.tm-application-menu a:hover,
.tm-application-menu a:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
}

.tm-application-content {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  background: rgba(255, 254, 250, 0.99);
  border: 1px solid rgba(23, 32, 35, 0.09);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow);
}

.tm-app-title {
  margin: 0 0 8px !important;
  color: var(--tm-green-dark) !important;
  font: 700 clamp(1.55rem, 3vw, 2.25rem)/1.2 Georgia, "Times New Roman", serif !important;
}

.tm-application-content p.ewTitle {
  margin: 0 0 24px !important;
  color: var(--tm-muted) !important;
  font-size: clamp(1rem, 2vw, 1.15rem) !important;
  white-space: normal !important;
}

.tm-application-content .ewBasicSearch,
.tm-application-content [id$="_SearchPanel"] {
  max-width: 880px;
}

.tm-application-content .ewBasicSearch {
  margin: 10px 0 24px;
  padding: 18px;
  background: #f2f7f3;
  border: 1px solid #d8e5db;
  border-radius: 13px;
}

.tm-application-content .ewCssTableRow {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100% !important;
  margin: 6px 0;
}

.tm-application-content .ewCssTableRow input[type="text"] {
  flex: 1 1 260px;
}

.tm-application-content .ewGrid {
  display: block;
  width: 100% !important;
  margin-top: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5df !important;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 42, 29, 0.07);
}

.tm-application-content .ewGridContent {
  display: block;
  width: 100% !important;
  padding: 0 !important;
}

.tm-application-content .ewGrid > tbody,
.tm-application-content .ewGrid > tbody > tr {
  display: block;
  width: 100% !important;
}

.tm-application-content .ewGridUpperPanel,
.tm-application-content .ewGridLowerPanel {
  padding: 12px 14px !important;
  overflow-x: auto;
  background: #f4f8f5 !important;
  border: 0 !important;
  border-bottom: 1px solid #dce5df !important;
}

.tm-application-content .ewPager,
.tm-application-content .ewPager table {
  width: auto !important;
  margin: 0 !important;
  background: transparent !important;
}

.tm-application-content .ewGridMiddlePanel {
  width: 100%;
  overflow-x: auto;
}

.tm-application-content table.ewTable {
  width: 100% !important;
  min-width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.tm-application-content .ewTable .ewTableHeader > td,
.tm-application-content .ewTable > thead > tr > th {
  padding: 12px 14px !important;
  color: #fff !important;
  font-weight: 750 !important;
  background: linear-gradient(180deg, #176f4e, var(--tm-green-dark)) !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,0.18) !important;
}

.tm-application-content .ewTable > tbody > tr > td {
  padding: 10px 14px !important;
  color: var(--tm-ink) !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #e7ece8 !important;
}

.tm-application-content .ewTable > tbody > tr:nth-child(even) > td {
  background: #f6f8f6 !important;
}

.tm-application-content .ewTable > tbody > tr:hover > td {
  background: #eaf4ed !important;
}

.tm-application-content .ewTableHeaderBtn,
.tm-application-content .ewTableHeaderBtn td {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-application-content .ewPager > tbody > tr {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.tm-application-content .ewPager > tbody > tr > td {
  display: block;
  padding: 0 !important;
}

/* PHPRunner applications: the generated outer layout table is replaced by
   a semantic application shell in turkoloji-modern.js. */
.turkoloji-legacy-stage.tm-runner-stage {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.turkoloji-legacy-stage.tm-runner-stage::before {
  display: none;
}

.tm-runner-application {
  display: grid;
  gap: 18px;
  width: 100%;
  color: var(--tm-ink);
  font-size: 0.94rem;
}

.tm-runner-heading,
.tm-runner-toolbar,
.tm-runner-content {
  min-width: 0;
  background: rgba(255, 254, 250, 0.99);
  border: 1px solid rgba(23, 32, 35, 0.09);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow);
}

.tm-runner-heading {
  position: relative;
  padding: clamp(24px, 3.2vw, 42px);
  overflow: hidden;
}

.tm-runner-heading::before {
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 18px;
  content: "";
  background: linear-gradient(90deg, var(--tm-green), var(--tm-red));
  border-radius: 999px;
}

.tm-db-title {
  max-width: 30ch;
  margin: 0 !important;
  color: var(--tm-green-dark) !important;
  font: 700 clamp(1.65rem, 3.7vw, 2.65rem)/1.12 Georgia, "Times New Roman", serif !important;
}

.tm-runner-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-top: 16px;
  color: var(--tm-muted);
}

.tm-runner-intro p {
  max-width: 78ch;
  margin: 0 !important;
}

.tm-db-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.tm-db-breadcrumbs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 10px;
  color: var(--tm-green-dark) !important;
  font-weight: 700;
  text-decoration: none !important;
  background: #edf5ef;
  border: 1px solid #d5e3d8;
  border-radius: 999px;
}

.tm-runner-toolbar {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.tm-runner-toolbar > div,
.tm-runner-toolbar table.runner-c,
.tm-runner-toolbar table.runner-hc,
.tm-runner-toolbar table.runner-c > tbody,
.tm-runner-toolbar table.runner-hc > tbody {
  display: block;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-runner-toolbar table.runner-c > tbody > tr.runner-toprow,
.tm-runner-toolbar table.runner-c > tbody > tr.runner-bottomrow {
  display: none !important;
}

.tm-runner-toolbar table.runner-c > tbody > tr.runner-row,
.tm-runner-toolbar table.runner-c > tbody > tr.runner-row > td.runner-cc,
.tm-runner-toolbar table.runner-hc > tbody > tr {
  display: flex;
  width: 100% !important;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-runner-toolbar table.runner-hc > tbody > tr > td {
  display: block;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-runner-toolbar .runner-b-search {
  flex: 1 1 330px;
}

.tm-runner-toolbar .runner-b-search > span,
.tm-runner-toolbar .runner-b-search > span > span {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tm-runner-toolbar input.ctlSearchTip {
  width: min(100%, 430px) !important;
  height: 44px !important;
  margin: 0 !important;
}

.tm-runner-toolbar .runner-b-details_found,
.tm-runner-toolbar .runner-b-page_of,
.tm-runner-toolbar .runner-b-recsperpage {
  color: var(--tm-muted);
  font-size: 0.86rem;
}

.tm-runner-toolbar .runner-b-details_found b,
.tm-runner-toolbar .runner-b-page_of b {
  color: var(--tm-green-dark);
}

.tm-runner-toolbar .runner-button,
.tm-runner-toolbar .runner-button-img,
.tm-runner-application .runner-button {
  display: inline-flex !important;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px !important;
  color: var(--tm-green-dark) !important;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
  background: #eef5f0 !important;
  border: 1px solid #cbdcd0 !important;
  border-radius: 9px;
}

.tm-runner-toolbar .runner-button-img img,
.tm-runner-application .runner-button-img img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tm-runner-layout {
  display: grid;
  grid-template-columns: minmax(210px, 255px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tm-runner-layout > .tm-runner-content:only-child {
  grid-column: 1 / -1;
}

.tm-runner-menu {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  padding: 15px;
  overflow: auto;
  color: #eff8f2;
  background: linear-gradient(155deg, var(--tm-green-dark), #0f7a52);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(5, 54, 35, 0.18);
}

.tm-runner-menu::before {
  display: block;
  margin: 2px 7px 11px;
  color: #f1ca72;
  content: "B\00F6l\00FCmler";
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tm-runner-menu .runner-hiddencontainer,
.tm-runner-menu table.runner-c-left,
.tm-runner-menu table.runner-c-left > tbody {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-runner-menu table.runner-c-left > tbody > tr.runner-toprow,
.tm-runner-menu table.runner-c-left > tbody > tr.runner-bottomrow,
.tm-runner-menu table.runner-c-left > tbody > tr.runner-b-searchpanel,
.tm-runner-menu .runner-cl,
.tm-runner-menu .runner-cr {
  display: none !important;
}

.tm-runner-menu tr.runner-vmenu,
.tm-runner-menu tr.runner-vmenu > td.runner-cc {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-runner-menu tr.runner-vmenu + tr.runner-vmenu {
  margin-top: 3px;
}

.tm-runner-menu tr.runner-vmenu a {
  display: block;
  padding: 8px 10px;
  color: #f5fbf7 !important;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  border-radius: 9px;
}

.tm-runner-menu tr.runner-vmenu a:hover,
.tm-runner-menu tr.runner-vmenu a:focus-visible {
  background: rgba(255,255,255,0.13);
}

.tm-runner-advanced {
  padding: 16px;
  background: #f2f7f3;
  border: 1px solid #d7e4da;
  border-radius: 13px;
}

.tm-runner-content {
  padding: clamp(16px, 2vw, 26px);
  overflow: hidden;
}

.tm-runner-content > div {
  max-width: 100%;
}

.tm-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  background: #fff;
  border: 1px solid #d9e3dc;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(15, 42, 29, 0.06);
  scrollbar-width: thin;
}

.ewGrid .tm-table-scroll,
.tm-application-content .tm-table-scroll {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tm-runner-grid,
.tm-archive-table {
  width: 100% !important;
  min-width: 100%;
  margin: 0 !important;
  color: var(--tm-ink) !important;
  background: #fff !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font: inherit !important;
}

.tm-runner-grid > thead > tr > th,
.tm-archive-table .tm-table-head > th,
.tm-archive-table .tm-table-head > td {
  padding: 11px 12px !important;
  color: #fff !important;
  font-weight: 750 !important;
  text-align: left;
  vertical-align: middle;
  background: linear-gradient(180deg, #176f4e, var(--tm-green-dark)) !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,0.16) !important;
}

.tm-runner-grid > thead > tr > th a,
.tm-archive-table .tm-table-head a {
  color: #fff !important;
  font-weight: inherit;
}

.tm-runner-grid > tbody > tr.runner-row > td,
.tm-archive-table tr:not(.tm-table-head) > td {
  padding: 10px 12px !important;
  color: var(--tm-ink) !important;
  vertical-align: top;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #e4ebe6 !important;
}

.tm-runner-grid > tbody > tr.runner-row:nth-child(even) > td,
.tm-archive-table tr:not(.tm-table-head):nth-child(even) > td {
  background: #f4f7f5 !important;
}

.tm-runner-grid > tbody > tr.runner-row:hover > td,
.tm-archive-table tr:not(.tm-table-head):hover > td {
  background: #eaf4ed !important;
}

.tm-runner-grid .runner-cl,
.tm-runner-grid .runner-cr,
.tm-runner-grid > tbody > tr.runner-bottomrow {
  display: none !important;
}

.tm-runner-grid .runner-icons {
  width: 42px;
  text-align: center;
}

.tm-runner-grid .runner-icons img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tm-runner-content table.runner-c-pagination,
.tm-runner-content table.runner-c-pagination > tbody,
.tm-runner-content table.runner-c-pagination > tbody > tr.runner-row,
.tm-runner-content table.runner-c-pagination > tbody > tr.runner-row > td.runner-cc,
.tm-runner-content table.runner-c-pagination table,
.tm-runner-content table.runner-c-pagination table > tbody,
.tm-runner-content table.runner-c-pagination table tr,
.tm-runner-content table.runner-c-pagination table td {
  display: block;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-runner-content table.runner-c-pagination > tbody > tr.runner-toprow,
.tm-runner-content table.runner-c-pagination > tbody > tr.runner-bottomrow,
.tm-runner-content table.runner-c-pagination .runner-cl,
.tm-runner-content table.runner-c-pagination .runner-cr {
  display: none !important;
}

.tm-runner-content .runner-c-pagination {
  margin-top: 18px !important;
}

.tm-runner-content .runner-c-pagination a,
.tm-runner-content .runner-c-pagination b {
  display: inline-grid;
  min-width: 36px;
  min-height: 36px;
  margin: 3px;
  place-items: center;
  padding: 4px 8px;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #cfddd3;
  border-radius: 8px;
}

.tm-runner-content .runner-c-pagination b {
  color: #fff;
  background: var(--tm-green);
  border-color: var(--tm-green);
}

.tm-runner-content table.runner-c-menu {
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
}

.tm-runner-content table.runner-c-menu .runner-vmenu a {
  display: block;
  padding: 11px 13px;
  color: var(--tm-green-dark) !important;
  font-weight: 750;
  text-decoration: none !important;
  background: #f0f6f2;
  border: 1px solid #d8e5db;
  border-radius: 9px;
}

/* Raw database archives: retain real rows and columns, remove hard-coded
   widths/colours, and present them as the same result component. */
.turkoloji-legacy-stage > .tm-table-scroll {
  margin: 22px 0;
}

.tm-archive-table td,
.tm-archive-table th {
  min-width: 0 !important;
  font: inherit !important;
}

.turkoloji-legacy-stage form {
  max-width: 100%;
}

.turkoloji-legacy-stage form > table:not(.tm-data-table) {
  width: min(100%, 900px) !important;
}

/* Reconstructed archive galleries use the original photographs and a new,
   accessible card layout instead of the missing FrontPage index files. */
.tm-gallery-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.tm-gallery-heading span {
  color: var(--tm-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-gallery-heading h1 {
  margin: 5px 0 0;
}

.tm-gallery-heading strong {
  padding: 9px 13px;
  color: var(--tm-green-dark);
  background: #eaf4ed;
  border-radius: 999px;
}

.tm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.tm-gallery-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--tm-green-dark) !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 13px;
  box-shadow: 0 7px 20px rgba(15, 42, 29, 0.07);
}

.tm-gallery-card:hover {
  border-color: #9ebdab;
  transform: translateY(-2px);
}

.tm-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf3ef;
}

.tm-gallery-card span {
  padding: 11px 13px;
  font-weight: 700;
}

.tm-gallery-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.tm-gallery-pages a {
  display: grid;
  min-width: 39px;
  min-height: 39px;
  place-items: center;
  color: var(--tm-green-dark) !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #cfdcd3;
  border-radius: 9px;
}

.tm-gallery-pages a[aria-current="page"] {
  color: #fff !important;
  background: var(--tm-green);
  border-color: var(--tm-green);
}

.tm-image-fallback {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 11px;
  color: var(--tm-muted);
  background: #f0f4f1;
  border: 1px dashed #b9c9be;
  border-radius: 8px;
  font-size: 0.88rem;
}

/* Calm the many hard-coded 1990s table colours without changing content. */
.turkoloji-legacy-stage tr[bgcolor] > td,
.turkoloji-legacy-stage td[bgcolor] {
  padding: 8px 10px;
  background: #f2f7f3 !important;
  border-bottom: 1px solid var(--tm-line) !important;
}

.turkoloji-legacy-stage tr[bgcolor]:nth-child(even) > td {
  background: #fbfdfb !important;
}

.turkoloji-legacy-stage td,
.turkoloji-legacy-stage th {
  border-color: var(--tm-line) !important;
}

.turkoloji-legacy-stage th {
  color: #fff;
  background: var(--tm-green-dark) !important;
}

.turkoloji-legacy-stage input:not([type="checkbox"]):not([type="radio"]):not([type="image"]),
.turkoloji-legacy-stage select,
.turkoloji-legacy-stage textarea {
  max-width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--tm-ink);
  background: #fff;
  border: 1px solid #bcc9c1;
  border-radius: 9px;
  font: inherit;
}

.turkoloji-legacy-stage input[type="submit"],
.turkoloji-legacy-stage input[type="button"],
.turkoloji-legacy-stage button,
.turkoloji-legacy-stage .button {
  min-height: 42px;
  padding: 9px 17px;
  color: #fff !important;
  background: var(--tm-green) !important;
  border: 0 !important;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.turkoloji-legacy-stage input[type="submit"]:hover,
.turkoloji-legacy-stage button:hover {
  background: var(--tm-green-dark) !important;
}

.tm-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  color: #fff !important;
  background: var(--tm-ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.tm-skip-link:focus {
  transform: translateY(0);
}

.tm-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--tm-green-dark);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(5, 54, 35, 0.24);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.tm-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Home page */
.turkoloji-home .main-container {
  display: grid !important;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 26px !important;
  width: min(calc(100% - 40px), var(--tm-content));
  margin: 30px auto 48px !important;
}

.turkoloji-home .left-menu,
.turkoloji-home main.content {
  min-width: 0;
  margin: 0 !important;
  background: rgba(255,254,250,0.98) !important;
  border: 1px solid rgba(23, 32, 35, 0.09) !important;
  border-radius: var(--tm-radius) !important;
  box-shadow: var(--tm-shadow);
}

.turkoloji-home .left-menu {
  align-self: start;
  padding: 22px !important;
}

.turkoloji-home .left-menu h3 {
  margin: 22px 0 10px !important;
  padding: 0 0 8px !important;
  color: var(--tm-green-dark) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem !important;
  border-bottom: 2px solid rgba(8,117,67,0.18) !important;
}

.turkoloji-home .left-menu h3:first-child {
  margin-top: 0 !important;
}

.turkoloji-home .left-menu ul {
  display: grid;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.turkoloji-home .left-menu p {
  margin: 0;
  line-height: 1.8;
}

.turkoloji-home .left-menu a {
  display: inline-block;
  padding: 3px 0;
  color: #285b6c;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.turkoloji-home .left-menu a:hover {
  color: var(--tm-red);
  transform: translateX(2px);
}

.turkoloji-home main.content {
  padding: clamp(22px, 3.2vw, 48px) !important;
}

.turkoloji-home main.content > blockquote {
  margin: 0;
}

.tm-home-hero {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #073f2b, #087543 68%, #1d8065);
  border-radius: 16px;
}

.tm-home-hero::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  content: "";
  border: 55px solid rgba(255,255,255,0.07);
  border-radius: 50%;
}

.tm-home-kicker {
  position: relative;
  z-index: 1;
  color: #f4ce7c;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.tm-home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
  text-wrap: balance;
}

.tm-home-hero > p {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  margin: 0;
  color: #e3f0e8;
}

.tm-home-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tm-home-stat {
  display: grid;
  min-width: 142px;
  padding: 12px 16px;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
}

.tm-home-stat strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.tm-home-stat span {
  color: #dcece2;
  font-size: 0.79rem;
}

.turkoloji-home .anket-kutusu {
  margin: 22px 0 !important;
  padding: 20px !important;
  background: #fff9e9 !important;
  border: 1px solid #ebd596 !important;
  border-left: 5px solid var(--tm-gold) !important;
  border-radius: 12px !important;
}

.turkoloji-home .anket-kutusu ul li::before {
  content: "\203A" !important;
  color: var(--tm-gold) !important;
}

.turkoloji-home main.content p {
  max-width: 86ch;
}

.turkoloji-home main.content blockquote blockquote {
  margin: 34px 0 0;
  padding: 26px;
  color: #39494c;
  background: #f7f7f2;
  border-left: 4px solid var(--tm-green);
  border-radius: 0 12px 12px 0;
}

.turkoloji-home footer {
  margin: 0 !important;
  padding: 28px 20px !important;
  color: #dce8df;
  background: #10261e !important;
  border: 0 !important;
}

.turkoloji-home footer a {
  color: #f0cb7f;
}

@media (max-width: 980px) {
  .tm-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand feature"
      "nav nav";
  }

  .tm-ataturk img {
    width: 220px;
  }

  .turkoloji-home .main-container {
    grid-template-columns: 1fr;
  }

  .turkoloji-home .left-menu {
    columns: 2;
    column-gap: 30px;
  }

  .turkoloji-home .left-menu h3,
  .turkoloji-home .left-menu p,
  .turkoloji-home .left-menu ul {
    break-inside: avoid;
  }
}

@media (max-width: 720px) {
  .tm-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "feature feature"
      "nav nav";
    width: min(calc(100% - 24px), var(--tm-content));
    padding-top: 12px;
  }

  .tm-brand-logo {
    width: 58px;
    height: 58px;
  }

  .tm-brand-copy small,
  .tm-brand-copy span {
    display: none;
  }

  .tm-brand-copy strong {
    font-size: 1rem;
  }

  .tm-nav-toggle {
    display: block;
  }

  .tm-ataturk {
    justify-content: center;
    min-height: 64px;
  }

  .tm-ataturk img {
    width: min(100%, 360px);
    max-height: 62px;
  }

  .tm-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255,255,255,0.16);
  }

  .tm-nav.is-open {
    display: flex;
  }

  .tm-nav a {
    min-height: 42px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .tm-nav a:hover,
  .tm-nav a[aria-current="page"] {
    border-left-color: #f1ca72;
  }

  .turkoloji-legacy-stage,
  .turkoloji-home .main-container {
    width: min(calc(100% - 20px), var(--tm-content));
    margin-top: 15px !important;
  }

  .turkoloji-legacy-stage {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .turkoloji-legacy-stage .ewContentTable,
  .turkoloji-legacy-stage .ewContentTable > tbody,
  .turkoloji-legacy-stage .ewContentTable > tbody > tr {
    display: block;
    width: 100% !important;
  }

  .turkoloji-legacy-stage .ewContentTable > tbody > tr {
    display: flex;
    flex-direction: column;
  }

  .turkoloji-legacy-stage .ewContentColumn {
    display: block;
    order: 1;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .turkoloji-legacy-stage .ewMenuColumn {
    display: block;
    order: 2;
    width: 100% !important;
    margin-top: 24px;
    padding: 16px !important;
    background: #f1f6f2 !important;
    border-radius: 12px;
  }

  .turkoloji-legacy-stage .ewContentColumn [style*="white-space"] {
    white-space: normal !important;
  }

  .turkoloji-legacy-stage .ewGrid,
  .turkoloji-legacy-stage .ewGridMiddlePanel,
  .turkoloji-legacy-stage .ewGridUpperPanel {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .tm-application-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .tm-application-content {
    order: 1;
    padding: 22px 14px;
    border-radius: 14px;
  }

  .tm-application-menu {
    position: static;
    order: 2;
    padding: 17px 14px;
  }

  .tm-application-content .ewBasicSearch {
    padding: 14px;
  }

  .tm-application-content .ewGrid {
    border-radius: 11px;
  }

  .tm-application-content table.ewTable {
    min-width: 100%;
  }

  .tm-runner-heading {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .tm-runner-toolbar {
    padding: 12px;
    border-radius: 13px;
  }

  .tm-runner-toolbar table.runner-hc > tbody > tr {
    align-items: stretch;
  }

  .tm-runner-toolbar table.runner-hc > tbody > tr > td {
    width: 100% !important;
  }

  .tm-runner-toolbar .runner-b-search > span,
  .tm-runner-toolbar .runner-b-search > span > span {
    width: 100%;
    flex-wrap: wrap;
  }

  .tm-runner-toolbar input.ctlSearchTip {
    flex: 1 1 190px;
  }

  .tm-runner-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .tm-runner-menu {
    position: static;
    order: 2;
    max-height: none;
  }

  .tm-runner-content {
    order: 1;
    padding: 12px;
    border-radius: 13px;
  }

  .tm-runner-content .tm-table-scroll,
  .tm-application-content .tm-table-scroll,
  .turkoloji-legacy-stage > .tm-table-scroll {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .tm-runner-grid,
  .tm-runner-grid > tbody,
  .tm-archive-table:has(td[data-label]),
  .tm-archive-table:has(td[data-label]) > tbody,
  .tm-application-content .ewTable,
  .tm-application-content .ewTable > tbody {
    display: block;
    width: 100% !important;
  }

  .tm-runner-grid > thead,
  .tm-archive-table:has(td[data-label]) .tm-table-head,
  .tm-application-content .ewTable .ewTableHeader,
  .tm-application-content .ewTable > thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .tm-runner-grid > tbody > tr.runner-row,
  .tm-archive-table:has(td[data-label]) tr:not(.tm-table-head),
  .tm-application-content .ewTable > tbody > tr:not(.ewTableHeader) {
    display: block;
    width: 100% !important;
    margin: 0 0 12px;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #d8e3db !important;
    border-radius: 11px;
    box-shadow: 0 5px 16px rgba(15, 42, 29, 0.05);
  }

  .tm-runner-grid > tbody > tr.runner-row > td.runner-cc,
  .tm-archive-table:has(td[data-label]) tr:not(.tm-table-head) > td[data-label],
  .tm-application-content .ewTable > tbody > tr:not(.ewTableHeader) > td[data-label] {
    display: grid !important;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    width: 100% !important;
    padding: 10px 12px !important;
    overflow-wrap: anywhere;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #e7ede9 !important;
  }

  .tm-runner-grid > tbody > tr.runner-row > td.runner-cc::before,
  .tm-archive-table:has(td[data-label]) td[data-label]::before,
  .tm-application-content .ewTable td[data-label]::before {
    color: var(--tm-green-dark);
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .tm-runner-grid > tbody > tr.runner-row > td.runner-icons {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-end;
    padding: 8px 11px !important;
    background: #eef5f0 !important;
  }

  .tm-runner-grid > tbody > tr.runner-row > td.runner-icons::before {
    content: "Kay\0131t";
    margin-right: auto;
    color: var(--tm-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .tm-runner-grid > tbody > tr.runner-row > td:last-child,
  .tm-archive-table:has(td[data-label]) tr:not(.tm-table-head) > td[data-label]:last-child,
  .tm-application-content .ewTable > tbody > tr:not(.ewTableHeader) > td[data-label]:last-child {
    border-bottom: 0 !important;
  }

  .tm-runner-content .runner-c-pagination a,
  .tm-runner-content .runner-c-pagination b {
    min-width: 34px;
    min-height: 34px;
    margin: 2px;
  }

  .turkoloji-home .left-menu {
    order: 2;
    columns: 1;
  }

  .turkoloji-home main.content {
    order: 1;
    padding: 14px !important;
  }

  .tm-home-hero {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  body { background: #fff !important; }
  .turkoloji-site-header,
  .tm-back-to-top,
  .tm-skip-link { display: none !important; }
  .turkoloji-legacy-stage,
  .turkoloji-home main.content {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
