@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #25292c;
  --muted: #596165;
  --paper: #eaeae7;
  --panel: #fafaf8;
  --line: #ced2d1;
  --accent: #e2b72f;
  --accent-deep: #b08c1e;
  --soft-green: #fff9e8;
  --serif: 'DM Sans', Arial, sans-serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

body { font-family: 'DM Sans', Arial, sans-serif; background: var(--paper); color: var(--ink); }
.shell { width: min(1100px, calc(100% - 44px)); }
.masthead { background: var(--ink); color: #fafaf8; border-bottom: 1px solid #3b4144; margin: -34px calc((1100px - 100vw) / 2) 0; padding: 24px max(22px, calc((100vw - 1100px) / 2)); }
.masthead .eyebrow, .masthead h1 { color: #fafaf8; }.masthead .eyebrow { color: #aeb4b2; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 9px; }
.brand-mark { border-color: #fafaf8; }.brand-mark span { background: #fafaf8; }
.status-pill { border-color: #4b5154; color: #aeb4b2; }.status-dot { background: var(--accent); }
.intro h2, .run-caption { font-family: 'DM Sans', Arial, sans-serif; font-weight: 600; letter-spacing: -.055em; }.intro h2 { max-width: 720px; }.kicker { color: var(--action, #c7146d); }
.panel { background: var(--panel); border-color: var(--line); border-radius: 0; }.step { background: var(--accent); color: var(--ink); }.panel-heading p, .lede, .field small, .provider-detail, .field-note { color: var(--muted); }
.provider-card { border-color: var(--line); border-radius: 0; }.provider-card:hover { border-color: var(--action, #c7146d); }.provider-card.selected { border-color: var(--ink); background: #fff9e8; box-shadow: inset 0 -3px 0 var(--accent); }
.profile-row select, .field input, .field textarea { border-color: var(--line); border-radius: 0; background: #fff; }.profile-row select:focus, .field input:focus, .field textarea:focus { border-color: #c7146d; box-shadow: 0 0 0 3px rgba(199,20,109,.1); }
.run-button { background: #c7146d; border-radius: 0; }.run-button:hover { background: #a90f5a; }.arrow { color: #f6dc67; }
.upload-control { border-color: #b9bec0; border-radius: 0; background: #fff9e8; }.upload-control:hover { border-color: #c7146d; }.shield { color: #c7146d; }
.results.panel { border-top: 4px solid #c7146d; }.success-mark { border-radius: 0; background: var(--accent); }.download-button:hover, .layer-chip:has(input:checked) { background: #fff9e8; }.file-type, .eyebrow { font-family: 'IBM Plex Mono', ui-monospace, monospace; }.output-card, .schema-card { border-radius: 0; border-color: var(--line); }.output-content, .schema-output { background: #25292c; color: #f1f3f1; }.activity { background: #fff9e8; border-color: #e3d59f; color: #735c2d; border-radius: 0; }
.text-button, .copy-button { color: #c7146d; }.text-button:hover, .copy-button:hover { color: #a90f5a; }.toast { border-radius: 0; background: var(--ink); }
footer { font-family: 'IBM Plex Mono', ui-monospace, monospace; color: #8b938f; }
.info-button{display:inline-grid;place-items:center;width:20px;height:20px;margin-left:6px;border:1px solid var(--muted);border-radius:50%;background:#fff;color:var(--ink);font-size:12px;font-weight:700;cursor:pointer;vertical-align:middle}.info-button:hover{border-color:var(--accent-pink);color:var(--accent-pink)}
.field select{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:0;padding:12px 13px;outline:none}.custom-model{margin-top:4px}.file-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.file-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid var(--line);background:#fff;font-size:11px}.file-chip button{border:0;background:none;color:#c7146d;font-size:16px;line-height:1;cursor:pointer;padding:0}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:rgba(37,41,44,.42)}.modal-backdrop[hidden]{display:none}.help-modal{position:relative;width:min(560px,100%);max-height:85vh;overflow:auto;padding:28px;background:#fff;border:1px solid var(--line);box-shadow:0 20px 60px rgba(37,41,44,.2)}.help-modal h3{margin:5px 0 18px;font-size:24px}.map-help-copy p{margin:10px 0;color:var(--muted);font-size:14px;line-height:1.5}.map-help-copy strong{color:var(--ink)}.modal-close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:25px;color:var(--muted);cursor:pointer}


/* Editorial scale inspired by WebMapGPT; NLGIS yellow/black/pink palette preserved. */
.shell { width: min(1160px, calc(100% - 48px)); padding: 42px 0 38px; }
.masthead { padding-bottom: 30px; }
.masthead h1 { font-size: 20px; letter-spacing: -.035em; }
.intro { padding: 78px 0 58px; max-width: 780px; }
.intro h2 { font-size: clamp(42px, 6vw, 70px); line-height: .96; max-width: 760px; }
.lede { max-width: 660px; margin-top: 30px; font-size: 18px; line-height: 1.65; }
.panel { padding: 34px; margin-bottom: 18px; }
.panel-heading { gap: 18px; margin-bottom: 30px; }
.panel h3 { font-size: 20px; }
.panel-heading p, .field-note, .field small, .upload-control small, .privacy-note { font-size: 12px; line-height: 1.55; }
.provider-grid { gap: 10px; }
.provider-card { min-height: 112px; padding: 17px; }
.provider-name { font-size: 15px; }
.provider-detail { font-size: 12px; line-height: 1.45; }
.profile-row { margin-top: 26px; }
.profile-row label, .field { font-size: 13px; }
.profile-row select, .field input, .field textarea, .field select { padding: 14px 15px; font-size: 15px; }
.field-grid { gap: 24px; }
.field textarea { min-height: 150px; line-height: 1.6; }
.upload-row { margin-top: 24px; gap: 22px; }
.run-section { padding: 38px 3px 72px; }
.run-caption { font-size: 29px; }
.run-subcaption { font-size: 13px; }
.run-button { padding: 17px 19px 17px 22px; font-size: 13px; }
.output-card-header { padding: 20px 21px 14px; }
.output-card h4, .schema-card h4 { font-size: 16px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, 560px); padding-top: 24px; }
  .intro { padding: 56px 0 40px; }
  .intro h2 { font-size: clamp(38px, 11vw, 56px); }
  .lede { font-size: 16px; }
  .panel { padding: 23px; }
  .panel h3 { font-size: 18px; }
  .run-section { padding-bottom: 48px; }
}


/* Branded masthead treatment: stronger identity without adding a hero section. */
.masthead {
  position: relative;
  margin: -42px calc((1160px - 100vw) / 2) 0;
  padding: 30px max(24px, calc((100vw - 1160px) / 2)) 32px;
  gap: 17px;
}
.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: #c7146d;
}
.masthead .eyebrow { font-size: 10px; letter-spacing: .18em; }
.masthead h1 { font-size: 25px; letter-spacing: -.045em; }
.masthead .brand-mark { width: 34px; height: 35px; padding: 4px; gap: 4px; }
.masthead .brand-mark span { width: 5px; }
.masthead .brand-mark span:nth-child(1) { height: 11px; }
.masthead .brand-mark span:nth-child(2) { height: 19px; }
.masthead .brand-mark span:nth-child(3) { height: 26px; }
.masthead .status-pill { padding: 11px 16px; font-size: 13px; gap: 9px; }
.masthead .status-dot { width: 8px; height: 8px; }

@media (max-width: 760px) {
  .masthead { margin: -24px -15px 0; padding: 28px 15px 25px; gap: 12px; }
  .masthead h1 { font-size: 21px; }
  .masthead .eyebrow { font-size: 8px; letter-spacing: .13em; }
  .masthead .brand-mark { width: 29px; height: 30px; }
  .masthead .status-pill { padding: 8px 11px; font-size: 11px; gap: 7px; }
}


/* Minimal branded footer with the same dark field and pink rule as the masthead. */
.site-footer {
  position: relative;
  margin: 18px calc((1160px - 100vw) / 2) -38px;
  padding: 25px max(24px, calc((100vw - 1160px) / 2)) 29px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #f7f7f3;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: #c7146d;
}
.site-footer a { color: #f6dc67; text-underline-offset: 3px; }
.site-footer a:hover, .site-footer a:focus-visible { color: #ff78b4; }
.site-footer b { color: #8f9795; font-weight: 400; }

@media (max-width: 760px) {
  .site-footer {
    margin: 18px -15px -24px;
    padding: 23px 15px 28px;
    flex-direction: column;
    gap: 7px;
  }
}


/* Supplied NLGIS Labs logo in the Tile Styler masthead. */
.masthead .brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
}
@media (max-width: 760px) {
  .masthead .brand-logo { width: 37px; height: 37px; }
}
