/* Trust & Continuity — aligned with Figma Trust & Continuity-V3 (1920) */

:root {
    --trust-blue: #315edb;
    --trust-title: #323232;
    --trust-body: #646464;
    --trust-muted: #506399;
    --trust-grey-bg: #f4f5f5;
    --trust-table-head: #f4f5f5;
    --trust-border: #e8eaed;
    --trust-content: 1400px;
    --trust-gutter: max(20px, calc((100% - var(--trust-content)) / 2));
}

/* Hero */
.trust-hero {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    align-items: center;
    background-color: #1a2a4a;
    color: #fff;
    overflow: hidden;
}
.trust-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.trust-hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trust-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 40, 0.72) 0%, rgba(8, 18, 40, 0.35) 55%, rgba(8, 18, 40, 0.15) 100%);
    z-index: 1;
}
.trust-hero:after { display: none; }
.trust-hero .trust-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--trust-content);
    margin: 0 auto;
    padding: 120px var(--trust-gutter) 100px;
}
.trust-hero h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 28px;
    max-width: 910px;
}
.trust-hero .intro {
    font-size: 20px;
    line-height: 30px;
    max-width: 880px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
}

/* Framework blocks */
.trust-framework {
    width: 100%;
    padding: 100px 0;
    background-color: transparent;
}
.trust-framework .tf-inner {
    max-width: var(--trust-content);
    margin: 0 auto;
    padding: 0 var(--trust-gutter);
    display: flex;
    align-items: center;
    gap: 80px;
}
.trust-framework.reverse .tf-inner { flex-direction: row-reverse; }
.trust-framework.normal .tf-inner { flex-direction: row; }
.trust-framework .tf-text {
    flex: 1;
    min-width: 0;
    position: relative;
}
.trust-framework .tf-head {
    position: relative;
    margin-bottom: 18px;
}
.trust-framework .tf-num {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-58%);
    font-size: 134px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(-57deg, rgba(49, 94, 219, 0.5) 54.6%, rgba(212, 222, 250, 0.5) 63.5%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.8;
    pointer-events: none;
    user-select: none;
}
.trust-framework h2 {
    position: relative;
    z-index: 1;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    padding-top: 18px;
    color: var(--trust-title);
}
.trust-framework .tf-sub {
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    color: var(--trust-blue);
    margin-bottom: 22px;
}
.trust-framework .tf-desc {
    font-size: 20px;
    line-height: 30px;
    color: var(--trust-body);
    font-weight: 400;
}
.trust-framework .tf-desc p { margin: 0 0 12px; }
.trust-framework .tf-img {
    flex: 0 0 600px;
    width: 600px;
    max-width: 46%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f6;
}
.trust-framework .tf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark background framework (e.g. section 03 #232D36) */
.trust-framework.is-dark h2 { color: #fff; }
.trust-framework.is-dark .tf-sub { color: #7ea0f0; }
.trust-framework.is-dark .tf-desc { color: rgba(255, 255, 255, 0.78); }
.trust-framework.is-dark .tf-desc p { color: inherit; }
.trust-framework.is-dark .tf-num {
    background: linear-gradient(-57deg, rgba(126, 160, 240, 0.55) 54.6%, rgba(212, 222, 250, 0.35) 63.5%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Patents section wrapper */
.trust-patents-wrap {
    background: var(--trust-grey-bg);
    padding: 80px 0 60px;
}
.trust-patents-heading {
    max-width: var(--trust-content);
    margin: 0 auto;
    padding: 0 var(--trust-gutter) 36px;
    text-align: left;
}
.trust-patents-heading h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--trust-title);
}
.trust-patents-heading .ph-sub {
    font-size: 20px;
    line-height: 30px;
    color: var(--trust-body);
    max-width: 1240px;
    margin: 0 0 24px;
}
.trust-patents-heading .ph-note-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: var(--trust-content);
    min-height: 95px;
    background: #eceef0;
    border-radius: 8px;
    padding: 18px 28px;
    font-size: 14px;
    line-height: 20px;
    color: #646464;
    text-align: left;
    box-sizing: border-box;
}
.trust-patents-heading .ph-note-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin-top: 1px;
}
.trust-patents-heading .ph-note-text {
    flex: 1;
    min-width: 0;
}
.trust-patents-heading .ph-note-text p {
    margin: 0;
}

/* Patent category — 3-column Figma layout */
.trust-patents {
    max-width: var(--trust-content);
    margin: 0 auto;
    padding: 0 var(--trust-gutter);
}
.trust-patent-cat {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    padding: 32px 40px;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.06);
}
.trust-patent-cat .tpc-layout {
    display: grid;
    grid-template-columns: 280px 340px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}
.trust-patent-cat .tpc-icon-col {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-patent-cat .tpc-icon-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.trust-patent-cat .tpc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(49, 94, 219, 0.12);
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    margin-bottom: 16px;
    max-width: 100%;
    min-height: 37px;
    box-shadow: none;
}
.trust-patent-cat .tpc-badge .num {
    font-size: 14px;
    font-weight: 700;
    color: var(--trust-blue);
    flex: 0 0 auto;
    line-height: 37px;
}
.trust-patent-cat .tpc-badge .label {
    font-size: 14px;
    font-weight: 700;
    color: var(--trust-blue);
    line-height: 1.3;
    padding: 8px 0;
}
.trust-patent-cat .tpc-desc {
    font-size: 14px;
    line-height: 20px;
    color: var(--trust-body);
}

