/* Visual system for the procurement portal. Base styles own component mechanics.
   Brandbook page 21 supplies the palette; Taste-Skill supplies scale and composition. */
html {
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
:root {
  --ink: #1a1b1f;
  --muted: #60646b;
  --gold: #e8ac10;
  --paper: #f4f2ed;
  --line: #dcdcd7;
  --radius: 4px;
  --form-control-radius: 12px;
  --form-panel-radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
body {
  padding-bottom: 24px;
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
h1,
h2 {
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.1vw, 3.5rem);
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1rem;
  font-weight: 650;
}
p {
  text-wrap: pretty;
}
small,
.small {
  font-size: 0.8125rem;
}
.wrap {
  width: min(1280px, calc(100% - 112px));
}
main {
  padding-bottom: 36px;
  overflow-wrap: anywhere;
}
main > .wrap:not(.home-wrap) {
  padding-top: 4px;
}
main.skip-target:focus {
  outline: 3px solid #a3780b;
  outline-offset: -3px;
}

/* High-contrast navigation and a deliberate brand lockup. */
#header {
  background: white;
}
.masthead {
  min-height: 104px;
}
.brand img {
  width: 202px;
  filter: url("#brand-gold");
}
.brand-filter {
  position: absolute;
  width: 0;
  height: 0;
}
.brand-caption {
  border-color: #d1d1c9;
  font-size: 0.75rem;
  font-weight: 550;
  color: #5b5d62;
  letter-spacing: 0.015em;
}
.account-link {
  gap: 12px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid #deded8;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition:
    border-color 0.18s,
    background 0.18s;
}
@media (hover: hover) and (pointer: fine) {
  .account-link:hover {
    border-color: #ad8d30;
    background: #faf8f2;
  }
}
.account-link svg:last-child {
  margin-left: 13px;
  width: 17px;
}
.nav-shell {
  background: var(--ink);
  color: #d6d7d9;
  border: 0;
}
.nav {
  align-items: stretch;
  gap: 0;
  min-height: 56px;
}
.nav a {
  justify-content: center;
  min-height: 56px;
  padding: 13px 25px;
  margin: 0;
  border-bottom-width: 3px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition:
    color 0.18s,
    background 0.18s;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: white;
    background: #292a2e;
    border-color: transparent;
  }
}
.nav a[aria-current="page"] {
  border-color: var(--gold);
  color: white;
  background: #292a2e;
}
.nav .nav-lots {
  padding-inline: 16px;
  justify-content: center;
  margin-right: auto;
  color: white;
  font-weight: 650;
  min-width: 145px;
}
.nav-lots svg {
  color: var(--gold);
}
.menu-button,
.mobile-menu-close {
  border: 1px solid var(--line);
  min-width: 44px;
  min-height: 44px;
  border-radius: 3px;
}
.breadcrumbs {
  padding-block: 23px;
  font-size: 0.75rem;
  color: #6e7176;
}
.page-heading {
  margin: 13px 0 30px;
}
.page-heading h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.1vw, 3.5rem);
  text-transform: uppercase;
}
.page-heading p {
  margin-top: 15px;
  max-width: 68ch;
  font-size: 0.875rem;
  line-height: 1.8;
}

/* One set of actions, with a restrained press and hover response. */
.button {
  gap: 18px;
  min-height: 50px;
  padding: 14px 23px;
  border-radius: 3px;
  font-size: 0.8125rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.button svg {
  width: 18px;
  height: 18px;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: #f3bd2e;
    border-color: #f3bd2e;
    transform: translateY(-1px);
  }
}
.button:active {
  transform: translateY(1px);
}
.button.secondary {
  background: transparent;
  border-color: #babcb8;
}
@media (hover: hover) and (pointer: fine) {
  .button.secondary:hover {
    background: #eeeae0;
    border-color: #a7a18e;
  }
}
@media (hover: hover) and (pointer: fine) {
  .button.danger:hover {
    background: #89251f;
    border-color: #89251f;
    color: white;
  }
}
.button.compact {
  min-height: 44px;
  padding: 10px 17px;
}
.text-link {
  gap: 14px;
  min-height: 44px;
  font-size: 0.8125rem;
}
.text-link svg {
  width: 17px;
}
.badge {
  padding: 7px 11px;
  border: 1px solid #cedfd1;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.4;
}
.badge.pending {
  border-color: #e6d6a0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 0.875rem;
  border-radius: var(--form-control-radius);
  transition: border-color 0.16s;
}
input::placeholder,
textarea::placeholder {
  color: #7c8185;
  font-size: 0.8125rem;
}

