/* Overrides on top of the legacy easy.css (wwwroot/css/legacy/easy.css, a copy of the legacy /css/easy.css). */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 2000; background: #fff; padding: 6px 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header photo replaces the legacy inline-styled background (inline styles are blocked by the CSP). */
.site-header { overflow: visible; }
.site-header .header-photo { position: absolute; left: 0; top: 32px; width: 100%; height: auto; max-height: 109px; object-fit: cover; z-index: -1; }

/* Legacy dropdown menus relied on a jQuery hover script; plain CSS does the same job. */
#nav li:hover > ul, #nav li:focus-within > ul { display: block; }

.breadcrumb { padding: 8px 0; font-size: .9em; }
.main h1 { margin: 15px 0 10px; }
.lead { font-size: 1.15em; color: #01466e; }
.small { font-size: .85em; color: #555; }
.hero img { width: 100%; height: auto; display: block; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.card-grid .home-cruise { display: block; box-sizing: border-box; width: auto; float: none; margin: 0; padding: 10px; background: #e6f1f8; border-radius: 0 0 20px 20px; box-shadow: 0 0 2px #ccc; text-align: center; text-decoration: none; }
.card-grid .cruise-head { display: block; font-weight: bold; margin-bottom: 6px; }
.link-columns { columns: 2 220px; list-style: none; padding: 0; }
.link-columns li { margin: 0 0 4px; break-inside: avoid; }
.facts { float: none; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.facts dt { font-weight: bold; }
.facts dd { margin: 0; }
table.sailings { width: 100%; border-collapse: collapse; margin: 10px 0; }
table.sailings th, table.sailings td { border: 1px solid #d7d7d7; padding: 6px; text-align: left; vertical-align: top; }
table.sailings th { background: #ffcc33; }
.webcams { display: flex; flex-wrap: wrap; gap: 20px; }
.webcam-ship { width: 240px; }
.webcam-ship img { width: 229px; height: auto; background: #eee; }
.webcam-offline-note { display: none; }
.webcam-offline img { display: none; }
.webcam-offline .webcam-offline-note { display: block; box-sizing: border-box; width: 229px; padding: 50px 12px; text-align: center; background: #eee; color: #555; }
.webcams figure { margin: 0 0 12px; }
.webcams { gap: 16px; }
.team-list { list-style: none; padding: 0; }
.team-member { display: flex; gap: 12px; margin-bottom: 16px; }
.team-member img { flex: none; border-radius: 4px; }
.team-member h3 { margin: 0; }
.team-member .role { margin: 0; color: #555; }
.testimonial blockquote { margin: 0; font-style: italic; }
.testimonial footer { font-style: normal; margin-top: 6px; font-weight: bold; }
.search-unavailable { font-size: .85em; margin: 6px 0 0; }
.content-page blockquote { border-left: 4px solid #ffcc33; margin: 10px 0; padding: 6px 12px; background: #fffbea; }
.formassembly { border: 0; min-height: 900px; }
.selected-sailing { background: #e6f1f8; padding: 8px 12px; }

/* ---- Layout fixes (Dec 2026 visual pass) ---- */
/* Pages without the right-hand testimonial column (home, webcams, ports...) left a 190px empty strip: let the main
   column take that space. Also give the main column a little side padding so text doesn't touch the left column. */
.content:not(.wide) > .main:last-child { width: 790px; }
.main { box-sizing: border-box; padding-left: 12px; padding-right: 12px; }
/* Legacy h1/h2 are white on dark blue, but links inside them kept the blue link colour and were unreadable. */
.main h1 a, .main h2 a { color: #fff; }
.main h1 a:hover, .main h2 a:hover, .main h1 a:focus, .main h2 a:focus { text-decoration: underline; }
/* easy.css floats this panel, so the next section's heading bar stretched up behind it as a big dark block. */
.home-feature-panel { float: none; overflow: hidden; }
.card-grid .home-cruise img { display: block; width: 100%; height: auto; margin: 0 0 8px; border-radius: 4px; }

/* Left column "Search cruises" panel: easy.css gives #search a 190px width plus the .box 10px padding, so it was
   210px wide in a 190px column and spilled 20px into the main column. The fieldset already has its own padding. */
#search.box { box-sizing: border-box; width: 190px; padding: 0; }
#search select, #search .btnFresh button { box-sizing: border-box; max-width: 100%; }
/* Club Med resort list: photo cards instead of a plain list of links. */
.resort-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 10px 0 20px; }
.resort-cards li { margin: 0; padding: 0; background: none; }
.resort-cards a { display: block; text-decoration: none; background: #e6f1f8; border-radius: 4px; overflow: hidden; height: 100%; }
.resort-cards a:hover, .resort-cards a:focus { background: #cfe3f1; }
.resort-cards img { display: block; width: 100%; height: auto; }
.resort-cards .resort-name { display: block; font-weight: bold; padding: 6px 8px 0; color: #01466e; }
.resort-cards .resort-country { display: block; padding: 0 8px 8px; color: #555; font-size: .9em; }
/* Ported legacy galleries: keep thumbnails in neat rows. */
.content-page a > img { margin: 0 4px 6px 0; vertical-align: top; }

/* Replacements for the easy.css background images that were on content.cleancruising.com.au (now 404). */
#container { background-image: none; }
.content { box-shadow: 0 0 12px rgba(0, 0, 0, .25); }
.secondary .box { background: linear-gradient(#f5f5f5 60%, #e4e4e4); }
#search form { background: linear-gradient(#ececec, #d8d8d8 120px); }
#footer .general li, #footer .cruiselines ul li { box-sizing: border-box; list-style: none; padding-left: 12px; position: relative; }
#footer .general li::before, #footer .cruiselines ul li::before { content: ""; position: absolute; left: 0; top: .55em; border: 4px solid transparent; border-left-color: #0054aa; }

@media (max-width: 767px) {
    #container, .inner, .content, .main, .secondary, .tertiary { width: auto !important; float: none !important; }
    .content:not(.wide) > .main:last-child { width: auto; }
    /* easy.css makes .main display:inline on phones, so its side padding never applied and text touched the screen edge. */
    .main { display: block; padding: 0 12px !important; }
    /* Body text reads better left-aligned; easy.css centres everything on phones. Headings stay centred. */
    .main p, .main li, .main dd, .main dt, .main td, .main th, .main blockquote { text-align: left; }
    .main ul { padding-left: 20px; }
    #footer .general li::before, #footer .cruiselines ul li::before { display: none; }
    #footer .general li, #footer .cruiselines ul li { padding-left: 0; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .site-header .header-photo { display: none; }
    table.sailings { font-size: .9em; }
    /* easy.css hides the left column on phones with visibility:hidden, which still takes up its full height and left a
       large blank gap above the page content. Take it out of the layout instead (the home page still shows it). */
    .content:not(.home-page) > .secondary { display: none; }
    /* Menu button: easy.css's icon image is gone (content.cleancruising.com.au), so draw three bars in CSS. */
    #header .menu-toggle { right: 10px; top: 8px; width: 40px; height: 40px; padding: 0; background: #01466e; cursor: pointer;
        background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
        background-size: 22px 3px; background-repeat: no-repeat; background-position: center 12px, center 19px, center 26px; }
    #header .menu-toggle:focus-visible { outline: 3px solid #01466e; outline-offset: 2px; }
    #header #nav.open { display: block; opacity: 1; position: absolute; top: 55px; left: 0; right: 0; width: auto; margin: 0; max-height: calc(100vh - 55px); overflow-y: auto; }
    #header #nav.open a { color: #fff; }
}

/* Fallback when the legacy /images tree (header photo) is not deployed: keep nav text readable. */
.site-header { background-color: #01466e; }
.btnFresh button[disabled] { opacity: .5; cursor: not-allowed; }
.home-intro h2 { margin-top: 20px; }
.webcam-link { display: block; padding: 50px 10px; width: 209px; text-align: center; background: #eee; }
.demo-banner { background: #b00020; color: #fff; text-align: center; padding: 6px 10px; font-weight: bold; }
.archive-notice { font-size: .85em; color: #555; background: #f4f4f4; border-left: 3px solid #9bb8cc; padding: 6px 10px; margin: 8px 0 12px; }
.content-page img { max-width: 100%; height: auto; }

/* GlobeNet logo suite (October 2026 brand guide). The desktop header sits on the dark blue band, so it uses the reversed
   (white lettering) master logo. The phone header (yellow band) and the footer (light background) use the full-colour master. These replace the 2018
   images/GT_2018.png and images/mobile-logo.png that easy.css points at. */
#header h4 a {
    width: 216px;
    height: 54px;
    background: url(/img/brand/globenet-master-reversed.svg) no-repeat left center;
    background-size: contain;
}
@media (max-width: 767px) {
    #header h4 a {
        width: 100%;
        height: 40px;
        background: url(/img/brand/globenet-master.svg) no-repeat left center;
        background-size: contain;
    }
}
#footer .general h2 img { display: block; width: 200px; height: auto; }
