/*
Theme Name: Bruksbok
Theme URI: https://smalfilmtilldvd.nu/
Description: smalfilmtilldvd.nu. Child theme of Twenty Twenty-Five. Design "Bruksboken" by ChatGPT (2026-11-14, design/chatgpt-v1): white, cobalt #1946B8, Barlow Condensed and Source Sans 3.
Template: twentytwentyfive
Version: 1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: bruksbok
*/

/* The CSS below is ChatGPT's prototype CSS as delivered: the article page
   first, then the front page (duplicate rules are identical). WordPress
   adjustments are at the end of the file. */

/* ===== article ===== */

    :root {
      --paper: #ffffff;
      --ink: #202735;
      --blue: #1946b8;
      --blue-dark: #10317f;
      --wash: #edf2ff;
      --table-head: #dfe8fc;
      --line: #bfcce6;
      --muted: #505d73;
      --body: "Source Sans 3", Arial, sans-serif;
      --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
      --wide: 1200px;
      --rail: 224px;
      --gutter: 56px;
    }

    * { box-sizing: border-box; }

    html {
      background: var(--paper);
      scroll-padding-top: 24px;
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: var(--body);
      font-size: 21px;
      line-height: 1.58;
    }

    h1, h2, h3, p, figure, ul, ol { margin: 0; }

    h1, h2 {
      font-family: var(--display);
      font-weight: 600;
      line-height: 1.06;
      letter-spacing: -.015em;
    }

    h1, h2, h3 { overflow-wrap: break-word; }
    h2 { font-size: 42px; }
    strong { font-weight: 600; }

    a {
      color: var(--blue);
      text-decoration-thickness: 1.5px;
      text-underline-offset: .19em;
      text-decoration-skip-ink: auto;
    }

    a:hover { color: var(--blue-dark); }

    :focus-visible {
      outline: 3px solid currentColor;
      outline-offset: 5px;
    }

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

    .container {
      width: min(var(--wide), calc(100% - 64px));
      margin-inline: auto;
    }

    .skip-link {
      position: absolute;
      z-index: 10;
      top: 12px;
      left: 12px;
      padding: 12px 18px;
      color: var(--paper);
      background: var(--blue);
      transform: translateY(-180%);
    }

    .skip-link:focus { transform: translateY(0); }

    .masthead {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      min-height: 112px;
      padding-block: 22px;
    }

    .brand {
      display: inline-flex;
      align-items: baseline;
      gap: 10px;
      color: var(--blue);
      text-decoration: none;
      line-height: 1;
      white-space: nowrap;
    }

    .brand-main {
      font-family: var(--display);
      font-size: 54px;
      font-weight: 600;
      letter-spacing: -.025em;
    }

    .brand-domain {
      font-size: 23px;
      font-weight: 600;
      letter-spacing: -.025em;
    }

    .masthead-note {
      color: var(--muted);
      font-size: 17px;
      line-height: 1.4;
      text-align: right;
    }

    .masthead-note span {
      display: block;
      color: var(--ink);
      font-weight: 600;
    }

    .nav-band { background: var(--blue); }

    .site-nav ul {
      display: grid;
      grid-template-columns: repeat(6, auto);
      list-style: none;
      padding: 0;
    }

    .site-nav li { min-width: 0; }

    .site-nav a {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 58px;
      height: 100%;
      padding: 12px 16px;
      color: var(--paper);
      border-inline-start: 1px solid rgb(255 255 255 / 23%);
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      text-align: center;
      text-decoration: none;
    }

    .site-nav li:last-child a {
      border-inline-end: 1px solid rgb(255 255 255 / 23%);
    }

    .site-nav a:hover {
      color: var(--paper);
      background: var(--blue-dark);
      text-decoration: underline;
    }

    .site-nav a[aria-current="page"] {
      color: var(--blue);
      background: var(--paper);
      text-decoration: underline;
      text-decoration-thickness: 2px;
    }

    .site-nav a:focus-visible { outline-offset: -6px; }

    .article-header { padding-block: 48px 36px; }

    .breadcrumb {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 24px;
      color: var(--muted);
      font-size: 17px;
    }

    .breadcrumb a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
    }

    .article-header h1 {
      max-width: 1040px;
      font-size: clamp(56px, 6.1vw, 80px);
      line-height: 1.02;
      letter-spacing: -.02em;
      text-wrap: balance;
    }

    .short-answer {
      padding-block: 32px 36px;
      border-top: 2px solid var(--blue);
      background: var(--wash);
    }

    .short-answer-inner {
      display: grid;
      grid-template-columns: var(--rail) minmax(0, 1fr);
      gap: var(--gutter);
    }

    .short-answer h2 {
      color: var(--blue);
      font-size: 36px;
    }

    .short-answer p {
      max-width: 68ch;
      font-size: 22px;
      line-height: 1.55;
    }

    .reading-layout {
      display: grid;
      grid-template-columns: var(--rail) minmax(0, 1fr);
      align-items: start;
      gap: var(--gutter);
      padding-block: 52px 88px;
    }

    .reading-layout > * { min-width: 0; }

    .page-rail { padding-top: 3px; }

    .contents-label {
      margin-bottom: 12px;
      color: var(--muted);
      font-size: 17px;
      font-weight: 600;
    }

    .page-contents ul {
      padding: 0;
      list-style: none;
      border-top: 2px solid var(--blue);
    }

    .page-contents li {
      border-bottom: 1px solid var(--line);
    }

    .page-contents a {
      display: block;
      padding-block: 14px;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.35;
    }

    .object-photo {
      margin-top: 42px;
      background: var(--paper);
    }

    .object-photo img {
      width: 100%;
      object-fit: contain;
    }

    .object-photo figcaption {
      margin-top: 20px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 17px;
      line-height: 1.45;
    }

    .photo-credit {
      display: block;
      margin-top: 8px;
      font-size: 15px;
    }

    .article-copy section + section {
      margin-top: 50px;
      padding-top: 32px;
      border-top: 1px solid var(--line);
    }

    .article-copy h2 {
      max-width: 36ch;
      margin-bottom: 23px;
      font-size: 42px;
      line-height: 1.12;
    }

    .method-label { color: var(--blue); }

    .article-copy p,
    .article-copy ul,
    .article-copy ol {
      max-width: 68ch;
    }

    .article-copy p + p { margin-top: 20px; }

    .article-copy ul,
    .article-copy ol {
      margin-block: 24px;
      padding-left: 29px;
    }

    .article-copy li { padding-left: 8px; }

    .article-copy li + li { margin-top: 17px; }

    .article-copy li::marker {
      color: var(--blue);
      font-weight: 600;
    }

    .article-copy ol.steps {
      padding-left: 31px;
      margin-block: 25px 0;
    }

    .article-copy .steps li {
      padding: 4px 0 18px 13px;
      border-bottom: 1px solid var(--line);
    }

    .article-copy .steps li + li { margin-top: 15px; }

    .article-copy .steps li:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .article-copy .steps li::marker {
      font-size: 23px;
      font-weight: 700;
    }

    .table-block { margin-block: 28px 24px; }

    .data-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      border-top: 2px solid var(--blue);
      background: var(--paper);
      font-size: 18px;
      line-height: 1.4;
      font-variant-numeric: tabular-nums;
      text-align: left;
    }

    .data-table th,
    .data-table td {
      padding: 17px 15px;
      vertical-align: top;
      overflow-wrap: break-word;
    }

    .data-table thead th {
      color: var(--blue-dark);
      background: var(--table-head);
      border-bottom: 1px solid var(--line);
      font-weight: 600;
    }

    .data-table thead th:first-child { width: 21%; }

    .data-table tbody th {
      color: var(--blue-dark);
      font-weight: 600;
    }

    .data-table tbody th,
    .data-table tbody td {
      border-bottom: 1px solid var(--line);
    }

    .data-table tbody tr:last-child > * {
      border-bottom: 2px solid var(--blue);
    }

    .cell-label { display: none; }

    .site-footer {
      padding-block: 44px 28px;
      color: var(--paper);
      background: var(--blue);
    }

    .site-footer a { color: var(--paper); }
    .site-footer a:hover { color: var(--paper); }

    .footer-main {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 32px;
    }

    .signature-label {
      margin-bottom: 4px;
      font-size: 18px;
    }

    .signature {
      font-family: var(--display);
      font-size: 42px;
      line-height: 1.15;
      font-weight: 600;
    }

    .signature a {
      text-decoration-thickness: 1px;
      text-underline-offset: .15em;
    }

    .footer-about {
      font-size: 20px;
      line-height: 1.5;
      text-align: right;
    }

    .footer-about a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-top: 32px;
      padding-top: 18px;
      border-top: 1px solid rgb(255 255 255 / 35%);
      font-size: 16px;
    }

    @media (max-width: 1100px) {
      :root { --rail: 190px; --gutter: 36px; }

      .data-table th,
      .data-table td {
        padding: 14px 11px;
      }
    }

    @media (max-width: 900px) {
      .site-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }

      .site-nav a {
        border: 1px solid rgb(255 255 255 / 20%);
        border-top: 0;
        min-height: 52px;
      }

      .short-answer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
      }

      .reading-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
      }

      .page-rail {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 36px;
        padding: 0;
      }

      .object-photo {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
        gap: 16px;
        margin-top: 0;
      }

      .object-photo figcaption {
        margin-top: 0;
        font-size: 16px;
      }

      .article-copy h2 { max-width: 100%; }
    }

    @media (max-width: 700px) {
      .container { width: calc(100% - 40px); }
      body { font-size: 20px; }
      h2 { font-size: 34px; }

      .masthead {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        padding-block: 19px;
      }

      .brand-main { font-size: 45px; }
      .brand-domain { font-size: 22px; }

      .masthead-note {
        font-size: 16px;
        text-align: left;
      }

      .masthead-note span {
        display: inline;
        margin-left: 5px;
      }

      .site-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .site-nav a {
        min-height: 48px;
        padding: 10px 8px;
        font-size: 17px;
      }

      .article-header { padding-block: 22px 28px; }

      .breadcrumb {
        margin-bottom: 17px;
        font-size: 16px;
      }

      .article-header h1 {
        font-size: 50px;
        line-height: 1.04;
        text-wrap: wrap;
      }

      .short-answer { padding-block: 24px 28px; }
      .short-answer h2 { font-size: 32px; }

      .short-answer p {
        font-size: 20px;
        line-height: 1.58;
      }

      .reading-layout {
        gap: 36px;
        padding-block: 30px 48px;
      }

      .page-rail {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
      }

      .page-contents a {
        padding-block: 12px;
        font-size: 18px;
      }

      .object-photo {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 20px;
      }

      .object-photo img { max-height: 210px; }
      .object-photo figcaption { font-size: 16px; }
      .photo-credit { font-size: 14px; }

      .article-copy h2 {
        margin-bottom: 19px;
        font-size: 34px;
        line-height: 1.12;
      }

      .article-copy section + section {
        margin-top: 36px;
        padding-top: 27px;
      }

      .article-copy ul,
      .article-copy ol {
        padding-left: 24px;
      }

      .article-copy ol.steps { padding-left: 27px; }
      .article-copy .steps li { padding-left: 8px; }

      .table-block { margin-block: 24px; }

      /*
       * Tabellen blir radvisa poster, utan att någon uppgift tas bort.
       * De visuella cell-etiketterna är kopior av kolumnrubrikerna.
       */
      .data-table {
        display: block;
        position: relative;
        border: 0;
        background: transparent;
      }

      .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
      }

      .data-table tbody { display: block; }

      .data-table tbody tr {
        display: block;
        margin-bottom: 22px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-top: 2px solid var(--blue);
      }

      .data-table tbody tr:last-child { margin-bottom: 0; }

      .data-table tbody th {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        width: auto;
        padding: 13px 14px;
        background: var(--table-head);
        font-size: 20px;
      }

      .data-table tbody td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 14px;
        padding: 14px;
      }

      .data-table .cell-label {
        display: block;
        color: var(--muted);
        font-size: 17px;
        font-weight: 400;
        line-height: 1.4;
      }

      .data-table tbody th .cell-label {
        color: var(--blue-dark);
        font-weight: 600;
      }

      .data-table .cell-value { min-width: 0; }

      .data-table tbody tr:last-child > * {
        border-bottom: 1px solid var(--line);
      }

      .data-table tbody tr > :last-child {
        border-bottom: 0;
      }

      .site-footer { padding-block: 32px 24px; }

      .footer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
      }

      .signature { font-size: 38px; }
      .footer-about { text-align: left; }

      .footer-bottom {
        flex-direction: column;
        gap: 4px;
        margin-top: 24px;
      }
    }

    @media print {
      body { font-size: 12pt; }
      .container { width: 100%; }
      .site-nav, .skip-link, .page-contents { display: none; }
      .article-header { padding-block: 24px; }
      .article-header h1 { font-size: 36pt; }
      .reading-layout { display: block; }
      .page-rail { display: block; }
      .object-photo { max-width: 180px; margin: 0 0 24px; }
      .article-copy h2 { font-size: 24pt; }
      .site-footer { color: #000; background: #fff; border-top: 1px solid #000; }
      .site-footer a { color: #000; }
      .data-table tr, .steps li { break-inside: avoid; }
    }
  
/* ===== front page ===== */

    :root {
      --paper: #ffffff;
      --ink: #202735;
      --blue: #1946b8;
      --blue-dark: #10317f;
      --wash: #edf2ff;
      --table-head: #dfe8fc;
      --line: #bfcce6;
      --muted: #505d73;
      --body: "Source Sans 3", Arial, sans-serif;
      --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
      --wide: 1200px;
      --rail: 224px;
      --gutter: 56px;
    }

    * { box-sizing: border-box; }

    html {
      background: var(--paper);
      scroll-padding-top: 24px;
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: var(--body);
      font-size: 21px;
      line-height: 1.58;
    }

    h1, h2, h3, p, figure, ul, ol { margin: 0; }

    h1, h2 {
      font-family: var(--display);
      font-weight: 600;
      line-height: 1.06;
      letter-spacing: -.015em;
    }

    h1, h2, h3 { overflow-wrap: break-word; }

    h2 { font-size: 42px; }

    h3 {
      font-size: 27px;
      font-weight: 600;
      line-height: 1.18;
      letter-spacing: -.015em;
    }

    strong { font-weight: 600; }

    a {
      color: var(--blue);
      text-decoration-thickness: 1.5px;
      text-underline-offset: .19em;
      text-decoration-skip-ink: auto;
    }

    a:hover { color: var(--blue-dark); }

    :focus-visible {
      outline: 3px solid currentColor;
      outline-offset: 5px;
    }

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

    .container {
      width: min(var(--wide), calc(100% - 64px));
      margin-inline: auto;
    }

    .skip-link {
      position: absolute;
      z-index: 10;
      top: 12px;
      left: 12px;
      padding: 12px 18px;
      color: var(--paper);
      background: var(--blue);
      transform: translateY(-180%);
    }

    .skip-link:focus { transform: translateY(0); }

    .masthead {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      min-height: 112px;
      padding-block: 22px;
    }

    .brand {
      display: inline-flex;
      align-items: baseline;
      gap: 10px;
      color: var(--blue);
      text-decoration: none;
      line-height: 1;
      white-space: nowrap;
    }

    .brand-main {
      font-family: var(--display);
      font-size: 54px;
      font-weight: 600;
      letter-spacing: -.025em;
    }

    .brand-domain {
      font-size: 23px;
      font-weight: 600;
      letter-spacing: -.025em;
    }

    .masthead-note {
      color: var(--muted);
      font-size: 17px;
      line-height: 1.4;
      text-align: right;
    }

    .masthead-note span {
      display: block;
      color: var(--ink);
      font-weight: 600;
    }

    .nav-band { background: var(--blue); }

    .site-nav ul {
      display: grid;
      grid-template-columns: repeat(6, auto);
      list-style: none;
      padding: 0;
    }

    .site-nav li { min-width: 0; }

    .site-nav a {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 58px;
      height: 100%;
      padding: 12px 16px;
      color: var(--paper);
      border-inline-start: 1px solid rgb(255 255 255 / 23%);
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      text-align: center;
      text-decoration: none;
    }

    .site-nav li:last-child a {
      border-inline-end: 1px solid rgb(255 255 255 / 23%);
    }

    .site-nav a:hover {
      color: var(--paper);
      background: var(--blue-dark);
      text-decoration: underline;
    }

    .site-nav a:focus-visible { outline-offset: -6px; }

    .eyebrow {
      margin-bottom: 18px;
      color: var(--blue);
      font-size: 16px;
      font-weight: 600;
      line-height: 1.4;
      letter-spacing: .085em;
      text-transform: uppercase;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 304px;
      align-items: center;
      gap: 72px;
      padding-block: 64px 72px;
    }

    .hero > * { min-width: 0; }

    .hero h1 {
      max-width: 850px;
      margin-bottom: 28px;
      font-size: clamp(64px, 7.2vw, 96px);
      line-height: .99;
      letter-spacing: -.025em;
    }

    .hero h1 span {
      display: block;
      color: var(--blue);
    }

    .intro {
      max-width: 58ch;
      font-size: 24px;
      line-height: 1.5;
    }

    .object-photo { background: var(--paper); }

    .object-photo img {
      width: 100%;
      object-fit: contain;
    }

    .object-photo figcaption {
      margin-top: 20px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 17px;
      line-height: 1.45;
    }

    .photo-credit {
      display: block;
      margin-top: 8px;
      font-size: 15px;
    }

    .section-layout {
      display: grid;
      grid-template-columns: var(--rail) minmax(0, 1fr);
      gap: var(--gutter);
    }

    .section-layout > * { min-width: 0; }

    .section-heading h2 { max-width: 11ch; }

    .section-heading .eyebrow { margin-bottom: 12px; }

    .routes-section {
      padding-block: 0 80px;
    }

    .routes-section .section-heading {
      padding-top: 25px;
      border-top: 2px solid var(--blue);
    }

    .routes {
      border-top: 2px solid var(--blue);
    }

    .route {
      display: grid;
      grid-template-columns: 52px 220px minmax(0, 1fr);
      align-items: start;
      gap: 24px;
      padding-block: 25px 28px;
      border-bottom: 1px solid var(--line);
    }

    .route-number {
      padding-top: 5px;
      color: var(--blue);
      font-size: 17px;
      font-weight: 600;
      white-space: nowrap;
    }

    .route h3 a {
      display: block;
      min-height: 44px;
      padding-bottom: 5px;
    }

    .route-arrow {
      display: inline-block;
      margin-left: 4px;
      font-family: var(--body);
      font-weight: 400;
    }

    .route p:last-child {
      font-size: 20px;
      line-height: 1.5;
    }

    .time-section {
      padding-block: 64px;
      background: var(--wash);
    }

    .time-content > p:first-child {
      max-width: 66ch;
      margin-bottom: 28px;
    }

    .data-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      border-top: 2px solid var(--blue);
      background: var(--paper);
      font-size: 18px;
      line-height: 1.4;
      font-variant-numeric: tabular-nums;
      text-align: left;
    }

    .data-table th,
    .data-table td {
      padding: 17px 15px;
      vertical-align: top;
      overflow-wrap: break-word;
    }

    .data-table thead th {
      color: var(--blue-dark);
      background: var(--table-head);
      border-bottom: 1px solid var(--line);
      font-weight: 600;
    }

    .data-table thead th:first-child { width: 21%; }

    .data-table tbody th {
      color: var(--blue-dark);
      font-weight: 600;
    }

    .data-table tbody th,
    .data-table tbody td {
      border-bottom: 1px solid var(--line);
    }

    .data-table tbody tr:last-child > * {
      border-bottom: 2px solid var(--blue);
    }

    .cell-label { display: none; }

    .table-note {
      max-width: 68ch;
      margin-top: 22px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.5;
    }

    .directory-section { padding-block: 76px 88px; }

    .directory {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 42px;
      list-style: none;
      padding: 0;
    }

    .directory li {
      padding-block: 18px 24px;
      border-top: 1px solid var(--line);
    }

    .directory a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      font-size: 23px;
      font-weight: 600;
      line-height: 1.25;
    }

    .directory p {
      margin-top: 8px;
      font-size: 20px;
      line-height: 1.5;
    }

    .site-footer {
      padding-block: 44px 28px;
      color: var(--paper);
      background: var(--blue);
    }

    .site-footer a { color: var(--paper); }
    .site-footer a:hover { color: var(--paper); }

    .footer-main {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 32px;
    }

    .signature-label {
      margin-bottom: 4px;
      font-size: 18px;
    }

    .signature {
      font-family: var(--display);
      font-size: 42px;
      line-height: 1.15;
      font-weight: 600;
    }

    .signature a {
      text-decoration-thickness: 1px;
      text-underline-offset: .15em;
    }

    .footer-about {
      font-size: 20px;
      line-height: 1.5;
      text-align: right;
    }

    .footer-about a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-top: 32px;
      padding-top: 18px;
      border-top: 1px solid rgb(255 255 255 / 35%);
      font-size: 16px;
    }

    @media (max-width: 1100px) {
      :root { --rail: 190px; --gutter: 36px; }

      .hero {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 40px;
      }

      .route {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 12px;
      }

      .route p:last-child { grid-column: 2; }
    }

    @media (max-width: 900px) {
      .site-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }

      .site-nav a {
        border: 1px solid rgb(255 255 255 / 20%);
        border-top: 0;
        min-height: 52px;
      }

      .section-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
      }

      .section-heading h2 { max-width: 22ch; }

      .routes-section .section-heading {
        border-top: 0;
        padding-top: 0;
      }

      .route {
        grid-template-columns: 52px 220px minmax(0, 1fr);
        column-gap: 24px;
      }

      .route p:last-child { grid-column: auto; }
    }

    @media (max-width: 700px) {
      .container { width: calc(100% - 40px); }
      body { font-size: 20px; }
      h2 { font-size: 34px; }

      .masthead {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        padding-block: 19px;
      }

      .brand-main { font-size: 45px; }
      .brand-domain { font-size: 22px; }

      .masthead-note {
        font-size: 16px;
        text-align: left;
      }

      .masthead-note span {
        display: inline;
        margin-left: 5px;
      }

      .site-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .site-nav a {
        min-height: 48px;
        padding: 10px 8px;
        font-size: 17px;
      }

      .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-block: 34px 44px;
      }

      .eyebrow {
        margin-bottom: 14px;
        font-size: 15px;
      }

      .hero h1 {
        margin-bottom: 22px;
        font-size: 56px;
        line-height: 1;
      }

      .intro {
        font-size: 21px;
        line-height: 1.5;
      }

      .hero .object-photo {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
        gap: 20px;
      }

      .hero .object-photo img {
        max-height: 240px;
        width: 100%;
      }

      .object-photo figcaption {
        margin-top: 0;
        font-size: 16px;
      }

      .photo-credit { font-size: 14px; }

      .routes-section { padding-bottom: 44px; }

      .route {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding-block: 22px 25px;
      }

      .route-number { padding-top: 0; }
      .route h3 { font-size: 25px; }
      .route h3 a { min-height: 0; }
      .route p:last-child { grid-column: auto; }

      .time-section { padding-block: 38px; }

      .time-content > p:first-child { margin-bottom: 24px; }

      /*
       * Samma tabell, samma data.
       * Kolumnnamnen upprepas visuellt vid varje värde på mobil.
       * Det semantiska tabellhuvudet finns kvar för hjälpmedel.
       */
      .data-table {
        display: block;
        position: relative;
        border: 0;
        background: transparent;
      }

      .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
      }

      .data-table tbody { display: block; }

      .data-table tbody tr {
        display: block;
        margin-bottom: 22px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-top: 2px solid var(--blue);
      }

      .data-table tbody tr:last-child { margin-bottom: 0; }

      .data-table tbody th {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        width: auto;
        padding: 13px 14px;
        background: var(--table-head);
        font-size: 20px;
      }

      .data-table tbody td {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 14px;
        padding: 13px 14px;
      }

      .data-table .cell-label {
        display: block;
        color: var(--muted);
        font-size: 17px;
        font-weight: 400;
        line-height: 1.4;
      }

      .data-table tbody th .cell-label {
        color: var(--blue-dark);
        font-weight: 600;
      }

      .data-table .cell-value { min-width: 0; }

      .data-table tbody tr:last-child > * {
        border-bottom: 1px solid var(--line);
      }

      .data-table tbody tr > :last-child {
        border-bottom: 0;
      }

      .table-note { font-size: 18px; }

      .directory-section { padding-block: 42px 48px; }

      .directory {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
      }

      .directory li { padding-block: 14px 20px; }
      .directory a { font-size: 23px; }

      .site-footer { padding-block: 32px 24px; }

      .footer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
      }

      .signature { font-size: 38px; }
      .footer-about { text-align: left; }

      .footer-bottom {
        flex-direction: column;
        gap: 4px;
        margin-top: 24px;
      }
    }

    @media print {
      body { font-size: 12pt; }
      .container { width: 100%; }
      .site-nav, .skip-link { display: none; }
      .hero { padding-block: 24px; }
      .hero h1 { font-size: 48pt; }
      .site-footer { color: #000; background: #fff; border-top: 1px solid #000; }
      .site-footer a { color: #000; }
      .route, .data-table tr { break-inside: avoid; }
    }
  
/* ------------------------------------------------ WordPress adjustments */

.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block: 0 !important; }
main.wp-block-group { margin: 0; padding: 0; }
.entry-content > * { margin-block: 0; }
.updated-line { margin-top: 18px; color: var(--muted); font-size: 17px; }
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
@media (max-width: 700px) { .updated-line { font-size: 16px; } }
