:root {
    --ld-primary: #2563eb;
    --ld-primary-dark: #1d4ed8;
    --ld-primary-soft: #eff6ff;
    --ld-ink: #0f172a;
    --ld-muted: #64748b;
    --ld-border: #e2e8f0;
    --ld-surface: #ffffff;
    --ld-canvas: #f8fafc;
    --ld-header-height: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ld-canvas);
    color: var(--ld-ink);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ld-flash-overlay {
    left: 50%;
    max-width: 520px;
    position: fixed;
    top: 76px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 1200;
}

.ld-site-header,
.ld-site-header * {
    box-sizing: border-box;
}

.ld-site-header {
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--ld-border);
    color: var(--ld-ink);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1070;
}

.ld-site-header__inner {
    align-items: center;
    display: flex;
    gap: 22px;
    height: var(--ld-header-height);
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 24px;
}

.ld-brand {
    align-items: center;
    color: var(--ld-ink);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 10px;
    text-decoration: none !important;
}

.ld-brand:hover {
    color: var(--ld-ink);
}

.ld-brand__mark {
    align-items: center;
    background: var(--ld-primary);
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    letter-spacing: -.02em;
    width: 36px;
}

.ld-brand__name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.ld-brand__name strong {
    color: var(--ld-primary);
    font-weight: 750;
}

.ld-stock-shortcut {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--ld-border);
    border-radius: 9px;
    color: var(--ld-ink);
    display: inline-flex;
    flex: 0 1 184px;
    gap: 8px;
    min-height: 42px;
    min-width: 142px;
    padding: 5px 9px;
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ld-stock-shortcut:hover,
.ld-stock-shortcut:focus {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    color: var(--ld-ink);
    outline: none;
}

.ld-stock-shortcut__icon {
    color: var(--ld-muted);
    font-size: 14px;
}

.ld-stock-shortcut__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.ld-stock-shortcut__copy small {
    color: var(--ld-muted);
    font-size: 10px;
    font-weight: 500;
}

.ld-stock-shortcut__copy strong {
    color: var(--ld-ink);
    font-size: 14px;
    letter-spacing: .04em;
}

