:root {
    --pm-bg: #ffffff;
    --pm-text: #222222;
    --pm-title: #111111;
    --pm-line: #d9d9d9;
    --pm-accent: #eb002e;
    --pm-accent-dark: #be0025;
    --pm-footer-bg: #111111;
    --pm-muted: #666666;
    --pm-surface: #f6f6f6;
    --pm-container: 1280px;
    --pm-gap: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--pm-bg);
    color: var(--pm-text);
    font-family: "Roboto Flex", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--pm-title);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:hover {
    color: var(--pm-accent);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--pm-accent);
    outline-offset: 2px;
}

.pcmag-container {
    width: min(var(--pm-container), calc(100% - 2rem));
    margin-inline: auto;
}

.pcmag-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.pcmag-nav-inner {
    width: min(var(--pm-container), calc(100% - 1rem));
    margin-inline: auto;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pcmag-logo {
    display: inline-flex;
    align-items: center;
    width: min(220px, 45vw);
    max-width: 100%;
}

.pcmag-logo img {
    width: 100%;
    height: auto;
}

.pcmag-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-left: auto;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    font-size: 1.08rem;
    font-family: "Barlow Semi Condensed", Arial, sans-serif;
    text-transform: capitalize;
}

.pcmag-menu li {
    flex: 1;
    text-align: center;
}

.pcmag-menu a {
    display: block;
    font-weight: 600;
    text-align: center;
    padding: .35rem .3rem;
    line-height: 1.2;
    border-bottom: 2px solid transparent;
}

.pcmag-menu a:hover {
    border-color: var(--pm-accent);
}

.pcmag-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.pcmag-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #222;
    margin: 5px auto;
}

.pcmag-mobile-nav {
    position: fixed;
    top: 62px;
    left: -100%;
    width: min(84vw, 360px);
    height: calc(100vh - 62px);
    background: #fff;
    border-right: 1px solid var(--pm-line);
    padding: 1rem;
    overflow-y: auto;
    transition: left .25s ease;
}

.pcmag-mobile-nav.is-open {
    left: 0;
}

.pcmag-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcmag-mobile-nav li + li {
    border-top: 1px solid var(--pm-line);
}

.pcmag-mobile-nav a {
    display: block;
    padding: .75rem 0;
    font-family: "Barlow Semi Condensed", Arial, sans-serif;
    font-size: 1.1rem;
    text-align: center;
    text-transform: capitalize;
}

