/*
The site's own style rules, loaded by every layout right after the theme (css/theme.min.css).
The theme is a bought, minified file: a rule of ours that more than one page needs goes here,
never into the theme and never copied from one page's <style> block into another's.
First rules: design review of 18 Nov 2026 (the header logo, the Co-pilot button, the picture
slots, the cards of the Job Tools page).

There is one other home for shared rules, templates/shared/site-styles.html, which every
layout prints into the page itself. It holds only what a page must have even when this file
has not arrived or is an old copy in the browser: the page shell (the footer at the bottom of
a short page) and the site's orange button of the visitors' bar. Everything else shared
belongs here. No selector is in both, and a rule moves from one to the other, never copies.
*/

/*
The visitors' header logo. The theme shows every header logo 88px wide (.navbar-brand, 5.5rem),
which leaves the words "My Island Job" about 11px high. The wordmark logo (the two visitors'
headers) is shown 110px wide on a phone and 140px on a computer; the members' and employers'
headers show the island alone and keep the theme's width. The logo is placed over the bar, not
in it, so the wider logo does not make the bar taller.

On a small laptop (992 to 1199 wide) the visitors' bar has no room to spare: with the menu's
entries at their full padding even 110px breaks "Find Jobs", "Log In" and "Get Started Free"
over two lines. There the logo stays at 110px and each entry gives up 6px on either side.
*/
.navbar-brand.navbar-brand-wordmark {
    width: 110px;
}
@media (min-width: 1200px) {
    .navbar-brand.navbar-brand-wordmark {
        width: 140px;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    #mainNav .navbar-nav .nav-link {
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
    }
}
/*
On a phone the bar gives the logo its own room (Daniel and Pierre, 29 Nov 2026). The logo is
49.5px high at 110px wide, and the bar once scrolled is the menu button's 40px plus 8px above
and below: the logo, placed over the bar, stood 3px from the top of the screen, and on the
home page the top of the palm tree was cut off once the page scrolled down. The logo's link is
now as high as the logo itself there, so the bar is never lower than the logo and its padding
(66px scrolled, the spacer's height in header-homepage.html). On a computer the bar is taller
than the logo and nothing changes.
*/
@media (max-width: 991.98px) {
    .navbar-brand.navbar-brand-wordmark {
        height: 50px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/*
The Co-pilot button: white with an orange outline and orange words, so it reads over the home
page's dark photo and over the job list's blue banner, and stays second to an orange button
beside it. Hover and keyboard focus fill it orange.
*/
.btn-copilot-outline,
.btn-copilot-outline:visited {
    background-color: #fff;
    border: 2px solid orangered;
    color: orangered;
    font-weight: 600;
    text-transform: none;
}
.btn-copilot-outline:hover,
.btn-copilot-outline:focus,
.btn-copilot-outline:active {
    background-color: orangered;
    border-color: orangered;
    color: #fff;
}

/*
A picture slot of a fixed shape. The site cuts each uploaded picture to the slot's size, but an
upload smaller than the slot is left as it is (never enlarged), so the slot gives the shape and
the picture fills it, cut at the edges when its own shape differs. The --empty slot is the plain
block a card shows when its picture is missing from the admin, so the card keeps its shape.
*/
.picture-slot {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.picture-slot-5x2 { aspect-ratio: 5 / 2; }
.picture-slot-5x4 { aspect-ratio: 5 / 4; }
.picture-slot-19x11 { aspect-ratio: 19 / 11; }
.picture-slot-1x1 { aspect-ratio: 1 / 1; }
.picture-slot-empty {
    background-color: #f1f3f5;
}

/*
The cards of the Job Tools page: the tool's name in bold over one sentence in the page's normal
dark text (the whole card is the link, so the theme would print both in link blue). Two cards
sit side by side on a phone, so the text is a little smaller there.
*/
.tool-card,
.tool-card:hover,
.tool-card:focus {
    color: inherit;
    text-decoration: none;
}
.tool-card .tool-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 1rem 0 0.25rem;
}
@media (max-width: 575.98px) {
    .tool-card .tool-card-name {
        font-size: 1rem;
    }
    .tool-card p {
        font-size: 0.875rem;
    }
}

/* The picture in the job list's Co-pilot banner: a round photo with its own white ring. */
.copilot-banner-picture {
    width: 70px;
    height: 70px;
    max-width: none;
}

/*
The four pages redone on 27 Nov 2026 (wording sheet 29, approved by Pierre on 26 Nov 2026):
Interview tips, Career growth, Hospitality studies and About us. One narrow column a phone reads
without zooming, the theme's own headings and buttons, and no fade-in, so the words are there as
the page opens. The pictures sit in the slots above (.picture-slot); with no picture in the admin
a page simply leaves it out.
*/
.plain-page {
    max-width: 760px;
    margin: 0 auto;
}
.plain-page h1 {
    font-size: 1.75rem;
}
.plain-page h2 {
    font-size: 1.375rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.plain-page h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.plain-page ul {
    padding-left: 1.25rem;
}
.plain-page li {
    margin-bottom: 0.375rem;
}
.plain-page .btn {
    text-transform: none;
}
/* the header picture beside the heading on a computer, above it on a phone, never so tall the button leaves the first screen */
.plain-page-picture {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .plain-page-picture {
        max-height: 280px;
    }
}
/* the jump links under the header: one line, sideways on a phone */
.jump-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
}
/* the never-pay box: a red border, as a warning, with the page's normal text */
.never-pay-box {
    border: 2px solid #dc3545;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}
/* a card of steps or routes, the border and corners of the guides' boxes */
.plain-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}
.plain-card h3 {
    margin-top: 0;
}
/* the site's small pelicans (Pierre, 28 Nov 2026; templates/shared/pelican.html, templatetags/pelican_tags.py): a picture only, never over words */
.pelican {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    pointer-events: none;
}
/* an empty moment (no jobs right now, no match yet, a page not found, nothing picked yet): in the middle, above its words */
.pelican-empty {
    margin: 0 auto 0.75rem;
}
/* perched on the top edge of a box, on the right; the box keeps room above it, and its first heading keeps clear of it */
.pelican-box {
    position: relative;
    margin-top: 3.25rem;
}
.pelican-perch {
    position: absolute;
    top: -42px;
    right: 14px;
    transform: rotate(-8deg);
    filter: drop-shadow(0 3px 4px rgba(14, 17, 31, 0.18));
}
.pelican-box > .pelican-perch + h2 {
    margin-top: 0 !important;
    padding-right: 72px;
}
/* the line under an island guide's heading */
.guide-heading-line {
    font-size: 1.05rem;
    margin: 0.25rem 0 0;
}
