.wq-grading-main{width:min(1240px,calc(100% - 40px));padding:24px 0 60px}
.wq-grading-header{padding:32px 34px;background:#fff;border:1px solid #e2e7e4;border-radius:10px;margin-bottom:16px}
.wq-grading-header h1{font-size:clamp(28px,3vw,34px);line-height:1.2;margin:0 0 12px}
.wq-grading-header p{margin:0;color:var(--muted)}
.wq-grading-guide,.wq-grading-guide>.wp-block-group__inner-container{max-width:none;width:100%}
.wq-grade-principles,.wq-grade-cards,.wq-condition-cards{display:grid!important;gap:16px!important;margin:16px 0 30px!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.wq-condition-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Classic WordPress themes add this wrapper at render time. Keep the actual
   cards/photos in their parent grid, without removing editable block markup. */
:is(.wq-grade-principles,.wq-grade-cards,.wq-condition-cards,.wq-grade-photos,.wq-grade-card-head)>.wp-block-group__inner-container{display:contents!important}
.wq-grade-card,.wq-grade-principle{min-width:0;width:auto!important;max-width:none!important;margin:0!important;padding:20px;background:#fff;border:1px solid #dfe5df;border-radius:9px;box-shadow:0 8px 24px #15382a08}
.wq-grade-principle{position:relative;padding:17px 18px 17px 52px}
.wq-grade-principle::before{position:absolute;left:18px;top:17px;width:23px;height:23px;display:grid;place-items:center;border:1px solid #208082;border-radius:7px;color:#208082;content:'✓';font-size:15px}
.wq-grade-principle:nth-child(2)::before{content:'⌕';font-size:22px;border:0}
.wq-grade-principle:nth-child(3)::before{border:0}
.wq-grading-guide h2{font-size:clamp(24px,3vw,30px);line-height:1.2;margin:28px 0 10px}
.wq-grading-guide h3{font-size:17px;line-height:1.35;margin:0 0 8px}
.wq-grading-guide p{font-size:14px;line-height:1.7;color:#61736a}
.wq-grade-principle p{margin:0}
.wq-grade-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 12px}
.wq-grade-card .wq-grade-code{font-size:42px;font-weight:800;line-height:1.05;margin:0;color:#1c7273}
.wq-grade-code::before{content:'GRADE';display:block;font-size:10px;line-height:1.6;letter-spacing:.05em;color:#74828a;font-weight:600}
.wq-condition-cards .wq-grade-code{font-size:28px}
.wq-condition-cards .wq-grade-code::before{content:'CONDITION'}
.wq-grade-card .wq-grade-tag{margin:0;padding:4px 10px;border-radius:20px;color:#1c7273;background:#e9f4f4;font-size:11px;font-weight:700;white-space:nowrap}
.wq-grade-photos{display:grid!important;grid-template-columns:1.8fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px!important;margin:14px 0 18px!important;height:250px}
.wq-grade-photos-four{grid-template-rows:repeat(3,minmax(0,1fr))}
.wq-grade-photos figure{margin:0!important;min-width:0;max-width:none!important;width:100%;height:100%;overflow:hidden;border-radius:9px}
.wq-grade-photos figure:first-child{grid-row:1/-1}
.wq-grade-photos a{display:block;height:100%}
.wq-grade-photos img{display:block;width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.wq-grade-cards h3{font-size:18px;line-height:1.4}
.wq-grade-card .wq-grade-summary{font-size:16px;line-height:1.6;margin:0 0 16px;color:#52685e}
/* The list is editable core/list content. The green check is decoration only;
   each standard remains readable text, never conveyed by color alone. */
.wq-grade-card .wq-grade-checklist{display:grid;gap:9px;padding:16px 0 0;margin:0;list-style:none;border-top:1px solid #e0ece6;font-size:15px;line-height:1.55;color:#263d34}
.wq-grade-checklist li{position:relative;margin:0;padding-left:28px;min-width:0;overflow-wrap:anywhere}
.wq-grade-checklist li::before{content:"";position:absolute;left:3px;top:.32em;width:8px;height:13px;border:solid #16874e;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.wq-grade-compare{overflow-x:auto;border:1px solid #dfe5df;border-radius:10px;background:#fff;margin:20px 0}
.wq-grade-compare table{width:100%;border-collapse:collapse;min-width:520px}
.wq-grade-compare th,.wq-grade-compare td{padding:14px;text-align:left;border-bottom:1px solid #e2e9e4;font-size:13px}
.wq-grade-compare thead{background:#edf7f2}
.wq-grading-note{border-left:3px solid #157456;background:#eaf6f0;padding:14px}
.wq-grade-lightbox{border:0;border-radius:14px;padding:16px;width:min(900px,92vw);max-height:92vh;background:#fff}
.wq-grade-lightbox::backdrop{background:#061d16c9}
.wq-grade-lightbox img{max-height:74vh;max-width:100%;margin:auto;object-fit:contain}
.wq-grade-lightbox button{display:block;margin:0 0 10px auto;min-width:44px;min-height:44px;border:0;border-radius:50%;font-size:24px;cursor:pointer}
.wq-grade-lightbox p{margin:8px 0 0}
@media(max-width:1000px){.wq-grade-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.wq-grade-principles{gap:10px!important}.wq-grade-principle{padding:14px}.wq-grade-principle::before{display:none}}
@media(max-width:650px){.wq-grading-main{width:calc(100% - 24px);padding-bottom:90px}.wq-grade-principles,.wq-grade-cards,.wq-condition-cards{grid-template-columns:1fr!important}.wq-grading-header,.wq-grade-card{padding:18px}.wq-grade-compare th,.wq-grade-compare td{padding:10px}.wq-grade-card .wq-grade-checklist{gap:12px}.wq-grade-card .wq-grade-summary{margin-bottom:14px}}
