/* Ocampo & Suralvo Law Offices — private multi-page mockup
   Bird & Bird–inspired visual language. Localhost only. */

:root {
  --slate: #323e48;
  --slate-alt: #333f48;
  --page-gray: #e3e3e3; /* was #f5f5f6, 15% grayer */
  --footer-gray: #d9d9d9;
  --white: #ffffff;
  --maroon: #832439;
  --text: #323e48;
  --text-muted: #5c6770;
  --accent-teal: #9fddd3;
  --accent-pink: #ffb1ba;
  --accent-yellow: #ffe74d;
  --accent-blue: #84aae4;
  --accent-orange: #ffa068;
  --accent-green: #c0df8a;
  --max: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--maroon); }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(100% - 4rem, var(--max));
  margin-inline: auto;
}

.tag {
  display: inline-block;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.tag-maroon { color: var(--maroon); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
}

.link-arrow:hover { color: var(--maroon); }

.link-arrow .arrow {
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.1em;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate);
  color: #fff;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-pill:hover {
  background: var(--maroon);
  color: #fff;
}

/* Mockup banner */
.mockup-banner {
  background: var(--slate);
  color: rgba(255,255,255,0.9);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid #ebebec;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  text-decoration: none;
}

.logo img {
  height: 53px;
  width: auto;
}

.logo-member {
  font-family: "Calibri", "Carlito", sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--slate);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav a:hover {
  color: var(--maroon);
  border-bottom-color: transparent;
}

.nav a[aria-current="page"] {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

/* Hero — Bird & Bird full-bleed */
.hero {
  background: var(--page-gray);
  padding: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 28%);
  gap: 2rem;
  min-height: 0;
  align-items: center;
  width: min(100% - 4rem, var(--max));
  margin-inline: auto;
  padding: 1.75rem 0 1.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
  position: relative;
  max-width: none;
  margin-left: 0;
}

.hero-amp {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: clamp(8rem, 18vw, 14rem);
  line-height: 1;
  color: rgba(50, 62, 72, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-copy > * { position: relative; z-index: 1; }

.hero-copy .eyebrow {
  display: block;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.hero-copy .blurb {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 42ch;
  margin-bottom: 1.15rem;
}

.hero-visual {
  position: relative;
  background: var(--slate);
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: 260px;
  overflow: hidden;
  align-self: center;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,62,72,0.35) 0%, rgba(50,62,72,0.1) 100%);
  pointer-events: none;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--page-gray);
  padding: 2.25rem 0 1.85rem;
  border-bottom: 1px solid #ebebec;
}

.page-hero .eyebrow {
  display: block;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 300;
  margin: 0 0 0.5rem;
  max-width: 22ch;
}

.page-hero .lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0;
}

