/* Turkpidya site header. Inlined into <head> by header.php, so it paints with the first frame.
   Every rule is scoped to .tph (the bar and its panels) or .tph-drawer (phones and tablets), so Kadence's
   element styles for buttons, links, inputs and lists never reach it. The bar stays 80px tall and fixed,
   because every template offsets its content by 80px. */.tph,.tph-drawer{
  --tph-crimson:#E30A17;--tph-crimson-d:#B80813;--tph-gold:#C9A227;--tph-gold-t:#8A6D12;
  --tph-ink:#1A1614;--tph-body:#2D2926;--tph-muted:#6B6662;--tph-line:#ECE7DC;--tph-cream:#F9F6EE;--tph-sand:#F4EEE2;
  --tph-ui:'TP Manrope',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --tph-serif:'TP Literata',Georgia,'Times New Roman',serif;
  --tph-ease:cubic-bezier(.2,.7,.2,1);
  font-family:var(--tph-ui);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale
}
.tph *,.tph *::before,.tph *::after,.tph-drawer *,.tph-drawer *::before,.tph-drawer *::after{box-sizing:border-box}
.tph :where(ul,ol,li,p,h2),.tph-drawer :where(ul,ol,li,p,h2){margin:0;padding:0;list-style:none}
.tph :where(h2),.tph-drawer :where(h2){font:inherit;color:inherit;letter-spacing:inherit;text-transform:none}
.tph :where(a),.tph :where(a:hover,a:focus,a:visited),.tph-drawer :where(a),.tph-drawer :where(a:hover,a:focus,a:visited){color:inherit;text-decoration:none;background:none;box-shadow:none}
.tph :where(button),.tph :where(button:hover,button:focus),.tph-drawer :where(button),.tph-drawer :where(button:hover,button:focus){margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:none;line-height:inherit;min-height:0;cursor:pointer}
.tph :where(input),.tph-drawer :where(input){margin:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;color:inherit;min-height:0;height:auto;width:auto;max-width:none;-webkit-appearance:none;appearance:none}
.tph :where(img),.tph-drawer :where(img){display:block;max-width:none;height:auto}
.tph :where(a,button,input,summary):focus{outline:none}
/* Kadence styles every button and search field (button:hover, input[type=search]:focus); these win over it */
.tph button:is(:hover,:focus,:active),.tph-drawer button:is(:hover,:focus,:active){background:transparent;color:inherit;border-color:transparent;box-shadow:none;text-decoration:none}
:is(.tph,.tph-drawer) .tph__search input,:is(.tph,.tph-drawer) .tph__search input:is(:focus,:hover){border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;padding:0;margin:0;height:100%;min-height:0;color:var(--tph-ink)}
.tph :where(a,button,summary):focus-visible,.tph-drawer :where(a,button,summary):focus-visible{outline:3px solid var(--tph-crimson-d);outline-offset:2px;border-radius:10px}
.tph .fa-solid,.tph-drawer .fa-solid{line-height:1}
:is(.tph,.tph-drawer) .tph__sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Offsets every template already expects *//* clip, not hidden: hidden makes body a scroll container, which breaks position:sticky (Studio contents bars) */
body{padding-top:80px;overflow-x:hidden;overflow-x:clip;width:100%}
body.admin-bar{padding-top:112px!important}
body.admin-bar #masthead.tph{top:32px!important}
@media (max-width:782px){body.admin-bar #masthead.tph{top:46px!important}body.admin-bar{padding-top:126px!important}}
html.tph-lock,html.tph-lock body{overflow:hidden!important}

/* ---------- The bar ---------- *//* Doubled class: Kadence's .transparent-header #masthead{position:absolute} must never win (the Studio tool pages measure this bar) */
#masthead.tph.tph{position:fixed;top:0;left:0;right:0;z-index:9999;height:80px;
  background:rgba(255,253,248,.88);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid rgba(26,22,20,.07);transition:box-shadow .3s,background .3s}
#masthead.tph.is-scrolled,#masthead.tph.has-panel{background:rgba(255,253,248,.97);box-shadow:0 6px 24px -12px rgba(26,22,20,.22)}
:is(.tph,.tph-drawer) .tph__bar{display:flex;align-items:center;gap:clamp(12px,1.6vw,28px);height:80px;max-width:1360px;margin:0 auto;padding:0 clamp(16px,2.4vw,32px)}

