/* ==========================================================================
   Kariyer · Özlük dosyası
   ========================================================================== */

.kr-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px clamp(32px, 6vw, 110px);
  align-items: end;
  padding-bottom: clamp(36px, 5vw, 70px);
}
.kr-head .label { grid-column: 1 / -1; }
.kr-head__h { font-size: clamp(2.9rem, 7vw, 7.4rem); text-transform: uppercase; max-width: 10ch; }
.kr-head__txt { display: grid; gap: 14px; max-width: 46ch; }
.kr-head__more { color: var(--ink-2); font-size: var(--t-body); line-height: 1.5; text-wrap: pretty; }

.kr {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
  padding-bottom: var(--section);
}

/* ---------- Yan sütun: alanlar ve süreç ---------- */

.kr__side { display: grid; gap: clamp(30px, 4vw, 48px); }
.kr__h {
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-sans);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
.kr__areas li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; padding: 9px 0; border-bottom: 1px dotted var(--rule-2); }
.kr__no { font-family: var(--font-type); font-size: 0.82rem; color: var(--ink-3); }
.kr__areas a { text-decoration: none; font-family: var(--font-sans); font-stretch: 86%; font-weight: 580; font-size: 1.04rem; line-height: 1.3; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 88% / 0% 45%; transition: background-size 0.45s var(--ease-out); justify-self: start; }
.kr__areas a:hover { background-size: 100% 45%; }

.kr__steps { position: relative; display: grid; gap: 22px; margin-top: 20px; }
.kr__steps::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; border-left: 1.5px dashed var(--rule-2); }
.kr__steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.kr__steps b { display: block; font-family: var(--font-sans); font-stretch: 82%; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.kr__step {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red);
  transform: rotate(-6deg);
}
.kr__note { font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); max-width: 44ch; }

/* ---------- Dosya ---------- */

.kr__desk { position: relative; min-width: 0; }
.kd { --manila: var(--f-manila); position: relative; }
.kd[hidden] { display: none; }

.kd__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.9em;
  max-width: calc(100% - 28px);
  margin: 0 0 -1px clamp(12px, 3vw, 40px);
  padding: 10px clamp(14px, 2vw, 26px) 9px;
  border-radius: 12px 12px 0 0;
  background: var(--manila);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
}
.kd__tabk { font-family: var(--font-sans); font-weight: 760; font-stretch: 72%; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.kd__who { min-width: 8ch; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-type); font-size: 0.95rem; color: var(--pen); border-bottom: 1px dotted var(--ink-3); }
.kd__who.is-empty { color: var(--ink-3); opacity: 0.75; }

.kd__body {
  position: relative;
  padding: clamp(12px, 2.4vw, 30px) clamp(10px, 2.4vw, 30px) clamp(14px, 2.6vw, 34px);
  border-radius: 4px 14px 6px 6px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .12  0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--manila);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 44px 80px -42px rgba(0, 0, 0, 0.5), 0 12px 24px -16px rgba(0, 0, 0, 0.24);
}

/* dosyanın içindeki basılı form */
.kd__sheet {
  position: relative;
  padding: clamp(22px, 4vw, 52px) clamp(16px, 3.6vw, 52px) clamp(20px, 3vw, 40px);
  background: var(--sheet);
  box-shadow: 0 -4px 0 -1px #efecdf, 0 -8px 0 -2px #e6e1cf, 0 2px 8px -2px rgba(0, 0, 0, 0.18);
}
.kd__clip { position: absolute; top: -18px; right: clamp(20px, 6%, 64px); z-index: 2; width: 22px; color: var(--ink-3); filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.25)); transform: rotate(6deg); pointer-events: none; }
.kd__clip svg { width: 100%; height: auto; display: block; stroke-width: 2.4; }

.kd__notice { margin-bottom: 22px; padding: 10px 14px; border-left: 3px solid var(--red); background: rgba(207, 65, 47, 0.07); color: var(--red); font-family: var(--font-sans); font-stretch: 88%; font-size: var(--t-small); line-height: 1.4; }

.kd__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.kd__title { font-family: var(--font-sans); font-weight: 850; font-stretch: 64%; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 0.98; text-transform: uppercase; letter-spacing: -0.005em; }
.kd__date { font-family: var(--font-type); font-size: 0.95rem; color: var(--ink-2); }
.kd__date span { margin-right: 0.4em; font-family: var(--font-serif); font-style: italic; font-size: var(--t-small); color: var(--ink-3); }
.kd__req { margin: 10px 0 clamp(18px, 2.4vw, 28px); font-style: italic; font-size: var(--t-small); color: var(--ink-3); }
.req { color: var(--red); font-style: normal; }