/* Compact industrial entry. Image and type share the first composition. */
.home-wrap {
  padding-top: 30px;
}
.home-hero {
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: white;
  min-height: 460px;
  margin: 0;
  border-radius: 0;
  border-bottom: 4px solid var(--gold);
}
.hero-copy {
  position: relative;
  padding: 46px 48px 40px;
  z-index: 1;
}
.hero-copy h1 {
  max-width: none;
  font-size: clamp(2.8rem, 1.8rem + 3vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1.04;
  text-wrap: initial;
}
.hero-copy h1 span {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font-size: 0.415em;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.3;
}
.hero-copy p {
  max-width: 45ch;
  margin-top: 25px;
  color: #c4c5c8;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.hero-copy .actions {
  margin-top: 30px;
  gap: 22px;
}
.hero-login {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: #ececee;
}
.hero-login svg {
  width: 16px;
  transition: transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .hero-login:hover svg {
    transform: translateX(3px);
  }
}
.hero-photo {
  min-width: 0;
  overflow: hidden;
}
.hero-photo::after {
  display: none;
}
.hero-photo img {
  object-position: 45% center;
  transition: transform 0.8s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .hero-photo:hover img {
    transform: scale(1.025);
  }
}
.process {
  padding: 32px 36px 33px;
  background: white;
  border: 1px solid #e3e2db;
  border-top: 0;
}
.process h2 {
  font-size: 1.55rem;
}
.steps {
  gap: 24px;
}
.step {
  gap: 19px;
  padding-right: 22px;
  border-right: 1px solid #e4e3dc;
}
.step:last-child {
  border: 0;
  padding-right: 0;
}
.step-number {
  color: #a27d22;
  flex: none;
  min-inline-size: 2ch;
  white-space: nowrap;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  border: 0;
  padding: 0;
  line-height: 1;
  font-weight: 400;
}
.step h3 {
  font-size: 0.875rem;
  margin: 0 0 9px;
}
.step p {
  font-size: 0.8125rem;
  line-height: 1.75;
}
.home-bottom {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px 0 8px;
  border: 0;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  padding: 22px 28px;
  background: #eae7de;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .resource-card:hover {
    background: #e2dece;
    transform: translateY(-2px);
  }
}
.resource-icon {
  color: #7e672c;
}
.resource-icon svg {
  width: 27px;
  height: 27px;
}
.resource-card strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
}
.resource-card small {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: #5e605d;
}
.resource-card > svg:last-child {
  margin-left: auto;
  width: 18px;
}

/* Procurement directories: useful density and legible numbers. */
.access-note {
  gap: 13px;
  padding: 17px 20px;
  background: #eae7df;
  border-color: #dcd8cc;
  border-radius: 3px;
  color: #54584f;
  font-size: 0.8125rem;
  line-height: 1.75;
}
.category-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 25px;
}
.category-card {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 29px;
  border-color: #d8d8d0;
  border-radius: 4px;
  background: white;
  transition:
    transform 0.24s var(--ease),
    border-color 0.2s,
    box-shadow 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .category-card:hover {
    background: white;
    transform: translateY(-3px);
    border-color: #bc9a40;
    box-shadow: 0 8px 26px #1a1b1f09;
  }
}
.category-icon {
  display: flex;
  background: none;
  width: auto;
  height: auto;
  color: #8a6a2a;
  margin-bottom: 30px;
}
.category-icon svg {
  width: 33px;
  height: 33px;
  stroke-width: 1.35;
}
.category-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  min-height: 3em;
  max-width: 20ch;
}
.category-card p {
  font-size: 0.8125rem;
  line-height: 1.75;
  min-height: 3.5em;
  margin: 12px 0 24px;
  max-width: 30ch;
}
.category-card .count {
  border-top: 1px solid #e6e4dd;
  padding-top: 18px;
  font-family: Oswald, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
}
.count span {
  font-family: Montserrat, sans-serif;
  font-size: 0.75rem;
  margin-left: 7px;
}
.category-card > svg:last-child {
  position: absolute;
  bottom: 35px;
  right: 29px;
  width: 20px;
}
.workspace {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
}
.side-nav {
  padding: 22px 12px;
  background: #e9e6dd;
  border: 1px solid #dedbd0;
  border-radius: 4px;
}
.side-nav h3 {
  padding: 0 13px 15px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #696b63;
}
.side-nav a {
  padding: 14px 13px;
  border-radius: 3px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #5c5e58;
}
.side-nav a.active {
  background: var(--ink);
  color: white;
  font-weight: 600;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .side-nav a:hover:not(.active) {
    background: #dfdbcf;
  }
}
.side-nav a span {
  color: #777b70;
  font-size: 0.75rem;
}
.side-nav a.active span {
  color: var(--gold);
}
.workspace > section {
  background: white;
  padding: 24px;
  border: 1px solid #ddddd5;
  border-radius: 4px;
  min-width: 0;
}
.filters {
  gap: 12px;
}
.filters label {
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 550;
}
.search-field {
  min-width: 0;
}
.search-field svg {
  bottom: 15px;
  width: 18px;
  height: 18px;
}
.filters > div:last-child {
  max-width: 180px;
}
.result-count {
  font-size: 0.75rem;
  color: #72766f;
  margin-bottom: 15px;
}
.tender-table th {
  padding: 13px 12px;
  background: #f0f0ea;
  color: #666b61;
  font-size: 0.6875rem;
  font-weight: 550;
}
.tender-table td {
  border-color: #e4e5df;
  padding: 22px 12px;
  font-size: 0.75rem;
}
.tender-table td:first-child {
  width: 48%;
}
.tender-table tr:last-child td {
  border-bottom: 0;
}
@media (hover: hover) and (pointer: fine) {
  .tender-table tbody tr:hover {
    background: #fcfaf3;
  }
}
.tender-title {
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 9px;
}
.tender-meta {
  color: #777d74;
  font-size: 0.6875rem;
}
.date {
  font-weight: 500;
}
.table-arrow {
  width: 16px;
}
.tender-table td:last-child a {
  display: inline-flex;
  min-height: 44px;
  min-width: 32px;
  justify-content: center;
  align-items: center;
  margin-top: -12px;
}
.empty {
  background: white;
  padding: 55px 24px;
}