:is(.tph,.tph-drawer) .tph__brand{display:flex;align-items:center;gap:10px;flex:none;color:var(--tph-ink)}
:is(.tph,.tph-drawer) .tph__crest{width:44px;height:44px;border-radius:50%;box-shadow:0 2px 8px -2px rgba(184,8,19,.35);transition:transform .35s var(--tph-ease)}
:is(.tph,.tph-drawer) .tph__brand:hover .tph__crest{transform:rotate(-8deg) scale(1.04)}
:is(.tph,.tph-drawer) .tph__word{font-family:var(--tph-serif)!important;font-size:23px;font-weight:700;letter-spacing:-.02em;line-height:1!important;color:var(--tph-ink)}

:is(.tph,.tph-drawer) .tph__nav{flex:1 1 auto;min-width:0;display:flex;justify-content:center}
:is(.tph,.tph-drawer) .tph__links{display:flex;align-items:center;gap:2px}
:is(.tph,.tph-drawer) .tph__links>li{position:relative;flex:none}
:is(.tph,.tph-drawer) .tph__link{position:relative;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 12px;border-radius:999px;
  font-size:15px;font-weight:700;line-height:1!important;color:var(--tph-body);white-space:nowrap;transition:background .2s,color .2s}
:is(.tph,.tph-drawer) .tph__link:is(:hover,[aria-expanded=true]){background:var(--tph-sand);color:var(--tph-ink)}
:is(.tph,.tph-drawer) .tph__link.is-on{color:var(--tph-crimson-d)}
:is(.tph,.tph-drawer) .tph__link.is-on::after{content:"";position:absolute;left:50%;bottom:3px;width:16px;height:3px;margin-left:-8px;border-radius:3px;background:var(--tph-crimson)}
:is(.tph,.tph-drawer) .tph__link--btn .fa-toolbox{font-size:14px;color:var(--tph-crimson-d)}
:is(.tph,.tph-drawer) .tph__chev{font-size:10px;opacity:.6;transition:transform .25s}
:is(.tph,.tph-drawer) [aria-expanded=true]>.tph__chev{transform:rotate(180deg)}
:is(.tph,.tph-drawer) .tph__sep{width:1px;height:22px;margin:0 8px;background:var(--tph-line)}

:is(.tph,.tph-drawer) .tph__actions{display:flex;align-items:center;gap:8px;flex:none;margin-inline-start:auto}
:is(.tph,.tph-drawer) .tph__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;font-size:17px;color:var(--tph-ink);transition:background .2s}
:is(.tph,.tph-drawer) .tph__icon:is(:hover,:focus-visible,[aria-expanded=true]){color:var(--tph-ink);background:var(--tph-sand)}
:is(.tph,.tph-drawer) .tph__lang{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 14px;border-radius:999px;border:1px solid var(--tph-line);
  font-size:14px;font-weight:700;color:var(--tph-ink);background:#fff;transition:border-color .2s,background .2s}
:is(.tph,.tph-drawer) .tph__lang:is(:hover,:focus,[aria-expanded=true]){color:var(--tph-ink);border-color:rgba(184,8,19,.35);background:#FFF8F7}
:is(.tph,.tph-drawer) .tph__lang .fa-globe{color:var(--tph-crimson-d);font-size:15px}
:is(.tph,.tph-drawer) .tph__lang-code{display:none}
:is(.tph,.tph-drawer) .tph__burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;border-radius:50%;padding:0 12px!important}
:is(.tph,.tph-drawer) .tph__burger span{display:block;height:2px;border-radius:2px;background:var(--tph-ink);transition:transform .3s,opacity .2s}
:is(.tph,.tph-drawer) .tph__burger span:nth-child(2){width:70%}

/* ---------- Panels under the bar ---------- */:is(.tph,.tph-drawer) .tph__panel{position:absolute;top:80px;left:0;right:0;padding:0 clamp(12px,2vw,24px);pointer-events:none}
:is(.tph,.tph-drawer) .tph__panel[hidden]{display:none}
:is(.tph,.tph-drawer) .tph__panel-in{max-width:1180px;margin:10px auto 0;padding:26px;border-radius:22px;background:#fff;border:1px solid var(--tph-line);
  box-shadow:0 24px 60px -24px rgba(26,22,20,.35),0 2px 6px rgba(26,22,20,.04);pointer-events:auto;
  opacity:0;transform:translateY(-6px);transition:opacity .22s var(--tph-ease),transform .22s var(--tph-ease)}
:is(.tph,.tph-drawer) .tph__panel.is-open .tph__panel-in{opacity:1;transform:none}
:is(.tph,.tph-drawer) .tph__gh{display:flex;align-items:center;gap:8px;margin-bottom:12px!important;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--tph-muted);line-height:1.3!important}
:is(.tph,.tph-drawer) .tph__pulse{position:relative;width:8px;height:8px;border-radius:50%;background:#1F9D55;flex:none}
:is(.tph,.tph-drawer) .tph__pulse::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid rgba(31,157,85,.45);animation:tph-pulse 2s ease-out infinite}
@keyframes tph-pulse{from{transform:scale(.6);opacity:1}to{transform:scale(1.5);opacity:0}}

