/* 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; } }
