/* ============================================================================
   public-pages.css — the one header of every public recruitment page
   (2026-10-09): the openings list (web/job-application/index), the opening and
   registration page (web/job-application/create) and the privacy notice
   (web/privacy-policy). Markup: resources/views/web/partials/public-header.blade.php.

   Colours are var(--…) from theme/portal-job-applicant.css. A page links this
   file in its head and does not restyle these blocks, so the header has one
   height, one logo size, one type scale and one stacking breakpoint everywhere.
   ========================================================================= */

/* Top bar — flat brand red, white words. */
.pub-topbar {
    background: var(--brand); color: #fff;
    font-size: 12.5px; letter-spacing: .02em;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
    padding: 8px 24px;
}
.pub-topbar a { color: #fff; opacity: .92; text-decoration: none; white-space: nowrap; }
.pub-topbar a:hover, .pub-topbar a:focus-visible { opacity: 1; text-decoration: underline; }
.pub-tb-login { margin-inline-end: auto; }
.pub-tb-end {
    margin-inline-start: auto;
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px;
}
.pub-tb-end span { color: rgba(255, 255, 255, .55); }

/* Masthead — the institute name centred between two equal side columns. */
.pub-mast {
    background: #fff; border-bottom: 1px solid var(--line);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
    align-items: center; gap: 18px; padding: 14px 24px;
}
.pub-mast-side { display: flex; align-items: center; min-width: 0; }
.pub-mast-side.is-end { justify-content: flex-end; }
.pub-mast-side img { display: block; height: 64px; width: auto; max-width: 100%; }
.pub-mast-mid { min-width: 0; text-align: center; }
.pub-kicker {
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand); margin: 0 0 3px;
}
.pub-mast h1 {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2.6vw, 24px);
    color: var(--ink); margin: 0; line-height: 1.25;
}

/* Stacking: one breakpoint for every page. */
@media (max-width: 767px) {
    .pub-mast { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .pub-mast-side, .pub-mast-side.is-end { justify-content: center; }
    .pub-mast-side.is-blank { display: none; }
}
@media (max-width: 575px) {
    .pub-topbar { padding-inline: 16px; gap: 6px 12px; }
    .pub-tb-q { display: none; }
    .pub-tb-end { gap: 4px 8px; }
    .pub-mast { padding: 12px 16px; }
}