.pcmag-main {
    padding: 1.25rem 0 2.5rem;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.home-latest-col,
.home-feature-col {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.home-latest-col h2,
.section-head h2 {
    margin: 0 0 .75rem;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.1;
}

.latest-stories {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pm-line);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-stories li {
    border-bottom: 1px solid var(--pm-line);
    padding: .85rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-stories span {
    display: block;
    font-size: .78rem;
    color: var(--pm-muted);
    text-transform: uppercase;
}

.cover-story {
    border: 1px solid var(--pm-line);
    padding: 1rem;
    background: #fff;
}

.cover-story-title {
    margin: 0 0 1rem;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1;
}

.cover-story-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--pm-surface);
}

.cover-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-story-body {
    margin-top: 1rem;
}

.cover-story-link {
    display: inline-block;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 700;
}

.pcmag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .6rem 1rem;
    margin-top: .75rem;
    border: 1px solid var(--pm-accent);
    background: var(--pm-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.pcmag-btn:hover {
    background: var(--pm-accent-dark);
    border-color: var(--pm-accent-dark);
    color: #fff;
}

.pcmag-btn:active {
    transform: translateY(1px);
}

.pcmag-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.category-block {
    width: min(var(--pm-container), calc(100% - 2rem));
    margin: 2rem auto 0;
}

.section-head {
    border-bottom: 1px solid var(--pm-line);
    margin-bottom: 1rem;
}

.content-strip {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--pm-line);
    padding: 1rem 0;
}

.content-strip-body {
    flex: 1;
    min-width: 0;
}

.content-strip-title {
    margin: 0;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.content-strip-summary {
    margin: .45rem 0;
    color: #444;
}

.content-strip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    font-size: .8rem;
    color: var(--pm-muted);
    text-transform: uppercase;
}

.content-strip-image-link {
    width: min(34%, 220px);
    flex: 0 0 min(34%, 220px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--pm-line);
}

.content-strip-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-river {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
}

.hot-strip {
    border: 1px solid var(--pm-line);
    padding: 1rem;
    background: var(--pm-surface);
}

.hot-strip-title,
.side-title,
.pcmag-footer-title {
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hot-strip ul,
.side-box ul {
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
}

.hot-strip li,
.side-box li {
    border-top: 1px solid var(--pm-line);
    padding: .65rem 0;
}

.hot-strip span {
    display: block;
    font-size: .74rem;
    color: var(--pm-muted);
    text-transform: uppercase;
}

.pcmag-pagination {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.pcmag-pagination a,
.pcmag-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: .45rem .7rem;
    border: 1px solid var(--pm-line);
}

.pcmag-pagination .is-current {
    background: var(--pm-accent);
    border-color: var(--pm-accent);
    color: #fff;
}

.pcmag-pagination .is-disabled {
    color: #aaa;
}

.article-header h1 {
    margin: .4rem 0 .8rem;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.article-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 2rem;
}

.article-header > * {
    grid-column: 1;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    color: var(--pm-muted);
    font-size: .82rem;
    text-transform: uppercase;
}

.story-summary {
    display: block;
    font-size: 1.08rem;
    color: #343434;
    white-space: normal;
    margin: .85rem 0 0;
    padding: .7rem .9rem;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    width: 100%;
    box-sizing: border-box;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.story-content {
    min-width: 0;
}

.story-content h2 {
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.65rem;
    margin: 1.5rem 0 .8rem;
    line-height: 1.2;
}

.story-content h3 {
    font-family: "Barlow Semi Condensed", Arial, sans-serif;
    font-size: 1.2rem;
    margin: 1rem 0 .55rem;
}

.story-content p,
.story-content li {
    color: #222;
}

.story-content a {
    color: var(--pm-accent);
    text-decoration: underline;
    text-underline-offset: .1em;
}

.story-content a:hover {
    color: var(--pm-accent-dark);
}

.story-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    display: block;
    overflow-x: auto;
}

.story-content th,
.story-content td {
    border: 1px solid var(--pm-line);
    padding: .55rem .7rem;
    text-align: left;
    vertical-align: top;
}

.story-content th {
    background: #f7f7f7;
    font-family: "Barlow Semi Condensed", Arial, sans-serif;
}

.story-faq .faq-item {
    border-top: 1px solid var(--pm-line);
    padding-top: .8rem;
    margin-top: .8rem;
}

.side-box {
    border: 1px solid var(--pm-line);
    padding: 1rem;
    background: #fff;
}

.side-box + .side-box {
    margin-top: 1rem;
}

.pcmag-breadcrumb {
    margin-bottom: .7rem;
}

.pcmag-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    font-size: .8rem;
}

.pcmag-breadcrumb span {
    color: #666;
}

.pcmag-footer {
    margin-top: 2rem;
}

.pcmag-footer-brand {
    background: #fff;
    border-top: 1px solid var(--pm-line);
    border-bottom: 1px solid var(--pm-line);
    padding: 1.2rem 0;
}

.pcmag-footer-brand h2 {
    margin: 0;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.5rem;
}

.pcmag-footer-brand p {
    margin: .35rem 0 0;
}

.pcmag-footer-links {
    background: var(--pm-footer-bg);
    color: #f2f2f2;
    padding: 2rem 0;
}

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

.pcmag-footer-links ul {
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
}

.pcmag-footer-links li + li {
    margin-top: .45rem;
}

.pcmag-footer-links a {
    color: #efefef;
}

.pcmag-footer-links a:hover {
    color: var(--pm-accent);
}

.pcmag-copyright {
    background: #0a0a0a;
    color: #bdbdbd;
    font-size: .9rem;
    padding: .9rem 0;
    text-align: center;
}

.not-found {
    max-width: 760px;
    text-align: center;
}

.not-found h1 {
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.not-found-cats {
    margin-top: 1.4rem;
}

.not-found-cats ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem .9rem;
}

@media (max-width: 1024px) {
    .home-hero-grid,
    .content-river,
    .article-header,
    .story-layout,
    .pcmag-footer-grid {
        grid-template-columns: 1fr;
    }

    .home-latest-col {
        order: 2;
    }
}

@media (max-width: 768px) {
    .pcmag-nav-toggle {
        display: inline-block;
    }

    .pcmag-menu {
        display: none;
    }

    .pcmag-logo {
        width: min(180px, 52vw);
    }

    .content-strip {
        flex-direction: column-reverse;
    }

    .content-strip-image-link {
        width: 100%;
        flex-basis: auto;
    }

    .pcmag-main {
        padding-top: 1rem;
    }
}
