:root {
  color: #222920;
  background: #f6f4ec;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --paper: #f6f4ec;
  --white: #fffefa;
  --ink: #222920;
  --muted: #536052;
  --line: #d8dccd;
  --pine: #202c22;
  --lime: #d9f191;
  --green: #435a2e;
  --rust: #975232;
  --radius: .42rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
h1, h2, .brand { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
h1 { font-size: clamp(3.15rem, 7vw, 5.25rem); line-height: .95; font-weight: 500; letter-spacing: -.063em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
p { line-height: 1.55; }
a { color: #35501e; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, .primary {
  min-height: 2.55rem;
  padding: .58rem .86rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #a9b29f;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 650;
}
button:not(:disabled):hover { background: #ecf0e2; }
button:disabled { opacity: .55; cursor: wait; }
input, select {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 2.72rem;
  padding: .52rem .65rem;
  background: var(--white);
  border: 1px solid #a9b29f;
  border-radius: var(--radius);
  color: var(--ink);
}
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #a75b3b;
  outline-offset: 3px;
}
label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 690; }
small { display: block; color: var(--muted); font-size: .77rem; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pine);
  border-color: var(--pine);
  color: var(--white);
  text-decoration: none;
}
.primary:not(:disabled):hover { background: #3b513a; }
.text-button { padding-inline: .2rem; border-color: transparent; color: #345020; background: transparent; text-decoration: underline; text-underline-offset: .22em; }
.error { color: #922f22; min-width: 0; overflow-wrap: anywhere; }
.error:not(:empty) { padding: .6rem .75rem; border-left: .19rem solid #a85037; background: #f8e5d9; }
.error:empty { display: none; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .6rem; background: var(--white); z-index: 4; }
.skip:focus { transform: none; }

.brand { display: flex; align-items: center; gap: .72rem; font-size: 2.1rem; letter-spacing: -.052em; line-height: .95; color: #f9f7e9; }
.brand i { width: 1.4rem; height: 1.82rem; border: 2px solid var(--lime); position: relative; transform: skewY(-12deg); }
.brand i::before { content: ''; position: absolute; inset: .08rem .3rem .14rem -.34rem; border: 2px solid var(--lime); background: var(--pine); }
.brand i::after { content: ''; position: absolute; left: .31rem; top: .77rem; width: .14rem; height: .14rem; border-radius: 100%; background: var(--lime); }
.brand small { margin-top: .44rem; color: #d6dfc4; font-family: "Avenir Next", Avenir, sans-serif; letter-spacing: .015em; font-size: .68rem; }
.auth-layout { display: grid; grid-template-columns: minmax(17rem, 1fr) 1fr; min-height: 100vh; }
.auth-brand { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 27rem; gap: 4rem; padding: clamp(2rem, 5.4vw, 5rem); background: var(--pine); }
.auth-brand p { position: relative; z-index: 1; max-width: 9ch; margin-top: auto; color: #f9f7e9; font: 500 clamp(3rem, 6.3vw, 7rem)/.91 "Iowan Old Style", Georgia, serif; letter-spacing: -.07em; }
.door { position: absolute; top: 31%; right: -10%; width: min(39vw, 26rem); height: 60%; border: 1px solid #7a9168; transform: skewY(-15deg); }
.door::before, .door::after { content: ''; position: absolute; inset: 7% 22% -12% -15%; border: 1px solid #637958; }
.door::after { inset: 13% 44% -25% -30%; border-color: #53664c; }
.auth-main { display: grid; place-items: center; padding: clamp(1.75rem, 6vw, 5rem); }
.auth-box { width: min(100%, 26rem); }
.auth-box h1 { font-size: clamp(2.7rem, 5vw, 4.3rem); margin-bottom: .75rem; }
.auth-box > p { color: var(--muted); }
.auth-box .error { margin-top: .8rem; color: #922f22; }
.auth-box form { display: grid; gap: 1rem; margin-block: 1.7rem .8rem; }
.auth-box .primary { width: 100%; }

.shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 100vh; }
aside { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 2rem 1.25rem 1rem; background: var(--pine); color: #f9f7e9; }
aside .brand { margin-left: .55rem; }
.workspace-label { margin-top: 3.9rem; margin-bottom: .35rem; color: #d6dfc4; }
aside select { color: white; background: #303f2f; border-color: #687563; font-size: .83rem; }
aside nav { display: grid; gap: .38rem; margin-block: 1.45rem; }
aside nav button { display: flex; justify-content: space-between; text-align: left; color: #e9eddb; background: transparent; border-color: transparent; }
aside nav button:not(:disabled):hover { background: #354933; }
aside nav button[aria-current="page"] { color: var(--pine); background: var(--lime); border-color: var(--lime); }
aside nav button[aria-current="page"]:not(:disabled):hover { background: #e5f8ae; }
.account { margin-top: auto; border-top: 1px solid #66745e; padding-top: .7rem; overflow-wrap: anywhere; }
.account span { display: block; color: #d6dfc4; font-size: .74rem; padding-inline: .2rem; }
.account button { background: transparent; border: none; padding-inline: .2rem; color: #f9f7e9; }
.account button:not(:disabled):hover { background: #354933; }

#workspace-main { min-width: 0; padding: clamp(1.35rem, 5vw, 4.3rem); width: 100%; max-width: 96rem; }
.environment { width: fit-content; margin-bottom: 1.5rem; color: #684327; background: #f1e4c8; border: 1px solid #deccad; padding: .25rem .55rem; font-size: .74rem; font-weight: 700; }
.page-head { border-bottom: 1px solid #aeb9a6; padding-bottom: 1.55rem; margin-bottom: 1.4rem; }
.eyebrow { color: var(--green); font-size: .79rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 750; margin-bottom: .7rem; }
.page-head p { margin-top: .75rem; color: var(--muted); }
.feed { display: flex; gap: .45rem; margin: 0 0 1.05rem; }
.feed button[aria-pressed="true"] { color: #253819; border-color: #6d8354; background: #e7efcf; }
.demo-notice { margin-bottom: 1rem; color: #654221; font-size: .87rem; }
#search { display: grid; grid-template-columns: minmax(10rem, 1.8fr) repeat(3, minmax(7rem, 1fr)) auto; align-items: end; gap: .66rem; padding: .95rem; background: #eaeee0; border: 1px solid #ccd5c4; border-radius: var(--radius); }
#search button { min-height: 2.72rem; }
.result-heading { margin-block: 1.55rem .5rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.result-heading h2 { font-size: 1.63rem; }
.results { border-top: 1px solid var(--line); }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, 10.7rem); gap: 1rem; padding: 1.02rem .18rem; border-bottom: 1px solid var(--line); }
.listing-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.kind { font-weight: 700; color: #364a23; }
.kind.private-tender, .kind.private-funding { color: #7c4834; }
.demo-tag, .saved-label { color: #614622; font-weight: 660; }
.listing h3 { margin-block: .25rem .12rem; }
.listing-title { display: inline; text-align: left; min-height: auto; color: var(--ink); font-size: 1.06rem; line-height: 1.36; padding: 0; border: none; border-radius: 0; background: transparent; overflow-wrap: anywhere; }
.listing-title:not(:disabled):hover { background: transparent; text-decoration: underline; text-underline-offset: .18em; }
.issuer, .deadline span, .empty { color: var(--muted); font-size: .84rem; }
.deadline { border-left: 1px solid var(--line); padding-left: .7rem; display: grid; align-content: center; gap: .12rem; }
.deadline strong { font-size: .84rem; }
.deadline .saved-label { font-size: .74rem; }
.empty { padding-block: 1.35rem; }
.pagination { display: flex; gap: .6rem; margin-top: 1rem; }
footer { margin-top: 2rem; font-size: .77rem; color: var(--muted); }

dialog { width: min(43rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid #b2bca8; border-radius: .65rem; padding: clamp(1.25rem, 5vw, 2.25rem); color: var(--ink); background: var(--white); }
dialog::backdrop { background: #172119a8; }
.dialog-close { display: flex; justify-content: end; }
.dialog-close button { border: none; font-size: 1.5rem; min-height: 1.8rem; padding: 0 .55rem; }
dialog h3 { margin: .95rem 0 .2rem; font-size: .95rem; }
dialog .issuer { margin-top: .6rem; }
dialog p { white-space: pre-line; overflow-wrap: anywhere; }
dialog dl { display: flex; flex-wrap: wrap; gap: .8rem 1.45rem; padding-block: .75rem; border-block: 1px solid var(--line); }
dialog dt { font-size: .73rem; color: var(--muted); }
dialog dd { margin: 0; font-size: .88rem; font-weight: 650; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.2rem .5rem; }
.documents { padding-left: 1.15rem; font-size: .85rem; overflow-wrap: anywhere; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; }
.team-card { background: var(--white); padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.team-card > p { margin-block: .75rem; color: var(--muted); font-size: .86rem; }
.team-card form { display: grid; gap: .65rem; }
.team-list { margin: .65rem 0 1.35rem; padding: 0; list-style: none; }
.team-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .55rem; border-bottom: 1px solid var(--line); font-size: .85rem; overflow-wrap: anywhere; }
.team-list li > div { min-width: 0; }
#share { margin-top: 1rem; display: grid; gap: .35rem; }
#share button { justify-self: start; }
#invite-status { color: var(--green); font-size: .85rem; }

@media (max-width: 1120px) {
  #search { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  #search .keyword { grid-column: span 2; }
}
@media (max-width: 760px) {
  .shell, .auth-layout { grid-template-columns: minmax(0, 1fr); }
  aside { position: static; height: auto; padding: 1rem; }
  .workspace-label { margin-top: 1.25rem; }
  aside nav { display: flex; flex-wrap: wrap; margin-block: .6rem; }
  aside nav button { gap: .35rem; padding-inline: .5rem; }
  .account { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .2rem; }
  .auth-brand { min-height: 14rem; gap: 1.15rem; }
  .auth-brand p { max-width: 15ch; font-size: clamp(2.55rem, 8vw, 4.2rem); }
  .auth-main { align-items: start; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 470px) {
  #workspace-main { padding: 1rem; }
  #search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .deadline { display: flex; flex-wrap: wrap; gap: .45rem; border-left: none; padding-left: 0; }
}
