/* Nokian brand page only. Loaded after brand.css, which Falken, Hankook and
   Nexen share, so every rule here is scoped under .brand-nokian and brand.css
   itself is never edited for Nokian. */

/* Shop buttons are <button>s so they can be reached by keyboard. Reset the
   browser's button defaults so they look exactly like the .cta-button links
   on the other brand pages. No margin reset: it would outrank brand.css's
   `.category-card .cta-button { margin-top: auto }` and stretch the card buttons. */
.brand-nokian button.cta-button {
    font-family: inherit;
    line-height: inherit;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

/* The global focus ring is the primary colour, which can't be seen on the
   hero and final CTA backgrounds. The wider offset leaves a visible dark gap
   between the white ring and the white primary buttons. */
.brand-nokian .hero .cta-button:focus-visible,
.brand-nokian .final-cta .cta-button:focus-visible {
    outline-color: var(--color-white);
    outline-offset: 4px;
}

/* Icons: inline SVGs in place of the emoji. The glyphs match the emoji size,
   but the boxes are the SVG's own height rather than an emoji line box, so
   the cards are a little shorter than before. The width/height attributes on
   each <svg> are only a fallback until this stylesheet loads; change both. */
.brand-nokian .category-icon {
    color: var(--color-primary);
    line-height: 0;
}

.brand-nokian .category-icon svg {
    width: 48px;
    height: 48px;
}

.brand-nokian .header-icon {
    display: flex;
    color: var(--color-primary);
}

/* A 1.5 stroke looks faint at 24px beside the bold lineup headings. */
.brand-nokian .header-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.brand-nokian .prop-icon svg {
    width: 40px;
    height: 40px;
}

.brand-nokian .prop-icon.gold {
    color: #92400e;
}

.brand-nokian .prop-icon.blue {
    color: #1e40af;
}

.brand-nokian .prop-icon.red {
    color: #991b1b;
}

/* Links to Nokian Tyres. brand.css resets every link to look like body text,
   so these need their own colour and underline to read as links. The icon
   after each one shows it opens in a new tab (the sr-only text says so to
   screen readers). */
.brand-nokian .nokian-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.brand-nokian .nokian-link:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px;
}

.brand-nokian .nokian-link-end {
    white-space: nowrap;
}

.brand-nokian .nokian-link-end::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.2em;
    vertical-align: -0.05em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6'/%3E%3Cpath d='M11 13l9 -9'/%3E%3Cpath d='M15 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6'/%3E%3Cpath d='M11 13l9 -9'/%3E%3Cpath d='M15 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Shop ... at Point S" inside running text opens the sidebar, so it is a
   button styled to match the links beside it. */
.brand-nokian .nokian-link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.brand-nokian .nokian-link-button:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px;
}

@media (forced-colors: active) {
    .brand-nokian .nokian-link-end::after {
        background-color: LinkText;
    }
}

/* The "read more" links under cards, tech items and FAQ answers: one per
   line, so each is easy to pick out and tap. The site-wide
   `ul:not(...):not(...) li { list-style: disc; padding: 5px 20px }` rule
   outranks a scoped selector, so the items need !important (as brand.css
   does for its own lists). */
.brand-nokian .nokian-link-list {
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.brand-nokian .nokian-link-list li {
    list-style: none !important;
    padding: 0 !important;
}

/* Tire type cards stack top-down here instead of brand.css's grid, which
   spread spare height across every row once links were added. The "Best for"
   box fits its content; the links and the Shop button sit together at the
   bottom, so the buttons stay level across the row. */
.brand-nokian .category-card {
    display: flex;
    flex-direction: column;
}

.brand-nokian .category-card .category-meta {
    flex-grow: 0;
}

.brand-nokian .category-card .nokian-link-list {
    margin-top: auto;
    margin-bottom: var(--space-4);
}

/* The "... at Point S" labels are longer than the old ones: let them wrap on
   narrow cards rather than force their column wider than the others. */
.brand-nokian .categories-grid > .category-card {
    min-width: 0;
}

.brand-nokian .category-card .cta-button {
    align-self: stretch;
    padding-inline: var(--space-2);
    white-space: normal;
}

/* In the centred cards, the link lists are centred too. */
.brand-nokian .feature-card .nokian-link-list,
.brand-nokian .category-card .nokian-link-list,
.brand-nokian .prop-card .nokian-link-list {
    align-items: center;
    text-align: center;
}

/* No trailing paragraph margin at the bottom of cards (it made them look
   bottom-heavy). */
.brand-nokian .tech-content > :last-child,
.brand-nokian .nokian-warranty-card > :last-child,
.brand-nokian .faq-answer > :last-child {
    margin-bottom: 0;
}

/* Linked and unlinked model names look the same weight in the lineup. */
.brand-nokian .lineup-list strong .nokian-link {
    font-weight: inherit;
}

.brand-nokian .lineup-list .nokian-link-end::after {
    width: 0.7em;
    height: 0.7em;
}

/* Hero: "Page last updated" sits under the intro paragraph. */
.brand-nokian .hero-subtitle {
    margin-bottom: var(--space-3);
}

.brand-nokian .nokian-updated {
    font-size: 0.9375rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-8);
}

/* Quick Facts: a plain label/value list. Stacked on phones, two columns from
   tablet up. */
.brand-nokian .nokian-quick-facts {
    padding: var(--space-16) 0;
    background-color: var(--color-gray-50);
}

.brand-nokian .nokian-facts {
    margin: 0;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.brand-nokian .nokian-facts dt {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.brand-nokian .nokian-facts dd {
    margin: 0 0 var(--space-4);
    color: var(--color-gray-800);
    line-height: 1.6;
}

.brand-nokian .nokian-facts dd:last-child {
    margin-bottom: 0;
}

/* Warranties and Guarantees: two cards between Technology (grey) and the FAQ. */
.brand-nokian .nokian-warranties {
    padding: var(--space-24) 0;
    background-color: var(--color-white);
}

.brand-nokian .nokian-warranty-grid {
    display: grid;
    gap: var(--space-6);
}

.brand-nokian .nokian-warranty-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-top: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-8);
}

.brand-nokian .nokian-warranty-card h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.brand-nokian .nokian-warranty-card p {
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* The FAQ follows the white Warranties section here, so it switches to grey
   (with white questions) to keep the sections alternating. */
.brand-nokian .faq {
    background-color: var(--color-gray-50);
}

.brand-nokian .faq-item {
    background-color: var(--color-white);
}

/* Winter Driving and Tire Care Guides. */
.brand-nokian .nokian-guides {
    padding: var(--space-24) 0;
    background-color: var(--color-white);
}

.brand-nokian .nokian-guide-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Same site-wide bullet rule as .nokian-link-list above. */
.brand-nokian .nokian-guide-list li {
    list-style: none !important;
    padding: var(--space-5) 0 !important;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    line-height: 1.7;
}

.brand-nokian .nokian-guide-list li:first-child {
    border-top: 1px solid var(--color-gray-200);
}

/* brand.css goes to 4 tire type cards per row at 1024px; with Nokian's longer
   copy they're too narrow until 1280px, so stay at 2 until then. The 5 lineup
   columns sit 3 + 2 instead of 4 + 1. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .brand-nokian .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .brand-nokian .lineup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .brand-nokian .nokian-facts {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: var(--space-3) var(--space-6);
        padding: var(--space-8);
    }

    .brand-nokian .nokian-facts dd {
        margin-bottom: 0;
    }

    .brand-nokian .nokian-warranty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
