/* Public tender page (TenderPublic.aspx, /tender/{id}/{name} for signed-out visitors and search engines).
   Approved design 2026-11-21: "TENDERGlobal_Tender_Page_Teal_Header" (deep-teal title area, overlapping white facts strip, access panel,
   quieter related-tenders column; related moves below the access panel on mobile). Scoped to .tpv; the shared site header and footer
   are unchanged. Fonts: Tajawal (Arabic, from the header styles) and Outfit (English, local file). Icons: the site's Font Awesome. */
@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit/outfit.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

.tpv {
    --tpv-teal: #153E43; --tpv-brand: #368B94; --tpv-accent: #F5833D; --tpv-accent-dark: #E06E28; --tpv-copy: #546B6B;
    --tpv-line: #E1E8E5; --tpv-bg: #F3F6F4; --tpv-ink: #173F42;
    direction: rtl; text-align: start; background: var(--tpv-bg); color: var(--tpv-ink);
    font: 400 16px/1.75 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; width: 100%; padding: 0 !important; margin: 0;
}
.tpv[dir="ltr"] { direction: ltr; font-family: 'Outfit', 'Tajawal', 'Segoe UI', Arial, sans-serif; }
.tpv *, .tpv *::before, .tpv *::after { box-sizing: border-box; }
.tpv h1, .tpv h2, .tpv h3, .tpv h4, .tpv p { margin: 0; font-family: inherit; }   /* the site's "body h1..h6" sets Tajawal on headings; master-nav.js turns h2 into h4 */
.tpv a { text-decoration: none; }
.tpv a:focus-visible { outline: 3px solid var(--tpv-brand); outline-offset: 4px; }
.tpv .tpv-i { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; font-size: 15px; flex: none; }
.tpv[dir="ltr"] .tpv-arrow { transform: rotate(180deg); }

