/* Taletso Digital Hub tender portal v1.7 — inherits approved college navy/gold design. */
.tender-top-login {background:var(--gold);color:#072747!important;border-radius:9px;height:auto!important;padding:12px 17px;font-weight:800;white-space:nowrap}
.tender-top-login:hover {background:#ffe065!important;color:#082b51!important}
.tender-hero {background:radial-gradient(900px 380px at 85% 0%,#1168a5 0%,#0a4b81 33%,#062e57 77%,#04264b 100%);color:white;border-bottom:5px solid var(--gold)}
.tender-hero-in {max-width:1600px;margin:auto;min-height:365px;padding:50px 4.2%;position:relative;display:grid;grid-template-columns:1.55fr 1fr;align-items:center;gap:40px;overflow:hidden}
.tender-eyebrow {display:inline-block;color:var(--gold);font-size:12px;font-weight:900;letter-spacing:2px;margin-bottom:13px}
.tender-eyebrow.dark {color:#11659c}
.tender-hero h1,.tender-admin-header h1 {font-size:clamp(40px,4.4vw,64px);line-height:1.07;letter-spacing:-1.9px;margin:0 0 18px;font-weight:850}
.tender-hero h1 span,.tender-admin-header h1 span {color:var(--gold)}
.tender-hero p,.tender-admin-header p {max-width:620px;font-size:17px;line-height:1.65;color:#e2effa;margin:0 0 24px}
.tender-cta {display:inline-flex;align-items:center;justify-content:center;gap:15px;border:0;border-radius:10px;background:var(--gold);color:#092b4e!important;padding:13px 20px;font-weight:800;box-shadow:0 4px 10px rgba(0,0,0,.12);cursor:pointer;transition:transform .15s,background .15s}
.tender-cta:hover {transform:translateY(-1px);background:#ffe16c}
.tender-cta.outline {color:#fff!important;border:1px solid rgba(255,255,255,.7);background:rgba(255,255,255,.07);box-shadow:none}
.tender-hero-photo {max-width:390px;height:240px;justify-self:center;position:relative;overflow:hidden;border-radius:28px;border:1px solid rgba(255,255,255,.22);box-shadow:0 15px 35px rgba(0,10,32,.3);transform:rotate(2deg)}
.tender-hero-photo img {width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.tender-workspace {max-width:1450px;margin:0 auto;padding:42px 3.4% 65px}
.tender-head {display:flex;align-items:flex-end;gap:24px;justify-content:space-between;margin-bottom:25px}
.tender-head h2 {font-size:clamp(29px,3vw,43px);line-height:1.1;letter-spacing:-.8px;margin:0 0 10px;color:#092e54}
.tender-head p {color:#506782;line-height:1.5;margin:0}
.tender-admin-link {border:1px solid #bbd0e2;border-radius:10px;padding:12px 16px;background:#fff;color:#073d73;font-weight:750;font-size:14px;white-space:nowrap}
.tender-admin-link:hover {background:#f1f8ff}
.tender-stats {display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 22px}
.tender-stats>div {background:#fff;border:1px solid #dce6f1;border-radius:14px;box-shadow:0 7px 20px rgba(8,43,80,.06);padding:20px 24px;display:flex;align-items:center;gap:18px}
.tender-stats strong {font-size:35px;font-weight:850;color:#0d5c97}
.tender-stats span {font-size:14px;font-weight:650;color:#4a6480}
.tender-filters {display:grid;grid-template-columns:minmax(200px,1fr) minmax(200px,275px);gap:16px;background:#fff;padding:18px;border:1px solid #dfe8f2;border-radius:15px}
.tender-filters label {display:flex;flex-direction:column;gap:8px;font-size:12px;color:#526a83;font-weight:800}
.tender-filters input,.tender-filters select {width:100%;border:1px solid #c5d8e9;border-radius:9px;color:#102f50;background:white;padding:13px 12px;min-height:47px;outline-offset:2px;font-size:14px}
.tender-count {font-size:13px;color:#55708c;margin:22px 0 13px;font-weight:650}
.tender-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.tender-card {background:#fff;border:1px solid #d6e3f0;border-top:4px solid var(--gold);border-radius:17px;box-shadow:0 11px 27px rgba(6,47,90,.09);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.tender-card-body {padding:24px 25px 20px}
.tender-card-top {display:flex;align-items:center;justify-content:space-between;gap:15px}
.tender-ref {color:#145d94;background:#eaf5fd;padding:6px 10px;border-radius:7px;font-size:11px;font-weight:900;letter-spacing:.5px;overflow-wrap:anywhere}
.tender-pill {display:inline-block;text-transform:uppercase;border-radius:99px;font-size:10px;font-weight:900;letter-spacing:.7px;padding:8px 11px;white-space:nowrap}
.tender-pill.open {background:#e4f9ef;color:#05714d}
.tender-pill.closed {background:#eff1f4;color:#627083}
.tender-pill.draft {background:#fff2cb;color:#805906}
.tender-pill.archived {background:#e7e9ed;color:#4f5969}
.tender-card h3 {font-size:20px;margin:16px 0 9px;color:#082b53;line-height:1.25}
.tender-card p {color:#566d83;font-size:14px;line-height:1.6;margin:0;white-space:normal}
.tender-meta {display:flex;gap:10px;flex-wrap:wrap;margin-top:19px;color:#61768c;font-size:12px}
.tender-meta>span {background:#f1f5f9;border-radius:8px;padding:7px 9px}
.tender-meta b {color:#1d456c}
.tender-documents {padding:18px 25px 23px;background:#f8fbfe;border-top:1px solid #e4edf4;margin-top:auto}
.tender-documents h4 {font-size:13px;letter-spacing:.2px;color:#0b3159;margin:0 0 10px}
.tender-file {display:flex;align-items:center;gap:12px;padding:11px 10px;border:1px solid #dce8f2;border-radius:9px;margin:7px 0;background:#fff;color:#103a61;min-width:0}
.tender-file:hover {border-color:#71a7cc;background:#f4faff}
.tender-file-icon {width:30px;height:30px;border-radius:8px;background:#ffde41;color:#082d55;display:grid;place-items:center;font-weight:900;flex-shrink:0}
.tender-file-name {min-width:0;flex:1;overflow-wrap:anywhere;font-size:12.5px;font-weight:700}
.tender-file-name small {display:block;font-weight:450;color:#708398;margin-top:5px}
.tender-download {font-size:12px;font-weight:800;color:#11649a}
.tender-fineprint {font-size:13px;line-height:1.5;color:#6a7d90;margin-top:23px}
.tender-empty {padding:45px 25px;background:#fff;border-radius:15px;border:1px dashed #c7d9ea;color:#385c7d;text-align:center}
.tender-empty strong {display:block;font-size:19px;color:#082f56}.tender-empty p {margin:9px 0 0}
.tender-admin-header {background:linear-gradient(110deg,#06345f,#09538b);padding:45px max(3.5%,calc((100vw - 1420px)/2));display:flex;align-items:center;justify-content:space-between;gap:30px;color:#fff;border-bottom:4px solid var(--gold)}
.tender-admin-header h1 {font-size:clamp(36px,4vw,53px)}
.tender-admin-header p {font-size:15px;margin:0;max-width:580px}
.admin-workspace {padding-top:31px}
.tender-alert {padding:15px 20px;margin-bottom:22px;border-radius:9px;border:1px solid;font-size:14px}
.tender-alert.error {background:#fff2f3;border-color:#efc3c8;color:#a12e39}
.tender-alert.success {background:#edf9f1;border-color:#b8e1c3;color:#11603c}
.admin-login-panel {max-width:530px;margin:25px auto 80px;background:white;border:1px solid #dce9f3;border-top:5px solid var(--gold);border-radius:16px;padding:37px 42px 43px;box-shadow:0 18px 40px rgba(17,59,98,.08)}
.admin-login-panel h2 {font-size:28px;margin:0 0 10px;color:#082f57}
.admin-login-panel>p {line-height:1.55;color:#557089;margin:0 0 22px}
.admin-lock-icon {font-size:35px;color:#ad7b00;background:#fff5c8;width:55px;height:55px;display:grid;place-items:center;border-radius:12px;margin-bottom:16px}
.tender-form {display:flex;flex-direction:column;gap:17px}
.tender-form>label:not(.publish-check) {display:flex;flex-direction:column;gap:7px;font-size:13px;color:#163e63;font-weight:750}
.tender-form>label>span {color:#ac3b27}
.tender-form input:not([type=checkbox]):not([type=file]),.tender-form textarea {background:white;width:100%;padding:12px 13px;border:1px solid #c6d8e6;border-radius:9px;color:#102f50;font-size:14px;max-width:100%}
.tender-form textarea {resize:vertical;line-height:1.5}
.tender-form input[type=file] {width:100%;border:1px dashed #8db5d5;border-radius:10px;padding:18px;background:#f5faff;font-size:14px;color:#274963;cursor:pointer}
.tender-upload-label small {font-weight:400;line-height:1.6;color:#697d90;display:block}
.upload-names {font-size:12px;color:#657f95!important;font-weight:500}
.publish-check {display:flex;align-items:flex-start;gap:12px;border:1px solid #c8dbed;border-radius:10px;padding:15px;background:#f4f9ff;cursor:pointer}
.publish-check input {flex:0 0 19px;width:19px;height:19px;accent-color:#11649a;margin-top:3px}
.publish-check span {display:flex;flex-direction:column;gap:6px;color:#0e355b}.publish-check small {color:#5c7187;font-size:12px;line-height:1.5}
.admin-toolbar {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;padding:17px 22px;background:#eaf3fc;border-radius:12px}
.admin-toolbar strong {color:#0b355d}.admin-toolbar p {font-size:12px;margin:5px 0 0;color:#60778f}
.btn-ghost {padding:11px 16px;background:#fff;border:1px solid #bdd3e5;color:#153b60;border-radius:8px;font-weight:750}
.admin-grid {display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:start;gap:24px}
.admin-form-panel,.admin-list-panel {background:#fff;border:1px solid #dce8f3;border-radius:15px;box-shadow:0 12px 24px rgba(5,49,92,.07);padding:27px}
.admin-section-title {border-bottom:1px solid #e1e9f2;margin:0 0 20px;padding-bottom:13px}
.admin-section-title h2 {font-size:24px;margin:0;color:#082f57}
.admin-section-title>a {display:inline-block;font-size:13px;margin-top:7px;color:#0a689b;text-decoration:underline}
.admin-small {font-size:12px;color:#6b7e92;line-height:1.55}
.admin-list-item {padding:17px 0;border-bottom:1px solid #e8eef5;display:flex;flex-direction:column;gap:10px}
.admin-list-item:last-child {border-bottom:0}
.admin-list-title {display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:space-between}
.admin-list-item>strong {font-size:16px;color:#0a3057}.admin-list-item>small {font-size:12px;color:#657e94}
.admin-list-actions {display:flex;align-items:center;gap:18px}
.admin-list-actions a,.existing-file-actions>a {font-size:13px;font-weight:750;color:#11649a}
.btn-danger-link {border:0;padding:0;background:none;color:#ad354a;font-size:13px;font-weight:750;cursor:pointer}
.existing-files {border-top:1px solid #dfe9f3;margin-top:27px;padding-top:17px}
.existing-files h3 {font-size:16px;color:#0a365f}
.existing-file-row {display:flex;align-items:center;gap:14px;justify-content:space-between;border-bottom:1px solid #e4ebf4;padding:12px 0}
.existing-file-row strong {font-size:12px;overflow-wrap:anywhere;color:#234564;display:block}
.existing-file-row small {color:#6b7f92;display:block;font-size:11px;margin-top:5px}
.existing-file-actions {display:flex;gap:12px;align-items:center;flex-shrink:0}
@media(max-width:1220px){.site-header .header-wrap{padding:0 2.5%}.site-header .main-nav{gap:10px;font-size:12px}.site-header .brand-main{font-size:17px}.site-header .brand-hub{font-size:15px}}
@media(max-width:1100px){.tender-hero-in {grid-template-columns:1.2fr .8fr}.tender-list{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}}
@media(max-width:1030px){.site-header .main-nav {display:none;position:absolute;top:67px;left:0;right:0;height:auto;flex-wrap:wrap;padding:13px 4% 20px;background:#06345e;gap:9px 20px}.site-header .main-nav.open{display:flex}.site-header .main-nav>a{min-height:38px}.tender-top-login{min-height:40px}}
@media(max-width:760px){.tender-hero-in{grid-template-columns:1fr;min-height:0;padding:40px 5% 30px;gap:28px}.tender-hero-photo{width:100%;max-width:360px;height:165px;justify-self:start}.tender-hero h1{font-size:40px}.tender-head{align-items:flex-start;flex-direction:column}.tender-stats{grid-template-columns:1fr 1fr 1fr}.tender-stats>div{flex-direction:column;align-items:flex-start;gap:4px;padding:14px}.tender-stats strong{font-size:28px}.tender-stats span{font-size:11px}.tender-workspace{padding:28px 4% 40px}.tender-filters{grid-template-columns:1fr}.tender-admin-header{flex-direction:column;align-items:flex-start;padding:36px 5%}.admin-login-panel{padding:25px}.tender-download{display:none}}
@media(max-width:500px){.tender-stats{gap:7px}.tender-stats strong{font-size:26px}.tender-card-body{padding:19px 17px}.tender-documents{padding:16px}.tender-hero h1{font-size:36px}.tender-meta{flex-direction:column}.admin-form-panel,.admin-list-panel{padding:20px}.existing-file-row{flex-direction:column;align-items:flex-start}.admin-toolbar{flex-direction:column;align-items:flex-start}}
