/* =====================================================================
   Teal Creatives – Minimal Gallery CSS
   Inspired by fine-art gallery sites (e.g., The Scottish Gallery):
   refined, calm, image-first, with generous spacing and clarity.
   ---------------------------------------------------------------------
   How to use:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;700&family=Raleway:wght@500;600;700&display=swap" rel="stylesheet">
   <link rel="stylesheet" href="/css/artzcollector.css">
   ===================================================================== */

:root {
  /* Color system */
  --bg: #f8f8f8;
  --bg-hero: #f4f4f4;
  --panel: #ffffff;
  --ink: #222222;
  --ink-muted: #555555;
  --ink-subtle: #7a7a7a;
  --line: #e5e5e5;
  --accent: #124c5f;   /* muted teal accent */
  --accent-ink: #0a2f3a;
  --focus: #0a7ea4;
  --teal: #0f766e;
  --teal-soft: rgba(20, 184, 166, 0.06);

  /* Sizing scale (rem) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Typography */
  --font-head: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;

  --fs-xxs: 0.75rem;   /* 12px */
  --fs-xs: 0.8125rem;  /* 13px */
  --fs-sm: 0.9375rem;  /* 15px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.375rem;   /* 22px */
  --fs-xl: 1.75rem;    /* 28px */
  --fs-2xl: 2.25rem;   /* 36px */
  --fs-3xl: 3.25rem;   /* ~52px desktop hero */
  --lh-tight: 1.15;
  --lh-normal: 1.55;

  /* Layout */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-subtle: 0 4px 12px rgba(0,0,0,0.04);

  /* Speed */
  --speed: 180ms;
}

/* ===========================
   Exhibitions Page Enhancements
   =========================== */

/* Section spacing & hierarchy */
.exhibitions-roundup h3 {
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Subtle accent lines before headings */
.exhibitions-roundup h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 16px;
  margin-right: 8px;
  background-color: var(--accent, #0f766e);
  border-radius: 2px;
  vertical-align: middle;
}

/* Private Views table — soft teal tint */
#private-views + table thead {
  background: rgba(15, 118, 110, 0.05);
  border-bottom: 2px solid rgba(15, 118, 110, 0.15);
}
#private-views + table tbody tr:hover {
  background: rgba(15, 118, 110, 0.03);
}

/* Exhibitions table — neutral tone */
#exhibitions + table thead {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 2px solid var(--border, #e6e6e6);
}
#exhibitions + table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Closing Soon table — soft amber highlight */
#closing-soon + table thead {
  background: rgba(230, 180, 40, 0.05);
  border-bottom: 2px solid rgba(230, 180, 40, 0.2);
}
#closing-soon + table tbody tr:hover {
  background: rgba(230, 180, 40, 0.03);
}

/* Edinburgh Picks — gentle lilac tone */
#edinburgh + table thead {
  background: rgba(140, 100, 230, 0.05);
  border-bottom: 2px solid rgba(140, 100, 230, 0.15);
}
#edinburgh + table tbody tr:hover {
  background: rgba(140, 100, 230, 0.03);
}

/* Table consistency */
.exhibitions-roundup table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
}

.exhibitions-roundup thead th {
  text-align: left;
  font-weight: 600;
  padding: 10px 8px;
  color: var(--text, #111);
  font-size: 0.95rem;
}

.exhibitions-roundup tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border, #e6e6e6);
  vertical-align: top;
  font-size: 0.95rem;
}

