/* Visual Identity tab: uses the portal typography (Lexend). Instrument Sans / IBM Plex Mono load only for the Fonts asset specimen. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(/assets/vi/fonts/InstrumentSans-Regular.ttf) format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url(/assets/vi/fonts/InstrumentSans-Medium.ttf) format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600 700; font-display: swap; src: url(/assets/vi/fonts/InstrumentSans-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/assets/vi/fonts/IBMPlexMono-Regular.ttf) format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/assets/vi/fonts/IBMPlexMono-Medium.ttf) format("truetype"); }

/* Header: lock beside the logo, plain text links on the right */
.top .lock { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; padding-left: 8px; font-size: 13px; font-weight: 500; color: var(--carbon); white-space: nowrap; }
.tabs { display: flex; gap: 28px; }
.tabs a {
  position: relative; height: 64px; display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .18s ease;
}
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #0217cc; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.tabs a:hover { color: var(--ink); }
.tabs a:hover::after, .tabs a[aria-current="page"]::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: #0217cc; }
.tabs a:focus-visible, .btn:focus-visible, .side a:focus-visible { outline: 2px solid var(--eucalyptus); outline-offset: 3px; border-radius: 4px; }

/* Page-level download: files for the page you are on */
.page-bar { max-width: 1440px; margin: 0 auto; padding: 18px 24px 0; display: flex; justify-content: flex-end; }
.page-bar + .shell { padding-top: 12px; }
.vi .cover-grid { padding-top: clamp(20px, 3vw, 36px); }

/* Sidebar: rail with an active marker */
.side nav { border-left: 1px solid var(--line); }
.side nav a { margin-left: -1px; padding: 10px 14px; }
.side nav a.on::before { content: none; }
.side-title { padding-left: 2px; }

/* Cover */
.vi .cover h1 { font-size: clamp(44px, 6.2vw, 80px); letter-spacing: -.04em; }
.vi .cover .lead { max-width: 40ch; }
.cover-art.dark { background: var(--carbon); }
.cover-art.dark .lg { width: 24%; }

/* 01 Guidelines */
.g-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; background: var(--linen); border-radius: 18px; padding: clamp(16px, 3vw, 32px);
}
.g-cover { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 40px -26px rgba(20, 35, 30, .5); transition: transform .25s ease; }
.g-cover:hover { transform: translateY(-3px); }
.g-cover img { width: 100%; height: auto; }
.g-info small { color: var(--eucalyptus); font-weight: 500; }
.g-info h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 10px 0 12px; }
.g-info p { color: #33423c; max-width: 36ch; }
.g-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn .size { font-size: 11px; opacity: .6; }

/* 02 Assets */
.assets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.asset {
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: 1fr auto; gap: 14px 10px;
  padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.asset:hover { border-color: var(--muted); transform: translateY(-2px); box-shadow: 0 16px 28px -22px rgba(20, 35, 30, .5); }
.asset .a-art { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--stage); display: grid; place-items: center; overflow: hidden; }
.asset .a-art.dark { background: var(--carbon); padding: 0 14%; }
.asset .a-art .lockup { width: 100%; }
.asset .a-meta { padding: 0 6px; min-width: 0; }
.asset h3 { font-size: 16px; font-weight: 600; }
.asset p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.asset > .ico { margin: 4px 8px 0 0; color: var(--eucalyptus); }
.a-art.elements { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14%; background: var(--linen); }
.a-art.elements img { width: 100%; height: 100%; object-fit: contain; }
.a-art.patterns { grid-template-columns: repeat(3, 1fr); gap: 0; align-items: stretch; }
.a-art.patterns img { width: 100%; height: 100%; object-fit: cover; }
.a-art.backgrounds { grid-template-columns: 1fr 1fr 1fr; gap: 0; align-items: stretch; }
.a-art.backgrounds img { width: 100%; height: 100%; object-fit: cover; }
.a-art.fonts { grid-template-columns: 1fr 1fr; background: var(--linen); }
.a-art.fonts span { text-align: center; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; }
.a-art.fonts .f-sans { font-family: "Instrument Sans", sans-serif; font-weight: 600; letter-spacing: -.03em; }
.a-art.fonts .f-mono { font-family: "IBM Plex Mono", monospace; font-weight: 500; color: var(--eucalyptus); }

.pkg {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
  margin-top: 24px; padding: clamp(22px, 3.4vw, 36px) clamp(22px, 3.4vw, 40px);
  background: var(--carbon); color: var(--linen); border-radius: 16px;
}
.pkg h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; font-weight: 600; }
.pkg p { color: rgba(243, 240, 232, .72); margin-top: 6px; }
.pkg .btn { background: var(--linen); color: var(--carbon); border-color: var(--linen); }
.pkg .btn:hover { background: #fff; border-color: #fff; }
.pkg .note { margin: 12px 0 0; text-align: right; font-size: 12px; color: rgba(243, 240, 232, .6); }

/* 03 Preview */
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.previews a { display: block; }
.previews img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease, box-shadow .25s ease; }
.previews a:hover img { transform: translateY(-3px); box-shadow: 0 20px 30px -22px rgba(20, 35, 30, .55); }
.previews span { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 10px; font-size: 14px; }
.previews b { font-weight: 500; }
.previews i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 1180px) {
  .assets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .g-card, .pkg { grid-template-columns: minmax(0, 1fr); }
  .pkg .note { text-align: left; }
  .previews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .side nav { border-left: 0; }
  .side nav a { margin-left: 0; padding: 14px 12px; }
}
@media (max-width: 680px) {
  .tab-x { display: none; }
  .top .lock { display: none; }
  .top-brand { margin-right: auto; }
  .tabs { gap: 18px; }
  .tabs a { font-size: 13px; }
  .page-bar { padding: 12px 16px 0; }
  .top-in { gap: 10px; }
  .assets { grid-template-columns: 1fr 1fr; gap: 10px; }
  .previews { grid-template-columns: 1fr; }
  .g-actions .btn { width: 100%; justify-content: center; }
  .pkg .btn { width: 100%; justify-content: center; white-space: normal; height: auto; min-height: 50px; padding: 12px 20px; text-align: center; }
}

.vi .cover-bar { align-items: baseline; }
