@import url("portfolio-fonts.css");

/* Approved community case opening. Styles below are scoped to the opening. */
.community-case-nav,
.community-case-hero {
  --case-ink: #122036;
  --case-muted: #526882;
  --case-blue: #007aff;
  --case-blue-text: #0067d7;
  --case-line: #d7e3f0;
  font-family: "Portfolio Sans", "Microsoft YaHei", sans-serif;
  color: var(--case-ink);
  letter-spacing: 0;
}
nav.community-case-nav {
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}
.community-case-nav .site-nav-inner {
  width: min(1440px, calc(100% - 96px));
  height: 92px;
  padding: 0;
  margin: auto;
  gap: 28px;
}
.community-case-nav .case-identity {display:flex; align-items:center; gap:30px}
.community-case-nav .site-brand {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--case-ink);
}
.community-case-nav .case-identity-note {font-size:16px; color:var(--case-muted); white-space:nowrap}
.community-case-nav .site-links {gap:36px}
.community-case-nav .site-links a {font-size:16px; letter-spacing:0; color:var(--case-muted)}
.community-case-nav .site-links a[aria-current="page"] {color:var(--case-ink); font-weight:500; position:relative}
.community-case-nav .site-links a[aria-current="page"]::after {
  content:""; position:absolute; bottom:0; height:1px; left:0; right:0; background:currentColor;
}
.community-case-nav .site-links .case-contact {
  min-width:112px; min-height:48px; margin-left:12px; padding:0 20px;
  color:white; background:var(--case-ink); border-radius:28px; font-weight:600;
}
.community-case-nav a:focus-visible,
.community-case-hero a:focus-visible {outline:2px solid var(--case-blue); outline-offset:5px}
.community-case-hero {padding:64px 0 48px; background:white; text-align:left}
.community-hero-container {width:min(1440px, calc(100% - 96px)); margin:auto}
.community-hero-layout {display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); align-items:center; gap:48px}
.community-hero-copy {min-width:0}
.community-hero-project {font-size:27px; font-weight:700; line-height:1.3}
.community-hero-business {margin-top:16px; font-size:17px; color:var(--case-muted); line-height:1.6}
.community-case-hero h1 {
  margin:38px 0 0; font-size:clamp(36px,3vw,48px); line-height:1.36; letter-spacing:-.025em;
  font-weight:700; color:var(--case-ink); text-align:left;
}
.community-hero-role {margin-top:44px}
.community-hero-role strong {font-size:18px; font-weight:650; color:var(--case-blue-text)}
.community-hero-role p {font-size:19px; line-height:1.8; color:var(--case-muted); margin-top:20px}
.community-hero-actions {display:flex; align-items:center; flex-wrap:wrap; gap:30px; margin-top:50px}
.community-hero-actions a {display:inline-flex; align-items:center; gap:18px; min-height:58px; font-size:17px; line-height:1.3}
.community-hero-actions .community-primary-action {padding:16px 23px; border-radius:10px; color:white; background:var(--case-ink); font-weight:600}
.community-hero-actions .community-secondary-action {color:var(--case-muted)}
.community-hero-actions svg {width:20px; height:20px; flex:none}
.community-hero-figure {margin:0; min-width:0}
.community-contribution-svg {display:block; width:100%; height:auto; overflow:visible}
.community-contribution-svg text {font-family:"Portfolio Sans", "Microsoft YaHei", sans-serif}
.community-contribution-mobile {display:none}
.community-case-hero .community-sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.community-hero-results {margin-top:76px; border-top:1px solid var(--case-line); padding:20px 0 0}
.community-hero-results>h2 {font-size:15px; color:var(--case-muted); font-weight:400; line-height:1.4; text-align:left; letter-spacing:0}
.community-results-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:26px; gap:28px}
.community-result {display:flex; align-items:flex-start; gap:26px; min-width:0; min-height:92px; padding:0 20px 0 0}
.community-result+.community-result {border-left:1px solid var(--case-line); padding-left:28px}
.community-result>strong {font-size:43px; line-height:1.1; color:var(--case-blue); letter-spacing:-.035em; white-space:nowrap; font-weight:700}
.community-result>div {padding-top:5px}
.community-result b {display:block; font-size:17px; line-height:1.6; font-weight:650}
.community-result span {display:block; margin-top:9px; font-size:15px; color:var(--case-muted); line-height:1.5}
.community-hero-visible .section-nav {visibility:hidden; pointer-events:none}

