:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #292b2e;
  background: #f4f4f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --tm-red: #ed3344;
  --tm-blue: #28648c;
  --tm-charcoal: #202225;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
}

.announcement {
  min-height: 38px;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--tm-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-align: center;
}

.announcement span {
  margin-left: 0.55rem;
  font-weight: 500;
}

.site-header {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem max(1.25rem, calc((100% - 1120px) / 2));
  color: var(--tm-charcoal);
  background: #fff;
  border-bottom: 3px solid var(--tm-red);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 22vw, 230px);
  height: auto;
}

.brand-mark {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.1em;
}

.brand-name {
  display: grid;
  gap: 0.22rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.brand-name small {
  color: #5a5d62;
  font-size: 0.59rem;
  letter-spacing: 0.1em;
}

.header-note {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--tm-red);
  color: #444;
  font-size: 0.9rem;
}

.header-action,
.submit-button {
  display: inline-block;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--tm-red);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.header-action:hover,
.submit-button:hover {
  background: #c92434;
}

.header-action:focus-visible,
.submit-button:focus-visible,
.request-form input:focus-visible,
.request-form textarea:focus-visible {
  outline: 3px solid #65a2cb;
  outline-offset: 2px;
}

.page {
  width: min(1120px, calc(100% - 2.5rem));
  min-height: calc(100vh - 210px);
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.intro {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-bottom: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-bottom: 6px solid var(--tm-red);
  color: #fff;
  background:
    linear-gradient(105deg, rgb(29 31 34 / 97%) 0%, rgb(29 31 34 / 91%) 55%, rgb(29 31 34 / 76%) 100%),
    radial-gradient(ellipse at 90% 15%, #59636b 0, #34383c 44%, #202225 75%);
}

.eyebrow,
.item-category {
  color: var(--tm-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.intro .eyebrow {
  margin: 0 0 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.04;
}

.intro > p:last-child {
  margin: 0.8rem 0 0;
  color: #e1e1e1;
  font-size: 1.05rem;
  line-height: 1.6;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid #dedede;
  border-top: 3px solid var(--tm-blue);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(0 0 0 / 4%);
}

.filters label {
  display: grid;
  gap: 0.45rem;
  color: #303236;
  font-size: 0.88rem;
  font-weight: 600;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  color: #292b2e;
  background: #fff;
  font: inherit;
}

.filters input:focus,
.filters select:focus,
.item-card:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--tm-blue);
  outline-offset: 2px;
}

.result-count {
  margin: 1.6rem 0 0.85rem;
  color: #5c5e61;
  font-size: 0.9rem;
  font-weight: 600;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
}

.item-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid #dedede;
  border-top: 3px solid #b9b9b9;
  border-radius: 2px;
  background: #fff;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.item-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--tm-red);
  box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
}

.item-card h2 {
  margin: 0.6rem 0 0.8rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.item-location {
  margin: 0;
  color: #5c5e61;
  font-size: 0.92rem;
}

.item-image {
  order: -1;
  width: 100%;
  height: 190px;
  margin-bottom: 0.6rem;
  background: #f4f4f3;
  object-fit: contain;
}

.item-quantity {
  margin: 0.45rem 0 0;
  color: #5c5e61;
  font-size: 0.9rem;
}

.item-action {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--tm-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed #b7b7b7;
  color: #5c5e61;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--tm-blue);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-panel {
  max-width: 720px;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #dedede;
  border-top: 5px solid var(--tm-red);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(0 0 0 / 6%);
}

.detail-panel .eyebrow {
  margin: 0 0 0.7rem;
}

.detail-panel h1 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.detail-location {
  margin: 1.2rem 0 0;
  font-weight: 600;
}

.detail-description {
  margin: 0.8rem 0 0;
  color: #5c5e61;
  line-height: 1.7;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.detail-images img {
  width: 100%;
  height: 240px;
  background: #f4f4f3;
  object-fit: contain;
}

.request-page {
  max-width: 820px;
}

.request-intro {
  margin-bottom: 1.5rem;
}

.request-intro .eyebrow {
  margin: 0 0 0.6rem;
}

.request-intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.request-intro > p:last-child {
  max-width: 720px;
  margin: 0.8rem 0 0;
  color: #5c5e61;
  line-height: 1.6;
}

.request-form {
  display: grid;
  gap: 1rem;
}

.form-section {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid #dedede;
  border-top: 3px solid var(--tm-blue);
  border-radius: 2px;
  background: #fff;
}

.form-section legend {
  padding: 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.form-section > label:not(.checkbox-option) {
  display: grid;
  gap: 0.45rem;
  color: #303236;
  font-size: 0.92rem;
  font-weight: 600;
}

.request-form input:not([type="radio"]):not([type="checkbox"]),
.request-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.75rem;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  color: #292b2e;
  background: #fff;
  font: inherit;
}

.request-form textarea {
  resize: vertical;
}

.required,
.optional {
  margin-left: 0.35rem;
  color: #5c5e61;
  font-size: 0.82rem;
  font-weight: 400;
}

.field-help {
  margin: -0.5rem 0 0;
  color: #5c5e61;
  font-size: 0.9rem;
}

.field-label {
  font-weight: 600;
}

.radio-options {
  display: grid;
  gap: 0.75rem;
}

.radio-options label,
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.55;
}

.radio-options input,
.checkbox-option input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--tm-blue);
}

.condition-section > p {
  margin: 0;
  color: #44464a;
  line-height: 1.65;
}

.checkbox-option {
  padding: 0.9rem;
  border: 1px solid #dedede;
  background: #f8f8f7;
}

.email-notice {
  margin: 0;
  color: #5c5e61;
  font-size: 0.92rem;
  line-height: 1.6;
}

.submit-button {
  justify-self: start;
  min-height: 46px;
  font-size: 1rem;
}

.submission-message {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--tm-blue);
  background: #fff;
  line-height: 1.55;
}

.site-footer {
  padding: 1.3rem 1.25rem;
  border-top: 4px solid var(--tm-red);
  color: #d0d0d0;
  background: var(--tm-charcoal);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 82px;
  }

  .header-note {
    display: none;
  }

  .page {
    padding: 1.5rem 0 2.5rem;
  }

  .intro {
    margin-bottom: 1.4rem;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

.item-card {
  position: relative;
}

.item-card.is-on-hold .item-image {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.hold-badge,
.hold-notice {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  color: #fff;
  background: #b45309;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hold-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hold-notice {
  display: block;
  margin: 0.5rem 0;
  padding: 0.7rem 1rem;
  letter-spacing: 0.02em;
}