/* Table */
.trust-patent-cat .tpc-table-col { min-width: 0; }
.trust-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--trust-border);
    border-radius: 9px;
}
.trust-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.trust-table th {
    background: var(--trust-table-head);
    color: var(--trust-muted);
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--trust-border);
}
.trust-table .th-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trust-table .th-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    object-fit: contain;
    display: block;
}
.trust-table th:first-child { border-radius: 9px 0 0 0; }
.trust-table th:last-child { border-radius: 0 9px 0 0; }
.trust-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--trust-border);
    color: #323542;
    font-size: 12px;
    line-height: 20px;
    vertical-align: middle;
}
.trust-table tbody tr:last-child td { border-bottom: none; }
.trust-table .col-no {
    width: 48px;
    color: #323542;
    font-size: 10px;
    border-right: 1px solid var(--trust-border);
}
.trust-table .col-patent { font-size: 12px; }
.trust-table .col-record a {
    color: var(--trust-blue);
    text-decoration: none;
    font-size: 12px;
}
.trust-table .col-record a.record-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.trust-table .col-record .record-link-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    display: block;
}
.trust-table .col-record a:hover { text-decoration: underline; }
.trust-table .col-record .record-nopub {
    color: #bab9b9;
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
}

/* Jurisdiction — flag + code + name with Figma marker highlight */
.juris {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.juris .juris-flag-icon,
.juris .juris-flag-img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.juris .juris-flag-img {
    display: block;
    object-fit: cover;
}
.juris .juris-flag-icon {
    font-size: 18px;
    line-height: 18px;
}
.juris .juris-code {
    font-size: 12px;
    font-weight: 700;
    color: #323542;
    line-height: 20px;
    min-width: 14px;
}
.juris .juris-name {
    display: inline;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: #323542;
    padding: 0 4px;
    /* Figma: 14px marker bar behind country name (avoid z-index:-1 under table) */
    background-image: linear-gradient(rgba(80, 99, 153, 0.12), rgba(80, 99, 153, 0.12));
    background-repeat: no-repeat;
    background-size: 100% 14px;
    background-position: 0 3px;
}

/* Status — Figma 14px pill badge */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 14px;
    padding: 0 6px 0 5px;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    white-space: nowrap;
    vertical-align: middle;
}
.status-tag .status-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 3px;
}
.status-Granted { background: rgba(90, 184, 125, 0.18); color: #5ab87d; }
.status-InExam { background: rgba(243, 153, 96, 0.2); color: #f39960; }
.status-Pending { background: rgba(244, 204, 74, 0.25); color: #c9a61a; }
.status-NoPub { background: rgba(186, 185, 185, 0.25); color: #8a8a8a; }

/* Footer: Load More + pager */
.tpc-table-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 14px;
    min-height: 28px;
}
.trust-loadmore {
    font-size: 12px;
    color: var(--trust-blue);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    text-decoration: none;
}
.trust-loadmore:hover { text-decoration: underline; }
.trust-loadmore.is-hidden { display: none; }
.trust-pager {
    display: flex;
    align-items: center;
    gap: 17px;
}
.trust-pager a,
.trust-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0.5px solid #d5d9e0;
    border-radius: 5px;
    background: #f4f7f9;
    font-size: 12px;
    line-height: 20px;
    color: #bab9b9;
    text-decoration: none;
    cursor: pointer;
}
.trust-pager a:hover {
    border-color: var(--trust-blue);
    color: var(--trust-blue);
}
.trust-pager .cur {
    background: #fff;
    color: #323542;
    border-color: #c5cad3;
    font-weight: 700;
}

/* Bottom banner */

@media (max-width: 1200px) {
    .trust-patent-cat .tpc-layout {
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto auto;
    }
    .trust-patent-cat .tpc-icon-col {
        width: 200px;
        height: 200px;
    }
    .trust-patent-cat .tpc-table-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .trust-hero { min-height: 520px; }
    .trust-hero h1 { font-size: 36px; }
    .trust-hero .intro { font-size: 16px; line-height: 26px; }
    .trust-hero .trust-hero-inner { padding: 80px 18px 60px; }
    .trust-framework { padding: 56px 0; }
    .trust-framework .tf-inner {
        flex-direction: column !important;
        gap: 28px;
    }
    .trust-framework .tf-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 600 / 350;
    }
    .trust-framework .tf-num { font-size: 80px; }
    .trust-framework h2 { font-size: 26px; }
    .trust-framework .tf-sub { font-size: 18px; }
    .trust-framework .tf-desc { font-size: 16px; line-height: 26px; }
    .trust-patents-heading h2 { font-size: 26px; }
    .trust-patents-heading .ph-note-box { padding: 14px 18px; text-align: left; }
    .trust-patent-cat .tpc-layout {
        grid-template-columns: 1fr;
    }
    .trust-patent-cat .tpc-icon-col {
        width: 160px;
        height: 160px;
    }
    .trust-table { font-size: 11px; }
    .trust-table th, .trust-table td { padding: 8px 10px; }
}
