/* Knowledge Center */

/* Shared breadcrumbs */
.resource-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 700;
}

.resource-breadcrumbs a {
    color: #ff6a26;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-breadcrumbs a:hover {
    color: #ffffff;
}

.resource-breadcrumbs a:focus-visible {
    border-radius: 2px;
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

/* Main Knowledge Center split hero */
.resource-hero.resource-hero--index {
    width: 100vw;
    min-height: 0;
    margin: -2.35rem calc(50% - 50vw) 0;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(3, 22, 41, 0.1);
    background: #ffffff;
}

.resource-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: min(1180px, calc(100% - 2rem));
    min-height: 34rem;
    margin: 0 auto;
}

.resource-hero--index .resource-hero__copy {
    position: relative;
    display: grid;
    align-content: center;
    gap: 0.8rem;
    max-width: none;
    padding: clamp(3.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.75rem) clamp(3.5rem, 6vw, 5rem) 0;
    background: #031629;
}

.resource-hero--index .resource-hero__copy::before {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    width: 50vw;
    background: #031629;
}

.resource-hero--index .resource-breadcrumbs {
    margin-bottom: 0.55rem;
}

.resource-hero--index .home-kicker,
.resource-hero--category .home-kicker {
    color: #f85000;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.resource-hero--index .resource-hero__copy h1,
.resource-hero--index .resource-hero__copy p {
    margin: 0;
}

.resource-hero--index .resource-hero__copy h1 {
    max-width: 35rem;
    color: #ffffff;
    font-size: clamp(2.65rem, 4.8vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.resource-hero--index .resource-hero__copy p {
    max-width: 39rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.99rem;
    line-height: 1.72;
}

.resource-hero__media {
    position: relative;
    min-height: 34rem;
    margin: 0;
    overflow: hidden;
    border-left: 3px solid #f85000;
    background: #ffffff;
}

.resource-hero__media img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: min(30rem, 94%);
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(1rem 1.15rem 0.9rem rgba(3, 22, 41, 0.2));
}

/* Category header: intentionally single-panel */
.resource-hero.resource-hero--category {
    display: grid;
    align-content: center;
    gap: 1.25rem;
    width: 100vw;
    min-height: 23rem;
    margin: -2.35rem calc(50% - 50vw) 0;
    padding: clamp(3.25rem, 6vw, 4.75rem) max(calc((100vw - 1180px) / 2), 1rem);
    border-bottom: 3px solid #f85000;
    background: #031629;
    color: #ffffff;
}

.resource-hero--category .resource-hero__copy {
    display: grid;
    gap: 0.75rem;
    max-width: 62rem;
}

.resource-hero--category .resource-hero__copy h1,
.resource-hero--category .resource-hero__copy p {
    margin: 0;
}

.resource-hero--category .resource-hero__copy h1 {
    max-width: 54rem;
    color: #ffffff;
    font-size: clamp(2.45rem, 4.8vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.024em;
}

.resource-hero--category .resource-hero__copy p {
    max-width: 54rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    line-height: 1.72;
}

/* Main category directory */
.resource-section {
    display: grid;
    gap: 2.5rem;
    margin-top: clamp(4.75rem, 8vw, 7rem);
}

.resource-section__header,
.resource-browser__header {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: end;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.resource-section__header h2,
.resource-section__header p,
.resource-browser__header h2,
.resource-browser__header p {
    margin: 0;
}

.resource-section__header h2,
.resource-browser__header h2 {
    color: #031629;
    font-size: clamp(1.95rem, 3.3vw, 2.75rem);
    line-height: 1.13;
    letter-spacing: -0.018em;
}

.resource-section__header h2::before,
.resource-browser__header h2::before {
    content: "";
    display: block;
    width: 2.6rem;
    height: 3px;
    margin-bottom: 1rem;
    background: #f85000;
}

.resource-section__header p,
.resource-browser__header p {
    max-width: 44rem;
    color: #555e69;
    font-size: 1rem;
    line-height: 1.75;
}

.resource-card-grid.resource-card-grid--large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(3, 22, 41, 0.14);
    border-bottom: 1px solid rgba(3, 22, 41, 0.14);
    counter-reset: resource-category;
}

.resource-card.resource-card--large {
    position: relative;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-content: start;
    gap: 0.75rem 1rem;
    min-height: 13.5rem;
    padding: 1.5rem 1.4rem;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(3, 22, 41, 0.14);
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    counter-increment: resource-category;
    transition: background-color 0.24s ease, color 0.24s ease;
}

.resource-card.resource-card--large:nth-child(odd) {
    border-right: 1px solid rgba(3, 22, 41, 0.14);
}

.resource-card.resource-card--large:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
}

.resource-card.resource-card--large::before {
    content: "0" counter(resource-category);
    position: static;
    grid-column: 1;
    grid-row: 1 / span 3;
    width: auto;
    height: auto;
    color: #f85000;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.5;
    opacity: 1;
    transition: color 0.24s ease;
}

.resource-card.resource-card--large:hover {
    transform: none;
    border-color: rgba(3, 22, 41, 0.14);
    background: #f3f5f7;
    color: inherit;
    box-shadow: none;
}

.resource-card.resource-card--large:hover::before {
    color: #031629;
}

.resource-card.resource-card--large:focus-visible {
    z-index: 1;
    outline: 3px solid rgba(248, 80, 0, 0.42);
    outline-offset: -3px;
}

.resource-card__heading,
.resource-card__body,
.resource-card__action {
    grid-column: 2;
}

.resource-card__heading {
    display: grid;
    align-items: start;
    gap: 0.4rem;
}

.resource-card__heading h3 {
    margin: 0;
    color: #031629;
    font-size: 1.1rem;
    line-height: 1.35;
}

.resource-card__count {
    color: #6a727d;
    font-size: 0.78rem;
    font-weight: 700;
}

.resource-card__body {
    display: grid;
    gap: 0;
}

.resource-card__body p {
    margin: 0;
    color: #555e69;
    font-size: 0.95rem;
    line-height: 1.68;
}

.resource-card__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: fit-content;
    min-width: 7.5rem;
    align-self: end;
    padding: 0 0 0.24rem;
    border: 0;
    color: #031629;
    font-size: 0.9rem;
    font-weight: 800;
}

.resource-card__action::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: #f85000;
    transform: scaleX(0.36);
    transform-origin: left;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.resource-card:hover .resource-card__action::after,
.resource-card:focus-visible .resource-card__action::after {
    background: #031629;
    transform: scaleX(1);
}

/* Cross-site decision links */
.resource-link-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
    width: 100vw;
    margin: clamp(4.75rem, 8vw, 7rem) calc(50% - 50vw) -4rem;
    padding: clamp(3.75rem, 6vw, 5.25rem) max(calc((100vw - 1180px) / 2), 1rem);
    border: 0;
    background: #031629;
    color: #ffffff;
}

