/* Roast My League: the free roast tool on the front page (its own file, on top of style.css). */
.rm-herolink { display: inline-block; margin-top: 14px; padding: 10px 0; color: var(--white); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.rm-herolink:hover { color: var(--flag); }

#roast { background: var(--chalk); scroll-margin-top: 12px; }
#roast .lede { margin-bottom: 36px; }
.rm-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .rm-grid { grid-template-columns: 5fr 6fr; gap: 40px; } }

.rm-form { background: #fff; border: 4px solid var(--ink); border-radius: 8px; padding: 24px; }
.rm-form label:first-child, .rm-form .rm-pair label { margin-top: 0; }
.rm-group + .rm-group, .rm-pair + .rm-group, .rm-group + .rm-pair { margin-top: 16px; }
.rm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.rm-hint { font-weight: 400; color: var(--muted); }
.rm-tone { border: 0; padding: 0; margin: 16px 0 0; }
.rm-tone legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.rm-tones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rm-tones label { position: relative; margin: 0; }
.rm-tones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rm-tones span { display: block; min-height: 56px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 4px; cursor: pointer; font-weight: 800; text-transform: uppercase; font-stretch: 87.5%; }
.rm-tones span small { display: block; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--muted); font-size: 14px; }
.rm-tones input:checked + span { border-color: var(--blue); background: #E6F0F5; box-shadow: inset 0 0 0 1px var(--blue); }
.rm-tones input:focus-visible + span { outline: 3px solid var(--flag); outline-offset: 2px; }
.rm-err { color: var(--red); font-weight: 600; font-size: 15px; min-height: 1.4em; margin-top: 12px; }
.rm-form .btn { width: 100%; margin-top: 6px; }

.rm-card { background: #fff; border-radius: 10px; box-shadow: 0 24px 50px -24px rgba(6,25,36,.45), 0 0 0 1px var(--line); overflow: hidden; }
.rm-card .bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.rm-card .bar .hash { color: var(--muted); font-size: 20px; line-height: 1; }
.rm-card .bar .tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--chalk); padding: 4px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; }
.rm-body { padding: 22px 20px 24px; }
.rm-empty { color: var(--muted); font-size: 17px; padding-bottom: 14px; }
.rm-text p { font-size: 19px; line-height: 1.5; }
.rm-text p + p { margin-top: 10px; }
.rm-text p:empty { display: none; }
.rm-locked { display: grid; gap: 10px; margin: 14px 0 20px; }
.rm-locked i { display: block; height: 14px; border-radius: 3px; background: var(--chalk); }
.rm-locked i:nth-child(2) { width: 88%; }
.rm-locked i:nth-child(3) { width: 64%; }
.rm-unlock { border-top: 4px solid var(--ink); padding-top: 18px; }
.rm-unlock h3 { font-size: 30px; }
.rm-unlock .rm-small { color: var(--muted); font-size: 15px; margin: 8px 0 14px; }
.rm-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .rm-row { grid-template-columns: 1fr auto; } }
.rm-row input { min-height: 56px; }
.rm-unlock .syng-msg { margin-top: 12px; font-weight: 700; color: var(--green); }
.rm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rm-status { min-height: 1.4em; margin-top: 10px; font-weight: 700; color: var(--green); font-size: 15px; }
.rm-next { margin-top: 18px; padding: 16px 18px; background: var(--chalk); border-radius: 6px; font-size: 16px; }
.rm-next a { font-weight: 800; display: inline-block; padding: 6px 0; }
#roast-full:focus { outline: none; }
