/* Intra (intra/index.html), in the look of the Markets pages. The class names inside #inMain come from the content
   (intra/src/main.html, see tools/intra.mjs), so they are kept as they were on the old Intra site.
   Site colours: bg #1A1A1A, cards #282828, borders #3A3A3A, accent #3dc0c8 */

.in-search { position: relative; display: block; max-width: 520px; margin-top: 28px; }
.in-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.4); font-size: 14px; }
.in-search input { width: 100%; padding: 14px 16px 14px 42px; background: #282828; border: 1px solid #3A3A3A; color: #fff; font-size: 16px; outline: none; transition: border-color 150ms; }
.in-search input:focus { border-color: #3dc0c8; }
.in-search input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* Sections: full width, or half width ("list") so two sit side by side */
#inMain { margin-top: 8px; }
#sections { display: flex; flex-wrap: wrap; column-gap: 24px; }
.section { width: 100%; margin-top: 44px; }
@media (min-width: 800px) { .section.half { width: calc(50% - 12px); } }
.section-title { margin-bottom: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #3dc0c8; }

/* Alerts and Tools: a button with a note beside it */
.action-card { background: #282828; border: 1px solid #3A3A3A; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; }
.action-row + .action-row { border-top: 1px solid #3A3A3A; }
.action-button { flex: none; display: inline-flex; align-items: center; min-width: 260px; justify-content: center; padding: 12px 22px; background: #fff; color: #000; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 150ms, color 150ms; }
.action-button::after { content: '\f062'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: 10px; transform: rotate(45deg); display: inline-block; }
.action-button:hover { background: #3dc0c8; }
.action-card.danger { border-color: rgba(249, 123, 107, 0.5); }
.action-card.danger .action-button { background: #e5484d; color: #fff; }
.action-card.danger .action-button:hover { background: #c4363b; }
.action-note { flex: 1 1 240px; color: rgba(255, 255, 255, 0.65); font-size: 14px; }
@media (max-width: 640px) { .action-button { width: 100%; min-width: 0; } }

/* Link cards */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.list { display: grid; background: #282828; border: 1px solid #3A3A3A; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #282828; border: 1px solid #3A3A3A; transition: border-color 150ms, background-color 150ms; }
.card:hover { border-color: #3dc0c8; }
.card.row { flex-direction: row; align-items: baseline; gap: 12px; padding: 12px 18px; border: 0; border-top: 1px solid #3A3A3A; }
.card.row:first-child { border-top: 0; }
.card.row:hover { background: #303030; }
.card-name { font-weight: 700; font-size: 15px; }
.card.row .card-name { min-width: 120px; }
.card-desc { color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.card-host { margin-top: auto; color: rgba(255, 255, 255, 0.35); font-size: 12px; }
.card.row .card-host { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.empty { margin-top: 32px; color: rgba(255, 255, 255, 0.5); }

/* FAQ */
.faq { border: 1px solid #3A3A3A; background: #282828; }
.faq details + details { border-top: 1px solid #3A3A3A; }
.faq summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: rgba(255, 255, 255, 0.5); transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: #3dc0c8; }
.faq details > :not(summary) { margin: 0 22px 14px; color: rgba(255, 255, 255, 0.75); font-size: 14px; line-height: 1.6; }
.faq ul { padding-left: 18px; list-style: disc; }
.faq a { color: #3dc0c8; text-decoration: underline; text-underline-offset: 2px; }
.faq strong { color: #fff; }
.faq-qr { background: #fff; padding: 8px; }
