/* css/pages/seal.css  -  the sorting quiz and its two seals on mrhatman.com (section type "sorting", js/sorting.js).
   Copied from seomeetsai.com with the sunset colours: amber, burnt orange, sand. */
.eg-sort { --sort-gold: #f2a33a; --sort-river: #ffc46b; --sort-stone: #a08b78; --sort-clay: #d9541e; --sort-card: var(--eg-surface); --sort-ink: var(--eg-heading); --sort-line: var(--eg-line); }
.eg-sort-card { background: var(--eg-surface); border: 1px solid var(--eg-line); border-radius: var(--eg-radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; text-align: left; max-width: 620px; margin: 0 auto; }
.eg-sort-card p { margin: 0; }
.eg-sort-step { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--eg-accent); font-weight: 700; }
.eg-sort-q { font-family: var(--eg-font-head); color: var(--eg-heading); font-size: 1.6rem; line-height: 1.25; margin: 0; text-wrap: balance; }
.eg-sort-lead { color: var(--eg-muted); }
.eg-sort-answers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eg-sort-ans { width: 100%; text-align: left; font: inherit; color: var(--eg-text); background: transparent; border: 1px solid var(--eg-line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.eg-sort-ans:hover { border-color: var(--eg-accent); background: rgba(242, 163, 58, .1); }
.eg-sort-ans:focus-visible, .eg-sort-card .eg-btn:focus-visible, .eg-sort-card input:focus-visible, .eg-sort-card textarea:focus-visible { outline: 3px solid var(--eg-accent); outline-offset: 2px; }
.eg-sort-row { display: flex; gap: 10px; flex-wrap: wrap; }
.eg-sort-check { display: flex; gap: 10px; align-items: flex-start; }
.eg-sort-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--eg-accent); flex: none; }
.eg-sort-form { display: flex; flex-direction: column; gap: 14px; }
.eg-sort-path { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.eg-sort-path li::marker { color: var(--eg-accent); }
.eg-sort .eg-btn:disabled { opacity: .45; cursor: not-allowed; }
.eg-seal { display: flex; justify-content: center; }
.eg-seal svg { width: min(280px, 100%); height: auto; display: block; }
.eg-seal-item { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eg-seal-num { text-align: center; font-weight: 700; font-size: 1rem; color: var(--eg-heading); }
.eg-seal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eg-seal-code { text-align: center; font-size: .8rem; letter-spacing: .2em; color: var(--eg-muted); font-variant-numeric: tabular-nums; }
.eg-ring { fill: none; stroke-width: 2; transform-origin: 150px 150px; animation: eg-breathe 3.2s ease-in-out infinite; }
.eg-ring:nth-of-type(2) { animation-delay: .4s; } .eg-ring:nth-of-type(3) { animation-delay: .8s; }
@keyframes eg-breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: .45; } }
.eg-rise { animation: eg-rise 2.4s ease-out both; }
@keyframes eg-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.eg-flow { animation: eg-flow 4s linear infinite; }
@keyframes eg-flow { from { transform: translateX(0); } to { transform: translateX(-80px); } }
.eg-orbit { transform-origin: 150px 150px; animation: eg-orbit 6s linear infinite; }
@keyframes eg-orbit { to { transform: rotate(360deg); } }
.eg-pulse { animation: eg-pulse 2.6s ease-in-out infinite; }
@keyframes eg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .eg-ring, .eg-rise, .eg-flow, .eg-orbit, .eg-pulse { animation: none; } }
/* the passage from the book, and the die rolled for this question */
.eg-sort-passage { margin: 0; padding: 14px 18px; border-left: 3px solid var(--eg-accent); background: rgba(242, 163, 58, .07); border-radius: 0 10px 10px 0; }
.eg-sort-passage p { font-family: var(--eg-font-head); font-style: italic; color: var(--eg-heading); font-size: 1.08rem; line-height: 1.5; }
.eg-sort-step { display: inline-flex; align-items: center; gap: 10px; }
.eg-die svg { width: 20px; height: 20px; display: block; }
.eg-die rect { fill: none; stroke: var(--eg-accent); stroke-width: 1.5; }
.eg-die circle { fill: var(--eg-accent); }
.eg-sort-gender { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eg-sort-gender legend { margin-bottom: 6px; font-weight: 600; }
.eg-sort-gender input { accent-color: var(--eg-accent); }
/* the contact step: one clean column, full width (the site's general .eg-form lays fields side by side) */
.eg-sort .eg-sort-form { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 14px; max-width: none; margin: 0; }
.eg-sort .eg-field { display: block; flex: none; width: 100%; max-width: none; margin: 0; }
.eg-sort .eg-field > span { display: block; margin-bottom: .35rem; }
.eg-sort .eg-field input, .eg-sort .eg-field textarea { width: 100%; box-sizing: border-box; }
.eg-sort .eg-sort-form .eg-btn { align-self: flex-start; }
.eg-sort .eg-sort-gender { margin: 4px 0 0; }

.eg-sort-dm-line { margin-top: 4px; }
.eg-sort-q:focus { outline: none; }
