@charset "UTF-8";
/* ==========================================================================
   Technical Insights – landing page (/en/technical/)
   Page-only styles. Navbar, banner and footer come from global.css
   (loaded by [hb_header]).
   ========================================================================== */

.nymainbody { padding: 40px 0 60px; background-color: #f4f4f4; }

.ti-main { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ti-card {
    padding: 0 30px 30px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.ti-header {
    margin: 0 -30px 24px;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    background-color: #323232;
}

.ti-layout { display: flex; gap: 30px; align-items: flex-start; }
.ti-left { flex: 1 1 auto; min-width: 0; }
.ti-right { flex: 0 0 200px; }

/* ── Search ── */
.ti-search { display: flex; gap: 8px; margin-bottom: 12px; }
.ti-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    font: inherit;
    font-size: 16px;               /* 16px stops iOS zooming on focus */
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.ti-search input:focus { border-color: #555; box-shadow: 0 0 0 2px rgba(0, 0, 0, .08); }
.ti-search button {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
    color: #fff;
    background-color: #323232;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s;
}
.ti-search button:hover,
.ti-search button:focus-visible { background-color: #555; }

/* ── Article list ── */
.ti-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    transition: background-color .15s;
}
.ti-item:last-child { border-bottom: none; }
.ti-item:hover { background-color: #f9f9f9; }
.ti-item[hidden] { display: none; }

.ti-thumb { flex: 0 0 75px; display: block; width: 75px; height: 75px; }
.ti-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }

.ti-text { flex: 1 1 auto; min-width: 0; }
.ti-text h3 { margin: 0 0 4px; font-size: 15px; font-weight: 400; line-height: 1.4; }
.ti-text h3 a { color: #222; transition: color .2s; }
.ti-text h3 a:hover { color: #555; }
.ti-text p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #666; }
.ti-text .ti-date { color: #888; }

.ti-empty { padding: 20px; text-align: center; color: #888; }

/* ── Year filter ── */
.ti-years {
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}
.ti-years h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 16px;
    text-align: center;
    color: #333;
    border-bottom: 2px solid #ccc;
}
.ti-years ul { margin: 0; padding: 0; list-style: none; text-align: center; }
.ti-years li { margin: 4px 0; }
.ti-years button {
    display: block;
    width: 100%;
    padding: 8px;
    font: inherit;
    font-size: 14px;
    color: #333;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.ti-years button:hover,
.ti-years button.is-active { color: #fff; background-color: #555; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ti-right { flex-basis: 160px; }
}

@media (max-width: 768px) {
    .nymainbody { padding: 20px 0 40px; }
    .ti-main { padding: 0 12px; }
    .ti-card { padding: 0 16px 16px; border-radius: 8px; }
    .ti-header { margin: 0 -16px 16px; font-size: 20px; }

    .ti-layout { flex-direction: column; gap: 12px; }
    .ti-left, .ti-right { flex: 1 1 auto; width: 100%; }
    .ti-right { order: -1; }                 /* year pills above the list */

    .ti-search { flex-direction: column; }
    .ti-search button { width: 100%; }

    .ti-years { padding: 0; background: none; box-shadow: none; }
    .ti-years h3 { display: none; }
    .ti-years ul { display: flex; flex-wrap: wrap; gap: 8px; }
    .ti-years li { margin: 0; }
    .ti-years button {
        padding: 7px 16px;
        font-size: 13px;
        color: #444;
        background: #fff;
        border: 1px solid #aaa;
        border-radius: 20px;
    }
    .ti-years button:hover,
    .ti-years button.is-active { color: #fff; background-color: #444; border-color: #444; }

    .ti-thumb { flex-basis: 65px; width: 65px; height: 65px; }
    .ti-text h3 { font-size: 14px; }
    .ti-text p { font-size: 12px; }
}

@media (max-width: 375px) {
    .ti-thumb { flex-basis: 55px; width: 55px; height: 55px; }
    .ti-text h3 { font-size: 13px; }
}