.home-heading>div{min-width:0}
.home-heading p{max-width:none}
.home-toolbar-meta{display:flex;align-items:center;justify-content:flex-end;gap:20px;min-width:0}
.project-search{position:relative;display:flex;align-items:center;width:340px;max-width:65%}
.project-search input{width:100%;max-width:none}
.search-icon{position:absolute;left:17px;width:13px;height:13px;border:1.5px solid #d3d3d3;border-radius:50%;pointer-events:none}
.search-icon:after{content:'';position:absolute;width:6px;height:1.5px;right:-5px;bottom:-2px;transform:rotate(45deg);transform-origin:left center;background:#d3d3d3;border-radius:1px}
.project-search input{padding-left:42px}
.home-view-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.home-view-switch button{padding:8px 12px;border-radius:7px;color:var(--muted);font-size:11px}
.home-view-switch button .grid-icon{width:14px;height:14px;gap:2px}
.home-view-switch .list-icon{display:grid;gap:3px;width:15px}
.home-view-switch .list-icon i{display:block;height:2px;border-radius:1px;background:currentColor}
.home-view-switch button.active,.home-view-switch button:hover{background:var(--raised);color:var(--text)}
.project-list{display:flex;flex-direction:column;gap:12px}
.project-card{cursor:pointer;transition:border-color .15s ease}
.project-card:focus-visible{outline:2px solid var(--amber);outline-offset:5px}
@media(hover:hover) and (pointer:fine){
  .project-card:hover{border-color:var(--faint)}
}
.project-card h2{font-size:15px}
.project-card .card-bottom{justify-content:flex-end}
.project-card .remove-button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:5px;color:var(--muted)}
.project-card .remove-button:hover{color:var(--text)}
.project-card .remove-button img{display:block;width:14px;height:17px;object-fit:contain}
.content-overview .field-copy ul{list-style:none;padding-left:0}
.content-overview .field-copy li::marker{content:''}
.project-list-index{display:none}
.project-list .project-card{min-height:0;display:grid;grid-template-columns:minmax(200px,.65fr) minmax(180px,1.4fr) minmax(200px,1.2fr) auto;align-items:center;gap:24px;padding:20px 25px}
.project-list .project-card .card-top{flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.project-list .project-card .card-top .badge{white-space:normal;max-width:100%}
.project-list .project-card h2{margin:0;font-size:12px}
.project-list .project-card p{margin:0}
.project-list .project-card .card-bottom{margin:0;padding:0;justify-content:flex-end}
.new-audit-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px}
.new-audit-heading h1{margin:0}
.close-new-audit{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;color:var(--muted);white-space:nowrap}
.close-new-audit:hover{color:var(--text)}
.close-new-audit img{width:16px;height:16px;filter:var(--icon-filter)}
.signal-table{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel)}
.signal-table-head,.signal-result-row{display:grid;grid-template-columns:minmax(180px,1.05fr) minmax(130px,.7fr) minmax(240px,2fr) minmax(80px,.45fr);column-gap:20px;align-items:center}
.signal-table-head{padding:14px 20px;color:var(--muted);font-size:11px;border-bottom:1px solid var(--line)}
.signal-result-row{width:100%;padding:20px;text-align:left;background:var(--panel);border-bottom:1px solid var(--line)}
.signal-result-row:last-child{border-bottom:0}
.signal-result-row:hover,.signal-result-row:focus-visible{background:var(--raised)}
.signal-result-check,.signal-result-explanation{overflow-wrap:anywhere}
.signal-result-outcome{min-width:0}
.signal-result-outcome .badge{white-space:normal}
.signal-result-explanation{color:var(--muted);line-height:1.6}
.signal-result-inspect{display:flex;justify-content:space-between;gap:8px;color:var(--text);font-size:11px;white-space:nowrap}
.signal-result-inspect span{color:var(--muted)}

@media(max-width:760px){
  .home-toolbar{align-items:stretch;flex-direction:column}
  .project-search{max-width:none;width:100%}
  .home-toolbar input{max-width:none;width:100%}
  .home-toolbar-meta{justify-content:space-between}
  .project-list .project-card{display:flex;align-items:stretch;gap:12px;padding:20px;}
  .project-list .project-list-index{display:block;order:-1;align-self:flex-start;padding-top:2px;color:var(--muted);font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums}
  .project-list .project-card .card-top{order:0}
  .project-list .project-card h2{order:1}
  .project-list .project-card p{order:2}
  .project-list .project-card .card-bottom{order:3;justify-content:flex-end;padding-top:14px}
  .new-audit-heading{align-items:flex-start;flex-direction:column;gap:14px}
  .close-new-audit{order:-1}
  .signal-table{border-radius:14px}
  .signal-table-head{display:none}
  .signal-result-row{grid-template-columns:1fr auto;gap:12px;padding:18px 16px}
  .signal-result-check{grid-column:1}
  .signal-result-outcome{grid-column:2;grid-row:1}
  .signal-result-explanation{grid-column:1/-1}
  .signal-result-inspect{grid-column:1/-1;justify-content:flex-start;gap:8px}
}

