:root {
  color-scheme: light;
  --ink: #102e2c;
  --green: #065749;
  --muted: #506159;
  --forest: #063e38;
  --paper: #fff;
  --surface: #fff;
  --line: #d4dbd1;
  --mint: #dfebdb;
  --yellow: #ffd543;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #167658; outline-offset: 3px; }
.shell { width: min(1280px, calc(100% - 88px)); margin-inline: auto; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 2; top: 6px; left: 6px; padding: 9px; background: white; }
.header { border-bottom: 1px solid #39736a; background: var(--forest); color: #fff; }
.header-inner, .partners, .site-nav { display: flex; align-items: center; }
.header-inner { min-height: 70px; gap: clamp(10px, 2.7vw, 36px); }
.identity { color: #fff; font-size: clamp(20px, 2.5vw, 31px); font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.partners { gap: 7px; margin-left: auto; }
.partner { display: grid; place-items: center; background: #fff9e9; min-height: 33px; padding: 4px 10px; border-radius: 8px; }
.partner img { display: block; object-fit: contain; }
.xylos-logo { width: 90px; height: 21px; }
.histic-logo { width: 35px; height: 23px; }
.site-nav { gap: clamp(14px, 2.8vw, 36px); padding-left: clamp(14px, 2.7vw, 36px); border-left: 1px solid #4b756e; font-size: 14px; font-weight: 650; }
.site-nav a { padding-block: 6px; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--yellow); }
.header :focus-visible { outline-color: var(--yellow); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.add-project, .outline-button, .primary-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}
.add-project { background: var(--yellow); color: #162b22; flex: none; border-radius: 11px; }
.add-project:hover { background: #ffe27a; }
.outline-button { color: var(--green); background: var(--surface); border-color: #bdcbbc; }
.outline-button:hover { background: var(--mint); border-color: #87a493; }
.text-link { color: var(--green); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 43vw, 640px);
  background-color: var(--forest);
  background-image: linear-gradient(90deg, rgba(3,49,43,.98) 0%, rgba(3,49,43,.90) 23%, rgba(3,49,43,.54) 48%, rgba(3,49,43,.03) 75%), url('images/community-hero.webp');
  background-size: cover;
  background-position: center, center 49%;
  color: #fffdf0;
}
.intro::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: clamp(9px, 1.9vw, 29px);
  background: var(--paper);
  clip-path: polygon(0 67%, 2% 78%, 5% 49%, 9% 58%, 12% 37%, 15% 56%, 19% 34%, 22% 56%, 25% 31%, 28% 47%, 33% 26%, 36% 48%, 41% 39%, 45% 55%, 49% 33%, 53% 46%, 58% 32%, 63% 54%, 66% 39%, 70% 63%, 74% 47%, 79% 63%, 83% 45%, 87% 58%, 90% 37%, 94% 57%, 98% 36%, 100% 52%, 100% 100%, 0 100%);
  pointer-events: none;
}
.intro-inner { padding-block: clamp(38px, 6vw, 100px); }
.intro-copy { width: min(100%, 630px); }
.intro h1 { margin: 0; font-size: clamp(45px, 5.5vw, 86px); font-weight: 850; line-height: .98; letter-spacing: -.065em; }
.intro h1 em { color: var(--yellow); font-style: normal; }
.intro-copy > p { margin: 17px 0 23px; color: #f4f5e8; font-size: clamp(16px, 1.6vw, 23px); }
.hero-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.hero-tools .search { flex: 1 1 215px; max-width: 400px; background: #fff9eb; }
.hero-tools .hero-action { min-height: 49px; padding-inline: 17px; }
.intro a:focus-visible { outline-color: var(--yellow); }
.search { display: flex; align-items: center; gap: 13px; min-height: 49px; max-width: 620px; padding-inline: 15px; border: 1px solid #c5d4c6; border-radius: 7px; background: var(--surface); color: var(--ink); }
.search:focus-within { outline: 2px solid var(--yellow); outline-offset: 3px; }
.search input { width: 100%; min-width: 0; min-height: 46px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search-shortcut { flex: none; min-width: 23px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; text-align: center; color: var(--muted); font: 13px/1.3 var(--mono); }
.lens { position: relative; width: 14px; height: 14px; flex: none; border: 2px solid var(--green); border-radius: 50%; margin-right: 3px; }
.lens::after { position: absolute; content: ''; width: 7px; height: 2px; transform: rotate(45deg); background: var(--green); left: 9px; top: 11px; }
.featured { min-width: 0; padding: clamp(17px, 2.25vw, 30px); border-radius: 14px; background: #eef3df; align-self: start; margin-top: 14px; }
.featured-label { margin: 0 0 12px; color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.featured-title { margin: 0; font-size: clamp(21px, 2.45vw, 33px); line-height: 1.12; letter-spacing: -.05em; overflow-wrap: anywhere; }
.featured-title a:hover, .card-title a:hover, .repo-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.featured-description { color: #344f44; margin: 10px 0 16px; font-size: 15px; }
.featured-photo { display: block; margin-top: 17px; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: 9px; }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.language-tag { display: inline-block; padding: 3px 8px; border-radius: 4px; color: #245441; background: var(--mint); font-size: 13px; font-weight: 650; white-space: nowrap; }
.issue-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.primary-button { background: var(--yellow); color: #172d25; min-height: 35px; border-radius: 10px; }
.primary-button:hover { background: #ffe27a; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 0 clamp(20px, 4vw, 50px); margin-block: clamp(32px, 4.4vw, 65px); }
#explore, .directory-body, .help-panel { min-width: 0; scroll-margin-top: 16px; }
.directory-title { grid-column: 1 / -1; margin: 0 0 13px; font-size: clamp(31px, 4vw, 57px); line-height: 1.08; font-weight: 850; letter-spacing: -.062em; }
.directory-nav, .directory-views { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.directory-nav { grid-column: 1 / -1; justify-content: space-between; gap: 3px 8px; border-bottom: 1px solid var(--line); }
.directory-views a { padding: 8px 10px; font-weight: 650; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; scroll-margin-top: 14px; }
.directory-views a[aria-current='page'] { color: var(--green); border-color: #e7b816; }
.guide-link { font-size: 13px; margin-block: 5px; }
.controls { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-block: 16px; }
.languages { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.languages select, .sort select { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #f9f8f1; padding: 3px 8px; color: var(--ink); font-size: 14px; }
.sort, .availability-filter { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; font-size: 13px; }
.availability-filter input { accent-color: var(--green); width: 16px; height: 16px; }
.project-grid { display: grid; gap: 0; border-block: 1px solid var(--line); background: var(--surface); }
.project-card { min-width: 0; position: relative; border-top: 1px solid var(--line); padding: 13px 6px; }
.project-card:first-child { border-top: 0; border-radius: 8px 8px 0 0; }
.project-card:last-child { border-radius: 0 0 8px 8px; }
.project-card:focus-within, .project-card:hover { background: #f7f8f0; }
.repository-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 78px max-content; gap: 11px; align-items: center; }
.repository-row > .language-cell { justify-self: start; }
.repository-info { display: grid; min-width: 0; grid-template-columns: 33px 1fr; align-items: center; gap: 10px; }
.card-title { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.024em; overflow-wrap: anywhere; }
.repo-owner { color: var(--muted); font-size: 13px; font-weight: 500; }
.card-description { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.36; }
.project-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--mint); color: var(--green); font: 700 12px/1 var(--mono); }
.mark-xylos { position: relative; overflow: hidden; background: #17251f; }
.mark-xylos img { position: absolute; left: 9%; width: 410%; }
.mark-microsoft { grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; background: transparent; }
.mark-microsoft i { width: 100%; height: 100%; background: #df4b24; }
.mark-microsoft i:nth-child(2) { background: #76a823; }
.mark-microsoft i:nth-child(3) { background: #159bd1; }
.mark-microsoft i:nth-child(4) { background: #f5ab0f; }
.mark-vercel { background: #192724; }
.mark-vercel::before { content: ''; width: 59%; height: 52%; background: white; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mark-go { font: italic 800 17px/1 system-ui, sans-serif; color: #00699b; background: #ebf3f2; }
.issue-link { min-height: 34px; padding-inline: 4px; font-size: 13px; border-color: transparent; }
.issue-preview { margin: 5px 0 0 43px; color: var(--muted); font-size: 13px; }
.issue-preview summary { cursor: pointer; width: fit-content; }
.issue-preview ul { margin: 5px 0; padding-left: 17px; }
.issue-preview li + li { margin-top: 5px; }
.issue-preview small { margin-inline-start: 7px; }
.issue-preview a, .grid-message a, .catalog-footer a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.grid-message { padding: 20px; }
.grid-message p { margin: 0 0 8px; }
.grid-message button { padding: 0; border: 0; background: transparent; color: var(--green); font-weight: 700; text-decoration: underline; }
.issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; background: transparent; }
.issue-grid .issue-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.issue-grid .issue-card:hover { border-color: #a8b9aa; }
.issue-context, .issue-labels, .issue-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.issue-context { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.issue-context a { text-decoration: underline; text-underline-offset: 3px; }
.issue-labels { font-size: 13px; }
.issue-labels span { border-radius: 4px; color: var(--muted); background: #e9ede5; padding: 3px 7px; }
.issue-labels .status-available { background: #d6efdb; color: #164b31; }
.issue-labels .status-assigned, .issue-labels .status-in-progress { background: #f7e8da; color: #743616; }
.issue-actions { margin-top: auto; padding-top: 3px; }
.issue-actions .outline-button, .more-issues { min-height: 34px; font-size: 13px; padding-inline: 9px; }
.issue-actions .save-issue[aria-pressed='true'] { background: var(--mint); }
.more-issues { margin-top: 11px; }
.availability-note, .catalog-footer { color: var(--muted); font-size: 13px; }
#availability-progress:empty, .sponsor-rail:not(:has(#advertisement:not([hidden]), #ad-strip:not([hidden]))) { display: none; }
.workspace:has(.featured[hidden]) { grid-template-columns: minmax(0, 1fr); }
.catalog-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin: 10px 0 0; }
.catalog-footer p { margin: 0; }
.sponsor-rail { background: var(--forest); padding-block: clamp(26px, 3.3vw, 46px); color: white; }
.rail-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rail-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.055em; line-height: 1.1; }
.rail-heading .text-link { color: #ffe580; font-size: 13px; }
.ad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ad-strip { display: contents; }
.advertisement, .compact-ad { display: flex; position: relative; isolation: isolate; align-items: flex-end; min-width: 0; min-height: clamp(225px, 23vw, 315px); overflow: hidden; border: 1px solid #4c776a; border-radius: 12px; background: #12493f; }
.advertisement::before, .compact-ad::before { position: absolute; content: ''; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 5%, rgba(4,45,39,.62) 42%, #063e38 98%); }
.ad-visual, .compact-ad-visual { position: absolute; inset: 0; z-index: -2; }
.ad-visual img, .compact-ad-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.ad-copy, .compact-ad-body { min-width: 0; padding: clamp(13px, 1.55vw, 22px); }
.ad-headline, .compact-ad-copy h2 { margin: 3px 0; font-size: clamp(18px, 2.25vw, 32px); font-weight: 800; letter-spacing: -.05em; line-height: 1.12; overflow-wrap: anywhere; }
.ad-label, .compact-ad-copy .ad-label { margin: 0; color: #ecf4e9; font-size: 12px; font-weight: 650; }
.ad-offer { color: var(--yellow); font-size: 18px; font-weight: 800; }
.ad-detail, .compact-ad-detail { margin: 3px 0; color: #f2f5e8; font-size: 13px; }
.advertisement .outline-button, .compact-ad .outline-button { min-height: 35px; margin-top: 8px; border-color: transparent; border-radius: 10px; background: var(--yellow); color: #172d25; font-size: 13px; }
.advertisement a:hover, .compact-ad a:hover { background: #ffe27a; }
.sponsor-rail :focus-visible { outline-color: var(--yellow); }
.help-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 15px; margin-block: 26px; }
.help-panel { border: 1px solid var(--line); border-radius: 8px; padding: clamp(15px, 2.2vw, 26px); background: var(--surface); }
.help-panel h2 { margin: 0 0 8px; font-size: clamp(23px, 2.2vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.help-panel p, .help-panel li { color: var(--muted); font-size: 14px; }
.help-panel p { margin: 8px 0; }
.help-panel ol { margin: 0; padding-left: 19px; }
.help-panel li + li { margin-top: 5px; }
.sponsor-panel { background: #fbf0e2; border-color: #e2cbb8; }
.sponsor-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.sponsor-actions .outline-button { min-height: 33px; font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-block: 16px 22px; color: var(--muted); font-size: 14px; }
@media (max-width: 1080px) {
  .shell { width: calc(100% - 52px); }
  .workspace { column-gap: 22px; }
  .repository-row { grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 5px 8px; }
  .repository-info { grid-column: 1 / -1; }
  .repository-row .language-cell { margin-left: 43px; }
}
@media (max-width: 780px) {
  .hero-tools .search { max-width: 340px; }
  .sponsor-rail .ad-grid { gap: 8px; }
  .site-nav { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(220px, .74fr); }
  .issue-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 67px; gap: 6px; justify-content: space-between; }
  .identity { font-size: clamp(15px, 3.7vw, 22px); }
  .partners { gap: 3px; margin-left: 0; }
  .partner { min-height: 25px; padding-inline: 4px; border-radius: 5px; }
  .xylos-logo { width: 49px; height: 14px; }
  .histic-logo { width: 18px; height: 16px; }
  .add-project { min-height: 34px; font-size: 11px; padding-inline: 5px; }
  .intro { min-height: 470px; align-items: flex-end; background-image: linear-gradient(0deg, #03312b 3%, rgba(3,49,43,.91) 28%, rgba(3,49,43,.50) 60%, rgba(3,49,43,.07) 100%), url('images/community-hero.webp'); background-position: center, 64% center; }
  .intro-inner { padding-block: 38px; }
  .intro h1 { font-size: clamp(35px, 8vw, 50px); }
  .intro-copy > p { margin: 11px 0 15px; font-size: 15px; }
  .hero-tools { gap: 7px; }
  .hero-tools .search { flex-basis: 145px; }
  .hero-tools .hero-action { padding-inline: 9px; font-size: 12px; }
  .search-shortcut { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .directory-title { margin-bottom: 8px; }
  .directory-views a { padding-inline: 7px; }
  .guide-link { font-size: 12px; }
  .repository-row .language-cell { margin-left: 0; }
  .featured { margin-top: 19px; }
  .featured-photo { max-height: 250px; }
  .sponsor-rail .ad-grid, .help-grid { grid-template-columns: 1fr; gap: 10px; }
  .advertisement, .compact-ad { min-height: 235px; }
}
@media (pointer: coarse) { .search-shortcut { display: none; } }
@media (max-width: 345px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; padding-block: 8px; }
  .partners { grid-row: 2; }
  .add-project { grid-column: 2; grid-row: 1 / 3; }
}

#contribution-type { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #f9f8f1; padding: 3px 8px; color: var(--ink); font-size: 14px; }
.share-search { min-height: 34px; font-size: 13px; }
.share-feedback { color: var(--green); font-size: 13px; }
.share-feedback:not(:has(input:not([hidden]))):has(#share-status:empty) { display: none; }
.share-feedback input { display: block; width: 100%; margin-block: 5px 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; }
.issue-title-button { border: 0; padding: 0; color: inherit; background: none; font: inherit; text-align: left; }
.issue-title-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.issue-dialog { width: min(680px, calc(100% - 26px)); max-height: 85dvh; padding: clamp(17px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); }
.issue-dialog::backdrop { background: #082e2bd4; }
.issue-dialog form { display: flex; justify-content: flex-end; }
.issue-dialog h2 { margin: 4px 0 10px; font-size: clamp(22px, 3vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
.issue-dialog .issue-context { margin-block: 8px; }
.issue-dialog #detail-status { font-size: 14px; color: var(--muted); }
.detail-body { margin-bottom: 15px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
