@font-face {
  font-family: "Bagoss-Bold";
  src: url("/assets/fonts/BagossStandard-TRIAL-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bagoss-SemiBold";
  src: url("/assets/fonts/BagossStandard-TRIAL-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bagoss-Medium";
  src: url("/assets/fonts/BagossStandard-TRIAL-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bagoss-Regular";
  src: url("assets/fonts/BagossStandard-TRIAL-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bagoss-Light";
  src: url("/assets/fonts/BagossStandard-TRIAL-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ------------------------ Colour variables --------------------- */
:root {
  --yellow: #dcf373;
  --mauve: #e1d2f3;
  --red: #fe5454;
  --black: #231f20;
  --blue: #054ff0;
  --white: #ffffff;
  --light-blue: #0599f0;
  --font-size--2: clamp(0.5627rem, 0.5628rem + -0.0002cqi, 0.5628rem);
  --font-size--1: clamp(0.7502rem, 0.735rem + 0.0673cqi, 0.7956rem);
  --font-size-0: clamp(1rem, 0.9583rem + 0.1852cqi, 1.125rem);
  --font-size-1: clamp(1.333rem, 1.2471rem + 0.3819cqi, 1.5908rem);
  --font-size-2: clamp(1.7769rem, 1.6194rem + 0.6999cqi, 2.2493rem);
  --font-size-3: clamp(2.3686rem, 2.0979rem + 1.2029cqi, 3.1805rem);
  --font-size-4: clamp(3.1573rem, 2.7107rem + 1.9851cqi, 4.4973rem);
  --font-size-5: clamp(4.2087rem, 3.4919rem + 3.1858cqi, 6.3592rem);
  -webkit-tap-highlight-color: transparent;
  font-family: "Bagoss-Light", Arial, Arial, Helvetica, sans-serif;
  /* Container size tokens (named ranges; opt-in later) */
  --cq-breakpoint-s: 600px;
  --cq-breakpoint-m: 900px;
  --cq-size: small;
  /* Layout tokens */
  --block-min: 320px; /* minimum width for any content block */
  --standard-margin: clamp(1.5rem, 2vw, 4rem);
  /* ------------------------------ Border-radii ------------------------------ */
  --radius-full: 9999px;

  /* Motion tokens */
  --motion-duration-quick: 100ms;
  --motion-duration-base: 300ms; /* default */
  --motion-ease-quint: cubic-bezier(0.83, 0, 0.17, 1);
  --motion-transition-base: color var(--motion-duration-base)
      var(--motion-ease-quint),
    background-color var(--motion-duration-base) var(--motion-ease-quint),
    border-color var(--motion-duration-base) var(--motion-ease-quint),
    box-shadow var(--motion-duration-base) var(--motion-ease-quint),
    opacity var(--motion-duration-base) var(--motion-ease-quint),
    transform var(--motion-duration-base) var(--motion-ease-quint),
    scale var(--motion-duration-base) var(--motion-ease-quint);
}
body {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  color: var(--white);
  font-size: var(--font-size--0);
  container-type: inline-size;
  container-name: page;
}
h1,
h2,
h3 {
  font-family: "Bagoss-Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 0.97em;
  letter-spacing: -0.02em;
}
h1 {
  font-size: var(--font-size-5);
}
h2 {
  font-size: var(--font-size-4);
}
h3 {
  font-size: var(--font-size-3);
}
h4 {
  font-family: "Bagoss-Light", Arial, Helvetica, sans-serif;
  font-weight: 200;
  font-size: var(--font-size-2);
  line-height: 1.1em;
  letter-spacing: -0.01em;
  max-width: 40rem;
}
h5 {
  font-family: "Bagoss-Medium", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: var(--font-size-1);
}
super-heading {
  font-family: "Bagoss-Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: calc(var(--font-size-5) * 1.5);
  line-height: 0.9em;
  letter-spacing: -0.03em;
  color: var(--white);
}
p,
li {
  font-weight: 300;
  line-height: 1.4em;
  max-width: 40rem;
  font-size: var(--font-size-0);
}
li {
  padding-inline-start: 0.5rem;
  margin-bottom: 0.5rem;
}
[type="text"] {
  font-size: var(--font-size--1);
  padding: 0.5rem 0.75rem;
}
input:disabled {
  background-color: hsl(from var(--mauve) h 50% 96%);
  padding-right: 2rem; /* space for icon */
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='9' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
}
input:disabled::after {
  /* inputs can't show pseudo-elements */
  content: none;
  display: none;
}
label {
  font-family: "Bagoss-Medium", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: var(--font-size--1);
}
button {
  font-family: "Bagoss-Medium", Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--white);
  padding: 0.8rem 1.3rem;
  margin: 2rem 0;
  font-size: var(--font-size-0);
  text-transform: uppercase;
  border-radius: 100rem;
  max-width: fit-content;
  min-width: fit-content;
  background-color: var(--light-blue);
  border-style: none;
}
button:hover {
  cursor: pointer;
  background-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
}
button:active {
  transform: scale(0.98);
  background-color: var(--light-blue);
}
hr {
  border: none;
  height: 2px;
  margin: 20px 0;
}
select,
input,
textarea {
  font-family: "Bagoss-Light", Arial, Helvetica, sans-serif;
  font-weight: 200;
  max-width: 15rem;
  padding: 0.5rem 0.75rem;
  margin: 2px 0 clamp(1rem, 1.5vw, 2rem) 0;
  border-style: none;
  align-self: start;
}
select {
  border-right: 4px solid transparent;
}

button,
input[type="button"],
input[type="submit"],
a[href],
.btn {
  transition: var(--motion-transition-base);
}

/* Make active state feel immediate so it's visible even on quick clicks */
button:active,
input[type="button"]:active,
input[type="submit"]:active,
a.btn:active {
  transition: background-color 0ms linear,
    transform var(--motion-duration-quick) var(--motion-ease-quint),
    box-shadow var(--motion-duration-quick) var(--motion-ease-quint);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration-quick: 0ms;
    --motion-duration-base: 0ms;
  }
  button,
  input[type="button"],
  input[type="submit"],
  a[href],
  .btn {
    transition: none;
  }
}

/* Variant backgrounds */
.bg--red {
  --block-bg: var(--red);
}
.bg--blue {
  --block-bg: var(--blue);
}
.bg--mauve {
  --block-bg: var(--mauve);
}
.bg--yellow {
  --block-bg: var(--yellow);
}
.bg--black {
  --block-bg: var(--black);
}
.bg--white {
  --block-bg: var(--white);
}

.bg--yellow,
.bg--mauve,
.bg--white {
  --block-fg: var(--black);
}
.bg--yellow ul > li,
.bg--mauve ul > li,
.bg--white ul > li {
  list-style-image: url("/assets/images/d-black.svg"); /* dark bullet on light bg */
}

.bg--red,
.bg--blue,
.bg--black {
  --block-fg: var(--white);
}
.bg--red ul > li,
.bg--blue ul > li,
.bg--black ul > li {
  list-style-image: url("/assets/images/d.svg"); /* light bullet on dark bg */
}

/* ------------------------ Top bar ----------------------- */
.top-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.top-bar {
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  flex: 2 1 20rem;
  justify-content: space-between;
  width: 100%;
  max-width: 90cqw;
  z-index: 10;
  background-color: var(--black);
  box-sizing: border-box;
  max-height: 6rem;
  align-items: center;
}
.top-bar-item {
  min-width: 10rem;
}
#logo {
  display: flex;
  justify-content: left;
}
#login {
  margin: 0;
  display: flex;
  justify-content: right;
}
.search-bar {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 50svw;
  top: 0.7rem;
}
.search-bar {
  @container page (width < 900px) {
    display: none;
  }
}
.search-bar::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-100%);
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23868686' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
}
.search-bar input {
  min-width: 100%;
  height: 2.5rem;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: var(--white);
  color: var(--black);
  outline: none;
  font-size: var(--font-size-0);
  transition: var(--motion-transition-base);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.search-bar input::placeholder {
  color: var(--black);
}
.search-bar input:focus {
  border-color: var(--light-blue);
}
.top-menu {
  display: flex;
  gap: 0rem;
  align-items: center;
  margin: -1rem 0 2rem 0;
  z-index: 10;
}
.top-menu {
  @container page (width < 900px) {
    display: none;
  }
}
.menu-lv-0 {
  font-family: Bagoss-Regular, Arial, Helvetica, sans-serif;
  padding: 0 1rem;
  border-bottom: var(--black) 4px solid;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  transition: border-bottom var(--motion-duration-base),
    color var(--motion-duration-base);
}
.menu-lv-0 > p {
  line-height: 1rem;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.menu-lv-0:hover {
  color: var(--light-blue);
  cursor: pointer;
  border-color: var(--light-blue) 4px solid;
}
/* ------------------------ Content containers and blocks ----------------------- */

#home-hero {
  background-image: url(/assets/images/Document\ Name_LKP_163\ copy.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  background-blend-mode: lighten;
  background-color: var(--black);
  padding-bottom: 3rem;
  align-items: center;
  min-height: 60svh;
}
/* Container base */
.c {
  display: grid;
  align-items: stretch;
  width: 100%;
  /* Allow background utilities (bg--*) to work on containers as well */
  background: var(--block-bg, transparent);
  color: var(--block-fg, inherit);
}

/* Fixed grid layouts at large widths */
.c--100 {
  grid-template-columns: 1fr;
  display: flex;
  justify-content: center;
}
.c--full {
  grid-template-columns: 1fr;
}
.c--50-50 {
  grid-template-columns: repeat(2, 1fr);
}
.c--33-33-33 {
  grid-template-columns: repeat(3, 1fr);
}
.c--25-25-25-25 {
  grid-template-columns: repeat(4, 1fr);
}
.c--70-30 {
  grid-template-columns: 2fr 1fr;
}
.c--30-70 {
  grid-template-columns: 1fr 2fr;
}

/* Placement follows DOM order at wide sizes. Use b--o* only when reflowed. */

.c100-inner {
  width: 100%;
  max-width: 1200px;
}
/* Block base and roles */
.b {
  min-width: var(--block-min);
  min-height: 40svh;

  background: var(--block-bg, transparent);
  color: var(--block-fg, inherit);
  display: flex;
  flex-direction: column;
  position: relative; /* anchor masked images */
  justify-content: center; /* center content on the main axis */
  overflow: hidden;
  /* Make each block a sizing container for per-block container queries */
  container-type: inline-size;
  container-name: block;
}
.b--base {
  padding: var(--standard-margin);
  box-sizing: border-box;
}
.b--content {
  padding: var(--standard-margin);
  box-sizing: border-box;
}
.b--article-card,
.b--image {
  padding: 0;
}
.b--image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@container page (width < 640px) {
  .c--50-50,
  .c--70-30,
  .c--30-70 {
    display: flex;
    flex-wrap: wrap;
  }
  .c--50-50 > .b,
  .c--70-30 > .b,
  .c--30-70 > .b {
    flex: 1 1 var(--block-min);
    min-width: var(--block-min);
  }
  /* Apply manual ordering only when reflowed */
  .c--50-50 > .b.b--o1,
  .c--70-30 > .b.b--o1,
  .c--30-70 > .b.b--o1 {
    order: 1;
  }
  .c--50-50 > .b.b--o2,
  .c--70-30 > .b.b--o2,
  .c--30-70 > .b.b--o2 {
    order: 2;
  }
  .c--50-50 > .b.b--o3,
  .c--70-30 > .b.b--o3,
  .c--30-70 > .b.b--o3 {
    order: 3;
  }
  .c--50-50 > .b.b--o4,
  .c--70-30 > .b.b--o4,
  .c--30-70 > .b.b--o4 {
    order: 4;
  }
}

@container page (width < 960px) {
  .c--33-33-33 {
    display: flex;
    flex-wrap: wrap;
  }
  .c--33-33-33 > .b {
    flex: 1 1 var(--block-min);
    min-width: var(--block-min);
  }
  /* Apply manual ordering only when reflowed */
  .c--33-33-33 > .b.b--o1 {
    order: 1;
  }
  .c--33-33-33 > .b.b--o2 {
    order: 2;
  }
  .c--33-33-33 > .b.b--o3 {
    order: 3;
  }
  .c--33-33-33 > .b.b--o4 {
    order: 4;
  }
}

@container page (width < 1280px) {
  .c--25-25-25-25 {
    display: flex;
    flex-wrap: wrap;
  }
  .c--25-25-25-25 > .b {
    flex: 1 1 var(--block-min);
    min-width: var(--block-min);
  }
  /* Apply manual ordering only when reflowed */
  .c--25-25-25-25 > .b.b--o1 {
    order: 1;
  }
  .c--25-25-25-25 > .b.b--o2 {
    order: 2;
  }
  .c--25-25-25-25 > .b.b--o3 {
    order: 3;
  }
  .c--25-25-25-25 > .b.b--o4 {
    order: 4;
  }
}

/* ------------------------ Images ----------------------- */
img.half-height {
  max-height: 50svh;
  width: auto;
}
/* ------------------------------ Sticky Ribbon ----------------------------- */
.sticky-ribbon {
  position: sticky;
  top: 0;
  margin: 1rem 0 0 0;
  align-self: start;
  color: var(--white);
  mix-blend-mode: exclusion;
  font-family: "Bagoss-Bold", Arial, Helvetica, sans-serif;
  font-size: var(--font-size-5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: fit-content;
  z-index: 5;
}
/* ------------------------ Articles ----------------------- */

.c.c--newsfeed {
  display: grid;
  /* Auto-wrapping responsive grid: add any number of cards */
  grid-template-columns: repeat(auto-fit, minmax(var(--block-min), 1fr));
  gap: 2rem;
  align-items: stretch;
  justify-items: stretch;
  max-width: 1440px;
  margin: 0rem auto; /* center the grid within its row */
  width: 100%;
  padding: 0 0 10svh 0;
}
/* Make labels like the sticky ribbon span across all columns */
.c.c--newsfeed > .sticky-ribbon {
  grid-column: 1 / -1;
}
/* Make the first card span the full width of the newsfeed.
   Works with or without a leading .sticky-ribbon. */
.c.c--newsfeed > .b:first-child,
.c.c--newsfeed > .sticky-ribbon + .b {
  grid-column: 1 / -1;
}
.c.c--newsfeed > .b:first-child .article-card__title,
.c.c--newsfeed > .sticky-ribbon + .b .article-card__title {
  font-size: var(--font-size-2);
}
/* Article card that fills its parent .b, and can grow to fit long text */
.article-card {
  position: relative; /* participate in normal flow so parent grows */
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%; /* at least fill the .b height */
  max-height: 30rem;
  --category-color: var(--red); /* default; override via utility below */
  --category-label: ""; /* default label; set by category utility */
  --category-fg: #fff; /* default text colour for dark bars */
  /* Enable element-width container queries for this card */
  container-type: inline-size;
  container-name: card;
}
.article-card:hover {
  cursor: pointer;
  transition: var(--motion-transition-base);
  transition-delay: var(--motion-duration-quick);
  background-color: var(--black);
  color: var(--white);
  box-shadow: 1rem 1rem 2rem var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .article-card:hover::after {
    opacity: 1;
  }
  /* Apply grayscale to the image when hovering anywhere on the card */
  .article-card:hover .article-card__img {
    filter: grayscale(100%);
  }
}
/* Base (small): vertical stack — image above text */
.article-card__img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: 40%; /* preserve image ratio */
  object-fit: cover;
  /* prepare for hover grayscale transition */
  filter: grayscale(0%);
  transition: filter var(--motion-duration-base) var(--motion-ease-quint);
  transition-delay: var(--motion-duration-quick);
}

@container block (width >= 720px) {
  .article-card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% image (left) | 50% text (right) */
    align-items: stretch;
    column-gap: clamp(0.75rem, 1.5vw, 1rem);
  }
  .article-card__img {
    position: static; /* participate in grid flow */
    inset: auto;
    width: 100%;
    height: 100%; /* fill left column height */
    object-fit: cover; /* crop to fit the text height */
    grid-column: 1; /* image on the left-hand column */
    grid-row: 1;
    display: block;
  }
  /* Place text/content in the right column */
  .article-card__text,
  .article-card__title,
  .article-card__desc {
    grid-column: 2; /* text on the right */
    grid-row: 1;
  }
}
/* Category bar: solid, top 1rem */
.article-card__category {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 0 1rem clamp(1rem, 1vw, 2.25rem);
  line-height: 1rem;
  font-size: 0.625rem; /* small label fits within 1rem bar */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--category-fg);
  max-width: 100%;
}
.article-card__category::after {
  content: var(--category-label);
  font-size: var(--font-size--1);
  font-family: Bagoss-SemiBold, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  color: var(--category-color);
}
.article-card__category:hover {
  color: var(--light-blue);
  text-decoration: underline;
}
.article-card__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  color: inherit;
  padding: clamp(1rem, 1vw, 2.25rem);
  max-width: 30rem;
  margin: 0;
}