.resource-link-section h2,
.resource-link-section p {
    margin: 0;
}

.resource-link-section h2 {
    color: #ffffff;
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    line-height: 1.14;
    letter-spacing: -0.018em;
}

.resource-link-section p {
    max-width: 42rem;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.72;
}

.resource-link-section__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.resource-link-section__links a {
    padding: 0.9rem 0.15rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.resource-link-section__links a:nth-child(odd) {
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.resource-link-section__links a:nth-child(even) {
    padding-left: 1rem;
}

.resource-link-section__links a:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #ff6a26;
}

.resource-link-section__links a:focus-visible {
    outline: 2px solid #f85000;
    outline-offset: 3px;
}

/* Category search and article listing */
.resource-browser {
    display: grid;
    gap: 2.5rem;
    margin-top: clamp(4.75rem, 8vw, 6.5rem);
}

.resource-browser__header {
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(3, 22, 41, 0.14);
}

.resource-browser__header > div {
    display: grid;
    gap: 0.75rem;
}

.resource-browser__header .home-kicker {
    letter-spacing: 0.08em;
}

.resource-browser__count {
    color: #6a727d;
    font-size: 0.82rem;
    font-weight: 800;
}

.resource-search {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid rgba(3, 22, 41, 0.13);
    border-radius: 5px;
    background: #f3f5f7;
}

.resource-search label {
    color: #031629;
    font-size: 0.8rem;
    font-weight: 800;
}

.resource-search__field {
    display: flex;
    gap: 0.55rem;
}

.resource-search input {
    width: 100%;
    min-width: 0;
    min-height: 3.3rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(3, 22, 41, 0.18);
    border-radius: 4px;
    background: #ffffff;
    color: #031629;
    font: inherit;
    box-shadow: none;
}

.resource-search input:hover:not(:focus) {
    border-color: rgba(3, 22, 41, 0.34);
}

.resource-search input:focus {
    border-color: #f85000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 80, 0, 0.16);
}

button.resource-search__submit {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    padding: 0.8rem 1.1rem;
    border: 1px solid #f85000;
    border-radius: 4px;
    background: #f85000;
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

button.resource-search__submit:hover {
    border-color: #031629;
    background: #031629;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

button.resource-search__submit:focus-visible {
    outline: 3px solid rgba(248, 80, 0, 0.36);
    outline-offset: 3px;
}

.resource-empty {
    display: grid;
    align-content: center;
    gap: 0.8rem;
    min-height: 18rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(3, 22, 41, 0.13);
    border-left: 3px solid #f85000;
    border-radius: 4px;
    background: #f3f5f7;
}

.resource-empty .home-kicker {
    letter-spacing: 0.08em;
}

.resource-empty h3,
.resource-empty p {
    margin: 0;
}

.resource-empty h3 {
    max-width: 42rem;
    color: #031629;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.16;
}

.resource-empty p {
    max-width: 48rem;
    color: #555e69;
    line-height: 1.75;
}

.resource-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.55rem;
}

.resource-empty__actions .button {
    border-radius: 4px;
    box-shadow: none;
}

.resource-empty__actions .button--accent {
    background: #f85000;
    color: #ffffff;
}

.resource-empty__actions .button:hover {
    border-color: #031629;
    background: #031629;
    color: #ffffff;
    box-shadow: none;
}

.resource-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resource-article-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(3, 22, 41, 0.13);
    border-radius: 5px;
    background: #ffffff;
    color: inherit;
    box-shadow: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.resource-article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 80, 0, 0.68);
    box-shadow: 0 12px 26px rgba(3, 22, 41, 0.08);
}