@media (max-width:1279px) {
  .community-case-nav .site-links {gap:24px}
  .community-case-nav .case-identity-note {display:none}
  .community-hero-layout {grid-template-columns:1fr; gap:44px}
  .community-hero-copy {max-width:740px}
  .community-case-hero h1 {font-size:46px}
  .community-hero-role {margin-top:28px}
  .community-hero-actions {margin-top:30px}
  .community-hero-figure {width:100%; max-width:850px; justify-self:center}
  .community-result {flex-direction:column; gap:10px}
  .community-result>div {padding-top:0}
}
@media (max-width:640px) {
  .community-case-nav .site-nav-inner {position:relative; width:calc(100% - 40px); height:auto; min-height:124px; flex-wrap:wrap; gap:8px; padding:20px 0 8px}
  .community-case-nav .site-brand {font-size:23px}
  .community-case-nav .site-links {width:100%; justify-content:space-between; gap:8px}
  .community-case-nav .site-links a {font-size:14px}
  .community-case-nav .site-links .case-contact {position:absolute; top:14px; right:0; min-width:96px; min-height:44px; margin:0; font-size:14px; padding:0 16px}
  .community-case-hero {padding-top:36px; padding-bottom:30px}
  .community-hero-container {width:calc(100% - 40px)}
  .community-hero-layout {gap:34px}
  .community-hero-project {font-size:24px}
  .community-hero-business {font-size:16px; margin-top:10px}
  .community-case-hero h1 {font-size:clamp(29px,6.6vw,39px); line-height:1.4; margin-top:26px}
  .community-hero-role {margin-top:28px}
  .community-hero-role strong {font-size:17px}
  .community-hero-role p {font-size:16px; margin-top:14px}
  .community-hero-actions {gap:14px; margin-top:28px}
  .community-hero-actions a {font-size:15px; min-height:48px; gap:14px}
  .community-hero-actions .community-primary-action {padding:14px 18px}
  .community-contribution-svg {display:none}
  .community-contribution-mobile {display:grid; margin:0; padding:4px 20px; list-style:none; background:#f4f8fd; border:1px solid #e2ebf7; border-radius:16px}
  .community-contribution-mobile li+li {border-top:1px solid var(--case-line)}
  .community-contribution-mobile a {display:block; min-height:76px; padding:18px 0}
  .community-contribution-mobile h3 {font-size:18px; color:var(--case-blue-text); letter-spacing:0; line-height:1.5}
  .community-contribution-mobile p {font-size:15px; color:var(--case-muted); line-height:1.7; margin-top:6px}
  .community-hero-results {margin-top:36px; padding-top:18px}
  .community-results-grid {grid-template-columns:1fr; gap:20px; margin-top:20px}
  .community-result {flex-direction:row; min-height:0; gap:22px; padding:0}
  .community-result+.community-result {padding:20px 0 0; border-left:0; border-top:1px solid var(--case-line)}
  .community-result>strong {font-size:36px; min-width:104px}
  .community-result b {font-size:15px}
  .community-result span {font-size:14px; margin-top:5px}
}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
  .community-case-nav {transition:none!important}
}
@media print {
  .community-case-hero {padding-top:0}
  .community-hero-layout {display:block}
  .community-hero-copy {max-width:none}
  .community-hero-actions {display:none}
  .community-hero-figure {max-width:700px; margin:24px auto}
  .community-hero-results {margin-top:28px}
}
