/* Frogs in your backyard (/backyard-frogs/). Loaded after guide.css. Pieces the magpie template
   doesn't have: the month-by-month calling chart (this month marked by frogs.js), the call
   entries, the FrogID numbers, the pond list and the cane toad pair. Page colour: frog green. */

/* Quick facts: four even items */
@media (min-width: 760px) { .fr-qf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Calling chart: one row per frog, twelve month cells */
.fc-now { margin: 0 0 18px; font-size: 17px; line-height: 1.45; max-width: 40em; min-height: 1.45em; }
.fc-now b { font-weight: 750; }
.fc { margin: 0; max-width: 1000px; }
.fc-head, .fc-rows li { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.fc-head { padding-bottom: 6px; border-bottom: 3px solid var(--ink); font-stretch: 75%; font-weight: 700; font-size: 13px; color: var(--ink2); text-align: center; }
.fc-head { grid-template-columns: 112px repeat(12, minmax(0, 1fr)); }
.fc-head span.is-now { color: var(--c); font-weight: 820; }
.fc-rows { list-style: none; margin: 0; padding: 0; }
.fc-rows li { padding: 7px 0; border-bottom: 1px solid var(--hair2); }
.fc-name { font-stretch: 88%; font-weight: 750; font-size: 14px; line-height: 1.15; color: var(--ink); text-decoration: none; }
.fc-name:hover { color: var(--c); text-decoration: underline; }
.fc-rows li.is-on .fc-name { color: var(--c); }
.fc-cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.fc-cells i { display: block; height: 22px; border-radius: 2px; transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.fc-cells i.pk { background: var(--c); }
.fc-cells i.y { background: rgba(78, 122, 42, .5); }
.fc-cells i.p { background: repeating-linear-gradient(135deg, rgba(78, 122, 42, .55) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px rgba(78, 122, 42, .35); }
.fc-cells i.n { background: var(--lime); }
.fc-cells i.is-now { outline: 2px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.fc.is-hidden .fc-cells i { transform: scaleY(0); }
.fc-rows li:nth-child(n+4) .fc-cells i { transition-delay: .08s; }
.fc-rows li:nth-child(n+7) .fc-cells i { transition-delay: .16s; }
.fc-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-stretch: 75%; font-weight: 650; font-size: 13.5px; color: var(--ink2); }
.fc-key span { display: inline-flex; align-items: center; gap: 6px; }
.fc-key i { display: inline-block; width: 16px; height: 12px; border-radius: 2px; }
.fc-key i.pk { background: var(--c); }
.fc-key i.y { background: rgba(78, 122, 42, .5); }
.fc-key i.p { background: repeating-linear-gradient(135deg, rgba(78, 122, 42, .55) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px rgba(78, 122, 42, .35); }
.fc-key i.n { background: var(--lime); box-shadow: inset 0 0 0 1px var(--hair2); }
.fc-cap { font-stretch: 75%; font-size: 13.5px; color: var(--ink2); margin-top: 8px; max-width: 44em; }
@media (min-width: 760px) {
  .fc-head, .fc-rows li { grid-template-columns: 170px minmax(0, 1fr); column-gap: 16px; }
  .fc-head { grid-template-columns: 170px repeat(12, minmax(0, 1fr)); font-size: 14px; }
  .fc-name { font-size: 16px; }
  .fc-cells { gap: 3px; }
  .fc-cells i { height: 28px; }
}

/* Calls */
.fr-calls { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0 40px; }
.fr-call { border-top: 1px solid var(--hair2); padding: 16px 0 18px; scroll-margin-top: 90px; min-width: 0; }
.fr-call:target { background: linear-gradient(90deg, rgba(78, 122, 42, .14), rgba(78, 122, 42, 0) 80%); }
.fr-call h3 { font-stretch: 112%; font-weight: 820; font-size: 22px; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 8px; }
.fr-call-big { border-top: 3px solid var(--ink); }
.fr-call-big h3 { font-stretch: 125%; font-weight: 860; font-size: 30px; letter-spacing: -.025em; }
.fr-says { position: relative; margin: 0 0 8px; padding-left: 14px; border-left: 3px solid var(--c); font-size: 18px; line-height: 1.4; font-weight: 600; }
.fr-more { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink2); max-width: 36em; }
.fr-ph { margin: 16px 0 0; }
.fr-ph figcaption { font-stretch: 75%; font-size: 13.5px; color: var(--ink2); padding-top: 8px; }
.fr-names { margin: 26px 0 0; font-size: 15px; color: var(--ink2); max-width: 44em; }
@media (min-width: 760px) {
  .fr-calls { grid-template-columns: 1fr 1fr; }
  .fr-call-big { grid-column: span 1; }
}
@media (min-width: 1024px) { .fr-calls { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fr-call-ph { grid-row: span 2; } }

/* FrogID */
.fr-big { margin: 26px 0 20px; }
@media (min-width: 760px) { .fr-big { grid-template-columns: 1fr 1fr; } }
.fr-indep { font-stretch: 75%; font-size: 14.5px; font-weight: 600; color: var(--ink2-n); max-width: 30em; margin: 0; }
.dark .yard { border-top-color: var(--paper-n); }
.dark .yard li { border-bottom-color: rgba(255,255,255,.18); }
.dark.sp-frog .yard li::before, .sp-frog .dark .yard li::before { color: var(--cn); }

/* Pond */
.fr-kids { margin: 18px 0 0; font-size: 16px; color: var(--ink2); max-width: 30em; }
.fr-pond { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.fr-pond li { position: relative; padding: 13px 0 14px 26px; border-bottom: 1px solid var(--hair2); font-size: 16.5px; line-height: 1.45; }
.fr-pond li::before { content: ""; position: absolute; left: 1px; top: 19px; width: 13px; height: 9px; border-radius: 50%; background: var(--c); }
.fr-pond b { font-weight: 750; }

/* Don't move */
.fr-why { display: grid; gap: 18px; margin-top: 24px; max-width: 1000px; }
.fr-why p { margin: 0; padding-top: 10px; border-top: 3px solid var(--ink); font-size: 16.5px; line-height: 1.5; }
.fr-why b { font-weight: 750; }
@media (min-width: 760px) { .fr-why { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Cane toads */
.fr-toad { display: grid; gap: 28px; margin-top: 28px; max-width: 1100px; }
.fr-toad > div { border-top: 3px solid var(--paper-n); padding-top: 10px; }
.fr-toad h3 { font-stretch: 112%; font-weight: 820; font-size: 22px; line-height: 1.1; margin: 0 0 10px; }
.fr-toad p { font-size: 16.5px; line-height: 1.5; margin: 0 0 12px; max-width: 34em; }
.fr-toad-list { list-style: none; margin: 0; padding: 0; }
.fr-toad-list li { padding: 10px 0 11px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 16.5px; line-height: 1.45; }
.fr-toad-list b, .fr-toad b { color: #fff; font-weight: 750; }
.fr-toad-src { margin-top: 10px !important; font-stretch: 75%; font-size: 13.5px !important; color: var(--ink2-n); }
.fr-toad a.tel { font-weight: 700; white-space: nowrap; }
@media (min-width: 760px) { .fr-toad { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .fc-cells i { transition: none !important; }
}
