body{
font-family: 'Inter', sans-serif;
margin:0;
background: #ffffff;
}

.header{
background:#006c70;
color:#ffffff;
padding:25px;
text-align:center;
}

.main-tabs{
display:flex;
background:white;
border-bottom:1px solid #ddd;
}

.tab-button{
padding:14px 20px;
border:1px solid #ddd;
background:white;
color:#006c70;
cursor:pointer;
font-size:16px;
}

.tab-button.active{
border-bottom:3px solid #e9ecef;
font-weight:bold;
background:#006c70;
color:#ffffff;
}

.sub-tabs{
margin-top:20px;
}

.subtab-button{
padding:10px 16px;
border:1px solid #ddd;
color:#006c70;
background:#ffffff;
cursor:pointer;
margin-right:10px;
border-radius:4px;
}

.subtab-button.active{
background:#006c70;
color:#ffffff;
}

.main-tab-content{
display:none;
padding:30px;
}

.main-tab-content.active{
display:block;
}

.subtab-content{
display:none;
margin-top:20px;
}

.subtab-content.active{
display:block;
}

#plot{
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 0;
}

#plotColumn{
    flex: 1 1 auto;
    min-width: 0;
    display:flex;
    flex-direction:column;
    gap:0;
}

#plotHeaderStrip{
    flex: 0 0 98px;
    min-height: 98px;
    max-height: 98px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#plotHeaderStrip.plot-header-strip--spatial{
    flex-basis: 74px;
    min-height: 74px;
    max-height: 74px;
}

#plotLayout{
    display:flex;
    align-items:flex-start;
    gap:20px;
    width: min(94vw, 1500px);
    margin: 0 auto;
    padding: 0 24px 24px;
    box-sizing: border-box;
}

#plotLayout.plot-layout--spatial-single #plotColumn{
    max-width: min(74vw, 760px);
}

@media (max-width: 1100px){
    #plotLayout.plot-layout--spatial-single #plotColumn{
        max-width: 100%;
    }
}

#plot .js-plotly-plot,
#plot .plot-container,
#plot .svg-container{
    width: 100% !important;
}

.plot-header-strip{
    display:none;
}

.plot-header-strip.is-visible{
    display:grid;
    gap:0;
    align-content:stretch;
}

.plot-header-strip--temporal{
    grid-template-rows: 16px 14px 22px 24px;
    padding-top: 0;
}

.plot-header-strip--spatial{
    grid-template-rows: 18px 16px 24px;
    padding-top: 0;
}

.plot-header-strip__title{
    height: 16px;
    line-height: 16px;
    font-size: 11px;
    font-weight: 700;
    text-align:center;
    color:#111111;
}

