/* OSFILE Printer Tool Library homepage — reference-matched V8 */
.home-library-page {
    background: #fff;
}

.home-library-page .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 0;
    border-bottom: 1px solid #e8edf5;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.home-library-page .site-header-inner {
    min-height: 70px;
}

.home-library-page .site-logo img {
    display: block;
    width: auto;
    height: 39px;
    max-width: 225px;
    object-fit: contain;
}

.home-library-page .header-actions {
    gap: 27px;
}

.home-library-page .header-actions > a:not(.header-search-link) {
    color: #162137;
    font-size: 13px;
    font-weight: 650;
}

.home-library-page .header-actions > a:hover {
    color: #1265ed;
}

.home-library-page .header-search-link {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #12213a;
    background: #f5f8fc;
    border: 1px solid #edf1f7;
}

.home-library-page .header-search-link svg {
    width: 17px;
    height: 17px;
}

.tool-library-home {
    --tl-navy: #0d1d3a;
    --tl-blue: #0968ef;
    --tl-blue-2: #0b70ff;
    --tl-soft-blue: #eef5ff;
    --tl-muted: #5f6f86;
    --tl-line: #e2e9f2;
    --tl-green: #18a957;
    --tl-bg: #f8fbff;
    color: var(--tl-navy);
    background: #fff;
}

.tool-library-home *,
.tool-library-home *::before,
.tool-library-home *::after {
    box-sizing: border-box;
}

.tool-library-home .container {
    width: min(1370px, calc(100% - 64px));
    max-width: 1370px;
    margin-left: auto;
    margin-right: auto;
}

.tl-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 28px;
    background:
        radial-gradient(circle at 77% 12%, rgba(29,113,255,.11), transparent 32%),
        linear-gradient(180deg, #f5f9ff 0%, #fbfdff 70%, #fff 100%);
    border-bottom: 1px solid #eef2f7;
}

.tl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(25,88,180,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25,88,180,.02) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to right, transparent 8%, #000 54%, #000 88%, transparent 100%);
}

.tl-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(490px, 1.02fr);
    gap: 58px;
    align-items: center;
}

.tl-hero-copy {
    padding: 14px 0 20px;
}

.tl-hero-label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #0765e8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.tl-hero h1 {
    max-width: 650px;
    margin: 16px 0 12px;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(44px, 4.2vw, 67px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.052em;
    color: #10213d;
}

.tl-hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: #41536f;
    font-size: 18px;
    line-height: 1.55;
}

.tl-search {
    position: relative;
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(760px, 100%);
    margin-top: 25px;
    padding: 7px 7px 7px 17px;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,45,86,.08);
}

.tl-search:focus-within {
    border-color: #6aa7ff;
    box-shadow: 0 0 0 3px rgba(9,104,239,.10), 0 12px 30px rgba(15,45,86,.10);
}

.tl-search-icon {
    display: grid;
    place-items: center;
    color: #6e7f95;
}

.tl-search-icon svg {
    width: 20px;
    height: 20px;
}

.tl-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #142440;
    font-size: 14px;
    padding: 11px 0;
}

.tl-search input::placeholder {
    color: #8795aa;
}

.tl-search button {
    min-width: 105px;
    height: 43px;
    border: 0;
    border-radius: 6px;
    padding: 0 22px;
    background: linear-gradient(180deg, #1776ff 0%, #0968ef 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 6px 12px rgba(9,104,239,.22);
}

.tl-search button:hover {
    background: #005bd8;
}

.tl-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 80;
    overflow: hidden;
    padding: 7px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(12,34,67,.18);
}

.tl-search-results a {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    color: #172844;
    text-decoration: none;
}

.tl-search-results a:hover {
    background: #f3f7fc;
}

.tl-search-results strong,
.tl-search-results small {
    display: block;
}

.tl-search-results strong {
    font-size: 13px;
}

.tl-search-results small {
    margin-top: 2px;
    color: #77869a;
    font-size: 11px;
}

.tl-autocomplete-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0d6df2;
}

.tl-search-results a > i {
    color: #0d6df2;
    font-style: normal;
}

