:root {
  color-scheme: light;
  --ink: #122338;
  --muted: #546479;
  --navy: #0e1e31;
  --surface: #fff;
  --paper: #f3f5f8;
  --line: #dce3eb;
  --orange: #ffbd68;
  --green: #196043;
  --red: #a12d27;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 52px; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #315c87; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; }
button, .button, .secondary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #327abb; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.032em; line-height: 1.16; }
h1 { margin-bottom: .25em; font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }
p { line-height: 1.55; }
.shell { width: min(1340px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 9; position: absolute; background: white; padding: 10px; }
.site-head { background: var(--navy); color: white; }
.top { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.top nav { display: flex; gap: 27px; flex-wrap: wrap; }
.top nav { margin-left: auto; }
.top nav a { color: #e5edf7; text-decoration: none; font-size: .91rem; font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--orange); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: white; font-size: 1.35rem; font-weight: 850; letter-spacing: .055em; white-space: nowrap; }
.brand:hover { color: white; }
.brand small { display: block; font-size: .55rem; letter-spacing: .17em; color: #c2cedb; margin-top: 3px; }
.brand-mark { display: grid; place-items: center; width: 49px; height: 42px; background: #fff; border-radius: 7px; overflow: hidden; }
.brand-mark img { object-fit: contain; width: 48px; height: 42px; }
.order-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 10px 8px 13px; border: 1px solid #466079; border-radius: 7px; color: white; text-decoration: none; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.order-link:hover { color: var(--orange); }
.order-link span { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 5px; background: var(--orange); color: var(--navy); }
.search { display: flex; gap: 8px; padding-block: 4px 20px; }
.search input { min-width: 0; background: #fff; color: var(--ink); flex: 1; padding: 13px 16px; border: 1px solid #8393a6; border-radius: 7px; }
.search button { background: var(--orange); color: #152336; border: 1px solid var(--orange); border-radius: 7px; min-width: 102px; padding: 0 16px; font-weight: 750; }
.search button:hover { background: #ffd196; }
.catalogue-heading { padding: 33px 0 25px; display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; }
.catalogue-heading p { color: var(--muted); margin-bottom: 0; }
.eyebrow { display: block; color: #405775; font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; margin-bottom: 9px; }
.catalogue-heading .eyebrow { margin-bottom: 9px; }
.text-link { font-size: .92rem; font-weight: 750; color: #325878; }
.catalogue-layout { display: grid; grid-template-columns: 224px minmax(0,1fr); gap: 26px; align-items: start; }
.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 15px 10px 10px; }
.sidebar h2 { font-size: 1.05rem; margin: 0 10px 12px; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar a { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 9px 10px; font-size: .9rem; text-decoration: none; border-radius: 6px; font-weight: 650; }
.sidebar a span { color: #657b93; font-size: 1.15rem; }
.sidebar a:hover { background: #f0f4f8; }
.sidebar a[aria-current] { background: #e7eef6; color: #183b62; }
.results-head, .section-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.results-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 13px; }
.results-head h2, .section-bar h2 { margin: 0; }
.results-head span { color: var(--muted); font-size: .85rem; }
.filter, .secondary { display: inline-block; padding: 8px 13px; border: 1px solid #c9d5e2; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 7px; font-size: .85rem; white-space: nowrap; }
.filter:hover, .secondary:hover, .filter.selected { background: #e8eff7; color: #1e476d; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.product-media { display: grid; place-items: center; aspect-ratio: 1.55; background: #fff; padding: 14px 16px 8px; border-bottom: 1px solid #edf0f4; }
.product-media img { width: 100%; height: 100%; max-height: 178px; object-fit: contain; }
.product-body { display: flex; flex-direction: column; align-items: flex-start; padding: 13px; flex: 1; }
.product-category { font-size: .73rem; font-weight: 750; color: #4c6380; margin-bottom: 6px; }
.product-category span { color: #6b542a; }
.product h3 { margin-bottom: 10px; overflow-wrap: anywhere; }
.product h3 a { text-decoration: none; }
.product-codes { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 5px 13px; color: var(--muted); font-size: .74rem; }
.product-codes div { display: flex; gap: 4px; overflow-wrap: anywhere; }
dt { font-weight: 750; }
dd { margin: 0; }
.stock { font-weight: 750; font-size: .8rem; margin-bottom: 12px; }
.in-stock { color: var(--green); }
.out-stock, .error, .danger { color: var(--red); }
.add-form { margin-top: auto; width: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.product .add-form .button { width: 100%; }
.button { display: inline-block; text-align: center; text-decoration: none; border: 1px solid transparent; background: #183756; color: white; border-radius: 7px; padding: 9px 14px; font-weight: 750; font-size: .88rem; }
.button:hover { color: white; background: #28527b; }
.button:disabled { background: #edf1f5; color: #526578; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; font-size: .87rem; }
.panel { padding: clamp(16px, 3vw, 29px); background: white; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; }
.notice { padding: 11px 15px; margin: 13px 0 0; background: #eaf4ed; color: #185034; border: 1px solid #a9cbb4; border-radius: 7px; }
.notice.error { background: #fff2ef; border-color: #efd2cc; color: var(--red); }
.back { display: inline-block; margin: 20px 0 0; color: #315c87; font-weight: 700; }
.panel .back { margin: 0 0 15px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.detail > img { max-height: 400px; width: 100%; object-fit: contain; }
.sample, .muted, small { color: var(--muted); }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.order-grid > .panel { margin: 0; }
.stack { display: grid; gap: 13px; }
.stack > .button { justify-self: start; }
label { display: grid; gap: 5px; font-weight: 650; font-size: .9rem; }
input:where(:not([type=checkbox])), select, textarea { width: 100%; min-width: 0; border: 1px solid #b9c7d5; color: var(--ink); background: white; border-radius: 6px; padding: 9px; }
textarea { resize: vertical; }
.stack p { margin-bottom: 0; }
.basket-row { display: grid; grid-template-columns: 54px minmax(0,1fr) 66px auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.basket-row img { width: 54px; height: 54px; object-fit: contain; }
.basket-row small, td small { display: block; margin-top: 4px; }
.basket > button { margin-top: 14px; }
.link-button { border: 0; padding: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: .87rem; }
.missing { padding: 12px 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 14px 25px; }
.login-panel, .edit-panel { max-width: 720px; margin-inline: auto; }
.admin-nav, .form-actions, .inline-search, .inline-stock, .checks { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.form-actions { margin-top: 15px; }
.inline-stock { flex-wrap: nowrap; min-width: 145px; }
.inline-search input, .inline-search select { width: auto; max-width: 100%; }
.inline-stock input { width: 84px; }
.table-scroll { overflow-x: auto; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .89rem; text-align: left; }
td, th { padding: 10px; border-bottom: 1px solid var(--line); }
th { background: #edf2f7; white-space: nowrap; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 8px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.edit-photo { max-width: 145px; max-height: 145px; object-fit: contain; }
.check { display: flex; align-items: center; gap: 5px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-info { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; overflow-wrap: anywhere; }
.quote-info dt { font-size: .8rem; color: var(--muted); margin-bottom: 3px; }
.site-footer { background: var(--navy); color: white; }
@media (max-width: 1090px) {
  .shell { width: calc(100% - 48px); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 30px); }
  .top { gap: 12px; flex-wrap: wrap; justify-content: space-between; padding-block: 12px; }
  .top nav { order: 3; margin: 0; width: 100%; gap: 20px; }
  .catalogue-heading { padding: 23px 0 17px; flex-wrap: wrap; }
  .catalogue-layout, .order-grid { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { padding: 10px; }
  .sidebar h2 { margin: 0 0 7px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar a { padding: 6px 8px; border: 1px solid var(--line); font-size: .78rem; }
  .sidebar a span { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail > img { max-height: 250px; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.13rem; gap: 7px; }
  .brand-mark, .brand-mark img { width: 37px; height: 34px; }
  .order-link { padding: 6px 7px; gap: 5px; }
  .product-grid { gap: 8px; }
  .product-body { padding: 8px; }
  .product h3 { font-size: 1rem; }
  .product .button { font-size: .78rem; padding-inline: 4px; }
  .product-media { padding: 8px; }
  .search button { min-width: 0; }
  .search input { font-size: .88rem; }
  .basket-row { grid-template-columns: 43px minmax(0,1fr) 57px; }
  .basket-row button { grid-column: 2 / -1; justify-self: end; }
}

/* Warm paper, blueprint lines and hazard details carry through from the original site. */
:root {
  --ink: #131b27;
  --navy: #151a22;
  --paper: #f4f2ed;
  --line: #d9d6cf;
  --orange: #ffad62;
  --muted: #565c65;
}
.hazard-strip {
  height: 5px;
  background: repeating-linear-gradient(45deg, #ffd529 0 10px, #171b22 10px 20px);
}
.site-head { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand, .brand:hover { color: var(--ink); }
.brand small { color: var(--muted); }
.top nav a { color: var(--ink); }
.top nav a:hover, .top nav a[aria-current] { color: #a44303; }
.order-link, .order-link:hover { color: var(--ink); border-color: var(--line); }
.order-link:hover { background: #fff; }
.search input { border-color: #a9a59d; }
.search button, .hero .button, .quote-banner .button { background: #ff9d46; color: #1b140e; border-color: #ff9d46; }
.search button:hover, .hero .button:hover, .quote-banner .button:hover { background: #ffb577; }
.hero {
  margin-top: 24px;
  border: 1px solid #25282c;
  border-top: 5px solid #ef7e2c;
  background: #1b1d20;
  color: #f9f7f2;
  overflow: hidden;
}
.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 382px;
}
.hero-slide[hidden], .hero-controls[hidden] { display: none; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 5vw, 70px);
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg,#ffffff0a 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-copy .eyebrow { color: #ffc384; }
.hero-copy h1, .hero-copy h2 {
  font-family: "Stardos Stencil", "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.15vw, 4rem);
  line-height: 1.03;
  text-transform: uppercase;
  letter-spacing: -.025em;
  margin: 0 0 12px;
}
.hero-copy p:not(.eyebrow) { max-width: 420px; color: #e2ded6; }
.hero-photo { width: 100%; height: 100%; min-height: 0; max-height: 500px; object-fit: cover; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero .secondary, .quote-banner .secondary { background: transparent; color: #fff; border-color: #9c9da0; }
.hero .secondary:hover, .quote-banner .secondary:hover { background: #353738; }
.hero-controls { display: flex; justify-content: flex-end; align-items: center; gap: 11px; padding: 7px 14px; border-top: 1px solid #44474a; font-size: .86rem; }
.hero-controls button { background: transparent; color: white; border: 1px solid #8c8d8e; padding: 4px 11px; border-radius: 4px; }
.hero-controls button:hover { color: #ffb577; }
.home-section { padding-block: 30px 14px; }
.home-section h2, #products h2, .quote-banner h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: 0; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.library-card { display: flex; flex-direction: column; align-items: flex-start; padding: 17px; background: #fff; border: 1px solid var(--line); border-top: 3px solid #e98032; }
.library-card p { color: var(--muted); margin-bottom: 13px; font-size: .91rem; }
.library-card a { margin-top: auto; font-size: .87rem; font-weight: 750; }
#products h2 { margin-bottom: 5px; }
.quote-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 24px; margin-top: 36px; background: #202329; color: white; border-top: 4px solid #e98032; }
.quote-banner p { margin: 7px 0 0; color: #e0ddda; }
.internal-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.internal-notes button { justify-self: start; }
.panel > .inline-search { margin-block: 12px; }
.checkout-form { margin-top: 12px; }
.checkout-form > button { min-height: 44px; }
@media (max-width: 760px) {
  .hero { margin-top: 14px; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-photo { height: clamp(150px, 40vw, 270px); }
  .hero-copy { padding: 22px; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .checkout-form .pair { grid-template-columns: 1fr; }
  .top nav { gap: 10px 16px; }
  .library-card { padding: 12px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,.65fr) minmax(0,1fr);
  gap: clamp(18px,4vw,65px);
  padding-block: 32px;
}
.site-footer { border-top: 4px solid #ee903f; }
.footer-grid h2 { margin: 0 0 12px; font-size: 1rem; color: #fff; }
.footer-grid nav, .public-contact { display: grid; gap: 8px; justify-items: start; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo img { width: 40px; height: 34px; object-fit: contain; background: white; border-radius: 4px; }
.footer-brand p { color: #d0d3d8; margin: 12px 0 0; max-width: 35ch; }
.site-footer a { color: #ffe0bf; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.public-contact { font-style: normal; overflow-wrap: anywhere; }
.site-footer .public-contact { color: #d0d3d8; }
.footer-bottom { padding-block: 13px; border-top: 1px solid #484c54; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.footer-bottom small { color: #c6cad2; }
.settings-group { border: 1px solid var(--line); padding: 12px; display: grid; gap: 11px; min-inline-size: 0; }
.settings-group legend { font-weight: 750; }
.brand > span:last-child { overflow-wrap: anywhere; }
@media (max-width: 660px) {
  .footer-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .brand { max-width: 100%; white-space: normal; }
}
