/* PETAlyze forum and sign-in pages. IBM Plex © IBM Corp., SIL Open Font License 1.1 – served from this site. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --lightbox: #eef3f5; --paper: #ffffff; --ink: #10202b; --muted: #546874; --rule: #d5e0e5;
  --signal: #0b6f86; --signal-ink: #ffffff; --error: #b3261e;
  --gecolor: linear-gradient(to top, #000000 0%, #00807d 24.7%, #8000ff 50.2%, #ff8000 75.3%, #ffffff 100%);
  --sec-announce: #0b6f86; --sec-questions: #2d6a3e; --sec-errors: #a33b20; --sec-ideas: #6d3f8c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lightbox); color: var(--ink); font: 400 16px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--signal); }
:focus-visible { outline: 3px solid #f2b23a; outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; max-width: 1180px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; }
.mark i { width: 8px; height: 26px; border-radius: 2px; background: var(--gecolor); }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.session { display: flex; align-items: center; gap: 10px; font-size: 15px; min-width: 120px; justify-content: flex-end; }
.session .who { font-weight: 500; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--signal); text-decoration: underline; cursor: pointer; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--signal); color: var(--signal-ink); }
.btn.primary:hover { background: #095c70; }
.btn.plain { color: var(--ink); border-color: #b9c8cf; background: transparent; font-weight: 500; }
.btn.plain:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.danger { color: var(--error); border-color: #e3b5b1; background: transparent; font-weight: 500; min-height: 34px; padding: 0 12px; font-size: 14px; }
label.fl { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #9fb2bb; border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
input[type=text], input[type=email], input[type=password], select { height: 44px; }
textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field { margin-bottom: 16px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; margin: 4px 0 16px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--signal); }
.err { color: var(--error); font-size: 14.5px; margin: 8px 0 0; }
.err:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* page */
main { padding: 44px 0 72px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; margin-bottom: 26px; }
.intro .lead { color: #2d4250; max-width: 60ch; margin: 10px 0 0; }
.rules { background: #fff8e8; border: 1px solid #f0d9a6; border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-bottom: 26px; }
.rules strong { font-weight: 600; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 24px; }
.composer { margin-bottom: 26px; }
.composer h2 { margin-bottom: 16px; }

/* sections */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tabs button { font: inherit; font-size: 14.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid #c7d4da; background: var(--paper); color: var(--ink); cursor: pointer; }
.tabs button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sec { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: #fff; vertical-align: 2px; }
.sec.announcements { background: var(--sec-announce); }
.sec.questions { background: var(--sec-questions); }
.sec.errors { background: var(--sec-errors); }
.sec.ideas { background: var(--sec-ideas); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.list > li { padding: 16px 20px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; }
.list > li:first-child { border-top: 0; }
.list .t { font-size: 17px; font-weight: 600; text-decoration: none; color: var(--ink); }
.list .t:hover { color: var(--signal); text-decoration: underline; }
.list .meta { grid-column: 1; font-size: 14px; color: var(--muted); }
.list .count { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-size: 14px; color: var(--muted); white-space: nowrap; }
.list .count b { display: block; font-size: 18px; color: var(--ink); font-weight: 600; }
.list.dim { opacity: .6; }
.announce { margin-bottom: 26px; }
.announce h2, .topics h2 { margin-bottom: 12px; font-size: 18px; }
.empty { background: var(--paper); border: 1px dashed #b9c8cf; border-radius: 12px; padding: 22px; color: var(--muted); }
.more { margin-top: 14px; }

/* a discussion */
.crumb { font-size: 14.5px; margin-bottom: 14px; }
.post { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 24px; }
.post h1 { font-size: 30px; margin: 8px 0 6px; }
.post .meta, .reply .meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.body { overflow-wrap: anywhere; }
.body p:last-child { margin-bottom: 0; }
.replies { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.reply { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid #b9c8cf; border-radius: 0 10px 10px 0; padding: 14px 18px; }
.reply .meta { margin-bottom: 6px; }
.owner-tools { margin-top: 12px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.respond { margin-top: 22px; }
.respond h2 { font-size: 18px; margin-bottom: 12px; }

/* sign in */
.auth { max-width: 460px; margin: 0 auto; }
.auth h1 { font-size: 30px; margin-bottom: 8px; }
.auth .sub { color: #2d4250; margin-bottom: 20px; }
.auth .card + p { margin-top: 16px; font-size: 15px; }
.switch { font-size: 15px; margin: 16px 0 0; }

footer { border-top: 1px solid var(--rule); padding: 24px 0 40px; font-size: 13.5px; color: var(--muted); }
footer .wrap { max-width: 1180px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 760px) {
  h1 { font-size: 29px; }
  .top nav { display: none; }
  .session { margin-left: auto; min-width: 0; }
  .intro { grid-template-columns: 1fr; }
  .list > li { grid-template-columns: 1fr; }
  .list .count { grid-row: auto; grid-column: 1; text-align: left; }
  .list .count b { display: inline; font-size: 14px; }
}
.sr-replies { font-size: 18px; margin: 26px 0 0; }
