/* Author: SiberMimar "Guray Avci" | www.sibermimar.com.tr */
:root {
  --polat-navy: #071424;
  --polat-surface: #10243a;
  --polat-raised: #162d45;
  --polat-gold: #ffd078;
  --polat-amber: #e49335;
  --polat-ivory: #fff3dc;
  --polat-text: #d4e0ec;
  --polat-line: #88683f;
  --polat-action: linear-gradient(112deg, #ffdc90 0%, #ffc568 54%, #e59a42 100%);
  --polat-shadow: 0 18px 46px #02091260;
}
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #ffbf55;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* Shared brand styling for the public careers pages. */
.career-theme {
  --cream: var(--polat-navy);
  --white: var(--polat-surface);
  --ink: var(--polat-ivory);
  --muted: var(--polat-text);
  --gold: var(--polat-gold);
  --line: #88683f70;
  background: radial-gradient(ellipse at 90% 0%, #172f47 0, transparent 48rem), var(--polat-navy);
}
.career-theme .public-header { background: #081726f5; border-bottom-color: #a9794460; }
.career-theme .public-header nav a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.career-theme .public-header nav [aria-current=page] { color: var(--polat-gold); text-decoration-thickness: 2px; }
.career-theme .btn.career-primary { background: var(--polat-action); color: #142035; font-weight: 500; }
.career-theme .btn.career-outline { background: transparent; border-color: #b48a56; color: var(--polat-ivory); }
.career-theme .btn.career-outline:hover { background: #1b334c; }
.career-banner { border-color: #a9794485; background: radial-gradient(ellipse at 83% 12%, #1e3b54 0, transparent 60%), linear-gradient(125deg,#081728,#101f34 73%,#281d25); }
.career-banner h1, .career-theme .job-card-content h2 { color: var(--polat-ivory); }
.career-banner h1 em, .career-theme .micro { color: var(--polat-gold); }
.career-banner p:not(.micro) { max-width: 50ch; color: var(--polat-text); }
.career-home-links a, .career-theme .job-card { border-color: #88683f80; background: linear-gradient(146deg, var(--polat-raised), var(--polat-surface)); }
.career-home-links strong { color: var(--polat-gold); font-size: 1.04rem; }
.career-home-links span, .career-theme .job-card-content p { color: var(--polat-text); }
.career-home-links a:hover, .career-theme .job-card:hover { border-color: var(--polat-gold); }
.career-theme .job-poster { border-color: #88683f7d; background: #081625; }
.career-theme .job-card-content .micro { color: var(--polat-gold); font-size: .74rem; }
.career-theme .job-footer { padding-top: 14px; }
.career-theme .job-footer a { min-height: 44px; }
.career-theme .job-read .panel, .career-theme .auth, .career-theme .public-footer { background: var(--polat-surface); border-color: #88683f75; }
@media (max-width: 580px) { .career-theme .public-header nav { width: 100%; } .career-theme .public-header nav a:not(.btn) { min-height: 40px; } }

/* Form labels and the keyboard skip link need their own foreground on dark pages. */
.career-theme .field label { color: var(--polat-ivory); }
.career-theme .skip, .career-theme .skip:focus-visible { background: var(--polat-gold); color: #142035; }

/* Pair feedback surfaces with explicit text colors in both themes. */
.flash { background: #e8f5ed; color: #153e2a; border-left-color: #377b52; }
.flash.flash-error { background: #ffe7e7; color: #681c27; border-left-color: #b43142; }
.career-theme .flash:not(.flash-error) { background: #123829; color: #d8fae7; border-left-color: #68c997; }
.career-theme .flash.flash-error { background: #401b28; color: #ffe3e8; border-left-color: #ef8293; }
.career-theme .flash a { color: inherit; text-decoration: underline; }

.career-theme .portal-nav a { background: var(--polat-surface); border-color: var(--polat-line); color: var(--polat-ivory); }
.career-theme .portal-nav a:not([aria-current]):hover { background: var(--polat-raised); border-color: var(--polat-gold); }
.career-theme .note { background: var(--polat-raised); color: var(--polat-ivory); }
.career-theme button.btn-subtle { color: var(--polat-ivory); border-color: var(--polat-line); }
.career-theme .note .btn-gold { color: var(--polat-navy); }
.management-tabs { margin-block: 0 1.5rem; justify-content: flex-start; }
.management-tabs a[aria-current="page"] { background: #f3d6a4; border-color: #f3d6a4; color: #111e30; }
.management-tabs a[aria-current="true"] { background: #f3d6a4; border-color: #f3d6a4; color: #111e30; }
.management-subtabs { margin-top: -.9rem; }
.portal-top + .management-tabs { margin-top: -0.75rem; }
progress { max-width: 100%; accent-color: #e6ba73; }
