/* AVCodeEdit-only content layout. Shared styling is the unmodified Compass CSS. */
.project-logo{display:block;width:min(330px,80%);height:auto;margin:0 auto 18px}
.title-block .paper-title{font-size:clamp(28px,3.6vw,42px);max-width:1120px;margin:0 auto;text-align:center}
.pill.ghost{display:inline-flex;align-items:center;gap:7px}
.pill .resource-status{font-size:11px;font-weight:500;letter-spacing:0;white-space:nowrap}
#abstract strong{font-weight:700;color:var(--ink)}
.grp-row.grp-closed th{background:#f1eef8;color:#7667a5;border-bottom-color:#dfd9ee}
.grp-row.grp-closed th i{background:#9b8abd}
.grp-row.grp-open th{background:#edf5fb;color:#427da9;border-bottom-color:#d8e7f1}
.grp-row.grp-open th i{background:#78a9c7}
.board .open-model td:first-child{background:#f3f8fc}
#figure-edit_taxonomy{max-width:490px}
.av-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.board .source-baseline td{background:var(--bg-soft);color:var(--ink-mute)}
.board-scroll{overflow:visible}
.board{min-width:0;font-size:11.5px}
.board thead th,.board td{overflow:visible}
.board .head-metrics th{padding:6px 1px}
.board .sort{overflow-wrap:normal;word-break:normal}
.board .sort .dir{display:block;margin:2px 0 0;line-height:1}
.board .sort.active .dir{display:none}
.board col.model-column{width:154px}
.board col.appearance-column{width:72px}
.board col.correspondence-column{width:78px}
.board col.synchronization-column{width:80px}
.board .th-model,.board td:first-child{position:static;width:auto;max-width:none;min-width:0;padding-left:8px}
.board .model-name{font-size:11.5px;line-height:1.35;white-space:normal;min-width:0;gap:5px}
.board .model-name img{flex:0 0 15px;width:15px;height:15px}
.board .sort[data-sort="AS"]{overflow-wrap:normal;word-break:normal}
.board-groups{display:none}
.board-group-section{min-width:0}
.board-group-section h3{margin:0 0 8px;font-size:15px;font-weight:600;line-height:1.4;color:var(--ink-soft)}
.board-group-panel{border:1px solid var(--line);border-radius:8px;background:#fff}
.board-group .head-metrics th{padding:8px 4px}
.board-group col.model-column{width:38%}
.board-group col.appearance-column,.board-group col.correspondence-column,.board-group col.synchronization-column{width:auto}
.board-group .sort,.board-group .sort.compact{font-size:10px;line-height:1.4}
.board-group .model-name{font-size:11px}
.board-group td{padding:8px 4px;font-size:12px}
@media(max-width:1279px){
  #board-panel>.board-scroll{display:none}
  .board-groups{display:grid;gap:24px}
}
@media(max-width:360px){.board-group .sort,.board-group .sort.compact{font-size:9.5px}.board-group .head-metrics th{padding:8px 1px}}
@media(max-width:680px){.av-pair-grid{grid-template-columns:1fr}}

.cs-head h4{margin:0;font-size:19px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.cs-subclasses{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:10px 0;font:400 13px/1.5 var(--font-sans)}
.cs-subclass-heading{color:var(--ink-mute);margin-right:2px}
.cs-subclass{padding:3px 9px;border:1px solid #dce7f6;border-radius:4px;background:#f2f7fd;color:var(--blue)}
.cs-meta .cs-tag{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;border-radius:999px}
.cs-module .cs-panel{border-color:#e9edf2;border-radius:14px}
.cs-module .cs-video,.cs-module .cs-input,.cs-module .cs-input-media img,.cs-module .cs-input-media video{border-radius:10px}
.cs-module .cs-zoom,.cs-module .cs-scores .sc{border-radius:999px}
.cs-cell{min-width:0}
.cs-module-evaluation .cs-cell figcaption{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.cs-module-evaluation .cs-scores{margin:0}
.cs-zoom::before,.cs-zoom::after{content:"";position:absolute;width:5px;height:5px;border:1.5px solid currentColor}
.cs-zoom::before{top:8px;right:8px;border-left:0;border-bottom:0}
.cs-zoom::after{bottom:8px;left:8px;border-top:0;border-right:0}
@media(min-width:1150px){.cs-grid-experiment{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}}
.cs-playback{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;font-size:12.5px;color:var(--ink-soft)}
.cs-playback button{min-width:84px;padding:6px 12px;border:1px solid #dbe5ef;border-radius:999px;background:#f3f7fc;color:var(--blue);font:inherit;font-weight:600;cursor:pointer}
.cs-playback button:hover,.cs-playback button[aria-pressed=true]{background:#e7f0fb}
.cs-audio-picker{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding-inline-start:4px;color:var(--ink-mute)}
.cs-audio-tracks{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:3px;border:1px solid #dbe5ef;border-radius:999px;background:#f3f7fc}
.cs-audio-tracks button{min-width:0;padding:4px 9px;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--ink-soft);font-weight:500;white-space:nowrap}
.cs-audio-tracks button:hover{color:var(--blue)}
.cs-audio-tracks button[aria-pressed=true]{background:#fff;border-color:#dbe5ef;color:var(--blue);font-weight:600;box-shadow:0 1px 2px rgba(36,102,160,.08)}
@media(max-width:680px){.cs-audio-tracks{border-radius:14px}}
.cs-playback+.cs-grid{margin-top:12px}
.cs-playback [role="status"]:empty{display:none}
.cs-playback [role="status"]{font-size:12px;color:var(--ink-mute)}
.cs-input .cs-prompt-body{font-family:var(--font-sans);font-size:13px!important;line-height:1.65;word-break:normal;overflow-wrap:break-word}
.cs-input .cs-prompt summary{font-size:12.5px}
.cs-input .cs-legend-block .leg{font-size:12px}
.cs-input.cov-prompt-block{padding:0;background:#fff;border-color:#e9edf2;border-radius:10px}
.cs-input .cov-instruction summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;color:var(--ink);list-style:none;border-radius:9px;font-size:13px;line-height:1.5}
.cov-instruction summary::-webkit-details-marker{display:none}
.cov-instruction summary:hover{background:var(--bg-soft)}
.cov-instruction summary:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.cov-instruction-toggle{position:relative;width:22px;height:22px;flex:none;border-radius:5px;background:#edf3fa;color:var(--blue)}
.cov-instruction-toggle::before,.cov-instruction-toggle::after{content:"";position:absolute;inset:10px 6px;background:currentColor;border-radius:1px}
.cov-instruction-toggle::after{transform:rotate(90deg)}
.cov-instruction[open] .cov-instruction-toggle::after{display:none}
.cov-instruction .cs-prompt-body{margin:0;padding:3px 14px 14px}
.cov-instruction-list{list-style:none;counter-reset:instruction;display:grid;gap:12px}
.cov-instruction-list li{counter-increment:instruction;display:grid;grid-template-columns:17px minmax(0,1fr);align-items:start;gap:6px;margin:0}
.cov-instruction-list .cov-instruction-text{min-width:0}
.cov-instruction-list li::before{content:counter(instruction) ".";color:var(--ink-mute);font-weight:600;font-variant-numeric:tabular-nums}
.cov-instruction-focus{background:#eaf2fc;color:#234a78;font-weight:600;padding:.12em .2em;border-radius:3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cs-module-coverage .cs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:680px){.cs-module-coverage .cs-grid{grid-template-columns:1fr}}

/* Two complementary case-study browsers share the existing page typography. */
.cs-module{margin-top:30px;scroll-margin-top:28px}
.cs-module+.cs-module{margin-top:44px;padding-top:32px;border-top:1px solid var(--line)}
.cs-module-head{text-align:left}
.cs-module-head h3{margin:0;font-size:23px;font-weight:700;letter-spacing:-.02em;line-height:1.3}
.cs-module-head p{margin:8px 0 0;font-size:14px;line-height:1.6;color:var(--ink-mute)}
.cs-coverage-navigation{gap:14px;margin:20px 0}
.cov-top-nav{display:flex;align-items:stretch;gap:16px;width:min(100%,880px);margin:0 auto;padding-bottom:8px;border-bottom:1px solid var(--line-soft)}
.cov-top-nav-complete{padding-bottom:0;border-bottom:0}
.cs-categories{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 16px}
.cs-category{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:8px 2px 10px;text-align:center;border:0;border-radius:0;background:transparent;color:var(--ink-soft);font:400 13px/1.65 var(--font-sans);cursor:pointer}
.cs-category:hover{color:var(--blue)}
.cs-category.active{color:var(--blue);font-weight:600}
.cs-category.active::after{content:"";position:absolute;bottom:1px;left:50%;width:28px;height:2px;background:var(--blue);border-radius:1px;transform:translateX(-50%)}
.cs-category.cov-complete-tab{padding-inline:18px}
.cov-filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px}
.cov-filter-label{flex:0 0 72px;color:var(--ink-mute);font:500 13px/1.5 var(--font-sans)}
.cov-filter{border:1px solid var(--line);border-radius:999px;background:white;color:var(--ink-soft);padding:5px 11px;font:400 13px/1.45 var(--font-sans);cursor:pointer}
.cov-filter:hover,.cov-filter.active{color:var(--blue);border-color:var(--blue)}
.cov-filter.active{background:#eef4fa;font-weight:600}
.cs-module .cs-chip{font-family:var(--font-sans);padding:5px 12px;cursor:pointer;font-variant-numeric:tabular-nums}
.cs-module-evaluation .cs-chip{min-width:53px}
.cs-module-evaluation .cs-chip-row{align-items:center;min-height:35px}
.cs-module-evaluation .cs-family-label{min-width:208px}
.cs-module-evaluation .cs-family-label{min-width:260px}
.cs-module button:focus-visible,.cs-module a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:680px){
  .cs-module{margin-top:25px}
  .cs-module+.cs-module{margin-top:32px;padding-top:25px}
  .cs-module-head h3{font-size:21px}
  .cov-top-nav{flex-direction:column;gap:4px}
  .cs-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px}
  .cs-category{padding:7px 0 9px;font-size:12px}
  .cov-filter-row{gap:5px}
  .cov-filter-label{flex-basis:100%}
  .cs-module-evaluation .cs-family-label{min-width:100%;margin-bottom:3px}
  .cs-module-evaluation .cs-chip-row{gap:7px;margin-bottom:6px}
}

/* Section navigation reused from the reference project page. */
.section-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 32px;
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 0;
}
.section-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 0;
  color: var(--ink-mute);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 160ms ease;
}
.section-nav a::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: 2px;
  left: 22%;
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--blue);
  text-decoration: none;
}
.section-nav a:hover::after,
.section-nav a:focus-visible::after {
  transform: scaleX(1);
}
@media (max-width: 640px) {
  .section-nav { gap: 2px 22px; margin-top: 15px; }
  .section-nav a { min-height: 40px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-nav a, .section-nav a::after { transition: none; }
}
