/* ============================================================
   press.css. Styling för inhouse-PM-sidor.
   Laddas ovanpå shared.css och palette-preview.css.
   ============================================================ */

.pm-page { padding: 110px 0 80px; }
.pm-page .pm-breadcrumb { max-width: 960px; margin: 0 auto 24px; padding: 0 32px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; color: var(--text-low); text-transform: uppercase; }
.pm-page .pm-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.pm-page .pm-breadcrumb a:hover { color: var(--gold); }

/* PM ARTICLE */
.pm-article { max-width: 800px; margin: 0 auto; padding: 0 32px 60px; }
.pm-header { padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.pm-meta-top { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.pm-meta-top time { font-family: var(--mono); font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; }
.pm-cat { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; border: 1px solid; line-height: 1.4; }
.pm-cat-insider { color: #D67A6A; border-color: rgba(214,122,106,0.55); background: rgba(214,122,106,0.08); }
.pm-cat-regulatorisk { color: var(--gold); border-color: rgba(197,160,89,0.55); background: rgba(197,160,89,0.10); }
.pm-cat-ir { color: var(--text-dim); border-color: var(--line-strong); background: transparent; }
.pm-h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.18; color: var(--text); margin-bottom: 22px; max-width: 28ch; }
.pm-intro { font-size: 1.10rem; color: var(--text-dim); line-height: 1.65; max-width: 64ch; }

/* PM BODY: typografi för parsad Cision-content */
.pm-body { font-size: 1rem; line-height: 1.75; color: var(--text); }
.pm-body p { margin-bottom: 1.1em; max-width: 68ch; }
.pm-body p strong { color: var(--text); font-weight: 600; }
.pm-body p em { font-style: italic; color: var(--text-dim); }
.pm-body h1, .pm-body h2, .pm-body h3, .pm-body h4 { color: var(--text); font-weight: 400; letter-spacing: -0.01em; margin-top: 2.2em; margin-bottom: 0.8em; line-height: 1.3; }
.pm-body h1 { font-size: 1.6rem; }
.pm-body h2 { font-size: 1.4rem; }
.pm-body h3 { font-size: 1.2rem; }
.pm-body h4 { font-size: 1.05rem; }
.pm-body h2:first-of-type, .pm-body h3:first-of-type { margin-top: 1em; }
.pm-body ul, .pm-body ol { margin: 0 0 1.2em 1.6em; }
.pm-body li { margin-bottom: 0.4em; line-height: 1.7; }
.pm-body a { color: var(--gold); border-bottom: 1px solid rgba(197,160,89,0.4); padding-bottom: 1px; transition: border-color 0.18s; }
.pm-body a:hover { border-bottom-color: var(--gold); }
.pm-body blockquote { border-left: 3px solid var(--gold); padding-left: 20px; margin: 1.4em 0; color: var(--text-dim); font-style: italic; }

/* PM TABELLER */
.pm-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.92rem; }
.pm-body table td, .pm-body table th { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pm-body table th, .pm-body table tr:first-child td { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-strong); }
.pm-body table strong { font-weight: 600; }

/* PM ATTACHMENTS */
.pm-attachments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pm-attachments h3 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-low); margin-bottom: 16px; }
.pm-attachments .attach { display: inline-block; padding: 10px 16px; margin: 0 8px 8px 0; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text-dim); text-decoration: none; transition: all 0.18s; }
.pm-attachments .attach:hover { border-color: var(--gold); color: var(--text); background: rgba(197,160,89,0.05); }

/* PM FOOTER */
.pm-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pm-share { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.pm-share-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); }
.pm-share a { font-size: 13px; color: var(--text-dim); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: all 0.18s; }
.pm-share a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.pm-disclaimer { font-size: 0.82rem; color: var(--text-low); line-height: 1.6; }

/* RELATED-SIDEBAR */
.pm-related { max-width: 800px; margin: 0 auto; padding: 32px 32px 0; border-top: 1px solid var(--line); }
.pm-related h3 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-low); margin-bottom: 20px; }
.pm-related-list { list-style: none; padding: 0; margin: 0 0 22px; }
.pm-related-list li { border-bottom: 1px solid var(--line); }
.pm-related-list a { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; color: var(--text-dim); text-decoration: none; transition: color 0.18s; align-items: baseline; }
.pm-related-list a:hover { color: var(--text); }
.pm-related-list time { font-family: var(--mono); font-size: 11px; color: var(--text-low); letter-spacing: 0.04em; }
.pm-related-list span { font-size: 14px; line-height: 1.5; }
.pm-all-link { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--gold); text-decoration: none; letter-spacing: 0.06em; }
.pm-all-link:hover { color: var(--gold-light); }