/* Subtle accent for 'More info' links */
.exhibitions-roundup a {
  color: var(--accent, #0f766e);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.exhibitions-roundup a:hover {
  border-bottom-color: var(--accent, #0f766e);
}

/* Responsive refinements */
@media (max-width: 720px) {
  .exhibitions-roundup table,
  .exhibitions-roundup tbody,
  .exhibitions-roundup tr,
  .exhibitions-roundup td {
    display: block;
    width: 100%;
  }
  .exhibitions-roundup thead { display: none; }
  .exhibitions-roundup tbody tr {
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
  }
  .exhibitions-roundup tbody td {
    border: none;
    padding: 6px 0;
  }
  .exhibitions-roundup tbody td::before {
    content: attr(data-th) ": ";
    font-weight: 600;
    color: var(--muted, #666);
  }
}

/* ===========================
   Global reset-ish
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: var(--space-6);
}

.section--tight {
  padding-block: var(--space-4);
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-head);
  line-height: var(--lh-tight);
  letter-spacing: .3px;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, var(--fs-3xl));
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw + .75rem, var(--fs-2xl));
  font-weight: 600;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
}

.lead {
  font-size: var(--fs-md);
  color: var(--ink-muted);
  max-width: 70ch;
}

/* ===========================
   Header / Nav
   =========================== */

/* Header highlight block */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--teal-soft);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.site-header .nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.1;
  text-decoration: none;
}

.nav__brand:hover,
.nav__brand:focus-visible {
  text-decoration: none;
}

.nav__brand span {
  display: block;
}

.nav__brand span:nth-child(1) {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw + 0.9rem, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav__brand span:nth-child(2) {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav__brand span:nth-child(3) {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.site-header .nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
}

.site-header .nav__links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;

  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav__links a:hover {
  color: var(--accent);
}

.site-header .nav__links a[aria-current="page"] {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

@media (max-width: 640px) {
  .site-header .nav {
    gap: 0.9rem;
    padding-top: 1.1rem;
    padding-bottom: 0.9rem;
  }

  .nav__brand {
    margin-bottom: 0.15rem;
  }

  .nav__brand span:nth-child(1) {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .nav__brand span:nth-child(2) {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .nav__brand span:nth-child(3) {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .site-header .nav__links {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header .nav__links::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav__links a {
    flex: 0 0 auto;
    font-size: 0.98rem;
    line-height: 1.25;
    white-space: nowrap;
  }
}


/* ===========================
   Hero
   =========================== */

.hero {
  background: var(--bg-hero);
  border-bottom: 1px solid var(--line);
}

/*.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-block: var(--space-16);
}*/

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero__kicker {
  font-size: var(--fs-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: var(--space-3);
}

.hero__title {
  margin-bottom: var(--space-4);
}

.hero__sub {
  font-size: var(--fs-md);
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Stack hero image above text on all screen sizes */
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-block: var(--space-16);
} 

/* Make image full width and add spacing */
.hero__image {
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Ensure text block stretches full width too */
.hero__content {
  width: 100%;
}

/* Hero image: no rounded corners */
.hero__image,
.hero__image img {
  border-radius: 0;
}

/* Pull hero up under the site header */
.hero {
  margin-top: 0;
  padding-top: 0;
}

.site-header {
  margin-bottom: 0;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
  will-change: transform;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-subtle);
}

.btn--primary:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===========================
   Subscription / Newsletter Boxes
   =========================== */

.subscribe-box {
  background: rgba(20, 184, 166, 0.06); /* your light teal highlight */
  border-left: 3px solid #14b8a6;
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0.75rem;
}

.subscribe-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-md);
  margin: 0 0 0.5rem;
}

.subscribe-text {
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.subscribe-input {
  flex: 1 1 220px;
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  border-radius: 999px;
  border: 1px solid #d0d4d8;
}

.subscribe-button {
  padding: 0.55rem 1.3rem;
  font-size: var(--fs-sm);
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #14b8a6;
  color: #ffffff;
}

.subscribe-button:hover,
.subscribe-button:focus {
  opacity: 0.9;
}

.subscribe-legal {
  font-size: var(--fs-xs);
  margin: 0;
  opacity: 0.85;
}

.subscribe-success {
  margin: 0.75rem 0 0;
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* Optional: helper for hidden labels, if you keep them */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===========================
   Featured Works grid
   =========================== */

.grid {
  --min: 260px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  gap: var(--space-8);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card__media {
  aspect-ratio: 4 / 3;
  background: #ddd;
  overflow: hidden;
}

.card__body {
  padding: var(--space-5);
}

/* Short summary under each card title */

.card__summary {
  margin: 0.5rem 0 0.75rem;
  font-size: var(--fs-sm, 0.95rem);
  line-height: 1.6;
  color: var(--ink-muted, #555);
}

.card__more {
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.25rem;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.card__more:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ink-subtle);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .24rem .7rem;
  font-size: var(--fs-sm);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-muted);
}

.badge--available {
  border-color: #cfe8d8;
  background: #f2fbf6;
  color: #2d6a4f;
}

.badge--sold {
  border-color: #f2dede;
  background: #fff6f6;
  color: #a33a3a;
}

/* ===========================
   Exhibition feature
   =========================== */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow-subtle);
}

.feature__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.feature__body p {
  color: var(--ink-muted);
}

/* ===========================
   Testimonials
   =========================== */

.quotes {
  display: grid;
  gap: var(--space-6);
}

.quote {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-subtle);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--ink);
}

.trust {
  margin-top: var(--space-6);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}

/* ===========================
   Newsletter / Forms
   =========================== */

.form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  max-width: 560px;
}

.input,
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--focus);
}

/* Stack layout for contact form */
.form--stack {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
  gap: var(--space-5);
}

.field { display: grid; gap: .5rem; }
.checkbox { display: inline-flex; align-items: center; gap: .6rem; }

/* ===========================
   Site footer (unified)
   =========================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--teal-soft);
  padding-block: var(--space-8);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  margin-top: 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
}

.footer__nav a {
  color: var(--ink-muted);
}

.footer__nav a:hover {
  color: var(--accent);
}

/* Tidy footer spacing instead of using <br> */
.footer__nav p {
  margin: 0 0 0.45rem;
}

.footer__grid > div:last-child p {
  margin: 0 0 0.45rem;
}

/* ===========================
   Utilities
   =========================== */

.center { text-align: center; }
.muted { color: var(--ink-muted); }

.kicker {
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--space-8);
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: var(--focus);
  color: #fff;
  border-radius: 8px;
  z-index: 1000;
}

/* ===========================
   Glasgow Art Exhibitions Page
   =========================== */

/* ===========================
      Glasgow Art Exhibitions Page
      =========================== */
   
   /* Layout container – page width + spacing */
   body.page--glasgow-exhibitions main.container {
     max-width: 960px;
     margin: 0 auto;
     padding: 0 var(--space-4) 24px; /* top 0, sides standard, bottom 24px */
   }


/* Page header */
.page-header h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.page-header .lede {
  margin: 0;
  color: var(--muted, #666);
}

/* Meta intro box */
.meta-intro {
  background: var(--bg-muted, #fafafa);
  border: 1px solid var(--border, #e6e6e6);
  padding: 12px 14px;
  border-radius: 8px;
  margin: 8px 0 20px;
  font-size: 0.98rem;
}

/* Sub-nav (sticky) */
nav.sub {
  position: sticky;
  top: 0;
  background: var(--body, #fff);
  border-bottom: 1px solid var(--border, #e6e6e6);
  z-index: 5;
}

nav.sub .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
}

nav.sub a {
  color: var(--muted, #666);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

nav.sub a:hover { color: var(--text, #111); }

.banner {
  display: none;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fffbea;
  color: #5c4400;
  margin: 12px 0 18px;
}

.banner.error {
  background: #fff2f2;
  color: #611a15;
  border-color: #ffd6d6;
}

.loading {
  padding: 12px 0;
  color: var(--muted, #666);
  font-style: italic;
}

.dev {
  display: none;
  font-size: .9rem;
}

.dev pre {
  overflow: auto;
  background: #f6f8fa;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 8px;
}

.archive-meta {
  margin: .25rem 0 1rem;
  color: var(--muted, #666);
  font-size: .95rem;
}

.older-archive summary {
  cursor: pointer;
}

/*.exhibitions-roundup table th:nth-child(7),
.exhibitions-roundup table td[data-th="Tags"] {
  display: none;
} */

/* Section headings */
h2 {
  margin: 24px 0 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

h3 {
  margin: 18px 0 8px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

hr.soft {
  border: 0;
  height: 1px;
  background: var(--border, #e6e6e6);
  margin: 24px 0;
}

/* Lists */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { margin: 10px 0; }

/* Links + icon spacing */
a {
  color: var(--accent, #0f766e);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.links a + span.dot,
.links span.dot + a { margin-left: 8px; }

.links .dot::before {
  content: "·";
  color: var(--muted, #777);
}

.links a { white-space: nowrap; }

/* Exhibitions table */
/* UPDATED: old global table styles removed – handled by .exhibitions-roundup */

/* Pills & small helpers */
.pill {
  display: inline-block;
  border: 1px solid var(--border, #e6e6e6);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.82rem;
  color: var(--muted, #666);
}

/* Footer (page-level for the exhibitions page) */
footer.page {
  margin: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--muted, #666);
}

/* Responsive tweaks for exhibitions page */
/* UPDATED: removed old global mobile table-to-cards behaviour in favour
   of scoped .exhibitions-roundup mobile rules further down. */

/* Optional dark-mode polish */
@media (prefers-color-scheme: dark) {
  .meta-intro {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.12);
  }
  tbody tr:hover { background: rgba(255,255,255,.04); }
  hr.soft { background: rgba(255,255,255,.15); }
}

/* ===========================
   Gallery Styles
   =========================== */
/* Gallery – top intro paragraphs */
.gallery-intro {
  margin: 0 auto 1.5rem;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ===========================
   Hover image lift for gallery items
   =========================== */

/* Simple, Safari-safe hover lift */
   .lift img {
     display: block;
     width: 100%;
     height: auto;
     transform: none;
     transform-origin: center center;
     transition: transform var(--speed) ease;
   }
   
   .lift:hover img {
     transform: scale(1.02);
   }
/* ===========================
   Responsive adjustments
   =========================== */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--space-10);
  }

  .form {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media screen {}

/* ===========================
   Glasgow Art Exhibitions — Polishing (Steps 1–6)
   =========================== */

/* 1) Header alignment & spacing */
.section .container h1 {
  margin: 4px 0 6px;
  line-height: 1.15;
  font-weight: 700;
}

.section .container .lead {
  margin: 0 0 14px;
  line-height: 1.5;
  color: var(--muted, #666);
}

.hr { margin: 18px 0 22px; }

/* 2) Typography tuning */
.exhibitions-roundup h2,
.exhibitions-roundup h3 {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .015em;
}

.exhibitions-roundup h2 {
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 18px 0 8px;
}

.exhibitions-roundup h3 {
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 24px 0 10px;
}

.exhibitions-roundup table thead th {
  font-weight: 600;
  font-size: .95rem;
}

.exhibitions-roundup table tbody td {
  font-size: .95rem;
  line-height: 1.55;
}

/* 3) Column sizing (desktop) */
@media (min-width: 860px) {
  /* Private Views */
  #private-views + table thead th:nth-child(1),
  #private-views + table tbody td:nth-child(1) { width: 26%; }
  #private-views + table thead th:nth-child(2),
  #private-views + table tbody td:nth-child(2) { width: 16%; }
  #private-views + table thead th:nth-child(3),
  #private-views + table tbody td:nth-child(3) { width: 18%; }
  #private-views + table thead th:nth-child(4),
  #private-views + table tbody td:nth-child(4) { width: 18%; }
  #private-views + table thead th:nth-child(5),
  #private-views + table tbody td:nth-child(5) { width: 6%;  text-wrap: nowrap; }
  #private-views + table thead th:nth-child(6),
  #private-views + table tbody td:nth-child(6) { width: 10%; }
  #private-views + table thead th:nth-child(7),
  #private-views + table tbody td:nth-child(7) { width: 6%; }

  /* Exhibitions */
  #exhibitions + table thead th:nth-child(1),
  #exhibitions + table tbody td:nth-child(1) { width: 26%; }
  #exhibitions + table thead th:nth-child(2),
  #exhibitions + table tbody td:nth-child(2) { width: 16%; }
  #exhibitions + table thead th:nth-child(3),
  #exhibitions + table tbody td:nth-child(3) { width: 20%; }
  #exhibitions + table thead th:nth-child(4),
  #exhibitions + table tbody td:nth-child(4) { width: 18%; }
  #exhibitions + table thead th:nth-child(5),
  #exhibitions + table tbody td:nth-child(5) { width: 6%;  text-wrap: nowrap; }
  #exhibitions + table thead th:nth-child(6),
  #exhibitions + table tbody td:nth-child(6) { width: 8%; }
  #exhibitions + table thead th:nth-child(7),
  #exhibitions + table tbody td:nth-child(7) { width: 6%; }
}

/* 4) Accent line under the H2 */
.exhibitions-roundup h2 {
  position: relative;
  padding-bottom: 6px;
}

.exhibitions-roundup h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent, #0f766e);
  opacity: .9;
}

/* 5) Archive <details> polish */
details {
  margin: 16px 0 0;
  border: 1px solid var(--border, #e6e6e6);
  border-radius: 8px;
  background: #fafafa;
}

details[open] { background: #f7f7f7; }

details > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 600;
  list-style: none;
}

details > summary::-webkit-details-marker { display: none; }

details > summary::before {
  content: "▸";
  margin-right: 8px;
  display: inline-block;
  transform: translateY(-1px);
  color: var(--muted, #666);
}

details[open] > summary::before { content: "▾"; }

#archive { padding: 8px 12px 12px; }

/* 6) Footer separator – handled via unified .site-footer now */

/* ===========================
   Mobile Polish (≤ 720px)
   =========================== */

@media (max-width: 720px) {
   .page--glasgow-exhibitions main#main > .container {
     padding: 0 18px 18px;        /* no extra top padding */
   }

  .page-header h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .lead {
    font-size: 1rem;
  }

  /* Meta intro box */
  .meta-intro {
    font-size: 0.96rem;
    padding: 10px 12px;
    border-radius: 8px;
  }

  /* Round-up title + counts */
  .exhibitions-roundup h2 {
    font-size: 1.25rem;
    margin: 14px 0 6px;
    padding-bottom: 6px;
  }

  .exhibitions-roundup > p {
    margin: 8px 0 14px;
    font-size: 0.96rem;
    color: var(--muted, #666);
  }

  /* Headings */
  .exhibitions-roundup h3 {
    font-size: 1.05rem;
    margin: 18px 0 8px;
  }

  /* Turn tables into cards (MOBILE ONLY) */
  .exhibitions-roundup thead {
    display: none;
  }

  .exhibitions-roundup table,
  .exhibitions-roundup tbody,
  .exhibitions-roundup tr,
  .exhibitions-roundup td {
    display: block;
    width: 100%;
  }

  .exhibitions-roundup tbody tr {
    border: 1px solid var(--border, #e6e6e6);
    border-radius: 10px;
    background: #fff;
    margin: 10px 0 14px;
    padding: 10px 12px;
  }

  .exhibitions-roundup tbody td {
    border: 0;
    padding: 6px 0;
    font-size: 0.98rem;
  }

  .exhibitions-roundup tbody td::before {
    content: attr(data-th) ": ";
    font-weight: 600;
    color: var(--muted, #666);
  }

  .exhibitions-roundup tbody td[data-th="Title"] {
    font-weight: 700;
    font-size: 1.02rem;
    margin-top: 2px;
  }

  .exhibitions-roundup tbody td[data-th="Venue"],
  .exhibitions-roundup tbody td[data-th="Date / Time"],
  .exhibitions-roundup tbody td[data-th="Dates"] {
    color: var(--text, #111);
  }

  .exhibitions-roundup tbody td[data-th="£"],
  .exhibitions-roundup tbody td[data-th="Tags"] {
    color: var(--muted, #666);
    font-size: 0.94rem;
  }

  .exhibitions-roundup td.links a {
    display: inline-block;
    padding: 8px 0;
    margin-right: 12px;
    border-bottom: 1px solid transparent;
  }

  .exhibitions-roundup td.links a:active {
    opacity: 0.7;
  }

  #calendar + p {
    margin-top: 8px;
  }
}
/* Slightly larger phones / small tablets (721–960px) */
@media (min-width: 721px) and (max-width: 960px) {

  /* Small tablets: Glasgow exhibitions container */
 .page--glasgow-exhibitions main#main > .container {
   padding: 0 20px 20px;        /* no extra top padding */
 }

  .exhibitions-roundup h2 {
    font-size: 1.35rem;
  }

  .exhibitions-roundup table tbody td {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .gallery-group {
    margin-top: 3rem;
    padding-top: 1.5rem;
  }

  .gallery-group__header {
    margin-bottom: 1.5rem;
  }

  .gallery-group__header h2 {
    font-size: 1.3rem;
  }
}

/* ===========================
   Contact: success badge readability
   =========================== */

#msg-sent {
  font-size: inherit;
  line-height: inherit;
}

/* Contact form: align fields with text column on larger screens */
.page--contact .form--stack {
  max-width: 100%;
  margin-inline: 0;
}

/* Hide honeypot */
.visually-hidden[aria-hidden="true"],
.visually-hidden[hidden] {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* Unified select styling + Safari height fix */
form.form--stack select#enquiry {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  height: 44px;
  line-height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 20 12"><path fill="none" stroke="%236b7280" stroke-width="2" d="M1 1l9 9 9-9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

@supports (-webkit-touch-callout: none) {
  form.form--stack select#enquiry {
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 44px;
  }
}

form.form--stack select#enquiry {
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  font-weight: inherit;
}

form.form--stack select#enquiry option {
  font-family: inherit;
  font-size: 16px;
  font-weight: inherit;
}

/* ===========================
   About page video
   =========================== */

.about-video {
  margin: 2rem 0;    /* space above/below, no centring */
  max-width: none;   /* let it be as wide as the container */
  padding: 0;        /* container already handles side padding */
}

.about-video .video-block {
  margin: 0;
}

.about-video video {
  width: 100%;
  height: auto;
  display: block;
}

.about-video .video-caption {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft, #555);
  margin-top: 0.75rem;
  text-align: left;
}

/* ===============================
   Gallery modal (full-screen popup)
   =============================== */

.art-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: center;
  z-index: 9999;
}

.art-modal--open {
  display: flex;
}

.art-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.art-modal__dialog {
  position: relative;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: #fff;
  border-radius: 0;
  padding: 1.25rem;
  overflow-y: auto;
  box-shadow: none;
}

.art-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.art-modal__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.art-modal__image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.art-modal__details h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.art-modal__meta {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.art-modal__price {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.art-modal__status {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .art-modal__dialog {
    padding: 1rem;
  }

  .art-modal__image-wrap {
    width: 100%;
  }

  .art-modal__details {
    width: 100%;
    text-align: left;
  }
}

/* ================================
   Gallery – grouped series intros
   ================================ */

.gallery-group {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e2e2;
}

.gallery-group:first-of-type {
  margin-top: 3rem;
}

.gallery-group__header {
  margin: 0 0 2.5rem;
}

.gallery-group__header h2 {
  font-family: var(--font-head, system-ui);
  font-size: var(--fs-xl, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

/* Intro text flows in two columns like an editorial piece */
.gallery-group__intro {
  margin: 0;
  font-size: var(--fs-md, 1rem);
  line-height: 1.7;
  color: var(--ink-muted, #555);

  column-count: 2;
  column-gap: 2.5rem;
  column-fill: balance;
}

/* ===============================
   Artwork detail popup window
   =============================== */

.art-popup {
  margin: 0;
  background: #ffffff;
  color: var(--ink, #111111);
  font-family: var(
    --font-body,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif
  );
}

.art-popup__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.art-popup__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.art-popup__title {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.art-popup__meta {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.art-popup__price {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.art-popup__status {
  margin-bottom: 1rem;
}

.art-popup__close-btn {
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f3f3f3;
  cursor: pointer;
}

.art-popup__close-btn:hover {
  background: #e5e5e5;
}

.art-popup__summary {
  font-style: italic;
  font-weight: 400;
  color: #14b8a6; /* Teal */
  margin-bottom: 1.5rem;
}

/* ===========================
   PGDS 2025 page
   =========================== */

.pgds-hero {
  margin: 0 0 2.5rem;
}

.pgds-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* Installation + detail images */
.pgds-install,
.pgds-details {
  margin: 3rem 0;
}

.pgds-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.pgds-details__grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* Make the third image span full width under the first row */
.pgds-details__grid img:nth-child(3) {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .pgds-details__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-group__intro {
    column-count: 1;
    column-gap: 0;
  }
}

/* ArtMag review section framing */
.section.pgds-press {
  padding-block: 1.5rem;
}

.pgds-press .container {
  border-top: 1px solid var(--ink-soft, rgba(15, 23, 42, 0.12));
  border-bottom: 1px solid var(--ink-soft, rgba(15, 23, 42, 0.12));
  padding-block: 1.5rem;
  background-color: var(--teal-soft, rgba(20, 184, 166, 0.06));
}

.pgds-press__layout {
  display: grid;
  gap: 1.75rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .pgds-press__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  }
}

@media (max-width: 640px) {
  .page--open-calls .page-hero__inner,
  .page--open-calls .page-section__header,
  .page--open-calls .open-calls-group__title,
  .page--open-calls .cards--open-calls {
    max-width: 100%;
    margin-inline: 0; /* make everything edge-align nicely on mobile */
  }
}

.pgds-press__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* Pullquote */
.pullquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--accent, #0ea5e9);
  font-size: 1.05rem;
  font-style: italic;
}

.pullquote__source {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
}

/* Walkthrough video – layout */
.pgds-video {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.video-block {
  max-width: 960px;
  margin: 0 auto;
}

.video-block video {
  display: block;
  width: 100%;
  height: auto;
}

.video-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted, #6b7280);
  text-align: left;
}

/* PGDS video highlight block */
.section.pgds-video {
  padding-block: 1.5rem;
}

.pgds-video .container {
  background-color: var(--teal-soft);
  border-top: 1px solid var(--ink-soft, rgba(15, 23, 42, 0.12));
  border-bottom: 1px solid var(--ink-soft, rgba(15, 23, 42, 0.12));
  padding-block: 1.5rem;
}

/* Home exhibition feature highlight block */
.section.home-feature {
  padding-block: 1.5rem;
}

/* Home featured painting highlight block */
.section.home-featured-painting {
  padding-block: 1.5rem;
}

.home-featured-painting .container {
  background-color: var(--teal-soft);
  border-top: 1px solid var(--ink-soft, rgba(15, 23, 42, 0.12));
  border-bottom: 1px solid var(--ink-soft, rgba(15, 23, 42, 0.12));
  padding-block: 1.5rem;
  border-radius: var(--radius);   /* same rounded corners as Degree Show panel */
}

/* Stronger teal kicker for this block */
.home-featured-painting .kicker {
  color: var(--teal);
  font-weight: 700;
}

/* Image full width of body */
.featured-painting__image {
  display: block;
  margin-top: 1rem;
}

.featured-painting__image img {
  width: 100%;
  height: auto;
}

/* Meta on a single line: details + price + badge */
.featured-painting__meta {
  margin-top: 0.75rem;
  flex-direction: row;        /* override .meta column layout */
  align-items: center;
  gap: var(--space-3);
}

/* Make all exhibition tables share the same column proportions */
.exhibitions-roundup table {
  width: 100%;
  table-layout: fixed;
}

/* Let text wrap rather than blow columns out */
.exhibitions-roundup th,
.exhibitions-roundup td {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Column widths: adjust percentages to taste */
.exhibitions-roundup table th:nth-child(1),
.exhibitions-roundup table td[data-th="Title"] {
  width: 26%;
}

.exhibitions-roundup table th:nth-child(2),
.exhibitions-roundup table td[data-th="Artist(s)"] {
  width: 18%;
}

.exhibitions-roundup table th:nth-child(3),
.exhibitions-roundup table td[data-th="Venue"] {
  width: 24%;
}

.exhibitions-roundup table th:nth-child(4),
.exhibitions-roundup table td[data-th="Dates"] {
  width: 15%;
}

.exhibitions-roundup table th:nth-child(5),
.exhibitions-roundup table td[data-th="£"] {
  width: 9%;
}

.exhibitions-roundup table th:nth-child(6),
.exhibitions-roundup table td[data-th="Link"] {
  width: 8%;
}

/* Tags column already hidden, keep as-is */
.exhibitions-roundup table th:nth-child(7),
.exhibitions-roundup table td[data-th="Tags"] {
  display: none;
}

/* Remove browser default gap at very top */
body {
  margin: 0;
}

/* Remove any gap between header and hero */
.site-header {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Ensure the main content isn't adding space */
main#main {
  margin-top: 0;
  padding-top: 0;
}

/* Hero: no extra space at top */
.hero {
  margin-top: 0;
  padding-top: 0;
}

/* Hero inner layout: stack vertically 
.hero__inner {
  display: flex;
  flex-direction: column;
}*/

/* Hero image: no offset, no rounded corners, full-width */
.hero__image {
  margin-top: 0;
  margin-bottom: 1.5rem;
  width: 100%;
}

.hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Kill top margin on first heading so it can't "push" the hero down */
.hero__title {
  margin-top: 0;
}

/* Hero: use full site width + no vertical padding so image sits flush under header */
.hero .container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--space-4); /* 0 top/bottom, normal side padding */
}

.page {
  padding: 3rem var(--space-4) 4rem; /* horizontal padding now matches .container */
}

.page__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ===========================
   Page headers & sections (About, Privacy, etc.)
   =========================== */

/* Top header block on text-led pages */
   .page__header {
     margin: 0 0 2.25rem;
     padding-top: 0.5rem;   /* adds a little space below the site header */
   }
   
/* Glasgow Exhibitions – bring header closer to the nav */
   .page--glasgow-exhibitions .page__header {
     padding-top: 0;        /* remove extra padding on this page */
     margin-top: -2.5rem;   /* nudge the whole header block up slightly */
   }

/* Small label above the main heading (e.g. “Legal”) */
.page__header .eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 0.5rem;
}

/* Glasgow Exhibitions – remove double top padding so eyebrow matches other pages */
main#main.section[data-json*="glasgow_exhibitions_data.json"] {
  padding-top: 3rem; /* same as .page top padding */
}

main#main.section[data-json*="glasgow_exhibitions_data.json"]
  > .section.section--tight:first-of-type {
  padding-top: 0;    /* kill the extra top padding */
}

/* Main page title */
.page__header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 2.4vw, var(--fs-2xl)); /* slightly smaller than hero h1 */
  font-weight: 600;
}

/* Meta line under the title (e.g. “Last updated…”) */
.page__meta {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}

/* Each content section on info pages */
.page__section {
  margin-top: 2.5rem;
}

/* First section sits a little closer to the header */
.page__section:first-of-type {
  margin-top: 2rem;
}

/* Section headings */
.page__section h2 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* Sub-headings inside sections (e.g. 3.1, 3.2…) */
.page__section h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: var(--fs-md);
  font-weight: 600;
}

/* Paragraphs and lists get consistent rhythm */
.page__section p,
.page__section ul,
.page__section ol {
  margin: 0 0 1rem;
}

/* List indentation (kept gentle) */
.page__section ul,
.page__section ol {
  padding-left: 1.25rem;
}

/* Highlight panel used on Privacy (“Who we are” block) */
.info-panel {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0.5rem;
  font-size: var(--fs-sm);
}

/* === Overrides (ChatGPT) — keep all new tweaks below this line === */
.subscribe-box--about { }

/* ===========================
   Open Calls page
   =========================== */

.page--open-calls h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Hero */
.page--open-calls .page-hero {
  background: var(--bg-hero, #f4f4f4);
  padding: 3rem var(--space-4) 2rem; /* same horizontal padding as rest of site */
}

.page--open-calls .page-hero__inner {
  max-width: 56rem;
  margin: 0 auto;
}

/* Keep section heading text aligned with cards */
.page--open-calls .page-section__header {
  max-width: 56rem;   /* same as cards */
  margin: 0 auto 1.5rem;
}

/* Category groups */
.open-calls-group {
  margin-bottom: 2.5rem;
}

.open-calls-group__title {
  max-width: 56rem;
  margin: 0 auto 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Card grid for each category */
.page--open-calls .cards--open-calls {
  display: grid;
  gap: 1.75rem;
  max-width: 56rem;
  margin: 0 auto;
}

/* Top row: category label + closing date */
.card--open-call .card__top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem 0.25rem;
}

/* Category label – teal text, not a pill */
.card--open-call .badge--category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #14b8a6;           /* same teal family as the Apply link */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* Closing date text (+ traffic light colours) */
.card--open-call .card__meta-deadline-text {
  font-size: 0.8rem;
  text-align: right;
}

/* >14 days – green */
.card--open-call .card__meta-deadline-text.deadline--green {
  color: #15803d;
}

/* 8–13 days – amber */
.card--open-call .card__meta-deadline-text.deadline--amber {
  color: #b45309;
}

/* 0–7 days – red */
.card--open-call .card__meta-deadline-text.deadline--red {
  color: #b91c1c;
}

/* Deadline passed */
.card--open-call .card__meta-deadline-text.deadline--past {
  color: var(--ink-muted, #666);
  font-style: italic;
}

/* Country · Region · City line */
.card--open-call .card__eyebrow {
  padding: 0 1.5rem 0.25rem;
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted, #666);
}

/* Title + body + footer paddings */
.card--open-call .card__header {
  padding: 0 1.5rem 0.4rem;
}

.card--open-call .card__body {
  padding: 0 1.5rem 0.75rem;
}

.card--open-call .card__footer {
  padding: 0 1.5rem 1.25rem;
}

/* Host line inside body */
.card--open-call .card__meta-host {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* ===========================
   Open Calls – Apply link
   =========================== */

/* Make footer content left-aligned to match body text */
.card--open-call .card__footer {
  padding: 0 1.5rem 1.25rem;
  text-align: left;
}

/* Teal-styled apply button */
.card--open-call .card__footer .btn.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.4rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #14b8a6; /* Teal text */
  font-weight: 600;
  text-decoration: none;
}

/* Underline and subtle arrow on hover/focus */
.card--open-call .card__footer .btn.btn--secondary:hover,
.card--open-call .card__footer .btn.btn--secondary:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Mobile override – let each field use full width in the cards */
@media (max-width: 720px) {
  .exhibitions-roundup table {
    table-layout: auto;
  }

  .exhibitions-roundup table th,
  .exhibitions-roundup table td,
  .exhibitions-roundup table td[data-th] {
    width: 100% !important;
}
} /* <-- close @media (max-width: 720px) */
/* Glasgow Exhibitions – give the header the same breathing room under nav */
body.page--glasgow-exhibitions main.page {
  padding-top: 5.75rem;  /* try 3.75; tweak up/down to taste */
}

/* ===== Exhibitions Page Adjustments ===== */
.page--exhibitions .exhibitions-roundup {
  overflow-x: auto;
  margin-top: 2rem;
}

.page--exhibitions table {
  width: 100%;
  min-width: 720px; /* wider table for desktop readability */
  border-collapse: collapse;
  table-layout: auto; /* ✅ allows column widths to respond naturally */
}

.page--exhibitions table th,
.page--exhibitions table td {
  white-space: nowrap;
  padding: 0.75rem 1rem;
  text-align: left;
}

.page--exhibitions table td[data-th="Link"] a {
  display: inline-block;
  white-space: nowrap;
}

/* Ensure the "Link" column always has enough width */
.page--exhibitions table th:nth-child(6),
.page--exhibitions table td[data-th="Link"] {
  min-width: 120px; /* ✅ 120px for comfort */
  text-align: left;
}

@media (max-width: 800px) {
  .page--exhibitions table {
    min-width: 100%;
  }
}
.pageinner {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}