/* National Lumber: a quiet supply counter on every screen.
   This final layer preserves form behavior, scrollable records and state colors. */
[hidden] { display: none !important; }
.site-head::before {
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.brand, .skip-link, .btn, .auth-tabs button {
  min-height: 44px;
}
.btn-sm, .shop-bar .btn, .chip, .ai-edit-qty, .ai-edit-btn, .ps-expand {
  min-height: 44px;
}
.ps-ctl button { min-width: 44px; min-height: 44px; }
.site-foot .sticker-pin { display: none; }
.site-foot .legal a, .desk-footer a, .auth-alt > a,
.sheet-eyebrow > a, .store-breadcrumb a, .cc p a, .note-block a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-foot .legal a, .desk-footer a { padding-inline: 4px; }
.site-foot a { overflow-wrap: anywhere; }
.store-row h2 a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
.store-feedback:empty { display: none; }
.store-feedback:not(:empty) { flex-basis: 100%; }
.store-row, .store-product, .cart-line,
.store-row > div, .store-product > div, .cart-line > div {
  min-width: 0;
}
.store-sku, .store-row h2, .store-product h1 {
  overflow-wrap: anywhere;
}

/* Estimates retain the drafting language, but ornament does not animate. */
.est-hero { overflow: clip; }
.est-tab {
  background: var(--navy-950);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.est-tab::before { display: none; }
.est-tab:hover, .est-tab:focus-visible {
  transform: none;
  background: var(--navy-800);
}
.est-tab:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.est-hero .lead a, .est-consent a, .ai-tier {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.js .est-hero-copy > *, .js .est-hero-tools > * {
  opacity: 1;
  transform: none;
  animation: none;
}
.js .est-hero-plan .w {
  stroke-dashoffset: 0;
  animation: none;
}
.js .est-hero-plan .p, .js .est-hero-plan .g,
.js .est-hero-plan .d, .js .est-hero-plan text {
  opacity: 1;
  animation: none;
}
.est-tab .st.live i, .tool-no .live { animation: none; box-shadow: none; }
.tool-no, .takeoff-sheet, #ai-dropzone, #ai-dropzone:hover,
#ai-dropzone.drag, #ai-dropzone .dz-icon { box-shadow: none; }
#ai-dropzone.drag { transform: none; }
#ai-dropzone:hover { background-color: var(--white); }
#ai-run, #ai-run:hover { box-shadow: none; }
.ai-bar::before {
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.est-honest .seal { display: none; }
.est-honest.has-seal { padding: 14px 16px; }
.ai-idle-plan { display: none; }
.cta-band .est-oval { display: none; }
.note-block, .desk-message { border-left: 0; }

/* Cloud records use the same paper as the catalog. Alerts keep semantic color. */
.desk-body {
  --desk-paper: #f6f4ee;
  --desk-line: #d9d5ca;
  --desk-ink: #152238;
}
.desk-head, .desk-box, .desk-records, .desk-empty,
.desk-table-wrap, .desk-dialog, .desk-footer, .desk-loading,
.desk-body .field input, .desk-body .field select, .desk-body .field textarea,
.desk-attachment input[type='file']::file-selector-button {
  background-color: var(--white);
}
.desk-table th, .desk-attachment { background-color: var(--paper-2); }
.desk-body input[readonly] { background-color: var(--paper); }
.desk-side nav a { border-left: 0; }
.desk-side nav a[aria-current='page'] {
  background: #28405e;
  box-shadow: inset 0 -2px 0 var(--desk-gold);
}
.desk-body .btn, .desk-body .field input,
.desk-body .field select, .desk-body .field textarea { border-radius: 3px; }
.desk-record-title, .desk-detail dd, .desk-dialog-head h2 { overflow-wrap: anywhere; }
.desk-record-title, .desk-side-note a, .desk-head-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.desk-table-wrap { max-width: 100%; overscroll-behavior-inline: contain; }

@media (max-width: 700px) {
  .store-row { gap: 8px 14px; padding-block: 16px; }
  .store-row h2 { font-size: 22px; margin-bottom: 3px; }
  .store-row > div > p:not(.store-sku) { font-size: 14px; line-height: 1.35; }
  .store-row > .store-price { font-size: 15px; line-height: 1.4; }
  .store-actions { gap: 8px; }
  .store-row .store-actions { flex-direction: row; flex-wrap: wrap; }
  .store-row .store-actions .btn { padding-inline: 12px; font-size: 14px; }
  .sheet-head .lead { line-height: 1.5; }
  .site-foot .top { padding-block: 28px 20px; }
  .site-foot .foot-brand p { margin-bottom: 12px; }
  .site-foot .foot-brand .foot-tag { display: none; }
  .desk-toolbar .field { min-width: 0; flex-basis: 100%; }
  .desk-form-actions .btn { min-width: 120px; }
}

@media (max-width: 430px) {
  .store-row { grid-template-columns: 60px minmax(0, 1fr); }
  .store-row img { width: 60px; height: 60px; }
  .store-row h2 { font-size: 21px; }
  .store-row .store-sku { font-size: 10px; }
  .desk-head { gap: 10px; }
  .desk-head .brand { gap: 8px; }
  .desk-head .brand-name { font-size: 20px; }
  .desk-head .btn { padding-inline: 12px; }
  .desk-record-actions { flex-wrap: wrap; gap: 8px; }
  .desk-pager { flex-wrap: wrap; }
}

/* A short field log with complete photo sets available on demand. */
.projects-page .project-preview .ph { height: 280px; aspect-ratio: auto; }
.projects-page .project-more { margin-top: 12px; border-block: 1px solid var(--line-strong); }
.projects-page .project-more summary { padding: 12px 0; min-height: 48px; cursor: pointer; font-weight: 600; }
.projects-page .project-more .ph-grid { padding-bottom: 16px; }
.projects-page .project-more .ph { height: 220px; min-height: 0; aspect-ratio: auto; grid-column: auto; }
.projects-page .sec-navy .project-more { border-color: rgba(246,244,238,.3); }
.projects-page .media-grid { grid-template-columns: 1fr 1fr; }
.projects-page .vid-card { height: auto; background: transparent; overflow: visible; }
.projects-page .vid-card::before { display: none; }
.projects-page .vid-card video { position: static; aspect-ratio: 16/9; object-fit: contain; height: auto; }
.projects-page .vid-card .cap { position: static; display: block; padding: 8px 0; background: none; color: inherit; }
.projects-page .sec-navy .vid-card .cap { color: var(--paper); }
.pros-page .page-hero .sticker { display: none; }
.pros-page .dl-item { grid-template-columns: 1fr; gap: 0; background: transparent; }
.pros-page .dl-item .ico { display: none; }
.pros-page .dl-list { background: transparent; gap: 0 24px; border: 0; }
.pros-page .dl-item { border-top: 1px solid var(--line-strong); padding-inline: 0; }
.pro-support { margin-top: 24px; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.pro-support a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; }
@media (max-width: 700px) {
  .pros-page #apply aside > figure { display: none; }
  .pros-page .dl-item { padding-block: 12px; }
  .pros-page .page-hero .hero-ctas .btn + .btn { display: none; }
  .pros-page .site-foot .foot-brand > p:not(.brand-name),
  .projects-page .site-foot .foot-brand > p:not(.brand-name),
  .pros-page .site-foot .sheet-strip,
  .projects-page .site-foot .sheet-strip,
  .pros-page .site-foot .top > div:last-child li:not(:has(a)),
  .projects-page .site-foot .top > div:last-child li:not(:has(a)) { display: none; }
  .projects-page .project-preview .ph { height: 220px; }
  .projects-page .media-grid { grid-template-columns: 1fr; }
  .projects-page .project-more .ph-grid { grid-template-columns: 1fr; }
}
