:root{
    --brand:#0d50c8;
    --text:#0f172a;
    --shadow:0 10px 24px rgba(0,0,0,.15);
    --ring:rgba(13,80,200,.35);
    --radius:999px;
    font-family: "Acumin-Light";
  }

  @font-face {
    font-family: "Acumin-Light";
    src: url('./fonts/Acumin-Pro/Acumin-Pro-Light.otf') ;

  }
  
  @font-face {
    font-family: "Acumin-Regular";
    src: url('./fonts/Acumin-Pro/Acumin-Pro-Book.otf') ;
  
  }

  *{box-sizing:border-box}
  body{margin:0;font-family: "Acumin-Light";
    color:var(--text)}
  
  /* FAB container */
  #suggestion-fab{position:fixed;right:24px;bottom:24px;z-index:1000;font-family: "Acumin-Light";}
  
  /* FAB button */
  .fab{
    position:relative;
    display:inline-flex;align-items:center;
    height:56px;width:56px;padding:0 18px;
    border:0;border-radius:28px;cursor:pointer;
    color:#fff;background:var(--brand);
    /* box-shadow:var(--shadow); */
    overflow:hidden; /* keep icon inside */
    transition:width .35s cubic-bezier(.2,.8,.2,1),border-radius .35s cubic-bezier(.2,.8,.2,1);
  }
  .fab:focus-visible{outline:2px solid #fff;outline-offset:2px}
  .fab.expanded{width:280px;border-radius:var(--radius)}
  
  .fab-content{
    display:flex;align-items:center;gap:12px;width:100%;
    padding-right:40px; /* space for chip */
  }
  .fab-label{
    font-family: "Acumin-Light";
    font-size:15px;letter-spacing:.1px;white-space:nowrap;user-select:none;
    opacity:0;transform:translateX(8px);
    transition:opacity .2s ease,transform .2s ease;
  }
  .fab.expanded .fab-label{opacity:1;transform:translateX(0)}
  
  /* Single icon chip (NO svgs) */
  .chip{
    position:absolute;right:11px;top:50%;transform:translateY(-50%);
    display:grid;place-items:center;
    width:32px;height:32px;border-radius:999px;
    background:#fff;color:var(--brand);
    box-shadow:0 6px 14px rgba(0,0,0,.2);
    pointer-events:none;
  }
  /* plus / x drawn with 2 bars */
  .glyph{position:relative;width:16px;height:16px;display:block}
  .glyph::before,.glyph::after{
    content:"";position:absolute;left:50%;top:50%;
    width:16px;height:2px;background:var(--brand);border-radius:2px;
    transform-origin:center;translate:-50% -50%;
    transition:transform .25s cubic-bezier(.2,.8,.2,1);
  }
  /* collapsed => plus */
  .glyph::before{transform:rotate(0deg)}
  .glyph::after{transform:rotate(90deg)}
  /* expanded => X */
  .fab.expanded .glyph::before{transform:rotate(45deg)}
  .fab.expanded .glyph::after{transform:rotate(-45deg)}
  
  /* Modal */
  .modal-root{position:fixed;inset:0;display:none;place-items:center;z-index:1100}
  .modal-root.open{display:grid}
  .backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5);opacity:0;transition:opacity .2s ease}
  .modal-root.open .backdrop{opacity:1}
  
  .card{
    font-family: "Acumin-Light";
    position:relative;width:min(680px,calc(100% - 32px));
    background:#fff; box-shadow:var(--shadow);
    transform:translateY(16px);opacity:0;
    transition:transform .25s cubic-bezier(.2,.8,.2,1),opacity .25s ease;
  }
  .modal-root.open .card{transform:translateY(0);opacity:1}
  
  .card-header{
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    padding:16px 20px;border-bottom:1px solid #e5e7eb;background:var(--brand);color:#fff
  }
  .card-title{margin:0;font-size:18px; font-family: "Acumin-Light";}
  .icon-btn{border:0;background:transparent;padding:8px;border-radius:8px;cursor:pointer;color:#fff}
  .icon-btn:hover{background:rgba(255,255,255,.15)}
  
  .card-body{padding:18px 20px 8px}
  .grid{display:grid;gap:14px;grid-template-columns:1fr}
  @media(min-width:700px){.grid{grid-template-columns:1fr 1fr}}
  .grid .span-2{grid-column:1 / -1}
  label{font-size:13px;font-weight:300;color:#ffffff}
  input,textarea{
    width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;font:inherit;
    outline:none;transition:box-shadow .15s ease,border-color .15s ease
  }
  input:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--ring)}
  textarea{resize:vertical}
  /* textarea{min-height:120px;resize:vertical} */

  .card-footer{display:flex;justify-content:flex-end;gap:10px;padding:10px 20px 18px}
  .btn{height:40px;padding:0 16px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;cursor:pointer}
  .btn:hover{background:#f8fafc}
  .btn-primary{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
  .btn-primary:disabled{opacity:.55;cursor:not-allowed}
  /* Make sure the FAB sits above header and canvases */
#suggestion-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;                 /* default desktop spot */
  z-index: 2500;                 /* > header (1000..999999), > canvases */
  pointer-events: auto;          /* ensure it can be tapped */
}

/* On mobile: move it under the header by ~20px (respect safe-area) */
@media (max-width: 500px) {
  #suggestion-fab {
    position: fixed;                 /* or absolute, if you positioned it that way */
    top: auto !important;            /* unset the old top rule */
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    left: auto;                      /* ensure it doesn't keep an old left */
  }

  /* Optional: slightly smaller width when expanded on tiny screens */
  .fab.expanded { width: 240px; }
}

