/* Ko-Phi-Phi.com: novinky (box na úvodní stránce, archiv, detail) a box faktů v sekci Ostrovy.
   Načítá se jen na úvodní stránce a na stránkách novinek, proměnné a základní komponenty jsou v site.css. */

/* ---------- Úvodní stránka: box s posledními novinkami (vpravo vedle úvodního textu) ---------- */
.home-news { margin: 0; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 24px 26px 22px; position: relative; }
.home-news::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 60%; height: 60%; border-radius: var(--radius); background: var(--saffron); z-index: -1; }
.home-intro .home-news-kicker { font: 700 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lagoon-2); margin: 0 0 10px; }
.home-intro .home-news h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); color: #fff; margin: 0 0 6px; }
.home-news-list { list-style: none; margin: 0; padding: 0; }
.home-news-list li { border-bottom: 1px solid rgba(245, 240, 230, .14); }
.home-news-list a { display: block; padding: 14px 0; text-decoration: none; color: var(--paper); }
.home-news-list time { display: block; font: 700 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron); }
.home-news-list strong { display: block; font: 700 1.1rem/1.3 var(--sans); color: #fff; margin: 6px 0 4px; }
.home-news-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.5; color: rgba(245, 240, 230, .75); }
.home-news-list a:hover strong { color: var(--saffron); }
.home-intro .home-news-empty { font-size: .95rem; color: rgba(245, 240, 230, .75); margin: 10px 0 0; }
.home-news-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--shallow); text-decoration: none; }
.home-news-more:hover { color: var(--saffron); }
.home-news-more .ic { width: 18px; height: 18px; }

/* ---------- Úvodní stránka: sekce Ostrovy, karty v mřížce a vpravo fakta o souostroví ---------- */
.islands-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; margin: 4px 0 24px; position: relative; z-index: 0; }
.cards.cards-islands { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.islands-more { grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; border: 1px dashed rgba(245, 240, 230, .35); border-radius: var(--radius); color: var(--lagoon-2); font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: background .25s, border-color .25s, color .25s; }
.islands-more:hover { background: rgba(245, 240, 230, .06); border-color: var(--saffron); color: var(--saffron); }
.intro-facts.facts-on-ink { background: var(--ink-2); box-shadow: 0 0 0 1px rgba(245, 240, 230, .12); margin-right: 10px; }
.intro-facts.facts-on-ink dt { color: var(--lagoon-2); }

/* ---------- Archiv novinek ---------- */
.news-wrap { margin-top: 10px; }
.news-wrap > * { max-width: 880px; }
.news-list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 3; margin-top: -40px; }
.news-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px clamp(20px, 4vw, 36px) 22px; margin-bottom: 18px; }
.news-item time { display: block; font: 700 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.news-item h2 { font: 700 clamp(1.25rem, 2.2vw, 1.5rem)/1.3 var(--sans); letter-spacing: 0; margin: 8px 0 10px; }
.news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover { color: var(--coral); }
.news-item p { margin: 0 0 12px; color: var(--text); }
.news-read { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--lagoon); text-decoration: none; }
.news-read .ic { width: 16px; height: 16px; }
.news-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 26px 0 0; }
.news-pager a { font-weight: 700; text-decoration: none; }
.news-pager a[rel="next"] { justify-self: end; }
.news-pager-info { font-size: .9rem; color: var(--muted); }
.news-note { font-size: 1.1rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; position: relative; z-index: 3; margin: -40px 0 20px; }
.page-hero h1 .news-page-no { display: block; font: 600 .95rem/1.4 var(--sans); color: rgba(245, 240, 230, .7); margin-top: 8px; }

/* ---------- Detail novinky ---------- */
.t-news .page-hero h1 { max-width: 24ch; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.news-perex { font-size: 1.2rem; line-height: 1.55; font-weight: 500; color: var(--ink); }
.news-article blockquote { margin: 0 0 18px; padding: 14px 18px; background: var(--paper); border-radius: 12px; }
.news-back { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.news-back a { font-weight: 700; text-decoration: none; }
.news-side ul { list-style: none; margin: 0; padding: 0; }
.news-side li { border-top: 1px solid rgba(245, 240, 230, .14); }
.news-side a { display: block; padding: 10px 0; color: var(--paper); text-decoration: none; font-weight: 600; line-height: 1.35; }
.news-side a:hover { color: var(--saffron); }
.news-side time { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 240, 230, .6); margin-bottom: 2px; }

@media (max-width: 1080px) {
  .islands-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-facts.facts-on-ink { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .intro-facts.facts-on-ink div:nth-last-child(2) { border-bottom: 0; }
  .news-layout .side { display: block; }
}
@media (max-width: 720px) {
  .home-news { padding: 20px 20px 18px; }
  .cards.cards-islands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .islands-more { grid-column: span 1; min-height: 0; padding: 16px; text-align: center; }
  .intro-facts.facts-on-ink { grid-template-columns: 1fr; }
  .intro-facts.facts-on-ink div:nth-last-child(2) { border-bottom: 1px solid rgba(245, 240, 230, .14); }
  .news-pager { grid-template-columns: 1fr 1fr; }
  .news-pager-info { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}
