/* Gemensam layout för utskriftsramar och nyheter. ASP.NET 3.5-kompatibel. */
.ggh-print-main,.ggh-news{position:relative!important;float:none!important;clear:both!important;width:calc(100% - 24px)!important;max-width:1400px!important;margin:18px auto!important;box-sizing:border-box!important;font-family:Arial,Helvetica,sans-serif;color:#26384b}
.ggh-print-main{display:flow-root;background:#f2f2f2;border:1px solid #e5e5e5;border-radius:12px;padding:24px 24px 32px}
.ggh-print-main h1{font-size:26px;color:#174f86;margin:0 0 10px}.ggh-print-main .intro{margin:0 0 22px;color:#555}
.ggh-print-columns{display:block;clear:both;width:100%;margin:0 auto}.ggh-print-card{background:#fff;border:1px solid #dbe3ed;border-radius:10px;padding:20px;box-shadow:0 3px 12px rgba(0,0,0,.05)}
.ggh-print-card h2{font-size:20px;color:#174f86;margin:0 0 14px}.ggh-print-links{display:grid;grid-template-columns:1fr;gap:7px}.ggh-print-links a{display:block;padding:13px 16px;background:#f0f5fa;border-radius:6px;color:#174f86;text-decoration:none;font-weight:600}.ggh-print-links a:hover,.ggh-print-links a:focus{background:#dbe9f7;text-decoration:underline}
.ggh-print-back{display:none}.ggh-page-return{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:2px solid #fff;border-radius:50%;color:#fff;text-decoration:none;flex:0 0 38px}.ggh-page-return:hover,.ggh-page-return:focus{background:rgba(255,255,255,.16)}
.ggh-news{display:block!important;max-height:360px;overflow-y:auto;background:#fff;border:1px solid #dbe3ed;border-radius:12px;padding:20px;box-shadow:0 3px 12px rgba(0,0,0,.05)}.ggh-news-head{display:flex;align-items:center;justify-content:flex-start;gap:9px}.ggh-news-head h2{margin:0 0 14px}.ggh-news-add{font-size:24px;font-weight:bold;text-decoration:none;color:#174f86}.ggh-news-add:hover{text-decoration:underline}
.news-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:14px}.news-card{background:#fff;border:1px solid #e1e5e9;border-radius:9px;overflow:hidden;box-shadow:0 3px 12px rgba(0,0,0,.07);min-width:0}.news-card-image{display:block;width:100%;height:170px;object-fit:cover}.news-card-body{padding:16px}.news-card-date{font-size:12px;color:#666}.news-card-title{font-size:19px;color:#174f86;margin:8px 0}.news-card-excerpt{overflow-wrap:anywhere}.news-card-more{color:#174f86;font-weight:bold}
@media(max-width:800px){.ggh-print-main{padding:18px 12px 24px}.ggh-news{padding:14px;max-height:320px}.news-card-image{height:170px}}


/* Layouttest: en sammanhållen uppsättning regler utan äldre överstyrningar. */
.ggh-frames-backdrop{box-sizing:border-box;clear:both;width:calc(100% - 20px);max-width:1500px;margin:12px auto 20px;padding:10px;background:#f2f2f2;border:1px solid #f0f0f0!important;border-radius:14px;box-shadow:none!important}
.ggh-frames-backdrop .ggh-print-main,.ggh-frames-backdrop .ggh-news{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0 auto 12px!important;background:#fff;border:1px solid #f0f0f0!important;box-shadow:none!important}
.ggh-frames-backdrop .ggh-print-main{min-height:calc(100vh - 220px);padding:18px 20px 22px}
.ggh-frames-backdrop .ggh-news{margin-bottom:0!important;max-height:360px;padding:14px 18px}
.ggh-frames-backdrop .ggh-print-card{border:1px solid #f0f0f0!important;box-shadow:none!important}
.ggh-frames-backdrop .news-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
.ggh-frames-backdrop .news-card{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;min-height:108px!important;height:auto!important;gap:0!important;overflow:hidden;border:1px solid #f0f0f0!important;border-radius:7px;box-shadow:none!important;margin:0!important}
.ggh-frames-backdrop .news-card > img.news-card-image{display:block!important;position:static!important;float:none!important;align-self:flex-start!important;flex:0 0 125px!important;width:125px!important;height:105px!important;max-height:105px!important;object-fit:cover;margin:0!important}
.ggh-frames-backdrop .news-card > .news-card-body{display:block!important;position:static!important;float:none!important;align-self:flex-start!important;flex:1 1 0!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:0 14px 8px!important;text-align:left!important;vertical-align:top!important;transform:none!important}
.ggh-frames-backdrop .news-card-body > .news-card-date,.ggh-frames-backdrop .news-card-body > .news-card-title,.ggh-frames-backdrop .news-card-body > .news-card-excerpt{position:static!important;float:none!important;clear:none!important;display:block!important;min-height:0!important;margin-top:0!important;padding-top:0!important;transform:none!important;vertical-align:top!important}
.ggh-frames-backdrop .news-card-date{font-size:12px!important;line-height:1.3!important}
.ggh-frames-backdrop .news-card-title{font-size:17px!important;line-height:1.3!important;margin:3px 0 4px!important}
.ggh-frames-backdrop .news-card-excerpt{font-size:14px!important;line-height:1.45!important;max-height:4.35em!important;overflow:hidden!important;overflow-wrap:anywhere!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
.ggh-frames-backdrop .news-card-excerpt > :first-child{margin-top:0!important;padding-top:0!important}
.ggh-frames-backdrop .news-card-excerpt p{margin:0 0 5px!important}
.ggh-frames-backdrop .news-card:not(.ggh-news-image-normalized) .news-card-excerpt img:first-of-type{float:left;max-width:125px;max-height:105px;margin:0 12px 6px 0}
@media(max-width:800px){.ggh-frames-backdrop{width:calc(100% - 12px);padding:6px}.ggh-frames-backdrop .ggh-print-main{min-height:calc(100vh - 175px);padding:14px 12px}.ggh-frames-backdrop .ggh-news{padding:12px;max-height:300px}.ggh-frames-backdrop .news-card{min-height:96px!important}.ggh-frames-backdrop .news-card > img.news-card-image{flex-basis:95px!important;width:95px!important;height:94px!important;max-height:94px!important}.ggh-frames-backdrop .news-card > .news-card-body{padding:0 10px 6px!important}.ggh-frames-backdrop .news-card-title{font-size:16px!important}.ggh-frames-backdrop .news-card-excerpt{font-size:13px!important}}


/* Korrigering 2026-10-16: tunn kant och absolut toppjusterad nyhetstext */
#ggh-content, .ggh-frames-backdrop, .ggh-frames-backdrop .ggh-print-main,
.ggh-frames-backdrop .ggh-news, .ggh-frames-backdrop .ggh-print-card,
.ggh-frames-backdrop .news-card { border-width: 1px !important; border-style: solid !important; border-color: #f5f5f5 !important; box-shadow: none !important; }
.ggh-frames-backdrop .news-card { display:flex !important; flex-direction:row !important; align-items:flex-start !important; }
.ggh-frames-backdrop .news-card > .news-card-body { align-self:flex-start !important; display:block !important; margin:0 !important; padding:0 12px 8px !important; height:auto !important; line-height:normal !important; }
.ggh-frames-backdrop .news-card-body > :first-child { margin-top:0 !important; padding-top:0 !important; }
.ggh-frames-backdrop .news-card-body .news-card-date { margin:0 !important; padding:0 !important; line-height:1.2 !important; }
.ggh-frames-backdrop .news-card-body .news-card-title { margin:2px 0 4px !important; padding:0 !important; }
.ggh-frames-backdrop .news-card-excerpt, .ggh-frames-backdrop .news-card-excerpt > :first-child { margin-top:0 !important; padding-top:0 !important; }
.ggh-frames-backdrop .news-card-excerpt [style*="margin-top"],
.ggh-frames-backdrop .news-card-excerpt [style*="padding-top"] { margin-top:0 !important; padding-top:0 !important; }

/* 2026-10-16: en enda diskret kontur per ram, utan dubbla kantlinjer */
#ggh-content { border:0 !important; box-shadow:none !important; outline:0 !important; }
.ggh-frames-backdrop { border:0 !important; box-shadow:none !important; outline:0 !important; }
.ggh-frames-backdrop .ggh-print-main,
.ggh-frames-backdrop .ggh-news { border:1px solid #e9e9e9 !important; box-shadow:none !important; outline:0 !important; }
.ggh-frames-backdrop .ggh-print-card { border:0 !important; box-shadow:none !important; outline:0 !important; }
.ggh-frames-backdrop .news-card { border:1px solid #eeeeee !important; box-shadow:none !important; outline:0 !important; }

/* Ramar: inga synliga konturlinjer eller skuggor; endast bakgrundsskillnader.
   Behaller toppjusteringen av nyhetstexten oforandrad. */
html body #layout .ggh-frames-backdrop,
html body #layout .ggh-frames-backdrop .ggh-print-main,
html body #layout .ggh-frames-backdrop .ggh-news,
html body #layout .ggh-frames-backdrop .ggh-print-card,
html body #layout .ggh-frames-backdrop .news-card,
html body #layout #ggh-content {
  border: none !important; outline: none !important; box-shadow: none !important;
}
html body #layout .ggh-frames-backdrop { background: #f2f2f2 !important; }
html body #layout .ggh-frames-backdrop .ggh-print-main { background: #f8f8f8 !important; }
html body #layout .ggh-frames-backdrop .ggh-news,
html body #layout .ggh-frames-backdrop .news-card { background: #fff !important; }

/* Slutlig ramstruktur: ingen dubbel inre ram. */
html body #layout .ggh-frames-backdrop { background:transparent!important;padding:0!important;border:0!important;border-radius:0!important;margin:8px auto 20px!important;width:calc(100% - 12px)!important; }
html body #layout .ggh-frames-backdrop .ggh-print-main { background:#f3f3f3!important;border:1px solid #ededed!important;border-radius:10px!important;box-shadow:none!important;min-height:calc(100vh - 245px)!important;margin:0 0 12px!important;padding:18px!important; }
html body #layout .ggh-frames-backdrop .ggh-news { background:#fff!important;border:1px solid #ededed!important;border-radius:10px!important;box-shadow:none!important;margin:0!important; }
html body #layout .ggh-frames-backdrop .news-card { border:1px solid #f0f0f0!important;box-shadow:none!important; }
@media(max-width:800px){html body #layout .ggh-frames-backdrop .ggh-print-main{min-height:calc(100vh - 205px)!important;padding:12px!important}}

/* 2026-10-16: innehallsram och databasstyrda nyhetsfarger. */
html body #layout .ggh-frames-backdrop .ggh-print-main {padding:10px!important;}
/* Anvands nar en sida far ett faktiskt innehallsblock inuti huvudramen. */
html body #layout .ggh-frames-backdrop .ggh-content-frame {
  width:100%!important;max-width:none!important;box-sizing:border-box!important;
  margin:0!important;padding:14px!important;background:#fff;
  border:0!important;border-radius:8px;box-shadow:none!important;
}
/* En databasfarg ska ga fore standardvitt, men bara pa nyhetskort med farg. */
html body #layout .ggh-frames-backdrop .news-card.ggh-news-colored {
  background-color:var(--ggh-news-bg, #fff)!important;
  background-image:none!important;
}
@media(max-width:800px){html body #layout .ggh-frames-backdrop .ggh-print-main{padding:8px!important}}

/* Nyhetskort: klicka for att lasa hela nyheten, utan att andra layouten. */
html body #layout .ggh-frames-backdrop .news-card { cursor:pointer; }
html body #layout .ggh-frames-backdrop .news-card:focus-visible { outline:2px solid #1d578b!important;outline-offset:2px!important; }
html body #layout .ggh-frames-backdrop .news-card.ggh-news-expanded .news-card-excerpt {
 max-height:none!important;overflow:visible!important;display:block!important;
 -webkit-line-clamp:unset!important;line-clamp:unset!important;
}

/* 2026-10-16: högre nyhetskort och enhetlig fullständig visning. */
html body #layout .ggh-frames-backdrop .news-card {
 min-height:156px!important;
 align-items:flex-start!important;
}
html body #layout .ggh-frames-backdrop .news-card > img.news-card-image {
 height:145px!important;max-height:145px!important;
}
html body #layout .ggh-frames-backdrop .news-card .news-card-excerpt {
 max-height:7.25em!important;-webkit-line-clamp:5!important;line-clamp:5!important;
}
.ggh-news-overlay {display:none;position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.55);padding:20px;box-sizing:border-box;align-items:center;justify-content:center}
.ggh-news-overlay.ggh-news-overlay-open {display:flex}
.ggh-news-dialog {position:relative;box-sizing:border-box;width:100%;max-width:740px;max-height:calc(100vh - 40px);overflow-y:auto;background:#fff;border-radius:10px;padding:24px;box-shadow:0 8px 30px rgba(0,0,0,.2);color:#26384b}
.ggh-news-close {position:sticky;top:0;float:right;z-index:1;cursor:pointer;background:#f0f0f0;border:0;border-radius:50%;font-size:26px;width:38px;height:38px;line-height:34px}
.ggh-news-dialog-image {float:left;width:175px;max-width:40%;height:auto;max-height:180px;object-fit:cover;margin:0 18px 12px 0;border-radius:5px}
.ggh-news-dialog-content .news-card-body {display:block!important;padding:0!important;margin:0!important;min-width:0!important}
.ggh-news-dialog-content .news-card-excerpt {display:block!important;max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important;line-clamp:unset!important}
.ggh-news-dialog-content .news-card-excerpt p:first-child {margin-top:0!important}
@media(max-width:800px){html body #layout .ggh-frames-backdrop .news-card{min-height:142px!important}html body #layout .ggh-frames-backdrop .news-card > img.news-card-image{height:130px!important;max-height:130px!important}.ggh-news-dialog{padding:16px}.ggh-news-dialog-image{width:115px;margin-right:12px}}

/* Bevara klickbara bilder fran Summernote aven nar bilden lyfts ur texten. */
html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link {display:block;flex:0 0 125px;align-self:flex-start;width:125px;line-height:0}
html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link > img.news-card-image {display:block;width:125px!important;height:145px!important;max-height:145px!important;object-fit:cover}
.ggh-news-dialog-content > a {display:block;float:left;line-height:0;margin:0 18px 12px 0}
.ggh-news-dialog-content > a .ggh-news-dialog-image {float:none;margin:0}
@media(max-width:800px){html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link > img.news-card-image{height:130px!important;max-height:130px!important}}

/* 2026-10-20: kompaktare, rundade nyhetskort. Befintlig databasfarg,
   bildlank, expanderad nyhet och dialog bevaras. */
html body #layout .ggh-frames-backdrop .news-grid {
  gap:10px!important;
}
html body #layout .ggh-frames-backdrop .news-card {
  min-height:92px!important;
  height:auto!important;
  border:1px solid #e2e8ee!important;
  border-radius:12px!important;
  overflow:hidden!important;
  box-shadow:0 2px 7px rgba(25,55,85,.07)!important;
  background-color:#edf4fa!important;
  transition:box-shadow .15s ease, transform .15s ease;
}
html body #layout .ggh-frames-backdrop .news-card:nth-child(3n+2):not(.ggh-news-colored) {
  background-color:#f3e9e3!important;
}
html body #layout .ggh-frames-backdrop .news-card:nth-child(3n+3):not(.ggh-news-colored) {
  background-color:#e9f2e8!important;
}
html body #layout .ggh-frames-backdrop .news-card.ggh-news-colored {
  background-color:var(--ggh-news-bg,#edf4fa)!important;
}
html body #layout .ggh-frames-backdrop .news-card:hover {
  box-shadow:0 4px 12px rgba(25,55,85,.12)!important;
}
html body #layout .ggh-frames-backdrop .news-card > img.news-card-image,
html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link > img.news-card-image {
  width:105px!important;
  height:92px!important;
  max-height:92px!important;
  object-fit:cover!important;
}
html body #layout .ggh-frames-backdrop .news-card > img.news-card-image {
  flex:0 0 105px!important;
}
html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link {
  flex:0 0 105px!important;
  width:105px!important;
}
html body #layout .ggh-frames-backdrop .news-card > .news-card-body {
  padding:9px 12px 9px!important;
  align-self:flex-start!important;
}
html body #layout .ggh-frames-backdrop .news-card-date {
  font-size:11px!important;
  line-height:1.3!important;
}
html body #layout .ggh-frames-backdrop .news-card-title {
  font-size:15px!important;
  line-height:1.25!important;
  margin:3px 0 4px!important;
}
html body #layout .ggh-frames-backdrop .news-card-excerpt {
  font-size:13px!important;
  line-height:1.35!important;
  max-height:2.7em!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
}
html body #layout .ggh-frames-backdrop .news-card.ggh-news-expanded .news-card-excerpt {
  max-height:none!important;
  overflow:visible!important;
  display:block!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
}
@media(max-width:800px) {
  html body #layout .ggh-frames-backdrop .news-card {min-height:84px!important;}
  html body #layout .ggh-frames-backdrop .news-card > img.news-card-image,
  html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link > img.news-card-image {
    width:88px!important;height:84px!important;max-height:84px!important;
  }
  html body #layout .ggh-frames-backdrop .news-card > img.news-card-image {flex-basis:88px!important;}
  html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link {flex-basis:88px!important;width:88px!important;}
  html body #layout .ggh-frames-backdrop .news-card > .news-card-body {padding:7px 9px!important;}
  html body #layout .ggh-frames-backdrop .news-card-title {font-size:14px!important;}
  html body #layout .ggh-frames-backdrop .news-card-excerpt {font-size:12px!important;}
}

/* Gemensam slutregel: hela nyhetsbilden synlig, oavsett om den
   kommer från NYHETER.bild eller har lyfts ur nyhetstexten. */
html body #layout .ggh-frames-backdrop .news-card > img.news-card-image,
html body #layout .ggh-frames-backdrop .news-card > a.ggh-news-image-link > img.news-card-image {
  object-fit:contain!important;
  object-position:center center!important;
}
html body #layout .ggh-frames-backdrop .news-card.ggh-news-colored {
  background-color:var(--ggh-news-bg,#edf4fa)!important;
}