.resource-article-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ecef;
    color: #555e69;
    font-size: 0.82rem;
    font-weight: 800;
}

.resource-article-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-article-card:hover .resource-article-card__media img {
    transform: scale(1.025);
}

.resource-article-card__body {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 0.65rem;
    padding: 1.1rem;
}

.resource-article-card__category {
    color: #a93400;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.resource-article-card h3 {
    margin: 0;
    color: #031629;
    font-size: 1.05rem;
    line-height: 1.32;
}

.resource-article-card h3 a {
    color: inherit;
}

.resource-article-card h3 a:hover {
    color: #a93400;
}

.resource-article-card p {
    margin: 0;
    color: #555e69;
    font-size: 0.92rem;
    line-height: 1.62;
}

.resource-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    color: #6a727d;
    font-size: 0.78rem;
}

.resource-card__link {
    position: relative;
    width: fit-content;
    padding-bottom: 0.23rem;
    border: 0;
    color: #031629;
    font-size: 0.88rem;
    font-weight: 800;
}

.resource-card__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: #f85000;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.resource-card__link:hover::after {
    background: #031629;
    transform: scaleX(0.72);
    transform-origin: left;
}

.resource-browser .pagination {
    border-top-color: rgba(3, 22, 41, 0.13);
}

.resource-browser .pagination__link {
    border-radius: 4px;
}

