/*
   city.css — the city pages (Views/City/Index.cshtml), after two-look.css.

   The pill picks dark (#view-platform, "For your company") or light
   (#view-consulting, "For consultants") exactly as on the home page. The
   second switch changes the look again (Rafe 2026-10-23), inside the two
   approved blues (BRAND.md): Software is the platform slate, Services a deep
   shade of the logo blue, Resell plain white, Join the team a pale tint of
   the logo blue. Every pairing below clears 4.5:1 for small text.
*/

/*--------------------------------------------------------------
# The four looks
--------------------------------------------------------------*/
/* Services: #071a2c is #007EDE at 9% lightness. #4FA8F0 on it is 6.9:1,
   the muted #9fb0c4 is 8.0:1, the table heads #7c8ea3 4.5:1 on the surface. */
body.look-services {
    --platform-bg: #071a2c;
    --platform-surface: #0d2740;
    --platform-border: rgba(79, 168, 240, 0.16);
}

/* Join the team: #eef6fd is #007EDE at 96% lightness. The ink #0063B1 on it
   is 5.6:1; body text #444 is 8.9:1. */
body.look-team { background-color: #eef6fd; }
body.look-team #header { background-color: #eef6fd; }
body.look-team > .container-fluid,
body.look-team > div > main,
body.look-team footer,
body.look-team #contact { background-color: transparent; }
body.look-team #view-consulting .hero-card { background: #ffffff; }

/*--------------------------------------------------------------
# The second switch
--------------------------------------------------------------*/
.city-switch { padding-top: 6px; }
.city-tabs { margin-bottom: 18px; }

/* The lens tabs are drawn for the dark ground; on the light view they take the ink. */
#view-consulting .lens-tab {
    border-color: rgba(0, 0, 0, 0.14);
    background: #ffffff;
    color: #4a5263;
}
#view-consulting .lens-tab:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
#view-consulting .lens-tab[aria-selected="true"] {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
    color: #ffffff;
}
#view-consulting .lens-tab:focus-visible { outline-color: var(--accent-ink); }

.city-panel[hidden] { display: none; }