.tl-popular-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
    color: #4e5e74;
    font-size: 11px;
}

.tl-popular-searches strong {
    margin-right: 4px;
    color: #21304a;
    font-size: 11px;
}

.tl-popular-searches a {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf1f9;
    color: #30435f;
    font-weight: 600;
    text-decoration: none;
}

.tl-popular-searches a:hover {
    background: #dceafe;
    color: #0865e7;
}

.tl-hero-visual {
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tl-hand-note {
    position: absolute;
    top: 3px;
    right: 32px;
    z-index: 5;
    color: #51627d;
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: 18px;
    line-height: 1.08;
    transform: rotate(-7deg);
    opacity: .8;
}

.tl-hand-note::after {
    content: "";
    display: block;
    width: 34px;
    margin: 6px 0 0 16px;
    border-bottom: 2px solid #2a7df8;
    transform: rotate(-7deg);
}

.tl-printer-scene {
    position: relative;
    height: 218px;
    margin-bottom: 22px;
}

.tl-printer {
    position: absolute;
    bottom: 11px;
    border-radius: 13px 13px 7px 7px;
    background: linear-gradient(180deg, #24292f 0%, #101317 68%, #181d23 100%);
    box-shadow: 0 20px 26px rgba(11,25,44,.20);
}

.tl-printer::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: -28%;
    height: 40%;
    border: 1px solid rgba(111,125,143,.3);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #e9edf1, #cfd4da);
    z-index: -1;
}

.tl-printer i {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 14%;
    height: 15%;
    border-radius: 3px;
    background: #0b0d10;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.tl-printer b {
    position: absolute;
    top: 20%;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    color: #d9dee3;
    font: 600 7px Inter, sans-serif;
    letter-spacing: .08em;
}

.tl-printer span {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -20%;
    height: 35%;
    border-radius: 2px 2px 6px 6px;
    background: linear-gradient(180deg, #eef3f8 0 50%, #52a9ed 50% 58%, #fff 58% 100%);
    box-shadow: 0 5px 10px rgba(0,0,0,.12);
    transform: perspective(90px) rotateX(11deg);
}

.tl-printer-main {
    left: 26%;
    width: 48%;
    height: 141px;
    z-index: 4;
}

.tl-printer-main em {
    position: absolute;
    right: 8%;
    bottom: 5%;
    width: 28%;
    height: 35%;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg,#20272b 0 8px,#4d8b55 8px 11px,#20272b 11px 18px);
}

.tl-printer-left {
    left: 3%;
    width: 36%;
    height: 114px;
    bottom: 15px;
    z-index: 2;
    background: linear-gradient(180deg, #f6f8fa, #d9dee4);
    border: 1px solid #c9d0d8;
}

.tl-printer-left::before {
    background: #f9fafb;
}

.tl-printer-left i {
    background: #e7ebee;
}

.tl-printer-left span {
    display: none;
}

.tl-printer-right {
    right: 2%;
    width: 35%;
    height: 107px;
    bottom: 18px;
    z-index: 1;
    opacity: .86;
}

.tl-printer-right span {
    display: none;
}

.tl-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: start;
    text-align: center;
}

.tl-hero-stats > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1b2e4b;
}

.tl-stat-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    color: #0569ee;
}

.tl-stat-icon svg {
    width: 29px;
    height: 29px;
}

.tl-hero-stats strong {
    margin-bottom: 1px;
    font-size: 17px;
    line-height: 1;
}

.tl-hero-stats small {
    color: #1e2d45;
    font-size: 10px;
    line-height: 1.25;
}

.tl-section {
    padding: 32px 0 6px;
}

.tl-brand-section {
    padding-top: 34px;
}

.tl-section-heading,
.tl-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.tl-section-heading h2,
.tl-panel-heading h3 {
    margin: 0;
    font-family: Manrope, Inter, sans-serif;
    color: #12213a;
    font-weight: 800;
    letter-spacing: -.025em;
}

.tl-section-heading h2 {
    font-size: 23px;
}

