.giw-shell {
    max-width: 1900px;
    margin: 0 auto;
}

.giw-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 1rem;
}

.giw-header h1 {
    margin-bottom: .2rem;
}

.giw-eyebrow {
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
}

.giw-stat {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.giw-stat strong {
    font-size: 2rem;
}

.giw-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .8rem;
}

.giw-toolbar button,
.giw-layer-tools button {
    cursor: pointer;
}

.giw-tool.is-active {
    font-weight: 700;
    outline: 2px solid currentColor;
}

.giw-layout {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 1rem;
}

.giw-sidebar {
    height: 760px;
    overflow: auto;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
}

.giw-search {
    position: sticky;
    top: 0;
    z-index: 5;
    background: inherit;
    padding-bottom: .8rem;
}

.giw-search input {
    width: 100%;
    padding: .7rem;
}

.giw-group {
    border-top: 1px solid rgba(0,0,0,.1);
    padding: .65rem 0;
}

.giw-group summary {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.giw-group-description {
    opacity: .65;
    font-size: .82rem;
}

.giw-layer {
    padding: .55rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.giw-layer-main {
    min-width: 0;
}

.giw-layer-label {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
}

.giw-layer-label small {
    display: block;
    opacity: .62;
    margin-top: .1rem;
}

.giw-layer-tools {
    display: flex;
    gap: .4rem;
    margin: .4rem 0 .25rem 1.65rem;
}

.giw-opacity {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem;
    align-items: center;
    margin-left: 1.65rem;
    font-size: .76rem;
    opacity: .78;
}

.giw-opacity input {
    width: 100%;
}

.giw-map-column {
    min-width: 0;
}

.giw-map {
    width: 100%;
    height: 680px;
    min-height: 520px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef2f5;
}

.giw-map-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .55rem;
    font-size: .85rem;
}

.giw-inspector {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(200px, 1fr)
        minmax(180px, 1fr);
    gap: .8rem;
    margin-top: 1rem;
}

.giw-inspector > article {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    padding: .85rem;
    min-width: 0;
}

.giw-inspector h2 {
    margin-top: 0;
    font-size: 1rem;
}

.giw-inspector-body {
    max-height: 280px;
    overflow: auto;
}

.giw-inspector-body img {
    display: block;
    max-width: 100%;
    margin-top: .6rem;
}

.giw-identify-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .6rem;
    font-size: .8rem;
}

.giw-identify-table th,
.giw-identify-table td {
    text-align: left;
    vertical-align: top;
    padding: .3rem .4rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
    word-break: break-word;
}

.giw-identify-table th {
    width: 35%;
}

@media (max-width: 1050px) {
    .giw-layout {
        grid-template-columns: 1fr;
    }

    .giw-sidebar {
        height: 380px;
    }

    .giw-map {
        height: 560px;
    }

    .giw-inspector {
        grid-template-columns: 1fr;
    }
}

/* BEGIN GEOINFOWORLD STAGE 1C-06 */

.giw-utility-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.giw-filter-card,
.giw-report-card {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    padding: 1rem;
}

.giw-filter-card h2,
.giw-report-card h2 {
    margin-top: 0;
    font-size: 1rem;
}

.giw-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(150px, 1.5fr)
        minmax(120px, 1fr)
        100px
        minmax(120px, 1fr);
    gap: .65rem;
}

.giw-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.giw-filter-grid input,
.giw-filter-grid select {
    width: 100%;
    padding: .5rem;
}

.giw-filter-actions {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}

.giw-muted {
    opacity: .65;
    font-size: .85rem;
}

.giw-report-meta {
    display: grid;
    grid-template-columns:
        120px
        minmax(0, 1fr);
    gap: .3rem .7rem;
}

.giw-report-meta dt {
    font-weight: 700;
}

.giw-report-meta dd {
    margin: 0;
}

@media (max-width: 1000px) {

    .giw-utility-panel {
        grid-template-columns: 1fr;
    }

    .giw-filter-grid {
        grid-template-columns:
            1fr 1fr;
    }
}


@media print {

    body {
        background: #fff !important;
    }

    .giw-sidebar,
    .giw-toolbar,
    .giw-filter-card,
    .giw-map-footer {
        display: none !important;
    }

    .giw-shell {
        max-width: none;
    }

    .giw-layout {
        display: block;
    }

    .giw-map {
        width: 100%;
        height: 520px;
        min-height: 520px;
        border: 1px solid #bbb;
    }

    .giw-inspector {
        display: none;
    }

    .giw-utility-panel {
        display: block;
    }

    .giw-report-card {
        border: 0;
        padding: 0;
        margin-top: 1rem;
    }
}

/* END GEOINFOWORLD STAGE 1C-06 */


/* =========================================================
   GEOINFOWORLD SEMANTIC TREE v1
   ========================================================= */

.giw-semantic-tree {
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
}

.giw-tree-scope {
  border: 1px solid rgba(127, 127, 127, .18);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .025);
}

.giw-tree-scope-summary,
.giw-tree-category-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  user-select: none;
}

.giw-tree-scope-summary {
  padding: .8rem .9rem;
  font-weight: 700;
  font-size: .95rem;
}

.giw-tree-category-summary {
  padding: .65rem .75rem;
  font-weight: 600;
  font-size: .88rem;
}

.giw-tree-categories {
  display: grid;
  gap: .45rem;
  padding: 0 .55rem .65rem;
}

.giw-tree-category {
  border-top: 1px solid rgba(127, 127, 127, .12);
}

.giw-tree-layers {
  display: grid;
  gap: .35rem;
  padding: .35rem .35rem .65rem;
}

.giw-tree-count {
  min-width: 1.8rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  text-align: center;
  font-size: .72rem;
  opacity: .75;
  background: rgba(127, 127, 127, .14);
}

.giw-tree-scope[open]
  > .giw-tree-scope-summary {
  background: rgba(127, 127, 127, .06);
}