/* Article masthead and reading surface */
.resource-article {
    display: block;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.resource-article__masthead {
    width: 100vw;
    margin: -2.35rem calc(50% - 50vw) 0;
    padding: clamp(3.5rem, 6vw, 5.25rem) max(calc((100vw - 1180px) / 2), 1rem);
    border-bottom: 1px solid rgba(3, 22, 41, 0.12);
    background: #f3f5f7;
}

.resource-article__masthead-inner {
    display: grid;
    gap: 2.1rem;
}

.resource-article__masthead .resource-breadcrumbs {
    color: #6a727d;
}

.resource-article__masthead .resource-breadcrumbs a {
    color: #a93400;
}

.resource-article__masthead .resource-breadcrumbs a:hover {
    color: #031629;
}

.resource-article__masthead .resource-breadcrumbs a:focus-visible {
    outline-color: rgba(248, 80, 0, 0.55);
}

.resource-article__header {
    display: grid;
    gap: 0.85rem;
    max-width: 66rem;
}

.resource-article__header h1,
.resource-article__header p {
    margin: 0;
}

.resource-article__header h1 {
    max-width: 62rem;
    color: #031629;
    font-size: clamp(2.55rem, 5vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.028em;
}

.resource-article__header p {
    max-width: 53rem;
    color: #555e69;
    font-size: 1.05rem;
    line-height: 1.72;
}

.resource-article__header .resource-article-card__meta {
    gap: 1rem;
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(3, 22, 41, 0.14);
    color: #555e69;
    font-size: 0.82rem;
}

.resource-article__content {
    display: grid;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding-top: clamp(3rem, 6vw, 5rem);
}

.resource-article__image {
    width: min(70rem, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(3, 22, 41, 0.12);
    border-radius: 4px;
    background: #e9ecef;
}

.resource-article__image img {
    display: block;
    width: 100%;
    max-height: 40rem;
    object-fit: cover;
}

.resource-article__body {
    width: min(52rem, 100%);
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(3.25rem, 6vw, 5rem) 0 0;
    color: #3f4955;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.resource-article__body > *:first-child {
    margin-top: 0;
}

.resource-article__body section {
    min-width: 0;
    max-width: 100%;
    scroll-margin-top: 7rem;
}

.resource-article__body img,
.resource-article__body svg,
.resource-article__body video,
.resource-article__body iframe {
    max-width: 100%;
}

.resource-article__body h2,
.resource-article__body h3 {
    color: #031629;
    line-height: 1.23;
    letter-spacing: -0.012em;
}

.resource-article__body h2 {
    margin: 3rem 0 1rem;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.resource-article__body h2::before {
    content: "";
    display: block;
    width: 2.3rem;
    height: 3px;
    margin-bottom: 0.9rem;
    background: #f85000;
}

.resource-article__body h3 {
    margin: 1.6rem 0 0.55rem;
    font-size: 1.15rem;
}

.resource-article__body p,
.resource-article__body ul,
.resource-article__body ol {
    margin: 0.9rem 0 0;
}

.resource-article__body ul,
.resource-article__body ol {
    padding-left: 1.3rem;
}

.resource-article__body li + li {
    margin-top: 0.42rem;
}

.resource-article__body a:not(.button) {
    color: #a93400;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(248, 80, 0, 0.52);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.resource-article__body a:not(.button):hover {
    color: #031629;
    text-decoration-color: #031629;
}

.resource-article__body a:not(.button):focus-visible {
    border-radius: 2px;
    outline: 2px solid rgba(248, 80, 0, 0.55);
    outline-offset: 3px;
}

.resource-quick-answer,
.resource-toc,
.resource-callout,
.resource-placeholder,
.resource-final-cta {
    border-radius: 4px;
}

.resource-quick-answer {
    display: grid;
    gap: 0.5rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(248, 80, 0, 0.28);
    border-left: 3px solid #f85000;
    background: #fff7f2;
}

.resource-quick-answer h2,
.resource-toc h2 {
    font-size: 1.08rem;
}

.resource-quick-answer h2::before,
.resource-toc h2::before {
    display: none;
}

.resource-quick-answer h2,
.resource-quick-answer p,
.resource-toc h2,
.resource-callout h3,
.resource-final-cta h2,
.resource-final-cta p {
    margin: 0;
}

.resource-toc {
    display: grid;
    gap: 0.7rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(3, 22, 41, 0.13);
    background: #f3f5f7;
}

.resource-toc ol {
    display: grid;
    gap: 0.25rem;
    margin: 0;
}

.resource-article__figure {
    display: grid;
    gap: 0.6rem;
    margin: 1.6rem 0;
}

.resource-article__figure img {
    display: block;
    width: 100%;
    border: 1px solid rgba(3, 22, 41, 0.1);
    border-radius: 4px;
}

.resource-article__figure--component,
.resource-article__figure--rig-type {
    justify-items: center;
}

.resource-article__figure--component img {
    width: min(100%, 34rem);
    background: #ffffff;
}

.resource-article__figure--rig-type img {
    width: min(100%, 36rem);
    background: #ffffff;
}

.resource-article__figure figcaption {
    color: #68717c;
    font-size: 0.88rem;
    line-height: 1.55;
}

.resource-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px dashed rgba(3, 22, 41, 0.28);
    background: #f3f5f7;
    color: #555e69;
    font-weight: 800;
    text-align: center;
}

.resource-step-list {
    display: grid;
    gap: 0.55rem;
}

.resource-callout {
    display: grid;
    gap: 0.45rem;
    margin: 1.4rem 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(3, 22, 41, 0.13);
    border-left: 3px solid #f85000;
    background: #ffffff;
}

.resource-callout--warning {
    border-left-color: #9b3511;
    background: #fff8f5;
}

.resource-callout--tip {
    border-left-color: #f85000;
    background: #fffaf5;
}

.resource-callout p {
    margin: 0;
}

.resource-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0 1.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(3, 22, 41, 0.13);
    border-radius: 4px;
}

.resource-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.92rem;
}

.resource-table th,
.resource-table td {
    padding: 0.82rem 0.9rem;
    border-bottom: 1px solid rgba(3, 22, 41, 0.1);
    text-align: left;
    vertical-align: top;
}

.resource-table th {
    background: #e9ecef;
    color: #031629;
    font-weight: 800;
}

.resource-table tr:last-child td {
    border-bottom: 0;
}

.resource-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(3, 22, 41, 0.14);
}

