/* @override 
   https://quebecquiltregistry.org/demo/assets/style.css
   https://borduas.concordia.ca/demo/assets/style.css
	https://borduas.concordia.ca/demo-cwahi/assets/style.css */

/* ===========================
   ROOT / TOKENS
   =========================== */
:root {
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  --maxw: 1200px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  --radius-1: 4px;
  --radius-2: 6px;

  --border: 1px solid #e0e0e0;
  --muted: #f6f6f6;
  --muted-2: #f9f9f9;

  --ink: #000;
  --ink-2: #222;
  --ink-3: #333;

  --focus: 2px solid #0a66ff;
}

/* ===========================
   FONT
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;700&display=swap');
html, body { font-family: var(--font-sans); }

/* ===========================
   RESET / BASICS
   =========================== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: var(--focus); outline-offset: 2px; }
main, footer { width: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* Screen-reader only */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===========================
   EMBED + LOADER HELPERS
   =========================== */
.embed-wrap { position: relative; min-height: 400px; }
.embed-wrap iframe {
  display: block; width: 100%;
  height: 70vh;               /* responsive */
  min-height: 533px;          /* baseline */
  max-height: 1000px;         /* safety cap */
  background: transparent;
  border: 1px solid #ccc;     /* visible frame */
}
.loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255,255,255,0.85);
  transition: opacity .2s ease;
}
.loader.is-hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 38px; height: 38px; border: 3px solid var(--ink); border-top-color: transparent;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ===========================
   TOP BAR (logo on top, nav under)
   =========================== */
.top-bar {
  background: #fff; color: var(--ink);
  padding: var(--space-3) 0; font-size: 15px;
  margin-top: 20px;
}
.top-bar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
}
.top-logo img { height: 80px; width: auto; }

/* Primary nav under logo */
.primary-nav {
  display: flex; gap: 30px; font-size: 20px; margin-top: var(--space-5);
}
.primary-nav a { color: inherit; font-weight: bold;
}
.primary-nav a:hover { text-decoration: underline; }
.primary-nav .current { text-decoration: underline; text-underline-offset: 2px; }

/* Utility area (supporter logo) */
.utility-nav {
  position: absolute;
  top: 0;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* aligns .utility-inner box to the right */
}

.utility-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligns children (image + lang) to the left */
  gap: var(--space-2);
}

/* =======================================
   LANGUAGE SELECTOR — MATCH TAB BUTTONS
   ======================================= */
.utility-nav .language-nav a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #000;
  background: #f0f0f0;
  border: 1px solid #d6d6d6;
  border-radius: var(--radius-1);
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
  margin-top: 5px;
}

/* Hover */
.utility-nav .language-nav a:hover {
  background: #e4e4e4;
  text-decoration: none;
}

/* Active or current language */
.utility-nav .language-nav a.current,
.utility-nav .language-nav a[aria-current="true"] {
  background: #000;
  color: #fff;
  border-color: #000;
  font-weight: 700;
}

.supporter-logo {
  height: 30px;
  width: auto;
  opacity: 0.9;
  margin-top: var(--space-2);
}
.supporter-logo:hover {
  opacity: 1;
}
/* ===========================
   MAIN CONTENT
   =========================== */
main {
  flex: 1; max-width: var(--maxw);
  margin: 0 auto; padding: 40px var(--space-5);
}
.page-section, .intro-section {
  display: flex; flex-direction: column; gap: 40px; font-size: 20px;
}
.page-text h1 {
  text-transform: uppercase; font-weight: 700; font-size: 30px; margin: 0 0 var(--space-4);
}
.intro-text, .page-text { color: var(--ink); }
.intro-text h2, .page-text h2 {
  font-size: 24px; margin: 0 0 var(--space-4); font-weight: 700;
}
.intro-text p, .page-text p { margin: 0 0 var(--space-4); line-height: 1.55; }
.intro-image img { border-radius: 8px; }

