/* Site-wide responsive, accessibility and rendering improvements. */
/* =========================================================
   TipsMake Brand
   Canonical brand: TipsMake
   Display brand: TipsMake.com
   ========================================================= */
.container{width:min(calc(100% - 32px),1180px);margin-inline:auto}
.top-strip{background:#071a2b;color:#b9cad8;font-size:12px}.top-strip .container{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.top-strip a:hover{color:#fff}
.site-header .brand {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    gap: 0;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.site-header .brand-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #111827;
}

.site-header .brand-name strong {
    font-weight: 800;
    color: #2563eb;
}

.site-header .brand-domain {
    margin-left: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #6b7280;
}

/* Hover */
.site-header .brand:hover .brand-name {
    color: #111827;
}

.site-header .brand:hover .brand-name strong {
    color: #1d4ed8;
}

.site-header .brand:hover .brand-domain {
    color: #4b5563;
}

/* Keyboard accessibility */
.site-header .brand:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 5px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 767px) {
	.top-strip{display:none};
    .site-header .brand-name {
        font-size: 22px;
        letter-spacing: -0.6px;
    }

    .site-header .brand-domain {
        font-size: 12px;
    }
}
.site-footer .brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.site-footer .footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #ffffff;
    font-style: normal;
}

.site-footer .footer-logo-text strong {
    font-weight: 800;
    color: #60a5fa;
}

.site-footer .footer-logo-domain {
    margin-left: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer .brand:hover .footer-logo-text {
    color: #ffffff;
}

.site-footer .brand:hover .footer-logo-text strong {
    color: #93c5fd;
}

.site-footer .brand:hover .footer-logo-domain {
    color: rgba(255, 255, 255, 0.75);
}

.site-footer .brand:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 5px;
    border-radius: 4px;
}

.site-footer .footer-brand > p {
    margin-top: 12px;
}