/* Detail pages have a clear work area and an inverse conditions panel. */
.detail-heading {
  padding: 12px 0 6px;
  max-width: 920px;
}
.detail-heading h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
  text-transform: uppercase;
}
.detail-subtitle {
  margin-top: 21px;
  font-size: 0.8125rem;
}
.detail-grid {
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 28px;
  margin: 30px 0 35px;
}
.detail-main {
  background: white;
  border: 1px solid #deded7;
  padding: 30px 34px;
  border-radius: 4px;
  min-width: 0;
}
.section-block {
  border-color: #dfdfd7;
  padding-bottom: 25px;
  margin-bottom: 27px;
}
.section-block h2,
#offer-section h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.section-block > p {
  color: #555b53;
  font-size: 0.875rem;
  line-height: 1.85;
  max-width: 72ch;
}
.document-row {
  gap: 17px;
  padding: 16px 0;
  border-color: #e7e7e1;
  min-width: 0;
}
.document-row:last-child {
  border-bottom: 0;
}
.document-row > span:nth-child(2) {
  min-width: 0;
}
.file-icon {
  width: 42px;
  min-height: 49px;
  background: #f6f2e6;
  border: 1px solid #e6ddc6;
  color: #8a6a2a;
  font-size: 0.5625rem;
  letter-spacing: 0.035em;
}
.document-row strong {
  font-size: 0.8125rem;
  font-weight: 650;
}
.document-row small {
  color: #72786d;
  font-size: 0.6875rem;
  margin-top: 4px;
}
.document-row > svg:last-child {
  width: 18px;
}
.summary-panel {
  padding: 27px 25px;
  background: var(--ink);
  color: white;
  border-top: 3px solid var(--gold);
}
.summary-panel h2 {
  color: white;
  font-size: 1.65rem;
  margin-bottom: 24px;
}
.summary-panel dl > div {
  padding: 15px 0;
  border-bottom: 1px solid #393a3d;
}
.summary-panel dl > div:first-child {
  padding-top: 0;
}
.summary-panel dt {
  margin: 0 0 6px;
  color: #aeb0b4;
  font-size: 0.6875rem;
}
.summary-panel dd {
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.7;
}
.summary-panel .muted {
  color: #b9bbc0;
  font-size: 0.6875rem;
}
.contact-aside {
  background: #e8e5dc;
  border: 1px solid #dad6ca;
  border-radius: 4px;
  padding: 22px;
  margin-top: 18px;
  font-size: 0.8125rem;
}
.contact-aside h3,
.contact-aside a {
  font-size: 0.8125rem;
}
.contact-aside .small {
  font-size: 0.6875rem;
}
.upload-area {
  padding: 24px;
  background: #faf9f5;
  border-color: #b9ae8c;
  border-radius: 4px;
}
.upload-area p {
  font-size: 0.875rem;
  font-weight: 500;
}
.upload-area small {
  color: #6a7065;
  font-size: 0.6875rem;
}
.file-row strong {
  font-size: 0.8125rem;
  font-weight: 600;
}
.file-row small {
  font-size: 0.6875rem;
}
.success-note,
.error-text {
  font-size: 0.8125rem;
}

