/* Tokens */
:root{
  --section-gap: clamp(24px, 5vw, 64px);   /* space BETWEEN sections */
  --section-py:  clamp(40px, 6vw, 96px);   /* inner padding scale */
}

/* Sections: TOP padding only; bottom handled on last section */
.gm-sections > .gm-section{
  padding-block: var(--section-py) 0;      /* top pad, no bottom */
}

/* Even spacing between any two sections */
.gm-sections > .gm-section + .gm-section{
  margin-block-start: var(--section-gap);
}

/* First section never gets a gap above (top of page) */
.gm-sections > .gm-section:first-child{
  margin-block-start: 0;
}

/* Last section gets its bottom padding back so the page ends nicely */
.gm-sections > .gm-section:last-child{
  padding-block-end: var(--section-py);
}

/* Optional density knobs (still work if you keep them) */
.gm-section[data-density="tight"] { --section-py: clamp(24px, 3.5vw, 56px); }
.gm-section[data-density="loose"] { --section-py: clamp(64px, 8vw, 140px); }

/* Kill vertical gutter side-effects inside sections */
.gm-section .row{
  --bs-gutter-y: 0;            /* no vertical gutter on desktop */
  margin-top: 0;               /* neutralise Bootstrap's -gutter trick */
}
@media (max-width: 991.98px){
  .gm-section .row{ --bs-gutter-y: 1.5rem; } /* allow vertical gap on mobile if stacked */
}

/* Trim edge margins so first/last child content can't shrink/expand the edges */
.gm-section > *:first-child { margin-block-start: 0; }
.gm-section > *:last-child  { margin-block-end: 0; }



/* bigger desktop gap between text and image comes from the col-lg-1 spacer */
.gm-text-image .row{ --bs-gutter-y: 0; }            /* we control vertical gap ourselves */

/* Mobile: add a single controlled gap under whichever block is first */
.gm-text-image{ --ti-gap: clamp(18px, 5vw, 28px); }
.gm-text-image .ti-block.order-1{ margin-block-end: var(--ti-gap); }
@media (min-width: 992px){
  .gm-text-image .ti-block.order-1{ margin-block-end: 0; } /* desktop uses spacer col */
}

/* Optional tidy internals */
.stack > * + *{ margin-block-start: clamp(10px, 2.5vw, 18px); }
.gm-text-image img{ display:block; }



/* FAQ local token + spacer between intro and list */
.gm-faq{ --faq-gap: clamp(24px, 4vw, 48px); }   /* tweak this to taste */
.gm-faq__intro{ margin-block-end: var(--faq-gap); }


/* debug */
/* .gm-section{ outline: 1px dashed rgba(255,0,0,.3); } */


/* Feature grid tokens + spacing */
.gm-features{ --features-gap: clamp(24px, 4vw, 48px); --feature-icon-size: 56px; }
.gm-features__intro{ margin-block-end: var(--features-gap); }

/* Make sure grid rows have vertical spacing regardless of your section rules */
.gm-features .row{ --bs-gutter-y: 1.5rem; }

/* Icon sizing */
.gm-feature__icon{ width: var(--feature-icon-size); height: var(--feature-icon-size); object-fit: contain; display:block; }

/* Optional: subtle card hover */
.gm-features .card{ transition: transform .18s ease, box-shadow .18s ease; }
.gm-features .card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 1rem 3rem rgba(0,0,0,.175)); }



.site-header {
    box-shadow: 0px 0px 10px rgb(0 0 0 / 10%);
    background-color: #dddddd;
    display: flex;
    justify-content: center;
    align-items: center;
}


.gm-upload-previews {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.gm-upload-preview {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.gm-upload-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gm-upload-file {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  font-size: 12px;
  padding: 8px;
  text-align: center;
}

.gm-upload-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
  word-break: break-word;
  opacity: 0.85;
}


.partial_entry_warning {
    display: none;
}



/* Portal Card Container */
.giant-portal-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Header: Badges */
.portal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.due-date-badge {
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 20px;
    color: #374151;
}

.status-badge.in-progress { color: #d97706; background: #fffbeb; padding: 5px 12px; border-radius: 20px; font-weight:bold; }
.status-badge.new { color: #6b7280; background: #f3f4f6; padding: 5px 12px; border-radius: 20px; }

/* Body Area */
.portal-body h3 { margin-top: 0; margin-bottom: 5px; color: #111; }
.save-note { font-size: 0.85rem; color: #6b7280; margin-bottom: 15px; }

/* Progress Bar */
.giant-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.giant-progress-bar-fill {
    height: 100%;
    background: #2563eb; /* Blue Color */
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Button Styling */
.giant-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.giant-btn.continue { background: #2563eb; color: white; }
.giant-btn.continue:hover { background: #1d4ed8; }

.giant-btn.start { background: #111827; color: white; }
.giant-btn.start:hover { background: #000; }


/* Completed Badge */
.status-badge.completed { 
    color: #065f46; 
    background: #d1fae5; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-weight: bold; 
}

/* Completed Progress Bar */
.giant-progress-bar-fill.completed {
    background: #10b981; /* Green */
}

/* Disabled Button (Finished State) */
.giant-btn.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: default;
    pointer-events: none; /* Prevents clicking */
    border: 1px solid #e5e7eb;
}


.container.branding {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 23px 0px;
}


footer.footer {
    background-color: #dddddd;
}

ul#menu-menu {
    display: flex;
    gap: 10px;
    list-style: none;
}