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

.art-hero {
  background: var(--blue);
  color: #fff;
  padding: clamp(64px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}
.art-hero h1 {
  color: #fff;
  margin: 0 0 14px;
  font-size: clamp(40px, 5.5vw, 56px);
  letter-spacing: -0.03em;
}
.art-hero p {
  margin: 0;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.art-library {
  padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 8vw, 96px);
  background: var(--bg);
}

.art-filter {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  z-index: 4;
}
.art-filter__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 168px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.art-filter__toggle:hover,
.art-filter.is-open .art-filter__toggle {
  border-color: color-mix(in srgb, var(--border) 50%, var(--blue) 50%);
}
.art-filter__toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.art-filter__chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.art-filter.is-open .art-filter__chevron {
  transform: rotate(180deg);
}
.art-filter__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.art-filter__menu[hidden] {
  display: none;
}
.art-filter__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.art-filter__option:hover {
  background: var(--card2);
}
.art-filter__option.is-selected {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}
.art-filter__check {
  width: 16px;
  flex-shrink: 0;
  opacity: 0;
}
.art-filter__option.is-selected .art-filter__check {
  opacity: 1;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.art-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.art-card.is-hidden {
  display: none;
}
.art-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--card2);
}
.art-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-card__media--portrait img {
  object-position: center 12%;
}
.art-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 24px;
  flex: 1;
}
.art-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.art-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.art-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}
.art-card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.art-empty {
  margin: 8px 0 0;
  padding: 28px 20px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.art-empty[hidden] {
  display: none;
}

.art-cta {
  margin-top: clamp(48px, 7vw, 80px);
}
.art-cta__inner {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  border-radius: 28px;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 56px);
  text-align: center;
}
.art-cta__inner::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.art-cta h2,
.art-cta p,
.art-cta .btn {
  position: relative;
  z-index: 1;
}
.art-cta h2 {
  color: #fff;
  margin: 0 auto 14px;
  max-width: 12em;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.art-cta p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
}
.art-cta .btn-primary {
  background: var(--yellow);
  color: #1a1500;
  border-color: var(--yellow);
  font-weight: 700;
}
.art-cta .btn-primary:hover {
  background: #e6b800;
  border-color: #e6b800;
}

a.art-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
a.art-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--border) 60%, var(--blue) 40%);
}
a.art-card:hover .art-card__title,
a.art-card:focus-visible .art-card__title {
  color: var(--blue);
}

.apd-hero {
  background: var(--hero-ink, #111827);
  color: #fff;
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
}
.apd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.apd-crumb {
  margin: 0 0 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.apd-crumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.apd-crumb a:hover {
  color: #fff;
}
.apd-hero h1 {
  color: #fff;
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.apd-hero__kicker {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.apd-hero__byline,
.apd-hero__date {
  margin: 0 0 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.apd-hero__lede {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.apd-hero .btn-demo {
  background: #fff;
  color: #111827;
  border-color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 18px;
}
.apd-hero .btn-demo:hover {
  background: #f3f4f6;
  border-color: #f3f4f6;
  box-shadow: none;
}
.apd-hero__media {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.apd-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}
.apd-hero__media--portrait img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 12%;
}

.apd-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
  background: var(--bg);
}
.apd-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.apd-aside {
  position: sticky;
  top: calc(var(--header-sticky-top) + 20px);
}
.apd-toc-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.apd-toc {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.apd-toc a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  border: 0;
}
.apd-toc a:hover,
.apd-toc a.is-active {
  color: var(--text);
}
.apd-side-card {
  padding: 20px 18px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.apd-side-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.apd-side-card p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.apd-side-card .btn {
  width: 100%;
  justify-content: center;
  border-radius: 10px;
  background: var(--yellow);
  color: #1a1500;
  border-color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
}
.apd-side-card .btn:hover {
  background: #e6b800;
  border-color: #e6b800;
}

.apd-content {
  max-width: 720px;
}
.apd-content > p:first-child,
.apd-content > h2:first-child {
  margin-top: 0;
}
.apd-content p,
.apd-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.apd-content p {
  margin: 0 0 18px;
}
.apd-content h2 {
  margin: 36px 0 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  scroll-margin-top: calc(var(--header-sticky-top) + 18px);
}
.apd-content h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.apd-content a {
  color: var(--blue);
  text-decoration: none;
}
.apd-content a:hover {
  text-decoration: underline;
}
.apd-figure {
  margin: 8px 0 28px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.apd-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.apd-table-wrap {
  margin: 8px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.apd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.apd-table th,
.apd-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.apd-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--card2);
}
.apd-table td:first-child,
.apd-table th:first-child {
  width: 32%;
  font-weight: 700;
  white-space: nowrap;
}
.apd-table tr:last-child td {
  border-bottom: 0;
}

.apd-footer-cta {
  margin-top: clamp(40px, 6vw, 64px);
}
.apd-footer-cta .art-cta__inner {
  background: var(--hero-ink, #111827);
}
.apd-footer-cta .art-cta__inner::after {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .apd-hero__grid,
  .apd-layout {
    grid-template-columns: 1fr;
  }
  .apd-aside {
    position: static;
  }
  .apd-hero__media {
    max-width: 520px;
  }
}
@media (max-width: 640px) {
  .art-grid {
    grid-template-columns: 1fr;
  }
  .art-cta h2 {
    max-width: none;
  }
  .apd-table td:first-child,
  .apd-table th:first-child {
    white-space: normal;
  }
}
