/* TenderLens native-template adaptation of Gov.om foundations.
   Tokens and typography are pinned in govom/. See docs/design/govom-adaptation.md. */
html { scroll-padding-top:var(--gup-spacing-between-content); }
body, .site, .site[dir=rtl], .site-view, .chat-page {
    font-family:var(--font-base); font-size:var(--font-size-body); line-height:var(--line-height-body);
    background-color:var(--gup-color-background-canvas); color:var(--gup-color-content-primary);
}
button, input, select, textarea { font-family:var(--font-base); }
a { color:var(--gup-color-content-link); }
h1, h2, h3, .heading h1, .stats strong, .site h2, .site[dir=rtl] h2, #interest-dialog h2, #interest-dialog[dir=rtl] h2 {
    font-family:var(--font-base); font-weight:700; letter-spacing:normal;
}
h1, .heading h1, .auth-card h1 { font-size:clamp(32px,4vw,48px); line-height:1.3; }
h2, .app-main h2 { font-size:var(--font-size-600); line-height:1.4; }
.muted, caption, .page-heading p, .heading p, .auth-card p { color:var(--gup-color-content-secondary); }
.page-heading { padding-block:var(--gup-spacing-between-sections) var(--gup-spacing-between-content); }
.page-heading p { font-size:var(--font-size-400); line-height:1.6; }
.eyebrow { color:var(--gup-color-content-secondary); font-size:var(--font-size-200); letter-spacing:.06em; }
.app-header, .site-view .site-header {
    background:linear-gradient(180deg,var(--gup-color-background-gradient-1-start),var(--gup-color-background-gradient-1-end));
    border-color:var(--gup-color-border-low);
}
.app-brand, .site .brand { color:var(--gup-color-brand-xhigh); font-size:var(--font-size-550); letter-spacing:normal; }
.app-nav a { color:var(--gup-color-content-link); font-size:var(--font-size-300); }
.app-nav a:hover, .app-nav a[aria-current=page] { color:var(--gup-color-brand-medium); }
.app-account { color:var(--gup-color-content-secondary); }
button, .action, .site .primary, .site .secondary, #interest-form .primary, #interest-dialog .success-done {
    border-radius:var(--gup-radius-button); font-size:var(--font-size-300); font-weight:700;
    line-height:var(--line-height-500); min-height:44px; padding:10px var(--gup-padding-sm);
}
button, .action, .site .secondary { color:var(--gup-color-brand-xhigh); border-color:var(--gup-color-brand-xhigh); }
button:enabled:hover, .action:hover { background-color:var(--gup-color-states-base-bg-secondary); }
button.primary, .action.primary, .site .primary, #interest-form .primary, #interest-dialog .success-done {
    background:var(--gup-color-brand-medium); border:1px solid transparent; color:var(--gup-color-brand-contrast);
}
button.primary:enabled:hover, .action.primary:hover, .site .primary:not(:disabled):hover, #interest-form .primary:hover, #interest-dialog .success-done:hover {
    background:var(--gup-color-brand-high); box-shadow:none;
}
button:where(:not(.primary):not(.text-btn):not(.dialog-close):not(.delete)):enabled:hover, .action:not(.primary):hover, .site .secondary:not(:disabled):hover {
    background:var(--gup-color-brand-medium); border-color:transparent; color:var(--gup-color-brand-contrast);
}
button:where(:not(.text-btn):not(.dialog-close):not(.delete)):enabled:active, .action.primary:active, .action:not(.primary):active { background-color:var(--gup-color-brand-xhigh); color:var(--gup-color-brand-contrast); }
button:disabled, button.primary:disabled, .site button:disabled, .site button.primary:disabled, .site button.secondary:disabled, #interest-form .primary:disabled,
input:disabled, select:disabled, textarea:disabled {
    background:var(--gup-color-states-disabled-low); color:var(--gup-color-states-disabled-medium);
    border-color:transparent; opacity:1; cursor:default; box-shadow:none;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline:3px solid var(--gup-color-states-base-focus-ring); outline-offset:3px;
}
input:not([type=checkbox]):not([type=hidden]), select, textarea {
    border-color:var(--gup-color-states-base-border); border-radius:var(--gup-radius-component-default);
    background-color:var(--gup-color-states-base-bg); color:var(--gup-color-content-primary);
}
input[type=checkbox] { accent-color:var(--gup-color-brand-medium); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color:var(--gup-color-negative-high); }
.app-nav .skip-link {
    position:absolute; top:-100px; inset-inline-start:16px; z-index:20;
    padding:10px var(--gup-padding-sm); background:var(--gup-color-background-base);
    border:1px solid var(--gup-color-brand-xhigh); border-radius:var(--gup-radius-component-small);
}
.app-nav .skip-link:focus { top:8px; }
label, .profile-form label, .filter-grid label { font-size:var(--font-size-300); }
.app-main section, .auth-card, .tender-card, .empty-results, .tender, .stats a, .table {
    border-radius:var(--gup-radius-card); border-color:var(--gup-color-border-low);
}
.app-main section, .auth-card, .tender-card { background-color:var(--gup-color-background-elevated-container); }
.app-main section { padding:var(--gup-padding-md); margin-block:var(--gup-spacing-between-content); }
.auth-card { padding:var(--gup-padding-lg); }
.notice, .admin-toolbar, .badge.verified {
    background:var(--gup-color-brand-xlow); color:var(--gup-color-brand-xhigh); border-color:var(--gup-color-brand-low);
    border-radius:var(--gup-radius-component-default);
}
.notice.error, .error, .deadline-passed, .delete { color:var(--gup-color-negative-high); }
.notice.error { background:var(--gup-color-negative-xlow); border-color:var(--gup-color-negative-low); }
table { font-size:var(--font-size-300); }
th { background:var(--gup-color-states-base-bg-secondary); color:var(--gup-color-content-secondary); font-size:var(--font-size-200); }
th, td { border-color:var(--gup-color-border-low); }
caption, .watchlist-filters, .last-sent { color:var(--gup-color-content-secondary); }
.watchlist-tabs a[aria-current=page] { color:var(--gup-color-brand-medium); }
.status-badge, .badge { background:var(--gup-color-background-base); color:var(--gup-color-content-secondary); border-color:var(--gup-color-border-medium); }
.status-badge.active { background-color:var(--gup-color-positive-xlow); color:var(--gup-color-positive-xhigh); border-color:var(--gup-color-positive-low); }
.watchlist-status select.status-badge { font-size:var(--font-size-200); border-radius:var(--gup-radius-component-full); }
/* Keep the approved compact role control; it is a navigation action, not a full form field. */
.role-preview-form label { font-size:var(--font-size-200); gap:4px; }
.role-preview-form select { min-height:30px; width:92px; font-size:var(--font-size-200); padding:3px 24px 3px 8px; border-color:transparent; background-color:transparent; }
.role-preview-form select:hover, .role-preview-form.is-preview select { background-color:var(--gup-color-brand-xlow); color:var(--gup-color-brand-xhigh); }
.workspace-page .finder, .review-sidebar .helper-panel { background:var(--gup-color-background-accent-container); }
.tender-card { padding:var(--gup-padding-md); }
.tender-card h3 { font-size:var(--font-size-550); }
.tender-card h3 a { color:var(--gup-color-content-link); }
.tender-buyer, .facts dd, .tender-actions, .workspace-help { font-size:var(--font-size-300); }
.facts dt { font-size:var(--font-size-200); }
.journey li { font-size:var(--font-size-300); }
.journey li[aria-current=step] { color:var(--gup-color-brand-xhigh); }
.journey li[aria-current=step] span { background:var(--gup-color-brand-medium); border-color:var(--gup-color-brand-medium); }
#follow { border-color:var(--gup-color-brand-low); }
.stats strong { font-size:var(--font-size-700); }
.history-nav { background:var(--gup-color-background-accent-container); }
.history-nav a.conv.active { background:var(--gup-color-brand-xlow); color:var(--gup-color-brand-xhigh); }
.msg.user { background:var(--gup-color-brand-xlow); border-color:var(--gup-color-brand-low); border-radius:var(--gup-radius-card); }
.msg, .msg pre, textarea { border-radius:var(--gup-radius-component-default); }
.msg a { color:var(--gup-color-content-link); }
.chat-page .notice { background:var(--gup-color-warning-xlow); border-color:var(--gup-color-warning-low); color:var(--gup-color-warning-xhigh); }
form.composer { background:var(--gup-color-background-base); }
.chat-context { background:var(--gup-color-background-accent-container); }
/* The public entry page uses the same foundations as the application. */
.site-view .site { --round:var(--gup-radius-card); font-family:var(--font-base); }
.site .hero .hero-title, .site-view .photo-hero .hero-title, .site[dir=rtl] .photo-hero .hero-title {
    font-family:var(--font-base); font-weight:700; letter-spacing:normal; font-size:clamp(36px,5vw,64px); line-height:1.3;
}
.site .photo-hero { background:var(--gup-color-brand-xhigh); border-radius:var(--gup-radius-card); }
.site .photo-hero .hero-shade { background:linear-gradient(90deg,rgba(19,36,89,.94),rgba(19,36,89,.60),rgba(19,36,89,.22)); }
.site[dir=rtl] .photo-hero .hero-shade { background:linear-gradient(270deg,rgba(19,36,89,.94),rgba(19,36,89,.60),rgba(19,36,89,.22)); }
.site .photo-hero .hero-title, .site .photo-hero .eyebrow { color:var(--gup-color-content-inverted-primary); }
.site .photo-hero .hero-title em { color:var(--gup-color-brand-low); font-style:normal; }
.site .photo-hero p, .site .photo-hero .micro { color:var(--gup-color-content-inverted-primary); }
.site .photo-hero .micro, .site .tender-number { font-size:var(--font-size-200)!important; }
.site .photo-hero .secondary { border-color:var(--gup-color-brand-contrast); color:var(--gup-color-brand-contrast); }
.site .photo-hero .primary { background:var(--gup-color-neutral-contrast); color:var(--gup-color-neutral-xhigh); }
.site .photo-hero .primary:not(:disabled):hover, .site .photo-hero .secondary:not(:disabled):hover {
    background:var(--gup-color-states-inverted-primary-hover); color:var(--gup-color-neutral-xhigh);
}
.site .photo-hero button.primary:enabled:active, .site .photo-hero button.secondary:enabled:active {
    background:var(--gup-color-states-inverted-primary-active); color:var(--gup-color-neutral-xhigh);
}
.site .hero-copy, .site .hero-photo { animation:none; }
.site .hero p, .site .features p, .site .live-intro p { font-size:var(--font-size-400); line-height:1.6; }
.site .features h3 { font-size:var(--font-size-550); }
.site .result p, .site .result-footer, .site .tender-source { font-size:var(--font-size-300); }
.site-view .live-intro h2, .site .interest-strip h2, [dir=rtl] .interest-strip h2 { font-family:var(--font-base); font-size:var(--font-size-700); line-height:1.4; font-weight:700; letter-spacing:normal; }
.site .sample, .site .interest-strip { background:var(--gup-color-background-accent-container); border-color:var(--gup-color-border-low); border-radius:var(--gup-radius-card); }
.site .result, .site .question { border-radius:var(--gup-radius-card); background:var(--gup-color-background-elevated-container); border-color:var(--gup-color-border-low); }
.site .badge { background:var(--gup-color-brand-xlow); color:var(--gup-color-brand-xhigh); }
.site .site-footer { background:var(--gup-color-background-footer); color:var(--gup-color-content-inverted-secondary); font-size:var(--font-size-200); }
.site .site-footer a { color:var(--gup-color-content-inverted-link); }
#interest-dialog { border-radius:var(--gup-radius-card); background:var(--gup-color-background-base); color:var(--gup-color-content-primary); border-color:var(--gup-color-border-low); }
#interest-dialog h2, #interest-dialog[dir=rtl] h2 { font-size:var(--font-size-700); line-height:1.4; }
#interest-dialog p { color:var(--gup-color-content-secondary); font-size:var(--font-size-300); }
#interest-form input:not([type=checkbox]), #interest-form textarea { border-color:var(--gup-color-states-base-border); color:var(--gup-color-content-primary); }
#interest-form label { font-size:var(--font-size-300); }
#interest-form .consent { font-size:var(--font-size-200); }
.dialog-close { border:0; color:var(--gup-color-content-primary); padding:0; font-size:var(--font-size-600); }
#interest-feedback:not(:empty), .success-check { background:var(--gup-color-positive-xlow); color:var(--gup-color-positive-xhigh); }
#interest-dialog .google-login-note { background:var(--gup-color-background-accent-container); }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { font-family:var(--font-base-rtl); letter-spacing:normal; }
@media(max-width:760px) {
    .app-nav { gap:4px 14px; }
    .app-nav a { font-size:var(--font-size-200); }
    .app-main section, .auth-card, .tender-card { padding:var(--gup-padding-sm); }
    .page-heading { padding-block:var(--gup-padding-lg) var(--gup-padding-sm); }
    .site-view .photo-hero .hero-title, .site[dir=rtl] .photo-hero .hero-title { font-size:36px; }
    .site-view .live-section, .site-view .features { padding:var(--gup-padding-lg) var(--gup-padding-md); }
    .journey li { font-size:var(--font-size-200); }
}