.c.c--newsfeed > .b:first-child .article-card__text,
.c.c--newsfeed > .sticky-ribbon + .b .article-card__text {
  max-width: 90%; /* increase as desired (e.g., 56rem or none) */
}
@container block (width < 720px) {
  .c.c--newsfeed > .b:first-child .article-card__text,
  .c.c--newsfeed > .sticky-ribbon + .b .article-card__text,
  .c.c--newsfeed > .b:first-child .article-card__title,
  .c.c--newsfeed > .sticky-ribbon + .b .article-card__title {
    font-size: var(--font-size-1);
  }
}
.article-card__title {
  position: relative;
  z-index: 2;
  font-size: var(--font-size-1);
  font-family: Bagoss-SemiBold, Arial, Helvetica, sans-serif;
}
.article-card__desc {
  position: relative;
  margin: 0;
  z-index: 2;
  font-size: var(--font-size-0);
  line-height: 1.2rem;
  display: none;
}
.event-details {
  display: flex;
  flex-direction: column;
}
.article-card__event-time,
.article-card__event-date {
  font-size: var(--font-size-0);
  font-family: Bagoss-Medium, Arial, Helvetica, sans-serif;
  color: inherit;
  margin: 0;
}
.article-card__event-date::before,
.article-card__event-time::before {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: inherit; /* inherit-like sizing */
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  margin-right: 0.35em; /* space before the date text */
  vertical-align: middle;
}
.article-card__event-date::before {
  content: "calendar_month";
}
.article-card__event-time::before {
  content: "alarm";
}
/* Category color utilities */
.article-card.cat-industry {
  --category-color: var(--red);
  --category-label: "Industry";
  --category-fg: var(--white);
}
.article-card.cat-craft {
  --category-color: var(--blue);
  --category-label: "Craft";
  --category-fg: var(--white);
}
.article-card.cat-opportunities {
  --category-color: var(--yellow);
  --category-label: "Opportunities";
  --category-fg: var(--black);
}
.article-card.cat-resources {
  --category-color: var(--black);
  --category-label: "Resources";
  --category-fg: var(--white);
}
.article-card.cat-event {
  --category-color: var(--mauve);
  --category-label: "Event";
  --category-fg: var(--black);
}
.article-card.cat-white {
  --category-color: var(--white);
  --category-label: "White";
  --category-fg: var(--black);
}
.article-card__img.clipped {
  -webkit-clip-path: shape(
    from 0 0,
    line to 90% 0,
    curve to 90% 100% with 100% 50%,
    line to 0 100%
  );
  clip-path: shape(
    from 0 0,
    line to 90% 0,
    curve to 90% 100% with 100% 50%,
    line to 0 100%
  );
  will-change: clip-path;
}
.article-hero {
  position: relative;
  width: 100%;
  min-height: 60svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  background-image: url(/assets/images/Document\ Name_LKP_163\ copy.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  background-blend-mode: lighten;
  padding-bottom: 3rem;
}
.article-headline {
  font-size: var(--font-size-3);
}
.in-article-image {
  position: relative; /* anchor caption overlay */
  display: inline-block; /* size to image content */
  max-width: 100%;
  min-width: 100%;
  max-height: 50svh; /* cap overall element height */
  margin: var(--standard-margin) 0;
}
.in-article-image .wrapped-image {
  display: block; /* remove inline gap */
  width: auto; /* allow natural width within limits */
  max-width: 100%; /* never overflow container width */
  height: auto; /* preserve intrinsic aspect ratio */
  max-height: 50svh; /* never exceed the element's cap */
  margin-inline: 0; /* align image to the left of the container */
}
/* Caption overlay at image bottom */
figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem;
  background: var(--black);
  color: var(--white);
  font-size: var(--font-size--1);
  line-height: 1.2;
  box-sizing: border-box;
  max-width: fit-content;
}
.in-article-image figcaption::before {
  content: "© ";
}

