/* AnyKey theme: yellow bar, dark photo heroes, yellow cards. Self-hosted Oswald + Roboto (latin, variable), no JavaScript. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/oswald.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/roboto.woff2) format("woff2"); }
:root {
	--sun: #dec705;        /* AnyKey yellow */
	--sun-dark: #cfba05;
	--night: #2d2d2d;      /* hero overlay */
	--coal: #363636;
	--ink: #222222;
	--paper: #ffffff;
	--glaze: #f7f2c3;      /* light yellow */
	--grout: #e2e2e2;
	--slate: #5f5f5f;
	--delft: #363636;      /* accent on light backgrounds (kept for account.css) */
	--link: #6b5f00;       /* yellow-olive, 6.4:1 on white */
	--on-dark: #c9c9c9;
	--wrap: 76rem;
	--sans: Roboto, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
	--display: Oswald, "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 300 1.0625rem/1.7 var(--sans); color: var(--ink); background: var(--paper); }
strong, b { font-weight: 600; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 3vw + 1.2rem, 3.4rem); font-weight: 300; margin: 0 0 .4em; }
h2 { font-size: 1.75rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.5em 0 .4em; }
p, ul, ol, dl { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: var(--ink); padding: .5rem 1rem; z-index: 30; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header: the yellow bar */
.site-header { position: sticky; top: var(--dxc-bar-height, 0); z-index: 20; background: var(--sun); box-shadow: 0 1px 6px rgb(0 0 0 / .25); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding: .6rem 1.5rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 4rem; width: auto; }
.menu { flex: 1; display: flex; justify-content: flex-end; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.menu li { position: relative; }
.menu a, .menu span { display: block; padding: .45rem 0; font: 400 1rem var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--coal); text-decoration: none; border-bottom: 2px solid transparent; }
.menu a:hover, .menu .active > a, .menu .active > span { border-bottom-color: var(--coal); color: var(--ink); }
.menu li ul { display: none; position: absolute; right: -1rem; min-width: 14rem; background: var(--sun); padding: .4rem 1rem; z-index: 5; box-shadow: 0 6px 12px rgb(0 0 0 / .2); }
.menu li ul a { border: 0; text-transform: none; letter-spacing: 0; }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.tools { display: flex; align-items: center; gap: 1rem; }
.languages { display: flex; gap: .2rem; }
.languages a { font: 400 1rem var(--display); letter-spacing: .04em; padding: .3rem .6rem; color: var(--coal); text-decoration: none; border: 1px solid var(--coal); border-radius: 3px; }
.languages a:hover { background: var(--coal); color: var(--sun); }

/* Search */
.dxc-search-box, .dxc-search-form { display: flex; }
.dxc-search-box input, .dxc-search-form input { font: inherit; padding: .45rem .75rem; border: 1px solid var(--coal); border-right: 0; background: #fff; color: var(--ink); min-width: 0; border-radius: 3px 0 0 3px; }
.dxc-search-box input { width: 10rem; font-size: .9rem; }
.button, .dxc-search-box button, .dxc-search-form button, .dxc-form button {
	font: 400 1rem var(--display); letter-spacing: .03em; padding: .55rem 1.2rem; border: 0; border-radius: 30px; background: var(--coal); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.dxc-search-box button, .dxc-search-form button { border-radius: 0 3px 3px 0; padding-block: .45rem; }
.button:hover, .dxc-search-box button:hover, .dxc-search-form button:hover, .dxc-form button:hover { background: var(--ink); color: var(--sun); }
.dxc-search-form { flex-wrap: wrap; margin: 0 0 2rem; max-width: 40rem; }
.dxc-search-form label { flex-basis: 100%; font: 400 1.1rem var(--display); margin-bottom: .35rem; }
.dxc-search-form input { flex: 1; font-size: 1.1rem; padding: .7rem .9rem; border-color: #bbb; }
.dxc-search-count { color: var(--slate); font-size: .95rem; }
.dxc-search-results { list-style: none; padding: 0; max-width: 46rem; }
.dxc-search-results li { padding: 1.1rem 0; border-bottom: 1px solid var(--grout); }
.dxc-search-results a { font: 400 1.25rem var(--display); text-decoration: none; }
.dxc-search-results p { margin: .3rem 0 0; color: var(--slate); }
mark { background: var(--glaze); color: inherit; padding: 0 .1em; }
.dxc-search-pages { display: flex; gap: 1.5rem; align-items: center; margin-top: 2rem; }

/* Dark photo sections: the home hero, page heads and messages */
main { flex: 1; width: 100%; }
.hero, .page-head { color: var(--on-dark); background: var(--night) url(../img/hero.jpg) center / cover no-repeat; }
.page-head { background-image: url(../img/band.jpg); padding: 4.5rem 0 3rem; }
.page-head-slim { padding: 1.5rem 0 .5rem; }
.hero h1, .hero h2, .hero h3, .page-head h1 { color: #fff; }
.hero a:not(.button), .page-head a { color: var(--sun); }
.hero a:not(.button):hover, .page-head a:hover { color: #fff; }
.page-head h1 { margin: 0; max-width: 24em; }
.hero { padding: clamp(4rem, 10vh, 8rem) 0 5rem; }
.hero-text { text-align: center; max-width: 52rem; margin: 0 auto 3.5rem; }
.hero .hero-text h1 { font-size: clamp(2.6rem, 6vw + 1rem, 5.5rem); font-weight: 300; letter-spacing: .02em; line-height: 1.05; margin-bottom: .3em; }
.hero-text .dxc-html { font-size: 1.25rem; color: #ddd; }
.hero-message { min-height: 60vh; display: grid; align-items: center; }
.eyebrow { font: 300 4rem/1 var(--display); color: var(--sun); margin: 0 0 .5rem; }
.hero .button, .page-head .button { background: var(--sun); color: var(--coal); }
.hero .button:hover, .page-head .button:hover { background: #fff; color: var(--ink); }

/* Home widgets on the dark hero */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.grid > * { flex: 1 1 18rem; max-width: 28rem; }
.grid > .highlight, .grid > .dxc-list { flex-basis: 100%; max-width: 57.5rem; }
.grid > .card { text-align: center; }
.grid > .dxc-list { max-width: none; margin-top: 2rem; }
.hero .dxc-list-item { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .15); }
.hero .dxc-list-item h3 a { color: #fff; }
.hero .dxc-list-item p, .hero .dxc-links li { color: var(--on-dark); }
.hero time { color: var(--sun); }

/* Cards: editors choose "card" (yellow) or "highlight" (dark, yellow edge) on widgets */
.card { background: var(--sun); color: var(--coal); border-radius: 6px; padding: 1.6rem 2rem; }
.card h2, .card h3, .hero .card h2, .hero .card h3 { color: var(--ink); margin-top: 0; font-weight: 400; }
.card a:not(.button), .hero .card a:not(.button) { color: var(--ink); font-weight: 600; }
.card .button, .hero .card .button { background: var(--coal); color: #fff; }
.card .button:hover, .hero .card .button:hover { background: var(--ink); color: var(--sun); }
.highlight { background: var(--ink); color: #ddd; border-left: 6px solid var(--sun); border-radius: 6px; padding: 1.25rem 1.75rem; }
.highlight h2, .highlight h3 { color: #fff; margin-top: 0; }
.highlight a:not(.button) { color: var(--sun); }
.card > :last-child, .highlight > :last-child, .dxc-html > :last-child { margin-bottom: 0; }

/* Page frame */
.page-body { padding-block: 3rem 5rem; }
.columns { display: grid; gap: 3rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .columns:has(> .sidebar) { grid-template-columns: minmax(0, 1fr) 20rem; } }
.content { max-width: 46rem; }
.content-wide { max-width: none; }
.content > .dxc-widgets > * + * { margin-top: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; color: #aaa; }
.breadcrumb li + li::before { content: "›"; margin: 0 .6rem; color: var(--sun); }

/* Lists and the sidebar */
.dxc-list > h2 { margin-top: 0; }
.dxc-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.grid .dxc-list ul, .content-wide .dxc-list ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.dxc-list li { display: flex; }
.dxc-list-item { position: relative; width: 100%; padding: 1.5rem 1.6rem 1.3rem; background: #fff; border: 1px solid var(--grout); border-top: 4px solid var(--sun); border-radius: 6px; }
.dxc-list-item:hover { border-color: var(--sun); }
.dxc-list-item h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.dxc-list-item h3 a { color: var(--ink); text-decoration: none; }
.dxc-list-item h3 a::after { content: ""; position: absolute; inset: 0; }
.dxc-list-item p { margin: .6rem 0 0; color: var(--slate); font-size: 1rem; line-height: 1.6; }
.dxc-list-empty { color: var(--slate); }
time { display: block; font: 400 .85rem var(--display); letter-spacing: .03em; color: var(--link); text-transform: uppercase; }
.sidebar { display: grid; gap: 1.5rem; align-content: start; font-size: 1rem; }
.sidebar > :not(.card) { padding: 1.5rem; background: #f6f6f6; border-radius: 6px; }
.sidebar h2, .sidebar h3 { margin-top: 0; font-size: 1.25rem; }
.sidebar .dxc-list-item { padding: 0; border: 0; background: none; }

/* Content */
.dxc-html .lead, .dxc-item .dxc-summary { font-size: 1.3rem; line-height: 1.55; color: var(--slate); }
.dxc-html .note { border-left: 6px solid var(--sun); padding: .9rem 1.25rem; background: var(--glaze); border-radius: 0 6px 6px 0; }
.dxc-html .button { color: #fff; }
.dxc-html blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 4px solid var(--sun); font-size: 1.2rem; }
.dxc-item h1 { margin-top: 0; }
.dxc-item time { margin-bottom: 1rem; }
.dxc-attributes { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; padding: 1.25rem 0; border-block: 1px solid var(--grout); }
.dxc-attributes dt { font-weight: 600; }
.dxc-attributes dd { margin: 0; }
.dxc-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; font-size: .85rem; }
.dxc-tags li { padding: .2rem .7rem; background: var(--glaze); color: var(--ink); border-radius: 30px; }
.dxc-links ul { list-style: none; padding: 0; margin: 0; }
.dxc-links li { padding: .4rem 0; border-bottom: 1px solid var(--grout); }
.dxc-image { margin: 2rem 0; }
.dxc-image img { display: block; border-radius: 6px; }
.dxc-image figcaption { margin-top: .5rem; font-size: .9rem; color: var(--slate); }

/* Responses and forms */
.dxc-responses { margin-top: 3.5rem; }
.dxc-responses ol { list-style: none; padding: 0; display: grid; gap: 1rem; }
.dxc-response { padding: 1rem 1.25rem; background: var(--glaze); border-left: 4px solid var(--sun); }
.dxc-response header { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.dxc-response-text { white-space: pre-wrap; margin: .5rem 0 0; }
.dxc-form { margin-top: 3.5rem; padding: 2rem; background: var(--sun); color: var(--coal); border-radius: 6px; }
.dxc-form h2 { margin-top: 0; color: var(--ink); }
.dxc-form form { display: grid; gap: 1.1rem; max-width: 36rem; }
.dxc-field { display: grid; gap: .3rem; }
.dxc-field label, .dxc-field legend { font-weight: 600; font-size: .95rem; }
.dxc-field input:not([type=checkbox]):not([type=radio]), .dxc-field select, .dxc-field textarea { font: inherit; font-size: 1rem; padding: .65rem .8rem; border: 1px solid var(--coal); border-radius: 3px; background: #fff; color: var(--ink); }
.dxc-field input:focus, .dxc-field select:focus, .dxc-field textarea:focus { outline: 3px solid var(--coal); outline-offset: 0; }
.dxc-field-help { font-size: .85rem; }
.dxc-field-error, .dxc-form-error { color: #8a1c12; font-weight: 600; font-size: .9rem; }
.dxc-form-sent { padding: 1rem 1.25rem; background: #fff; border-left: 4px solid var(--coal); }
.dxc-choices { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.dxc-field fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dxc-field legend { padding: 0; margin-bottom: .3rem; }
.dxc-form button { justify-self: start; padding: .75rem 2rem; }
.dxc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Account link (header); the account pages load css/account.css */
.account-link { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.account-link a { color: var(--coal); font-weight: 600; text-decoration: none; }
.account-link a:hover { text-decoration: underline; }
.account-link form { margin: 0; }
.account-link .link { font: inherit; padding: 0; border: 0; background: none; color: var(--coal); cursor: pointer; text-decoration: underline; }

/* Footer: yellow */
.site-footer { background: var(--sun); color: var(--coal); text-align: center; }
.site-footer .wrap { padding-block: 2.5rem; }
.site-footer p { margin: 0; }
.footer-title { font: 400 1.25rem var(--display); letter-spacing: .02em; }
.footer-tag { font-size: 1rem; margin-top: .25rem !important; }

@media (max-width: 56rem) {
	.bar { gap: .5rem 1rem; }
	.brand { flex: 1; }
	.brand img { height: 3.25rem; }
	.menu { order: 3; flex-basis: 100%; justify-content: flex-start; }
	.menu > ul { gap: .1rem 1.25rem; }
	.tools .dxc-search-box { display: none; }
	.page-head { padding: 3rem 0 2rem; }
	.dxc-form, .card { padding: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) { a, .button, .dxc-list-item, .menu a { transition: color .15s, background-color .15s, border-color .15s; } }

/* Effects (js/site.js adds .js, .scrolled, .far, .menu-open, .reveal/.in); without JavaScript nothing is hidden */
.brand img { transition: height .25s ease; }
.bar { transition: padding .25s ease; }
.scrolled .bar { padding-block: .3rem; }
.scrolled .brand img { height: 3rem; }
.menu-toggle { display: none; }
.to-top { position: fixed; right: calc(1.25rem + var(--dxc-panel-width, 0px)); bottom: 1.25rem; z-index: 30; display: grid; place-items: center;
	width: 3rem; height: 3rem; border-radius: 50%; background: var(--coal); color: var(--sun); font-size: 1.4rem; text-decoration: none;
	box-shadow: 0 2px 8px rgb(0 0 0 / .3); opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .3s, transform .3s, visibility .3s; }
.far .to-top { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	.reveal { opacity: 0; transform: translateY(2.5rem); }
	.reveal.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
}
/* the photo stays put while the page moves over it (desktop; iOS ignores fixed backgrounds) */
@media (min-width: 62rem) and (prefers-reduced-motion: no-preference) { .hero, .page-head { background-attachment: fixed; } }
@media (max-width: 56rem) {
	.tools { order: 1; }
	.js .menu-toggle { order: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--coal); border-radius: 4px; background: none; cursor: pointer; }
	.menu-toggle > span[aria-hidden] { position: relative; width: 1.4rem; height: 2px; background: var(--coal); }
	.menu-toggle > span[aria-hidden]::before, .menu-toggle > span[aria-hidden]::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--coal); transition: transform .2s; }
	.menu-toggle > span[aria-hidden]::before { top: -7px; }
	.menu-toggle > span[aria-hidden]::after { top: 7px; }
	.menu-open .menu-toggle > span[aria-hidden] { background: transparent; }
	.menu-open .menu-toggle > span[aria-hidden]::before { transform: translateY(7px) rotate(45deg); }
	.menu-open .menu-toggle > span[aria-hidden]::after { transform: translateY(-7px) rotate(-45deg); }
	.js .menu { display: none; }
	.js.menu-open .menu { display: flex; }
	.js .menu > ul { flex-direction: column; width: 100%; padding-bottom: .5rem; }
}
