/* ================================================================
   NOFOTEH / CAMPUS LOST & FOUND — V3 VISUAL SYSTEM
   Pure monochrome palette, sharp geometry, editorial Arabic type.
   ================================================================ */
:root {
  color-scheme: light;
  --ink: #050505;
  --paper: #ffffff;
  --soft: #f5f5f3;
  --muted: #747474;
  --line: #dededb;
  --line-strong: #111111;
  --shadow: 7px 7px 0 #050505;
  --shadow-small: 4px 4px 0 #050505;
  --radius: 0;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Tahoma", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
::selection { color: var(--paper); background: var(--ink); }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-shell { min-height: 100vh; overflow: clip; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-strong); background: var(--paper); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { direction: ltr; display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark { display: block; width: 47px; height: 47px; object-fit: cover; border: 1px solid var(--ink); }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 900; letter-spacing: -1.5px; }
.brand-subtitle { margin-top: 6px; font-family: Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1.8px; }
.header-right { display: flex; align-items: center; gap: 30px; }
.header-note { display: inline-flex; align-items: center; gap: 9px; color: #555; font-size: 11px; }
.status-dot { width: 7px; height: 7px; background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 3px #e9e9e9; }

/* Buttons */
.button { min-height: 48px; border: 1px solid var(--ink); border-radius: 0; padding: 11px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; cursor: pointer; font-family: var(--font-display); font-size: 12px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-small); }
.button:active { transform: translate(0, 0); box-shadow: none; }
.button:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.button-black { color: var(--paper); background: var(--ink); }
.button-black:hover { color: var(--ink); background: var(--paper); }
.button-outline { color: var(--ink); background: var(--paper); }
.button-outline:hover { color: var(--paper); background: var(--ink); }
.header-cta { min-height: 44px; padding: 8px 17px; box-shadow: 4px 4px 0 var(--ink); }
.button-plus { font-family: Arial, sans-serif; font-size: 21px; font-weight: 400; line-height: 1; }
.button-spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero-section { padding-top: 39px; }
.hero-frame { min-height: 430px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .72fr); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.hero-main { padding: clamp(36px, 6vw, 78px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; direction: ltr; font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: 2px; line-height: 1.5; }
.eyebrow-line { width: 27px; height: 1px; flex: 0 0 27px; background: currentColor; display: inline-block; }
.hero-main h1 { margin: 24px 0 14px; font-family: var(--font-display); font-size: clamp(40px, 6.2vw, 76px); line-height: 1.34; font-weight: 900; letter-spacing: -3.7px; }
.hero-main h1 span { display: inline-block; color: var(--paper); background: var(--ink); padding: 0 13px 5px; }
.hero-description { max-width: 520px; margin: 0; color: #545454; font-size: 14px; line-height: 2.05; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 28px; }
.hero-actions .button { min-width: 168px; }
.text-link { padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.text-link span { margin-inline-start: 6px; font-size: 16px; }
.hero-aside { position: relative; min-height: 100%; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 35px; color: var(--paper); background: var(--ink); overflow: hidden; }
.hero-aside::before, .hero-aside::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid #333; border-radius: 50%; }
.hero-aside::before { top: -110px; inset-inline-start: -120px; }
.hero-aside::after { bottom: -160px; inset-inline-end: -80px; width: 300px; height: 300px; }
.hero-stamp { position: relative; z-index: 1; width: 174px; height: 174px; border: 1px solid #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-9deg); }
.stamp-top, .stamp-bottom { font-family: Arial, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 5px; }
.stamp-symbol { margin: -2px 0; font-family: Arial, sans-serif; font-size: 64px; font-weight: 300; line-height: .95; }
.hero-aside-copy { position: relative; z-index: 1; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; line-height: 1.9; letter-spacing: 2px; text-align: center; }
.hero-aside-index { position: absolute; z-index: 1; bottom: 17px; left: 20px; font-family: Arial, sans-serif; font-size: 8px; letter-spacing: 1.5px; color: #a5a5a5; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.feature-item { min-height: 91px; padding: 17px 24px; display: flex; align-items: center; gap: 17px; }
.feature-item + .feature-item { border-right: 1px solid var(--line); }
.feature-number { font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; color: #999; direction: ltr; }
.feature-item strong, .feature-item small { display: block; }
.feature-item strong { font-family: var(--font-display); font-size: 12px; font-weight: 800; }
.feature-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }

/* Board and filters */
.board-section { padding-top: 105px; padding-bottom: 110px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(31px, 4.4vw, 49px); font-weight: 900; line-height: 1.45; letter-spacing: -2px; }
.section-heading h2 span { direction: ltr; display: inline-block; }
.heading-period { margin-inline-start: 3px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.board-count { direction: ltr; display: flex; align-items: center; gap: 12px; padding-bottom: 6px; color: #555; font-family: Arial, sans-serif; font-size: 9px; line-height: 1.7; letter-spacing: .7px; }
.board-count small { color: #999; font-family: var(--font-body); font-size: 10px; letter-spacing: 0; }
.count-mark { font-size: 31px; line-height: 1; color: var(--ink); }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 27px; }
.filter-tabs { display: flex; align-items: center; gap: 5px; padding: 4px; background: var(--soft); border: 1px solid #e2e2df; }
.filter-button { min-height: 38px; padding: 7px 17px; border: 1px solid transparent; border-radius: 0; background: transparent; cursor: pointer; color: #555; font-family: var(--font-display); font-size: 10px; font-weight: 700; transition: .15s ease; }
.filter-button:hover { color: var(--ink); }
.filter-button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search-field { width: min(350px, 100%); min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #bcbcb8; background: var(--paper); }
.search-field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-icon { font-family: Arial, sans-serif; font-size: 25px; line-height: 1; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-field input::placeholder { color: #929292; }
.search-field kbd { color: #aaa; font-family: Arial, sans-serif; font-size: 11px; }
.items-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; align-items: stretch; }

/* Item cards */
.item-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper); transition: transform .18s ease, box-shadow .18s ease; }
.item-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-small); }
.item-image-wrap { position: relative; height: 225px; overflow: hidden; background: #ececea; border-bottom: 1px solid var(--ink); }
.item-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.item-card:hover .item-image { transform: scale(1.035); }
.item-image-wrap.image-missing { background-color: #eeeeec; background-image: linear-gradient(45deg, #e5e5e2 25%, transparent 25%), linear-gradient(-45deg, #e5e5e2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e5e2 75%), linear-gradient(-45deg, transparent 75%, #e5e5e2 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.item-image-wrap.image-missing::after { content: "NO IMAGE"; position: absolute; inset: 0; display: grid; place-items: center; color: #9b9b97; font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; }
.image-index { position: absolute; top: 13px; inset-inline-start: 13px; padding: 4px 8px; color: var(--paper); background: var(--ink); font-family: Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1px; direction: ltr; }
.item-type { position: absolute; bottom: 13px; inset-inline-start: 13px; padding: 5px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); font-family: var(--font-display); font-size: 10px; font-weight: 800; }
.type-found { color: var(--paper); background: var(--ink); }
.item-card-body { flex: 1; display: flex; flex-direction: column; padding: 19px 19px 15px; }
.item-meta { display: flex; align-items: center; gap: 9px; color: #7c7c78; font-size: 9px; }
.meta-divider { width: 3px; height: 3px; border-radius: 50%; background: #aaa; }
.item-title { margin: 9px 0 5px; font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.65; }
.item-description { min-height: 48px; margin: 0; color: #5c5c59; font-size: 11px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-location { margin-top: 14px; display: flex; align-items: center; gap: 7px; color: #555; font-size: 10px; }
.item-location span { color: var(--ink); font-size: 19px; line-height: 1; }
.item-card-footer { margin-top: 16px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.item-contact { min-width: 0; overflow: hidden; color: #777; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.card-action { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; font-family: var(--font-display); font-size: 9px; font-weight: 800; transition: .15s ease; }
.card-action:hover { color: var(--paper); background: var(--ink); }
.card-action span { margin-inline-start: 5px; }
.resolved-label { color: #777; font-size: 10px; font-weight: 700; }
.board-message { grid-column: 1 / -1; min-height: 190px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 1px dashed #bdbdb9; color: #777; font-size: 12px; }
.loading-line { width: 17px; height: 17px; border: 2px solid #ccc; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-board { grid-column: 1 / -1; min-height: 290px; padding: 45px 20px; border: 1px dashed #bdbdb9; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-symbol { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid var(--ink); font-family: Arial, sans-serif; font-size: 32px; line-height: 1; }
.empty-board h3 { margin: 17px 0 3px; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.empty-board p { max-width: 390px; margin: 0 0 20px; color: #777; font-size: 11px; }
.empty-board .button { min-height: 42px; font-size: 10px; }
.error-board .empty-symbol { color: var(--paper); background: var(--ink); }

/* Footer */
.site-footer { color: var(--paper); background: var(--ink); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { direction: ltr; font-family: var(--font-display); font-size: 19px; font-weight: 900; letter-spacing: -1px; }
.footer-brand span { margin-inline-start: 3px; font-family: Arial, sans-serif; font-size: 8px; vertical-align: top; }
.footer-inner p { margin: 0; color: #c1c1c1; font-size: 10px; }
.footer-code { direction: ltr; font-family: Arial, sans-serif; color: #888; font-size: 8px; letter-spacing: 1.5px; }

/* Modal / forms */
.modal-backdrop { position: fixed; z-index: 1000; inset: 0; padding: 25px; display: flex; align-items: center; justify-content: center; overflow-y: auto; background: rgb(0 0 0 / 68%); }
.hidden { display: none !important; }
.modal-panel { width: min(720px, 100%); max-height: calc(100vh - 50px); overflow-y: auto; padding: 27px clamp(20px, 4vw, 42px) 34px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 9px 9px 0 rgb(0 0 0 / 30%); }
.modal-panel-compact { width: min(600px, 100%); }
.modal-topline { padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); direction: ltr; font-family: Arial, sans-serif; font-size: 8px; font-weight: 800; letter-spacing: 2px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--ink); background: var(--paper); font-family: Arial, sans-serif; font-size: 25px; line-height: 1; cursor: pointer; }
.icon-button:hover { color: var(--paper); background: var(--ink); }
.modal-heading { padding: 24px 0 17px; }
.modal-heading h2 { margin: 8px 0 3px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 39px); font-weight: 900; letter-spacing: -1.4px; }
.modal-heading h2 span { margin-inline-start: 3px; }
.modal-heading p { margin: 0; color: #777; font-size: 11px; }
.modal-form { display: flex; flex-direction: column; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 700; }
.form-field > span { display: flex; align-items: baseline; gap: 5px; }
.form-field b { color: #777; }
.form-field small { color: #888; font-size: 9px; font-weight: 400; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #c8c8c4; border-radius: 0; outline: 0; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 400; }
.form-field textarea { min-height: 94px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #aaa; }
.upload-field { gap: 9px; }
.upload-dropzone { min-height: 81px; padding: 13px 15px; display: flex; align-items: center; gap: 13px; border: 1px dashed #777; background: #fafaf9; cursor: pointer; transition: background .15s ease, border .15s ease; }
.upload-dropzone:hover { border-color: var(--ink); background: #f0f0ee; }
.upload-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--ink); font-family: Arial, sans-serif; font-size: 24px; font-weight: 300; }
.upload-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.upload-copy strong { font-size: 11px; }
.upload-copy small { color: #888; font-size: 9px; }
.upload-action { padding: 6px 10px; border: 1px solid var(--ink); background: var(--paper); font-size: 9px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.image-preview-wrap { position: relative; max-width: 260px; padding: 7px; border: 1px solid var(--ink); }
.image-preview-wrap img { width: 100%; max-height: 175px; display: block; object-fit: contain; background: #eee; }
.remove-image { width: 100%; margin-top: 6px; padding: 5px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; font-size: 9px; }
.form-actions { display: flex; justify-content: flex-start; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.form-actions .button { min-width: 130px; min-height: 45px; font-size: 10px; }
.form-feedback { min-height: 0; margin: 0; font-size: 10px; }
.form-feedback:empty { display: none; }
.form-feedback.is-error { color: #a00000; }
.form-feedback.is-success { color: #333; }
.claim-summary { padding: 11px 13px; border-inline-start: 3px solid var(--ink); background: var(--soft); font-size: 11px; font-weight: 700; }

@media (max-width: 900px) {
  .container { width: min(100% - 42px, 760px); }
  .hero-frame { grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr); }
  .hero-main { padding: 40px 32px; }
  .hero-aside { padding: 20px; }
  .hero-stamp { width: 145px; height: 145px; }
  .stamp-symbol { font-size: 54px; }
  .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .item-image-wrap { height: 205px; }
  .board-section { padding-top: 80px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; }
  .brand-lockup { min-width: 0; gap: 9px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-name { font-size: 18px; }
  .brand-subtitle { font-size: 7px; letter-spacing: 1.2px; }
  .header-note { display: none; }
  .header-right { gap: 0; }
  .header-cta { min-height: 39px; padding: 7px 11px; gap: 8px; font-size: 10px; box-shadow: 3px 3px 0 var(--ink); }
  .hero-section { padding-top: 22px; }
  .hero-frame { display: block; box-shadow: 5px 5px 0 var(--ink); }
  .hero-main { padding: 34px 22px 32px; }
  .hero-main h1 { margin-top: 18px; font-size: clamp(37px, 10vw, 54px); line-height: 1.4; letter-spacing: -2.4px; }
  .hero-description { font-size: 12px; }
  .hero-actions { gap: 17px; margin-top: 22px; }
  .hero-actions .button { min-width: 145px; min-height: 43px; padding: 9px 14px; font-size: 10px; }
  .text-link { font-size: 10px; }
  .hero-aside { min-height: 170px; flex-direction: row; justify-content: space-around; gap: 15px; padding: 18px; }
  .hero-stamp { width: 112px; height: 112px; flex: 0 0 112px; }
  .stamp-top, .stamp-bottom { font-size: 9px; letter-spacing: 3px; }
  .stamp-symbol { font-size: 41px; }
  .hero-aside-copy { font-size: 9px; text-align: left; }
  .hero-aside-index { bottom: 9px; left: 12px; font-size: 7px; }
  .feature-strip { margin-top: 18px; grid-template-columns: 1fr; }
  .feature-item { min-height: 68px; padding: 11px 14px; gap: 13px; }
  .feature-item + .feature-item { border-right: 0; border-top: 1px solid var(--line); }
  .feature-item strong { font-size: 11px; }
  .feature-item small { font-size: 9px; }
  .board-section { padding-top: 66px; padding-bottom: 70px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 31px; letter-spacing: -1.3px; }
  .section-heading p { max-width: 250px; font-size: 10px; }
  .board-count { display: none; }
  .board-toolbar { align-items: stretch; flex-direction: column; gap: 12px; padding: 15px 0 19px; }
  .filter-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-button { padding: 7px 4px; font-size: 9px; }
  .search-field { width: 100%; }
  .items-grid { grid-template-columns: 1fr; gap: 17px; }
  .item-image-wrap { height: 220px; }
  .item-card-body { padding: 16px; }
  .item-title { font-size: 17px; }
  .footer-inner { min-height: 115px; padding-top: 20px; padding-bottom: 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; font-size: 9px; }
  .footer-code { grid-column: 2; grid-row: 1; }
  .modal-backdrop { align-items: flex-start; padding: 12px; }
  .modal-panel { max-height: calc(100dvh - 24px); padding: 18px 16px 22px; box-shadow: 5px 5px 0 rgb(0 0 0 / 25%); }
  .modal-heading { padding: 18px 0 13px; }
  .modal-heading h2 { font-size: 29px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-field input, .form-field select { min-height: 43px; }
  .form-actions { position: sticky; bottom: -22px; padding: 12px 0 2px; background: var(--paper); }
  .form-actions .button { flex: 1; min-width: 0; }
  .upload-action { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
