/* Mottos: the tplegacy.net theme (custom-search-motto.hbs) on the site's tokens; this year's card in the seal wash. */
.motto-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px; 
}
.motto-card {
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 90px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
              transform  200ms cubic-bezier(0.2, 0, 0, 1);
}
.motto-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--seal);
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}
.motto-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  transform: none;
}
.motto-card:hover::before { opacity: .03; }
.motto-current {
  background: var(--seal-wash);
  border: none;
  box-shadow: none;
}
.motto-current:hover {
  box-shadow: 0px 1px 2px rgba(0,0,0,.12),
              0px 2px 6px 2px rgba(0,0,0,.08);
  border-color: transparent;
}
.motto-current::before {
  background: var(--ink);
}
.motto-year-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.motto-year-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}
.motto-year-link:hover,
.motto-year-link:focus,
.motto-year-link:visited { text-decoration: none; }
.motto-year-label {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.motto-current .motto-year-label {
  color: var(--ink);
}
.motto-copy {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  -webkit-tap-highlight-color: transparent;
  transition: background 200ms cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  z-index: 1;
}
.motto-copy svg {
  width: 18px;
  height: 18px;
}
.motto-copy:hover { background: var(--paper); }
.motto-copy.copied {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--ins);
}
.motto-en {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.1px !important;
  margin: 8px 0 0 0 !important;
  color: var(--ink) !important;
}
.motto-current .motto-en {
  font-size: 1.4rem !important;
  color: var(--ink) !important;
}
.motto-ko-container {
  margin: 12px 0 0 0;
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
}
.motto-ko {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  padding: 0;
}
.motto-image-wrapper {
  width: 100%;
  margin: 16px 0 0 0;
  border-radius: 8px;
  overflow: hidden;
}
.motto-image {
  width: 100%;
  height: auto;
  display: block;
}
.motto-details {
  margin-top: 16px;
}
.motto-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--seal);
  background: transparent;
  transition: opacity 200ms;
}
.motto-details summary::after {
  content: '↓';
  font-size: 0.8rem;
  transition: transform 200ms;
}
.motto-details[open] summary::after {
  transform: rotate(180deg);
}
.motto-details summary:hover { opacity: 0.7; background: transparent; }
.motto-details-content {
  margin-top: 12px;
  padding: 16px;
  background: color-mix(in srgb, var(--white) 60%, transparent);
  border-radius: 8px;
  border-left: 4px solid var(--seal);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.motto-current .motto-details-content {
  background: color-mix(in srgb, var(--white) 40%, transparent);
  border-left-color: var(--ink);
}

/* Site additions */
.motto-page { font-family: var(--sans); }
.motto-en { font-family: var(--sans); font-weight: 500 !important; }
.motto-copy[hidden] { display: none; }
.motto-source { margin: 12px 0 0; font-size: .85rem; }
.motto-source a { color: var(--seal); }
.motto-empty { color: var(--ink-soft); text-align: center; }