/* Featured Client Alert */
.featured {
  background: var(--white);
  padding: 2.5rem 0;
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.featured-meta .tag {
  margin-bottom: 1rem;
  color: var(--maroon);
}

.featured-meta h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.featured-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

.featured-body p:last-of-type { margin-bottom: 1.75rem; }

/* Section shell */
section.block {
  padding: 2.75rem 0;
}
section.block.block-tight {
  padding: 2rem 0;
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.section-bar h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 400;
  margin: 0;
}

/* About */
.bg-gray { background: var(--page-gray); }
.bg-white { background: var(--white); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
}

.about-lede {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--maroon);
  margin: 0;
  padding-top: 0.25rem;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.0125rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.about-copy p:last-child { margin-bottom: 0; }

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.chip {
  display: inline-block;
  background: var(--white);
  border: 1px solid #e0e0e2;
  padding: 0.55rem 1rem;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.chip-on-white {
  background: var(--page-gray);
  border-color: transparent;
}

/* Team */
.team-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -1.5rem 0 2rem;
  font-style: italic;
}

.role-block {
  margin-bottom: 3.5rem;
}

.role-block:last-child { margin-bottom: 0; }

.role-block h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8e8ea;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.team-grid .team-card {
  flex: 0 0 calc((100% - 3 * 0.85rem) / 4);
  max-width: calc((100% - 3 * 0.85rem) / 4);
}

.team-grid.cols-5 .team-card {
  flex: 0 0 calc((100% - 4 * 0.85rem) / 5);
  max-width: calc((100% - 4 * 0.85rem) / 5);
}

.team-grid.cols-7 .team-card {
  flex: 0 0 calc((100% - 6 * 0.7rem) / 7);
  max-width: calc((100% - 6 * 0.7rem) / 7);
}

.team-grid.cols-7 {
  gap: 0.7rem;
}

.team-grid.cols-3 .team-card {
  flex: 0 0 calc((100% - 2 * 0.85rem) / 3);
  max-width: calc((100% - 2 * 0.85rem) / 3);
}

.team-card {
  background: var(--page-gray);
  padding: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card.tone-slate {
  background: var(--slate);
  color: #fff;
}

.team-card.tone-slate h3 { color: #fff; }

.team-card.tone-teal { background: var(--accent-teal); }
.team-card.tone-pink { background: var(--accent-pink); }
.team-card.tone-yellow { background: var(--accent-yellow); }
.team-card.tone-blue { background: var(--accent-blue); }
.team-card.tone-orange { background: var(--accent-orange); }
.team-card.tone-green { background: var(--accent-green); }

.team-card .portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d8dde2;
}

.team-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-card .avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background: rgba(255,255,255,0.55);
  color: var(--slate);
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  margin: 0;
}

.team-card.tone-slate .avatar {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.team-card.has-photo {
  background: var(--page-gray);
}

.team-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  padding: 0.65rem 0.7rem 0.85rem;
}

button.team-card,
a.team-card {
  color: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

a.team-card:hover h3,
a.team-card:focus-visible h3 {
  color: var(--maroon);
}

a.team-card:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

/* Home team teaser on white */
.team-card.plain {
  background: var(--page-gray);
}

.team-card.plain .avatar {
  background: #e8ebef;
  color: var(--slate);
}

/* Updates — flat pastel cards */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.updates-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.updates-grid.cols-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.updates-grid.cols-5 .update-card {
  flex: 0 0 calc((100% - 4 * 0.75rem) / 5);
  max-width: calc((100% - 4 * 0.75rem) / 5);
}

.update-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  transition: filter .15s, transform .15s;
  background: var(--white);
  border: 1px solid #ebebec;
  overflow: hidden;
}

.update-card:hover {
  filter: brightness(0.97);
  color: inherit;
}

/* tag margin handled with card-body */

.update-card h3 {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  flex: 1;
  color: var(--slate);
}

.update-card .card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.update-card .tag {
  margin-bottom: 0.5rem;
  font-size: 0.625rem;
}

.update-card .date {
  margin-top: auto;
}

.update-card .date {
  display: block;
  margin-top: 0.75rem;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.7;
}

.update-card.tone-teal { background: var(--accent-teal); }
.update-card.tone-pink { background: var(--accent-pink); }
.update-card.tone-yellow { background: var(--accent-yellow); }
.update-card.tone-blue { background: var(--accent-blue); }
.update-card.tone-orange { background: var(--accent-orange); }
.update-card.tone-green { background: var(--accent-green); }

/* News / insight cards */
.news-grid,
.events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.news-grid .news-card,
.events-grid .news-card {
  flex: 0 0 calc((100% - 4 * 0.75rem) / 5);
  max-width: calc((100% - 4 * 0.75rem) / 5);
}

.news-card {
  background: var(--page-gray);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: filter .15s;
}

.news-card:hover {
  filter: brightness(0.97);
  color: inherit;
}

.news-card .card-body {
  padding: 0.75rem 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card .tag {
  margin-bottom: 1rem;
  color: var(--maroon);
}

.news-card h3 {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  flex: 1;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .meta {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-card.featured-news {
  grid-column: auto;
  background: var(--slate);
  color: #fff;
  min-height: 0;
}

.news-card.featured-news h3 { color: #fff; }
.news-card.featured-news p { color: rgba(255,255,255,0.75); }
.news-card.featured-news .tag { color: var(--accent-yellow); }
.news-card.featured-news .meta { color: rgba(255,255,255,0.55); }
.news-card.featured-news .link-arrow { color: #fff; }
.news-card.featured-news .link-arrow:hover { color: var(--accent-yellow); }

/* Publications */
.pub-featured {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  background: var(--page-gray);
  padding: 3rem;
  margin-bottom: 2.5rem;
}

.pub-featured .tag {
  color: var(--maroon);
  margin-bottom: 1rem;
}

.pub-featured h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.pub-featured p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pub-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.pub-grid .pub-card {
  flex: 0 0 calc((100% - 4 * 0.75rem) / 5);
  max-width: calc((100% - 4 * 0.75rem) / 5);
}

.pub-card {
  background: var(--page-gray);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: filter .15s;
}

.pub-card:hover {
  filter: brightness(0.97);
  color: inherit;
}

.pub-card .card-body {
  padding: 1.5rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

a.pub-featured {
  text-decoration: none;
  color: inherit;
  transition: filter .15s;
}

a.pub-featured:hover {
  filter: brightness(0.98);
  color: inherit;
}

.pub-card .tag {
  margin-bottom: 1rem;
}

.pub-card h3 {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  flex: 1;
}

.pub-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}



/* Image cards — updates / news / publications */
.update-card.has-image,
.news-card.has-image,
.pub-card.has-image {
  padding: 0;
  background: var(--white);
  border: 1px solid #e6e8eb;
  overflow: hidden;
  min-height: 0;
}

.update-card.has-image {
  background: var(--white);
}

.update-card .card-media,
.news-card .card-media,
.pub-card .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ebef;
}

.update-card .card-media img,
.news-card .card-media img,
.pub-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.update-card .card-body,
.news-card .card-body,
.pub-card .card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.update-card.has-image h3,
.news-card.has-image h3,
.pub-card.has-image h3 {
  margin-bottom: 0.5rem;
  flex: 1;
}

.update-card.has-image .date {
  margin-top: 0.75rem;
  opacity: 0.7;
}

.news-card.has-image {
  min-height: 0;
}

.news-card.has-image.featured-news {
  background: var(--white);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-card.has-image.featured-news .card-media {
  aspect-ratio: auto;
  min-height: 280px;
  height: 100%;
}

.news-card.has-image.featured-news h3 { color: var(--slate); }
.news-card.has-image.featured-news p { color: var(--text-muted); }
.news-card.has-image.featured-news .tag { color: var(--maroon); }
.news-card.has-image.featured-news .meta { color: var(--text-muted); }
.news-card.has-image.featured-news .card-body {
  padding: 2rem 2rem 2rem 1.75rem;
  justify-content: center;
}

.pub-featured.has-image {
  grid-template-columns: minmax(140px, 22%) 1fr;
  padding: 0;
  overflow: hidden;
  align-items: start;
}

.pub-featured-media {
  min-height: 0;
  aspect-ratio: 4 / 5;
  max-height: 220px;
  background: #e8ebef;
}

.pub-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-featured-copy {
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pub-featured.has-image .pub-featured-copy {
  padding: 2.5rem;
}

.pub-featured .meta,
.pub-card .meta {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

@media (max-width: 800px) {
  .news-card.has-image.featured-news {
    grid-template-columns: 1fr;
  }
  .pub-featured.has-image {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list .label {
  display: block;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.2rem;
}

.contact-list span,
.contact-list a {
  font-size: 1.05rem;
  color: var(--slate);
  font-weight: 400;
  line-height: 1.5;
}

.contact-list a:hover { color: var(--maroon); }

.contact-form {
  background: var(--page-gray);
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.contact-form .form-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8d8da;
  background: var(--white);
  padding: 0.85rem 1rem;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: var(--slate);
  border-radius: 0;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--slate);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer — Latham-style stacked bands */
.site-footer {
  background: var(--footer-gray);
  color: var(--slate);
  padding: 0;
  border-top: none;
  margin-top: 0;
}

.site-footer .wrap {
  padding-top: 2.5rem;
  padding-bottom: 1.75rem;
}

.footer-band {
  width: 100%;
}

.footer-band-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 0.25rem;
  padding-bottom: 2rem;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--slate);
  background: transparent;
  color: var(--maroon);
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.footer-contact-btn:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.5rem;
}

.footer-nav a {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.8125rem; /* ~13px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--maroon);
}

.footer-band-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding: 0.35rem 0 1.75rem;
}

.footer-band-contact a {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #4a5560;
  text-decoration: none;
}

.footer-band-contact a:hover {
  color: var(--maroon);
}

.footer-band-address {
  padding: 0 0 2rem;
}

.footer-office-label {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.65rem;
}

.footer-band-address p {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  color: #4a5560;
  margin: 0;
  max-width: 42rem;
}

.footer-band-legal {
  border-top: 1px solid rgba(50, 62, 72, 0.18);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1.25rem;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #4a5560;
}

.footer-legal-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.footer-affiliation {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.footer-affiliation-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-affiliation-logos img {
  display: block;
  height: 36px;
  width: auto;
}

.footer-affiliation-logos a img {
  height: 36px; /* square marks fill full height in both logos, so equal height = equal squares */
}

.footer-affiliation-divider {
  width: 1px;
  height: 32px;
  background: rgba(50, 62, 72, 0.35);
}

.footer-affiliation-note {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  color: var(--slate);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-band-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 0.55rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .site-footer .wrap {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-band-nav {
    padding-bottom: 1.5rem;
  }

  .footer-band-contact,
  .footer-band-address {
    padding-bottom: 1.5rem;
  }

  .footer-band-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-affiliation {
    margin-left: 0;
    align-items: flex-start;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-copy {
    margin-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .featured-inner,
  .about-layout,
  .contact-grid,
  .pub-featured,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-card.featured-news {
    grid-column: auto;
  }

  .hero-copy {
    margin-left: 0;
    padding: 3.5rem 2rem;
    max-width: none;
  }

  .hero-amp { display: none; }

  .hero-visual {
    min-height: 320px;
  }

  .team-grid .team-card,
  .team-grid.cols-5 .team-card,
  .team-grid.cols-7 .team-card {
    flex: 0 0 calc((100% - 2 * 0.85rem) / 3);
    max-width: calc((100% - 2 * 0.85rem) / 3);
  }

  .updates-grid,
  .updates-grid.cols-4,
  .updates-grid.cols-5,
  .pub-grid,
  .news-grid,
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: horizontal nav ribbon next to logo; hide mobile toggle */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 721px) and (min-height: 501px), (min-width: 721px) and (orientation: portrait) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: flex;
  }
}

@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) {
  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 0;
    min-height: auto;
  }

  .logo img {
    height: 43px;
  }

  .logo-member {
    font-size: 0.7rem;
  }

  .primary-nav {
    display: none;
  }

  /* Hamburger via details/summary */
  .nav-toggle {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
  }

  .nav-toggle > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-family: Calibri, Carlito, "Segoe UI", sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    padding: 0.35rem 0;
    user-select: none;
    position: absolute;
    top: 0.85rem;
    right: 0.75rem;
  }

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

  .header-inner {
    position: relative;
    padding-right: 3.5rem;
  }

  .nav-toggle > summary .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 18px;
  }

  .nav-toggle > summary .burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--slate);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
  }

  .nav-toggle[open] > summary .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[open] > summary .burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[open] > summary .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle > summary .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .nav-toggle nav {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ebebec;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid #f0f0f2;
  }

  .nav li:last-child {
    border-bottom: none;
  }

  .nav a {
    display: block;
    font-size: 1.05rem;
    padding: 0.85rem 0.15rem;
    border-bottom: none;
  }

  .nav a[aria-current="page"] {
    border-bottom: none;
    color: var(--maroon);
  }

}

@media (max-width: 720px) {
  /* Comfortable phone padding */
  section.block,
  .featured,
  .page-hero {
    padding: 2.75rem 0;
  }

  .hero-copy {
    padding: 2.5rem 1.25rem;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-copy h1 {
    font-size: 1.85rem;
    max-width: none;
  }

  .page-hero h1 {
    max-width: none;
    font-size: 1.85rem;
  }

  .featured-inner {
    gap: 1.75rem;
  }

  /* Cards stack to 1 column */
  .updates-grid,
  .updates-grid.cols-4,
  .updates-grid.cols-5,
  .pub-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .team-grid .team-card,
  .team-grid.cols-5 .team-card,
  .team-grid.cols-7 .team-card,
  .team-grid.cols-3 .team-card {
    flex: 0 0 calc((100% - 0.85rem) / 2);
    max-width: calc((100% - 0.85rem) / 2);
  }

  .pub-featured {
    padding: 1.75rem 1.25rem;
  }

  .contact-form {
    padding: 1.5rem;
  }


  .mockup-banner {
    font-size: 0.6875rem;
    padding: 0.5rem 0.75rem;
  }
}


/* ----- Redesign additions ----- */
.page-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-hero-row > div:first-child {
  flex: 1 1 280px;
}

.updates-search {
  flex: 0 1 280px;
  min-width: 200px;
}

.updates-search input[type="search"] {
  width: 100%;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1px solid #d5d8dc;
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  outline: none;
}

.updates-search input[type="search"]:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(131, 36, 57, 0.12);
}

.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;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.filter-chip {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d5d8dc;
  background: #fff;
  color: var(--slate);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.filter-chip:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

.filter-chip.is-active {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
}

.filter-empty {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.update-card .card-media,
.pub-card .card-media,
.news-card .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8dde2;
}

.update-card .card-media img,
.pub-card .card-media img,
.news-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-grid-map {
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: stretch;
}

.map-embed {
  border-radius: 4px;
  overflow: hidden;
  background: var(--page-gray);
  min-height: 320px;
  border: 1px solid #ebebec;
}

.map-embed {
  position: relative;
}

.map-static {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  color: inherit;
}

.map-static img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: filter 0.25s ease;
}

.map-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--maroon);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease;
}

.map-static:hover img,
.map-static:focus-visible img { filter: brightness(0.96); }

.map-static:hover .map-hint,
.map-static:focus-visible .map-hint {
  background: var(--maroon);
  color: #fff;
}

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

.map-attrib {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 0.68rem;
  line-height: 1.4;
}

.map-attrib a { color: inherit; text-decoration: underline; }
.map-attrib a:hover { color: var(--maroon); }

.contact-cta {
  padding: 2rem 1.75rem;
  border-radius: 4px;
}

/* Bio modal */
body.modal-open {
  overflow: hidden;
}

.bio-modal[hidden] {
  display: none !important;
}

.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.bio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(50, 62, 72, 0.55);
}