/* Forms use the same paper surface, type scale and actions as procurement. */
.prose {
  font-size: 0.9375rem;
  line-height: 1.9;
}
.article-grid {
  grid-template-columns: minmax(0, 1fr) 37%;
  gap: 55px;
  padding: 34px;
  background: white;
  border: 1px solid #deded7;
  border-radius: 4px;
}
.article-grid > img {
  aspect-ratio: 0.85;
  margin: 0;
}
.contact-grid {
  gap: 24px;
}
.contact-block {
  padding: 32px;
  background: white;
  border: 1px solid #deded7;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
}
.contact-block h2 {
  font-size: 1.8rem;
}
.contact-block p {
  font-size: 0.875rem;
}
.form-layout {
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 32px;
}
.form-layout > section,
.form-layout > form,
.form-layout > article {
  padding: 30px 34px;
  background: white;
  border: 1px solid #deded7;
  border-radius: 4px;
}
.form-aside {
  padding: 27px;
  background: #e7e3d7;
  color: #5c6258;
  border-top: 3px solid #b99b50;
  font-size: 0.8125rem;
  line-height: 1.85;
}
.form-aside h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}
.form-aside .mini-download {
  margin-top: 18px;
  font-size: 0.75rem;
  min-height: 48px;
}
.stepper {
  gap: 4px;
  margin-bottom: 33px;
}
.stepper li {
  padding: 0 0 17px;
  font-size: 0.75rem;
}
.stepper span {
  background: #eeeee8;
  font-size: 0.6875rem;
  border: 0;
  width: 26px;
  height: 26px;
}
.stepper li.current span {
  background: var(--ink);
  color: var(--gold);
}
.form-section {
  min-width: 0;
}
.form-section legend {
  font-size: 1.65rem;
  margin-bottom: 25px;
}
.form-grid {
  gap: 22px;
}
.field {
  font-size: 0.8125rem;
  font-weight: 600;
}
.field input,
.field textarea {
  font-weight: 450;
}
.field small {
  font-size: 0.6875rem;
  font-weight: 450;
  line-height: 1.65;
}
.form-grid .field {
  min-width: 0;
}
.password-wrap {
  display: block;
}
.password-wrap button {
  display: grid;
  place-items: center;
  top: 2px;
  min-height: 44px;
}
.checkbox-label,
.choice {
  font-size: 0.8125rem;
}
.choice {
  min-height: 65px;
  border-radius: 3px;
}
.attachment-field {
  padding: 20px;
  background: #fcfbf8;
}
.attachment-field input {
  font-size: 0.75rem;
}
.center-panel {
  max-width: 510px;
  padding: 39px;
  background: white;
}
.center-panel,
.form-layout > section:has(form),
.form-layout > form,
.detail-main:has(#offer-section),
dialog {
  border-radius: var(--form-panel-radius);
}
form .button,
#offer-section .button,
dialog .button,
.attachment-field,
.upload-area,
.choice,
input::file-selector-button {
  border-radius: var(--form-control-radius);
}
.center-panel h1 {
  font-size: 2.25rem;
}
.center-panel > p {
  font-size: 0.875rem;
}
.form-bottom {
  font-size: 0.8125rem;
}
.notice-panel {
  background: white;
  border: 1px solid #dbdcd3;
  border-top: 3px solid var(--gold);
  padding: 48px;
}
.notice-panel h1 {
  font-size: 2.5rem;
}
.notice-panel p {
  font-size: 0.875rem;
  line-height: 1.9;
}
.profile-grid {
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 28px;
  align-items: start;
}
.profile-grid > div {
  background: white;
  padding: 31px;
  border: 1px solid #ddddd5;
  border-radius: 4px;
}
.profile-data dt {
  font-size: 0.6875rem;
}
.profile-data dd {
  font-size: 0.875rem;
  font-weight: 550;
}
.profile-categories li {
  font-size: 0.8125rem;
  border-color: #3d3e42;
}
.profile-categories svg {
  color: var(--gold);
}

/* Demo controls occupy their own row outside the product shell. */
.footer {
  background: transparent;
  border-color: #d8d5cb;
  margin-top: 0;
  padding: 30px 0 10px;
}
.footer-inner {
  gap: 30px;
  font-size: 0.6875rem;
  color: #5c6157;
}
.footer strong {
  color: #3f4439;
  font-size: 0.75rem;
  letter-spacing: 0.035em;
  font-weight: 650;
}
.footer a {
  color: #51574a;
}
.footer-inner > div:nth-child(2) {
  display: flex;
  gap: 24px;
}
.demo-bar {
  position: static;
  transform: none;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 6px max(24px, calc((100% - 1280px) / 2));
  background: #eae7de;
  color: #5e6558;
  border: 0;
  border-bottom: 1px solid #d0d2c7;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.625rem;
}
.demo-label {
  gap: 8px;
  white-space: nowrap;
}
.demo-dot {
  width: 5px;
  height: 5px;
  background: #be941e;
}
.demo-note {
  display: none;
}
.demo-controls label {
  display: block;
  font-size: 0.625rem;
}
.demo-controls {
  gap: 10px;
}
.demo-controls select {
  width: 136px;
  min-height: 36px;
  padding: 7px 10px;
  background: #f3f3ed;
  color: #2d3325;
  border-color: #d6d8cd;
  font-size: 0.6875rem;
}
.demo-controls button {
  min-height: 36px;
  color: #656b5e;
  font-size: 0.625rem;
  padding: 0 9px;
}
#toast {
  bottom: 90px;
  font-size: 0.8125rem;
}

