/* Every page that isn't the homepage: legal pages, rules, safety, and Dobdob on
   the small link pages. Builds on site.css and landing.css. New look, Nov 2026. */

/* Links: ink, thick underline, never browser blue. */
main a:not(.l-btn):not(.primary):not(.l-tile) { color: inherit; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
main a:not(.l-btn):not(.primary):not(.l-tile):hover { background: var(--dob); color: var(--ink); }
.l-nav a { color: inherit; }
.l-foot a { color: var(--text); }

/* ---------- Small link pages (invite, stop, 404, password reset…) ---------- */
body.m main { min-height: calc(100dvh - 67px); padding-top: 32px; padding-bottom: 32px; }
body.m main > h1 { margin-top: 4px; }
body.m .l-nav .l-wrap { min-height: 60px; }
.m-gary { width: 130px; height: 150px; }

/* ---------- Legal and rules pages ---------- */
.d-hero { padding: 44px 0 34px; border-bottom: 2.5px solid var(--outline); }
.d-hero h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1; max-width: 16ch; }
.d-lede { font-size: clamp(17px, 2vw, 20px); color: var(--strong); margin-top: 16px !important; max-width: 52ch; }
.d-updated { max-width: 70ch; margin-top: 14px !important; font-size: 15px; font-weight: 800; color: var(--muted); }
.d-hero .l-wrap, .d-body { max-width: 1040px; }

.d-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 34px; padding-bottom: 60px; }
.d-toc { position: sticky; top: 88px; padding: 16px 18px; background: var(--card); border: 2.5px solid var(--outline); border-radius: 18px; box-shadow: 0 4px 0 var(--drop); }
.d-toc summary { list-style: none; cursor: pointer; font-family: var(--display); font-size: 19px; display: flex; justify-content: space-between; align-items: center; }
.d-toc summary::-webkit-details-marker { display: none; }
.d-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.d-toc a { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; font-weight: 800; font-size: 15px; text-decoration: none !important; color: var(--text) !important; }
.d-toc a:hover { background: var(--dob); color: var(--ink) !important; }

.d-secs { display: grid; gap: 18px; }
.d-sec { scroll-margin-top: 84px; padding: 20px 22px; background: var(--card); border: 2.5px solid var(--outline); border-radius: 20px; box-shadow: 0 4px 0 var(--drop); }
.d-sec:target { outline: 4px solid var(--giallo); outline-offset: 3px; }
.d-sec h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(23px, 3vw, 29px); line-height: 1.1; margin: 0 0 12px; }
.d-sec h2::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 6px; border: 2.5px solid var(--ink); background: var(--dot, var(--verde)); }
.d-sec p, .d-sec li { font-weight: 700; color: var(--strong); line-height: 1.55; }
.d-sec p + p, .d-sec p + ul, .d-sec ul + p { margin-top: 10px !important; }
.d-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.d-sec li { position: relative; padding-left: 22px; }
.d-sec li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 9px; height: 9px; border-radius: 3px; background: var(--dot, var(--verde)); border: 2px solid var(--ink); }
.d-sec strong, .d-sec b { color: var(--text); font-weight: 900; }
.d-sec:nth-child(4n+1) { --dot: var(--verde); }
.d-sec:nth-child(4n+2) { --dot: var(--giallo); }
.d-sec:nth-child(4n+3) { --dot: var(--blu); }
.d-sec:nth-child(4n+4) { --dot: var(--arancio); }

.d-help { display: flex; align-items: center; gap: 20px; padding: 22px 24px; background: var(--giallo); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 0 4px 0 var(--ink); }
.d-help .gary { width: 84px; height: 98px; flex: none; }
.d-help h2 { font-size: 27px; margin-bottom: 6px; }
.d-help p { font-weight: 800; }
.d-help a { color: var(--ink) !important; }

@media (max-width: 860px) {
  .d-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .d-toc { position: static; }
  .d-help { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* Two equal buttons side by side. */
.m-two { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
@media (max-width: 340px) { .m-two { grid-template-columns: 1fr; } }
.d-toc summary::after { content: ''; width: 9px; height: 9px; margin: 0 4px 4px 0; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); }
.d-toc[open] summary::after { transform: translateY(4px) rotate(-135deg); }