.resource-related-grid a {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0.8rem 0.15rem;
    border: 0;
    border-bottom: 1px solid rgba(3, 22, 41, 0.14);
    border-radius: 0;
    background: #ffffff;
    color: #031629;
    text-decoration: none;
}

.resource-related-grid a:nth-child(odd) {
    padding-right: 1rem;
    border-right: 1px solid rgba(3, 22, 41, 0.14);
}

.resource-related-grid a:nth-child(even) {
    padding-left: 1rem;
}

.resource-related-grid a:hover {
    color: #a93400;
}

.resource-article__body #faq {
    margin-top: 3.5rem;
    border-top: 1px solid rgba(3, 22, 41, 0.16);
}

.resource-article__body #faq > h2 {
    margin-bottom: 1.1rem;
}

.resource-article__body #faq > h3 {
    margin: 0;
    padding: 1.25rem 0 0.55rem;
    border-top: 1px solid rgba(3, 22, 41, 0.14);
}

.resource-article__body #faq > h2 + h3 {
    border-top: 0;
}

.resource-article__body #faq > h3 + p {
    margin: 0;
    padding-bottom: 1.25rem;
}

.resource-final-cta {
    display: grid;
    gap: 0.9rem;
    margin-top: 2.5rem;
    padding: 1.6rem;
    background: #031629;
    color: #ffffff;
}

.resource-final-cta h2 {
    color: #ffffff;
}

.resource-final-cta h2::before {
    background: #f85000;
}

.resource-final-cta p {
    color: rgba(255, 255, 255, 0.78);
}

.resource-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.resource-final-cta .button {
    border-radius: 4px;
    box-shadow: none;
}

.resource-final-cta .button--accent {
    background: #f85000;
    color: #ffffff;
}

.resource-final-cta .button--accent:hover,
.resource-final-cta .button--ghost:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #031629;
    box-shadow: none;
}