/* bölüm şeridi */
.kd__sec + .kd__sec { margin-top: clamp(20px, 2.6vw, 30px); }
.kd__band { display: flex; align-items: center; gap: 12px; padding: 5px 12px; background: var(--ink); color: var(--sheet); font-family: var(--font-sans); font-weight: 700; font-stretch: 72%; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.kd__band b { display: grid; place-items: center; min-width: 1.5em; height: 1.5em; border: 1.3px solid currentColor; border-radius: 50%; font-weight: 700; font-size: 0.82rem; letter-spacing: 0; }

/* numaralı form kutuları */
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1.5px solid var(--ink); border-top: 0; }
.cell {
  position: relative;
  align-content: start;
  gap: 0;
  padding: 8px 12px 10px;
  background: var(--sheet);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.cell > label, .attach__l {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5em;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 650;
  font-stretch: 76%;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cell > label i, .attach__l i { font-family: var(--font-type); font-style: normal; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--ink-3); }
.cell > label em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-stretch: 100%; font-size: 0.86rem; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.kd .cell input:not([type="checkbox"]):not([type="radio"]),
.kd .cell select,
.kd .cell textarea {
  padding: 6px 0 2px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  font-family: var(--font-type);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--pen);
  text-overflow: ellipsis;
}
.kd .cell select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.6em;
  cursor: pointer;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%2323409c' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 2px center / 11px 8px;
}
.kd .cell input::placeholder, .kd .cell textarea::placeholder { color: var(--ink-3); opacity: 0.6; }
.cell:focus-within { background-color: #fbf6d4; box-shadow: inset 0 0 0 2px var(--pen); z-index: 1; }
.kd .cell input:focus, .kd .cell select:focus, .kd .cell textarea:focus { border: 0; outline: none; }

/* hata: kırmızı kalemle kenara düşülen not */
.kd .field__err { font-family: var(--font-serif); font-style: italic; font-size: 0.92rem; line-height: 1.3; color: var(--red); }
.kd .field__err:empty { display: none; }
.kd .cell .field__err { margin-top: 2px; }
.kd .field.has-error.cell { background: #f8e7e1; box-shadow: inset 0 0 0 2px var(--red); z-index: 1; }
.kd .field.has-error.cell input, .kd .field.has-error.cell select, .kd .field.has-error.cell textarea { border: 0; }

/* ön yazı: çizgili kâğıt */
.cell--msg { grid-column: 1 / -1; }
.cells:has(.cell--msg:only-child) { grid-template-columns: 1fr; }
.kd .cell--msg textarea {
  min-height: calc(1.9em * 5);
  padding: 0;
  line-height: 1.9em;
  background: linear-gradient(transparent calc(1.9em - 1px), rgba(26, 26, 29, 0.2) calc(1.9em - 1px)) 0 0 / 100% 1.9em local;
  resize: vertical;
}

/* ---------- Özgeçmiş: ataçla tutturulan ek ---------- */

.attach { gap: 0; padding: 12px 12px 14px; border: 1.5px solid var(--ink); border-top: 0; background: var(--sheet); }
.attach__l { margin-bottom: 10px; }
.drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: clamp(20px, 3vw, 32px) 16px;
  border: 1.5px dashed var(--ink-3);
  border-radius: 3px;
  background: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(26, 26, 29, 0.025) 9px 18px);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.drop:hover { border-color: var(--ink); }
.drop:focus-within { border-color: var(--pen); border-style: solid; background-color: #fbf6d4; box-shadow: 0 0 0 2px var(--pen); }
.drop.is-over { border-color: var(--pen); border-style: solid; background-color: rgba(242, 223, 79, 0.35); }
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.drop__ico { width: 20px; color: var(--ink-2); transform: rotate(18deg); margin-bottom: 4px; transition: transform 0.4s var(--ease-stamp); }
.drop__ico svg { display: block; width: 100%; height: auto; }
.drop:hover .drop__ico, .drop.is-over .drop__ico { transform: rotate(0) translateY(-3px); }
.drop__t { font-family: var(--font-sans); font-stretch: 86%; font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.drop__h { font-style: italic; font-size: var(--t-small); color: var(--ink-3); }

.drop__file {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 16px;
  margin-top: 4px;
  padding: 16px 18px 14px 44px;
  background: #fff;
  border: 1px solid var(--rule-2);
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.5deg);
}
.drop__file[hidden] { display: none; }
.drop__clip { position: absolute; left: 14px; top: -10px; width: 18px; color: var(--ink-3); filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.25)); transform: rotate(-4deg); }
.drop__clip svg { display: block; width: 100%; height: auto; stroke-width: 2.4; }
.drop__name { grid-column: 1; font-family: var(--font-type); font-size: 1rem; color: var(--pen); overflow-wrap: anywhere; }
.drop__size { grid-column: 1; font-style: italic; font-size: var(--t-small); color: var(--ink-3); }
.drop__clear {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border: 0; background: none;
  font-family: var(--font-sans); font-stretch: 86%; font-weight: 600; font-size: 0.9rem;
  color: var(--red);
  text-decoration: underline; text-underline-offset: 0.2em;
  cursor: pointer;
}
.drop__clear svg { width: 14px; height: 14px; }
.drop__clear:hover { background: rgba(207, 65, 47, 0.08); }
.attach.has-file .drop { display: none; }
.attach.has-error { background: #f8e7e1; box-shadow: inset 0 0 0 2px var(--red); }
.attach .field__err { margin-top: 8px; }
html:not(.js) .drop__input { position: static; opacity: 1; font-size: 1rem; width: auto; height: auto; }

/* ---------- Onaylar ve gönder ---------- */

.kd__checks { display: grid; gap: 14px; padding: 16px 12px 4px; border: 1.5px solid var(--ink); border-top: 0; }
.kd__checks .check { font-size: 0.95rem; color: var(--ink-2); }
.kd__checks .opt { color: var(--ink-3); }
.kd__checks .field.has-error .check input { border-color: var(--red); box-shadow: 0 0 0 2px rgba(207, 65, 47, 0.25); }
.kd__checks .field__err { padding-left: 34px; padding-bottom: 6px; }

.kd__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(24px, 3vw, 36px); padding-top: 20px; border-top: 1px dashed var(--rule-2); }
.kd__foot .form-status { flex: 1 1 220px; }
.sendbtn { --b-bg: var(--red); --b-bg-solid: var(--red); --b-fg: var(--sheet); border-color: var(--red); margin-left: auto; font-size: 1.05rem; }
.kd.is-busy .sendbtn { opacity: 0.6; pointer-events: none; }