/* Title area */
.tpv-masthead { background: var(--tpv-teal); color: #FFFFFF; }
.tpv-masthead-inner { max-width: 1120px; margin: auto; padding: 21px 32px 47px; }
.tpv-breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 23px; padding: 0; list-style: none; font-size: 12px; color: #BAD3D3; }
.tpv-breadcrumb li { display: inline-flex; align-items: center; gap: 9px; }
.tpv-breadcrumb li + li::before { content: '/'; color: #7BADAF; }
.tpv-breadcrumb a { color: #BAD3D3; }
.tpv-breadcrumb a:hover { color: #FFFFFF; text-decoration: underline; }
.tpv-breadcrumb .active { color: #E4EFEF; }
.tpv-kicker { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.tpv-category { display: flex; align-items: center; gap: 7px; color: #C1DDDC; font-size: 13px; font-weight: 500; }
.tpv-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; font-size: 12px; font-weight: 700; padding: 3px 12px; white-space: nowrap; }
.tpv-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.tpv-status.is-open { color: #E4EFCE; background: rgba(255, 255, 255, .07); border: 1px solid rgba(189, 210, 146, .29); }
.tpv-status.is-open::before { background: #B5D484; }
.tpv-status.is-closed { color: #E3E9EA; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .25); }
.tpv-status.is-closed::before { background: #AFC0C2; }
.tpv h1 { color: #FFFFFF; font-size: 33px; font-weight: 700; line-height: 1.55; letter-spacing: -.4px; max-width: 870px; overflow-wrap: anywhere; }
.tpv[dir="ltr"] h1 { font-size: 32px; font-weight: 500; letter-spacing: -.45px; line-height: 1.45; }
.tpv-subline { display: flex; align-items: center; gap: 7px; color: #C3D8D8; font-size: 15px; margin-top: 5px; }

/* Content */
.tpv-content { max-width: 1120px; margin: auto; padding: 0 30px 32px; }
.tpv-facts { position: relative; display: grid; grid-template-columns: .8fr 1.2fr 1fr 1fr; margin: -23px 0 0; background: #FFFFFF; border: 1px solid #DDE6DF; border-radius: 12px; box-shadow: 0 6px 20px rgba(23, 63, 66, .03); padding: 21px 7px; list-style: none; }
.tpv-fact { padding-inline: 24px; border-inline-start: 1px solid #E5EBE5; min-width: 0; }
.tpv-fact:first-child { border: 0; }
.tpv-fact-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--tpv-copy); margin-bottom: 5px; }
.tpv-fact-label .tpv-i { width: 16px; height: 16px; font-size: 13px; color: #698D88; }
.tpv-fact-value { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 1.65; font-weight: 700; overflow-wrap: anywhere; }
.tpv-fact-value a { color: var(--tpv-ink); }
.tpv-fact-value a:hover { color: var(--tpv-brand); text-decoration: underline; }
.tpv-fact-value img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.tpv-deadline .tpv-fact-value { color: #A05027; }

.tpv-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 22px; align-items: stretch; margin-top: 25px; }

/* Access panel */
.tpv-access { display: flex; flex-direction: column; min-width: 0; background: #FFFFFF; border: 1px solid var(--tpv-line); border-radius: 13px; overflow: hidden; }
.tpv-access-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 24px; border-bottom: 1px solid #EAF0E8; font-size: 14px; font-weight: 700; }
.tpv-access-top .tpv-i { color: #80958E; }
.tpv-access-main { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; flex: 1; padding: 26px 28px 25px; }
.tpv-document { display: flex; align-items: center; justify-content: center; width: 53px; height: 57px; border-radius: 13px; background: #F3F6F1; border: 1px solid #E4EBE0; color: #6A8C7B; margin-bottom: 16px; font-size: 24px; }
.tpv .tpv-access-heading { font-size: 25px; font-weight: 700; line-height: 1.55; margin-bottom: 8px; color: var(--tpv-ink); }
.tpv[dir="ltr"] .tpv-access-heading, .tpv[dir="ltr"] .tpv-related h3, .tpv[dir="ltr"] .tpv-siblings-heading { font-weight: 500; }
.tpv-access-copy { font-size: 15px; line-height: 1.85; color: var(--tpv-copy); max-width: 430px; }
.tpv-access-actions { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 385px; margin-top: 23px; }
.tpv-primary { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--tpv-accent); color: #FFFFFF !important; border-radius: 8px; min-height: 46px; padding: 9px 18px; font-size: 15px; font-weight: 700; flex: 1; transition: background .15s ease; }
.tpv-primary:hover { background: var(--tpv-accent-dark); }
.tpv-secondary { display: flex; align-items: center; justify-content: center; background: #FFFFFF; border: 1px solid #D8E2DD; border-radius: 8px; min-height: 46px; padding: 9px 17px; font-size: 14px; font-weight: 700; color: #347B80 !important; flex: 1; transition: border-color .15s ease; }
.tpv-secondary:hover { border-color: var(--tpv-brand); }
.tpv-register { background: #FAFBF8; border-top: 1px solid #E9EEE6; padding: 14px 24px; text-align: center; font-size: 13px; color: var(--tpv-copy); }
.tpv-register a { color: #327B81; font-size: 14px; font-weight: 700; padding: 0 5px; text-decoration: underline; text-underline-offset: 4px; }
.tpv-register-note { font-size: 12px; line-height: 1.8; margin-top: 5px; }

/* Related tenders */
.tpv-siblings { background: #FDFEFC; border: 1px solid var(--tpv-line); border-radius: 13px; padding: 20px 21px; min-width: 0; }
.tpv .tpv-siblings-heading { font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; color: var(--tpv-ink); }
.tpv-siblings-sub { font-size: 12px; color: var(--tpv-copy); margin-bottom: 4px; }
.tpv-related { padding: 16px 0; border-bottom: 1px solid #E3EBE1; }
.tpv-related h3 { font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--tpv-ink); overflow-wrap: anywhere; }
.tpv-related-meta { font-size: 12px; color: var(--tpv-copy); line-height: 1.8; margin-top: 6px; }
.tpv-related-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 0 0; color: #307982 !important; font-size: 13px; font-weight: 700; min-height: 32px; }
.tpv-related-link:hover { text-decoration: underline; }
.tpv-more { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0 0; font-size: 13px; font-weight: 700; color: #307982 !important; }
.tpv-empty { font-size: 13px; color: var(--tpv-copy); padding: 14px 0; }
.tpv-help { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--tpv-copy); }
.tpv-help a { color: #307982; font-weight: 700; padding: 0 2px; }
.tpv-note { margin-top: 12px; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 9px 14px; font-size: 14px; color: #E3EEEE; }

@media (max-width: 850px) {
    .tpv-content { padding-inline: 22px; }
    .tpv-masthead-inner { padding-inline: 24px; }
    .tpv-columns { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 17px; }
    .tpv-fact { padding-inline: 17px; }
    .tpv-fact-value { font-size: 15px; }
    .tpv-access-main { padding-inline: 22px; }
    .tpv .tpv-access-heading { font-size: 23px; }
    .tpv-access-actions { gap: 9px; }
    .tpv-primary, .tpv-secondary { padding-inline: 11px; font-size: 13px; }
    .tpv-siblings { padding-inline: 18px; }
}
@media (max-width: 640px) {
    .tpv-masthead-inner { padding: 18px 21px 40px; }
    .tpv-breadcrumb { font-size: 11px; margin-bottom: 20px; gap: 7px; }
    .tpv-category { font-size: 12px; }
    .tpv h1 { font-size: 28px; line-height: 1.6; }
    .tpv[dir="ltr"] h1 { font-size: 27px; line-height: 1.5; }
    .tpv-subline { font-size: 14px; }
    .tpv-content { padding: 0 16px 27px; }
    .tpv-facts { grid-template-columns: 1fr 1fr; gap: 20px 14px; padding: 20px; margin-top: -19px; border-radius: 11px; }
    .tpv-fact { padding: 0; border: 0; }
    .tpv-fact-value { font-size: 15px; }
    .tpv-columns { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
    .tpv-access-top { padding: 16px 21px; }
    .tpv-access-main { padding: 25px 22px 27px; }
    .tpv-document { width: 48px; height: 51px; margin-bottom: 15px; }
    .tpv .tpv-access-heading { font-size: 24px; }
    .tpv-access-copy { line-height: 1.9; }
    .tpv-access-actions { flex-direction: column; align-items: stretch; gap: 9px; margin-top: 21px; }
    .tpv-primary { min-height: 48px; font-size: 16px; }
    .tpv-secondary { min-height: 44px; font-size: 14px; }
    .tpv-register { padding: 15px 20px; }
    .tpv-siblings { padding: 22px; }
    .tpv .tpv-siblings-heading { font-size: 21px; }
    .tpv-siblings-sub { font-size: 13px; }
    .tpv-related { padding: 18px 0; }
    .tpv-related h3 { font-size: 17px; }
    .tpv-related-meta { font-size: 13px; }
    .tpv-related-link { min-height: 40px; font-size: 14px; padding-top: 8px; }
    .tpv-more { font-size: 14px; min-height: 44px; padding-top: 16px; }
}
@media (pointer: coarse) { .tpv-related-link { min-height: 44px; } }

/* 2026-11-21 (owner): compact, clearer access panel; related column in the brand colours. */
.tpv-columns { align-items: start; }
.tpv-access { border-top: 4px solid var(--tpv-accent); }
.tpv-access-top { padding: 12px 20px; }
.tpv-access-main { flex: none; padding: 20px 24px 18px; }
.tpv-document { width: 44px; height: 46px; margin-bottom: 10px; font-size: 20px; background: #FFF4EC; border-color: #FBD5BC; color: #F5833D; }
.tpv .tpv-access-heading { font-size: 21px; line-height: 1.45; margin-bottom: 4px; }
.tpv-access-copy { font-size: 14px; line-height: 1.7; }
.tpv-access-actions { margin-top: 16px; }
.tpv-register { padding: 10px 20px; }
.tpv-register-note { margin-top: 2px; }
.tpv-siblings { background: #F4FAFA; border-color: #D3E7E9; border-top: 4px solid #368B94; padding: 16px 18px; }
.tpv .tpv-siblings-heading { color: #368B94; font-size: 17px; }
.tpv-related { padding: 12px 0; border-bottom-color: #D9EAEC; }
.tpv-related h3 { font-size: 14px; line-height: 1.6; }
.tpv-related-meta { color: #A05027; margin-top: 3px; }
.tpv-related-link { color: #368B94 !important; padding-top: 4px; min-height: 28px; }
.tpv-more { color: #F5833D !important; padding-top: 12px; }
@media (max-width: 640px) {
    .tpv-access-main { padding: 18px 18px 16px; }
    .tpv .tpv-access-heading { font-size: 20px; }
    .tpv-access-actions { margin-top: 14px; }
    .tpv-siblings { padding: 16px; }
    .tpv .tpv-siblings-heading { font-size: 18px; }
}

/* 2026-11-21 (owner): header in the Contract Awards theme (tg-awards.css .awx-hero): gradient, dotted texture, rings, orange-bar eyebrow. */
.tpv-masthead { background: linear-gradient(106deg, #11373b 0%, #153e43 58%, #21616a 100%); position: relative; overflow: hidden; isolation: isolate; }
.tpv-masthead::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(#8bbec1 1px, transparent 1px); background-size: 21px 21px;
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); z-index: -1; }
.tpv-masthead::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -140px; top: -270px; border: 1px solid rgba(166, 223, 222, .12);
    box-shadow: 0 0 0 50px rgba(166, 223, 222, .04), 0 0 0 112px rgba(166, 223, 222, .025); z-index: -1; }
.tpv[dir="rtl"] .tpv-masthead::before { -webkit-mask-image: linear-gradient(-90deg, transparent 35%, #000 100%); mask-image: linear-gradient(-90deg, transparent 35%, #000 100%); }
.tpv[dir="rtl"] .tpv-masthead::after { right: auto; left: -140px; }
.tpv-category { color: #b3d7d7; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; gap: 8px; }
.tpv[dir="rtl"] .tpv-category { font-size: 13px; letter-spacing: 0; }
.tpv-category .tpv-i, .tpv-category > i { display: none; }
.tpv-category::before { content: ""; display: block; flex: none; width: 21px; height: 3px; border-radius: 2px; background: #F5833D; }
.tpv h1, .tpv[dir="ltr"] h1 { font-size: clamp(24px, 2.4vw, 33px); font-weight: 800; line-height: 1.25; letter-spacing: -.9px; }
.tpv[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.35; }
.tpv-subline { color: #b9d4d3; font-size: 13.5px; margin-top: 8px; }
@media (max-width: 820px) { .tpv h1, .tpv[dir="ltr"] h1 { font-size: 23px; line-height: 1.3; } }
@media (max-width: 510px) { .tpv h1, .tpv[dir="ltr"] h1 { font-size: 21px; letter-spacing: -.4px; } .tpv[dir="rtl"] h1 { letter-spacing: 0; } }

/* 2026-11-21 (owner): related tenders in the home page "Most viewed" style (grey head with a teal top line, white list, grey meta row). */
.tpv-siblings.tpv-mv { background: #FFFFFF; border: 0; border-radius: 0; padding: 0; box-shadow: rgba(0, 0, 0, .05) 0 1px 2px 0; overflow: hidden; }
.tpv .tpv-mv-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 20px; background: #F8F8F8; border-top: 5px solid #2E8795;
    color: #2E8795; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.tpv[dir="rtl"] .tpv-mv-head { letter-spacing: 0; }
.tpv-mv-head img { width: 24px; height: 24px; flex: none; }
.tpv-mv-list { padding: 0 15px 15px; }
.tpv-mv-item { padding: 15px 0 10px; border-bottom: 1px solid #EEEEEE; }
.tpv .tpv-mv-title { margin: 0; font-size: 14.4px; font-weight: 600; line-height: 1.5; color: #838383; overflow-wrap: anywhere; }
.tpv .tpv-mv-title a { color: #838383; }
.tpv .tpv-mv-title a:hover { color: #2E8795; }
.tpv-mv-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #999999; }
.tpv-mv-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpv-mv-meta bdi { flex: none; }
.tpv-siblings.tpv-mv .tpv-empty { padding: 14px 0 0; }
.tpv-siblings.tpv-mv .tpv-more { padding-top: 12px; }
@media (max-width: 640px) { .tpv-siblings.tpv-mv { padding: 0; } .tpv .tpv-mv-head { font-size: 16px; } }

/* 2026-11-21 (owner): laurel image above "Continue with your account" (assets/img/tender-laurel.png, 198x142). */
.tpv-laurel { display: block; width: 99px; height: auto; margin: 0 auto 10px; }

/* 2026-11-21 (owner): both panels share one top line (teal, 5 px, square top corners, rounded bottom). */
.tpv-access, .tpv-siblings.tpv-mv { border-top: 5px solid #2E8795; border-radius: 0 0 13px 13px; }

/* 2026-11-21 (owner): both panel headers identical (grey strip, teal title, same height) and both panels end on the same line. */
.tpv .tpv-access-top, .tpv .tpv-mv-head { box-sizing: border-box; min-height: 50px; margin: 0; padding: 12px 20px; background: #F8F8F8; border-bottom: 0;
    color: #2E8795; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.tpv[dir="ltr"] .tpv-access-top, .tpv[dir="ltr"] .tpv-mv-head { letter-spacing: .04em; }
.tpv-access-top .tpv-i { color: #2E8795; }
.tpv-columns { align-items: stretch; }
.tpv-access-main { flex: 1 1 auto; }
.tpv-siblings.tpv-mv { display: flex; flex-direction: column; }
.tpv-mv-list { flex: 1 1 auto; display: flex; flex-direction: column; }
.tpv-siblings.tpv-mv .tpv-more { margin-top: auto; }

/* 2026-11-21 (owner): related panel framed exactly like the access panel (same side/bottom line, no shadow). */
.tpv-siblings.tpv-mv { border: 1px solid #E1E8E5; border-top: 5px solid #2E8795; border-radius: 0 0 13px 13px; box-shadow: none; }

/* The panel carries the teal line; the related header must not add a second one (it showed a double-thick line). */
.tpv .tpv-mv-head { border-top: 0; }
