/* The Purser — site-specific colour corrections (WCAG 1.4.3 / 1.4.11)
   Brand yellow #f1c500 reaches only 1.65:1 against white, in either direction.
   The yellow panels stay yellow; type the theme set white on them takes black,
   which the same panels already use for their body copy (12:1). */
[data-bg=yellow] [data-color=white],
[data-bg=yellow] [data-color=white] *,
[data-bg=yellow] [data-color=white] strong { color: #000; }
[data-bg=yellow] #residence-nav a.active,
[data-bg=yellow] #residence-nav a { color: #000; border-color: #000; }
[data-bg=yellow] #residence-nav a.active strong { border-color: #000; }
[data-bg=yellow] .arrow-link span,
[data-bg=yellow] .arrow-link { border-color: #000; color: #000; }

/* Yellow headline on white ("A Place in the Sun"): large type needs 3:1 -> deeper gold #af8f00 */
[data-color=yellow] { color: #af8f00; }

/* Page headlines sitting on the yellow band inherited white (1.65:1) */
[data-bg=yellow] h1, [data-bg=yellow] h1 *, [data-bg=yellow] h2, [data-bg=yellow] h2 * { color: #000; }

/* Home headline "I dreamed, I dwelt at The Purser": teal drawn with mix-blend-mode:screen,
   which washes out to pale cream (about 1.2:1) where the yellow wave rises behind it.
   Drawn normally, one shade deeper (#0e7492): 5.3:1 on white, 3.2:1 on yellow (large text needs 3:1). */
.template-home #main-title { mix-blend-mode: normal; }
.template-home #main-title h1 { color: #0e7492; }

/* History page: white photo credit sat straight on the photograph (2.4:1) */
.slide-caption { background: rgba(26, 26, 26, .72); padding: .3em .7em; display: inline-block; }

/* Policy and Availability pages: the theme's own article rule set their top padding to 20px,
   so the heading sat under the fixed header. Room for the header, and left-aligned text. */
main article.legal { padding-top: 9.5rem !important; text-align: left; }
main article.legal h1, main article.legal .legal__meta { text-align: left; }
@media (max-width: 767px) { main article.legal { padding-top: 5.5rem !important; } }

/* Phone menu: the current page's link was the theme's yellow (#f1c500) on the menu's teal, 2.9:1;
   white like the other links, underlined so it still stands out */
body.menu-active .nav-primary .current-menu-item a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

/* APPLY NOW: on hover and keyboard focus the theme turns it yellow (#f1c500) but keeps white text, 1.65:1;
   dark text on the same yellow. It now opens AppFolio in a new tab, so it stays focused after a click. */
header.banner .book-now:focus, header.banner .book-now:hover { color: #1a1a1a; }

/* Contact page: the phone, email and address links on the blue panel turned yellow on hover
   (#f1c500 on #0f7c9b, 2.9:1). They stay white and gain an underline instead (4.8:1). */
.template-contact article a:hover, .template-contact article a:focus { color: #ffffff; text-decoration: underline; }