@media(min-width:761px){
  .project-list .project-card{grid-template-columns:38px minmax(0,.65fr) minmax(0,1.4fr) minmax(0,1.2fr) auto}
  .project-list .project-list-index{display:block;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
}

/* Construction chapter labels are an illustrative footer of the opening card. */
.construction-opening .construction-hero-card{overflow:hidden}
.construction-opening .construction-hero-card>.narrative-hero{border:0;border-radius:0;background:transparent}
.construction-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0 38px 30px;list-style:none}
.construction-directory li{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 16px;border-top:1px solid var(--line);color:var(--text);font-size:12px;overflow-wrap:anywhere}
.construction-directory-number{color:var(--muted);font-size:10px;flex:none;font-variant-numeric:tabular-nums}
@media(max-width:1100px){
  .construction-directory{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 30px 26px}
}
@media(max-width:760px){
  .construction-directory{gap:8px;padding:0 20px 20px}
  .construction-directory li{padding:12px 10px;font-size:11px}
}

/* Keep list rows ordered as index, name, status, description, remove. */
.project-list .project-card{grid-template-columns:52px minmax(0,1.9fr) minmax(0,.85fr) minmax(0,1fr) auto}
.project-list .project-card .card-top{flex-direction:row;align-items:center;justify-content:flex-start;gap:0}
.project-list .project-list-index{display:flex;align-items:center;align-self:center;justify-self:start;min-height:30px;padding-right:14px;border-right:1px solid var(--line);color:#c4c4c4;font-size:16px;line-height:1;font-variant-numeric:tabular-nums}
.project-list .project-card h2{min-width:0;overflow-wrap:anywhere}

@media(max-width:760px){
  .project-list .project-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px 14px;padding:20px}
  .project-list .project-list-index{grid-column:1;grid-row:1 / span 4;align-self:start;min-height:30px;padding-right:12px;font-size:16px}
  .project-list .project-card h2{grid-column:2;grid-row:1}
  .project-list .project-card .card-top{grid-column:2;grid-row:2}
  .project-list .project-card p{grid-column:2;grid-row:3}
  .project-list .project-card .card-bottom{grid-column:2;grid-row:4;justify-content:flex-end;padding-top:4px}
}

/* Grid cards carry the retained purpose and a compact provenance footer. */
.project-grid:not(.project-list) .project-card{min-height:300px}
.project-grid:not(.project-list) .project-card h2{font-size:22px;line-height:1.2;margin:0 0 14px}
.project-grid:not(.project-list) .project-card .project-purpose{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin-top:24px}
.project-grid:not(.project-list) .project-card .project-purpose[data-home-purpose-state="loading"],
.project-grid:not(.project-list) .project-card .project-purpose[data-home-purpose-state="missing"],
.project-grid:not(.project-list) .project-card .project-purpose[data-home-purpose-state="error"],
.project-grid:not(.project-list) .project-card .project-purpose[data-home-purpose-state="unavailable"]{color:var(--muted)}
.project-grid:not(.project-list) .project-card .card-bottom{justify-content:space-between}
.project-preserved{color:var(--muted);font-size:11px}

/* Let the construction introduction begin closer to its title. */
@media(min-width:1101px){
 .construction-opening .construction-hero-card>.narrative-hero{grid-template-columns:minmax(200px,.3fr) minmax(0,1fr);gap:40px}
}

.audit-identifier{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.repository-link{display:inline-flex;align-items:center;gap:7px;color:inherit}
.repository-link>span{text-decoration:underline;text-underline-offset:3px}
.repository-external{width:14px;height:14px;flex:none}
.repository-link:hover{color:var(--text)}
.repository-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:2px}
.repository-unavailable{color:var(--muted)}
[data-theme=light] .repository-external{filter:brightness(.55)}

/* Quiet visual affordance; row labels retain the accessible Inspect action. */
.inspect-chevron{display:block;width:14px;height:14px;object-fit:contain;transform:rotate(180deg)}
.signal-inspect-header,.signal-result-inspect{display:flex;justify-content:flex-end;align-items:center}
