/* Text pages (/manifestas, /naujienos): one readable column under the shared nav. */
body { min-height: 100vh; }
main.page .wrap { display: block; padding-block: 48px 72px; }
/* aligned to the same edges as the nav and the board; text pages use the full content width */
.page-head, .prose { max-width: none; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 8px; }
.page-head p { margin: 0; font-size: 1.02rem; color: var(--muted); }

/* manifest (static): a poster. Lead as a quote, theses as cards with a big faded number, thesis 1 across the
   full width (it is the point of the site), and a "0,5 L yra bokalas" stamp to sign off. */
.manifest-head .news-date { margin-bottom: 8px; }
.manifest-head p {
  max-width: 46ch; margin-top: 4px; padding-left: 16px; border-left: 3px solid var(--amber);
  font-size: 1.15rem; font-style: italic; color: var(--foam);
}
.theses { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.theses li {
  counter-increment: t; position: relative; overflow: hidden;
  padding: 22px 112px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(246, 236, 217, .035), transparent 70%), var(--barrel);
  color: var(--muted); font-size: 1rem; transition: border-color .15s ease;
}
.theses li:hover { border-color: #5a442c; }
.theses li::before {
  content: counter(t, decimal-leading-zero); position: absolute; right: 18px; top: 10px;
  font-family: var(--display); font-size: 3.6rem; line-height: 1; color: rgba(242, 165, 22, .2);
}
.theses li:first-child {
  grid-column: 1 / -1; padding: 28px 110px 28px 30px; border-left: 4px solid var(--amber);
  background: radial-gradient(520px 220px at 100% 0%, rgba(242, 165, 22, .1), transparent 70%),
              linear-gradient(180deg, rgba(246, 236, 217, .035), transparent 70%), var(--barrel);
}
.theses li:first-child::before { font-size: 4.6rem; color: rgba(242, 165, 22, .32); }
/* the first card spans the row, the rest go in pairs; a last card left alone spans the row too */
.theses li:last-child:nth-child(even) { grid-column: 1 / -1; }
.theses b {
  display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; color: var(--foam);
}
.theses li:first-child b { font-size: 1.6rem; }
.theses p { margin: 0; }
.sign-off { margin-top: 36px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.sign-off p { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.manifest-stamp {
  font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: .05em; text-transform: uppercase;
  color: var(--shame); padding: 6px 18px; border: 3px solid currentColor; border-radius: 12px;
  background: var(--shame-soft); transform: rotate(-4deg); margin-bottom: 8px;
}

/* how it works: the steps, then FAQ as open/close rows */
.how-steps { margin-bottom: 36px; gap: 18px; }
.how-steps b { font-size: 1.1rem; }
.how h2 { font-size: 1.6rem; margin: 0 0 14px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 12px; border: 1px solid var(--line); background: var(--barrel); }
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; color: var(--amber); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* news list: the newest as a wide featured card, the rest in three columns */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card {
  display: grid; gap: 8px; align-content: start; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(246, 236, 217, .035), transparent 70%), var(--barrel);
  border: 1px solid var(--line); color: var(--foam); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.news-card:hover { border-color: #5a442c; transform: translateY(-2px); }
.news-card.featured {
  grid-column: 1 / -1; padding: 26px 32px; column-gap: 40px; row-gap: 10px; align-content: center;
  grid-template-columns: minmax(0, 1fr) 120px; grid-template-areas: "date art" "title art" "text art" "more art";
  border-left: 4px solid var(--amber);
  background: radial-gradient(520px 260px at 100% 50%, rgba(242, 165, 22, .1), transparent 70%),
              linear-gradient(180deg, rgba(246, 236, 217, .035), transparent 70%), var(--barrel);
}
.news-card.featured .news-date { grid-area: date; }
.news-card.featured h2 { grid-area: title; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; max-width: 30ch; }
.news-card.featured p { grid-area: text; font-size: .98rem; line-height: 1.6; max-width: 70ch; }
.news-card.featured .news-more {
  grid-area: more; justify-self: start; margin-top: 4px; font-size: .88rem;
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--amber); color: var(--amber-hi);
  transition: background .15s ease, color .15s ease;
}
.news-card.featured:hover .news-more { background: var(--amber); color: var(--stout); }
.news-art { grid-area: art; align-self: center; justify-self: center; width: 92px; height: auto; transform: rotate(8deg); }
.news-badge {
  display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 6px;
  background: var(--amber); color: var(--stout); letter-spacing: .1em;
}
.news-card h2 { font-size: 1.25rem; margin: 0; }
.news-card p { margin: 0; color: var(--muted); }
.news-more { color: var(--amber-hi); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.news-date { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.news-empty { grid-column: 1 / -1; padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); margin: 0; }
.page-head .news-date { margin-bottom: 10px; }

/* single post */
.post-body p { margin: 0 0 16px; font-size: 1.08rem; line-height: 1.7; color: #e6dac4; }
/* formatted text (js/format.js) */
.post-body h2 { font-size: 1.4rem; margin: 28px 0 10px; }
.post-body h3 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; margin: 24px 0 8px; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 24px; font-size: 1.08rem; line-height: 1.7; color: #e6dac4; }
.post-body li { margin-bottom: 4px; }
.post-body li::marker { color: var(--amber); }
.post-body blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--amber);
  font-size: 1.15rem; font-style: italic; color: var(--foam); }
.post-body strong { color: var(--foam); }
.post-body a { color: var(--amber-hi); text-underline-offset: 3px; }
.post-back { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-back a { color: var(--amber-hi); font-weight: 600; text-decoration: none; }
.post-back a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.featured { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "title" "text" "more"; padding: 26px 24px; }
  .news-art { display: none; }
  .theses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .theses li, .theses li:first-child { padding: 20px 70px 20px 20px; }
  .theses li::before { font-size: 2.8rem; }
}
