/* /agents.html: page-specific rules on top of styles.css */
.ag-section { margin-top: 56px; }
.ag-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 1.4vw + 18px, 34px); line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.ag-sub { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 24px; max-width: 56ch; }

/* Meter */
.ag-meter { margin-bottom: 20px; }
.ag-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ag-meter-label { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ag-meter-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ag-track { height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.ag-fill { height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--accent); border-radius: 999px 0 0 999px; }
@media (prefers-reduced-motion: no-preference) {
  .ag-fill { transition: width .7s cubic-bezier(.2, .7, .2, 1); }
}

/* Doors */
.ag-doors { list-style: none; padding: 0; margin: 0; border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.ag-door { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.ag-door + .ag-door { border-top: 1px solid var(--hairline); }
.ag-door-main { min-width: 0; }
.ag-door-main p { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.ag-door-main p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
.ag-door-main p a:hover { text-decoration-color: currentColor; }
.ag-door-main code, .ag-copy-code { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.ag-door-link { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
a.ag-door-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
a.ag-door-link:hover { text-decoration-color: currentColor; }
.ag-status { flex: none; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.ag-status:empty { display: none; }
.ag-status.is-live { color: #0B7A52; }
.ag-status.is-live::before { content: "\2713\00a0"; }
.ag-status.is-wait { color: var(--muted); font-weight: 500; }
.ag-status.is-no { color: var(--accent-text); }

/* Copy blocks */
.ag-copy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 20px; background: var(--white); border: 1px solid var(--hairline); border-radius: 16px; }
.ag-copy-text { font-size: 16px; line-height: 1.55; }
.ag-copy-code { line-height: 1.6; min-width: 0; }
.ag-copy-btn { flex: none; min-width: 76px; }
.ag-copy-btn.is-done { background: var(--ink); color: var(--paper); }

/* Rules */
.ag-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ag-rules li { padding: 16px 20px; background: var(--white); border: 1px solid var(--hairline); border-left: 4px solid var(--accent); border-radius: 12px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.ag-rules strong { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  .ag-section { margin-top: 44px; }
  .ag-door { flex-direction: column; gap: 8px; padding: 16px; }
  .ag-copy { flex-direction: column; align-items: stretch; padding: 16px; }
  .ag-copy-btn { width: 100%; }
}
