/* On-page SEO page: three layers, twelve surfaces, 20-point self-check */
.op-layer .code { letter-spacing: 0.1em; text-transform: uppercase; }
.op-surfaces .sv-inc-card { padding: 22px; }
.op-surfaces .sv-inc-card h3 { font-size: 18.5px; margin-bottom: 6px; }
.op-surfaces .sv-inc-card p { font-size: 14.5px; }
.op-surfaces .sv-inc-card .code { margin-bottom: 14px; }
.op-rule { margin-top: auto; padding-top: 14px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--mint); }

/* 20-point checklist */
.opc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(250px, 0.72fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.opc-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.opc-col .mono-label { margin-bottom: 8px; font-size: 11.5px; }
.opc-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; line-height: 1.4; color: var(--muted); transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.35s var(--ease); }
.opc-item:hover { border-color: var(--line-2); color: var(--text); transform: translateX(3px); }
.opc-item[aria-pressed="true"] { border-color: rgba(87, 242, 176, 0.5); background: rgba(87, 242, 176, 0.07); color: var(--text); }
.opc-item .sv-check { width: 20px; height: 20px; border-radius: 6px; }
.opc-item .sv-check::after { left: 6px; top: 2px; width: 5px; height: 10px; }
.opc-item[aria-pressed="true"] .sv-check { background: var(--mint); border-color: var(--mint); }
.opc-item[aria-pressed="true"] .sv-check::after { transform: rotate(45deg) scale(1); }
.opc-out { position: sticky; top: calc(var(--header-h) + 30px); padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb), 0.22), transparent 60%), rgba(8, 14, 40, 0.85); display: flex; flex-direction: column; gap: 14px; }
.opc-score { display: flex; align-items: baseline; gap: 8px; }
.opc-score b { font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.opc-score span { color: var(--muted); font-size: 15px; }
.opc.is-high .opc-score b { color: var(--mint); }
.opc-bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.opc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rose), var(--amber) 50%, var(--mint)); background-size: 300% 100%; transition: width 0.6s var(--ease); }
.opc-msg { color: var(--muted); font-size: 15px; min-height: 4.5em; }
.opc-out .btn { width: 100%; }
.opc-fine { font-size: 11.5px; color: var(--dim); }
@media (max-width: 1080px) {
  .opc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .opc-out { grid-column: 1 / -1; position: relative; top: 0; }
}
@media (max-width: 700px) {
  .opc { grid-template-columns: 1fr; }
  .opc-item { font-size: 14.5px; }
}

/* ---------- day theme ---------- */
html[data-theme="light"] .opc-item { background: #fff; }
html[data-theme="light"] .opc-out { background: radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb), 0.1), transparent 60%), #fff; box-shadow: 0 18px 44px -30px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .opc-item[aria-pressed="true"] { border-color: rgba(11, 149, 102, 0.45); background: rgba(11, 149, 102, 0.06); }
