@import url('https://fonts.googleapis.com/css?family=Roboto:400,700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

:root {
    /* Theme Colors */
    --primary-color: #ff5500;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #162F56;
    --background-color: #ffffff;
    --orange-1: #ff3300;
    --orange-2: #ff5500;
    --orange-3: #ff8f27;
    --orange-4: #ffa640;
    
    /* Typography */
    --heading-font: 'Roboto', Arial, sans-serif;
    --body-font: 'Lato', Arial, sans-serif;
    
    /* Spacing */
    --page-margin: 2.5cm;
    --header-height: 2cm;
    --footer-height: 2cm;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-color);
    background-color: #e5e5e5; /* Light gray for PDF-like effect */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Page Layout */
.page {
    width: 21cm;
    height: 29.7cm;
    min-height: 29.7cm;
    max-height: 29.7cm;
    padding: 3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    background: var(--background-color);
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 1.5px 3px rgba(0,0,0,0.08);
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

/* Add spacing between pages */
.page + .page {
    margin-top: 3rem;
}

/* Center all pages in a column */
body > .page {
    margin-left: auto;
    margin-right: auto;
}

/* Cover Page */
.cover-page {
    /* background-image: url('../images/cover.jpg'); */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    color: #162F56;
    min-height: 29.7cm;
    width: 21cm;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 1.5px 3px rgba(0,0,0,0.08);
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.cover-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    padding: 8.2rem 2.5rem 2.5rem 2.5rem;
}

.cover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 2cm;
    min-height: 2cm;
    max-height: 2cm;
    background: transparent;
    z-index: 2;
    margin: 0;
    font-size: 0.9rem;
}

.cover-dots {
    display: flex;
    gap: 1.1rem;
    margin-top: 0.2rem;
    margin-left: 2.7rem;
}

.cover-logo {
    height: 48px;
    width: auto;
    margin-top: 0.2rem;
}

/* === COVER PAGE LAYOUT CONTROL === */
.cover-contact-row {
    position: absolute;
    z-index: 100;
    left: 2.7rem;
    bottom: -26.3cm;
    width: 80%;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}
.cover-author-row {
    position: absolute;
    z-index: 11;
    left: 2.7rem;
    bottom: -74rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.cover-year {
    position: absolute;
    z-index: 120;
    top: -1cm;
    left: 0;
    font-size: 1.5rem;
    color: #bfc8d6;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 0.2rem;
    margin-top: 0;
}
.cover-title-block {
    position: absolute;
    z-index: 130;
    top: 16.5cm;
    left: 15%;
    width: 80%;
    margin: 0;
}
.cover-quote {
    position: absolute;
    z-index: 140;
    top: 7.5cm;
    left: 2.5rem;
    font-size: 1.05rem;
    color: #162F56;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 400;
    max-width: 350px;
    letter-spacing: 0.01em;
}
/* === END COVER PAGE LAYOUT CONTROL === */

.cover-title {
    font-size: 2.5rem;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.cover-title-accent {
    color: #ff5500;
    background: linear-gradient(90deg, #ffcc00 0%, #ff5500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-size: 2.5rem;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    display: block;
}

.cover-footer {
    position: absolute;
    left: 5rem;
    right: 0;
    bottom: 3.8cm; /* adjust this value to move up/down */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.cover-contact-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 0.1rem;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

.contact-info {
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

.divider {
    width: 2px;
    height: 2.2rem;
    background: #e0e3e8;
    border-radius: 1px;
    margin: 0 1.2rem;
}

.cover-author-photo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.author-name {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #fff;
}

.author-role {
    font-size: 0.85rem;
    color: #bfc8d6;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 400;
    margin-top: 0.1rem;
}

/* Table of Contents */
.toc-page {
    background-image: url('../images/page-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.toc-title {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary-color);
}

.toc-list .toc-dots {
    flex: 1;
    margin: 0 0.5rem;
    border-bottom: 1px dotted #ccc;
}

.toc-list .toc-page-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.toc-list .toc-h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.toc-list .toc-h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 1.5rem;
    margin-bottom: 0.3rem;
}

.toc-list .toc-h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 3rem;
    margin-bottom: 0.2rem;
}

/* Content Page */
.content-page {
    background-image: url('../images/page-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Header */
.page-header {
    height: 0cm;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    background: transparent;
    z-index: 2;
    padding-top: 0;
    margin: 0;
}

.header-content {
    width: 100%;
    max-width: none;
    padding-left: calc(var(--page-margin) / 2);
    padding-right: calc(var(--page-margin) / 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Main Content */
.page-content {
    flex: 1 1 auto;
    height: 26.7cm;
    overflow: visible;
    margin: 0;
    padding: 2.5rem;
    box-sizing: border-box;
}

.content-section {
    margin-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: #162F56;
    margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; color: var(--primary-color); }
h3 { font-size: 1.2rem; }

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

/* Charts */
.chart-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Footer */
.page-footer {
    height: 1cm;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    background: transparent;
    z-index: 2;
    margin: 0;
    padding: 2rem 0em 2rem 0rem;
    overflow: visible;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.footer-left {
    font-weight: 700;
    font-family: 'Lato', Arial, sans-serif;
}

.footer-right {
    font-weight: 700;
    font-family: 'Lato', Arial, sans-serif;
}

/* Responsive Design */
@media screen and (max-width: 21cm) {
    .page {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 1rem;
    }
    
    .page-header,
    .page-footer {
        position: relative;
        left: 0;
        right: 0;
    }
    
    .page-content {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 16px;
}
.dot:last-child {
    margin-right: 0;
}
.dot-navy {
    background: #1a315d;
}
.dot-yellow {
    background: #ffd200;
}
.dot-orange {
    background: #ff7a3d;
}

.header-logo {
    height: 48px;
    width: auto;
    display: block;
}

.callout-quote {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    background: #f7f7fa;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0 2rem 0;
    padding: 1.2rem 1.5rem 1.2rem 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}
.callout-quote footer {
    font-size: 0.95rem;
    font-style: normal;
    color: #888;
    margin-top: 0.7rem;
    text-align: right;
}

.chapter-divider {
    border: none;
    border-top: 2px solid #e0e3e8;
    margin: 3rem 0 2.5rem 0;
    width: 100%;
}

.apqc-hierarchy {
    margin: 2.5rem 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.apqc-level {
    border-radius: 8px;
    padding: 1.1rem 1.5rem 1.1rem 1.5rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
}

.apqc-level1 { background: #2d4a6a; }
.apqc-level2 { background: #3b6ca8; }
.apqc-level3 { background: #6c6f73; }
.apqc-level4 { background: #5a3b7a; }
.apqc-level5 { background: #3b3f4a; }

.apqc-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.apqc-type {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: 0.03em;
}

.apqc-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.apqc-desc {
    font-size: 0.97rem;
    font-weight: 400;
    color: #e0e3e8;
    margin-bottom: 0.1rem;
}

.apqc-hierarchy-cascade {
    margin-bottom: 0;
}
.apqc-hierarchy-cascade .apqc-level {
    margin-bottom: 0;
}
.apqc-hierarchy-cascade + .apqc-hierarchy-cascade {
    margin-top: 0.1rem;
}

.apqc-hierarchy-cascade .apqc-level {
    position: relative;
    border-radius: 8px 0 0 8px;
    padding: 0.7rem 1.2rem 0.7rem 3.2rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-left: 0;
    min-width: 0;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    justify-content: flex-start;
}
.apqc-col-left {
    flex: 0 0 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
}
.apqc-col-right {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding-left: 1.2rem;
}
.apqc-hierarchy-cascade .apqc-level1 { background: var(--orange-1); margin-left: 0; }
.apqc-hierarchy-cascade .apqc-level2 { background: var(--orange-2); margin-left: 2.2rem; }
.apqc-hierarchy-cascade .apqc-level3 { background: var(--orange-3); margin-left: 4.4rem; }
.apqc-hierarchy-cascade .apqc-level4 { background: var(--orange-4); margin-left: 6.6rem; }
.apqc-hierarchy-cascade .apqc-level5 { background: #d35400; margin-left: 8.8rem; }

.apqc-hierarchy-cascade .apqc-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.85;
    z-index: 2;
}

.apqc-hierarchy-cascade .apqc-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    letter-spacing: 0.03em;
    z-index: 2;
}

.apqc-hierarchy-cascade .apqc-desc {
    font-size: 0.6rem;
    font-weight: 400;
    color: #fff3e0;
    margin-bottom: 0.1rem;
    z-index: 2;
}

.analysis-dimensions {
    margin: 2rem 0 2.5rem 0;
    padding-left: 1.2rem;
    list-style: disc inside;
    color: #162F56;
    font-size: 1.02rem;
}
.analysis-dimensions li {
    margin-bottom: 1.1rem;
    line-height: 1.5;
}
.analysis-dimensions strong {
    color: var(--primary-color);
    font-weight: 700;
}

.page-content blockquote {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    background: #f7f7fa;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0 2rem 0;
    padding: 1.2rem 1.5rem 1.2rem 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}
.page-content blockquote footer {
    font-size: 0.95rem;
    font-style: normal;
    color: #888;
    margin-top: 0.7rem;
    text-align: right;
}

.gap {
    height: 1.5rem;
    width: 100%;
    display: block;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.page-content th, .page-content td {
    border: 1px solid #e0e3e8;
    padding: 0.7rem 1rem;
    text-align: left;
}

.page-content th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-content tr:nth-child(even) td {
    background: #f7f7fa;
}

.export-pdf-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    color: #888;
    background: none;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 1000;
    text-decoration: underline dotted;
    opacity: 0.7;
    transition: color 0.2s, opacity 0.2s;
}
.export-pdf-btn:hover {
    color: var(--primary-color);
    opacity: 1;
    text-decoration: underline;
}

.nogap {
    height: 0;
    min-height: 0;
    margin: 0.2rem 0;
    padding: 0;
    display: block;
}

.plotly-scatter {
    overflow: visible !important;
}

.mermaid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* height and width will be set inline if specified */
}
.mermaid-wrapper > pre.mermaid {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mermaid-wrapper > pre.mermaid > svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.legend-bar {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    align-items: center;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-family: 'Lato', Arial, sans-serif;
    color: #162F56;
    gap: 0.3rem;
}
.legend-color {
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    border-radius: 3px;
    margin-right: 0.3em;
    /* border: 1px solid #bbb; */
    box-sizing: border-box;
}

/* =============================
   COVER PAGE SHAPES (HTML/CSS)
   ============================= */
.cover-page {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  background: #FFFFFF !important;
}

.cover-page * {
    margin: 0 !important;
    padding: 0 !important;
}


.cover-shape {
  position: absolute;
  z-index: 1;
  border-radius: 4px;
  opacity: 1;
  pointer-events: none;
}
.cover-overlay {
  position: relative;
  z-index: 200;
  padding: 8.2rem 2.5rem 2.5rem 2.5rem;
}

.cover-shape1 {
  background: linear-gradient(
    90deg,                /* direction: left to right */
    #1a315d 0%,           /* first color at 0% */
    #ffd200 50%,          /* second color at 50% */
    #ff5500 100%          /* third color at 100% */
  );
  width: 50%;
  height: 6%;
  top: 50%;
  right: 0;
  transform-origin: right top;
  z-index: 10;
  transform: rotate(30deg) skew(30deg);
  border-radius: 0px;
}
.cover-shape2 {
  background: var(--text-color);
  width: 50%;
  height: 6%;
  top: 14.7%;
  right: 0;
  transform-origin: right top;
  z-index: 11;
  transform: rotate(-30deg) skew(-30deg);
  border-radius: 0px;
}
.cover-shape3 {
  background: var(--text-color);
  width: 120%;
  height: 40%;
  top: 56.9%;
  right: 0;
  transform-origin: right top;
  transform: rotate(-25deg);
  z-index: 1;
  transform: rotate(30deg) skew(30deg);
  border-radius: 0px;
}
.cover-shape4 {
  background: #ffffff;
  width: 15%;
  height: 4%;
  top: 77%;
  transform-origin: left top;
  left: 0;
  z-index: 10;
  transform: rotate(-30deg) skew(-30deg);
  border-radius: 0px;
}
.cover-shape5 {
  background: var(--text-color);
  width: 100%;
  height: 50%;
  top: 55%;
  left: 0;
  transform: none;
}
.cover-shape6 {
  background: linear-gradient(
    90deg,                /* direction: left to right */
    #1a315d 0%,           /* first color at 0% */
    #ffd200 50%,          /* second color at 50% */
    #ff5500 100%          /* third color at 100% */
  );
  width: 15%;
  height: 4%;
  top: 66.5%;
  transform-origin: left top;
  left: 0;
  z-index: 9;
  transform: rotate(30deg) skew(30deg);
  border-radius: 0px;
}
/* =============================
   END COVER PAGE SHAPES
   ============================= */

/* Cover page dots as absolute positioned circles */
.cover-dot {
  position: absolute;
  top: 4rem;
  left: 2.5rem;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.cover-dot-navy {
  background: #1a315d;
  left: 2.5rem;
}
.cover-dot-yellow {
  background: #ffd200;
  left: 3.5rem;
  transform: translateX(28px);
}
.cover-dot-orange {
  background: #ff7a3d;
  left: 4.5rem;
  transform: translateX(56px);
}

.cover-logo-abs {
  position: absolute;
  top: 2.2rem;
  right: 2.5rem;
  z-index: 20;
  width: 60px;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.cover-logo-abs .cover-logo {
  width: 100px;
  height: auto;
  display: block;
}

/* Improved Tree View Connectors */
.tree-view {
    margin: 1rem 0;
    font-family: 'Lato', Arial, sans-serif;
}
.tree-children {
    position: relative;
    margin-left: 1.5rem;
    padding-left: 0.5rem;
}
.tree-children::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    bottom: 0.7em;
    width: 1px;
    background: #ddd;
    z-index: 0;
}
.tree-children > .tree-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}
.tree-children > .tree-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.2em;
    width: 1.5rem;
    height: 1px;
    background: #ddd;
    z-index: 1;
}
.tree-children > .tree-item.last::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.2em;
    width: 1px;
    height: calc(100% - 1.2em);
    background: #fff;
    z-index: 2;
}
.tree-children > .tree-item.last {
    /* Remove vertical line after last child */
}
.tree-children > .tree-item:first-child::before {
    /* Optionally adjust for first child */
}
.tree-tag {
    background-color: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.55rem;
    margin-right: 0.75rem;
    white-space: nowrap;
    z-index: 2;
}
.tree-content {
    flex: 1;
}
.tree-title {
    font-weight: 600;
    color: #162F56;
    margin-bottom: 0.25rem;
}
.tree-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Classic wtree style (CodePen inspired) */
.wtree,
.wtree ul {
  margin-left: 20px;
  padding-left: 0;
}
.wtree li {
  list-style-type: none;
  margin: 10px 0 10px 10px;
  position: relative;
}
.wtree-entry {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 0.3em 0.7em 0.5em 0.7em;
}
.wtree li:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -20px;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  width: 20px;
  height: 15px;
}
.wtree li:after {
  position: absolute;
  content: "";
  top: 5px;
  left: -20px;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  width: 20px;
  height: 100%;
}
.wtree li:last-child:after {
  display: none;
}
.wtree span {
  display: block;
  border: 1px solid #ddd;
  padding: 10px;
  color: #888;
  text-decoration: none;
  background: #fff;
  border-radius: 4px;
  font-size: 1rem;
}
.wtree span strong {
  font-weight: 700;
  margin-right: 0.5em;
  color: #555;
}
.wtree span b {
  font-weight: 700;
  color: #222;
}
.wtree span small {
  color: #666;
  font-size: 0.92em;
}
.wtree span:hover,
.wtree span:focus {
  background: #eee;
  color: #000;
  border: 1px solid #aaa;
}
.wtree span:hover + ul li span,
.wtree span:focus + ul li span {
  background: #eee;
  color: #000;
  border: 1px solid #aaa;
}
.wtree span:hover + ul li:after,
.wtree span:focus + ul li:after,
.wtree span:hover + ul li:before,
.wtree span:focus + ul li:before {
  border-color: #aaa;
}

.wtree-row {
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5em;
}
.wtree-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #222;
  flex: 1 1 auto;
  text-align: left;
}
.wtree-tag {
  font-size: 0.55rem;
  font-weight: 600;
  color: #555;
  background: #f0f0f0;
  border-radius: 3px;
  padding: 0.2em 0.7em;
  margin-left: 1em;
  white-space: nowrap;
  text-align: right;
  flex: 0 0 auto;
}
.wtree-desc {
  color: #666;
  font-size: 0.65rem;
  margin: 0.3em 0 0.2em 0.2em;
  padding-left: 0.2em;
}

/* Quem Somos Section Layout */
.quemsomos-main {
  margin: 0em 0;
  font-family: inherit;
}
.quemsomos-row {
  display: flex;
  gap: 1em;
  align-items: stretch;
  margin-bottom: 1em;
}
.quemsomos-text {
  flex: 2 1 0;
  padding-left: 0em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.qs-bar {
  width: 5px;
  height: 100%;
  margin-bottom: 5px;
  margin-right: 5px;
  border-radius: 2px;
}
.qs-bar-orange { background: #ff9800; }
.qs-bar-yellow { background: #ffd600; }
.qs-bar-blue { background: #003366; }
.qs-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 0.2em;
}
.qs-row {
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-height: 1.5em;
}
.qs-row .qs-bar {
  margin: 1px 0;
  height: 100%;
  min-width: 6px;
  width: 6px;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
}
.qs-row p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.4;
  display: block;
}
.quemsomos-image {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quemsomos-image img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.quemsomos-partners {
  display: flex;
  gap: 0em;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0.5em;
}
.qs-partner {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 0.7em 1em;
  min-width: 100%;
  max-width: 100%;
  margin-bottom: 0.7em;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.qs-partner-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 0px solid #ff9800;
}
.qs-partner-name {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.2em;
}
.qs-partner-desc {
  font-size: 0.8em;
  font-weight: bold;
  color: #444;
}
.qs-partner-cv {
  font-size: 0.8em;
  color: #666;
  margin-top: 0.2em;
  word-break: break-word;
  white-space: normal;
}
.qs-intro {
  font-size: inherit;
  line-height: inherit;
}

.qs-socios-title {
  font-weight: bold;
  font-size: 1.15em;
  color: #162F56;
  margin-top: 1.2em;
} 