/** * Stock Price History Template Styles * Specific styling for the stock price history page template */.visually-hidden {position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;}.stock-price-history {padding:2rem 0;}.stock-price-history .container {max-width:1200px;margin:0 auto;padding:0 1rem;}.stock-header {margin-bottom:0rem;border-bottom:1px solid var(--border-color);padding-bottom:1rem;}.stock-header h1 {font-size:var(--h1-size);margin-top:0;margin-bottom:0;padding:0;display:block;line-height:1.3;max-width:100%;}.stock-header h1 * {font-size:inherit;}.stock-header .separator {margin:0 0.5rem;color:var(--text-secondary);font-weight:normal;}.stock-header .year-range {font-weight:600;color:var(--color-primary);}.stock-header .description {font-weight:normal;}.stock-header .stock-company-info {color:var(--text-secondary);margin-bottom:0;font-size:var(--text-sm);line-height:1.4;}.stock-header .stock-company-info .separator {margin:0 0.4rem;color:var(--text-secondary);}.stock-header .stock-company-info .sector-link {color:var(--color-primary);text-decoration:none;transition:color var(--transition-speed) ease;}.stock-header .stock-company-info .sector-link:hover {color:var(--color-secondary);text-decoration:underline;}.stock-header .stock-company-info .sector {color:var(--text-secondary);}.stock-header .stock-price {display:flex;align-items:center;gap:0.75rem;margin-top:1rem;flex-wrap:wrap;}.stock-header .current-price {font-size:1.7rem;font-weight:600;}.stock-header .price-change {padding:0.25rem 0.75rem;border-radius:0.25rem;font-weight:500;font-size:var(--text-sm);}.stock-header .price-change.positive {background-color:rgba(22,163,74,0.1);color:#15803d;}.stock-header .price-change.negative {background-color:rgba(220,38,38,0.1);color:#dc2626;}.stock-header .compare-separator {display:inline-block;}.stock-header .compare-label {color:var(--text-secondary);font-size:var(--text-sm);font-weight:500;margin-right:0.75rem;}.stock-header .stock-compare-section {display:flex;margin-left:0;gap:0;flex-basis:100%;width:100%;}.stock-header .compare-links {display:flex;align-items:center;flex-wrap:nowrap;gap:0.5rem;overflow-x:auto;white-space:nowrap;padding-bottom:8px;margin-bottom:-8px;scrollbar-width:none;min-width:0;}.stock-header .compare-links::-webkit-scrollbar {display:none;}.stock-header .compare-link {color:var(--color-primary);font-size:var(--text-sm);text-decoration:none;transition:all var(--transition-speed) ease;white-space:nowrap;background-color:rgba(74,137,220,0.08);padding:0.25rem 0.75rem;border-radius:4px;display:inline-block;}.stock-header .compare-link:hover {text-decoration:none;color:var(--color-primary);background-color:rgba(74,137,220,0.15);}[data-theme="dark"] .stock-header .compare-link,.dark-mode .stock-header .compare-link {background-color:rgba(74,137,220,0.15);color:var(--color-primary);}[data-theme="dark"] .stock-header .compare-link:hover,.dark-mode .stock-header .compare-link:hover {background-color:rgba(74,137,220,0.25);}@media (max-width:768px) {.stock-header .stock-price {gap:0.5rem;margin-bottom:0;}/* .stock-header .compare-separator {display:inline-block;.stock-header .compare-label {display:inline-block;margin-right:0;flex-shrink:0;}.stock-header .stock-compare-section {width:100%;}}.stock-nav {margin-bottom:0.5rem;}.stock-nav ul {display:flex;list-style:none;padding:0;margin:0;border-bottom:1px solid var(--border-color);width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;scrollbar-width:none;}.stock-nav ul::-webkit-scrollbar {display:none;}.stock-nav li {margin-right:1.5rem;}.stock-nav a {display:block;padding:0.75rem 0;color:var(--text-secondary);text-decoration:none;font-weight:500;position:relative;transition:color var(--transition-speed) ease;}.stock-nav a:hover {color:var(--color-primary);}.stock-nav li.active a {color:var(--color-primary);}.stock-nav li.active a:after {content:'';position:absolute;bottom:-1px;left:0;width:100%;height:2px;background-color:var(--color-primary);}.price-section-tabs {display:flex;margin-bottom:0;border-bottom:1px solid var(--border-color);position:sticky;background-color:var(--color-bg,#fff);z-index:10;padding:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none;top:98px;box-shadow:none;border-top:none;margin-top:0;margin-bottom:1rem;}[data-theme="dark"] .price-section-tabs {background-color:var(--color-bg,#1a1a1a);}.price-section-tabs::-webkit-scrollbar {display:none;}.price-section-tabs .section-tab {padding:0.6rem 1.2rem;margin-right:0;cursor:pointer;font-weight:400;font-size:0.875rem;color:var(--text-secondary);text-decoration:none;position:relative;transition:all var(--transition-speed) ease;border-bottom:2px solid transparent;flex-shrink:0;border-right:none;}.price-section-tabs .section-tab:hover {color:var(--primary-color);background-color:rgba(0,0,0,0.03);}[data-theme="dark"] .price-section-tabs .section-tab:hover {background-color:rgba(255,255,255,0.03);}.price-section-tabs .section-tab.active {color:var(--primary-color);background-color:transparent;border-bottom:2px solid var(--primary-color);font-weight:500;}.section-content {scroll-margin-top:150px;padding-top:30px;}.price-section-tabs + .price-history-content,.price-section-tabs + * {margin-top:1rem;}@media (max-width:768px) {.price-section-tabs {top:60px;padding:0;margin-left:0;margin-right:0;}.price-section-tabs .section-tab {padding:0.5rem 1rem;font-size:0.8rem;}.section-content {scroll-margin-top:120px;}}@media (max-width:480px) {.price-section-tabs {padding:0;}.price-section-tabs .section-tab {padding:0.45rem 0.8rem;font-size:0.75rem;}.section-content {scroll-margin-top:100px;}}.price-history-content {display:grid;grid-template-columns:1fr;gap:0;}.price-history-content > .card {overflow:hidden;}.stock-price-history .card-header {margin-top:0;}.stock-price-history .card.section-content {padding-top:1rem;}.stock-price-history .card.section-content .card-header {margin-top:-1rem;}.price-history-chart {position:relative;}.price-history-chart h2 {margin-top:0;margin-bottom:1.5rem;font-size:var(--h2-size);}#price-history-chart-container {width:100%;height:400px;position:relative;}#echarts-container {position:relative;z-index:1;width:100%;height:100%;}.chart-options {display:flex;justify-content:space-between;margin-bottom:1rem;flex-wrap:wrap;gap:.5rem;}.period-selector,.chart-type-selector {display:flex;flex-direction:column;gap:0.5rem;}.button-group {display:flex;border-radius:0.25rem;overflow:hidden;}.period-button,.chart-type-button,.comparison-period-button {background:var(--color-bg);border:none;padding:0.5rem 1rem;cursor:pointer;font-size:var(--text-sm);color:var(--text-secondary);transition:all var(--transition-speed) ease;}.period-button:hover,.chart-type-button:hover,.comparison-period-button:hover {background-color:rgba(0,0,0,0.03);color:var(--text-primary);}.period-button.active,.chart-type-button.active,.comparison-period-button.active {background-color:var(--color-primary-light);color:var(--color-primary);font-weight:500;}.price-history-table {overflow:hidden;}.price-history-table h2 {margin-top:0;font-size:var(--h2-size);}.table-options {display:flex;justify-content:space-between;margin-bottom:1.5rem;align-items:center;flex-wrap:wrap;}.period-selector {display:flex;align-items:center;gap:0.75rem;}.period-selector label {font-size:var(--text-sm);color:var(--text-secondary);margin:0;font-weight:500;}.period-select {background-color:var(--color-bg);border:1px solid var(--border-color);padding:0.5rem 1rem;border-radius:0.25rem;color:var(--text-primary);font-size:var(--text-sm);cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.75rem center;background-size:0.75rem;padding-right:2rem;}.download-csv-button {background-color:var(--color-bg);border:1px solid var(--border-color);color:var(--text-primary);padding:0.5rem 1rem;border-radius:0.25rem;font-size:var(--text-sm);cursor:pointer;transition:all var(--transition-speed) ease;display:flex;align-items:center;gap:0.5rem;}.download-csv-button:hover {background-color:var(--color-primary-light);color:var(--color-primary);border-color:var(--color-primary);}.download-csv-button:before {content:"\2193";font-weight:bold;}.table-container {overflow-x:auto;margin-bottom:1.5rem;-webkit-overflow-scrolling:touch;max-width:100%;width:100%;}.price-table {width:100%;border-collapse:collapse;font-size:var(--text-sm);min-width:700px;table-layout:auto;}.price-table th.date-column {width:15%;}.price-table th.close-column {width:15%;}.price-table th.change-column {width:12%;}.price-table th.open-column,.price-table th.high-column,.price-table th.low-column {width:15%;}.price-table th.volume-column {width:13%;}.price-table th,.price-table td {padding:6px 4px;text-align:right;border-bottom:1px solid rgba(0,0,0,0.1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}[data-theme="dark"] .price-table th,[data-theme="dark"] .price-table td,.dark-mode .price-table th,.dark-mode .price-table td {border-bottom:1px solid rgba(255,255,255,0.1);}.price-table th.date-column,.price-table td.date-cell {text-align:left;}.price-table th:first-child,.price-table td:first-child {position:sticky;left:0;background-color:var(--bg-secondary,#f5f5f7);z-index:1;}[data-theme="dark"] .price-table th:first-child,[data-theme="dark"] .price-table td:first-child {background-color:var(--bg-secondary-dark,#252525);}.price-table th {background-color:var(--table-header-bg);font-weight:500;color:var(--text-secondary);position:sticky;top:0;z-index:2;}.price-table th:first-child {z-index:3;}.price-table .highlighted-column,.price-table td.close-cell {font-weight:bold;background-color:rgba(0,0,0,0.05);}[data-theme="dark"] .price-table .highlighted-column,[data-theme="dark"] .price-table td.close-cell,.dark-mode .price-table .highlighted-column,.dark-mode .price-table td.close-cell {background-color:rgba(255,255,255,0.05);}.price-table .positive {color:#15803d;}.price-table .negative {color:#ec0000;}.price-table td.change-cell.positive {background-color:rgba(21,128,61,0.1);color:#15803d;border-left:1px solid var(--border-color-light,#eee);border-right:1px solid var(--border-color-light,#eee);}.price-table td.change-cell.negative {background-color:rgba(220,38,38,0.1);color:#b91c1c;border-left:1px solid var(--border-color-light,#eee);border-right:1px solid var(--border-color-light,#eee);}.loading-row td {text-align:center;padding:2rem;color:var(--text-secondary);}.no-data {text-align:center;padding:2rem;color:var(--text-secondary);font-style:italic;}.error-message {text-align:center;padding:1.5rem;color:#dc2626;}.performance-summary {display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem;padding:1rem;background:var(--card-light-bg);border-radius:0.5rem;}[data-theme="dark"] .performance-summary,.dark-mode .performance-summary {background-color:#333;color:#ddd;}.performance-summary .positive {color:#15803d;font-weight:500;}.performance-summary .negative {color:#dc3545;font-weight:500;}[data-theme="dark"] .performance-summary .positive,.dark-mode .performance-summary .positive {color:#4dbd6c;}[data-theme="dark"] .performance-summary .negative,.dark-mode .performance-summary .negative {color:#e36873;}.performance-summary .additional-info {font-size:0.9em;opacity:0.8;}.pagination {display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1rem;}.pagination-button {background-color:var(--color-bg);border:1px solid var(--border-color);color:var(--text-primary);padding:0.5rem 1rem;border-radius:0.25rem;font-size:var(--text-sm);cursor:pointer;transition:all var(--transition-speed) ease;}.pagination-button:hover:not(:disabled) {background-color:var(--color-primary-light);color:var(--color-primary);}.pagination-button:disabled {opacity:0.5;cursor:not-allowed;}.pagination-info {font-size:var(--text-sm);color:var(--text-secondary);}.data-disclaimer {margin-top:1.5rem;text-align:center;}.data-disclaimer p {color:var(--text-secondary);font-size:var(--text-xs);margin:0;}[data-theme="dark"] .button-group {border-color:var(--border-color);}[data-theme="dark"] .period-button:hover,[data-theme="dark"] .chart-type-button:hover,[data-theme="dark"] .comparison-period-button:hover {background-color:rgba(255,255,255,0.05);}[data-theme="dark"] .download-csv-button:hover {background-color:var(--color-primary-light);}[data-theme="dark"] .pagination-button:hover:not(:disabled) {background-color:var(--color-primary-light);}@media (max-width:768px) {.chart-options {margin-bottom:.5rem;flex-direction:column;align-items:flex-start;}.period-selector,.chart-type-selector {width:100%;}.button-group {width:100%;justify-content:center;}.period-button,.chart-type-button,.comparison-period-button {flex:1;text-align:center;}.table-options {flex-direction:column;align-items:flex-start;}.period-selector {width:100%;justify-content:space-between;}.period-select {flex:1;max-width:70%;}.download-csv-button {width:100%;justify-content:center;}#price-history-chart-container {height:350px;}.card {padding:0.75rem;}.price-table th,.price-table td {padding:4px 5px;font-size:0.85rem;}.stock-header h1 {font-size:calc(var(--h1-size) * 0.85);}.stock-header .separator {margin:0 0.25rem;}.price-history-chart h2 {font-size:calc(var(--h2-size) * 0.9);}.chart-period-label,.chart-period-change {font-size:0.85em;}.price-table th.date-column,.price-table th.close-column,.price-table th.change-column,.price-table th.open-column,.price-table th.high-column,.price-table th.low-column,.price-table th.volume-column {width:auto;}.price-table td.date-cell {min-width:85px;}.price-table td.close-cell {min-width:55px;font-weight:bold;}.price-table td.change-cell {min-width:55px;}.price-table td.open-cell {min-width:50px;}.price-table td.high-cell {min-width:50px;}.price-table td.low-cell {min-width:50px;}.price-table td.volume-cell {min-width:60px;}.price-table td.close-cell,.price-table td.change-cell,.price-table td.open-cell,.price-table td.high-cell,.price-table td.low-cell,.price-table td.volume-cell {width:max-content;max-width:max-content;padding-left:4px;padding-right:4px;text-overflow:ellipsis;overflow:hidden;letter-spacing:normal;}.price-table td.volume-cell {font-size:0.8rem;text-align:right;}.price-table th:first-child,.price-table td:first-child {background-color:var(--card-bg);left:0;z-index:5;}.price-table {table-layout:fixed;border-collapse:collapse;}.stock-price-history {padding:0rem 0;}.stock-header .stock-price {margin-top:.5rem;}.stock-header .stock-company-info {margin-bottom:.5rem;}.stock-header .stock-company-info.mobile-only {margin-top:0.5rem;margin-bottom:1rem;}.price-table {font-size:0.95rem;}}@media (max-width:480px) {.stock-header h1 {font-size:1.3rem;margin-bottom:0;}.stock-header .separator,.stock-header .description,.stock-header .year-range {font-size:0.85rem;}.stock-header .compare-label {font-size:0.85rem;}.stock-header .compare-links {margin-top:0;}.stock-header .compare-link {font-size:0.85rem;}#price-history-chart-container {height:300px;}.stock-price-history .container {padding:0 0.5rem;}.card {padding:1rem;}.price-table th,.price-table td {padding:3px 2px;font-size:0.8rem;}.price-table td.date-cell {min-width:80px;width:80px;}.price-table td.close-cell {min-width:50px;width:50px;}.price-table td.change-cell {min-width:55px;width:55px;}.price-table td.open-cell {min-width:50px;width:50px;}.price-table td.high-cell {min-width:50px;width:50px;}.price-table td.low-cell {min-width:50px;width:50px;}.price-table td.volume-cell {min-width:60px;width:60px;}.price-table td.close-cell,.price-table td.change-cell,.price-table td.open-cell,.price-table td.high-cell,.price-table td.low-cell,.price-table td.volume-cell {padding-left:3px;padding-right:3px;letter-spacing:-0.2px;line-height:1.5;}.price-table {min-width:0;width:auto;table-layout:fixed;}.price-table th,.price-table td {padding-top:5px;padding-bottom:5px;font-size:0.9rem;}.price-history-table h2,.price-history-chart h2 {font-size:var(--h2-size);}.period-button,.chart-type-button,.comparison-period-button {padding:0.375rem 0.5rem;font-size:0.75rem;}.chart-options {margin-bottom:1rem;}.table-options {margin-bottom:1rem;}.stock-price-history {padding:0rem 0;}.price-history-chart h2 {font-size:var(--h2-size);}.chart-period-label,.chart-period-change {font-size:0.8em;display:block;margin-left:0;margin-top:0.25em;}.chart-period-label {display:inline;margin-left:0;margin-top:0;}.chart-period-change {display:inline-block;margin-left:0.3em;margin-top:0;}#price-history-chart-container {height:300px;}.stock-header .current-price {font-size:1.4rem;}}@media (max-width:375px) {.stock-header .compare-links {margin-top:0;}.stock-header .compare-link {font-size:0.8rem;}}.price-history-chart {padding:20px;}#price-history-chart-container {width:100%;height:100%;padding:0;margin:0;overflow:hidden;}#echarts-container {box-sizing:border-box;margin:0;padding:0;}.period-tab-button {display:inline-block;padding:8px 16px;margin-right:5px;background-color:#f5f5f5;border:1px solid #ddd;border-radius:4px;color:#333;text-decoration:none;font-weight:normal;cursor:pointer;transition:all 0.2s ease;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:inherit;font-size:inherit;line-height:normal;text-align:center;appearance:none;-webkit-appearance:none;outline:none;}.period-tab-button:hover {background-color:#e9e9e9;text-decoration:none;}.period-tab-button.active {background-color:#4a89dc;border-color:#3a79cc;color:#fff;font-weight:bold;}[data-theme="dark"] .period-tab-button,.dark-mode .period-tab-button {background-color:#333;border-color:#444;color:#ccc;}[data-theme="dark"] .period-tab-button:hover,.dark-mode .period-tab-button:hover {background-color:#3a3a3a;}[data-theme="dark"] .period-tab-button.active,.dark-mode .period-tab-button.active {background-color:#2a6fd6;border-color:#1a5fc6;color:#fff;}.table-options {display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;position:relative;z-index:5;touch-action:manipulation;}.button-group {display:flex;flex-wrap:wrap;gap:5px;position:relative;z-index:10;touch-action:manipulation;}.load-more-container {text-align:center;padding:15px 0;margin-top:10px;}.load-more-buttons {display:flex;justify-content:center;gap:10px;flex-wrap:wrap;}.load-more-button,.load-all-button {padding:8px 16px;border-radius:4px;cursor:pointer;font-size:var(--text-sm,0.875rem);font-weight:500;transition:all 0.2s ease;border:1px solid #ddd;outline:none;line-height:1.5;}.load-more-button {background-color:var(--color-primary,#4a89dc);color:white;border-color:var(--color-primary,#4a89dc);}.load-more-button:hover {background-color:var(--color-primary-dark,#3a79cc);border-color:var(--color-primary-dark,#3a79cc);}.load-all-button {background-color:#f5f5f5;color:#333;}.load-all-button:hover {background-color:#e9e9e9;}[data-theme="dark"] .load-more-container,.dark-mode .load-more-container {background-color:rgba(255,255,255,0.05);}[data-theme="dark"] .load-more-button,.dark-mode .load-more-button {background-color:var(--color-primary-dark,#3a79cc);border-color:var(--color-primary-dark,#3a79cc);}[data-theme="dark"] .load-more-button:hover,.dark-mode .load-more-button:hover {background-color:var(--color-primary,#4a89dc);border-color:var(--color-primary,#4a89dc);}[data-theme="dark"] .load-all-button,.dark-mode .load-all-button {background-color:#333;color:#ccc;border-color:#444;}[data-theme="dark"] .load-all-button:hover,.dark-mode .load-all-button:hover {background-color:#3a3a3a;}.loading-message {text-align:center;padding:15px;color:#595959;font-style:italic;}[data-theme="dark"] .loading-message,.dark-mode .loading-message {color:#767676;}@media (max-width:768px) {.chart-options {margin-bottom:.5rem;flex-direction:column;align-items:flex-start;}.period-selector,.chart-type-selector {width:100%;}.button-group {width:100%;justify-content:center;}.period-button,.chart-type-button,.comparison-period-button {flex:1;text-align:center;}.table-options {flex-direction:column;align-items:flex-start;}.period-selector {width:100%;justify-content:space-between;}.period-select {flex:1;max-width:70%;}.download-csv-button {width:100%;justify-content:center;}#price-history-chart-container {height:350px;}.card {padding:0.75rem;}.price-table th,.price-table td {padding:4px 5px;font-size:0.85rem;}.price-history-chart {padding:10px;}#price-history-chart-container {width:100% !important;padding:0 !important;margin:0 !important;overflow:hidden;}#echarts-container {width:100% !important;height:400px !important;}.price-history-chart .chart-options {flex-direction:column;}.price-history-chart .button-group {margin-bottom:10px;}.table-options {flex-direction:column;align-items:flex-start;}.button-group {margin-bottom:10px;width:100%;}.period-tab-button {padding:8px 12px;font-size:0.9rem;margin-bottom:5px;min-width:60px;text-align:center;}.button-group {margin-bottom:15px;width:100%;display:flex;flex-wrap:wrap;gap:8px;}.price-table th,.price-table td {padding:4px 5px;font-size:0.85rem;}.price-table th.date-column,.price-table th.close-column,.price-table th.change-column,.price-table th.open-column,.price-table th.high-column,.price-table th.low-column,.price-table th.volume-column {width:auto;}.price-table td.date-cell {min-width:85px;}.price-table td.close-cell {min-width:55px;font-weight:bold;}.price-table td.change-cell {min-width:55px;}.price-table td.open-cell {min-width:50px;}.price-table td.high-cell {min-width:50px;}.price-table td.low-cell {min-width:50px;}.price-table td.volume-cell {min-width:60px;}.price-table td.close-cell,.price-table td.change-cell,.price-table td.open-cell,.price-table td.high-cell,.price-table td.low-cell,.price-table td.volume-cell {width:max-content;max-width:max-content;padding-left:4px;padding-right:4px;text-overflow:ellipsis;overflow:hidden;letter-spacing:normal;}.price-table td.volume-cell {font-size:0.8rem;text-align:right;}.price-table th:first-child,.price-table td:first-child {background-color:var(--card-bg);left:0;z-index:5;}.price-table {table-layout:fixed;border-collapse:collapse;}.load-more-buttons {flex-direction:column;align-items:center;}}.stock-title-with-logo {display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;margin-bottom:0.75rem;}.stock-logo.main-logo,.stock-logo-fallback.main-logo {width:32px;height:32px;margin-right:0;border-radius:4px;object-fit:contain;background-color:white;padding:4px;box-shadow:0 1px 3px rgba(0,0,0,0.1);display:flex;align-items:center;justify-content:center;flex-shrink:0;}.stock-logo-fallback.main-logo {background-color:#edf2f7;color:#4a5568;font-weight:700;font-size:0.9rem;}.stock-logo.enhanced-size,.stock-logo-fallback.enhanced-size {width:48px;height:48px;margin-right:0;border-radius:6px;object-fit:contain;background-color:white;padding:6px;box-shadow:0 2px 4px rgba(0,0,0,0.15);display:flex;align-items:center;justify-content:center;flex-shrink:0;}.title-and-info-wrapper {display:flex;flex-direction:column;gap:0.5rem;flex:1;}.desktop-only {display:block;}.mobile-only {display:none;}.stock-logo-fallback.enhanced-size {background-color:#edf2f7;color:#4a5568;font-weight:700;font-size:1.2rem;}[data-theme="dark"] .stock-logo.enhanced-size {filter:brightness(0.9) contrast(1.1);background-color:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);}[data-theme="dark"] .stock-logo-fallback.enhanced-size {background-color:#2d3748;color:#e2e8f0;border:1px solid rgba(255,255,255,0.1);}.stock-with-logo {display:flex;align-items:center;gap:0.5rem;}.stock-logo.peer-logo,.stock-logo-fallback.peer-logo {width:24px;height:24px;margin-right:0;border-radius:3px;object-fit:contain;background-color:white;padding:3px;box-shadow:0 1px 2px rgba(0,0,0,0.1);display:flex;align-items:center;justify-content:center;flex-shrink:0;}.stock-logo-fallback.peer-logo {background-color:#edf2f7;color:#4a5568;font-weight:700;font-size:0.75rem;}.peer-name {color:inherit;}[data-theme="dark"] .stock-logo.main-logo,[data-theme="dark"] .stock-logo.peer-logo {filter:brightness(0.9) contrast(1.1);background-color:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);}[data-theme="dark"] .stock-logo-fallback.main-logo,[data-theme="dark"] .stock-logo-fallback.peer-logo {background-color:#2d3748;color:#e2e8f0;border:1px solid rgba(255,255,255,0.1);}@media (max-width:768px) {.stock-title-with-logo {gap:0.5rem;}.stock-logo.main-logo,.stock-logo-fallback.main-logo {width:28px;height:28px;}.stock-logo.enhanced-size,.stock-logo-fallback.enhanced-size {width:40px;height:40px;padding:5px;border-radius:5px;}.stock-logo-fallback.enhanced-size {font-size:1rem;}.title-and-info-wrapper {gap:0.25rem;}.desktop-only {display:none !important;}.mobile-only {display:block !important;margin-bottom:1rem;}.stock-title-with-logo {flex-wrap:nowrap;align-items:center;}.stock-logo.peer-logo,.stock-logo-fallback.peer-logo {width:20px;height:20px;padding:2px;}.stock-logo-fallback.peer-logo {font-size:0.65rem;}}.load-more-button,.load-all-button {width:100%;max-width:280px;margin:5px 0;padding:10px 16px;}}.chart-period-label {font-size:0.9em;color:var(--text-secondary);font-weight:500;margin-left:0.5em;}.chart-period-change {font-size:0.9em;font-weight:600;margin-left:0.3em;padding:0.1em 0.4em;border-radius:3px;display:inline-block;vertical-align:middle;}.chart-period-change.positive {color:#15803d;background-color:rgba(22,163,74,0.1);}.chart-period-change.negative {color:#dc2626;background-color:rgba(220,38,38,0.1);}[data-theme="dark"] .chart-period-change.positive,.dark-mode .chart-period-change.positive {color:#4dbd6c;background-color:rgba(77,189,108,0.15);}[data-theme="dark"] .chart-period-change.negative,.dark-mode .chart-period-change.negative {color:#e36873;background-color:rgba(227,104,115,0.15);}.yearly-summary-text,.period-summary-text {width:100%;font-size:1.05rem;line-height:1.5;color:var(--text-primary);}.yearly-summary-text p,.period-summary-text p {margin:0;padding:0;}.yearly-summary-text .positive,.period-summary-text .positive {font-weight:600;}.yearly-summary-text .negative,.period-summary-text .negative {font-weight:600;}[data-theme="dark"] .yearly-summary-text,[data-theme="dark"] .period-summary-text {color:var(--text-primary);}@media (max-width:768px) {.yearly-summary-text,.period-summary-text {font-size:0.95rem;}}@media (max-width:375px) {.stock-header .stock-price {flex-direction:row;align-items:center;justify-content:flex-start;gap:0.5rem;flex-wrap:wrap;width:100%;}.stock-header .stock-compare-section {flex-direction:row;align-items:center;width:100%;margin-left:0;}.stock-header .compare-separator {margin:0 0.4rem;}.stock-header .compare-links {gap:0.5rem;margin-top:0;}.stock-header .compare-link {font-size:0.8rem;}}.performance-chart-summary {margin-top:20px;padding-top:15px;border-top:1px solid var(--border-color-light);font-size:0.9em;color:var(--text-color-secondary);}.performance-chart-summary p {margin-bottom:20px;color:var(--text-color-secondary);}.performance-chart-summary strong {font-weight:600;}[data-theme="dark"] .performance-chart-summary,.dark-mode .performance-chart-summary {background-color:rgba(255,255,255,0.05);color:var(--text-primary);}@media (max-width:768px) {.performance-chart-summary {font-size:0.95rem;margin-top:1rem;padding:0.75rem;}}@media (max-width:480px) {.performance-chart-summary {font-size:0.9rem;margin-top:0.75rem;padding:0.6rem;text-align:center;}}.peer-returns-section {margin-top:1.5rem;}.peer-returns-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;flex-wrap:wrap;}.peer-returns-header h4 {margin:0;font-size:1.1em;}.peer-returns-header .return-toggle-buttons {margin-bottom:0;flex-shrink:0;}.peer-returns-section h4 {font-size:var(--h4-size);margin-bottom:1rem;}.peer-returns-table {width:100%;border-collapse:collapse;font-size:var(--text-sm);table-layout:auto;}.peer-returns-table th,.peer-returns-table td {padding:6px 8px;border-bottom:1px solid rgba(0,0,0,0.1);white-space:nowrap;text-align:right;}[data-theme="dark"] .peer-returns-table th,[data-theme="dark"] .peer-returns-table td,.dark-mode .peer-returns-table th,.dark-mode .peer-returns-table td {border-bottom:1px solid rgba(255,255,255,0.1);}.peer-returns-table th {background-color:var(--table-header-bg);font-weight:500;color:var(--text-secondary);position:sticky;top:0;z-index:2;}.peer-returns-table th.stock-column,.peer-returns-table td.stock-cell {text-align:left;position:sticky;left:0;background-color:var(--card-bg);z-index:2;min-width:125px;font-weight:500;}.peer-returns-table th.stock-column {z-index:3;}.peer-returns-table th.return-column,.peer-returns-table td.return-cell {min-width:60px;text-align:right;}@media (max-width:768px) {.peer-returns-table {min-width:600px;}.peer-returns-header {flex-direction:column;align-items:flex-start;gap:0.75rem;}.peer-returns-header .return-toggle-buttons {width:100%;justify-content:flex-start;}.peer-returns-table th,.peer-returns-table td {padding:4px 5px;font-size:0.85rem;}.peer-returns-table th.stock-column,.peer-returns-table td.stock-cell {left:0;z-index:5;}.peer-returns-table th {top:0;z-index:6;}.peer-returns-table th.stock-column {z-index:7;}}[data-theme="dark"] .peer-returns-table td.stock-cell a,.dark-mode .peer-returns-table td.stock-cell a {color:var(--color-primary);text-decoration:none;transition:color var(--transition-speed) ease;}[data-theme="dark"] .peer-returns-table td.stock-cell a:hover,.dark-mode .peer-returns-table td.stock-cell a:hover {color:var(--color-primary-light);text-decoration:underline;}@media (max-width:480px) {.peer-returns-table {min-width:500px;}.peer-returns-table th,.peer-returns-table td {padding:3px 4px;font-size:0.8rem;}}th.color-column,td.color-cell {width:20px;padding:8px 1px;}th.color-column {z-index:12;}th.stock-column,td.stock-cell {position:sticky;left:8px;background-color:var(--card-bg);padding-left:8px !important;padding-right:8px !important;z-index:10;}th.stock-column {z-index:12;}.peer-returns-section .table-container {transform:translateZ(0);z-index:1;}.peer-returns-table th.color-column,.peer-returns-table td.color-cell {position:sticky;left:0;z-index:20;background-color:var(--card-bg);}.peer-returns-table th.stock-column,.peer-returns-table td.stock-cell {position:sticky;left:8px;z-index:19;background-color:var(--card-bg);}.peer-returns-table thead th.color-column {z-index:22;}.peer-returns-table thead th.stock-column {z-index:21;}@media (max-width:480px) {.peer-returns-table {min-width:500px;}.peer-returns-table th,.peer-returns-table td {padding:3px 4px;font-size:0.8rem;}}.peer-returns-table td.return-cell.positive {color:#15803d;background-color:rgba(21,128,61,0.1);border-left:1px solid var(--border-color-light,#eee);border-right:1px solid var(--border-color-light,#eee);}[data-theme="dark"] .price-table td.change-cell.positive,.dark-mode .price-table td.change-cell.positive {background-color:rgba(77,189,108,0.15);color:#4dbd6c;border-left:1px solid var(--border-color,#444);border-right:1px solid var(--border-color,#444);}[data-theme="dark"] .price-table td.change-cell.negative,.dark-mode .price-table td.change-cell.negative {background-color:rgba(227,104,115,0.15);color:#e36873;border-left:1px solid var(--border-color,#444);border-right:1px solid var(--border-color,#444);}[data-theme="dark"] .peer-returns-table td.return-cell.positive,.dark-mode .peer-returns-table td.return-cell.positive {background-color:rgba(77,189,108,0.15);color:#4dbd6c;border-left:1px solid var(--border-color,#444);border-right:1px solid var(--border-color,#444);}[data-theme="dark"] .peer-returns-table td.return-cell.negative,.dark-mode .peer-returns-table td.return-cell.negative {background-color:rgba(227,104,115,0.15);color:#e36873;border-left:1px solid var(--border-color,#444);border-right:1px solid var(--border-color,#444);}.peer-returns-table td.return-cell.best-in-column {font-weight:bold;outline:2px solid var(--color-primary-light,#a1c1e8);outline-offset:-2px;position:relative;z-index:1;}[data-theme="dark"] .peer-returns-table td.return-cell.best-in-column,.dark-mode .peer-returns-table td.return-cell.best-in-column {outline-color:var(--color-primary,#4a89dc);}@media (max-width:480px) {.peer-returns-table {min-width:500px;}.peer-returns-table th,.peer-returns-table td {padding:3px 4px;font-size:0.8rem;}}.investment-returns-summary {margin-top:2rem;padding:0;background-color:transparent;border-radius:0;box-shadow:none;font-size:1.0rem;line-height:1.6;color:var(--text-primary);text-align:left;border-top:1px solid rgba(0,0,0,0.1);padding-top:1.5rem;}[data-theme="dark"] .investment-returns-summary,.dark-mode .investment-returns-summary {background-color:transparent;border:none;border-top:1px solid rgba(255,255,255,0.1);}.investment-returns-summary h4 {font-size:var(--h4-size);margin-bottom:1rem;color:var(--text-primary);font-weight:600;}.investment-returns-summary p {margin-bottom:1rem;line-height:1.6;color:var(--text-primary);font-size:1.0rem;}.investment-returns-summary .bullet-list {margin:1rem 0;padding-left:1.5rem;}.investment-returns-summary .bullet-list li {margin-bottom:0.75rem;line-height:1.6;position:relative;font-size:1.0rem;}.investment-returns-summary .positive {color:#15803d;font-weight:600;}.investment-returns-summary .negative {color:#b91c1c;font-weight:600;}.investment-returns-summary .highlight {font-weight:600;background-color:rgba(74,137,220,0.1);padding:0 4px;border-radius:2px;}[data-theme="dark"] .investment-returns-summary .positive,.dark-mode .investment-returns-summary .positive {color:#4dbd6c;}[data-theme="dark"] .investment-returns-summary .negative,.dark-mode .investment-returns-summary .negative {color:#e36873;}@media (max-width:768px) {.investment-returns-summary {padding:0;font-size:0.95rem;}.investment-returns-summary h4 {font-size:calc(var(--h4-size) * 0.9);}.investment-returns-summary p,.investment-returns-summary .bullet-list li {font-size:0.95rem;}}@media (max-width:480px) {.investment-returns-summary {padding:0;margin-top:1.5rem;font-size:0.9rem;}.investment-returns-summary .bullet-list {padding-left:1.25rem;}.investment-returns-summary p,.investment-returns-summary .bullet-list li {font-size:0.9rem;}}.performance-benchmarks-summary {display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap;gap:1.5rem;padding:.5rem 0;border-top:1px solid var(--border-color-light,#eee);border-bottom:1px solid var(--border-color-light,#eee);}.performance-benchmarks-summary .benchmark-item {display:flex;flex-direction:column;align-items:center;text-align:center;}.performance-benchmarks-summary .benchmark-label {font-size:0.9rem;color:var(--text-secondary);margin-bottom:0.25rem;font-weight:500;}.performance-benchmarks-summary .benchmark-value {font-size:1.3rem;font-weight:600;}.performance-benchmarks-summary .benchmark-value.positive {color:#15803d;}.performance-benchmarks-summary .benchmark-value.negative {color:var(--color-negative,#dc2626);}[data-theme="dark"] .performance-benchmarks-summary,.dark-mode .performance-benchmarks-summary {border-top-color:var(--border-color,#444);border-bottom-color:var(--border-color,#444);}[data-theme="dark"] .performance-benchmarks-summary .benchmark-value.positive,.dark-mode .performance-benchmarks-summary .benchmark-value.positive {color:var(--color-positive-dark,#4dbd6c);}[data-theme="dark"] .performance-benchmarks-summary .benchmark-value.negative,.dark-mode .performance-benchmarks-summary .benchmark-value.negative {color:var(--color-negative-dark,#e36873);}@media (max-width:768px) {.performance-benchmarks-summary {justify-content:center;gap:1rem;padding:0.75rem 0;margin-top:1rem;}.performance-benchmarks-summary .benchmark-item {flex-basis:45%;}.performance-benchmarks-summary .benchmark-value {font-size:1.2rem;}}@media (max-width:480px) {.performance-benchmarks-summary {flex-direction:column;align-items:stretch;gap:.2rem;padding:.1rem 0;border-top:none;}.performance-benchmarks-summary .benchmark-item {flex-basis:auto;flex-direction:row;justify-content:space-between;align-items:center;padding:0.5rem 0;border-bottom:1px solid var(--border-color-light,#eee);}.performance-benchmarks-summary .benchmark-item:last-child {border-bottom:none;}.performance-benchmarks-summary .benchmark-label {margin-bottom:0;text-align:left;}.performance-benchmarks-summary .benchmark-value {font-size:1.1rem;text-align:right;}[data-theme="dark"] .performance-benchmarks-summary .benchmark-item,.dark-mode .performance-benchmarks-summary .benchmark-item {border-bottom-color:var(--border-color,#444);}}.peer-stocks-list {list-style:none;padding:0;margin:0;}.peer-returns-table tr.benchmark-row {border-bottom:1px solid var(--border-color);}.peer-returns-table tr.benchmark-row td.stock-cell {font-weight:600;}[data-theme="dark"] .peer-returns-table tr.benchmark-row td.stock-cell,.dark-mode .peer-returns-table tr.benchmark-row td.stock-cell {color:var(--text-primary);}.peer-returns-table tr#market-benchmark-row td.color-cell {background-color:#FAC858 !important;}.peer-returns-table tr#sector-benchmark-row td.color-cell {background-color:#91CC75 !important;}.echarts-tooltip {z-index:1000 !important;pointer-events:none;max-width:300px;}div[style*="z-index:9999999"] {z-index:1000 !important;position:absolute !important;}#price-history-chart-container,#performance-comparison-chart,#peer-returns-chart {position:relative;z-index:1;}.peer-stocks-list {list-style:none;padding:0;margin:0;}.peer-stocks-list li {margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;}.peer-match-type {font-size:0.8em;padding:2px 6px;border-radius:4px;margin-left:8px;white-space:nowrap;}.peer-match-type.exact {background-color:#e8f5e9;color:#2e7d32;border:1px solid #c8e6c9;}.peer-match-type.industry {background-color:#e3f2fd;color:#1565c0;border:1px solid #bbdefb;}.peer-match-type.sector {background-color:#ede7f6;color:#5e35b1;border:1px solid #d1c4e9;}.peer-match-type.market_cap {background-color:#fff3e0;color:#e65100;border:1px solid #ffe0b2;}.return-toggle-buttons {display:flex;gap:0.5rem;margin-bottom:1rem;}.return-toggle-button {padding:0.375rem 0.75rem;font-size:0.875rem;border:1px solid var(--border-color);background-color:var(--color-bg);color:var(--text-secondary);border-radius:0.25rem;cursor:pointer;transition:all var(--transition-speed) ease;font-weight:500;}.return-toggle-button:hover {background-color:rgba(0,0,0,0.03);color:var(--text-primary);border-color:var(--color-primary);}.return-toggle-button.active {background-color:var(--color-primary-light);color:var(--color-primary);border-color:var(--color-primary);font-weight:600;}[data-theme="dark"] .return-toggle-button {background-color:var(--card-light-bg);border-color:var(--border-color);color:var(--text-secondary);}[data-theme="dark"] .return-toggle-button:hover {background-color:rgba(255,255,255,0.1);color:var(--text-primary);border-color:var(--color-primary);}[data-theme="dark"] .return-toggle-button.active {background-color:var(--color-primary-light);color:var(--color-primary);border-color:var(--color-primary);}@media (min-width:992px) {.stock-price {display:flex;align-items:center;flex-wrap:wrap;}.compare-label,.stock-compare-section {display:inline-block;margin-left:0.5rem;}.compare-separator {margin:0 0.5rem;}.compare-links {white-space:nowrap;display:inline-block;}}#price-history-chart-container {width:100%;height:100%;}.initially-hidden {display:none;}#performance-comparison-chart {width:100%;height:400px;}#peer-returns-chart {width:100%;height:350px;margin-bottom:1.5rem;}.price-returns-period-card .peer-returns-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;}.price-returns-period-card .peer-returns-header h4 {margin:0;font-size:1.1em;}.price-returns-period-card .return-toggle-buttons .return-toggle-button {margin-left:5px;padding:5px 10px;font-size:0.9em;}.price-returns-period-card .peer-returns-chart {height:300px;margin-bottom:20px;}.price-returns-period-card .peer-returns-table th.color-column,.price-returns-period-card .peer-returns-table td.color-cell {width:20px;padding:8px 2px;}.price-returns-period-card .peer-returns-table th.stock-column,.price-returns-period-card .peer-returns-table td.stock-cell {text-align:left;width:auto;}.price-returns-period-card .peer-returns-table th.return-column,.price-returns-period-card .peer-returns-table td.return-cell {width:8%;text-align:right;}.price-returns-period-card .benchmark-row td {font-style:italic;color:var(--text-color-secondary);}.price-returns-period-card .peer-returns-table td.color-cell span {display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:middle;}.investment-calculator-card h2 {margin-top:0;font-size:var(--h2-size);}.investment-calculator-card p {margin-bottom:20px;color:var(--text-color-secondary);}.investment-calculator-form .form-row {display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;}.investment-calculator-form .form-group {flex:1;min-width:150px;}.investment-calculator-form .form-group label {display:block;margin-bottom:5px;font-weight:500;font-size:0.9em;color:var(--text-color-secondary);}.investment-calculator-form .input-group {display:flex;align-items:center;border:1px solid var(--border-color);border-radius:4px;background-color:var(--background-color-secondary);}.investment-calculator-form .input-group .input-group-addon {padding:8px 10px;background-color:var(--background-color-tertiary);border-right:1px solid var(--border-color);color:var(--text-color-secondary);border-top-left-radius:4px;border-bottom-left-radius:4px;}.investment-calculator-form .input-group input[type="number"] {border:none;flex-grow:1;background:none;padding:8px 10px;width:100%;}.investment-calculator-form input[type=number]::-webkit-outer-spin-button,.investment-calculator-form input[type=number]::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}.investment-calculator-form input[type=number] {appearance:textfield;-moz-appearance:textfield;}.investment-calculator-form select {width:100%;padding:8px 10px;border:1px solid var(--border-color);border-radius:4px;background-color:var(--background-color-secondary);color:var(--text-color-primary);height:38px;cursor:pointer;}.investment-calculator-form button {padding:8px 20px;background-color:var(--accent-color);color:var(--button-text-color);border:none;border-radius:4px;cursor:pointer;transition:background-color 0.2s ease;height:38px;font-weight:500;}.investment-calculator-form button:hover {background-color:var(--accent-color-dark);}.investment-calculator-form .form-group:last-child {flex-grow:0;}.calculator-result {margin-top:25px;padding-top:15px;border-top:1px solid var(--border-color-light);}.calculator-result .no-data-message {color:var(--text-color-secondary);font-style:italic;margin-bottom:0;}.calculator-note {margin-top:20px;font-size:0.85em;color:var(--text-color-secondary);}.calculator-note p {margin-bottom:0;}@media (max-width:768px) {.investment-calculator-form .form-row {flex-direction:column;gap:0.75rem;}.investment-calculator-form .form-group {width:100%;min-width:0;margin:0;}.investment-calculator-form button {width:100%;}}.investment-calculator-form input[type="date"] {width:100%;box-sizing:border-box;}@media (min-width:769px) {.investment-calculator-form .form-row {flex-wrap:wrap;}.investment-calculator-form .form-group:last-child {width:100%;flex-basis:100%;margin-top:1rem;}.investment-calculator-form button {width:100%;}}/* ==============================   FAQ Accordion Styles   ============================== */.faq-card .card-section {padding:0;}.faq-card h2 {margin:0;}.faq-list {margin:0;padding:0;}.faq-list dt {padding:15px 45px 15px 20px;font-weight:600;cursor:pointer;position:relative;border-bottom:1px solid var(--wp--preset--color--contrast-2);transition:background-color 0.2s ease;color:var(--wp--preset--color--contrast-5);background-color:var(--wp--preset--color--base);}.faq-list dt:last-of-type {border-bottom:none;}.faq-list dt:hover {background-color:var(--wp--preset--color--contrast);}.faq-list dt::before {content:'+';position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:1.4em;line-height:1;font-weight:300;color:var(--wp--preset--color--primary);transition:transform 0.3s ease,content 0.3s ease;}.faq-list dt.active {background-color:var(--wp--preset--color--contrast);}.faq-list dt.active::before {content:'−';transform:translateY(-50%);}.faq-list dd {margin:0;padding:0 20px;overflow:hidden;max-height:0;transition:max-height 0.4s ease-out,padding-top 0.4s ease-out,padding-bottom 0.4s ease-out;background-color:var(--wp--preset--color--contrast-05);color:var(--wp--preset--color--contrast-5);line-height:1.6;font-size:0.95em;border-bottom:1px solid var(--wp--preset--color--contrast-2);}.faq-list dd.active {max-height:1000px;padding-top:20px;padding-bottom:25px;transition:max-height 0.5s ease-in,padding-top 0.5s ease-in,padding-bottom 0.5s ease-in;}.faq-list dt:last-of-type + dd.active {border-bottom:none;}.faq-list dd p,.faq-list dd ul {margin-top:0;margin-bottom:1em;}.faq-list dd p:last-child,.faq-list dd ul:last-child {margin-bottom:0;}.faq-list dd ul {padding-left:20px;list-style:disc;}.faq-list dd li {margin-bottom:0.5em;}.faq-list dd strong {color:var(--wp--preset--color--contrast-5);}.faq-list dd .positive {color:var(--wp--preset--color--success);font-weight:bold;}.faq-list dd .negative {color:var(--wp--preset--color--error);font-weight:bold;}@media (max-width:768px) {.faq-list dt {padding:12px 40px 12px 15px;font-size:0.95em;}.faq-list dt::before {right:15px;}.faq-list dd {padding:0 15px;font-size:0.9em;}.faq-list dd.active {padding-top:15px;padding-bottom:20px;}}.faq-card a {color:var(--color-primary);text-decoration:none;transition:color var(--transition-speed) ease;}.faq-card a:hover {text-decoration:underline;color:var(--color-secondary);}[data-theme="dark"] .faq-card a,.dark-mode .faq-card a {color:#6db4f0;}[data-theme="dark"] .faq-card a:hover,.dark-mode .faq-card a:hover {color:#9fcff7;}