/* ==========================================================================
   ILG School — Careers
   ========================================================================== */

:root {
  --teal:        #16a99c;
  --teal-deep:   #0b6b63;
  --plum:        #6b2d6b;
  --plum-deep:   #4a1d4a;
  --ink:         #1f2a2e;
  --muted:       #5e7370;
  --mist:        #f2f6f5;
  --line:        #dbe7e5;
  --white:       #ffffff;
  --amber:       #b5651d;

  --shell: 1120px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .06), 0 10px 30px -18px rgba(11, 107, 99, .45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); }

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------- Topbar */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
}

.brand img { height: 52px; width: auto; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--plum);
  text-decoration: none;
  padding: 10px 18px 10px 14px;
  border: 1px solid #e2d3e2;
  border-radius: 100px;
  background: #fbf7fb;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.backlink svg { width: 17px; height: 17px; }

.backlink:hover,
.backlink:focus-visible {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}

/* ----------------------------------------------------------------- Hero */

.hero {
  position: relative;
  background: linear-gradient(108deg, var(--plum-deep) 0%, var(--plum) 38%, var(--teal-deep) 100%);
  color: var(--white);
  padding: 74px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 42px));
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border: 42px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.hero .wrap { position: relative; z-index: 1; }

.hero__meta {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
}

.hero__meta a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.hero__meta a:hover { color: var(--white); text-decoration: underline; }

.hero__title {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
  max-width: 18ch;
}

.hero__sub {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .88);
}

/* ----------------------------------------------------------------- Page */

.page {
  padding: 54px 0 84px;
}

.section-lead {
  font-family: "Lora", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.section-note {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: .95rem;
}

/* ------------------------------------------------------------- Job list */

.joblist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jobrow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-left-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.jobrow:hover,
.jobrow:focus-visible {
  border-left-color: var(--plum);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.jobrow__title {
  font-family: "Lora", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
}

.jobrow__excerpt {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 62ch;
}

.jobmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: .84rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 400;
  color: var(--teal-deep);
}

.tag--deadline {
  background: #fbf7fb;
  border-color: #e6d6e6;
  color: var(--plum);
}

.tag--closed {
  background: #fdf3ec;
  border-color: #f0dcc9;
  color: var(--amber);
}

.jobrow__cta {
  font-size: .88rem;
  font-weight: 500;
  color: var(--teal-deep);
  white-space: nowrap;
}

/* ---------------------------------------------------------- Empty state */

.empty {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
}

.empty h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.empty p { margin: 0 auto; max-width: 46ch; color: var(--muted); }

/* --------------------------------------------------------- Job detail */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail__body { padding: 34px 38px 40px; }

.detail__figure {
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.detail__figure img { width: 100%; height: auto; }

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.prose { font-size: 1rem; color: #2c3a3e; }
.prose p { margin: 0 0 1.1em; }
.prose h3, .prose h4 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  margin: 1.9em 0 .6em;
  font-size: 1.18rem;
}
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* -------------------------------------------------------------- Form */

.apply {
  position: sticky;
  top: 106px;
  border-top: 4px solid var(--teal);
  padding: 30px 30px 34px;
}

.apply h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.apply__note {
  margin: 0 0 24px;
  font-size: .88rem;
  color: var(--muted);
}

.field { margin-bottom: 17px; }

.field--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #3b4d50;
}

.req { color: var(--plum); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfdedb;
  border-radius: 4px;
  padding: 11px 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 169, 156, .16);
}

.filefield {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed #bcd2ce;
  border-radius: 4px;
  background: var(--mist);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.filefield:hover { border-color: var(--teal); background: #eaf5f3; }

.filefield input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.filefield svg { width: 22px; height: 22px; color: var(--teal-deep); flex: none; }

.filefield__text { font-size: .88rem; line-height: 1.4; }
.filefield__text span { display: block; color: var(--muted); font-size: .78rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  border: 0;
  border-radius: 4px;
  padding: 13px 26px;
  cursor: pointer;
  background: var(--teal-deep);
  color: var(--white);
  text-decoration: none;
  transition: background .18s ease;
}

.btn:hover, .btn:focus-visible { background: var(--plum); }
.btn--full { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--plum);
  border: 1px solid #e2d3e2;
}
.btn--ghost:hover { background: var(--plum); color: var(--white); }
.btn--small { padding: 8px 16px; font-size: .84rem; }
.btn--danger { background: #a3322e; }
.btn--danger:hover { background: #7d2523; }

.honey { position: absolute; left: -9999px; }

/* ------------------------------------------------------------ Messages */

.notice {
  border-radius: 4px;
  padding: 15px 18px;
  margin-bottom: 22px;
  font-size: .92rem;
  border: 1px solid;
}

.notice--ok { background: #eaf7f4; border-color: #b6e0d6; color: #0b6b63; }
.notice--bad { background: #fdeeed; border-color: #f2cac7; color: #9c2f2b; }
.notice ul { margin: 8px 0 0; padding-left: 18px; }

.sent {
  text-align: center;
  padding: 40px 32px;
}

.sent__mark {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eaf7f4;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
}

.sent__mark svg { width: 28px; height: 28px; }

.sent h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.sent p { margin: 0 0 20px; color: var(--muted); font-size: .93rem; }

/* --------------------------------------------------------------- Footer */

.footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, .9);
  padding: 76px 0 34px;
  clip-path: polygon(0 42px, 100% 0, 100% 100%, 0 100%);
  font-size: .93rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
}

.footer__name {
  font-family: "Lora", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--white);
}

.footer__line { margin: 0 0 6px; }
.footer a { color: rgba(255, 255, 255, .9); }

.footer__links { display: flex; flex-direction: column; gap: 8px; }

.footer__legal {
  max-width: var(--shell);
  margin: 44px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .8rem;
  color: rgba(255, 255, 255, .65);
}

/* ---------------------------------------------------------------- Admin */

.admin-grid { display: grid; gap: 24px; }

.adminbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.adminrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.adminrow--off { border-left-color: #c8d4d2; opacity: .72; }

.adminrow h3 { margin: 0 0 6px; font-family: "Lora", Georgia, serif; font-size: 1.1rem; font-weight: 600; }

.adminrow__actions { display: flex; gap: 8px; align-items: center; }

.formcard { padding: 30px 34px 34px; }

.formcard h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 22px;
}

.login {
  max-width: 400px;
  margin: 0 auto;
  padding: 34px;
}

.checkline { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.checkline input { width: 17px; height: 17px; accent-color: var(--teal-deep); }

.tablewrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--white);
}

table.data th, table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th { font-weight: 500; color: var(--muted); background: var(--mist); }

/* ----------------------------------------------------------- Responsive */

@media (max-width: 940px) {
  .detail { grid-template-columns: 1fr; }
  .apply { position: static; }
}

@media (max-width: 700px) {
  .hero { padding: 52px 0 74px; }
  .jobrow { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .detail__body { padding: 26px 22px 30px; }
  .apply { padding: 24px 22px 28px; }
  .field--split { grid-template-columns: 1fr; }
  .topbar__inner { min-height: 68px; }
  .brand img { height: 42px; }
  .backlink { padding: 8px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
