/* POP Vinyl FAQ, site styles. One stylesheet for every page. */
:root {
  --blue: #1953aa; --blue-deep: #0d2f66; --yellow: #ffe500; --red: #e8171b;
  --panel: rgba(12,18,30,.88); --text: #e8edf6; --mist: #a9b8d2; --link: #8fc1ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #000 url("../images/background.jpg") center top / auto no-repeat fixed;   /* same Batman background as the old site */
}
/* Never distort an image: width and height always follow the image's own proportions. */
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--yellow); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
header.site {
  background: linear-gradient(180deg, rgba(13,47,102,.96), rgba(25,83,170,.92));
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
}
.brand { display: flex; align-items: center; gap: 22px; padding: 18px 0 14px; text-decoration: none; color: inherit; }
.wordmark-img { margin: 0; line-height: 0; }
.wordmark-img img { display: block; width: min(460px, 100%); height: auto; aspect-ratio: 610 / 152; }
.tagline { margin: 10px 0 0; color: #cfe0ff; font-size: 18px; letter-spacing: .3px; }
nav.main { background: rgba(5,10,20,.55); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
nav.main a { display: block; padding: 12px 18px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .4px; border-bottom: 3px solid transparent; }
nav.main a:hover, nav.main a[aria-current] { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ---------- page content ---------- */
main { padding: 36px 0 60px; }
.panel { background: var(--panel); border-radius: 16px; padding: 26px 30px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.08); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
h1, h2, h3 { line-height: 1.25; }
.page-title { margin: 0 0 6px; font-size: 32px; color: var(--yellow); }
.meta { margin: 0 0 18px; color: var(--mist); font-size: 15px; }
.lead { font-size: 19px; }
.content h2 { color: var(--yellow); font-size: 24px; }
.content h3, .content h4 { color: #fff; }
.content p { margin: 0 0 1em; }
.note { border-left: 4px solid var(--red); background: rgba(232,23,27,.12); padding: 10px 16px; border-radius: 6px; }

/* images inside articles: shown at their own proportions, centred unless floated */
.content img { border-radius: 8px; }
.content .aligncenter, .content figure { display: block; margin: 18px auto; text-align: center; }
.content figure { max-width: 100%; }
.content figure img { display: block; margin-inline: auto; }
.content figcaption { color: var(--mist); font-size: 14px; margin-top: 6px; }
.content .alignleft { float: left; margin: 4px 20px 12px 0; }
.content .alignright { float: right; margin: 4px 0 12px 20px; }
.content::after, .q::after { content: ""; display: block; clear: both; }
a.zoom { display: inline-block; cursor: zoom-in; text-decoration: none; vertical-align: top; }

/* ---------- FAQ homepage ---------- */
.intro { text-align: center; }
.intro .hero-pop { float: none; margin: 0 auto 10px; display: block; }
.intro h2 { margin: 0 0 8px; font-size: 30px; color: var(--yellow); }
.intro p { margin: 0 auto 12px; max-width: 760px; }
.search { margin: 18px auto 6px; max-width: 520px; }
.search input { width: 100%; font: inherit; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(120,160,230,.5); background: rgba(255,255,255,.95); color: #111; }
.search input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.no-match { display: none; color: var(--mist); text-align: center; }
.tap-hint { color: var(--mist); font-size: 15px; margin: 6px auto 0 !important; }
.q { background: var(--panel); border-radius: 16px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.08); border-left: 6px solid var(--yellow); scroll-margin-top: 16px; }
.q[hidden] { display: none; }
/* each question is a <details>: the question shows, the answer opens below it */
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 24px 16px 22px; border-radius: 10px; }
.q summary::-webkit-details-marker { display: none; }
.q summary::before { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--blue-deep); font-weight: 800; font-size: 20px; line-height: 28px; text-align: center; transition: transform .2s; }
.q details[open] > summary::before { content: "\2212"; }
.q summary:hover h2 { color: var(--yellow); }
.q summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.q h2 { margin: 0; font-size: 21px; color: #fff; }
.q details[open] > summary h2 { color: var(--yellow); }
.q .content { padding: 4px 28px 0 64px; }
.q p { margin: 0 0 1em; }
.q .top { display: block; text-align: right; font-size: 14px; margin: 0; padding: 0 28px 16px; }

/* ---------- listings (tutorials, downloads) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--panel); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--yellow); }
.card .thumb { background: #fff; display: flex; align-items: center; justify-content: center; height: 220px; padding: 10px; }
.card .thumb img { max-height: 100%; width: auto; max-width: 100%; height: auto; object-fit: contain; }  /* fits inside the box, never stretched */
.card .body { padding: 18px 22px 22px; }
.card h2 { margin: 0 0 6px; font-size: 21px; color: var(--yellow); }
.card p { margin: 0; color: var(--mist); font-size: 15px; }

/* download buttons */
.download { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin: 26px 0; }  /* label always sits above its button */
.download .label { display: block; font-weight: 700; }
.dl-btn { display: inline-flex; max-width: 100%; overflow-wrap: anywhere; flex-direction: column; align-items: center; gap: 2px; background: var(--yellow); color: var(--blue-deep); padding: 12px 26px; border-radius: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #b9a400; }
.dl-btn:hover { color: var(--blue-deep); filter: brightness(1.06); }
.dl-btn small { font-weight: 600; font-size: 13px; opacity: .8; }

/* ---------- feedback form ---------- */
.contact-form { display: grid; gap: 18px; margin-top: 8px; max-width: 640px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1px solid #b8c4d8; border-radius: 8px; background: #fff; color: #111; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: 11px 26px; border-radius: 10px; background: var(--yellow); color: var(--blue-deep); }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap, hidden from people */
.form-status { padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: #e3f6e6; color: #1d6b2c; }
.form-status.bad { background: #fde8e4; color: #a3321f; }

/* ---------- footer, back to top, lightbox ---------- */
footer.site { text-align: center; color: var(--mist); padding: 26px 16px 40px; font-size: 14px; background: rgba(0,0,0,.6); }
footer.site a { color: var(--mist); }
footer.site p { margin: 4px 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--blue-deep); font-size: 22px; font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }  /* scaled to fit, proportions kept */
.lightbox[hidden] { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; background-attachment: scroll; background-size: 150% auto; }
  .brand { flex-direction: column; text-align: center; gap: 12px; padding-top: 16px; }
  .wordmark-img img { width: min(330px, 86vw); margin-inline: auto; }
  .tagline { font-size: 15px; }
  nav.main ul { justify-content: center; }
  nav.main a { padding: 10px 9px; font-size: 14px; }
  .panel { padding: 20px 18px; }
  .q summary { padding: 14px 16px; gap: 12px; }
  .q h2 { font-size: 19px; }
  .q .content { padding: 2px 18px 0; }
  .q .top { padding: 0 18px 14px; }
  .page-title { font-size: 26px; }
  .content .alignleft, .content .alignright { float: none; display: block; margin: 14px auto; }
}
.hero-icon { display: block; margin: 0 auto; width: 160px; max-width: 100%; height: auto; border-radius: 20%; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.nowrap { white-space: nowrap; }
.intro p.one-line { max-width: none; }