/* ---------- Gönderim: dosya kapanır, kaşe basılır ---------- */

.kd__front { position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.kd__front::after { content: "ÖZLÜK DOSYASI"; position: absolute; left: 50%; top: 42%; transform: translateX(-50%); font-family: var(--font-sans); font-weight: 850; font-stretch: 64%; font-size: clamp(2rem, 6vw, 4.4rem); letter-spacing: 0.06em; color: rgba(26, 26, 29, 0.55); white-space: nowrap; }

.kd--post[hidden] { display: none; }
.kd__done { position: relative; display: grid; gap: 14px; justify-items: start; padding: clamp(26px, 4vw, 56px); background: var(--sheet); box-shadow: 0 -4px 0 -1px #efecdf, 0 -8px 0 -2px #e6e1cf, 0 2px 8px -2px rgba(0, 0, 0, 0.18); min-height: 320px; }
.kd__done:focus { outline: none; }
.kd__done-who { font-family: var(--font-type); font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--pen); text-transform: uppercase; letter-spacing: 0.04em; }
.kd__done-who:empty { display: none; }
.kd__done-h { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.kd__done-msg { max-width: 46ch; color: var(--ink-2); }
.kd-stamp {
  position: absolute;
  right: clamp(14px, 5%, 56px);
  top: clamp(18px, 6%, 48px);
  width: clamp(170px, 34%, 280px);
  color: var(--red);
  mix-blend-mode: multiply;
  filter: url(#ink);
  pointer-events: none;
  opacity: 0;
  --rot: 8deg;
  transform: rotate(var(--rot));
}
.kd-stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.kd-stamp text { font-family: var(--font-sans); fill: currentColor; }
.kd--post.is-in .kd-stamp { opacity: 1; }
.js .kd--post.is-stamping .kd-stamp { animation: stamp 0.5s var(--ease-out) 0.35s both; }

@media (min-height: 820px) and (min-width: 1081px) {
  .kr__side { position: sticky; top: calc(var(--hdr-h) + 24px); }
}
@media (max-width: 1080px) {
  .kr { grid-template-columns: 1fr; }
  .kr__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 32px clamp(24px, 5vw, 56px); }
  .kr__note { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .kr-head { grid-template-columns: 1fr; }
  .kr-head__h { max-width: none; }
}
@media (max-width: 700px) {
  .kr__side { grid-template-columns: 1fr; }
  .cells { grid-template-columns: 1fr; }
  .kd__tab { margin-left: 10px; }
  .kd__sheet { padding-inline: 14px; }
  .kd__band { padding-inline: 10px; }
  .drop__file { grid-template-columns: 1fr; }
  .drop__clear { grid-column: 1; grid-row: auto; justify-self: start; padding-left: 0; }
  .kd-stamp { position: static; justify-self: end; width: 190px; margin-top: 8px; }
  .kd__foot .btn { margin-left: 0; }
}