/* Ensure nothing invisible steals taps above the FAB */
.mobile-overlay.open {z-index: 2000000000;  }  
#suggestionModal.modal-root { z-index: 1000002; }
#suggestion-fab            { z-index: 1000001; }
/* allow normal tap behavior on the modal tree */
#suggestionModal,
#suggestionModal * {
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
}

/* sometimes iOS needs this to ensure the tap is treated like a click */
#suggestionModal input,
#suggestionModal textarea,
#suggestionModal button {
  touch-action: manipulation;
}
/* Prevent background scroll on mobile when modal is open */
body.modal-open {
  overflow: hidden;

}
#suggestionModal,
#suggestionModal * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
  touch-action: auto !important; /* harmless now that body isn’t using touch-action:none */
}

/* Inputs occasionally need this nudge on iOS when inside animated containers */
#suggestionModal .card {
  transform: none !important; /* after opening animation finishes */
}/* default: overlay is inert */
.mobile-overlay {
  display: none;               /* or: pointer-events: none; opacity: 0; */
}

/* when open: it’s interactive */
.mobile-overlay.open {
  display: block;              /* or: pointer-events: auto; opacity: 1; */
  justify-content: center; 
}
#suggestionModal.modal-root { z-index: 1000002; }
#suggestion-fab            { z-index: 1000001; }


/* use your card header as-is; this styles only the body */
.suggestion-body {
  background-color: #0d50c8;
  padding: 2rem 1.5rem;
  color: #fff;             
  text-align: center;
}

.suggestion-text {
  max-width: 900px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* two columns on desktop, stack on mobile */
.suggestion-form {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* Suggested Node | Description */
  gap: 1.25rem 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #111;
  outline: none;
}

/* make the submit span both columns and align right */
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* simple button that matches your theme */
.btn-primary {
  background: #113ea9;     /* tweak to your exact brand blue if needed */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); }

/* responsive: stack fields on small screens */
@media (max-width: 768px) {
  .suggestion-form {
    grid-template-columns: 1fr; /* stack */
  }
  .suggestion-body { text-align: center; }

.suggestion-text {  line-height: 1.4;}
}

/* === Cap About page to match Index rails (no markup changes) === */

/* 1) Shared sizing */
:root{
  --grid-max: 2080px;     /* same cap you used on Index */
  --page-pad: 20px;
  --header-h: 80px;
}

/* 2) Cap the full-bleed bars (content centered inside wide backgrounds) */
.header,
.site-footer,
.footer-legal{
  padding-left:  max(var(--page-pad), calc((100vw - var(--grid-max)) / 2)) !important;
  padding-right: max(var(--page-pad), calc((100vw - var(--grid-max)) / 2)) !important;
}

/* 3) Cap the page content blocks */
.container{
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* 4) Keep hero/sections full-width background but capped content */
.panel.hero,
.panel{
  /* backgrounds remain full-bleed naturally; no change needed */
}

/* 5) Make sure nothing causes horizontal scroll on huge screens */
html, body{ overflow-x: hidden; }

/* 6) Mobile unchanged (rails collapse to page padding) */
@media (max-width: 860px){
  .header,
  .site-footer,
  .footer-legal{
    padding-left:  var(--page-pad) !important;
    padding-right: var(--page-pad) !important;
  }
}