/* Server-rendered tyre pages (/renkaat/, /valmistajat/). Builds on styles.css and guide.css. */
.seo-main { max-width: 1040px; }
.seo-breadcrumb { margin-bottom: 22px; font-size: 13px; }
.seo-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.seo-breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--line); }
.seo-breadcrumb a { color: var(--green); font-weight: 700; text-decoration: none; }
.seo-lead { max-width: 760px; }

.seo-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 34px; }
.seo-highlight { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--green); border-radius: 14px; background: #e8eee9; }
.seo-highlight-title { margin: 0; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.seo-grid { display: grid; gap: 12px; }
.seo-card, .seo-highlight { align-items: start; }
.seo-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.seo-highlight .seo-thumb { display: none; }
.seo-thumb { width: 96px; height: 96px; border-radius: 10px; object-fit: contain; background: white; }
.seo-card-body h3 { margin: 0 0 2px; font-size: 17px; line-height: 1.25; }
.seo-card-body h3 a { color: var(--ink); text-decoration: none; }
.seo-card-body h3 a:hover { color: var(--green); text-decoration: underline; }
.seo-size { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.seo-facts { display: grid; gap: 3px; margin: 0 0 10px; padding: 0; list-style: none; color: #3f4c46; font-size: 13px; line-height: 1.5; }
.seo-facts small { color: var(--muted); }
.seo-price { margin: 0 0 10px; font-size: 20px; }
.seo-price small { color: var(--muted); font-size: 12px; }
.seo-other { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.seo-shops { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.seo-shop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 10px; border: 1px solid var(--line, #ddd6c3); border-radius: 9px; }
.seo-shop.is-cheapest { border-color: var(--green); background: #f3f8f2; }
.seo-shop-name { flex: 1 1 8em; color: var(--muted); font-size: 13px; }
.seo-shop-price { font-size: 18px; }
.seo-buy-small { padding: 7px 12px; }
.seo-table .seo-other { display: block; margin: 0 0 4px; white-space: nowrap; }
.seo-figure { margin: 0 0 20px; max-width: 325px; }
.seo-figure img { display: block; width: 100%; height: auto; aspect-ratio: 650 / 434; object-fit: contain; border-radius: 10px; background: var(--card, #fff); }
.seo-more { color: var(--green); font-weight: 700; text-decoration: none; }
.seo-more:hover { text-decoration: underline; }
.seo-buy { display: inline-block; padding: 10px 16px; border-radius: 9px; background: var(--green); color: white; font-size: 13px; font-weight: 800; text-decoration: none; }
.seo-buy:hover { background: var(--green-dark); }

.seo-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seo-table th, .seo-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.seo-table th { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.seo-table tbody tr:last-child td { border-bottom: 0; }
.seo-table small { color: var(--muted); }
.seo-table a:not(.seo-buy) { color: var(--green); font-weight: 700; }
.seo-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.seo-pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.seo-pager a, .seo-pager span { display: inline-block; min-width: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); text-align: center; text-decoration: none; }
.seo-pager span { border-color: var(--green); background: var(--green); color: white; font-weight: 800; }

.seo-links { margin-top: 34px; }
.seo-links h2 { margin: 0 0 12px; font: 500 22px/1.2 Georgia, "Times New Roman", serif; }
.seo-links ul, .seo-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.seo-links a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.seo-links a:hover { border-color: var(--green); }
.seo-list { display: grid; gap: 8px; max-width: 760px; }
.seo-list li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); line-height: 1.7; }
.seo-list a { color: var(--green); font-weight: 800; }
.seo-list span { margin-left: 10px; color: var(--muted); font-size: 13px; }
.seo-disclosure { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.seo-disclosure a { color: var(--green); }

@media (max-width: 760px) {
  .seo-highlights { grid-template-columns: 1fr; }
  .seo-card { grid-template-columns: 72px 1fr; gap: 12px; padding: 14px; }
  .seo-thumb { width: 72px; height: 72px; }
}

/* Hub pages: size finder, size and rim tiles, brands. */
.hub-block { margin-top: 40px; }
.hub-block h2 { margin: 0 0 14px; font: 500 24px/1.2 Georgia, "Times New Roman", serif; }
.guide-header .guide-intro a, .hub-block a { color: var(--green); }

.finder { margin: 8px 0 0; padding: 24px 28px 28px; border-radius: 18px; background: var(--green-dark); color: #fff; }
.finder-title { margin: 0; font: 500 26px/1.2 Georgia, "Times New Roman", serif; }
.finder-help { margin: 6px 0 20px; color: #c9d8cf; font-size: 14px; }
.finder-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.finder-fields label { display: grid; gap: 6px; color: #c9d8cf; font-size: 13px; font-weight: 700; }
.finder-fields select { min-width: 8em; padding: 12px 14px; border: 2px solid transparent; border-radius: 10px; background: var(--card); color: var(--ink); font: 700 20px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
.finder-fields select:disabled { opacity: .55; }
.finder-mark { padding-bottom: 12px; color: var(--lime); font: 500 30px/1 Georgia, "Times New Roman", serif; }
.finder-fields button { margin-left: 8px; padding: 15px 22px; border: 0; border-radius: 10px; background: var(--lime); color: var(--ink); font: 800 16px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.finder-fields button:hover:not(:disabled) { background: #e6f56f; }
.finder-fields button:disabled { opacity: .45; cursor: not-allowed; }
.finder select:focus-visible, .finder button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.size-tiles, .rim-tiles, .brand-tiles { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.size-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rim-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.brand-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.size-tiles a, .rim-tiles a, .brand-tiles a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.size-tiles a:hover, .rim-tiles a:hover, .brand-tiles a:hover { border-color: var(--green); }
.size-tiles a:focus-visible, .rim-tiles a:focus-visible, .brand-tiles a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.size-main, .rim-tiles strong, .brand-letter h3, .finder-mark { font-variant-numeric: lining-nums; }
.size-main { font: 500 28px/1.1 Georgia, "Times New Roman", serif; }
.size-rim { color: var(--green); font-size: 15px; font-weight: 850; }
.size-count { margin-top: 4px; color: var(--muted); font-size: 12px; }
.rim-tiles strong { font: 500 34px/1 Georgia, "Times New Roman", serif; }
.rim-name { color: var(--green); font-size: 13px; font-weight: 800; white-space: nowrap; }
.brand-name { font-size: 17px; font-weight: 800; }

.brand-filter { margin: 8px 0 0; }
.brand-filter label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.brand-filter input { width: 100%; max-width: 420px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: 600 17px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
.brand-filter input:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.brand-none { margin: 10px 0 0; color: var(--danger); font-size: 14px; }
.brand-letter { display: grid; grid-template-columns: 52px 1fr; gap: 4px 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.brand-letter h3 { margin: 0; color: var(--green); font: 500 28px/1.1 Georgia, "Times New Roman", serif; }
.brand-letter ul { columns: 3 210px; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.brand-letter li { break-inside: avoid; padding: 4px 0; }
.brand-letter a { font-weight: 700; }
.brand-letter li span { margin-left: 6px; color: var(--muted); font-size: 12px; }

@media (max-width: 560px) {
  .finder { padding: 20px 18px 22px; }
  .finder-mark { display: none; }
  .finder-fields label { flex: 1 1 28%; }
  .finder-fields select { min-width: 0; width: 100%; padding: 12px 8px; font-size: 18px; }
  .finder-fields button { flex: 1 1 100%; margin: 6px 0 0; }
  .brand-letter { grid-template-columns: 1fr; }
}

/* Rim page: one card per size, the size itself links to all seasons and the chips to a single season. */
.size-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.size-cards li { display: grid; align-content: start; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.size-card-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); text-decoration: none; }
.size-card-main:hover .size-main { color: var(--green); }
.size-card-main:focus-visible, .size-seasons a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.size-seasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.size-seasons a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.size-seasons a:hover { border-color: var(--green); }
.hub-back { margin-top: 30px; }
.hub-back a { color: var(--green); font-weight: 700; }

/* The price tables are cards on a phone: one tyre per card, each fact under its own small label. */
@media (max-width: 640px) {
  .seo-table-wrap { overflow: visible; border: 0; background: none; }
  .seo-table-wrap .seo-table, .seo-table-wrap .seo-table tbody { display: block; }
  .seo-table-wrap .seo-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seo-table-wrap .seo-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .seo-table-wrap .seo-table tbody tr:last-child td { border-bottom: 0; }
  .seo-table-wrap .seo-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .seo-table-wrap .seo-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--muted); font-size: 11px; font-weight: 700; }
  .seo-table-wrap .seo-table td.seo-cell-name { grid-column: 1 / -1; font-size: 16px; font-weight: 700; }
  .seo-table-wrap .seo-table td.seo-cell-buy { grid-column: 1 / -1; }
  .seo-table-wrap .seo-table .seo-buy { display: block; text-align: center; }
  .seo-table-wrap .seo-table .seo-other { white-space: normal; }
}

/* Phones: bigger tap targets and no text below 12 px on the crawlable pages. */
.seo-main a:not([class]) { color: var(--green); }
@media (max-width: 760px) {
  .seo-breadcrumb a { display: inline-block; padding: 10px 0; }
  .seo-breadcrumb ol { align-items: center; font-size: 14px; }
  .seo-links a, .size-seasons a { padding: 10px 14px; font-size: 14px; }
  .size-cards li { padding: 14px; }
  .size-card-main { padding: 4px 0; }
  .size-seasons { gap: 8px; }
  .seo-pager a, .seo-pager span { padding: 12px 14px; }
  .size-count, .rim-name, .stat-head { font-size: 12px; }
  .seo-table td[data-label]::before, .seo-table th, .seo-table small, .seo-kicker, .kicker { font-size: 12px; }
  .brand-letter li { padding: 8px 0; }
  .hub-back a, .seo-more { display: inline-block; padding: 10px 0; }
}

/* Rim page: the widths as a jump list, each width a group of cards. */
.jump { position: sticky; top: 0; z-index: 5; margin: 18px -2px 0; padding: 10px 2px 8px; background: linear-gradient(180deg, var(--paper) 78%, rgba(244,242,236,0)); }
.jump p { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.jump ul { display: flex; gap: 6px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--green); font-size: 14px; font-weight: 800; text-decoration: none; }
.jump a:hover { border-color: var(--green); }
.jump a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.width-group { margin-top: 28px; scroll-margin-top: 110px; }
.width-group h2 { margin: 0 0 12px; font: 500 22px/1.2 Georgia, "Times New Roman", serif; }

/* Model page: a hero with the picture beside the text, then one table per season grouped by rim. */
.model-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 8px 40px; align-items: center; padding: 18px 0 8px; }
.model-hero h1 { margin: 6px 0 12px; font: 500 clamp(34px, 5vw, 54px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.model-hero .kicker { margin: 0; }
.model-hero .kicker a { color: var(--green); text-decoration: none; }
.model-hero .seo-lead { margin: 0; color: #46534d; font-size: 17px; line-height: 1.6; }
.model-hero .seo-figure { margin: 0; max-width: none; }
.model-hero .seo-figure img { aspect-ratio: 650 / 434; border-radius: 14px; }
.model-facts { display: flex; gap: 14px; margin: 20px 0 0; }
.model-facts div { padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.model-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.model-facts dd { margin: 2px 0 0; color: var(--green-dark); font: 500 26px/1.1 Georgia, "Times New Roman", serif; }
.model-season { margin-top: 38px; }
.model-season h2 { margin: 0 0 8px; font: 500 28px/1.2 Georgia, "Times New Roman", serif; }
.jump.is-inline { position: static; margin: 4px 0 14px; padding: 0; background: none; }
.jump.is-inline p { display: inline; margin-right: 8px; }
.jump.is-inline ul { display: inline-flex; vertical-align: middle; max-width: 100%; }
.model-table tr.rim-row th { padding: 14px 14px 6px; background: #f1eee4; color: var(--green-dark); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.model-price { font-size: 18px; }
.seo-also { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.seo-also a { color: var(--green); font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) { .model-hero { grid-template-columns: 1fr; } .model-hero .seo-figure { max-width: 340px; } }
@media (max-width: 640px) {
  .seo-table-wrap .model-table tr.rim-row { display: block; margin: 16px 0 6px; padding: 0; border: 0; background: none; }
  .seo-table-wrap .model-table tr.rim-row th { display: block; padding: 0; background: none; font: 500 20px/1.2 Georgia, "Times New Roman", serif; }
  .seo-table-wrap .model-table td[data-label="Halvin hinta"] { grid-column: 1 / -1; }
  .seo-also { font-size: 13px; }
  .seo-also a, .seo-also > span { display: inline-block; padding: 6px 0; }
}

/* Model page text sections: lowest price per rim, the shop comparison and what the labels mean. */
.model-rims { margin-top: 28px; }
.model-rims h2, .model-text h2 { margin: 0 0 12px; font: 500 24px/1.2 Georgia, "Times New Roman", serif; }
.model-rims ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.model-rims a { display: grid; gap: 1px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.model-rims a:hover { border-color: var(--green); }
.model-rims strong { font: 500 20px/1.2 Georgia, "Times New Roman", serif; }
.model-rims span { color: var(--green-dark); font-weight: 750; }
.model-rims small { color: var(--muted); font-size: 12px; }
.model-text { margin-top: 38px; max-width: 760px; }
.model-text p { margin: 0 0 10px; color: #3f4c46; font-size: 16px; line-height: 1.65; }
.model-spec { display: grid; gap: 10px; margin: 0; }
.model-spec div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.model-spec dt { color: var(--muted); font-size: 14px; font-weight: 700; }
.model-spec dd { margin: 0; }
.model-spec dd strong { display: block; color: var(--ink); font-size: 16px; }
.model-spec dd span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 640px) { .model-spec div { grid-template-columns: 1fr; } .model-rims a { padding: 14px; } }

.model-about ul { margin: 0 0 12px; padding-left: 20px; color: #3f4c46; line-height: 1.65; }
.model-about li { margin-bottom: 4px; }
.model-about-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
