@font-face {
  font-family: Jakarta;
  src: url(plus-jakarta-sans-latin.woff2);
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(instrument-serif-latin.woff2);
  font-display: swap;
}
body {
  font-family: Jakarta, system-ui, sans-serif;
  background: #f8fafc;
}
h1 {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
}
main:has(.brief) {
  max-width: 1080px;
  width: calc(100% - 40px);
  margin: 28px auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.brief {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border: 1px solid #dbdcdf;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px #172b4010;
}
.brief > section {
  min-width: 0;
  padding: 28px;
}
.brief .identity {
  border-top: 4px solid var(--brand);
}
.brief .brand {
  gap: 14px;
  font-size: 16px;
}
.brief .brand img {
  height: 44px;
  max-width: 150px;
}
.brief h1 {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.12;
  margin: 24px 0 20px;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.brief .identity > p {
  font-size: 14px;
  line-height: 1.7;
  color: #536071;
}
.brief .detail {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  mask-image: none;
  font-size: 14px;
  line-height: 1.75;
  padding-right: 12px;
  margin: 20px 0 14px;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}
.studio {
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--brand) 4%, #f7f7f8);
}
.studio h2 {
  font-size: 22px;
  text-wrap: balance;
  line-height: 1.25;
  margin: 0;
}
.studio article {
  background: white;
  border-radius: 14px;
  margin: 20px 0 0;
  padding: 18px 20px;
}
.studio article strong {
  font-size: 12px;
  color: #687487;
}
.studio article p {
  font-size: 16px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.studio .next > p {
  font-size: 13px;
  color: #687487;
  margin: 0 0 14px;
}
.studio .actions a {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 12px;
}
.studio .next {
  margin-top: 24px;
}
.actions a {
  position: relative;
  background: white;
  font-weight: 650;
}
.actions a:first-child {
  background: var(--button);
  color: white;
  border-color: var(--button);
}
.actions a:focus-visible {
  outline-color: #24384d;
}
@media (prefers-reduced-motion: no-preference) {
  .actions a:first-child:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, #ffffffb8 48%, transparent 66%) 0 0/300%
      100%;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: edge 3s linear infinite;
  }
  .actions a span {
    display: inline-block;
    transition: transform 0.18s;
  }
  .actions a:hover span,
  .actions a:focus-visible span {
    transform: translateX(3px);
  }
}
@keyframes edge {
  to {
    background-position: 150% 0;
  }
}
@media (max-width: 740px) {
  .brief {
    grid-template-columns: 1fr;
  }
  main:has(.brief) {
    margin: 12px auto;
    width: calc(100% - 24px);
    min-height: 0;
  }
  .brief > section {
    padding: 24px;
  }
  .brief h1 {
    margin-top: 26px;
  }
  main:has(.brief) footer {
    padding: 0 22px 20px;
  }
}
.detail p {
  white-space: pre-line;
}

.brief .identity > h2 {
  font-size: 16px;
}

main:has(.catalog-intro) {
  max-width: 1160px;
  padding: clamp(20px, 4vw, 56px);
  border: none;
}
.catalog-intro h1 {
  margin: 0 0 12px;
}
.catalog-intro p {
  max-width: 62ch;
  margin: 0 0 36px;
  color: #475467;
}
.employer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 355px), 1fr));
  gap: 18px;
}
.employer-card {
  padding: 22px;
  border: 1px solid #dce1e8;
  border-radius: 16px;
}
.employer-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}
.employer-card h2 a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.employer-card img {
  object-fit: contain;
}
.employer-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.employer-card li {
  max-width: 100%;
}
.employer-card li a {
  padding: 6px 12px;
  border: 1px solid #d5dae1;
  border-radius: 18px;
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.employer-card li a:hover {
  background: #f1f4f8;
}
.employer-card a:hover {
  text-decoration: underline;
}

.site-signature {
  flex-basis: 100%;
  color: #596372;
  font-size: 12px;
}

/* Hosted applications read as a complete role, followed by the application step. */
main:has(.application-page) {
  max-width: 860px;
}
.brief.application-page {
  grid-template-columns: minmax(0, 1fr);
}
.application-page .brand {
  gap: 16px;
  font-size: 20px;
}
.application-page .brand img {
  height: 64px;
  max-width: 180px;
  object-fit: contain;
}
.application-page h1 {
  font-family: Instrument, Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin: 32px 0;
  overflow-wrap: break-word;
}
.application-page .identity > h2 {
  font-size: 20px;
}
.application-page .identity p {
  font-size: 16px;
  line-height: 1.8;
}
.application-page .detail {
  max-height: 352px;
  overflow-y: auto;
  mask-image: none;
  margin-top: 24px;
  overflow-wrap: anywhere;
}
.application-page .detail p:first-line {
  font-weight: inherit;
}
.application-page .studio {
  border-top: 1px solid #dbdcdf;
}
.application-page .studio h2 {
  font-size: 24px;
}
.application-page .actions {
  max-width: 360px;
}

main:has(.brief) footer {
  margin-top: 18px;
  padding: 0 4px 20px;
}
.site-signature a {
  text-decoration: none;
}
.site-signature a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep navigation and attribution outside the role's action panel. */
.publication-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid #dce1e8;
  margin-top: 28px;
  padding-top: 20px;
  color: #596372;
}
.publication-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.publication-footer .site-signature {
  flex-basis: auto;
  margin-left: auto;
}
.company-page .brand img {
  width: 64px;
  height: 64px;
}
.company-page > p {
  color: #536071;
  max-width: 65ch;
}
.company-page li a {
  padding: 18px 20px;
  border: 1px solid #dce1e8;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.company-page li + li {
  margin-top: 12px;
}
.company-page li a:hover {
  background: #eef2f7;
}
@media (max-width: 740px) {
  .publication-footer .site-signature {
    margin-left: 0;
  }
}

.publication-session {
  display: flex;
  justify-content: flex-end;
  padding-block: 4px 16px;
}
.publication-session a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #d4e0ef;
  border-radius: 999px;
  background: white;
  color: #14213c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.publication-session a.signed-in {
  border-color: transparent;
  background: #0064e0;
  color: white;
}
.publication-session img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
