/* Area news ("Nyheter") and link cards. Used by /nyheter/ pages and,
   through hdsEnsureNewsCss() in app.js, by profiles and village/area pages.
   Colours only from the tokens in style.css (light and dark). */

.hds-nw-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.hds-nw-crumbs { font-size: 13px; color: var(--hds-text-dim); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.hds-nw-crumbs a { color: var(--hds-accent); text-decoration: none; }
.hds-nw-preview { background: var(--hds-gold-tint); border: 1px solid var(--hds-gold); color: var(--hds-ink); padding: 10px 14px; border-radius: var(--hds-r-sm); font-size: 14px; margin-bottom: 18px; }
.hds-nw-place { display: inline-block; background: var(--hds-accent-tint); color: var(--hds-accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--hds-r-pill); text-decoration: none; }
.hds-nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--hds-text-dim); margin-bottom: 12px; }
.hds-nw-title { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 0 0 14px; color: var(--hds-ink); overflow-wrap: anywhere; }
.hds-nw-lead { font-size: 19px; line-height: 1.55; color: var(--hds-ink); margin: 0 0 22px; font-weight: 500; }
.hds-nw-hero { margin: 0 0 24px; }
.hds-nw-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--hds-r); display: block; background: var(--hds-surface-2); }
.hds-nw-hero figcaption { font-size: 13px; color: var(--hds-text-dim); margin-top: 6px; }
.hds-nw-body { font-size: 17px; line-height: 1.75; color: var(--hds-ink); overflow-wrap: anywhere; }
.hds-nw-body h2 { font-size: 23px; margin: 30px 0 10px; line-height: 1.25; }
.hds-nw-body h3 { font-size: 19px; margin: 24px 0 8px; }
.hds-nw-body p { margin: 0 0 16px; }
.hds-nw-body ul, .hds-nw-body ol { margin: 0 0 16px; padding-left: 24px; }
.hds-nw-body li { margin-bottom: 4px; }
.hds-nw-body a { color: var(--hds-accent); }
.hds-nw-body blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--hds-gold); font-style: italic; color: var(--hds-ink); }
.hds-nw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 26px 0; }
.hds-nw-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hds-r-sm); display: block; background: var(--hds-surface-2); }
.hds-nw-section { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hds-line); }
.hds-nw-section h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--hds-text-dim); margin: 0 0 14px; }
.hds-nw-more { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; font-size: 14px; }
.hds-nw-more a { color: var(--hds-accent); font-weight: 600; text-decoration: none; }

/* Connected businesses / POIs */
.hds-nw-ents { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hds-nw-ent { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--hds-line); border-radius: var(--hds-r-sm); background: var(--hds-surface); text-decoration: none; color: var(--hds-ink); min-width: 0; }
.hds-nw-ent:hover { border-color: var(--hds-accent); }
.hds-nw-ent-img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 6px; object-fit: cover; background: var(--hds-surface-2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--hds-accent); }
.hds-nw-ent-main { min-width: 0; }
.hds-nw-ent-name { font-weight: 700; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.hds-nw-ent-sub { font-size: 12.5px; color: var(--hds-text-dim); margin-top: 2px; }

/* Link cards (profiles and posts) */
.hds-lc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hds-lc { display: flex; flex-direction: column; border: 1px solid var(--hds-line); border-radius: var(--hds-r-sm); overflow: hidden; background: var(--hds-surface); text-decoration: none; color: var(--hds-ink); min-width: 0; }
.hds-lc:hover { border-color: var(--hds-accent); }
.hds-lc-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; background: var(--hds-surface-2); }
.hds-lc-noimg { width: 100%; aspect-ratio: 3.5 / 1; background: var(--hds-surface-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--hds-accent); }
.hds-lc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hds-lc-site { font-size: 12px; color: var(--hds-text-dim); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.hds-lc-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.hds-lc-desc { font-size: 13.5px; color: var(--hds-text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hds-lc-tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--hds-accent); background: var(--hds-accent-tint); border-radius: var(--hds-r-pill); padding: 2px 8px; }

/* News cards (lists, strips) */
.hds-nl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hds-nl-card { display: flex; flex-direction: column; border: 1px solid var(--hds-line); border-radius: var(--hds-r); overflow: hidden; background: var(--hds-surface); text-decoration: none; color: var(--hds-ink); min-width: 0; }
.hds-nl-card:hover { border-color: var(--hds-accent); }
.hds-nl-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--hds-surface-2); }
.hds-nl-noimg { display: block; width: 100%; height: 6px; background: var(--hds-accent); }
.hds-nl-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.hds-nl-meta { font-size: 12.5px; color: var(--hds-text-dim); }
.hds-nl-title { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.hds-nl-lead { font-size: 14px; color: var(--hds-text-dim); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hds-nl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 32px 0 14px; }
.hds-nl-head a { font-size: 14px; color: var(--hds-accent); font-weight: 600; text-decoration: none; }
.hds-nl-mentions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hds-nl-mentions a { color: var(--hds-accent); font-weight: 600; text-decoration: none; }
.hds-nl-mentions span { color: var(--hds-text-dim); font-size: 13px; margin-left: 6px; }

/* List page */
.hds-nlp-hero { background: var(--hds-ink); color: var(--hds-bg); padding: 40px 16px 34px; text-align: center; }
.hds-nlp-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 36px); color: inherit; }
.hds-nlp-hero p { margin: 0; opacity: .8; }
.hds-nlp-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.hds-nlp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hds-nlp-tools select { font: inherit; padding: 8px 10px; border: 1px solid var(--hds-line); border-radius: var(--hds-r-sm); background: var(--hds-surface); color: var(--hds-ink); max-width: 100%; }
.hds-nlp-rss { font-size: 14px; color: var(--hds-accent); text-decoration: none; font-weight: 600; }
.hds-nlp-empty { text-align: center; padding: 50px 10px; color: var(--hds-text-dim); }
.hds-nlp-more { display: block; margin: 26px auto 0; font: inherit; padding: 10px 22px; border-radius: var(--hds-r-pill); border: 1px solid var(--hds-accent); background: var(--hds-surface); color: var(--hds-accent); cursor: pointer; font-weight: 600; }