/* Intro / welcome cards (shared) */
.artist-db-intro,
.review-db-intro {
  background: var(--muted-2);
  border: var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-6) var(--space-7);
  margin-bottom: 30px;
}
/* Normalize inner margins to avoid perceived padding drift */
#welcome > :first-child { margin-top: 0; }
#welcome > :last-child  { margin-bottom: 0; }
.artist-db-intro h1,
.review-db-intro h1 {
  margin: 0 0 var(--space-3);
  font-size: 24px; font-weight: 700; color: var(--ink-2); text-transform: none;
}
.artist-db-intro p,
.review-db-intro p {
  margin: 0 0 var(--space-4);
  line-height: 1.6; font-size: 17px; color: var(--ink-3);
}
.artist-db-intro .learn-more,
.review-db-intro .learn-more {
  display: inline-block; font-weight: 600; color: var(--ink);
  background: #f0f0f0; padding: 6px 12px; border-radius: var(--radius-1);
  text-decoration: none; transition: background .2s ease;
}
.artist-db-intro .learn-more:hover,
.review-db-intro .learn-more:hover { background: #e0e0e0; }

/* ===========================
   SUBTABS (tabs + help)
   =========================== */
   
   
   
.subtabs [role="tablist"] {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-bottom: 1rem; align-items: center;
}
.subtabs [role="tablist"] a[role="tab"] {
  appearance: none;
  /*background: var(--muted);*/
  /*border: 1px solid #ccc; */
  padding-top: 6px;
	padding-bottom: 6px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-size: 19px;
  border-radius: var(--radius-1);
  transition: background .2s ease, border-color .2s ease;
  line-height: 1.2;
  padding-right: 15px;
}
.subtabs [role="tablist"] a[role="tab"]:hover {
	text-decoration: underline;
}
.subtabs [role="tablist"] a[role="tab"]:focus-visible { outline: var(--focus); }
.subtabs [role="tablist"] a[role="tab"][aria-selected="true"] {
  font-weight: 700; background: #fff; border-color: #bbb; text-decoration: none;
}
#help {
	padding-top: 20px;
}

.tab-help { margin-left: auto; }
.subtabs [role="tabpanel"][hidden] { display: none; }

/* Secondary search row: label + buttons */
.search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;   /* vertical align items */
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.search-label {
  font-size: 17px;
  font-weight: 200;
  line-height: 1.2;
  background: none;
  border: none;
  padding: 0;
  margin-top: -14px;   /* nudges baseline to align with buttons */
}

.top-logo {
	font-weight: bold;
	font-size: 28px;
	color: #000000;
}

.logo-image img { width: 450px; margin-left: auto; margin-right: auto;}


/* ===========================
   FOOTER
   =========================== */
.main-footer {
  background: #fff; color: var(--ink);
  padding: 40px var(--space-5); text-align: center;
}
.main-footer .tagline { font-size: 14px; opacity: .8; margin-top: var(--space-2); }
.main-footer .credits {
  margin-left: auto; margin-right: auto;
  width: 600px; max-width: 100%;
}
.main-footer .credits img {
  width: 600px; max-width: 80%;
  padding: 10px 0;
}


/* ===========================
   RESPONSIVE
   =========================== */
@media (min-width: 768px) {
  .intro-section, .page-section { flex-direction: row; }
  .page-text { width: 100%; }
  .intro-text { width: 65%; }
  .intro-image { width: 35%; }
}
@media (max-width: 900px) {
  .top-logo img { height: 100px; }
  .primary-nav { font-size: 18px; gap: 20px; }
  .supporter-logo { height: 26px; }
  .top-logo {
	font-weight: bold;
	font-size: 3vw;
}
  }
@media (max-width: 600px) {
  .top-bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .utility-nav { position: static; align-items: flex-start; margin-bottom: var(--space-2); }
  .primary-nav { flex-wrap: wrap; font-size: 16px; gap: var(--space-3); }
  .top-logo img { height: 80px; }
  .top-logo {
	font-weight: bold;
	font-size: 20px;
}
  
}

/* =======================================
   MATCH SECONDARY TABS TO FRONT PAGE BUTTONS
   ======================================= */
.subtabs [role="tablist"] a[role="tab"] {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #000;
  background: #f0f0f0;
  border: 1px solid #d6d6d6;
  border-radius: var(--radius-1);
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
}

.subtabs [role="tablist"] a[role="tab"]:hover {
  background: #e4e4e4;
  text-decoration: none;
}

.subtabs [role="tablist"] a[role="tab"][aria-selected="true"] {
  background: #000;
  color: #fff;
  border-color: #000;
  font-weight: 700;
}

.subtabs [role="tablist"] a[role="tab"]:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}