/* PM INDEX */
.pm-index .pm-index-head { max-width: 1100px; margin: 0 auto 36px; padding: 0 32px; }
.pm-index .pm-intro { max-width: 60ch; }
.pm-filter { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pm-filter-btn { background: transparent; border: 1px solid var(--line-strong); color: var(--text-dim); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 18px; border-radius: 100px; cursor: pointer; transition: all 0.18s; }
.pm-filter-btn:hover { border-color: var(--gold); color: var(--text); }
.pm-filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.pm-filter-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-low); margin-right: 8px; align-self: center; }
.pm-filter-spar { margin-top: 14px; }
.pm-item-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pm-tag-spar { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px; }

/* Thumbnails som visuell accent till höger om body (efter texten). */
.pm-list .pm-item { grid-template-columns: 130px 1fr !important; gap: 28px !important; }
.pm-list .pm-item:has(.pm-item-thumb) { grid-template-columns: 130px 1fr 140px !important; gap: 24px !important; }
.pm-item-thumb { width: 140px; height: 105px; border-radius: 6px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); flex-shrink: 0; align-self: start; margin-top: 4px; }
.pm-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pm-item:hover .pm-item-thumb img { transform: scale(1.06); }
@media (max-width: 768px) {
  .pm-list .pm-item, .pm-list .pm-item:has(.pm-item-thumb) { grid-template-columns: 1fr !important; }
  .pm-item-thumb { width: 100%; height: 180px; order: -1; }
}

/* Bilage-grid med thumbnails */
.pm-attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 8px; }
.attach-img { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; transition: all 0.18s; cursor: pointer; }
.attach-img:hover { border-color: var(--gold); transform: translateY(-2px); }
.attach-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.attach-img .attach-cap { display: block; padding: 8px 10px; font-size: 11px; color: var(--text-dim); line-height: 1.3; }

/* LIGHTBOX för bildvisning. Klick stänger, ESC stänger, X-knapp stänger. */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 40px; cursor: zoom-out; animation: lbFade 0.22s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); cursor: default; }
.lightbox .lb-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: rgba(232,225,200,0.85); margin-top: 22px; max-width: 80ch; text-align: center; cursor: default; }
.lightbox .lb-close { position: fixed; top: 24px; right: 24px; width: 44px; height: 44px; background: rgba(0,0,0,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; color: #FFFFFF; font-size: 22px; line-height: 1; cursor: pointer; transition: all 0.18s; display: flex; align-items: center; justify-content: center; padding: 0; }
.lightbox .lb-close:hover { background: var(--gold, #C5A059); border-color: var(--gold, #C5A059); color: #000; transform: scale(1.08); }
.lightbox .lb-hint { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); cursor: default; }
.pm-list { list-style: none; padding: 0; margin: 0 auto; max-width: 1100px; padding: 0 32px; }
.pm-list li { border-bottom: 1px solid var(--line); }
.pm-list li:first-child { border-top: 1px solid var(--line); }
.pm-list .pm-item { display: grid; grid-template-columns: 130px 1fr 110px; gap: 28px; padding: 26px 0; color: var(--text); text-decoration: none; align-items: baseline; transition: background 0.18s; }
.pm-list .pm-item:hover { background: rgba(197,160,89,0.04); padding-left: 14px; padding-right: 14px; margin-left: -14px; margin-right: -14px; }
.pm-item-date { font-family: var(--mono); font-size: 12px; color: var(--text-low); letter-spacing: 0.04em; padding-top: 4px; }
.pm-item-title { font-size: 1.05rem; font-weight: 500; line-height: 1.4; color: var(--text); margin-bottom: 6px; }
.pm-item-intro { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; max-width: 70ch; }
.pm-list .pm-cat { justify-self: end; align-self: start; margin-top: 4px; }
.pm-count { max-width: 1100px; margin: 32px auto 0; padding: 0 32px; font-family: var(--mono); font-size: 11px; color: var(--text-low); letter-spacing: 0.06em; text-align: right; }

@media (max-width: 768px) {
  .pm-page { padding: 88px 0 60px; }
  .pm-article, .pm-related, .pm-index .pm-index-head, .pm-list { padding-left: 20px; padding-right: 20px; }
  .pm-list .pm-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .pm-list .pm-cat { justify-self: start; }
  .pm-related-list a { grid-template-columns: 1fr; gap: 4px; }
  .pm-h1 { font-size: 1.7rem; }
}