.tl-section-heading p,
.tl-panel-heading p {
    margin: 4px 0 0;
    color: #67768b;
    font-size: 11px;
}

.tl-section-heading > a,
.tl-panel-heading > a {
    flex: 0 0 auto;
    color: #0868ec;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.tl-section-heading > a span {
    margin-left: 5px;
}

.tl-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tl-brand-card {
    min-height: 245px;
    padding: 15px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #fff;
    color: #13223c;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 13px rgba(14,44,82,.035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tl-brand-card:hover {
    transform: translateY(-3px);
    border-color: #a9c8f2;
    box-shadow: 0 12px 28px rgba(16,51,95,.09);
}

.tl-brand-word {
    margin-bottom: 6px;
    font-family: Manrope, Inter, sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.tl-brand-epson .tl-brand-word { color: #103a9c; letter-spacing: -.05em; }
.tl-brand-canon .tl-brand-word { color: #d91826; font-family: Georgia, serif; font-style: italic; }
.tl-brand-brother .tl-brand-word { color: #173b9d; letter-spacing: -.07em; }
.tl-brand-other .tl-brand-word { color: #18253b; font-size: 18px; }

.tl-card-printer,
.tl-tool-printer,
.tl-row-printer {
    position: relative;
    display: inline-block;
    background: linear-gradient(180deg,#363d43,#171c21);
    border-radius: 4px 4px 3px 3px;
}

.tl-card-printer {
    width: 94px;
    height: 51px;
    margin: 7px 0 12px;
    box-shadow: 0 6px 9px rgba(0,0,0,.15);
}

.tl-card-printer::before,
.tl-tool-printer::before,
.tl-row-printer::before {
    content: "";
    position: absolute;
    left: 13%;
    right: 13%;
    top: -29%;
    height: 37%;
    border-radius: 2px;
    background: #eceff2;
    border: 1px solid #d0d5dc;
}

.tl-card-printer i,
.tl-tool-printer i,
.tl-row-printer i {
    position: absolute;
    left: 11%;
    right: 11%;
    top: 25%;
    height: 14%;
    background: #101316;
    border-radius: 2px;
}

.tl-card-printer b {
    position: absolute;
    right: 11%;
    bottom: 14%;
    width: 24%;
    height: 28%;
    background: repeating-linear-gradient(90deg,#263338 0 4px,#579064 4px 6px,#263338 6px 10px);
}

.tl-card-printer em {
    position: absolute;
    left: 24%;
    right: 24%;
    bottom: -13%;
    height: 24%;
    border-radius: 2px;
    background: #e8eef4;
}

.tl-card-printer-muted {
    background: #eef1f5;
    border: 2px solid #c9d0da;
    box-shadow: none;
}

.tl-brand-card > b {
    font-size: 11px;
}

.tl-brand-card > p {
    min-height: 35px;
    margin: 2px 0 9px;
    color: #506078;
    font-size: 10px;
    line-height: 1.35;
}

.tl-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 122px;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid #1670f4;
    border-radius: 5px;
    color: #0867ec;
    font-size: 10px;
    font-weight: 750;
}

.tl-outline-btn i {
    font-style: normal;
}

.tl-outline-btn.tl-solid {
    color: #fff;
    background: #086bf2;
}

.tl-popular-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.tl-tool-card {
    min-width: 0;
    min-height: 128px;
    padding: 14px 13px 11px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e7f0;
    border-radius: 7px;
    background: #fff;
    color: #15243e;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15,43,80,.028);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tl-tool-card:hover {
    transform: translateY(-2px);
    border-color: #b6d1f5;
    box-shadow: 0 9px 21px rgba(12,46,93,.08);
}

.tl-tool-printer {
    width: 47px;
    height: 27px;
    margin-bottom: 10px;
}

.tl-tool-printer b {
    position: absolute;
    left: 23%;
    right: 23%;
    bottom: -12%;
    height: 21%;
    background: #e9eef5;
}

.tl-tool-card > strong {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 11px;
    line-height: 1.3;
}

.tl-tool-card > small {
    overflow: hidden;
    display: -webkit-box;
    min-height: 27px;
    margin-top: 2px;
    color: #52617a;
    font-size: 10px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tl-tool-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: auto;
}

.tl-ready,
.tl-popular-badge {
    max-width: calc(100% - 24px);
    overflow: hidden;
    padding: 4px 8px;
    border-radius: 5px;
    background: #ddf8e5;
    color: #168441;
    font-size: 8px;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tl-popular-badge {
    background: #e9f2ff;
    color: #0c68e9;
}

.tl-tool-card > div > i {
    color: #0b6eef;
    font-style: normal;
}

.tl-problem-section {
    padding-top: 28px;
}

.tl-problem-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.tl-problem-card {
    min-height: 105px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f0;
    border-radius: 7px;
    background: #fff;
    color: #15243d;
    text-align: center;
    text-decoration: none;
}

.tl-problem-card:hover {
    border-color: #b8d1f2;
    box-shadow: 0 7px 18px rgba(13,48,94,.07);
}

.tl-problem-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    border-radius: 9px;
    background: #edf5ff;
    color: #096bee;
}

.tl-problem-icon svg {
    width: 26px;
    height: 26px;
}

.tl-icon-warning { color: #f13535; background: #fff0f0; }
.tl-icon-drop { color: #f6a11b; background: #fff7e8; }
.tl-icon-gear { color: #176ef2; background: #eef5ff; }
.tl-icon-printer { color: #8c43e8; background: #f6efff; }
.tl-icon-document { color: #19a64b; background: #ecfaef; }
.tl-icon-more { color: #66758a; background: #f5f7fa; }

.tl-problem-card strong {
    font-size: 10px;
    line-height: 1.25;
}

.tl-problem-card small {
    margin-top: 3px;
    color: #0b69e8;
    font-size: 9px;
}

.tl-problem-card small i {
    font-style: normal;
}

.tl-bottom-section {
    padding-top: 34px;
    padding-bottom: 36px;
}

.tl-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.05fr;
    gap: 26px;
}

.tl-list-panel {
    min-width: 0;
}

.tl-panel-heading {
    min-height: 38px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.tl-panel-heading h3 {
    font-size: 15px;
}

.tl-panel-heading p {
    font-size: 9px;
}

.tl-row-list,
.tl-knowledge-list {
    overflow: hidden;
    border: 1px solid #dfe7f0;
    border-radius: 7px;
    background: #fff;
}

.tl-row-list > a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 14px;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    padding: 7px 10px;
    border-bottom: 1px solid #e8edf4;
    color: #142440;
    text-decoration: none;
}

.tl-row-list > a:last-child,
.tl-knowledge-list > a:last-child {
    border-bottom: 0;
}

.tl-row-list > a:hover,
.tl-knowledge-list > a:hover {
    background: #f8fbff;
}

.tl-row-printer {
    width: 35px;
    height: 21px;
}

.tl-row-list > a > span:nth-child(2) {
    min-width: 0;
}

.tl-row-list strong,
.tl-row-list small {
    display: block;
}

.tl-row-list strong {
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tl-row-list small {
    margin-top: 2px;
    color: #738197;
    font-size: 8px;
}

.tl-row-list em {
    padding: 3px 7px;
    border-radius: 999px;
    background: #dff8e5;
    color: #168740;
    font-size: 7px;
    font-style: normal;
    font-weight: 750;
    white-space: nowrap;
}

.tl-request-list em {
    border: 1px solid #a9cdfd;
    border-radius: 4px;
    background: #f4f9ff;
    color: #0969ed;
}

.tl-row-list > a > i {
    color: #0969ed;
    font-style: normal;
}

.tl-knowledge-list > a {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    border-bottom: 1px solid #e8edf4;
    color: #172741;
    text-decoration: none;
}

.tl-knowledge-list > a span {
    color: #0a6bed;
    font-size: 12px;
}

.tl-knowledge-list > a:nth-child(2) span { color: #f23e3e; }
.tl-knowledge-list > a:nth-child(3) span { color: #1aa352; }
.tl-knowledge-list > a:nth-child(4) span { color: #f39b17; }
.tl-knowledge-list > a:nth-child(5) span { color: #20a35b; }

.tl-knowledge-list strong {
    font-size: 9px;
    font-weight: 600;
}

.tl-view-articles {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    padding: 6px 11px;
    border: 1px solid #1570f5;
    border-radius: 5px;
    color: #0968ec;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.tl-empty-wide {
    grid-column: 1 / -1;
    padding: 25px;
    border: 1px dashed #ced9e8;
    border-radius: 8px;
    color: #728095;
    text-align: center;
}

/* Footer matches the approved homepage direction */
.home-library-page .site-footer-v2 {
    margin-top: 0;
}

.site-footer-v2 {
    padding: 37px 0 17px;
    background: linear-gradient(110deg, #10213b, #0b1b34 55%, #0a1a31);
    color: #d9e2ef;
    border-top: 0;
}

.site-footer-main {
    display: grid;
    grid-template-columns: 1.35fr .7fr .8fr .72fr 1.05fr;
    gap: 38px;
    align-items: start;
}

.site-footer-brand-block {
    min-width: 0;
}

.site-footer-logo {
    display: block;
    width: fit-content;
    color: #fff;
    text-decoration: none;
}

.site-footer-logo img {
    display: block;
    max-width: 160px;
    max-height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.site-footer-logo strong {
    color: #fff;
    font: 800 21px Manrope, sans-serif;
}

.site-footer-logo strong span {
    color: #2a7dff;
}

.site-footer-brand-block > small {
    display: block;
    margin-top: 5px;
    color: #bcc9da;
    font-size: 10px;
}

.site-footer-brand-block p,
.site-footer-request p {
    margin: 12px 0 0;
    color: #aebbd0;
    font-size: 10px;
    line-height: 1.55;
}

.site-footer-column,
.site-footer-request {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.site-footer-column > strong,
.site-footer-request > strong {
    margin-bottom: 2px;
    color: #fff;
    font-size: 10px;
}

.site-footer-column a {
    color: #bcc9d9;
    font-size: 9px;
    text-decoration: none;
}

.site-footer-column a:hover {
    color: #fff;
}

.site-footer-request > a {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 13px;
    border-radius: 5px;
    background: #0b6ef4;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-bottom-v2 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.site-footer-bottom-v2 small {
    color: #9faec2;
    font-size: 8px;
}

@media (max-width: 1180px) {
    .tool-library-home .container {
        width: min(100% - 40px, 1120px);
    }

    .tl-hero-grid {
        grid-template-columns: minmax(0, 1fr) 470px;
        gap: 32px;
    }
}

@media (max-width: 860px) {
    .home-library-page .header-extra-link {
        display: none !important;
    }

    .home-library-page .header-actions {
        gap: 17px;
    }

    .tl-hero {
        padding-top: 32px;
    }

    .tl-hero-grid {
        grid-template-columns: 1fr;
    }

    .tl-hero-visual {
        min-height: 315px;
    }

    .tl-printer-scene {
        max-width: 610px;
        width: 100%;
        margin: 0 auto 24px;
    }

    .tl-hand-note {
        right: 10%;
    }

    .tl-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tl-popular-grid,
    .tl-problem-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tl-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tl-knowledge-panel {
        grid-column: 1 / -1;
    }

    .site-footer-main {
        grid-template-columns: 1.25fr repeat(3, .7fr);
    }

    .site-footer-request {
        grid-column: 1 / -1;
        padding-top: 6px;
    }
}

@media (max-width: 680px) {
    .tool-library-home .container {
        width: min(100% - 28px, 620px);
    }

    .home-library-page .site-header-inner {
        min-height: 62px;
    }

    .home-library-page .site-logo img {
        height: 32px;
        max-width: 170px;
    }

    .home-library-page .header-actions > a:not(.header-search-link) {
        display: none;
    }

    .tl-hero {
        padding: 26px 0 22px;
    }

    .tl-hero-copy {
        padding-top: 2px;
    }

    .tl-hero h1 {
        font-size: 42px;
        line-height: 1.02;
    }

    .tl-hero-copy > p {
        font-size: 15px;
    }

    .tl-search {
        grid-template-columns: 20px 1fr;
        gap: 8px;
        border-radius: 9px;
        padding: 7px 9px 7px 14px;
    }

    .tl-search button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 43px;
    }

    .tl-search-results {
        top: calc(100% + 6px);
    }

    .tl-popular-searches {
        align-items: flex-start;
    }

    .tl-popular-searches strong {
        width: 100%;
    }

    .tl-hero-visual {
        min-height: 262px;
    }

    .tl-printer-scene {
        height: 175px;
    }

    .tl-printer-main {
        height: 108px;
    }

    .tl-printer-left,
    .tl-printer-right {
        height: 82px;
    }

    .tl-hand-note {
        display: none;
    }

    .tl-hero-stats {
        gap: 5px;
    }

    .tl-hero-stats small {
        font-size: 8px;
    }

    .tl-section {
        padding-top: 27px;
    }

    .tl-section-heading {
        align-items: flex-start;
    }

    .tl-section-heading h2 {
        font-size: 20px;
    }

    .tl-brand-grid,
    .tl-popular-grid,
    .tl-problem-grid,
    .tl-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tl-popular-grid {
        gap: 10px;
    }

    .tl-brand-card {
        min-height: 220px;
    }

    .tl-bottom-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tl-knowledge-panel {
        grid-column: auto;
    }

    .site-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .site-footer-brand-block,
    .site-footer-request {
        grid-column: 1 / -1;
    }

    .site-footer-bottom-v2 {
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .tl-hero h1 {
        font-size: 36px;
    }

    .tl-hero-visual {
        min-height: 245px;
    }

    .tl-brand-grid,
    .tl-popular-grid,
    .tl-problem-grid {
        grid-template-columns: 1fr;
    }

    .tl-brand-card {
        min-height: 210px;
    }

    .tl-tool-card {
        min-height: 118px;
    }
}

/* V9: Epson-only homepage until other brand files are available */
.tl-family-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tl-family-card {
    min-height: 106px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 17px 18px;
    border: 1px solid var(--tl-line);
    border-radius: 12px;
    background: #fff;
    color: var(--tl-navy);
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(18, 43, 77, .035);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tl-family-card:hover {
    transform: translateY(-3px);
    border-color: #b9d3f7;
    box-shadow: 0 14px 30px rgba(18, 43, 77, .08);
}

.tl-family-card > div {
    min-width: 0;
}

.tl-family-card strong,
.tl-family-card small {
    display: block;
}

.tl-family-card strong {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 800;
}

.tl-family-card small {
    color: #718096;
    font-size: 11px;
}

.tl-family-card > i {
    color: #0d6df2;
    font-style: normal;
    font-size: 18px;
}

.tl-family-printer {
    position: relative;
    width: 62px;
    height: 46px;
    display: block;
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(180deg, #30363d, #11151a);
    box-shadow: 0 7px 12px rgba(7, 18, 33, .13);
}

.tl-family-printer::before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: -10px;
    height: 15px;
    border: 1px solid #d2d9e1;
    border-radius: 4px 4px 1px 1px;
    background: #edf1f5;
}

.tl-family-printer i {
    position: absolute;
    left: 7px;
    right: 7px;
    top: 10px;
    height: 7px;
    border-radius: 2px;
    background: #080a0d;
}

.tl-family-printer b {
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: -5px;
    height: 11px;
    border-radius: 1px 1px 3px 3px;
    background: linear-gradient(180deg, #eaf0f6, #fff);
}

.tl-family-printer em {
    position: absolute;
    right: 6px;
    bottom: 5px;
    width: 13px;
    height: 15px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg,#222 0 3px,#4b9b61 3px 5px,#222 5px 8px);
}

.tl-family-card-wide {
    grid-column: 1 / -1;
}

.tl-bottom-grid-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tl-panel-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #718096;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 980px) {
    .tl-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-bottom-grid-clean { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tl-family-grid { grid-template-columns: 1fr; }
}