/* Optional bounded variant: keep whole image visible within a max height */
.in-article-image--bounded {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 40svh; /* or any desired cap */
  background: var(--black);
}
.in-article-image--bounded .wrapped-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show entire image without cropping */
}

/* ================= Curved clip-path masks ================ */

.b img.mask-left,
.b img.mask-right {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.b img.mask-right,
.article-card__img.clipped {
  -webkit-clip-path: shape(
    from 0 0,
    line to 90% 0,
    curve to 90% 100% with 100% 50%,
    line to 0 100%
  );
  clip-path: shape(
    from 0 0,
    line to 90% 0,
    curve to 90% 100% with 100% 50%,
    line to 0 100%
  );
  will-change: clip-path;
}
.b img.mask-left {
  right: 0;
  -webkit-clip-path: shape(
    from 100% 0,
    line to 10% 0,
    curve to 10% 100% with 0% 50%,
    line to 100% 100%
  );
  clip-path: shape(
    from 100% 0,
    line to 10% 0,
    curve to 10% 100% with 0% 50%,
    line to 100% 100%
  );
  will-change: clip-path;
}
/* --------------------------------- Footer --------------------------------- */
#footer,
#footer-meta {
  max-width: 1400px;
}
#footer .b,
#footer-meta .b {
  color: var(--white);
  justify-content: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem);
  min-height: 0;
  min-block-size: 0;
}
#footer a,
#footer-meta a {
  color: inherit;
  text-decoration: none;
}

#footer address {
  font-style: normal;
}

.link-list p {
  margin: 0;
  line-height: 2rem;
}

/* Centered divider */
#footer-divider hr {
  height: 1px;
  border: 0;
  background: color-mix(in oklab, white 30%, transparent);
  width: min(70rem, 80%);
  margin: clamp(1.5rem, 4vw, 2.5rem) auto;
}

/* Bottom row alignment */
#footer-meta .b:nth-child(2) {
  text-align: center;
}
#footer-meta .b:last-child {
  text-align: right;
}

/* Footer layout tweaks (no new text classes) */
#footer .b,
#footer-meta .b {
  color: var(--white);
  justify-content: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem);
}
#footer a,
#footer-meta a {
  color: inherit;
  text-decoration: none;
}

#footer address {
  font-style: normal;
}

/* Centered divider */
#footer-divider hr {
  height: 1px;
  border: 0;
  background: color-mix(in oklab, white 30%, transparent);
  width: min(70rem, 80%);
  margin: clamp(1.5rem, 4vw, 2.5rem) auto;
}

/* Bottom row alignment */
#footer-meta .b:nth-child(2) {
  text-align: center;
}
#footer-meta .b:last-child {
  text-align: right;
}
