/* ==========================================================
   dorefer.in — openings shared simply
   Powered by SSquare IT Solutions
   ========================================================== */

:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e7e5e4;
  --line-2: #f1efed;
  --bg: #faf9f7;
  --card: #ffffff;
  --primary: #1f4fd6;
  --primary-ink: #173da8;
  --primary-soft: #eef3ff;
  --green: #0f8a4f;
  --green-soft: #e8f6ee;
  --amber: #a85a06;
  --amber-soft: #fff6e6;
  --red: #b4400c;
  --red-soft: #fff0e8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .05);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--line-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1f2937; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0b7442; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfccc8; color: var(--ink); }
.btn-amber { background: #f4a21b; color: #1f1300; }
.btn-amber:hover { background: #e3920c; color: #1f1300; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon { width: 17px; height: 17px; flex: none; }

/* ---------- Intro ---------- */
.intro { padding: 48px 0 28px; }
.intro .kicker { font-size: 13px; font-weight: 600; color: var(--green); display: inline-flex; gap: 8px; align-items: center; }
.intro .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(15,138,79,.15); }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; letter-spacing: -.02em; margin: 12px 0 10px; line-height: 1.1; }
.intro h1 em { font-style: italic; color: var(--primary); }
.intro p { color: var(--ink-2); font-size: 16.5px; max-width: 600px; }
.searchbar { margin-top: 22px; display: flex; align-items: center; gap: 10px; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; box-shadow: var(--shadow); }
.searchbar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.searchbar input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 15px; min-width: 0; height: 100%; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; padding-bottom: 24px; }
.sidebar .proj-buy .btn { flex: 1; }
.sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.day { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 26px 2px 12px; display: flex; align-items: center; gap: 12px; }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day:first-child { margin-top: 0; }
.feed { display: flex; flex-direction: column; gap: 14px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- Opening card ---------- */
.opening { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.op-main { padding: 20px 22px 6px; }
.op-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.op-title { font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
a.op-title:hover { color: var(--primary); }
.op-company { font-size: 15px; color: var(--ink-2); margin-top: 2px; font-weight: 500; }
.op-share { flex: none; color: var(--muted); padding: 6px; border-radius: 8px; border: 0; background: none; cursor: pointer; }
.op-share:hover { background: var(--line-2); color: var(--ink); }
.op-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.op-facts span { display: inline-flex; align-items: center; gap: 6px; }
.op-facts svg { width: 15px; height: 15px; color: var(--muted); }
.op-badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--red-soft); color: var(--red); white-space: nowrap; }
.op-more { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.op-more summary { cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13.5px; list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.op-more summary::-webkit-details-marker { display: none; }
.op-more summary::after { content: "▾"; font-size: 11px; }
.op-more[open] summary::after { content: "▴"; }
.op-more .body { margin-top: 10px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.op-more .body p { margin-bottom: 6px; }
.op-more .body ul { margin: 0 0 6px; padding-left: 18px; }

.apply { margin: 14px 22px 0; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); }
.apply h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-ink); margin-bottom: 8px; }
.apply .note { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; flex-wrap: wrap; }
.contact-row + .contact-row { border-top: 1px dashed rgba(31,79,214,.18); }
.contact-row .val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.contact-row .val svg { color: var(--primary); width: 16px; height: 16px; flex: none; }
.contact-row .acts { display: flex; gap: 6px; }
.apply .deadline { font-size: 13px; color: var(--muted); margin-top: 8px; }

.op-project { display: flex; align-items: center; gap: 12px; margin: 14px 22px 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.op-project .pi { width: 32px; height: 32px; border-radius: 9px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; flex: none; }
.op-project .pi svg { width: 17px; height: 17px; }
.op-project .txt { flex: 1; min-width: 0; }
.op-project b { color: var(--ink); }
.op-project .go { color: var(--amber); font-weight: 700; white-space: nowrap; cursor: pointer; background: none; border: 0; padding: 0; font-size: 13.5px; }
.op-project .go:hover { text-decoration: underline; }
.op-foot-pad { height: 18px; }

/* ---------- Sidebar ---------- */
.widget h3 { font-size: 15px; font-weight: 700; }
.widget .sub { font-size: 13px; color: var(--muted); margin: 3px 0 12px; }
.mini-proj { display: block; padding: 11px 0; border-top: 1px solid var(--line-2); color: var(--ink); }
.mini-proj:first-of-type { border-top: 0; }
.mini-proj:hover { color: var(--ink); }
.mini-proj:hover .t { color: var(--primary); }
.mini-proj .k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.mini-proj .t { font-size: 14px; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.mini-proj .p { font-size: 13px; margin-top: 3px; }
.price { font-weight: 700; color: var(--ink); }
.mrp { color: var(--muted); text-decoration: line-through; font-size: .9em; margin-left: 6px; font-weight: 400; }
.off { color: var(--green); font-size: .85em; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.how { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.how div { display: flex; gap: 10px; }
.how i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); flex: none; }
.dark-card { background: var(--ink); color: #fff; border: 0; }
.dark-card h3 { color: #fff; }
.dark-card .sub { color: #d1d5db; }

/* ---------- Projects page ---------- */
.page-head { padding: 44px 0 26px; }
.page-head .kicker { font-size: 13px; font-weight: 700; color: var(--amber); letter-spacing: .06em; text-transform: uppercase; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; letter-spacing: -.02em; margin: 10px 0; line-height: 1.12; }
.page-head p { color: var(--ink-2); font-size: 16.5px; max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 8px; }
.steps div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 14px; color: var(--ink-2); }
.steps b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.steps span { font-size: 12px; font-weight: 700; color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: #cfccc8; color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 20px; }
.proj { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.proj:hover { box-shadow: var(--shadow); }
.proj-head { position: relative; padding: 18px 20px 20px; color: #fff; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.proj-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.10); }
.proj-head .ind { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; }
.proj-head .ind .bdg { background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }
.proj-head h3 { font-size: 19px; font-weight: 700; line-height: 1.25; margin-top: 14px; position: relative; z-index: 1; }
.proj-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj-role { font-size: 13px; color: var(--muted); }
.proj-role b { color: var(--ink); font-weight: 600; }
.proj-desc { font-size: 14px; color: var(--ink-2); }
.includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.includes li { display: flex; gap: 8px; }
.includes li::before { content: "✓"; color: var(--green); font-weight: 700; }
.proj-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-2); }
.proj-buy .price { font-size: 19px; }
.pv-0 { background: linear-gradient(135deg, #1f4fd6, #14307f); }
.pv-1 { background: linear-gradient(135deg, #0f8a4f, #075233); }
.pv-2 { background: linear-gradient(135deg, #e48c0c, #a24d05); }
.pv-3 { background: linear-gradient(135deg, #6d3fd8, #3f1f91); }
.pv-4 { background: linear-gradient(135deg, #0b8fc9, #075a85); }
.pv-5 { background: linear-gradient(135deg, #d7264f, #86122f); }
.pv-6 { background: linear-gradient(135deg, #374151, #111827); }
.pv-7 { background: linear-gradient(135deg, #10a596, #0b5c55); }
.faq { max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); font-size: 14.5px; }
.section-title { font-size: 20px; font-weight: 700; margin: 44px 0 14px; }

/* ---------- Single opening page ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 14px; display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.single { max-width: 720px; }
.notice { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); background: var(--line-2); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.notice svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.big-project { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.site-footer b { color: var(--ink); font-weight: 600; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); z-index: 100; transition: all .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skel { background: linear-gradient(90deg, #efede9 25%, #f7f6f3 50%, #efede9 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Forms (admin) ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--line-2); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.red { background: var(--red-soft); color: var(--red); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
div.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.f > .input, label.f > .textarea, label.f > select { margin-top: 6px; }
.f .hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.input, .textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 10px 12px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,79,214,.12); }
.input.warn { border-color: #f4a21b; background: #fffdf7; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.textarea.paste { min-height: 240px; font-size: 14px; }

/* ---------- Student Zone ---------- */
.nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav .nav-ic { width: 14px; height: 14px; }
.op-badge.stu { background: #f3efff; color: #5b34c7; display: inline-flex; align-items: center; gap: 4px; }
.op-badge.stu .icon { width: 12px; height: 12px; }
.zone-head { padding: 40px 0 22px; }
.zone-head .kicker { font-size: 13px; font-weight: 700; color: #5b34c7; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.zone-head .kicker .icon { width: 15px; height: 15px; }
.zone-head h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; letter-spacing: -.02em; margin: 10px 0; line-height: 1.12; }
.zone-head p { color: var(--ink-2); font-size: 16.5px; max-width: 640px; }
.zone-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.zone-bar .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #5b34c7; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }

.locked { position: relative; min-height: 860px; }
.locked .ghost { filter: blur(7px); opacity: .75; pointer-events: none; user-select: none; display: flex; flex-direction: column; gap: 14px; }
.ghost .opening { min-height: 210px; }
.ghost .bar { height: 12px; border-radius: 6px; background: #d9d6d2; margin: 10px 0; }
.lock-panel { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: min(440px, calc(100% - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px 24px 22px; z-index: 5; }
.lock-panel .lk { width: 46px; height: 46px; border-radius: 14px; background: #f3efff; color: #5b34c7; display: grid; place-items: center; margin-bottom: 14px; }
.lock-panel .lk svg { width: 22px; height: 22px; }
.lock-panel h2 { font-size: 20px; font-weight: 700; }
.lock-panel > p { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 18px; }
.lock-panel .count { display: inline-block; font-weight: 700; color: #5b34c7; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--line-2); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 8px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.admit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); text-align: center; }
.admit a { font-weight: 700; }
.state-box { text-align: center; padding: 6px 0 2px; }
.state-box .big { font-size: 34px; margin-bottom: 6px; }
.err { font-size: 13px; background: var(--red-soft); color: var(--red); padding: 9px 12px; border-radius: 9px; }
.pw { position: relative; display: block; margin-top: 6px; }
.pw .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; cursor: pointer; }
.pw-eye svg { width: 18px; height: 18px; display: block; }
.btn-purple { background: #5b34c7; color: #fff; }
.btn-purple:hover { background: #4a27a8; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a { padding: 7px 9px; font-size: 14px; }
  .intro { padding: 30px 0 20px; }
  .intro h1, .page-head h1, .zone-head h1 { font-size: 31px; }
  .nav a { font-size: 13px; padding: 6px 7px; }
  .nav { gap: 0; }
  .site-header .wrap { gap: 10px; }
  .nav .nav-ic { display: none; }
  .brand .tld { display: none; }
  .intro p, .page-head p { font-size: 15.5px; }
  .op-main { padding: 18px 16px 4px; }
  .apply { margin: 12px 12px 0; padding: 12px; }
  .op-project { margin: 12px 16px 16px; }
  .contact-row .acts { width: 100%; }
  .contact-row .acts .btn { flex: 1; }
  .steps { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .input, .textarea, .searchbar input { font-size: 16px; } /* stops iPhone zooming into fields */
}
