/* Developer portal: builds on the public site's style.css (wood, gold, slate). */

.dev-main { padding-top: 32px; padding-bottom: 80px; max-width: 980px; }
.dev-tag {
    font: 700 0.75rem "Alegreya Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
    color: #2a1a0c; background: var(--gold); padding: 0.2em 0.6em; border-radius: 3px; flex-shrink: 0;
}
.dev-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.dev-nav a, .dev-user a { font: 500 0.98rem "Alegreya Sans", sans-serif; color: var(--text); text-decoration: none; opacity: 0.85; }
.dev-nav a:hover, .dev-nav a.active, .dev-user a:hover { color: var(--gold-hi); opacity: 1; }
.dev-user { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.dev-user form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: 0.95rem "Alegreya Sans", sans-serif; cursor: pointer; }
.linkish:hover { color: var(--gold-hi); }

.dev .gold { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.dev-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dev-head .gold { margin: 0; }
.muted { color: var(--muted); }

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.12));
    border: 1px solid rgba(216, 173, 85, 0.28);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin: 1.2rem 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.narrow-card { max-width: 460px; margin: 3rem auto; }

/* Forms */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack label { display: flex; flex-direction: column; gap: 0.35rem; font: 700 0.95rem "Alegreya Sans", sans-serif; color: var(--gold-hi); }
.stack h2 { margin: 0.5rem 0 0; font: 700 1.1rem "Alegreya Sans", sans-serif; color: var(--text); }
input, select, textarea {
    font: 1rem/1.5 "Alegreya", Georgia, serif; color: var(--text);
    background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(216, 173, 85, 0.35); border-radius: 5px;
    padding: 0.55rem 0.7rem; width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.stack button.plank { align-self: flex-start; cursor: pointer; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.form-error { color: #ffb4a6; background: rgba(140, 43, 24, 0.35); border-left: 3px solid #e2725b; padding: 0.6rem 0.9rem; border-radius: 3px; }
.form-ok { color: #cfe8c2; background: rgba(60, 110, 50, 0.35); border-left: 3px solid #7cbf6a; padding: 0.6rem 0.9rem; border-radius: 3px; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-actions form { margin: 0; }
button.plank-ghost { background: none; border: 0; border-bottom: 1px solid rgba(216, 173, 85, 0.4); cursor: pointer; }

/* Builds */
.release-head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.release-head h2 { margin: 0; font: 400 1.6rem "Uncial Antiqua", serif; color: var(--gold-hi); }
.release.latest { border-color: rgba(216, 173, 85, 0.6); }
.notes { white-space: pre-wrap; }
.dl-files { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 1rem; }
.dl-file { display: flex; flex-direction: column; gap: 0.4rem; }
.hash { font-size: 0.8em; }
.howto { margin-top: 1rem; }
.howto summary { cursor: pointer; color: var(--gold); font: 500 0.95rem "Alegreya Sans", sans-serif; }

/* Issues */
.tabs { display: flex; gap: 0.4rem; margin: 1.4rem 0 0.6rem; border-bottom: 1px solid rgba(216, 173, 85, 0.25); }
.tabs a { padding: 0.5rem 1rem; color: var(--muted); text-decoration: none; font: 500 1rem "Alegreya Sans", sans-serif; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--gold-hi); border-color: var(--gold); }
.tabs a span { font-size: 0.85em; background: rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 0 0.5em; margin-left: 0.2em; }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { border-bottom: 1px solid rgba(216, 173, 85, 0.15); }
.issue-row { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 0.4rem; text-decoration: none; color: var(--text); }
.issue-row:hover { background: rgba(255, 255, 255, 0.03); }
.issue-title { font-size: 1.1rem; font-weight: 500; }
.badge { display: inline-block; font: 700 0.72rem/1.6 "Alegreya Sans", sans-serif; letter-spacing: 0.05em; text-transform: uppercase; padding: 0 0.55em; border-radius: 3px; vertical-align: 0.15em; }
.badge-open { background: #3f6b38; color: #e4f4dc; }
.badge-closed { background: #5b4f6b; color: #ece4f7; }
.badge-bug { background: #8c2b18; color: #fff0e6; }
.badge-suggestion { background: #2f5b80; color: #e2f0fb; }
.issue-head h1 { font: 700 1.8rem/1.25 "Alegreya", serif; margin: 0.4rem 0; color: var(--gold-hi); }
.comment { border: 1px solid rgba(216, 173, 85, 0.22); border-radius: 6px; margin: 1rem 0; background: rgba(0, 0, 0, 0.18); }
.comment header { padding: 0.55rem 1rem; border-bottom: 1px solid rgba(216, 173, 85, 0.15); display: flex; gap: 0.7rem; align-items: baseline; flex-wrap: wrap; background: rgba(255, 255, 255, 0.03); }
.comment .text { padding: 0.9rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment.first { border-color: rgba(216, 173, 85, 0.45); }

@media (max-width: 760px) {
    .nav-inner { height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 0.6rem 1rem; }
    .dev-nav { order: 3; width: 100%; margin-left: 0; gap: 1rem; }
    .dev-user { margin-left: auto; }
    .row3 { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 1.1rem 1rem; }
}

/* Fixes */
.badge-fixed { background: #1f6f6a; color: #dcf7f3; }
.badge-ai { background: #4a3f8c; color: #ece8ff; }
.fixed-in { color: #7fd6c8; font-weight: 500; }
.fixed-ribbon {
    margin: 0 1rem 0.9rem; padding: 0.55rem 0.8rem;
    background: rgba(31, 111, 106, 0.22); border-left: 3px solid #4fb8aa; border-radius: 3px;
}
.fixed-ribbon b { color: #a9eee3; }
.fix-note { margin-top: 0.25rem; white-space: pre-wrap; color: var(--text); }
.comment.is-fixed { border-color: rgba(79, 184, 170, 0.45); }
.comment-tools { padding: 0 1rem 0.8rem; }
.event { margin: 0.6rem 0 0.6rem 1rem; padding-left: 0.9rem; border-left: 2px solid rgba(216, 173, 85, 0.25); color: var(--muted); }
.event .fix-note { color: var(--text); }
.issue-actions .form-actions { align-items: flex-start; }
.inline-form { margin: 0; display: inline; }
.fix-form summary { cursor: pointer; color: var(--gold); font: 500 0.95rem "Alegreya Sans", sans-serif; }
.fix-form[open] { flex-basis: 100%; }
.fix-form form { margin-top: 0.7rem; max-width: 520px; }

/* Attachments */
.attachments { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.8rem; padding: 0 1rem 0.9rem; }
.att-image { display: flex; flex-direction: column; gap: 0.25rem; max-width: 220px; text-decoration: none; color: var(--muted); font-size: 0.85rem; }
.att-image img { max-height: 150px; width: auto; border: 1px solid rgba(216, 173, 85, 0.35); border-radius: 4px; background: #0d1116; image-rendering: auto; }
.att-image span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-file { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border: 1px solid rgba(216, 173, 85, 0.35); border-radius: 5px; text-decoration: none; color: var(--gold-hi); background: rgba(0, 0, 0, 0.25); max-width: 100%; overflow-wrap: anywhere; }
.file-pick input[type=file] { padding: 0.45rem; font: 0.95rem "Alegreya Sans", sans-serif; }
.file-pick .muted { font-weight: 400; }