/* Tools: live figures, calculators, and a card for the whole shelf */:is(.tph,.tph-drawer) .tph__panel--tools .tph__panel-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,.95fr);gap:28px}
:is(.tph,.tph-drawer) .tph__group--calc ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}
:is(.tph,.tph-drawer) .tph__tool{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;color:var(--tph-body);transition:background .18s}
:is(.tph,.tph-drawer) .tph__tool:hover{background:var(--tph-cream)}
:is(.tph,.tph-drawer) .tph__tool.is-on{background:#FFF1F0}
:is(.tph,.tph-drawer) .tph__ti{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:var(--tph-sand);color:var(--tph-crimson-d);font-size:15px;transition:background .18s,color .18s}
:is(.tph,.tph-drawer) .tph__tool:hover .tph__ti,:is(.tph,.tph-drawer) .tph__tool.is-on .tph__ti{background:var(--tph-crimson-d);color:#fff}
:is(.tph,.tph-drawer) .tph__tt{display:flex;flex-direction:column;min-width:0}
:is(.tph,.tph-drawer) .tph__tn{font-size:14.5px;font-weight:700;line-height:1.3!important;color:var(--tph-ink)}
:is(.tph,.tph-drawer) .tph__td{margin-top:2px;font-size:12.5px;line-height:1.35!important;color:var(--tph-muted)}
:is(.tph,.tph-drawer) .tph__tool--desc{align-items:flex-start}
:is(.tph,.tph-drawer) .tph__en{display:inline-block;margin-inline-start:6px;padding:1px 6px;border-radius:999px;background:rgba(26,127,124,.12);color:#1A7F7C;font-size:10.5px;font-weight:800;vertical-align:1px;white-space:nowrap}
:is(.tph,.tph-drawer) .tph__cta{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:22px;border-radius:18px;
  background:radial-gradient(ellipse 90% 70% at 100% 0%,rgba(201,162,39,.28),transparent 60%),#0F1B2D;color:#fff}
:is(.tph,.tph-drawer) .tph__cta-n{font-family:var(--tph-serif)!important;font-size:48px;font-weight:700;line-height:1!important;color:#E2C15A}
:is(.tph,.tph-drawer) .tph__cta-t{font-size:17px;font-weight:800;line-height:1.3!important}
:is(.tph,.tph-drawer) .tph__cta-p{font-size:13.5px;line-height:1.5!important;color:rgba(255,255,255,.72)}
:is(.tph,.tph-drawer) .tph__cta-btn{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:10px 16px;border-radius:999px;background:#fff;color:var(--tph-crimson-d)!important;font-size:14px;font-weight:800;transition:transform .2s}
:is(.tph,.tph-drawer) .tph__cta-btn:hover{transform:translateY(-1px)}
:is(.tph,.tph-drawer) .tph__cta-dev{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:14px;font-size:13px;font-weight:700;color:rgba(255,255,255,.8)!important}
:is(.tph,.tph-drawer) .tph__cta-dev:hover{color:#fff!important}

/* Languages: every edition by its own name */:is(.tph,.tph-drawer) .tph__panel--langs .tph__panel-in{max-width:560px;margin-inline-start:auto;margin-inline-end:0}
:is(.tph,.tph-drawer) .tph__langs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
:is(.tph,.tph-drawer) .tph__langs a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:10px;font-size:14.5px;font-weight:700;color:var(--tph-body);transition:background .18s}
:is(.tph,.tph-drawer) .tph__langs a:hover{background:var(--tph-cream)}
:is(.tph,.tph-drawer) .tph__langs a.is-on{background:#FFF1F0;color:var(--tph-crimson-d)}
:is(.tph,.tph-drawer) .tph__lc{font-size:10.5px;font-weight:800;letter-spacing:.06em;color:var(--tph-muted)}

/* Search */:is(.tph,.tph-drawer) .tph__panel--search .tph__panel-in{max-width:760px;padding:10px}
:is(.tph,.tph-drawer) .tph__search{position:relative;display:flex;align-items:center;gap:10px;padding:0 6px 0 18px;height:58px;border-radius:14px;background:var(--tph-cream);border:1px solid var(--tph-line)}
:is(.tph,.tph-drawer) .tph__search>.fa-magnifying-glass{color:var(--tph-muted);font-size:16px}
:is(.tph,.tph-drawer) .tph__search input{flex:1 1 auto;min-width:0;height:100%;font-size:17px;font-weight:600;color:var(--tph-ink)}
:is(.tph,.tph-drawer) .tph__search input::placeholder{color:#9B958F;font-weight:500}
:is(.tph,.tph-drawer) .tph__search button{height:44px;padding:0 18px!important;border-radius:10px;background:var(--tph-crimson-d)!important;color:#fff!important;font-size:14.5px;font-weight:800}
:is(.tph,.tph-drawer) .tph__search button:hover{background:#9E0710!important}

/* ---------- Narrower desktops: the wordmark and the language name give way first ---------- */
@media (max-width:1320px){
  :is(.tph,.tph-drawer) .tph__word{display:none}
  :is(.tph,.tph-drawer) .tph__lang-name{display:none}
  :is(.tph,.tph-drawer) .tph__lang-code{display:inline}
  :is(.tph,.tph-drawer) .tph__link{padding:0 10px}
}

/* ---------- Tablets and phones: the drawer ---------- */
@media (max-width:1099px){
  :is(.tph,.tph-drawer) .tph__nav,:is(.tph,.tph-drawer) .tph__lang{display:none}
  :is(.tph,.tph-drawer) .tph__word{display:inline}
  :is(.tph,.tph-drawer) .tph__burger{display:flex}
  :is(.tph,.tph-drawer) .tph__bar{gap:8px}
  :is(.tph,.tph-drawer) .tph__panel--tools,:is(.tph,.tph-drawer) .tph__panel--langs{display:none!important}
  :is(.tph,.tph-drawer) .tph__panel--search .tph__panel-in{margin-top:6px}
}
@media (max-width:480px){
  :is(.tph,.tph-drawer) .tph__crest{width:40px;height:40px}
  :is(.tph,.tph-drawer) .tph__word{font-size:21px}
  :is(.tph,.tph-drawer) .tph__search input{font-size:16px}
}

.tph-drawer{position:fixed;inset:0;z-index:10000}
.tph-drawer[hidden]{display:none}
.tph-drawer .tph-drawer__scrim{position:absolute;inset:0;background:rgba(15,27,45,.45);opacity:0;transition:opacity .28s}
.tph-drawer .tph-drawer__sheet{position:absolute;top:0;bottom:0;right:0;display:flex;flex-direction:column;width:min(430px,100%);background:#FFFDF8;
  box-shadow:-20px 0 60px -20px rgba(15,27,45,.45);transform:translateX(104%);transition:transform .34s var(--tph-ease)}
.tph-drawer.tph--rtl .tph-drawer__sheet{right:auto;left:0;transform:translateX(-104%);box-shadow:20px 0 60px -20px rgba(15,27,45,.45)}
.tph-drawer.is-open .tph-drawer__scrim{opacity:1}
.tph-drawer.is-open .tph-drawer__sheet{transform:none}
.tph-drawer .tph-drawer__top{display:flex;align-items:center;justify-content:space-between;flex:none;height:72px;padding:0 16px 0 20px;border-bottom:1px solid var(--tph-line)}
.tph-drawer .tph__crest{width:40px;height:40px}
.tph-drawer .tph__word{font-size:21px}
.tph-drawer .tph-drawer__top .tph__icon{font-size:20px}
.tph-drawer .tph-drawer__body{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:18px 20px 28px}
.tph-drawer .tph__gh{margin-top:24px}
:is(.tph,.tph-drawer) .tph__search--drawer{height:52px;padding:0 5px 0 16px;background:#fff}
:is(.tph,.tph-drawer) .tph__search--drawer input{font-size:16px}
:is(.tph,.tph-drawer) .tph__search--drawer button{width:42px;height:42px;padding:0!important;display:grid;place-items:center}
.tph-drawer .tph-drawer__topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tph-drawer .tph-drawer__topics a{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 12px;border-radius:14px;background:var(--tph-sand);font-size:15.5px;font-weight:800;color:var(--tph-ink);line-height:1.25!important}
.tph-drawer .tph-drawer__topics a i{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:#fff;color:var(--tph-crimson-d);font-size:14px}
.tph-drawer .tph-drawer__topics a.is-on{background:#FFE9E7;color:var(--tph-crimson-d)}
.tph-drawer .tph-drawer__tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px}
.tph-drawer .tph-drawer__tools a{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 4px;border-radius:10px;font-size:14.5px;font-weight:700;color:var(--tph-body);line-height:1.25!important}
.tph-drawer .tph-drawer__tools a i{flex:none;width:18px;text-align:center;color:var(--tph-crimson-d);font-size:14px}
.tph-drawer .tph-drawer__tools a.is-on{color:var(--tph-crimson-d)}
.tph-drawer .tph-drawer__more{margin-top:14px;border-top:1px solid var(--tph-line)}
.tph-drawer .tph-drawer__more>summary{display:flex;align-items:center;gap:10px;padding:14px 0 6px;cursor:pointer;list-style:none}
.tph-drawer .tph-drawer__more>summary::-webkit-details-marker{display:none}
.tph-drawer .tph-drawer__more>summary .tph__gh{margin:0!important}
.tph-drawer .tph-drawer__count{padding:2px 8px;border-radius:999px;background:var(--tph-sand);font-size:12px;font-weight:800;color:var(--tph-muted)}
.tph-drawer .tph-drawer__more>summary .fa-chevron-down{margin-inline-start:auto;font-size:12px;color:var(--tph-muted);transition:transform .25s}
.tph-drawer .tph-drawer__more[open]>summary .fa-chevron-down{transform:rotate(180deg)}
.tph-drawer .tph-drawer__all{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;min-height:48px;border-radius:14px;background:var(--tph-crimson-d);color:#fff!important;font-size:15px;font-weight:800}
.tph-drawer .tph-drawer__langs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tph-drawer .tph-drawer__langs a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 8px;border-radius:10px;border:1px solid var(--tph-line);background:#fff;font-size:13.5px;font-weight:700;color:var(--tph-body);text-align:center;line-height:1.2!important}
.tph-drawer .tph-drawer__langs a.is-on{border-color:var(--tph-crimson-d);background:#FFF1F0;color:var(--tph-crimson-d)}
.tph-drawer .tph-drawer__foot{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:26px!important;padding-top:16px!important;border-top:1px solid var(--tph-line)}
.tph-drawer .tph-drawer__foot a{font-size:14px;font-weight:700;color:var(--tph-muted)}

/* Right to left */.tph--rtl .tph__link.is-on::after{left:auto;right:50%;margin-left:0;margin-right:-8px}
.tph--rtl .tph__gh,.tph-drawer.tph--rtl .tph__gh{letter-spacing:0}

@media (prefers-reduced-motion:reduce){
  .tph *,.tph-drawer *{transition:none!important;animation:none!important}
}
@media print{#masthead.tph,.tph-drawer{display:none!important}body{padding-top:0!important}}

/* Arabic and Persian script reads small at Latin sizes */
:is(html[lang|=ar],html[lang|=fa]) :is(.tph,.tph-drawer) :is(.tph__link,.tph__tn,.tph__langs a,.tph-drawer__tools a,.tph-drawer__langs a){font-size:16.5px}
:is(html[lang|=ar],html[lang|=fa]) :is(.tph,.tph-drawer) :is(.tph__td,.tph__cta-p){font-size:13.5px}
:is(html[lang|=ar],html[lang|=fa]) :is(.tph,.tph-drawer) .tph-drawer__topics a{font-size:17px}

/* Language switcher: an edition without this page links to its home page and shows a small house (class-site-header.php Nav::home_mark) */.tp-lang-home{display:inline-block;margin-inline-start:.35em;font-size:.72em;line-height:1;vertical-align:.06em}