.ld-stock-shortcut__hint {
    color: var(--ld-primary);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.ld-primary-nav {
    align-items: stretch;
    align-self: stretch;
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.ld-primary-nav__link {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #475569;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 5px;
    justify-content: center;
    min-height: 44px;
    padding: 2px 12px 0;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.ld-primary-nav__link:hover,
.ld-primary-nav__link:focus,
.ld-primary-nav__link.is-active {
    color: var(--ld-primary);
}

.ld-primary-nav__link.is-active {
    border-bottom-color: var(--ld-primary);
}

.ld-primary-nav__button {
    cursor: pointer;
    height: 100%;
}

.ld-nav-dropdown {
    align-items: stretch;
    display: flex;
    position: relative;
}

.ld-compact-menu,
.ld-account-menu {
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .12);
    display: none;
    margin-top: 8px;
    padding: 6px;
    position: absolute;
    top: 100%;
    z-index: 1080;
}

.ld-nav-dropdown.is-open > .ld-compact-menu,
.ld-user-menu.is-open > .ld-account-menu {
    display: block;
}

.ld-compact-menu {
    left: 0;
    min-width: 190px;
}

.ld-compact-menu .dropdown-item,
.ld-account-menu .dropdown-item {
    align-items: center;
    border-radius: 7px;
    color: #334155;
    display: flex;
    font-size: 13px;
    font-weight: 550;
    gap: 9px;
    min-height: 40px;
    padding: 8px 10px;
}

.ld-compact-menu .dropdown-item:hover,
.ld-account-menu .dropdown-item:hover {
    background: #f1f5f9;
    color: var(--ld-primary);
}

.ld-compact-menu .dropdown-item i,
.ld-account-menu .dropdown-item i {
    color: var(--ld-muted);
    text-align: center;
    width: 16px;
}

.ld-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.ld-user-menu {
    position: relative;
}

.ld-account-menu {
    left: auto;
    right: 0;
}

.ld-login-button,
.ld-mobile-login {
    background: var(--ld-primary);
    border: 1px solid var(--ld-primary);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    min-height: 40px;
    padding: 0 15px;
}

.ld-login-button:hover,
.ld-mobile-login:hover {
    background: var(--ld-primary-dark);
}

.ld-avatar-button {
    align-items: center;
    background: var(--ld-primary-soft);
    border: 2px solid #bfdbfe;
    border-radius: 50%;
    color: var(--ld-primary);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
    width: 38px;
}

.ld-avatar-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ld-account-menu {
    min-width: 244px;
}

.ld-account-menu__identity {
    display: flex;
    flex-direction: column;
    padding: 7px 10px;
}

.ld-account-menu__identity strong {
    color: var(--ld-ink);
    font-size: 13px;
}

.ld-account-menu__identity span {
    color: var(--ld-muted);
    font-size: 11px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-account-menu__label {
    color: #94a3b8;
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    padding: 4px 10px;
    text-transform: uppercase;
}

.ld-mobile-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}

.ld-mobile-toggle span {
    background: #334155;
    border-radius: 2px;
    display: block;
    height: 2px;
    margin: 2px 0;
    width: 18px;
}

.ld-mobile-panel {
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.ld-mobile-nav {
    display: grid;
    gap: 4px;
    margin: 0 auto;
    max-width: 720px;
    padding: 10px 16px;
}

.ld-mobile-nav a {
    align-items: center;
    border-radius: 8px;
    color: #334155;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    text-decoration: none !important;
}

.ld-mobile-nav a i {
    color: var(--ld-muted);
    text-align: center;
    width: 18px;
}

.ld-mobile-nav a:hover,
.ld-mobile-nav a.is-active {
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
}

.ld-mobile-nav a.is-active i {
    color: var(--ld-primary);
}

.ld-mobile-account {
    border-top: 1px solid var(--ld-border);
    margin: 0 16px;
    padding: 12px 12px 16px;
}

.ld-mobile-account > span {
    color: var(--ld-muted);
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
}

.ld-mobile-account > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.ld-mobile-account a {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.ld-mobile-login {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
}

.ld-feedback {
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 20px;
}

.ld-feedback:empty {
    display: none;
}

.ld-feedback .alert {
    font-size: 13px;
    margin: 8px 0 0;
    padding: 8px 12px !important;
    text-align: center;
}

.ld-period-controls,
.ld-period-controls * {
    box-sizing: border-box;
}

.ld-period-controls {
    background: transparent;
    border: 0;
    padding: 12px 20px 6px;
}

.ld-period-controls__form {
    align-items: end;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1560px;
}

.ld-period-controls__group {
    align-items: center;
    border: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.ld-period-controls__group legend,
.ld-period-controls__count > span {
    border: 0;
    color: #64748b;
    display: block;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
    margin: 0 0 4px;
    padding: 0;
    text-align: center;
    width: auto;
}

.ld-period-controls .ld-period-toggle {
    min-height: 36px;
}

.ld-period-controls .ld-period-option {
    min-height: 28px;
    min-width: 48px;
    padding: 0 11px;
}

.ld-period-controls__count {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.ld-period-controls__count input {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--ld-ink);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    height: 36px;
    outline: none;
    padding: 0 8px;
    text-align: center;
    width: 76px;
}

.ld-period-controls__count input:focus {
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.ld-period-controls__submit {
    background: var(--ld-primary);
    border: 1px solid var(--ld-primary);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    height: 36px;
    padding: 0 15px;
}

.ld-period-controls__submit:hover,
.ld-period-controls__submit:focus {
    background: var(--ld-primary-dark);
    border-color: var(--ld-primary-dark);
    outline: none;
}

.ld-analysis-shell,
.ld-analysis-shell * {
    box-sizing: border-box;
}

.ld-analysis-shell {
    background: var(--ld-canvas);
    margin: 0 auto;
    max-width: 1600px;
    padding: 18px 20px;
}

.ld-analysis-card {
    align-items: center;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(210px, .72fr) minmax(620px, 1.9fr) auto;
    padding: 18px 20px;
}

.ld-analysis-card__eyebrow {
    color: var(--ld-primary);
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .09em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ld-analysis-card__intro h1 {
    color: var(--ld-ink);
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 0;
}

.ld-analysis-card__intro p {
    color: var(--ld-muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 6px 0 0;
    max-width: 330px;
}

.ld-analysis-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(150px, 1.25fr) auto 98px auto;
    margin: 0;
    min-width: 0;
}

.ld-field {
    margin: 0;
    min-width: 0;
}

.ld-field label,
.ld-field legend {
    border: 0;
    color: #475569;
    display: block;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    margin: 0 0 6px;
    padding: 0;
    width: auto;
}

.ld-field small {
    color: #94a3b8;
    display: block;
    font-size: 10px;
    line-height: 1.2;
    margin-top: 5px;
    min-height: 12px;
}

.ld-stock-input,
.ld-count-input {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    min-height: 44px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ld-stock-input:focus-within,
.ld-count-input:focus-within {
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.ld-stock-input i {
    color: #94a3b8;
    margin-left: 13px;
}

.ld-stock-input input,
.ld-count-input input {
    background: transparent;
    border: 0;
    color: var(--ld-ink);
    font-size: 14px;
    height: 42px;
    min-width: 0;
    outline: none;
    padding: 0 11px;
    width: 100%;
}

.ld-stock-input input {
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ld-stock-input input::placeholder {
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ld-count-input input {
    font-variant-numeric: tabular-nums;
    padding-right: 4px;
    text-align: center;
}

.ld-count-input span {
    align-items: center;
    align-self: stretch;
    background: #f8fafc;
    border-left: 1px solid var(--ld-border);
    color: var(--ld-muted);
    display: flex;
    font-size: 11px;
    font-weight: 650;
    padding: 0 9px;
}

.ld-period-toggle {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--ld-border);
    border-radius: 9px;
    display: flex;
    min-height: 44px;
    padding: 3px;
}

.ld-period-option {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    min-height: 36px;
    min-width: 54px;
    padding: 0 13px;
}

.ld-period-option:hover {
    color: var(--ld-primary);
}

.ld-period-option.is-active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
    color: var(--ld-primary);
}

.ld-analysis-submit {
    align-items: center;
    background: var(--ld-primary);
    border: 1px solid var(--ld-primary);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    white-space: nowrap;
}

.ld-analysis-submit:hover,
.ld-analysis-submit:focus {
    background: var(--ld-primary-dark);
    border-color: var(--ld-primary-dark);
    color: #fff;
    outline: none;
}

.ld-analysis-card__actions {
    align-items: center;
    border-left: 1px solid var(--ld-border);
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 95px;
    padding-left: 16px;
}

.ld-analysis-card__actions a,
.ld-analysis-card__actions button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #475569;
    cursor: pointer;
    display: flex;
    font-size: 11px;
    font-weight: 600;
    gap: 7px;
    min-height: 34px;
    padding: 0 8px;
    text-decoration: none !important;
    width: 100%;
}

.ld-analysis-card__actions a:hover,
.ld-analysis-card__actions button:hover {
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
}

.ld-analysis-card__actions i {
    text-align: center;
    width: 14px;
}

.ld-public-blog,
.ld-blog-article-shell {
    margin: 0 auto;
    max-width: 1240px;
    padding: 48px 24px 72px;
}

.ld-public-blog__header {
    max-width: 680px;
}

.ld-public-blog__header > span,
.ld-blog-article__category {
    color: var(--ld-primary);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ld-public-blog__header h1 {
    color: var(--ld-ink);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 8px 0 0;
}

.ld-public-blog__header p {
    color: var(--ld-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 12px 0 0;
}

.ld-public-blog__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.ld-blog-card {
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 22px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ld-blog-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    transform: translateY(-2px);
}

.ld-blog-card__meta,
.ld-blog-card__footer,
.ld-blog-article__meta {
    align-items: center;
    color: var(--ld-muted);
    display: flex;
    font-size: 11px;
    gap: 10px;
}

.ld-blog-card__meta {
    justify-content: space-between;
}

.ld-blog-card__meta > span {
    background: var(--ld-primary-soft);
    border-radius: 999px;
    color: var(--ld-primary);
    font-weight: 700;
    padding: 4px 8px;
}

.ld-blog-card h2 {
    font-size: 19px;
    font-weight: 720;
    letter-spacing: -.02em;
    line-height: 1.35;
    margin: 18px 0 0;
}

.ld-blog-card h2 a {
    color: var(--ld-ink);
    text-decoration: none;
}

.ld-blog-card h2 a:hover {
    color: var(--ld-primary);
}

.ld-blog-card > p {
    color: var(--ld-muted);
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.65;
    margin: 10px 0 20px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ld-blog-card__footer {
    border-top: 1px solid #f1f5f9;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
}

.ld-blog-card__footer a {
    color: var(--ld-primary);
    font-weight: 700;
}

.ld-blog-empty {
    align-items: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--ld-muted);
    display: flex;
    flex-direction: column;
    margin-top: 34px;
    padding: 64px 20px;
    text-align: center;
}

.ld-blog-empty i {
    color: #94a3b8;
    font-size: 34px;
}

.ld-blog-empty h2 {
    color: var(--ld-ink);
    font-size: 18px;
    margin: 14px 0 0;
}

.ld-blog-empty p {
    font-size: 13px;
    margin: 7px 0 0;
}

.ld-blog-article-shell {
    max-width: 920px;
}

.ld-blog-article {
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    padding: clamp(24px, 5vw, 58px);
}

.ld-blog-article__back {
    color: var(--ld-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 650;
    gap: 7px;
    margin-bottom: 34px;
}

.ld-blog-article__back:hover {
    color: var(--ld-primary);
}

.ld-blog-article header {
    border-bottom: 1px solid var(--ld-border);
    margin-bottom: 30px;
    padding-bottom: 26px;
}

.ld-blog-article h1 {
    color: var(--ld-ink);
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.14;
    margin: 10px 0 18px;
}

.ld-blog-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.ld-blog-content h1,
.ld-blog-content h2,
.ld-blog-content h3 {
    color: var(--ld-ink);
    font-weight: 720;
    line-height: 1.3;
    margin: 1.8em 0 .6em;
}

.ld-blog-content h1 {
    font-size: 28px;
}

.ld-blog-content h2 {
    font-size: 23px;
}

.ld-blog-content h3 {
    font-size: 19px;
}

.ld-blog-content p,
.ld-blog-content ul,
.ld-blog-content ol,
.ld-blog-content blockquote,
.ld-blog-content pre,
.ld-blog-content table,
.ld-blog-content figure {
    margin: 0 0 1.25em;
}

.ld-blog-content ul,
.ld-blog-content ol {
    padding-left: 1.5em;
}

.ld-blog-content li {
    display: list-item;
    margin: .35em 0;
}

.ld-blog-content img {
    border-radius: 10px;
    display: block;
    height: auto;
    margin: 24px auto;
    max-width: 100%;
}

.ld-blog-content blockquote {
    background: #f8fafc;
    border-left: 3px solid var(--ld-primary);
    color: #475569;
    padding: 14px 18px;
}

.ld-blog-content pre {
    background: #0f172a;
    border-radius: 9px;
    color: #e2e8f0;
    overflow-x: auto;
    padding: 16px;
}

.ld-blog-content table {
    border-collapse: collapse;
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.ld-blog-content th,
.ld-blog-content td {
    border: 1px solid var(--ld-border);
    padding: 8px 10px;
}

.ld-blog-content figure.image,
.ld-blog-content figure.media,
.ld-blog-content figure.table {
    margin: 1.5em auto;
    max-width: 100%;
}

.ld-blog-content figure.image img {
    margin-bottom: 0;
    margin-top: 0;
}

.ld-blog-content figcaption {
    color: var(--ld-muted);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    text-align: center;
}

.ld-blog-content figure.table {
    overflow-x: auto;
}

.ld-blog-content figure.table table {
    display: table;
    margin: 0;
    min-width: 520px;
    width: 100%;
}

.ld-blog-content figure.media > div,
.ld-blog-content .media {
    aspect-ratio: 16 / 9;
    position: relative;
}

.ld-blog-content figure.media iframe,
.ld-blog-content .media iframe {
    border: 0;
    height: 100%;
    inset: 0;
    max-width: 100%;
    position: absolute;
    width: 100%;
}

.ld-blog-content > iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    height: auto;
    margin: 1.5em auto;
    max-width: 100%;
    width: 100%;
}

.ld-blog-content .image-style-side {
    float: right;
    margin: 0 0 1.25em 1.5em;
    max-width: min(50%, 460px);
}

.ld-blog-content .image-style-align-left {
    margin-left: 0;
    margin-right: auto;
}

.ld-blog-content .image-style-align-right {
    margin-left: auto;
    margin-right: 0;
}

.ld-blog-content .image_resized {
    display: block;
}

.ld-blog-content .image_resized img {
    width: 100%;
}

.ld-blog-content .text-tiny {
    font-size: .7em;
}

.ld-blog-content .text-small {
    font-size: .85em;
}

.ld-blog-content .text-big {
    font-size: 1.4em;
}

.ld-blog-content .text-huge {
    font-size: 1.8em;
}

.ld-blog-content .article-lead {
    color: #1e293b;
    font-size: 1.15em;
    font-weight: 500;
    line-height: 1.7;
}

.ld-blog-content .article-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    color: #1e3a5f;
    padding: 14px 16px;
}

.ld-blog-content .article-button-link {
    background: var(--ld-primary);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
}

.ld-blog-content .article-button-link:hover {
    color: #fff;
    filter: brightness(.92);
}

.ld-blog-content .todo-list {
    list-style: none;
    padding-left: 0;
}

.ld-blog-content .todo-list input[type="checkbox"] {
    margin-right: 8px;
}

.ld-blog-content::after {
    clear: both;
    content: "";
    display: table;
}

@media (max-width: 1279.98px) {
    .ld-site-header__inner {
        gap: 14px;
        padding: 0 18px;
    }

    .ld-brand__name {
        display: none;
    }

    .ld-stock-shortcut {
        flex-basis: 150px;
    }

    .ld-stock-shortcut__hint {
        display: none;
    }

    .ld-primary-nav__link {
        font-size: 12px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .ld-analysis-card {
        grid-template-columns: minmax(180px, .6fr) minmax(600px, 2fr);
    }

    .ld-analysis-card__actions {
        border-left: 0;
        border-top: 1px solid var(--ld-border);
        flex-direction: row;
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding: 10px 0 0;
    }

    .ld-analysis-card__actions a,
    .ld-analysis-card__actions button {
        width: auto;
    }
}

@media (max-width: 991.98px) {
    .ld-site-header__inner {
        height: 60px;
    }

    .ld-brand__name {
        display: inline;
    }

    .ld-primary-nav,
    .ld-login-button,
    .ld-user-menu {
        display: none;
    }

    .ld-stock-shortcut {
        flex-basis: 190px;
        margin-left: auto;
    }

    .ld-stock-shortcut__hint {
        display: inline;
    }

    .ld-mobile-toggle {
        display: flex;
    }

    .ld-analysis-card {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .ld-analysis-card__intro p {
        max-width: none;
    }

    .ld-analysis-card__actions {
        grid-column: auto;
    }

    .ld-public-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    :root {
        --ld-header-height: 56px;
    }

    .ld-site-header__inner {
        gap: 8px;
        height: var(--ld-header-height);
        padding: 0 12px;
    }

    .ld-brand {
        gap: 7px;
    }

    .ld-brand__mark {
        border-radius: 8px;
        height: 34px;
        width: 34px;
    }

    .ld-brand__name {
        font-size: 14px;
    }

    .ld-stock-shortcut {
        flex: 0 1 136px;
        min-height: 40px;
        min-width: 92px;
    }

    .ld-stock-shortcut__copy small,
    .ld-stock-shortcut__hint,
    .ld-stock-shortcut__icon {
        display: none;
    }

    .ld-stock-shortcut__copy {
        align-items: center;
    }

    .ld-stock-shortcut__copy strong::before {
        color: var(--ld-muted);
        content: "Mã: ";
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0;
    }

    .ld-mobile-toggle {
        height: 40px;
        width: 40px;
    }

    .ld-analysis-shell {
        padding: 12px;
    }

    .ld-analysis-card {
        border-radius: 10px;
        gap: 16px;
        padding: 16px;
    }

    .ld-analysis-card__intro h1 {
        font-size: 20px;
    }

    .ld-analysis-form {
        grid-template-columns: minmax(0, 1fr) minmax(94px, .55fr);
        width: 100%;
    }

    .ld-stock-field {
        grid-column: 1 / -1;
    }

    .ld-period-field {
        min-width: 0;
    }

    .ld-period-toggle {
        width: 100%;
    }

    .ld-period-option {
        flex: 1 1 50%;
        min-width: 0;
    }

    .ld-analysis-submit {
        grid-column: 1 / -1;
        width: 100%;
    }

    .ld-analysis-card__actions {
        justify-content: stretch;
        width: 100%;
    }

    .ld-analysis-card__actions a,
    .ld-analysis-card__actions button {
        flex: 1 1 0;
        justify-content: center;
        min-height: 40px;
    }

    .ld-public-blog,
    .ld-blog-article-shell {
        padding: 30px 12px 52px;
    }

    .ld-public-blog__grid {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .ld-blog-card {
        min-height: 235px;
        padding: 18px;
    }

    .ld-blog-article {
        border-radius: 10px;
        padding: 22px 18px;
    }

    .ld-blog-article__back {
        margin-bottom: 24px;
    }

    .ld-blog-content {
        font-size: 15px;
    }

    .ld-period-controls {
        padding: 10px 12px 4px;
    }

    .ld-period-controls__form {
        gap: 8px;
        justify-content: center;
    }

    .ld-period-controls__group {
        flex: 1 1 auto;
        max-width: 150px;
    }

    .ld-period-controls .ld-period-toggle {
        width: 100%;
    }

    .ld-period-controls .ld-period-option {
        flex: 1 1 50%;
        min-width: 0;
        padding: 0 8px;
    }

    .ld-period-controls__count input {
        width: 64px;
    }

    .ld-period-controls__submit {
        padding: 0 12px;
    }
}

@media (max-width: 389.98px) {
    .ld-brand__name {
        display: none;
    }

    .ld-stock-shortcut {
        flex-basis: 112px;
    }

    .ld-analysis-card__actions a,
    .ld-analysis-card__actions button {
        font-size: 10px;
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ld-site-header *,
    .ld-analysis-shell *,
    .ld-period-controls * {
        transition: none !important;
    }
}