@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .nav a {
    padding-inline: 18px;
    font-size: 0.75rem;
  }
  .hero-copy {
    padding: 36px 33px;
  }
  .hero-copy .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
  }
  .home-hero {
    min-height: 470px;
  }
  .process {
    padding: 28px;
  }
  .step {
    gap: 12px;
    padding-right: 14px;
  }
  .workspace {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 20px;
  }
  .workspace > section {
    padding: 20px;
  }
  .detail-grid,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 24px;
  }
  .detail-main,
  .profile-grid > div {
    padding: 26px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }
  .form-layout > section,
  .form-layout > form,
  .form-layout > article {
    padding: 26px;
  }
  .tender-table td,
  .tender-table th {
    padding-inline: 9px;
  }
  .tender-title {
    font-size: 0.8125rem;
  }
  .category-card {
    padding: 24px;
  }
  .category-card > svg:last-child {
    right: 24px;
  }
  .category-card h3 {
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .brand-caption {
    display: none;
  }
  .nav a {
    font-size: 0.6875rem;
    padding-inline: 15px;
  }
  .nav .nav-lots {
    min-width: 105px;
  }
  .home-hero {
    min-height: 410px;
    grid-template-columns: 1.08fr 1fr;
  }
  .hero-copy {
    padding: 30px;
  }
  .hero-copy h1 {
    font-size: 3.1rem;
  }
  .hero-copy p {
    font-size: 0.8125rem;
  }
  .desktop-break {
    display: none;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace {
    display: block;
  }
  .side-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 9px;
  }
  .side-nav h3 {
    display: none;
  }
  .side-nav a {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 11px 13px;
  }
  .side-nav a + a {
    margin: 0;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .summary-panel {
    padding: 23px 20px;
  }
  .detail-main {
    padding: 24px;
  }
  .form-layout {
    display: block;
  }
  .form-aside {
    margin-top: 25px;
  }
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 34%;
    gap: 28px;
    padding: 26px;
  }
  .article-grid > img {
    display: block;
  }
  .footer-inner > div:nth-child(2) {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 800px) {
  .step {
    display: flex;
  }
}
@media (max-width: 700px) {
  .masthead {
    min-height: 84px;
    gap: 12px;
  }
  .brand img {
    width: 178px;
  }
  .menu-button {
    display: grid;
    place-items: center;
  }
  .account-link {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }
  .account-link span,
  .account-link svg:last-child {
    display: none;
  }
  #mobile-menu {
    --menu-gutter: clamp(1rem, 4.5vw, 1.5rem);
    position: fixed;
    inset: 0;
    inline-size: 100%;
    max-inline-size: none;
    block-size: 100vh;
    block-size: 100dvh;
    max-block-size: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--paper);
    color: var(--ink);
  }
  #mobile-menu[open] {
    display: grid;
    grid-template-rows: auto minmax(3rem, 1fr) auto;
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--menu-gutter);
    border-bottom: 1px solid var(--line);
    background: white;
  }
  .mobile-menu-close {
    display: grid;
    place-items: center;
    padding: 8px;
    background: transparent;
    color: var(--ink);
  }
  .mobile-menu-close:active {
    background: var(--paper);
  }
  .mobile-menu-scroll {
    overflow-y: auto;
  }
  #mobile-menu .nav {
    display: grid;
    align-content: start;
    gap: 4px;
    width: 100%;
    min-height: 0;
    padding: 0.75rem var(--menu-gutter);
  }
  #mobile-menu .nav a {
    justify-content: flex-start;
    min-height: 52px;
    margin: 0;
    padding: 0.75rem;
    border: 0;
    border-inline-start: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
  }
  #mobile-menu .nav a:focus-visible {
    outline-offset: -3px;
  }
  #mobile-menu .nav a[aria-current="page"] {
    border-inline-start-color: var(--gold);
    background: #ebe7dd;
    font-weight: 650;
  }
  #mobile-menu .nav a:active {
    background: #e9e4d9;
  }
  #mobile-menu .nav-lots svg {
    color: #8a6a2a;
  }
  .mobile-menu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0.75rem var(--menu-gutter);
    border-top: 1px solid var(--line);
    background: white;
  }
  #mobile-menu .mobile-menu-actions .button {
    flex: 1 1 auto;
    inline-size: auto;
    max-inline-size: 100%;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
    text-align: center;
  }
  #mobile-menu .mobile-menu-actions .button:not(.secondary) {
    flex-grow: 2;
  }
  .home-wrap {
    padding-top: 20px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 31px;
  }
  .hero-copy h1 {
    font-size: 3.5rem;
  }
  .hero-copy p {
    max-width: 42ch;
    font-size: 0.9375rem;
  }
  .hero-copy .actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .hero-photo {
    min-height: 225px;
  }
  .hero-photo img {
    object-position: center 48%;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .step {
    display: flex;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid #e3e2da;
    padding: 0 0 21px;
  }
  .step:last-child {
    padding: 0;
  }
  .step p {
    max-width: 46ch;
    font-size: 0.875rem;
  }
  .process .section-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .process h2 {
    font-size: 1.7rem;
  }
  .home-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .resource-card {
    min-height: 98px;
  }
  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .detail-main,
  .detail-aside {
    width: 100%;
  }
  .detail-aside {
    order: -1;
  }
  .summary-panel {
    padding: 24px;
  }
  .summary-panel h2 {
    display: none;
  }
  .summary-panel dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .summary-panel dl > div {
    padding: 0 0 12px;
  }
  .summary-panel .button {
    margin-top: 20px;
  }
  .contact-aside {
    display: block;
    padding: 18px 22px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .profile-grid .summary-panel h2 {
    display: block;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-grid > img {
    aspect-ratio: 1.8;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .demo-bar {
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 0.875rem;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .masthead {
    min-height: 78px;
    gap: 8px;
  }
  .brand img {
    width: 160px;
  }
  .home-wrap {
    padding-top: 16px;
  }
  .hero-copy {
    padding: 28px 25px;
  }
  .hero-copy h1 {
    font-size: 3.1rem;
  }
  .hero-copy h1 span {
    font-size: 0.42em;
  }
  .hero-copy p {
    font-size: 0.875rem;
    margin-top: 20px;
  }
  .hero-copy .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 24px;
  }
  .hero-copy .button,
  .hero-login {
    width: 100%;
    justify-content: space-between;
  }
  .hero-login {
    padding: 9px 0;
  }
  .hero-photo {
    min-height: 192px;
  }
  .process {
    padding: 26px 22px;
  }
  .process h2 {
    font-size: 1.6rem;
  }
  .resource-card {
    padding: 20px;
    gap: 14px;
  }
  .resource-card strong {
    font-size: 0.8125rem;
  }
  .resource-card small {
    font-size: 0.6875rem;
  }
  .resource-icon svg {
    width: 23px;
  }
  .resource-card > svg:last-child {
    width: 16px;
  }
  .page-heading {
    display: block;
    margin-top: 6px;
  }
  .page-heading h1 {
    font-size: 2.125rem;
    line-height: 1.2;
  }
  .page-heading p {
    font-size: 0.8125rem;
  }
  .page-heading .badge,
  .page-heading .button {
    margin-top: 20px;
  }
  .breadcrumbs {
    padding-block: 18px;
    font-size: 0.625rem;
    gap: 8px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .category-card {
    padding: 24px;
  }
  .category-icon {
    margin-bottom: 20px;
  }
  .category-card h3 {
    min-height: 0;
    max-width: 100%;
    font-size: 1.125rem;
  }
  .category-card p {
    min-height: 0;
    margin-bottom: 20px;
  }
  .category-card .count {
    padding-top: 15px;
  }
  .category-card > svg:last-child {
    bottom: 28px;
  }
  .access-note {
    font-size: 0.75rem;
    padding: 15px;
    gap: 10px;
  }
  .workspace > section {
    padding: 18px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 13px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .filters > div:last-child {
    width: 100%;
    max-width: none;
  }
  .tender-table tr {
    padding: 18px 0;
    border-top: 1px solid #ddded6;
  }
  .tender-table td {
    border: 0;
    padding: 3px 0;
  }
  .tender-table td:last-child a {
    margin-top: 0;
  }
  .tender-title {
    font-size: 0.875rem;
  }
  .detail-heading h1 {
    font-size: 2.125rem;
  }
  .detail-subtitle {
    gap: 12px;
  }
  .detail-grid {
    margin-top: 23px;
  }
  .detail-main {
    padding: 23px 20px;
  }
  .section-block h2,
  #offer-section h2 {
    font-size: 1.5rem;
  }
  .document-row {
    gap: 12px;
  }
  .document-row strong {
    font-size: 0.75rem;
  }
  .document-row small {
    font-size: 0.625rem;
  }
  .document-row > svg:last-child {
    width: 16px;
  }
  .upload-area {
    padding: 22px 14px;
  }
  .upload-area small {
    font-size: 0.625rem;
  }
  .form-layout > section,
  .form-layout > form,
  .form-layout > article {
    padding: 24px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stepper {
    gap: 5px;
    margin-bottom: 26px;
  }
  .stepper li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.625rem;
  }
  .form-section legend {
    font-size: 1.5rem;
  }
  .category-choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions > .button {
    flex: 1;
    padding-inline: 16px;
    font-size: 0.75rem;
  }
  .form-actions > .text-link {
    font-size: 0.6875rem;
  }
  .center-panel {
    padding: 28px 23px;
    margin: 15px auto 35px;
  }
  .center-panel h1 {
    font-size: 2rem;
  }
  .notice-panel {
    padding: 32px 23px;
  }
  .notice-panel h1 {
    font-size: 2.1rem;
  }
  .notice-panel .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-grid > div {
    padding: 24px 21px;
  }
  .profile-data {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .profile-grid .section-top {
    flex-wrap: wrap;
    gap: 0;
  }
  .article-grid {
    padding: 24px;
  }
  .contact-block {
    padding: 26px;
  }
  .footer-inner {
    display: block;
  }
  .footer-inner > div + div {
    margin-top: 20px;
  }
  .footer-inner > div:nth-child(2) {
    flex-direction: row;
  }
  .demo-bar {
    gap: 10px;
    padding: 5px 16px;
    max-width: none;
  }
  .demo-label {
    display: none;
  }
  .demo-controls {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .demo-controls label {
    max-width: 70px;
  }
  .demo-dot {
    width: 6px;
    height: 6px;
    margin-inline: 5px;
  }
  .demo-controls select {
    width: 116px;
    min-height: 38px;
  }
  .demo-controls button {
    min-height: 38px;
  }
}
@media (max-width: 350px) {
  .brand img {
    width: 140px;
  }
  .hero-copy {
    padding: 24px 20px;
  }
  .hero-copy h1 {
    font-size: 2.65rem;
  }
  .hero-copy h1 span {
    font-size: 0.43em;
  }
  .summary-panel {
    padding: 20px;
  }
  .summary-panel dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-photo {
    min-height: 170px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Phone controls retain readable text and a full finger-sized hit area. */
.button,
button,
.text-link {
  overflow-wrap: normal;
}
@media (pointer: coarse), (max-width: 700px) {
  .brand {
    min-height: 44px;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  input[type="file"],
  textarea,
  select,
  .attachment-field input,
  .demo-controls select {
    font-size: 1rem;
  }
  .demo-controls select,
  .demo-controls button {
    min-height: 44px;
  }
  .tender-table td:last-child a {
    min-width: 44px;
    min-height: 44px;
  }
  .tender-title {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .form-bottom > a,
  .form-bottom p > a,
  .footer-inner > div:nth-child(2) a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  button,
  .button,
  .icon-button,
  .menu-button {
    -webkit-user-select: none;
    user-select: none;
  }
  .checkbox-label {
    align-items: center;
    min-height: 44px;
  }
  input::file-selector-button {
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .demo-controls select {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .demo-controls label {
    flex: 0 0 58px;
  }
  .demo-controls button {
    flex-shrink: 0;
  }
  .footer-inner > div:nth-child(2) {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .form-bottom p {
    margin-top: 8px;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions > .button {
    width: 100%;
  }
  .form-actions > .text-link {
    justify-content: center;
  }
  dialog .actions {
    flex-direction: column;
    align-items: stretch;
  }
  dialog .button {
    width: 100%;
  }
}

dialog:modal {
  max-block-size: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Persistent labels: the caption shares the control, not the entered value. */
.field.floating-field {
  min-width: 0;
}
.floating-field .field-control {
  position: relative;
}
.field.floating-field .field-control :is(input, textarea, select) {
  display: block;
  width: 100%;
  margin: 0;
  min-height: 64px;
  padding: 28px 16px 8px;
  border-radius: var(--form-control-radius);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 450;
  background-color: var(--white);
}
.field.floating-field .field-control textarea {
  min-height: 144px;
  resize: vertical;
}
.floating-field .floating-label {
  position: absolute;
  inset: 22px 16px auto;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  transform-origin: left top;
  pointer-events: none;
  overflow-wrap: normal;
  transition: transform 160ms var(--ease);
}
.floating-field .field-control:focus-within .floating-label,
.floating-field :is(select, input[type="date"]) + .floating-label,
.floating-field input:not(:placeholder-shown) + .floating-label,
.floating-field textarea:not(:placeholder-shown) + .floating-label {
  right: auto;
  width: calc((100% - 32px) * 1.333333);
  transform: translateY(-12px) scale(0.75);
}
.floating-field input:autofill + .floating-label {
  transform: translateY(-12px) scale(0.75);
}
.floating-field input:-webkit-autofill + .floating-label {
  transform: translateY(-12px) scale(0.75);
}
.floating-field .field-control:focus-within .floating-label {
  color: #765810;
}
.field.floating-field .field-control :is(input, textarea, select):focus {
  border-color: #8a6a2a;
}
.field.floating-field .field-control :is(input, textarea, select):user-invalid {
  border-color: var(--red);
}
.floating-field :is(input, textarea, select):user-invalid + .floating-label {
  color: var(--red);
}
.field.floating-field .password-control input {
  padding-right: 64px;
}
.floating-field .password-control .floating-label {
  right: 64px;
}
.floating-field .password-control:focus-within .floating-label,
.floating-field
  .password-control
  input:not(:placeholder-shown)
  + .floating-label {
  right: auto;
  width: calc((100% - 80px) * 1.333333);
}
.floating-field .password-control button {
  position: absolute;
  top: 10px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}
.field.floating-field small {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
}
.demo-controls .demo-role {
  width: 13rem;
  max-width: 100%;
  margin: 0;
}
.demo-controls .floating-label { max-width: none; }
.demo-controls .field-control select { color: var(--ink); }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 34%); }
.filters > .field { margin: 0; }
.filters > .field:last-child { width: 100%; max-width: none; }
.filters .floating-label { margin: 0; }
.field.floating-field .field-control select {
  color: var(--ink);
  min-width: 0;
  cursor: pointer;
}
@supports (appearance: base-select) {
  select, select::picker(select) { appearance: base-select; }
  .field.floating-field .field-control select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }
  .field select > button {
    display: contents;
    font: inherit;
    color: inherit;
  }
  select selectedcontent {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  select::picker-icon {
    content: "";
    width: .5rem;
    height: .5rem;
    flex: none;
    border: solid #716956;
    border-width: 0 1.5px 1.5px 0;
    rotate: 45deg;
    margin: 0 .15rem .25rem auto;
  }
  select:open::picker-icon { rotate: 225deg; }
  select::picker(select) {
    margin-block: 4px;
    padding: 4px;
    border: 1px solid #c9cccb;
    border-radius: var(--form-control-radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    max-block-size: min(22rem, 50dvh);
    overflow-y: auto;
  }
  select option {
    min-height: 44px;
    padding: .65rem .75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 450;
    cursor: pointer;
  }
  select option:checked { background: #f4f0e5; }
  select option:is(:hover, :focus-visible) { background: #ede7d8; }
  select option::checkmark { color: #765810; }
}
@media (max-width: 480px) {
  .demo-controls .demo-role { width: auto; flex: 1; }
}
@media (max-width: 700px) {
  .filters { grid-template-columns: minmax(0, 1fr); }
}
.form-actions > button[type="submit"] {
  min-width: calc((100% - 22px) / 2);
}
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions > .button {
    width: 100%;
  }
  .form-actions > .text-link {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-field .floating-label {
    transition: none;
  }
}
