/* Anniversary gifts by year. Tokens only (dark mode comes from tools.css). */
.tool .agy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tool .agy-left, .tool .agy-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tool .agy-date { display: flex; flex-direction: column; gap: 8px; }
.tool .agy-dateinfo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tool .agy-dateinfo:has(.agy-dateout:empty) { display: none; }
.tool .agy-dateout { flex: 1 1 220px; font-size: 15px; line-height: 22px; font-weight: 750; color: rgb(var(--ink)); }
.tool .agy-dateout:empty { display: none; }

/* Year strip */
.tool .agy-stripwrap { display: flex; align-items: center; gap: 2px; margin: 0 -6px; min-width: 0; }
.tool .agy-strip {
  flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 10px 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.tool .agy-strip::-webkit-scrollbar { display: none; }
.tool .agy-y {
  flex: none; scroll-snap-align: center; width: 48px; height: 48px; border: 0; border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  color: rgb(var(--ink) / .8); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06); font: inherit;
  transition: background-color .15s ease, color .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tool .agy-y b { font-size: 19px; line-height: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tool .agy-y span { font-size: 10px; line-height: 12px; font-weight: 800; color: rgb(var(--ink) / .55); text-transform: uppercase; letter-spacing: .04em; }
.tool .agy-y.is-month { background: rgb(var(--accent) / .12); box-shadow: none; }
.tool .agy-y:active { transform: scale(.94); }
.tool .agy-y[aria-checked="true"] { background: rgb(var(--ink)); color: var(--bg, #fff); box-shadow: 0 6px 16px rgb(var(--ink) / .25); }
.tool .agy-y[aria-checked="true"] span { color: inherit; opacity: .75; }
.tool .agy-y:focus-visible, .tool .agy-step:focus-visible, .tool .agy-jump button:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool .agy-step {
  flex: none; width: 36px; height: 44px; border: 0; border-radius: 14px; background: none; color: rgb(var(--ink) / .65);
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tool .agy-step:active { transform: scale(.92); }
.tool .agy-jump { display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.tool .agy .agy-yearin { flex: 1 1 auto; width: auto; min-width: 0; max-width: 120px; min-height: 44px; padding: 8px 12px; text-align: center; font-variant-numeric: tabular-nums; }
.tool .agy-jump button {
  flex: 1 1 0; min-width: 0; max-width: 56px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: var(--surface); font: inherit;
  font-size: 15px; font-weight: 850; color: var(--link); cursor: pointer; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06);
}
.tool .agy-jump button:active { transform: scale(.95); }
.tool .agy-jump button[aria-pressed="true"] { background: rgb(var(--accent) / .16); box-shadow: inset 0 0 0 2px rgb(var(--accent) / .6); }
.tool .agy-when { align-self: flex-start; font-size: 13px; line-height: 18px; font-weight: 850; padding: 4px 10px; border-radius: 10px; background: rgb(var(--accent)); color: #fff; margin: 4px 0 2px; }
/* Hero card */
.tool .agy-hero {
  position: relative; padding: 18px 18px 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.tool .agy-hero.is-new { animation: agy-in .4s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes agy-in { from { opacity: .4; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
.tool .agy-hero-top { display: flex; align-items: center; justify-content: space-between; margin: -8px -10px -6px 0; }
.tool .agy-eyebrow { font-size: 13px; line-height: 18px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.tool .agy-theme { font-size: 36px; line-height: 40px; font-weight: 950; letter-spacing: -.03em; color: rgb(var(--ink)); text-wrap: balance; }
.tool .agy-meaning { font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .72); }
.tool .agy-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tool .agy .agy-fact {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 12px; background: rgb(var(--accent) / .09);
  font-size: 13px; line-height: 18px; font-weight: 700; color: rgb(var(--ink) / .72);
}
.tool .agy-fact b { font-weight: 850; color: rgb(var(--ink)); }
.tool .agy-swatch { flex: none; width: 12px; height: 12px; border-radius: 6px; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.tool .agy-src { font-size: 12px; line-height: 17px; font-weight: 650; color: rgb(var(--ink) / .7); margin-top: 6px; }

.tool .agy-filters { display: flex; flex-direction: column; gap: 10px; }
.tool .agy-budget button { font-size: 14px; padding: 0 2px; min-height: 40px; white-space: nowrap; }
@media (max-width: 380px) { .tool .agy-budget button { font-size: 13px; } }
.tool .agy-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 600px) { .tool .agy-toggles { display: flex; flex-wrap: wrap; } }
.tool .agy-toggles::-webkit-scrollbar { display: none; }
.tool .agy-toggles .u19-toggle { min-width: 0; text-align: left; line-height: 18px; padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 600px) { .tool .agy-toggles .u19-toggle { white-space: nowrap; } }
.tool .agy-hint { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--link); }
.tool .agy .agy-divider { list-style: none; padding: 8px 4px 0; font-size: 12px; line-height: 16px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .7); }
.tool .agy-cardline, .tool .agy-game { font-size: 15px; line-height: 22px; font-weight: 600; color: rgb(var(--ink) / .82); padding: 12px 16px; border-radius: 16px; background: rgb(var(--accent) / .08); }
.tool .agy-cardline b, .tool .agy-game b { font-weight: 850; color: rgb(var(--ink)); }

/* All years chart */
.tool .agy-tablewrap { max-height: 420px; overflow: auto; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); }
.tool .agy-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tool .agy-table th, .tool .agy-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgb(var(--ink) / .06); font-weight: 650; color: rgb(var(--ink) / .85); vertical-align: top; }
.tool .agy-table thead th { position: sticky; top: 0; background: var(--surface); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .6); z-index: 1; }
.tool .agy-table tbody th button { min-width: 36px; min-height: 32px; border: 0; border-radius: 10px; background: rgb(var(--accent) / .1); color: var(--link); font: inherit; font-weight: 900; cursor: pointer; }
.tool .agy-saved { display: flex; flex-direction: column; gap: 12px; }
.tool .agy-saved .is-link .u19-idea-text { cursor: pointer; text-decoration: underline; text-decoration-color: rgb(var(--accent) / .35); text-underline-offset: 3px; }

@media (min-width: 600px) {
  .tool .agy-stripwrap { margin: 0; }
  .tool .agy-theme { font-size: 44px; line-height: 48px; }
}
/* Phone and tablet: one column, with share and chart at the end so ideas come right after the year card. */
@media (max-width: 1119px) {
  .tool .agy-left, .tool .agy-right { display: contents; }
  .tool .agy-saved { order: 4; }
  .tool .agy-actions { order: 5; }
  .tool .agy-chart { order: 6; }
  .tool .agy .tool-cta { order: 7; }
}
/* Wide screens: break out of the reading column into two columns, the year on the left (sticky), ideas on the right. */
@media (min-width: 1120px) {
  .tool.agy-root { width: 1060px; margin-left: calc(50% - 530px); }
  .tool .agy { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .tool .agy-left { position: sticky; top: 88px; }
}
@media (hover: hover) and (pointer: fine) {
  .tool .agy-y:hover:not([aria-checked="true"]) { box-shadow: inset 0 0 0 1px rgb(var(--ink) / .25); }
  .tool .agy-step:hover { background: var(--surface); color: rgb(var(--ink)); }
  .tool .agy-jump button:hover { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) { .tool .agy-hero.is-new { animation: none; } }