.plot-header-strip__cell{
    min-width: 0;
    height: 100%;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

.plot-header-strip__cell--blank{
    visibility:hidden;
}

.plot-header-strip__modality-label{
    height: 14px;
    line-height: 14px;
    font-size: 10px;
    font-weight: 700;
    text-align:center;
    color:#000000;
}

.plot-header-strip--spatial .plot-header-strip__modality-label{
    height: 16px;
    line-height: 16px;
    border-radius: 3px 3px 0 0;
    background:#f3f5f7;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    color:#111111;
}

.plot-header-strip__region-bar{
    position:relative;
    height: 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-top: 1px solid #000000;
    box-sizing:border-box;
    color:#000000;
    font-size: 12px;
    font-weight: 600;
    overflow:hidden;
}

.plot-header-strip__region-bar--spatial{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:0;
    height: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.plot-header-strip__region-segment{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    height: 100%;
    font-size: 10px;
    font-weight: 700;
    color:#111111;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing:border-box;
}

.plot-header-strip__region-segment:last-child{
    border-right:none;
}

.plot-header-strip__timepoint-row{
    display:grid;
    gap:0;
    height: 24px;
}

.plot-header-strip__timepoint{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 11px;
    font-weight: 700;
    color:#000000;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing:border-box;
}

.plot-header-strip__timepoint:last-child{
    border-right:none;
}

.plot-header-strip__separator{
    height: 2px;
    background:#000000;
}

.plot-header-strip__metric-spacer{
    height: 100%;
}

.go-autocomplete-panel{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin:6px 0 10px;
    padding:8px;
    border:1px solid #c9d8d8;
    border-radius:10px;
    background:#f7fbfb;
    box-shadow:0 8px 24px rgba(0, 0, 0, 0.08);
    max-width:min(100%, 680px);
    max-height:260px;
    overflow:auto;
}

.go-autocomplete-item{
    width:100%;
    text-align:left;
    border:1px solid #d3e2e2;
    background:#ffffff;
    color:#123;
    border-radius:8px;
    padding:10px 12px;
    font-size:0.92rem;
    cursor:pointer;
}

.go-autocomplete-item:active,
.go-autocomplete-item:hover{
    background:#eef7f7;
    border-color:#9ec7c7;
}

.go-autocomplete-empty{
    padding:10px 12px;
    color:#546;
    font-size:0.92rem;
}

.stats-panel{
    display:none;
    min-width: 360px;
    max-width: 480px;
    background:#f8fbfb;
    border:1px solid #d7e7e7;
    border-radius:8px;
    padding:12px;
    margin-top:40px;
}

.stats-panel.active{
    display:block;
}

.stats-panel table{
    width:100%;
    border-collapse:collapse;
    font-size:0.9rem;
}

.stats-panel th,
.stats-panel td{
    border:1px solid #d7e7e7;
    padding:6px 8px;
    text-align:left;
}

.stats-panel th{
    background:#eef7f7;
    color:#004f52;
}

.meta-controls{
    display:flex;
    flex-wrap:wrap;
    gap:8px 14px;
    margin:8px 0 12px;
    font-size:0.92rem;
}

.meta-controls label{
    display:flex;
    align-items:center;
    gap:4px;
}

.metric-option{
    position:relative;
}

.temporal-single-controls{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px 14px;
    margin-top:8px;
}

.temporal-single-controls label{
    display:flex;
    align-items:center;
    gap:6px;
}

.temporal-single-controls select{
    width:auto;
    min-width:160px;
    max-width:none;
}

.metric-help{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:16px;
    border-radius:50%;
    border:1px solid #89a;
    color:#345;
    font-size:11px;
    font-weight:700;
    line-height:1;
    cursor:help;
    background:#f2f7fb;
    user-select:none;
}

.metric-help:hover,
.metric-help:focus-visible{
    border-color:#006c70;
    color:#006c70;
    outline:none;
}

.metric-help::after{
    content: attr(data-tooltip);
    position:absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(320px, 85vw);
    background:#1f2d35;
    color:#ffffff;
    border-radius:6px;
    padding:8px 10px;
    font-size:0.78rem;
    line-height:1.4;
    box-shadow:0 6px 18px rgba(0,0,0,0.18);
    opacity:0;
    visibility:hidden;
    transform:translateY(-3px);
    transition:opacity 0.15s ease, transform 0.15s ease;
    z-index:30;
    pointer-events:none;
    white-space:normal;
}

.metric-help:hover::after,
.metric-help:focus-visible::after{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.meta-controls input[type="checkbox"]{
    width:auto;
    max-width:none;
    margin:0;
}

@media (max-width: 1100px) {
    #plotLayout{
        flex-direction:column;
        padding: 0 16px 20px;
    }
    .stats-panel{
        margin-top:0;
        min-width:0;
        width:100%;
        max-width:100%;
    }
}

input, textarea, select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin: 5px 0;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

button {
    padding: 12px 24px;
    background: #006c70;
    color: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
    transition: background 0.3s;
}

button:hover {
    background: #005a5a;
    color: #ffffff;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #006c70;
    color: #fff;
}

.region-prompt {
    margin: 10px 0 2px;
    font-size: 0.92rem;
    color: #444;
    font-weight: 500;
}

.explorer-estimate {
    margin: 6px 0 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.explorer-advice {
    margin: 0 0 6px;
    font-size: 0.88rem;
    color: #42565a;
    max-width: 920px;
}

.explorer-preview-controls {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    margin: 8px 0 10px;
}

.explorer-preview-controls input[type="number"] {
    width: 92px;
    max-width: 92px;
    padding: 8px 10px;
}

.explorer-action-row {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.explorer-render-timer {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: #4a5a61;
}

.explorer-render-timer.is-running {
    color: #8a5a00;
    font-variant-numeric: tabular-nums;
}

.explorer-estimate.risk-low {
    color: #0b7a38;
}

.explorer-estimate.risk-medium {
    color: #9a6b00;
}

.explorer-estimate.risk-high {
    color: #9c1d1d;
}

.go-timing-note {
    margin: 8px 0 4px;
    font-size: 0.86rem;
    color: #666;
    background: #f5fafa;
    border-left: 3px solid #006c70;
    padding: 5px 10px;
    border-radius: 0 4px 4px 0;
    max-width: 480px;
}

.go-progress-wrap {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: #e0eded;
    border-radius: 3px;
    margin: 6px 0 4px;
    overflow: hidden;
}

.go-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #006c70, #00a8ae);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title {
    line-height: 1.2;
}

.title-main {
    font-size: 3.2rem;
    color: #006c70;
    margin: 0;
    font-weight: 700;
}

.title-sub {
    font-size: 1.5rem;
    color: #666;
    margin: 10px 0 0;
    font-weight: 400;
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.infographic-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f5fbfb, #e8f4f5);
    border: 2px dashed #d7e7e7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.features-publication {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
}

.features-panel {
    background: #f9fbfb;
    border-left: 4px solid #006c70;
    padding: 30px;
    border-radius: 8px;
}

.features-panel h3 {
    font-size: 1.4rem;
    color: #006c70;
    margin-top: 0;
}

.features-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-panel li {
    margin: 12px 0;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

.about-panel {
    background: #f9fbfb;
    border-left: 4px solid #006c70;
    padding: 30px;
    border-radius: 8px;
}

.about-panel h3 {
    font-size: 1.4rem;
    color: #006c70;
    margin-top: 0;
}

.about-panel p {
    margin: 12px 0;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

.about-panel a {
    color: #006c70;
    text-decoration: none;
    border-bottom: 1px solid #006c70;
}

.about-panel a:hover {
    color: #005a5a;
}

@media (max-width: 900px) {
    .hero-grid,
    .features-publication {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px auto;
    }

    .title-main {
        font-size: 2.2rem;
    }

    .title-sub {
        font-size: 1.2rem;
    }

    .infographic-placeholder {
        min-height: 300px;
    }
}
    text-align: center;
    color: #000000;
}

.info h2, .features h2 {
    color: #006c70;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000000 !important;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    background: #f9f9f9;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 5px solid #006c70;
    color: #000000;
}

footer {
    background: #006c70;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ===== HOME PAGE (index.html) ===== */

.home-hero {
    background: #006c70;
    width: 100%;
    position: relative;
}

.home-brand {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
    z-index: 1;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 60px;
    gap: 60px;
    align-items: center;
}

.home-brand {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.home-hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
}

.home-hero-sub {
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.home-launch-btn {
    display: inline-block;
    padding: 13px 44px;
    border: 1.5px solid rgba(255,255,255,0.8);
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    border-radius: 2px;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s;
}

.home-launch-btn:hover {
    background: #ffffff;
    color: #006c70;
}

.home-hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.home-hero-graphic {
    border-radius: 12px;
    width: 94%;
    max-width: 470px;
    height: auto;
    display: block;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

/* Info section */

.home-info {
    background: #e5e5e5;
    width: 100%;
}

.home-info-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 60px;
}

.home-no-coding h3,
.home-source h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #006c70;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px;
}

.home-panel-lead {
    font-size: 1rem;
    line-height: 1.55;
    color: #222;
    font-style: italic;
    margin: 0 0 14px;
}

.home-no-coding p,
.home-source p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 10px;
}

.home-source a {
    color: #006c70;
    text-decoration: underline;
}

.home-source a:hover {
    color: #005a5a;
}

/* Methods background section */

.home-methods {
    background: #ffffff;
    width: 100%;
}

.home-methods-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.home-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.home-method-card {
    border-radius: 8px;
    overflow: hidden;
}

.home-method-card--text {
    background: #f9fbfb;
    border-left: 4px solid #006c70;
    padding: 26px 28px;
}

.home-method-card--text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #006c70;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
}

.home-method-lead {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #222;
}

.home-method-card--text p {
    margin: 0 0 10px;
    font-size: 0.93rem;
    line-height: 1.65;
    color: #333;
}

.home-method-card--text p:last-child {
    margin-bottom: 0;
}

.home-method-card--image {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    min-height: 260px;
}

.home-method-image-title {
    margin: 0;
    color: #006c70;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.home-method-card--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* How it works */

.home-how {
    background: #006c70;
    width: 100%;
}

.home-how-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 40px;
    gap: 80px;
}

.home-how-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-how-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-how-steps li {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
}

.home-how-steps li:last-child {
    font-weight: 700;
    color: #ffffff;
}

/* The Tabs */

.home-tabs {
    background: #ffffff;
    width: 100%;
}

.home-tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.home-tabs-heading {
    font-size: 2rem;
    font-weight: 300;
    color: #006c70;
    letter-spacing: 0.2em;
    margin: 0 0 28px;
}

.home-tabs-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0 0 48px;
}

.home-tabs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    text-align: left;
}

.home-tab-card {
    background: #f9fbfb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-tab-card::before {
    content: '';
    display: block;
    height: 6px;
    background: #006c70;
    border-radius: 8px 8px 0 0;
}

.home-tab-card-body {
    padding: 24px 26px 28px;
}

.home-tab-card h4 {
    font-size: 1.1rem;
    color: #006c70;
    font-weight: 700;
    margin: 0 0 12px;
}

.home-tab-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

/* Home footer */

.home-footer {
    background: #006c70;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    font-size: 0.88rem;
}

.home-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.home-footer a:hover {
    color: rgba(255,255,255,0.75);
}

/* Responsive */

@media (max-width: 1200px) {
    .home-tabs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .home-hero-inner,
    .home-info-inner {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 36px;
    }

    .home-methods-inner {
        padding: 48px 24px;
    }

    .home-methods-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-hero-title {
        font-size: 2.2rem;
    }

    .home-hero-sub {
        font-size: 1.15rem;
    }

    .home-hero-graphic {
        max-width: 100%;
    }

    .home-how-inner {
        flex-direction: column;
        gap: 20px;
        padding: 40px 24px;
    }

    .home-tabs-inner {
        padding: 48px 24px;
    }

    .home-tabs-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 24px;
    }
}