/* Aion 2 Market Italia — home page. The one bold element is the board: one item, every server, cheapest first. */
main { padding-bottom: 72px; }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; padding-top: clamp(36px, 7vw, 84px); }
.pitch { position: sticky; top: 110px; }
.pitch h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.pitch p { margin: 22px 0 28px; font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

.board { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 14px; box-shadow: var(--shadow); }
.boardhead label { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; margin-bottom: 10px; }
.pickrow input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); font-size: 16px; font-weight: 600; }
.pickrow input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 999px; }
.bnote { margin: 10px 2px 12px; color: var(--dim); font-size: 14px; min-height: 2.9em; }
.rows { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rows a { display: grid; grid-template-columns: 22px 104px minmax(0, 1fr) 96px 104px; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 9px; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
.rows a::before { counter-increment: r; content: counter(r); color: var(--dim); font-size: 12.5px; text-align: right; }
.rows a:hover { background: var(--faint); }
.rows .bn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .bbar { height: 8px; border-radius: 4px; background: var(--faint); position: relative; }
.rows .bbar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: color-mix(in srgb, var(--dim) 70%, transparent); }
.rows .bp { text-align: right; font-weight: 700; }
.rows .bq { text-align: right; color: var(--dim); font-size: 13px; }
.rows li:first-child .bbar::after { background: var(--up); } .rows li:first-child .bp { color: var(--up); }
.rows a[aria-current="true"] { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.rows a[aria-current="true"] .bbar::after { background: var(--accent); }

.sections { margin-top: clamp(64px, 9vw, 112px); }
.sections h2, .ondiscord h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--line); }
.sec { display: block; padding: 24px 28px 26px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.sec:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.sec h3 { font-size: 21px; display: inline; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .2s; padding-bottom: 2px; }
.sec:hover h3, .sec:focus-visible h3 { background-size: 100% 2px; }
.sec p { margin: 10px 0 0; color: var(--dim); line-height: 1.55; }

.ondiscord { margin-top: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ondiscord p { margin: 14px 0 22px; color: var(--dim); font-size: 17px; max-width: 48ch; }
.cmds { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.cmds div { display: grid; grid-template-columns: 124px 1fr; gap: 12px; padding: 14px 18px; align-items: baseline; }
.cmds div + div { border-top: 1px solid var(--line); }
.cmds dt { font-weight: 700; color: var(--accent); }
.cmds dd { margin: 0; color: var(--dim); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; } .pitch { position: static; }
  .grid { grid-template-columns: 1fr 1fr; } .sec:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .sec:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .ondiscord { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .board { padding: 16px 12px 8px; border-radius: 16px; }
  .rows a { grid-template-columns: 18px 86px minmax(0, 1fr) 78px; gap: 8px; } .rows .bq { display: none; }
  .grid { grid-template-columns: 1fr; } .sec, .sec:nth-child(even) { padding: 20px 0; border-left: 0; }
  .cmds div { grid-template-columns: 96px 1fr; }
}
