@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&family=Noto+Serif+KR:wght@500;600;700&display=swap");

:root{
  color-scheme:dark;
  --bg:#090a0e;
  --panel:#14161d;
  --panel-2:#101218;
  --text:#f4f1eb;
  --muted:#8e919d;
  --line:rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.16);
  --gold:#d9b874;
  --violet:#8e7cf4;
  --green:#7bd9a4;
}
*{box-sizing:border-box}
/* 줄바꿈 다듬기: 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 낱말만 남지 않게 */
h1,h2,h3,.project-card h3,.latest-update-copy strong,figcaption strong,summary span{text-wrap:balance}
p,li,figcaption span,small,.notice,.project-desc,.kv>div{text-wrap:pretty}

html{scroll-behavior:smooth}
body{
  margin:0;
  word-break:keep-all;
  background:
    radial-gradient(circle at 72% -15%,rgba(142,124,244,.14),transparent 32rem),
    radial-gradient(circle at -8% 38%,rgba(217,184,116,.07),transparent 28rem),
    var(--bg);
  color:var(--text);
  font-family:"Noto Sans KR",Inter,Pretendard,Arial,sans-serif;
  line-height:1.55;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size:60px 60px;
  mask-image:linear-gradient(#000,transparent 74%);
}
a{color:inherit}
button,input{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.site-header{
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1320px;
  margin:0 auto;
  padding:20px 24px;
}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none}
.brand-mark{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid rgba(217,184,116,.3);
  border-radius:9px;
  color:var(--gold);
  font:600 11px Georgia,serif;
}
.brand-name{font-size:13px;font-weight:760;letter-spacing:.01em}
.site-nav{display:flex;align-items:center;gap:4px}
.site-nav a{
  padding:7px 9px;
  border-radius:7px;
  color:var(--muted);
  font-size:12px;
  text-decoration:none;
  transition:.18s;
}
.site-nav a:hover{background:rgba(255,255,255,.045);color:var(--text)}

main{position:relative;max-width:1320px;margin:0 auto;padding:14px 24px 76px}

.hero{
  max-width:900px;
  padding:18px 0 10px;
  border-bottom:1px solid var(--line);
}
.hero-copy{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.eyebrow{
  margin:0 0 10px;
  color:var(--gold);
  font-size:10px;
  font-weight:800;
  letter-spacing:.2em;
  text-transform:uppercase;
}
.hero .eyebrow{margin-bottom:0}
.hero h1{
  margin:0;
  font:500 clamp(42px,5.6vw,62px)/1.02 Georgia,"Noto Serif KR","Times New Roman",serif;
  letter-spacing:-.05em;
}
.hero h1 em{color:var(--gold);font-weight:500}
.hero-bottom{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  max-width:780px;
  margin-top:6px;
}
.hero-lead{
  max-width:620px;
  margin:0;
  color:#a9abb4;
  font-size:13px;
  line-height:1.6;
}
.hero-pill{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:#d8d6cf;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
  text-transform:uppercase;
}

.archive{scroll-margin-top:24px;padding-top:20px}
.archive-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.archive-heading h2,
.guestbook-cta h2,
.guestbook-page-head h1{
  margin:0;
  font:500 clamp(32px,4vw,44px)/1.04 Georgia,"Noto Serif KR",serif;
  letter-spacing:-.04em;
}
.archive-count{
  margin:6px 0 0;
  color:var(--muted);
  font-size:11px;
}
.archive-count strong{color:var(--text)}
.archive-controls{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:9px;
}
.archive-filters{
  display:flex;
  flex:0 0 auto;
  gap:8px;
}
.status-filter{
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:9px;
  background:rgba(255,255,255,.03);
  color:#c8c6c0;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:.18s;
}
.status-filter:hover{border-color:var(--line-strong);color:var(--text)}
.status-filter.is-active{background:#ece8df;color:#111}
.search-box{display:block}
.search-box[hidden]{display:none!important}
.search-box input{
  width:190px;
  height:40px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0c0e13;
  color:var(--text);
  font-size:12px;
  outline:none;
  transition:.18s;
}
.search-box input::placeholder{color:#686b76}
.search-box input:hover,.search-box input:focus{border-color:rgba(217,184,116,.42)}

/* 기종 버튼과 장르 드롭다운은 상태 필터 오른쪽에 구분선을 두고 이어 붙입니다. */
.facet{display:flex;align-items:center;min-width:0;padding-left:9px;border-left:1px solid var(--line)}
.facet[hidden]{display:none!important}
.facet-dropdown{position:relative}
.facet-toggle{display:inline-flex;align-items:center;gap:8px;min-width:118px;justify-content:space-between}
.facet-toggle svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.facet-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.facet-toggle[aria-expanded="true"]:not(.is-active){border-color:var(--line-strong);color:var(--text)}
.facet-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:20;display:flex;flex-direction:column;min-width:180px;padding:6px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:#13151b;box-shadow:0 14px 36px rgba(0,0,0,.45)}
.facet-menu[hidden]{display:none}
.facet-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 11px;border:0;border-radius:7px;background:none;color:#c8c6c0;font:800 12px/1.2 "Noto Sans KR",Inter,Arial,sans-serif;text-align:left;cursor:pointer}
.facet-option small{color:#686b76;font-size:10px;font-weight:700}
.facet-option:hover,.facet-option:focus-visible{background:rgba(255,255,255,.06);color:var(--text);outline:none}
.facet-option.is-active{color:var(--gold)}
.facet-option.is-active small{color:var(--gold)}
.kicker-tag{padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;text-underline-offset:3px}
.kicker-tag:hover,.kicker-tag:focus-visible{color:var(--gold);text-decoration:underline}
.project-subgenre{color:#8d8a84;letter-spacing:.04em}
.archive-more{display:flex;justify-content:center;margin-top:22px}
.archive-more[hidden]{display:none}
.archive-more-button{
  min-width:200px;
  min-height:44px;
  padding:10px 22px;
  border:1px solid rgba(217,184,116,.32);
  border-radius:999px;
  background:rgba(217,184,116,.06);
  color:var(--gold);
  font:800 13px/1.2 "Noto Sans KR",Inter,Arial,sans-serif;
  cursor:pointer;
}
.archive-more-button:hover{background:rgba(217,184,116,.13)}
.projects{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.project-card{
  position:relative;
  display:flex;
  min-width:0;
  overflow:hidden;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(145deg,var(--panel),#101117);
  transition:transform .2s,border-color .2s,box-shadow .2s;
}
.project-card:hover{
  transform:translateY(-3px);
  border-color:rgba(217,184,116,.32);
  box-shadow:0 18px 42px rgba(0,0,0,.24);
}
.project-cover{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:480/272;
  overflow:hidden;
  background:#0b0d12;
  text-decoration:none;
  isolation:isolate;
}
.project-cover:before{
  content:"";
  position:absolute;
  inset:-18px;
  background-image:var(--card-image);
  background-size:cover;
  background-position:center;
  filter:blur(20px) saturate(.8);
  opacity:.24;
  transform:scale(1.08);
}
.project-cover:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(9,10,14,.02),rgba(9,10,14,.18));
}
.project-cover img{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.96) contrast(1.02);
  transition:transform .24s;
}
.project-card:hover .project-cover img{transform:scale(1.012)}

.project-info{
  display:flex;
  min-width:0;
  flex:1;
  flex-direction:column;
  padding:17px 18px 16px;
}
.project-kicker{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
}
.project-kicker i{color:#555963;font-style:normal;letter-spacing:0}
.project-stage{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  color:var(--gold);
  font-size:10px;
  font-weight:800;
  letter-spacing:0;
  text-decoration:none;
  white-space:nowrap;
}
.project-stage:hover{color:var(--text)}
.stage-dots{display:inline-flex;gap:2px}
.stage-dots b{
  width:7px;
  height:4px;
  border-radius:2px;
  background:rgba(255,255,255,.12);
}
.stage-dots b.is-done{background:var(--gold)}
.project-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:5px;
}
.project-info h3{
  min-width:0;
  margin:0;
  font:500 27px/1.12 Georgia,"Noto Serif KR",serif;
  letter-spacing:-.03em;
}
.project-info h3 a{text-decoration:none}
.project-info h3 a:hover{color:var(--gold)}
.version-pill{
  flex:0 0 auto;
  max-width:48%;
  overflow:hidden;
  padding:4px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#cfc8ba;
  font-size:10px;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.project-desc{
  min-height:38px;
  margin:7px 0 0;
  color:#a6a7ae;
  font-size:12px;
  line-height:1.55;
}
.project-foot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-top:auto;
  padding-top:15px;
}
.project-state{
  display:flex;
  align-items:center;
  gap:6px;
  color:#bfe5ce;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}
.project-state i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 8px var(--green);
}
.project-state.development{color:#d1c9ff}
.project-state.development i{background:var(--violet);box-shadow:0 0 8px var(--violet)}
.project-date{display:block;margin-top:2px;color:#747782;font-size:10px;white-space:nowrap}
.project-actions{display:flex;justify-content:flex-end;gap:6px}
.card-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:33px;
  padding:6px 10px;
  border-radius:8px;
  text-decoration:none;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
.card-button.secondary{border:1px solid var(--line);color:#cacbd1}
.card-button.secondary:hover{border-color:var(--line-strong);background:rgba(255,255,255,.04)}
.card-button.download{background:var(--text);color:#111}
.card-button.download:hover{background:var(--gold)}

.empty-state{
  margin:0;
  padding:48px 20px;
  border:1px dashed var(--line-strong);
  border-radius:18px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}
.archive-note{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:38px;
  padding:16px 18px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:#858894;
  font-size:11px;
}
.archive-note i{width:3px;height:3px;border-radius:50%;background:#575a64}

.support{scroll-margin-top:28px;margin-top:36px}
.support-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px 18px;
  border:1px solid rgba(217,184,116,.2);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(217,184,116,.05),rgba(20,22,29,.82));
}
.support-bar-copy{display:flex;min-width:0;align-items:baseline;gap:13px}
.support-bar-copy strong{font-size:13px;white-space:nowrap}
.support-bar-copy span{color:#92949e;font-size:11px}
.support-button{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:7px 12px;
  border:1px solid rgba(217,184,116,.32);
  border-radius:9px;
  background:rgba(217,184,116,.11);
  color:var(--gold);
  font-size:11px;
  font-weight:850;
  text-decoration:none;
  transition:.18s;
}
.support-button:hover{background:rgba(217,184,116,.19);transform:translateY(-1px)}

.guestbook-cta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-top:42px;
  padding:26px 4px 6px;
  border-top:1px solid var(--line);
}
.guestbook-cta>div>p:last-child{margin:9px 0 0;color:var(--muted);font-size:12px}
.guestbook-cta>a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--gold);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.guestbook-cta>a span{font-size:17px;transition:transform .18s}
.guestbook-cta>a:hover span{transform:translateX(3px)}

footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  max-width:1320px;
  margin:0 auto;
  padding:20px 24px 32px;
  border-top:1px solid var(--line);
  color:#656874;
  font-size:10px;
  letter-spacing:.1em;
}
footer a{color:var(--gold);text-decoration:none}
footer a:hover{text-decoration:underline}

/* Guestbook page */
.guestbook-main{max-width:940px;padding-top:30px}
.guestbook-page-head{padding:22px 0 26px;border-bottom:1px solid var(--line)}
.guestbook-page-head p:last-child{max-width:620px;margin:12px 0 0;color:var(--muted);font-size:13px}
.back-link{
  display:inline-flex;
  margin-bottom:16px;
  color:var(--muted);
  font-size:12px;
  text-decoration:none;
}
.back-link:hover{color:var(--text)}
.guestbook-panel{
  overflow:hidden;
  margin-top:24px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(20,22,29,.96),rgba(13,14,20,.96));
}
#HCB_comment_box{
  min-height:220px;
  color:var(--text);
  font-family:Inter,Pretendard,"Noto Sans KR",Arial,sans-serif;
}
#HCB_comment_box a{color:var(--gold)}
#HCB_comment_box h3,#HCB_comment_box .hcb-comment-tb{color:var(--text)}
#HCB_comment_box input[type="text"],
#HCB_comment_box input[type="email"],
#HCB_comment_box textarea{
  width:100%;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:#0b0c11!important;
  color:var(--text)!important;
  box-shadow:none!important;
  font:400 14px/1.55 Inter,Pretendard,"Noto Sans KR",Arial,sans-serif!important;
}
#HCB_comment_box input[type="text"],#HCB_comment_box input[type="email"]{min-height:42px;padding:9px 12px!important}
#HCB_comment_box textarea{min-height:130px;padding:12px!important;resize:vertical}
#HCB_comment_box input::placeholder,#HCB_comment_box textarea::placeholder{color:#70737e}
#HCB_comment_box .btn,#HCB_comment_box input[type="submit"]{
  border:1px solid rgba(217,184,116,.38)!important;
  border-radius:9px!important;
  background:rgba(217,184,116,.12)!important;
  color:var(--gold)!important;
  box-shadow:none!important;
  font-weight:700!important;
  text-shadow:none!important;
}
#HCB_comment_box .btn:hover,#HCB_comment_box input[type="submit"]:hover{background:rgba(217,184,116,.2)!important}



/* Homepage activity + verification */
.latest-updates{
  margin-top:18px;
  padding:18px 0 20px;
  border-bottom:1px solid var(--line);
}
.latest-updates-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:11px;
}
.latest-updates-head h2,
.guide-cta h2,
.guide-page-head h1,
.guide-section h2{
  margin:0;
  font:500 28px/1.08 Georgia,"Noto Serif KR",serif;
  letter-spacing:-.035em;
}
.latest-updates-head>span{color:#747782;font-size:10px}
.latest-update-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.latest-update-card{
  display:grid;
  min-width:0;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  text-decoration:none;
  transition:.18s;
}
.latest-update-card:hover{border-color:rgba(217,184,116,.3);background:rgba(255,255,255,.04)}
.latest-update-date{color:#777a85;font-size:9px;font-weight:800;white-space:nowrap}
.latest-update-copy{min-width:0}
.latest-update-copy strong{
  display:block;
  overflow:hidden;
  color:#e6e3dc;
  font-size:11px;
  font-weight:780;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.latest-update-copy span{
  display:block;
  overflow:hidden;
  margin-top:1px;
  color:#9698a2;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.latest-update-arrow{color:var(--gold);font-size:14px}
.popular-rank{display:grid;place-items:center;width:24px;height:24px;border:1px solid rgba(217,184,116,.35);border-radius:50%;color:var(--gold);font:800 11px/1 Inter,Arial,sans-serif}

/* 작업 예정: 링크 없는 작은 표지 목록 */
.planned{margin-top:34px;padding-top:22px;border-top:1px solid var(--line)}
.planned[hidden]{display:none}
.planned-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.planned-item{min-width:0}
.planned-cover{position:relative;display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#1b1c22}
.planned-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.planned-cover b{color:#555963;font-size:12px;letter-spacing:.12em}
.planned-item strong{display:block;margin-top:9px;overflow:hidden;color:#e6e3dc;font-size:12px;font-weight:780;text-overflow:ellipsis;white-space:nowrap}
.planned-item small{display:block;margin-top:2px;color:#9698a2;font-size:10px}
.planned-item p{margin:5px 0 0;color:#8d8a84;font-size:10px;line-height:1.5}

.project-verify{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  margin-top:10px;
}
.project-verify-label{
  margin-right:2px;
  color:#6f727c;
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
}
.verify-badge{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:3px 7px;
  border:1px solid rgba(123,217,164,.18);
  border-radius:999px;
  background:rgba(123,217,164,.055);
  color:#a8dabb;
  font-size:9px;
  font-weight:760;
  white-space:nowrap;
}

.guide-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  margin-top:28px;
  padding:20px 22px;
  border:1px solid rgba(142,124,244,.18);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(142,124,244,.06),rgba(20,22,29,.72));
}
.guide-cta .eyebrow{margin-bottom:6px}
.guide-cta h2{font-size:25px}
.guide-cta p:last-child{max-width:720px;margin:7px 0 0;color:#9698a2;font-size:11px}
.guide-cta>a{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:8px;
  color:var(--gold);
  font-size:11px;
  font-weight:850;
  text-decoration:none;
}
.guide-cta>a span{font-size:16px;transition:transform .18s}
.guide-cta>a:hover span{transform:translateX(3px)}

/* Homepage: a concise six-step overview of the patch-making process. */
.patch-workflow{
  margin-top:38px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.patch-workflow-head{margin-bottom:16px}
.patch-workflow-head .eyebrow{margin-bottom:8px}
.patch-workflow h2{
  margin:0;
  font:500 clamp(26px,3.2vw,34px)/1.16 Georgia,"Noto Serif KR",serif;
  letter-spacing:-.035em;
}
.patch-workflow-intro{
  margin:9px 0 0;
  color:#989aa4;
  font-size:12px;
  line-height:1.65;
}
.workflow-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
  margin:0;
  padding:0;
  list-style:none;
}
.workflow-step{
  min-width:0;
  min-height:150px;
  padding:18px 19px 17px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(145deg,var(--panel),var(--panel-2));
}
.workflow-step-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.workflow-icon{
  display:grid;
  flex:0 0 auto;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(217,184,116,.18);
  border-radius:10px;
  background:rgba(217,184,116,.055);
  color:var(--gold);
}
.workflow-icon svg{
  display:block;
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workflow-number{
  color:#777a85;
  font:700 11px/1.4 Georgia,serif;
  letter-spacing:.1em;
}
.workflow-step h3{
  margin:0;
  font-size:14px;
  font-weight:800;
  line-height:1.5;
}
.workflow-step p{
  margin:5px 0 0;
  color:#999ba5;
  font-size:11px;
  line-height:1.65;
}
.patch-workflow-note{
  margin:14px 0 0;
  color:#858894;
  font-size:11px;
}
@media(max-width:900px){
  .workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .patch-workflow{margin-top:30px;padding-top:24px}
  .patch-workflow h2{font-size:25px}
  .workflow-grid{grid-template-columns:1fr;gap:9px}
  .workflow-step{
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:12px;
    min-height:0;
    padding:13px 14px;
  }
  .workflow-step-top{
    grid-column:1;
    grid-row:1 / span 2;
    flex-direction:column;
    gap:4px;
    align-items:flex-start;
    margin-bottom:0;
  }
  .workflow-icon{width:32px;height:32px}
  .workflow-number{margin-left:8px;font-size:9px}
  .workflow-step h3{grid-column:2;grid-row:1;align-self:end;font-size:13px}
  .workflow-step p{grid-column:2;grid-row:2;margin-top:3px}
}

/* Use a compact, equal-height information panel for every archive card.
   Two-line limits keep long titles from increasing the entire grid row.
   Explicit tracks also reserve a verification slot when none is listed. */
@media (min-width:621px){
  .project-info{
    display:grid;
    flex:0 0 216px;
    height:216px;
    grid-template-rows:15px 66px 41px 26px 38px;
    padding:15px 16px;
  }
  .project-kicker{grid-row:1;line-height:15px}
  .project-title-row{
    grid-row:2;
    min-height:0;
    align-items:flex-start;
    margin-top:5px;
  }
  .project-info h3{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
  .project-desc{
    display:-webkit-box;
    grid-row:3;
    min-height:0;
    margin:3px 0 0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
  .project-verify{
    grid-row:4;
    min-height:20px;
    align-self:start;
    margin-top:3px;
  }
  .project-foot{
    grid-row:5;
    min-height:0;
    align-self:end;
    margin-top:0;
    padding-top:0;
  }
}
@media (min-width:1280px){
  .project-info{
    flex-basis:194px;
    height:194px;
    grid-template-rows:14px 56px 37px 24px 36px;
    padding:14px 16px 13px;
  }
  .project-kicker{line-height:14px}
  .project-card .project-info h3{font-size:22px}
  .project-desc{font-size:11px;line-height:1.45}
}

/* Patch guide */
.guide-main{max-width:960px;padding-top:28px}
.guide-page-head{padding:20px 0 24px;border-bottom:1px solid var(--line)}
.guide-page-head h1{font-size:clamp(36px,5vw,52px)}
.guide-page-head>p:last-child{max-width:680px;margin:12px 0 0;color:var(--muted);font-size:13px}
.guide-section{padding:26px 0;border-bottom:1px solid var(--line)}
.guide-section h2{font-size:27px}
.guide-section-lead{margin:8px 0 0;color:var(--muted);font-size:12px}
.guide-steps{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
  counter-reset:guide-step;
}
.guide-step{
  position:relative;
  min-height:138px;
  padding:18px 18px 16px 54px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(145deg,var(--panel),#101117);
  counter-increment:guide-step;
}
.guide-step:before{
  content:counter(guide-step,decimal-leading-zero);
  position:absolute;
  left:17px;
  top:18px;
  color:var(--gold);
  font:600 12px Georgia,serif;
}
.guide-step strong{display:block;font-size:13px}
.guide-step p{margin:6px 0 0;color:#9799a3;font-size:11px;line-height:1.65}
.guide-checks{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:16px;
}
.guide-check{
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.022);
}
.guide-check strong{display:block;color:#dedbd4;font-size:11px}
.guide-check span{display:block;margin-top:4px;color:#858894;font-size:10px;line-height:1.6}
.guide-report{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:16px;
  padding:16px 17px;
  border:1px solid rgba(217,184,116,.2);
  border-radius:13px;
  background:rgba(217,184,116,.04);
}
.guide-report p{margin:0;color:#989aa4;font-size:11px}
.guide-report a{flex:0 0 auto;color:var(--gold);font-size:11px;font-weight:800;text-decoration:none}

@media(min-width:1280px){
  .projects{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .project-info h3{font-size:24px}
}
@media(max-width:900px){
  .hero{max-width:none}
  .latest-update-list{grid-template-columns:1fr}
  .guide-steps,.guide-checks{grid-template-columns:1fr}
  .archive-top{flex-direction:column;align-items:flex-start}
  .archive-controls{width:100%;flex-wrap:wrap}
  .archive-filters{flex-wrap:wrap}
  .search-box{flex:1;min-width:180px}
  .search-box input{width:100%}
  .projects{grid-template-columns:1fr}
}
@media(max-width:620px){
  .facet{display:inline-flex;vertical-align:top;padding-left:0;border-left:0;margin:8px 8px 0 0}
  .site-header{padding:15px 14px}
  .brand-name{display:none}
  .site-nav{gap:0}
  .site-nav a{padding:6px 7px;font-size:11px}
  main{padding:8px 14px 56px}
  .hero{padding:16px 0 10px}
  .hero h1{font-size:clamp(40px,12vw,54px)}
  .hero-bottom{flex-direction:column;align-items:flex-start;gap:10px;margin-top:4px}
  .hero-pill{padding:7px 11px}
  .archive{padding-top:18px}
  .archive-controls{display:block}
  .archive-filters{width:max-content;max-width:100%;flex-wrap:wrap}
  .search-box{margin-top:8px}
  .project-info{padding:15px}
  .project-title-row{display:block}
  .version-pill{display:inline-flex;max-width:100%;margin-top:7px}
  .project-foot{align-items:flex-start;flex-direction:column}
  .project-actions{width:100%;justify-content:flex-start}
  .archive-note{justify-content:flex-start}
  .archive-note i{display:none}
  .archive-note span{width:100%}
  .guide-cta,.guide-report{align-items:flex-start;flex-direction:column}
  .guide-cta{padding:18px}
  .support-bar{align-items:flex-start;flex-direction:column}
  .support-bar-copy{display:block}
  .support-bar-copy span{display:block;margin-top:4px}
  .guestbook-cta{align-items:flex-start;flex-direction:column}
  footer{align-items:flex-start;flex-direction:column;padding:18px 14px 28px;letter-spacing:.08em}
  .guestbook-panel{padding:15px}
}