/* Responsive layouts */
@media (min-width: 1280px) {
    .resource-hero__media img {
        width: min(32rem, 98%);
    }
}

@media (max-width: 1000px) {
    .resource-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
        min-height: 31rem;
    }

    .resource-hero--index .resource-hero__copy {
        padding-right: 2.5rem;
    }

    .resource-hero__media {
        min-height: 31rem;
    }

    .resource-hero__media img {
        width: min(28rem, 98%);
    }

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

@media (max-width: 820px) {
    .resource-section__header,
    .resource-browser__header,
    .resource-link-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .resource-link-section__links {
        width: 100%;
    }
}

@media (max-width: 740px) {
    .resource-hero.resource-hero--index,
    .resource-hero.resource-hero--category,
    .resource-article__masthead {
        margin-top: -1.5rem;
    }

    .resource-hero__inner {
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 0;
    }

    .resource-hero--index .resource-hero__copy {
        padding: 3.25rem 1rem 3.5rem;
    }

    .resource-hero--index .resource-hero__copy::before {
        display: none;
    }

    .resource-hero--index .resource-hero__copy h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .resource-hero__media {
        min-height: 26rem;
        border-top: 3px solid #f85000;
        border-left: 0;
    }

    .resource-hero__media img {
        width: min(18rem, 75%);
    }

    .resource-card-grid.resource-card-grid--large,
    .resource-article-grid {
        grid-template-columns: 1fr;
    }

    .resource-card.resource-card--large,
    .resource-card.resource-card--large:nth-child(odd) {
        border-right: 0;
        border-bottom: 1px solid rgba(3, 22, 41, 0.14);
    }

    .resource-card.resource-card--large:last-child {
        grid-column: auto;
        border-bottom: 0;
    }

    .resource-link-section {
        margin-bottom: -4rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .resource-article__header h1 {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 2.85rem);
        line-height: 1.06;
        overflow-wrap: anywhere;
    }

    .resource-article__header p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .resource-article__body {
        font-size: 0.97rem;
        line-height: 1.72;
    }
}

@media (max-width: 560px) {
    .resource-search__field {
        flex-direction: column;
    }

    button.resource-search__submit,
    .resource-empty__actions,
    .resource-empty__actions .button,
    .resource-final-cta .button {
        width: 100%;
    }

    .resource-link-section__links,
    .resource-related-grid {
        grid-template-columns: 1fr;
    }

    .resource-link-section__links a:nth-child(odd),
    .resource-link-section__links a:nth-child(even),
    .resource-related-grid a:nth-child(odd),
    .resource-related-grid a:nth-child(even) {
        padding-right: 0.15rem;
        padding-left: 0.15rem;
        border-right: 0;
    }

    .resource-article__masthead {
        padding-top: 3rem;
        padding-bottom: 3.25rem;
    }

    .resource-article__masthead-inner {
        gap: 1.6rem;
    }

    .resource-article__content {
        width: 100%;
        min-width: 0;
        padding-top: 2rem;
    }

    .resource-article__body {
        width: 100%;
        min-width: 0;
        padding-top: 2.2rem;
    }

    .resource-article__body h2 {
        margin-top: 2.35rem;
        font-size: 1.58rem;
    }

    .resource-article__body h3 {
        font-size: 1.08rem;
    }

    .resource-quick-answer,
    .resource-toc,
    .resource-callout,
    .resource-final-cta {
        padding: 1rem;
    }

    .resource-table-wrap {
        margin: 1.1rem 0 1.35rem;
    }

    .resource-table {
        min-width: 36rem;
        font-size: 0.84rem;
    }

    .resource-table th,
    .resource-table td {
        padding: 0.68rem 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resource-breadcrumbs a,
    .resource-card.resource-card--large,
    .resource-card.resource-card--large::before,
    .resource-card__action::after,
    .resource-link-section__links a,
    .resource-article-card,
    .resource-article-card__media img,
    .resource-search input,
    .resource-search__submit,
    .resource-card__link::after {
        transition: none;
    }

    .resource-article-card:hover,
    .resource-article-card:hover .resource-article-card__media img {
        transform: none;
    }
}
