/* Anteckningens sida */
.gpn { max-width: 760px; margin: 0 auto 3rem; display: flex; flex-direction: column; gap: .9rem; }
.gpn-kort { background: #fff; border-radius: 20px; padding: 1.1rem 1.3rem; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.gpn-kort h3 { margin: 0 0 .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #8a8378; font-weight: 700; }
.gpn-huvud { border-left: 6px solid #a39e94; }
.gpn-etikett { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: #eeebe5; color: #5f5a52; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gpn-tid { display: flex; flex-direction: column; margin-top: .6rem; }
.gpn-dag { font-family: Georgia, serif; font-size: 1.5rem; color: #1f1c17; }
.gpn-klocka { font-size: 1.05rem; color: #2f5a22; font-weight: 600; margin-top: .15rem; }
.gpn-text { font-size: 1.05rem; line-height: 1.65; color: #2c2822; }
.gpn-text p { margin: 0 0 .8rem; }
.gpn-text p:last-child { margin-bottom: 0; }
.gpn-tom { color: #8a8378; font-style: italic; }
.gpn-lank { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 14px; background: #faf8f3; border: 1px solid #ece8df; text-decoration: none; color: #1f1c17 !important; margin-bottom: .4rem; }
.gpn-lank:hover { border-color: #2f5a22; }
.gpn-lank small { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #2f5a22; font-weight: 700; }
.gpn-lank b { flex: 1; font-weight: 600; }
.gpn-lank i { font-style: normal; color: #8a8378; }
.gpn-folk { display: flex; flex-wrap: wrap; gap: .6rem; }
.gpn-person { display: flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .35rem; border-radius: 999px; background: #faf8f3; }
.gpn-init { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #2f5a22; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.gpn-person b { display: block; font-size: .92rem; }
.gpn-person small { display: block; font-size: .72rem; color: #8a8378; }
.gpn-knappar { display: flex; flex-wrap: wrap; gap: .5rem; }
.gpn-knapp { padding: .65rem 1.2rem; border-radius: 999px; background: #2f5a22; color: #fff !important; text-decoration: none; font-weight: 600; }
.gpn-knapp--sek { background: #f0ede6; color: #1f1c17 !important; }
.gpn-knapp--fara { background: transparent; color: #b03a2e !important; border: 1px solid #e6c4bd; margin-left: auto; }
@media (max-width: 600px) {
  .gpn-kort { padding: 1rem; border-radius: 16px; }
  .gpn-dag { font-size: 1.3rem; }
  .gpn-knapp--fara { margin-left: 0; }
}

/* Mina anteckningar */
.gpa { max-width: 860px; margin: 0 auto 3rem; }
.gpa-topp { display: flex; gap: .6rem; margin-bottom: .7rem; }
.gpa-sok { flex: 1; padding: .8rem 1.1rem; border-radius: 999px; border: 1px solid #e2ddd3; font-size: 1rem; background: #fff; }
.gpa-sok:focus { outline: none; border-color: #2f5a22; box-shadow: 0 0 0 3px rgba(47,90,34,.12); }
.gpa-ny { padding: .8rem 1.2rem; border-radius: 999px; background: #2f5a22; color: #fff !important; text-decoration: none; font-weight: 600; white-space: nowrap; }
.gpa-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.2rem; }
.gpa-filter button { padding: .4rem .9rem; border-radius: 999px; border: 1px solid #e2ddd3; background: #fff; cursor: pointer; font-size: .88rem; }
.gpa-filter button.is-vald { background: #1f1c17; border-color: #1f1c17; color: #fff; }
.gpa-manad h3 { margin: 1.2rem 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #8a8378; }
.gpa-kort { display: flex; gap: .9rem; padding: .85rem 1rem; margin-bottom: .5rem; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); text-decoration: none; color: #1f1c17 !important; border-left: 4px solid #a39e94; }
.gpa-kort:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.gpa-datum { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; }
.gpa-datum b { font-family: Georgia, serif; font-size: 1.5rem; line-height: 1; }
.gpa-datum span { font-size: .72rem; color: #8a8378; text-transform: uppercase; }
.gpa-innehall { flex: 1; min-width: 0; }
.gpa-rubrik { font-weight: 600; font-size: 1.02rem; }
.gpa-meta { font-size: .82rem; color: #6b655b; margin-top: .1rem; }
.gpa-kopplad { color: #2f5a22; font-weight: 600; }
.gpa-fran { font-style: italic; }
.gpa-utdrag { margin: .35rem 0 0; font-size: .9rem; color: #4a453d; line-height: 1.45; }
.gpa-tom, .gpa-ingen { color: #8a8378; text-align: center; padding: 2rem 0; }
.gpa-antal { color: #a39e94; font-size: .8rem; text-align: center; margin-top: 1.5rem; }
@media (max-width: 600px) { .gpa-topp { flex-direction: column; } .gpa-ny { text-align: center; } }

/* Kurspass */
.gpk-huvud { border-left-color: #c9a227; }
.gpk-etikett { background: #fbf1df; color: #6e4f1c; }
.gpk-utb { margin: .5rem 0 .1rem; font-family: Georgia, serif; font-weight: 400; font-size: 1.5rem; }
.gpk-utb a { color: #1f1c17; text-decoration: none; }
.gpk-utb a:hover { color: #2f5a22; }
.gpk-meta { margin-top: .5rem; color: #6b655b; font-size: .92rem; white-space: pre-wrap; }
.gpk-pass { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: .6rem; padding: .6rem .8rem; margin-bottom: .35rem; border-radius: 12px; background: #faf8f3; color: #1f1c17 !important; text-decoration: none; }
.gpk-pass b { font-weight: 700; }
.gpk-pass i { font-style: normal; font-size: .78rem; color: #8a8378; }
a.gpk-pass:hover { background: #f0ede6; }
.gpk-pass.is-aktiv { background: #fbf1df; box-shadow: 0 0 0 2px #c9a227 inset; }
.gpk-pass.is-aktiv i { color: #6e4f1c; font-weight: 700; }
.gpk-pass.is-klar { opacity: .6; }
/* Materialbanken */
.gpm-huvud { border-left-color: #2f6fd1; }
.gpm-etikett { background: #e6eefb; color: #23508f; }
.gpm-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.gpm-kort { display: flex; gap: .7rem; align-items: center; padding: .5rem; border-radius: 14px; background: #faf8f3; border: 1px solid #ece8df; text-decoration: none; color: #1f1c17 !important; }
.gpm-kort:hover { border-color: #2f5a22; }
.gpm-tum { width: 72px; height: 54px; flex: 0 0 72px; border-radius: 10px; overflow: hidden; background: #ece8df; display: flex; align-items: center; justify-content: center; }
.gpm-tum img { width: 100%; height: 100%; object-fit: cover; }
.gpm-ikon { font-size: 1.6rem; }
.gpm-text { display: flex; flex-direction: column; min-width: 0; }
.gpm-text small { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #2f5a22; font-weight: 700; }
.gpm-text b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-text i { font-style: normal; font-size: .78rem; color: #8a8378; }
.gpm-video { margin-bottom: 1rem; }
.gpm-video:last-child { margin-bottom: 0; }
.gpm-video h4 { margin: 0 0 .4rem; font-size: 1rem; }
.gpm-ram { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.gpm-ram iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gpm-video video { width: 100%; border-radius: 12px; background: #000; }
.gpm-galleri { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; }
.gpm-galleri a { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; }
.gpm-galleri img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gpm-galleri a:hover img { transform: scale(1.04); }
.gpm-fil { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 12px; background: #faf8f3; margin-bottom: .35rem; text-decoration: none; color: #1f1c17 !important; }
.gpm-fil b { flex: 1; }
.gpm-fil i { font-style: normal; font-size: .8rem; color: #8a8378; }
.gpm-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.gpm-chips a, .gpm-chips span { padding: .3rem .75rem; border-radius: 999px; background: #faf8f3; border: 1px solid #ece8df; font-size: .85rem; color: #1f1c17 !important; text-decoration: none; }
.gpm-lada { position: fixed; inset: 0; z-index: 2000; background: rgba(15,14,12,.94); display: flex; align-items: center; justify-content: center; }
.gpm-lada img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.gpm-lada button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.gpm-stang { top: 1rem; right: 1rem; }
.gpm-forra { left: 1rem; top: 50%; transform: translateY(-50%); }
.gpm-nasta { right: 1rem; top: 50%; transform: translateY(-50%); }
.gpm-raknare { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }
.gpn--inbaddad { margin-top: 1rem; }
/* Mitt material */
.gpml { max-width: 980px; }
.gpml-sok { width: 100%; margin-bottom: .6rem; }
.gpml-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gpml-kort { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.06); text-decoration: none; color: #1f1c17 !important; transition: transform .15s, box-shadow .15s; }
.gpml-kort:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.gpml-bild { position: relative; aspect-ratio: 16 / 10; background: #ece8df; display: flex; align-items: center; justify-content: center; }
.gpml-bild img { width: 100%; height: 100%; object-fit: cover; }
.gpml-bild .gpm-ikon { font-size: 2.4rem; }
.gpml-bild em { position: absolute; top: .5rem; left: .5rem; padding: .15rem .55rem; border-radius: 999px; background: #e24b4a; color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; }
.gpml-text { display: flex; flex-direction: column; padding: .7rem .85rem .85rem; gap: .15rem; }
.gpml-text small { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #2f5a22; font-weight: 700; }
.gpml-text b { font-size: 1rem; }
.gpml-text i { font-style: normal; font-size: .78rem; color: #8a8378; }

/* Materialbanken för instruktörer */
.gpmb-kort { color: #1f1c17; }
.gpmb-kort .gpml-bild { text-decoration: none; }
.gpmb-titel { font-size: 1rem; font-weight: 700; color: #1f1c17 !important; text-decoration: none; }
.gpmb-titel:hover { color: #2f5a22 !important; }
.gpmb-chips { margin-top: .4rem; gap: .25rem; }
.gpmb-chips a, .gpmb-chips span { font-size: .75rem; padding: .2rem .55rem; }
.gpmb-odelad { background: #fbf1df !important; border-color: #f5b83d !important; color: #6e4f1c !important; }
.gpmb-redigera { align-self: flex-start; margin-top: .5rem; font-size: .8rem; color: #6b655b !important; text-decoration: none; }
.gpmb-redigera:hover { color: #2f5a22 !important; }
.gpmb-kort.is-opublicerad { opacity: .65; }
.gpml-bild em.gpmb-dold { left: auto; right: .5rem; background: #6b655b; }
/* Dolda kort i filter och sökning ska alltid döljas, även när kortet har display: flex */
.gpml-kort[hidden], .gpa-kort[hidden], .gpa-manad[hidden], .gpa-ingen[hidden] { display: none !important; }
