/* "Three things to learn" (static revision 04, approved 9 October).
   Still illustrations: no autoplay, timers, reveals or looping. The three compositions
   are complete SVGs with their 0.9 scale and optical centring built in: render them
   at 100% of the art slot and never scale or trim them again.
   Desktop: three equal cards. Below 960px: a manual, native scroll-snap rail. */

.pluck-learn {
  --learn-ink: #171819;
  --learn-blue: #2450ff;
  --learn-gap: clamp(20px, 2.18cqw, 40px);
  /* The site's content column (.wrap): 1200px wide with 40px gutters. Card sizes are in
     container units, so the cards keep the approved proportions at that width. */
  max-width: 1200px; margin: 0 auto; padding: 72px 40px 48px;
  color: var(--learn-ink); box-sizing: content-box; container-type: inline-size;
}
.pluck-learn * { box-sizing: border-box; }

.learn-heading { text-align: center; margin-bottom: 34px; }
.learn-heading p { margin: 0 0 20px; font-size: clamp(13px, 1vw, 19px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #626464; }
.learn-heading h2 { margin: 0; font: 700 clamp(38px, 3.8vw, 73px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }

.learn-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--learn-gap); outline-offset: 6px; }
.learn-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: clamp(24px, 1.85cqw, 34px); }
.learn-select { background: #ffe23e; }
.learn-find { background: #dde2ff; }
.learn-paste { background: #ffdfce; }

.learn-art { display: grid; place-items: center; flex: none; width: 100%; aspect-ratio: 570 / 490; }
.learn-art > img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
/* Owner placement (9 October): each drawing sits a little lower in its slot. */
.learn-art > img { transform: translateY(4.3%); }

.learn-copy { display: flex; flex-direction: column; flex: 1; padding: 0 clamp(24px, 2.07cqw, 38px) 26px; }
.learn-label { margin: 0 0 24px; font-size: clamp(13px, .99cqw, 18px); font-weight: 700; letter-spacing: .035em; text-transform: uppercase; color: #555955; }
.learn-copy h3 { margin: 0 0 28px; font: 700 clamp(26px, 2.89cqw, 53px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.learn-description { margin: 0 0 20px; min-height: 3.4em; font-size: clamp(17px, 1.36cqw, 25px); line-height: 1.5; }
.learn-note { position: relative; margin: auto 0 0; min-height: 3.8em; padding-top: 25px; font-size: clamp(15px, 1.2cqw, 22px); line-height: 1.4; color: #60635f; }
.learn-note::before { content: ""; position: absolute; top: 0; left: 0; display: block; width: 44px; height: 1px; background: #8d8c7c; }
/* The existing destinations these cards linked to. */
.learn-more { align-self: flex-start; margin-top: 10px; font-size: clamp(14px, 1.05cqw, 18px); color: var(--learn-ink); text-decoration: none; }
.learn-more .u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Keyboard badges are images; undo the site's generic <kbd> box. */
.pluck-learn kbd {
  display: inline-block; vertical-align: middle; margin: 0 .16em; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; font: inherit; line-height: 0; white-space: nowrap;
}
.pluck-learn kbd img { display: block; width: 4.32em; height: auto; }
.pluck-learn kbd.return-key img { width: 1.8em; }

.learn-controls, .learn-hint { display: none; }
.pluck-learn button { font: inherit; cursor: pointer; }
.pluck-learn button:focus-visible, .learn-track:focus-visible { outline: 3px solid var(--learn-blue); outline-offset: 4px; }
.pluck-learn .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 959px) {
  .pluck-learn { max-width: 100%; padding: 48px 0 32px; overflow: hidden; }
  .learn-heading { margin-bottom: 26px; padding: 0 24px; }
  .learn-heading p { margin-bottom: 15px; font-size: 12px; }
  .learn-heading h2 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; }
  .learn-track {
    display: flex; gap: 16px; padding: 0 24px 10px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: 24px; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .learn-track::-webkit-scrollbar { display: none; }
  .learn-card { flex: 0 0 min(86%, 460px); scroll-snap-align: start; scroll-snap-stop: always; border-radius: 24px; }
  .learn-copy { padding: 0 24px 25px; }
  .learn-label { margin-bottom: 16px; font-size: 12px; }
  .learn-copy h3 { margin-bottom: 22px; font-size: clamp(32px, 8vw, 40px); }
  .learn-description { min-height: 6em; margin-bottom: 20px; font-size: 18px; line-height: 1.5; }
  .learn-note { min-height: 5em; padding-top: 22px; font-size: 15px; }
  .learn-more { font-size: 15px; }
  .desktop-break { display: none; }
  .learn-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
  .learn-controls button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--learn-ink); font-size: 24px; }
  .learn-controls button:disabled { opacity: .3; cursor: default; }
  .learn-dots { display: flex; }
  .learn-dots button { display: grid; place-items: center; }
  .learn-dots span { width: 9px; height: 9px; border-radius: 50%; background: #ccc9c0; }
  .learn-dots [aria-current="true"] span { background: var(--learn-blue); }
  .learn-hint { display: block; margin: 2px 0 0; text-align: center; font-size: 13px; color: #60635f; }
}
/* The carousel's previous and next: the FAQ's chevron, not text arrows. */
.learn-chev { display: inline-block; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.learn-prev .learn-chev { transform: rotate(135deg); margin-left: 5px; }
.learn-next .learn-chev { transform: rotate(-45deg); margin-right: 5px; }