.bio-modal-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(980px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.bio-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
  z-index: 2;
}

.bio-modal-close:hover {
  color: var(--maroon);
}

.bio-modal-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 1.5rem;
  min-height: 0;
  align-items: start;
  padding: 2.25rem 2.5rem 2.5rem;
}

.bio-modal-photo {
  background: transparent;
  display: block;
  padding: 0;
  margin: 0;
  width: 180px;
  min-height: 0;
}

.bio-modal-photo img {
  width: 180px;
  height: 220px;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 2px;
}

.bio-modal-copy {
  padding: 0;
  min-width: 0;
}

.bio-modal-copy .tag {
  margin-bottom: 0.45rem;
  display: block;
}

.bio-modal-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.bio-modal-body {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.bio-modal-body p {
  margin: 0 0 1em;
}

.bio-modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .bio-modal-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }

  .bio-modal-photo {
    width: 140px;
    min-height: 0;
    padding: 0;
  }
  .bio-modal-photo img {
    width: 140px;
    height: 170px;
    max-height: none;
    object-fit: cover;
  }

  .bio-modal-copy {
    padding: 0;
  }

  .contact-grid-map {
    grid-template-columns: 1fr;
  }

  .page-hero-row {
    align-items: stretch;
  }

  .updates-search {
    flex: 1 1 100%;
  }

  .team-grid .team-card,
  .team-grid.cols-5 .team-card,
  .team-grid.cols-7 .team-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .nav {
    gap: 0.15rem 1rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .updates-grid.cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .updates-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.updates-grid.cols-4 .update-card .card-body,
.updates-grid.cols-5 .update-card .card-body {
  padding: 0.75rem 0.8rem 0.9rem;
}

.updates-grid.cols-4 .update-card h3,
.updates-grid.cols-5 .update-card h3 {
  font-size: 0.86rem;
}

.updates-grid.cols-4 .update-card .card-media,
.updates-grid.cols-5 .update-card .card-media {
  aspect-ratio: 16 / 9;
}


/* Force filtered-out update cards to disappear (display:flex on cards overrides [hidden]) */
.update-card[hidden],
a.update-card[hidden] {
  display: none !important;
}

/* About hero with Makati photo */
.about-hero {
  background: var(--page-gray);
  padding: 1.75rem 0;
  border-bottom: 1px solid #ebebec;
  overflow: hidden;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 32%) 1fr;
  gap: 2rem;
  min-height: 0;
  align-items: center;
  width: min(100% - 4rem, var(--max));
  margin-inline: auto;
}
.about-hero-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: 240px;
  background: var(--slate);
  overflow: hidden;
}
.about-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}
.about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}
.about-hero-copy .eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}
.about-hero-copy h1 {
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 300;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}
.about-hero-copy .lede {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 42ch;
  margin: 0;
}
@media (max-width: 800px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-hero-visual { max-height: 200px; width: 100%; }
  .about-hero-copy { padding: 0; }
}