/* Mobile */
@media (max-width: 767px) {
    .site-footer .footer-logo-text {
        font-size: 22px;
        letter-spacing: -0.6px;
    }

    .site-footer .footer-logo-domain {
        font-size: 12px;
    }
}
/* Keyboard-only skip link shared by Programming discovery pages. */
.skip-link {
    position: fixed;
    z-index: 10000;
    top: -120px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: #14213d;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(20, 33, 61, .24);
    transition: top .16s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; outline: 3px solid #ffbf47; outline-offset: 3px; }
/* TipsMake Learning Experience Shell v2.6.1 */
.tm-learning-shell-header,
.tm-learning-shell-footer,
.tm-learning-shell-header *,
.tm-learning-shell-footer * { box-sizing: border-box; }

.tm-shell-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.tm-learning-shell-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #152033;
    background: #fff;
    border-bottom: 1px solid #dfe5ee;
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
    transition: box-shadow .18s ease, border-color .18s ease;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


.tm-learning-shell-header.is-scrolled {
    border-bottom-color: #d4dce8;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .12);
}

.tm-shell-brand-row { background: rgba(255, 255, 255, .98); }
.tm-shell-brand-row-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tm-shell-brand-cluster { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tm-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
}
.tm-shell-brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #fff;
    background: #1769e8;
    font-size: 12px;
    letter-spacing: -.02em;
    box-shadow: 0 7px 18px rgba(23, 105, 232, .2);
}
.tm-shell-brand-name { font-size: 20px; letter-spacing: -.035em; }
.tm-shell-brand-divider { width: 1px; height: 28px; background: #d8dee8; }
.tm-shell-product-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #4b5d76;
    background: #f1f5fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
}
.tm-shell-product-link:hover,
.tm-shell-product-link:focus-visible,
.tm-shell-product-link.is-current { color: #0b57d0; background: #e9f1ff; }
.tm-shell-main-site-link,
.tm-shell-mobile-main-site-link {
    color: #40526b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.tm-shell-main-site-link:hover,
.tm-shell-main-site-link:focus-visible,
.tm-shell-mobile-main-site-link:hover,
.tm-shell-mobile-main-site-link:focus-visible { color: #0b63f6; }

.tm-shell-nav-row { background: #f7f9fc; border-top: 1px solid #edf0f5; }
.tm-shell-nav-row-inner { min-height: 50px; display: flex; align-items: center; gap: 28px; }
.tm-shell-nav-label { color: #26364d; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tm-shell-menu { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.tm-shell-menu > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 13px;
    color: #52627a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.tm-shell-menu > a:hover,
.tm-shell-menu > a:focus-visible { color: #0b57d0; background: #eef4ff; }
.tm-shell-menu > a.is-current { color: #0b57d0; }
.tm-shell-menu > a.is-current::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #1769e8;
}
.tm-shell-menu-toggle,
.tm-shell-menu > .tm-shell-mobile-main-site-link { display: none; }

.tm-learning-shell-header a:focus-visible,
.tm-learning-shell-footer a:focus-visible,
.tm-shell-menu-toggle:focus-visible {
    outline: 3px solid rgba(11, 99, 246, .38);
    outline-offset: 3px;
}

.tm-learning-shell-footer {
    margin-top: 72px;
    color: #cbd6e5;
    background: #101a2a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tm-shell-footer-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(150px, .8fr));
    gap: 46px;
    padding-block: 54px 42px;
}
.tm-shell-brand-footer { color: #fff; }
.tm-shell-footer-brand p { max-width: 280px; margin: 17px 0 12px; color: #aebcd0; line-height: 1.65; }
.tm-shell-footer-learning-link { color: #8db7ff; font-weight: 700; text-decoration: none; }
.tm-shell-footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tm-shell-footer-group h2 { margin: 0 0 5px; color: #fff; font-size: 14px; }
.tm-shell-footer-group a { color: #b6c3d5; text-decoration: none; font-size: 14px; line-height: 1.45; }
.tm-shell-footer-group a:hover,
.tm-shell-footer-group a:focus-visible,
.tm-shell-footer-learning-link:hover,
.tm-shell-footer-learning-link:focus-visible { color: #fff; }
.tm-shell-footer-bottom {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #8fa0b7;
    font-size: 13px;
}
.tm-shell-footer-bottom a { color: #c9d6e6; text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
    .tm-shell-main-site-link { display: none; }
    .tm-shell-nav-row-inner { position: relative; justify-content: space-between; min-height: 56px; }
    .tm-shell-nav-label { font-size: 14px; }
    .tm-shell-menu { flex-wrap: wrap; gap: 2px 8px; padding-block: 8px 12px; }
    .tm-shell-menu > a { min-height: 42px; }
    .tm-shell-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .tm-shell-container { width: min(100% - 28px, 1180px); }
    .tm-shell-brand-row-inner { min-height: 62px; }
    .tm-shell-brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    .tm-shell-brand-name { font-size: 18px; }
    .tm-shell-brand-divider { height: 24px; }
    .tm-shell-product-link { min-height: 30px; padding-inline: 10px; font-size: 13px; }
    .tm-shell-menu-toggle {
        display: none;
        align-items: center;
        gap: 9px;
        min-height: 38px;
        padding: 0 11px;
        border: 1px solid #cbd4e1;
        border-radius: 9px;
        color: #26364d;
        background: #fff;
        font: inherit;
        font-size: 13px;
        font-weight: 750;
        cursor: pointer;
    }
    .tm-shell-menu-icon { display: grid; gap: 3px; width: 15px; }
    .tm-shell-menu-icon i { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
    .tm-shell-menu { width: 100%; flex-direction: column; align-items: stretch; padding: 0 0 12px; }
    .tm-shell-menu > a { min-height: 44px; padding: 0 12px; border-radius: 9px; }
    .tm-shell-menu > a.is-current::after { left: 0; top: 9px; bottom: 9px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
    .tm-shell-mobile-main-site-link { display: inline-flex !important; margin-top: 5px; border-top: 1px solid #e2e7ef; }
    .tm-shell-js .tm-shell-menu-toggle { display: inline-flex; }
    .tm-shell-js .tm-shell-menu { display: none; }
    .tm-shell-js[data-menu-open="true"] .tm-shell-menu { display: flex; }
    .tm-shell-nav-row-inner { flex-wrap: wrap; }
    .tm-shell-footer-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 42px 34px; }
    .tm-shell-footer-bottom { min-height: 82px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

/* Shared sticky offsets and alignment safeguards. */
html { scroll-padding-top: 142px; }
.tm-learning-shell-header + main [id],
.tm-learning-shell-header ~ main [id] { scroll-margin-top: 142px; }
.tm-article-sidebar,
.tm-sidebar,
.tm-lab-sidebar,
.tm-problem-nav,
.tools-intro { top: 140px !important; }

@media (max-width: 680px) {
    html { scroll-padding-top: 132px; }
    .tm-learning-shell-header + main [id],
    .tm-learning-shell-header ~ main [id] { scroll-margin-top: 132px; }
}

@media print {
    .tm-learning-shell-header,
    .tm-learning-shell-footer { display: none !important; }
}