/*--------------------------------------------------------------
# The city photo in the hero, with its credit on a solid band
--------------------------------------------------------------*/
.city-photo { margin: 0; }
.city-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 12px;
    background: rgba(8, 18, 31, 0.82);
    color: #e6edf5;
    font-size: 12px;
    line-height: 1.4;
}
.city-photo figcaption a,
.city-photo figcaption a:hover { color: #A9CDFB; text-decoration: underline; }

/*--------------------------------------------------------------
# Light-view headings: two-look.css draws these for the dark ground
--------------------------------------------------------------*/
#view-consulting .catalog-head { border-top-color: rgba(0, 0, 0, 0.08); }
#view-consulting .catalog-head h2 { color: var(--heading-color); }
#view-consulting .catalog-head p { color: var(--default-color); }

/*--------------------------------------------------------------
# Services: the rate card, the bank package, travel
--------------------------------------------------------------*/
.city-services { margin-bottom: 0; }
.city-services h3 { font-size: 15px; color: #ffffff; margin: 0 0 4px; font-weight: 600; }

.rate-grid { min-width: 620px; }
.rate-grid thead th.col-rate,
.rate-grid tbody td.col-rate { text-align: right; white-space: nowrap; }
.rate-grid thead th.col-note,
.rate-grid tbody td.col-note { text-align: left; color: var(--platform-muted); }
.rate-grid tbody td.col-rate { color: #ffffff; font-weight: 600; font-size: 15px; }
.rate-unit { font-weight: 400; color: var(--platform-muted); font-size: 13px; }

.pricing-foot { text-align: center; color: var(--platform-muted); font-size: 13.5px; margin-top: 14px; }

.package-card,
.travel-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 32px;
    border-radius: 16px;
    background: var(--platform-surface);
    border: 1px solid var(--platform-border);
}
.package-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.package-card h2,
.travel-card h2 { color: #ffffff; font-size: 22px; margin: 0 0 10px; }
.package-price { color: var(--brand-blue-bright); font-size: 22px; font-weight: 700; margin: 0; }
.package-price span { display: block; color: var(--platform-muted); font-size: 13px; font-weight: 400; text-align: right; }
.package-card p,
.travel-card p { color: #d6dfea; font-size: 15px; line-height: 1.6; }
.package-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 22px;
}
.package-list li { display: flex; gap: 10px; color: #d6dfea; font-size: 14.5px; }
.package-list i { color: var(--brand-blue-bright); }
.package-foot,
.travel-foot { font-size: 13.5px; color: var(--platform-muted) !important; }
.package-card .btn-platform { margin-top: 6px; }

.travel-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.travel-lines > div { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--platform-border); }
.travel-lines dt { color: var(--platform-muted); font-size: 12.5px; font-weight: 500; }
.travel-lines dd { color: #ffffff; font-size: 15.5px; font-weight: 600; margin: 2px 0 0; }

/*--------------------------------------------------------------
# Consultant views: steps, the resell catalog
--------------------------------------------------------------*/
.steps {
    max-width: 860px;
    margin: 40px auto 0;
    padding: 26px 30px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.steps h3 { font-size: 18px; margin: 0 0 10px; color: var(--heading-color); }
.steps h3 + p,
.steps ul { margin-bottom: 18px; }
.steps ol,
.steps ul { padding-left: 1.3em; margin-top: 0; }
.steps li { margin-bottom: 8px; line-height: 1.55; }

.resell-catalog { max-width: 860px; margin: 32px auto 0; text-align: center; }
.resell-catalog h3 { font-size: 18px; color: var(--heading-color); }
.resell-catalog .universal-row { justify-content: center; margin-top: 12px; }
.resell-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid rgba(0, 99, 177, 0.25);
    background: #ffffff;
    color: #333;
    font-size: 13.5px;
}
.resell-chip i { color: var(--accent-ink); }

/*--------------------------------------------------------------
# The city at a glance (all four views)
--------------------------------------------------------------*/
.city-local h2 { font-size: 24px; margin-bottom: 18px; }
.city-local h3 { font-size: 17px; margin: 0 0 10px; }
.fact-list { padding-left: 1.2em; margin-bottom: 18px; }
.fact-list li { margin-bottom: 9px; line-height: 1.55; }
.fact-src { font-size: 13px; margin-left: 4px; white-space: nowrap; }
.fact-note { font-size: 14px; }

body.mode-platform .city-local { background-color: var(--platform-bg); }
body.mode-platform .city-local h2,
body.mode-platform .city-local h3 { color: #ffffff; }
body.mode-platform .city-local li,
body.mode-platform .city-local p { color: #d6dfea; }

/*--------------------------------------------------------------
# The training-grant banner, top of both company tabs
--------------------------------------------------------------*/
.grant-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 0 0 18px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--platform-surface);
    border: 1px solid var(--brand-blue-bright);
}
.grant-promo > i { color: var(--brand-blue-bright); font-size: 22px; }
.grant-promo p { flex: 1 1 260px; margin: 0; color: #d6dfea; font-size: 15px; }
.grant-promo strong { color: #ffffff; }
.grant-promo .hero-learn { padding: 9px 16px; }
.grant-promo .btn-platform { padding: 9px 20px; }
#training-money { scroll-margin-top: calc(var(--bars-h, 140px) + 18px); }

/*--------------------------------------------------------------
# Training grants 101 (Views/Home/TrainingGrants.cshtml), light page
--------------------------------------------------------------*/
.grants { max-width: 1000px; }
.grants section { margin: 36px 0; padding: 0; }  /* the template pads every section 60px */
.grants h2 { font-size: 24px; margin-bottom: 16px; }
.grants h3 { font-size: 18px; margin-bottom: 10px; }
.grants-head { text-align: center; padding: 18px 0 6px; }
.grants-head h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }
.grants-head .lead { margin-bottom: 22px; }
.grants-back { margin: 16px 0 0; font-size: 14.5px; }
.grants-note { font-size: 14px; margin-top: 8px; }
.grants .value-item i { color: var(--accent-ink); }

/* Click your state: chips in the ink, filled when the state is in the message. */
.state-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.state-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--accent-ink);
    background: #ffffff;
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.state-btn:hover { background: rgba(0, 99, 177, 0.08); }
.state-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.state-btn .state-done { display: none; }
.state-btn.is-added { background: var(--accent-ink); color: #ffffff; }
.state-btn.is-added .state-done { display: inline; }

/* Every module: the company tabs only, on their dark ground. */
body.mode-consulting #all-modules { display: none; }
body.mode-platform #all-modules { background-color: var(--platform-bg); }

/* Rafe's own paragraph about the city, above the facts. */
.city-note { font-size: 17px; line-height: 1.6; max-width: 70ch; margin-bottom: 24px; }