/* Article detail pages */
.article-page {
  padding: 1.75rem 0 3rem;
  background: var(--white);
}
.article-wrap { max-width: 820px; }
.article-back { margin: 0 0 1.25rem; }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 400;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}
.article-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.article-hero-media {
  margin: 0 0 1.75rem;
  background: #e8ebef;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}
.article-body p { margin: 0 0 1.1em; }
.article-body h2, .article-body h3 {
  margin: 1.5em 0 0.6em;
  font-weight: 600;
}
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.article-body img { max-width: 100%; height: auto; margin: 1em 0; }
.article-body a { color: var(--maroon); text-decoration: underline; }
.article-pager {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ebebec;
  width: 100%;
}
.article-pager > * {
  flex: 1 1 0;
  min-width: 0;
  max-width: 48%;
}
.article-pager > .pager-older {
  text-align: left;
}
.article-pager > .pager-newer {
  text-align: right;
  margin-left: auto;
}
.article-pager > .pager-newer .link-arrow {
  justify-content: flex-end;
  margin-left: auto;
}
.article-pager .link-arrow {
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 640px) {
  .article-pager {
    flex-wrap: wrap;
  }
  .article-pager > * {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .article-pager > .pager-newer {
    text-align: left;
  }
  .article-pager > .pager-newer .link-arrow {
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Smaller pub/news media in 5-col */
.pub-grid .card-media,
.news-grid .card-media,
.events-grid .card-media {
  aspect-ratio: 16 / 10;
}
.pub-grid .card-body,
.events-grid .card-body {
  padding: 0.75rem 0.8rem 0.9rem;
}
.pub-grid .pub-card p {
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .news-grid, .events-grid, .pub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .news-grid, .events-grid, .pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Join Us */
.join-us-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 2.5rem;
  align-items: start;
}
.join-us-layout a { color: var(--maroon); }
@media (max-width: 800px) {
  .join-us-layout { grid-template-columns: 1fr; gap: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-height: 200px; width: min(100%, 320px); }
}

/* ===== v6 redesign ===== */

/* Home hero — text + photo sit close (no wide center gap) */
.hero-v6 {
  background: var(--page-gray);
  border-bottom: 1px solid #ebebec;
}
.hero-v6 .hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
  padding: 2rem 0 1.85rem;
  width: min(100% - 4rem, var(--max));
  margin-inline: auto;
  box-sizing: border-box;
}
.hero-v6 .hero-copy {
  padding: 0.15rem 0;
  max-width: none;
}
.hero-v6 .hero-amp { display: none; }
.hero-v6 .hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.hero-v6 .hero-copy .blurb {
  max-width: 52ch;
  margin-bottom: 1.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}
.hero-v6 .hero-visual {
  aspect-ratio: 21 / 9;
  max-height: none;
  width: 100%;
  border-radius: 2px;
  justify-self: stretch;
}
.hero-v6 .hero-visual::after {
  background: linear-gradient(160deg, rgba(50,62,72,0.22) 0%, rgba(131,36,57,0.12) 100%);
}

/* Featured — clearer hierarchy, aligned columns */
.featured-v6 {
  padding: 2.25rem 0;
  border-bottom: 1px solid #ebebec;
}
.featured-v6 .featured-inner {
  grid-template-columns: minmax(220px, 0.9fr) 1.3fr;
  gap: 2.5rem;
  align-items: start;
}
.featured-v6 .featured-meta h2 {
  max-width: 22ch;
  margin-bottom: 0.65rem;
}
.featured-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.featured-v6 .featured-body p {
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}
.featured-v6 .featured-body p:last-of-type { margin-bottom: 1.25rem; }

.about-layout-tight {
  grid-template-columns: minmax(220px, 0.9fr) 1.3fr;
  gap: 2.5rem;
}

/* About page — consistent wrap margins, aligned split */
.about-page-hero {
  padding: 2rem 0 1.65rem;
}
.about-page-hero h1 {
  color: var(--maroon);
  max-width: none;
  white-space: nowrap;
}
.about-split {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) 1.35fr;
  gap: 2.75rem;
  align-items: start;
}
.about-split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate);
  max-height: 280px;
}
.about-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  position: absolute;
  inset: 0;
}
.about-split-copy .about-lede {
  margin-bottom: 1.25rem;
  padding-top: 0;
}
.about-split-copy .about-copy p {
  margin-bottom: 1rem;
}

/* Join Us — match about-split gutters */
.join-us-layout {
  grid-template-columns: minmax(200px, 0.85fr) 1.35fr;
  gap: 2.75rem;
}

/* Publications featured — photo aligned with copy, equal visual weight */
.pub-featured.has-image {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--page-gray);
  padding: 0;
  overflow: hidden;
  margin-bottom: 2.25rem;
}
.pub-featured-media {
  position: relative;
  min-height: 100%;
  aspect-ratio: auto;
  max-height: none;
  height: auto;
  align-self: stretch;
  background: #e8ebef;
}
.pub-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
}
.pub-featured.has-image .pub-featured-copy {
  padding: 2rem 2.25rem;
  justify-content: center;
}
.pub-featured-copy .meta {
  margin-bottom: 0.75rem;
}
.pub-featured-copy p {
  margin-bottom: 1.25rem;
}

/* News & Events — two columns side by side */
.ne-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.ne-col .section-bar {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--slate);
}
.ne-col-events .section-bar {
  border-bottom-color: var(--maroon);
}
.ne-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ne-stack .news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid #e6e8eb;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}
.ne-stack .news-card .card-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 96px;
  max-height: 120px;
}
.ne-stack .news-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.ne-stack .news-card .card-body {
  padding: 0.85rem 1rem;
  gap: 0.25rem;
}
.ne-stack .news-card h3 {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ne-stack .news-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ne-stack .news-card .meta {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.ne-stack .news-card:hover {
  border-color: #cfd3d8;
}

/* Update cards — no category chip; date as subtle meta */
.update-card .card-body {
  gap: 0.4rem;
}
.update-card .card-body h3 {
  margin: 0;
}
.update-card .date {
  margin-top: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 1;
}

/* Multi-select filter chips: allow several active */
.filter-chip.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}
.filter-chip[data-filter="All"].is-active {
  background: var(--slate);
  border-color: var(--slate);
}

@media (max-width: 900px) {
  .hero-v6 .hero-grid {
    gap: 1.15rem;
  }
  .hero-v6 .hero-visual {
    aspect-ratio: 16 / 9;
    max-height: none;
    width: 100%;
  }
  .featured-v6 .featured-inner,
  .about-layout-tight,
  .about-split,
  .join-us-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about-split-media {
    max-height: 200px;
    width: 100%;
  }
  .ne-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pub-featured.has-image {
    grid-template-columns: 1fr;
  }
  .pub-featured-media {
    position: relative;
    height: 220px;
    max-height: 220px;
  }
  .pub-featured-media img {
    min-height: 0;
  }
  .ne-stack .news-card {
    grid-template-columns: 96px 1fr;
  }
}

/* Updates hero — search centered under lede */
.page-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}
.page-hero-stack .page-hero-copy {
  max-width: 40rem;
}
.updates-search-centered {
  flex: none;
  width: min(100%, 420px);
  margin-inline: auto;
}

/* Join Us — maroon accents */
.join-us .section-bar h2,
.join-us .about-lede {
  color: var(--maroon);
}

