/* TFBCD – custom.css | städad version */

/* Grundläggande breddskydd */
html, body { max-width: 100%; }
.site-shell, .site-header, .site-main, .site-footer,
.header-inner, .container, .hero, .section {
  box-sizing: border-box;
  min-width: 0;
}
.site-shell, .site-main, .site-header, .site-footer { width: 100%; }
.header-inner, .container { width: 100%; max-width: var(--max-w); }

/* Startsidan: samma komponent i båda sektionerna */
.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid var(--rule);
}
.item-list > li {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
  font-size: inherit;
  font-style: normal;
}
.item-list > li > .item-row .cta i.fa-solid { font-weight: 900; }
.item-list > li > .item-row .cta i.fa-regular,
.item-list > li > .item-row .cta i.fa-brands { font-weight: 400; }
.item-list > li > .item-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  column-gap: 24px;
  align-items: baseline;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 20px 0;
  margin: 0;
  border: 0;
  text-decoration: none;
}
.item-row > * { min-width: 0; overflow-wrap: anywhere; }
.item-row .kind {
  grid-column: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.item-row .description,
.item-row .item-main {
  grid-column: 2;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
.item-row .item-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.item-row .item-main .title {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.item-row .item-main .description {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
.item-row .cta {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

/* Startsida: hero */
.hero { padding-top: 40px; padding-bottom: 40px; }
.hero .kicker { margin-bottom: 8px; }
.hero-text, .hero-description {
  max-width: 900px;
  margin-top: 22px;
  font-size: 32px;
  line-height: 1.65;
  font-weight: 400;
}
.hero > .embedded-item { margin-top: 24px; }

/* Inbäddningar – full bredd utan horisontell överströmning */
.embedded-item,
.hero > .embedded-item,
.item-list > li > .embedded-item {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.embedded-item[hidden] { display: none !important; }
.embedded-item iframe {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  height: 60px;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
}
.item-list > li > .embedded-item { padding: 0 0 22px; }

/* Sidfot och Font Awesome */
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-text { font-size: 14px; line-height: 1.6; font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 180ms ease;
}
.footer-social-link:hover { opacity: .55; }
.footer-social-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 18px;
  line-height: 1;
}
.footer-social-icon i { font-size: .84em; line-height: 1; font-style: normal; }
.footer-social-text { white-space: nowrap; }
.tfbcd-footnote-backref {
  display: inline-block;
  margin-left: .3em;
  color: inherit;
  font-size: .65em;
  line-height: 1;
  text-decoration: none;
  vertical-align: baseline;
}
.tfbcd-footnote-backref:hover { opacity: .55; }
.tfbcd-footnote-backref i { font-style: normal; }

/* Läs – sammanfattningar */
.read-list { list-style: none; padding: 0; }
.read-item { padding: 1.5rem 0; border-bottom: 1px solid rgba(0,0,0,.15); }
.read-item-title { display: inline-block; font-weight: 600; text-decoration: none; }
.read-item-summary { margin-top: .65rem; line-height: 1.55; font-weight: 400; overflow-wrap: anywhere; }
.read-item-summary p { margin: 0 0 .75rem; }
.read-item-summary p:last-child { margin-bottom: 0; }

/* Lyssna – text under spelare */
.media-description { margin-top: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.media-description p { margin: 0 0 .75rem; }
.media-description p:last-child { margin-bottom: 0; }
.media-description a { text-underline-offset: .15em; }

/* Fullscreen-overlay */
.home-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: clamp(24px, 6vw, 100px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-overlay[hidden] { display: none !important; }
.home-overlay--black {
  background: rgb(0 0 0 / var(--overlay-background-opacity, 80%));
  color: rgba(255,255,255,.8);
}
.home-overlay--white {
  background: rgb(255 255 255 / var(--overlay-background-opacity, 80%));
  color: rgba(0,0,0,.8);
}
.home-overlay__text {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  font-family: inherit;
  font-size: clamp(36px, 8vw, 130px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-align: center;
  overflow-wrap: anywhere;
}
body.home-overlay-open { overflow: hidden; }

/* Mobil */
@media (max-width: 720px) {
  .site-main { padding-left: 20px; padding-right: 20px; }
  .site-header .header-inner { padding-left: 20px; padding-right: 20px; flex-wrap: wrap; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
  .item-list > li > .item-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    padding: 18px 0;
  }
  .item-row .kind,
  .item-row .description,
  .item-row .item-main,
  .item-row .cta { grid-column: 1; justify-self: start; text-align: left; }
  .hero { padding-top: 28px; padding-bottom: 28px; }
  .home-overlay { padding: 24px; }
  .home-overlay__text { font-size: clamp(34px, 9vw, 68px); }
}
@media (max-width: 560px) {
  .footer-links { gap: 12px 20px; }
  .footer-social-link { font-size: 13px; }
  .hero-text, .hero-description { font-size: 15px; }
}

/* Korrigering 2026-11-02: identisk typografi och synlig text på iOS */
/* Starkare selektorer än äldre site.css-regler. */
.item-list > li > .item-row > .description,
.item-list > li > .item-row > .item-main,
.item-list > li > .item-row > .item-main > .description {
  display: block;
  min-width: 0;
  max-width: 100%;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  white-space: normal;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}
.item-list > li > .item-row > .item-main > .title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.item-list > li > .item-row > .item-main > .description {
  font-weight: 400 !important;
}
@media (max-width: 720px) {
  .item-list > li > .item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start;
  }
  .item-list > li > .item-row > .kind,
  .item-list > li > .item-row > .description,
  .item-list > li > .item-row > .item-main,
  .item-list > li > .item-row > .cta {
    grid-column: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
    justify-self: start;
  }
}

/* Font Awesome för startsidans länkar */
.item-list > li > .item-row .cta i {
  display: inline-block;
  margin-left: .4em;
  font-size: .9em;
  line-height: 1;
  vertical-align: baseline;
  font-style: normal;
}
.item-list > li > .item-row .cta i.fa-solid { font-weight: 900; }
.item-list > li > .item-row .cta i.fa-regular,
.item-list > li > .item-row .cta i.fa-brands { font-weight: 400; }
/* Läs – konsekventa artikelmarginaler och rubriker */
.read-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.read-list > .read-item { display: block; margin: 0; padding: 24px 0; border-bottom: 1px solid var(--rule, #e8e8e8); font-size: 20px; font-weight: 400; line-height: 1.6; }
.read-list > .read-item > .read-item-title { display: block; margin: 0; padding: 0; font-size: 20px; font-weight: 700; line-height: 1.3; text-decoration: none; color: var(--ink, #111); }
.read-item-summary { display: block; margin-top: 12px; padding: 0; font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--ink-soft, #444); overflow-wrap: anywhere; }
.read-item-summary p { margin: 0 0 12px; }
.read-item-summary p:last-child { margin-bottom: 0; }
.read-item-summary > :first-child { margin-top: 0; }
@media (max-width: 720px) {
  .read-list > .read-item { padding: 20px 0; }
  .read-list > .read-item > .read-item-title { font-size: 18px; line-height: 1.35; }
  .read-item-summary { margin-top: 10px; font-size: 15px; line-height: 1.55; }
}

/* Titta – tre bilder per rad */
.tfbcd-gallery-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 32px;
    align-items: start;
}

.tfbcd-gallery-entry {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tfbcd-gallery-image-link {
    display: block;
    width: 100%;
}

.tfbcd-gallery-image-link img {
    display: block;
    width: 100%;
    height: 220px;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

/* Surfplatta */
@media (max-width: 900px) {
    .tfbcd-gallery-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil */
@media (max-width: 600px) {
    .tfbcd-gallery-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    .tfbcd-gallery-image-link img {
        height: auto;
        max-height: 320px;
    }
}
/* Titta – linje ovanför bildlistan */
.tfbcd-gallery-list {
    border-top: 1px solid var(--rule, #e8e8e8);
    padding-top: 24px;
}

/* Lyssna – samma struktur som Titta */

.tfbcd-media-list {
    border-top: 1px solid var(--rule, #e8e8e8);
    padding-top: 24px;
}

.tfbcd-media-entry {
    min-width: 0;
}

.tfbcd-media-entry .media-embed {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.tfbcd-media-entry .media-embed iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    border: 0;
}

.tfbcd-media-entry .media-description {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.tfbcd-media-entry .media-description p {
    margin: 0 0 0.75rem;
}

.tfbcd-media-entry .media-description p:last-child {
    margin-bottom: 0;
}

/* Läs – enhetlig rytm kring blockcitat. Ersätter tidigare testregler. */
.article > p {
  margin-top: 0;
  margin-bottom: 22px;
}
.article > blockquote {
  margin: 30px 0;
  padding: 0 0 0 24px;
}
.article > blockquote > p {
  margin: 0;
}
.article > blockquote > p + p {
  margin-top: 16px;
}
@media (max-width: 720px) {
  .article > blockquote {
    margin: 24px 0;
    padding-left: 18px;
  }
}
.article .article-meta {
    color: var(--ink-muted);
    font-size: 15px;
    letter-spacing: 0em;
    text-transform: none;
    margin-bottom: 22px;
}
.article .article-meta p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
/* Läs – samma textfärg i metadata, även med Markdown */

.article .article-meta,
.article .article-meta p,
.article .article-meta a,
.article .article-meta em,
.article .article-meta strong {
    color: var(--ink-muted);
}

.article .article-meta p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

/* TEXT – bilder i artiklar */

/* Bilder ska centreras och behålla sina proportioner */
.article img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    object-fit: contain;
}

/* Bild i eget stycke */
.article p:has(> img) {
    margin: 32px 0;
    text-align: center;
}

/* Undvik dubbla marginaler */
.article p:has(> img) > img {
    margin-top: 0;
    margin-bottom: 0;
}

/* Mobil och iOS */
@media (max-width: 720px) {
    .article img {
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 24px auto;
    }

    .article p:has(> img) {
        margin: 24px 0;
    }
}
/* Startsida – hero-text och inbäddad spelare */

.hero .hero-description {
    color: var(--ink-muted);
    font-size: 28px;
    line-height: 1.4;
    font-weight: 400;
    max-width: 900px;
}

/* Samma bredd som hero-description */
.hero > .hero-embed {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin-top: 24px;
}

/* Spelaren fyller sin behållare */
.hero > .hero-embed iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobil */
@media (max-width: 720px) {
    .hero .hero-description {
        font-size: 28px;
    }
}

/* Läs – valbara textstorlekar i Page Content */

.page-content .text-small,
.article .text-small {
    font-size: 14px;
}

.page-content .text-medium,
.article .text-medium {
    font-size: 18px;
}

.page-content .text-large,
.article .text-large {
    font-size: 24px;
    color: var(--ink-soft, #444);
}

.page-content .text-xlarge,
.article .text-xlarge {
    font-size: 28px;
}

/* Läs – hela artikelposten klickbar */

.read-list > .read-item > .read-item-link {
    display: block;
    padding: 24px 0;
    color: inherit;
    text-decoration: none;
}

.read-list > .read-item {
    padding: 0;
}

.read-item-link:hover {
    background: #fafafa;
}

.read-item-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

/* Metadata under sammanfattningen */

.read-item-meta {
    margin-top: 12px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.5;
}

.read-item-meta p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.read-item-meta a,
.read-item-meta em,
.read-item-meta strong {
    color: inherit;
}

.page-content {
    max-width: 700px;
}

/* Länkar i Page Content */

.page-content a {
    color: #555;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 400;
    transition: color 0.2s ease;
}

/* Hover */

.page-content a:hover {
    color: #7a7a7a;
}

/* Tangentbordsnavigering */

.page-content a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.page-content a.link-underline {
    color: #666;
    text-decoration: underline;
}

/* Startsidan – korrigerade kolumnbredder */

@media (min-width: 721px) {
    .item-list > li > .item-row {
        grid-template-columns: 110px minmax(0, 1fr) max-content;
        column-gap: 24px;
    }

    .item-row .description,
    .item-row .item-main {
        min-width: 0;
        overflow-wrap: normal;
    }

    .item-row .cta {
        white-space: nowrap;
    }
}
.page-head {
    padding: 24px 0 24px;
}
.kicker {
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 22px;
    letter-spacing: 0.005em;
}
/* Läs – underrubrik under artikelrubrik */

.read-item-link .read-item-title {
    display: block;
}

.read-item-link .read-item-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-soft);
}
/* Läs – rubrik och underrubrik på separata rader */

.read-list .read-item-link .read-item-title,
.read-list .read-item-link .read-item-subtitle {
    display: block !important;
    width: 100%;
}

.read-list .read-item-link > .read-item-subtitle {
    display: block !important;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* Startsida – Page Content */
.home-page-content {
    margin-top: 24px;
    margin-bottom: 24px;
    max-width: 900px;
}

/* Startsida – bilder i Page Content */

.home-page-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    object-fit: contain;
}

/* Bild och bildtext med gemensam vänsterkant */

.article .article-figure {
    display: table;
    width: fit-content;
    max-width: 100%;
    margin: 32px auto;
    padding: 0;
}

.article .article-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.article .article-caption {
    display: table-caption;
    caption-side: bottom;
    margin: 0;
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--ink-muted);
    text-align: left;
}

@media (max-width: 720px) {
    .article .article-figure {
        margin: 24px auto;
    }
}

/* Läs – fotnoter */

/* Ta bort den extra linjen */
.article .footnotes hr {
    display: none;
}

/* Behåll en enda avdelande linje */
.article .footnotes {
    border-top: 1px solid var(--rule);
    margin-top: 32px;
    padding-top: 20px;
}

/* Minska avståndet mellan fotnoterna */
.article .footnotes ol {
    margin: 0;
    padding-left: 20px;
}

.article .footnotes li {
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.5;
}

.article .footnotes li p {
    margin: 0;
    line-height: inherit;
}

.article .footnotes li:last-child {
    margin-bottom: 0;
}

/* Läs – textstorlek för fotnoter */

.article .footnotes li,
.article .footnotes li p {
    font-size: 16px;
    line-height: 1.5;
}

/* Mobilmeny – värden verifierade i Safari Web Inspector. */
@media (max-width: 720px) {
    .site-menu {
        box-sizing: border-box;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 20px;
    }

    .site-menu .menu-inner {
        padding: 0;
        transform: translateY(-30px);
    }
}

/* Sidhuvud: samma innehållslinje som .site-main .container.
   Behållarens maxbredd inkluderar sidornas padding. */
.site-header .header-inner {
    max-width: calc(var(--max-w) + 2 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Mobil: samma 20 px indrag som sidans innehåll. */
@media (max-width: 720px) {
    .site-header .header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Titta – bilder med 3 spalter */
#tfbcd-gallery .tfbcd-gallery-entry[data-columns="3"]
.tfbcd-gallery-image-link {
  width: 100% !important;
  max-width: 100% !important;
}

#tfbcd-gallery .tfbcd-gallery-entry[data-columns="3"]
.tfbcd-gallery-image-link img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
}
