:root {
    /* Color Palette: Earthy & Architectural */
    --color-primary: #AE4432;    /* Cherokee Red */
    --color-secondary: #4B5320;  /* Moss */
    --color-bg: #F2EEE5;         /* Stone/Paper */
    --color-surface: #E6D5B8;    /* Sand */
    --color-text: #2A2A2A;       /* Iron */
    --color-border: #2A2A2A;     /* Visible Grid Lines */

    /* Spacing & Geometry */
    --grid-unit: 8px;
    --border-width: 1px;
    --radius-none: 0px;          /* Architectural sharpness */

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Architectural Layout Elements */
.container {
    border: var(--border-width) solid var(--color-border);
    background-color: var(--color-bg);
}

.horizontal-divider {
    border-bottom: var(--border-width) solid var(--color-border);
    width: 100%;
}

.vertical-divider {
    border-right: var(--border-width) solid var(--color-border);
    height: 100%;
}

.architectural-grid {
    display: grid;
    border: var(--border-width) solid var(--color-border);
}

.surface-box {
    background-color: var(--color-surface);
    border: var(--border-width) solid var(--color-border);
}

.architectural-section {
    border-bottom: var(--border-width) solid var(--color-border);
    padding: calc(var(--grid-unit) * 2);
}

.architectural-section:last-child {
    border-bottom: none;
}

/* Typography Styles */
h1, h2, h3, .label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

p.small {
    font-size: 0.75rem;
    color: var(--color-text);
    opacity: 0.8;
}

/* Defunct/Non-trading Style */
.is-defunct {
    opacity: 0.6 !important;
    filter: grayscale(0.8) !important;
}

.is-defunct strong, .is-defunct .tree-name-link {
    text-decoration: line-through !important;
}

.tree-badge--defunct {
    background: #4A4A4A !important;
    color: var(--color-bg) !important;
    text-decoration: line-through !important;
}

/* Tree Proportion Bar */
.tree-proportion-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--color-primary);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.tree-node {
    position: relative;
    overflow: hidden;
}

.tree-proportion-label {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.8rem;
    margin-left: auto;
}
button {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: var(--border-width) solid var(--color-border);
    padding: calc(var(--grid-unit) * 1) calc(var(--grid-unit) * 2);
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: transform 0.1s ease;
}

button:hover {
    filter: brightness(1.1);
}

button:active {
    transform: translate(2px, 2px);
}