/* ===== Home hero on-photo (Latham-style) ===== */
.hero.hero-v6.hero-on-photo {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 48vw, 520px);
  padding: 0;
  border-bottom: none;
  background: #1a2228;
  overflow: hidden;
}
.hero-on-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-on-photo-bg .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-on-photo-bg .hero-slide.is-active {
  opacity: 1;
}
.hero-on-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.42) 32%,
    rgba(0, 0, 0, 0.18) 58%,
    rgba(0, 0, 0, 0.05) 100%
  );
}
.hero-on-photo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: clamp(420px, 48vw, 520px);
  padding: 3rem 0;
  box-sizing: border-box;
  max-width: min(100% - 4rem, var(--max));
}
.hero-on-photo-label {
  margin: 0 0 0.85rem;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.hero-on-photo-content h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  color: #fff;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero-on-photo-content .blurb {
  margin: 0 0 1.6rem;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.55;
}
.hero-on-photo .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: center;
}
.hero-on-photo .hero-cta {
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 0.15rem;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.hero-on-photo .hero-cta:hover {
  border-bottom-color: #fff;
  opacity: 0.95;
}
@media (max-width: 720px) {
  .hero.hero-v6.hero-on-photo,
  .hero-on-photo-content {
    min-height: 380px;
  }
  .hero-on-photo-content {
    padding: 2.25rem 0;
  }
  .hero-on-photo-content h1 {
    max-width: 16ch;
  }
  .hero-on-photo-content .blurb {
    max-width: 36ch;
  }
}


/* ALB award badge on revolving hero photos */
.hero-on-photo {
  position: relative;
}
.hero-award-badge {
  position: absolute;
  right: max(1.25rem, calc((100% - var(--max)) / 2));
  bottom: 1.35rem;
  z-index: 3;
  width: clamp(82px, 10.5vw, 126px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
@media (max-width: 720px) {
  .hero-award-badge {
    width: 72px;
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 720px) {
  .about-page-hero h1 {
    white-space: normal;
  }
}

.team-page-hero h1 {
  color: var(--maroon);
}

.news-page-hero h1 {
  color: var(--maroon);
}

.updates-page-hero h1 {
  color: var(--maroon);
}

.contact-page-hero h1,
.join-page-hero h1 {
  color: var(--maroon);
}

/* Card grids on tablets and phones: 3 per row (tablet / phone landscape), 2 per row (phone portrait) */
@media (max-width: 1100px) {
  .updates-grid.cols-5 .update-card,
  .pub-grid .pub-card {
    flex: 0 0 calc((100% - 2 * 0.75rem) / 3);
    max-width: calc((100% - 2 * 0.75rem) / 3);
  }
}
@media (max-width: 720px) and (orientation: portrait) {
  .updates-grid.cols-5 .update-card,
  .pub-grid .pub-card {
    flex: 0 0 calc((100% - 0.75rem) / 2);
    max-width: calc((100% - 0.75rem) / 2);
  }
}

/* About DFDL band mirrors the About OS Law page hero */
.about-dfdl-hero h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 300;
  margin: 0 0 0.5rem;
  color: #004C45; /* DFDL green */
}

#about-dfdl { scroll-margin-top: 110px; }

.btn-pill.btn-dfdl {
  margin-top: 1.5rem;
  background: #004C45;
  color: #fff;
}

.btn-pill.btn-dfdl:hover {
  background: #00352f;
  color: #fff;
}

.about-lede.about-lede-dfdl {
  color: #004C45;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--maroon);
  color: var(--slate);
  font-style: italic;
}

/* Bio modal award rosettes under the photo */
.bio-modal-awards { display:grid; grid-template-columns:repeat(3,1fr); gap:0.5rem; margin-top:0.85rem; }
.bio-modal-awards[hidden] { display:none; }
.bio-modal-awards img { width:100%; height:auto; display:block; object-fit:contain; background:#fff; }
.bio-modal-photo .bio-modal-awards img { width:100%; height:auto; max-height:none; object-fit:contain; border-radius:0; }
@media (max-width: 720px) {
  .bio-modal-photo { width:auto; }
  .bio-modal-awards { grid-template-columns:repeat(6, 1fr); max-width:360px; gap:0.35rem; }
}

/* Award groups in bio modal */
.bio-modal-awards { display:block; }
.bio-modal-awards[hidden] { display:none; }
.bio-award-group { display:grid; gap:0.5rem; margin-top:0.85rem; }
.bio-award-top100 { grid-template-columns:repeat(3,1fr); }
.bio-award-ihc { grid-template-columns:repeat(2,1fr); padding:0 0.6rem; }
@media (max-width: 720px) {
  .bio-modal-awards { max-width:360px; }
  .bio-award-group { gap:0.35rem; margin-top:0.6rem; }
  .bio-award-top100 { grid-template-columns:repeat(6,1fr); }
  .bio-award-ihc { grid-template-columns:repeat(6,1fr); padding:0; }
}
/* Equal-height award marks */
.bio-award-group { display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:0; }
.bio-award-group img, .bio-modal-photo .bio-modal-awards .bio-award-group img { width:auto; height:40px; max-width:none; flex:0 0 auto; }
@media (max-width: 720px) {
  .bio-modal-awards { max-width:none; }
  .bio-award-group { gap:5px; }
  .bio-award-group img, .bio-modal-photo .bio-modal-awards .bio-award-group img { height:44px; }
}
@media (max-width: 720px) {
  .bio-award-group img, .bio-modal-photo .bio-modal-awards .bio-award-group img { height:40px; }
}

/* Awards at bottom of bio copy */
.bio-modal-copy .bio-modal-awards { display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px; margin:0 0 1.5rem; padding-top:1.1rem; border-top:1px solid #e3e6ea; max-width:none; }
.bio-modal-copy .bio-modal-awards[hidden] { display:none; }
.bio-modal-copy .bio-award-group { margin-top:0; gap:6px; }
.bio-modal-copy .bio-award-group img { height:54px; width:auto; max-width:none; }
@media (max-width: 720px) {
  .bio-modal-copy .bio-modal-awards { gap:8px; }
  .bio-modal-copy .bio-award-group img { height:40px; }
}
@media (max-width: 720px) {
  .bio-modal-copy .bio-award-group { gap:4px; }
  .bio-modal-copy .bio-award-group img { height:36px; }
}

/* ABLJ publication attribution */
.article-body .article-source { color: var(--text-muted); }
.article-body .article-source-end { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e6e8eb; }

/* Publications — author line on cards */
.pub-card .card-authors,
.pub-featured .card-authors {
  display: block;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--slate);
  margin: 0 0 0.3rem;
}
.pub-featured .card-authors {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
@media (max-width: 720px) {
  .pub-card .card-authors { font-size: 0.72rem; }
}

/* Publications — search + source chips */
.pub-search {
  margin: 0 auto 2rem;
  max-width: 640px;
  text-align: center;
}
.pub-search-field {
  position: relative;
}
.pub-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.pub-search input[type="search"] {
  width: 100%;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 1rem;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  border: 1px solid #d5d8dc;
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.pub-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.pub-search input[type="search"]:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(131, 36, 57, 0.12);
}
.pub-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: #eef0f2;
  color: var(--slate);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.pub-search-clear:hover { background: #e2e5e8; color: var(--maroon); }
.pub-search-clear[hidden] { display: none; }
.pub-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.pub-chip {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.95rem;
  border: 1px solid #d5d8dc;
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  cursor: pointer;
}
.pub-chip:hover { border-color: var(--maroon); color: var(--maroon); }
.pub-chip.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pub-search-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pub-search-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  margin: 0;
}
.pub-search-empty a { color: var(--maroon); text-decoration: underline; }
.pub-featured[hidden], .pub-card[hidden], .pub-more-bar[hidden], .pub-search-empty[hidden], .pub-search-status[hidden] { display: none !important; }
.pub-grid.is-filtered { justify-content: flex-start; }
@media (max-width: 720px) {
  .pub-search { margin-bottom: 1.5rem; }
  .pub-search input[type="search"] { font-size: 16px; }
  .pub-chip { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
}

/* Update detail — author/contact line for alerts republished from DFDL */
.article-header .article-byline {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* News & Events — Updates-style vertical cards, 2 per row inside each column */
.ne-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}
.ne-grid .news-card.has-image {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e6e8eb;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transition: filter .15s, transform .15s;
}
.ne-grid .news-card.has-image:hover {
  filter: brightness(0.97);
  color: inherit;
}
.ne-grid .news-card .card-media {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: #d8dde2;
}
.ne-grid .news-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ne-grid .news-card .card-media.media-contain {
  background: #fff;
  border-bottom: 1px solid #eef0f2;
}
.ne-grid .news-card .card-media.media-contain img {
  object-fit: contain;
  object-position: center;
  padding: 0.35rem;
  box-sizing: border-box;
}
.ne-grid .news-card .card-body {
  padding: 0.75rem 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}
.ne-grid .news-card h3 {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--slate);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ne-grid .news-card p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ne-grid .news-card .meta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 900px) and (min-width: 721px) {
  .ne-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ne-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

/* Featured publication with a landscape image */
.pub-featured.has-image.pub-featured-wide { grid-template-columns: minmax(220px, 40%) 1fr; align-items: stretch; }
.pub-featured-wide .pub-featured-media { aspect-ratio: auto; max-height: none; height: 100%; min-height: 240px; }
@media (max-width: 720px) {
  .pub-featured.has-image.pub-featured-wide { grid-template-columns: 1fr; }
  .pub-featured-wide .pub-featured-media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

/* News & Events — equal card heights across both columns */
.ne-grid { grid-auto-rows: 1fr; }
.ne-grid .news-card h3 { min-height: calc(1.3em * 4); }
.ne-grid .news-card p { min-height: calc(1.45em * 2); }

/* News & Events featured banner (same format as Publications) */
.ne-featured .pub-featured-media.media-contain { background:#e3e3e3; display:flex; align-items:center; justify-content:center; }
.ne-featured .pub-featured-media.media-contain img { object-fit:contain; height:100%; width:100%; }
.ne-featured { color: inherit; text-decoration: none; }
.ne-featured h2 { color: var(--slate); }

/* Updates — government-agency filter chips (reuses the Publications .pub-chip look) */
.agency-chips {
  max-width: 940px;
  margin: 0.25rem auto 0;
}
.agency-chip .chip-count {
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0;
}
.agency-chip.is-active .chip-count { opacity: 0.85; }
.updates-status {
  margin: -0.35rem 0 0;
  text-align: center;
}
.filter-empty a { color: var(--maroon); text-decoration: underline; }
@media (max-width: 720px) {
  /* Phones: one swipeable row instead of five wrapped rows */
  .agency-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -0.75rem;
    padding: 0.1rem 0.75rem 0.35rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.75rem, #000 calc(100% - 1.75rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 0.75rem, #000 calc(100% - 1.75rem), transparent 100%);
  }
  .agency-chips::-webkit-scrollbar { display: none; }
  .agency-chip { flex: 0 0 auto; white-space: nowrap; }
  .updates-status { margin-top: -0.6rem; font-size: 0.85rem; }
}

/* Larger, readable award marks in bio */
.bio-modal-copy .bio-modal-awards { display:block; }
.bio-modal-copy .bio-modal-awards[hidden] { display:none; }
.bio-modal-copy .bio-award-group { display:flex; flex-wrap:wrap; gap:12px 14px; margin:0 0 14px; }
.bio-modal-copy .bio-award-group:last-child { margin-bottom:0; }
.bio-modal-copy .bio-award-group img { height:112px; width:auto; max-width:none; }
.bio-modal-copy .bio-award-ihc img { height:118px; }
@media (max-width: 720px) {
  .bio-modal-copy .bio-award-group { gap:10px; }
  .bio-modal-copy .bio-award-group img { height:84px; }
  .bio-modal-copy .bio-award-ihc img { height:88px; }
}

/* Awards flow as one continuous row (IHC follows ABLJ) */
.bio-modal-copy .bio-modal-awards { display:flex; flex-wrap:wrap; align-items:center; gap:12px 14px; }
.bio-modal-copy .bio-modal-awards[hidden] { display:none; }
.bio-modal-copy .bio-award-group { display:contents; }
@media (max-width: 720px) {
  .bio-modal-copy .bio-modal-awards { gap:10px; }
}
@media (min-width: 721px) {
  .bio-modal-copy .bio-award-group img { height:104px; }
  .bio-modal-copy .bio-award-ihc img { height:110px; }
}

.about-split-media--office {
  aspect-ratio: 3 / 4;
  max-height: none;
  width: min(100%, calc(280px * 4 / 3));
}
.about-split-media--office img {
  object-position: center 40%;
}

/* ===== Nav dropdowns (About, Updates) — added Oct 2026 ===== */
.nav .has-sub { position: relative; }
.nav .nav-parent {
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--slate);
  background: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  padding: 0.2rem 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: inherit;
  transition: color .15s, border-color .15s;
}
.nav .nav-parent:hover,
.nav .has-sub.open > .nav-parent { color: var(--maroon); }
.nav .has-sub.is-current > .nav-parent {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}
.nav .nav-parent:focus-visible,
.nav .subnav a:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.nav .nav-caret {
  width: 0.4rem; height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform .15s;
}
.nav .has-sub.open > .nav-parent .nav-caret { transform: translateY(0.08rem) rotate(-135deg); }
.nav .subnav { list-style: none; margin: 0; padding: 0; display: none; }
.nav .has-sub.open > .subnav { display: block; }

@media (min-width: 721px) and (min-height: 501px), (min-width: 721px) and (orientation: portrait) {
  .primary-nav .subnav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: -1rem;
    min-width: 12.5rem;
    background: rgba(255, 255, 255, 0.6); /* 40% translucent */
    border-top: 2px solid var(--maroon);
    box-shadow: 0 10px 28px rgba(50, 62, 72, 0.14), 0 2px 6px rgba(50, 62, 72, 0.08);
    padding: 0.4rem 0;
    z-index: 200;
  }
  /* hover bridge so the panel doesn't close crossing the gap */
  .primary-nav .subnav::before {
    content: ""; position: absolute; left: 0; right: 0; top: -0.75rem; height: 0.75rem;
  }
  .primary-nav .subnav li { display: block; }
  .primary-nav .subnav a {
    display: block;
    padding: 0.6rem 1rem;
    border-bottom: 0;
    white-space: nowrap;
    color: var(--slate);
  }
  .primary-nav .subnav a:hover { background: rgba(255, 255, 255, 0.35); color: var(--maroon); }
  .primary-nav .subnav a[aria-current="page"] {
    color: var(--maroon);
    border-bottom: 0;
    box-shadow: inset 3px 0 0 var(--maroon);
    background: rgba(255, 255, 255, 0.35);
  }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .nav .nav-parent { font-size: 0.85rem; }
}

@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) {
  .nav .nav-parent {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 1.05rem;
    padding: 0.85rem 0.15rem;
    border-bottom: none;
    text-align: left;
  }
  .nav .has-sub.is-current > .nav-parent { border-bottom: none; }
  .nav .nav-caret { margin-right: 0.35rem; }
  .nav .subnav { padding: 0 0 0.5rem 1rem; border-left: 2px solid #ebebec; margin-left: 0.15rem; }
  .nav .subnav li { border-bottom: none; }
  .nav .subnav a { font-size: 1rem; padding: 0.55rem 0.15rem; }
}

/* ===== Mobile menu: 40% translucent overlay over the page — added Oct 2026 ===== */
@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) {
  .nav-toggle nav {
    position: absolute;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 0;
    padding: 0.25rem 1.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.6); /* 40% translucent */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px); /* softens the page behind so menu text stays legible */
    border-top: 1px solid rgba(235, 235, 236, 0.8);
    box-shadow: 0 10px 24px rgba(50, 62, 72, 0.12);
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    z-index: 300;
  }
}

/* ===== Desktop nav: bold on hover (no layout shift) — added Oct 2026 ===== */
.primary-nav .nav-label { display: inline-flex; flex-direction: column; }
.primary-nav .nav-label::after {
  content: attr(data-label);
  font-weight: 700;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
@media (hover: hover) {
  .primary-nav .nav a:hover .nav-label,
  .primary-nav .nav .nav-parent:hover .nav-label { font-weight: 700; }
}

/* DFDL "Your gateway to growth in Asia" block (copied from dfdl.com home page), about.html */
.dfdl-gateway { padding-top: 24px; }
.dfdl-gateway-inner { display: flex; align-items: center; gap: 80px; }
.dfdl-gateway-lists, .dfdl-gateway-map { flex: 1 1 0; min-width: 0; }
.dfdl-gateway h2 { margin: 0; color: #004c45; font-family: Calibri, Carlito, "Segoe UI", sans-serif; font-weight: 400; font-size: 2rem; line-height: 1.25; }
.dfdl-gateway-bar { width: 80px; height: 4px; background: #77dd77; margin: 16px 0 24px; }
.dfdl-gateway h3 { margin: 40px 0 0; color: #000; font-family: Calibri, Carlito, "Segoe UI", sans-serif; font-weight: 400; font-size: 1.6rem; }
.dfdl-gateway-bar + h3 { margin-top: 40px; }
.dfdl-gateway ul { list-style: none; padding: 0; margin: 24px 0 0; }
.dfdl-gateway-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
.dfdl-gateway-desks { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.dfdl-gateway li { margin: 0; }
.dfdl-gateway li a { display: inline-flex; align-items: center; gap: 8px; color: #004c45; text-decoration: none; font-size: 1.05rem; }
.dfdl-gateway li a:hover, .dfdl-gateway li a:focus-visible { text-decoration: underline; }
.dfdl-gateway li img { width: 24px; height: 24px; flex: 0 0 24px; display: block; }
.dfdl-gateway-map { position: relative; max-width: 712px; }
.dfdl-gateway-map img { display: block; width: 100%; height: auto; }
.dfdl-gateway-map .dfdl-gateway-map-labels { position: absolute; inset: 0; }
svg.dfdl-gateway-map-labels { display: block; width: 100%; height: 100%; overflow: hidden; }
.dfdl-map-link { cursor: pointer; outline: none; }
.dfdl-map-link .dfdl-map-fill { transition: fill 0.15s ease; }
.dfdl-map-link:hover .dfdl-map-fill, .dfdl-map-link:focus-visible .dfdl-map-fill { fill: var(--maroon); }
.dfdl-map-link:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
@media (max-width: 900px) {
  .dfdl-gateway-inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .dfdl-gateway-map { margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .dfdl-gateway h2 { font-size: 1.6rem; }
  .dfdl-gateway h3 { font-size: 1.35rem; margin-top: 28px; }
  .dfdl-gateway-offices { grid-template-columns: repeat(2, 1fr); }
  .dfdl-gateway-desks { gap: 16px 24px; }
}

/* ===== Home hero: slow zoom-in on each rotating photo (DFDL-style) — added Oct 2026 ===== */
.hero-on-photo-bg .hero-slide {
  transform: scale(1.15) translateX(6.522%);
  transform-origin: center center;
  will-change: transform, opacity;
  /* after fading out, snap back to normal size while invisible */
  transition: opacity 1.1s ease, transform 0s linear 1.2s;
}
.hero-on-photo-bg .hero-slide.is-active {
  transform: scale(1.15) translateX(-6.522%);
  transition: opacity 1.1s ease, transform 5s linear;
}
@media (prefers-reduced-motion: reduce) {
  .hero-on-photo-bg .hero-slide,
  .hero-on-photo-bg .hero-slide.is-active { transform: none; transition: opacity 1.1s ease; }
}

/* ===== Nav: "DFDL Locations" grouped dropdown (Offices + Desks, with flags) — added Oct 2026 ===== */
.nav .subnav-grouped .subnav-list { list-style: none; margin: 0; padding: 0; }
.nav .subnav-grouped .subnav-heading {
  display: block;
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}
.nav .subnav-grouped a { display: flex; align-items: center; gap: 0.55rem; }
.nav .subnav-grouped .nav-flag {
  width: 18px; height: 18px; flex: 0 0 18px; display: block;
}

@media (min-width: 721px) and (min-height: 501px), (min-width: 721px) and (orientation: portrait) {
  /* Right-aligned to the parent so the panel never runs past the right edge */
  .primary-nav .has-sub-grouped > .subnav {
    left: auto;
    right: -1rem;
    min-width: 0;
    padding: 0.85rem 0.5rem 0.6rem;
  }
  .primary-nav .has-sub-grouped.open > .subnav {
    display: grid;
    grid-template-columns: auto auto; /* Offices (2 cols) | Desks (1 col) */
  }
  .primary-nav .subnav-grouped > .subnav-group { padding: 0 0.5rem; }
  .primary-nav .subnav-grouped > .subnav-group-desks {
    border-left: 1px solid rgba(133, 21, 45, 0.18);
    padding-left: 1rem;
  }
  .primary-nav .subnav-grouped .subnav-heading { padding: 0 0.5rem 0.4rem; }
  .primary-nav .subnav-group-offices .subnav-list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 0.25rem;
  }
  .primary-nav .subnav-grouped .subnav-list a {
    display: flex;
    padding: 0.42rem 0.5rem;
    font-size: 0.92rem;
  }
}

/* Narrow desktop/tablet (721–800px): tighten the ribbon so six items stay on one line */
@media (min-width: 721px) and (max-width: 800px) {
  .primary-nav .nav { column-gap: 0.75rem; }
}
@media (min-width: 721px) and (max-width: 760px) {
  .primary-nav .nav { column-gap: 0.5rem; }
}

@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) {
  .nav .has-sub-grouped.open > .subnav { display: block; }
  .nav .subnav-grouped .subnav-group { padding: 0.35rem 0 0.25rem; }
  .nav .subnav-grouped .subnav-heading { padding: 0.25rem 0.15rem 0.1rem; }
  .nav .subnav-grouped .subnav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
  }
  .nav .subnav-grouped .subnav-list a { display: flex; }
}

/* ===== "In collaboration with DFDL": 1.5x size, DFDL green — added Oct 2026 ===== */
.logo-member { font-size: 0.936rem; color: #004C45; }
.footer-affiliation-note { font-size: 1.125rem; color: #004C45; }
@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) {
  .logo-member { font-size: 0.84rem; }
}

/* ===== About: tighten gap above DFDL gateway map section — added Oct 2026 ===== */
.block:has(+ .dfdl-gateway) { padding-bottom: 0; }
.dfdl-gateway { padding-top: 8px; }

/* ===== Team: name box turns 40% DFDL green on hover (desktop) — added Oct 2026 ===== */
@media (hover: hover) {
  a.team-card.has-photo { transition: background-color 0.18s ease; }
  a.team-card.has-photo h3 { transition: color 0.18s ease; }
  a.team-card.has-photo:hover { background-color: #A25B6B; }
  a.team-card.has-photo:hover h3, a.team-card.has-photo:hover p { color: #fff; }
}

/* ===== Join Us: "Apply to OS Law" button, maroon on hover — added Oct 2026 ===== */
.join-apply-cta { margin: 1.75rem 0 0; }
.btn-pill.btn-apply { transition: background-color .2s ease; }
.btn-pill.btn-apply:hover,
.btn-pill.btn-apply:focus-visible { background: var(--maroon); color: #fff; }

/* Bio modal: envelope email icon under the profile photo */
.bio-modal-email { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; margin:0.6rem 0 0 -6px; color:var(--slate); border-radius:50%; line-height:0; }
.bio-modal-email svg { width:22px; height:22px; display:block; }
a.bio-modal-email { cursor:pointer; text-decoration:none; transition:color 0.2s ease, background-color 0.2s ease; }
a.bio-modal-email:hover, a.bio-modal-email:focus-visible { color:var(--maroon); background-color:rgba(131,36,57,0.08); }
a.bio-modal-email:focus-visible { outline:2px solid var(--maroon); outline-offset:2px; }
span.bio-modal-email { cursor:default; }
@media (max-width: 720px) {
  .bio-modal-email { margin-top:0.45rem; }
}

/* ===== Bio modal envelope: centered under photo, 1.5x size — added Oct 2026 ===== */
.bio-modal-email { display:flex; width:50px; height:50px; margin:0.6rem auto 0; }
.bio-modal-email svg { width:33px; height:33px; }
@media (max-width: 720px) {
  .bio-modal-email { margin:0.45rem auto 0; }
}

/* Article photo gallery (news detail pages) */
.article-body .article-gallery { margin: 1.5rem 0 1.75rem; display: grid; gap: 0.75rem; }
.article-body .article-gallery figure { margin: 0; overflow: hidden; background: #e8ebef; }
.article-body .article-gallery img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.article-body .article-gallery-1 { grid-template-columns: 1fr; }
.article-body .article-gallery-1 img { aspect-ratio: 4 / 3; height: auto; }
.article-body .article-gallery-2 { grid-template-columns: 1fr 1fr; }
.article-body .article-gallery-2 figure { aspect-ratio: 4 / 3; }
/* portrait (3:4) beside landscape (4:3) at equal height: widths 9:16 */
.article-body .article-gallery-pl { grid-template-columns: 9fr 16fr; }
.article-body .article-gallery-pl figure.is-portrait { aspect-ratio: 3 / 4; }
.article-body .article-gallery-pl figure.is-landscape { aspect-ratio: 4 / 3; }
@media (max-width: 720px) {
  .article-body .article-gallery-2,
  .article-body .article-gallery-pl { grid-template-columns: 1fr; }
  .article-body .article-gallery-pl figure.is-portrait { aspect-ratio: auto; max-width: 75%; justify-self: center; }
  .article-body .article-gallery-pl figure.is-portrait img { height: auto; max-height: 520px; object-fit: contain; }
}

/* ===== Team: photo backdrop turns studio maroon on card hover (desktop) — added Oct 2026 ===== */
.team-card .portrait { position: relative; }
.team-card .portrait img.portrait-maroon { display: none; }
@media (hover: hover) {
  .team-card .portrait img.portrait-maroon {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  a.team-card.has-photo:hover .portrait img.portrait-maroon,
  a.team-card.has-photo:focus-visible .portrait img.portrait-maroon { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .team-card .portrait img.portrait-maroon { transition: none; }
}

/* DFDL section: photo top/bottom flush with the text column (desktop) */
@media (min-width: 901px) {
  .about-split--fit { align-items: stretch; }
  .about-split--fit .about-split-media { aspect-ratio: auto; max-height: none; height: auto; }
  .about-split--fit .about-split-copy > :first-child { text-box: trim-start cap alphabetic; }
  .about-split--fit .about-split-copy > :last-child,
  .about-split--fit .about-copy p:last-child { margin-bottom: 0; text-box: trim-end cap alphabetic; }
}
@media (min-width: 901px) {
  .about-split--fit .about-split-media img { object-position: center 85%; }
}

/* Light maroon hover on listing cards (home, Client Alerts, Publications, News & Events) */
.update-card, .news-card, .pub-card { transition: background-color .25s ease, border-color .25s ease, filter .15s, transform .15s; }
.update-card .card-body, .news-card .card-body, .pub-card .card-body { transition: background-color .25s ease; }
@media (hover: hover) {
  .update-card:hover, .news-card:hover, .pub-card:hover,
  .ne-stack .news-card:hover {
    filter: none;
    background-color: #f4e6ea;
    border-color: #e3c4cc;
  }
  .update-card:hover .card-body, .news-card:hover .card-body, .pub-card:hover .card-body { background-color: #f4e6ea; }
}

/* Featured client alert: Read more beside More updates */
.featured-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2.25rem; }
.featured-links .link-arrow { margin-top: 0; }

/* Bio modal envelope on phones: centre under the 140px photo, not the full-width column */
@media (max-width: 720px) {
  .bio-modal-email { margin: 0.45rem 0 0 45px; }
}

/* Phones in portrait: two cards per row everywhere (home updates, team) */
@media (max-width: 720px) and (orientation: portrait) {
  .updates-grid, .updates-grid.cols-4, .updates-grid.cols-5, .pub-grid, .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid, .team-grid.cols-7 { gap: 0.7rem; }
  .team-grid .team-card,
  .team-grid.cols-3 .team-card,
  .team-grid.cols-5 .team-card,
  .team-grid.cols-7 .team-card {
    flex: 0 0 calc((100% - 0.7rem) / 2);
    max-width: calc((100% - 0.7rem) / 2);
  }
}

/* News & Events on phones: show top 4 per column, "Show all" reveals the rest */
.ne-more { display: none; }
@media (max-width: 720px) {
  .ne-grid:not(.is-expanded) > .news-card:nth-child(n+5) { display: none; }
  .ne-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
}

/* Home Contact Us: address, phone and email side by side in one row */
.contact-grid:not(.contact-grid-map) { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .contact-grid:not(.contact-grid-map) .contact-list {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr);
    column-gap: 2.5rem;
    align-items: start;
  }
}

/* Portrait phones: center the footer links */
@media (max-width: 720px) and (orientation: portrait) {
  .footer-band-nav { align-items: stretch; }
  .footer-nav { justify-content: center; text-align: center; }
}

/* About page: LinkedIn and email icons under the office photo */
.about-office-col { min-width: 0; }
.about-office-col .about-split-media--office { margin: 0 auto; }
.about-office-links { display: flex; justify-content: center; gap: 0.9rem; margin-top: 0.8rem; }
.about-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; color: var(--slate); border-radius: 50%; line-height: 0; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.about-icon svg { width: 52px; height: 52px; display: block; }
a.about-icon:hover, a.about-icon:focus-visible { color: var(--maroon); background-color: rgba(131,36,57,0.08); }
a.about-icon:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
span.about-icon { cursor: default; }

/* Home Contact Us: fourth column for LinkedIn */
@media (min-width: 600px) {
  .contact-grid:not(.contact-grid-map) .contact-list {
    grid-template-columns: minmax(0, 2fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 2rem;
  }
}

/* Bio modal: envelope and LinkedIn icons side by side under the photo */
.bio-modal-links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.bio-modal-links .bio-modal-email { margin: 0; }
@media (max-width: 720px) {
  .bio-modal-links { width: 140px; margin-top: 0.45rem; }
  .bio-modal-links .bio-modal-email { margin: 0; }
}

/* ===== Team member profile pages (team/<slug>.html) — replaces bio modal, Oct 2026 ===== */
.profile-page { padding: 2.25rem 0 3.5rem; background: #fff; }
.profile-wrap { max-width: 980px; }
.profile-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0 2.5rem; align-items: start; margin-top: 1.25rem; }
.profile-photo { width: 220px; }
.profile-photo img { width: 220px; height: 275px; object-fit: cover; object-position: top center; display: block; border-radius: 2px; border-bottom: 4px solid var(--maroon); }
.profile-links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.profile-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; color: var(--slate); border-radius: 50%; line-height: 0; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.profile-icon svg { width: 33px; height: 33px; display: block; }
a.profile-icon:hover, a.profile-icon:focus-visible { color: var(--maroon); background-color: rgba(131,36,57,0.08); }
a.profile-icon:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
span.profile-icon { cursor: default; }
.profile-copy { min-width: 0; }
.profile-copy .tag { display: inline-block; margin-bottom: 0.5rem; }
.profile-copy h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 400; margin: 0 0 1.1rem; line-height: 1.2; }
.profile-body { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.profile-body p { margin: 0 0 1em; }
.profile-body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .profile-page { padding: 1.5rem 0 2.5rem; }
  .profile-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .profile-photo, .profile-photo img { width: 170px; }
  .profile-photo img { height: 212px; }
}
