/* Giving back: the section's own parts. Everything takes its colours and type
   from the Almanac's tokens (assets/almanac.css), so day and night both work.
   No literal colours. The shell's parts (page-head, tiles, pic-grid, pic-card,
   pic-link, fold, band-head, chip, button) are used as they are. */

.giv :target { scroll-margin-top: 1rem; }
.giv-say { margin: 0; max-width: 42rem; font-family: var(--display); font-size: clamp(1.12rem, 0.5vw + 1rem, 1.3rem); line-height: 1.5; }

/* the five ways: each tile is a way down the page, its word large */
.giv-ways { grid-template-columns: repeat(auto-fit, minmax(min(11.5rem, 46%), 1fr)); }
.giv-ways .tile-top > span { min-width: 0; font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; text-transform: none; color: var(--ink); }
@media (max-width: 23rem) { .giv-ways { grid-template-columns: 1fr; } }

/* the groups: a label for each kind of work, then its cards */
.giv-kind { margin: 0.7rem 0 -0.35rem; }
.giv-kind:first-of-type { margin-top: 0.2rem; }
.giv-grid { grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); }
.giv-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.giv-links .button { padding: 0.48rem 0.95rem; font-size: 0.92rem; line-height: 1.3; }
.giv-more { font-size: var(--step--1); line-height: 1.5; }
.pic-card:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* a way to help that is not money: a title, a line, where to go */
.giv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 0.9rem; }
.giv-list > li { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.05rem; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); }
.band--water .giv-list > li { border-color: var(--water-edge); }
.band--land .giv-list > li { border-color: var(--land-edge); }
.giv-list h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; line-height: 1.15; }
.giv-list p { margin: 0; font-size: 0.96rem; line-height: 1.45; }
.giv-list .giv-go { margin-top: auto; padding-top: 0.15rem; font-size: var(--step--1); font-weight: 600; }

/* three picture links to the Almanac's own pages */
.giv-visit { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }

/* the foot: when it was checked, and the lists inside the folds */
.giv-checked { margin: 0; font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); }
.giv-tests, .giv-sources { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.giv-tests li, .giv-sources li { font-size: var(--step--1); line-height: 1.5; }

/* On a phone the shell puts every page's words under its pictures: the opening,
   a card's label, a picture link's name. What is left here is this page's own. */
@media (max-width: 36rem) {
  /* five tiles in two columns: the fifth takes the whole row */
  .giv-ways > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .giv-grid .pic-card-in { padding-top: 0.45rem; }
  .giv-visit .pic-link-name small { opacity: 1; color: var(--ink-soft); }
}
